diff --git a/README.md b/README.md index 3c37acd..570e747 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,103 @@ As an example of what you might get from wiring it all up, here is a screenshot Changing the filter values at the top will reload the data -- and, in some cases, change the layout -- of the visualizations below them. +## Anatomy of a dashboard +- Settings file: it holds all the configuration required to instantiate a dashboard. +- Data Handlers: a set of functions to adapt the raw data for each component. +- State handlers: a set of functions to manipulate the application state base on conditions. +- Custom components: components that are not included in the react-dash library and you need to create ad hoc for your project. + +## Settings object +Dashboard are just javascript objects. Concretely a settings object that stores all the required information to built a dashboard. Namely: layouts, components, data sources, data handlers, etc. + +You have two options to start a DKAN Dash project: + +1. Use the module as it is without any custom component. +2. Add customizations like components and data handlers. + +The second option is by far the most common scenario. + +Just remember that all the customizations needs to happen inside the `custom_dash` module. Don't hack dkan_dash. + +This setting object can be placed either in a file or in the database. + +**IMPORTANT: Database stored settings always takes precedent over file stored settings** + +### Database stored settings +This option is ideal when you need to perform updates in your dashboard without push any code. For example, if you need to change the dashboard title, chart colors, field names, etc. + +### File stored settings +For developers it's easy to work with files. Files can be tracked by a control version system so it's easy to rollback when something wrong happens. + +By convention, the settings files should be placed in `custom_dash/js/src` and with the suffix `Settings` named like `dashboardNameSettings.js`. + +**In order to use an object stored in a file you will need to follow some conventions:** + +- All the dashboard settings should be stored at `Drupal.settings.dkanDash.devSettings.some__uri` +- Each devSettings key is a dashboard setting object +- Dashboard settings are pick base on the path. For example, for the path `dashboard/people` you need a key `dashboard__people` in the `Drupal.settings.dkanDash.devSettings` object. +- Setting objects should not contain functions. To transform data, data handlers are the way to go. Remember you can create and use your own components. + +## Quick start + +### Requirements +- DKAN +- react-dash +- npm or yarn + +### Steps +1. Make sure you have JSONEditor and react-dash libraries in the libraries directory. +2. Download and enable dkan_dash. +3. Go to `/node/add/react-dashboard` +4. Set a title +5. Switch the JSONEditor to code mode. +6. Copy and paste the following JSON object and save + +``` +{ + "title": "A dashboard title", + "regions": [ + { + "id": "some-region", + "children": [ + { + "id": "hello", + "type": "Markup", + "content": "

Hello

" + } + ] + } + ] +} +``` + +## Customizations +By default react-dash was created to be customized. These may include data handlers, custom components, state handlers, etc. + +### Before start +Because all the custom code is transpiled all the files must reside inside the directory `custom_dash/src/js`. Files outside that folder will be ignored. +Beside this, you also need import your files within `custom_dash/src/js/index.js`. By doing this, babel (the tranpiler) knows which files should be transpiled and which ignored. + +## How to transpile your custom code +``` +> yarn +> yarn run dev +``` + +## Extended workflow + +Sometimes it's useful to develop react-dash features while you are working in a project. Without the extended workflow if you need to add a new feature to react-dash and test that in your project you will need to rebuild react-dash, copy distribution files, rebuild dkan_dash, etc. + +Custom Dash build process allow you to define some environment variables indicating where `react-dash` and `dkan_dash` repositories are located and thus perform the build steps automatically. + +``` +> yarn +> export REACT_DASH_PATH=/path/to/react/dash +> export REACT_DASH_PATH=/path/to/dkan_dash +> yarn run dev +``` + + ## Who DKAN Dash is for We built DKAN Dash as a way to do complex custom data visualization dashboards in a repeatable way using DKAN's [Datastore API](http://docs.getdkan.com/en/stable/apis/datastore-api.html) as a data backend. DKAN Dash and its supporting ecosystem are really a development framework that allows for highly customizable data visualizations while minimizing boilerplate code and unnecessary repetition. @@ -74,6 +171,8 @@ The react-dash library [ships with an example project](https://github.com/NuCivi ## Further reading 1. The [React Dash](https://react-dashboard.readthedocs.io) documentation is a complete resource for information on the standalone library. -2. Take a look at the files in the [custom_dash](https://github.com/NuCivic/custom_dash) repo to see how a specific implementation would be structured. -3. Look for news and updates on the [DKAN blog](http://getdkan.com/blog/) -4. Join the `#dashboards` channel on the [DKAN Community Slack](https://dkansignup.herokuapp.com/) +3. Take a look at the [Dkan documentation](http://dkan.readthedocs.io/en/latest/) +4. Take a look at the files in the [custom_dash](https://github.com/NuCivic/custom_dash) repo to see how a specific implementation would be structured. +5. Look for news and updates on the [DKAN blog](http://getdkan.com/blog/) +6. Join the `#dashboards` channel on the [DKAN Community Slack](https://dkansignup.herokuapp.com/) + diff --git a/dist/dkan_dash.min.css b/dist/dkan_dash.min.css index 3f6bc23..0ed34c9 100644 --- a/dist/dkan_dash.min.css +++ b/dist/dkan_dash.min.css @@ -1,2 +1,13 @@ -@import url(https://fonts.googleapis.com/css?family=Open+Sans);.nvd3 .nv-axis line,.nvd3 .nv-axis path{fill:none;shape-rendering:crispEdges}.nv-brush .extent,.nvd3 .background path,.nvd3 .nv-axis line,.nvd3 .nv-axis path{shape-rendering:crispEdges}.nv-distx,.nv-disty,.nv-noninteractive,.nvd3 .nv-axis,.nvd3.nv-pie .nv-label,.nvd3.nv-sparklineplus g.nv-hoverValue{pointer-events:none}.nvd3 .nv-axis{opacity:1}.nvd3 .nv-axis.nv-disabled,.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3 .nv-axis path{stroke:#000;stroke-opacity:.75}.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{stroke:#e5e5e5}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero{stroke-opacity:.75}.nvd3 .nv-axis .nv-axisMaxMin text{font-weight:700}.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text,.nvd3 .x .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-bars rect{fill-opacity:.75;transition:fill-opacity .25s linear}.nvd3 .nv-bars rect.hover{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:transparent}.nvd3 .nv-bars .hover text{fill:#000}.nvd3 .nv-discretebar .nv-groups rect,.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect{stroke-opacity:0;transition:fill-opacity .25s linear}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick,.with-transitions .nvd3 .nv-groups .nv-point{transition:stroke-width .25s linear,stroke-opacity .25s linear}.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover,.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover{fill-opacity:1}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:#000;stroke:transparent}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 .nv-boxplot circle:hover,.nvd3 .nv-boxplot rect:hover{fill-opacity:1}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-measure:hover{fill-opacity:1}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-markerLine{stroke:#000;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect{stroke:#d62728;fill:#d62728}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nv-force-node{stroke:#fff;stroke-width:1.5px}.nv-force-link{stroke:#999;stroke-opacity:.6}.nv-force-node text{stroke-width:0}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check{fill-opacity:0;stroke-opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3.nv-linePlusBar .nv-bar rect:hover{fill-opacity:1}.nvd3 .nv-groups path.nv-line{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point{fill-opacity:0;stroke-opacity:0}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.nvd3 .nv-groups .nv-point.hover,.nvd3.nv-scatter .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{box-shadow:0 5px 10px rgba(0,0,0,.2);border-radius:5px}.nvd3 text{font:400 12px Arial,sans-serif}.nvd3 .title{font:700 14px Arial,sans-serif}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .extent{fill-opacity:.125}.nv-brush .resize path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .extent{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}@media print{.nvd3 text{stroke-width:0;fill-opacity:1}}.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#eee;stroke-opacity:.4}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .extent{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:rgba(19,196,249,.59)}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3.nv-pie path{transition:fill-opacity .25s linear,stroke-width .25s linear,stroke-opacity .25s linear;stroke:#fff;stroke-width:1px;stroke-opacity:1;fill-opacity:.7}.nvd3.nv-pie .hover path{fill-opacity:1}.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3 .nv-scatter .nv-point.hover{fill-opacity:1}.nvd3.nv-sparkline path{fill:none}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3 .nv-interactiveGuideLine,.nvtooltip{pointer-events:none}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvtooltip h3,.nvtooltip table td.key{font-weight:400}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;transition:fill-opacity .25s linear,stroke-opacity .25s linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;color:#000;padding:1px;z-index:10000;display:block;font-family:Arial,sans-serif;font-size:13px;text-align:left;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:hsla(0,0%,100%,.8);border:1px solid rgba(0,0,0,.5);border-radius:4px}.nvtooltip h3,.nvtooltip p{margin:0;text-align:center}.nvtooltip.with-transitions,.with-transitions .nvtooltip{transition:opacity 50ms linear;transition-delay:.2s}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{padding:4px 14px;line-height:18px;background-color:hsla(0,0%,97%,.75);color:#000;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.nvtooltip p{padding:5px 14px}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.key.total{font-weight:700}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table td.percent{color:#a9a9a9}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{vertical-align:middle;width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 line.nv-guideline{stroke:#ccc}body{font-family:Open Sans,sans-serif}h1{font-size:1.75em;border-bottom:1px solid #eee;margin-bottom:10px;border:none;font-size:36px;margin:25px 0}h1,h2{padding:0;color:#000}h2{border-bottom:1px solid #eee}h2,h3{font-size:1.75em;margin-bottom:10px}h3{padding:0;color:#000;border-bottom:1px solid #eee;border:none;font-size:1.15em}body{background:#fff}.glyphicon{top:3px}a{color:#0a77bd}a:focus,a:hover{color:#002245}.loader{position:relative;min-height:30px}.sp{width:32px;height:32px;position:absolute;left:50%;margin-left:-16px;z-index:2}.sp.sp-slices{border-radius:50%;border-top:16px solid rgba(0,0,0,.75);border-left:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);-webkit-animation:spSlices 1s infinite linear;animation:spSlices 1s infinite linear}@-webkit-keyframes spSlices{0%{border-top:16px solid rgba(0,0,0,.75);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}25%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.75);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}50%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.75);border-left:16px solid rgba(0,0,0,.25)}75%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.75)}to{border-top:16px solid rgba(0,0,0,.75);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}}@keyframes spSlices{0%{border-top:16px solid rgba(0,0,0,.75);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}25%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.75);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}50%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.75);border-left:16px solid rgba(0,0,0,.25)}75%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.75)}to{border-top:16px solid rgba(0,0,0,.75);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}}.card-header{font-size:1.75em;padding:0;color:#000;border-bottom:1px solid #eee;margin-bottom:10px}.card-header .glyphicon{margin-right:12px}.card-header .fa{padding-right:10px}.card-card{margin:20px 0}.card-card .card-content{padding-bottom:10px;padding-top:5px}.Select-control,.Select-menu-outer{border-radius:0}.public_fixedDataTable_header,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#eee;background-image:none}.fixedDataTableLayout_hasBottomBorder{border:none}.legend{width:auto;min-width:120px}.legend-container div{text-align:left!important}.hoverinfo{position:fixed;width:100px;min-height:50px;background-color:#fff;box-shadow:1px 1px 3px grey;padding:10px}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{background-color:#0a77bd;border-color:#0a77bd}.pagination>li>a,.pagination>li>span{color:#0a77bd}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#002245}.goal{color:#333;background:#9f3e69;padding-bottom:17px;padding-top:17px;margin:20px 0}@media (max-width:991px){.goal{text-align:center}}.card-goal-icon{text-align:center;background:rgba(0,0,0,.1);border-radius:50%;height:70px;width:70px;margin:0 auto}.card-goal-icon span{height:70px;width:70px;line-height:2em;font-size:2em}.card-goal-icon .glyphicon:before{position:absolute;left:20px;height:30px;width:30px;top:18px;line-height:30px}@media (max-width:767px){.card-goal-icon{margin:0 auto}}.card-goal-progress{font-size:2.4em;font-weight:700;text-align:center}@media (max-width:991px){.card-goal-progress{text-align:center}}.card-goal-status{font-size:1.2em;font-weight:700;text-transform:uppercase}.card-goal-end-date{font-size:.9em}.card-goal-caption{display:table-cell;font-weight:700;height:70px;vertical-align:middle}@media (max-width:991px){.card-goal-caption{display:block;margin:1em 0;text-align:center;height:auto}}.card-goal-end-number{font-size:.7em;color:#999}.metric{background:#9f3e69;color:#fff;padding-bottom:17px;padding-top:17px;margin:20px 0;overflow:auto}.card-metric-icon{position:relative;text-align:center;background:rgba(0,0,0,.3);border-radius:50%;height:70px;width:70px;margin-left:10px}@media (max-width:767px){.card-metric-icon{margin:0 auto}}.card-metric-icon[class$=-icon] .glyphicon{position:absolute;height:70px;width:70px;line-height:2em;font-size:30px;text-align:center;top:0;left:0}.card-metric-icon[class$=-icon] .glyphicon:before{position:absolute;left:20px;height:30px;width:30px;top:20px;line-height:30px}.card-metric-number{font-size:2.5em;font-weight:700}@media (max-width:767px){.card-metric-number{text-align:center}}.card-metric-caption{text-transform:uppercase;opacity:.7}@media (max-width:767px){.card-metric-caption{text-align:center}}.metric-without-icon .card-metric-number{margin:auto;text-align:center}#main-wrapper .card-header{padding:10px 0}#main-wrapper .card-header .glyphicon{top:4px}#main-wrapper .card-goal-metric,#main-wrapper .card-metric-number{font-weight:600;line-height:1.25em}#main-wrapper .card-goal-end-number{line-height:1em;margin:-.3em;padding-left:5px}.react-dash-checkbox input[type=checkbox]{-ms-transform:scale(2);-moz-transform:scale(2);-webkit-transform:scale(2);-o-transform:scale(2);padding:10px;margin-right:1em}.react-dash-checkbox li{font-size:2.5em;list-style:none;float:left;margin-right:2em}.react-dash-checkbox li label{font-weight:300}.highlight-col{float:left}.highlight-label{font-weight:600;margin-right:1em}.highlight-cols-2{width:50%}.Select,.Select-control{position:relative}.Select,.Select div,.Select input,.Select span{box-sizing:border-box}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:0;overflow:hidden;width:100%}.is-searchable.is-focused:not(.is-open)>.Select-control,.is-searchable.is-open>.Select-control{cursor:text}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:0}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control>.Select-arrow{border-color:transparent transparent #999;border-width:0 5px 5px}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:0;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none;border:0;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:0;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.Select-loading,.Select-loading-zone{width:16px;position:relative;vertical-align:middle}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:0}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--multi .Select-multi-value-wrapper,.Select-arrow{display:inline-block}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;height:0;width:0}.is-open .Select-arrow,.Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden}.Select-noresults,.Select-option{box-sizing:border-box;display:block;padding:8px 10px}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{background-color:#fff;color:#666;cursor:pointer}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{color:#999;cursor:default}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}.fixedDataTableCellGroupLayout_cellGroup{-webkit-backface-visibility:hidden;backface-visibility:hidden;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap}.fixedDataTableCellGroupLayout_cellGroup>.public_fixedDataTableCell_main{display:inline-block;vertical-align:top;white-space:normal}.fixedDataTableCellGroupLayout_cellGroupWrapper{position:absolute;top:0}.fixedDataTableCellLayout_main{border-right-style:solid;border-width:0 1px 0 0;box-sizing:border-box;display:block;overflow:hidden;position:absolute;white-space:normal}.fixedDataTableCellLayout_lastChild{border-width:0 1px 1px 0}.fixedDataTableCellLayout_alignRight{text-align:right}.fixedDataTableCellLayout_alignCenter{text-align:center}.fixedDataTableCellLayout_wrap1{display:table}.fixedDataTableCellLayout_wrap2{display:table-row}.fixedDataTableCellLayout_wrap3{display:table-cell;vertical-align:middle}.fixedDataTableCellLayout_columnResizerContainer{position:absolute;right:0;width:6px;z-index:1}.fixedDataTableCellLayout_columnResizerContainer:hover{cursor:ew-resize}.fixedDataTableCellLayout_columnResizerContainer:hover .fixedDataTableCellLayout_columnResizerKnob{visibility:visible}.fixedDataTableCellLayout_columnResizerKnob{position:absolute;right:0;visibility:hidden;width:4px}.fixedDataTableColumnResizerLineLayout_mouseArea{cursor:ew-resize;position:absolute;right:-5px;width:12px}.fixedDataTableColumnResizerLineLayout_main{border-right-style:solid;border-right-width:1px;box-sizing:border-box;position:absolute;z-index:10}.fixedDataTableColumnResizerLineLayout_hiddenElem,body[dir=rtl] .fixedDataTableColumnResizerLineLayout_main{display:none!important}.fixedDataTableLayout_main{border-style:solid;border-width:1px;box-sizing:border-box;overflow:hidden;position:relative}.fixedDataTableLayout_hasBottomBorder,.fixedDataTableLayout_header{border-bottom-style:solid;border-bottom-width:1px}.fixedDataTableLayout_footer .public_fixedDataTableCell_main{border-top-style:solid;border-top-width:1px}.fixedDataTableLayout_bottomShadow,.fixedDataTableLayout_topShadow{height:4px;left:0;position:absolute;right:0;z-index:1}.fixedDataTableLayout_bottomShadow{margin-top:-4px}.fixedDataTableLayout_rowsContainer{overflow:hidden;position:relative}.fixedDataTableLayout_horizontalScrollbar{bottom:0;position:absolute}.fixedDataTableRowLayout_main{box-sizing:border-box;overflow:hidden;position:absolute;top:0}.fixedDataTableRowLayout_body{left:0;position:absolute;top:0}.fixedDataTableRowLayout_fixedColumnsDivider{-webkit-backface-visibility:hidden;backface-visibility:hidden;border-left-style:solid;border-left-width:1px;left:0;position:absolute;top:0;width:0}.fixedDataTableRowLayout_columnsShadow{position:absolute;width:4px}.fixedDataTableRowLayout_columnsRightShadow{right:1px}.fixedDataTableRowLayout_rowWrapper{position:absolute;top:0}.ScrollbarLayout_main{box-sizing:border-box;outline:none;overflow:hidden;position:absolute;transition-duration:.25s;transition-timing-function:ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ScrollbarLayout_mainVertical{bottom:0;right:0;top:0;transition-property:background-color width;width:15px}.ScrollbarLayout_mainVertical.public_Scrollbar_mainActive,.ScrollbarLayout_mainVertical:hover{width:17px}.ScrollbarLayout_mainHorizontal{bottom:0;height:15px;left:0;transition-property:background-color height}.ScrollbarLayout_mainHorizontal.public_Scrollbar_mainActive,.ScrollbarLayout_mainHorizontal:hover{height:17px}.ScrollbarLayout_face{left:0;overflow:hidden;position:absolute;z-index:1}.ScrollbarLayout_face:after{border-radius:6px;content:"";display:block;position:absolute;transition:background-color .25s ease}.ScrollbarLayout_faceHorizontal{bottom:0;left:0;top:0}.ScrollbarLayout_faceHorizontal:after{bottom:4px;left:0;top:4px;width:100%}.ScrollbarLayout_faceVertical{left:0;right:0;top:0}.ScrollbarLayout_faceVertical:after{height:100%;left:4px;right:4px;top:0}.public_fixedDataTable_hasBottomBorder,.public_fixedDataTable_header,.public_fixedDataTable_main{border-color:#d3d3d3}.public_fixedDataTable_header .public_fixedDataTableCell_main{font-weight:700}.public_fixedDataTable_header,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#f6f7f8;background-image:linear-gradient(#fff,#efefef)}.public_fixedDataTable_footer .public_fixedDataTableCell_main{background-color:#f6f7f8;border-color:#d3d3d3}.public_fixedDataTable_topShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAYAAABP2FU6AAAAF0lEQVR4AWPUkNeSBhHCjJoK2twgFisAFagCCp3pJlAAAAAASUVORK5CYII=) repeat-x}.public_fixedDataTable_bottomShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAYAAABP2FU6AAAAHElEQVQI12MwNjZmZdAT1+Nm0JDWEGZQk1GTBgAWkwIeAEp52AAAAABJRU5ErkJggg==) repeat-x}.public_fixedDataTable_horizontalScrollbar .public_Scrollbar_mainHorizontal{background-color:#fff}.public_fixedDataTableCell_main{background-color:#fff;border-color:#d3d3d3}.public_fixedDataTableCell_highlighted{background-color:#f4f4f4}.public_fixedDataTableCell_cellContent{padding:8px}.public_fixedDataTableCell_columnResizerKnob{background-color:#0284ff}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_cellContent{margin-left:12px}.fixedDataTableCellLayout_columnReorderContainer{border-color:#0284ff;background-color:rgba(0,0,0,.1);width:12px;margin-right:-12px;float:left;cursor:move}.fixedDataTableCellLayout_columnReorderContainer:after{content:"::";position:absolute;top:50%;left:1px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.public_fixedDataTableColumnResizerLine_main{border-color:#0284ff}.public_fixedDataTableRow_main{background-color:#fff}.public_fixedDataTableRow_highlighted,.public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main{background-color:#f6f7f8}.public_fixedDataTableRow_fixedColumnsDivider{border-color:#d3d3d3}.public_fixedDataTableRow_columnsShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAYAAAD5PA/NAAAAFklEQVQIHWPSkNeSBmJhTQVtbiDNCgASagIIuJX8OgAAAABJRU5ErkJggg==) repeat-y}.public_fixedDataTableRow_columnsRightShadow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.public_Scrollbar_main.public_Scrollbar_mainActive,.public_Scrollbar_main:hover{background-color:hsla(0,0%,100%,.8)}.public_Scrollbar_mainOpaque,.public_Scrollbar_mainOpaque.public_Scrollbar_mainActive,.public_Scrollbar_mainOpaque:hover{background-color:#fff}.public_Scrollbar_face:after{background-color:#c2c2c2}.public_Scrollbar_faceActive:after,.public_Scrollbar_main:hover .public_Scrollbar_face:after,.public_Scrollbar_mainActive .public_Scrollbar_face:after{background-color:#7d7d7d} -/*# sourceMappingURL=dkan_dash.min.css.map*/ \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Open+Sans);.nvd3 .nv-axis line,.nvd3 .nv-axis path{fill:none;shape-rendering:crispEdges}.nv-brush .extent,.nvd3 .background path,.nvd3 .nv-axis line,.nvd3 .nv-axis path{shape-rendering:crispEdges}.nv-distx,.nv-disty,.nv-noninteractive,.nvd3 .nv-axis,.nvd3.nv-pie .nv-label,.nvd3.nv-sparklineplus g.nv-hoverValue{pointer-events:none}.nvd3 .nv-axis{opacity:1}.nvd3 .nv-axis.nv-disabled,.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3 .nv-axis path{stroke:#000;stroke-opacity:.75}.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{stroke:#e5e5e5}.nvd3 .nv-axis .zero line, .nvd3 .nv-axis line.zero{stroke-opacity:.75}.nvd3 .nv-axis .nv-axisMaxMin text{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-bars rect{fill-opacity:.75;transition:fill-opacity 250ms linear}.nvd3 .nv-bars rect.hover{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:transparent}.nvd3 .nv-bars .hover text{fill:rgba(0,0,0,1)}.nvd3 .nv-discretebar .nv-groups rect,.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect{stroke-opacity:0;transition:fill-opacity 250ms linear}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick,.with-transitions .nvd3 .nv-groups .nv-point{transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover,.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover{fill-opacity:1}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:rgba(0,0,0,1);stroke:transparent}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 .nv-boxplot circle:hover,.nvd3 .nv-boxplot rect:hover{fill-opacity:1}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-measure:hover{fill-opacity:1}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-markerLine{stroke:#000;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect{stroke:#d62728;fill:#d62728}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nv-force-node{stroke:#fff;stroke-width:1.5px}.nv-force-link{stroke:#999;stroke-opacity:.6}.nv-force-node text{stroke-width:0}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check{fill-opacity:0;stroke-opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3.nv-linePlusBar .nv-bar rect:hover{fill-opacity:1}.nvd3 .nv-groups path.nv-line{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point{fill-opacity:0;stroke-opacity:0}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.nvd3 .nv-groups .nv-point.hover,.nvd3.nv-scatter .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{box-shadow:0 5px 10px rgba(0,0,0,.2);border-radius:5px}.nvd3 text{font:400 12px Arial,sans-serif}.nvd3 .title{font:700 14px Arial,sans-serif}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .extent{fill-opacity:.125}.nv-brush .resize path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .extent{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}@media print{.nvd3 text{stroke-width:0;fill-opacity:1}}.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#EEE;stroke-opacity:.4}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .extent{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:rgba(19,196,249,.59)}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3.nv-pie path{transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;stroke:#fff;stroke-width:1px;stroke-opacity:1;fill-opacity:.7}.nvd3.nv-pie .hover path{fill-opacity:1}.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3 .nv-scatter .nv-point.hover{fill-opacity:1}.nvd3.nv-sparkline path{fill:none}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3 .nv-interactiveGuideLine,.nvtooltip{pointer-events:none}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvtooltip h3,.nvtooltip table td.key{font-weight:400}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;color:rgba(0,0,0,1);padding:1px;z-index:10000;display:block;font-family:Arial,sans-serif;font-size:13px;text-align:left;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.5);border-radius:4px}.nvtooltip h3,.nvtooltip p{margin:0;text-align:center}.nvtooltip.with-transitions,.with-transitions .nvtooltip{transition:opacity 50ms linear;transition-delay:200ms}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{padding:4px 14px;line-height:18px;background-color:rgba(247,247,247,.75);color:rgba(0,0,0,1);border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.nvtooltip p{padding:5px 14px}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.key.total{font-weight:700}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table td.percent{color:#a9a9a9}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{vertical-align:middle;width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 line.nv-guideline{stroke:#ccc} +/*# sourceMappingURL=nv.d3.min.css.map */body{font-family:Open Sans,sans-serif}h1{font-size:1.75em;border-bottom:1px solid #eee;margin-bottom:10px;border:none;font-size:36px;margin:25px 0}h1,h2{padding:0;color:#000}h2{border-bottom:1px solid #eee}h2,h3{font-size:1.75em;margin-bottom:10px}h3{padding:0;color:#000;border-bottom:1px solid #eee;border:none;font-size:1.15em}body{background:#fff}.glyphicon{top:3px}a{color:#0a77bd}a:focus,a:hover{color:#002245}.loader{position:relative;min-height:30px}.sp{width:32px;height:32px;position:absolute;left:50%;margin-left:-16px;z-index:2}.sp.sp-slices{border-radius:50%;border-top:16px solid rgba(0,0,0,.75);border-left:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);-webkit-animation:spSlices 1s infinite linear;animation:spSlices 1s infinite linear}@-webkit-keyframes spSlices{0%{border-top:16px solid rgba(0,0,0,.75);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}25%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.75);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}50%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.75);border-left:16px solid rgba(0,0,0,.25)}75%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.75)}to{border-top:16px solid rgba(0,0,0,.75);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}}@keyframes spSlices{0%{border-top:16px solid rgba(0,0,0,.75);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}25%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.75);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}50%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.75);border-left:16px solid rgba(0,0,0,.25)}75%{border-top:16px solid rgba(0,0,0,.25);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.75)}to{border-top:16px solid rgba(0,0,0,.75);border-right:16px solid rgba(0,0,0,.25);border-bottom:16px solid rgba(0,0,0,.25);border-left:16px solid rgba(0,0,0,.25)}}.card-header{font-size:1.75em;padding:0;color:#000;border-bottom:1px solid #eee;margin-bottom:10px}.card-header .glyphicon{margin-right:12px}.card-header .fa{padding-right:10px}.card-card{margin:20px 0}.card-card .card-content{padding-bottom:10px;padding-top:5px}.Select-control,.Select-menu-outer{border-radius:0}.public_fixedDataTable_header,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#eee;background-image:none}.fixedDataTableLayout_hasBottomBorder{border:none}.legend{width:auto;min-width:120px}.legend-container div{text-align:left!important}.hoverinfo{position:fixed;width:100px;min-height:50px;background-color:#fff;box-shadow:1px 1px 3px grey;padding:10px}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{background-color:#0a77bd;border-color:#0a77bd}.pagination>li>a,.pagination>li>span{color:#0a77bd}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#002245}.goal{color:#333;background:#9f3e69;padding-bottom:17px;padding-top:17px;margin:20px 0}@media (max-width:991px){.goal{text-align:center}}.card-goal-icon{text-align:center;background:rgba(0,0,0,.1);border-radius:50%;height:70px;width:70px;margin:0 auto}.card-goal-icon span{height:70px;width:70px;line-height:2em;font-size:2em}.card-goal-icon .glyphicon:before{position:absolute;left:20px;height:30px;width:30px;top:18px;line-height:30px}@media (max-width:767px){.card-goal-icon{margin:0 auto}}.card-goal-progress{font-size:2.4em;font-weight:700;text-align:center}@media (max-width:991px){.card-goal-progress{text-align:center}}.card-goal-status{font-size:1.2em;font-weight:700;text-transform:uppercase}.card-goal-end-date{font-size:.9em}.card-goal-caption{display:table-cell;font-weight:700;height:70px;vertical-align:middle}@media (max-width:991px){.card-goal-caption{display:block;margin:1em 0;text-align:center;height:auto}}.card-goal-end-number{font-size:.7em;color:#999}.metric{background:#9f3e69;color:#fff;padding-bottom:17px;padding-top:17px;margin:20px 0;overflow:auto}.card-metric-icon{position:relative;text-align:center;background:rgba(0,0,0,.3);border-radius:50%;height:70px;width:70px;margin-left:10px}@media (max-width:767px){.card-metric-icon{margin:0 auto}}.card-metric-icon[class$=-icon] .glyphicon{position:absolute;height:70px;width:70px;line-height:2em;font-size:30px;text-align:center;top:0;left:0}.card-metric-icon[class$=-icon] .glyphicon:before{position:absolute;left:20px;height:30px;width:30px;top:20px;line-height:30px}.card-metric-number{font-size:2.5em;font-weight:700}@media (max-width:767px){.card-metric-number{text-align:center}}.card-metric-caption{text-transform:uppercase;opacity:.7}@media (max-width:767px){.card-metric-caption{text-align:center}}.metric-without-icon .card-metric-number{margin:auto;text-align:center}#main-wrapper .card-header{padding:10px 0}#main-wrapper .card-header .glyphicon{top:4px}#main-wrapper .card-goal-metric,#main-wrapper .card-metric-number{font-weight:600;line-height:1.25em}#main-wrapper .card-goal-end-number{line-height:1em;margin:-.3em;padding-left:5px}.react-dash-checkbox input[type=checkbox]{-ms-transform:scale(2);-moz-transform:scale(2);-webkit-transform:scale(2);-o-transform:scale(2);padding:10px;margin-right:1em}.react-dash-checkbox li{font-size:2.5em;list-style:none;float:left;margin-right:2em}.react-dash-checkbox li label{font-weight:300}.highlight-col{float:left}.highlight-label{font-weight:600;margin-right:1em}.highlight-cols-2{width:50%}.Select,.Select-control{position:relative}.Select,.Select div,.Select input,.Select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:0;overflow:hidden;width:100%}.is-searchable.is-focused:not(.is-open)>.Select-control,.is-searchable.is-open>.Select-control{cursor:text}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:0}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control>.Select-arrow{border-color:transparent transparent #999;border-width:0 5px 5px}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.Select--single>.Select-control .Select-value .Select-value-label,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:0;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none;border:0;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:0;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.Select-loading,.Select-loading-zone{width:16px;position:relative;vertical-align:middle}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:0}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;-o-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;-o-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#D0021B}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--multi .Select-multi-value-wrapper,.Select-arrow{display:inline-block}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;height:0;width:0}.Select-arrow-zone:hover>.Select-arrow,.is-open .Select-arrow{border-top-color:#666}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden}.Select-noresults,.Select-option{box-sizing:border-box;display:block;padding:8px 10px}@-webkit-keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{background-color:#fff;color:#666;cursor:pointer}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{color:#999;cursor:default}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}/** + * FixedDataTable v0.7.17 + * + * Copyright Schrodinger, LLC + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +.fixedDataTableCellGroupLayout_cellGroup{-webkit-backface-visibility:hidden;backface-visibility:hidden;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap}.fixedDataTableCellGroupLayout_cellGroup>.public_fixedDataTableCell_main{display:inline-block;vertical-align:top;white-space:normal}.fixedDataTableCellGroupLayout_cellGroupWrapper{position:absolute;top:0}.fixedDataTableCellLayout_main{border-right-style:solid;border-width:0 1px 0 0;box-sizing:border-box;display:block;overflow:hidden;position:absolute;white-space:normal}.fixedDataTableCellLayout_lastChild{border-width:0 1px 1px 0}.fixedDataTableCellLayout_alignRight{text-align:right}.fixedDataTableCellLayout_alignCenter{text-align:center}.fixedDataTableCellLayout_wrap1{display:table}.fixedDataTableCellLayout_wrap2{display:table-row}.fixedDataTableCellLayout_wrap3{display:table-cell;vertical-align:middle}.fixedDataTableCellLayout_columnResizerContainer{position:absolute;right:0;width:6px;z-index:1}.fixedDataTableCellLayout_columnResizerContainer:hover{cursor:ew-resize}.fixedDataTableCellLayout_columnResizerContainer:hover .fixedDataTableCellLayout_columnResizerKnob{visibility:visible}.fixedDataTableCellLayout_columnResizerKnob{position:absolute;right:0;visibility:hidden;width:4px}.fixedDataTableColumnResizerLineLayout_mouseArea{cursor:ew-resize;position:absolute;right:-5px;width:12px}.fixedDataTableColumnResizerLineLayout_main{border-right-style:solid;border-right-width:1px;box-sizing:border-box;position:absolute;z-index:10}body[dir="rtl"] .fixedDataTableColumnResizerLineLayout_main,.fixedDataTableColumnResizerLineLayout_hiddenElem{display:none!important}.fixedDataTableLayout_main{border-style:solid;border-width:1px;box-sizing:border-box;overflow:hidden;position:relative}.fixedDataTableLayout_header,.fixedDataTableLayout_hasBottomBorder{border-bottom-style:solid;border-bottom-width:1px}.fixedDataTableLayout_footer .public_fixedDataTableCell_main{border-top-style:solid;border-top-width:1px}.fixedDataTableLayout_topShadow,.fixedDataTableLayout_bottomShadow{height:4px;left:0;position:absolute;right:0;z-index:1}.fixedDataTableLayout_bottomShadow{margin-top:-4px}.fixedDataTableLayout_rowsContainer{overflow:hidden;position:relative}.fixedDataTableLayout_horizontalScrollbar{bottom:0;position:absolute}.fixedDataTableRowLayout_main{box-sizing:border-box;overflow:hidden;position:absolute;top:0}.fixedDataTableRowLayout_body{left:0;position:absolute;top:0}.fixedDataTableRowLayout_fixedColumnsDivider{-webkit-backface-visibility:hidden;backface-visibility:hidden;border-left-style:solid;border-left-width:1px;left:0;position:absolute;top:0;width:0}.fixedDataTableRowLayout_columnsShadow{position:absolute;width:4px}.fixedDataTableRowLayout_columnsRightShadow{right:1px}.fixedDataTableRowLayout_rowWrapper{position:absolute;top:0}.ScrollbarLayout_main{box-sizing:border-box;outline:none;overflow:hidden;position:absolute;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-transition-timing-function:ease;transition-timing-function:ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ScrollbarLayout_mainVertical{bottom:0;right:0;top:0;-webkit-transition-property:background-color width;transition-property:background-color width;width:15px}.ScrollbarLayout_mainVertical.public_Scrollbar_mainActive,.ScrollbarLayout_mainVertical:hover{width:17px}.ScrollbarLayout_mainHorizontal{bottom:0;height:15px;left:0;-webkit-transition-property:background-color height;transition-property:background-color height}.ScrollbarLayout_mainHorizontal.public_Scrollbar_mainActive,.ScrollbarLayout_mainHorizontal:hover{height:17px}.ScrollbarLayout_face{left:0;overflow:hidden;position:absolute;z-index:1}.ScrollbarLayout_face:after{border-radius:6px;content:'';display:block;position:absolute;-webkit-transition:background-color 250ms ease;transition:background-color 250ms ease}.ScrollbarLayout_faceHorizontal{bottom:0;left:0;top:0}.ScrollbarLayout_faceHorizontal:after{bottom:4px;left:0;top:4px;width:100%}.ScrollbarLayout_faceVertical{left:0;right:0;top:0}.ScrollbarLayout_faceVertical:after{height:100%;left:4px;right:4px;top:0}.public_fixedDataTable_main,.public_fixedDataTable_header,.public_fixedDataTable_hasBottomBorder{border-color:#d3d3d3}.public_fixedDataTable_header .public_fixedDataTableCell_main{font-weight:700}.public_fixedDataTable_header,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#f6f7f8;background-image:-webkit-linear-gradient(#fff,#efefef);background-image:linear-gradient(#fff,#efefef)}.public_fixedDataTable_footer .public_fixedDataTableCell_main{background-color:#f6f7f8;border-color:#d3d3d3}.public_fixedDataTable_topShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAYAAABP2FU6AAAAF0lEQVR4AWPUkNeSBhHCjJoK2twgFisAFagCCp3pJlAAAAAASUVORK5CYII=) repeat-x}.public_fixedDataTable_bottomShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAYAAABP2FU6AAAAHElEQVQI12MwNjZmZdAT1+Nm0JDWEGZQk1GTBgAWkwIeAEp52AAAAABJRU5ErkJggg==) repeat-x}.public_fixedDataTable_horizontalScrollbar .public_Scrollbar_mainHorizontal{background-color:#fff}.public_fixedDataTableCell_main{background-color:#fff;border-color:#d3d3d3}.public_fixedDataTableCell_highlighted{background-color:#f4f4f4}.public_fixedDataTableCell_cellContent{padding:8px}.public_fixedDataTableCell_columnResizerKnob{background-color:#0284ff}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_cellContent{margin-left:12px}.fixedDataTableCellLayout_columnReorderContainer{border-color:#0284ff;background-color:rgba(0,0,0,.1);width:12px;margin-right:-12px;float:left;cursor:move}.fixedDataTableCellLayout_columnReorderContainer:after{content:'::';position:absolute;top:50%;left:1px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.public_fixedDataTableColumnResizerLine_main{border-color:#0284ff}.public_fixedDataTableRow_main{background-color:#fff}.public_fixedDataTableRow_highlighted,.public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main{background-color:#f6f7f8}.public_fixedDataTableRow_fixedColumnsDivider{border-color:#d3d3d3}.public_fixedDataTableRow_columnsShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAYAAAD5PA/NAAAAFklEQVQIHWPSkNeSBmJhTQVtbiDNCgASagIIuJX8OgAAAABJRU5ErkJggg==) repeat-y}.public_fixedDataTableRow_columnsRightShadow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.public_Scrollbar_main.public_Scrollbar_mainActive,.public_Scrollbar_main:hover{background-color:rgba(255,255,255,.8)}.public_Scrollbar_mainOpaque,.public_Scrollbar_mainOpaque.public_Scrollbar_mainActive,.public_Scrollbar_mainOpaque:hover{background-color:#fff}.public_Scrollbar_face:after{background-color:#c2c2c2}.public_Scrollbar_main:hover .public_Scrollbar_face:after,.public_Scrollbar_mainActive .public_Scrollbar_face:after,.public_Scrollbar_faceActive:after{background-color:#7d7d7d} \ No newline at end of file diff --git a/dist/dkan_dash.min.js b/dist/dkan_dash.min.js index fead000..e5d2c0b 100644 --- a/dist/dkan_dash.min.js +++ b/dist/dkan_dash.min.js @@ -1,32 +1,2025 @@ -!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){n(316),t.exports=n(149)},function(t,e,n){"use strict";function r(t,e,n,r,i,a,u,s){if(o(e),!t){var l;if(void 0===e)l=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,i,a,u,s],f=0;l=new Error(e.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(t){};t.exports=r},function(t,e,n){"use strict";var r=n(11),o=r;t.exports=o},function(t,e,n){"use strict";t.exports=n(32)},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r2?n-2:0),o=2;o should not have a "'+e+'" prop')}e.__esModule=!0,e.routes=e.route=e.components=e.component=e.history=void 0,e.falsy=r;var o=n(3),i=o.PropTypes.func,a=o.PropTypes.object,u=o.PropTypes.arrayOf,s=o.PropTypes.oneOfType,l=o.PropTypes.element,c=o.PropTypes.shape,f=o.PropTypes.string,d=(e.history=c({listen:i.isRequired,push:i.isRequired,replace:i.isRequired,go:i.isRequired,goBack:i.isRequired,goForward:i.isRequired}),e.component=s([i,f])),p=(e.components=s([d,a]),e.route=s([a,l]));e.routes=s([p,u(p)])},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e0?void 0:(0,d.default)(!1),null!=c&&(i+=encodeURI(c))):"("===s?o+=1:")"===s?o-=1:":"===s.charAt(0)?(l=s.substring(1),c=e[l],null!=c||o>0?void 0:(0,d.default)(!1),null!=c&&(i+=encodeURIComponent(c))):i+=s;return i.replace(/\/+/g,"/")}e.__esModule=!0,e.compilePattern=a,e.matchPattern=u,e.getParamNames=s,e.getParams=l,e.formatPattern=c;var f=n(8),d=r(f),p=Object.create(null)},function(t,e,n){"use strict";var r=n(5),o=n(302),i=n(84),a=n(307),u=n(303),s=n(304),l=n(33),c=n(306),f=n(308),d=n(311),p=(n(2),l.createElement),h=l.createFactory,v=l.cloneElement,g=r,m={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:d},Component:i,PureComponent:a,createElement:p,cloneElement:v,isValidElement:l.isValidElement,PropTypes:c,createClass:u.createClass,createFactory:h,createMixin:function(t){return t},DOM:s,version:f,__spread:g};t.exports=m},function(t,e,n){"use strict";function r(t){return void 0!==t.ref}function o(t){return void 0!==t.key}var i=n(5),a=n(18),u=(n(2),n(145),Object.prototype.hasOwnProperty),s=n(144),l={key:!0,ref:!0,__self:!0,__source:!0},c=function(t,e,n,r,o,i,a){var u={$$typeof:s,type:t,key:e,ref:n,props:a,_owner:i};return u};c.createElement=function(t,e,n){var i,s={},f=null,d=null,p=null,h=null;if(null!=e){r(e)&&(d=e.ref),o(e)&&(f=""+e.key),p=void 0===e.__self?null:e.__self,h=void 0===e.__source?null:e.__source;for(i in e)u.call(e,i)&&!l.hasOwnProperty(i)&&(s[i]=e[i])}var v=arguments.length-2;if(1===v)s.children=n;else if(v>1){for(var g=Array(v),m=0;m1){for(var b=Array(y),_=0;_1)for(var r=1;re?1:t>=e?0:NaN}function s(t){return null===t?NaN:+t}function l(t){return!isNaN(t)}function c(t){return{left:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r>>1;t(e[i],n)>0?o=i:r=i+1}return r}}}function f(t){return t.length}function d(t){for(var e=1;t*e%1;)e*=10;return e}function p(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function h(){this._=Object.create(null)}function v(t){return(t+="")===Ca||t[0]===ka?ka+t:t}function g(t){return(t+="")[0]===ka?t.slice(1):t}function m(t){return v(t)in this._}function y(t){return(t=v(t))in this._&&delete this._[t]}function b(){var t=[];for(var e in this._)t.push(g(e));return t}function _(){var t=0;for(var e in this._)++t;return t}function x(){for(var t in this._)return!1;return!0}function w(){this._=Object.create(null)}function E(t){return t}function C(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function k(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=Ma.length;n=e&&(e=o+1);!(a=u[e])&&++e0&&(t=t.slice(0,u));var l=Fa.get(t);return l&&(t=l,s=J),u?e?o:r:e?M:i}function Q(t,e){return function(n){var r=pa.event;pa.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{pa.event=r}}}function J(t,e){var n=Q(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function tt(t){var e=".dragsuppress-"+ ++Ia,n="click"+e,r=pa.select(a(t)).on("touchmove"+e,A).on("dragstart"+e,A).on("selectstart"+e,A);if(null==La&&(La=!("onselectstart"in t)&&k(t.style,"userSelect")),La){var o=i(t).style,u=o[La];o[La]="none"}return function(t){if(r.on(e,null),La&&(o[La]=u),t){var i=function(){r.on(n,null)};r.on(n,function(){A(),i()},!0),setTimeout(i,0)}}}function et(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(Ha<0){var o=a(t);if(o.scrollX||o.scrollY){n=pa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();Ha=!(i.f||i.e),n.remove()}}return Ha?(r.x=e.pageX, -r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var u=t.getBoundingClientRect();return[e.clientX-u.left-t.clientLeft,e.clientY-u.top-t.clientTop]}function nt(){return pa.event.changedTouches[0].identifier}function rt(t){return t>0?1:t<0?-1:0}function ot(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function it(t){return t>1?0:t<-1?Wa:Math.acos(t)}function at(t){return t>1?qa:t<-1?-qa:Math.asin(t)}function ut(t){return((t=Math.exp(t))-1/t)/2}function st(t){return((t=Math.exp(t))+1/t)/2}function lt(t){return((t=Math.exp(2*t))-1)/(t+1)}function ct(t){return(t=Math.sin(t/2))*t}function ft(){}function dt(t,e,n){return this instanceof dt?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof dt?new dt(t.h,t.s,t.l):Mt(""+t,Ot,dt):new dt(t,e,n)}function pt(t,e,n){function r(t){return t>360?t-=360:t<0&&(t+=360),t<60?i+(a-i)*t/60:t<180?a:t<240?i+(a-i)*(240-t)/60:i}function o(t){return Math.round(255*r(t))}var i,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+e):n+e-n*e,i=2*n-a,new wt(o(t+120),o(t),o(t-120))}function ht(t,e,n){return this instanceof ht?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof ht?new ht(t.h,t.c,t.l):t instanceof gt?yt(t.l,t.a,t.b):yt((t=Tt((t=pa.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ht(t,e,n)}function vt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new gt(n,Math.cos(t*=Ya)*e,Math.sin(t)*e)}function gt(t,e,n){return this instanceof gt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof gt?new gt(t.l,t.a,t.b):t instanceof ht?vt(t.h,t.c,t.l):Tt((t=wt(t)).r,t.g,t.b):new gt(t,e,n)}function mt(t,e,n){var r=(t+16)/116,o=r+e/500,i=r-n/200;return o=bt(o)*ru,r=bt(r)*ou,i=bt(i)*iu,new wt(xt(3.2404542*o-1.5371385*r-.4985314*i),xt(-.969266*o+1.8760108*r+.041556*i),xt(.0556434*o-.2040259*r+1.0572252*i))}function yt(t,e,n){return t>0?new ht(Math.atan2(n,e)*Ka,Math.sqrt(e*e+n*n),t):new ht(NaN,NaN,t)}function bt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function _t(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function xt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function wt(t,e,n){return this instanceof wt?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof wt?new wt(t.r,t.g,t.b):Mt(""+t,wt,pt):new wt(t,e,n)}function Et(t){return new wt(t>>16,t>>8&255,255&t)}function Ct(t){return Et(t)+""}function kt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Mt(t,e,n){var r,o,i,a=0,u=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.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 e(St(o[0]),St(o[1]),St(o[2]))}return(i=su.get(t))?e(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&i)>>4,a|=a>>4,u=240&i,u|=u>>4,s=15&i,s|=s<<4):7===t.length&&(a=(16711680&i)>>16,u=(65280&i)>>8,s=255&i)),e(a,u,s))}function Ot(t,e,n){var r,o,i=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),u=a-i,s=(a+i)/2;return u?(o=s<.5?u/(a+i):u/(2-a-i),r=t==a?(e-n)/u+(e0&&s<1?0:r),new dt(r,o,s)}function Tt(t,e,n){t=At(t),e=At(e),n=At(n);var r=_t((.4124564*t+.3575761*e+.1804375*n)/ru),o=_t((.2126729*t+.7151522*e+.072175*n)/ou),i=_t((.0193339*t+.119192*e+.9503041*n)/iu);return gt(116*o-16,500*(r-o),200*(o-i))}function At(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function St(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Pt(t){return"function"==typeof t?t:function(){return t}}function Rt(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Dt(e,n,t,r)}}function Dt(t,e,n,r){function o(){var t,e=s.status;if(!e&&jt(s)||e>=200&&e<300||304===e){try{t=n.call(i,s)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,s)}var i={},a=pa.dispatch("beforesend","progress","load","error"),u={},s=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=o:s.onreadystatechange=function(){s.readyState>3&&o()},s.onprogress=function(t){var e=pa.event;pa.event=t;try{a.progress.call(i,s)}finally{pa.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(l=t,i):l},i.response=function(t){return n=t,i},["get","post"].forEach(function(t){i[t]=function(){return i.send.apply(i,[t].concat(va(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),s.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),s.setRequestHeader)for(var c in u)s.setRequestHeader(c,u[c]);return null!=e&&s.overrideMimeType&&s.overrideMimeType(e),null!=l&&(s.responseType=l),null!=o&&i.on("error",o).on("load",function(t){o(null,t)}),a.beforesend.call(i,s),s.send(null==r?null:r),i},i.abort=function(){return s.abort(),i},pa.rebind(i,a,"on"),null==r?i:i.get(Nt(r))}function Nt(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function jt(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Ft(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var o=n+e,i={c:t,t:o,n:null};return cu?cu.n=i:lu=i,cu=i,fu||(du=clearTimeout(du),fu=1,pu(Lt)),i}function Lt(){var t=It(),e=Ht()-t;e>24?(isFinite(e)&&(clearTimeout(du),du=setTimeout(Lt,e)),fu=0):(fu=1,pu(Lt))}function It(){for(var t=Date.now(),e=lu;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Ht(){for(var t,e=lu,n=1/0;e;)e.c?(e.t8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Wt(t){var e=t.decimal,n=t.thousands,r=t.grouping,o=t.currency,i=r&&n?function(t,e){for(var o=t.length,i=[],a=0,u=r[0],s=0;o>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),i.push(t.substring(o-=u,o+u)),!((s+=u+1)>e));)u=r[a=(a+1)%r.length];return i.reverse().join(n)}:E;return function(t){var n=vu.exec(t),r=n[1]||" ",a=n[2]||">",u=n[3]||"-",s=n[4]||"",l=n[5],c=+n[6],f=n[7],d=n[8],p=n[9],h=1,v="",g="",m=!1,y=!0;switch(d&&(d=+d.substring(1)),(l||"0"===r&&"="===a)&&(l=r="0",a="="),p){case"n":f=!0,p="g";break;case"%":h=100,g="%",p="f";break;case"p":h=100,g="%",p="r";break;case"b":case"o":case"x":case"X":"#"===s&&(v="0"+p.toLowerCase());case"c":y=!1;case"d":m=!0,d=0;break;case"s":h=-1,p="r"}"$"===s&&(v=o[0],g=o[1]),"r"!=p||d||(p="g"),null!=d&&("g"==p?d=Math.max(1,Math.min(21,d)):"e"!=p&&"f"!=p||(d=Math.max(0,Math.min(20,d)))),p=gu.get(p)||zt;var b=l&&f;return function(t){var n=g;if(m&&t%1)return"";var o=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(h<0){var s=pa.formatPrefix(t,d);t=s.scale(t),n=s.symbol+g}else t*=h;t=p(t,d);var _,x,w=t.lastIndexOf(".");if(w<0){var E=y?t.lastIndexOf("e"):-1;E<0?(_=t,x=""):(_=t.substring(0,E),x=t.substring(E))}else _=t.substring(0,w),x=e+t.substring(w+1);!l&&f&&(_=i(_,1/0));var C=v.length+_.length+x.length+(b?0:o.length),k=C"===a?k+o+t:"^"===a?k.substring(0,C>>=1)+o+t+k.substring(C):o+(b?t:k+t))+n}}}function zt(t){return t+""}function Vt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function qt(t,e,n){function r(e){var n=t(e),r=i(n,1);return e-n1)for(;a=l)return-1;if(o=e.charCodeAt(u++),37===o){if(a=e.charAt(u++),i=A[a in _u?e.charAt(u++):a],!i||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){w.lastIndex=0;var r=w.exec(e.slice(n));return r?(t.w=E.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){_.lastIndex=0;var r=_.exec(e.slice(n));return r?(t.w=x.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){M.lastIndex=0;var r=M.exec(e.slice(n));return r?(t.m=O.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){C.lastIndex=0;var r=C.exec(e.slice(n));return r?(t.m=k.get(r[0].toLowerCase()),n+r[0].length):-1}function u(t,e,r){return n(t,T.c.toString(),e,r)}function s(t,e,r){return n(t,T.x.toString(),e,r)}function l(t,e,r){return n(t,T.X.toString(),e,r)}function c(t,e,n){var r=b.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var f=t.dateTime,d=t.date,p=t.time,h=t.periods,v=t.days,g=t.shortDays,m=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{yu=Vt;var e=new yu;return e._=t,r(e)}finally{yu=Date}}var r=e(t);return n.parse=function(t){try{yu=Vt;var e=r.parse(t);return e&&e._}finally{yu=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=pe;var b=pa.map(),_=Gt(v),x=$t(v),w=Gt(g),E=$t(g),C=Gt(m),k=$t(m),M=Gt(y),O=$t(y);h.forEach(function(t,e){b.set(t.toLowerCase(),e)});var T={a:function(t){return g[t.getDay()]},A:function(t){return v[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:e(f),d:function(t,e){return Xt(t.getDate(),e,2)},e:function(t,e){return Xt(t.getDate(),e,2)},H:function(t,e){return Xt(t.getHours(),e,2)},I:function(t,e){return Xt(t.getHours()%12||12,e,2)},j:function(t,e){return Xt(1+mu.dayOfYear(t),e,3)},L:function(t,e){return Xt(t.getMilliseconds(),e,3)},m:function(t,e){return Xt(t.getMonth()+1,e,2)},M:function(t,e){return Xt(t.getMinutes(),e,2)},p:function(t){return h[+(t.getHours()>=12)]},S:function(t,e){return Xt(t.getSeconds(),e,2)},U:function(t,e){return Xt(mu.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Xt(mu.mondayOfYear(t),e,2)},x:e(d),X:e(p),y:function(t,e){return Xt(t.getFullYear()%100,e,2)},Y:function(t,e){return Xt(t.getFullYear()%1e4,e,4)},Z:fe,"%":function(){return"%"}},A={a:r,A:o,b:i,B:a,c:u,d:ie,e:ie,H:ue,I:ue,j:ae,L:ce,m:oe,M:se,p:c,S:le,U:Qt,w:Zt,W:Jt,x:s,X:l,y:ee,Y:te,Z:ne,"%":de};return e}function Xt(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i68?1900:2e3)}function oe(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ie(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ae(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function ue(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function se(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function le(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ce(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function fe(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=Ea(e)/60|0,o=Ea(e)%60;return n+Xt(r,"0",2)+Xt(o,"0",2)}function de(t,e,n){wu.lastIndex=0;var r=wu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pe(t){for(var e=t.length,n=-1;++n=0?1:-1,u=a*n,s=Math.cos(e),l=Math.sin(e),c=i*l,f=o*s+c*Math.cos(u),d=c*a*Math.sin(u);Tu.add(Math.atan2(d,f)),r=t,o=s,i=l}var e,n,r,o,i;Au.point=function(a,u){Au.point=t,r=(e=a)*Ya,o=Math.cos(u=(n=u)*Ya/2+Wa/4),i=Math.sin(u)},Au.lineEnd=function(){t(e,n)}}function _e(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function xe(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function we(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Ee(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Ce(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ke(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Me(t){return[Math.atan2(t[1],t[0]),at(t[2])]}function Oe(t,e){return Ea(t[0]-e[0])=0;--u)o.point((f=c[u])[0],f[1])}else r(p.x,p.p.x,-1,o);p=p.p}p=p.o,c=p.z,h=!h}while(!p.v);o.lineEnd()}}}function Fe(t){if(e=t.length){for(var e,n,r=0,o=t[0];++r0){for(x||(i.polygonStart(),x=!0),i.lineStart();++a1&&2&e&&n.push(n.pop().concat(n.shift())),p.push(n.filter(He))}var p,h,v,g=e(i),m=o.invert(r[0],r[1]),y={point:a,lineStart:s,lineEnd:l,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=d,p=[],h=[]},polygonEnd:function(){y.point=a,y.lineStart=s,y.lineEnd=l,p=pa.merge(p);var t=qe(m,h);p.length?(x||(i.polygonStart(),x=!0),je(p,Ue,t,n,i)):t&&(x||(i.polygonStart(),x=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),x&&(i.polygonEnd(),x=!1),p=h=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},b=Be(),_=e(b),x=!1;return y}}function He(t){return t.length>1}function Be(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:M,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function Ue(t,e){return((t=t.x)[0]<0?t[1]-qa-Ba:qa-t[1])-((e=e.x)[0]<0?e[1]-qa-Ba:qa-e[1])}function We(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,a){var u=i>0?Wa:-Wa,s=Ea(i-n);Ea(s-Wa)0?qa:-qa),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(i,r),e=0):o!==u&&s>=Wa&&(Ea(n-o)Ba?Math.atan((Math.sin(e)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(e))*Math.sin(t))/(o*i*a)):(e+r)/2}function Ve(t,e,n,r){var o;if(null==t)o=n*qa,r.point(-Wa,o),r.point(0,o),r.point(Wa,o),r.point(Wa,0),r.point(Wa,-o),r.point(0,-o),r.point(-Wa,-o),r.point(-Wa,0),r.point(-Wa,o);else if(Ea(t[0]-e[0])>Ba){var i=t[0]=0?1:-1,E=w*x,C=E>Wa,k=h*b;if(Tu.add(Math.atan2(k*w*Math.sin(E),v*_+k*Math.cos(E))),i+=C?x+w*za:x,C^d>=n^m>=n){var M=we(_e(f),_e(t));ke(M);var O=we(o,M);ke(O);var T=(C^x>=0?-1:1)*at(O[2]);(r>T||r===T&&(M[0]||M[1]))&&(a+=C^x>=0?1:-1)}if(!g++)break;d=m,h=b,v=_,f=t}}return(i<-Ba||ii}function n(t){var n,i,s,l,c;return{lineStart:function(){l=s=!1,c=1},point:function(f,d){var p,h=[f,d],v=e(f,d),g=a?v?0:o(f,d):v?o(f+(f<0?Wa:-Wa),d):0;if(!n&&(l=s=v)&&t.lineStart(),v!==s&&(p=r(n,h),(Oe(n,p)||Oe(h,p))&&(h[0]+=Ba,h[1]+=Ba,v=e(h[0],h[1]))),v!==s)c=0,v?(t.lineStart(),p=r(h,n),t.point(p[0],p[1])):(p=r(n,h),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(u&&n&&a^v){var m;g&i||!(m=r(h,n,!0))||(c=0,a?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!v||n&&Oe(n,h)||t.point(h[0],h[1]),n=h,s=v,i=g},lineEnd:function(){s&&t.lineEnd(),n=null},clean:function(){return c|(l&&s)<<1}}}function r(t,e,n){var r=_e(t),o=_e(e),a=[1,0,0],u=we(r,o),s=xe(u,u),l=u[0],c=s-l*l;if(!c)return!n&&t;var f=i*s/c,d=-i*l/c,p=we(a,u),h=Ce(a,f),v=Ce(u,d);Ee(h,v);var g=p,m=xe(h,g),y=xe(g,g),b=m*m-y*(xe(h,h)-1);if(!(b<0)){var _=Math.sqrt(b),x=Ce(g,(-m-_)/y);if(Ee(x,h),x=Me(x),!n)return x;var w,E=t[0],C=e[0],k=t[1],M=e[1];C0^x[1]<(Ea(x[0]-E)Wa^(E<=x[0]&&x[0]<=C)){var S=Ce(g,(-m+_)/y);return Ee(S,h),[x,Me(S)]}}}function o(e,n){var r=a?t:Wa-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(t),a=i>0,u=Ea(i)>Ba,s=_n(t,6*Ya);return Ie(e,n,s,a?[0,-t]:[-Wa,t-Wa])}function Ke(t,e,n,r){return function(o){var i,a=o.a,u=o.b,s=a.x,l=a.y,c=u.x,f=u.y,d=0,p=1,h=c-s,v=f-l;if(i=t-s,h||!(i>0)){if(i/=h,h<0){if(i0){if(i>p)return;i>d&&(d=i)}if(i=n-s,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>d&&(d=i)}else if(h>0){if(i0)){if(i/=v,v<0){if(i0){if(i>p)return;i>d&&(d=i)}if(i=r-l,v||!(i<0)){if(i/=v,v<0){if(i>p)return;i>d&&(d=i)}else if(v>0){if(i0&&(o.a={x:s+d*h,y:l+d*v}),p<1&&(o.b={x:s+p*h,y:l+p*v}),o}}}}}}function Xe(t,e,n,r){function o(r,o){return Ea(r[0]-t)0?0:3:Ea(r[0]-n)0?2:1:Ea(r[1]-e)0?1:0:o>0?3:2}function i(t,e){return a(t.x,e.x)}function a(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(u){function s(t){for(var e=0,n=g.length,r=t[1],o=0;or&&ot(l,i,t)>0&&++e:i[1]<=r&&ot(l,i,t)<0&&--e,l=i;return 0!==e}function l(i,u,s,l){var c=0,f=0;if(null==i||(c=o(i,s))!==(f=o(u,s))||a(i,u)<0^s>0){do l.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+s+4)%4)!==f)}else l.point(u[0],u[1])}function c(o,i){return t<=o&&o<=n&&e<=i&&i<=r}function f(t,e){c(t,e)&&u.point(t,e)}function d(){A.point=h,g&&g.push(m=[]),C=!0,E=!1,x=w=NaN}function p(){v&&(h(y,b),_&&E&&O.rejoin(),v.push(O.buffer())),A.point=f,E&&u.lineEnd()}function h(t,e){t=Math.max(-zu,Math.min(zu,t)),e=Math.max(-zu,Math.min(zu,e));var n=c(t,e);if(g&&m.push([t,e]),C)y=t,b=e,_=n,C=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&E)u.point(t,e);else{var r={a:{x:x,y:w},b:{x:t,y:e}};T(r)?(E||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),k=!1):n&&(u.lineStart(),u.point(t,e),k=!1)}x=t,w=e,E=n}var v,g,m,y,b,_,x,w,E,C,k,M=u,O=Be(),T=Ke(t,e,n,r),A={point:f,lineStart:d,lineEnd:p,polygonStart:function(){u=O,v=[],g=[],k=!0},polygonEnd:function(){u=M,v=pa.merge(v);var e=s([t,r]),n=k&&e,o=v.length;(n||o)&&(u.polygonStart(),n&&(u.lineStart(),l(null,null,1,u),u.lineEnd()),o&&je(v,i,e,l,u),u.polygonEnd()),v=g=m=null}};return A}}function Ge(t){var e=0,n=Wa/3,r=dn(t),o=r(e,n);return o.parallels=function(t){return arguments.length?r(e=t[0]*Wa/180,n=t[1]*Wa/180):[e/Wa*180,n/Wa*180]},o}function $e(t,e){function n(t,e){var n=Math.sqrt(i-2*o*Math.sin(e))/o;return[n*Math.sin(t*=o),a-n*Math.cos(t)]}var r=Math.sin(t),o=(r+Math.sin(e))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/o,at((i-(t*t+n*n)*o*o)/(2*o))]},n}function Ze(){function t(t,e){qu+=o*t-r*e,r=t,o=e}var e,n,r,o;$u.point=function(i,a){$u.point=t,e=r=i,n=o=a},$u.lineEnd=function(){t(e,n)}}function Qe(t,e){tXu&&(Xu=t),eGu&&(Gu=e)}function Je(){function t(t,e){a.push("M",t,",",e,i)}function e(t,e){a.push("M",t,",",e),u.point=n}function n(t,e){a.push("L",t,",",e)}function r(){u.point=t}function o(){a.push("Z")}var i=tn(4.5),a=[],u={point:t,lineStart:function(){u.point=e},lineEnd:r,polygonStart:function(){u.lineEnd=o},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return i=tn(t),u},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return u}function tn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function en(t,e){Ru+=t,Du+=e,++Nu}function nn(){function t(t,r){var o=t-e,i=r-n,a=Math.sqrt(o*o+i*i);ju+=a*(e+t)/2,Fu+=a*(n+r)/2,Lu+=a,en(e=t,n=r)}var e,n;Qu.point=function(r,o){Qu.point=t,en(e=r,n=o)}}function rn(){Qu.point=en}function on(){function t(t,e){var n=t-r,i=e-o,a=Math.sqrt(n*n+i*i);ju+=a*(r+t)/2,Fu+=a*(o+e)/2,Lu+=a,a=o*t-r*e,Iu+=a*(r+t),Hu+=a*(o+e),Bu+=3*a,en(r=t,o=e)}var e,n,r,o;Qu.point=function(i,a){Qu.point=t,en(e=r=i,n=o=a)},Qu.lineEnd=function(){t(e,n)}}function an(t){function e(e,n){t.moveTo(e+a,n),t.arc(e,n,a,0,za)}function n(e,n){t.moveTo(e,n),u.point=r}function r(e,n){t.lineTo(e,n)}function o(){u.point=e}function i(){t.closePath()}var a=4.5,u={point:e,lineStart:function(){u.point=n},lineEnd:o,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=o,u.point=e},pointRadius:function(t){return a=t,u},result:M};return u}function un(t){function e(t){return(u?r:n)(t)}function n(e){return cn(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){b=NaN,C.point=i,e.lineStart()}function i(n,r){var i=_e([n,r]),a=t(n,r);o(b,_,y,x,w,E,b=a[0],_=a[1],y=n,x=i[0],w=i[1],E=i[2],u,e),e.point(b,_)}function a(){C.point=n,e.lineEnd()}function s(){r(),C.point=l,C.lineEnd=c}function l(t,e){i(f=t,d=e),p=b,h=_,v=x,g=w,m=E,C.point=i}function c(){o(b,_,y,x,w,E,p,h,f,v,g,m,u,e),C.lineEnd=a,a()}var f,d,p,h,v,g,m,y,b,_,x,w,E,C={point:n,lineStart:r,lineEnd:a,polygonStart:function(){e.polygonStart(),C.lineStart=s},polygonEnd:function(){e.polygonEnd(),C.lineStart=r}};return C}function o(e,n,r,u,s,l,c,f,d,p,h,v,g,m){var y=c-e,b=f-n,_=y*y+b*b;if(_>4*i&&g--){var x=u+p,w=s+h,E=l+v,C=Math.sqrt(x*x+w*w+E*E),k=Math.asin(E/=C),M=Ea(Ea(E)-1)i||Ea((y*S+b*P)/_-.5)>.3||u*p+s*h+l*v0&&16,e):Math.sqrt(i)},e}function sn(t){var e=un(function(e,n){return t([e*Ka,n*Ka])});return function(t){return pn(e(t))}}function ln(t){this.stream=t}function cn(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function fn(t){return dn(function(){return t})()}function dn(t){function e(t){return t=u(t[0]*Ya,t[1]*Ya),[t[0]*d+s,l-t[1]*d]}function n(t){return t=u.invert((t[0]-s)/d,(l-t[1])/d),t&&[t[0]*Ka,t[1]*Ka]}function r(){u=De(a=gn(m,y,b),i);var t=i(v,g);return s=p-t[0]*d,l=h+t[1]*d,o()}function o(){return c&&(c.valid=!1,c=null),e}var i,a,u,s,l,c,f=un(function(t,e){return t=i(t,e),[t[0]*d+s,l-t[1]*d]}),d=150,p=480,h=250,v=0,g=0,m=0,y=0,b=0,_=Wu,x=E,w=null,C=null;return e.stream=function(t){return c&&(c.valid=!1),c=pn(_(a,f(x(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(_=null==t?(w=t,Wu):Ye((w=+t)*Ya),o()):w},e.clipExtent=function(t){return arguments.length?(C=t,x=t?Xe(t[0][0],t[0][1],t[1][0],t[1][1]):E,o()):C},e.scale=function(t){return arguments.length?(d=+t,r()):d},e.translate=function(t){return arguments.length?(p=+t[0],h=+t[1],r()):[p,h]},e.center=function(t){return arguments.length?(v=t[0]%360*Ya,g=t[1]%360*Ya,r()):[v*Ka,g*Ka]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Ya,y=t[1]%360*Ya,b=t.length>2?t[2]%360*Ya:0,r()):[m*Ka,y*Ka,b*Ka]},pa.rebind(e,f,"precision"),function(){return i=t.apply(this,arguments),e.invert=i.invert&&n,r()}}function pn(t){return cn(t,function(e,n){t.point(e*Ya,n*Ya)})}function hn(t,e){return[t,e]}function vn(t,e){return[t>Wa?t-za:t<-Wa?t+za:t,e]}function gn(t,e,n){return t?e||n?De(yn(t),bn(e,n)):yn(t):e||n?bn(e,n):vn}function mn(t){return function(e,n){return e+=t,[e>Wa?e-za:e<-Wa?e+za:e,n]}}function yn(t){var e=mn(t);return e.invert=mn(-t),e}function bn(t,e){function n(t,e){var n=Math.cos(e),u=Math.cos(t)*n,s=Math.sin(t)*n,l=Math.sin(e),c=l*r+u*o;return[Math.atan2(s*i-c*a,u*r-l*o),at(c*i+s*a)]}var r=Math.cos(t),o=Math.sin(t),i=Math.cos(e),a=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),u=Math.cos(t)*n,s=Math.sin(t)*n,l=Math.sin(e),c=l*i-s*a;return[Math.atan2(s*i+l*a,u*r+c*o),at(c*r-u*o)]},n}function _n(t,e){var n=Math.cos(t),r=Math.sin(t);return function(o,i,a,u){var s=a*e;null!=o?(o=xn(n,o),i=xn(n,i),(a>0?oi)&&(o+=a*za)):(o=t+a*za,i=t-.5*s);for(var l,c=o;a>0?c>i:c0?e<-qa+Ba&&(e=-qa+Ba):e>qa-Ba&&(e=qa-Ba);var n=a/Math.pow(o(e),i);return[n*Math.sin(i*t),a-n*Math.cos(i*t)]}var r=Math.cos(t),o=function(t){return Math.tan(Wa/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(o(e)/o(t)),a=r*Math.pow(o(t),i)/i;return i?(n.invert=function(t,e){var n=a-e,r=rt(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(a/r,1/i))-qa]},n):Pn}function Sn(t,e){function n(t,e){var n=i-e;return[n*Math.sin(o*t),i-n*Math.cos(o*t)]}var r=Math.cos(t),o=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/o+t;return Ea(o)1&&ot(t[n[r-2]],t[n[r-1]],t[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function Ln(t,e){return t[0]-e[0]||t[1]-e[1]}function In(t,e,n){ -return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Hn(t,e,n,r){var o=t[0],i=n[0],a=e[0]-o,u=r[0]-i,s=t[1],l=n[1],c=e[1]-s,f=r[1]-l,d=(u*(s-l)-f*(o-i))/(f*a-u*c);return[o+d*a,s+d*c]}function Bn(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function Un(){sr(this),this.edge=this.site=this.circle=null}function Wn(t){var e=ds.pop()||new Un;return e.site=t,e}function zn(t){Jn(t),ls.remove(t),ds.push(t),sr(t)}function Vn(t){var e=t.circle,n=e.x,r=e.cy,o={x:n,y:r},i=t.P,a=t.N,u=[t];zn(t);for(var s=i;s.circle&&Ea(n-s.circle.x)Ba)u=u.L;else{if(o=i-Kn(u,a),!(o>Ba)){r>-Ba?(e=u.P,n=u):o>-Ba?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}var s=Wn(t);if(ls.insert(e,s),e||n){if(e===n)return Jn(e),n=Wn(e.site),ls.insert(s,n),s.edge=n.edge=rr(e.site,s.site),Qn(e),void Qn(n);if(!n)return void(s.edge=rr(e.site,s.site));Jn(e),Jn(n);var l=e.site,c=l.x,f=l.y,d=t.x-c,p=t.y-f,h=n.site,v=h.x-c,g=h.y-f,m=2*(d*g-p*v),y=d*d+p*p,b=v*v+g*g,_={x:(g*y-p*b)/m+c,y:(d*b-v*y)/m+f};ir(n.edge,l,h,_),s.edge=rr(l,t,null,_),n.edge=rr(t,h,null,_),Qn(e),Qn(n)}}function Yn(t,e){var n=t.site,r=n.x,o=n.y,i=o-e;if(!i)return r;var a=t.P;if(!a)return-(1/0);n=a.site;var u=n.x,s=n.y,l=s-e;if(!l)return u;var c=u-r,f=1/i-1/l,d=c/l;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*l)-s+l/2+o-i/2)))/f+r:(r+u)/2}function Kn(t,e){var n=t.N;if(n)return Yn(n,e);var r=t.site;return r.y===e?r.x:1/0}function Xn(t){this.site=t,this.edges=[]}function Gn(t){for(var e,n,r,o,i,a,u,s,l,c,f=t[0][0],d=t[1][0],p=t[0][1],h=t[1][1],v=ss,g=v.length;g--;)if(i=v[g],i&&i.prepare())for(u=i.edges,s=u.length,a=0;aBa||Ea(o-n)>Ba)&&(u.splice(a,0,new ar(or(i.site,c,Ea(r-f)Ba?{x:f,y:Ea(e-f)Ba?{x:Ea(n-h)Ba?{x:d,y:Ea(e-d)Ba?{x:Ea(n-p)=-Ua)){var p=s*s+l*l,h=c*c+f*f,v=(f*p-l*h)/d,g=(s*h-c*p)/d,f=g+u,m=ps.pop()||new Zn;m.arc=t,m.site=o,m.x=v+a,m.y=f+Math.sqrt(v*v+g*g),m.cy=f,t.circle=m;for(var y=null,b=fs._;b;)if(m.y=u)return;if(d>h){if(i){if(i.y>=l)return}else i={x:g,y:s};n={x:g,y:l}}else{if(i){if(i.y1)if(d>h){if(i){if(i.y>=l)return}else i={x:(s-o)/r,y:s};n={x:(l-o)/r,y:l}}else{if(i){if(i.y=u)return}else i={x:a,y:r*a+o};n={x:u,y:r*u+o}}else{if(i){if(i.xi||f>a||d=_,E=n>=x,C=E<<1|w,k=C+4;Ci&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:wr(n,r)})),i=gs.lastIndex;return i=0&&!(n=pa.interpolators[r](t,e)););return n}function kr(t,e){var n,r=[],o=[],i=t.length,a=e.length,u=Math.min(t.length,e.length);for(n=0;n=1?1:t(e)}}function Or(t){return function(e){return 1-t(1-e)}}function Tr(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Ar(t){return t*t}function Sr(t){return t*t*t}function Pr(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function Rr(t){return function(e){return Math.pow(e,t)}}function Dr(t){return 1-Math.cos(t*qa)}function Nr(t){return Math.pow(2,10*(t-1))}function jr(t){return 1-Math.sqrt(1-t*t)}function Fr(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/za*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*za/e)}}function Lr(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Ir(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Hr(t,e){t=pa.hcl(t),e=pa.hcl(e);var n=t.h,r=t.c,o=t.l,i=e.h-n,a=e.c-r,u=e.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360),function(t){return vt(n+i*t,r+a*t,o+u*t)+""}}function Br(t,e){t=pa.hsl(t),e=pa.hsl(e);var n=t.h,r=t.s,o=t.l,i=e.h-n,a=e.s-r,u=e.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360),function(t){return pt(n+i*t,r+a*t,o+u*t)+""}}function Ur(t,e){t=pa.lab(t),e=pa.lab(e);var n=t.l,r=t.a,o=t.b,i=e.l-n,a=e.a-r,u=e.b-o;return function(t){return mt(n+i*t,r+a*t,o+u*t)+""}}function Wr(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function zr(t){var e=[t.a,t.b],n=[t.c,t.d],r=qr(e),o=Vr(e,n),i=qr(Yr(n,e,-o))||0;e[0]*n[1]180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(Kr(n)+"rotate(",null,")")-2,x:wr(t,e)})):e&&n.push(Kr(n)+"rotate("+e+")")}function $r(t,e,n,r){t!==e?r.push({i:n.push(Kr(n)+"skewX(",null,")")-2,x:wr(t,e)}):e&&n.push(Kr(n)+"skewX("+e+")")}function Zr(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var o=n.push(Kr(n)+"scale(",null,",",null,")");r.push({i:o-4,x:wr(t[0],e[0])},{i:o-2,x:wr(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(Kr(n)+"scale("+e+")")}function Qr(t,e){var n=[],r=[];return t=pa.transform(t),e=pa.transform(e),Xr(t.translate,e.translate,n,r),Gr(t.rotate,e.rotate,n,r),$r(t.skew,e.skew,n,r),Zr(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,o=-1,i=r.length;++o=0;)n.push(o[r])}function fo(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(i=t.children)&&(o=i.length))for(var o,i,a=-1;++ao&&(r=n,o=e);return r}function Eo(t){return t.reduce(Co,0)}function Co(t,e){return t+e[1]}function ko(t,e){return Mo(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Mo(t,e){for(var n=-1,r=+t[0],o=(t[1]-r)/e,i=[];++n<=e;)i[n]=o*n+r;return i}function Oo(t){return[pa.min(t),pa.max(t)]}function To(t,e){return t.value-e.value}function Ao(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function So(t,e){t._pack_next=e,e._pack_prev=t}function Po(t,e){var n=e.x-t.x,r=e.y-t.y,o=t.r+e.r;return.999*o*o>n*n+r*r}function Ro(t){function e(t){c=Math.min(t.x-t.r,c),f=Math.max(t.x+t.r,f),d=Math.min(t.y-t.r,d),p=Math.max(t.y+t.r,p)}if((n=t.children)&&(l=n.length)){var n,r,o,i,a,u,s,l,c=1/0,f=-(1/0),d=1/0,p=-(1/0);if(n.forEach(Do),r=n[0],r.x=-r.r,r.y=0,e(r),l>1&&(o=n[1],o.x=o.r,o.y=0,e(o),l>2))for(i=n[2],Fo(r,o,i),e(i),Ao(r,i),r._pack_prev=i,Ao(i,o),o=r._pack_next,a=3;a=0;)e=o[i],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function Wo(t,e,n){return t.a.parent===e.parent?t.a:n}function zo(t){return 1+pa.max(t,function(t){return t.y})}function Vo(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function qo(t){var e=t.children;return e&&e.length?qo(e[0]):t}function Yo(t){var e,n=t.children;return n&&(e=n.length)?Yo(n[e-1]):t}function Ko(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Xo(t,e){var n=t.x+e[3],r=t.y+e[0],o=t.dx-e[1]-e[3],i=t.dy-e[0]-e[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 Go(t){var e=t[0],n=t[t.length-1];return e2?ti:Zo,s=r?to:Jr;return a=o(t,e,s,n),u=o(e,t,s,Cr),i}function i(t){return a(t)}var a,u;return i.invert=function(t){return u(t)},i.domain=function(e){return arguments.length?(t=e.map(Number),o()):t},i.range=function(t){return arguments.length?(e=t,o()):e},i.rangeRound=function(t){return i.range(t).interpolate(Wr)},i.clamp=function(t){return arguments.length?(r=t,o()):r},i.interpolate=function(t){return arguments.length?(n=t,o()):n},i.ticks=function(e){return ii(t,e)},i.tickFormat=function(e,n){return ai(t,e,n)},i.nice=function(e){return ri(t,e),o()},i.copy=function(){return ei(t,e,n,r)},o()}function ni(t,e){return pa.rebind(t,e,"range","rangeRound","interpolate","clamp")}function ri(t,e){return Qo(t,Jo(oi(t,e)[2])),Qo(t,Jo(oi(t,e)[2])),t}function oi(t,e){null==e&&(e=10);var n=Go(t),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),i=e/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 ii(t,e){return pa.range.apply(pa,oi(t,e))}function ai(t,e,n){var r=oi(t,e);if(n){var o=vu.exec(n);if(o.shift(),"s"===o[8]){var i=pa.formatPrefix(Math.max(Ea(r[0]),Ea(r[1])));return o[7]||(o[7]="."+ui(i.scale(r[2]))),o[8]="f",n=pa.format(o.join("")),function(t){return n(i.scale(t))+i.symbol}}o[7]||(o[7]="."+si(o[8],r)),n=o.join("")}else n=",."+ui(r[2])+"f";return pa.format(n)}function ui(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function si(t,e){var n=ui(e[2]);return t in Ts?Math.abs(n-ui(Math.max(Ea(e[0]),Ea(e[1]))))+ +("e"!==t):n-2*("%"===t)}function li(t,e,n,r){function o(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function i(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(o(e))}return a.invert=function(e){return i(t.invert(e))},a.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(e=+n,t.domain(r.map(o)),a):e},a.nice=function(){var e=Qo(r.map(o),n?Math:Ss);return t.domain(e),r=e.map(i),a},a.ticks=function(){var t=Go(r),a=[],u=t[0],s=t[1],l=Math.floor(o(u)),c=Math.ceil(o(s)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;l0;d--)a.push(i(l)*d);for(l=0;a[l]s;c--);a=a.slice(l,c)}return a},a.tickFormat=function(t,n){if(!arguments.length)return As;arguments.length<2?n=As:"function"!=typeof n&&(n=pa.format(n));var r=Math.max(1,e*t/a.ticks().length);return function(t){var a=t/i(Math.round(o(t)));return a*e0?o[n-1]:t[0],n0?0:1}function Ci(t,e,n,r,o){var i=t[0]-e[0],a=t[1]-e[1],u=(o?r:-r)/Math.sqrt(i*i+a*a),s=u*a,l=-u*i,c=t[0]+s,f=t[1]+l,d=e[0]+s,p=e[1]+l,h=(c+d)/2,v=(f+p)/2,g=d-c,m=p-f,y=g*g+m*m,b=n-r,_=c*p-d*f,x=(m<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-_*_)),w=(_*m-g*x)/y,E=(-_*g-m*x)/y,C=(_*m+g*x)/y,k=(-_*g+m*x)/y,M=w-h,O=E-v,T=C-h,A=k-v;return M*M+O*O>T*T+A*A&&(w=C,E=k),[[w-s,E-l],[w*n/b,E*n/b]]}function ki(t){function e(e){function a(){l.push("M",i(t(c),u))}for(var s,l=[],c=[],f=-1,d=e.length,p=Pt(n),h=Pt(r);++f1?t.join("L"):t+"Z"}function Oi(t){return t.join("L")+"Z"}function Ti(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e1&&o.push("H",r[0]),o.join("")}function Ai(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e1){u=e[1],i=t[s],s++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-u[0])+","+(i[1]-u[1])+","+i[0]+","+i[1];for(var l=2;l9&&(o=3*e/Math.sqrt(o),a[u]=o*n,a[u+1]=o*r));for(u=-1;++u<=s;)o=(t[Math.min(s,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+a[u]*a[u])),i.push([o||0,a[u]*o||0]);return i}function qi(t){return t.length<3?Mi(t):t[0]+Ni(t,Vi(t))}function Yi(t){for(var e,n,r,o=-1,i=t.length;++o0;)d[--u].call(t,a);if(i>=1)return v.event&&v.event.end.call(t,t.__data__,e),--p.count?delete p[r]:delete t[n],1}var s,l,c,f,d,p=t[n]||(t[n]={active:0,count:0}),v=p[r];v||(s=o.time,l=Ft(i,0,s),v=p[r]={tween:new h,time:s,timer:l,delay:o.delay,duration:o.duration,ease:o.ease,index:e},o=null,++p.count)}function aa(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function ua(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function sa(t){return t.toISOString()}function la(t,e,n){function r(e){return t(e)}function o(t,n){var r=t[1]-t[0],o=r/n,i=pa.bisect(el,o);return i==el.length?[e.year,oi(t.map(function(t){return t/31536e6}),n)[2]]:i?e[o/el[i-1]1?{floor:function(e){for(;n(e=t.floor(e));)e=ca(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=ca(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Go(r.domain()),i=null==t?o(n,10):"number"==typeof t?o(n,t):!t.range&&[{range:t},e];return i&&(t=i[0],e=i[1]),t.range(n[0],ca(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return la(t.copy(),e,n)},ni(r,t)}function ca(t){return new Date(t)}function fa(t){return JSON.parse(t.responseText)}function da(t){var e=ga.createRange();return e.selectNode(ga.body),e.createContextualFragment(t.responseText)}var pa={version:"3.5.17"},ha=[].slice,va=function(t){return ha.call(t)},ga=this.document;if(ga)try{va(ga.documentElement.childNodes)[0].nodeType}catch(t){va=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),ga)try{ga.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var ma=this.Element.prototype,ya=ma.setAttribute,ba=ma.setAttributeNS,_a=this.CSSStyleDeclaration.prototype,xa=_a.setProperty;ma.setAttribute=function(t,e){ya.call(this,t,e+"")},ma.setAttributeNS=function(t,e,n){ba.call(this,t,e,n+"")},_a.setProperty=function(t,e,n){xa.call(this,t,e+"",n)}}pa.ascending=u,pa.descending=function(t,e){return et?1:e>=t?0:NaN},pa.min=function(t,e){var n,r,o=-1,i=t.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++or&&(n=r)}else{for(;++o=r){n=r;break}for(;++or&&(n=r)}return n},pa.max=function(t,e){var n,r,o=-1,i=t.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++on&&(n=r)}else{for(;++o=r){n=r;break}for(;++on&&(n=r)}return n},pa.extent=function(t,e){var n,r,o,i=-1,a=t.length;if(1===arguments.length){for(;++i=r){n=o=r;break}for(;++ir&&(n=r),o=r){n=o=r;break}for(;++ir&&(n=r),o1)return a/(c-1)},pa.deviation=function(){var t=pa.variance.apply(this,arguments);return t?Math.sqrt(t):t};var wa=c(u);pa.bisectLeft=wa.left,pa.bisect=pa.bisectRight=wa.right,pa.bisector=function(t){return c(1===t.length?function(e,n){return u(t(e),n)}:t)},pa.shuffle=function(t,e,n){(i=arguments.length)<3&&(n=t.length,i<2&&(e=0));for(var r,o,i=n-e;i;)o=Math.random()*i--|0,r=t[i+e],t[i+e]=t[o+e],t[o+e]=r;return t},pa.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},pa.pairs=function(t){for(var e,n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n=0;)for(r=t[o],e=r.length;--e>=0;)n[--a]=r[e];return n};var Ea=Math.abs;pa.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var r,o=[],i=d(Ea(n)),a=-1;if(t*=i,e*=i,n*=i,n<0)for(;(r=t+n*++a)>e;)o.push(r/i);else for(;(r=t+n*++a)=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var s,l,c,f,d=-1,p=a.length,v=i[u++],g=new h;++d=i.length)return t;var r=[],o=a[n++];return t.forEach(function(t,o){r.push({key:t,values:e(o,n)})}),o?r.sort(function(t,e){return o(t.key,e.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(e,n){return t(n,e,0)},o.entries=function(n){return e(t(pa.map,n,0),0)},o.key=function(t){return i.push(t),o},o.sortKeys=function(t){return a[i.length-1]=t,o},o.sortValues=function(t){return n=t,o},o.rollup=function(t){return r=t,o},o},pa.set=function(t){var e=new w;if(t)for(var n=0,r=t.length;n=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},pa.event=null,pa.requote=function(t){return t.replace(Oa,"\\$&")};var Oa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Ta={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},Aa=function(t,e){return e.querySelector(t)},Sa=function(t,e){return e.querySelectorAll(t)},Pa=function(t,e){var n=t.matches||t[k(t,"matchesSelector")];return(Pa=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(Aa=function(t,e){return Sizzle(t,e)[0]||null},Sa=Sizzle,Pa=Sizzle.matchesSelector),pa.selection=function(){return pa.select(ga.documentElement)};var Ra=pa.selection.prototype=[];Ra.select=function(t){var e,n,r,o,i=[];t=D(t);for(var a=-1,u=this.length;++a=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Na.hasOwnProperty(n)?{space:Na[n],local:t}:t}},Ra.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=pa.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(j(e,t[e]));return this}return this.each(j(t,e))},Ra.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=I(t)).length,o=-1;if(e=n.classList){for(;++o=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Ra.sort=function(t){t=K.apply(this,arguments);for(var e=-1,n=this.length;++e0&&(e=e.transition().duration(O)),e.call(t.event)}function u(){x&&x.domain(_.range().map(function(t){return(t-C.x)/C.k}).map(_.invert)),E&&E.domain(w.range().map(function(t){return(t-C.y)/C.k}).map(w.invert))}function s(t){T++||t({type:"zoomstart"})}function l(t){u(),t({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function c(t){--T||(t({type:"zoomend"}),g=null)}function f(){function t(){u=1,o(pa.mouse(r),d),l(i)}function n(){f.on(R,null).on(D,null),p(u),c(i)}var r=this,i=j.of(r,arguments),u=0,f=pa.select(a(r)).on(R,t).on(D,n),d=e(pa.mouse(r)),p=tt(r);qs.call(r),s(i)}function d(){function t(){var t=pa.touches(h);return p=C.k,t.forEach(function(t){t.identifier in g&&(g[t.identifier]=e(t))}),t}function n(){var e=pa.event.target;pa.select(e).on(_,a).on(x,u),w.push(e);for(var n=pa.event.changedTouches,r=0,o=n.length;r1){var c=s[0],f=s[1],d=c[0]-f[0],p=c[1]-f[1];m=d*d+p*p}}function a(){var t,e,n,i,a=pa.touches(h);qs.call(h);for(var u=0,s=a.length;u=l)return a;if(o)return o=!1,i;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,gu=pa.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=pa.round(t,Bt(t,e))).toFixed(Math.max(0,Math.min(20,Bt(t*(1+1e-15),e))))}}),mu=pa.time={},yu=Date;Vt.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(){bu.setUTCDate.apply(this._,arguments)},setDay:function(){bu.setUTCDay.apply(this._,arguments)},setFullYear:function(){bu.setUTCFullYear.apply(this._,arguments)},setHours:function(){bu.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){bu.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){bu.setUTCMinutes.apply(this._,arguments)},setMonth:function(){bu.setUTCMonth.apply(this._,arguments)},setSeconds:function(){bu.setUTCSeconds.apply(this._,arguments)},setTime:function(){bu.setTime.apply(this._,arguments)}};var bu=Date.prototype;mu.year=qt(function(t){return t=mu.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),mu.years=mu.year.range,mu.years.utc=mu.year.utc.range,mu.day=qt(function(t){var e=new yu(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),mu.days=mu.day.range,mu.days.utc=mu.day.utc.range,mu.dayOfYear=function(t){var e=mu.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=mu[t]=qt(function(t){return(t=mu.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=mu.year(t).getDay();return Math.floor((mu.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});mu[t+"s"]=n.range,mu[t+"s"].utc=n.utc.range,mu[t+"OfYear"]=function(t){var n=mu.year(t).getDay();return Math.floor((mu.dayOfYear(t)+(n+e)%7)/7)}}),mu.week=mu.sunday,mu.weeks=mu.sunday.range,mu.weeks.utc=mu.sunday.utc.range,mu.weekOfYear=mu.sundayOfYear;var _u={"-":"",_:" ",0:"0"},xu=/^\s*\d+/,wu=/^%/;pa.locale=function(t){return{numberFormat:Wt(t),timeFormat:Kt(t)}};var Eu=pa.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"]});pa.format=Eu.numberFormat,pa.geo={},he.prototype={s:0,t:0,add:function(t){ve(t,this.t,Cu),ve(Cu.s,this.s,this),this.s?this.t+=Cu.t:this.s=Cu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Cu=new he;pa.geo.stream=function(t,e){t&&ku.hasOwnProperty(t.type)?ku[t.type](t,e):ge(t,e)};var ku={Feature:function(t,e){ge(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++rp&&(p=e)}function e(e,n){var r=_e([e*Ya,n*Ya]);if(m){var o=we(m,r),i=[o[1],-o[0],0],a=we(i,o);ke(a),a=Me(a);var s=e-h,l=s>0?1:-1,v=a[0]*Ka*l,g=Ea(s)>180;if(g^(l*hp&&(p=y)}else if(v=(v+360)%360-180,g^(l*hp&&(p=n);g?eu(c,d)&&(d=e):u(e,d)>u(c,d)&&(c=e):d>=c?(ed&&(d=e)):e>h?u(c,e)>u(c,d)&&(d=e):u(e,d)>u(c,d)&&(c=e)}else t(e,n);m=r,h=e}function n(){x.point=e}function r(){_[0]=c,_[1]=d,x.point=t,m=null}function o(t,n){if(m){var r=t-h;y+=Ea(r)>180?r+(r>0?360:-360):r}else v=t,g=n;Au.point(t,n),e(t,n)}function i(){Au.lineStart()}function a(){o(v,g),Au.lineEnd(),Ea(y)>Ba&&(c=-(d=180)),_[0]=c,_[1]=d,m=null}function u(t,e){return(e-=t)<0?e+360:e}function s(t,e){return t[0]-e[0]}function l(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tBa?p=90:y<-Ba&&(f=-90),_[0]=c,_[1]=d}};return function(t){p=d=-(c=f=1/0),b=[],pa.geo.stream(t,x);var e=b.length;if(e){b.sort(s);for(var n,r=1,o=b[0],i=[o];ru(o[0],o[1])&&(o[1]=n[1]),u(n[0],o[1])>u(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,h=-(1/0),e=i.length-1,r=0,o=i[e];r<=e;o=n,++r)n=i[r],(a=u(o[1],n[0]))>h&&(h=a,c=n[0],d=o[1])}return b=_=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[d,p]]}}(),pa.geo.centroid=function(t){Su=Pu=Ru=Du=Nu=ju=Fu=Lu=Iu=Hu=Bu=0,pa.geo.stream(t,Uu);var e=Iu,n=Hu,r=Bu,o=e*e+n*n+r*r;return o=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?u:i).invert(t)},t.stream=function(t){var e=i.stream(t),n=a.stream(t),r=u.stream(t);return{point:function(t,o){e.point(t,o),n.point(t,o),r.point(t,o)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},t.precision=function(e){return arguments.length?(i.precision(e),a.precision(e),u.precision(e),t):i.precision()},t.scale=function(e){return arguments.length?(i.scale(e),a.scale(.35*e),u.scale(e),t.translate(i.translate())):i.scale()},t.translate=function(e){if(!arguments.length)return i.translate();var l=i.scale(),c=+e[0],f=+e[1];return n=i.translate(e).clipExtent([[c-.455*l,f-.238*l],[c+.455*l,f+.238*l]]).stream(s).point,r=a.translate([c-.307*l,f+.201*l]).clipExtent([[c-.425*l+Ba,f+.12*l+Ba],[c-.214*l-Ba,f+.234*l-Ba]]).stream(s).point,o=u.translate([c-.205*l,f+.212*l]).clipExtent([[c-.214*l+Ba,f+.166*l+Ba],[c-.115*l-Ba,f+.234*l-Ba]]).stream(s).point,t},t.scale(1070)};var Vu,qu,Yu,Ku,Xu,Gu,$u={point:M,lineStart:M,lineEnd:M,polygonStart:function(){qu=0,$u.lineStart=Ze},polygonEnd:function(){$u.lineStart=$u.lineEnd=$u.point=M,Vu+=Ea(qu/2)}},Zu={point:Qe,lineStart:M,lineEnd:M,polygonStart:M,polygonEnd:M},Qu={point:en,lineStart:nn,lineEnd:rn,polygonStart:function(){Qu.lineStart=on},polygonEnd:function(){ -Qu.point=en,Qu.lineStart=nn,Qu.lineEnd=rn}};pa.geo.path=function(){function t(t){return t&&("function"==typeof u&&i.pointRadius(+u.apply(this,arguments)),a&&a.valid||(a=o(i)),pa.geo.stream(t,a)),i.result()}function e(){return a=null,t}var n,r,o,i,a,u=4.5;return t.area=function(t){return Vu=0,pa.geo.stream(t,o($u)),Vu},t.centroid=function(t){return Ru=Du=Nu=ju=Fu=Lu=Iu=Hu=Bu=0,pa.geo.stream(t,o(Qu)),Bu?[Iu/Bu,Hu/Bu]:Lu?[ju/Lu,Fu/Lu]:Nu?[Ru/Nu,Du/Nu]:[NaN,NaN]},t.bounds=function(t){return Xu=Gu=-(Yu=Ku=1/0),pa.geo.stream(t,o(Zu)),[[Yu,Ku],[Xu,Gu]]},t.projection=function(t){return arguments.length?(o=(n=t)?t.stream||sn(t):E,e()):n},t.context=function(t){return arguments.length?(i=null==(r=t)?new Je:new an(t),"function"!=typeof u&&i.pointRadius(u),e()):r},t.pointRadius=function(e){return arguments.length?(u="function"==typeof e?e:(i.pointRadius(+e),+e),t):u},t.projection(pa.geo.albersUsa()).context(null)},pa.geo.transform=function(t){return{stream:function(e){var n=new ln(e);for(var r in t)n[r]=t[r];return n}}},ln.prototype={point:function(t,e){this.stream.point(t,e)},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()}},pa.geo.projection=fn,pa.geo.projectionMutator=dn,(pa.geo.equirectangular=function(){return fn(hn)}).raw=hn.invert=hn,pa.geo.rotation=function(t){function e(e){return e=t(e[0]*Ya,e[1]*Ya),e[0]*=Ka,e[1]*=Ka,e}return t=gn(t[0]%360*Ya,t[1]*Ya,t.length>2?t[2]*Ya:0),e.invert=function(e){return e=t.invert(e[0]*Ya,e[1]*Ya),e[0]*=Ka,e[1]*=Ka,e},e},vn.invert=hn,pa.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=gn(-t[0]*Ya,-t[1]*Ya,0).invert,o=[];return n(null,null,1,{point:function(t,n){o.push(t=e(t,n)),t[0]*=Ka,t[1]*=Ka}}),{type:"Polygon",coordinates:[o]}}var e,n,r=[0,0],o=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=_n((e=+r)*Ya,o*Ya),t):e},t.precision=function(r){return arguments.length?(n=_n(e*Ya,(o=+r)*Ya),t):o},t.angle(90)},pa.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Ya,o=t[1]*Ya,i=e[1]*Ya,a=Math.sin(r),u=Math.cos(r),s=Math.sin(o),l=Math.cos(o),c=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-s*f*u)*n),s*c+l*f*u)},pa.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return pa.range(Math.ceil(i/g)*g,o,g).map(d).concat(pa.range(Math.ceil(l/m)*m,s,m).map(p)).concat(pa.range(Math.ceil(r/h)*h,n,h).filter(function(t){return Ea(t%g)>Ba}).map(c)).concat(pa.range(Math.ceil(u/v)*v,a,v).filter(function(t){return Ea(t%m)>Ba}).map(f))}var n,r,o,i,a,u,s,l,c,f,d,p,h=10,v=h,g=90,m=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[d(i).concat(p(s).slice(1),d(o).reverse().slice(1),p(l).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(i=+e[0][0],o=+e[1][0],l=+e[0][1],s=+e[1][1],i>o&&(e=i,i=o,o=e),l>s&&(e=l,l=s,s=e),t.precision(y)):[[i,l],[o,s]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),u>a&&(e=u,u=a,a=e),t.precision(y)):[[r,u],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(g=+e[0],m=+e[1],t):[g,m]},t.minorStep=function(e){return arguments.length?(h=+e[0],v=+e[1],t):[h,v]},t.precision=function(e){return arguments.length?(y=+e,c=wn(u,a,90),f=En(r,n,y),d=wn(l,s,90),p=En(i,o,y),t):y},t.majorExtent([[-180,-90+Ba],[180,90-Ba]]).minorExtent([[-180,-80-Ba],[180,80+Ba]])},pa.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||o.apply(this,arguments)]}}var e,n,r=Cn,o=kn;return t.distance=function(){return pa.geo.distance(e||r.apply(this,arguments),n||o.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(o=e,n="function"==typeof e?null:e,t):o},t.precision=function(){return arguments.length?t:0},t},pa.geo.interpolate=function(t,e){return Mn(t[0]*Ya,t[1]*Ya,e[0]*Ya,e[1]*Ya)},pa.geo.length=function(t){return Ju=0,pa.geo.stream(t,ts),Ju};var Ju,ts={sphere:M,point:M,lineStart:On,lineEnd:M,polygonStart:M,polygonEnd:M},es=Tn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(pa.geo.azimuthalEqualArea=function(){return fn(es)}).raw=es;var ns=Tn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},E);(pa.geo.azimuthalEquidistant=function(){return fn(ns)}).raw=ns,(pa.geo.conicConformal=function(){return Ge(An)}).raw=An,(pa.geo.conicEquidistant=function(){return Ge(Sn)}).raw=Sn;var rs=Tn(function(t){return 1/t},Math.atan);(pa.geo.gnomonic=function(){return fn(rs)}).raw=rs,Pn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-qa]},(pa.geo.mercator=function(){return Rn(Pn)}).raw=Pn;var os=Tn(function(){return 1},Math.asin);(pa.geo.orthographic=function(){return fn(os)}).raw=os;var is=Tn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(pa.geo.stereographic=function(){return fn(is)}).raw=is,Dn.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-qa]},(pa.geo.transverseMercator=function(){var t=Rn(Dn),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=Dn,pa.geom={},pa.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,o=Pt(n),i=Pt(r),a=t.length,u=[],s=[];for(e=0;e=0;--e)p.push(t[u[l[e]][2]]);for(e=+f;e=r&&l.x<=i&&l.y>=o&&l.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[];c.point=t[u]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(i(t,e)/Ba)*Ba,y:Math.round(a(t,e)/Ba)*Ba,i:e}})}var r=Nn,o=jn,i=r,a=o,u=hs;return t?e(t):(e.links=function(t){return dr(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return dr(n(t)).cells.forEach(function(n,r){for(var o,i,a=n.site,u=n.edges.sort($n),s=-1,l=u.length,c=u[l-1].edge,f=c.l===a?c.r:c.l;++s=l,d=r>=c,p=d<<1|f;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=mr()),f?o=l:u=l,d?a=c:s=c,i(t,e,n,r,o,a,u,s)}var c,f,d,p,h,v,g,m,y,b=Pt(u),_=Pt(s);if(null!=e)v=e,g=n,m=r,y=o;else if(m=y=-(v=g=1/0),f=[],d=[],h=t.length,a)for(p=0;pm&&(m=c.x),c.y>y&&(y=c.y),f.push(c.x),d.push(c.y);else for(p=0;pm&&(m=x),w>y&&(y=w),f.push(x),d.push(w)}var E=m-v,C=y-g;E>C?y=g+E:m=v+C;var k=mr();if(k.add=function(t){i(k,t,+b(t,++p),+_(t,p),v,g,m,y)},k.visit=function(t){yr(t,k,v,g,m,y)},k.find=function(t){return br(k,t[0],t[1],v,g,m,y)},p=-1,null==e){for(;++p=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=ys.get(n)||ms,r=bs.get(r)||E,Mr(r(n.apply(null,ha.call(arguments,1))))},pa.interpolateHcl=Hr,pa.interpolateHsl=Br,pa.interpolateLab=Ur,pa.interpolateRound=Wr,pa.transform=function(t){var e=ga.createElementNS(pa.ns.prefix.svg,"g");return(pa.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new zr(n?n.matrix:_s)})(t)},zr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _s={a:1,b:0,c:0,d:1,e:0,f:0};pa.interpolateTransform=Qr,pa.layout={},pa.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n0?o=t:(n.c=null,n.t=NaN,n=null,l.end({type:"end",alpha:o=0})):t>0&&(l.start({type:"start",alpha:o=t}),n=Ft(s.tick)),s):o},s.start=function(){function t(t,r){if(!n){for(n=new Array(o),s=0;s=0;)a.push(c=l[s]),c.parent=i,c.depth=i.depth+1;r&&(i.value=0),i.children=l}else r&&(i.value=+r.call(t,i,i.depth)||0),delete i.children;return fo(o,function(t){var n,o;e&&(n=t.children)&&n.sort(e),r&&(o=t.parent)&&(o.value+=t.value)}),u}var e=vo,n=po,r=ho;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(co(e,function(t){t.children&&(t.value=0)}),fo(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},pa.layout.partition=function(){function t(e,n,r,o){var i=e.children;if(e.x=n,e.y=e.depth*o,e.dx=r,e.dy=o,i&&(a=i.length)){var a,u,s,l=-1;for(r=e.value?r/e.value:0;++lu&&(u=r),a.push(r)}for(n=0;n0)for(i=-1;++i=c[0]&&u<=c[1]&&(a=s[pa.bisect(f,u,1,p)-1],a.y+=h,a.push(t[i]));return s}var e=!0,n=Number,r=Oo,o=ko;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=Pt(e),t):r},t.bins=function(e){return arguments.length?(o="number"==typeof e?function(t){return Mo(t,e)}:Pt(e),t):o},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},pa.layout.pack=function(){function t(t,i){var a=n.call(this,t,i),u=a[0],s=o[0],l=o[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(u.x=u.y=0,fo(u,function(t){t.r=+c(t.value)}),fo(u,Ro),r){var f=r*(e?1:Math.max(2*u.r/s,2*u.r/l))/2;fo(u,function(t){t.r+=f}),fo(u,Ro),fo(u,function(t){t.r-=f})}return jo(u,s/2,l/2,e?1:1/Math.max(2*u.r/s,2*u.r/l)),a}var e,n=pa.layout.hierarchy().sort(To),r=0,o=[1,1];return t.size=function(e){return arguments.length?(o=e,t):o},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},lo(t,n)},pa.layout.tree=function(){function t(t,o){var c=a.call(this,t,o),f=c[0],d=e(f);if(fo(d,n),d.parent.m=-d.z,co(d,r),l)co(f,i);else{var p=f,h=f,v=f;co(f,function(t){t.xh.x&&(h=t),t.depth>v.depth&&(v=t)});var g=u(p,h)/2-p.x,m=s[0]/(h.x+u(h,p)/2+g),y=s[1]/(v.depth||1);co(f,function(t){t.x=(t.x+g)*m,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var o,i=e.children,a=0,u=i.length;a0&&(Bo(Wo(a,t,n),t,r),l+=r,c+=r),f+=a.m,l+=o.m,d+=s.m,c+=i.m;a&&!Ho(i)&&(i.t=a,i.m+=f-c),o&&!Io(s)&&(s.t=o,s.m+=l-d,n=t)}return n}function i(t){t.x*=s[0],t.y=t.depth*s[1]}var a=pa.layout.hierarchy().sort(null).value(null),u=Lo,s=[1,1],l=null;return t.separation=function(e){return arguments.length?(u=e,t):u},t.size=function(e){return arguments.length?(l=null==(s=e)?i:null,t):l?null:s},t.nodeSize=function(e){return arguments.length?(l=null==(s=e)?null:i,t):l?s:null},lo(t,a)},pa.layout.cluster=function(){function t(t,i){var a,u=e.call(this,t,i),s=u[0],l=0;fo(s,function(t){var e=t.children;e&&e.length?(t.x=Vo(e),t.y=zo(e)):(t.x=a?l+=n(t,a):0,t.y=0,a=t)});var c=qo(s),f=Yo(s),d=c.x-n(c,f)/2,p=f.x+n(f,c)/2;return fo(s,o?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-d)/(p-d)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),u}var e=pa.layout.hierarchy().sort(null).value(null),n=Lo,r=[1,1],o=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(o=null==(r=e),t):o?null:r},t.nodeSize=function(e){return arguments.length?(o=null!=(r=e),t):o?r:null},lo(t,e)},pa.layout.treemap=function(){function t(t,e){for(var n,r,o=-1,i=t.length;++o0;)c.push(a=d[s-1]),c.area+=a.area,"squarify"!==p||(u=r(c,v))<=h?(d.pop(),h=u):(c.area-=c.pop().area,o(c,v,l,!1),v=Math.min(l.dx,l.dy),c.length=c.area=0,h=1/0);c.length&&(o(c,v,l,!0),c.length=c.area=0),i.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var i,a=f(e),u=r.slice(),s=[];for(t(u,a.dx*a.dy/e.value),s.area=0;i=u.pop();)s.push(i),s.area+=i.area,null!=i.z&&(o(s,i.z?a.dx:a.dy,a,!u.length),s.length=s.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,o=0,i=1/0,a=-1,u=t.length;++ao&&(o=n));return r*=r,e*=e,r?Math.max(e*o*h/r,r/(e*i*h)):1/0}function o(t,e,n,r){var o,i=-1,a=t.length,u=n.x,l=n.y,c=e?s(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++in.dx)&&(c=n.dx);++i1);return t+e*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var t=pa.random.normal.apply(pa,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=pa.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;nf?0:1;if(l=Va)return e(l,p)+(t?e(t,1-p):"")+"Z";var h,v,g,m,y,b,_,x,w,E,C,k,M=0,O=0,T=[];if((m=(+s.apply(this,arguments)||0)/2)&&(g=i===js?Math.sqrt(t*t+l*l):+i.apply(this,arguments),p||(O*=-1),l&&(O=at(g/l*Math.sin(m))),t&&(M=at(g/t*Math.sin(m)))),l){y=l*Math.cos(c+O),b=l*Math.sin(c+O),_=l*Math.cos(f-O),x=l*Math.sin(f-O);var A=Math.abs(f-c-2*O)<=Wa?0:1;if(O&&Ei(y,b,_,x)===p^A){var S=(c+f)/2;y=l*Math.cos(S),b=l*Math.sin(S),_=x=null}}else y=b=0;if(t){w=t*Math.cos(f-M),E=t*Math.sin(f-M),C=t*Math.cos(c+M),k=t*Math.sin(c+M);var P=Math.abs(c-f+2*M)<=Wa?0:1;if(M&&Ei(w,E,C,k)===1-p^P){var R=(c+f)/2;w=t*Math.cos(R),E=t*Math.sin(R),C=k=null}}else w=E=0;if(d>Ba&&(h=Math.min(Math.abs(l-t)/2,+o.apply(this,arguments)))>.001){v=tWa)+",1 "+e}function o(t,e,n,r){return"Q 0,0 "+r}var i=Cn,a=kn,u=Xi,s=_i,l=xi;return t.radius=function(e){return arguments.length?(u=Pt(e),t):u},t.source=function(e){return arguments.length?(i=Pt(e),t):i},t.target=function(e){return arguments.length?(a=Pt(e),t):a},t.startAngle=function(e){return arguments.length?(s=Pt(e),t):s},t.endAngle=function(e){return arguments.length?(l=Pt(e),t):l},t},pa.svg.diagonal=function(){function t(t,o){var i=e.call(this,t,o),a=n.call(this,t,o),u=(i.y+a.y)/2,s=[i,{x:i.x,y:u},{x:a.x,y:u},a];return s=s.map(r),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}var e=Cn,n=kn,r=Gi;return t.source=function(n){return arguments.length?(e=Pt(n),t):e},t.target=function(e){return arguments.length?(n=Pt(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},pa.svg.diagonal.radial=function(){var t=pa.svg.diagonal(),e=Gi,n=t.projection;return t.projection=function(t){return arguments.length?n($i(e=t)):e},t},pa.svg.symbol=function(){function t(t,r){return(Bs.get(e.call(this,t,r))||Ji)(n.call(this,t,r))}var e=Qi,n=Zi;return t.type=function(n){return arguments.length?(e=Pt(n),t):e},t.size=function(e){return arguments.length?(n=Pt(e),t):n},t};var Bs=pa.map({circle:Ji,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Ws)),n=e*Ws;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Us),n=e*Us/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Us),n=e*Us/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});pa.svg.symbolTypes=Bs.keys();var Us=Math.sqrt(3),Ws=Math.tan(30*Ya);Ra.transition=function(t){for(var e,n,r=zs||++Ks,o=oa(t),i=[],a=Vs||{time:Date.now(),ease:Pr,delay:0,duration:250},u=-1,s=this.length;++urect,.s>rect").attr("width",f[1]-f[0])}function r(t){t.select(".extent").attr("y",d[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",d[1]-d[0])}function o(){function o(){32==pa.event.keyCode&&(T||(b=null,P[0]-=f[1],P[1]-=d[1],T=2),A())}function v(){32==pa.event.keyCode&&2==T&&(P[0]+=f[1],P[1]+=d[1],T=0,A())}function g(){var t=pa.mouse(x),o=!1;_&&(t[0]+=_[0],t[1]+=_[1]),T||(pa.event.altKey?(b||(b=[(f[0]+f[1])/2,(d[0]+d[1])/2]),P[0]=f[+(t[0]3&&void 0!==arguments[3]&&arguments[3];r?(t.left=e+"px",t.top=n+"px"):(0,a.default)(t,e,n)}var i=n(197),a=r(i);t.exports=o},function(t,e){"use strict";function n(t,e){if(t===e)return!0;var n;for(n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}var r={shouldComponentUpdate:function(t,e){return!n(this.props,t)||!n(this.state,e)}};t.exports=r},function(t,e){"use strict";function n(t,e,n){return tn?n:t}t.exports=n},function(t,e){"use strict";e.__esModule=!0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);e.canUseDOM=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return s.stringify(t).replace(/%20/g,"+")}function i(t){return function(){function e(t){if(null==t.query){var e=t.search;t.query=w(e.substring(1)),t[h]={search:e,searchBase:""}}return t}function n(t,e){var n,r=t[h],o=e?x(e):"";if(!r&&!o)return t;"string"==typeof t&&(t=f.parsePath(t));var i=void 0;i=r&&t.search===r.search?r.searchBase:t.search||"";var u=i;return o&&(u+=(u?"&":"?")+o),a({},t,(n={search:u},n[h]={search:u,searchBase:i},n))}function r(t){return _.listenBefore(function(n,r){c.default(t,e(n),r)})}function i(t){return _.listen(function(n){t(e(n))})}function u(t){_.push(n(t,t.query))}function s(t){_.replace(n(t,t.query))}function l(t,e){return _.createPath(n(t,e||t.query))}function d(t,e){return _.createHref(n(t,e||t.query))}function g(t){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i-1}function h(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function H(t,e){for(var n=t.length;n--&&C(e,t[n],0)>-1;);return n}function B(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function U(t){return"\\"+nr[t]}function W(t,e){return null==t?ot:t[e]}function z(t){return Kn.test(t)}function V(t){return Xn.test(t)}function q(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function Y(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function K(t,e){return function(n){return t(e(n))}}function X(t,e){for(var n=-1,r=t.length,o=0,i=[];++n>>1,Ut=[["ary",Ct],["bind",mt],["bindKey",yt],["curry",_t],["curryRight",xt],["flip",Mt],["partial",wt],["partialRight",Et],["rearg",kt]],Wt="[object Arguments]",zt="[object Array]",Vt="[object AsyncFunction]",qt="[object Boolean]",Yt="[object Date]",Kt="[object DOMException]",Xt="[object Error]",Gt="[object Function]",$t="[object GeneratorFunction]",Zt="[object Map]",Qt="[object Number]",Jt="[object Null]",te="[object Object]",ee="[object Promise]",ne="[object Proxy]",re="[object RegExp]",oe="[object Set]",ie="[object String]",ae="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",fe="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",ve="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",_e="[object Uint32Array]",xe=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Me=RegExp(Ce.source),Oe=RegExp(ke.source),Te=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,De=/^\./,Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(je.source),Le=/^\s+|\s+$/g,Ie=/^\s+/,He=/\s+$/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ye=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,$e=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,tn=/['\n\r\u2028\u2029\\]/g,en="\\ud800-\\udfff",nn="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",an=nn+rn+on,un="\\u2700-\\u27bf",sn="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",cn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fn="\\u2000-\\u206f",dn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pn="A-Z\\xc0-\\xd6\\xd8-\\xde",hn="\\ufe0e\\ufe0f",vn=ln+cn+fn+dn,gn="['’]",mn="["+en+"]",yn="["+vn+"]",bn="["+an+"]",_n="\\d+",xn="["+un+"]",wn="["+sn+"]",En="[^"+en+vn+_n+un+sn+pn+"]",Cn="\\ud83c[\\udffb-\\udfff]",kn="(?:"+bn+"|"+Cn+")",Mn="[^"+en+"]",On="(?:\\ud83c[\\udde6-\\uddff]){2}",Tn="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+pn+"]",Sn="\\u200d",Pn="(?:"+wn+"|"+En+")",Rn="(?:"+An+"|"+En+")",Dn="(?:"+gn+"(?:d|ll|m|re|s|t|ve))?",Nn="(?:"+gn+"(?:D|LL|M|RE|S|T|VE))?",jn=kn+"?",Fn="["+hn+"]?",Ln="(?:"+Sn+"(?:"+[Mn,On,Tn].join("|")+")"+Fn+jn+")*",In="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Hn="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Bn=Fn+jn+Ln,Un="(?:"+[xn,On,Tn].join("|")+")"+Bn,Wn="(?:"+[Mn+bn+"?",bn,On,Tn,mn].join("|")+")",zn=RegExp(gn,"g"),Vn=RegExp(bn,"g"),qn=RegExp(Cn+"(?="+Cn+")|"+Wn+Bn,"g"),Yn=RegExp([An+"?"+wn+"+"+Dn+"(?="+[yn,An,"$"].join("|")+")",Rn+"+"+Nn+"(?="+[yn,An+Pn,"$"].join("|")+")",An+"?"+Pn+"+"+Dn,An+"+"+Nn,Hn,In,_n,Un].join("|"),"g"),Kn=RegExp("["+Sn+en+an+hn+"]"),Xn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$n=-1,Zn={};Zn[de]=Zn[pe]=Zn[he]=Zn[ve]=Zn[ge]=Zn[me]=Zn[ye]=Zn[be]=Zn[_e]=!0,Zn[Wt]=Zn[zt]=Zn[ce]=Zn[qt]=Zn[fe]=Zn[Yt]=Zn[Xt]=Zn[Gt]=Zn[Zt]=Zn[Qt]=Zn[te]=Zn[re]=Zn[oe]=Zn[ie]=Zn[se]=!1;var Qn={};Qn[Wt]=Qn[zt]=Qn[ce]=Qn[fe]=Qn[qt]=Qn[Yt]=Qn[de]=Qn[pe]=Qn[he]=Qn[ve]=Qn[ge]=Qn[Zt]=Qn[Qt]=Qn[te]=Qn[re]=Qn[oe]=Qn[ie]=Qn[ae]=Qn[me]=Qn[ye]=Qn[be]=Qn[_e]=!0,Qn[Xt]=Qn[Gt]=Qn[se]=!1;var Jn={"À":"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","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},tr={"&":"&","<":"<",">":">",'"':""","'":"'"},er={"&":"&","<":"<",">":">",""":'"',"'":"'"},nr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rr=parseFloat,or=parseInt,ir="object"==typeof t&&t&&t.Object===Object&&t,ar="object"==typeof self&&self&&self.Object===Object&&self,ur=ir||ar||Function("return this")(),sr="object"==typeof e&&e&&!e.nodeType&&e,lr=sr&&"object"==typeof o&&o&&!o.nodeType&&o,cr=lr&&lr.exports===sr,fr=cr&&ir.process,dr=function(){try{return fr&&fr.binding&&fr.binding("util")}catch(t){}}(),pr=dr&&dr.isArrayBuffer,hr=dr&&dr.isDate,vr=dr&&dr.isMap,gr=dr&&dr.isRegExp,mr=dr&&dr.isSet,yr=dr&&dr.isTypedArray,br=T("length"),_r=A(Jn),xr=A(tr),wr=A(er),Er=function t(e){function n(t){if(ls(t)&&!xd(t)&&!(t instanceof _)){if(t instanceof o)return t;if(_c.call(t,"__wrapped__"))return aa(t)}return new o(t)}function r(){}function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=ot}function _(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function A(){var t=new _(this.__wrapped__);return t.__actions__=Uo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Uo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Uo(this.__views__),t}function Z(){if(this.__filtered__){var t=new _(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function et(){var t=this.__wrapped__.value(),e=this.__dir__,n=xd(t),r=e<0,o=n?t.length:0,i=Si(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,f=c.length,d=0,p=$c(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return wo(t,this.__actions__);var h=[];t:for(;s--&&d-1}function fn(t,e){var n=this.__data__,r=Dn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Bn(t,e,n,r,o,i){var a,u=e&dt,s=e&pt,c=e&ht;if(n&&(a=o?n(t,r,o,i):n(t)),a!==ot)return a;if(!ss(t))return t;var f=xd(t);if(f){if(a=Di(t),!u)return Uo(t,a)}else{var d=Pf(t),p=d==Gt||d==$t;if(Ed(t))return Ao(t,u);if(d==te||d==Wt||p&&!o){if(a=s||p?{}:Ni(t),!u)return s?Vo(t,Fn(a,t)):zo(t,jn(a,t))}else{if(!Qn[d])return o?t:{};a=ji(t,d,Bn,u)}}i||(i=new xn);var h=i.get(t);if(h)return h;i.set(t,a);var v=c?s?wi:xi:s?qs:Vs,g=f?ot:v(t);return l(g||t,function(r,o){g&&(o=r,r=t[o]),Rn(a,o,Bn(r,e,n,o,t,i))}),a}function Un(t){var e=Vs(t);return function(n){return Wn(n,t,e)}}function Wn(t,e,n){var r=n.length;if(null==t)return!r;for(t=fc(t);r--;){var o=n[r],i=e[o],a=t[o];if(a===ot&&!(o in t)||!i(a))return!1}return!0}function qn(t,e,n){if("function"!=typeof t)throw new hc(st);return Nf(function(){t.apply(ot,n)},e)}function Yn(t,e,n,r){var o=-1,i=p,a=!0,u=t.length,s=[],l=e.length;if(!u)return s;n&&(e=v(e,j(n))),r?(i=h,a=!1):e.length>=at&&(i=L,a=!1,e=new yn(e));t:for(;++oo?0:o+n),r=r===ot||r>o?o:Ms(r),r<0&&(r+=o),r=n>r?0:Os(r);n0&&n(u)?e>1?er(u,e-1,n,r,o):g(o,u):r||(o[o.length]=u)}return o}function nr(t,e){return t&&xf(t,e,Vs)}function ir(t,e){return t&&wf(t,e,Vs)}function ar(t,e){return d(e,function(e){return is(t[e])})}function sr(t,e){e=Oo(e,t);for(var n=0,r=e.length;null!=t&&ne}function br(t,e){return null!=t&&_c.call(t,e)}function Er(t,e){return null!=t&&e in fc(t)}function kr(t,e,n){return t>=$c(e,n)&&t=120&&c.length>=120)?new yn(a&&c):ot}c=t[0];var f=-1,d=u[0];t:for(;++f-1;)u!==t&&Nc.call(u,s,1),Nc.call(t,s,1);return t}function eo(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Ii(o)?Nc.call(t,o,1):bo(t,o)}}return t}function no(t,e){return t+zc(Jc()*(e-t+1))}function ro(t,e,n,r){for(var o=-1,i=Gc(Wc((e-t)/(n||1)),0),a=ac(i);i--;)a[r?i:++o]=t,t+=n;return a}function oo(t,e){var n="";if(!t||e<1||e>jt)return n;do e%2&&(n+=t),e=zc(e/2),e&&(t+=t);while(e);return n}function io(t,e){return jf(Zi(t,e,Nl),t+"")}function ao(t){return Tn(rl(t))}function uo(t,e){var n=rl(t);return na(n,Hn(e,0,n.length))}function so(t,e,n,r){if(!ss(t))return t;e=Oo(e,t);for(var o=-1,i=e.length,a=i-1,u=t;null!=u&&++oo?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=ac(o);++r>>1,a=t[i];null!==a&&!_s(a)&&(n?a<=e:a=at){var l=e?null:Of(t);if(l)return G(l);a=!1,o=L,s=new yn}else s=e?[]:u;t:for(;++r=r?t:co(t,e,n)}function Ao(t,e){if(e)return t.slice();var n=t.length,r=Sc?Sc(n):new t.constructor(n);return t.copy(r),r}function So(t){var e=new t.constructor(t.byteLength);return new Ac(e).set(new Ac(t)),e}function Po(t,e){var n=e?So(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ro(t,e,n){var r=e?n(Y(t),dt):Y(t);return m(r,i,new t.constructor)}function Do(t){var e=new t.constructor(t.source,Ye.exec(t));return e.lastIndex=t.lastIndex,e}function No(t,e,n){var r=e?n(G(t),dt):G(t);return m(r,a,new t.constructor)}function jo(t){return gf?fc(gf.call(t)):{}}function Fo(t,e){var n=e?So(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Lo(t,e){if(t!==e){var n=t!==ot,r=null===t,o=t===t,i=_s(t),a=e!==ot,u=null===e,s=e===e,l=_s(e);if(!u&&!l&&!i&&t>e||i&&a&&s&&!u&&!l||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&t=u)return s;var l=n[r];return s*("desc"==l?-1:1)}}return t.index-e.index}function Ho(t,e,n,r){for(var o=-1,i=t.length,a=n.length,u=-1,s=e.length,l=Gc(i-a,0),c=ac(s+l),f=!r;++u1?n[o-1]:ot,a=o>2?n[2]:ot;for(i=t.length>3&&"function"==typeof i?(o--,i):ot,a&&Hi(n[0],n[1],a)&&(i=o<3?ot:i,o=1),e=fc(e);++r-1?o[i?e[a]:a]:ot}}function ei(t){return _i(function(e){var n=e.length,r=n,i=o.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new hc(st);if(i&&!u&&"wrapper"==Ei(a))var u=new o([],!0)}for(r=u?r:n;++r1&&y.reverse(),f&&su))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var c=-1,f=!0,d=n>?new yn:ot;for(i.set(t,e),i.set(e,t);++c1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Be,"{\n/* [wrapped with "+e+"] */\n")}function Li(t){return xd(t)||_d(t)||!!(jc&&t&&t[jc])}function Ii(t,e){return e=null==e?jt:e,!!e&&("number"==typeof t||Ze.test(t))&&t>-1&&t%1==0&&t0){if(++e>=At)return arguments[0]}else e=0;return t.apply(ot,arguments)}}function na(t,e){var n=-1,r=t.length,o=r-1;for(e=e===ot?r:e;++n=this.__values__.length,e=t?ot:this.__values__[this.__index__++];return{done:t,value:e}}function au(){return this}function uu(t){for(var e,n=this;n instanceof r;){var o=aa(n);o.__index__=0,o.__values__=ot,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e}function su(){var t=this.__wrapped__;if(t instanceof _){var e=t;return this.__actions__.length&&(e=new _(this)),e=e.reverse(),e.__actions__.push({func:nu,args:[Ra],thisArg:ot}),new o(e,this.__chain__)}return this.thru(Ra)}function lu(){return wo(this.__wrapped__,this.__actions__)}function cu(t,e,n){var r=xd(t)?f:Kn;return n&&Hi(t,e,n)&&(e=ot),r(t,ki(e,3))}function fu(t,e){var n=xd(t)?d:tr;return n(t,ki(e,3))}function du(t,e){return er(yu(t,e),1)}function pu(t,e){return er(yu(t,e),Nt)}function hu(t,e,n){return n=n===ot?1:Ms(n),er(yu(t,e),n)}function vu(t,e){var n=xd(t)?l:bf;return n(t,ki(e,3))}function gu(t,e){var n=xd(t)?c:_f;return n(t,ki(e,3))}function mu(t,e,n,r){t=$u(t)?t:rl(t),n=n&&!r?Ms(n):0;var o=t.length;return n<0&&(n=Gc(o+n,0)),bs(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&C(t,e,n)>-1}function yu(t,e){var n=xd(t)?v:Vr;return n(t,ki(e,3))}function bu(t,e,n,r){return null==t?[]:(xd(e)||(e=null==e?[]:[e]),n=r?ot:n,xd(n)||(n=null==n?[]:[n]),$r(t,e,n))}function _u(t,e,n){var r=xd(t)?m:S,o=arguments.length<3;return r(t,ki(e,4),n,o,bf)}function xu(t,e,n){var r=xd(t)?y:S,o=arguments.length<3;return r(t,ki(e,4),n,o,_f)}function wu(t,e){var n=xd(t)?d:tr;return n(t,Fu(ki(e,3)))}function Eu(t){var e=xd(t)?Tn:ao;return e(t)}function Cu(t,e,n){e=(n?Hi(t,e,n):e===ot)?1:Ms(e);var r=xd(t)?An:uo;return r(t,e)}function ku(t){var e=xd(t)?Sn:lo;return e(t)}function Mu(t){if(null==t)return 0;if($u(t))return bs(t)?J(t):t.length;var e=Pf(t);return e==Zt||e==oe?t.size:Ur(t).length}function Ou(t,e,n){var r=xd(t)?b:fo;return n&&Hi(t,e,n)&&(e=ot),r(t,ki(e,3))}function Tu(t,e){if("function"!=typeof e)throw new hc(st);return t=Ms(t),function(){if(--t<1)return e.apply(this,arguments)}}function Au(t,e,n){return e=n?ot:e,e=t&&null==e?t.length:e,pi(t,Ct,ot,ot,ot,ot,e)}function Su(t,e){var n;if("function"!=typeof e)throw new hc(st);return t=Ms(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=ot),n}}function Pu(t,e,n){e=n?ot:e;var r=pi(t,_t,ot,ot,ot,ot,ot,e);return r.placeholder=Pu.placeholder,r}function Ru(t,e,n){e=n?ot:e;var r=pi(t,xt,ot,ot,ot,ot,ot,e);return r.placeholder=Ru.placeholder,r}function Du(t,e,n){function r(e){var n=d,r=p;return d=p=ot,y=e,v=t.apply(r,n)}function o(t){return y=t,g=Nf(u,e),b?r(t):v}function i(t){var n=t-m,r=t-y,o=e-n;return _?$c(o,h-r):o}function a(t){var n=t-m,r=t-y;return m===ot||n>=e||n<0||_&&r>=h}function u(){var t=ld();return a(t)?s(t):void(g=Nf(u,i(t)))}function s(t){return g=ot,x&&d?r(t):(d=p=ot,v)}function l(){g!==ot&&Mf(g),y=0,d=m=p=g=ot}function c(){return g===ot?v:s(ld())}function f(){var t=ld(),n=a(t);if(d=arguments,p=this,m=t,n){if(g===ot)return o(m); -if(_)return g=Nf(u,e),r(m)}return g===ot&&(g=Nf(u,e)),v}var d,p,h,v,g,m,y=0,b=!1,_=!1,x=!0;if("function"!=typeof t)throw new hc(st);return e=Ts(e)||0,ss(n)&&(b=!!n.leading,_="maxWait"in n,h=_?Gc(Ts(n.maxWait)||0,e):h,x="trailing"in n?!!n.trailing:x),f.cancel=l,f.flush=c,f}function Nu(t){return pi(t,Mt)}function ju(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new hc(st);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ju.Cache||dn),n}function Fu(t){if("function"!=typeof t)throw new hc(st);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Lu(t){return Su(2,t)}function Iu(t,e){if("function"!=typeof t)throw new hc(st);return e=e===ot?e:Ms(e),io(t,e)}function Hu(t,e){if("function"!=typeof t)throw new hc(st);return e=null==e?0:Gc(Ms(e),0),io(function(n){var r=n[e],o=To(n,0,e);return r&&g(o,r),u(t,this,o)})}function Bu(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new hc(st);return ss(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Du(t,e,{leading:r,maxWait:e,trailing:o})}function Uu(t){return Au(t,1)}function Wu(t,e){return vd(Mo(e),t)}function zu(){if(!arguments.length)return[];var t=arguments[0];return xd(t)?t:[t]}function Vu(t){return Bn(t,ht)}function qu(t,e){return e="function"==typeof e?e:ot,Bn(t,ht,e)}function Yu(t){return Bn(t,dt|ht)}function Ku(t,e){return e="function"==typeof e?e:ot,Bn(t,dt|ht,e)}function Xu(t,e){return null==e||Wn(t,e,Vs(e))}function Gu(t,e){return t===e||t!==t&&e!==e}function $u(t){return null!=t&&us(t.length)&&!is(t)}function Zu(t){return ls(t)&&$u(t)}function Qu(t){return t===!0||t===!1||ls(t)&&fr(t)==qt}function Ju(t){return ls(t)&&1===t.nodeType&&!ms(t)}function ts(t){if(null==t)return!0;if($u(t)&&(xd(t)||"string"==typeof t||"function"==typeof t.splice||Ed(t)||Td(t)||_d(t)))return!t.length;var e=Pf(t);if(e==Zt||e==oe)return!t.size;if(Vi(t))return!Ur(t).length;for(var n in t)if(_c.call(t,n))return!1;return!0}function es(t,e){return Rr(t,e)}function ns(t,e,n){n="function"==typeof n?n:ot;var r=n?n(t,e):ot;return r===ot?Rr(t,e,ot,n):!!r}function rs(t){if(!ls(t))return!1;var e=fr(t);return e==Xt||e==Kt||"string"==typeof t.message&&"string"==typeof t.name&&!ms(t)}function os(t){return"number"==typeof t&&Yc(t)}function is(t){if(!ss(t))return!1;var e=fr(t);return e==Gt||e==$t||e==Vt||e==ne}function as(t){return"number"==typeof t&&t==Ms(t)}function us(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=jt}function ss(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ls(t){return null!=t&&"object"==typeof t}function cs(t,e){return t===e||jr(t,e,Oi(e))}function fs(t,e,n){return n="function"==typeof n?n:ot,jr(t,e,Oi(e),n)}function ds(t){return gs(t)&&t!=+t}function ps(t){if(Rf(t))throw new sc(ut);return Fr(t)}function hs(t){return null===t}function vs(t){return null==t}function gs(t){return"number"==typeof t||ls(t)&&fr(t)==Qt}function ms(t){if(!ls(t)||fr(t)!=te)return!1;var e=Pc(t);if(null===e)return!0;var n=_c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&bc.call(n)==Cc}function ys(t){return as(t)&&t>=-jt&&t<=jt}function bs(t){return"string"==typeof t||!xd(t)&&ls(t)&&fr(t)==ie}function _s(t){return"symbol"==typeof t||ls(t)&&fr(t)==ae}function xs(t){return t===ot}function ws(t){return ls(t)&&Pf(t)==se}function Es(t){return ls(t)&&fr(t)==le}function Cs(t){if(!t)return[];if($u(t))return bs(t)?tt(t):Uo(t);if(Fc&&t[Fc])return q(t[Fc]());var e=Pf(t),n=e==Zt?Y:e==oe?G:rl;return n(t)}function ks(t){if(!t)return 0===t?t:0;if(t=Ts(t),t===Nt||t===-Nt){var e=t<0?-1:1;return e*Ft}return t===t?t:0}function Ms(t){var e=ks(t),n=e%1;return e===e?n?e-n:e:0}function Os(t){return t?Hn(Ms(t),0,It):0}function Ts(t){if("number"==typeof t)return t;if(_s(t))return Lt;if(ss(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ss(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Le,"");var n=Xe.test(t);return n||$e.test(t)?or(t.slice(2),n?2:8):Ke.test(t)?Lt:+t}function As(t){return Wo(t,qs(t))}function Ss(t){return t?Hn(Ms(t),-jt,jt):0===t?t:0}function Ps(t){return null==t?"":mo(t)}function Rs(t,e){var n=yf(t);return null==e?n:jn(n,e)}function Ds(t,e){return w(t,ki(e,3),nr)}function Ns(t,e){return w(t,ki(e,3),ir)}function js(t,e){return null==t?t:xf(t,ki(e,3),qs)}function Fs(t,e){return null==t?t:wf(t,ki(e,3),qs)}function Ls(t,e){return t&&nr(t,ki(e,3))}function Is(t,e){return t&&ir(t,ki(e,3))}function Hs(t){return null==t?[]:ar(t,Vs(t))}function Bs(t){return null==t?[]:ar(t,qs(t))}function Us(t,e,n){var r=null==t?ot:sr(t,e);return r===ot?n:r}function Ws(t,e){return null!=t&&Ri(t,e,br)}function zs(t,e){return null!=t&&Ri(t,e,Er)}function Vs(t){return $u(t)?On(t):Ur(t)}function qs(t){return $u(t)?On(t,!0):Wr(t)}function Ys(t,e){var n={};return e=ki(e,3),nr(t,function(t,r,o){Ln(n,e(t,r,o),t)}),n}function Ks(t,e){var n={};return e=ki(e,3),nr(t,function(t,r,o){Ln(n,r,e(t,r,o))}),n}function Xs(t,e){return Gs(t,Fu(ki(e)))}function Gs(t,e){if(null==t)return{};var n=v(wi(t),function(t){return[t]});return e=ki(e),Qr(t,n,function(t,n){return e(t,n[0])})}function $s(t,e,n){e=Oo(e,t);var r=-1,o=e.length;for(o||(o=1,t=ot);++re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Jc();return $c(t+o*(e-t+rr("1e-"+((o+"").length-1))),e)}return no(t,e)}function sl(t){return tp(Ps(t).toLowerCase())}function ll(t){return t=Ps(t),t&&t.replace(Qe,_r).replace(Vn,"")}function cl(t,e,n){t=Ps(t),e=mo(e);var r=t.length;n=n===ot?r:Hn(Ms(n),0,r);var o=n;return n-=e.length,n>=0&&t.slice(n,o)==e}function fl(t){return t=Ps(t),t&&Oe.test(t)?t.replace(ke,xr):t}function dl(t){return t=Ps(t),t&&Fe.test(t)?t.replace(je,"\\$&"):t}function pl(t,e,n){t=Ps(t),e=Ms(e);var r=e?J(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return ai(zc(o),n)+t+ai(Wc(o),n)}function hl(t,e,n){t=Ps(t),e=Ms(e);var r=e?J(t):0;return e&&r>>0)?(t=Ps(t),t&&("string"==typeof e||null!=e&&!Md(e))&&(e=mo(e),!e&&z(t))?To(tt(t),0,n):t.split(e,n)):[]}function _l(t,e,n){return t=Ps(t),n=null==n?0:Hn(Ms(n),0,t.length),e=mo(e),t.slice(n,n+e.length)==e}function xl(t,e,r){var o=n.templateSettings;r&&Hi(t,e,r)&&(e=ot),t=Ps(t),e=Dd({},e,o,hi);var i,a,u=Dd({},e.imports,o.imports,hi),s=Vs(u),l=F(u,s),c=0,f=e.interpolate||Je,d="__p += '",p=dc((e.escape||Je).source+"|"+f.source+"|"+(f===Se?qe:Je).source+"|"+(e.evaluate||Je).source+"|$","g"),h="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++$n+"]")+"\n";t.replace(p,function(e,n,r,o,u,s){return r||(r=o),d+=t.slice(c,s).replace(tn,U),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),u&&(a=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+e.length,e}),d+="';\n";var v=e.variable;v||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(xe,""):d).replace(we,"$1").replace(Ee,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"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 g=ep(function(){return lc(s,h+"return "+d).apply(ot,l)});if(g.source=d,rs(g))throw g;return g}function wl(t){return Ps(t).toLowerCase()}function El(t){return Ps(t).toUpperCase()}function Cl(t,e,n){if(t=Ps(t),t&&(n||e===ot))return t.replace(Le,"");if(!t||!(e=mo(e)))return t;var r=tt(t),o=tt(e),i=I(r,o),a=H(r,o)+1;return To(r,i,a).join("")}function kl(t,e,n){if(t=Ps(t),t&&(n||e===ot))return t.replace(He,"");if(!t||!(e=mo(e)))return t;var r=tt(t),o=H(r,tt(e))+1;return To(r,0,o).join("")}function Ml(t,e,n){if(t=Ps(t),t&&(n||e===ot))return t.replace(Ie,"");if(!t||!(e=mo(e)))return t;var r=tt(t),o=I(r,tt(e));return To(r,o).join("")}function Ol(t,e){var n=Ot,r=Tt;if(ss(e)){var o="separator"in e?e.separator:o;n="length"in e?Ms(e.length):n,r="omission"in e?mo(e.omission):r}t=Ps(t);var i=t.length;if(z(t)){var a=tt(t);i=a.length}if(n>=i)return t;var u=n-J(r);if(u<1)return r;var s=a?To(a,0,u).join(""):t.slice(0,u);if(o===ot)return s+r;if(a&&(u+=s.length-u),Md(o)){if(t.slice(u).search(o)){var l,c=s;for(o.global||(o=dc(o.source,Ps(Ye.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;s=s.slice(0,f===ot?u:f)}}else if(t.indexOf(mo(o),u)!=u){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r}function Tl(t){return t=Ps(t),t&&Me.test(t)?t.replace(Ce,wr):t}function Al(t,e,n){return t=Ps(t),e=n?ot:e,e===ot?V(t)?rt(t):x(t):t.match(e)||[]}function Sl(t){var e=null==t?0:t.length,n=ki();return t=e?v(t,function(t){if("function"!=typeof t[1])throw new hc(st);return[n(t[0]),t[1]]}):[],io(function(n){for(var r=-1;++rjt)return[];var n=It,r=$c(t,It);e=ki(e),t-=It;for(var o=D(r,e);++n1?t[e-1]:ot;return n="function"==typeof n?(t.pop(),n):ot,Za(t,n)}),td=_i(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return In(e,t)};return!(e>1||this.__actions__.length)&&r instanceof _&&Ii(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:nu,args:[i],thisArg:ot}),new o(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(ot),t})):this.thru(i)}),ed=qo(function(t,e,n){_c.call(t,n)?++t[n]:Ln(t,n,1)}),nd=ti(va),rd=ti(ga),od=qo(function(t,e,n){_c.call(t,n)?t[n].push(e):Ln(t,n,[e])}),id=io(function(t,e,n){var r=-1,o="function"==typeof e,i=$u(t)?ac(t.length):[];return bf(t,function(t){i[++r]=o?u(e,t,n):Tr(t,e,n)}),i}),ad=qo(function(t,e,n){Ln(t,n,e)}),ud=qo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),sd=io(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Hi(t,e[0],e[1])?e=[]:n>2&&Hi(e[0],e[1],e[2])&&(e=[e[0]]),$r(t,er(e,1),[])}),ld=Bc||function(){return ur.Date.now()},cd=io(function(t,e,n){var r=mt;if(n.length){var o=X(n,Ci(cd));r|=wt}return pi(t,r,e,n,o)}),fd=io(function(t,e,n){var r=mt|yt;if(n.length){var o=X(n,Ci(fd));r|=wt}return pi(e,r,t,n,o)}),dd=io(function(t,e){return qn(t,1,e)}),pd=io(function(t,e,n){return qn(t,Ts(e)||0,n)});ju.Cache=dn;var hd=kf(function(t,e){e=1==e.length&&xd(e[0])?v(e[0],j(ki())):v(er(e,1),j(ki()));var n=e.length;return io(function(r){for(var o=-1,i=$c(r.length,n);++o=e}),_d=Ar(function(){return arguments}())?Ar:function(t){return ls(t)&&_c.call(t,"callee")&&!Dc.call(t,"callee")},xd=ac.isArray,wd=pr?j(pr):Sr,Ed=qc||ql,Cd=hr?j(hr):Pr,kd=vr?j(vr):Nr,Md=gr?j(gr):Lr,Od=mr?j(mr):Ir,Td=yr?j(yr):Hr,Ad=li(zr),Sd=li(function(t,e){return t<=e}),Pd=Yo(function(t,e){if(Vi(e)||$u(e))return void Wo(e,Vs(e),t);for(var n in e)_c.call(e,n)&&Rn(t,n,e[n])}),Rd=Yo(function(t,e){Wo(e,qs(e),t)}),Dd=Yo(function(t,e,n,r){Wo(e,qs(e),t,r)}),Nd=Yo(function(t,e,n,r){Wo(e,Vs(e),t,r)}),jd=_i(In),Fd=io(function(t){return t.push(ot,hi),u(Dd,ot,t)}),Ld=io(function(t){return t.push(ot,vi),u(Wd,ot,t)}),Id=ri(function(t,e,n){t[e]=n},Rl(Nl)),Hd=ri(function(t,e,n){_c.call(t,e)?t[e].push(n):t[e]=[n]},ki),Bd=io(Tr),Ud=Yo(function(t,e,n){Kr(t,e,n)}),Wd=Yo(function(t,e,n,r){Kr(t,e,n,r)}),zd=_i(function(t,e){var n={};if(null==t)return n;var r=!1;e=v(e,function(e){return e=Oo(e,t),r||(r=e.length>1),e}),Wo(t,wi(t),n),r&&(n=Bn(n,dt|pt|ht,gi));for(var o=e.length;o--;)bo(n,e[o]);return n}),Vd=_i(function(t,e){return null==t?{}:Zr(t,e)}),qd=di(Vs),Yd=di(qs),Kd=Zo(function(t,e,n){return e=e.toLowerCase(),t+(n?sl(e):e)}),Xd=Zo(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Gd=Zo(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),$d=$o("toLowerCase"),Zd=Zo(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Qd=Zo(function(t,e,n){return t+(n?" ":"")+tp(e)}),Jd=Zo(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),tp=$o("toUpperCase"),ep=io(function(t,e){try{return u(t,ot,e)}catch(t){return rs(t)?t:new sc(t)}}),np=_i(function(t,e){return l(e,function(e){e=ra(e),Ln(t,e,cd(t[e],t))}),t}),rp=ei(),op=ei(!0),ip=io(function(t,e){return function(n){return Tr(n,t,e)}}),ap=io(function(t,e){return function(n){return Tr(t,n,e)}}),up=ii(v),sp=ii(f),lp=ii(b),cp=si(),fp=si(!0),dp=oi(function(t,e){return t+e},0),pp=fi("ceil"),hp=oi(function(t,e){return t/e},1),vp=fi("floor"),gp=oi(function(t,e){return t*e},1),mp=fi("round"),yp=oi(function(t,e){return t-e},0);return n.after=Tu,n.ary=Au,n.assign=Pd,n.assignIn=Rd,n.assignInWith=Dd,n.assignWith=Nd,n.at=jd,n.before=Su,n.bind=cd,n.bindAll=np,n.bindKey=fd,n.castArray=zu,n.chain=tu,n.chunk=ua,n.compact=sa,n.concat=la,n.cond=Sl,n.conforms=Pl,n.constant=Rl,n.countBy=ed,n.create=Rs,n.curry=Pu,n.curryRight=Ru,n.debounce=Du,n.defaults=Fd,n.defaultsDeep=Ld,n.defer=dd,n.delay=pd,n.difference=Lf,n.differenceBy=If,n.differenceWith=Hf,n.drop=ca,n.dropRight=fa,n.dropRightWhile=da,n.dropWhile=pa,n.fill=ha,n.filter=fu,n.flatMap=du,n.flatMapDeep=pu,n.flatMapDepth=hu,n.flatten=ma,n.flattenDeep=ya,n.flattenDepth=ba,n.flip=Nu,n.flow=rp,n.flowRight=op,n.fromPairs=_a,n.functions=Hs,n.functionsIn=Bs,n.groupBy=od,n.initial=Ea,n.intersection=Bf,n.intersectionBy=Uf,n.intersectionWith=Wf,n.invert=Id,n.invertBy=Hd,n.invokeMap=id,n.iteratee=jl,n.keyBy=ad,n.keys=Vs,n.keysIn=qs,n.map=yu,n.mapKeys=Ys,n.mapValues=Ks,n.matches=Fl,n.matchesProperty=Ll,n.memoize=ju,n.merge=Ud,n.mergeWith=Wd,n.method=ip,n.methodOf=ap,n.mixin=Il,n.negate=Fu,n.nthArg=Ul,n.omit=zd,n.omitBy=Xs,n.once=Lu,n.orderBy=bu,n.over=up,n.overArgs=hd,n.overEvery=sp,n.overSome=lp,n.partial=vd,n.partialRight=gd,n.partition=ud,n.pick=Vd,n.pickBy=Gs,n.property=Wl,n.propertyOf=zl,n.pull=zf,n.pullAll=Ta,n.pullAllBy=Aa,n.pullAllWith=Sa,n.pullAt=Vf,n.range=cp,n.rangeRight=fp,n.rearg=md,n.reject=wu,n.remove=Pa,n.rest=Iu,n.reverse=Ra,n.sampleSize=Cu,n.set=Zs,n.setWith=Qs,n.shuffle=ku,n.slice=Da,n.sortBy=sd,n.sortedUniq=Ba,n.sortedUniqBy=Ua,n.split=bl,n.spread=Hu,n.tail=Wa,n.take=za,n.takeRight=Va,n.takeRightWhile=qa,n.takeWhile=Ya,n.tap=eu,n.throttle=Bu,n.thru=nu,n.toArray=Cs,n.toPairs=qd,n.toPairsIn=Yd,n.toPath=$l,n.toPlainObject=As,n.transform=Js,n.unary=Uu,n.union=qf,n.unionBy=Yf,n.unionWith=Kf,n.uniq=Ka,n.uniqBy=Xa,n.uniqWith=Ga,n.unset=tl,n.unzip=$a,n.unzipWith=Za,n.update=el,n.updateWith=nl,n.values=rl,n.valuesIn=ol,n.without=Xf,n.words=Al,n.wrap=Wu,n.xor=Gf,n.xorBy=$f,n.xorWith=Zf,n.zip=Qf,n.zipObject=Qa,n.zipObjectDeep=Ja,n.zipWith=Jf,n.entries=qd,n.entriesIn=Yd,n.extend=Rd,n.extendWith=Dd,Il(n,n),n.add=dp,n.attempt=ep,n.camelCase=Kd,n.capitalize=sl,n.ceil=pp,n.clamp=il,n.clone=Vu,n.cloneDeep=Yu,n.cloneDeepWith=Ku,n.cloneWith=qu,n.conformsTo=Xu,n.deburr=ll,n.defaultTo=Dl,n.divide=hp,n.endsWith=cl,n.eq=Gu,n.escape=fl,n.escapeRegExp=dl,n.every=cu,n.find=nd,n.findIndex=va,n.findKey=Ds,n.findLast=rd,n.findLastIndex=ga,n.findLastKey=Ns,n.floor=vp,n.forEach=vu,n.forEachRight=gu,n.forIn=js,n.forInRight=Fs,n.forOwn=Ls,n.forOwnRight=Is,n.get=Us,n.gt=yd,n.gte=bd,n.has=Ws,n.hasIn=zs,n.head=xa,n.identity=Nl,n.includes=mu,n.indexOf=wa,n.inRange=al,n.invoke=Bd,n.isArguments=_d,n.isArray=xd,n.isArrayBuffer=wd,n.isArrayLike=$u,n.isArrayLikeObject=Zu,n.isBoolean=Qu,n.isBuffer=Ed,n.isDate=Cd,n.isElement=Ju,n.isEmpty=ts,n.isEqual=es,n.isEqualWith=ns,n.isError=rs,n.isFinite=os,n.isFunction=is,n.isInteger=as,n.isLength=us,n.isMap=kd,n.isMatch=cs,n.isMatchWith=fs,n.isNaN=ds,n.isNative=ps,n.isNil=vs,n.isNull=hs,n.isNumber=gs,n.isObject=ss,n.isObjectLike=ls,n.isPlainObject=ms,n.isRegExp=Md,n.isSafeInteger=ys,n.isSet=Od,n.isString=bs,n.isSymbol=_s,n.isTypedArray=Td,n.isUndefined=xs,n.isWeakMap=ws,n.isWeakSet=Es,n.join=Ca,n.kebabCase=Xd,n.last=ka,n.lastIndexOf=Ma,n.lowerCase=Gd,n.lowerFirst=$d,n.lt=Ad,n.lte=Sd,n.max=Ql,n.maxBy=Jl,n.mean=tc,n.meanBy=ec,n.min=nc,n.minBy=rc,n.stubArray=Vl,n.stubFalse=ql,n.stubObject=Yl,n.stubString=Kl,n.stubTrue=Xl,n.multiply=gp,n.nth=Oa,n.noConflict=Hl,n.noop=Bl,n.now=ld,n.pad=pl,n.padEnd=hl,n.padStart=vl,n.parseInt=gl,n.random=ul,n.reduce=_u,n.reduceRight=xu,n.repeat=ml,n.replace=yl,n.result=$s,n.round=mp,n.runInContext=t,n.sample=Eu,n.size=Mu,n.snakeCase=Zd,n.some=Ou,n.sortedIndex=Na,n.sortedIndexBy=ja,n.sortedIndexOf=Fa,n.sortedLastIndex=La,n.sortedLastIndexBy=Ia,n.sortedLastIndexOf=Ha,n.startCase=Qd,n.startsWith=_l,n.subtract=yp,n.sum=oc,n.sumBy=ic,n.template=xl,n.times=Gl,n.toFinite=ks,n.toInteger=Ms,n.toLength=Os,n.toLower=wl,n.toNumber=Ts,n.toSafeInteger=Ss,n.toString=Ps,n.toUpper=El,n.trim=Cl,n.trimEnd=kl,n.trimStart=Ml,n.truncate=Ol,n.unescape=Tl,n.uniqueId=Zl,n.upperCase=Jd,n.upperFirst=tp,n.each=vu,n.eachRight=gu,n.first=xa,Il(n,function(){var t={};return nr(n,function(e,r){_c.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION=it,l(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),l(["drop","take"],function(t,e){_.prototype[t]=function(n){n=n===ot?1:Gc(Ms(n),0);var r=this.__filtered__&&!e?new _(this):this.clone();return r.__filtered__?r.__takeCount__=$c(n,r.__takeCount__):r.__views__.push({size:$c(n,It),type:t+(r.__dir__<0?"Right":"")}),r},_.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),l(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Pt||n==Dt;_.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ki(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),l(["head","last"],function(t,e){var n="take"+(e?"Right":"");_.prototype[t]=function(){return this[n](1).value()[0]}}),l(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");_.prototype[t]=function(){return this.__filtered__?new _(this):this[n](1)}}),_.prototype.compact=function(){return this.filter(Nl)},_.prototype.find=function(t){return this.filter(t).head()},_.prototype.findLast=function(t){return this.reverse().find(t)},_.prototype.invokeMap=io(function(t,e){return"function"==typeof t?new _(this):this.map(function(n){return Tr(n,t,e)})}),_.prototype.reject=function(t){return this.filter(Fu(ki(t)))},_.prototype.slice=function(t,e){t=Ms(t);var n=this;return n.__filtered__&&(t>0||e<0)?new _(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==ot&&(e=Ms(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},_.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},_.prototype.toArray=function(){return this.take(It)},nr(_.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),a=n[i?"take"+("last"==e?"Right":""):e],u=i||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,l=e instanceof _,c=s[0],f=l||xd(e),d=function(t){var e=a.apply(n,g([t],s));return i&&p?e[0]:e};f&&r&&"function"==typeof c&&1!=c.length&&(l=f=!1);var p=this.__chain__,h=!!this.__actions__.length,v=u&&!p,m=l&&!h;if(!u&&f){e=m?e:new _(this);var y=t.apply(e,s);return y.__actions__.push({func:nu,args:[d],thisArg:ot}),new o(y,p)}return v&&m?t.apply(this,s):(y=this.thru(d),v?i?y.value()[0]:y.value():y)})}),l(["pop","push","shift","sort","splice","unshift"],function(t){var e=vc[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(o&&!this.__chain__){var n=this.value();return e.apply(xd(n)?n:[],t)}return this[r](function(n){return e.apply(xd(n)?n:[],t)})}}),nr(_.prototype,function(t,e){var r=n[e];if(r){var o=r.name+"",i=lf[o]||(lf[o]=[]);i.push({name:e,func:r})}}),lf[ni(ot,yt).name]=[{name:"wrapper",func:ot}],_.prototype.clone=A,_.prototype.reverse=Z,_.prototype.value=et,n.prototype.at=td,n.prototype.chain=ru,n.prototype.commit=ou,n.prototype.next=iu,n.prototype.plant=uu,n.prototype.reverse=su,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=lu,n.prototype.first=n.prototype.head,Fc&&(n.prototype[Fc]=au),n},Cr=Er();ur._=Cr,r=function(){return Cr}.call(e,n,e,o),!(r!==ot&&(o.exports=r))}).call(this)}).call(e,function(){return this}(),n(315)(t))},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,v)||(t[v]=p++,f[t[v]]={}),f[t[v]]}var o,i=n(5),a=n(66),u=n(239),s=n(122),l=n(271),c=n(77),f={},d=!1,p=0,h={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("animationstart")||"animationstart",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",topTransitionEnd:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),g=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=t}},setEnabled:function(t){g.ReactEventListener&&g.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,o=r(n),i=a.registrationNameDependencies[t],u=0;u]/;t.exports=r},function(t,e,n){"use strict";var r,o=n(9),i=n(65),a=/^[ \r\n\t\f]/,u=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(73),l=s(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML=""+e+"";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&u.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),c=null}t.exports=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return"string"==typeof t?t:"object"==typeof t?JSON.stringify(t):t||0===t?String(t):""}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;eu.bottom||a.tope.offsetHeight&&!(e.scrollHeight-e.offsetHeight-e.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(t,e){return!t||(e?0===t.length:0===Object.keys(t).length)},getOptionLabel:function(t){return t[this.props.labelKey]},getValueArray:function(t,e){var n=this,r="object"==typeof e?e:this.props;if(r.multi){if("string"==typeof t&&(t=t.split(r.delimiter)),!Array.isArray(t)){if(null===t||void 0===t)return[];t=[t]}return t.map(function(t){return n.expandValue(t,r)}).filter(function(t){return t})}var o=this.expandValue(t,r);return o?[o]:[]},expandValue:function(t,e){if("string"!=typeof t&&"number"!=typeof t)return t;var n=e.options,r=e.valueKey;if(n)for(var o=0;o0?n-=1:n=e.length-1;else if("start"===t)n=0;else if("end"===t)n=e.length-1;else if("page_up"===t){var o=n-this.props.pageSize;n=o<0?0:o}else if("page_down"===t){var o=n+this.props.pageSize;n=o>e.length-1?e.length-1:o}n===-1&&(n=0),this.setState({focusedIndex:e[n].index,focusedOption:e[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(t,e){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!t.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?t.map(function(t,e){return l.default.createElement(o,{id:n._instancePrefix+"-value-"+e,instancePrefix:n._instancePrefix,disabled:n.props.disabled||t.clearableValue===!1,key:"value-"+e+"-"+t[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:t},r(t,e),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(e&&(i=null),l.default.createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:t[0]},r(t[0])))},renderInput:function(t,e){var n=this;if(this.props.inputRenderer)return this.props.inputRenderer();var r,a=(0,v.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,c=(0,v.default)((r={},i(r,this._instancePrefix+"-list",s),i(r,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),r)),f=u({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":c,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+e:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(t){return n.input=t},required:this.state.required,value:this.state.inputValue});if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,h=(d.inputClassName,o(d,["inputClassName"]));return l.default.createElement("div",u({},h,{role:"combobox","aria-expanded":s,"aria-owns":s?this._instancePrefix+"-list":this._instancePrefix+"-value","aria-activedescendant":s?this._instancePrefix+"-option-"+e:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(t){return n.input=t},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(p.default,u({},f,{minWidth:"5px"})):l.default.createElement("div",{className:a},l.default.createElement("input",f))},renderClear:function(){if(this.props.clearable&&this.props.value&&0!==this.props.value&&(!this.props.multi||this.props.value.length)&&!this.props.disabled&&!this.props.isLoading)return l.default.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,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},l.default.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}}))},renderArrow:function(){return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},l.default.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}))},filterOptions:function t(e){var n=this.state.inputValue,r=this.props.options||[];if(this.props.filterOptions){var t="function"==typeof this.props.filterOptions?this.props.filterOptions:m.default;return t(r,n,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return r},renderMenu:function(t,e,n){return t&&t.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:t,selectValue:this.selectValue,valueArray:e,valueKey:this.props.valueKey}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(t){var e=this;if(this.props.name){if(this.props.joinValues){var n=t.map(function(t){return a(t[e.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(t){return e.value=t},name:this.props.name,value:n,disabled:this.props.disabled})}return t.map(function(t,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:e.props.name,value:a(t[e.props.valueKey]),disabled:e.props.disabled})})}},getFocusableOptionIndex:function(t){var e=this._visibleOptions;if(!e.length)return null;var n=this.state.focusedOption||t;if(n&&!n.disabled){var r=e.indexOf(n);if(r!==-1)return r}for(var o=0;o-1?void 0:a("96",t),!l.plugins[n]){e.extractEvents?void 0:a("97",t),l.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)?void 0:a("98",i,t)}}}function o(t,e,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,l.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){l.registrationNameModules[t]?a("100",t):void 0,l.registrationNameModules[t]=e,l.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(4),u=(n(1),null),s={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){u?a("101"):void 0,u=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]?a("102",n):void 0,s[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return l.registrationNameModules[e.registrationName]||null; -if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=l.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){u=null;for(var t in s)s.hasOwnProperty(t)&&delete s[t];l.plugins.length=0;var e=l.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=l},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=m.getNodeFromInstance(r),e?v.invokeGuardedCallbackWithCatch(o,n,t):v.invokeGuardedCallback(o,n,t),t.currentTarget=null}function u(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(t,e){var n=u.get(t);if(!n){return null}return n}var a=n(4),u=(n(18),n(40)),s=(n(13),n(15)),l=(n(1),n(2),{isMounted:function(t){var e=u.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){l.validateCallback(e,n);var o=i(t);return o?(o._pendingCallbacks?o._pendingCallbacks.push(e):o._pendingCallbacks=[e],void r(o)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e,n){var o=i(t,"replaceState");o&&(o._pendingStateQueue=[e],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(l.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(t,e){var n=i(t,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t?a("122",e,o(t)):void 0}});t.exports=l},function(t,e){"use strict";var n=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,o)})}:t};t.exports=n},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=o[t];return!!r&&!!n[r]}function r(t){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},function(t,e){"use strict";function n(t){var e=t.target||t.srcElement||window;return e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(9);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},function(t,e){"use strict";function n(t,e){var n=null===t||t===!1,r=null===e||e===!1;if(n||r)return n===r;var o=typeof t,i=typeof e;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&t.type===e.type&&t.key===e.key}t.exports=n},function(t,e,n){"use strict";var r=(n(5),n(11)),o=(n(2),r);t.exports=o},function(t,e){"use strict";function n(t,e,n){function r(){return a=!0,u?void(l=[].concat(Array.prototype.slice.call(arguments))):void n.apply(this,arguments)}function o(){if(!a&&(s=!0,!u)){for(u=!0;!a&&i=t&&s&&(a=!0,n()))}}var i=0,a=!1,u=!1,s=!1,l=void 0;o()}function r(t,e,n){function r(t,e,r){a||(e?(a=!0,n(e)):(i[t]=r,a=++u===o,a&&n(null,i)))}var o=t.length,i=[];if(0===o)return n(null,i);var a=!1,u=0;t.forEach(function(t,n){e(t,n,function(t,e){r(n,t,e)})})}e.__esModule=!0,e.loopAsync=n,e.mapAsync=r},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.router=e.routes=e.route=e.components=e.component=e.location=e.history=e.falsy=e.locationShape=e.routerShape=void 0;var i=n(3),a=n(55),u=(o(a),n(24)),s=r(u),l=n(7),c=(o(l),i.PropTypes.func),f=i.PropTypes.object,d=i.PropTypes.shape,p=i.PropTypes.string,h=e.routerShape=d({push:c.isRequired,replace:c.isRequired,go:c.isRequired,goBack:c.isRequired,goForward:c.isRequired,setRouteLeaveHook:c.isRequired,isActive:c.isRequired}),v=e.locationShape=d({pathname:p.isRequired,search:p.isRequired,state:f,action:p.isRequired,key:p}),g=e.falsy=s.falsy,m=e.history=s.history,y=e.location=v,b=e.component=s.component,_=e.components=s.components,x=e.route=s.route,w=(e.routes=s.routes,e.router=h),E={falsy:g,history:m,location:y,component:b,components:_,route:x,router:w};e.default=E},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}function i(t,e){function n(e){var n=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=void 0;return n&&n!==!0||null!==r?(e={pathname:e,query:n},o=r||!1):(e=t.createLocation(e),o=n),(0,d.default)(e,o,b.location,b.routes,b.params)}function r(t,n){_&&_.location===t?i(_,n):(0,g.default)(e,t,function(e,r){e?n(e):r?i(a({},r,{location:t}),n):n()})}function i(t,e){function n(n,o){return n||o?r(n,o):void(0,h.default)(t,function(n,r){n?e(n):e(null,null,b=a({},t,{components:r}))})}function r(t,n){t?e(t):e(null,n)}var o=(0,l.default)(b,t),i=o.leaveRoutes,u=o.changeRoutes,s=o.enterRoutes;(0,c.runLeaveHooks)(i,b),i.filter(function(t){return s.indexOf(t)===-1}).forEach(v),(0,c.runChangeHooks)(u,b,t,function(e,o){return e||o?r(e,o):void(0,c.runEnterHooks)(s,t,n)})}function u(t){var e=arguments.length<=1||void 0===arguments[1]||arguments[1];return t.__id__||e&&(t.__id__=x++)}function s(t){return t.reduce(function(t,e){return t.push.apply(t,w[u(e)]),t},[])}function f(t,n){(0,g.default)(e,t,function(e,r){if(null==r)return void n();_=a({},r,{location:t});for(var o=s((0,l.default)(b,_).leaveRoutes),i=void 0,u=0,c=o.length;null==i&&u=0&&e._disposeHandlers.splice(n,1)},check:u,apply:f,status:function(t){return t?void x.push(t):w},addStatusHandler:function(t){x.push(t)},removeStatusHandler:function(t){var e=x.indexOf(t);e>=0&&x.splice(e,1)},data:b[t]};return e}function i(t){w=t;for(var e=0;e0;){var i=r.pop(),t=T[i];if(t&&!t.hot._selfAccepted){if(t.hot._selfDeclined)return new Error("Aborted because of self decline: "+i);if(0===i)return;for(var a=0;a=0||(s.hot._acceptedDependencies[i]?(n[u]||(n[u]=[]),o(n[u],[i])):(delete n[u],e.push(u),r.push(u)))}}}return[e,n]}function o(t,e){for(var n=0;n0;){var f=x.pop(),E=T[f];if(E){for(var C={},k=E.hot._disposeHandlers,M=0;M=0&&A.parents.splice(S,1)}}}}for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f))for(var E=T[f],P=u[f],M=0;M=0&&E.children.splice(S,1)}i("apply"),y=g;for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(t[f]=l[f]);var D=null;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){for(var E=T[f],P=u[f],N=[],m=0;m=0||N.push(O)}for(var m=0;m 0) {\n var _ret = function () {\n var fields = rows[0];\n var records = rows.slice(1).map(function (row) {\n return zip(fields, row);\n });\n\n return {\n v: {\n fields: fields,\n records: records\n }\n };\n }();\n\n if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === \"object\") return _ret.v;\n } else {\n return {\n records: rows\n };\n }\n};\n\nCSV.normalizeDialectOptions = function (options) {\n // note lower case compared to CSV DDF\n var out = {\n delimiter: ',',\n doublequote: true,\n lineterminator: '\\n',\n quotechar: '\"',\n skipinitialspace: true,\n skipinitialrows: 0\n };\n for (var key in options) {\n if (key === 'trim') {\n out.skipinitialspace = options.trim;\n } else {\n out[key.toLowerCase()] = options[key];\n }\n }\n return out;\n};\n\n// ## parse\n//\n// For docs see the README\n//\n// Heavily based on uselesscode's JS CSV parser (MIT Licensed):\n// http://www.uselesscode.org/javascript/csv/\nCSV.parse = function (s, dialect) {\n // Get rid of any trailing \\n\n s = chomp(s);\n\n var options = CSV.normalizeDialectOptions(dialect);\n\n var cur = '',\n // The character we are currently processing.\n inQuote = false,\n fieldQuoted = false,\n field = '',\n // Buffer for building up the current field\n row = [],\n out = [],\n i,\n processField;\n\n processField = function processField(field) {\n if (fieldQuoted !== true) {\n // If field is empty set to null\n if (field === '') {\n field = null;\n // If the field was not quoted and we are trimming fields, trim it\n } else if (options.skipinitialspace === true) {\n field = trim(field);\n }\n\n // Convert unquoted numbers to their appropriate types\n if (rxIsInt.test(field)) {\n field = parseInt(field, 10);\n } else if (rxIsFloat.test(field)) {\n field = parseFloat(field, 10);\n }\n }\n return field;\n };\n\n for (i = 0; i < s.length; i += 1) {\n cur = s.charAt(i);\n\n // If we are at a EOF or EOR\n if (inQuote === false && (cur === options.delimiter || cur === '\\n')) {\n field = processField(field);\n // Add the current field to the current row\n row.push(field);\n // If this is EOR append row to output and flush row\n if (cur === '\\n') {\n out.push(row);\n row = [];\n }\n // Flush the field buffer\n field = '';\n fieldQuoted = false;\n } else {\n // If it's not a quotechar, add it to the field buffer\n if (cur !== options.quotechar) {\n field += cur;\n } else {\n if (!inQuote) {\n // We are not in a quote, start a quote\n inQuote = true;\n fieldQuoted = true;\n } else {\n // Next char is quotechar, this is an escaped quotechar\n if (s.charAt(i + 1) === options.quotechar) {\n field += options.quotechar;\n // Skip the next char\n i += 1;\n } else {\n // It's not escaping, so end quote\n inQuote = false;\n }\n }\n }\n }\n }\n\n // Add the last field\n field = processField(field);\n row.push(field);\n out.push(row);\n\n // Expose the ability to discard initial rows\n if (options.skipinitialrows) out = out.slice(options.skipinitialrows);\n\n return out;\n};\n\nCSV.objectToArray = function (dataToSerialize) {\n var a = [];\n var fieldNames = [];\n var ii;\n var jj;\n\n for (ii = 0; ii < dataToSerialize.fields.length; ii++) {\n fieldNames.push(dataToSerialize.fields[ii].id);\n }\n a.push(fieldNames);\n for (ii = 0; ii < dataToSerialize.records.length; ii++) {\n var tmp = [];\n var record = dataToSerialize.records[ii];\n for (jj = 0; jj < fieldNames.length; jj++) {\n tmp.push(record[fieldNames[jj]]);\n }\n a.push(tmp);\n }\n return a;\n};\n\n// ## serialize\n//\n// See README for docs\n//\n// Heavily based on uselesscode's JS CSV serializer (MIT Licensed):\n// http://www.uselesscode.org/javascript/csv/\nCSV.serialize = function (dataToSerialize, dialect) {\n var a = null;\n if (dataToSerialize instanceof Array) {\n a = dataToSerialize;\n } else {\n a = CSV.objectToArray(dataToSerialize);\n }\n var options = CSV.normalizeDialectOptions(dialect);\n\n var cur = '',\n // The character we are currently processing.\n field = '',\n // Buffer for building up the current field\n row = '',\n out = '',\n i,\n j,\n processField;\n\n processField = function processField(field) {\n if (field === null) {\n // If field is null set to empty string\n field = '';\n } else if (typeof field === 'string' && rxNeedsQuoting.test(field)) {\n if (options.doublequote) {\n field = field.replace(/\"/g, '\"\"');\n }\n // Convert string to delimited string\n field = options.quotechar + field + options.quotechar;\n } else if (typeof field === 'number') {\n // Convert number to string\n field = field.toString(10);\n }\n\n return field;\n };\n\n for (i = 0; i < a.length; i += 1) {\n cur = a[i];\n\n for (j = 0; j < cur.length; j += 1) {\n field = processField(cur[j]);\n // If this is EOR append row to output and flush row\n if (j === cur.length - 1) {\n row += field;\n out += row + '\\n';\n row = '';\n } else {\n // Add the current field to the current row\n row += field + options.delimiter;\n }\n // Flush the field buffer\n field = '';\n }\n }\n\n return out;\n};\n\nvar rxIsInt = /^\\d+$/,\n rxIsFloat = /^\\d*\\.\\d+$|^\\d+\\.\\d*$/,\n\n// If a string has leading or trailing space,\n// contains a comma double quote or a newline\n// it needs to be quoted in CSV output\nrxNeedsQuoting = /^\\s|\\s$|,|\"|\\n/,\n trim = function () {\n // Fx 3.1 has a native trim function, it's about 10x faster, use it if it exists\n if (String.prototype.trim) {\n return function (s) {\n return s.trim();\n };\n } else {\n return function (s) {\n return s.replace(/^\\s*/, '').replace(/\\s*$/, '');\n };\n }\n}();\n\nfunction chomp(s) {\n if (s.charAt(s.length - 1) !== '\\n') {\n // Does not end with \\n, just return string\n return s;\n } else {\n // Remove the \\n\n return s.substring(0, s.length - 1);\n }\n}\n\nfunction zip(list, values) {\n if (list == null) return {};\n var result = {};\n for (var i = 0, l = list.length; i < l; i++) {\n if (values) {\n result[list[i]] = values[i];\n } else {\n result[list[i][0]] = list[i][1];\n }\n }\n return result;\n}\n\nexports.default = CSV;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/csv.js\n ** module id = 1\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/csv.js?")}])})},function(module,exports,__webpack_require__){!function(t,e){module.exports=e()}(this,function(){return function(t){function e(t){var e=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=d.p+""+t+"."+y+".hot-update.js",e.appendChild(n)}function n(t){if("undefined"==typeof XMLHttpRequest)return t(new Error("No browser support"));try{var e=new XMLHttpRequest,n=d.p+""+y+".hot-update.json";e.open("GET",n,!0),e.timeout=1e4,e.send(null)}catch(e){return t(e)}e.onreadystatechange=function(){if(4===e.readyState)if(0===e.status)t(new Error("Manifest request to "+n+" timed out."));else if(404===e.status)t();else if(200!==e.status&&304!==e.status)t(new Error("Manifest request to "+n+" failed."));else{try{var r=JSON.parse(e.responseText)}catch(e){return void t(e)}t(null,r)}}}function r(t){function e(t,e){"ready"===w&&i("prepare"),C++,d.e(t,function(){function n(){C--,"prepare"===w&&(k[t]||l(t),0===C&&0===E&&c())}try{e.call(null,r)}finally{n()}})}var n=T[t];if(!n)return d;var r=function(e){return n.hot.active?T[e]?(T[e].parents.indexOf(t)<0&&T[e].parents.push(t),n.children.indexOf(e)<0&&n.children.push(e)):_=[t]:(console.warn("[HMR] unexpected require("+e+") from disposed module "+t),_=[]),d(e)};for(var o in d)Object.prototype.hasOwnProperty.call(d,o)&&(Object.defineProperty?Object.defineProperty(r,o,function(t){return{configurable:!0,enumerable:!0,get:function(){return d[t]},set:function(e){d[t]=e}}}(o)):r[o]=d[o]);return Object.defineProperty?Object.defineProperty(r,"e",{enumerable:!0,value:e}):r.e=e,r}function o(t){var e={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],active:!0,accept:function(t,n){if("undefined"==typeof t)e._selfAccepted=!0;else if("function"==typeof t)e._selfAccepted=t;else if("object"==typeof t)for(var r=0;r=0&&e._disposeHandlers.splice(n,1)},check:u,apply:f,status:function(t){return t?void x.push(t):w},addStatusHandler:function(t){x.push(t)},removeStatusHandler:function(t){var e=x.indexOf(t);e>=0&&x.splice(e,1)},data:b[t]};return e}function i(t){w=t;for(var e=0;e0;){var i=r.pop(),t=T[i];if(t&&!t.hot._selfAccepted){if(t.hot._selfDeclined)return new Error("Aborted because of self decline: "+i);if(0===i)return;for(var a=0;a=0||(s.hot._acceptedDependencies[i]?(n[u]||(n[u]=[]),o(n[u],[i])):(delete n[u],e.push(u),r.push(u)))}}}return[e,n]}function o(t,e){for(var n=0;n0;){var f=x.pop(),E=T[f];if(E){for(var C={},k=E.hot._disposeHandlers,M=0;M=0&&A.parents.splice(S,1)}}}}for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f))for(var E=T[f],P=u[f],M=0;M=0&&E.children.splice(S,1)}i("apply"),y=g;for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(t[f]=l[f]);var D=null;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){for(var E=T[f],P=u[f],N=[],m=0;m=0||N.push(O)}for(var m=0;m 0) {\n var _tmp = queryObj.sort.map(function (sortObj) {\n return sortObj.field + ' ' + (sortObj.order || '');\n });\n actualQuery.sort = _tmp.join(',');\n }\n\n if (queryObj.filters && queryObj.filters.length > 0) {\n _.each(queryObj.filters, function (filter) {\n if (filter.type === \"term\") {\n actualQuery.filters[filter.field] = filter.term;\n }\n });\n }\n return actualQuery;\n};\n\nDKAN.query = function (queryObj, dataset) {\n return new Promise(function (resolve, reject) {\n var wrapper = void 0;\n var out = void 0;\n if (dataset.endpoint) {\n wrapper = new DataStore(dataset.endpoint);\n } else {\n out = DKAN._parseCkanResourceUrl(dataset.url);\n dataset.id = out.resource_id;\n wrapper = DKAN.DataStore(out.endpoint);\n }\n var actualQuery = DKAN._normalizeQuery(queryObj, dataset);\n var request = wrapper.search(actualQuery);\n request.then(function (response) {\n return response.json();\n }).then(function (results) {\n out = {\n total: results.result.total,\n hits: results.result.records\n };\n resolve(out);\n }).catch(function (err) {\n reject(err);\n });\n });\n};\n\nDKAN._parseCkanResourceUrl = function (url) {\n var parts = url.split('/');\n var len = parts.length;\n return {\n resource_id: parts[len - 1],\n endpoint: parts.slice(0, [len - 4]).join('/') + '/api'\n };\n};\n\nvar DataStore = function () {\n function DataStore(endpoint) {\n _classCallCheck(this, DataStore);\n\n this.endpoint = endpoint || API_ENDPOINT;\n }\n\n _createClass(DataStore, [{\n key: 'search',\n value: function search(data) {\n var filters = '';\n if (data.filters) {\n for (var filter in data.filters) {\n filters += '&filters[' + filter + ']=' + data.filters[filter];\n }\n }\n var searchUrl = this.endpoint + '/3/action/datastore_search?=' + this._objToQuery(data) + filters;\n return fetch(searchUrl);\n }\n }, {\n key: '_objToQuery',\n value: function _objToQuery(obj) {\n var str = '';\n for (var p in obj) {\n if (obj.hasOwnProperty(p)) {\n if (_typeof(obj[p]) !== 'object') {\n str += '&' + p + '=' + obj[p];\n }\n }\n }\n return str;\n }\n }]);\n\n return DataStore;\n}();\n\nexports.default = DKAN;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/dkan.js\n ** module id = 1\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/dkan.js?")}])})},function(t,e,n){"use strict";var r=n(11),o={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},function(t,e){"use strict";function n(t){try{t.focus()}catch(t){}}t.exports=n},function(t,e){"use strict";function n(t){if(t=t||("undefined"!=typeof document?document:void 0),"undefined"==typeof t)return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=n},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=Object.assign||function(t){for(var e=1;e0,"fixedDataTableRowLayout/columnsShadow":r.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":t>0,"public/fixedDataTableRow/columnsShadow":r.props.scrollLeft>0}),n={left:t,height:r.props.height};return c.default.createElement("div",{className:e,style:n})},r._renderColumnsRightShadow=function(t){if(Math.ceil(r.props.scrollLeft+r.props.width)=0&&0===window.sessionStorage.length)return;throw t}}function a(t){var e=void 0;try{e=window.sessionStorage.getItem(o(t))}catch(t){if(t.name===c)return null}if(e)try{return JSON.parse(e)}catch(t){}return null}e.__esModule=!0,e.saveState=i,e.readState=a;var u=n(14),s=(r(u),"@@History/"),l=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],c="SecurityError"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){function e(t){return s.canUseDOM?void 0:u.default(!1),n.listen(t)}var n=f.default(i({getUserConfirmation:l.getUserConfirmation},t,{go:l.go}));return i({},n,{listen:e})}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e1?e-1:0),i=1;i1)for(var n=1;n=0?e:(0,i.get)(t.root,e)}}]),t}(),s=u;e.default=s,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(a,"reactEls","/Users/Mariano/Proyectos/docker/react-dash/src/utils/Registry.js"),__REACT_HOT_LOADER__.register(u,"Registry","/Users/Mariano/Proyectos/docker/react-dash/src/utils/Registry.js"),__REACT_HOT_LOADER__.register(s,"default","/Users/Mariano/Proyectos/docker/react-dash/src/utils/Registry.js"))}()},function(t,e){t.exports=n(48)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e0){var e=g.default.handle(this.props.stateHandlers,this.props.data,this.state.dashboardData);t=u(t,e)}return t}},{key:"getCardVariables",value:function(){var t=this,e={};return b.forEach(function(n){e[n]=t.state[n]||t.props[n]}),e}},{key:"addResizeListener",value:function(){var t=this;this._resizeHandler=function(e){var n=(0,c.findDOMNode)(t).getBoundingClientRect().width;t.setState({componentWidth:n}),t.onResize(e)},window.addEventListener("resize",this._resizeHandler)}},{key:"onResize",value:function(){}},{key:"onAction",value:function(){}}]),e}(l.Component),x=_;e.default=x,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(b,"CARD_VARS","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseComponent.js"),__REACT_HOT_LOADER__.register(_,"BaseComponent","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseComponent.js"),__REACT_HOT_LOADER__.register(x,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseComponent.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:5,e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",r=0;r=0)&&t.replace("fid","")}Object.defineProperty(e,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e=0&&(t=!0)}),t}},{key:"loadOptions",value:function(t){var e=/\{\{(.+)\}\}/;if(this.props.url)return fetch(this.props.url.replace(e,t)).then(function(t){return t.json()}).then(function(t){return{options:t}});if(this.props.options)return Promise.resolve({options:this.props.options,isLoading:!1});if(this.props.data&&this.props.data[0]){var n=this.props.data[0];return Promise.resolve({options:n,isLoading:!1})}return Promise.resolve({options:[],isLoading:!1})}}]),e}(p.default)),v=h;e.default=v,f.default.set("BaseFilter",h),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(h,"BaseFilter","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseFilter.js"),__REACT_HOT_LOADER__.register(v,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseFilter.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),i=r(o),a=n(54),u=r(a),s=u.default,l=s;e.default=l,i.default.set("ReactSelect",u.default),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(s,"ReactSelect","/Users/Mariano/Proyectos/docker/react-dash/src/components/ReactSelect.js"),__REACT_HOT_LOADER__.register(l,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/ReactSelect.js"))}()},function(t,e){t.exports=n(83)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[],n=t,r=this.state.appliedFilters||{},o=p.DataHandler.handle.call(this,n,e,this.state.data,{e:"foo"},r);return o}},{key:"getUrlFilters",value:function(){var t=this,e=this.props.location.query,n={};return Object.keys(e).forEach(function(r){var o={};o.field=r,o.value=e[r].split(","),o.vals=o.value.map(function(t){return isNaN(t)||parseInt(t),t}),n=t.getUpdatedAppliedFilters(o,n)}),n}},{key:"getDashboardData",value:function(){console.log("Warning. getDashboardData should be defined in your application which extends this dashboard component. getDashboardData should return an object with dataKeys. See @@LINK")}},{key:"getChildData",value:function(t){var e=[];return t.dataHandlers?e=this._applyDataHandlers(t.dataHandlers,t.data):t.data&&t.data.length>0&&(e=t.data),e}},{key:"getFilters",value:function(t,e){return Object.keys(e).map(function(n){var r=e[n];if(r&&r.willFilter&&r.willFilter.length>0){var o=r.willFilter.indexOf(t);if(o>=0)return e[n]}})}},{key:"getFilterByField",value:function(t){var e=void 0;return this.props.regions.forEach(function(n){return n.children?n.children.forEach(function(n){n.field===t&&(e=n)}):void(n.elements&&Object.keys(n.elements).forEach(function(r){n.elements[r].forEach(function(n){n.field===t&&(e=n)})}))}),e}},{key:"onAction",value:function(t){switch(t.actionType){case"AUTOCOMPLETE_CHANGE":var e=u({},this.state.appliedFilters),n=this.getUpdatedAppliedFilters(t,e),r=(0,v.appliedFiltersToQueryString)(n),o=this.props.basePath||"";this.props.doFilterRouting!==!1&&d.browserHistory.push(o+"?"+r),this.setState({appliedFilters:n,isFetching:!0}),this.getDashboardData(n);break;case"MULTICHECKBOX_CHANGE":break;default:console.warn("Actions should define an actionType. See docs @@LINK")}}},{key:"getUpdatedAppliedFilters",value:function(t,e){var n=t.field,r=this.getFilterByField(n),o=u(t,r);return(0,h.isArray)(o.value)&&o.value.length>0?(o.vals=o.value.map(function(t){return isNaN(t)?isNaN(t.value)?t.value:parseInt(t.value):parseInt(t)}),e[n]=o):o.value&&o.value.value?(isNaN(o.value.value)||(o.value.value=parseInt(o.value.value)),o.value=[o.value],e[n]=o):o.value&&"string"==typeof o.value||"number"==typeof o.value?(o.value=[o.value],e[n]=o):delete e[n],e}},{key:"updateProps",value:function(t){var e=f.default.isValidElement(t)?t.props:t,n=[];return this.props.doFilterRouting&&(n=(0,h.pick)(this.props,["history","location","params","route","routeParams","routes"])),e.data=this.getChildData(t)||[],e.globalData=u({},this.state.data||{}),e.appliedFilters=u({},this.state.appliedFilters||{}),e.vars=u({},this.props.vars||{}),e.routeParams=n,e}},{key:"getRegion",value:function(t){var e=this;return f.default.createElement("div",{id:t.id,className:t.className},t.children.map(function(t,n){var r=e.updateProps(t);t.isFetching=e.state.isFetching;var o=f.default.isValidElement(t)?t:f.default.createElement(p.Registry.get(t.type),r);return o}))}},{key:"getAccordionRegion",value:function(t){var e=this;return f.default.createElement("div",{id:t.id,className:t.className,key:(0,v.makeKey)()},f.default.createElement(m.default,{key:(0,v.makeKey)()},t.children.map(function(t,n){var r=e.updateProps(t),o=f.default.isValidElement(t)?t:f.default.createElement(p.Registry.get(t.type),r);return f.default.createElement("div",{"data-trigger":t.dataTrigger,key:"wrap_"+n},o)})))}},{key:"getRegions",value:function(){var t=this,e=void 0;return e=this.props.regions?this.props.regions.map(function(e,n){if(e.multi){var r=t.getChildData(e);e.key=n,e.children=e.elements[r]}return e.accordion?t.getAccordionRegion(e):t.getRegion(e)}):this.props.children}},{key:"render",value:function(){return f.default.createElement("div",{className:"container-fluid",key:"dashboard-container"},f.default.createElement("link",{rel:"stylesheet",type:"text/css",href:this.props.faPath}),f.default.createElement("h1",{className:"dashboard-title"},this.props.title),this.getRegions())}}]),e}(p.BaseComponent),b=y;e.default=b,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(y,"Dashboard","/Users/Mariano/Proyectos/docker/react-dash/src/components/Dashboard.js"),__REACT_HOT_LOADER__.register(b,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Dashboard.js"))}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51),o=new r.Dispatcher,i=o;e.default=i,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(o,"EventDispatcher","/Users/Mariano/Proyectos/docker/react-dash/src/dispatcher/EventDispatcher.js"),__REACT_HOT_LOADER__.register(i,"default","/Users/Mariano/Proyectos/docker/react-dash/src/dispatcher/EventDispatcher.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(n,r){var o=e.size||t.records.length,i=e.from||0,a=t.records;a=t._applyFilters(a,e),a=t._applyFreeTextQuery(a,e);var u={total:a.length,hits:a.slice(i,i+o)};n(u)})}},{key:"_applyFreeTextQuery",value:function(t,e){var n=this;if(e.q){var r=e.q.split(" "),o=r.map(function(t){return new RegExp(t.toLowerCase())});t=t.filter(function(t){var e=!0;return o.forEach(function(r){var o=!1;n.fields.forEach(function(e){var n=t[e.id];n=null!==n&&void 0!==n?n.toString():"",o=o||r.test(n.toLowerCase())}),e=e&&o}),e})}return t}},{key:"_applyFilters",value:function(t,e){function n(t){var e=c[t.field].type||"string";return l[e]}function r(t,e){var r=n(e),o=r(t[e.field]),i=r(e.term);return o===i}function o(t,e){var r=n(e),o=r(t[e.field]),i=r(e.terms).split(",");return i.indexOf(o)>=0}function a(t,e){var r=(0,i.isUndefined)(e.from)||null===e.from||""===e.from,o=(0,i.isUndefined)(e.to)||null===e.to||""===e.to,a=n(e),u=a(t[e.field]),s=a(r?"":e.from),l=a(o?"":e.to);return!!(r&&o||""!==u)&&(r||u>=s)&&(o||u<=l)}var u=e.filters||[],s={term:r,terms:o,range:a},l={integer:function(t){return parseFloat(t,10)},float:function(t){return parseFloat(t,10)},number:function(t){return parseFloat(t,10)},string:function(t){return t.toString()},date:function(t){return Date.parse(t)},datetime:function(t){return new Date(t).valueOf()}},c=this.fields.reduce(function(t,e){return t[e.id]=e,t},{});return t.filter(function(t){var e=u.map(function(e){return s[e.type](t,e)});return(0,i.every)(e,i.identity)})}}]),t}(),u=a;e.default=u,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(a,"MemoryStore","/Users/Mariano/Proyectos/docker/react-dash/src/models/MemoryStore.js"),__REACT_HOT_LOADER__.register(u,"default","/Users/Mariano/Proyectos/docker/react-dash/src/models/MemoryStore.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],"string"==typeof t?(0,E.format)(t):(0,w.isFunction)(t)?t:void 0}},{key:"getFormattedSettings",value:function(){var t=this,e=u({},this.props.settings);if(e.color&&!Array.isArray(e.color)){var n=void 0;n=this.props.data.length&&this.props.data[0].values?(0,w.map)((0,w.flatten)((0,w.map)(this.props.data,"values")),e.x):(0,w.uniq)((0,w.map)(this.props.data,e.x)),e.color=(0,w.values)((0,w.pick)(e.color,n))}return Object.keys(e).forEach(function(n){e[n].tickFormat&&(e[n].tickFormat=t.getFormatter(e[n].tickFormat))}),e}},{key:"render",value:function(){var t=u({},this.props),e=u({datum:this.props.data,key:this.state.key},this.getFormattedSettings());return t.header=this.state.header||t.header,t.footer=this.state.footer||t.footer,c.default.createElement(y.default,u({key:"card_"+this.state.key},this.state.cardVariables),c.default.createElement(h.default,e))}}]),e}(g.default),k=C;e.default=k,d.default.set("Chart",C),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(C,"Chart","/Users/Mariano/Proyectos/docker/react-dash/src/components/Chart.js"),__REACT_HOT_LOADER__.register(k,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Chart.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;nr?(a=Math.max(r-o,1),u=n+i>r?r:n+i):(a=n-i,u=n+i),(0,x.range)(a,u+1)}},{key:"getPageNumbers",value:function(t,e,n){var r=this;if(this.getTotalPages()&&!(this.getTotalPages()<2))return this.getPages(t,e,n).map(function(t){return h.default.createElement("li",{className:t==r.state.currentPage?"active":"",key:"page-"+t},h.default.createElement("a",{onClick:(0,x.partialRight)(r._onPageChange,t).bind(r),href:"#"},t))})}},{key:"getLastPage",value:function(t,e){var n=getTotalPages(t,e);return n[n.length-1]}},{key:"getTotalPages",value:function(t,e){return Math.ceil(e/t)}},{key:"onResize",value:function(){var t=this.table,e=t.offsetWidth,n=t.offsetHeight;this.setState({gridWidth:e,gridHeight:n})}},{key:"_onPageChange",value:function(t,e,n,r){t.preventDefault();var o=this.state.rowsPerPage,i=u({},this.state.queryObj,{size:o,from:r*o-o});this.query(i),this.setState({currentPage:r,queryObj:i})}},{key:"_onFilterChange",value:function(t){var e=this.state.rowsPerPage,n=u({},this.state.queryObj,{size:e,from:this.state.currentPage*e-e,q:t.target.value});this.query(n),this.setState({currentPage:1})}},{key:"_onRowsPerPageChange",value:function(t){var e=u({},this.state.queryObj);e.size=Number(t.target.value),e.from=0,this.query(e),this.setState({rowsPerPage:Number(t.target.value),currentPage:1})}},{key:"render",value:function(){var t=this,e=this.state,n=e.gridWidth,r=(e.gridHeight,this.props.data[0]||[]),o=(0,d.getProp)("settings.table",this.props),i=(0,d.getProp)("settings.columns",this.props),a=(0,d.getProp)("settings.rows",this.props),s=Object.keys(r[0]||{}),c=this.getTotalPages(this.state.rowsPerPage,this.state.total),f=s.map(function(e,n){var o=(0,d.getProp)("columns."+e,t.props.overrides);return h.default.createElement(l.Column,u({header:h.default.createElement(l.Cell,null,e),key:e+n,columnKey:e,flexGrow:1,cell:function(n){var i=(0,d.getProp)("rows."+n.rowIndex,t.props.overrides),s=(0,d.getProp)("cells."+e+"_"+n.rowIndex,t.props.overrides);return h.default.createElement(l.Cell,u({},n,o,a,i,s),r[n.rowIndex][n.columnKey])}},i,o))}),p="",v="";return this.props.hideFilterHeader||(p=h.default.createElement("div",{className:"col-md-10"},h.default.createElement("div",{className:"form-group"},h.default.createElement("input",{onChange:this._onFilterChange.bind(this),placeholder:"Filter",className:"form-control"})))),this.props.hideControls||(v=h.default.createElement("div",{className:"col-md-2"},h.default.createElement("div",{onChange:this._onRowsPerPageChange.bind(this),className:"form-group"},h.default.createElement("select",{className:"form-control"},h.default.createElement("option",{value:"10"},"10"),h.default.createElement("option",{value:"25"},"25"),h.default.createElement("option",{value:"50"},"50"),h.default.createElement("option",{value:"100"},"100"),h.default.createElement("option",{value:"500"},"500"))))),h.default.createElement(y.default,u({key:"card_"+this.state.key},this.state.cardVariables),h.default.createElement("div",{ref:function(e){return t.table=e},className:"table-wrapper"},h.default.createElement("div",{className:"row"},p,v),h.default.createElement(_.default,{isFetching:this.props.isFetching||!r.length},h.default.createElement("div",{className:"table-container"},h.default.createElement(l.Table,u({rowsCount:r.length},o,{width:n,rowHeightGetter:this.rowHeightGetter}),f)),h.default.createElement("nav",null,h.default.createElement("ul",{className:"pagination"},h.default.createElement("li",{className:1===this.state.currentPage?"hide":""},h.default.createElement("a",{onClick:(0,x.partialRight)(this._onPageChange,1).bind(this),href:"#","aria-label":"Previous"},h.default.createElement("span",{"aria-hidden":"true"},"«"))),h.default.createElement("li",{className:1===this.state.currentPage?"hide":""},h.default.createElement("a",{onClick:(0,x.partialRight)(this._onPageChange,this.state.currentPage-1).bind(this),href:"#","aria-label":"Previous"},h.default.createElement("span",{"aria-hidden":"true"},"«"))),this.getPageNumbers(this.state.rowsPerPage,this.state.total,this.state.currentPage),h.default.createElement("li",{className:c&&this.state.currentPage!==c?"":"hide"},h.default.createElement("a",{onClick:(0,x.partialRight)(this._onPageChange,this.state.currentPage+1).bind(this),href:"#","aria-label":"Next"},h.default.createElement("span",{"aria-hidden":"true"},"»"))),h.default.createElement("li",{className:c&&this.state.currentPage!==c?"":"hide"},h.default.createElement("a",{onClick:(0,x.partialRight)(this._onPageChange,c).bind(this),href:"#","aria-label":"Next"},h.default.createElement("span",{"aria-hidden":"true"},"»"))))))))}}]),e}(g.default);w.defaultProps={rowsPerPage:10,queryObj:{size:10,from:0}};var E=w;e.default=E,f.default.set("DataTable",w),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(w,"DataTable","/Users/Mariano/Proyectos/docker/react-dash/src/components/DataTable.js"),__REACT_HOT_LOADER__.register(E,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/DataTable.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var n=0;nt.from&&r<=t.to})}},{key:"trackStatus",value:function(){var t=Date.parse(this.props.startDate),e=Date.parse(this.props.endDate),n=Number(this.props.startNumber),r=Number(this.props.endNumber),o=this.getTracker(t,e,n,r),i=o(Date.now()),a=i-this.getMetric(this.state.data),u={increase:a<=0,decrease:a>=0,maintain_above:a<=0,maintain_below:a>=0,maintain:!0,mesure:!0};return this.getTolerance(a,u[this.props.action])}},{key:"getTracker",value:function(t,e,n,r){return function(o){var i=(r-n)/(e-t),a=i*(o-t);return a}}},{key:"formatActionName",value:function(t){return(0,b.capitalize)(this.props.action.replace("_"," "))}},{key:"getCaption",value:function(){var t={action:this.formatActionName(this.props.action),caption:this.props.caption,startNumber:(0,C.formatNumber)(this.props.startNumber,this.state.numberFormat),endNumber:(0,C.formatNumber)(this.props.endNumber,this.state.numberFormat),startDate:(0,C.formatDate)(new Date(this.props.startDate),this.state.dateFormat),endDate:(0,C.formatDate)(new Date(this.props.endDate),this.state.dateFormat)},e=(0,b.template)(this.props.captionTemplates[this.props.action]);return e(t)}},{key:"render",value:function(){var t=u({},(0,b.head)(this.trackStatus())),e={background:this.props.background},n=void 0,r=void 0;if(e=u({},e,this.props.style),this.props.spline){var o=u({},this.props.spline);n=c.default.createElement(x.default,u({type:"sparklinePlus",datum:this.state.data,showLastValue:!1,color:["#333333"]},o))}return this.state.showEndNumber&&(r=c.default.createElement("span",{className:"card-goal-end-number"}," ",this.props.divider," ",(0,C.formatNumber)(this.props.endNumber,this.state.numberFormat))),c.default.createElement(g.default,this.state.cardVariables,c.default.createElement(y.default,{isFetching:this.props.isFetching},c.default.createElement("div",{className:"goal",style:e},c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-md-4"},c.default.createElement("div",{className:"card-goal-icon"},c.default.createElement("span",{className:(0,E.default)("glyphicon",this.props.icon)}))),c.default.createElement("div",{className:"col-md-8"},c.default.createElement("div",{className:"card-goal-caption"},this.getCaption()))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-md-4"},c.default.createElement("div",{className:"card-goal-progress"},c.default.createElement("span",{className:"card-goal-metric"},(0,C.formatNumber)(this.getMetric(this.state.data),this.state.numberFormat)),r)),c.default.createElement("div",{className:"col-md-8"},c.default.createElement("div",{className:"card-goal-status"},c.default.createElement("a",{style:{color:t.color},href:this.props.link},t.label)),c.default.createElement("div",{className:"card-goal-end-date"},(0,C.formatDate)(new Date(this.props.endDate),this.state.dateFormat)))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-md-12"},c.default.createElement("div",{className:"spline"},n))))))}}]),e}(h.default);O.defaultProps={captionTemplates:{increase:"${action} ${caption} ${endNumber} by ${endDate}",decrease:"${action} ${caption} ${endNumber} by ${endDate}",maintain:"${action} at ${endNumber} ${caption} by ${endDate}",maintain_above:"${action} ${endNumber} ${caption} by ${endDate}",maintain_below:"${action} ${endNumber} ${caption} by ${endDate}",mesure:"${caption}"},divider:" / ",style:{color:"black",background:"white"}};var T=O;e.default=T,d.default.set("Goal",O),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(O,"Goal","/Users/Mariano/Proyectos/docker/react-dash/src/components/Goal.js"),__REACT_HOT_LOADER__.register(T,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Goal.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n0?this.props.data[0]:this.props.data&&!(0,g.isArray)(this.props.data)?this.props.data:this.props.content?this.props.content:""}},{key:"render",value:function(){return l.default.createElement(v.default,this.state.cardVariables,l.default.createElement("div",{dangerouslySetInnerHTML:{__html:this.getContent()}}))}}]),e}(p.default),y=m;e.default=y,f.default.set("Markup",m),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(m,"Markup","/Users/Mariano/Proyectos/docker/react-dash/src/components/Markup.js"),__REACT_HOT_LOADER__.register(y,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Markup.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:[];return p.DataHandler.handle.call(this,t,n,this.props.globalData,{},e)}},{key:"getChildren",value:function(){var t=this,e=void 0;return this.props.children&&(e=this.props.children.map(function(e,n){var r=u(e,{globalData:t.props.globalData,appliedFilters:t.props.appliedFilters});return e.dataHandlers?r.data=t._applyDataHandlers(e.dataHandlers,e.appliedFilters,e.data):e.data&&e.data.length>0&&(r.data=e.data),c.default.createElement(d.default.get(e.type),r)})),e}},{key:"render",value:function(){var t=this.getChildren();return c.default.createElement("div",{className:this.props.className},t)}}]),e}(l.Component)),g=v;e.default=g,d.default.set("Region",v),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(v,"Region","/Users/Mariano/Proyectos/docker/react-dash/src/components/Region.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Region.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e0?a[0]:[]}};i.default.setLib("NVD3",u),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(a,"LibName","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/NVD3DataHandlers.js"),__REACT_HOT_LOADER__.register(u,"dataHandlers","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/NVD3DataHandlers.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{ -default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),i=r(o),a=n(7),u="common",s={fieldsToXYSeries:function(t,e,n,r,o,i){var a=i||t;if(!a.length)return[];Array.isArray(a[1])||(a=[a]);var u=a.map(function(t){var e=n.xField||"x";return n.field,t.map(function(t){return{y:t[n.field],x:t[e]}})});return u},fieldToD3Format:function(t,e,n,r,o,i){var u=i||t||[],s=(0,a.format)(n.format);return u.map(function(t){return t.map(function(t){return t[n.field]=s(t[n.field]),t})}),u},filterDashboardDataByParamEquals:function(t,e,n,r,o,i){var a=e,u=a.filter(function(t){return t[n.field]===n.value});return[u]},parseDateField:function(t,e,n,r,o,i){var a=i||t;return a.map(function(t){return t[n.field]=Date.parse(t[n.field]),t})},getEventReturn:function(t,e,n,r,o,i){return r?r.value:t},getXYByQueryData:function(t,e,n,r,o,i){if(e&&e[n.dataKey]&&e[n.dataKey][n.queryKey]){var a=e[n.dataKey][n.queryKey].result.records,u=a.map(function(t){var e={};return e[n.xField]=t[n.xField],e[n.yField]=t[n.yField],e});return[u]}return[]},getXYByQueryDataWhere:function(t,e,n,r,o,i){if(e&&e[n.dataKey]&&e[n.dataKey][n.queryKey]){var a=e[n.dataKey][n.queryKey].result.records,u=a.filter(function(t){var e=n.whereFieldValueIn.indexOf(t[n.whereField])>=0;return e}),s=u.map(function(t){var e={};return e[n.xField]=t[n.xField],e[n.yField]=t[n.yField],e});return[s]}return[]},getXYByQueryDataWhereFieldsIn:function(t,e,n,r,o,i){if(e&&e[n.dataKey]&&e[n.dataKey][n.queryKey]){var a=e[n.dataKey][n.queryKey].result.records,u=a.filter(function(t){var e=void 0;return n.whereField.forEach(function(r){e=n.whereFieldValueIn.indexOf(t[r])>=0}),e}),s=u.map(function(t){var e={};return e[n.xField]=t[n.xField],e[n.yField]=t[n.yField],e});return[s]}return[]},getPercentileSeries:function(t,e,n,r,o,i){},groupByRange:function(t,e,n,r,o,i){var a=i||t,u=[];return a.forEach(function(t){var e=[],r=function(r){var o=n.ranges[r][0],i=n.ranges[r][1],a=o+" - "+i,u=0,s={};t.forEach(function(t){t[n.xField]>=o&&t[n.xField]<=i&&(u+=parseInt(t[n.yField]))}),s[n.xField]=a,s[n.yField]=u,e.push(s)};for(var o in n.ranges)r(o);u.push(e)}),u},seriesFromRanges:function(t,e,n,r,o,i){var a=i||t;if(a.length>0){var u=a[0].map(function(t,e){var r={},o=[],i={};return r.key=t[n.xField],r.color=n.colors[e],i.label=n.xLabel,i.value=t[n.yField],o.push(i),r.values=o,r});return u}return a},rekeySeries:function(t,e,n,r,o,i){var a=i||t;if(a.length>0){var u=a[0].map(function(t){var e={};return Object.keys(t).forEach(function(r,o){e[n.newKeys[o]]=t[r]}),e});return[u]}return[]},parseInts:function(t,e,n,r,o,i){var a=i||t;return a.forEach(function(t){t.forEach(function(t){n.fields.forEach(function(e){t[e]=parseInt(t[e])})})}),a},toPieChartSeries:function(t,e,n,r,o,i){var a=i||t;return a.length>0?a[0]:[]},changeFieldNames:function(t,e,n,r,o,i){var a=i||t,u=[];return a.forEach(function(t){var e=void 0;e=t.map(function(t){return t[n.xField]=n.fields[t[n.xField]],t}),u.push(e)}),u},whitelistValues:function(t,e,n,r,o,i){var a=i||t,u=void 0;return a.length>0?u=a.map(function(t){return t.filter(function(t){if(n.whiteList.indexOf(t[n.field])>=0)return!0})}):a},inspect:function(t,e,n,r,o,i){var a=i||t;return console.log("INSPECT>>",this,a,arguments),a}};i.default.setLib("common",s);var l=s;e.default=l,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(u,"libName","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/common.js"),__REACT_HOT_LOADER__.register(s,"dataHandlers","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/common.js"),__REACT_HOT_LOADER__.register(l,"default","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/common.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(43);Object.defineProperty(e,"NVD3DataHandlers",{enumerable:!0,get:function(){return r(o).default}});var i=n(44);Object.defineProperty(e,"common",{enumerable:!0,get:function(){return r(i).default}}),function(){"undefined"==typeof __REACT_HOT_LOADER__}()},function(t,e,n){"use strict";function r(t){var e=[];for(var n in t)e.push(n+"="+t[n]);return"?"+e.join("&")}function o(t){return!!(t.indexOf&&t.indexOf("fid")>=0)&&t.replace("fid","")}function i(t){return JSON.parse('{"'+decodeURI(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}function a(t,e,n){var r={};if(Object.keys(t).forEach(function(o){if(o===e)if("object"===c(t[o]))n?r=t[o]:t[o].forEach(function(t){var e=t.split("__");if(r[e[0]]&&"object"===c(r[e[0]]))r[e[0]].push(e[1]);else if(r[e[0]]&&"string"==typeof r[e[0]]){var n={},o=[];o.push(r[e[0]]),o.push(e[1]),n[e[0]]=o,r=l(r,n)}else r[e[0]]=e[1]});else if(t[o].indexOf("__")<0)console.log("gop",t[o],r),r[o]=t[o];else{var i=t[o].split("__");r[i[0]]=i[1]}}),!(0,f.isEmpty)(r))return r}function u(t){var e,n,r,o,i,a;if(n=[],i=/%20/g,r=function(t,e){e="function"==typeof e?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)},t instanceof Array)for(o in t)r(o,t[o]);else for(e in t)s(e,t[e],r);return a=n.join("&").replace(i,"+")}function s(t,e,n){var r,o,i,a;if(a=/\[\]$/,e instanceof Array)for(o=0,i=e.length;o.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,u=g.createElement(I,{child:e});if(t){var s=w.get(t);a=s._processChildContext(s._context)}else a=O;var c=d(n);if(c){var f=c._currentElement,h=f.props.child;if(S(h,e)){var v=c._renderedComponent.getPublicInstance(),m=r&&function(){r.call(v)};return H._updateRootComponent(c,u,a,n,m),v}H.unmountComponentAtNode(n)}var y=o(n),b=y&&!!i(y),_=l(n),x=b&&!c&&!_,E=H._renderNewRootComponent(u,n,x,a)._renderedComponent.getPublicInstance();return r&&r.call(E),E},render:function(t,e,n){return H._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){c(t)?void 0:p("40");var e=d(t);if(!e){l(t),1===t.nodeType&&t.hasAttribute(R);return!1}return delete F[e._instance.rootID],M.batchedUpdates(s,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,i,a){if(c(e)?void 0:p("41"),i){var u=o(e);if(E.canReuseMarkup(t,u))return void y.precacheNode(n,u);var s=u.getAttribute(E.CHECKSUM_ATTR_NAME);u.removeAttribute(E.CHECKSUM_ATTR_NAME);var l=u.outerHTML;u.setAttribute(E.CHECKSUM_ATTR_NAME,s);var f=t,d=r(f,l),v=" (client) "+f.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);e.nodeType===N?p("42",v):void 0}if(e.nodeType===N?p("43"):void 0,a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);h.insertTreeBefore(e,t,null)}else A(e,t),y.precacheNode(n,e.firstChild)}};t.exports=H},function(t,e,n){"use strict";var r=n(4),o=n(32),i=(n(1),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(t){return null===t||t===!1?i.EMPTY:o.isValidElement(t)?"function"==typeof t.type?i.COMPOSITE:i.HOST:void r("26",t)}});t.exports=i},function(t,e){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){n.currentScrollLeft=t.x,n.currentScrollTop=t.y}};t.exports=n},function(t,e,n){"use strict";function r(t,e){return null==e?o("30"):void 0,null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}var o=n(4);n(1);t.exports=r},function(t,e){"use strict";function n(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}t.exports=n},function(t,e,n){"use strict";function r(t){for(var e;(e=t._renderedNodeType)===o.COMPOSITE;)t=t._renderedComponent;return e===o.HOST?t._renderedComponent:e===o.EMPTY?null:void 0}var o=n(121);t.exports=r},function(t,e,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(9),i=null;t.exports=r},function(t,e,n){"use strict";function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(t){return"function"==typeof t&&"undefined"!=typeof t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function i(t,e){var n;if(null===t||t===!1)n=l.create(i);else if("object"==typeof t){var u=t,s=u.type;if("function"!=typeof s&&"string"!=typeof s){var d="";d+=r(u._owner),a("130",null==s?s:typeof s,d)}"string"==typeof u.type?n=c.createInternalComponent(u):o(u.type)?(n=new u.type(u),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new f(u)}else"string"==typeof t||"number"==typeof t?n=c.createInstanceForText(t):a("131",typeof t);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),u=n(5),s=n(223),l=n(116),c=n(118),f=(n(310),n(1),n(2),function(t){this.construct(t)});u(f.prototype,s,{_instantiateReactComponent:i}),t.exports=i},function(t,e){"use strict";function n(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!r[t.type]:"textarea"===e}var r={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=n},function(t,e,n){"use strict";var r=n(9),o=n(52),i=n(53),a=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){return 3===t.nodeType?void(t.nodeValue=e):void i(t,o(e))})),t.exports=a},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?l.escape(t.key):e.toString(36)}function o(t,e,n,i){var d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),null===t||"string"===d||"number"===d||"object"===d&&t.$$typeof===u)return n(i,t,""===e?c+r(t,0):e),1;var p,h,v=0,g=""===e?c:e+f;if(Array.isArray(t))for(var m=0;ms;)for(var d,p=i(a[s++]),h=c?l(p).concat(c(p)):l(p),v=h.length,g=0;v>g;)f.call(p,d=h[g++])&&(n[d]=p[d]);return n}:Object.assign},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){var r=n(13);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports={default:n(18),__esModule:!0}},function(t,e,n){n(19),t.exports=n(7).Object.getPrototypeOf},function(t,e,n){var r=n(12);n(20)("getPrototypeOf",function(t){return function(e){return t(r(e))}})},function(t,e,n){var r=n(5),o=n(7),i=n(16);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(23),i=r(o);e.default=function(){function t(t,e){for(var n=0;no;)I(t,n=r[o++],e[n]);return t},B=function(t,e){return void 0===e?E(t):H(E(t),e)},U=function(t){var e=S.call(this,t);return!(e||!i(this,t)||!i(R,t)||i(this,A)&&this[A][t])||e},W=function(t,e){var n=x(t=b(t),e);return!n||!i(R,e)||i(t,A)&&t[A][e]||(n.enumerable=!0),n},z=function(t){for(var e,n=C(b(t)),r=[],o=0;n.length>o;)i(R,e=n[o++])||e==A||r.push(e);return r},V=function(t){for(var e,n=C(b(t)),r=[],o=0;n.length>o;)i(R,e=n[o++])&&r.push(R[e]);return r},q=function(t){if(void 0!==t&&!L(t)){ -for(var e,n,r=[t],o=1,i=arguments;i.length>o;)r.push(i[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!L(e))return e}),r[1]=e,O.apply(M,r)}},Y=l(function(){var t=k();return"[null]"!=O([t])||"{}"!=O({a:t})||"{}"!=O(Object(t))});D||(k=function(){if(L(this))throw TypeError("Symbol is not a constructor");return F(d(arguments.length>0?arguments[0]:void 0))},s(k.prototype,"toString",function(){return this._k}),L=function(t){return t instanceof k},r.create=B,r.isEnum=U,r.getDesc=W,r.setDesc=I,r.setDescs=H,r.getNames=v.get=z,r.getSymbols=V,a&&!n(46)&&s(N,"propertyIsEnumerable",U,!0));var K={for:function(t){return i(P,t+="")?P[t]:P[t]=k(t)},keyFor:function(t){return h(P,t)},useSetter:function(){T=!0},useSimple:function(){T=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=p(t);K[t]=D?e:F(e)}),T=!0,u(u.G+u.W,{Symbol:k}),u(u.S,"Symbol",K),u(u.S+u.F*!D,"Object",{create:B,defineProperty:I,defineProperties:H,getOwnPropertyDescriptor:W,getOwnPropertyNames:z,getOwnPropertySymbols:V}),M&&u(u.S+u.F*(!D||Y),"JSON",{stringify:q}),f(k,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=n(33)},function(t,e,n){var r=n(11),o=n(34);t.exports=n(31)?function(t,e,n){return r.setDesc(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(6),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(11).setDesc,o=n(30),i=n(37)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(35)("wks"),o=n(38),i=n(6).Symbol;t.exports=function(t){return r[t]||(r[t]=i&&i[t]||(i||o)("Symbol."+t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(11),o=n(40);t.exports=function(t,e){for(var n,i=o(t),a=r.getKeys(i),u=a.length,s=0;u>s;)if(i[n=a[s++]]===e)return n}},function(t,e,n){var r=n(14),o=n(13);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(40),o=n(11).getNames,i={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(11);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var o,i=n(t),a=r.isEnum,u=0;i.length>u;)a.call(t,o=i[u++])&&e.push(o);return e}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(45);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=!0},function(t,e){},function(t,e,n){"use strict";var r=n(49).default,o=n(51).default;e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=r(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o?o(t,e):t.__proto__=e)},e.__esModule=!0},function(t,e,n){t.exports={default:n(50),__esModule:!0}},function(t,e,n){var r=n(11);t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){t.exports={default:n(52),__esModule:!0}},function(t,e,n){n(53),t.exports=n(7).Object.setPrototypeOf},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(54).set})},function(t,e,n){var r=n(11).getDesc,o=n(45),i=n(44),a=function(t,e){if(i(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,o){try{o=n(8)(Function.call,r(Object.prototype,"__proto__").set,2),o(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:o(t,n),t}}({},!1):void 0),check:a}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return t.indexOf(e)>=0}function i(t){return function(){return!t.apply(this,arguments)}}function a(t,e,n){for(var r={},o=(0,b.default)(t),i=0,a=o.length;i=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){return 0===t.button}function a(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function u(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function s(t,e){var n=e.query,r=e.hash,o=e.state;return n||r||o?{pathname:t,query:n,hash:r,state:o}:t}e.__esModule=!0;var l=Object.assign||function(t){for(var e=1;e=0;r--){var o=t[r],i=o.path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n}},propTypes:{path:d,from:d,to:d.isRequired,query:p,state:p,onEnter:c.falsy,children:c.falsy},render:function(){(0,u.default)(!1)}});e.default=h,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return a({},t,{setRouteLeaveHook:e.listenBeforeLeavingRoute,isActive:e.isActive})}function i(t,e){return t=a({},t,e)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e-1)return!1;if(r.filterOption)return r.filterOption.call(o,t,e);if(!e)return!0;var i=String(t[r.valueKey]),u=String(t[r.labelKey]);return r.ignoreAccents&&("label"!==r.matchProp&&(i=(0,a.default)(i)),"value"!==r.matchProp&&(u=(0,a.default)(u))),r.ignoreCase&&("label"!==r.matchProp&&(i=i.toLowerCase()),"value"!==r.matchProp&&(u=u.toLowerCase())),"start"===r.matchPos?"label"!==r.matchProp&&i.substr(0,e.length)===e||"value"!==r.matchProp&&u.substr(0,e.length)===e:"label"!==r.matchProp&&i.indexOf(e)>=0||"value"!==r.matchProp&&u.indexOf(e)>=0})}var i=n(142),a=r(i);t.exports=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=t.focusedOption,n=t.instancePrefix,r=(t.labelKey,t.onFocus),o=t.onSelect,i=t.optionClassName,u=t.optionComponent,l=t.optionRenderer,c=t.options,f=t.valueArray,d=t.valueKey,p=u;return c.map(function(t,u){var c=f&&f.indexOf(t)>-1,h=t===e,v=h?"focused":null,g=(0,a.default)(i,{"Select-option":!0,"is-selected":c,"is-focused":h,"is-disabled":t.disabled});return s.default.createElement(p,{className:g,instancePrefix:n,isDisabled:t.disabled,isFocused:h,isSelected:c,key:"option-"+u+"-"+t[d],onFocus:r,onSelect:o,option:t,optionIndex:u,ref:v},l(t,u))})}var i=n(25),a=r(i),u=n(3),s=r(u);t.exports=o},function(t,e){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];t.exports=function(t){for(var e=0;e>>1;t[o]1){var s,c=[],f={LineString:o,MultiLineString:i,Polygon:i,MultiPolygon:function(t){t.forEach(i)}};a(e),c.forEach(arguments.length<3?function(t){u.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&u.push(t[0].i)})}else for(var d=0,p=t.arcs.length;d1)for(var a,u,s=1,c=r(i[0]);sc&&(u=i[0],i[0]=i[s],i[s]=u,c=a);return i})}}function g(t){function e(t,e){t.forEach(function(t){t<0&&(t=~t);var n=o[t];n?n.push(e):o[t]=[e]})}function n(t,n){t.forEach(function(t){e(t,n)})}function r(t,e){"GeometryCollection"===t.type?t.geometries.forEach(function(t){r(t,e)}):t.type in u&&u[t.type](t.arcs,e)}var o={},a=t.map(function(){return[]}),u={LineString:e,MultiLineString:n,Polygon:n,MultiPolygon:function(t,e){t.forEach(function(t){n(t,e)})}};t.forEach(r);for(var s in o)for(var l=o[s],c=l.length,f=0;f0;){var n=(e+1>>1)-1,o=r[n];if(m(t,o)>=0)break;r[o._=e]=o,r[t._=e=n]=t}}function e(t,e){for(;;){var n=e+1<<1,i=n-1,a=e,u=r[a];if(i0&&(t=r[o],e(r[t._=0]=t,0)),n}},n.remove=function(n){var i,a=n._;if(r[a]===n)return a!==--o&&(i=r[o],(m(i,n)<0?t:e)(r[i._=a]=i,a)),a},n}function b(t,e){function o(t){u.remove(t),t[1][2]=e(t),u.push(t)}var i=n(t.transform),a=r(t.transform),u=y();return e||(e=d),t.arcs.forEach(function(t){var n,r,s,l,c=[],f=0;for(r=0,s=t.length;r2&&void 0!==arguments[2]&&arguments[2];if(l.indexOf(e)>=0)if(n){if("object"===i(t[e]))return!0}else{if("string"==typeof t[e])return!0;if((0,u.isArray)(t[e]))return!0}return!1}},{key:"getJoinQuery",value:function(t){var e=o({},this.dataResources),n={},r={},i={};return t.forEach(function(t){var o={},i=Object.keys(t.joins);i.forEach(function(i){n[i]?o[i]?(o[i]++,n[i+o[i]]=e[i].uuid,r[i+o[i]]=t.joins[i]):(o[i]=1,n[i+o[i]]=e[i].uuid,r[i]=t.joins[i]):(n[i]=e[i].uuid,r[i]=t.joins[i])})}),i.ids=n,i.joinFields=r,i}},{key:"mapQueries",value:function(t,e,n,r,o){var i=this,a=[],u=[];r.forEach(function(t){t.table?a.push(t):u.push(t)});var s=function(r){var u=i.getJoinQuery(a);a.length>0?(e[r].resource_id=u.ids,e[r].join=u.joinFields,Object.keys(e[r]).forEach(function(n){if(i.checkRewriteAggregateField(e[r],n)){var o=e[r][n];e[r][n]={},e[r][n][t]={},e[r][n][t]=o}})):(e[r].resource_id=n,Object.keys(e[r]).forEach(function(n){if(i.checkRewriteAggregateField(e[r],n,!0)){var o=i.dataResources[t].queries[r][n][t]||i.dataResources[t].queries[r][n];e[r][n]=o}})),e[r].limit=i.queryLimit,e[r].filters=o};for(var l in e)s(l);return e}}]),t}();e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[],n=t,r=this.state.appliedFilters||{},o=c.DataHandler.handle.call(this,n,e,this.state.data,{},r);return o}},{key:"getDashboardData",value:function(t){var e=this,n=u({},this.state.data),r=Object.keys(this.props.dataResources||{}),o=0;t=t||u({},this.state.appliedFilters),r.forEach(function(r){var i=u({},e.props.dataResources[r]),a=e.getAppliedFiltersByDataKey(r,t),s=e.getFilterQueries(a),l=e.Datastore.mapQueries(r,i.queries,i.uuid,a,s);e.Datastore.fetchResource(l).then(function(t){o++,n[r]=t,e.setState({data:n,isFetching:!1})}).catch(function(t){console.error("Error fetching resource",r,i,t)})})}},{key:"getFilterQueries",value:function(t){var e=this,n={};return t.forEach(function(t){var r=e.normalizeFilterValues(t.value);r.value&&(r=r.value),t.table?(n[t.table]={},n[t.table][t.field]=r):n[t.field]=r}),n}},{key:"getConstantAppliedFilters",value:function(){var t=this.props.dataResources||{},e={};return Object.keys(t).forEach(function(n){Object.keys(t[n].queries).forEach(function(r){t[n].queries[r].filters&&t[n].queries[r].filters.forEach(function(t){t.willFilter=n,e[t.field]=t})})}),e}},{key:"normalizeFilterValues",value:function(t){var e=[];return t.forEach(function(t){t.value&&(0,p.isArray)(t.value)?e=e.concat(t.value):t.value&&!(0,p.isArray)(t.value)?e.push(t.value):e.push(t)}),e}},{key:"getChildData",value:function(t){var e=[];return t.dataHandlers?e=this.applyDataHandlers(t.dataHandlers,t.data):t.data&&t.data.length>0&&(e=t.data),e}},{key:"filterDisabled",value:function(t){var e=Object.keys(t);return(0,p.reduce)(t,function(t,n,r){return(0,p.intersection)(e,n.disabledBy).length||(t[r]=n),t},{})}},{key:"getAppliedFiltersByDataKey",value:function(t,e){var n=[];return e=this.filterDisabled(e),Object.keys(e).map(function(r){var o=e[r];o&&o.willFilter&&o.willFilter.length>0&&o.willFilter.indexOf(t)>=0&&n.push(o)}),n}}]),e}(c.Dashboard);e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(){function t(t,e){for(var n=0;n0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=a.call(t),e=a.call(e),l(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i=0;i--)if(f[i]!=d[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!l(t[c],e[c],n))return!1;return typeof t==typeof e}var a=Array.prototype.slice,u=n(153),s=n(152),l=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=o?n:r,e.supported=n,e.unsupported=r},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t){return o(t.replace(i,"ms-"))}var o=n(158),i=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(168);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?a(!1):void 0,"number"!=typeof e?a(!1):void 0,0===e||e-1 in t?void 0:a(!1),"function"==typeof t.callee?a(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r":a.innerHTML="<"+t+">",u[t]=!a.firstChild),u[t]?d[t]:null}var o=n(9),i=n(1),a=o.canUseDOM?document.createElement("div"):null,u={},s=[1,'"],l=[1,"","
"],c=[3,"","
"],f=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(t){d[t]=f,u[t]=!0}),t.exports=r},function(t,e){"use strict";function n(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e,n){"use strict";function r(t){return o(t).replace(i,"-ms-")}var o=n(165),i=/^ms-/;t.exports=r},function(t,e){"use strict";function n(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(167);t.exports=r},function(t,e){"use strict";function n(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(98),i=r(o),a={hasCSSAnimations:function(){return!!(0,i.default)("animationName")},hasCSSTransforms:function(){return!!(0,i.default)("transform")},hasCSS3DTransforms:function(){return!!(0,i.default)("perspective")},hasCSSTransitions:function(){return!!(0,i.default)("transition")}};t.exports=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(21),i=r(o),a={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:i.default}},registerDefault:function(){}};t.exports=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=Object.assign||function(t){for(var e=1;e0||t>=0&&this.state.scrollX0||t>=0&&this.state.scrollYr?r:this.state.height>r&&this.props.ownerHeight?Math.max(r,this.props.ownerHeight):this.state.height+this.state.maxScrollY,t!==this._contentHeight&&this.props.onContentHeightChange&&this.props.onContentHeightChange(t),this._contentHeight=t},componentDidMount:function(){this._reportContentHeight()},componentWillReceiveProps:function(t){t.overflowX,t.overflowY;this.props.ownerHeight===t.ownerHeight&&this.props.scrollTop===t.scrollTop&&this.props.scrollLeft===t.scrollLeft||this._didScrollStart(),this._didScrollStop(),this.setState(this._calculateState(t,this.state))},componentDidUpdate:function(){this._reportContentHeight()},render:function(){var t,e=this.state,n=this.props,r=n.onColumnReorderEndCallback?this._onColumnReorder:null;e.useGroupHeader&&(t=a.default.createElement(C.default,{key:"group_header",isScrolling:this._isScrolling,className:(0,I.default)((0,S.default)("fixedDataTableLayout/header"),(0,S.default)("public/fixedDataTable/header")),width:e.width,height:e.groupHeaderHeight,index:0,zIndex:1,offsetTop:0,scrollLeft:e.scrollX,fixedColumns:e.groupHeaderFixedColumns,scrollableColumns:e.groupHeaderScrollableColumns,onColumnResize:this._onColumnResize,onColumnReorder:r,onColumnReorderMove:this._onColumnReorderMove}));var o=this.state.maxScrollY,i=e.maxScrollX>0&&"hidden"!==e.overflowX&&e.showScrollbarX!==!1,u=o>0&&"hidden"!==e.overflowY&&e.showScrollbarY!==!1,s=i?y.default.SIZE:0,l=e.height-s-2*q-e.footerHeight,c=e.useGroupHeader?e.groupHeaderHeight:0,f=c+e.headerHeight;l-=f;var d=0,p=null!=n.maxHeight?f+e.bodyHeight:f+l,h=p+e.footerHeight;void 0!==n.ownerHeight&&n.ownerHeighte.ownerHeight||e.scrollYu-$?r=Math.min(r+G,this.state.maxScrollX):i<=$&&(r=Math.max(r-G,0)),e.dragDistance+=this.state.scrollX-e.scrollStart}this.setState({scrollX:r,columnReorderingData:e})},_onColumnReorderEnd:function(t,e){var n=this.state.columnReorderingData.columnBefore,r=this.state.columnReorderingData.columnAfter,o=this.state.columnReorderingData.columnKey,i=this.state.columnReorderingData.cancelReorder;if(this.setState({isColumnReordering:!1,columnReorderingData:{}}),!i){this.props.onColumnReorderEndCallback({columnBefore:n,columnAfter:r,reorderColumn:o});var a=this.props.onHorizontalScroll;this.state.columnReorderingData.scrollStart!==this.state.scrollX&&a&&a(this.state.scrollX)}},_areColumnSettingsIdentical:function(t,e){if(t.length!==e.length)return!1;for(var n=0;n or "),n.push(t))});var r=!1;n.length&&n[0].type.__TableColumnGroup__&&(r=!0);var i,a=e&&e.firstRowIndex||0,u=e&&e.firstRowOffset||0,s=e?e.scrollY:0,l=e?e.scrollX:0,c=e?e.scrollLeft:0;void 0!==t.scrollLeft&&t.scrollLeft!==c&&(l=t.scrollLeft);var f=r?t.groupHeaderHeight:0;if(!e||t.rowsCount===e.rowsCount&&t.rowHeight===e.rowHeight&&t.height===e.height)e&&t.rowHeightGetter!==e.rowHeightGetter&&this._scrollHelper.setRowHeightGetter(t.rowHeightGetter);else{var d=(void 0===t.height?t.maxHeight:t.height)-(t.headerHeight||0)-(t.footerHeight||0)-(t.groupHeaderHeight||0),p=this._scrollHelper._viewportHeight;this._scrollHelper=new M.default(t.rowsCount,t.rowHeight,d,t.rowHeightGetter),i=this._scrollHelper.scrollToRow(a,u),a=i.index,u=i.offset,s=i.position}var h=e?e.scrollToRow:void 0;null==t.scrollToRow||t.scrollToRow===h&&d===p||(i=this._scrollHelper.scrollRowIntoView(t.scrollToRow),a=i.index,u=i.offset,s=i.position);var v=e?e.scrollTop:void 0;null!=t.scrollTop&&t.scrollTop!==v&&(i=this._scrollHelper.scrollTo(t.scrollTop),a=i.index,u=i.offset,s=i.position);var g;g=t.isColumnResizing?e&&e.columnResizingData:V;var m,b;if(r){var _=T.default.adjustColumnGroupWidths(n,t.width);m=_.columns,b=_.columnGroups}else m=T.default.adjustColumnWidths(n,t.width);var x=this._populateColumnsAndColumnData(m,b,e),w=e?e.scrollToColumn:void 0;if(null!==t.scrollToColumn&&t.scrollToColumn!==w){var E=x.bodyFixedColumns.length;if(t.scrollToColumn>=E){var C,k,O=0;for(C=0;CS&&(l=S)}}var N=void 0===t.height,j=Math.round(N?t.maxHeight:t.height),L=t.footerHeight+t.headerHeight+f+2*q,I=j-L,H=this._scrollHelper.getContentHeight(),B=H+L,U=T.default.getTotalWidth(m),W=U>t.width&&"hidden"!==t.overflowX&&t.showScrollbarX!==!1; -W&&(I-=y.default.SIZE,B+=y.default.SIZE,L+=y.default.SIZE);var Y=Math.max(0,U-t.width),K=Math.max(0,H-I);l=Math.min(l,Y),s=Math.min(s,K),K||(N&&(j=B),I=B-L),this._scrollHelper.setViewportHeight(I);var X=Math.abs(u-this._scrollHelper.getRowPosition(a));X!==s&&(X=K,i=this._scrollHelper.scrollTo(X),a=i.index,u=i.offset,s=i.position);var G=o({isColumnResizing:e&&e.isColumnResizing},x,t,{columns:m,columnGroups:b,columnResizingData:g,firstRowIndex:a,firstRowOffset:u,horizontalScrollbarVisible:W,maxScrollX:Y,maxScrollY:K,reservedHeight:L,scrollContentHeight:H,scrollX:l,scrollY:s,bodyHeight:I,height:j,groupHeaderHeight:f,useGroupHeader:r});return G},_selectColumnElement:function(t,e){for(var n=[],r=0;rMath.abs(t)&&"hidden"!==this.props.overflowY){var r=this._scrollHelper.scrollBy(Math.round(e)),o=this.props.onVerticalScroll;if(!o||o(r.position)){var i=Math.max(0,r.contentHeight-this.state.bodyHeight);this.setState({firstRowIndex:r.index,firstRowOffset:r.offset,scrollY:r.position,scrollContentHeight:r.contentHeight,maxScrollY:i})}}else if(t&&"hidden"!==this.props.overflowX){n+=t,n=n<0?0:n,n=n>this.state.maxScrollX?this.state.maxScrollX:n;var a=this.props.onHorizontalScroll;a&&!a(n)||this.setState({scrollX:n})}this._didScrollStop()},_onHorizontalScroll:function(t){if(t!==this.state.scrollX){this._isScrolling||this._didScrollStart();var e=this.props.onHorizontalScroll;e&&!e(t)||this.setState({scrollX:t}),this._didScrollStop()}},_onVerticalScroll:function(t){if(t!==this.state.scrollY){this._isScrolling||this._didScrollStart();var e=this._scrollHelper.scrollTo(Math.round(t)),n=this.props.onVerticalScroll;n&&!n(e.position)||(this.setState({firstRowIndex:e.index,firstRowOffset:e.offset,scrollY:e.position,scrollContentHeight:e.contentHeight}),this._didScrollStop())}},_didScrollStart:function(){this._isScrolling||(this._isScrolling=!0,this.props.onScrollStart&&this.props.onScrollStart(this.state.scrollX,this.state.scrollY,this.state.firstRowIndex))},_didScrollStop:function(){this._isScrolling&&(this._isScrolling=!1,this.setState({redraw:!0}),this.props.onScrollEnd&&this.props.onScrollEnd(this.state.scrollX,this.state.scrollY,this.state.firstRowIndex))}}),Q=(0,s.default)({displayName:"HorizontalScrollbar",mixins:[d.default],propTypes:{contentSize:c.default.number.isRequired,offset:c.default.number.isRequired,onScroll:c.default.func.isRequired,position:c.default.number.isRequired,size:c.default.number.isRequired},componentWillMount:function(){this._initialRender=!0},componentDidMount:function(){this._initialRender=!1},render:function(){var t={height:y.default.SIZE,width:this.props.size},e={height:y.default.SIZE,position:"absolute",overflow:"hidden",width:this.props.size};return(0,W.default)(e,0,this.props.offset,this._initialRender),a.default.createElement("div",{className:(0,I.default)((0,S.default)("fixedDataTableLayout/horizontalScrollbar"),(0,S.default)("public/fixedDataTable/horizontalScrollbar")),style:t},a.default.createElement("div",{style:e},a.default.createElement(y.default,o({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}});t.exports=Z},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(10),i=r(o),a=n(20),u=r(a),s=n(12),l=r(s),c=n(179),f=r(c),d=n(96),p=r(d),h=n(16),v=r(h),g=n(21),m=r(g),y=n(36),b=r(y),_=(0,u.default)({displayName:"FixedDataTableBufferedRows",propTypes:{bufferRowCount:l.default.number,isScrolling:l.default.bool,defaultRowHeight:l.default.number.isRequired,firstRowIndex:l.default.number.isRequired,firstRowOffset:l.default.number.isRequired,fixedColumns:l.default.array.isRequired,height:l.default.number.isRequired,offsetTop:l.default.number.isRequired,onRowClick:l.default.func,onRowDoubleClick:l.default.func,onRowMouseDown:l.default.func,onRowMouseEnter:l.default.func,onRowMouseLeave:l.default.func,rowClassNameGetter:l.default.func,rowsCount:l.default.number.isRequired,rowHeightGetter:l.default.func,rowKeyGetter:l.default.func,rowPositionGetter:l.default.func.isRequired,scrollLeft:l.default.number.isRequired,scrollableColumns:l.default.array.isRequired,showLastRowBorder:l.default.bool,width:l.default.number.isRequired},getInitialState:function(){return this._rowBuffer=new f.default(this.props.rowsCount,this.props.defaultRowHeight,this.props.height,this._getRowHeight,this.props.bufferRowCount),{rowsToRender:this._rowBuffer.getRows(this.props.firstRowIndex,this.props.firstRowOffset)}},componentWillMount:function(){this._staticRowArray=[],this._initialRender=!0},componentDidMount:function(){setTimeout(this._updateBuffer,1e3),this._initialRender=!1},componentWillReceiveProps:function(t){t.rowsCount===this.props.rowsCount&&t.defaultRowHeight===this.props.defaultRowHeight&&t.height===this.props.height||(this._rowBuffer=new f.default(t.rowsCount,t.defaultRowHeight,t.height,this._getRowHeight,this.props.bufferRowCount)),this.props.isScrolling&&!t.isScrolling?this._updateBuffer():this.setState({rowsToRender:this._rowBuffer.getRows(t.firstRowIndex,t.firstRowOffset)})},_updateBuffer:function(){this._rowBuffer&&this.setState({rowsToRender:this._rowBuffer.getRowsWithUpdatedBuffer()})},shouldComponentUpdate:function(){return!0},componentWillUnmount:function(){this._rowBuffer=null,this._staticRowArray.length=0},render:function(){var t=this.props,e=t.rowClassNameGetter||m.default,n=t.rowPositionGetter,r=this.state.rowsToRender,o=r.slice().sort(function(t,e){return t-e}),a={};o.forEach(function(t){a[t]=n(t)}),this._staticRowArray.length=r.length;for(var u=t.firstRowOffset-t.rowPositionGetter(t.firstRowIndex)+t.offsetTop,s=0;s=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var i=Object.assign||function(t){for(var e=1;es,c=r>t.left,f=!1;l?os&&(f=!0,c?n.displacement=0:n.displacement=t.columnReorderingData.columnWidth*-1),f?l?t.columnReorderingData.columnAfter||(t.columnReorderingData.columnAfter=t.columnKey):t.columnReorderingData.columnBefore=t.columnKey:l?t.columnReorderingData.columnBefore=t.columnKey:t.columnReorderingData.columnAfter||(t.columnReorderingData.columnAfter=t.columnKey)}}else n.displacement=0;this.setState(n)},getDefaultProps:function(){return k},render:function(){var t=this.props,e=t.height,n=t.width,r=t.columnKey,a=o(t,["height","width","columnKey"]),s={height:e,width:n};1===C?s.left=a.left:s.right=a.left,this.state.isReorderingThisColumn&&(s.transform="translateX("+this.state.displacement+"px) translateZ(0)",s.zIndex=1);var c,f=(0,x.default)((0,b.default)({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":a.lastChild,"fixedDataTableCellLayout/alignRight":"right"===a.align,"fixedDataTableCellLayout/alignCenter":"center"===a.align,"public/fixedDataTableCell/alignRight":"right"===a.align,"public/fixedDataTableCell/highlighted":a.highlighted,"public/fixedDataTableCell/main":!0,"public/fixedDataTableCell/hasReorderHandle":!!a.onColumnReorder,"public/fixedDataTableCell/reordering":this.state.isReorderingThisColumn}),a.className);if(a.onColumnResize){var d={height:e};c=p.default.createElement("div",{className:(0,b.default)("fixedDataTableCellLayout/columnResizerContainer"),style:d,onMouseDown:this._onColumnResizerMouseDown},p.default.createElement("div",{className:(0,x.default)((0,b.default)("fixedDataTableCellLayout/columnResizerKnob"),(0,b.default)("public/fixedDataTableCell/columnResizerKnob")),style:d}))}var h;a.onColumnReorder&&(h=p.default.createElement(l.default,i({columnKey:this.columnKey,onMouseDown:this._onColumnReorderMouseDown,height:e},this.props)));var v={columnKey:r,height:e,width:n};a.rowIndex>=0&&(v.rowIndex=a.rowIndex);var g;return g=p.default.isValidElement(a.cell)?p.default.cloneElement(a.cell,v):"function"==typeof a.cell?a.cell(v):p.default.createElement(u.default,v,a.cell),p.default.createElement("div",{className:f,style:s},c,h,g)},_onColumnResizerMouseDown:function(t){this.props.onColumnResize(this.props.left,this.props.width,this.props.minWidth,this.props.maxWidth,this.props.columnKey,t)},_onColumnReorderMouseDown:function(t){this.props.onColumnReorder(this.props.columnKey,this.props.width,this.props.left,t)}});t.exports=M},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var i=Object.assign||function(t){for(var e=1;e=0){var f=s.columnKey||"cell_"+a;n[a]=this._renderCell(t.rowIndex,t.rowHeight,s,i,f,r,o)}i+=s.width}var d={height:t.height,position:"absolute",width:r,zIndex:t.zIndex};return(0,b.default)(d,-1*_*t.left,0,this._initialRender),l.default.createElement("div",{className:(0,m.default)("fixedDataTableCellGroupLayout/cellGroup"),style:d},n)},_renderCell:function(t,e,n,r,o,i,a){var u=n.isResizable&&this.props.onColumnResize,s=u?this.props.onColumnResize:null,c=n.isReorderable&&this.props.onColumnReorder&&t===-1&&i!==n.width,f=c?this.props.onColumnReorder:null,d=n.cellClassName,p=n.pureRendering||!1;return l.default.createElement(v.default,{isScrolling:this.props.isScrolling,align:n.align,className:d,height:e,key:o,maxWidth:n.maxWidth,minWidth:n.minWidth,onColumnResize:s,onColumnReorder:f,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:a,columnReorderingData:this.props.columnReorderingData,rowIndex:t,columnKey:n.columnKey,width:n.width,left:r,cell:n.cell,columnGroupWidth:i,pureRendering:p})},_getColumnsWidth:function(t){for(var e=0,n=0;n0;)this._addRowToBuffer(e,this._viewportRowsBegin,this._viewportRowsEnd-1),e++,t--;return this._rows}},{key:"getRows",value:function(t,e){var n=e,r=n,o=t,i=Math.min(t+this._maxVisibleRowCount,this._rowsCount);for(this._viewportRowsBegin=t;o=i&&(r=this._bufferSet.replaceFurthestValuePosition(e,n,t)),null===r?(r=this._bufferSet.getNewPositionForValue(t),this._rows[r]=t):this._rows[r]=t}}]),t}();t.exports=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(t,e){for(var n=0;n=0&&e>=t-c;){var n=this._updateRowHeight(e);this._position+=n,e--}}},{key:"_updateRowHeight",value:function(t){if(t<0||t>=this._rowCount)return 0;var e=this._rowHeightGetter(t);if(e!==this._storedHeights[t]){var n=e-this._storedHeights[t];return this._rowOffsets.set(t,e),this._storedHeights[t]=e,this._contentHeight+=n,n}return 0}},{key:"getRowPosition",value:function(t){return this._updateRowHeight(t),this._rowOffsets.sumUntil(t)}},{key:"scrollBy",value:function(t){if(0===this._rowCount)return f;var e=this._rowOffsets.greatestLowerBound(this._position);e=(0,l.default)(e,0,Math.max(this._rowCount-1,0));var n=this._rowOffsets.sumUntil(e),r=e,o=this._position,i=this._updateRowHeight(r);0!==n&&(o+=i);var a=this._storedHeights[r]-(o-n);if(t>=0)for(;t>0&&r0&&r>=0;)if(t=0){var s=this._updateRowHeight(r);u=this._storedHeights[r],o+=s}}var c=this._contentHeight-this._viewportHeight;o=(0,l.default)(o,0,c),this._position=o;var d=this._rowOffsets.greatestLowerBound(o);d=(0,l.default)(d,0,Math.max(this._rowCount-1,0)),n=this._rowOffsets.sumUntil(d);var p=n-o;return this._updateHeightsInViewport(d,p),this._updateHeightsAboveViewport(d),{index:d,offset:p,position:this._position,contentHeight:this._contentHeight}}},{key:"_getRowAtEndPosition",value:function(t){this._updateRowHeight(t);for(var e=t,n=this._storedHeights[e];n=0;)e--,e>=0&&(this._updateRowHeight(e),n+=this._storedHeights[e]);var r=this._rowOffsets.sumTo(t)-this._viewportHeight;return r<0&&(r=0),r}},{key:"scrollTo",value:function(t){if(0===this._rowCount)return f;if(t<=0)return this._position=0,this._updateHeightsInViewport(0,0),{index:0,offset:0,position:this._position,contentHeight:this._contentHeight};if(t>=this._contentHeight-this._viewportHeight){var e=this._rowCount-1;t=this._getRowAtEndPosition(e)}this._position=t;var n=this._rowOffsets.greatestLowerBound(t);n=(0,l.default)(n,0,Math.max(this._rowCount-1,0));var r=this._rowOffsets.sumUntil(n),o=r-t;return this._updateHeightsInViewport(n,o),this._updateHeightsAboveViewport(n),{index:n,offset:o,position:this._position,contentHeight:this._contentHeight}}},{key:"scrollToRow",value:function(t,e){t=(0,l.default)(t,0,Math.max(this._rowCount-1,0)),e=(0,l.default)(e,-this._storedHeights[t],0);var n=this._rowOffsets.sumUntil(t);return this.scrollTo(n-e)}},{key:"scrollRowIntoView",value:function(t){t=(0,l.default)(t,0,Math.max(this._rowCount-1,0));var e=this._rowOffsets.sumUntil(t),n=e+this._storedHeights[t];if(e0&&(this._items[0]=e,this._sinkDown(0)),t}}},{key:"push",value:function(t){this._items[this._size++]=t,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){if(0!==this._size)return this._items[0]}},{key:"_heapify",value:function(){for(var t=Math.floor((this._size+1)/2);t>=0;t--)this._sinkDown(t)}},{key:"_bubbleUp",value:function(t){for(var e=this._items[t];t>0;){var n=Math.floor((t+1)/2)-1,r=this._items[n];if(this._comparator(r,e))return;this._items[n]=e,this._items[t]=r,t=n}}},{key:"_sinkDown",value:function(t){for(var e=this._items[t];;){var n=2*(t+1)-1,r=2*(t+1),o=-1;if(n=t&&o<=e)return null;var i;t-r>o-e?(i=r,this._smallValues.pop()):(i=o,this._largeValues.pop());var a=this._valueToPositionMap[i];return delete this._valueToPositionMap[i],this._valueToPositionMap[n]=a,this._pushToHeaps(a,n),a}},{key:"_pushToHeaps",value:function(t,e){var n={position:t,value:e};this._smallValues.push(n),this._largeValues.push(n)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var t=Math.min(this._smallValues.size(),this._largeValues.size()),e=Math.max(this._smallValues.size(),this._largeValues.size());e>10*t&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var t=this._smallValues.size()e.value}}]),t}();t.exports=c},function(t,e){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(t,e,n){(function(e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function"); -}function i(t){for(var e=1;e=0;--n)e[n]=0;return e},f=function(){function t(e){o(this,t),this._size=e.length,this._half=i(this._size),this._heap=new c(2*this._half);var n;for(n=0;n0;--n)this._heap[n]=this._heap[2*n]+this._heap[2*n+1]}return a(t,[{key:"set",value:function(t,e){(0,s.default)(0<=t&&t=0;--o)r[o]=n;return new t(r)}},{key:"empty",value:function(e){return t.uniform(e,0)}}]),t}();t.exports=f}).call(e,function(){return this}())},function(t,e,n){"use strict";t.exports=n(37)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(t,e){for(var n=0;n2||Math.abs(this._deltaY)>2)&&(this._stopPropagation()&&t.stopPropagation(),i=!0),i===!0&&null===this._dragAnimationId&&(this._dragAnimationId=(0,l.default)(this._didTouchMove))}}},{key:"_didTouchMove",value:function(){this._dragAnimationId=null,this._onTouchScrollCallback(this._deltaX,this._deltaY),this._accumulatedDeltaX+=this._deltaX,this._accumulatedDeltaY+=this._deltaY,this._deltaX=0,this._deltaY=0}},{key:"_track",value:function(){var t=Date.now(),e=t-this._lastFrameTimestamp,n=this._velocityX,r=this._velocityY,o=.8;e0||this.deltaY>0)&&this._didTouchMove(),this._track(),this._autoScroll()}},{key:"_autoScroll",value:function(){var t=Date.now()-this._autoScrollTimestamp,e=f*Math.exp(-t/d),n=e*this._velocityX,r=e*this._velocityY;(Math.abs(n)<=5||!this._handleScrollX(n,r))&&(n=0),(Math.abs(r)<=5||!this._handleScrollY(r,n))&&(r=0),0===n&&0===r||(this._onTouchScrollCallback(n,r),(0,l.default)(this._autoScroll))}}]),t}();t.exports=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(58),i=r(o),a=n(184),u=r(a),s=n(10),l=r(s),c=n(20),f=r(c),d=n(12),p=r(d),h=n(186),v=r(h),g=n(44),m=r(g),y=n(97),b=r(y),_=n(192),x=r(_),w=n(16),E=r(w),C=n(21),k=r(C),M=n(43),O=r(M),T={position:0,scrollable:!1},A=parseInt((0,x.default)("scrollbar-face-margin"),10),S=2*A,P=30,R=40,D=null,N=(0,f.default)({displayName:"Scrollbar",mixins:[m.default],propTypes:{contentSize:p.default.number.isRequired,defaultPosition:p.default.number,isOpaque:p.default.bool,orientation:p.default.oneOf(["vertical","horizontal"]),onScroll:p.default.func,position:p.default.number,size:p.default.number.isRequired,trackColor:p.default.oneOf(["gray"]),zIndex:p.default.number,verticalTop:p.default.number},getInitialState:function(){var t=this.props;return this._calculateState(t.position||t.defaultPosition||0,t.size,t.contentSize,t.orientation)},componentWillReceiveProps:function(t){var e=t.position;void 0===e?this._setNextState(this._calculateState(this.state.position,t.size,t.contentSize,t.orientation)):this._setNextState(this._calculateState(e,t.size,t.contentSize,t.orientation),t)},getDefaultProps:function(){return{defaultPosition:0,isOpaque:!1,onScroll:k.default,orientation:"vertical",zIndex:99}},render:function(){if(!this.state.scrollable)return null;var t,e,n=this.props.size,r=this.state.isHorizontal,o=!r,i=this.state.focused||this.state.isDragging,a=this.state.faceSize,u=this.props.isOpaque,s=this.props.verticalTop||0,c=(0,E.default)({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":o,"ScrollbarLayout/mainHorizontal":r,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":u,"public/Scrollbar/mainActive":i}),f=(0,E.default)({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":r,"ScrollbarLayout/faceVertical":o,"public/Scrollbar/faceActive":i,"public/Scrollbar/face":!0}),d=this.state.position*this.state.scale+A;return r?(t={width:n},e={width:a-S},(0,O.default)(e,d,0,this._initialRender)):(t={top:s,height:n},e={height:a-S},(0,O.default)(e,0,d,this._initialRender)),t.zIndex=this.props.zIndex,"gray"===this.props.trackColor&&(t.backgroundColor=(0,x.default)("fbui-desktop-background-light")),l.default.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onWheel:this._wheelHandler.onWheel,className:c,style:t,tabIndex:0},l.default.createElement("div",{ref:"face",className:f,style:e}))},componentWillMount:function(){var t="horizontal"===this.props.orientation,e=t?this._onWheelX:this._onWheelY;this._wheelHandler=new b.default(e,this._shouldHandleX,this._shouldHandleY),this._initialRender=!0},componentDidMount:function(){this._mouseMoveTracker=new i.default(this._onMouseMove,this._onMouseMoveEnd,document.documentElement),void 0!==this.props.position&&this.state.position!==this.props.position&&this._didScroll(),this._initialRender=!1},componentWillUnmount:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),D===this&&(D=null),delete this._mouseMoveTracker},scrollBy:function(t){this._onWheel(t)},_shouldHandleX:function(t){return"horizontal"===this.props.orientation&&this._shouldHandleChange(t)},_shouldHandleY:function(t){return"horizontal"!==this.props.orientation&&this._shouldHandleChange(t)},_shouldHandleChange:function(t){var e=this._calculateState(this.state.position+t,this.props.size,this.props.contentSize,this.props.orientation);return e.position!==this.state.position},_calculateState:function(t,e,n,r){if(e<1||n<=e)return T;var o=t+"_"+e+"_"+n+"_"+r;if(this._stateKey===o)return this._stateForKey;var i="horizontal"===r,a=e/n,u=e*a;ul&&(t=l);var c=!!this._mouseMoveTracker&&this._mouseMoveTracker.isDragging(),f={faceSize:u,isDragging:c,isHorizontal:i,position:t,scale:a,scrollable:s};return this._stateKey=o,this._stateForKey=f,f},_onWheelY:function(t,e){this._onWheel(e)},_onWheelX:function(t,e){this._onWheel(t)},_onWheel:function(t){var e=this.props;this._setNextState(this._calculateState(this.state.position+t,e.size,e.contentSize,e.orientation))},_onMouseDown:function(t){var e;if(t.target!==v.default.findDOMNode(this.refs.face)){var n=t.nativeEvent,r=this.state.isHorizontal?n.offsetX||n.layerX:n.offsetY||n.layerY,o=this.props;r/=this.state.scale,e=this._calculateState(r-.5*this.state.faceSize/this.state.scale,o.size,o.contentSize,o.orientation)}else e={};e.focused=!0,this._setNextState(e),this._mouseMoveTracker.captureMouseMoves(t),v.default.findDOMNode(this).focus()},_onMouseMove:function(t,e){var n=this.props,r=this.state.isHorizontal?t:e;r/=this.state.scale,this._setNextState(this._calculateState(this.state.position+r,n.size,n.contentSize,n.orientation))},_onMouseMoveEnd:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),this.setState({isDragging:!1})},_onKeyDown:function(t){var e=t.keyCode;if(e!==u.default.TAB){var n=R,r=0;if(this.state.isHorizontal)switch(e){case u.default.HOME:r=-1,n=this.props.contentSize;break;case u.default.LEFT:r=-1;break;case u.default.RIGHT:r=1;break;default:return}if(!this.state.isHorizontal)switch(e){case u.default.SPACE:r=t.shiftKey?-1:1;break;case u.default.HOME:r=-1,n=this.props.contentSize;break;case u.default.UP:r=-1;break;case u.default.DOWN:r=1;break;case u.default.PAGE_UP:r=-1,n=this.props.size;break;case u.default.PAGE_DOWN:r=1,n=this.props.size;break;default:return}t.preventDefault();var o=this.props;this._setNextState(this._calculateState(this.state.position+n*r,o.size,o.contentSize,o.orientation))}},_onFocus:function(){this.setState({focused:!0})},_onBlur:function(){this.setState({focused:!1})},_blur:function(){var t=v.default.findDOMNode(this);if(t)try{this._onBlur(),t.blur()}catch(t){}},_setNextState:function(t,e){e=e||this.props;var n=e.position,r=this.state.position!==t.position;if(void 0===n){var o=r?this._didScroll:void 0;this.setState(t,o)}else{if(n!==t.position)return void(void 0!==t.position&&t.position!==this.state.position&&this.props.onScroll(t.position));this.setState(t)}r&&D!==this&&(D&&D._blur(),D=this)},_didScroll:function(){this.props.onScroll(this.state.position)}});N.KEYBOARD_SCROLL_AMOUNT=R,N.SIZE=parseInt((0,x.default)("scrollbar-size"),10),t.exports=N},function(t,e){"use strict";function n(){if(!y){y=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(h=/\b(iPhone|iP[ao]d)/.exec(t),v=/\b(iP[ao]d)/.exec(t),d=/Android/i.exec(t),g=/FBAN\/\w+;/i.exec(t),m=/Mobile/i.exec(t),p=!!/Win64/.exec(t),e){r=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);s=b?parseFloat(b[1])+4:r,o=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,a=e[4]?parseFloat(e[4]):NaN,a?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),u=e&&e[1]?parseFloat(e[1]):NaN):u=NaN}else r=o=i=u=a=NaN;if(n){if(n[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;c=!!n[2],f=!!n[3]}else l=c=f=!1}}var r,o,i,a,u,s,l,c,f,d,p,h,v,g,m,y=!1,b={ie:function(){return n()||r},ieCompatibilityMode:function(){return n()||s>r},ie64:function(){return b.ie()&&p},firefox:function(){return n()||o},opera:function(){return n()||i},webkit:function(){return n()||a},safari:function(){return b.webkit()},chrome:function(){return n()||u},windows:function(){return n()||c},osx:function(){return n()||l},linux:function(){return n()||f},iphone:function(){return n()||h},mobile:function(){return n()||h||v||d||m},nativeApp:function(){return n()||g},android:function(){return n()||d},ipad:function(){return n()||v}};t.exports=b},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e){(function(e){"use strict";var n=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||e.clearTimeout;t.exports=n}).call(e,function(){return this}())},function(t,e){"use strict";function n(t){if(r.hasOwnProperty(t))return r[t];throw new Error('cssVar("'+t+'"): Unexpected class transformation.')}var r={"scrollbar-face-active-color":"#7d7d7d","scrollbar-face-color":"#c2c2c2","scrollbar-face-margin":"4px","scrollbar-face-radius":"6px","scrollbar-size":"15px","scrollbar-size-large":"17px","scrollbar-track-color":"rgba(255, 255, 255, 0.8)","fbui-white":"#fff","fbui-desktop-background-light":"#f6f7f8"};n.CSS_VARS=r,t.exports=n},function(t,e){"use strict";function n(t,e,n,r,o){function i(){for(var o=arguments.length,u=Array(o),s=0;s=t&&l&&(u=!0,n()))}}var a=0,u=!1,s=!1,l=!1,c=void 0;i()}e.__esModule=!0;var r=Array.prototype.slice;e.loopAsync=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){function t(t){try{t=t||window.history.state||{}}catch(e){t={}}var e=f.getWindowPath(),n=t,r=n.key,o=void 0;r?o=d.readState(r):(o=null,r=b.createKey(),m&&window.history.replaceState(i({},t,{key:r}),null));var a=l.parsePath(e);return b.createLocation(i({},a,{state:o}),void 0,r)}function e(e){function n(e){void 0!==e.state&&r(t(e.state))}var r=e.transitionTo;return f.addEventListener(window,"popstate",n),function(){f.removeEventListener(window,"popstate",n)}}function n(t){var e=t.basename,n=t.pathname,r=t.search,o=t.hash,i=t.state,a=t.action,u=t.key;if(a!==s.POP){d.saveState(u,i);var l=(e||"")+n+r+o,c={key:u};if(a===s.PUSH){if(y)return window.location.href=l,!1;window.history.pushState(c,null,l)}else{if(y)return window.location.replace(l),!1;window.history.replaceState(c,null,l)}}}function r(t){1===++_&&(x=e(b));var n=b.listenBefore(t);return function(){n(),0===--_&&x()}}function o(t){1===++_&&(x=e(b));var n=b.listen(t);return function(){n(),0===--_&&x()}}function a(t){1===++_&&(x=e(b)),b.registerTransitionHook(t)}function p(t){b.unregisterTransitionHook(t),0===--_&&x()}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c.canUseDOM?void 0:u.default(!1);var g=v.forceRefresh,m=f.supportsHistory(),y=!m||g,b=h.default(i({},v,{getCurrentLocation:t,finishTransition:n,saveState:d.saveState})),_=0,x=void 0;return i({},b,{listenBefore:r,listen:o,registerTransitionHook:a,unregisterTransitionHook:p})}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e=0&&e=0&&gh||o>v||d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement||s){if(c&&d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement&&(void 0===d3.event.relatedTarget.className||d3.event.relatedTarget.className.match(l.nvPointerEventsClass)))return;return a.elementMouseout({mouseX:r,mouseY:o}),t.renderGuideLine(null),void l.hidden(!0)}l.hidden(!1);var f="function"==typeof i.rangeBands,d=void 0;if(f){var p=d3.bisect(i.range(),r)-1;if(!(i.range()[p]+i.rangeBand()>=r))return a.elementMouseout({mouseX:r,mouseY:o}),t.renderGuideLine(null),void l.hidden(!0);d=i.domain()[d3.bisect(i.range(),r)-1]}else d=i.invert(r);a.elementMousemove({mouseX:r,mouseY:o,pointXValue:d}),"dblclick"===d3.event.type&&a.elementDblclick({mouseX:r,mouseY:o,pointXValue:d}),"click"===d3.event.type&&a.elementClick({mouseX:r,mouseY:o,pointXValue:d}),"mousedown"===d3.event.type&&a.elementMouseDown({mouseX:r,mouseY:o,pointXValue:d}),"mouseup"===d3.event.type&&a.elementMouseUp({mouseX:r,mouseY:o,pointXValue:d})}var p=d3.select(this),h=n||960,v=o||400,g=p.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([f]),m=g.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer");m.append("g").attr("class","nv-interactiveGuideLine"),s&&(s.on("touchmove",d).on("mousemove",d,!0).on("mouseout",d,!0).on("mousedown",d,!0).on("mouseup",d,!0).on("dblclick",d).on("click",d),t.guideLine=null,t.renderGuideLine=function(e){u&&(t.guideLine&&t.guideLine.attr("x1")===e||r.dom.write(function(){var t=g.select(".nv-interactiveGuideLine").selectAll("line").data(null!=e?[r.utils.NaNtoZero(e)]:[],String);t.enter().append("line").attr("class","nv-guideline").attr("x1",function(t){return t}).attr("x2",function(t){return t}).attr("y1",v).attr("y2",0),t.exit().remove()}))})})}var e={left:0,top:0},n=null,o=null,i=d3.scale.linear(),a=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick","elementMouseDown","elementMouseUp"),u=!0,s=null,l=r.models.tooltip(),c=window.ActiveXObject;return l.duration(0).hideDelay(0).hidden(!1),t.dispatch=a,t.tooltip=l,t.margin=function(n){return arguments.length?(e.top="undefined"!=typeof n.top?n.top:e.top,e.left="undefined"!=typeof n.left?n.left:e.left,t):e},t.width=function(e){return arguments.length?(n=e,t):n},t.height=function(e){return arguments.length?(o=e,t):o},t.xScale=function(e){return arguments.length?(i=e,t):i},t.showGuideLine=function(e){return arguments.length?(u=e,t):u},t.svgContainer=function(e){return arguments.length?(s=e,t):s},t},r.interactiveBisect=function(t,e,n){"use strict";if(!(t instanceof Array))return null;var r;r="function"!=typeof n?function(t){return t.x}:n;var o=function(t,e){return r(t)-e},i=d3.bisector(o).left,a=d3.max([0,i(t,e)-1]),u=r(t[a]);if("undefined"==typeof u&&(u=a),u===e)return a;var s=d3.min([a+1,t.length-1]),l=r(t[s]);return"undefined"==typeof l&&(l=s),Math.abs(l-e)>=Math.abs(u-e)?a:s},r.nearestValueIndex=function(t,e,n){"use strict";var r=1/0,o=null;return t.forEach(function(t,i){var a=Math.abs(e-t);null!=t&&a<=r&&a"+t.footer+""),i},x=function(){var t={left:null!==d3.event?d3.event.clientX:0,top:null!==d3.event?d3.event.clientY:0};if("none"!=getComputedStyle(document.body).transform){var e=document.body.getBoundingClientRect();t.left-=e.left,t.top-=e.top}return t},w=function(t){if(t&&t.series){if(r.utils.isArray(t.series))return!0;if(r.utils.isObject(t.series))return t.series=[t.series],!0}return!1},E=function(t){var e,n,r,o=f.node().offsetHeight,u=f.node().offsetWidth,s=document.documentElement.clientWidth,l=document.documentElement.clientHeight;switch(i){case"e": -e=-u-a,n=-(o/2),t.left+e<0&&(e=a),(r=t.top+n)<0&&(n-=r),(r=t.top+n+o)>l&&(n-=r-l);break;case"w":e=a,n=-(o/2),t.left+e+u>s&&(e=-u-a),(r=t.top+n)<0&&(n-=r),(r=t.top+n+o)>l&&(n-=r-l);break;case"n":e=-(u/2)-5,n=a,t.top+n+o>l&&(n=-o-a),(r=t.left+e)<0&&(e-=r),(r=t.left+e+u)>s&&(e-=r-s);break;case"s":e=-(u/2),n=-o-a,t.top+n<0&&(n=a),(r=t.left+e)<0&&(e-=r),(r=t.left+e+u)>s&&(e-=r-s);break;case"center":e=-(u/2),n=-(o/2);break;default:e=0,n=0}return{left:e,top:n}},C=function(){r.dom.read(function(){var t=x(),e=E(t),n=t.left+e.left,r=t.top+e.top;if(l)f.interrupt().transition().delay(c).duration(0).style("opacity",0);else{var o="translate("+d.left+"px, "+d.top+"px)",i="translate("+Math.round(n)+"px, "+Math.round(r)+"px)",a=d3.interpolateString(o,i),u=f.style("opacity")<.1;f.interrupt().transition().duration(u?0:h).styleTween("transform",function(t){return a},"important").styleTween("-webkit-transform",function(t){return a}).style("-ms-transform",i).style("opacity",1)}d.left=n,d.top=r})};return e.nvPointerEventsClass=g,e.options=r.utils.optionsFunc.bind(e),e._options=Object.create({},{duration:{get:function(){return h},set:function(t){h=t}},gravity:{get:function(){return i},set:function(t){i=t}},distance:{get:function(){return a},set:function(t){a=t}},snapDistance:{get:function(){return u},set:function(t){u=t}},classes:{get:function(){return s},set:function(t){s=t}},enabled:{get:function(){return p},set:function(t){p=t}},hideDelay:{get:function(){return c},set:function(t){c=t}},contentGenerator:{get:function(){return _},set:function(t){_=t}},valueFormatter:{get:function(){return m},set:function(t){m=t}},headerFormatter:{get:function(){return y},set:function(t){y=t}},keyFormatter:{get:function(){return b},set:function(t){b=t}},headerEnabled:{get:function(){return v},set:function(t){v=t}},position:{get:function(){return x},set:function(t){x=t}},chartContainer:{get:function(){return document.body},set:function(t){r.deprecated("chartContainer","feature removed after 1.8.3")}},fixedTop:{get:function(){return null},set:function(t){r.deprecated("fixedTop","feature removed after 1.8.1")}},offset:{get:function(){return{left:0,top:0}},set:function(t){r.deprecated("offset","use chart.tooltip.distance() instead")}},hidden:{get:function(){return l},set:function(t){l!=t&&(l=!!t,e())}},data:{get:function(){return o},set:function(t){t.point&&(t.value=t.point.x,t.series=t.series||{},t.series.value=t.point.y,t.series.color=t.point.color||t.series.color),o=t}},node:{get:function(){return f.node()},set:function(t){}},id:{get:function(){return n},set:function(t){}}}),r.utils.initOptions(e),e},r.utils.windowSize=function(){var t={width:640,height:480};return window.innerWidth&&window.innerHeight?(t.width=window.innerWidth,t.height=window.innerHeight,t):"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth?(t.width=document.documentElement.offsetWidth,t.height=document.documentElement.offsetHeight,t):document.body&&document.body.offsetWidth?(t.width=document.body.offsetWidth,t.height=document.body.offsetHeight,t):t},r.utils.isArray=Array.isArray,r.utils.isObject=function(t){return null!==t&&"object"==typeof t},r.utils.isFunction=function(t){return"function"==typeof t},r.utils.isDate=function(t){return"[object Date]"===toString.call(t)},r.utils.isNumber=function(t){return!isNaN(t)&&"number"==typeof t},r.utils.windowResize=function(t){return window.addEventListener?window.addEventListener("resize",t):r.log("ERROR: Failed to bind to window.resize with: ",t),{callback:t,clear:function(){window.removeEventListener("resize",t)}}},r.utils.getColor=function(t){if(void 0===t)return r.utils.defaultColor();if(r.utils.isArray(t)){var e=d3.scale.ordinal().range(t);return function(t,n){var r=void 0===n?t:n;return t.color||e(r)}}return t},r.utils.defaultColor=function(){return r.utils.getColor(d3.scale.category20().range())},r.utils.customTheme=function(t,e,n){e=e||function(t){return t.key},n=n||d3.scale.category20().range();var o=n.length;return function(i,a){var u=e(i);return r.utils.isFunction(t[u])?t[u]():void 0!==t[u]?t[u]:(o||(o=n.length),o-=1,n[o])}},r.utils.pjax=function(t,e){var n=function(n){d3.html(n,function(n){var o=d3.select(e).node();o.parentNode.replaceChild(d3.select(n).select(e).node(),o),r.utils.pjax(t,e)})};d3.selectAll(t).on("click",function(){history.pushState(this.href,this.textContent,this.href),n(this.href),d3.event.preventDefault()}),d3.select(window).on("popstate",function(){d3.event.state&&n(d3.event.state)})},r.utils.calcApproxTextWidth=function(t){if(r.utils.isFunction(t.style)&&r.utils.isFunction(t.text)){var e=parseInt(t.style("font-size").replace("px",""),10),n=t.text().length;return r.utils.NaNtoZero(n*e*.5)}return 0},r.utils.NaNtoZero=function(t){return!r.utils.isNumber(t)||isNaN(t)||null===t||t===1/0||t===-(1/0)?0:t},d3.selection.prototype.watchTransition=function(t){var e=[this].concat([].slice.call(arguments,1));return t.transition.apply(t,e)},r.utils.renderWatch=function(t,e){if(!(this instanceof r.utils.renderWatch))return new r.utils.renderWatch(t,e);var n=void 0!==e?e:250,o=[],i=this;this.models=function(t){return t=[].slice.call(arguments,0),t.forEach(function(t){t.__rendered=!1,function(t){t.dispatch.on("renderEnd",function(e){t.__rendered=!0,i.renderEnd("model")})}(t),o.indexOf(t)<0&&o.push(t)}),this},this.reset=function(t){void 0!==t&&(n=t),o=[]},this.transition=function(t,e,r){if(e=arguments.length>1?[].slice.call(arguments,1):[],r=e.length>1?e.pop():void 0!==n?n:250,t.__rendered=!1,o.indexOf(t)<0&&o.push(t),0===r)return t.__rendered=!0,t.delay=function(){return this},t.duration=function(){return this},t;0===t.length?t.__rendered=!0:t.every(function(t){return!t.length})?t.__rendered=!0:t.__rendered=!1;var a=0;return t.transition().duration(r).each(function(){++a}).each("end",function(n,r){0===--a&&(t.__rendered=!0,i.renderEnd.apply(this,e))})},this.renderEnd=function(){o.every(function(t){return t.__rendered})&&(o.forEach(function(t){t.__rendered=!1}),t.renderEnd.apply(this,arguments))}},r.utils.deepExtend=function(t){var e=arguments.length>1?[].slice.call(arguments,1):[];e.forEach(function(e){for(var n in e){var o=r.utils.isArray(t[n]),i=r.utils.isObject(t[n]),a=r.utils.isObject(e[n]);i&&!o&&a?r.utils.deepExtend(t[n],e[n]):t[n]=e[n]}})},r.utils.state=function(){if(!(this instanceof r.utils.state))return new r.utils.state;var t={},e=function(){},n=function(){return{}},o=null,i=null;this.dispatch=d3.dispatch("change","set"),this.dispatch.on("set",function(t){e(t,!0)}),this.getter=function(t){return n=t,this},this.setter=function(t,n){return n||(n=function(){}),e=function(e,r){t(e),r&&n()},this},this.init=function(t){o=o||{},r.utils.deepExtend(o,t)};var a=function(){var e=n();if(JSON.stringify(e)===JSON.stringify(t))return!1;for(var r in e)void 0===t[r]&&(t[r]={}),t[r]=e[r],i=!0;return!0};this.update=function(){o&&(e(o,!1),o=null),a.call(this)&&this.dispatch.change(t)}},r.utils.optionsFunc=function(t){return t&&d3.map(t).forEach(function(t,e){r.utils.isFunction(this[t])&&this[t](e)}.bind(this)),this},r.utils.calcTicksX=function(t,e){var n=1,o=0;for(o;on?i:n}return r.log("Requested number of ticks: ",t),r.log("Calculated max values to be: ",n),t=t>n?t=n-1:t,t=t<1?1:t,t=Math.floor(t),r.log("Calculating tick count as: ",t),t},r.utils.calcTicksY=function(t,e){return r.utils.calcTicksX(t,e)},r.utils.initOption=function(t,e){t._calls&&t._calls[e]?t[e]=t._calls[e]:(t[e]=function(n){return arguments.length?(t._overrides[e]=!0,t._options[e]=n,t):t._options[e]},t["_"+e]=function(n){return arguments.length?(t._overrides[e]||(t._options[e]=n),t):t._options[e]})},r.utils.initOptions=function(t){t._overrides=t._overrides||{};var e=Object.getOwnPropertyNames(t._options||{}),n=Object.getOwnPropertyNames(t._calls||{});e=e.concat(n);for(var o in e)r.utils.initOption(t,e[o])},r.utils.inheritOptionsD3=function(t,e,n){t._d3options=n.concat(t._d3options||[]),n.unshift(e),n.unshift(t),d3.rebind.apply(this,n)},r.utils.arrayUnique=function(t){return t.sort().filter(function(e,n){return!n||e!=t[n-1]})},r.utils.symbolMap=d3.map(),r.utils.symbol=function(){function t(t,o){var i=e.call(this,t,o),a=n.call(this,t,o);return d3.svg.symbolTypes.indexOf(i)!==-1?d3.svg.symbol().type(i).size(a)():r.utils.symbolMap.get(i)(a)}var e,n=64;return t.type=function(n){return arguments.length?(e=d3.functor(n),t):e},t.size=function(e){return arguments.length?(n=d3.functor(e),t):n},t},r.utils.inheritOptions=function(t,e){var n=Object.getOwnPropertyNames(e._options||{}),o=Object.getOwnPropertyNames(e._calls||{}),i=e._inherited||[],a=e._d3options||[],u=n.concat(o).concat(i).concat(a);u.unshift(e),u.unshift(t),d3.rebind.apply(this,u),t._inherited=r.utils.arrayUnique(n.concat(o).concat(i).concat(n).concat(t._inherited||[])),t._d3options=r.utils.arrayUnique(a.concat(t._d3options||[]))},r.utils.initSVG=function(t){t.classed({"nvd3-svg":!0})},r.utils.sanitizeHeight=function(t,e){return t||parseInt(e.style("height"),10)||400},r.utils.sanitizeWidth=function(t,e){return t||parseInt(e.style("width"),10)||960},r.utils.availableHeight=function(t,e,n){return Math.max(0,r.utils.sanitizeHeight(t,e)-n.top-n.bottom)},r.utils.availableWidth=function(t,e,n){return Math.max(0,r.utils.sanitizeWidth(t,e)-n.left-n.right)},r.utils.noData=function(t,e){var n=t.options(),o=n.margin(),i=n.noData(),a=null==i?["No Data Available."]:[i],u=r.utils.availableHeight(null,e,o),s=r.utils.availableWidth(null,e,o),l=o.left+s/2,c=o.top+u/2;e.selectAll("g").remove();var f=e.selectAll(".nv-noData").data(a);f.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),f.attr("x",l).attr("y",c).text(function(t){return t})},r.utils.wrapTicks=function(t,e){t.each(function(){for(var t,n=d3.select(this),r=n.text().split(/\s+/).reverse(),o=[],i=0,a=1.1,u=n.attr("y"),s=parseFloat(n.attr("dy")),l=n.text(null).append("tspan").attr("x",0).attr("y",u).attr("dy",s+"em");t=r.pop();)o.push(t),l.text(o.join(" ")),l.node().getComputedTextLength()>e&&(o.pop(),l.text(o.join(" ")),o=[t],l=n.append("tspan").attr("x",0).attr("y",u).attr("dy",++i*a+s+"em").text(t))})},r.utils.arrayEquals=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(t.length!=e.length)return!1;for(var n=0,o=t.length;n2&&(k=n.range()[n.range().length-1]+(n.range()[1]-n.range()[0])),w.attr("text-anchor","middle").attr("y",0).attr("x",k/2),s&&(C=g.selectAll("g.nv-axisMaxMin").data(n.domain()),C.enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-x",0==e?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),C.exit().remove(),C.attr("transform",function(t,e){return"translate("+r.utils.NaNtoZero(n(t))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-e.tickPadding()).attr("text-anchor","middle").text(function(t,e){var n=x(t);return(""+n).match("NaN")?"":n}),C.watchTransition(b,"min-max top").attr("transform",function(t,e){return"translate("+r.utils.NaNtoZero(n.range()[e])+",0)"}));break;case"bottom":E=h+36;var M=30,O=0,T=_.selectAll("g").select("text"),A="";if(l%360){T.attr("transform",""),T.each(function(t,e){var n=this.getBoundingClientRect(),r=n.width;O=n.height,r>M&&(M=r)}),A="rotate("+l+" 0,"+(O/2+e.tickPadding())+")";var S=Math.abs(Math.sin(l*Math.PI/180));E=(S?S*M:M)+30,T.attr("transform",A).style("text-anchor",l%360>0?"start":"end")}else f?T.attr("transform",function(t,e){return"translate(0,"+(e%2==0?"0":"12")+")"}):T.attr("transform","translate(0,0)");w.enter().append("text").attr("class","nv-axislabel"),k=0,1===n.range().length?k=d?2*n.range()[0]+n.rangeBand():0:2===n.range().length?k=d?n.range()[0]+n.range()[1]+n.rangeBand():n.range()[1]:n.range().length>2&&(k=n.range()[n.range().length-1]+(n.range()[1]-n.range()[0])),w.attr("text-anchor","middle").attr("y",E).attr("x",k/2),s&&(C=g.selectAll("g.nv-axisMaxMin").data([n.domain()[0],n.domain()[n.domain().length-1]]),C.enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-x",0==e?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),C.exit().remove(),C.attr("transform",function(t,e){return"translate("+r.utils.NaNtoZero(n(t)+(d?n.rangeBand()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",e.tickPadding()).attr("transform",A).style("text-anchor",l?l%360>0?"start":"end":"middle").text(function(t,e){var n=x(t);return(""+n).match("NaN")?"":n}),C.watchTransition(b,"min-max bottom").attr("transform",function(t,e){return"translate("+r.utils.NaNtoZero(n(t)+(d?n.rangeBand()/2:0))+",0)"}));break;case"right":w.enter().append("text").attr("class","nv-axislabel"),w.style("text-anchor",c?"middle":"begin").attr("transform",c?"rotate(90)":"").attr("y",c?-Math.max(o.right,i)+12-(h||0):-10).attr("x",c?d3.max(n.range())/2:e.tickPadding()),s&&(C=g.selectAll("g.nv-axisMaxMin").data(n.domain()),C.enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-y",0==e?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),C.exit().remove(),C.attr("transform",function(t,e){return"translate(0,"+r.utils.NaNtoZero(n(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",e.tickPadding()).style("text-anchor","start").text(function(t,e){var n=x(t);return(""+n).match("NaN")?"":n}),C.watchTransition(b,"min-max right").attr("transform",function(t,e){return"translate(0,"+r.utils.NaNtoZero(n.range()[e])+")"}).select("text").style("opacity",1));break;case"left":w.enter().append("text").attr("class","nv-axislabel"),w.style("text-anchor",c?"middle":"end").attr("transform",c?"rotate(-90)":"").attr("y",c?-Math.max(o.left,i)+25-(h||0):-10).attr("x",c?-d3.max(n.range())/2:-e.tickPadding()),s&&(C=g.selectAll("g.nv-axisMaxMin").data(n.domain()),C.enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-y",0==e?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),C.exit().remove(),C.attr("transform",function(t,e){return"translate(0,"+r.utils.NaNtoZero(y(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-e.tickPadding()).attr("text-anchor","end").text(function(t,e){var n=x(t);return(""+n).match("NaN")?"":n}),C.watchTransition(b,"min-max right").attr("transform",function(t,e){return"translate(0,"+r.utils.NaNtoZero(n.range()[e])+")"}).select("text").style("opacity",1))}if(w.text(function(t){return t}),!s||"left"!==e.orient()&&"right"!==e.orient()||(_.selectAll("g").each(function(t,e){d3.select(this).select("text").attr("opacity",1),(n(t)n.range()[0]-10)&&((t>1e-10||t<-1e-10)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0))}),n.domain()[0]==n.domain()[1]&&0==n.domain()[0]&&g.selectAll("g.nv-axisMaxMin").style("opacity",function(t,e){return e?0:1})),s&&("top"===e.orient()||"bottom"===e.orient())){var P=[];g.selectAll("g.nv-axisMaxMin").each(function(t,e){try{e?P.push(n(t)-this.getBoundingClientRect().width-4):P.push(n(t)+this.getBoundingClientRect().width+4)}catch(r){e?P.push(n(t)-4):P.push(n(t)+4)}}),_.selectAll("g").each(function(t,e){(n(t)P[1])&&(t>1e-10||t<-1e-10?d3.select(this).remove():d3.select(this).select("text").remove())})}_.selectAll(".tick").filter(function(t){return!parseFloat(Math.round(1e5*t)/1e6)&&void 0!==t}).classed("zero",!0),y=n.copy()}),b.renderEnd("axis immediate"),t}var e=d3.svg.axis(),n=d3.scale.linear(),o={top:0,right:0,bottom:0,left:0},i=75,a=60,u=null,s=!0,l=0,c=!0,f=!1,d=!1,p=null,h=0,v=void 0,g=250,m=d3.dispatch("renderEnd");e.scale(n).orient("bottom").tickFormat(function(t){return t});var y,b=r.utils.renderWatch(m,g);return t.axis=e,t.dispatch=m,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{axisLabelDistance:{get:function(){return h},set:function(t){h=t}},staggerLabels:{get:function(){return f},set:function(t){f=t}},rotateLabels:{get:function(){return l},set:function(t){l=t}},rotateYLabel:{get:function(){return c},set:function(t){c=t}},showMaxMin:{get:function(){return s},set:function(t){s=t}},axisLabel:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return a},set:function(t){a=t}},ticks:{get:function(){return p},set:function(t){p=t}},width:{get:function(){return i},set:function(t){i=t}},fontSize:{get:function(){return v},set:function(t){v=t}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},duration:{get:function(){return g},set:function(t){g=t,b.reset(g)}},scale:{get:function(){return n},set:function(o){n=o,e.scale(n),d="function"==typeof n.rangeBands,r.utils.inheritOptionsD3(t,n,["domain","range","rangeBand","rangeBands"])}}}),r.utils.initOptions(t),r.utils.inheritOptionsD3(t,e,["orient","tickValues","tickSubdivide","tickSize","tickPadding","tickFormat"]),r.utils.inheritOptionsD3(t,n,["domain","range","rangeBand","rangeBands"]),t},r.models.boxPlot=function(){"use strict";function t(f){return S.reset(),f.each(function(t){var f=l-s.left-s.right,P=c-s.top-s.bottom;M=d3.select(this),r.utils.initSVG(M),d.domain(e||t.map(function(t,e){return h(t,e)})).rangeBands(n||[0,f],.1);var R=[];if(!o){var D,N,j=[];t.forEach(function(t,e){var n=v(t),r=m(t),o=y(t),i=b(t),a=x(t);a&&a.forEach(function(t,e){j.push(w(t,e,void 0))}),o&&j.push(o),n&&j.push(n),r&&j.push(r),i&&j.push(i)}),D=d3.min(j),N=d3.max(j),R=[D,N]}p.domain(o||R),p.range(i||[P,0]),a=a||d,u=u||p.copy().range([p(0),p(0)]);var F=M.selectAll("g.nv-wrap").data([t]);F.enter().append("g").attr("class","nvd3 nv-wrap");F.attr("transform","translate("+s.left+","+s.top+")");var L=F.selectAll(".nv-boxplot").data(function(t){return t}),I=L.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);L.attr("class","nv-boxplot").attr("transform",function(t,e,n){return"translate("+(d(h(t,e))+.05*d.rangeBand())+", 0)"}).classed("hover",function(t){return t.hover}),L.watchTransition(S,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay(function(e,n){return n*T/t.length}).attr("transform",function(t,e){return"translate("+(d(h(t,e))+.05*d.rangeBand())+", 0)"}),L.exit().remove(),I.each(function(t,e){var n=d3.select(this);[y,b].forEach(function(r){if(void 0!==r(t)&&null!==r(t)){var o=r===y?"low":"high";n.append("line").style("stroke",_(t)||k(t,e)).attr("class","nv-boxplot-whisker nv-boxplot-"+o),n.append("line").style("stroke",_(t)||k(t,e)).attr("class","nv-boxplot-tick nv-boxplot-"+o)}})});var H=function(){return null===A?.9*d.rangeBand():Math.min(75,.9*d.rangeBand())},B=function(){return.45*d.rangeBand()-H()/2},U=function(){return.45*d.rangeBand()+H()/2};[y,b].forEach(function(t){var e=t===y?"low":"high",n=t===y?v:m;L.select("line.nv-boxplot-whisker.nv-boxplot-"+e).watchTransition(S,"nv-boxplot: boxplots").attr("x1",.45*d.rangeBand()).attr("y1",function(e,n){return p(t(e))}).attr("x2",.45*d.rangeBand()).attr("y2",function(t,e){return p(n(t))}),L.select("line.nv-boxplot-tick.nv-boxplot-"+e).watchTransition(S,"nv-boxplot: boxplots").attr("x1",B).attr("y1",function(e,n){return p(t(e))}).attr("x2",U).attr("y2",function(e,n){return p(t(e))})}),[y,b].forEach(function(t){var e=t===y?"low":"high";I.selectAll(".nv-boxplot-"+e).on("mouseover",function(e,n,r){d3.select(this).classed("hover",!0),O.elementMouseover({series:{key:t(e),color:_(e)||k(e,r)},e:d3.event})}).on("mouseout",function(e,n,r){d3.select(this).classed("hover",!1),O.elementMouseout({series:{key:t(e),color:_(e)||k(e,r)},e:d3.event})}).on("mousemove",function(t,e){O.elementMousemove({e:d3.event})})}),I.append("rect").attr("class","nv-boxplot-box").on("mouseover",function(t,e){d3.select(this).classed("hover",!0),O.elementMouseover({key:h(t),value:h(t),series:[{key:"Q3",value:m(t),color:_(t)||k(t,e)},{key:"Q2",value:g(t),color:_(t)||k(t,e)},{key:"Q1",value:v(t),color:_(t)||k(t,e)}],data:t,index:e,e:d3.event})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),O.elementMouseout({key:h(t),value:h(t),series:[{key:"Q3",value:m(t),color:_(t)||k(t,e)},{key:"Q2",value:g(t),color:_(t)||k(t,e)},{key:"Q1",value:v(t),color:_(t)||k(t,e)}],data:t,index:e,e:d3.event})}).on("mousemove",function(t,e){O.elementMousemove({e:d3.event})}),L.select("rect.nv-boxplot-box").watchTransition(S,"nv-boxplot: boxes").attr("y",function(t,e){return p(m(t))}).attr("width",H).attr("x",B).attr("height",function(t,e){return Math.abs(p(m(t))-p(v(t)))||1}).style("fill",function(t,e){return _(t)||k(t,e)}).style("stroke",function(t,e){return _(t)||k(t,e)}),I.append("line").attr("class","nv-boxplot-median"),L.select("line.nv-boxplot-median").watchTransition(S,"nv-boxplot: boxplots line").attr("x1",B).attr("y1",function(t,e){return p(g(t))}).attr("x2",U).attr("y2",function(t,e){return p(g(t))});var W=L.selectAll(".nv-boxplot-outlier").data(function(t){return x(t)||[]});W.enter().append("circle").style("fill",function(t,e,n){return C(t,e,n)||k(t,n)}).style("stroke",function(t,e,n){return C(t,e,n)||k(t,n)}).style("z-index",9e3).on("mouseover",function(t,e,n){d3.select(this).classed("hover",!0),O.elementMouseover({series:{key:E(t,e,n),color:C(t,e,n)||k(t,n)},e:d3.event})}).on("mouseout",function(t,e,n){d3.select(this).classed("hover",!1),O.elementMouseout({series:{key:E(t,e,n),color:C(t,e,n)||k(t,n)},e:d3.event})}).on("mousemove",function(t,e){O.elementMousemove({e:d3.event})}),W.attr("class","nv-boxplot-outlier"),W.watchTransition(S,"nv-boxplot: nv-boxplot-outlier").attr("cx",.45*d.rangeBand()).attr("cy",function(t,e,n){return p(w(t,e,n))}).attr("r","3"),W.exit().remove(),a=d.copy(),u=p.copy()}),S.renderEnd("nv-boxplot immediate"),t}var e,n,o,i,a,u,s={top:0,right:0,bottom:0,left:0},l=960,c=500,f=Math.floor(1e4*Math.random()),d=d3.scale.ordinal(),p=d3.scale.linear(),h=function(t){return t.label},v=function(t){return t.values.Q1},g=function(t){return t.values.Q2},m=function(t){return t.values.Q3},y=function(t){return t.values.whisker_low},b=function(t){return t.values.whisker_high},_=function(t){return t.color},x=function(t){return t.values.outliers},w=function(t,e,n){return t},E=function(t,e,n){return t},C=function(t,e,n){},k=r.utils.defaultColor(),M=null,O=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),T=250,A=null,S=r.utils.renderWatch(O,T);return t.dispatch=O,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},maxBoxWidth:{get:function(){return A},set:function(t){A=t}},x:{get:function(){return h},set:function(t){h=t}},q1:{get:function(){return v},set:function(t){v=t}},q2:{get:function(){return g},set:function(t){g=t}},q3:{get:function(){return m},set:function(t){m=t}},wl:{get:function(){return y},set:function(t){y=t}},wh:{get:function(){return b},set:function(t){b=t}},itemColor:{get:function(){return _},set:function(t){_=t}},outliers:{get:function(){return x},set:function(t){x=t}},outlierValue:{get:function(){return w},set:function(t){w=t}},outlierLabel:{get:function(){return E},set:function(t){E=t}},outlierColor:{get:function(){return C},set:function(t){C=t}},xScale:{get:function(){return d},set:function(t){d=t}},yScale:{get:function(){return p},set:function(t){p=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return o},set:function(t){o=t}},xRange:{get:function(){return n},set:function(t){n=t}},yRange:{get:function(){return i},set:function(t){i=t}},id:{get:function(){return f},set:function(t){f=t}},y:{get:function(){return console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead."),{}},set:function(t){console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead.")}},margin:{get:function(){return s},set:function(t){s.top=void 0!==t.top?t.top:s.top,s.right=void 0!==t.right?t.right:s.right,s.bottom=void 0!==t.bottom?t.bottom:s.bottom,s.left=void 0!==t.left?t.left:s.left}},color:{get:function(){return k},set:function(t){k=r.utils.getColor(t)}},duration:{get:function(){return T},set:function(t){T=t,S.reset(T)}}}),r.utils.initOptions(t),t},r.models.boxPlotChart=function(){"use strict";function t(c){return b.reset(),b.models(o),f&&b.models(i),d&&b.models(a),c.each(function(c){var v=d3.select(this);r.utils.initSVG(v);var b=(s||parseInt(v.style("width"))||960)-u.left-u.right,_=(l||parseInt(v.style("height"))||400)-u.top-u.bottom;if(t.update=function(){m.beforeUpdate(),v.transition().duration(y).call(t)},t.container=this,!c||!c.length){var x=v.selectAll(".nv-noData").data([g]);return x.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),x.attr("x",u.left+b/2).attr("y",u.top+_/2).text(function(t){return t}),t}v.selectAll(".nv-noData").remove(),e=o.xScale(),n=o.yScale().clamp(!0);var w=v.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([c]),E=w.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),C=E.append("defs"),k=w.select("g");E.append("g").attr("class","nv-x nv-axis"),E.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),E.append("g").attr("class","nv-barsWrap"),k.attr("transform","translate("+u.left+","+u.top+")"),p&&k.select(".nv-y.nv-axis").attr("transform","translate("+b+",0)"),o.width(b).height(_);var M=k.select(".nv-barsWrap").datum(c.filter(function(t){return!t.disabled}));if(M.transition().call(o),C.append("clipPath").attr("id","nv-x-label-clip-"+o.id()).append("rect"),k.select("#nv-x-label-clip-"+o.id()+" rect").attr("width",e.rangeBand()*(h?2:1)).attr("height",16).attr("x",-e.rangeBand()/(h?1:2)),f){i.scale(e).ticks(r.utils.calcTicksX(b/100,c)).tickSize(-_,0),k.select(".nv-x.nv-axis").attr("transform","translate(0,"+n.range()[0]+")"),k.select(".nv-x.nv-axis").call(i);var O=k.select(".nv-x.nv-axis").selectAll("g");h&&O.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2===0?"5":"17")+")"})}d&&(a.scale(n).ticks(Math.floor(_/36)).tickSize(-b,0),k.select(".nv-y.nv-axis").call(a)),k.select(".nv-zeroLine line").attr("x1",0).attr("x2",b).attr("y1",n(0)).attr("y2",n(0))}),b.renderEnd("nv-boxplot chart immediate"),t}var e,n,o=r.models.boxPlot(),i=r.models.axis(),a=r.models.axis(),u={top:15,right:10,bottom:50,left:60},s=null,l=null,c=r.utils.getColor(),f=!0,d=!0,p=!1,h=!1,v=r.models.tooltip(),g="No Data Available.",m=d3.dispatch("beforeUpdate","renderEnd"),y=250;i.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),a.orient(p?"right":"left").tickFormat(d3.format(",.1f")),v.duration(0);var b=r.utils.renderWatch(m,y);return o.dispatch.on("elementMouseover.tooltip",function(t){v.data(t).hidden(!1)}),o.dispatch.on("elementMouseout.tooltip",function(t){v.data(t).hidden(!0)}),o.dispatch.on("elementMousemove.tooltip",function(t){v()}),t.dispatch=m,t.boxplot=o,t.xAxis=i,t.yAxis=a,t.tooltip=v,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return l},set:function(t){l=t}},staggerLabels:{get:function(){return h},set:function(t){h=t}},showXAxis:{get:function(){return f},set:function(t){f=t}},showYAxis:{get:function(){return d},set:function(t){d=t}},tooltipContent:{get:function(){return v},set:function(t){v=t}},noData:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return u},set:function(t){u.top=void 0!==t.top?t.top:u.top,u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},duration:{get:function(){return y},set:function(t){y=t,b.reset(y),o.duration(y),i.duration(y),a.duration(y)}},color:{get:function(){return c},set:function(t){c=r.utils.getColor(t),o.color(c)}},rightAlignYAxis:{get:function(){return p},set:function(t){p=t,a.orient(t?"right":"left")}}}),r.utils.inheritOptions(t,o),r.utils.initOptions(t),t},r.models.bullet=function(){"use strict";function t(t,e){var n=t.slice();t.sort(function(t,r){var o=n.indexOf(t),i=n.indexOf(r);return d3.descending(e[o],e[i])})}function e(o){return o.each(function(e,o){var y=v-n.left-n.right,C=g-n.top-n.bottom;m=d3.select(this),r.utils.initSVG(m);var k=a.call(this,e,o).slice(),M=u.call(this,e,o).slice(),O=s.call(this,e,o).slice(),T=l.call(this,e,o).slice(),A=c.call(this,e,o).slice(),S=f.call(this,e,o).slice(),P=d.call(this,e,o).slice(),R=p.call(this,e,o).slice();t(A,k),t(S,M),t(P,O),t(R,T),k.sort(d3.descending),M.sort(d3.descending),O.sort(d3.descending),T.sort(d3.descending);var D=d3.scale.linear().domain(d3.extent(d3.merge([h,k]))).range(i?[y,0]:[0,y]);this.__chart__||d3.scale.linear().domain([0,1/0]).range(D.range());this.__chart__=D;for(var N=(d3.min(k),d3.max(k),k[1],m.selectAll("g.nv-wrap.nv-bullet").data([e])),j=N.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet"),F=j.append("g"),L=N.select("g"),o=0,I=k.length;og(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e});D.append("line").attr("class","nv-candlestick-lines").attr("transform",function(t,e){return"translate("+f(p(t,e))+",0)"}).attr("x1",0).attr("y1",function(t,e){return d(m(t,e))}).attr("x2",0).attr("y2",function(t,e){return d(y(t,e))}),D.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",function(t,e){return"translate("+(f(p(t,e))-M/2)+","+(d(h(t,e))-(v(t,e)>g(t,e)?d(g(t,e))-d(v(t,e)):0))+")"}).attr("x",0).attr("y",0).attr("width",M).attr("height",function(t,e){var n=v(t,e),r=g(t,e);return n>r?d(r)-d(n):d(n)-d(r)});R.select(".nv-candlestick-lines").transition().attr("transform",function(t,e){return"translate("+f(p(t,e))+",0)"}).attr("x1",0).attr("y1",function(t,e){return d(m(t,e))}).attr("x2",0).attr("y2",function(t,e){return d(y(t,e))}),R.select(".nv-candlestick-rects").transition().attr("transform",function(t,e){return"translate("+(f(p(t,e))-M/2)+","+(d(h(t,e))-(v(t,e)>g(t,e)?d(g(t,e))-d(v(t,e)):0))+")"}).attr("x",0).attr("y",0).attr("width",M).attr("height",function(t,e){var n=v(t,e),r=g(t,e);return n>r?d(r)-d(n):d(n)-d(r)})}),t}var e,n,o,i,a,u={top:0,right:0,bottom:0,left:0},s=null,l=null,c=Math.floor(1e4*Math.random()),f=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},h=function(t){return t.y},v=function(t){return t.open},g=function(t){return t.close},m=function(t){return t.high},y=function(t){return t.low},b=[],_=[],x=!1,w=!0,E=r.utils.defaultColor(),C=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");return t.highlightPoint=function(n,r){t.clearHighlights(),e.select(".nv-candlestickBar .nv-tick-0-"+n).classed("hover",r)},t.clearHighlights=function(){e.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},t.dispatch=k,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return l},set:function(t){l=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return n},set:function(t){n=t}},yDomain:{get:function(){return o},set:function(t){o=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},forceX:{get:function(){return b},set:function(t){b=t}},forceY:{get:function(){return _},set:function(t){_=t}},padData:{get:function(){return x},set:function(t){x=t}},clipEdge:{get:function(){return w},set:function(t){w=t}},id:{get:function(){return c},set:function(t){c=t}},interactive:{get:function(){return C},set:function(t){C=t}},x:{get:function(){return p},set:function(t){p=t}},y:{get:function(){return h},set:function(t){h=t}},open:{get:function(){return v()},set:function(t){v=t}},close:{get:function(){return g()},set:function(t){g=t}},high:{get:function(){return m},set:function(t){m=t}},low:{get:function(){return y},set:function(t){y=t}},margin:{get:function(){return u},set:function(t){u.top=void 0!=t.top?t.top:u.top,u.right=void 0!=t.right?t.right:u.right,u.bottom=void 0!=t.bottom?t.bottom:u.bottom,u.left=void 0!=t.left?t.left:u.left}},color:{get:function(){return E},set:function(t){E=r.utils.getColor(t)}}}),r.utils.initOptions(t),t},r.models.cumulativeLineChart=function(){"use strict";function t(f){return N.reset(),N.models(i),y&&N.models(a),b&&N.models(u),f.each(function(f){function O(e,n){d3.select(t.container).style("cursor","ew-resize")}function P(t,e){D.x=d3.event.x,D.i=Math.round(R.invert(D.x)),L()}function N(e,n){d3.select(t.container).style("cursor","auto"),k.index=D.i,A.stateChange(k)}function L(){et.data([D]);var e=t.duration();t.duration(0),t.update(),t.duration(e)}var I=d3.select(this);r.utils.initSVG(I),I.classed("nv-chart-"+C,!0);var H=r.utils.availableWidth(v,I,d),B=r.utils.availableHeight(g,I,d);if(t.update=function(){0===S?I.call(t):I.transition().duration(S).call(t)},t.container=this,k.setter(F(f),t.update).getter(j(f)).update(),k.disabled=f.map(function(t){return!!t.disabled}),!M){var U;M={};for(U in k)k[U]instanceof Array?M[U]=k[U].slice(0):M[U]=k[U]}var W=d3.behavior.drag().on("dragstart",O).on("drag",P).on("dragend",N);if(!(f&&f.length&&f.filter(function(t){return t.values.length}).length))return r.utils.noData(t,I),t;if(I.selectAll(".nv-noData").remove(),n=i.xScale(),o=i.yScale(),E)i.yDomain(null);else{var z=f.filter(function(t){return!t.disabled}).map(function(t,e){var n=d3.extent(t.values,i.y());return n[0]<-.95&&(n[0]=-.95),[(n[0]-n[1])/(1+n[1]),(n[1]-n[0])/(1+n[0])]}),V=[d3.min(z,function(t){return t[0]}),d3.max(z,function(t){return t[1]})];i.yDomain(V)}R.domain([0,f[0].values.length-1]).range([0,H]).clamp(!0);var f=e(D.i,f),q=w?"none":"all",Y=I.selectAll("g.nv-wrap.nv-cumulativeLine").data([f]),K=Y.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine").append("g"),X=Y.select("g");if(K.append("g").attr("class","nv-interactive"),K.append("g").attr("class","nv-x nv-axis").style("pointer-events","none"),K.append("g").attr("class","nv-y nv-axis"),K.append("g").attr("class","nv-background"),K.append("g").attr("class","nv-linesWrap").style("pointer-events",q),K.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none"),K.append("g").attr("class","nv-legendWrap"),K.append("g").attr("class","nv-controlsWrap"),m?(s.width(H),X.select(".nv-legendWrap").datum(f).call(s),p||s.height()===d.top||(d.top=s.height(),B=r.utils.availableHeight(g,I,d)),X.select(".nv-legendWrap").attr("transform","translate(0,"+-d.top+")")):X.select(".nv-legendWrap").selectAll("*").remove(),x){var G=[{key:"Re-scale y-axis",disabled:!E}];l.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),X.select(".nv-controlsWrap").datum(G).attr("transform","translate(0,"+-d.top+")").call(l)}else X.select(".nv-controlsWrap").selectAll("*").remove();Y.attr("transform","translate("+d.left+","+d.top+")"),_&&X.select(".nv-y.nv-axis").attr("transform","translate("+H+",0)");var $=f.filter(function(t){return t.tempDisabled});Y.select(".tempDisabled").remove(),$.length&&Y.append("text").attr("class","tempDisabled").attr("x",H/2).attr("y","-.71em").style("text-anchor","end").text($.map(function(t){return t.key}).join(", ")+" values cannot be calculated for this time period."),w&&(c.width(H).height(B).margin({left:d.left,top:d.top}).svgContainer(I).xScale(n),Y.select(".nv-interactive").call(c)),K.select(".nv-background").append("rect"),X.select(".nv-background rect").attr("width",H).attr("height",B),i.y(function(t){return t.display.y}).width(H).height(B).color(f.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!f[e].disabled&&!f[e].tempDisabled}));var Z=X.select(".nv-linesWrap").datum(f.filter(function(t){return!t.disabled&&!t.tempDisabled}));Z.call(i),f.forEach(function(t,e){t.seriesIndex=e});var Q=f.filter(function(t){return!t.disabled&&!!T(t)}),J=X.select(".nv-avgLinesWrap").selectAll("line").data(Q,function(t){return t.key}),tt=function(t){var e=o(T(t));return e<0?0:e>B?B:e};J.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(t,e){return i.color()(t,t.seriesIndex)}).attr("x1",0).attr("x2",H).attr("y1",tt).attr("y2",tt),J.style("stroke-opacity",function(t){var e=o(T(t));return e<0||e>B?0:1}).attr("x1",0).attr("x2",H).attr("y1",tt).attr("y2",tt),J.exit().remove();var et=Z.selectAll(".nv-indexLine").data([D]);et.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(W),et.attr("transform",function(t){return"translate("+R(t.i)+",0)"}).attr("height",B),y&&(a.scale(n)._ticks(r.utils.calcTicksX(H/70,f)).tickSize(-B,0),X.select(".nv-x.nv-axis").attr("transform","translate(0,"+o.range()[0]+")"),X.select(".nv-x.nv-axis").call(a)),b&&(u.scale(o)._ticks(r.utils.calcTicksY(B/36,f)).tickSize(-H,0),X.select(".nv-y.nv-axis").call(u)),X.select(".nv-background rect").on("click",function(){D.x=d3.mouse(this)[0],D.i=Math.round(R.invert(D.x)),k.index=D.i,A.stateChange(k),L()}),i.dispatch.on("elementClick",function(t){D.i=t.pointIndex,D.x=R(D.i),k.index=D.i,A.stateChange(k),L()}),l.dispatch.on("legendClick",function(e,n){e.disabled=!e.disabled,E=!e.disabled,k.rescaleY=E,A.stateChange(k),t.update()}),s.dispatch.on("stateChange",function(e){for(var n in e)k[n]=e[n];A.stateChange(k),t.update()}),c.dispatch.on("elementMousemove",function(e){i.clearHighlights();var n,o,s,l=[];if(f.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(a,u){o=r.interactiveBisect(a.values,e.pointXValue,t.x()),i.highlightPoint(u,o,!0);var c=a.values[o];"undefined"!=typeof c&&("undefined"==typeof n&&(n=c),"undefined"==typeof s&&(s=t.xScale()(t.x()(c,o))),l.push({key:a.key,value:t.y()(c,o),color:h(a,a.seriesIndex)}))}),l.length>2){var d=t.yScale().invert(e.mouseY),p=Math.abs(t.yScale().domain()[0]-t.yScale().domain()[1]),v=.03*p,g=r.nearestValueIndex(l.map(function(t){return t.value}),d,v);null!==g&&(l[g].highlight=!0)}var m=a.tickFormat()(t.x()(n,o),o);c.tooltip.valueFormatter(function(t,e){return u.tickFormat()(t)}).data({value:m,series:l})(),c.renderGuideLine(s)}),c.dispatch.on("elementMouseout",function(t){i.clearHighlights()}),A.on("changeState",function(e){"undefined"!=typeof e.disabled&&(f.forEach(function(t,n){t.disabled=e.disabled[n]}),k.disabled=e.disabled),"undefined"!=typeof e.index&&(D.i=e.index,D.x=R(D.i),k.index=e.index,et.data([D])),"undefined"!=typeof e.rescaleY&&(E=e.rescaleY),t.update()})}),N.renderEnd("cumulativeLineChart immediate"),t}function e(t,e){return L||(L=i.y()),e.map(function(e,n){if(!e.values)return e;var r=e.values[t];if(null==r)return e;var o=L(r,t);return o<-.95&&!P?(e.tempDisabled=!0,e):(e.tempDisabled=!1,e.values=e.values.map(function(t,e){return t.display={y:(L(t,e)-o)/(1+o)},t}),e)})}var n,o,i=r.models.line(),a=r.models.axis(),u=r.models.axis(),s=r.models.legend(),l=r.models.legend(),c=r.interactiveGuideline(),f=r.models.tooltip(),d={top:30,right:30,bottom:50,left:60},p=null,h=r.utils.defaultColor(),v=null,g=null,m=!0,y=!0,b=!0,_=!1,x=!0,w=!1,E=!0,C=i.id(),k=r.utils.state(),M=null,O=null,T=function(t){return t.average},A=d3.dispatch("stateChange","changeState","renderEnd"),S=250,P=!1;k.index=0,k.rescaleY=E,a.orient("bottom").tickPadding(7),u.orient(_?"right":"left"),f.valueFormatter(function(t,e){return u.tickFormat()(t,e)}).headerFormatter(function(t,e){return a.tickFormat()(t,e)}),l.updateState(!1);var R=d3.scale.linear(),D={i:0,x:0},N=r.utils.renderWatch(A,S),j=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),index:D.i,rescaleY:E}}},F=function(t){return function(e){void 0!==e.index&&(D.i=e.index),void 0!==e.rescaleY&&(E=e.rescaleY),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};i.dispatch.on("elementMouseover.tooltip",function(e){var n={x:t.x()(e.point),y:t.y()(e.point),color:e.point.color};e.point=n,f.data(e).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){f.hidden(!0)});var L=null;return t.dispatch=A,t.lines=i,t.legend=s,t.controls=l,t.xAxis=a,t.yAxis=u,t.interactiveLayer=c,t.state=k,t.tooltip=f,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return v},set:function(t){v=t}},height:{get:function(){return g},set:function(t){g=t}},rescaleY:{get:function(){return E},set:function(t){E=t}},showControls:{get:function(){return x},set:function(t){x=t}},showLegend:{get:function(){return m},set:function(t){m=t}},average:{get:function(){return T},set:function(t){T=t}},defaultState:{get:function(){return M},set:function(t){M=t}},noData:{get:function(){return O},set:function(t){O=t}},showXAxis:{get:function(){return y},set:function(t){y=t}},showYAxis:{get:function(){return b},set:function(t){b=t}},noErrorCheck:{get:function(){return P},set:function(t){P=t}},margin:{get:function(){return d},set:function(t){void 0!==t.top&&(d.top=t.top,p=t.top),d.right=void 0!==t.right?t.right:d.right,d.bottom=void 0!==t.bottom?t.bottom:d.bottom,d.left=void 0!==t.left?t.left:d.left}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t),s.color(h)}},useInteractiveGuideline:{get:function(){return w},set:function(e){w=e,e===!0&&(t.interactive(!1),t.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return _},set:function(t){_=t,u.orient(t?"right":"left")}},duration:{get:function(){return S},set:function(t){S=t,i.duration(S),a.duration(S),u.duration(S),N.reset(S)}}}),r.utils.inheritOptions(t,i),r.utils.initOptions(t),t},r.models.discreteBar=function(){"use strict";function t(d){return C.reset(),d.each(function(t){var d=c-l.left-l.right,E=f-l.top-l.bottom;e=d3.select(this),r.utils.initSVG(e),t.forEach(function(t,e){t.values.forEach(function(t){t.series=e})});var k=n&&o?[]:t.map(function(t){return t.values.map(function(t,e){return{x:v(t,e),y:g(t,e),y0:t.y0}})});p.domain(n||d3.merge(k).map(function(t){return t.x})).rangeBands(i||[0,d],.1),h.domain(o||d3.extent(d3.merge(k).map(function(t){return t.y}).concat(m))),b?h.range(a||[E-(h.domain()[0]<0?12:0),h.domain()[1]>0?12:0]):h.range(a||[E,0]),u=u||p,s=s||h.copy().range([h(0),h(0)]);var M=e.selectAll("g.nv-wrap.nv-discretebar").data([t]),O=M.enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar"),T=O.append("g");M.select("g");T.append("g").attr("class","nv-groups"),M.attr("transform","translate("+l.left+","+l.top+")");var A=M.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});A.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),A.exit().watchTransition(C,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),A.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}),A.watchTransition(C,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);var S=A.selectAll("g.nv-bar").data(function(t){return t.values});S.exit().remove();var P=S.enter().append("g").attr("transform",function(t,e,n){return"translate("+(p(v(t,e))+.05*p.rangeBand())+", "+h(0)+")"}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),x.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),x.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){x.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){var n=this;x.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:n}),d3.event.stopPropagation()}).on("dblclick",function(t,e){x.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()});P.append("rect").attr("height",0).attr("width",.9*p.rangeBand()/t.length),b?(P.append("text").attr("text-anchor","middle"),S.select("text").text(function(t,e){return _(g(t,e))}).watchTransition(C,"discreteBar: bars text").attr("x",.9*p.rangeBand()/2).attr("y",function(t,e){return g(t,e)<0?h(g(t,e))-h(0)+12:-4})):S.selectAll("text").remove(),S.attr("class",function(t,e){return g(t,e)<0?"nv-bar negative":"nv-bar positive"}).style("fill",function(t,e){return t.color||y(t,e)}).style("stroke",function(t,e){return t.color||y(t,e)}).select("rect").attr("class",w).watchTransition(C,"discreteBar: bars rect").attr("width",.9*p.rangeBand()/t.length),S.watchTransition(C,"discreteBar: bars").attr("transform",function(t,e){var n=p(v(t,e))+.05*p.rangeBand(),r=g(t,e)<0?h(0):h(0)-h(g(t,e))<1?h(0)-1:h(g(t,e));return"translate("+n+", "+r+")"}).select("rect").attr("height",function(t,e){return Math.max(Math.abs(h(g(t,e))-h(0)),1)}),u=p.copy(),s=h.copy()}),C.renderEnd("discreteBar immediate"),t}var e,n,o,i,a,u,s,l={top:0,right:0,bottom:0,left:0},c=960,f=500,d=Math.floor(1e4*Math.random()),p=d3.scale.ordinal(),h=d3.scale.linear(),v=function(t){return t.x},g=function(t){return t.y},m=[0],y=r.utils.defaultColor(),b=!1,_=d3.format(",.2f"),x=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),w="discreteBar",E=250,C=r.utils.renderWatch(x,E);return t.dispatch=x,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},forceY:{get:function(){return m},set:function(t){m=t}},showValues:{get:function(){return b},set:function(t){b=t}},x:{get:function(){return v},set:function(t){v=t}},y:{get:function(){return g},set:function(t){g=t}},xScale:{get:function(){return p},set:function(t){p=t}},yScale:{get:function(){return h},set:function(t){h=t}},xDomain:{get:function(){return n},set:function(t){n=t}},yDomain:{get:function(){return o},set:function(t){o=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},valueFormat:{get:function(){return _},set:function(t){_=t}},id:{get:function(){return d},set:function(t){d=t}},rectClass:{get:function(){return w},set:function(t){w=t}},margin:{get:function(){return l},set:function(t){l.top=void 0!==t.top?t.top:l.top,l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},color:{get:function(){return y},set:function(t){y=r.utils.getColor(t)}},duration:{get:function(){return E},set:function(t){E=t,C.reset(E)}}}),r.utils.initOptions(t),t},r.models.discreteBarChart=function(){"use strict";function t(s){return C.reset(),C.models(o),v&&C.models(i),g&&C.models(a),s.each(function(s){var p=d3.select(this);r.utils.initSVG(p);var x=r.utils.availableWidth(f,p,l),C=r.utils.availableHeight(d,p,l);if(t.update=function(){w.beforeUpdate(),p.transition().duration(E).call(t)},t.container=this,!(s&&s.length&&s.filter(function(t){return t.values.length}).length))return r.utils.noData(t,p),t;p.selectAll(".nv-noData").remove(),e=o.xScale(),n=o.yScale().clamp(!0);var k=p.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([s]),M=k.enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g"),O=M.append("defs"),T=k.select("g");M.append("g").attr("class","nv-x nv-axis"),M.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),M.append("g").attr("class","nv-barsWrap"),M.append("g").attr("class","nv-legendWrap"),T.attr("transform","translate("+l.left+","+l.top+")"),h?(u.width(x),T.select(".nv-legendWrap").datum(s).call(u),c||u.height()===l.top||(l.top=u.height(),C=r.utils.availableHeight(d,p,l)),k.select(".nv-legendWrap").attr("transform","translate(0,"+-l.top+")")):T.select(".nv-legendWrap").selectAll("*").remove(),m&&T.select(".nv-y.nv-axis").attr("transform","translate("+x+",0)"),o.width(x).height(C);var A=T.select(".nv-barsWrap").datum(s.filter(function(t){return!t.disabled}));if(A.transition().call(o),O.append("clipPath").attr("id","nv-x-label-clip-"+o.id()).append("rect"),T.select("#nv-x-label-clip-"+o.id()+" rect").attr("width",e.rangeBand()*(y?2:1)).attr("height",16).attr("x",-e.rangeBand()/(y?1:2)),v){i.scale(e)._ticks(r.utils.calcTicksX(x/100,s)).tickSize(-C,0),T.select(".nv-x.nv-axis").attr("transform","translate(0,"+(n.range()[0]+(o.showValues()&&n.domain()[0]<0?16:0))+")"),T.select(".nv-x.nv-axis").call(i);var S=T.select(".nv-x.nv-axis").selectAll("g");y&&S.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"}),_&&S.selectAll(".tick text").attr("transform","rotate("+_+" 0,0)").style("text-anchor",_>0?"start":"end"),b&&T.selectAll(".tick text").call(r.utils.wrapTicks,t.xAxis.rangeBand())}g&&(a.scale(n)._ticks(r.utils.calcTicksY(C/36,s)).tickSize(-x,0),T.select(".nv-y.nv-axis").call(a)),T.select(".nv-zeroLine line").attr("x1",0).attr("x2",m?-x:x).attr("y1",n(0)).attr("y2",n(0))}),C.renderEnd("discreteBar chart immediate"),t}var e,n,o=r.models.discreteBar(),i=r.models.axis(),a=r.models.axis(),u=r.models.legend(),s=r.models.tooltip(),l={top:15,right:10,bottom:50,left:60},c=null,f=null,d=null,p=r.utils.getColor(),h=!1,v=!0,g=!0,m=!1,y=!1,b=!1,_=0,x=null,w=d3.dispatch("beforeUpdate","renderEnd"),E=250;i.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),a.orient(m?"right":"left").tickFormat(d3.format(",.1f")),s.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return a.tickFormat()(t,e)}).keyFormatter(function(t,e){return i.tickFormat()(t,e)});var C=r.utils.renderWatch(w,E);return o.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:t.x()(e.data),value:t.y()(e.data),color:e.color},s.data(e).hidden(!1)}),o.dispatch.on("elementMouseout.tooltip",function(t){s.hidden(!0)}),o.dispatch.on("elementMousemove.tooltip",function(t){s()}),t.dispatch=w,t.discretebar=o,t.legend=u,t.xAxis=i,t.yAxis=a,t.tooltip=s,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return d},set:function(t){d=t}},showLegend:{get:function(){return h},set:function(t){h=t}},staggerLabels:{get:function(){return y},set:function(t){y=t}},rotateLabels:{get:function(){return _},set:function(t){_=t}},wrapLabels:{get:function(){return b},set:function(t){b=!!t}},showXAxis:{get:function(){return v},set:function(t){v=t}},showYAxis:{get:function(){return g},set:function(t){g=t}},noData:{get:function(){return x},set:function(t){x=t}},margin:{get:function(){return l},set:function(t){void 0!==t.top&&(l.top=t.top,c=t.top),l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},duration:{get:function(){return E},set:function(t){E=t,C.reset(E),o.duration(E),i.duration(E),a.duration(E)}},color:{get:function(){return p},set:function(t){p=r.utils.getColor(t),o.color(p),u.color(p)}},rightAlignYAxis:{get:function(){return m},set:function(t){m=t,a.orient(t?"right":"left")}}}),r.utils.inheritOptions(t,o),r.utils.initOptions(t),t},r.models.distribution=function(){"use strict";function t(c){return d.reset(),c.each(function(t){var c=(o-("x"===a?n.left+n.right:n.top+n.bottom),"x"==a?"y":"x"),f=d3.select(this);r.utils.initSVG(f),e=e||l;var p=f.selectAll("g.nv-distribution").data([t]),h=p.enter().append("g").attr("class","nvd3 nv-distribution"),v=(h.append("g"),p.select("g"));p.attr("transform","translate("+n.left+","+n.top+")");var g=v.selectAll("g.nv-dist").data(function(t){return t},function(t){return t.key});g.enter().append("g"),g.attr("class",function(t,e){return"nv-dist nv-series-"+e}).style("stroke",function(t,e){return s(t,e)});var m=g.selectAll("line.nv-dist"+a).data(function(t){return t.values});m.enter().append("line").attr(a+"1",function(t,n){return e(u(t,n))}).attr(a+"2",function(t,n){return e(u(t,n))}),d.transition(g.exit().selectAll("line.nv-dist"+a),"dist exit").attr(a+"1",function(t,e){return l(u(t,e))}).attr(a+"2",function(t,e){return l(u(t,e))}).style("stroke-opacity",0).remove(),m.attr("class",function(t,e){return"nv-dist"+a+" nv-dist"+a+"-"+e}).attr(c+"1",0).attr(c+"2",i),d.transition(m,"dist").attr(a+"1",function(t,e){return l(u(t,e))}).attr(a+"2",function(t,e){return l(u(t,e))}),e=l.copy()}),d.renderEnd("distribution immediate"),t}var e,n={top:0,right:0,bottom:0,left:0},o=400,i=8,a="x",u=function(t){return t[a]},s=r.utils.defaultColor(),l=d3.scale.linear(),c=250,f=d3.dispatch("renderEnd"),d=r.utils.renderWatch(f,c);return t.options=r.utils.optionsFunc.bind(t),t.dispatch=f,t.margin=function(e){return arguments.length?(n.top="undefined"!=typeof e.top?e.top:n.top,n.right="undefined"!=typeof e.right?e.right:n.right,n.bottom="undefined"!=typeof e.bottom?e.bottom:n.bottom,n.left="undefined"!=typeof e.left?e.left:n.left,t):n},t.width=function(e){return arguments.length?(o=e,t):o},t.axis=function(e){return arguments.length?(a=e,t):a},t.size=function(e){return arguments.length?(i=e,t):i},t.getData=function(e){return arguments.length?(u=d3.functor(e),t):u},t.scale=function(e){return arguments.length?(l=e,t):l},t.color=function(e){return arguments.length?(s=r.utils.getColor(e),t):s},t.duration=function(e){return arguments.length?(c=e,d.reset(c),t):c},t},r.models.focus=function(t){"use strict";function e(_){return b.reset(),b.models(t),d&&b.models(i),p&&b.models(a),_.each(function(b){function _(t){var e=+("e"==t),n=e?1:-1,r=k/3;return"M"+.5*n+","+r+"A6,6 0 0 "+e+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8); -}function x(){u.empty()||u.extent(v),S.data([u.empty()?n.domain():v]).each(function(t,e){var r=n(t[0])-n.range()[0],o=C-n(t[1]);d3.select(this).select(".left").attr("width",r<0?0:r),d3.select(this).select(".right").attr("x",n(t[1])).attr("width",o<0?0:o)})}function w(t){v=u.empty()?null:u.extent();var e=u.empty()?n.domain():u.extent();m.brush({extent:e,brush:u}),x(),t&&m.onBrush(e)}var E=d3.select(this);r.utils.initSVG(E);var C=r.utils.availableWidth(c,E,s),k=f-s.top-s.bottom;e.update=function(){0===g?E.call(e):E.transition().duration(g).call(e)},e.container=this,n=t.xScale(),o=t.yScale();var M=E.selectAll("g.nv-focus").data([b]),O=M.enter().append("g").attr("class","nvd3 nv-focus").append("g"),T=M.select("g");M.attr("transform","translate("+s.left+","+s.top+")"),O.append("g").attr("class","nv-background").append("rect"),O.append("g").attr("class","nv-x nv-axis"),O.append("g").attr("class","nv-y nv-axis"),O.append("g").attr("class","nv-contentWrap"),O.append("g").attr("class","nv-brushBackground"),O.append("g").attr("class","nv-x nv-brush"),h&&T.select(".nv-y.nv-axis").attr("transform","translate("+C+",0)"),T.select(".nv-background rect").attr("width",C).attr("height",k),t.width(C).height(k).color(b.map(function(t,e){return t.color||l(t,e)}).filter(function(t,e){return!b[e].disabled}));var A=T.select(".nv-contentWrap").datum(b.filter(function(t){return!t.disabled}));d3.transition(A).call(t),u.x(n).on("brush",function(){w(y)}),u.on("brushend",function(){y||m.onBrush(u.empty()?n.domain():u.extent())}),v&&u.extent(v);var S=T.select(".nv-brushBackground").selectAll("g").data([v||u.extent()]),P=S.enter().append("g");P.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",k),P.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",k);var R=T.select(".nv-x.nv-brush").call(u);R.selectAll("rect").attr("height",k),R.selectAll(".resize").append("path").attr("d",_),w(!0),T.select(".nv-background rect").attr("width",C).attr("height",k),d&&(i.scale(n)._ticks(r.utils.calcTicksX(C/100,b)).tickSize(-k,0),T.select(".nv-x.nv-axis").attr("transform","translate(0,"+o.range()[0]+")"),d3.transition(T.select(".nv-x.nv-axis")).call(i)),p&&(a.scale(o)._ticks(r.utils.calcTicksY(k/36,b)).tickSize(-C,0),d3.transition(T.select(".nv-y.nv-axis")).call(a)),T.select(".nv-x.nv-axis").attr("transform","translate(0,"+o.range()[0]+")")}),b.renderEnd("focus immediate"),e}var n,o,t=t||r.models.line(),i=r.models.axis(),a=r.models.axis(),u=d3.svg.brush(),s={top:10,right:0,bottom:30,left:0},l=r.utils.defaultColor(),c=null,f=70,d=!0,p=!1,h=!1,v=null,g=250,m=d3.dispatch("brush","onBrush","renderEnd"),y=!0;t.interactive(!1),t.pointActive(function(t){return!1});var b=r.utils.renderWatch(m,g);return e.dispatch=m,e.content=t,e.brush=u,e.xAxis=i,e.yAxis=a,e.options=r.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},showXAxis:{get:function(){return d},set:function(t){d=t}},showYAxis:{get:function(){return p},set:function(t){p=t}},brushExtent:{get:function(){return v},set:function(t){v=t}},syncBrushing:{get:function(){return y},set:function(t){y=t}},margin:{get:function(){return s},set:function(t){s.top=void 0!==t.top?t.top:s.top,s.right=void 0!==t.right?t.right:s.right,s.bottom=void 0!==t.bottom?t.bottom:s.bottom,s.left=void 0!==t.left?t.left:s.left}},duration:{get:function(){return g},set:function(e){g=e,b.reset(g),t.duration(g),i.duration(g),a.duration(g)}},color:{get:function(){return l},set:function(e){l=r.utils.getColor(e),t.color(l)}},interpolate:{get:function(){return t.interpolate()},set:function(e){t.interpolate(e)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(t){i.tickFormat(t)}},yTickFormat:{get:function(){return a.tickFormat()},set:function(t){a.tickFormat(t)}},x:{get:function(){return t.x()},set:function(e){t.x(e)}},y:{get:function(){return t.y()},set:function(e){t.y(e)}},rightAlignYAxis:{get:function(){return h},set:function(t){h=t,a.orient(h?"right":"left")}}}),r.utils.inheritOptions(e,t),r.utils.initOptions(e),e},r.models.forceDirectedGraph=function(){"use strict";function t(a){return _.reset(),a.each(function(a){i=d3.select(this),r.utils.initSVG(i);var l=r.utils.availableWidth(n,i,e),_=r.utils.availableHeight(o,i,e);if(i.attr("width",l).attr("height",_),!(a&&a.links&&a.nodes))return r.utils.noData(t,i),t;i.selectAll(".nv-noData").remove(),i.selectAll("*").remove();var x=new Set;a.nodes.forEach(function(t){var e=Object.keys(t);e.forEach(function(t){x.add(t)})});var w=d3.layout.force().nodes(a.nodes).links(a.links).size([l,_]).linkStrength(c).friction(f).linkDistance(d).charge(p).gravity(h).theta(v).alpha(g).start(),E=i.selectAll(".link").data(a.links).enter().append("line").attr("class","nv-force-link").style("stroke-width",function(t){return Math.sqrt(t.value)}),C=i.selectAll(".node").data(a.nodes).enter().append("g").attr("class","nv-force-node").call(w.drag);C.append("circle").attr("r",m).style("fill",function(t){return u(t)}).on("mouseover",function(t){i.select(".nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",t.py),i.select(".nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",t.px);var e=u(t);t.series=[],x.forEach(function(n){t.series.push({color:e,key:n,value:t[n]})}),s.data(t).hidden(!1)}).on("mouseout",function(t){s.hidden(!0)}),s.headerFormatter(function(t){return"Node"}),b(E),y(C),w.on("tick",function(){E.attr("x1",function(t){return t.source.x}).attr("y1",function(t){return t.source.y}).attr("x2",function(t){return t.target.x}).attr("y2",function(t){return t.target.y}),C.attr("transform",function(t){return"translate("+t.x+", "+t.y+")"})})}),t}var e={top:2,right:0,bottom:2,left:0},n=400,o=32,i=null,a=d3.dispatch("renderEnd"),u=r.utils.getColor(["#000"]),s=r.models.tooltip(),l=null,c=.1,f=.9,d=30,p=-120,h=.1,v=.8,g=.1,m=5,y=function(t){},b=function(t){},_=r.utils.renderWatch(a);return t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return n},set:function(t){n=t}},height:{get:function(){return o},set:function(t){o=t}},linkStrength:{get:function(){return c},set:function(t){c=t}},friction:{get:function(){return f},set:function(t){f=t}},linkDist:{get:function(){return d},set:function(t){d=t}},charge:{get:function(){return p},set:function(t){p=t}},gravity:{get:function(){return h},set:function(t){h=t}},theta:{get:function(){return v},set:function(t){v=t}},alpha:{get:function(){return g},set:function(t){g=t}},radius:{get:function(){return m},set:function(t){m=t}},x:{get:function(){return getX},set:function(t){getX=d3.functor(t)}},y:{get:function(){return getY},set:function(t){getY=d3.functor(t)}},margin:{get:function(){return e},set:function(t){e.top=void 0!==t.top?t.top:e.top,e.right=void 0!==t.right?t.right:e.right,e.bottom=void 0!==t.bottom?t.bottom:e.bottom,e.left=void 0!==t.left?t.left:e.left}},color:{get:function(){return u},set:function(t){u=r.utils.getColor(t)}},noData:{get:function(){return l},set:function(t){l=t}},nodeExtras:{get:function(){return y},set:function(t){y=t}},linkExtras:{get:function(){return b},set:function(t){b=t}}}),t.dispatch=a,t.tooltip=s,r.utils.initOptions(t),t},r.models.furiousLegend=function(){"use strict";function t(m){function y(t,e){return"furious"!=g?"#000":h?t.disengaged?u(t,e):"#fff":h?void 0:t.disabled?u(t,e):"#fff"}function b(t,e){return h&&"furious"==g?t.disengaged?"#fff":u(t,e):t.disabled?"#fff":u(t,e)}return m.each(function(t){var m=n-e.left-e.right,_=d3.select(this);r.utils.initSVG(_);var x=_.selectAll("g.nv-legend").data([t]),w=(x.enter().append("g").attr("class","nvd3 nv-legend").append("g"),x.select("g"));x.attr("transform","translate("+e.left+","+e.top+")");var E,C=w.selectAll(".nv-series").data(function(t){return"furious"!=g?t:t.filter(function(t){return!!h||!t.disengaged})}),k=C.enter().append("g").attr("class","nv-series");if("classic"==g)k.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),E=C.select("circle");else if("furious"==g){k.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),E=C.select("rect"),k.append("g").attr("class","nv-check-box").property("innerHTML",'').attr("transform","translate(-10,-8)scale(0.5)");var M=C.select(".nv-check-box");M.each(function(t,e){d3.select(this).selectAll("path").attr("stroke",y(t,e))})}k.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var O=C.select("text.nv-legend-text");C.on("mouseover",function(t,e){v.legendMouseover(t,e)}).on("mouseout",function(t,e){v.legendMouseout(t,e)}).on("click",function(t,e){v.legendClick(t,e);var n=C.data();if(d){if("classic"==g)p?(n.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,n.every(function(t){return t.disabled})&&n.forEach(function(t){t.disabled=!1}));else if("furious"==g)if(h)t.disengaged=!t.disengaged,t.userDisabled=void 0==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled;else if(!h){t.disabled=!t.disabled,t.userDisabled=t.disabled;var r=n.filter(function(t){return!t.disengaged});r.every(function(t){return t.userDisabled})&&n.forEach(function(t){t.disabled=t.userDisabled=!1})}v.stateChange({disabled:n.map(function(t){return!!t.disabled}),disengaged:n.map(function(t){return!!t.disengaged})})}}).on("dblclick",function(t,e){if(("furious"!=g||!h)&&(v.legendDblclick(t,e),d)){var n=C.data();n.forEach(function(t){t.disabled=!0,"furious"==g&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==g&&(t.userDisabled=t.disabled),v.stateChange({disabled:n.map(function(t){return!!t.disabled})})}}),C.classed("nv-disabled",function(t){return t.userDisabled}),C.exit().remove(),O.attr("fill",y).text(function(t){return a(i(t))});var T;switch(g){case"furious":T=23;break;case"classic":T=20}if(l){var A=[];C.each(function(t,e){var n;if(a(i(t))&&a(i(t)).length>s){var o=a(i(t)).substring(0,s);n=d3.select(this).select("text").text(o+"..."),d3.select(this).append("svg:title").text(a(i(t)))}else n=d3.select(this).select("text");var u;try{if(u=n.node().getComputedTextLength(),u<=0)throw Error()}catch(t){u=r.utils.calcApproxTextWidth(n)}A.push(u+c)});for(var S=0,P=0,R=[];Pm&&S>1;){R=[],S--;for(var D=0;D(R[D%S]||0)&&(R[D%S]=A[D]);P=R.reduce(function(t,e,n,r){return t+e})}for(var N=[],j=0,F=0;jB&&(B=H),"translate("+L+","+I+")"}),w.attr("transform","translate("+(n-e.right-B)+","+e.top+")"),o=e.top+e.bottom+I+15}"furious"==g&&E.attr("width",function(t,e){return O[0][e].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),E.style("fill",b).style("stroke",function(t,e){return t.color||u(t,e)})}),t}var e={top:5,right:0,bottom:5,left:0},n=400,o=20,i=function(t){return t.key},a=function(t){return t},u=r.utils.getColor(),s=20,l=!0,c=28,f=!0,d=!0,p=!1,h=!1,v=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),g="classic";return t.dispatch=v,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return n},set:function(t){n=t}},height:{get:function(){return o},set:function(t){o=t}},key:{get:function(){return i},set:function(t){i=t}},keyFormatter:{get:function(){return a},set:function(t){a=t}},align:{get:function(){return l},set:function(t){l=t}},rightAlign:{get:function(){return f},set:function(t){f=t}},maxKeyLength:{get:function(){return s},set:function(t){s=t}},padding:{get:function(){return c},set:function(t){c=t}},updateState:{get:function(){return d},set:function(t){d=t}},radioButtonMode:{get:function(){return p},set:function(t){p=t}},expanded:{get:function(){return h},set:function(t){h=t}},vers:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return e},set:function(t){e.top=void 0!==t.top?t.top:e.top,e.right=void 0!==t.right?t.right:e.right,e.bottom=void 0!==t.bottom?t.bottom:e.bottom,e.left=void 0!==t.left?t.left:e.left}},color:{get:function(){return u},set:function(t){u=r.utils.getColor(t)}}}),r.utils.initOptions(t),t},r.models.historicalBar=function(){"use strict";function t(E){return E.each(function(t){w.reset(),c=d3.select(this);var E=r.utils.availableWidth(u,c,a),C=r.utils.availableHeight(s,c,a);r.utils.initSVG(c),f.domain(e||d3.extent(t[0].values.map(p).concat(v))),m?f.range(o||[.5*E/t[0].values.length,E*(t[0].values.length-.5)/t[0].values.length]):f.range(o||[0,E]),d.domain(n||d3.extent(t[0].values.map(h).concat(g))).range(i||[C,0]),f.domain()[0]===f.domain()[1]&&(f.domain()[0]?f.domain([f.domain()[0]-.01*f.domain()[0],f.domain()[1]+.01*f.domain()[1]]):f.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var k=c.selectAll("g.nv-wrap.nv-historicalBar-"+l).data([t[0].values]),M=k.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+l),O=M.append("defs"),T=M.append("g"),A=k.select("g");T.append("g").attr("class","nv-bars"),k.attr("transform","translate("+a.left+","+a.top+")"),c.on("click",function(t,e){_.chartClick({data:t,index:e,pos:d3.event,id:l})}),O.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect"),k.select("#nv-chart-clip-path-"+l+" rect").attr("width",E).attr("height",C),A.attr("clip-path",y?"url(#nv-chart-clip-path-"+l+")":"");var S=k.select(".nv-bars").selectAll(".nv-bar").data(function(t){return t},function(t,e){return p(t,e)});S.exit().remove(),S.enter().append("rect").attr("x",0).attr("y",function(t,e){return r.utils.NaNtoZero(d(Math.max(0,h(t,e))))}).attr("height",function(t,e){return r.utils.NaNtoZero(Math.abs(d(h(t,e))-d(0)))}).attr("transform",function(e,n){return"translate("+(f(p(e,n))-E/t[0].values.length*.45)+",0)"}).on("mouseover",function(t,e){x&&(d3.select(this).classed("hover",!0),_.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")}))}).on("mouseout",function(t,e){x&&(d3.select(this).classed("hover",!1),_.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")}))}).on("mousemove",function(t,e){x&&_.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){if(x){var n=this;_.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:n}),d3.event.stopPropagation()}}).on("dblclick",function(t,e){x&&(_.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation())}),S.attr("fill",function(t,e){return b(t,e)}).attr("class",function(t,e,n){return(h(t,e)<0?"nv-bar negative":"nv-bar positive")+" nv-bar-"+n+"-"+e}).watchTransition(w,"bars").attr("transform",function(e,n){return"translate("+(f(p(e,n))-E/t[0].values.length*.45)+",0)"}).attr("width",E/t[0].values.length*.9),S.watchTransition(w,"bars").attr("y",function(t,e){var n=h(t,e)<0?d(0):d(0)-d(h(t,e))<1?d(0)-1:d(h(t,e));return r.utils.NaNtoZero(n)}).attr("height",function(t,e){return r.utils.NaNtoZero(Math.max(Math.abs(d(h(t,e))-d(0)),1))})}),w.renderEnd("historicalBar immediate"),t}var e,n,o,i,a={top:0,right:0,bottom:0,left:0},u=null,s=null,l=Math.floor(1e4*Math.random()),c=null,f=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},h=function(t){return t.y},v=[],g=[0],m=!1,y=!0,b=r.utils.defaultColor(),_=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),x=!0,w=r.utils.renderWatch(_,0);return t.highlightPoint=function(t,e){c.select(".nv-bars .nv-bar-0-"+t).classed("hover",e)},t.clearHighlights=function(){c.select(".nv-bars .nv-bar.hover").classed("hover",!1)},t.dispatch=_,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return s},set:function(t){s=t}},forceX:{get:function(){return v},set:function(t){v=t}},forceY:{get:function(){return g},set:function(t){g=t}},padData:{get:function(){return m},set:function(t){m=t}},x:{get:function(){return p},set:function(t){p=t}},y:{get:function(){return h},set:function(t){h=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return o},set:function(t){o=t}},yRange:{get:function(){return i},set:function(t){i=t}},clipEdge:{get:function(){return y},set:function(t){y=t}},id:{get:function(){return l},set:function(t){l=t}},interactive:{get:function(){return x},set:function(t){x=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}},color:{get:function(){return b},set:function(t){b=r.utils.getColor(t)}}}),r.utils.initOptions(t),t},r.models.historicalBarChart=function(t){"use strict";function e(t){return t.each(function(c){M.reset(),M.models(i),m&&M.models(a),y&&M.models(u);var E=d3.select(this);r.utils.initSVG(E);var O=r.utils.availableWidth(h,E,f),T=r.utils.availableHeight(v,E,f);if(e.update=function(){E.transition().duration(k).call(e)},e.container=this,x.disabled=c.map(function(t){return!!t.disabled}),!w){var A;w={};for(A in x)x[A]instanceof Array?w[A]=x[A].slice(0):w[A]=x[A]}if(!(c&&c.length&&c.filter(function(t){return t.values.length}).length))return r.utils.noData(e,E),e;E.selectAll(".nv-noData").remove(),n=i.xScale(),o=i.yScale();var S=E.selectAll("g.nv-wrap.nv-historicalBarChart").data([c]),P=S.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart").append("g"),R=S.select("g");P.append("g").attr("class","nv-x nv-axis"),P.append("g").attr("class","nv-y nv-axis"),P.append("g").attr("class","nv-barsWrap"),P.append("g").attr("class","nv-legendWrap"),P.append("g").attr("class","nv-interactive"),g?(s.width(O),R.select(".nv-legendWrap").datum(c).call(s),d||s.height()===f.top||(f.top=s.height(),T=r.utils.availableHeight(v,E,f)),S.select(".nv-legendWrap").attr("transform","translate(0,"+-f.top+")")):R.select(".nv-legendWrap").selectAll("*").remove(),S.attr("transform","translate("+f.left+","+f.top+")"),b&&R.select(".nv-y.nv-axis").attr("transform","translate("+O+",0)"),_&&(l.width(O).height(T).margin({left:f.left,top:f.top}).svgContainer(E).xScale(n),S.select(".nv-interactive").call(l)),i.width(O).height(T).color(c.map(function(t,e){return t.color||p(t,e)}).filter(function(t,e){return!c[e].disabled}));var D=R.select(".nv-barsWrap").datum(c.filter(function(t){return!t.disabled}));D.transition().call(i),m&&(a.scale(n)._ticks(r.utils.calcTicksX(O/100,c)).tickSize(-T,0),R.select(".nv-x.nv-axis").attr("transform","translate(0,"+o.range()[0]+")"),R.select(".nv-x.nv-axis").transition().call(a)),y&&(u.scale(o)._ticks(r.utils.calcTicksY(T/36,c)).tickSize(-O,0),R.select(".nv-y.nv-axis").transition().call(u)),l.dispatch.on("elementMousemove",function(t){i.clearHighlights();var n,o,s,f=[];c.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(a,u){o=r.interactiveBisect(a.values,t.pointXValue,e.x()),i.highlightPoint(o,!0);var l=a.values[o];void 0!==l&&(void 0===n&&(n=l),void 0===s&&(s=e.xScale()(e.x()(l,o))),f.push({key:a.key,value:e.y()(l,o),color:p(a,a.seriesIndex),data:a.values[o]}))});var d=a.tickFormat()(e.x()(n,o));l.tooltip.valueFormatter(function(t,e){return u.tickFormat()(t)}).data({value:d,index:o,series:f})(),l.renderGuideLine(s)}),l.dispatch.on("elementMouseout",function(t){C.tooltipHide(),i.clearHighlights()}),s.dispatch.on("legendClick",function(n,r){n.disabled=!n.disabled,c.filter(function(t){return!t.disabled}).length||c.map(function(t){return t.disabled=!1,S.selectAll(".nv-series").classed("disabled",!1),t}),x.disabled=c.map(function(t){return!!t.disabled}),C.stateChange(x),t.transition().call(e)}),s.dispatch.on("legendDblclick",function(t){c.forEach(function(t){t.disabled=!0}),t.disabled=!1,x.disabled=c.map(function(t){return!!t.disabled}),C.stateChange(x),e.update()}),C.on("changeState",function(t){"undefined"!=typeof t.disabled&&(c.forEach(function(e,n){e.disabled=t.disabled[n]}),x.disabled=t.disabled),e.update()})}),M.renderEnd("historicalBarChart immediate"),e}var n,o,i=t||r.models.historicalBar(),a=r.models.axis(),u=r.models.axis(),s=r.models.legend(),l=r.interactiveGuideline(),c=r.models.tooltip(),f={top:30,right:90,bottom:50,left:90},d=null,p=r.utils.defaultColor(),h=null,v=null,g=!1,m=!0,y=!0,b=!1,_=!1,x={},w=null,E=null,C=d3.dispatch("tooltipHide","stateChange","changeState","renderEnd"),k=250;a.orient("bottom").tickPadding(7),u.orient(b?"right":"left"),c.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return u.tickFormat()(t,e)}).headerFormatter(function(t,e){return a.tickFormat()(t,e)});var M=r.utils.renderWatch(C,0);return i.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:e.x()(t.data),value:e.y()(t.data),color:t.color},c.data(t).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){c.hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(t){c()}),e.dispatch=C,e.bars=i,e.legend=s,e.xAxis=a,e.yAxis=u,e.interactiveLayer=l,e.tooltip=c,e.options=r.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return h},set:function(t){h=t}},height:{get:function(){return v},set:function(t){v=t}},showLegend:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return m},set:function(t){m=t}},showYAxis:{get:function(){return y},set:function(t){y=t}},defaultState:{get:function(){return w},set:function(t){w=t}},noData:{get:function(){return E},set:function(t){E=t}},margin:{get:function(){return f},set:function(t){void 0!==t.top&&(f.top=t.top,d=t.top),f.right=void 0!==t.right?t.right:f.right,f.bottom=void 0!==t.bottom?t.bottom:f.bottom,f.left=void 0!==t.left?t.left:f.left}},color:{get:function(){return p},set:function(t){p=r.utils.getColor(t),s.color(p),i.color(p)}},duration:{get:function(){return k},set:function(t){k=t,M.reset(k),u.duration(k),a.duration(k)}},rightAlignYAxis:{get:function(){return b},set:function(t){b=t,u.orient(t?"right":"left")}},useInteractiveGuideline:{get:function(){return _},set:function(t){_=t,t===!0&&e.interactive(!1)}}}),r.utils.inheritOptions(e,i),r.utils.initOptions(e),e},r.models.ohlcBarChart=function(){var t=r.models.historicalBarChart(r.models.ohlcBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(e){var n=e.series[0].data,r=n.open'+e.value+"
open:"+t.yAxis.tickFormat()(n.open)+"
close:"+t.yAxis.tickFormat()(n.close)+"
high"+t.yAxis.tickFormat()(n.high)+"
low:"+t.yAxis.tickFormat()(n.low)+"
"}),t},r.models.candlestickBarChart=function(){var t=r.models.historicalBarChart(r.models.candlestickBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(e){var n=e.series[0].data,r=n.open'+e.value+"
open:"+t.yAxis.tickFormat()(n.open)+"
close:"+t.yAxis.tickFormat()(n.close)+"
high"+t.yAxis.tickFormat()(n.high)+"
low:"+t.yAxis.tickFormat()(n.low)+"
"}),t},r.models.legend=function(){"use strict";function t(m){function y(t,e){return"furious"!=g?"#000":h?t.disengaged?"#000":"#fff":h?void 0:(t.color||(t.color=u(t,e)),t.disabled?t.color:"#fff")}function b(t,e){return h&&"furious"==g&&t.disengaged?"#eee":t.color||u(t,e)}function _(t,e){return h&&"furious"==g?1:t.disabled?0:1}return m.each(function(t){var u=n-e.left-e.right,m=d3.select(this);r.utils.initSVG(m);var x=m.selectAll("g.nv-legend").data([t]),w=x.enter().append("g").attr("class","nvd3 nv-legend").append("g"),E=x.select("g");f?x.attr("transform","translate("+-e.right+","+e.top+")"):x.attr("transform","translate("+e.left+","+e.top+")");var C,k,M=E.selectAll(".nv-series").data(function(t){return"furious"!=g?t:t.filter(function(t){return!!h||!t.disengaged})}),O=M.enter().append("g").attr("class","nv-series");switch(g){case"furious":k=23;break;case"classic":k=20}if("classic"==g)O.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),C=M.select(".nv-legend-symbol");else if("furious"==g){O.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),C=M.select(".nv-legend-symbol"),O.append("g").attr("class","nv-check-box").property("innerHTML",'').attr("transform","translate(-10,-8)scale(0.5)");var T=M.select(".nv-check-box");T.each(function(t,e){d3.select(this).selectAll("path").attr("stroke",y(t,e))})}O.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var A=M.select("text.nv-legend-text");M.on("mouseover",function(t,e){v.legendMouseover(t,e)}).on("mouseout",function(t,e){v.legendMouseout(t,e)}).on("click",function(t,e){v.legendClick(t,e);var n=M.data();if(d){if("classic"==g)p?(n.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,n.every(function(t){return t.disabled})&&n.forEach(function(t){t.disabled=!1}));else if("furious"==g)if(h)t.disengaged=!t.disengaged,t.userDisabled=void 0==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled;else if(!h){t.disabled=!t.disabled,t.userDisabled=t.disabled;var r=n.filter(function(t){return!t.disengaged});r.every(function(t){return t.userDisabled})&&n.forEach(function(t){t.disabled=t.userDisabled=!1})}v.stateChange({disabled:n.map(function(t){return!!t.disabled}),disengaged:n.map(function(t){return!!t.disengaged})})}}).on("dblclick",function(t,e){if(("furious"!=g||!h)&&(v.legendDblclick(t,e),d)){var n=M.data();n.forEach(function(t){t.disabled=!0,"furious"==g&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==g&&(t.userDisabled=t.disabled),v.stateChange({disabled:n.map(function(t){return!!t.disabled})})}}),M.classed("nv-disabled",function(t){return t.userDisabled}),M.exit().remove(),A.attr("fill",y).text(function(t){return a(i(t))});var S=0;if(l){var P=[];M.each(function(t,e){var n;if(a(i(t))&&a(i(t)).length>s){var o=a(i(t)).substring(0,s);n=d3.select(this).select("text").text(o+"..."),d3.select(this).append("svg:title").text(a(i(t)))}else n=d3.select(this).select("text");var u;try{if(u=n.node().getComputedTextLength(),u<=0)throw Error()}catch(t){u=r.utils.calcApproxTextWidth(n)}P.push(u+c)});var R=0,D=[];for(S=0;Su&&R>1;){D=[],R--;for(var N=0;N(D[N%R]||0)&&(D[N%R]=P[N]);S=D.reduce(function(t,e,n,r){return t+e})}for(var j=[],F=0,L=0;FU&&(U=B),S0?y:0),M.attr("clip-path",v?"url(#nv-edge-clip-"+o.id()+")":""),O.attr("clip-path",v?"url(#nv-edge-clip-"+o.id()+")":"");var T=w.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});T.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",function(t){return t.strokeWidth||l}).style("fill-opacity",1e-6),T.exit().remove(),T.attr("class",function(t,e){return(t.classed||"")+" nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return c(t,e)}).style("stroke",function(t,e){return c(t,e)}),T.watchTransition(x,"line: groups").style("stroke-opacity",1).style("fill-opacity",function(t){return t.fillOpacity||.5});var A=T.selectAll("path.nv-area").data(function(t){return h(t)?[t]:[]});A.enter().append("path").attr("class","nv-area").attr("d",function(t){return d3.svg.area().interpolate(g).defined(p).x(function(t,e){return r.utils.NaNtoZero(b(f(t,e)))}).y0(function(t,e){return r.utils.NaNtoZero(_(d(t,e)))}).y1(function(t,e){return _(n.domain()[0]<=0?n.domain()[1]>=0?0:n.domain()[1]:n.domain()[0])}).apply(this,[t.values])}),T.exit().selectAll("path.nv-area").remove(),A.watchTransition(x,"line: areaPaths").attr("d",function(t){ -return d3.svg.area().interpolate(g).defined(p).x(function(t,n){return r.utils.NaNtoZero(e(f(t,n)))}).y0(function(t,e){return r.utils.NaNtoZero(n(d(t,e)))}).y1(function(t,e){return n(n.domain()[0]<=0?n.domain()[1]>=0?0:n.domain()[1]:n.domain()[0])}).apply(this,[t.values])});var S=T.selectAll("path.nv-line").data(function(t){return[t.values]});S.enter().append("path").attr("class","nv-line").attr("d",d3.svg.line().interpolate(g).defined(p).x(function(t,e){return r.utils.NaNtoZero(b(f(t,e)))}).y(function(t,e){return r.utils.NaNtoZero(_(d(t,e)))})),S.watchTransition(x,"line: linePaths").attr("d",d3.svg.line().interpolate(g).defined(p).x(function(t,n){return r.utils.NaNtoZero(e(f(t,n)))}).y(function(t,e){return r.utils.NaNtoZero(n(d(t,e)))})),b=e.copy(),_=n.copy()}),x.renderEnd("line immediate"),t}var e,n,o=r.models.scatter(),i={top:0,right:0,bottom:0,left:0},a=960,u=500,s=null,l=1.5,c=r.utils.defaultColor(),f=function(t){return t.x},d=function(t){return t.y},p=function(t,e){return!isNaN(d(t,e))&&null!==d(t,e)},h=function(t){return t.area},v=!1,g="linear",m=250,y=d3.dispatch("elementClick","elementMouseover","elementMouseout","renderEnd");o.pointSize(16).pointDomain([16,256]);var b,_,x=r.utils.renderWatch(y,m);return t.dispatch=y,t.scatter=o,o.dispatch.on("elementClick",function(){y.elementClick.apply(this,arguments)}),o.dispatch.on("elementMouseover",function(){y.elementMouseover.apply(this,arguments)}),o.dispatch.on("elementMouseout",function(){y.elementMouseout.apply(this,arguments)}),t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return a},set:function(t){a=t}},height:{get:function(){return u},set:function(t){u=t}},defined:{get:function(){return p},set:function(t){p=t}},interpolate:{get:function(){return g},set:function(t){g=t}},clipEdge:{get:function(){return v},set:function(t){v=t}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},duration:{get:function(){return m},set:function(t){m=t,x.reset(m),o.duration(m)}},isArea:{get:function(){return h},set:function(t){h=d3.functor(t)}},x:{get:function(){return f},set:function(t){f=t,o.x(t)}},y:{get:function(){return d},set:function(t){d=t,o.y(t)}},color:{get:function(){return c},set:function(t){c=r.utils.getColor(t),o.color(c)}}}),r.utils.inheritOptions(t,o),r.utils.initOptions(t),t},r.models.lineChart=function(){"use strict";function t(l){return T.reset(),T.models(o),y&&T.models(i),b&&T.models(a),l.each(function(l){function k(){y&&I.select(".nv-focus .nv-x.nv-axis").transition().duration(O).call(i)}function T(){b&&I.select(".nv-focus .nv-y.nv-axis").transition().duration(O).call(a)}function P(t){var e=I.select(".nv-focus .nv-linesWrap").datum(l.filter(function(t){return!t.disabled}).map(function(e,n){return{key:e.key,area:e.area,classed:e.classed,values:e.values.filter(function(e,n){return o.x()(e,n)>=t[0]&&o.x()(e,n)<=t[1]}),disableTooltip:e.disableTooltip}}));e.transition().duration(O).call(o),k(),T()}var R=d3.select(this);r.utils.initSVG(R);var D=r.utils.availableWidth(h,R,f),N=r.utils.availableHeight(v,R,f)-(w?c.height():0);if(t.update=function(){0===O?R.call(t):R.transition().duration(O).call(t)},t.container=this,E.setter(S(l),t.update).getter(A(l)).update(),E.disabled=l.map(function(t){return!!t.disabled}),!C){var j;C={};for(j in E)E[j]instanceof Array?C[j]=E[j].slice(0):C[j]=E[j]}if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return r.utils.noData(t,R),t;R.selectAll(".nv-noData").remove(),c.dispatch.on("onBrush",function(t){P(t)}),e=o.xScale(),n=o.yScale();var F=R.selectAll("g.nv-wrap.nv-lineChart").data([l]),L=F.enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart").append("g"),I=F.select("g");L.append("g").attr("class","nv-legendWrap");var H=L.append("g").attr("class","nv-focus");H.append("g").attr("class","nv-background").append("rect"),H.append("g").attr("class","nv-x nv-axis"),H.append("g").attr("class","nv-y nv-axis"),H.append("g").attr("class","nv-linesWrap"),H.append("g").attr("class","nv-interactive");L.append("g").attr("class","nv-focusWrap");g?(u.width(D),I.select(".nv-legendWrap").datum(l).call(u),"bottom"===m?F.select(".nv-legendWrap").attr("transform","translate(0,"+N+")"):"top"===m&&(d||u.height()===f.top||(f.top=u.height(),N=r.utils.availableHeight(v,R,f)-(w?c.height():0)),F.select(".nv-legendWrap").attr("transform","translate(0,"+-f.top+")"))):I.select(".nv-legendWrap").selectAll("*").remove(),F.attr("transform","translate("+f.left+","+f.top+")"),_&&I.select(".nv-y.nv-axis").attr("transform","translate("+D+",0)"),x&&(s.width(D).height(N).margin({left:f.left,top:f.top}).svgContainer(R).xScale(e),F.select(".nv-interactive").call(s)),I.select(".nv-focus .nv-background rect").attr("width",D).attr("height",N),o.width(D).height(N).color(l.map(function(t,e){return t.color||p(t,e)}).filter(function(t,e){return!l[e].disabled}));var B=I.select(".nv-linesWrap").datum(l.filter(function(t){return!t.disabled}));if(y&&i.scale(e)._ticks(r.utils.calcTicksX(D/100,l)).tickSize(-N,0),b&&a.scale(n)._ticks(r.utils.calcTicksY(N/36,l)).tickSize(-D,0),I.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+N+")"),w){c.width(D),I.select(".nv-focusWrap").attr("transform","translate(0,"+(N+f.bottom+c.margin().top)+")").datum(l.filter(function(t){return!t.disabled})).call(c);var U=c.brush.empty()?c.xDomain():c.brush.extent();null!==U&&P(U)}else B.call(o),k(),T();u.dispatch.on("stateChange",function(e){for(var n in e)E[n]=e[n];M.stateChange(E),t.update()}),s.dispatch.on("elementMousemove",function(n){o.clearHighlights();var i,u,f,d=[];if(l.filter(function(t,e){return t.seriesIndex=e,!t.disabled&&!t.disableTooltip}).forEach(function(a,s){var l=w?c.brush.empty()?c.xScale().domain():c.brush.extent():e.domain(),h=a.values.filter(function(t,e){return l[0]<=l[1]?o.x()(t,e)>=l[0]&&o.x()(t,e)<=l[1]:o.x()(t,e)>=l[1]&&o.x()(t,e)<=l[0]});u=r.interactiveBisect(h,n.pointXValue,o.x());var v=h[u],g=t.y()(v,u);null!==g&&o.highlightPoint(s,u,!0),void 0!==v&&(void 0===i&&(i=v),void 0===f&&(f=t.xScale()(t.x()(v,u))),d.push({key:a.key,value:g,color:p(a,a.seriesIndex),data:v}))}),d.length>2){var h=t.yScale().invert(n.mouseY),v=Math.abs(t.yScale().domain()[0]-t.yScale().domain()[1]),g=.03*v,m=r.nearestValueIndex(d.map(function(t){return t.value}),h,g);null!==m&&(d[m].highlight=!0)}var y=function(t,e){return null==t?"N/A":a.tickFormat()(t)};s.tooltip.valueFormatter(s.tooltip.valueFormatter()||y).data({value:t.x()(i,u),index:u,series:d})(),s.renderGuideLine(f)}),s.dispatch.on("elementClick",function(e){var n,i=[];l.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(o){var a=r.interactiveBisect(o.values,e.pointXValue,t.x()),u=o.values[a];if("undefined"!=typeof u){"undefined"==typeof n&&(n=t.xScale()(t.x()(u,a)));var s=t.yScale()(t.y()(u,a));i.push({point:u,pointIndex:a,pos:[n,s],seriesIndex:o.seriesIndex,series:o})}}),o.dispatch.elementClick(i)}),s.dispatch.on("elementMouseout",function(t){o.clearHighlights()}),M.on("changeState",function(e){"undefined"!=typeof e.disabled&&l.length===e.disabled.length&&(l.forEach(function(t,n){t.disabled=e.disabled[n]}),E.disabled=e.disabled),t.update()})}),T.renderEnd("lineChart immediate"),t}var e,n,o=r.models.line(),i=r.models.axis(),a=r.models.axis(),u=r.models.legend(),s=r.interactiveGuideline(),l=r.models.tooltip(),c=r.models.focus(r.models.line()),f={top:30,right:20,bottom:50,left:60},d=null,p=r.utils.defaultColor(),h=null,v=null,g=!0,m="top",y=!0,b=!0,_=!1,x=!1,w=!1,E=r.utils.state(),C=null,k=null,M=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd"),O=250;i.orient("bottom").tickPadding(7),a.orient(_?"right":"left"),o.clipEdge(!0).duration(0),l.valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),s.tooltip.valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)});var T=r.utils.renderWatch(M,O),A=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},S=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return o.dispatch.on("elementMouseover.tooltip",function(t){t.series.disableTooltip||l.data(t).hidden(!1)}),o.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)}),t.dispatch=M,t.lines=o,t.legend=u,t.focus=c,t.xAxis=i,t.x2Axis=c.xAxis,t.yAxis=a,t.y2Axis=c.yAxis,t.interactiveLayer=s,t.tooltip=l,t.state=E,t.dispatch=M,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return h},set:function(t){h=t}},height:{get:function(){return v},set:function(t){v=t}},showLegend:{get:function(){return g},set:function(t){g=t}},legendPosition:{get:function(){return m},set:function(t){m=t}},showXAxis:{get:function(){return y},set:function(t){y=t}},showYAxis:{get:function(){return b},set:function(t){b=t}},defaultState:{get:function(){return C},set:function(t){C=t}},noData:{get:function(){return k},set:function(t){k=t}},focusEnable:{get:function(){return w},set:function(t){w=t}},focusHeight:{get:function(){return c.height()},set:function(t){c.height(t)}},focusShowAxisX:{get:function(){return c.showXAxis()},set:function(t){c.showXAxis(t)}},focusShowAxisY:{get:function(){return c.showYAxis()},set:function(t){c.showYAxis(t)}},brushExtent:{get:function(){return c.brushExtent()},set:function(t){c.brushExtent(t)}},focusMargin:{get:function(){return c.margin},set:function(t){void 0!==t.top&&(f.top=t.top,d=t.top),c.margin.right=void 0!==t.right?t.right:c.margin.right,c.margin.bottom=void 0!==t.bottom?t.bottom:c.margin.bottom,c.margin.left=void 0!==t.left?t.left:c.margin.left}},margin:{get:function(){return f},set:function(t){f.top=void 0!==t.top?t.top:f.top,f.right=void 0!==t.right?t.right:f.right,f.bottom=void 0!==t.bottom?t.bottom:f.bottom,f.left=void 0!==t.left?t.left:f.left}},duration:{get:function(){return O},set:function(t){O=t,T.reset(O),o.duration(O),c.duration(O),i.duration(O),a.duration(O)}},color:{get:function(){return p},set:function(t){p=r.utils.getColor(t),u.color(p),o.color(p),c.color(p)}},interpolate:{get:function(){return o.interpolate()},set:function(t){o.interpolate(t),c.interpolate(t)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(t){i.tickFormat(t),c.xTickFormat(t)}},yTickFormat:{get:function(){return a.tickFormat()},set:function(t){a.tickFormat(t),c.yTickFormat(t)}},x:{get:function(){return o.x()},set:function(t){o.x(t),c.x(t)}},y:{get:function(){return o.y()},set:function(t){o.y(t),c.y(t)}},rightAlignYAxis:{get:function(){return _},set:function(t){_=t,a.orient(_?"right":"left")}},useInteractiveGuideline:{get:function(){return x},set:function(t){x=t,x&&(o.interactive(!1),o.useVoronoi(!1))}}}),r.utils.inheritOptions(t,o),r.utils.initOptions(t),t},r.models.lineWithFocusChart=function(){return r.models.lineChart().margin({bottom:30}).focusEnable(!0)},r.models.linePlusBarChart=function(){"use strict";function t(x){return x.each(function(x){function F(t){var e=+("e"==t),n=e?1:-1,r=Q/3;return"M"+.5*n+","+r+"A6,6 0 0 "+e+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}function V(){_.empty()||_.extent(j),pt.data([_.empty()?o.domain():j]).each(function(t,e){var n=o(t[0])-o.range()[0],r=o.range()[1]-o(t[1]);d3.select(this).select(".left").attr("width",n<0?0:n),d3.select(this).select(".right").attr("x",o(t[1])).attr("width",r<0?0:r)})}function q(){j=_.empty()?null:_.extent(),e=_.empty()?o.domain():_.extent(),L.brush({extent:e,brush:_}),V(),f.width($).height(Z).color(x.map(function(t,e){return t.color||A(t,e)}).filter(function(t,e){return!x[e].disabled&&x[e].bar})),l.width($).height(Z).color(x.map(function(t,e){return t.color||A(t,e)}).filter(function(t,e){return!x[e].disabled&&!x[e].bar}));var t=at.select(".nv-focus .nv-barsWrap").datum(tt.length?tt.map(function(t,n){return{key:t.key,values:t.values.filter(function(t,n){return f.x()(t,n)>=e[0]&&f.x()(t,n)<=e[1]})}}):[{values:[]}]),u=at.select(".nv-focus .nv-linesWrap").datum(X(et)?[{values:[]}]:et.filter(function(t){return!t.disabled}).map(function(t,n){return{area:t.area,fillOpacity:t.fillOpacity,strokeWidth:t.strokeWidth,key:t.key,values:t.values.filter(function(t,n){return l.x()(t,n)>=e[0]&&l.x()(t,n)<=e[1]})}}));n=tt.length&&!z?f.xScale():l.xScale(),p.scale(n)._ticks(r.utils.calcTicksX($/100,x)).tickSize(-Z,0),p.domain([Math.ceil(e[0]),Math.floor(e[1])]),at.select(".nv-x.nv-axis").transition().duration(I).call(p),t.transition().duration(I).call(f),u.transition().duration(I).call(l),at.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),v.scale(i)._ticks(r.utils.calcTicksY(Z/36,x)).tickSize(-$,0),g.scale(a)._ticks(r.utils.calcTicksY(Z/36,x)),z?g.tickSize(et.length?0:-$,0):g.tickSize(tt.length?0:-$,0);var s=tt.length?1:0,c=et.length&&!X(et)?1:0,d=z?c:s,h=z?s:c;at.select(".nv-focus .nv-y1.nv-axis").style("opacity",d),at.select(".nv-focus .nv-y2.nv-axis").style("opacity",h).attr("transform","translate("+n.range()[1]+",0)"),at.select(".nv-focus .nv-y1.nv-axis").transition().duration(I).call(v),at.select(".nv-focus .nv-y2.nv-axis").transition().duration(I).call(g)}var G=d3.select(this);r.utils.initSVG(G);var $=r.utils.availableWidth(k,G,w),Z=r.utils.availableHeight(M,G,w)-(P?N:0),Q=N-C.top-C.bottom;if(t.update=function(){G.transition().duration(I).call(t)},t.container=this,H.setter(K(x),t.update).getter(Y(x)).update(),H.disabled=x.map(function(t){return!!t.disabled}),!B){var J;B={};for(J in H)H[J]instanceof Array?B[J]=H[J].slice(0):B[J]=H[J]}if(!(x&&x.length&&x.filter(function(t){return t.values.length}).length))return r.utils.noData(t,G),t;G.selectAll(".nv-noData").remove();var tt=x.filter(function(t){return!t.disabled&&t.bar}),et=x.filter(function(t){return!t.bar});n=tt.length&&!z?f.xScale():l.xScale(),o=h.scale(),i=z?l.yScale():f.yScale(),a=z?f.yScale():l.yScale(),u=z?c.yScale():d.yScale(),s=z?d.yScale():c.yScale();var nt=x.filter(function(t){return!t.disabled&&(z?!t.bar:t.bar)}).map(function(t){return t.values.map(function(t,e){return{x:O(t,e),y:T(t,e)}})}),rt=x.filter(function(t){return!t.disabled&&(z?t.bar:!t.bar)}).map(function(t){return t.values.map(function(t,e){return{x:O(t,e),y:T(t,e)}})});n.range([0,$]),o.domain(d3.extent(d3.merge(nt.concat(rt)),function(t){return t.x})).range([0,$]);var ot=G.selectAll("g.nv-wrap.nv-linePlusBar").data([x]),it=ot.enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar").append("g"),at=ot.select("g");it.append("g").attr("class","nv-legendWrap");var ut=it.append("g").attr("class","nv-focus");ut.append("g").attr("class","nv-x nv-axis"),ut.append("g").attr("class","nv-y1 nv-axis"),ut.append("g").attr("class","nv-y2 nv-axis"),ut.append("g").attr("class","nv-barsWrap"),ut.append("g").attr("class","nv-linesWrap");var st=it.append("g").attr("class","nv-context");if(st.append("g").attr("class","nv-x nv-axis"),st.append("g").attr("class","nv-y1 nv-axis"),st.append("g").attr("class","nv-y2 nv-axis"),st.append("g").attr("class","nv-barsWrap"),st.append("g").attr("class","nv-linesWrap"),st.append("g").attr("class","nv-brushBackground"),st.append("g").attr("class","nv-x nv-brush"),S){var lt=b.align()?$/2:$,ct=b.align()?lt:0;b.width(lt),at.select(".nv-legendWrap").datum(x.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,z?t.key=t.originalKey+(t.bar?W:U):t.key=t.originalKey+(t.bar?U:W),t})).call(b),E||b.height()===w.top||(w.top=b.height(),Z=r.utils.availableHeight(M,G,w)-N),at.select(".nv-legendWrap").attr("transform","translate("+ct+","+-w.top+")")}else at.select(".nv-legendWrap").selectAll("*").remove();ot.attr("transform","translate("+w.left+","+w.top+")"),at.select(".nv-context").style("display",P?"initial":"none"),d.width($).height(Q).color(x.map(function(t,e){return t.color||A(t,e)}).filter(function(t,e){return!x[e].disabled&&x[e].bar})),c.width($).height(Q).color(x.map(function(t,e){return t.color||A(t,e)}).filter(function(t,e){return!x[e].disabled&&!x[e].bar}));var ft=at.select(".nv-context .nv-barsWrap").datum(tt.length?tt:[{values:[]}]),dt=at.select(".nv-context .nv-linesWrap").datum(X(et)?[{values:[]}]:et.filter(function(t){return!t.disabled}));at.select(".nv-context").attr("transform","translate(0,"+(Z+w.bottom+C.top)+")"),ft.transition().call(d),dt.transition().call(c),D&&(h._ticks(r.utils.calcTicksX($/100,x)).tickSize(-Q,0),at.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+u.range()[0]+")"),at.select(".nv-context .nv-x.nv-axis").transition().call(h)),R&&(m.scale(u)._ticks(Q/36).tickSize(-$,0),y.scale(s)._ticks(Q/36).tickSize(tt.length?0:-$,0),at.select(".nv-context .nv-y3.nv-axis").style("opacity",tt.length?1:0).attr("transform","translate(0,"+o.range()[0]+")"),at.select(".nv-context .nv-y2.nv-axis").style("opacity",et.length?1:0).attr("transform","translate("+o.range()[1]+",0)"),at.select(".nv-context .nv-y1.nv-axis").transition().call(m),at.select(".nv-context .nv-y2.nv-axis").transition().call(y)),_.x(o).on("brush",q),j&&_.extent(j);var pt=at.select(".nv-brushBackground").selectAll("g").data([j||_.extent()]),ht=pt.enter().append("g");ht.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",Q),ht.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",Q);var vt=at.select(".nv-x.nv-brush").call(_);vt.selectAll("rect").attr("height",Q),vt.selectAll(".resize").append("path").attr("d",F),b.dispatch.on("stateChange",function(e){for(var n in e)H[n]=e[n];L.stateChange(H),t.update()}),L.on("changeState",function(e){"undefined"!=typeof e.disabled&&(x.forEach(function(t,n){t.disabled=e.disabled[n]}),H.disabled=e.disabled),t.update()}),q()}),t}var e,n,o,i,a,u,s,l=r.models.line(),c=r.models.line(),f=r.models.historicalBar(),d=r.models.historicalBar(),p=r.models.axis(),h=r.models.axis(),v=r.models.axis(),g=r.models.axis(),m=r.models.axis(),y=r.models.axis(),b=r.models.legend(),_=d3.svg.brush(),x=r.models.tooltip(),w={top:30,right:30,bottom:30,left:60},E=null,C={top:0,right:30,bottom:20,left:60},k=null,M=null,O=function(t){return t.x},T=function(t){return t.y},A=r.utils.defaultColor(),S=!0,P=!0,R=!1,D=!0,N=50,j=null,F=null,L=d3.dispatch("brush","stateChange","changeState"),I=0,H=r.utils.state(),B=null,U=" (left axis)",W=" (right axis)",z=!1;l.clipEdge(!0),c.interactive(!1),c.pointActive(function(t){return!1}),p.orient("bottom").tickPadding(5),v.orient("left"),g.orient("right"),h.orient("bottom").tickPadding(5),m.orient("left"),y.orient("right"),x.headerEnabled(!0).headerFormatter(function(t,e){return p.tickFormat()(t,e)});var V=function(){return z?{main:g,focus:y}:{main:v,focus:m}},q=function(){return z?{main:v,focus:m}:{main:g,focus:y}},Y=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},K=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}},X=function(t){return t.every(function(t){return t.disabled})};return l.dispatch.on("elementMouseover.tooltip",function(t){x.duration(100).valueFormatter(function(t,e){return q().main.tickFormat()(t,e)}).data(t).hidden(!1)}),l.dispatch.on("elementMouseout.tooltip",function(t){x.hidden(!0)}),f.dispatch.on("elementMouseover.tooltip",function(e){e.value=t.x()(e.data),e.series={value:t.y()(e.data),color:e.color},x.duration(0).valueFormatter(function(t,e){return V().main.tickFormat()(t,e)}).data(e).hidden(!1)}),f.dispatch.on("elementMouseout.tooltip",function(t){x.hidden(!0)}),f.dispatch.on("elementMousemove.tooltip",function(t){x()}),t.dispatch=L,t.legend=b,t.lines=l,t.lines2=c,t.bars=f,t.bars2=d,t.xAxis=p,t.x2Axis=h,t.y1Axis=v,t.y2Axis=g,t.y3Axis=m,t.y4Axis=y,t.tooltip=x,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return k},set:function(t){k=t}},height:{get:function(){return M},set:function(t){M=t}},showLegend:{get:function(){return S},set:function(t){S=t}},brushExtent:{get:function(){return j},set:function(t){j=t}},noData:{get:function(){return F},set:function(t){F=t}},focusEnable:{get:function(){return P},set:function(t){P=t}},focusHeight:{get:function(){return N},set:function(t){N=t}},focusShowAxisX:{get:function(){return D},set:function(t){D=t}},focusShowAxisY:{get:function(){return R},set:function(t){R=t}},legendLeftAxisHint:{get:function(){return U},set:function(t){U=t}},legendRightAxisHint:{get:function(){return W},set:function(t){W=t}},margin:{get:function(){return w},set:function(t){void 0!==t.top&&(w.top=t.top,E=t.top),w.right=void 0!==t.right?t.right:w.right,w.bottom=void 0!==t.bottom?t.bottom:w.bottom,w.left=void 0!==t.left?t.left:w.left}},focusMargin:{get:function(){return C},set:function(t){C.top=void 0!==t.top?t.top:C.top,C.right=void 0!==t.right?t.right:C.right,C.bottom=void 0!==t.bottom?t.bottom:C.bottom,C.left=void 0!==t.left?t.left:C.left}},duration:{get:function(){return I},set:function(t){I=t}},color:{get:function(){return A},set:function(t){A=r.utils.getColor(t),b.color(A)}},x:{get:function(){return O},set:function(t){O=t,l.x(t),c.x(t),f.x(t),d.x(t)}},y:{get:function(){return T},set:function(t){T=t,l.y(t),c.y(t),f.y(t),d.y(t)}},switchYAxisOrder:{get:function(){return z},set:function(t){if(z!==t){var e=v;v=g,g=e;var n=m;m=y,y=n}z=t,v.orient("left"),g.orient("right"),m.orient("left"),y.orient("right")}}}),r.utils.inheritOptions(t,l),r.utils.initOptions(t),t},r.models.multiBar=function(){"use strict";function t(P){return A.reset(),P.each(function(t){var P=c-l.left-l.right,R=f-l.top-l.bottom;v=d3.select(this),r.utils.initSVG(v);var D=0;if(E&&t.length&&(E=[{values:t[0].values.map(function(t){return{x:t.x,y:0,series:t.series,size:.01}})}]),_){var N=d3.layout.stack().offset(x).values(function(t){return t.values}).y(m)(!t.length&&E?E:t);N.forEach(function(e,n){e.nonStackable?(t[n].nonStackableSeries=D++,N[n]=t[n]):n>0&&N[n-1].nonStackable&&N[n].values.map(function(t,e){t.y0-=N[n-1].values[e].y,t.y1=t.y0+t.y})}),t=N}t.forEach(function(t,e){t.values.forEach(function(n){n.series=e,n.key=t.key})}),_&&t.length>0&&t[0].values.map(function(e,n){var r=0,o=0;t.map(function(e,i){if(!t[i].nonStackable){var a=e.values[n];a.size=Math.abs(a.y),a.y<0?(a.y1=o,o-=a.size):(a.y1=a.size+r,r+=a.size)}})});var j=n&&o?[]:t.map(function(t,e){return t.values.map(function(t,n){return{x:g(t,n),y:m(t,n),y0:t.y0,y1:t.y1,idx:e}})});d.domain(n||d3.merge(j).map(function(t){return t.x})).rangeBands(i||[0,P],M),p.domain(o||d3.extent(d3.merge(j).map(function(e){var n=e.y;return _&&!t[e.idx].nonStackable&&(n=e.y>0?e.y1:e.y1+e.y),n}).concat(y))).range(a||[R,0]),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]-.01*d.domain()[0],d.domain()[1]+.01*d.domain()[1]]):d.domain([-1,1])),p.domain()[0]===p.domain()[1]&&(p.domain()[0]?p.domain([p.domain()[0]+.01*p.domain()[0],p.domain()[1]-.01*p.domain()[1]]):p.domain([-1,1])),u=u||d,s=s||p;var F=v.selectAll("g.nv-wrap.nv-multibar").data([t]),L=F.enter().append("g").attr("class","nvd3 nv-wrap nv-multibar"),I=L.append("defs"),H=L.append("g"),B=F.select("g");H.append("g").attr("class","nv-groups"),F.attr("transform","translate("+l.left+","+l.top+")"),I.append("clipPath").attr("id","nv-edge-clip-"+h).append("rect"),F.select("#nv-edge-clip-"+h+" rect").attr("width",P).attr("height",R),B.attr("clip-path",b?"url(#nv-edge-clip-"+h+")":"");var U=F.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});U.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);var W=A.transition(U.exit().selectAll("rect.nv-bar"),"multibarExit",Math.min(100,k)).attr("y",function(e,n,r){var o=s(0)||0;return _&&t[e.series]&&!t[e.series].nonStackable&&(o=s(e.y0)),o}).attr("height",0).remove();W.delay&&W.delay(function(t,e){var n=e*(k/(S+1))-e;return n}),U.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return w(t,e)}).style("stroke",function(t,e){return w(t,e)}),U.style("stroke-opacity",1).style("fill-opacity",O);var z=U.selectAll("rect.nv-bar").data(function(e){return E&&!t.length?E.values:e.values});z.exit().remove();z.enter().append("rect").attr("class",function(t,e){return m(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("x",function(e,n,r){return _&&!t[r].nonStackable?0:r*d.rangeBand()/t.length}).attr("y",function(e,n,r){return s(_&&!t[r].nonStackable?e.y0:0)||0}).attr("height",0).attr("width",function(e,n,r){return d.rangeBand()/(_&&!t[r].nonStackable?1:t.length)}).attr("transform",function(t,e){return"translate("+d(g(t,e))+",0)"});z.style("fill",function(t,e,n){return w(t,n,e)}).style("stroke",function(t,e,n){return w(t,n,e)}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),T.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),T.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){T.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){var n=this;T.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:n}),d3.event.stopPropagation()}).on("dblclick",function(t,e){T.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),z.attr("class",function(t,e){return m(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("transform",function(t,e){return"translate("+d(g(t,e))+",0)"}),C&&(e||(e=t.map(function(){return!0})),z.style("fill",function(t,n,r){return d3.rgb(C(t,n)).darker(e.map(function(t,e){return e}).filter(function(t,n){return!e[n]})[r]).toString()}).style("stroke",function(t,n,r){return d3.rgb(C(t,n)).darker(e.map(function(t,e){return e}).filter(function(t,n){return!e[n]})[r]).toString()}));var V=z.watchTransition(A,"multibar",Math.min(250,k)).delay(function(e,n){return n*k/t[0].values.length});_?V.attr("y",function(e,n,r){var o=0;return o=t[r].nonStackable?m(e,n)<0?p(0):p(0)-p(m(e,n))<-1?p(0)-1:p(m(e,n))||0:p(e.y1)}).attr("height",function(e,n,r){return t[r].nonStackable?Math.max(Math.abs(p(m(e,n))-p(0)),0)||0:Math.max(Math.abs(p(e.y+e.y0)-p(e.y0)),0)}).attr("x",function(e,n,r){var o=0;return t[r].nonStackable&&(o=e.series*d.rangeBand()/t.length,t.length!==D&&(o=t[r].nonStackableSeries*d.rangeBand()/(2*D))),o}).attr("width",function(e,n,r){if(t[r].nonStackable){var o=d.rangeBand()/D;return t.length!==D&&(o=d.rangeBand()/(2*D)),o}return d.rangeBand()}):V.attr("x",function(e,n){return e.series*d.rangeBand()/t.length}).attr("width",d.rangeBand()/t.length).attr("y",function(t,e){return m(t,e)<0?p(0):p(0)-p(m(t,e))<1?p(0)-1:p(m(t,e))||0}).attr("height",function(t,e){return Math.max(Math.abs(p(m(t,e))-p(0)),1)||0}),u=d.copy(),s=p.copy(),t[0]&&t[0].values&&(S=t[0].values.length)}),A.renderEnd("multibar immediate"),t}var e,n,o,i,a,u,s,l={top:0,right:0,bottom:0,left:0},c=960,f=500,d=d3.scale.ordinal(),p=d3.scale.linear(),h=Math.floor(1e4*Math.random()),v=null,g=function(t){return t.x},m=function(t){return t.y},y=[0],b=!0,_=!1,x="zero",w=r.utils.defaultColor(),E=!1,C=null,k=500,M=.1,O=.75,T=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),A=r.utils.renderWatch(T,k),S=0;return t.dispatch=T,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},x:{get:function(){return g},set:function(t){g=t}},y:{get:function(){return m},set:function(t){m=t}},xScale:{get:function(){return d},set:function(t){d=t}},yScale:{get:function(){return p},set:function(t){p=t}},xDomain:{get:function(){return n},set:function(t){n=t}},yDomain:{get:function(){return o},set:function(t){o=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},forceY:{get:function(){return y},set:function(t){y=t}},stacked:{get:function(){return _},set:function(t){_=t}},stackOffset:{get:function(){return x},set:function(t){x=t}},clipEdge:{get:function(){return b},set:function(t){b=t}},disabled:{get:function(){return e},set:function(t){e=t}},id:{get:function(){return h},set:function(t){h=t}},hideable:{get:function(){return E},set:function(t){E=t}},groupSpacing:{get:function(){return M},set:function(t){M=t}},fillOpacity:{get:function(){return O},set:function(t){O=t}},margin:{get:function(){return l},set:function(t){l.top=void 0!==t.top?t.top:l.top,l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},duration:{get:function(){return k},set:function(t){k=t,A.reset(k)}},color:{get:function(){return w},set:function(t){w=r.utils.getColor(t)}},barColor:{get:function(){return C},set:function(t){C=t?r.utils.getColor(t):null}}}),r.utils.initOptions(t),t},r.models.multiBarChart=function(){"use strict";function t(T){return D.reset(),D.models(o),b&&D.models(i),_&&D.models(a),T.each(function(T){var D=d3.select(this);r.utils.initSVG(D);var L=r.utils.availableWidth(p,D,f),I=r.utils.availableHeight(h,D,f);if(t.update=function(){0===P?D.call(t):D.transition().duration(P).call(t)},t.container=this,M.setter(F(T),t.update).getter(j(T)).update(),M.disabled=T.map(function(t){return!!t.disabled}),!O){var H;O={};for(H in M)M[H]instanceof Array?O[H]=M[H].slice(0):O[H]=M[H]}if(!(T&&T.length&&T.filter(function(t){return t.values.length}).length))return r.utils.noData(t,D),t;D.selectAll(".nv-noData").remove(),e=o.xScale(),n=o.yScale();var B=D.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([T]),U=B.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g"),W=B.select("g");if(U.append("g").attr("class","nv-x nv-axis"),U.append("g").attr("class","nv-y nv-axis"),U.append("g").attr("class","nv-barsWrap"),U.append("g").attr("class","nv-legendWrap"),U.append("g").attr("class","nv-controlsWrap"),U.append("g").attr("class","nv-interactive"),y?(s.width(L-S()),W.select(".nv-legendWrap").datum(T).call(s),d||s.height()===f.top||(f.top=s.height(),I=r.utils.availableHeight(h,D,f)),W.select(".nv-legendWrap").attr("transform","translate("+S()+","+-f.top+")")):W.select(".nv-legendWrap").selectAll("*").remove(),g){var z=[{key:m.grouped||"Grouped",disabled:o.stacked()},{key:m.stacked||"Stacked",disabled:!o.stacked()}];l.width(S()).color(["#444","#444","#444"]),W.select(".nv-controlsWrap").datum(z).attr("transform","translate(0,"+-f.top+")").call(l)}else W.select(".nv-controlsWrap").selectAll("*").remove();B.attr("transform","translate("+f.left+","+f.top+")"),x&&W.select(".nv-y.nv-axis").attr("transform","translate("+L+",0)"),o.disabled(T.map(function(t){return t.disabled})).width(L).height(I).color(T.map(function(t,e){return t.color||v(t,e)}).filter(function(t,e){return!T[e].disabled}));var V=W.select(".nv-barsWrap").datum(T.filter(function(t){return!t.disabled}));if(V.call(o),b){i.scale(e)._ticks(r.utils.calcTicksX(L/100,T)).tickSize(-I,0),W.select(".nv-x.nv-axis").attr("transform","translate(0,"+n.range()[0]+")"),W.select(".nv-x.nv-axis").call(i);var q=W.select(".nv-x.nv-axis > g").selectAll("g");if(q.selectAll("line, text").style("opacity",1),E){var Y=function(t,e){return"translate("+t+","+e+")"},K=5,X=17;q.selectAll("text").attr("transform",function(t,e,n){return Y(0,n%2==0?K:X)});var G=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text")[0].length;W.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(t,e){return Y(0,0===e||G%2!==0?X:K)})}C&&W.selectAll(".tick text").call(r.utils.wrapTicks,t.xAxis.rangeBand()),w&&q.filter(function(t,e){return e%Math.ceil(T[0].values.length/(L/100))!==0}).selectAll("text, line").style("opacity",0),k&&q.selectAll(".tick text").attr("transform","rotate("+k+" 0,0)").style("text-anchor",k>0?"start":"end"),W.select(".nv-x.nv-axis").selectAll("g.nv-axisMaxMin text").style("opacity",1); -}_&&(a.scale(n)._ticks(r.utils.calcTicksY(I/36,T)).tickSize(-L,0),W.select(".nv-y.nv-axis").call(a)),R&&(u.width(L).height(I).margin({left:f.left,top:f.top}).svgContainer(D).xScale(e),B.select(".nv-interactive").call(u)),s.dispatch.on("stateChange",function(e){for(var n in e)M[n]=e[n];A.stateChange(M),t.update()}),l.dispatch.on("legendClick",function(e,n){if(e.disabled){switch(z=z.map(function(t){return t.disabled=!0,t}),e.disabled=!1,e.key){case"Grouped":case m.grouped:o.stacked(!1);break;case"Stacked":case m.stacked:o.stacked(!0)}M.stacked=o.stacked(),A.stateChange(M),t.update()}}),A.on("changeState",function(e){"undefined"!=typeof e.disabled&&(T.forEach(function(t,n){t.disabled=e.disabled[n]}),M.disabled=e.disabled),"undefined"!=typeof e.stacked&&(o.stacked(e.stacked),M.stacked=e.stacked,N=e.stacked),t.update()}),R?(u.dispatch.on("elementMousemove",function(n){if(void 0!=n.pointXValue){var r,o,i,a,s=[];T.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(u,l){o=e.domain().indexOf(n.pointXValue);var c=u.values[o];void 0!==c&&(a=c.x,void 0===r&&(r=c),void 0===i&&(i=n.mouseX),s.push({key:u.key,value:t.y()(c,o),color:v(u,u.seriesIndex),data:u.values[o]}))}),u.tooltip.data({value:a,index:o,series:s})(),u.renderGuideLine(i)}}),u.dispatch.on("elementMouseout",function(t){u.tooltip.hidden(!0)})):(o.dispatch.on("elementMouseover.tooltip",function(e){e.value=t.x()(e.data),e.series={key:e.data.key,value:t.y()(e.data),color:e.color},c.data(e).hidden(!1)}),o.dispatch.on("elementMouseout.tooltip",function(t){c.hidden(!0)}),o.dispatch.on("elementMousemove.tooltip",function(t){c()}))}),D.renderEnd("multibarchart immediate"),t}var e,n,o=r.models.multiBar(),i=r.models.axis(),a=r.models.axis(),u=r.interactiveGuideline(),s=r.models.legend(),l=r.models.legend(),c=r.models.tooltip(),f={top:30,right:20,bottom:50,left:60},d=null,p=null,h=null,v=r.utils.defaultColor(),g=!0,m={},y=!0,b=!0,_=!0,x=!1,w=!0,E=!1,C=!1,k=0,M=r.utils.state(),O=null,T=null,A=d3.dispatch("stateChange","changeState","renderEnd"),S=function(){return g?180:0},P=250,R=!1;M.stacked=!1,o.stacked(!1),i.orient("bottom").tickPadding(7).showMaxMin(!1).tickFormat(function(t){return t}),a.orient(x?"right":"left").tickFormat(d3.format(",.1f")),c.duration(0).valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),u.tooltip.valueFormatter(function(t,e){return null==t?"N/A":a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),u.tooltip.valueFormatter(function(t,e){return null==t?"N/A":a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),u.tooltip.duration(0).valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),l.updateState(!1);var D=r.utils.renderWatch(A),N=!1,j=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),stacked:N}}},F=function(t){return function(e){void 0!==e.stacked&&(N=e.stacked),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return t.dispatch=A,t.multibar=o,t.legend=s,t.controls=l,t.xAxis=i,t.yAxis=a,t.state=M,t.tooltip=c,t.interactiveLayer=u,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return h},set:function(t){h=t}},showLegend:{get:function(){return y},set:function(t){y=t}},showControls:{get:function(){return g},set:function(t){g=t}},controlLabels:{get:function(){return m},set:function(t){m=t}},showXAxis:{get:function(){return b},set:function(t){b=t}},showYAxis:{get:function(){return _},set:function(t){_=t}},defaultState:{get:function(){return O},set:function(t){O=t}},noData:{get:function(){return T},set:function(t){T=t}},reduceXTicks:{get:function(){return w},set:function(t){w=t}},rotateLabels:{get:function(){return k},set:function(t){k=t}},staggerLabels:{get:function(){return E},set:function(t){E=t}},wrapLabels:{get:function(){return C},set:function(t){C=!!t}},margin:{get:function(){return f},set:function(t){void 0!==t.top&&(f.top=t.top,d=t.top),f.right=void 0!==t.right?t.right:f.right,f.bottom=void 0!==t.bottom?t.bottom:f.bottom,f.left=void 0!==t.left?t.left:f.left}},duration:{get:function(){return P},set:function(t){P=t,o.duration(P),i.duration(P),a.duration(P),D.reset(P)}},color:{get:function(){return v},set:function(t){v=r.utils.getColor(t),s.color(v)}},rightAlignYAxis:{get:function(){return x},set:function(t){x=t,a.orient(x?"right":"left")}},useInteractiveGuideline:{get:function(){return R},set:function(t){R=t}},barColor:{get:function(){return o.barColor},set:function(t){o.barColor(t),s.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),r.utils.inheritOptions(t,o),r.utils.initOptions(t),t},r.models.multiBarHorizontal=function(){"use strict";function t(d){return P.reset(),d.each(function(t){var d=c-l.left-l.right,A=f-l.top-l.bottom;p=d3.select(this),r.utils.initSVG(p),w&&(t=d3.layout.stack().offset("zero").values(function(t){return t.values}).y(m)(t)),t.forEach(function(t,e){t.values.forEach(function(n){n.series=e,n.key=t.key})}),w&&t[0].values.map(function(e,n){var r=0,o=0;t.map(function(t){var e=t.values[n];e.size=Math.abs(e.y),e.y<0?(e.y1=o-e.size,o-=e.size):(e.y1=r,r+=e.size)})});var R=n&&o?[]:t.map(function(t){return t.values.map(function(t,e){return{x:g(t,e),y:m(t,e),y0:t.y0,y1:t.y1}})});h.domain(n||d3.merge(R).map(function(t){return t.x})).rangeBands(i||[0,A],M),v.domain(o||d3.extent(d3.merge(R).map(function(t){return w?t.y>0?t.y1+t.y:t.y1:t.y}).concat(b))),E&&!w?v.range(a||[v.domain()[0]<0?k:0,d-(v.domain()[1]>0?k:0)]):v.range(a||[0,d]),u=u||h,s=s||d3.scale.linear().domain(v.domain()).range([v(0),v(0)]);var D=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([t]),N=D.enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal"),j=(N.append("defs"),N.append("g"));D.select("g");j.append("g").attr("class","nv-groups"),D.attr("transform","translate("+l.left+","+l.top+")");var F=D.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});F.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),F.exit().watchTransition(P,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),F.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return _(t,e)}).style("stroke",function(t,e){return _(t,e)}),F.watchTransition(P,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",O);var L=F.selectAll("g.nv-bar").data(function(t){return t.values});L.exit().remove();var I=L.enter().append("g").attr("transform",function(e,n,r){return"translate("+s(w?e.y0:0)+","+(w?0:r*h.rangeBand()/t.length+h(g(e,n)))+")"});I.append("rect").attr("width",0).attr("height",h.rangeBand()/(w?1:t.length)),L.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),S.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),S.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){S.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){S.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){var n=this;S.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:n}),d3.event.stopPropagation()}).on("dblclick",function(t,e){S.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),y(t[0],0)&&(I.append("polyline"),L.select("polyline").attr("fill","none").attr("points",function(e,n){var r=y(e,n),o=.8*h.rangeBand()/(2*(w?1:t.length));r=r.length?r:[-Math.abs(r),Math.abs(r)],r=r.map(function(t){return v(t)-v(0)});var i=[[r[0],-o],[r[0],o],[r[0],0],[r[1],0],[r[1],-o],[r[1],o]];return i.map(function(t){return t.join(",")}).join(" ")}).attr("transform",function(e,n){var r=h.rangeBand()/(2*(w?1:t.length));return"translate("+(m(e,n)<0?0:v(m(e,n))-v(0))+", "+r+")"})),I.append("text"),E&&!w?(L.select("text").attr("text-anchor",function(t,e){return m(t,e)<0?"end":"start"}).attr("y",h.rangeBand()/(2*t.length)).attr("dy",".32em").text(function(t,e){var n=T(m(t,e)),r=y(t,e);return void 0===r?n:r.length?n+"+"+T(Math.abs(r[1]))+"-"+T(Math.abs(r[0])):n+"±"+T(Math.abs(r))}),L.watchTransition(P,"multibarhorizontal: bars").select("text").attr("x",function(t,e){return m(t,e)<0?-4:v(m(t,e))-v(0)+4})):L.selectAll("text").text(""),C&&!w?(I.append("text").classed("nv-bar-label",!0),L.select("text.nv-bar-label").attr("text-anchor",function(t,e){return m(t,e)<0?"start":"end"}).attr("y",h.rangeBand()/(2*t.length)).attr("dy",".32em").text(function(t,e){return g(t,e)}),L.watchTransition(P,"multibarhorizontal: bars").select("text.nv-bar-label").attr("x",function(t,e){return m(t,e)<0?v(0)-v(m(t,e))+4:-4})):L.selectAll("text.nv-bar-label").text(""),L.attr("class",function(t,e){return m(t,e)<0?"nv-bar negative":"nv-bar positive"}),x&&(e||(e=t.map(function(){return!0})),L.style("fill",function(t,n,r){return d3.rgb(x(t,n)).darker(e.map(function(t,e){return e}).filter(function(t,n){return!e[n]})[r]).toString()}).style("stroke",function(t,n,r){return d3.rgb(x(t,n)).darker(e.map(function(t,e){return e}).filter(function(t,n){return!e[n]})[r]).toString()})),w?L.watchTransition(P,"multibarhorizontal: bars").attr("transform",function(t,e){return"translate("+v(t.y1)+","+h(g(t,e))+")"}).select("rect").attr("width",function(t,e){return Math.abs(v(m(t,e)+t.y0)-v(t.y0))||0}).attr("height",h.rangeBand()):L.watchTransition(P,"multibarhorizontal: bars").attr("transform",function(e,n){return"translate("+v(m(e,n)<0?m(e,n):0)+","+(e.series*h.rangeBand()/t.length+h(g(e,n)))+")"}).select("rect").attr("height",h.rangeBand()/t.length).attr("width",function(t,e){return Math.max(Math.abs(v(m(t,e))-v(0)),1)||0}),u=h.copy(),s=v.copy()}),P.renderEnd("multibarHorizontal immediate"),t}var e,n,o,i,a,u,s,l={top:0,right:0,bottom:0,left:0},c=960,f=500,d=Math.floor(1e4*Math.random()),p=null,h=d3.scale.ordinal(),v=d3.scale.linear(),g=function(t){return t.x},m=function(t){return t.y},y=function(t){return t.yErr},b=[0],_=r.utils.defaultColor(),x=null,w=!1,E=!1,C=!1,k=60,M=.1,O=.75,T=d3.format(",.2f"),A=250,S=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),P=r.utils.renderWatch(S,A);return t.dispatch=S,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},x:{get:function(){return g},set:function(t){g=t}},y:{get:function(){return m},set:function(t){m=t}},yErr:{get:function(){return y},set:function(t){y=t}},xScale:{get:function(){return h},set:function(t){h=t}},yScale:{get:function(){return v},set:function(t){v=t}},xDomain:{get:function(){return n},set:function(t){n=t}},yDomain:{get:function(){return o},set:function(t){o=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},forceY:{get:function(){return b},set:function(t){b=t}},stacked:{get:function(){return w},set:function(t){w=t}},showValues:{get:function(){return E},set:function(t){E=t}},disabled:{get:function(){return e},set:function(t){e=t}},id:{get:function(){return d},set:function(t){d=t}},valueFormat:{get:function(){return T},set:function(t){T=t}},valuePadding:{get:function(){return k},set:function(t){k=t}},groupSpacing:{get:function(){return M},set:function(t){M=t}},fillOpacity:{get:function(){return O},set:function(t){O=t}},margin:{get:function(){return l},set:function(t){l.top=void 0!==t.top?t.top:l.top,l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},duration:{get:function(){return A},set:function(t){A=t,P.reset(A)}},color:{get:function(){return _},set:function(t){_=r.utils.getColor(t)}},barColor:{get:function(){return x},set:function(t){x=t?r.utils.getColor(t):null}}}),r.utils.initOptions(t),t},r.models.multiBarHorizontalChart=function(){"use strict";function t(l){return A.reset(),A.models(o),y&&A.models(i),b&&A.models(a),l.each(function(l){var E=d3.select(this);r.utils.initSVG(E);var A=r.utils.availableWidth(d,E,c),S=r.utils.availableHeight(p,E,c);if(t.update=function(){E.transition().duration(M).call(t)},t.container=this,_=o.stacked(),x.setter(T(l),t.update).getter(O(l)).update(),x.disabled=l.map(function(t){return!!t.disabled}),!w){var P;w={};for(P in x)x[P]instanceof Array?w[P]=x[P].slice(0):w[P]=x[P]}if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return r.utils.noData(t,E),t;E.selectAll(".nv-noData").remove(),e=o.xScale(),n=o.yScale().clamp(!0);var R=E.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([l]),D=R.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart").append("g"),N=R.select("g");if(D.append("g").attr("class","nv-x nv-axis"),D.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),D.append("g").attr("class","nv-barsWrap"),D.append("g").attr("class","nv-legendWrap"),D.append("g").attr("class","nv-controlsWrap"),m?(u.width(A-k()),N.select(".nv-legendWrap").datum(l).call(u),f||u.height()===c.top||(c.top=u.height(),S=r.utils.availableHeight(p,E,c)),N.select(".nv-legendWrap").attr("transform","translate("+k()+","+-c.top+")")):N.select(".nv-legendWrap").selectAll("*").remove(),v){var j=[{key:g.grouped||"Grouped",disabled:o.stacked()},{key:g.stacked||"Stacked",disabled:!o.stacked()}];s.width(k()).color(["#444","#444","#444"]),N.select(".nv-controlsWrap").datum(j).attr("transform","translate(0,"+-c.top+")").call(s)}else N.select(".nv-controlsWrap").selectAll("*").remove();R.attr("transform","translate("+c.left+","+c.top+")"),o.disabled(l.map(function(t){return t.disabled})).width(A).height(S).color(l.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!l[e].disabled}));var F=N.select(".nv-barsWrap").datum(l.filter(function(t){return!t.disabled}));if(F.transition().call(o),y){i.scale(e)._ticks(r.utils.calcTicksY(S/24,l)).tickSize(-A,0),N.select(".nv-x.nv-axis").call(i);var L=N.select(".nv-x.nv-axis").selectAll("g");L.selectAll("line, text")}b&&(a.scale(n)._ticks(r.utils.calcTicksX(A/100,l)).tickSize(-S,0),N.select(".nv-y.nv-axis").attr("transform","translate(0,"+S+")"),N.select(".nv-y.nv-axis").call(a)),N.select(".nv-zeroLine line").attr("x1",n(0)).attr("x2",n(0)).attr("y1",0).attr("y2",-S),u.dispatch.on("stateChange",function(e){for(var n in e)x[n]=e[n];C.stateChange(x),t.update()}),s.dispatch.on("legendClick",function(e,n){if(e.disabled){switch(j=j.map(function(t){return t.disabled=!0,t}),e.disabled=!1,e.key){case"Grouped":case g.grouped:o.stacked(!1);break;case"Stacked":case g.stacked:o.stacked(!0)}x.stacked=o.stacked(),C.stateChange(x),_=o.stacked(),t.update()}}),C.on("changeState",function(e){"undefined"!=typeof e.disabled&&(l.forEach(function(t,n){t.disabled=e.disabled[n]}),x.disabled=e.disabled),"undefined"!=typeof e.stacked&&(o.stacked(e.stacked),x.stacked=e.stacked,_=e.stacked),t.update()})}),A.renderEnd("multibar horizontal chart immediate"),t}var e,n,o=r.models.multiBarHorizontal(),i=r.models.axis(),a=r.models.axis(),u=r.models.legend().height(30),s=r.models.legend().height(30),l=r.models.tooltip(),c={top:30,right:20,bottom:50,left:60},f=null,d=null,p=null,h=r.utils.defaultColor(),v=!0,g={},m=!0,y=!0,b=!0,_=!1,x=r.utils.state(),w=null,E=null,C=d3.dispatch("stateChange","changeState","renderEnd"),k=function(){return v?180:0},M=250;x.stacked=!1,o.stacked(_),i.orient("left").tickPadding(5).showMaxMin(!1).tickFormat(function(t){return t}),a.orient("bottom").tickFormat(d3.format(",.1f")),l.duration(0).valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),s.updateState(!1);var O=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),stacked:_}}},T=function(t){return function(e){void 0!==e.stacked&&(_=e.stacked),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}},A=r.utils.renderWatch(C,M);return o.dispatch.on("elementMouseover.tooltip",function(e){e.value=t.x()(e.data),e.series={key:e.data.key,value:t.y()(e.data),color:e.color},l.data(e).hidden(!1)}),o.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)}),o.dispatch.on("elementMousemove.tooltip",function(t){l()}),t.dispatch=C,t.multibar=o,t.legend=u,t.controls=s,t.xAxis=i,t.yAxis=a,t.state=x,t.tooltip=l,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return d},set:function(t){d=t}},height:{get:function(){return p},set:function(t){p=t}},showLegend:{get:function(){return m},set:function(t){m=t}},showControls:{get:function(){return v},set:function(t){v=t}},controlLabels:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return y},set:function(t){y=t}},showYAxis:{get:function(){return b},set:function(t){b=t}},defaultState:{get:function(){return w},set:function(t){w=t}},noData:{get:function(){return E},set:function(t){E=t}},margin:{get:function(){return c},set:function(t){void 0!==t.top&&(c.top=t.top,f=t.top),c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return M},set:function(t){M=t,A.reset(M),o.duration(M),i.duration(M),a.duration(M)}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t),u.color(h)}},barColor:{get:function(){return o.barColor},set:function(t){o.barColor(t),u.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),r.utils.inheritOptions(t,o),r.utils.initOptions(t),t},r.models.multiChart=function(){"use strict";function t(c){return c.each(function(c){function h(t){var e=2===c[t.seriesIndex].yAxis?R:P;t.value=t.point.x,t.series={value:t.point.y,color:t.point.color,key:t.series.key},N.duration(0).headerFormatter(function(t,e){return S.tickFormat()(t,e)}).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}function y(t){var e=2===c[t.seriesIndex].yAxis?R:P;t.value=t.point.x,t.series={value:t.point.y,color:t.point.color,key:t.series.key},N.duration(100).headerFormatter(function(t,e){return S.tickFormat()(t,e)}).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}function j(t){var e=2===c[t.seriesIndex].yAxis?R:P;t.point.x=T.x()(t.point),t.point.y=T.y()(t.point),N.duration(0).headerFormatter(function(t,e){return S.tickFormat()(t,e)}).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}function L(t){var e=2===c[t.data.series].yAxis?R:P;t.value=M.x()(t.data),t.series={value:M.y()(t.data),color:t.color,key:t.data.key},N.duration(0).headerFormatter(function(t,e){return S.tickFormat()(t,e)}).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}function I(){for(var t=0,e=F.length;t=c[0]&&t.x()(e,n)<=c[1]});o=r.interactiveBisect(f,e.pointXValue,t.x());var d=f[o],p=t.y()(d,o);null!==p&&H(l,o,!0),void 0!==d&&(void 0===n&&(n=d),void 0===i&&(i=b(t.x()(d,o))),u.push({key:s.key,value:p,color:a(s,s.seriesIndex),data:d,yAxis:2==s.yAxis?R:P}))});var s=function(t,e){var n=u[e].yAxis;return null==t?"N/A":n.tickFormat()(t)};v.tooltip.headerFormatter(function(t,e){return S.tickFormat()(t,e)}).valueFormatter(v.tooltip.valueFormatter()||s).data({value:t.x()(n,o),index:o,series:u})(),v.renderGuideLine(i)}),v.dispatch.on("elementMouseout",function(t){I()})):(w.dispatch.on("elementMouseover.tooltip",h),E.dispatch.on("elementMouseover.tooltip",h),w.dispatch.on("elementMouseout.tooltip",function(t){N.hidden(!0)}),E.dispatch.on("elementMouseout.tooltip",function(t){N.hidden(!0)}),C.dispatch.on("elementMouseover.tooltip",y),k.dispatch.on("elementMouseover.tooltip",y),C.dispatch.on("elementMouseout.tooltip",function(t){N.hidden(!0)}),k.dispatch.on("elementMouseout.tooltip",function(t){N.hidden(!0)}),T.dispatch.on("elementMouseover.tooltip",j),A.dispatch.on("elementMouseover.tooltip",j),T.dispatch.on("elementMouseout.tooltip",function(t){N.hidden(!0)}),A.dispatch.on("elementMouseout.tooltip",function(t){N.hidden(!0)}),M.dispatch.on("elementMouseover.tooltip",L),O.dispatch.on("elementMouseover.tooltip",L),M.dispatch.on("elementMouseout.tooltip",function(t){N.hidden(!0)}),O.dispatch.on("elementMouseout.tooltip",function(t){N.hidden(!0)}),M.dispatch.on("elementMousemove.tooltip",function(t){N()}),O.dispatch.on("elementMousemove.tooltip",function(t){N()}))}),t}var e,n,o={top:30,right:20,bottom:50,left:60},i=null,a=r.utils.defaultColor(),u=null,s=null,l=!0,c=null,f=function(t){return t.x},d=function(t){return t.y},p="linear",h=!0,v=r.interactiveGuideline(),g=!1,m=" (right axis)",y=250,b=d3.scale.linear(),_=d3.scale.linear(),x=d3.scale.linear(),w=r.models.line().yScale(_).duration(y),E=r.models.line().yScale(x).duration(y),C=r.models.scatter().yScale(_).duration(y),k=r.models.scatter().yScale(x).duration(y),M=r.models.multiBar().stacked(!1).yScale(_).duration(y),O=r.models.multiBar().stacked(!1).yScale(x).duration(y),T=r.models.stackedArea().yScale(_).duration(y),A=r.models.stackedArea().yScale(x).duration(y),S=r.models.axis().scale(b).orient("bottom").tickPadding(5).duration(y),P=r.models.axis().scale(_).orient("left").duration(y),R=r.models.axis().scale(x).orient("right").duration(y),D=r.models.legend().height(30),N=r.models.tooltip(),j=d3.dispatch(),F=[w,E,C,k,M,O,T,A];return t.dispatch=j,t.legend=D,t.lines1=w,t.lines2=E,t.scatters1=C,t.scatters2=k,t.bars1=M,t.bars2=O,t.stack1=T,t.stack2=A,t.xAxis=S,t.yAxis1=P,t.yAxis2=R,t.tooltip=N,t.interactiveLayer=v,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return s},set:function(t){s=t}},showLegend:{get:function(){return l},set:function(t){l=t}},yDomain1:{get:function(){return e},set:function(t){e=t}},yDomain2:{get:function(){return n},set:function(t){n=t}},noData:{get:function(){return c},set:function(t){c=t}},interpolate:{get:function(){return p},set:function(t){p=t}},legendRightAxisHint:{get:function(){return m},set:function(t){m=t}},margin:{get:function(){return o},set:function(t){void 0!==t.top&&(o.top=t.top,i=t.top),o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},color:{get:function(){return a},set:function(t){a=r.utils.getColor(t)}},x:{get:function(){return f},set:function(t){f=t,w.x(t),E.x(t),C.x(t),k.x(t),M.x(t),O.x(t),T.x(t),A.x(t)}},y:{get:function(){return d},set:function(t){d=t,w.y(t),E.y(t),C.y(t),k.y(t),T.y(t),A.y(t),M.y(t),O.y(t)}},useVoronoi:{get:function(){return h},set:function(t){h=t,w.useVoronoi(t),E.useVoronoi(t),T.useVoronoi(t),A.useVoronoi(t)}},useInteractiveGuideline:{get:function(){return g},set:function(t){g=t,g&&(w.interactive(!1),w.useVoronoi(!1),E.interactive(!1),E.useVoronoi(!1),T.interactive(!1),T.useVoronoi(!1),A.interactive(!1),A.useVoronoi(!1),C.interactive(!1),k.interactive(!1))}},duration:{get:function(){return y},set:function(t){y=t,[w,E,T,A,C,k,S,P,R].forEach(function(t){t.duration(y)})}}}),r.utils.initOptions(t),t},r.models.ohlcBar=function(){"use strict";function t(C){return C.each(function(t){c=d3.select(this);var C=r.utils.availableWidth(u,c,a),M=r.utils.availableHeight(s,c,a);r.utils.initSVG(c);var O=C/t[0].values.length*.9;f.domain(e||d3.extent(t[0].values.map(p).concat(b))),x?f.range(o||[.5*C/t[0].values.length,C*(t[0].values.length-.5)/t[0].values.length]):f.range(o||[5+O/2,C-O/2-5]),d.domain(n||[d3.min(t[0].values.map(y).concat(_)),d3.max(t[0].values.map(m).concat(_))]).range(i||[M,0]),f.domain()[0]===f.domain()[1]&&(f.domain()[0]?f.domain([f.domain()[0]-.01*f.domain()[0],f.domain()[1]+.01*f.domain()[1]]):f.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var T=d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([t[0].values]),A=T.enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar"),S=A.append("defs"),P=A.append("g"),R=T.select("g");P.append("g").attr("class","nv-ticks"),T.attr("transform","translate("+a.left+","+a.top+")"),c.on("click",function(t,e){k.chartClick({data:t,index:e,pos:d3.event,id:l})}),S.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect"),T.select("#nv-chart-clip-path-"+l+" rect").attr("width",C).attr("height",M),R.attr("clip-path",w?"url(#nv-chart-clip-path-"+l+")":"");var D=T.select(".nv-ticks").selectAll(".nv-tick").data(function(t){return t});D.exit().remove(),D.enter().append("path").attr("class",function(t,e,n){return(v(t,e)>g(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}).attr("d",function(t,e){return"m0,0l0,"+(d(v(t,e))-d(m(t,e)))+"l"+-O/2+",0l"+O/2+",0l0,"+(d(y(t,e))-d(v(t,e)))+"l0,"+(d(g(t,e))-d(y(t,e)))+"l"+O/2+",0l"+-O/2+",0z"}).attr("transform",function(t,e){return"translate("+f(p(t,e))+","+d(m(t,e))+")"}).attr("fill",function(t,e){return E[0]}).attr("stroke",function(t,e){return E[0]}).attr("x",0).attr("y",function(t,e){return d(Math.max(0,h(t,e)))}).attr("height",function(t,e){return Math.abs(d(h(t,e))-d(0))}),D.attr("class",function(t,e,n){return(v(t,e)>g(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}),d3.transition(D).attr("transform",function(t,e){return"translate("+f(p(t,e))+","+d(m(t,e))+")"}).attr("d",function(e,n){var r=C/t[0].values.length*.9;return"m0,0l0,"+(d(v(e,n))-d(m(e,n)))+"l"+-r/2+",0l"+r/2+",0l0,"+(d(y(e,n))-d(v(e,n)))+"l0,"+(d(g(e,n))-d(y(e,n)))+"l"+r/2+",0l"+-r/2+",0z"})}),t}var e,n,o,i,a={top:0,right:0,bottom:0,left:0},u=null,s=null,l=Math.floor(1e4*Math.random()),c=null,f=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},h=function(t){return t.y; -},v=function(t){return t.open},g=function(t){return t.close},m=function(t){return t.high},y=function(t){return t.low},b=[],_=[],x=!1,w=!0,E=r.utils.defaultColor(),C=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");return t.highlightPoint=function(e,n){t.clearHighlights(),c.select(".nv-ohlcBar .nv-tick-0-"+e).classed("hover",n)},t.clearHighlights=function(){c.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},t.dispatch=k,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return s},set:function(t){s=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return o},set:function(t){o=t}},yRange:{get:function(){return i},set:function(t){i=t}},forceX:{get:function(){return b},set:function(t){b=t}},forceY:{get:function(){return _},set:function(t){_=t}},padData:{get:function(){return x},set:function(t){x=t}},clipEdge:{get:function(){return w},set:function(t){w=t}},id:{get:function(){return l},set:function(t){l=t}},interactive:{get:function(){return C},set:function(t){C=t}},x:{get:function(){return p},set:function(t){p=t}},y:{get:function(){return h},set:function(t){h=t}},open:{get:function(){return v()},set:function(t){v=t}},close:{get:function(){return g()},set:function(t){g=t}},high:{get:function(){return m},set:function(t){m=t}},low:{get:function(){return y},set:function(t){y=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!=t.top?t.top:a.top,a.right=void 0!=t.right?t.right:a.right,a.bottom=void 0!=t.bottom?t.bottom:a.bottom,a.left=void 0!=t.left?t.left:a.left}},color:{get:function(){return E},set:function(t){E=r.utils.getColor(t)}}}),r.utils.initOptions(t),t},r.models.parallelCoordinates=function(){"use strict";function t(O){return M.reset(),O.each(function(t){function M(t){return E(h.map(function(e){if(isNaN(t.values[e.key])||isNaN(parseFloat(t.values[e.key]))||B){var n=f[e.key].domain(),r=f[e.key].range(),o=n[0]-(n[1]-n[0])/9;if(x.indexOf(e.key)<0){var i=d3.scale.linear().domain([o,n[1]]).range([l-12,r[1]]);f[e.key].brush.y(i),x.push(e.key)}if(isNaN(t.values[e.key])||isNaN(parseFloat(t.values[e.key])))return[c(e.key),f[e.key](o)]}return void 0!==Y&&(x.length>0||B?(Y.style("display","inline"),K.style("display","inline")):(Y.style("display","none"),K.style("display","none"))),[c(e.key),f[e.key](t.values[e.key])]}))}function O(t){y.forEach(function(e){var n=f[e.dimension].brush.y().domain();e.hasOnlyNaN&&(e.extent[1]=(f[e.dimension].domain()[1]-n[0])*(e.extent[1]-e.extent[0])/(H[e.dimension]-e.extent[0])+n[0]),e.hasNaN&&(e.extent[0]=n[0]),t&&f[e.dimension].brush.extent(e.extent)}),o.select(".nv-brushBackground").each(function(t){d3.select(this).call(f[t.key].brush)}).selectAll("rect").attr("x",-8).attr("width",16),P()}function T(){g===!1&&(g=!0,O(!0))}function A(){Q=v.filter(function(t){return!f[t].brush.empty()}),J=Q.map(function(t){return f[t].brush.extent()}),y=[],Q.forEach(function(t,e){y[e]={dimension:t,extent:J[e],hasNaN:!1,hasOnlyNaN:!1}}),b=[],e.style("display",function(t){var e=Q.every(function(e,n){return!(!isNaN(t.values[e])&&!isNaN(parseFloat(t.values[e]))||J[n][0]!=f[e].brush.y().domain()[0])||J[n][0]<=t.values[e]&&t.values[e]<=J[n][1]&&!isNaN(parseFloat(t.values[e]))});return e&&b.push(t),e?null:"none"}),P(),k.brush({filters:y,active:b})}function S(){var t=Q.length>0;y.forEach(function(t){t.extent[0]===f[t.dimension].brush.y().domain()[0]&&x.indexOf(t.dimension)>=0&&(t.hasNaN=!0),t.extent[1]f[t.key].domain()[0]&&(U[t.key]=[n[0].extent[1]]),n[0].extent[0]>=f[t.key].domain()[0]&&U[t.key].push(n[0].extent[0])),d3.select(this).call(C.scale(f[t.key]).tickFormat(t.format).tickValues(U[t.key]))})}function R(t){_[t.key]=this.parentNode.__origin__=c(t.key),n.attr("visibility","hidden")}function D(t){_[t.key]=Math.min(s,Math.max(0,this.parentNode.__origin__+=d3.event.x)),e.attr("d",M),h.sort(function(t,e){return j(t.key)-j(e.key)}),h.forEach(function(t,e){return t.currentPosition=e}),c.domain(h.map(function(t){return t.key})),o.attr("transform",function(t){return"translate("+j(t.key)+")"})}function N(t,r){delete this.parentNode.__origin__,delete _[t.key],d3.select(this.parentNode).attr("transform","translate("+c(t.key)+")"),e.attr("d",M),n.attr("d",M).attr("visibility",null),k.dimensionsOrder(h)}function j(t){var e=_[t];return null==e?c(t):e}var F=d3.select(this);if(s=r.utils.availableWidth(a,F,i),l=r.utils.availableHeight(u,F,i),r.utils.initSVG(F),void 0===t[0].values){var L=[];t.forEach(function(t){var e={},n=Object.keys(t);n.forEach(function(n){"name"!==n&&(e[n]=t[n])}),L.push({key:t.name,values:e})}),t=L}var I=t.map(function(t){return t.values});0===b.length&&(b=t),v=p.sort(function(t,e){return t.currentPosition-e.currentPosition}).map(function(t){return t.key}),h=p.filter(function(t){return!t.disabled}),c.rangePoints([0,s],1).domain(h.map(function(t){return t.key}));var H={},B=!1,U=[];v.forEach(function(t){var e=d3.extent(I,function(e){return+e[t]}),n=e[0],r=e[1],o=!1;(isNaN(n)||isNaN(r))&&(o=!0,n=0,r=0),n===r&&(n-=1,r+=1);var i=y.filter(function(e){return e.dimension==t});0!==i.length&&(o?(n=f[t].domain()[0],r=f[t].domain()[1]):!i[0].hasOnlyNaN&&g?(n=n>i[0].extent[0]?i[0].extent[0]:n,r=r0||!r.utils.arrayEquals(b,tt))&&k.activeChanged(b)}),t}var e,n,o,i={top:30,right:0,bottom:10,left:0},a=null,u=null,s=null,l=null,c=d3.scale.ordinal(),f={},d="undefined values",p=[],h=[],v=[],g=!0,m=r.utils.defaultColor(),y=[],b=[],_=[],x=[],w=1,E=d3.svg.line(),C=d3.svg.axis(),k=d3.dispatch("brushstart","brush","brushEnd","dimensionsOrder","stateChange","elementClick","elementMouseover","elementMouseout","elementMousemove","renderEnd","activeChanged"),M=r.utils.renderWatch(k);return t.dispatch=k,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return a},set:function(t){a=t}},height:{get:function(){return u},set:function(t){u=t}},dimensionData:{get:function(){return p},set:function(t){p=t}},displayBrush:{get:function(){return g},set:function(t){g=t}},filters:{get:function(){return y},set:function(t){y=t}},active:{get:function(){return b},set:function(t){b=t}},lineTension:{get:function(){return w},set:function(t){w=t}},undefinedValuesLabel:{get:function(){return d},set:function(t){d=t}},dimensions:{get:function(){return p.map(function(t){return t.key})},set:function(t){r.deprecated("dimensions","use dimensionData instead"),0===p.length?t.forEach(function(t){p.push({key:t})}):t.forEach(function(t,e){p[e].key=t})}},dimensionNames:{get:function(){return p.map(function(t){return t.key})},set:function(t){r.deprecated("dimensionNames","use dimensionData instead"),v=[],0===p.length?t.forEach(function(t){p.push({key:t})}):t.forEach(function(t,e){p[e].key=t})}},dimensionFormats:{get:function(){return p.map(function(t){return t.format})},set:function(t){r.deprecated("dimensionFormats","use dimensionData instead"),0===p.length?t.forEach(function(t){p.push({format:t})}):t.forEach(function(t,e){p[e].format=t})}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},color:{get:function(){return m},set:function(t){m=r.utils.getColor(t)}}}),r.utils.initOptions(t),t},r.models.parallelCoordinatesChart=function(){"use strict";function t(o){return y.reset(),y.models(e),o.each(function(o){var c=d3.select(this);r.utils.initSVG(c);var v=r.utils.availableWidth(u,c,i),g=r.utils.availableHeight(s,c,i);if(t.update=function(){c.call(t)},t.container=this,f.setter(_(d),t.update).getter(b(d)).update(),f.disabled=d.map(function(t){return!!t.disabled}),d=d.map(function(t){return t.disabled=!!t.disabled,t}),d.forEach(function(t,e){t.originalPosition=isNaN(t.originalPosition)?e:t.originalPosition,t.currentPosition=isNaN(t.currentPosition)?e:t.currentPosition}),!h){var y;h={};for(y in f)f[y]instanceof Array?h[y]=f[y].slice(0):h[y]=f[y]}if(!o||!o.length)return r.utils.noData(t,c),t;c.selectAll(".nv-noData").remove();var x=c.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").data([o]),w=x.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinatesChart").append("g"),E=x.select("g");w.append("g").attr("class","nv-parallelCoordinatesWrap"),w.append("g").attr("class","nv-legendWrap"),E.select("rect").attr("width",v).attr("height",g>0?g:0),l?(n.width(v).color(function(t){return"rgb(188,190,192)"}),E.select(".nv-legendWrap").datum(d.sort(function(t,e){return t.originalPosition-e.originalPosition})).call(n),a||n.height()===i.top||(i.top=n.height(),g=r.utils.availableHeight(s,c,i)),x.select(".nv-legendWrap").attr("transform","translate( 0 ,"+-i.top+")")):E.select(".nv-legendWrap").selectAll("*").remove(),x.attr("transform","translate("+i.left+","+i.top+")"),e.width(v).height(g).dimensionData(d).displayBrush(p);var C=E.select(".nv-parallelCoordinatesWrap ").datum(o);C.transition().call(e),e.dispatch.on("brushEnd",function(t,e){e?(p=!0,m.brushEnd(t)):p=!1}),n.dispatch.on("stateChange",function(e){for(var n in e)f[n]=e[n];m.stateChange(f),t.update()}),e.dispatch.on("dimensionsOrder",function(t){d.sort(function(t,e){return t.currentPosition-e.currentPosition});var e=!1;d.forEach(function(t,n){t.currentPosition=n,t.currentPosition!==t.originalPosition&&(e=!0)}),m.dimensionsOrder(d,e)}),m.on("changeState",function(e){"undefined"!=typeof e.disabled&&(d.forEach(function(t,n){t.disabled=e.disabled[n]}),f.disabled=e.disabled),t.update()})}),y.renderEnd("parraleleCoordinateChart immediate"),t}var e=r.models.parallelCoordinates(),n=r.models.legend(),o=r.models.tooltip(),i=(r.models.tooltip(),{top:0,right:0,bottom:0,left:0}),a=null,u=null,s=null,l=!0,c=r.utils.defaultColor(),f=r.utils.state(),d=[],p=!0,h=null,v=null,g="undefined",m=d3.dispatch("dimensionsOrder","brushEnd","stateChange","changeState","renderEnd"),y=r.utils.renderWatch(m),b=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},_=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return o.contentGenerator(function(t){var e='";return 0!==t.series.length&&(e+='',t.series.forEach(function(t){e=e+'"}),e+=""),e+="
'+t.key+"
'+t.key+''+t.value+"
"}),e.dispatch.on("elementMouseover.tooltip",function(t){var e={key:t.label,color:t.color,series:[]};t.values&&(Object.keys(t.values).forEach(function(n){var r=t.dimensions.filter(function(t){return t.key===n})[0];if(r){var o;o=isNaN(t.values[n])||isNaN(parseFloat(t.values[n]))?g:r.format(t.values[n]),e.series.push({idx:r.currentPosition,key:n,value:o,color:r.color})}}),e.series.sort(function(t,e){return t.idx-e.idx})),o.data(e).hidden(!1)}),e.dispatch.on("elementMouseout.tooltip",function(t){o.hidden(!0)}),e.dispatch.on("elementMousemove.tooltip",function(){o()}),t.dispatch=m,t.parallelCoordinates=e,t.legend=n,t.tooltip=o,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return s},set:function(t){s=t}},showLegend:{get:function(){return l},set:function(t){l=t}},defaultState:{get:function(){return h},set:function(t){h=t}},dimensionData:{get:function(){return d},set:function(t){d=t}},displayBrush:{get:function(){return p},set:function(t){p=t}},noData:{get:function(){return v},set:function(t){v=t}},nanValue:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return i},set:function(t){void 0!==t.top&&(i.top=t.top,a=t.top),i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},color:{get:function(){return c},set:function(t){c=r.utils.getColor(t),n.color(c),e.color(c)}}}),r.utils.inheritOptions(t,e),r.utils.initOptions(t),t},r.models.pie=function(){"use strict";function t(P){return S.reset(),P.each(function(t){function P(t,e){t.endAngle=isNaN(t.endAngle)?0:t.endAngle,t.startAngle=isNaN(t.startAngle)?0:t.startAngle,v||(t.innerRadius=0);var n=d3.interpolate(this._current,t);return this._current=n(0),function(t){return T[e](n(t))}}var R=n-e.left-e.right,D=o-e.top-e.bottom,N=Math.min(R,D)/2,j=[],F=[];if(s=d3.select(this),0===M.length)for(var L=N-N/5,I=C*N,H=0;H=h){var i=et(r);Q[i]&&(r[1]-=J),Q[et(r)]=!0}return"translate("+r+")"}),G.select(".nv-label text").style("text-anchor",function(t,e){return b?(t.startAngle+t.endAngle)/20&&(e.y+=n),o=e.y+e.dy+f;if(n=o-f-d[1],n>0)for(o=e.y-=n,r=a-2;r>=0;--r)e=t[r],n=e.y+e.dy+f-o,n>0&&(e.y-=n),o=e.y})}function i(t,e){return t.y-e.y}var a=d3.nest().key(function(t){return t.x}).sortKeys(d3.ascending).entries(p).map(function(t){return t.values});e(),o(),u();for(var l=1;t>0;--t)r(l*=.99),o(),u(),n(l),o(),u()}function u(){function t(t,e){return t.source.y-e.source.y}function e(t,e){return t.target.y-e.target.y}p.forEach(function(n){n.sourceLinks.sort(e),n.targetLinks.sort(t)}),p.forEach(function(t){var e=0,n=0;t.sourceLinks.forEach(function(t){t.sy=e,e+=t.dy}),t.targetLinks.forEach(function(t){t.ty=n,n+=t.dy})})}function s(t){return t.value}var l={},c=24,f=8,d=[1,1],p=[],h=[],v=!0,g=function(r){t(),e(),n(),a(r)},m=function(){u()},y=function(){function t(t){var n=t.source.x+t.source.dx,r=t.target.x,o=d3.interpolateNumber(n,r),i=o(e),a=o(1-e),u=t.source.y+t.sy+t.dy/2,s=t.target.y+t.ty+t.dy/2,l="M"+n+","+u+"C"+i+","+u+" "+a+","+s+" "+r+","+s;return l}var e=.5;return t.curvature=function(n){return arguments.length?(e=+n,t):e},t},b=function(t){return t.y+t.dy/2};return l.options=r.utils.optionsFunc.bind(l),l._options=Object.create({},{nodeWidth:{get:function(){return c},set:function(t){c=+t}},nodePadding:{get:function(){return f},set:function(t){f=t}},nodes:{get:function(){return p},set:function(t){p=t}},links:{get:function(){return h},set:function(t){h=t}},size:{get:function(){return d},set:function(t){d=t}},sinksRight:{get:function(){return v},set:function(t){v=t}},layout:{get:function(){g(32)},set:function(t){g(t)}},relayout:{get:function(){m()},set:function(t){}},center:{get:function(){return b()},set:function(t){"function"==typeof t&&(b=t)}},link:{get:function(){return y()},set:function(t){return"function"==typeof t&&(y=t),y()}}}),r.utils.initOptions(l),l},r.models.sankeyChart=function(){"use strict";function t(e){return e.each(function(t){function r(t){d3.select(this).attr("transform","translate("+t.x+","+(t.y=Math.max(0,Math.min(i-t.dy,d3.event.y)))+")"),n.relayout(),b.attr("d",y)}var s={nodes:[{node:1,name:"Test 1"},{node:2,name:"Test 2"},{node:3,name:"Test 3"},{node:4,name:"Test 4"},{node:5,name:"Test 5"},{node:6,name:"Test 6"}],links:[{source:0,target:1,value:2295},{source:0,target:5,value:1199},{source:1,target:2,value:1119},{source:1,target:5,value:1176},{source:2,target:3,value:487},{source:2,target:5,value:632},{source:3,target:4,value:301},{source:3,target:5,value:186}]},c=!1,f=!1;if(("object"==typeof t.nodes&&t.nodes.length)>=0&&("object"==typeof t.links&&t.links.length)>=0&&(c=!0),t.nodes&&t.nodes.length>0&&t.links&&t.links.length>0&&(f=!0),!c)return console.error("NVD3 Sankey chart error:","invalid data format for",t),console.info("Valid data format is: ",s,JSON.stringify(s)),m(e,"Error loading chart, data is invalid"),!1;if(!f)return m(e,"No data available"),!1;var d=e.append("svg").attr("width",o).attr("height",i).append("g").attr("class","nvd3 nv-wrap nv-sankeyChart");n.nodeWidth(a).nodePadding(u).size([o,i]);var y=n.link();n.nodes(t.nodes).links(t.links).layout(32).center(l);var b=d.append("g").selectAll(".link").data(t.links).enter().append("path").attr("class","link").attr("d",y).style("stroke-width",function(t){return Math.max(1,t.dy)}).sort(function(t,e){return e.dy-t.dy});b.append("title").text(p);var _=d.append("g").selectAll(".node").data(t.nodes).enter().append("g").attr("class","node").attr("transform",function(t){return"translate("+t.x+","+t.y+")"}).call(d3.behavior.drag().origin(function(t){return t}).on("dragstart",function(){ -this.parentNode.appendChild(this)}).on("drag",r));_.append("rect").attr("height",function(t){return t.dy}).attr("width",n.nodeWidth()).style("fill",h).style("stroke",v).append("title").text(g),_.append("text").attr("x",-6).attr("y",function(t){return t.dy/2}).attr("dy",".35em").attr("text-anchor","end").attr("transform",null).text(function(t){return t.name}).filter(function(t){return t.x0?Q+20:0),st.attr("clip-path",R?"url(#nv-edge-clip-"+g+")":""),X=!0;var lt=ot.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});lt.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),lt.exit().remove(),lt.attr("class",function(t,e){return(t.classed||"")+" nv-group nv-series-"+e}).classed("nv-noninteractive",!T).classed("hover",function(t){return t.hover}),lt.watchTransition(G,"scatter: groups").style("fill",function(t,e){return h(t,e)}).style("stroke",function(t,e){return t.pointBorderColor||v||h(t,e)}).style("stroke-opacity",1).style("fill-opacity",.5);var ct=lt.selectAll("path.nv-point").data(function(t){return t.values.map(function(t,e){return[t,e]}).filter(function(t,e){return A(t[0],e)})});if(ct.enter().append("path").attr("class",function(t){return"nv-point nv-point-"+t[1]}).style("fill",function(t){return t.color}).style("stroke",function(t){return t.color}).attr("transform",function(t){return"translate("+r.utils.NaNtoZero(i(x(t[0],t[1])))+","+r.utils.NaNtoZero(a(w(t[0],t[1])))+")"}).attr("d",r.utils.symbol().type(function(t){return C(t[0])}).size(function(t){return _(E(t[0],t[1]))})),ct.exit().each(e).remove(),lt.exit().selectAll("path.nv-point").watchTransition(G,"scatter exit").attr("transform",function(t){return"translate("+r.utils.NaNtoZero(y(x(t[0],t[1])))+","+r.utils.NaNtoZero(b(w(t[0],t[1])))+")"}).remove(),ct.filter(function(t){return nt||rt||n(t,"x",x,"y",w)}).watchTransition(G,"scatter points").attr("transform",function(t){return"translate("+r.utils.NaNtoZero(y(x(t[0],t[1])))+","+r.utils.NaNtoZero(b(w(t[0],t[1])))+")"}),ct.filter(function(t){return nt||rt||n(t,"shape",C,"size",E)}).watchTransition(G,"scatter points").attr("d",r.utils.symbol().type(function(t){return C(t[0])}).size(function(t){return _(E(t[0],t[1]))})),K){var ft=lt.selectAll(".nv-label").data(function(t){return t.values.map(function(t,e){return[t,e]}).filter(function(t,e){return A(t[0],e)})});ft.enter().append("text").style("fill",function(t,e){return t.color}).style("stroke-opacity",0).style("fill-opacity",1).attr("transform",function(t){var e=r.utils.NaNtoZero(i(x(t[0],t[1])))+Math.sqrt(_(E(t[0],t[1]))/Math.PI)+2;return"translate("+e+","+r.utils.NaNtoZero(a(w(t[0],t[1])))+")"}).text(function(t,e){return t[0].label}),ft.exit().remove(),lt.exit().selectAll("path.nv-label").watchTransition(G,"scatter exit").attr("transform",function(t){var e=r.utils.NaNtoZero(y(x(t[0],t[1])))+Math.sqrt(_(E(t[0],t[1]))/Math.PI)+2;return"translate("+e+","+r.utils.NaNtoZero(b(w(t[0],t[1])))+")"}).remove(),ft.each(function(t){d3.select(this).classed("nv-label",!0).classed("nv-label-"+t[1],!1).classed("hover",!1)}),ft.watchTransition(G,"scatter labels").attr("transform",function(t){var e=r.utils.NaNtoZero(y(x(t[0],t[1])))+Math.sqrt(_(E(t[0],t[1]))/Math.PI)+2;return"translate("+e+","+r.utils.NaNtoZero(b(w(t[0],t[1])))+")"})}Y?(clearTimeout(c),c=setTimeout(q,Y)):q(),i=y.copy(),a=b.copy(),u=_.copy(),s=d,l=p}),G.renderEnd("scatter immediate"),o}var i,a,u,s,l,c,f={top:0,right:0,bottom:0,left:0},d=null,p=null,h=r.utils.defaultColor(),v=null,g=Math.floor(1e5*Math.random()),m=null,y=d3.scale.linear(),b=d3.scale.linear(),_=d3.scale.linear(),x=function(t){return t.x},w=function(t){return t.y},E=function(t){return t.size||1},C=function(t){return t.shape||"circle"},k=[],M=[],O=[],T=!0,A=function(t){return!t.notActive},S=!1,P=.1,R=!1,D=!0,N=!1,j=function(){return 25},F=null,L=null,I=null,H=null,B=null,U=null,W=!1,z=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),V=!0,q=250,Y=300,K=!1,X=!1,G=r.utils.renderWatch(z,q),$=[16,256],Z={};return o.dispatch=z,o.options=r.utils.optionsFunc.bind(o),o._calls=new function(){this.clearHighlights=function(){return r.dom.write(function(){m.selectAll(".nv-point.hover").classed("hover",!1)}),null},this.highlightPoint=function(t,e,n){r.dom.write(function(){m.select(".nv-groups").selectAll(".nv-series-"+t).selectAll(".nv-point-"+e).classed("hover",n)})}},z.on("elementMouseover.point",function(t){T&&o._calls.highlightPoint(t.seriesIndex,t.pointIndex,!0)}),z.on("elementMouseout.point",function(t){T&&o._calls.highlightPoint(t.seriesIndex,t.pointIndex,!1)}),o._options=Object.create({},{width:{get:function(){return d},set:function(t){d=t}},height:{get:function(){return p},set:function(t){p=t}},xScale:{get:function(){return y},set:function(t){y=t}},yScale:{get:function(){return b},set:function(t){b=t}},pointScale:{get:function(){return _},set:function(t){_=t}},xDomain:{get:function(){return F},set:function(t){F=t}},yDomain:{get:function(){return L},set:function(t){L=t}},pointDomain:{get:function(){return B},set:function(t){B=t}},xRange:{get:function(){return I},set:function(t){I=t}},yRange:{get:function(){return H},set:function(t){H=t}},pointRange:{get:function(){return U},set:function(t){U=t}},forceX:{get:function(){return k},set:function(t){k=t}},forceY:{get:function(){return M},set:function(t){M=t}},forcePoint:{get:function(){return O},set:function(t){O=t}},interactive:{get:function(){return T},set:function(t){T=t}},pointActive:{get:function(){return A},set:function(t){A=t}},padDataOuter:{get:function(){return P},set:function(t){P=t}},padData:{get:function(){return S},set:function(t){S=t}},clipEdge:{get:function(){return R},set:function(t){R=t}},clipVoronoi:{get:function(){return D},set:function(t){D=t}},clipRadius:{get:function(){return j},set:function(t){j=t}},showVoronoi:{get:function(){return N},set:function(t){N=t}},id:{get:function(){return g},set:function(t){g=t}},interactiveUpdateDelay:{get:function(){return Y},set:function(t){Y=t}},showLabels:{get:function(){return K},set:function(t){K=t}},pointBorderColor:{get:function(){return v},set:function(t){v=t}},x:{get:function(){return x},set:function(t){x=d3.functor(t)}},y:{get:function(){return w},set:function(t){w=d3.functor(t)}},pointSize:{get:function(){return E},set:function(t){E=d3.functor(t)}},pointShape:{get:function(){return C},set:function(t){C=d3.functor(t)}},margin:{get:function(){return f},set:function(t){f.top=void 0!==t.top?t.top:f.top,f.right=void 0!==t.right?t.right:f.right,f.bottom=void 0!==t.bottom?t.bottom:f.bottom,f.left=void 0!==t.left?t.left:f.left}},duration:{get:function(){return q},set:function(t){q=t,G.reset(q)}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t)}},useVoronoi:{get:function(){return V},set:function(t){V=t,V===!1&&(D=!1)}}}),r.utils.initOptions(o),o},r.models.scatterChart=function(){"use strict";function t(M){return P.reset(),P.models(e),_&&P.models(n),x&&P.models(o),m&&P.models(a),y&&P.models(u),M.each(function(M){p=d3.select(this),r.utils.initSVG(p);var N=r.utils.availableWidth(f,p,l),j=r.utils.availableHeight(d,p,l);if(t.update=function(){0===O?p.call(t):p.transition().duration(O).call(t)},t.container=this,E.setter(D(M),t.update).getter(R(M)).update(),E.disabled=M.map(function(t){return!!t.disabled}),!C){var F;C={};for(F in E)E[F]instanceof Array?C[F]=E[F].slice(0):C[F]=E[F]}if(!(M&&M.length&&M.filter(function(t){return t.values.length}).length))return r.utils.noData(t,p),P.renderEnd("scatter immediate"),t;p.selectAll(".nv-noData").remove(),v=e.xScale(),g=e.yScale();var L=p.selectAll("g.nv-wrap.nv-scatterChart").data([M]),I=L.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+e.id()),H=I.append("g"),B=L.select("g");if(H.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none"),H.append("g").attr("class","nv-x nv-axis"),H.append("g").attr("class","nv-y nv-axis"),H.append("g").attr("class","nv-scatterWrap"),H.append("g").attr("class","nv-regressionLinesWrap"),H.append("g").attr("class","nv-distWrap"),H.append("g").attr("class","nv-legendWrap"),w&&B.select(".nv-y.nv-axis").attr("transform","translate("+N+",0)"),b){var U=N;i.width(U),L.select(".nv-legendWrap").datum(M).call(i),c||i.height()===l.top||(l.top=i.height(),j=r.utils.availableHeight(d,p,l)),L.select(".nv-legendWrap").attr("transform","translate(0,"+-l.top+")")}else B.select(".nv-legendWrap").selectAll("*").remove();L.attr("transform","translate("+l.left+","+l.top+")"),e.width(N).height(j).color(M.map(function(t,e){return t.color=t.color||h(t,e),t.color}).filter(function(t,e){return!M[e].disabled})).showLabels(T),L.select(".nv-scatterWrap").datum(M.filter(function(t){return!t.disabled})).call(e),L.select(".nv-regressionLinesWrap").attr("clip-path","url(#nv-edge-clip-"+e.id()+")");var W=L.select(".nv-regressionLinesWrap").selectAll(".nv-regLines").data(function(t){return t});W.enter().append("g").attr("class","nv-regLines");var z=W.selectAll(".nv-regLine").data(function(t){return[t]});z.enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0),z.filter(function(t){return t.intercept&&t.slope}).watchTransition(P,"scatterPlusLineChart: regline").attr("x1",v.range()[0]).attr("x2",v.range()[1]).attr("y1",function(t,e){return g(v.domain()[0]*t.slope+t.intercept)}).attr("y2",function(t,e){return g(v.domain()[1]*t.slope+t.intercept)}).style("stroke",function(t,e,n){return h(t,n)}).style("stroke-opacity",function(t,e){return t.disabled||"undefined"==typeof t.slope||"undefined"==typeof t.intercept?0:1}),_&&(n.scale(v)._ticks(r.utils.calcTicksX(N/100,M)).tickSize(-j,0),B.select(".nv-x.nv-axis").attr("transform","translate(0,"+g.range()[0]+")").call(n)),x&&(o.scale(g)._ticks(r.utils.calcTicksY(j/36,M)).tickSize(-N,0),B.select(".nv-y.nv-axis").call(o)),m&&(a.getData(e.x()).scale(v).width(N).color(M.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!M[e].disabled})),H.select(".nv-distWrap").append("g").attr("class","nv-distributionX"),B.select(".nv-distributionX").attr("transform","translate(0,"+g.range()[0]+")").datum(M.filter(function(t){return!t.disabled})).call(a)),y&&(u.getData(e.y()).scale(g).width(j).color(M.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!M[e].disabled})),H.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),B.select(".nv-distributionY").attr("transform","translate("+(w?N:-u.size())+",0)").datum(M.filter(function(t){return!t.disabled})).call(u)),i.dispatch.on("stateChange",function(e){for(var n in e)E[n]=e[n];k.stateChange(E),t.update()}),k.on("changeState",function(e){"undefined"!=typeof e.disabled&&(M.forEach(function(t,n){t.disabled=e.disabled[n]}),E.disabled=e.disabled),t.update()}),e.dispatch.on("elementMouseout.tooltip",function(t){s.hidden(!0),p.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",0),p.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",u.size())}),e.dispatch.on("elementMouseover.tooltip",function(t){p.select(".nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",t.relativePos[1]-j),p.select(".nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",t.relativePos[0]+a.size()),s.data(t).hidden(!1)}),A=v.copy(),S=g.copy()}),P.renderEnd("scatter with line immediate"),t}var e=r.models.scatter(),n=r.models.axis(),o=r.models.axis(),i=r.models.legend(),a=r.models.distribution(),u=r.models.distribution(),s=r.models.tooltip(),l={top:30,right:20,bottom:50,left:75},c=null,f=null,d=null,p=null,h=r.utils.defaultColor(),v=e.xScale(),g=e.yScale(),m=!1,y=!1,b=!0,_=!0,x=!0,w=!1,E=r.utils.state(),C=null,k=d3.dispatch("stateChange","changeState","renderEnd"),M=null,O=250,T=!1;e.xScale(v).yScale(g),n.orient("bottom").tickPadding(10),o.orient(w?"right":"left").tickPadding(10),a.axis("x"),u.axis("y"),s.headerFormatter(function(t,e){return n.tickFormat()(t,e)}).valueFormatter(function(t,e){return o.tickFormat()(t,e)});var A,S,P=r.utils.renderWatch(k,O),R=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},D=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return t.dispatch=k,t.scatter=e,t.legend=i,t.xAxis=n,t.yAxis=o,t.distX=a,t.distY=u,t.tooltip=s,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return d},set:function(t){d=t}},container:{get:function(){return p},set:function(t){p=t}},showDistX:{get:function(){return m},set:function(t){m=t}},showDistY:{get:function(){return y},set:function(t){y=t}},showLegend:{get:function(){return b},set:function(t){b=t}},showXAxis:{get:function(){return _},set:function(t){_=t}},showYAxis:{get:function(){return x},set:function(t){x=t}},defaultState:{get:function(){return C},set:function(t){C=t}},noData:{get:function(){return M},set:function(t){M=t}},duration:{get:function(){return O},set:function(t){O=t}},showLabels:{get:function(){return T},set:function(t){T=t}},margin:{get:function(){return l},set:function(t){void 0!==t.top&&(l.top=t.top,c=t.top),l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},rightAlignYAxis:{get:function(){return w},set:function(t){w=t,o.orient(t?"right":"left")}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t),i.color(h),a.color(h),u.color(h)}}}),r.utils.inheritOptions(t,e),r.utils.initOptions(t),t},r.models.sparkline=function(){"use strict";function t(c){return b.reset(),c.each(function(t){var c=u-a.left-a.right,y=s-a.top-a.bottom;l=d3.select(this),r.utils.initSVG(l),f.domain(e||d3.extent(t,p)).range(o||[0,c]),d.domain(n||d3.extent(t,h)).range(i||[y,0]);var b=l.selectAll("g.nv-wrap.nv-sparkline").data([t]),_=b.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline");_.append("g"),b.select("g");b.attr("transform","translate("+a.left+","+a.top+")");var x=b.selectAll("path").data(function(t){return[t]});x.enter().append("path"),x.exit().remove(),x.style("stroke",function(t,e){return t.color||v(t,e)}).attr("d",d3.svg.line().x(function(t,e){return f(p(t,e))}).y(function(t,e){return d(h(t,e))}));var w=b.selectAll("circle.nv-point").data(function(t){function e(e){if(e!=-1){var n=t[e];return n.pointIndex=e,n}return null}var n=t.map(function(t,e){return h(t,e)}),r=e(n.lastIndexOf(d.domain()[1])),o=e(n.indexOf(d.domain()[0])),i=e(n.length-1);return[g?o:null,g?r:null,m?i:null].filter(function(t){return null!=t})});w.enter().append("circle"),w.exit().remove(),w.attr("cx",function(t,e){return f(p(t,t.pointIndex))}).attr("cy",function(t,e){return d(h(t,t.pointIndex))}).attr("r",2).attr("class",function(t,e){return p(t,t.pointIndex)==f.domain()[1]?"nv-point nv-currentValue":h(t,t.pointIndex)==d.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"})}),b.renderEnd("sparkline immediate"),t}var e,n,o,i,a={top:2,right:0,bottom:2,left:0},u=400,s=32,l=null,c=!0,f=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},h=function(t){return t.y},v=r.utils.getColor(["#000"]),g=!0,m=!0,y=d3.dispatch("renderEnd"),b=r.utils.renderWatch(y);return t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return s},set:function(t){s=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return o},set:function(t){o=t}},yRange:{get:function(){return i},set:function(t){i=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return d},set:function(t){d=t}},animate:{get:function(){return c},set:function(t){c=t}},showMinMaxPoints:{get:function(){return g},set:function(t){g=t}},showCurrentPoint:{get:function(){return m},set:function(t){m=t}},x:{get:function(){return p},set:function(t){p=d3.functor(t)}},y:{get:function(){return h},set:function(t){h=d3.functor(t)}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}},color:{get:function(){return v},set:function(t){v=r.utils.getColor(t)}}}),t.dispatch=y,r.utils.initOptions(t),t},r.models.sparklinePlus=function(){"use strict";function t(v){return m.reset(),m.models(o),v.each(function(v){function g(){if(!l){var t=k.selectAll(".nv-hoverValue").data(s),n=t.enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0);t.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove(),t.attr("transform",function(t){return"translate("+e(o.x()(v[t],t))+",0)"}).transition().duration(250).style("stroke-opacity",1).style("fill-opacity",1),s.length&&(n.append("line").attr("x1",0).attr("y1",-i.top).attr("x2",0).attr("y2",_),n.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-i.top).attr("text-anchor","end").attr("dy",".9em"),k.select(".nv-hoverValue .nv-xValue").text(c(o.x()(v[s[0]],s[0]))),n.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-i.top).attr("text-anchor","start").attr("dy",".9em"),k.select(".nv-hoverValue .nv-yValue").text(f(o.y()(v[s[0]],s[0]))))}}function m(){function t(t,e){for(var n=Math.abs(o.x()(t[0],0)-e),r=0,i=0;i=t[0]&&o.x()(e,n)<=t[1]}),disableTooltip:e.disableTooltip}}));e.transition().duration(N).call(o),A(),L()}var z=d3.select(this);r.utils.initSVG(z);var V=r.utils.availableWidth(h,z,d),q=r.utils.availableHeight(v,z,d)-(E?f.height():0);if(t.update=function(){z.transition().duration(N).call(t)},t.container=this,O.setter(B(c),t.update).getter(H(c)).update(),O.disabled=c.map(function(t){return!!t.disabled}),!T){var Y;T={};for(Y in O)O[Y]instanceof Array?T[Y]=O[Y].slice(0):T[Y]=O[Y]}if(!(c&&c.length&&c.filter(function(t){return t.values.length}).length))return r.utils.noData(t,z),t;z.selectAll(".nv-noData").remove(),e=o.xScale(),n=o.yScale();var K=z.selectAll("g.nv-wrap.nv-stackedAreaChart").data([c]),X=K.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart").append("g"),G=K.select("g");X.append("g").attr("class","nv-legendWrap"),X.append("g").attr("class","nv-controlsWrap");var $=X.append("g").attr("class","nv-focus");$.append("g").attr("class","nv-background").append("rect"),$.append("g").attr("class","nv-x nv-axis"),$.append("g").attr("class","nv-y nv-axis"),$.append("g").attr("class","nv-stackedWrap"),$.append("g").attr("class","nv-interactive");X.append("g").attr("class","nv-focusWrap");if(y){var Z=m&&"top"===b?V-P:V;if(u.width(Z),G.select(".nv-legendWrap").datum(c).call(u),"bottom"===b){var Q=(_?12:0)+10;d.bottom=Math.max(u.height()+Q,d.bottom),q=r.utils.availableHeight(v,z,d)-(E?f.height():0);var J=q+Q;G.select(".nv-legendWrap").attr("transform","translate(0,"+J+")")}else"top"===b&&(p||d.top==u.height()||(d.top=u.height(),q=r.utils.availableHeight(v,z,d)-(E?f.height():0)),G.select(".nv-legendWrap").attr("transform","translate("+(V-Z)+","+-d.top+")"))}else G.select(".nv-legendWrap").selectAll("*").remove();if(m){var tt=[{key:D.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=o.style(),style:"stack"},{key:D.stream||"Stream",metaKey:"Stream",disabled:"stream"!=o.style(),style:"stream"},{key:D.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=o.style(),style:"expand"},{key:D.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=o.style(),style:"stack_percent"}];P=R.length/3*260,tt=tt.filter(function(t){return R.indexOf(t.metaKey)!==-1}),s.width(P).color(["#444","#444","#444"]),G.select(".nv-controlsWrap").datum(tt).call(s);var et=Math.max(s.height(),y&&"top"===b?u.height():0);d.top!=et&&(d.top=et,q=r.utils.availableHeight(v,z,d)-(E?f.height():0)),G.select(".nv-controlsWrap").attr("transform","translate(0,"+-d.top+")")}else G.select(".nv-controlsWrap").selectAll("*").remove();K.attr("transform","translate("+d.left+","+d.top+")"),w&&G.select(".nv-y.nv-axis").attr("transform","translate("+V+",0)"),C&&(l.width(V).height(q).margin({left:d.left,top:d.top}).svgContainer(z).xScale(e),K.select(".nv-interactive").call(l)),G.select(".nv-focus .nv-background rect").attr("width",V).attr("height",q),o.width(V).height(q).color(c.map(function(t,e){return t.color||g(t,e)}).filter(function(t,e){return!c[e].disabled}));var nt=G.select(".nv-focus .nv-stackedWrap").datum(c.filter(function(t){return!t.disabled}));if(_&&i.scale(e)._ticks(r.utils.calcTicksX(V/100,c)).tickSize(-q,0),x){var rt;rt="wiggle"===o.offset()?0:r.utils.calcTicksY(q/36,c),a.scale(n)._ticks(rt).tickSize(-V,0)}if(E){f.width(V),G.select(".nv-focusWrap").attr("transform","translate(0,"+(q+d.bottom+f.margin().top)+")").datum(c.filter(function(t){return!t.disabled})).call(f);var ot=f.brush.empty()?f.xDomain():f.brush.extent();null!==ot&&W(ot)}else nt.transition().call(o),A(),L();o.dispatch.on("areaClick.toggle",function(e){1===c.filter(function(t){return!t.disabled}).length?c.forEach(function(t){t.disabled=!1}):c.forEach(function(t,n){t.disabled=n!=e.seriesIndex}),O.disabled=c.map(function(t){return!!t.disabled}),S.stateChange(O),t.update()}),u.dispatch.on("stateChange",function(e){for(var n in e)O[n]=e[n];S.stateChange(O),t.update()}),s.dispatch.on("legendClick",function(e,n){e.disabled&&(tt=tt.map(function(t){return t.disabled=!0,t}),e.disabled=!1,o.style(e.style),O.style=o.style(),S.stateChange(O),t.update())}),l.dispatch.on("elementMousemove",function(e){o.clearHighlights();var n,i,a,u=[],s=0,f=!0;if(c.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(l,c){i=r.interactiveBisect(l.values,e.pointXValue,t.x());var d=l.values[i],p=t.y()(d,i);if(null!=p&&o.highlightPoint(c,i,!0),"undefined"!=typeof d){"undefined"==typeof n&&(n=d),"undefined"==typeof a&&(a=t.xScale()(t.x()(d,i)));var h="expand"==o.style()?d.display.y:t.y()(d,i);u.push({key:l.key,value:h,color:g(l,l.seriesIndex),point:d}),k&&"expand"!=o.style()&&null!=h&&(s+=h,f=!1)}}),u.reverse(),u.length>2){var d=t.yScale().invert(e.mouseY),p=null;u.forEach(function(t,e){d=Math.abs(d);var n=Math.abs(t.point.display.y0),r=Math.abs(t.point.display.y);if(d>=n&&d<=r+n)return void(p=e)}),null!=p&&(u[p].highlight=!0)}k&&"expand"!=o.style()&&u.length>=2&&!f&&u.push({key:M,value:s,total:!0});var h=t.x()(n,i),v=l.tooltip.valueFormatter();"expand"===o.style()||"stack_percent"===o.style()?(F||(F=v),v=d3.format(".1%")):F&&(v=F,F=null),l.tooltip.valueFormatter(v).data({value:h,series:u})(),l.renderGuideLine(a)}),l.dispatch.on("elementMouseout",function(t){o.clearHighlights()}),f.dispatch.on("onBrush",function(t){W(t)}),S.on("changeState",function(e){"undefined"!=typeof e.disabled&&c.length===e.disabled.length&&(c.forEach(function(t,n){t.disabled=e.disabled[n]}),O.disabled=e.disabled),"undefined"!=typeof e.style&&(o.style(e.style),I=e.style),t.update()})}),L.renderEnd("stacked Area chart immediate"),t}var e,n,o=r.models.stackedArea(),i=r.models.axis(),a=r.models.axis(),u=r.models.legend(),s=r.models.legend(),l=r.interactiveGuideline(),c=r.models.tooltip(),f=r.models.focus(r.models.stackedArea()),d={top:10,right:25,bottom:50,left:60},p=null,h=null,v=null,g=r.utils.defaultColor(),m=!0,y=!0,b="top",_=!0,x=!0,w=!1,E=!1,C=!1,k=!0,M="TOTAL",O=r.utils.state(),T=null,A=null,S=d3.dispatch("stateChange","changeState","renderEnd"),P=250,R=["Stacked","Stream","Expanded"],D={},N=250;O.style=o.style(),i.orient("bottom").tickPadding(7),a.orient(w?"right":"left"),c.headerFormatter(function(t,e){return i.tickFormat()(t,e)}).valueFormatter(function(t,e){return a.tickFormat()(t,e)}),l.tooltip.headerFormatter(function(t,e){return i.tickFormat()(t,e)}).valueFormatter(function(t,e){return null==t?"N/A":a.tickFormat()(t,e)});var j=null,F=null;s.updateState(!1);var L=r.utils.renderWatch(S),I=o.style(),H=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),style:o.style()}}},B=function(t){return function(e){void 0!==e.style&&(I=e.style),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}},U=d3.format("%");return o.dispatch.on("elementMouseover.tooltip",function(t){t.point.x=o.x()(t.point),t.point.y=o.y()(t.point),c.data(t).hidden(!1)}),o.dispatch.on("elementMouseout.tooltip",function(t){c.hidden(!0)}),t.dispatch=S,t.stacked=o,t.legend=u,t.controls=s,t.xAxis=i,t.x2Axis=f.xAxis,t.yAxis=a,t.y2Axis=f.yAxis,t.interactiveLayer=l,t.tooltip=c,t.focus=f,t.dispatch=S,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return h},set:function(t){h=t}},height:{get:function(){return v},set:function(t){v=t}},showLegend:{get:function(){return y},set:function(t){y=t}},legendPosition:{get:function(){return b},set:function(t){b=t}},showXAxis:{get:function(){return _},set:function(t){_=t}},showYAxis:{get:function(){return x},set:function(t){x=t}},defaultState:{get:function(){return T},set:function(t){T=t}},noData:{get:function(){return A},set:function(t){A=t}},showControls:{get:function(){return m},set:function(t){m=t}},controlLabels:{get:function(){return D},set:function(t){D=t}},controlOptions:{get:function(){return R},set:function(t){R=t}},showTotalInTooltip:{get:function(){return k},set:function(t){k=t}},totalLabel:{get:function(){return M},set:function(t){M=t}},focusEnable:{get:function(){return E},set:function(t){E=t}},focusHeight:{get:function(){return f.height()},set:function(t){f.height(t)}},brushExtent:{get:function(){return f.brushExtent()},set:function(t){f.brushExtent(t)}},margin:{get:function(){return d},set:function(t){void 0!==t.top&&(d.top=t.top,p=t.top),d.right=void 0!==t.right?t.right:d.right,d.bottom=void 0!==t.bottom?t.bottom:d.bottom,d.left=void 0!==t.left?t.left:d.left}},focusMargin:{get:function(){return f.margin},set:function(t){f.margin.top=void 0!==t.top?t.top:f.margin.top,f.margin.right=void 0!==t.right?t.right:f.margin.right,f.margin.bottom=void 0!==t.bottom?t.bottom:f.margin.bottom,f.margin.left=void 0!==t.left?t.left:f.margin.left}},duration:{get:function(){return N},set:function(t){N=t,L.reset(N),o.duration(N),i.duration(N),a.duration(N)}},color:{get:function(){return g},set:function(t){g=r.utils.getColor(t),u.color(g),o.color(g),f.color(g)}},x:{get:function(){return o.x()},set:function(t){o.x(t),f.x(t)}},y:{get:function(){return o.y()},set:function(t){o.y(t),f.y(t)}},rightAlignYAxis:{get:function(){return w},set:function(t){w=t,a.orient(w?"right":"left")}},useInteractiveGuideline:{get:function(){return C},set:function(e){C=!!e,t.interactive(!e),t.useVoronoi(!e),o.scatter.interactive(!e)}}}),r.utils.inheritOptions(t,o),r.utils.initOptions(t),t},r.models.stackedAreaWithFocusChart=function(){return r.models.stackedAreaChart().margin({bottom:30}).focusEnable(!0)},r.models.sunburst=function(){"use strict";function t(t){var n=e(t);return n>90?180:0}function e(t){var e=Math.max(0,Math.min(2*Math.PI,P(t.x))),n=Math.max(0,Math.min(2*Math.PI,P(t.x+t.dx))),r=(e+n)/2*(180/Math.PI)-90;return r}function n(t){var e=Math.max(0,Math.min(2*Math.PI,P(t.x))),n=Math.max(0,Math.min(2*Math.PI,P(t.x+t.dx)));return(n-e)/(2*Math.PI)}function o(t){var e=Math.max(0,Math.min(2*Math.PI,P(t.x))),n=Math.max(0,Math.min(2*Math.PI,P(t.x+t.dx))),r=n-e;return r>k}function i(t,e){var n=d3.interpolate(P.domain(),[f.x,f.x+f.dx]),r=d3.interpolate(R.domain(),[f.y,1]),o=d3.interpolate(R.range(),[f.y?20:0,h]);return 0===e?function(){return j(t)}:function(e){return P.domain(n(e)),R.domain(r(e)).range(o(e)),j(t)}}function a(t){var e=d3.interpolate({x:t.x0,dx:t.dx0,y:t.y0,dy:t.dy0},t);return function(n){var r=e(n);return t.x0=r.x,t.dx0=r.dx,t.y0=r.y,t.dy0=r.dy,j(r)}}function u(t){var e=O(t);N[e]||(N[e]={});var n=N[e];n.dx=t.dx,n.x=t.x,n.dy=t.dy,n.y=t.y}function s(t){t.forEach(function(t){var e=O(t),n=N[e];n?(t.dx0=n.dx,t.x0=n.x,t.dy0=n.dy,t.y0=n.y):(t.dx0=t.dx,t.x0=t.x,t.dy0=t.dy,t.y0=t.y),u(t)})}function l(n){var r=x.selectAll("text"),a=x.selectAll("path");r.transition().attr("opacity",0),f=n,a.transition().duration(A).attrTween("d",i).each("end",function(r){if(r.x>=n.x&&r.x=n.depth){var i=d3.select(this.parentNode),a=i.select("text");a.transition().duration(A).text(function(t){return C(t)}).attr("opacity",function(t){return o(t)?1:0}).attr("transform",function(){var o=this.getBBox().width;if(0===r.depth)return"translate("+o/2*-1+",0)";if(r.depth===n.depth)return"translate("+(R(r.y)+5)+",0)";var i=e(r),a=t(r);return 0===a?"rotate("+i+")translate("+(R(r.y)+5)+",0)":"rotate("+i+")translate("+(R(r.y)+o+5)+",0)rotate("+a+")"})}})}function c(i){return F.reset(),i.each(function(i){x=d3.select(this),d=r.utils.availableWidth(g,x,v),p=r.utils.availableHeight(m,x,v),h=Math.min(d,p)/2,R.range([0,h]);var u=x.select("g.nvd3.nv-wrap.nv-sunburst");u[0][0]?u.attr("transform","translate("+(d/2+v.left+v.right)+","+(p/2+v.top+v.bottom)+")"):u=x.append("g").attr("class","nvd3 nv-wrap nv-sunburst nv-chart-"+_).attr("transform","translate("+(d/2+v.left+v.right)+","+(p/2+v.top+v.bottom)+")"),x.on("click",function(t,e){S.chartClick({data:t,index:e,pos:d3.event,id:_})}),D.value(b[y]||b.count);var c=D.nodes(i[0]).reverse();s(c);var f=u.selectAll(".arc-container").data(c,O),k=f.enter().append("g").attr("class","arc-container");k.append("path").attr("d",j).style("fill",function(t){return t.color?t.color:w(T?(t.children?t:t.parent).name:t.name)}).style("stroke","#FFF").on("click",function(t,e){l(t),S.elementClick({data:t,index:e})}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0).style("opacity",.8),S.elementMouseover({data:t,color:d3.select(this).style("fill"),percent:n(t)})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1).style("opacity",1),S.elementMouseout({data:t})}).on("mousemove",function(t,e){S.elementMousemove({data:t})}),f.each(function(t){d3.select(this).select("path").transition().duration(A).attrTween("d",a)}),E&&(f.selectAll("text").remove(),f.append("text").text(function(t){return C(t)}).transition().duration(A).attr("opacity",function(t){return o(t)?1:0}).attr("transform",function(n){var r=this.getBBox().width;if(0===n.depth)return"rotate(0)translate("+r/2*-1+",0)";var o=e(n),i=t(n);return 0===i?"rotate("+o+")translate("+(R(n.y)+5)+",0)":"rotate("+o+")translate("+(R(n.y)+r+5)+",0)rotate("+i+")"})),l(c[c.length-1]),f.exit().transition().duration(A).attr("opacity",0).each("end",function(t){var e=O(t);N[e]=void 0}).remove()}),F.renderEnd("sunburst immediate"),c}var f,d,p,h,v={top:0,right:0,bottom:0,left:0},g=600,m=600,y="count",b={count:function(t){return 1},value:function(t){return t.value||t.size},size:function(t){return t.value||t.size}},_=Math.floor(1e4*Math.random()),x=null,w=r.utils.defaultColor(),E=!1,C=function(t){return"count"===y?t.name+" #"+t.value:t.name+" "+(t.value||t.size)},k=.02,M=function(t,e){return t.name>e.name},O=function(t,e){return t.name},T=!0,A=500,S=d3.dispatch("chartClick","elementClick","elementDblClick","elementMousemove","elementMouseover","elementMouseout","renderEnd"),P=d3.scale.linear().range([0,2*Math.PI]),R=d3.scale.sqrt(),D=d3.layout.partition().sort(M),N={},j=d3.svg.arc().startAngle(function(t){return Math.max(0,Math.min(2*Math.PI,P(t.x)))}).endAngle(function(t){return Math.max(0,Math.min(2*Math.PI,P(t.x+t.dx)))}).innerRadius(function(t){return Math.max(0,R(t.y))}).outerRadius(function(t){return Math.max(0,R(t.y+t.dy))}),F=r.utils.renderWatch(S);return c.dispatch=S,c.options=r.utils.optionsFunc.bind(c),c._options=Object.create({},{width:{get:function(){return g},set:function(t){g=t}},height:{get:function(){return m},set:function(t){m=t}},mode:{get:function(){return y},set:function(t){y=t}},id:{get:function(){return _},set:function(t){_=t}},duration:{get:function(){return A},set:function(t){A=t}},groupColorByParent:{get:function(){return T},set:function(t){T=!!t}},showLabels:{get:function(){return E},set:function(t){E=!!t}},labelFormat:{get:function(){return C},set:function(t){C=t}},labelThreshold:{get:function(){return k},set:function(t){k=t}},sort:{get:function(){return M},set:function(t){M=t}},key:{get:function(){return O},set:function(t){O=t}},margin:{get:function(){return v},set:function(t){v.top=void 0!=t.top?t.top:v.top,v.right=void 0!=t.right?t.right:v.right,v.bottom=void 0!=t.bottom?t.bottom:v.bottom,v.left=void 0!=t.left?t.left:v.left}},color:{get:function(){return w},set:function(t){w=r.utils.getColor(t)}}}),r.utils.initOptions(c),c},r.models.sunburstChart=function(){"use strict";function t(n){return p.reset(),p.models(e),n.each(function(n){var u=d3.select(this);r.utils.initSVG(u);var s=r.utils.availableWidth(i,u,o),l=r.utils.availableHeight(a,u,o);return t.update=function(){0===f?u.call(t):u.transition().duration(f).call(t)},t.container=u,n&&n.length?(u.selectAll(".nv-noData").remove(),e.width(s).height(l).margin(o),void u.call(e)):(r.utils.noData(t,u),t)}),p.renderEnd("sunburstChart immediate"),t}var e=r.models.sunburst(),n=r.models.tooltip(),o={top:30,right:20,bottom:20,left:20},i=null,a=null,u=r.utils.defaultColor(),s=!1,l=(Math.round(1e5*Math.random()),null),c=null,f=250,d=d3.dispatch("stateChange","changeState","renderEnd"),p=r.utils.renderWatch(d);return n.duration(0).headerEnabled(!1).valueFormatter(function(t){return t}),e.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:t.data.name,value:t.data.value||t.data.size,color:t.color,percent:t.percent},s||(delete t.percent,delete t.series.percent),n.data(t).hidden(!1)}),e.dispatch.on("elementMouseout.tooltip",function(t){n.hidden(!0)}),e.dispatch.on("elementMousemove.tooltip",function(t){n()}),t.dispatch=d,t.sunburst=e,t.tooltip=n,t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{noData:{get:function(){return c},set:function(t){c=t}},defaultState:{get:function(){return l},set:function(t){l=t}},showTooltipPercent:{get:function(){return s},set:function(t){s=t}},color:{get:function(){return u},set:function(t){u=t,e.color(u)}},duration:{get:function(){return f},set:function(t){f=t,p.reset(f),e.duration(f)}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left,e.margin(o)}}}),r.utils.inheritOptions(t,e),r.utils.initOptions(t),t},r.version="1.8.5"}()},function(t,e,n){"use strict";function r(t,e,n,r,o){}t.exports=r},function(t,e,n){"use strict";var r=n(11),o=n(1),i=n(109);t.exports=function(){function t(t,e,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";var r=n(11),o=n(1),i=n(2),a=n(109),u=n(206);t.exports=function(t,e){function n(t){var e=t&&(O&&t[O]||t[T]);if("function"==typeof e)return e}function s(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function l(t){this.message=t,this.stack=""}function c(t){function n(n,r,i,u,s,c,f){if(u=u||A,c=c||i,f!==a)if(e)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[i]?n?new l(null===r[i]?"The "+s+" `"+c+"` is marked as required "+("in `"+u+"`, but its value is `null`."):"The "+s+" `"+c+"` is marked as required in "+("`"+u+"`, but its value is `undefined`.")):null:t(r,i,u,s,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function f(t){function e(e,n,r,o,i,a){var u=e[n],s=E(u);if(s!==t){var c=C(u);return new l("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return c(e)}function d(){return c(r.thatReturnsNull)}function p(t){function e(e,n,r,o,i){if("function"!=typeof t)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u)){var s=E(u);return new l("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c8&&x<=11),C=32,k=String.fromCharCode(C),M={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},O=!1,T=null,A={eventTypes:M,extractEvents:function(t,e,n,r){return[l(t,e,n,r),d(t,e,n,r)]}};t.exports=A},function(t,e,n){"use strict";var r=n(111),o=n(9),i=(n(13),n(159),n(265)),a=n(166),u=n(169),s=(n(2),u(function(t){return a(t)})),l=!1,c="cssFloat";if(o.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(t){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var d={createMarkupForStyles:function(t,e){var n="";for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];null!=o&&(n+=s(r)+":",n+=i(r,o,e)+";")}return n||null},setValueForStyles:function(t,e,n){var o=t.style;for(var a in e)if(e.hasOwnProperty(a)){var u=i(a,e[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),u)o[a]=u;else{var s=l&&r.shorthandPropertyExpansions[a];if(s)for(var f in s)o[f]="";else o[a]=""}}}};t.exports=d},function(t,e,n){"use strict";function r(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function o(t){var e=C.getPooled(T.change,S,t,k(t));_.accumulateTwoPhaseDispatches(e),E.batchedUpdates(i,e)}function i(t){b.enqueueEvents(t),b.processEventQueue(!1)}function a(t,e){A=t,S=e,A.attachEvent("onchange",o)}function u(){A&&(A.detachEvent("onchange",o),A=null,S=null)}function s(t,e){if("topChange"===t)return e}function l(t,e,n){"topFocus"===t?(u(),a(e,n)):"topBlur"===t&&u()}function c(t,e){A=t,S=e,P=t.value,R=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(A,"value",j),A.attachEvent?A.attachEvent("onpropertychange",d):A.addEventListener("propertychange",d,!1)}function f(){A&&(delete A.value,A.detachEvent?A.detachEvent("onpropertychange",d):A.removeEventListener("propertychange",d,!1),A=null,S=null,P=null,R=null)}function d(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==P&&(P=e,o(t))}}function p(t,e){if("topInput"===t)return e}function h(t,e,n){"topFocus"===t?(f(),c(e,n)):"topBlur"===t&&f()}function v(t,e){if(("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)&&A&&A.value!==P)return P=A.value,S}function g(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function m(t,e){if("topClick"===t)return e}function y(t,e){if(null!=t){var n=t._wrapperState||e._wrapperState;if(n&&n.controlled&&"number"===e.type){var r=""+e.value;e.getAttribute("value")!==r&&e.setAttribute("value",r)}}}var b=n(38),_=n(39),x=n(9),w=n(6),E=n(15),C=n(17),k=n(76),M=n(77),O=n(128),T={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},A=null,S=null,P=null,R=null,D=!1;x.canUseDOM&&(D=M("change")&&(!document.documentMode||document.documentMode>8));var N=!1;x.canUseDOM&&(N=M("input")&&(!document.documentMode||document.documentMode>11));var j={get:function(){return R.get.call(this)},set:function(t){P=""+t,R.set.call(this,t)}},F={eventTypes:T,extractEvents:function(t,e,n,o){var i,a,u=e?w.getNodeFromInstance(e):window;if(r(u)?D?i=s:a=l:O(u)?N?i=p:(i=v,a=h):g(u)&&(i=m),i){var c=i(t,e);if(c){var f=C.getPooled(T.change,c,n,o);return f.type="change",_.accumulateTwoPhaseDispatches(f),f}}a&&a(t,u,e),"topBlur"===t&&y(e,u)}};t.exports=F},function(t,e,n){"use strict";var r=n(4),o=n(28),i=n(9),a=n(162),u=n(11),s=(n(1),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(i.canUseDOM?void 0:r("56"),e?void 0:r("57"),"HTML"===t.nodeName?r("58"):void 0,"string"==typeof e){var n=a(e,u)[0];t.parentNode.replaceChild(n,t)}else o.replaceChildWithTree(t,e)}});t.exports=s},function(t,e){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=n},function(t,e,n){"use strict";var r=n(39),o=n(6),i=n(50),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},u={eventTypes:a,extractEvents:function(t,e,n,u){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var s;if(u.window===u)s=u;else{var l=u.ownerDocument;s=l?l.defaultView||l.parentWindow:window}var c,f;if("topMouseOut"===t){c=e;var d=n.relatedTarget||n.toElement;f=d?o.getClosestInstanceFromNode(d):null}else c=null,f=e;if(c===f)return null;var p=null==c?s:o.getNodeFromInstance(c),h=null==f?s:o.getNodeFromInstance(f),v=i.getPooled(a.mouseLeave,c,n,u);v.type="mouseleave",v.target=p,v.relatedTarget=h;var g=i.getPooled(a.mouseEnter,f,n,u);return g.type="mouseenter",g.target=h,g.relatedTarget=p,r.accumulateEnterLeaveDispatches(v,g,c,f),[v,g]}};t.exports=u},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=n(5),i=n(23),a=n(126);o(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 t,e,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(t=0;t1?1-e:void 0;return this._fallbackText=o.slice(t,u),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(29),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,u=r.injection.HAS_POSITIVE_NUMERIC_VALUE,s=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:u,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:u,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:u,sizes:0,span:u,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(t,e){return null==e?t.removeAttribute("value"):void("number"!==t.type||t.hasAttribute("value")===!1?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e))}}};t.exports=l},function(t,e,n){(function(e){"use strict";function r(t,e,n,r){var o=void 0===t[n];null!=e&&o&&(t[n]=i(e,!0))}var o=n(30),i=n(127),a=(n(68),n(78)),u=n(130),s=(n(2),{instantiateChildren:function(t,e,n,o){if(null==t)return null;var i={};return u(t,r,i),i},updateChildren:function(t,e,n,r,u,s,l,c,f){if(e||t){var d,p;for(d in e)if(e.hasOwnProperty(d)){p=t&&t[d];var h=p&&p._currentElement,v=e[d];if(null!=p&&a(h,v))o.receiveComponent(p,v,u,c),e[d]=p;else{p&&(r[d]=o.getHostNode(p),o.unmountComponent(p,!1));var g=i(v,!0);e[d]=g;var m=o.mountComponent(g,u,s,l,c,f);n.push(m)}}for(d in t)!t.hasOwnProperty(d)||e&&e.hasOwnProperty(d)||(p=t[d],r[d]=o.getHostNode(p),o.unmountComponent(p,!1))}},unmountChildren:function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];o.unmountComponent(r,e)}}});t.exports=s}).call(e,n(107))},function(t,e,n){"use strict";var r=n(64),o=n(229),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=i},function(t,e,n){"use strict";function r(t){}function o(t,e){}function i(t){return!(!t.prototype||!t.prototype.isReactComponent)}function a(t){return!(!t.prototype||!t.prototype.isPureReactComponent)}var u=n(4),s=n(5),l=n(32),c=n(70),f=n(18),d=n(71),p=n(40),h=(n(13),n(121)),v=n(30),g=n(26),m=(n(1),n(57)),y=n(78),b=(n(2),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var t=p.get(this)._currentElement.type,e=t(this.props,this.context,this.updater);return o(t,e),e};var _=1,x={construct:function(t){this._currentElement=t,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(t,e,n,s){this._context=s,this._mountOrder=_++,this._hostParent=e,this._hostContainerInfo=n;var c,f=this._currentElement.props,d=this._processContext(s),h=this._currentElement.type,v=t.getUpdateQueue(),m=i(h),y=this._constructComponent(m,f,d,v);m||null!=y&&null!=y.render?a(h)?this._compositeType=b.PureClass:this._compositeType=b.ImpureClass:(c=y,o(h,c),null===y||y===!1||l.isValidElement(y)?void 0:u("105",h.displayName||h.name||"Component"),y=new r(h),this._compositeType=b.StatelessFunctional);y.props=f,y.context=d,y.refs=g,y.updater=v,this._instance=y,p.set(y,this);var x=y.state;void 0===x&&(y.state=x=null),"object"!=typeof x||Array.isArray(x)?u("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=y.unstable_handleError?this.performInitialMountWithErrorHandling(c,e,n,t,s):this.performInitialMount(c,e,n,t,s),y.componentDidMount&&t.getReactMountReady().enqueue(y.componentDidMount,y),w},_constructComponent:function(t,e,n,r){return this._constructComponentWithoutOwner(t,e,n,r)},_constructComponentWithoutOwner:function(t,e,n,r){var o=this._currentElement.type;return t?new o(e,n,r):o(e,n,r)},performInitialMountWithErrorHandling:function(t,e,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(t,e,n,r,o)}catch(u){r.rollback(a),this._instance.unstable_handleError(u),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(t,e,n,r,o)}return i},performInitialMount:function(t,e,n,r,o){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===t&&(t=this._renderValidatedComponent());var u=h.getType(t);this._renderedNodeType=u;var s=this._instantiateReactComponent(t,u!==h.EMPTY);this._renderedComponent=s;var l=v.mountComponent(s,r,e,n,this._processChildContext(o),a);return l},getHostNode:function(){return v.getHostNode(this._renderedComponent)},unmountComponent:function(t){if(this._renderedComponent){var e=this._instance;if(e.componentWillUnmount&&!e._calledComponentWillUnmount)if(e._calledComponentWillUnmount=!0,t){var n=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(n,e.componentWillUnmount.bind(e))}else e.componentWillUnmount();this._renderedComponent&&(v.unmountComponent(this._renderedComponent,t),this._renderedNodeType=null,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=0,this._topLevelWrapper=null,p.remove(e)}},_maskContext:function(t){var e=this._currentElement.type,n=e.contextTypes;if(!n)return g;var r={};for(var o in n)r[o]=t[o];return r},_processContext:function(t){var e=this._maskContext(t);return e},_processChildContext:function(t){var e,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(e=r.getChildContext()),e){"object"!=typeof n.childContextTypes?u("107",this.getName()||"ReactCompositeComponent"):void 0;for(var o in e)o in n.childContextTypes?void 0:u("108",this.getName()||"ReactCompositeComponent",o);return s({},t,e)}return t},_checkContextTypes:function(t,e,n){},receiveComponent:function(t,e,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(e,r,t,o,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement?v.receiveComponent(this,this._pendingElement,t,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(t,e,n,r,o){var i=this._instance;null==i?u("136",this.getName()||"ReactCompositeComponent"):void 0;var a,s=!1;this._context===o?a=i.context:(a=this._processContext(o),s=!0);var l=e.props,c=n.props;e!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var f=this._processPendingState(c,a),d=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?d=i.shouldComponentUpdate(c,f,a):this._compositeType===b.PureClass&&(d=!m(l,c)||!m(i.state,f))),this._updateBatchNumber=null,d?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,f,a,t,o)):(this._currentElement=n,this._context=o,i.props=c,i.state=f,i.context=a)},_processPendingState:function(t,e){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=s({},o?r[0]:n.state),a=o?1:0;a=0||null!=e.is}function h(t){var e=t.type;d(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v=n(4),g=n(5),m=n(212),y=n(214),b=n(28),_=n(65),x=n(29),w=n(113),E=n(38),C=n(66),k=n(49),M=n(114),O=n(6),T=n(230),A=n(231),S=n(115),P=n(234),R=(n(13),n(243)),D=n(248),N=(n(11),n(52)),j=(n(1),n(77),n(57),n(79),n(2),M),F=E.deleteListener,L=O.getNodeFromInstance,I=k.listenTo,H=C.registrationNameModules,B={string:!0,number:!0},U="style",W="__html",z={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},V=11,q={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},X=g({menuitem:!0},Y),G=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,$={},Z={}.hasOwnProperty,Q=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=Q++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(c,this);break;case"input":T.mountWrapper(this,i,e),i=T.getHostProps(this,i),t.getReactMountReady().enqueue(c,this);break;case"option":A.mountWrapper(this,i,e),i=A.getHostProps(this,i);break;case"select":S.mountWrapper(this,i,e),i=S.getHostProps(this,i),t.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,e),i=P.getHostProps(this,i),t.getReactMountReady().enqueue(c,this)}o(this,i);var a,f;null!=e?(a=e._namespaceURI,f=e._tag):n._tag&&(a=n._namespaceURI,f=n._tag),(null==a||a===_.svg&&"foreignobject"===f)&&(a=_.html),a===_.html&&("svg"===this._tag?a=_.svg:"math"===this._tag&&(a=_.mathml)),this._namespaceURI=a;var d;if(t.useCreateElement){var p,h=n._ownerDocument;if(a===_.html)if("script"===this._tag){var v=h.createElement("div"),g=this._currentElement.type;v.innerHTML="<"+g+">",p=v.removeChild(v.firstChild)}else p=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else p=h.createElementNS(a,this._currentElement.type);O.precacheNode(this,p),this._flags|=j.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(p),this._updateDOMProperties(null,i,t);var y=b(p);this._createInitialChildren(t,i,r,y),d=y}else{var x=this._createOpenTagMarkupAndPutListeners(t,i),E=this._createContentMarkup(t,i,r);d=!E&&Y[this._tag]?x+"/>":x+">"+E+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(u,this),i.autoFocus&&t.getReactMountReady().enqueue(m.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(s,this),i.autoFocus&&t.getReactMountReady().enqueue(m.focusDOMComponent,this);break;case"select":i.autoFocus&&t.getReactMountReady().enqueue(m.focusDOMComponent,this);break;case"button":i.autoFocus&&t.getReactMountReady().enqueue(m.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(l,this)}return d},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o)if(H.hasOwnProperty(r))o&&i(this,r,o,t);else{r===U&&(o&&(o=this._previousStyleCopy=g({},e.style)),o=y.createMarkupForStyles(o,this));var a=null;null!=this._tag&&p(this._tag,e)?z.hasOwnProperty(r)||(a=w.createMarkupForCustomAttribute(r,o)):a=w.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=B[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)r=N(i);else if(null!=a){var u=this.mountChildren(a,t,n);r=u.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&b.queueHTML(r,o.__html);else{var i=B[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)""!==i&&b.queueText(r,i);else if(null!=a)for(var u=this.mountChildren(a,t,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),t.exports=a},function(t,e){"use strict";var n={useCreateElement:!0,useFiber:!1};t.exports=n},function(t,e,n){"use strict";var r=n(64),o=n(6),i={dangerouslyProcessChildrenUpdates:function(t,e){var n=o.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=i},function(t,e,n){"use strict";function r(){this._rootNodeID&&d.updateWrapper(this)}function o(t){var e="checkbox"===t.type||"radio"===t.type;return e?null!=t.checked:null!=t.value}function i(t){var e=this._currentElement.props,n=l.executeOnChange(e,t);f.asap(r,this);var o=e.name;if("radio"===e.type&&null!=o){for(var i=c.getNodeFromInstance(this),u=i;u.parentNode;)u=u.parentNode;for(var s=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;de.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(t,e){if(window.getSelection){var n=window.getSelection(),r=t[c()].length,o=Math.min(e.start,r),i=void 0===e.end?o:Math.min(e.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=l(t,o),s=l(t,i);if(u&&s){var f=document.createRange();f.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(s.node,s.offset)):(f.setEnd(s.node,s.offset),n.addRange(f))}}}var s=n(9),l=n(270),c=n(126),f=s.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:f?o:i,setOffsets:f?a:u};t.exports=d},function(t,e,n){"use strict";var r=n(4),o=n(5),i=n(64),a=n(28),u=n(6),s=n(52),l=(n(1),n(79),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(l.prototype,{mountComponent:function(t,e,n,r){var o=n._idCounter++,i=" react-text: "+o+" ",l=" /react-text ";if(this._domID=o,this._hostParent=e,t.useCreateElement){var c=n._ownerDocument,f=c.createComment(i),d=c.createComment(l),p=a(c.createDocumentFragment());return a.queueChild(p,a(f)),this._stringText&&a.queueChild(p,a(c.createTextNode(this._stringText))),a.queueChild(p,a(d)),u.precacheNode(this,f),this._closingComment=d,p}var h=s(this._stringText);return t.renderToStaticMarkup?h:""+h+""},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=u.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,u.uncacheNode(this)}}),t.exports=l},function(t,e,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(t){var e=this._currentElement.props,n=u.executeOnChange(e,t);return l.asap(r,this),n}var i=n(4),a=n(5),u=n(69),s=n(6),l=n(15),c=(n(1),n(2),{getHostProps:function(t,e){null!=e.dangerouslySetInnerHTML?i("91"):void 0;var n=a({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue,onChange:t._wrapperState.onChange});return n},mountWrapper:function(t,e){var n=u.getValue(e),r=n;if(null==n){var a=e.defaultValue,s=e.children;null!=s&&(null!=a?i("92"):void 0,Array.isArray(s)&&(s.length<=1?void 0:i("93"),s=s[0]),a=""+s),null==a&&(a=""),r=a}t._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=s.getNodeFromInstance(t),r=u.getValue(e);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==e.defaultValue&&(n.defaultValue=o)}null!=e.defaultValue&&(n.defaultValue=e.defaultValue)},postMountWrapper:function(t){var e=s.getNodeFromInstance(t),n=e.textContent;n===t._wrapperState.initialValue&&(e.value=n)}});t.exports=c},function(t,e,n){"use strict";function r(t,e){"_hostNode"in t?void 0:s("33"),"_hostNode"in e?void 0:s("33");for(var n=0,r=t;r;r=r._hostParent)n++;for(var o=0,i=e;i;i=i._hostParent)o++;for(;n-o>0;)t=t._hostParent,n--;for(;o-n>0;)e=e._hostParent,o--;for(var a=n;a--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function o(t,e){"_hostNode"in t?void 0:s("35"),"_hostNode"in e?void 0:s("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function i(t){return"_hostNode"in t?void 0:s("36"),t._hostParent}function a(t,e,n){for(var r=[];t;)r.push(t),t=t._hostParent;var o;for(o=r.length;o-- >0;)e(r[o],"captured",n);for(o=0;o0;)n(s[l],"captured",i)}var s=n(4);n(1);t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:u}},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(5),i=n(15),a=n(51),u=n(11),s={initialize:u,close:function(){d.isBatchingUpdates=!1}},l={initialize:u,close:i.flushBatchedUpdates.bind(i)},c=[l,s];o(r.prototype,a,{getTransactionWrappers:function(){return c}});var f=new r,d={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var a=d.isBatchingUpdates;return d.isBatchingUpdates=!0,a?t(e,n,r,o,i):f.perform(t,null,e,n,r,o,i)}};t.exports=d},function(t,e,n){"use strict";function r(){E||(E=!0,y.EventEmitter.injectReactEventListener(m),y.EventPluginHub.injectEventPluginOrder(u),y.EventPluginUtils.injectComponentTree(d),y.EventPluginUtils.injectTreeTraversal(h),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:w,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:x,BeforeInputEventPlugin:i}),y.HostComponent.injectGenericComponentClass(f),y.HostComponent.injectTextComponentClass(v),y.DOMProperty.injectDOMPropertyConfig(o),y.DOMProperty.injectDOMPropertyConfig(l),y.DOMProperty.injectDOMPropertyConfig(_),y.EmptyComponent.injectEmptyComponentFactory(function(t){return new p(t)}),y.Updates.injectReconcileTransaction(b),y.Updates.injectBatchingStrategy(g),y.Component.injectEnvironment(c))}var o=n(211),i=n(213),a=n(215),u=n(217),s=n(218),l=n(220),c=n(222),f=n(225),d=n(6),p=n(227),h=n(235),v=n(233),g=n(236),m=n(240),y=n(241),b=n(246),_=n(251),x=n(252),w=n(253),E=!1;t.exports={inject:r}},function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n},function(t,e,n){"use strict";function r(t){o.enqueueEvents(t),o.processEventQueue(!1)}var o=n(38),i={handleTopLevel:function(t,e,n,i){var a=o.extractEvents(t,e,n,i);r(a)}};t.exports=i},function(t,e,n){"use strict";function r(t){for(;t._hostParent;)t=t._hostParent;var e=f.getNodeFromInstance(t),n=e.parentNode;return f.getClosestInstanceFromNode(n)}function o(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function i(t){var e=p(t.nativeEvent),n=f.getClosestInstanceFromNode(e),o=n;do t.ancestors.push(o),o=o&&r(o);while(o);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return i.test(t)?t:t.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(t);return o===n}};t.exports=a},function(t,e,n){"use strict";function r(t,e,n){return{type:"INSERT_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:n,afterNode:e}}function o(t,e,n){return{type:"MOVE_EXISTING",content:null,fromIndex:t._mountIndex,fromNode:d.getHostNode(t),toIndex:n,afterNode:e}}function i(t,e){return{type:"REMOVE_NODE",content:null,fromIndex:t._mountIndex,fromNode:e,toIndex:null,afterNode:null}}function a(t){return{type:"SET_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(t){return{type:"TEXT_CONTENT",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(t,e){return e&&(t=t||[],t.push(e)),t}function l(t,e){f.processChildrenUpdates(t,e)}var c=n(4),f=n(70),d=(n(40),n(13),n(18),n(30)),p=n(221),h=(n(11),n(267)),v=(n(1),{Mixin:{_reconcilerInstantiateChildren:function(t,e,n){return p.instantiateChildren(t,e,n)},_reconcilerUpdateChildren:function(t,e,n,r,o,i){var a,u=0;return a=h(e,u),p.updateChildren(t,a,n,r,o,this,this._hostContainerInfo,i,u),a},mountChildren:function(t,e,n){var r=this._reconcilerInstantiateChildren(t,e,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var u=r[a],s=0,l=d.mountComponent(u,e,this,this._hostContainerInfo,n,s);u._mountIndex=i++,o.push(l)}return o},updateTextContent:function(t){var e=this._renderedChildren;p.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&c("118");var r=[u(t)];l(this,r)},updateMarkup:function(t){var e=this._renderedChildren;p.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&c("118");var r=[a(t)];l(this,r)},updateChildren:function(t,e,n){this._updateChildren(t,e,n)},_updateChildren:function(t,e,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,t,i,o,e,n);if(a||r){var u,c=null,f=0,p=0,h=0,v=null;for(u in a)if(a.hasOwnProperty(u)){var g=r&&r[u],m=a[u];g===m?(c=s(c,this.moveChild(g,v,f,p)),p=Math.max(g._mountIndex,p),g._mountIndex=f):(g&&(p=Math.max(g._mountIndex,p)),c=s(c,this._mountChildAtIndex(m,i[h],v,f,e,n)),h++),f++,v=d.getHostNode(m)}for(u in o)o.hasOwnProperty(u)&&(c=s(c,this._unmountChild(r[u],o[u])));c&&l(this,c),this._renderedChildren=a}},unmountChildren:function(t){var e=this._renderedChildren;p.unmountChildren(e,t),this._renderedChildren=null},moveChild:function(t,e,n,r){if(t._mountIndex=e)return{node:o,offset:e-i};i=a}o=n(r(o))}}t.exports=o},function(t,e,n){"use strict";function r(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function o(t){if(u[t])return u[t];if(!a[t])return t;var e=a[t];for(var n in e)if(e.hasOwnProperty(n)&&n in s)return u[t]=e[n];return""}var i=n(9),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},u={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},function(t,e,n){"use strict";function r(t){return'"'+o(t)+'"'}var o=n(52);t.exports=r},function(t,e,n){"use strict";var r=n(120);t.exports=r.renderSubtreeIntoContainer},function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){return!t||!t.__v2_compatible__}function a(t){return t&&t.getCurrentLocation}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){var n=t.history,r=t.routes,i=t.location,s=o(t,["history","routes","location"]);n||i?void 0:(0,l.default)(!1),n=n?n:(0,f.default)(s);var c=(0,p.default)(n,(0,h.createRoutes)(r)),d=void 0;i?i=n.createLocation(i):d=n.listen(function(t){i=t});var g=(0,v.createRouterObject)(n,c);n=(0,v.createRoutingHistory)(n,c),c.match(i,function(t,r,o){e(t,r&&g.createLocation(r,u.REPLACE),o&&a({},o,{history:n,router:g,matchContext:{history:n,transitionManager:c,router:g}})),d&&d()})}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=e.routes,r=o(e,["routes"]),i=(0,s.default)(t)(r),u=(0,c.default)(i,n);return a({},i,u)}}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e=0;--n){var r=e.slice(0,n);if(t[r]&&(e===r||t[r].complete))return t[r]}}function u(t,e){if(t&&"function"==typeof t.then)return t.then(function(t){e(null,t)},function(t){e(t)})}var s=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){var e=t.option,n=t.options,r=t.labelKey,o=t.valueKey;return 0===n.filter(function(t){return t[r]===e[r]||t[o]===e[o]}).length}function a(t){var e=t.label;return!!e}function u(t){var e=t.label,n=t.labelKey,r=t.valueKey,o={};return o[r]=e,o[n]=e,o.className="Select-create-option-placeholder",o}function s(t){return'Create option "'+t+'"'}function l(t){var e=t.keyCode;switch(e){case 9:case 13:case 188:return!0}return!1}var c=Object.assign||function(t){for(var e=1;e-1?e:t}function p(t,e){e=e||{};var n=e.body;if(t instanceof p){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o(t.headers)),this.method=t.method,this.mode=t.mode,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new o(e.headers)),this.method=d(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function v(t){var e=new o;return t.split(/\r?\n/).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}}),e}function g(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new o(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var m={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(m.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(t){return t&&DataView.prototype.isPrototypeOf(t)},_=ArrayBuffer.isView||function(t){return t&&y.indexOf(Object.prototype.toString.call(t))>-1};o.prototype.append=function(t,r){t=e(t),r=n(r);var o=this.map[t];this.map[t]=o?o+","+r:r},o.prototype.delete=function(t){delete this.map[e(t)]},o.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},o.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},o.prototype.set=function(t,r){this.map[e(t)]=n(r)},o.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},o.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),r(t)},o.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),r(t)},o.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),r(t)},m.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},f.call(p.prototype),f.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];g.redirect=function(t,e){if(w.indexOf(e)===-1)throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},t.Headers=o,t.Request=p,t.Response=g,t.fetch=function(t,e){return new Promise(function(n,r){var o=new p(t,e),i=new XMLHttpRequest;i.onload=function(){var t={status:i.status,statusText:i.statusText,headers:v(i.getAllResponseHeaders()||"")};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var e="response"in i?i.response:i.responseText;n(new g(e,t))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&m.blob&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)}]); -//# sourceMappingURL=dkan_dash.min.js.map \ No newline at end of file +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("__webpack_require__(1);\nmodule.exports = __webpack_require__(2);\n\n\n//////////////////\n// WEBPACK FOOTER\n// multi main\n// module id = 0\n// module chunks = 0\n//# sourceURL=webpack:///multi_main?"); + +/***/ }), +/* 1 */ +/***/ (function(module, exports) { + + eval("(function(self) {\n 'use strict';\n\n if (self.fetch) {\n return\n }\n\n var support = {\n searchParams: 'URLSearchParams' in self,\n iterable: 'Symbol' in self && 'iterator' in Symbol,\n blob: 'FileReader' in self && 'Blob' in self && (function() {\n try {\n new Blob()\n return true\n } catch(e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n }\n\n if (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isDataView = function(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n }\n\n var isArrayBufferView = ArrayBuffer.isView || function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n }\n\n function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue+','+value : value\n }\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n }\n\n Headers.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n }\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n }\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n }\n\n Headers.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n }\n\n Headers.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) { items.push(name) })\n return iteratorFor(items)\n }\n\n Headers.prototype.values = function() {\n var items = []\n this.forEach(function(value) { items.push(value) })\n return iteratorFor(items)\n }\n\n Headers.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) { items.push([name, value]) })\n return iteratorFor(items)\n }\n\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n }\n\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n }\n\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n }\n\n function Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n throw new Error('unsupported BodyInit type')\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n return consumed(this) || Promise.resolve(this._bodyArrayBuffer)\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return (methods.indexOf(upcased) > -1) ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'omit'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n }\n\n Request.prototype.clone = function() {\n return new Request(this, { body: this._bodyInit })\n }\n\n function decode(body) {\n var form = new FormData()\n body.trim().split('&').forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n }\n\n function parseHeaders(rawHeaders) {\n var headers = new Headers()\n rawHeaders.split(/\\r?\\n/).forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n }\n\n Body.call(Request.prototype)\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = 'status' in options ? options.status : 200\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = 'statusText' in options ? options.statusText : 'OK'\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n }\n\n Body.call(Response.prototype)\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n }\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n }\n\n var redirectStatuses = [301, 302, 303, 307, 308]\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n }\n\n self.Headers = Headers\n self.Request = Request\n self.Response = Response\n\n self.fetch = function(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n var xhr = new XMLHttpRequest()\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n resolve(new Response(body, options))\n }\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'))\n }\n\n xhr.ontimeout = function() {\n reject(new TypeError('Network request failed'))\n }\n\n xhr.open(request.method, request.url, true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob'\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n }\n self.fetch.polyfill = true\n})(typeof self !== 'undefined' ? self : this);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/whatwg-fetch/fetch.js\n// module id = 1\n// module chunks = 0\n//# sourceURL=webpack:///./~/whatwg-fetch/fetch.js?"); + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("'use strict';\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /**\n * Remove the css files you don't need because\n * they are loaded by the environment.\n */\n\n/**\n * Don't remove this. Required dependencies.\n */\n\n\n__webpack_require__(3);\n\n__webpack_require__(5);\n\n__webpack_require__(6);\n\n__webpack_require__(7);\n\nvar _react = __webpack_require__(8);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = __webpack_require__(43);\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _reactRouter = __webpack_require__(189);\n\nvar _dkan_dash = __webpack_require__(252);\n\nvar _dkan_dash2 = _interopRequireDefault(_dkan_dash);\n\nvar _reactDash = __webpack_require__(253);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar settings = void 0;\nvar settingsPath = window.location.pathname.substr(1).replace('/iframe', '').replace('/', '__');\nconsole.log(settingsPath);\nif (Drupal.settings.dkanDash.devSettings[settingsPath]) {\n settings = Drupal.settings.dkanDash.devSettings[settingsPath];\n} else {\n settings = Drupal.settings.dkanDash.dashboard;\n}\n\nvar DKANDashWrapper = function DKANDashWrapper(props) {\n return _react2.default.createElement(_dkan_dash2.default, _extends({}, props, settings));\n};\n\n// Wrap Dashboard component in router\n\nvar App = function (_Component) {\n _inherits(App, _Component);\n\n function App() {\n _classCallCheck(this, App);\n\n return _possibleConstructorReturn(this, (App.__proto__ || Object.getPrototypeOf(App)).apply(this, arguments));\n }\n\n _createClass(App, [{\n key: 'render',\n value: function render() {\n return _react2.default.createElement(\n 'div',\n { id: 'router-container' },\n _react2.default.createElement(\n _reactRouter.Router,\n { history: _reactRouter.browserHistory },\n _react2.default.createElement(_reactRouter.Route, { path: '*', component: DKANDashWrapper })\n )\n );\n }\n }]);\n\n return App;\n}(_react.Component);\n\n/**\n * This renders the App\n */\n\n\ndocument.addEventListener('DOMContentLoaded', function (event) {\n _reactDom2.default.render(_react2.default.createElement(App, null), document.getElementById('root'));\n});\n\nsetInterval(function () {\n if (parent.postMessage) {\n parent.postMessage(document.body.scrollHeight, '*');\n }\n}, 500);\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/index.js\n// module id = 2\n// module chunks = 0\n//# sourceURL=webpack:///./src/index.js?"); + +/***/ }), +/* 3 */ +/***/ (function(module, exports) { + + eval("// removed by extract-text-webpack-plugin\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/nvd3/build/nv.d3.min.css\n// module id = 3\n// module chunks = 0\n//# sourceURL=webpack:///./~/nvd3/build/nv.d3.min.css?"); + +/***/ }), +/* 4 */, +/* 5 */ +/***/ (function(module, exports) { + + eval("// removed by extract-text-webpack-plugin\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dash/dist/react-dashboard.min.css\n// module id = 5\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dash/dist/react-dashboard.min.css?"); + +/***/ }), +/* 6 */ +/***/ (function(module, exports) { + + eval("// removed by extract-text-webpack-plugin\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-select/dist/react-select.min.css\n// module id = 6\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-select/dist/react-select.min.css?"); + +/***/ }), +/* 7 */ +/***/ (function(module, exports) { + + eval("// removed by extract-text-webpack-plugin\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fixed-data-table-2/dist/fixed-data-table.min.css\n// module id = 7\n// module chunks = 0\n//# sourceURL=webpack:///./~/fixed-data-table-2/dist/fixed-data-table.min.css?"); + +/***/ }), +/* 8 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("'use strict';\n\nmodule.exports = __webpack_require__(9);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/react.js\n// module id = 8\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/react.js?"); + +/***/ }), +/* 9 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = __webpack_require__(11);\n\nvar ReactChildren = __webpack_require__(12);\nvar ReactComponent = __webpack_require__(25);\nvar ReactPureComponent = __webpack_require__(28);\nvar ReactClass = __webpack_require__(29);\nvar ReactDOMFactories = __webpack_require__(31);\nvar ReactElement = __webpack_require__(16);\nvar ReactPropTypes = __webpack_require__(36);\nvar ReactVersion = __webpack_require__(41);\n\nvar onlyChild = __webpack_require__(42);\nvar warning = __webpack_require__(18);\n\nvar createElement = ReactElement.createElement;\nvar createFactory = ReactElement.createFactory;\nvar cloneElement = ReactElement.cloneElement;\n\nif (process.env.NODE_ENV !== 'production') {\n var canDefineProperty = __webpack_require__(20);\n var ReactElementValidator = __webpack_require__(32);\n var didWarnPropTypesDeprecated = false;\n createElement = ReactElementValidator.createElement;\n createFactory = ReactElementValidator.createFactory;\n cloneElement = ReactElementValidator.cloneElement;\n}\n\nvar __spread = _assign;\n\nif (process.env.NODE_ENV !== 'production') {\n var warned = false;\n __spread = function () {\n process.env.NODE_ENV !== 'production' ? warning(warned, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;\n warned = true;\n return _assign.apply(null, arguments);\n };\n}\n\nvar React = {\n\n // Modern\n\n Children: {\n map: ReactChildren.map,\n forEach: ReactChildren.forEach,\n count: ReactChildren.count,\n toArray: ReactChildren.toArray,\n only: onlyChild\n },\n\n Component: ReactComponent,\n PureComponent: ReactPureComponent,\n\n createElement: createElement,\n cloneElement: cloneElement,\n isValidElement: ReactElement.isValidElement,\n\n // Classic\n\n PropTypes: ReactPropTypes,\n createClass: ReactClass.createClass,\n createFactory: createFactory,\n createMixin: function (mixin) {\n // Currently a noop. Will be used to validate and trace mixins.\n return mixin;\n },\n\n // This looks DOM specific but these are actually isomorphic helpers\n // since they are just generating DOM strings.\n DOM: ReactDOMFactories,\n\n version: ReactVersion,\n\n // Deprecated hook for JSX spread, don't use this for anything.\n __spread: __spread\n};\n\n// TODO: Fix tests so that this deprecation warning doesn't cause failures.\nif (process.env.NODE_ENV !== 'production') {\n if (canDefineProperty) {\n Object.defineProperty(React, 'PropTypes', {\n get: function () {\n process.env.NODE_ENV !== 'production' ? warning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated. Use ' + 'the prop-types package from npm instead.') : void 0;\n didWarnPropTypesDeprecated = true;\n return ReactPropTypes;\n }\n });\n }\n}\n\nmodule.exports = React;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/React.js\n// module id = 9\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/React.js?"); + +/***/ }), +/* 10 */ +/***/ (function(module, exports) { + + eval("// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/process/browser.js\n// module id = 10\n// module chunks = 0\n//# sourceURL=webpack:///./~/process/browser.js?"); + +/***/ }), +/* 11 */ +/***/ (function(module, exports) { + + eval("/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object-assign/index.js\n// module id = 11\n// module chunks = 0\n//# sourceURL=webpack:///./~/object-assign/index.js?"); + +/***/ }), +/* 12 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar PooledClass = __webpack_require__(13);\nvar ReactElement = __webpack_require__(16);\n\nvar emptyFunction = __webpack_require__(19);\nvar traverseAllChildren = __webpack_require__(22);\n\nvar twoArgumentPooler = PooledClass.twoArgumentPooler;\nvar fourArgumentPooler = PooledClass.fourArgumentPooler;\n\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction escapeUserProvidedKey(text) {\n return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');\n}\n\n/**\n * PooledClass representing the bookkeeping associated with performing a child\n * traversal. Allows avoiding binding callbacks.\n *\n * @constructor ForEachBookKeeping\n * @param {!function} forEachFunction Function to perform traversal with.\n * @param {?*} forEachContext Context to perform context with.\n */\nfunction ForEachBookKeeping(forEachFunction, forEachContext) {\n this.func = forEachFunction;\n this.context = forEachContext;\n this.count = 0;\n}\nForEachBookKeeping.prototype.destructor = function () {\n this.func = null;\n this.context = null;\n this.count = 0;\n};\nPooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler);\n\nfunction forEachSingleChild(bookKeeping, child, name) {\n var func = bookKeeping.func,\n context = bookKeeping.context;\n\n func.call(context, child, bookKeeping.count++);\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.foreach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n if (children == null) {\n return children;\n }\n var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext);\n traverseAllChildren(children, forEachSingleChild, traverseContext);\n ForEachBookKeeping.release(traverseContext);\n}\n\n/**\n * PooledClass representing the bookkeeping associated with performing a child\n * mapping. Allows avoiding binding callbacks.\n *\n * @constructor MapBookKeeping\n * @param {!*} mapResult Object containing the ordered map of results.\n * @param {!function} mapFunction Function to perform mapping with.\n * @param {?*} mapContext Context to perform mapping with.\n */\nfunction MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) {\n this.result = mapResult;\n this.keyPrefix = keyPrefix;\n this.func = mapFunction;\n this.context = mapContext;\n this.count = 0;\n}\nMapBookKeeping.prototype.destructor = function () {\n this.result = null;\n this.keyPrefix = null;\n this.func = null;\n this.context = null;\n this.count = 0;\n};\nPooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler);\n\nfunction mapSingleChildIntoContext(bookKeeping, child, childKey) {\n var result = bookKeeping.result,\n keyPrefix = bookKeeping.keyPrefix,\n func = bookKeeping.func,\n context = bookKeeping.context;\n\n\n var mappedChild = func.call(context, child, bookKeeping.count++);\n if (Array.isArray(mappedChild)) {\n mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);\n } else if (mappedChild != null) {\n if (ReactElement.isValidElement(mappedChild)) {\n mappedChild = ReactElement.cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);\n }\n result.push(mappedChild);\n }\n}\n\nfunction mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {\n var escapedPrefix = '';\n if (prefix != null) {\n escapedPrefix = escapeUserProvidedKey(prefix) + '/';\n }\n var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);\n traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);\n MapBookKeeping.release(traverseContext);\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.map\n *\n * The provided mapFunction(child, key, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, func, context);\n return result;\n}\n\nfunction forEachSingleChildDummy(traverseContext, child, name) {\n return null;\n}\n\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.count\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\nfunction countChildren(children, context) {\n return traverseAllChildren(children, forEachSingleChildDummy, null);\n}\n\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.toarray\n */\nfunction toArray(children) {\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);\n return result;\n}\n\nvar ReactChildren = {\n forEach: forEachChildren,\n map: mapChildren,\n mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal,\n count: countChildren,\n toArray: toArray\n};\n\nmodule.exports = ReactChildren;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactChildren.js\n// module id = 12\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactChildren.js?"); + +/***/ }), +/* 13 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(14);\n\nvar invariant = __webpack_require__(15);\n\n/**\n * Static poolers. Several custom versions for each potential number of\n * arguments. A completely generic pooler is easy to implement, but would\n * require accessing the `arguments` object. In each of these, `this` refers to\n * the Class itself, not an instance. If any others are needed, simply add them\n * here, or in their own files.\n */\nvar oneArgumentPooler = function (copyFieldsFrom) {\n var Klass = this;\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, copyFieldsFrom);\n return instance;\n } else {\n return new Klass(copyFieldsFrom);\n }\n};\n\nvar twoArgumentPooler = function (a1, a2) {\n var Klass = this;\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2);\n return instance;\n } else {\n return new Klass(a1, a2);\n }\n};\n\nvar threeArgumentPooler = function (a1, a2, a3) {\n var Klass = this;\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3);\n return instance;\n } else {\n return new Klass(a1, a2, a3);\n }\n};\n\nvar fourArgumentPooler = function (a1, a2, a3, a4) {\n var Klass = this;\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3, a4);\n return instance;\n } else {\n return new Klass(a1, a2, a3, a4);\n }\n};\n\nvar standardReleaser = function (instance) {\n var Klass = this;\n !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;\n instance.destructor();\n if (Klass.instancePool.length < Klass.poolSize) {\n Klass.instancePool.push(instance);\n }\n};\n\nvar DEFAULT_POOL_SIZE = 10;\nvar DEFAULT_POOLER = oneArgumentPooler;\n\n/**\n * Augments `CopyConstructor` to be a poolable class, augmenting only the class\n * itself (statically) not adding any prototypical fields. Any CopyConstructor\n * you give this may have a `poolSize` property, and will look for a\n * prototypical `destructor` on instances.\n *\n * @param {Function} CopyConstructor Constructor that can be used to reset.\n * @param {Function} pooler Customizable pooler.\n */\nvar addPoolingTo = function (CopyConstructor, pooler) {\n // Casting as any so that flow ignores the actual implementation and trusts\n // it to match the type we declared\n var NewKlass = CopyConstructor;\n NewKlass.instancePool = [];\n NewKlass.getPooled = pooler || DEFAULT_POOLER;\n if (!NewKlass.poolSize) {\n NewKlass.poolSize = DEFAULT_POOL_SIZE;\n }\n NewKlass.release = standardReleaser;\n return NewKlass;\n};\n\nvar PooledClass = {\n addPoolingTo: addPoolingTo,\n oneArgumentPooler: oneArgumentPooler,\n twoArgumentPooler: twoArgumentPooler,\n threeArgumentPooler: threeArgumentPooler,\n fourArgumentPooler: fourArgumentPooler\n};\n\nmodule.exports = PooledClass;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/PooledClass.js\n// module id = 13\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/PooledClass.js?"); + +/***/ }), +/* 14 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n'use strict';\n\n/**\n * WARNING: DO NOT manually require this module.\n * This is a replacement for `invariant(...)` used by the error code system\n * and will _only_ be required by the corresponding babel pass.\n * It always throws.\n */\n\nfunction reactProdInvariant(code) {\n var argCount = arguments.length - 1;\n\n var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;\n\n for (var argIdx = 0; argIdx < argCount; argIdx++) {\n message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);\n }\n\n message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';\n\n var error = new Error(message);\n error.name = 'Invariant Violation';\n error.framesToPop = 1; // we don't care about reactProdInvariant's own frame\n\n throw error;\n}\n\nmodule.exports = reactProdInvariant;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/reactProdInvariant.js\n// module id = 14\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/reactProdInvariant.js?"); + +/***/ }), +/* 15 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/invariant.js\n// module id = 15\n// module chunks = 0\n//# sourceURL=webpack:///./~/fbjs/lib/invariant.js?"); + +/***/ }), +/* 16 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = __webpack_require__(11);\n\nvar ReactCurrentOwner = __webpack_require__(17);\n\nvar warning = __webpack_require__(18);\nvar canDefineProperty = __webpack_require__(20);\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar REACT_ELEMENT_TYPE = __webpack_require__(21);\n\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\n\nvar specialPropKeyWarningShown, specialPropRefWarningShown;\n\nfunction hasValidRef(config) {\n if (process.env.NODE_ENV !== 'production') {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n if (process.env.NODE_ENV !== 'production') {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n process.env.NODE_ENV !== 'production' ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n process.env.NODE_ENV !== 'production' ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n}\n\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, no instanceof check\n * will work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} key\n * @param {string|object} ref\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @param {*} owner\n * @param {*} props\n * @internal\n */\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allow us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n if (process.env.NODE_ENV !== 'production') {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {};\n\n // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n if (canDefineProperty) {\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n });\n // self and source are DEV only properties.\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n });\n // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n } else {\n element._store.validated = false;\n element._self = self;\n element._source = source;\n }\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n\n/**\n * Create and return a new ReactElement of the given type.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement\n */\nReactElement.createElement = function (type, config, children) {\n var propName;\n\n // Reserved names are extracted\n var props = {};\n\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source;\n // Remaining properties are added to a new props object\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n if (process.env.NODE_ENV !== 'production') {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n }\n\n // Resolve default props\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (key || ref) {\n if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n};\n\n/**\n * Return a function that produces ReactElements of a given type.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory\n */\nReactElement.createFactory = function (type) {\n var factory = ReactElement.createElement.bind(null, type);\n // Expose the type on the factory and the prototype so that it can be\n // easily accessed on elements. E.g. `.type === Foo`.\n // This should not be named `constructor` since this may not be the function\n // that created the element, and it may not even be a constructor.\n // Legacy hook TODO: Warn if this is accessed\n factory.type = type;\n return factory;\n};\n\nReactElement.cloneAndReplaceKey = function (oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n\n return newElement;\n};\n\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement\n */\nReactElement.cloneElement = function (element, config, children) {\n var propName;\n\n // Original props are copied\n var props = _assign({}, element.props);\n\n // Reserved names are extracted\n var key = element.key;\n var ref = element.ref;\n // Self is preserved since the owner is preserved.\n var self = element._self;\n // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n var source = element._source;\n\n // Owner will be preserved, unless ref is overridden\n var owner = element._owner;\n\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n // Remaining properties override existing props\n var defaultProps;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n\n return ReactElement(element.type, key, ref, self, source, owner, props);\n};\n\n/**\n * Verifies the object is a ReactElement.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a valid component.\n * @final\n */\nReactElement.isValidElement = function (object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n};\n\nmodule.exports = ReactElement;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactElement.js\n// module id = 16\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactElement.js?"); + +/***/ }), +/* 17 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n\n};\n\nmodule.exports = ReactCurrentOwner;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactCurrentOwner.js\n// module id = 17\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactCurrentOwner.js?"); + +/***/ }), +/* 18 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyFunction = __webpack_require__(19);\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n (function () {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n })();\n}\n\nmodule.exports = warning;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/warning.js\n// module id = 18\n// module chunks = 0\n//# sourceURL=webpack:///./~/fbjs/lib/warning.js?"); + +/***/ }), +/* 19 */ +/***/ (function(module, exports) { + + eval("\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/emptyFunction.js\n// module id = 19\n// module chunks = 0\n//# sourceURL=webpack:///./~/fbjs/lib/emptyFunction.js?"); + +/***/ }), +/* 20 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar canDefineProperty = false;\nif (process.env.NODE_ENV !== 'production') {\n try {\n // $FlowFixMe https://github.com/facebook/flow/issues/285\n Object.defineProperty({}, 'x', { get: function () {} });\n canDefineProperty = true;\n } catch (x) {\n // IE will fail on defineProperty\n }\n}\n\nmodule.exports = canDefineProperty;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/canDefineProperty.js\n// module id = 20\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/canDefineProperty.js?"); + +/***/ }), +/* 21 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n// The Symbol used to tag the ReactElement type. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\n\nvar REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;\n\nmodule.exports = REACT_ELEMENT_TYPE;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactElementSymbol.js\n// module id = 21\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactElementSymbol.js?"); + +/***/ }), +/* 22 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(14);\n\nvar ReactCurrentOwner = __webpack_require__(17);\nvar REACT_ELEMENT_TYPE = __webpack_require__(21);\n\nvar getIteratorFn = __webpack_require__(23);\nvar invariant = __webpack_require__(15);\nvar KeyEscapeUtils = __webpack_require__(24);\nvar warning = __webpack_require__(18);\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n\n/**\n * This is inlined from ReactElement since this file is shared between\n * isomorphic and renderers. We could extract this to a\n *\n */\n\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\nvar didWarnAboutMaps = false;\n\n/**\n * Generate a key string that identifies a component within a set.\n *\n * @param {*} component A component that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\nfunction getComponentKey(component, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (component && typeof component === 'object' && component.key != null) {\n // Explicit key\n return KeyEscapeUtils.escape(component.key);\n }\n // Implicit key determined by the index in the set\n return index.toString(36);\n}\n\n/**\n * @param {?*} children Children tree container.\n * @param {!string} nameSoFar Name of the key path so far.\n * @param {!function} callback Callback to invoke with each child found.\n * @param {?*} traverseContext Used to pass information throughout the traversal\n * process.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {\n var type = typeof children;\n\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n\n if (children === null || type === 'string' || type === 'number' ||\n // The following is inlined from ReactElement. This means we can optimize\n // some checks. React Fiber also inlines this logic for similar purposes.\n type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {\n callback(traverseContext, children,\n // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows.\n nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);\n return 1;\n }\n\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getComponentKey(child, i);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (iteratorFn) {\n var iterator = iteratorFn.call(children);\n var step;\n if (iteratorFn !== children.entries) {\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getComponentKey(child, ii++);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n var mapsAsChildrenAddendum = '';\n if (ReactCurrentOwner.current) {\n var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();\n if (mapsAsChildrenOwnerName) {\n mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';\n }\n }\n process.env.NODE_ENV !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;\n didWarnAboutMaps = true;\n }\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n child = entry[1];\n nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n }\n }\n } else if (type === 'object') {\n var addendum = '';\n if (process.env.NODE_ENV !== 'production') {\n addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';\n if (children._isReactElement) {\n addendum = ' It looks like you\\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';\n }\n if (ReactCurrentOwner.current) {\n var name = ReactCurrentOwner.current.getName();\n if (name) {\n addendum += ' Check the render method of `' + name + '`.';\n }\n }\n }\n var childrenString = String(children);\n true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;\n }\n }\n\n return subtreeCount;\n}\n\n/**\n * Traverses children that are typically specified as `props.children`, but\n * might also be specified through attributes:\n *\n * - `traverseAllChildren(this.props.children, ...)`\n * - `traverseAllChildren(this.props.leftPanelChildren, ...)`\n *\n * The `traverseContext` is an optional argument that is passed through the\n * entire traversal. It can be used to store accumulations or anything else that\n * the callback might find relevant.\n *\n * @param {?*} children Children tree object.\n * @param {!function} callback To invoke upon traversing each child.\n * @param {?*} traverseContext Context for traversal.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildren(children, callback, traverseContext) {\n if (children == null) {\n return 0;\n }\n\n return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n\nmodule.exports = traverseAllChildren;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/traverseAllChildren.js\n// module id = 22\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/traverseAllChildren.js?"); + +/***/ }), +/* 23 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/* global Symbol */\n\nvar ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n/**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\nfunction getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n}\n\nmodule.exports = getIteratorFn;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/getIteratorFn.js\n// module id = 23\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/getIteratorFn.js?"); + +/***/ }), +/* 24 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\nfunction escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = ('' + key).replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n\n return '$' + escapedString;\n}\n\n/**\n * Unescape and unwrap key for human-readable display\n *\n * @param {string} key to unescape.\n * @return {string} the unescaped key.\n */\nfunction unescape(key) {\n var unescapeRegex = /(=0|=2)/g;\n var unescaperLookup = {\n '=0': '=',\n '=2': ':'\n };\n var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);\n\n return ('' + keySubstring).replace(unescapeRegex, function (match) {\n return unescaperLookup[match];\n });\n}\n\nvar KeyEscapeUtils = {\n escape: escape,\n unescape: unescape\n};\n\nmodule.exports = KeyEscapeUtils;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/KeyEscapeUtils.js\n// module id = 24\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/KeyEscapeUtils.js?"); + +/***/ }), +/* 25 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(14);\n\nvar ReactNoopUpdateQueue = __webpack_require__(26);\n\nvar canDefineProperty = __webpack_require__(20);\nvar emptyObject = __webpack_require__(27);\nvar invariant = __webpack_require__(15);\nvar warning = __webpack_require__(18);\n\n/**\n * Base class helpers for the updating state of a component.\n */\nfunction ReactComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n // We initialize the default updater but the real one gets injected by the\n // renderer.\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nReactComponent.prototype.isReactComponent = {};\n\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\nReactComponent.prototype.setState = function (partialState, callback) {\n !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;\n this.updater.enqueueSetState(this, partialState);\n if (callback) {\n this.updater.enqueueCallback(this, callback, 'setState');\n }\n};\n\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\nReactComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this);\n if (callback) {\n this.updater.enqueueCallback(this, callback, 'forceUpdate');\n }\n};\n\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\nif (process.env.NODE_ENV !== 'production') {\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n if (canDefineProperty) {\n Object.defineProperty(ReactComponent.prototype, methodName, {\n get: function () {\n process.env.NODE_ENV !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;\n return undefined;\n }\n });\n }\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n}\n\nmodule.exports = ReactComponent;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactComponent.js\n// module id = 25\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactComponent.js?"); + +/***/ }), +/* 26 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar warning = __webpack_require__(18);\n\nfunction warnNoop(publicInstance, callerName) {\n if (process.env.NODE_ENV !== 'production') {\n var constructor = publicInstance.constructor;\n process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;\n }\n}\n\n/**\n * This is the abstract API for an update queue.\n */\nvar ReactNoopUpdateQueue = {\n\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n\n /**\n * Enqueue a callback that will be executed after all the pending updates\n * have processed.\n *\n * @param {ReactClass} publicInstance The instance to use as `this` context.\n * @param {?function} callback Called after state is updated.\n * @internal\n */\n enqueueCallback: function (publicInstance, callback) {},\n\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState) {\n warnNoop(publicInstance, 'replaceState');\n },\n\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState) {\n warnNoop(publicInstance, 'setState');\n }\n};\n\nmodule.exports = ReactNoopUpdateQueue;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactNoopUpdateQueue.js\n// module id = 26\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactNoopUpdateQueue.js?"); + +/***/ }), +/* 27 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/emptyObject.js\n// module id = 27\n// module chunks = 0\n//# sourceURL=webpack:///./~/fbjs/lib/emptyObject.js?"); + +/***/ }), +/* 28 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = __webpack_require__(11);\n\nvar ReactComponent = __webpack_require__(25);\nvar ReactNoopUpdateQueue = __webpack_require__(26);\n\nvar emptyObject = __webpack_require__(27);\n\n/**\n * Base class helpers for the updating state of a component.\n */\nfunction ReactPureComponent(props, context, updater) {\n // Duplicated from ReactComponent.\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n // We initialize the default updater but the real one gets injected by the\n // renderer.\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nfunction ComponentDummy() {}\nComponentDummy.prototype = ReactComponent.prototype;\nReactPureComponent.prototype = new ComponentDummy();\nReactPureComponent.prototype.constructor = ReactPureComponent;\n// Avoid an extra prototype jump for these methods.\n_assign(ReactPureComponent.prototype, ReactComponent.prototype);\nReactPureComponent.prototype.isPureReactComponent = true;\n\nmodule.exports = ReactPureComponent;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactPureComponent.js\n// module id = 28\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactPureComponent.js?"); + +/***/ }), +/* 29 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(14),\n _assign = __webpack_require__(11);\n\nvar ReactComponent = __webpack_require__(25);\nvar ReactElement = __webpack_require__(16);\nvar ReactPropTypeLocationNames = __webpack_require__(30);\nvar ReactNoopUpdateQueue = __webpack_require__(26);\n\nvar emptyObject = __webpack_require__(27);\nvar invariant = __webpack_require__(15);\nvar warning = __webpack_require__(18);\n\nvar MIXINS_KEY = 'mixins';\n\n// Helper function to allow the creation of anonymous functions which do not\n// have .name set to the name of the variable being assigned to.\nfunction identity(fn) {\n return fn;\n}\n\n/**\n * Policies that describe methods in `ReactClassInterface`.\n */\n\n\nvar injectedMixins = [];\n\n/**\n * Composite components are higher-level components that compose other composite\n * or host components.\n *\n * To create a new type of `ReactClass`, pass a specification of\n * your new class to `React.createClass`. The only requirement of your class\n * specification is that you implement a `render` method.\n *\n * var MyComponent = React.createClass({\n * render: function() {\n * return
Hello World
;\n * }\n * });\n *\n * The class specification supports a specific protocol of methods that have\n * special meaning (e.g. `render`). See `ReactClassInterface` for\n * more the comprehensive protocol. Any other properties and methods in the\n * class specification will be available on the prototype.\n *\n * @interface ReactClassInterface\n * @internal\n */\nvar ReactClassInterface = {\n\n /**\n * An array of Mixin objects to include when defining your component.\n *\n * @type {array}\n * @optional\n */\n mixins: 'DEFINE_MANY',\n\n /**\n * An object containing properties and methods that should be defined on\n * the component's constructor instead of its prototype (static methods).\n *\n * @type {object}\n * @optional\n */\n statics: 'DEFINE_MANY',\n\n /**\n * Definition of prop types for this component.\n *\n * @type {object}\n * @optional\n */\n propTypes: 'DEFINE_MANY',\n\n /**\n * Definition of context types for this component.\n *\n * @type {object}\n * @optional\n */\n contextTypes: 'DEFINE_MANY',\n\n /**\n * Definition of context types this component sets for its children.\n *\n * @type {object}\n * @optional\n */\n childContextTypes: 'DEFINE_MANY',\n\n // ==== Definition methods ====\n\n /**\n * Invoked when the component is mounted. Values in the mapping will be set on\n * `this.props` if that prop is not specified (i.e. using an `in` check).\n *\n * This method is invoked before `getInitialState` and therefore cannot rely\n * on `this.state` or use `this.setState`.\n *\n * @return {object}\n * @optional\n */\n getDefaultProps: 'DEFINE_MANY_MERGED',\n\n /**\n * Invoked once before the component is mounted. The return value will be used\n * as the initial value of `this.state`.\n *\n * getInitialState: function() {\n * return {\n * isOn: false,\n * fooBaz: new BazFoo()\n * }\n * }\n *\n * @return {object}\n * @optional\n */\n getInitialState: 'DEFINE_MANY_MERGED',\n\n /**\n * @return {object}\n * @optional\n */\n getChildContext: 'DEFINE_MANY_MERGED',\n\n /**\n * Uses props from `this.props` and state from `this.state` to render the\n * structure of the component.\n *\n * No guarantees are made about when or how often this method is invoked, so\n * it must not have side effects.\n *\n * render: function() {\n * var name = this.props.name;\n * return
Hello, {name}!
;\n * }\n *\n * @return {ReactComponent}\n * @required\n */\n render: 'DEFINE_ONCE',\n\n // ==== Delegate methods ====\n\n /**\n * Invoked when the component is initially created and about to be mounted.\n * This may have side effects, but any external subscriptions or data created\n * by this method must be cleaned up in `componentWillUnmount`.\n *\n * @optional\n */\n componentWillMount: 'DEFINE_MANY',\n\n /**\n * Invoked when the component has been mounted and has a DOM representation.\n * However, there is no guarantee that the DOM node is in the document.\n *\n * Use this as an opportunity to operate on the DOM when the component has\n * been mounted (initialized and rendered) for the first time.\n *\n * @param {DOMElement} rootNode DOM element representing the component.\n * @optional\n */\n componentDidMount: 'DEFINE_MANY',\n\n /**\n * Invoked before the component receives new props.\n *\n * Use this as an opportunity to react to a prop transition by updating the\n * state using `this.setState`. Current props are accessed via `this.props`.\n *\n * componentWillReceiveProps: function(nextProps, nextContext) {\n * this.setState({\n * likesIncreasing: nextProps.likeCount > this.props.likeCount\n * });\n * }\n *\n * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop\n * transition may cause a state change, but the opposite is not true. If you\n * need it, you are probably looking for `componentWillUpdate`.\n *\n * @param {object} nextProps\n * @optional\n */\n componentWillReceiveProps: 'DEFINE_MANY',\n\n /**\n * Invoked while deciding if the component should be updated as a result of\n * receiving new props, state and/or context.\n *\n * Use this as an opportunity to `return false` when you're certain that the\n * transition to the new props/state/context will not require a component\n * update.\n *\n * shouldComponentUpdate: function(nextProps, nextState, nextContext) {\n * return !equal(nextProps, this.props) ||\n * !equal(nextState, this.state) ||\n * !equal(nextContext, this.context);\n * }\n *\n * @param {object} nextProps\n * @param {?object} nextState\n * @param {?object} nextContext\n * @return {boolean} True if the component should update.\n * @optional\n */\n shouldComponentUpdate: 'DEFINE_ONCE',\n\n /**\n * Invoked when the component is about to update due to a transition from\n * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`\n * and `nextContext`.\n *\n * Use this as an opportunity to perform preparation before an update occurs.\n *\n * NOTE: You **cannot** use `this.setState()` in this method.\n *\n * @param {object} nextProps\n * @param {?object} nextState\n * @param {?object} nextContext\n * @param {ReactReconcileTransaction} transaction\n * @optional\n */\n componentWillUpdate: 'DEFINE_MANY',\n\n /**\n * Invoked when the component's DOM representation has been updated.\n *\n * Use this as an opportunity to operate on the DOM when the component has\n * been updated.\n *\n * @param {object} prevProps\n * @param {?object} prevState\n * @param {?object} prevContext\n * @param {DOMElement} rootNode DOM element representing the component.\n * @optional\n */\n componentDidUpdate: 'DEFINE_MANY',\n\n /**\n * Invoked when the component is about to be removed from its parent and have\n * its DOM representation destroyed.\n *\n * Use this as an opportunity to deallocate any external resources.\n *\n * NOTE: There is no `componentDidUnmount` since your component will have been\n * destroyed by that point.\n *\n * @optional\n */\n componentWillUnmount: 'DEFINE_MANY',\n\n // ==== Advanced methods ====\n\n /**\n * Updates the component's currently mounted DOM representation.\n *\n * By default, this implements React's rendering and reconciliation algorithm.\n * Sophisticated clients may wish to override this.\n *\n * @param {ReactReconcileTransaction} transaction\n * @internal\n * @overridable\n */\n updateComponent: 'OVERRIDE_BASE'\n\n};\n\n/**\n * Mapping from class specification keys to special processing functions.\n *\n * Although these are declared like instance properties in the specification\n * when defining classes using `React.createClass`, they are actually static\n * and are accessible on the constructor instead of the prototype. Despite\n * being static, they must be defined outside of the \"statics\" key under\n * which all other static methods are defined.\n */\nvar RESERVED_SPEC_KEYS = {\n displayName: function (Constructor, displayName) {\n Constructor.displayName = displayName;\n },\n mixins: function (Constructor, mixins) {\n if (mixins) {\n for (var i = 0; i < mixins.length; i++) {\n mixSpecIntoComponent(Constructor, mixins[i]);\n }\n }\n },\n childContextTypes: function (Constructor, childContextTypes) {\n if (process.env.NODE_ENV !== 'production') {\n validateTypeDef(Constructor, childContextTypes, 'childContext');\n }\n Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);\n },\n contextTypes: function (Constructor, contextTypes) {\n if (process.env.NODE_ENV !== 'production') {\n validateTypeDef(Constructor, contextTypes, 'context');\n }\n Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);\n },\n /**\n * Special case getDefaultProps which should move into statics but requires\n * automatic merging.\n */\n getDefaultProps: function (Constructor, getDefaultProps) {\n if (Constructor.getDefaultProps) {\n Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps);\n } else {\n Constructor.getDefaultProps = getDefaultProps;\n }\n },\n propTypes: function (Constructor, propTypes) {\n if (process.env.NODE_ENV !== 'production') {\n validateTypeDef(Constructor, propTypes, 'prop');\n }\n Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);\n },\n statics: function (Constructor, statics) {\n mixStaticSpecIntoComponent(Constructor, statics);\n },\n autobind: function () {} };\n\nfunction validateTypeDef(Constructor, typeDef, location) {\n for (var propName in typeDef) {\n if (typeDef.hasOwnProperty(propName)) {\n // use a warning instead of an invariant so components\n // don't show up in prod but only in __DEV__\n process.env.NODE_ENV !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : void 0;\n }\n }\n}\n\nfunction validateMethodOverride(isAlreadyDefined, name) {\n var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;\n\n // Disallow overriding of base class methods unless explicitly allowed.\n if (ReactClassMixin.hasOwnProperty(name)) {\n !(specPolicy === 'OVERRIDE_BASE') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0;\n }\n\n // Disallow defining methods more than once unless explicitly allowed.\n if (isAlreadyDefined) {\n !(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0;\n }\n}\n\n/**\n * Mixin helper which handles policy validation and reserved\n * specification keys when building React classes.\n */\nfunction mixSpecIntoComponent(Constructor, spec) {\n if (!spec) {\n if (process.env.NODE_ENV !== 'production') {\n var typeofSpec = typeof spec;\n var isMixinValid = typeofSpec === 'object' && spec !== null;\n\n process.env.NODE_ENV !== 'production' ? warning(isMixinValid, '%s: You\\'re attempting to include a mixin that is either null ' + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec) : void 0;\n }\n\n return;\n }\n\n !(typeof spec !== 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\\'re attempting to use a component class or function as a mixin. Instead, just use a regular object.') : _prodInvariant('75') : void 0;\n !!ReactElement.isValidElement(spec) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\\'re attempting to use a component as a mixin. Instead, just use a regular object.') : _prodInvariant('76') : void 0;\n\n var proto = Constructor.prototype;\n var autoBindPairs = proto.__reactAutoBindPairs;\n\n // By handling mixins before any other properties, we ensure the same\n // chaining order is applied to methods with DEFINE_MANY policy, whether\n // mixins are listed before or after these methods in the spec.\n if (spec.hasOwnProperty(MIXINS_KEY)) {\n RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);\n }\n\n for (var name in spec) {\n if (!spec.hasOwnProperty(name)) {\n continue;\n }\n\n if (name === MIXINS_KEY) {\n // We have already handled mixins in a special case above.\n continue;\n }\n\n var property = spec[name];\n var isAlreadyDefined = proto.hasOwnProperty(name);\n validateMethodOverride(isAlreadyDefined, name);\n\n if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {\n RESERVED_SPEC_KEYS[name](Constructor, property);\n } else {\n // Setup methods on prototype:\n // The following member methods should not be automatically bound:\n // 1. Expected ReactClass methods (in the \"interface\").\n // 2. Overridden methods (that were mixed in).\n var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);\n var isFunction = typeof property === 'function';\n var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false;\n\n if (shouldAutoBind) {\n autoBindPairs.push(name, property);\n proto[name] = property;\n } else {\n if (isAlreadyDefined) {\n var specPolicy = ReactClassInterface[name];\n\n // These cases should already be caught by validateMethodOverride.\n !(isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0;\n\n // For methods which are defined more than once, call the existing\n // methods before calling the new property, merging if appropriate.\n if (specPolicy === 'DEFINE_MANY_MERGED') {\n proto[name] = createMergedResultFunction(proto[name], property);\n } else if (specPolicy === 'DEFINE_MANY') {\n proto[name] = createChainedFunction(proto[name], property);\n }\n } else {\n proto[name] = property;\n if (process.env.NODE_ENV !== 'production') {\n // Add verbose displayName to the function, which helps when looking\n // at profiling tools.\n if (typeof property === 'function' && spec.displayName) {\n proto[name].displayName = spec.displayName + '_' + name;\n }\n }\n }\n }\n }\n }\n}\n\nfunction mixStaticSpecIntoComponent(Constructor, statics) {\n if (!statics) {\n return;\n }\n for (var name in statics) {\n var property = statics[name];\n if (!statics.hasOwnProperty(name)) {\n continue;\n }\n\n var isReserved = name in RESERVED_SPEC_KEYS;\n !!isReserved ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\\'t be on the \"statics\" key. Define it as an instance property instead; it will still be accessible on the constructor.', name) : _prodInvariant('78', name) : void 0;\n\n var isInherited = name in Constructor;\n !!isInherited ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('79', name) : void 0;\n Constructor[name] = property;\n }\n}\n\n/**\n * Merge two objects, but throw if both contain the same key.\n *\n * @param {object} one The first object, which is mutated.\n * @param {object} two The second object\n * @return {object} one after it has been mutated to contain everything in two.\n */\nfunction mergeIntoWithNoDuplicateKeys(one, two) {\n !(one && two && typeof one === 'object' && typeof two === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;\n\n for (var key in two) {\n if (two.hasOwnProperty(key)) {\n !(one[key] === undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', key) : _prodInvariant('81', key) : void 0;\n one[key] = two[key];\n }\n }\n return one;\n}\n\n/**\n * Creates a function that invokes two functions and merges their return values.\n *\n * @param {function} one Function to invoke first.\n * @param {function} two Function to invoke second.\n * @return {function} Function that invokes the two argument functions.\n * @private\n */\nfunction createMergedResultFunction(one, two) {\n return function mergedResult() {\n var a = one.apply(this, arguments);\n var b = two.apply(this, arguments);\n if (a == null) {\n return b;\n } else if (b == null) {\n return a;\n }\n var c = {};\n mergeIntoWithNoDuplicateKeys(c, a);\n mergeIntoWithNoDuplicateKeys(c, b);\n return c;\n };\n}\n\n/**\n * Creates a function that invokes two functions and ignores their return vales.\n *\n * @param {function} one Function to invoke first.\n * @param {function} two Function to invoke second.\n * @return {function} Function that invokes the two argument functions.\n * @private\n */\nfunction createChainedFunction(one, two) {\n return function chainedFunction() {\n one.apply(this, arguments);\n two.apply(this, arguments);\n };\n}\n\n/**\n * Binds a method to the component.\n *\n * @param {object} component Component whose method is going to be bound.\n * @param {function} method Method to be bound.\n * @return {function} The bound method.\n */\nfunction bindAutoBindMethod(component, method) {\n var boundMethod = method.bind(component);\n if (process.env.NODE_ENV !== 'production') {\n boundMethod.__reactBoundContext = component;\n boundMethod.__reactBoundMethod = method;\n boundMethod.__reactBoundArguments = null;\n var componentName = component.constructor.displayName;\n var _bind = boundMethod.bind;\n boundMethod.bind = function (newThis) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n // User is trying to bind() an autobound method; we effectively will\n // ignore the value of \"this\" that the user is trying to use, so\n // let's warn.\n if (newThis !== component && newThis !== null) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;\n } else if (!args.length) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0;\n return boundMethod;\n }\n var reboundMethod = _bind.apply(boundMethod, arguments);\n reboundMethod.__reactBoundContext = component;\n reboundMethod.__reactBoundMethod = method;\n reboundMethod.__reactBoundArguments = args;\n return reboundMethod;\n };\n }\n return boundMethod;\n}\n\n/**\n * Binds all auto-bound methods in a component.\n *\n * @param {object} component Component whose method is going to be bound.\n */\nfunction bindAutoBindMethods(component) {\n var pairs = component.__reactAutoBindPairs;\n for (var i = 0; i < pairs.length; i += 2) {\n var autoBindKey = pairs[i];\n var method = pairs[i + 1];\n component[autoBindKey] = bindAutoBindMethod(component, method);\n }\n}\n\n/**\n * Add more to the ReactClass base class. These are all legacy features and\n * therefore not already part of the modern ReactComponent.\n */\nvar ReactClassMixin = {\n\n /**\n * TODO: This will be deprecated because state should always keep a consistent\n * type signature and the only use case for this, is to avoid that.\n */\n replaceState: function (newState, callback) {\n this.updater.enqueueReplaceState(this, newState);\n if (callback) {\n this.updater.enqueueCallback(this, callback, 'replaceState');\n }\n },\n\n /**\n * Checks whether or not this composite component is mounted.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function () {\n return this.updater.isMounted(this);\n }\n};\n\nvar ReactClassComponent = function () {};\n_assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);\n\nvar didWarnDeprecated = false;\n\n/**\n * Module for creating composite components.\n *\n * @class ReactClass\n */\nvar ReactClass = {\n\n /**\n * Creates a composite component class given a class specification.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass\n *\n * @param {object} spec Class specification (which must define `render`).\n * @return {function} Component constructor function.\n * @public\n */\n createClass: function (spec) {\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== 'production' ? warning(didWarnDeprecated, '%s: React.createClass is deprecated and will be removed in version 16. ' + 'Use plain JavaScript classes instead. If you\\'re not yet ready to ' + 'migrate, create-react-class is available on npm as a ' + 'drop-in replacement.', spec && spec.displayName || 'A Component') : void 0;\n didWarnDeprecated = true;\n }\n\n // To keep our warnings more understandable, we'll use a little hack here to\n // ensure that Constructor.name !== 'Constructor'. This makes sure we don't\n // unnecessarily identify a class without displayName as 'Constructor'.\n var Constructor = identity(function (props, context, updater) {\n // This constructor gets overridden by mocks. The argument is used\n // by mocks to assert on what gets mounted.\n\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0;\n }\n\n // Wire up auto-binding\n if (this.__reactAutoBindPairs.length) {\n bindAutoBindMethods(this);\n }\n\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n\n this.state = null;\n\n // ReactClasses doesn't have constructors. Instead, they use the\n // getInitialState and componentWillMount methods for initialization.\n\n var initialState = this.getInitialState ? this.getInitialState() : null;\n if (process.env.NODE_ENV !== 'production') {\n // We allow auto-mocks to proceed as if they're returning null.\n if (initialState === undefined && this.getInitialState._isMockFunction) {\n // This is probably bad practice. Consider warning here and\n // deprecating this convenience.\n initialState = null;\n }\n }\n !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0;\n\n this.state = initialState;\n });\n Constructor.prototype = new ReactClassComponent();\n Constructor.prototype.constructor = Constructor;\n Constructor.prototype.__reactAutoBindPairs = [];\n\n injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));\n\n mixSpecIntoComponent(Constructor, spec);\n\n // Initialize the defaultProps property after all mixins have been merged.\n if (Constructor.getDefaultProps) {\n Constructor.defaultProps = Constructor.getDefaultProps();\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // This is a tag to indicate that the use of these method names is ok,\n // since it's used with createClass. If it's not, then it's likely a\n // mistake so we'll warn you to use the static property, property\n // initializer or constructor respectively.\n if (Constructor.getDefaultProps) {\n Constructor.getDefaultProps.isReactClassApproved = {};\n }\n if (Constructor.prototype.getInitialState) {\n Constructor.prototype.getInitialState.isReactClassApproved = {};\n }\n }\n\n !Constructor.prototype.render ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : _prodInvariant('83') : void 0;\n\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component') : void 0;\n process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0;\n }\n\n // Reduce time spent doing lookups by setting these on the prototype.\n for (var methodName in ReactClassInterface) {\n if (!Constructor.prototype[methodName]) {\n Constructor.prototype[methodName] = null;\n }\n }\n\n return Constructor;\n },\n\n injection: {\n injectMixin: function (mixin) {\n injectedMixins.push(mixin);\n }\n }\n\n};\n\nmodule.exports = ReactClass;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactClass.js\n// module id = 29\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactClass.js?"); + +/***/ }), +/* 30 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactPropTypeLocationNames = {};\n\nif (process.env.NODE_ENV !== 'production') {\n ReactPropTypeLocationNames = {\n prop: 'prop',\n context: 'context',\n childContext: 'child context'\n };\n}\n\nmodule.exports = ReactPropTypeLocationNames;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactPropTypeLocationNames.js\n// module id = 30\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactPropTypeLocationNames.js?"); + +/***/ }), +/* 31 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactElement = __webpack_require__(16);\n\n/**\n * Create a factory that creates HTML tag elements.\n *\n * @private\n */\nvar createDOMFactory = ReactElement.createFactory;\nif (process.env.NODE_ENV !== 'production') {\n var ReactElementValidator = __webpack_require__(32);\n createDOMFactory = ReactElementValidator.createFactory;\n}\n\n/**\n * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.\n * This is also accessible via `React.DOM`.\n *\n * @public\n */\nvar ReactDOMFactories = {\n a: createDOMFactory('a'),\n abbr: createDOMFactory('abbr'),\n address: createDOMFactory('address'),\n area: createDOMFactory('area'),\n article: createDOMFactory('article'),\n aside: createDOMFactory('aside'),\n audio: createDOMFactory('audio'),\n b: createDOMFactory('b'),\n base: createDOMFactory('base'),\n bdi: createDOMFactory('bdi'),\n bdo: createDOMFactory('bdo'),\n big: createDOMFactory('big'),\n blockquote: createDOMFactory('blockquote'),\n body: createDOMFactory('body'),\n br: createDOMFactory('br'),\n button: createDOMFactory('button'),\n canvas: createDOMFactory('canvas'),\n caption: createDOMFactory('caption'),\n cite: createDOMFactory('cite'),\n code: createDOMFactory('code'),\n col: createDOMFactory('col'),\n colgroup: createDOMFactory('colgroup'),\n data: createDOMFactory('data'),\n datalist: createDOMFactory('datalist'),\n dd: createDOMFactory('dd'),\n del: createDOMFactory('del'),\n details: createDOMFactory('details'),\n dfn: createDOMFactory('dfn'),\n dialog: createDOMFactory('dialog'),\n div: createDOMFactory('div'),\n dl: createDOMFactory('dl'),\n dt: createDOMFactory('dt'),\n em: createDOMFactory('em'),\n embed: createDOMFactory('embed'),\n fieldset: createDOMFactory('fieldset'),\n figcaption: createDOMFactory('figcaption'),\n figure: createDOMFactory('figure'),\n footer: createDOMFactory('footer'),\n form: createDOMFactory('form'),\n h1: createDOMFactory('h1'),\n h2: createDOMFactory('h2'),\n h3: createDOMFactory('h3'),\n h4: createDOMFactory('h4'),\n h5: createDOMFactory('h5'),\n h6: createDOMFactory('h6'),\n head: createDOMFactory('head'),\n header: createDOMFactory('header'),\n hgroup: createDOMFactory('hgroup'),\n hr: createDOMFactory('hr'),\n html: createDOMFactory('html'),\n i: createDOMFactory('i'),\n iframe: createDOMFactory('iframe'),\n img: createDOMFactory('img'),\n input: createDOMFactory('input'),\n ins: createDOMFactory('ins'),\n kbd: createDOMFactory('kbd'),\n keygen: createDOMFactory('keygen'),\n label: createDOMFactory('label'),\n legend: createDOMFactory('legend'),\n li: createDOMFactory('li'),\n link: createDOMFactory('link'),\n main: createDOMFactory('main'),\n map: createDOMFactory('map'),\n mark: createDOMFactory('mark'),\n menu: createDOMFactory('menu'),\n menuitem: createDOMFactory('menuitem'),\n meta: createDOMFactory('meta'),\n meter: createDOMFactory('meter'),\n nav: createDOMFactory('nav'),\n noscript: createDOMFactory('noscript'),\n object: createDOMFactory('object'),\n ol: createDOMFactory('ol'),\n optgroup: createDOMFactory('optgroup'),\n option: createDOMFactory('option'),\n output: createDOMFactory('output'),\n p: createDOMFactory('p'),\n param: createDOMFactory('param'),\n picture: createDOMFactory('picture'),\n pre: createDOMFactory('pre'),\n progress: createDOMFactory('progress'),\n q: createDOMFactory('q'),\n rp: createDOMFactory('rp'),\n rt: createDOMFactory('rt'),\n ruby: createDOMFactory('ruby'),\n s: createDOMFactory('s'),\n samp: createDOMFactory('samp'),\n script: createDOMFactory('script'),\n section: createDOMFactory('section'),\n select: createDOMFactory('select'),\n small: createDOMFactory('small'),\n source: createDOMFactory('source'),\n span: createDOMFactory('span'),\n strong: createDOMFactory('strong'),\n style: createDOMFactory('style'),\n sub: createDOMFactory('sub'),\n summary: createDOMFactory('summary'),\n sup: createDOMFactory('sup'),\n table: createDOMFactory('table'),\n tbody: createDOMFactory('tbody'),\n td: createDOMFactory('td'),\n textarea: createDOMFactory('textarea'),\n tfoot: createDOMFactory('tfoot'),\n th: createDOMFactory('th'),\n thead: createDOMFactory('thead'),\n time: createDOMFactory('time'),\n title: createDOMFactory('title'),\n tr: createDOMFactory('tr'),\n track: createDOMFactory('track'),\n u: createDOMFactory('u'),\n ul: createDOMFactory('ul'),\n 'var': createDOMFactory('var'),\n video: createDOMFactory('video'),\n wbr: createDOMFactory('wbr'),\n\n // SVG\n circle: createDOMFactory('circle'),\n clipPath: createDOMFactory('clipPath'),\n defs: createDOMFactory('defs'),\n ellipse: createDOMFactory('ellipse'),\n g: createDOMFactory('g'),\n image: createDOMFactory('image'),\n line: createDOMFactory('line'),\n linearGradient: createDOMFactory('linearGradient'),\n mask: createDOMFactory('mask'),\n path: createDOMFactory('path'),\n pattern: createDOMFactory('pattern'),\n polygon: createDOMFactory('polygon'),\n polyline: createDOMFactory('polyline'),\n radialGradient: createDOMFactory('radialGradient'),\n rect: createDOMFactory('rect'),\n stop: createDOMFactory('stop'),\n svg: createDOMFactory('svg'),\n text: createDOMFactory('text'),\n tspan: createDOMFactory('tspan')\n};\n\nmodule.exports = ReactDOMFactories;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactDOMFactories.js\n// module id = 31\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactDOMFactories.js?"); + +/***/ }), +/* 32 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/**\n * ReactElementValidator provides a wrapper around a element factory\n * which validates the props passed to the element. This is intended to be\n * used only in DEV and could be replaced by a static type checker for languages\n * that support it.\n */\n\n'use strict';\n\nvar ReactCurrentOwner = __webpack_require__(17);\nvar ReactComponentTreeHook = __webpack_require__(33);\nvar ReactElement = __webpack_require__(16);\n\nvar checkReactTypeSpec = __webpack_require__(34);\n\nvar canDefineProperty = __webpack_require__(20);\nvar getIteratorFn = __webpack_require__(23);\nvar warning = __webpack_require__(18);\n\nfunction getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = ReactCurrentOwner.current.getName();\n if (name) {\n return ' Check the render method of `' + name + '`.';\n }\n }\n return '';\n}\n\nfunction getSourceInfoErrorAddendum(elementProps) {\n if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {\n var source = elementProps.__source;\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return ' Check your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n}\n\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = ' Check the top-level render call using <' + parentName + '>.';\n }\n }\n return info;\n}\n\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\nfunction validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n\n var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {});\n\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (memoizer[currentComponentErrorInfo]) {\n return;\n }\n memoizer[currentComponentErrorInfo] = true;\n\n // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = ' It was passed a child from ' + element._owner.getName() + '.';\n }\n\n process.env.NODE_ENV !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique \"key\" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;\n}\n\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\nfunction validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (ReactElement.isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (ReactElement.isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n // Entry iterators provide implicit keys.\n if (iteratorFn) {\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n while (!(step = iterator.next()).done) {\n if (ReactElement.isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n}\n\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\nfunction validatePropTypes(element) {\n var componentClass = element.type;\n if (typeof componentClass !== 'function') {\n return;\n }\n var name = componentClass.displayName || componentClass.name;\n if (componentClass.propTypes) {\n checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);\n }\n if (typeof componentClass.getDefaultProps === 'function') {\n process.env.NODE_ENV !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;\n }\n}\n\nvar ReactElementValidator = {\n\n createElement: function (type, props, children) {\n var validType = typeof type === 'string' || typeof type === 'function';\n // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n if (!validType) {\n if (typeof type !== 'function' && typeof type !== 'string') {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + 'it\\'s defined in.';\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n info += ReactComponentTreeHook.getCurrentStackAddendum();\n\n process.env.NODE_ENV !== 'production' ? warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : void 0;\n }\n }\n\n var element = ReactElement.createElement.apply(this, arguments);\n\n // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n if (element == null) {\n return element;\n }\n\n // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n\n validatePropTypes(element);\n\n return element;\n },\n\n createFactory: function (type) {\n var validatedFactory = ReactElementValidator.createElement.bind(null, type);\n // Legacy hook TODO: Warn if this is accessed\n validatedFactory.type = type;\n\n if (process.env.NODE_ENV !== 'production') {\n if (canDefineProperty) {\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0;\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n }\n\n return validatedFactory;\n },\n\n cloneElement: function (element, props, children) {\n var newElement = ReactElement.cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n }\n\n};\n\nmodule.exports = ReactElementValidator;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactElementValidator.js\n// module id = 32\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactElementValidator.js?"); + +/***/ }), +/* 33 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(14);\n\nvar ReactCurrentOwner = __webpack_require__(17);\n\nvar invariant = __webpack_require__(15);\nvar warning = __webpack_require__(18);\n\nfunction isNative(fn) {\n // Based on isNative() from Lodash\n var funcToString = Function.prototype.toString;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var reIsNative = RegExp('^' + funcToString\n // Take an example native function source for comparison\n .call(hasOwnProperty)\n // Strip regex characters so we can use it for regex\n .replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n // Remove hasOwnProperty from the template to make it generic\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n try {\n var source = funcToString.call(fn);\n return reIsNative.test(source);\n } catch (err) {\n return false;\n }\n}\n\nvar canUseCollections =\n// Array.from\ntypeof Array.from === 'function' &&\n// Map\ntypeof Map === 'function' && isNative(Map) &&\n// Map.prototype.keys\nMap.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&\n// Set\ntypeof Set === 'function' && isNative(Set) &&\n// Set.prototype.keys\nSet.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);\n\nvar setItem;\nvar getItem;\nvar removeItem;\nvar getItemIDs;\nvar addRoot;\nvar removeRoot;\nvar getRootIDs;\n\nif (canUseCollections) {\n var itemMap = new Map();\n var rootIDSet = new Set();\n\n setItem = function (id, item) {\n itemMap.set(id, item);\n };\n getItem = function (id) {\n return itemMap.get(id);\n };\n removeItem = function (id) {\n itemMap['delete'](id);\n };\n getItemIDs = function () {\n return Array.from(itemMap.keys());\n };\n\n addRoot = function (id) {\n rootIDSet.add(id);\n };\n removeRoot = function (id) {\n rootIDSet['delete'](id);\n };\n getRootIDs = function () {\n return Array.from(rootIDSet.keys());\n };\n} else {\n var itemByKey = {};\n var rootByKey = {};\n\n // Use non-numeric keys to prevent V8 performance issues:\n // https://github.com/facebook/react/pull/7232\n var getKeyFromID = function (id) {\n return '.' + id;\n };\n var getIDFromKey = function (key) {\n return parseInt(key.substr(1), 10);\n };\n\n setItem = function (id, item) {\n var key = getKeyFromID(id);\n itemByKey[key] = item;\n };\n getItem = function (id) {\n var key = getKeyFromID(id);\n return itemByKey[key];\n };\n removeItem = function (id) {\n var key = getKeyFromID(id);\n delete itemByKey[key];\n };\n getItemIDs = function () {\n return Object.keys(itemByKey).map(getIDFromKey);\n };\n\n addRoot = function (id) {\n var key = getKeyFromID(id);\n rootByKey[key] = true;\n };\n removeRoot = function (id) {\n var key = getKeyFromID(id);\n delete rootByKey[key];\n };\n getRootIDs = function () {\n return Object.keys(rootByKey).map(getIDFromKey);\n };\n}\n\nvar unmountedIDs = [];\n\nfunction purgeDeep(id) {\n var item = getItem(id);\n if (item) {\n var childIDs = item.childIDs;\n\n removeItem(id);\n childIDs.forEach(purgeDeep);\n }\n}\n\nfunction describeComponentFrame(name, source, ownerName) {\n return '\\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');\n}\n\nfunction getDisplayName(element) {\n if (element == null) {\n return '#empty';\n } else if (typeof element === 'string' || typeof element === 'number') {\n return '#text';\n } else if (typeof element.type === 'string') {\n return element.type;\n } else {\n return element.type.displayName || element.type.name || 'Unknown';\n }\n}\n\nfunction describeID(id) {\n var name = ReactComponentTreeHook.getDisplayName(id);\n var element = ReactComponentTreeHook.getElement(id);\n var ownerID = ReactComponentTreeHook.getOwnerID(id);\n var ownerName;\n if (ownerID) {\n ownerName = ReactComponentTreeHook.getDisplayName(ownerID);\n }\n process.env.NODE_ENV !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;\n return describeComponentFrame(name, element && element._source, ownerName);\n}\n\nvar ReactComponentTreeHook = {\n onSetChildren: function (id, nextChildIDs) {\n var item = getItem(id);\n !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;\n item.childIDs = nextChildIDs;\n\n for (var i = 0; i < nextChildIDs.length; i++) {\n var nextChildID = nextChildIDs[i];\n var nextChild = getItem(nextChildID);\n !nextChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0;\n !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0;\n !nextChild.isMounted ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0;\n if (nextChild.parentID == null) {\n nextChild.parentID = id;\n // TODO: This shouldn't be necessary but mounting a new root during in\n // componentWillMount currently causes not-yet-mounted components to\n // be purged from our tree data so their parent id is missing.\n }\n !(nextChild.parentID === id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0;\n }\n },\n onBeforeMountComponent: function (id, element, parentID) {\n var item = {\n element: element,\n parentID: parentID,\n text: null,\n childIDs: [],\n isMounted: false,\n updateCount: 0\n };\n setItem(id, item);\n },\n onBeforeUpdateComponent: function (id, element) {\n var item = getItem(id);\n if (!item || !item.isMounted) {\n // We may end up here as a result of setState() in componentWillUnmount().\n // In this case, ignore the element.\n return;\n }\n item.element = element;\n },\n onMountComponent: function (id) {\n var item = getItem(id);\n !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;\n item.isMounted = true;\n var isRoot = item.parentID === 0;\n if (isRoot) {\n addRoot(id);\n }\n },\n onUpdateComponent: function (id) {\n var item = getItem(id);\n if (!item || !item.isMounted) {\n // We may end up here as a result of setState() in componentWillUnmount().\n // In this case, ignore the element.\n return;\n }\n item.updateCount++;\n },\n onUnmountComponent: function (id) {\n var item = getItem(id);\n if (item) {\n // We need to check if it exists.\n // `item` might not exist if it is inside an error boundary, and a sibling\n // error boundary child threw while mounting. Then this instance never\n // got a chance to mount, but it still gets an unmounting event during\n // the error boundary cleanup.\n item.isMounted = false;\n var isRoot = item.parentID === 0;\n if (isRoot) {\n removeRoot(id);\n }\n }\n unmountedIDs.push(id);\n },\n purgeUnmountedComponents: function () {\n if (ReactComponentTreeHook._preventPurging) {\n // Should only be used for testing.\n return;\n }\n\n for (var i = 0; i < unmountedIDs.length; i++) {\n var id = unmountedIDs[i];\n purgeDeep(id);\n }\n unmountedIDs.length = 0;\n },\n isMounted: function (id) {\n var item = getItem(id);\n return item ? item.isMounted : false;\n },\n getCurrentStackAddendum: function (topElement) {\n var info = '';\n if (topElement) {\n var name = getDisplayName(topElement);\n var owner = topElement._owner;\n info += describeComponentFrame(name, topElement._source, owner && owner.getName());\n }\n\n var currentOwner = ReactCurrentOwner.current;\n var id = currentOwner && currentOwner._debugID;\n\n info += ReactComponentTreeHook.getStackAddendumByID(id);\n return info;\n },\n getStackAddendumByID: function (id) {\n var info = '';\n while (id) {\n info += describeID(id);\n id = ReactComponentTreeHook.getParentID(id);\n }\n return info;\n },\n getChildIDs: function (id) {\n var item = getItem(id);\n return item ? item.childIDs : [];\n },\n getDisplayName: function (id) {\n var element = ReactComponentTreeHook.getElement(id);\n if (!element) {\n return null;\n }\n return getDisplayName(element);\n },\n getElement: function (id) {\n var item = getItem(id);\n return item ? item.element : null;\n },\n getOwnerID: function (id) {\n var element = ReactComponentTreeHook.getElement(id);\n if (!element || !element._owner) {\n return null;\n }\n return element._owner._debugID;\n },\n getParentID: function (id) {\n var item = getItem(id);\n return item ? item.parentID : null;\n },\n getSource: function (id) {\n var item = getItem(id);\n var element = item ? item.element : null;\n var source = element != null ? element._source : null;\n return source;\n },\n getText: function (id) {\n var element = ReactComponentTreeHook.getElement(id);\n if (typeof element === 'string') {\n return element;\n } else if (typeof element === 'number') {\n return '' + element;\n } else {\n return null;\n }\n },\n getUpdateCount: function (id) {\n var item = getItem(id);\n return item ? item.updateCount : 0;\n },\n\n\n getRootIDs: getRootIDs,\n getRegisteredIDs: getItemIDs\n};\n\nmodule.exports = ReactComponentTreeHook;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactComponentTreeHook.js\n// module id = 33\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactComponentTreeHook.js?"); + +/***/ }), +/* 34 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(14);\n\nvar ReactPropTypeLocationNames = __webpack_require__(30);\nvar ReactPropTypesSecret = __webpack_require__(35);\n\nvar invariant = __webpack_require__(15);\nvar warning = __webpack_require__(18);\n\nvar ReactComponentTreeHook;\n\nif (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {\n // Temporary hack.\n // Inline requires don't work well with Jest:\n // https://github.com/facebook/react/issues/7240\n // Remove the inline requires when we don't need them anymore:\n // https://github.com/facebook/react/pull/7178\n ReactComponentTreeHook = __webpack_require__(33);\n}\n\nvar loggedTypeFailures = {};\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?object} element The React element that is being type-checked\n * @param {?number} debugID The React component instance that is being type-checked\n * @private\n */\nfunction checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n !(typeof typeSpecs[typeSpecName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var componentStackInfo = '';\n\n if (process.env.NODE_ENV !== 'production') {\n if (!ReactComponentTreeHook) {\n ReactComponentTreeHook = __webpack_require__(33);\n }\n if (debugID !== null) {\n componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);\n } else if (element !== null) {\n componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);\n }\n }\n\n process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;\n }\n }\n }\n}\n\nmodule.exports = checkReactTypeSpec;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/checkReactTypeSpec.js\n// module id = 34\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/checkReactTypeSpec.js?"); + +/***/ }), +/* 35 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactPropTypesSecret.js\n// module id = 35\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactPropTypesSecret.js?"); + +/***/ }), +/* 36 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _require = __webpack_require__(16),\n isValidElement = _require.isValidElement;\n\nvar factory = __webpack_require__(37);\n\nmodule.exports = factory(isValidElement);\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactPropTypes.js\n// module id = 36\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactPropTypes.js?"); + +/***/ }), +/* 37 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\n// React 15.5 references this module, and assumes PropTypes are still callable in production.\n// Therefore we re-export development-only version with all the PropTypes checks here.\n// However if one is migrating to the `prop-types` npm library, they will go through the\n// `index.js` entry point, and it will branch depending on the environment.\nvar factory = __webpack_require__(38);\nmodule.exports = function(isValidElement) {\n // It is still allowed in 15.5.\n var throwOnDirectAccess = false;\n return factory(isValidElement, throwOnDirectAccess);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/factory.js\n// module id = 37\n// module chunks = 0\n//# sourceURL=webpack:///./~/prop-types/factory.js?"); + +/***/ }), +/* 38 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar emptyFunction = __webpack_require__(19);\nvar invariant = __webpack_require__(15);\nvar warning = __webpack_require__(18);\n\nvar ReactPropTypesSecret = __webpack_require__(39);\nvar checkPropTypes = __webpack_require__(40);\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n invariant(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n warning(\n false,\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `%s` prop on `%s`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',\n propFullName,\n componentName\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunction.thatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n return emptyFunction.thatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (propValue.hasOwnProperty(key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunction.thatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n warning(\n false,\n 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +\n 'received %s at index %s.',\n getPostfixForTypeWarning(checker),\n i\n );\n return emptyFunction.thatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/factoryWithTypeCheckers.js\n// module id = 38\n// module chunks = 0\n//# sourceURL=webpack:///./~/prop-types/factoryWithTypeCheckers.js?"); + +/***/ }), +/* 39 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/lib/ReactPropTypesSecret.js\n// module id = 39\n// module chunks = 0\n//# sourceURL=webpack:///./~/prop-types/lib/ReactPropTypesSecret.js?"); + +/***/ }), +/* 40 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== 'production') {\n var invariant = __webpack_require__(15);\n var warning = __webpack_require__(18);\n var ReactPropTypesSecret = __webpack_require__(39);\n var loggedTypeFailures = {};\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n }\n }\n }\n }\n}\n\nmodule.exports = checkPropTypes;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/checkPropTypes.js\n// module id = 40\n// module chunks = 0\n//# sourceURL=webpack:///./~/prop-types/checkPropTypes.js?"); + +/***/ }), +/* 41 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nmodule.exports = '15.5.4';\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactVersion.js\n// module id = 41\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/ReactVersion.js?"); + +/***/ }), +/* 42 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n'use strict';\n\nvar _prodInvariant = __webpack_require__(14);\n\nvar ReactElement = __webpack_require__(16);\n\nvar invariant = __webpack_require__(15);\n\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.only\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\nfunction onlyChild(children) {\n !ReactElement.isValidElement(children) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0;\n return children;\n}\n\nmodule.exports = onlyChild;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/onlyChild.js\n// module id = 42\n// module chunks = 0\n//# sourceURL=webpack:///./~/react/lib/onlyChild.js?"); + +/***/ }), +/* 43 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("'use strict';\n\nmodule.exports = __webpack_require__(44);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/index.js\n// module id = 43\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/index.js?"); + +/***/ }), +/* 44 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/\n\n'use strict';\n\nvar ReactDOMComponentTree = __webpack_require__(45);\nvar ReactDefaultInjection = __webpack_require__(49);\nvar ReactMount = __webpack_require__(177);\nvar ReactReconciler = __webpack_require__(70);\nvar ReactUpdates = __webpack_require__(67);\nvar ReactVersion = __webpack_require__(182);\n\nvar findDOMNode = __webpack_require__(183);\nvar getHostComponentFromComposite = __webpack_require__(184);\nvar renderSubtreeIntoContainer = __webpack_require__(185);\nvar warning = __webpack_require__(18);\n\nReactDefaultInjection.inject();\n\nvar ReactDOM = {\n findDOMNode: findDOMNode,\n render: ReactMount.render,\n unmountComponentAtNode: ReactMount.unmountComponentAtNode,\n version: ReactVersion,\n\n /* eslint-disable camelcase */\n unstable_batchedUpdates: ReactUpdates.batchedUpdates,\n unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer\n};\n\n// Inject the runtime into a devtools global hook regardless of browser.\n// Allows for debugging when the hook is injected on the page.\nif (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({\n ComponentTree: {\n getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode,\n getNodeFromInstance: function (inst) {\n // inst is an internal instance (but could be a composite)\n if (inst._renderedComponent) {\n inst = getHostComponentFromComposite(inst);\n }\n if (inst) {\n return ReactDOMComponentTree.getNodeFromInstance(inst);\n } else {\n return null;\n }\n }\n },\n Mount: ReactMount,\n Reconciler: ReactReconciler\n });\n}\n\nif (process.env.NODE_ENV !== 'production') {\n var ExecutionEnvironment = __webpack_require__(59);\n if (ExecutionEnvironment.canUseDOM && window.top === window.self) {\n\n // First check if devtools is not installed\n if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {\n // If we're in Chrome or Firefox, provide a download link if not installed.\n if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {\n // Firefox does not have the issue with devtools loaded over file://\n var showFileUrlMessage = window.location.protocol.indexOf('http') === -1 && navigator.userAgent.indexOf('Firefox') === -1;\n console.debug('Download the React DevTools ' + (showFileUrlMessage ? 'and use an HTTP server (instead of a file: URL) ' : '') + 'for a better development experience: ' + 'https://fb.me/react-devtools');\n }\n }\n\n var testFunc = function testFn() {};\n process.env.NODE_ENV !== 'production' ? warning((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, 'It looks like you\\'re using a minified copy of the development build ' + 'of React. When deploying React apps to production, make sure to use ' + 'the production build which skips development warnings and is faster. ' + 'See https://fb.me/react-minification for more details.') : void 0;\n\n // If we're in IE8, check to see if we are in compatibility mode and provide\n // information on preventing compatibility mode\n var ieCompatibilityMode = document.documentMode && document.documentMode < 8;\n\n process.env.NODE_ENV !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '') : void 0;\n\n var expectedFeatures = [\n // shims\n Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim];\n\n for (var i = 0; i < expectedFeatures.length; i++) {\n if (!expectedFeatures[i]) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'One or more ES5 shims expected by React are not available: ' + 'https://fb.me/react-warning-polyfills') : void 0;\n break;\n }\n }\n }\n}\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactInstrumentation = __webpack_require__(73);\n var ReactDOMUnknownPropertyHook = __webpack_require__(186);\n var ReactDOMNullInputValuePropHook = __webpack_require__(187);\n var ReactDOMInvalidARIAHook = __webpack_require__(188);\n\n ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook);\n ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook);\n ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook);\n}\n\nmodule.exports = ReactDOM;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactDOM.js\n// module id = 44\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactDOM.js?"); + +/***/ }), +/* 45 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar DOMProperty = __webpack_require__(47);\nvar ReactDOMComponentFlags = __webpack_require__(48);\n\nvar invariant = __webpack_require__(15);\n\nvar ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;\nvar Flags = ReactDOMComponentFlags;\n\nvar internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2);\n\n/**\n * Check if a given node should be cached.\n */\nfunction shouldPrecacheNode(node, nodeID) {\n return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' ';\n}\n\n/**\n * Drill down (through composites and empty components) until we get a host or\n * host text component.\n *\n * This is pretty polymorphic but unavoidable with the current structure we have\n * for `_renderedChildren`.\n */\nfunction getRenderedHostOrTextFromComponent(component) {\n var rendered;\n while (rendered = component._renderedComponent) {\n component = rendered;\n }\n return component;\n}\n\n/**\n * Populate `_hostNode` on the rendered host/text component with the given\n * DOM node. The passed `inst` can be a composite.\n */\nfunction precacheNode(inst, node) {\n var hostInst = getRenderedHostOrTextFromComponent(inst);\n hostInst._hostNode = node;\n node[internalInstanceKey] = hostInst;\n}\n\nfunction uncacheNode(inst) {\n var node = inst._hostNode;\n if (node) {\n delete node[internalInstanceKey];\n inst._hostNode = null;\n }\n}\n\n/**\n * Populate `_hostNode` on each child of `inst`, assuming that the children\n * match up with the DOM (element) children of `node`.\n *\n * We cache entire levels at once to avoid an n^2 problem where we access the\n * children of a node sequentially and have to walk from the start to our target\n * node every time.\n *\n * Since we update `_renderedChildren` and the actual DOM at (slightly)\n * different times, we could race here and see a newer `_renderedChildren` than\n * the DOM nodes we see. To avoid this, ReactMultiChild calls\n * `prepareToManageChildren` before we change `_renderedChildren`, at which\n * time the container's child nodes are always cached (until it unmounts).\n */\nfunction precacheChildNodes(inst, node) {\n if (inst._flags & Flags.hasCachedChildNodes) {\n return;\n }\n var children = inst._renderedChildren;\n var childNode = node.firstChild;\n outer: for (var name in children) {\n if (!children.hasOwnProperty(name)) {\n continue;\n }\n var childInst = children[name];\n var childID = getRenderedHostOrTextFromComponent(childInst)._domID;\n if (childID === 0) {\n // We're currently unmounting this child in ReactMultiChild; skip it.\n continue;\n }\n // We assume the child nodes are in the same order as the child instances.\n for (; childNode !== null; childNode = childNode.nextSibling) {\n if (shouldPrecacheNode(childNode, childID)) {\n precacheNode(childInst, childNode);\n continue outer;\n }\n }\n // We reached the end of the DOM children without finding an ID match.\n true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0;\n }\n inst._flags |= Flags.hasCachedChildNodes;\n}\n\n/**\n * Given a DOM node, return the closest ReactDOMComponent or\n * ReactDOMTextComponent instance ancestor.\n */\nfunction getClosestInstanceFromNode(node) {\n if (node[internalInstanceKey]) {\n return node[internalInstanceKey];\n }\n\n // Walk up the tree until we find an ancestor whose instance we have cached.\n var parents = [];\n while (!node[internalInstanceKey]) {\n parents.push(node);\n if (node.parentNode) {\n node = node.parentNode;\n } else {\n // Top of the tree. This node must not be part of a React tree (or is\n // unmounted, potentially).\n return null;\n }\n }\n\n var closest;\n var inst;\n for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {\n closest = inst;\n if (parents.length) {\n precacheChildNodes(inst, node);\n }\n }\n\n return closest;\n}\n\n/**\n * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent\n * instance, or null if the node was not rendered by this React.\n */\nfunction getInstanceFromNode(node) {\n var inst = getClosestInstanceFromNode(node);\n if (inst != null && inst._hostNode === node) {\n return inst;\n } else {\n return null;\n }\n}\n\n/**\n * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding\n * DOM node.\n */\nfunction getNodeFromInstance(inst) {\n // Without this first invariant, passing a non-DOM-component triggers the next\n // invariant for a missing parent, which is super confusing.\n !(inst._hostNode !== undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;\n\n if (inst._hostNode) {\n return inst._hostNode;\n }\n\n // Walk up the tree until we find an ancestor whose DOM node we have cached.\n var parents = [];\n while (!inst._hostNode) {\n parents.push(inst);\n !inst._hostParent ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0;\n inst = inst._hostParent;\n }\n\n // Now parents contains each ancestor that does *not* have a cached native\n // node, and `inst` is the deepest ancestor that does.\n for (; parents.length; inst = parents.pop()) {\n precacheChildNodes(inst, inst._hostNode);\n }\n\n return inst._hostNode;\n}\n\nvar ReactDOMComponentTree = {\n getClosestInstanceFromNode: getClosestInstanceFromNode,\n getInstanceFromNode: getInstanceFromNode,\n getNodeFromInstance: getNodeFromInstance,\n precacheChildNodes: precacheChildNodes,\n precacheNode: precacheNode,\n uncacheNode: uncacheNode\n};\n\nmodule.exports = ReactDOMComponentTree;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactDOMComponentTree.js\n// module id = 45\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactDOMComponentTree.js?"); + +/***/ }), +/* 46 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n'use strict';\n\n/**\n * WARNING: DO NOT manually require this module.\n * This is a replacement for `invariant(...)` used by the error code system\n * and will _only_ be required by the corresponding babel pass.\n * It always throws.\n */\n\nfunction reactProdInvariant(code) {\n var argCount = arguments.length - 1;\n\n var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;\n\n for (var argIdx = 0; argIdx < argCount; argIdx++) {\n message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);\n }\n\n message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';\n\n var error = new Error(message);\n error.name = 'Invariant Violation';\n error.framesToPop = 1; // we don't care about reactProdInvariant's own frame\n\n throw error;\n}\n\nmodule.exports = reactProdInvariant;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/reactProdInvariant.js\n// module id = 46\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/reactProdInvariant.js?"); + +/***/ }), +/* 47 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar invariant = __webpack_require__(15);\n\nfunction checkMask(value, bitmask) {\n return (value & bitmask) === bitmask;\n}\n\nvar DOMPropertyInjection = {\n /**\n * Mapping from normalized, camelcased property names to a configuration that\n * specifies how the associated DOM property should be accessed or rendered.\n */\n MUST_USE_PROPERTY: 0x1,\n HAS_BOOLEAN_VALUE: 0x4,\n HAS_NUMERIC_VALUE: 0x8,\n HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,\n HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,\n\n /**\n * Inject some specialized knowledge about the DOM. This takes a config object\n * with the following properties:\n *\n * isCustomAttribute: function that given an attribute name will return true\n * if it can be inserted into the DOM verbatim. Useful for data-* or aria-*\n * attributes where it's impossible to enumerate all of the possible\n * attribute names,\n *\n * Properties: object mapping DOM property name to one of the\n * DOMPropertyInjection constants or null. If your attribute isn't in here,\n * it won't get written to the DOM.\n *\n * DOMAttributeNames: object mapping React attribute name to the DOM\n * attribute name. Attribute names not specified use the **lowercase**\n * normalized name.\n *\n * DOMAttributeNamespaces: object mapping React attribute name to the DOM\n * attribute namespace URL. (Attribute names not specified use no namespace.)\n *\n * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.\n * Property names not specified use the normalized name.\n *\n * DOMMutationMethods: Properties that require special mutation methods. If\n * `value` is undefined, the mutation method should unset the property.\n *\n * @param {object} domPropertyConfig the config as described above.\n */\n injectDOMPropertyConfig: function (domPropertyConfig) {\n var Injection = DOMPropertyInjection;\n var Properties = domPropertyConfig.Properties || {};\n var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};\n var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};\n var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {};\n var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};\n\n if (domPropertyConfig.isCustomAttribute) {\n DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute);\n }\n\n for (var propName in Properties) {\n !!DOMProperty.properties.hasOwnProperty(propName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'injectDOMPropertyConfig(...): You\\'re trying to inject DOM property \\'%s\\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : _prodInvariant('48', propName) : void 0;\n\n var lowerCased = propName.toLowerCase();\n var propConfig = Properties[propName];\n\n var propertyInfo = {\n attributeName: lowerCased,\n attributeNamespace: null,\n propertyName: propName,\n mutationMethod: null,\n\n mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),\n hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),\n hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),\n hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),\n hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)\n };\n !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : _prodInvariant('50', propName) : void 0;\n\n if (process.env.NODE_ENV !== 'production') {\n DOMProperty.getPossibleStandardName[lowerCased] = propName;\n }\n\n if (DOMAttributeNames.hasOwnProperty(propName)) {\n var attributeName = DOMAttributeNames[propName];\n propertyInfo.attributeName = attributeName;\n if (process.env.NODE_ENV !== 'production') {\n DOMProperty.getPossibleStandardName[attributeName] = propName;\n }\n }\n\n if (DOMAttributeNamespaces.hasOwnProperty(propName)) {\n propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];\n }\n\n if (DOMPropertyNames.hasOwnProperty(propName)) {\n propertyInfo.propertyName = DOMPropertyNames[propName];\n }\n\n if (DOMMutationMethods.hasOwnProperty(propName)) {\n propertyInfo.mutationMethod = DOMMutationMethods[propName];\n }\n\n DOMProperty.properties[propName] = propertyInfo;\n }\n }\n};\n\n/* eslint-disable max-len */\nvar ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD';\n/* eslint-enable max-len */\n\n/**\n * DOMProperty exports lookup objects that can be used like functions:\n *\n * > DOMProperty.isValid['id']\n * true\n * > DOMProperty.isValid['foobar']\n * undefined\n *\n * Although this may be confusing, it performs better in general.\n *\n * @see http://jsperf.com/key-exists\n * @see http://jsperf.com/key-missing\n */\nvar DOMProperty = {\n\n ID_ATTRIBUTE_NAME: 'data-reactid',\n ROOT_ATTRIBUTE_NAME: 'data-reactroot',\n\n ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,\n ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040',\n\n /**\n * Map from property \"standard name\" to an object with info about how to set\n * the property in the DOM. Each object contains:\n *\n * attributeName:\n * Used when rendering markup or with `*Attribute()`.\n * attributeNamespace\n * propertyName:\n * Used on DOM node instances. (This includes properties that mutate due to\n * external factors.)\n * mutationMethod:\n * If non-null, used instead of the property or `setAttribute()` after\n * initial render.\n * mustUseProperty:\n * Whether the property must be accessed and mutated as an object property.\n * hasBooleanValue:\n * Whether the property should be removed when set to a falsey value.\n * hasNumericValue:\n * Whether the property must be numeric or parse as a numeric and should be\n * removed when set to a falsey value.\n * hasPositiveNumericValue:\n * Whether the property must be positive numeric or parse as a positive\n * numeric and should be removed when set to a falsey value.\n * hasOverloadedBooleanValue:\n * Whether the property can be used as a flag as well as with a value.\n * Removed when strictly equal to false; present without a value when\n * strictly equal to true; present with a value otherwise.\n */\n properties: {},\n\n /**\n * Mapping from lowercase property names to the properly cased version, used\n * to warn in the case of missing properties. Available only in __DEV__.\n *\n * autofocus is predefined, because adding it to the property whitelist\n * causes unintended side effects.\n *\n * @type {Object}\n */\n getPossibleStandardName: process.env.NODE_ENV !== 'production' ? { autofocus: 'autoFocus' } : null,\n\n /**\n * All of the isCustomAttribute() functions that have been injected.\n */\n _isCustomAttributeFunctions: [],\n\n /**\n * Checks whether a property name is a custom attribute.\n * @method\n */\n isCustomAttribute: function (attributeName) {\n for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {\n var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i];\n if (isCustomAttributeFn(attributeName)) {\n return true;\n }\n }\n return false;\n },\n\n injection: DOMPropertyInjection\n};\n\nmodule.exports = DOMProperty;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/DOMProperty.js\n// module id = 47\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/DOMProperty.js?"); + +/***/ }), +/* 48 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactDOMComponentFlags = {\n hasCachedChildNodes: 1 << 0\n};\n\nmodule.exports = ReactDOMComponentFlags;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactDOMComponentFlags.js\n// module id = 48\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactDOMComponentFlags.js?"); + +/***/ }), +/* 49 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ARIADOMPropertyConfig = __webpack_require__(50);\nvar BeforeInputEventPlugin = __webpack_require__(51);\nvar ChangeEventPlugin = __webpack_require__(66);\nvar DefaultEventPluginOrder = __webpack_require__(83);\nvar EnterLeaveEventPlugin = __webpack_require__(84);\nvar HTMLDOMPropertyConfig = __webpack_require__(89);\nvar ReactComponentBrowserEnvironment = __webpack_require__(90);\nvar ReactDOMComponent = __webpack_require__(103);\nvar ReactDOMComponentTree = __webpack_require__(45);\nvar ReactDOMEmptyComponent = __webpack_require__(148);\nvar ReactDOMTreeTraversal = __webpack_require__(149);\nvar ReactDOMTextComponent = __webpack_require__(150);\nvar ReactDefaultBatchingStrategy = __webpack_require__(151);\nvar ReactEventListener = __webpack_require__(152);\nvar ReactInjection = __webpack_require__(155);\nvar ReactReconcileTransaction = __webpack_require__(156);\nvar SVGDOMPropertyConfig = __webpack_require__(164);\nvar SelectEventPlugin = __webpack_require__(165);\nvar SimpleEventPlugin = __webpack_require__(166);\n\nvar alreadyInjected = false;\n\nfunction inject() {\n if (alreadyInjected) {\n // TODO: This is currently true because these injections are shared between\n // the client and the server package. They should be built independently\n // and not share any injection state. Then this problem will be solved.\n return;\n }\n alreadyInjected = true;\n\n ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener);\n\n /**\n * Inject modules for resolving DOM hierarchy and plugin ordering.\n */\n ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder);\n ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree);\n ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal);\n\n /**\n * Some important event plugins included by default (without having to require\n * them).\n */\n ReactInjection.EventPluginHub.injectEventPluginsByName({\n SimpleEventPlugin: SimpleEventPlugin,\n EnterLeaveEventPlugin: EnterLeaveEventPlugin,\n ChangeEventPlugin: ChangeEventPlugin,\n SelectEventPlugin: SelectEventPlugin,\n BeforeInputEventPlugin: BeforeInputEventPlugin\n });\n\n ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent);\n\n ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent);\n\n ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig);\n ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig);\n ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig);\n\n ReactInjection.EmptyComponent.injectEmptyComponentFactory(function (instantiate) {\n return new ReactDOMEmptyComponent(instantiate);\n });\n\n ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction);\n ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy);\n\n ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment);\n}\n\nmodule.exports = {\n inject: inject\n};\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactDefaultInjection.js\n// module id = 49\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactDefaultInjection.js?"); + +/***/ }), +/* 50 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ARIADOMPropertyConfig = {\n Properties: {\n // Global States and Properties\n 'aria-current': 0, // state\n 'aria-details': 0,\n 'aria-disabled': 0, // state\n 'aria-hidden': 0, // state\n 'aria-invalid': 0, // state\n 'aria-keyshortcuts': 0,\n 'aria-label': 0,\n 'aria-roledescription': 0,\n // Widget Attributes\n 'aria-autocomplete': 0,\n 'aria-checked': 0,\n 'aria-expanded': 0,\n 'aria-haspopup': 0,\n 'aria-level': 0,\n 'aria-modal': 0,\n 'aria-multiline': 0,\n 'aria-multiselectable': 0,\n 'aria-orientation': 0,\n 'aria-placeholder': 0,\n 'aria-pressed': 0,\n 'aria-readonly': 0,\n 'aria-required': 0,\n 'aria-selected': 0,\n 'aria-sort': 0,\n 'aria-valuemax': 0,\n 'aria-valuemin': 0,\n 'aria-valuenow': 0,\n 'aria-valuetext': 0,\n // Live Region Attributes\n 'aria-atomic': 0,\n 'aria-busy': 0,\n 'aria-live': 0,\n 'aria-relevant': 0,\n // Drag-and-Drop Attributes\n 'aria-dropeffect': 0,\n 'aria-grabbed': 0,\n // Relationship Attributes\n 'aria-activedescendant': 0,\n 'aria-colcount': 0,\n 'aria-colindex': 0,\n 'aria-colspan': 0,\n 'aria-controls': 0,\n 'aria-describedby': 0,\n 'aria-errormessage': 0,\n 'aria-flowto': 0,\n 'aria-labelledby': 0,\n 'aria-owns': 0,\n 'aria-posinset': 0,\n 'aria-rowcount': 0,\n 'aria-rowindex': 0,\n 'aria-rowspan': 0,\n 'aria-setsize': 0\n },\n DOMAttributeNames: {},\n DOMPropertyNames: {}\n};\n\nmodule.exports = ARIADOMPropertyConfig;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ARIADOMPropertyConfig.js\n// module id = 50\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ARIADOMPropertyConfig.js?"); + +/***/ }), +/* 51 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPropagators = __webpack_require__(52);\nvar ExecutionEnvironment = __webpack_require__(59);\nvar FallbackCompositionState = __webpack_require__(60);\nvar SyntheticCompositionEvent = __webpack_require__(63);\nvar SyntheticInputEvent = __webpack_require__(65);\n\nvar END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space\nvar START_KEYCODE = 229;\n\nvar canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window;\n\nvar documentMode = null;\nif (ExecutionEnvironment.canUseDOM && 'documentMode' in document) {\n documentMode = document.documentMode;\n}\n\n// Webkit offers a very useful `textInput` event that can be used to\n// directly represent `beforeInput`. The IE `textinput` event is not as\n// useful, so we don't use it.\nvar canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto();\n\n// In IE9+, we have access to composition events, but the data supplied\n// by the native compositionend event may be incorrect. Japanese ideographic\n// spaces, for instance (\\u3000) are not recorded correctly.\nvar useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);\n\n/**\n * Opera <= 12 includes TextEvent in window, but does not fire\n * text input events. Rely on keypress instead.\n */\nfunction isPresto() {\n var opera = window.opera;\n return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;\n}\n\nvar SPACEBAR_CODE = 32;\nvar SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);\n\n// Events and their corresponding property names.\nvar eventTypes = {\n beforeInput: {\n phasedRegistrationNames: {\n bubbled: 'onBeforeInput',\n captured: 'onBeforeInputCapture'\n },\n dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste']\n },\n compositionEnd: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionEnd',\n captured: 'onCompositionEndCapture'\n },\n dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']\n },\n compositionStart: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionStart',\n captured: 'onCompositionStartCapture'\n },\n dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']\n },\n compositionUpdate: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionUpdate',\n captured: 'onCompositionUpdateCapture'\n },\n dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']\n }\n};\n\n// Track whether we've ever handled a keypress on the space key.\nvar hasSpaceKeypress = false;\n\n/**\n * Return whether a native keypress event is assumed to be a command.\n * This is required because Firefox fires `keypress` events for key commands\n * (cut, copy, select-all, etc.) even though no character is inserted.\n */\nfunction isKeypressCommand(nativeEvent) {\n return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&\n // ctrlKey && altKey is equivalent to AltGr, and is not a command.\n !(nativeEvent.ctrlKey && nativeEvent.altKey);\n}\n\n/**\n * Translate native top level events into event types.\n *\n * @param {string} topLevelType\n * @return {object}\n */\nfunction getCompositionEventType(topLevelType) {\n switch (topLevelType) {\n case 'topCompositionStart':\n return eventTypes.compositionStart;\n case 'topCompositionEnd':\n return eventTypes.compositionEnd;\n case 'topCompositionUpdate':\n return eventTypes.compositionUpdate;\n }\n}\n\n/**\n * Does our fallback best-guess model think this event signifies that\n * composition has begun?\n *\n * @param {string} topLevelType\n * @param {object} nativeEvent\n * @return {boolean}\n */\nfunction isFallbackCompositionStart(topLevelType, nativeEvent) {\n return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE;\n}\n\n/**\n * Does our fallback mode think that this event is the end of composition?\n *\n * @param {string} topLevelType\n * @param {object} nativeEvent\n * @return {boolean}\n */\nfunction isFallbackCompositionEnd(topLevelType, nativeEvent) {\n switch (topLevelType) {\n case 'topKeyUp':\n // Command keys insert or clear IME input.\n return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;\n case 'topKeyDown':\n // Expect IME keyCode on each keydown. If we get any other\n // code we must have exited earlier.\n return nativeEvent.keyCode !== START_KEYCODE;\n case 'topKeyPress':\n case 'topMouseDown':\n case 'topBlur':\n // Events are not possible without cancelling IME.\n return true;\n default:\n return false;\n }\n}\n\n/**\n * Google Input Tools provides composition data via a CustomEvent,\n * with the `data` property populated in the `detail` object. If this\n * is available on the event object, use it. If not, this is a plain\n * composition event and we have nothing special to extract.\n *\n * @param {object} nativeEvent\n * @return {?string}\n */\nfunction getDataFromCustomEvent(nativeEvent) {\n var detail = nativeEvent.detail;\n if (typeof detail === 'object' && 'data' in detail) {\n return detail.data;\n }\n return null;\n}\n\n// Track the current IME composition fallback object, if any.\nvar currentComposition = null;\n\n/**\n * @return {?object} A SyntheticCompositionEvent.\n */\nfunction extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var eventType;\n var fallbackData;\n\n if (canUseCompositionEvent) {\n eventType = getCompositionEventType(topLevelType);\n } else if (!currentComposition) {\n if (isFallbackCompositionStart(topLevelType, nativeEvent)) {\n eventType = eventTypes.compositionStart;\n }\n } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {\n eventType = eventTypes.compositionEnd;\n }\n\n if (!eventType) {\n return null;\n }\n\n if (useFallbackCompositionData) {\n // The current composition is stored statically and must not be\n // overwritten while composition continues.\n if (!currentComposition && eventType === eventTypes.compositionStart) {\n currentComposition = FallbackCompositionState.getPooled(nativeEventTarget);\n } else if (eventType === eventTypes.compositionEnd) {\n if (currentComposition) {\n fallbackData = currentComposition.getData();\n }\n }\n }\n\n var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);\n\n if (fallbackData) {\n // Inject data generated from fallback path into the synthetic event.\n // This matches the property of native CompositionEventInterface.\n event.data = fallbackData;\n } else {\n var customData = getDataFromCustomEvent(nativeEvent);\n if (customData !== null) {\n event.data = customData;\n }\n }\n\n EventPropagators.accumulateTwoPhaseDispatches(event);\n return event;\n}\n\n/**\n * @param {string} topLevelType Record from `EventConstants`.\n * @param {object} nativeEvent Native browser event.\n * @return {?string} The string corresponding to this `beforeInput` event.\n */\nfunction getNativeBeforeInputChars(topLevelType, nativeEvent) {\n switch (topLevelType) {\n case 'topCompositionEnd':\n return getDataFromCustomEvent(nativeEvent);\n case 'topKeyPress':\n /**\n * If native `textInput` events are available, our goal is to make\n * use of them. However, there is a special case: the spacebar key.\n * In Webkit, preventing default on a spacebar `textInput` event\n * cancels character insertion, but it *also* causes the browser\n * to fall back to its default spacebar behavior of scrolling the\n * page.\n *\n * Tracking at:\n * https://code.google.com/p/chromium/issues/detail?id=355103\n *\n * To avoid this issue, use the keypress event as if no `textInput`\n * event is available.\n */\n var which = nativeEvent.which;\n if (which !== SPACEBAR_CODE) {\n return null;\n }\n\n hasSpaceKeypress = true;\n return SPACEBAR_CHAR;\n\n case 'topTextInput':\n // Record the characters to be added to the DOM.\n var chars = nativeEvent.data;\n\n // If it's a spacebar character, assume that we have already handled\n // it at the keypress level and bail immediately. Android Chrome\n // doesn't give us keycodes, so we need to blacklist it.\n if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {\n return null;\n }\n\n return chars;\n\n default:\n // For other native event types, do nothing.\n return null;\n }\n}\n\n/**\n * For browsers that do not provide the `textInput` event, extract the\n * appropriate string to use for SyntheticInputEvent.\n *\n * @param {string} topLevelType Record from `EventConstants`.\n * @param {object} nativeEvent Native browser event.\n * @return {?string} The fallback string for this `beforeInput` event.\n */\nfunction getFallbackBeforeInputChars(topLevelType, nativeEvent) {\n // If we are currently composing (IME) and using a fallback to do so,\n // try to extract the composed characters from the fallback object.\n // If composition event is available, we extract a string only at\n // compositionevent, otherwise extract it at fallback events.\n if (currentComposition) {\n if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {\n var chars = currentComposition.getData();\n FallbackCompositionState.release(currentComposition);\n currentComposition = null;\n return chars;\n }\n return null;\n }\n\n switch (topLevelType) {\n case 'topPaste':\n // If a paste event occurs after a keypress, throw out the input\n // chars. Paste events should not lead to BeforeInput events.\n return null;\n case 'topKeyPress':\n /**\n * As of v27, Firefox may fire keypress events even when no character\n * will be inserted. A few possibilities:\n *\n * - `which` is `0`. Arrow keys, Esc key, etc.\n *\n * - `which` is the pressed key code, but no char is available.\n * Ex: 'AltGr + d` in Polish. There is no modified character for\n * this key combination and no character is inserted into the\n * document, but FF fires the keypress for char code `100` anyway.\n * No `input` event will occur.\n *\n * - `which` is the pressed key code, but a command combination is\n * being used. Ex: `Cmd+C`. No character is inserted, and no\n * `input` event will occur.\n */\n if (nativeEvent.which && !isKeypressCommand(nativeEvent)) {\n return String.fromCharCode(nativeEvent.which);\n }\n return null;\n case 'topCompositionEnd':\n return useFallbackCompositionData ? null : nativeEvent.data;\n default:\n return null;\n }\n}\n\n/**\n * Extract a SyntheticInputEvent for `beforeInput`, based on either native\n * `textInput` or fallback behavior.\n *\n * @return {?object} A SyntheticInputEvent.\n */\nfunction extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var chars;\n\n if (canUseTextInputEvent) {\n chars = getNativeBeforeInputChars(topLevelType, nativeEvent);\n } else {\n chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);\n }\n\n // If no characters are being inserted, no BeforeInput event should\n // be fired.\n if (!chars) {\n return null;\n }\n\n var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);\n\n event.data = chars;\n EventPropagators.accumulateTwoPhaseDispatches(event);\n return event;\n}\n\n/**\n * Create an `onBeforeInput` event to match\n * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.\n *\n * This event plugin is based on the native `textInput` event\n * available in Chrome, Safari, Opera, and IE. This event fires after\n * `onKeyPress` and `onCompositionEnd`, but before `onInput`.\n *\n * `beforeInput` is spec'd but not implemented in any browsers, and\n * the `input` event does not provide any useful information about what has\n * actually been added, contrary to the spec. Thus, `textInput` is the best\n * available event to identify the characters that have actually been inserted\n * into the target node.\n *\n * This plugin is also responsible for emitting `composition` events, thus\n * allowing us to share composition fallback code for both `beforeInput` and\n * `composition` event types.\n */\nvar BeforeInputEventPlugin = {\n\n eventTypes: eventTypes,\n\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n return [extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget)];\n }\n};\n\nmodule.exports = BeforeInputEventPlugin;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/BeforeInputEventPlugin.js\n// module id = 51\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/BeforeInputEventPlugin.js?"); + +/***/ }), +/* 52 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPluginHub = __webpack_require__(53);\nvar EventPluginUtils = __webpack_require__(55);\n\nvar accumulateInto = __webpack_require__(57);\nvar forEachAccumulated = __webpack_require__(58);\nvar warning = __webpack_require__(18);\n\nvar getListener = EventPluginHub.getListener;\n\n/**\n * Some event types have a notion of different registration names for different\n * \"phases\" of propagation. This finds listeners by a given phase.\n */\nfunction listenerAtPhase(inst, event, propagationPhase) {\n var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];\n return getListener(inst, registrationName);\n}\n\n/**\n * Tags a `SyntheticEvent` with dispatched listeners. Creating this function\n * here, allows us to not have to bind or create functions for each event.\n * Mutating the event's members allows us to not have to create a wrapping\n * \"dispatch\" object that pairs the event with the listener.\n */\nfunction accumulateDirectionalDispatches(inst, phase, event) {\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0;\n }\n var listener = listenerAtPhase(inst, event, phase);\n if (listener) {\n event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);\n event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);\n }\n}\n\n/**\n * Collect dispatches (must be entirely collected before dispatching - see unit\n * tests). Lazily allocate the array to conserve memory. We must loop through\n * each event and perform the traversal for each one. We cannot perform a\n * single traversal for the entire collection of events because each event may\n * have a different target.\n */\nfunction accumulateTwoPhaseDispatchesSingle(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n EventPluginUtils.traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n }\n}\n\n/**\n * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID.\n */\nfunction accumulateTwoPhaseDispatchesSingleSkipTarget(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n var targetInst = event._targetInst;\n var parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null;\n EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event);\n }\n}\n\n/**\n * Accumulates without regard to direction, does not look for phased\n * registration names. Same as `accumulateDirectDispatchesSingle` but without\n * requiring that the `dispatchMarker` be the same as the dispatched ID.\n */\nfunction accumulateDispatches(inst, ignoredDirection, event) {\n if (event && event.dispatchConfig.registrationName) {\n var registrationName = event.dispatchConfig.registrationName;\n var listener = getListener(inst, registrationName);\n if (listener) {\n event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);\n event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);\n }\n }\n}\n\n/**\n * Accumulates dispatches on an `SyntheticEvent`, but only for the\n * `dispatchMarker`.\n * @param {SyntheticEvent} event\n */\nfunction accumulateDirectDispatchesSingle(event) {\n if (event && event.dispatchConfig.registrationName) {\n accumulateDispatches(event._targetInst, null, event);\n }\n}\n\nfunction accumulateTwoPhaseDispatches(events) {\n forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);\n}\n\nfunction accumulateTwoPhaseDispatchesSkipTarget(events) {\n forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget);\n}\n\nfunction accumulateEnterLeaveDispatches(leave, enter, from, to) {\n EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter);\n}\n\nfunction accumulateDirectDispatches(events) {\n forEachAccumulated(events, accumulateDirectDispatchesSingle);\n}\n\n/**\n * A small set of propagation patterns, each of which will accept a small amount\n * of information, and generate a set of \"dispatch ready event objects\" - which\n * are sets of events that have already been annotated with a set of dispatched\n * listener functions/ids. The API is designed this way to discourage these\n * propagation strategies from actually executing the dispatches, since we\n * always want to collect the entire set of dispatches before executing event a\n * single one.\n *\n * @constructor EventPropagators\n */\nvar EventPropagators = {\n accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches,\n accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget,\n accumulateDirectDispatches: accumulateDirectDispatches,\n accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches\n};\n\nmodule.exports = EventPropagators;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/EventPropagators.js\n// module id = 52\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/EventPropagators.js?"); + +/***/ }), +/* 53 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar EventPluginRegistry = __webpack_require__(54);\nvar EventPluginUtils = __webpack_require__(55);\nvar ReactErrorUtils = __webpack_require__(56);\n\nvar accumulateInto = __webpack_require__(57);\nvar forEachAccumulated = __webpack_require__(58);\nvar invariant = __webpack_require__(15);\n\n/**\n * Internal store for event listeners\n */\nvar listenerBank = {};\n\n/**\n * Internal queue of events that have accumulated their dispatches and are\n * waiting to have their dispatches executed.\n */\nvar eventQueue = null;\n\n/**\n * Dispatches an event and releases it back into the pool, unless persistent.\n *\n * @param {?object} event Synthetic event to be dispatched.\n * @param {boolean} simulated If the event is simulated (changes exn behavior)\n * @private\n */\nvar executeDispatchesAndRelease = function (event, simulated) {\n if (event) {\n EventPluginUtils.executeDispatchesInOrder(event, simulated);\n\n if (!event.isPersistent()) {\n event.constructor.release(event);\n }\n }\n};\nvar executeDispatchesAndReleaseSimulated = function (e) {\n return executeDispatchesAndRelease(e, true);\n};\nvar executeDispatchesAndReleaseTopLevel = function (e) {\n return executeDispatchesAndRelease(e, false);\n};\n\nvar getDictionaryKey = function (inst) {\n // Prevents V8 performance issue:\n // https://github.com/facebook/react/pull/7232\n return '.' + inst._rootNodeID;\n};\n\nfunction isInteractive(tag) {\n return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';\n}\n\nfunction shouldPreventMouseEvent(name, type, props) {\n switch (name) {\n case 'onClick':\n case 'onClickCapture':\n case 'onDoubleClick':\n case 'onDoubleClickCapture':\n case 'onMouseDown':\n case 'onMouseDownCapture':\n case 'onMouseMove':\n case 'onMouseMoveCapture':\n case 'onMouseUp':\n case 'onMouseUpCapture':\n return !!(props.disabled && isInteractive(type));\n default:\n return false;\n }\n}\n\n/**\n * This is a unified interface for event plugins to be installed and configured.\n *\n * Event plugins can implement the following properties:\n *\n * `extractEvents` {function(string, DOMEventTarget, string, object): *}\n * Required. When a top-level event is fired, this method is expected to\n * extract synthetic events that will in turn be queued and dispatched.\n *\n * `eventTypes` {object}\n * Optional, plugins that fire events must publish a mapping of registration\n * names that are used to register listeners. Values of this mapping must\n * be objects that contain `registrationName` or `phasedRegistrationNames`.\n *\n * `executeDispatch` {function(object, function, string)}\n * Optional, allows plugins to override how an event gets dispatched. By\n * default, the listener is simply invoked.\n *\n * Each plugin that is injected into `EventsPluginHub` is immediately operable.\n *\n * @public\n */\nvar EventPluginHub = {\n\n /**\n * Methods for injecting dependencies.\n */\n injection: {\n\n /**\n * @param {array} InjectedEventPluginOrder\n * @public\n */\n injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder,\n\n /**\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n */\n injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName\n\n },\n\n /**\n * Stores `listener` at `listenerBank[registrationName][key]`. Is idempotent.\n *\n * @param {object} inst The instance, which is the source of events.\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @param {function} listener The callback to store.\n */\n putListener: function (inst, registrationName, listener) {\n !(typeof listener === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : _prodInvariant('94', registrationName, typeof listener) : void 0;\n\n var key = getDictionaryKey(inst);\n var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {});\n bankForRegistrationName[key] = listener;\n\n var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];\n if (PluginModule && PluginModule.didPutListener) {\n PluginModule.didPutListener(inst, registrationName, listener);\n }\n },\n\n /**\n * @param {object} inst The instance, which is the source of events.\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @return {?function} The stored callback.\n */\n getListener: function (inst, registrationName) {\n // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not\n // live here; needs to be moved to a better place soon\n var bankForRegistrationName = listenerBank[registrationName];\n if (shouldPreventMouseEvent(registrationName, inst._currentElement.type, inst._currentElement.props)) {\n return null;\n }\n var key = getDictionaryKey(inst);\n return bankForRegistrationName && bankForRegistrationName[key];\n },\n\n /**\n * Deletes a listener from the registration bank.\n *\n * @param {object} inst The instance, which is the source of events.\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n */\n deleteListener: function (inst, registrationName) {\n var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];\n if (PluginModule && PluginModule.willDeleteListener) {\n PluginModule.willDeleteListener(inst, registrationName);\n }\n\n var bankForRegistrationName = listenerBank[registrationName];\n // TODO: This should never be null -- when is it?\n if (bankForRegistrationName) {\n var key = getDictionaryKey(inst);\n delete bankForRegistrationName[key];\n }\n },\n\n /**\n * Deletes all listeners for the DOM element with the supplied ID.\n *\n * @param {object} inst The instance, which is the source of events.\n */\n deleteAllListeners: function (inst) {\n var key = getDictionaryKey(inst);\n for (var registrationName in listenerBank) {\n if (!listenerBank.hasOwnProperty(registrationName)) {\n continue;\n }\n\n if (!listenerBank[registrationName][key]) {\n continue;\n }\n\n var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];\n if (PluginModule && PluginModule.willDeleteListener) {\n PluginModule.willDeleteListener(inst, registrationName);\n }\n\n delete listenerBank[registrationName][key];\n }\n },\n\n /**\n * Allows registered plugins an opportunity to extract events from top-level\n * native browser events.\n *\n * @return {*} An accumulation of synthetic events.\n * @internal\n */\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var events;\n var plugins = EventPluginRegistry.plugins;\n for (var i = 0; i < plugins.length; i++) {\n // Not every plugin in the ordering may be loaded at runtime.\n var possiblePlugin = plugins[i];\n if (possiblePlugin) {\n var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n if (extractedEvents) {\n events = accumulateInto(events, extractedEvents);\n }\n }\n }\n return events;\n },\n\n /**\n * Enqueues a synthetic event that should be dispatched when\n * `processEventQueue` is invoked.\n *\n * @param {*} events An accumulation of synthetic events.\n * @internal\n */\n enqueueEvents: function (events) {\n if (events) {\n eventQueue = accumulateInto(eventQueue, events);\n }\n },\n\n /**\n * Dispatches all synthetic events on the event queue.\n *\n * @internal\n */\n processEventQueue: function (simulated) {\n // Set `eventQueue` to null before processing it so that we can tell if more\n // events get enqueued while processing.\n var processingEventQueue = eventQueue;\n eventQueue = null;\n if (simulated) {\n forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated);\n } else {\n forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);\n }\n !!eventQueue ? process.env.NODE_ENV !== 'production' ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : _prodInvariant('95') : void 0;\n // This would be a good time to rethrow if any of the event handlers threw.\n ReactErrorUtils.rethrowCaughtError();\n },\n\n /**\n * These are needed for tests only. Do not use!\n */\n __purge: function () {\n listenerBank = {};\n },\n\n __getListenerBank: function () {\n return listenerBank;\n }\n\n};\n\nmodule.exports = EventPluginHub;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/EventPluginHub.js\n// module id = 53\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/EventPluginHub.js?"); + +/***/ }), +/* 54 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar invariant = __webpack_require__(15);\n\n/**\n * Injectable ordering of event plugins.\n */\nvar eventPluginOrder = null;\n\n/**\n * Injectable mapping from names to event plugin modules.\n */\nvar namesToPlugins = {};\n\n/**\n * Recomputes the plugin list using the injected plugins and plugin ordering.\n *\n * @private\n */\nfunction recomputePluginOrdering() {\n if (!eventPluginOrder) {\n // Wait until an `eventPluginOrder` is injected.\n return;\n }\n for (var pluginName in namesToPlugins) {\n var pluginModule = namesToPlugins[pluginName];\n var pluginIndex = eventPluginOrder.indexOf(pluginName);\n !(pluginIndex > -1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0;\n if (EventPluginRegistry.plugins[pluginIndex]) {\n continue;\n }\n !pluginModule.extractEvents ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0;\n EventPluginRegistry.plugins[pluginIndex] = pluginModule;\n var publishedEvents = pluginModule.eventTypes;\n for (var eventName in publishedEvents) {\n !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0;\n }\n }\n}\n\n/**\n * Publishes an event so that it can be dispatched by the supplied plugin.\n *\n * @param {object} dispatchConfig Dispatch configuration for the event.\n * @param {object} PluginModule Plugin publishing the event.\n * @return {boolean} True if the event was successfully published.\n * @private\n */\nfunction publishEventForPlugin(dispatchConfig, pluginModule, eventName) {\n !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0;\n EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig;\n\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n if (phasedRegistrationNames) {\n for (var phaseName in phasedRegistrationNames) {\n if (phasedRegistrationNames.hasOwnProperty(phaseName)) {\n var phasedRegistrationName = phasedRegistrationNames[phaseName];\n publishRegistrationName(phasedRegistrationName, pluginModule, eventName);\n }\n }\n return true;\n } else if (dispatchConfig.registrationName) {\n publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);\n return true;\n }\n return false;\n}\n\n/**\n * Publishes a registration name that is used to identify dispatched events and\n * can be used with `EventPluginHub.putListener` to register listeners.\n *\n * @param {string} registrationName Registration name to add.\n * @param {object} PluginModule Plugin publishing the event.\n * @private\n */\nfunction publishRegistrationName(registrationName, pluginModule, eventName) {\n !!EventPluginRegistry.registrationNameModules[registrationName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0;\n EventPluginRegistry.registrationNameModules[registrationName] = pluginModule;\n EventPluginRegistry.registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;\n\n if (process.env.NODE_ENV !== 'production') {\n var lowerCasedName = registrationName.toLowerCase();\n EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName;\n\n if (registrationName === 'onDoubleClick') {\n EventPluginRegistry.possibleRegistrationNames.ondblclick = registrationName;\n }\n }\n}\n\n/**\n * Registers plugins so that they can extract and dispatch events.\n *\n * @see {EventPluginHub}\n */\nvar EventPluginRegistry = {\n\n /**\n * Ordered list of injected plugins.\n */\n plugins: [],\n\n /**\n * Mapping from event name to dispatch config\n */\n eventNameDispatchConfigs: {},\n\n /**\n * Mapping from registration name to plugin module\n */\n registrationNameModules: {},\n\n /**\n * Mapping from registration name to event name\n */\n registrationNameDependencies: {},\n\n /**\n * Mapping from lowercase registration names to the properly cased version,\n * used to warn in the case of missing event handlers. Available\n * only in __DEV__.\n * @type {Object}\n */\n possibleRegistrationNames: process.env.NODE_ENV !== 'production' ? {} : null,\n // Trust the developer to only use possibleRegistrationNames in __DEV__\n\n /**\n * Injects an ordering of plugins (by plugin name). This allows the ordering\n * to be decoupled from injection of the actual plugins so that ordering is\n * always deterministic regardless of packaging, on-the-fly injection, etc.\n *\n * @param {array} InjectedEventPluginOrder\n * @internal\n * @see {EventPluginHub.injection.injectEventPluginOrder}\n */\n injectEventPluginOrder: function (injectedEventPluginOrder) {\n !!eventPluginOrder ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0;\n // Clone the ordering so it cannot be dynamically mutated.\n eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n recomputePluginOrdering();\n },\n\n /**\n * Injects plugins to be used by `EventPluginHub`. The plugin names must be\n * in the ordering injected by `injectEventPluginOrder`.\n *\n * Plugins can be injected as part of page initialization or on-the-fly.\n *\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n * @internal\n * @see {EventPluginHub.injection.injectEventPluginsByName}\n */\n injectEventPluginsByName: function (injectedNamesToPlugins) {\n var isOrderingDirty = false;\n for (var pluginName in injectedNamesToPlugins) {\n if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n continue;\n }\n var pluginModule = injectedNamesToPlugins[pluginName];\n if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {\n !!namesToPlugins[pluginName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0;\n namesToPlugins[pluginName] = pluginModule;\n isOrderingDirty = true;\n }\n }\n if (isOrderingDirty) {\n recomputePluginOrdering();\n }\n },\n\n /**\n * Looks up the plugin for the supplied event.\n *\n * @param {object} event A synthetic event.\n * @return {?object} The plugin that created the supplied event.\n * @internal\n */\n getPluginModuleForEvent: function (event) {\n var dispatchConfig = event.dispatchConfig;\n if (dispatchConfig.registrationName) {\n return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null;\n }\n if (dispatchConfig.phasedRegistrationNames !== undefined) {\n // pulling phasedRegistrationNames out of dispatchConfig helps Flow see\n // that it is not undefined.\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n\n for (var phase in phasedRegistrationNames) {\n if (!phasedRegistrationNames.hasOwnProperty(phase)) {\n continue;\n }\n var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]];\n if (pluginModule) {\n return pluginModule;\n }\n }\n }\n return null;\n },\n\n /**\n * Exposed for unit testing.\n * @private\n */\n _resetEventPlugins: function () {\n eventPluginOrder = null;\n for (var pluginName in namesToPlugins) {\n if (namesToPlugins.hasOwnProperty(pluginName)) {\n delete namesToPlugins[pluginName];\n }\n }\n EventPluginRegistry.plugins.length = 0;\n\n var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs;\n for (var eventName in eventNameDispatchConfigs) {\n if (eventNameDispatchConfigs.hasOwnProperty(eventName)) {\n delete eventNameDispatchConfigs[eventName];\n }\n }\n\n var registrationNameModules = EventPluginRegistry.registrationNameModules;\n for (var registrationName in registrationNameModules) {\n if (registrationNameModules.hasOwnProperty(registrationName)) {\n delete registrationNameModules[registrationName];\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames;\n for (var lowerCasedName in possibleRegistrationNames) {\n if (possibleRegistrationNames.hasOwnProperty(lowerCasedName)) {\n delete possibleRegistrationNames[lowerCasedName];\n }\n }\n }\n }\n\n};\n\nmodule.exports = EventPluginRegistry;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/EventPluginRegistry.js\n// module id = 54\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/EventPluginRegistry.js?"); + +/***/ }), +/* 55 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar ReactErrorUtils = __webpack_require__(56);\n\nvar invariant = __webpack_require__(15);\nvar warning = __webpack_require__(18);\n\n/**\n * Injected dependencies:\n */\n\n/**\n * - `ComponentTree`: [required] Module that can convert between React instances\n * and actual node references.\n */\nvar ComponentTree;\nvar TreeTraversal;\nvar injection = {\n injectComponentTree: function (Injected) {\n ComponentTree = Injected;\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;\n }\n },\n injectTreeTraversal: function (Injected) {\n TreeTraversal = Injected;\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0;\n }\n }\n};\n\nfunction isEndish(topLevelType) {\n return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel';\n}\n\nfunction isMoveish(topLevelType) {\n return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove';\n}\nfunction isStartish(topLevelType) {\n return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart';\n}\n\nvar validateEventDispatches;\nif (process.env.NODE_ENV !== 'production') {\n validateEventDispatches = function (event) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n\n var listenersIsArr = Array.isArray(dispatchListeners);\n var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;\n\n var instancesIsArr = Array.isArray(dispatchInstances);\n var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;\n\n process.env.NODE_ENV !== 'production' ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : void 0;\n };\n}\n\n/**\n * Dispatch the event to the listener.\n * @param {SyntheticEvent} event SyntheticEvent to handle\n * @param {boolean} simulated If the event is simulated (changes exn behavior)\n * @param {function} listener Application-level callback\n * @param {*} inst Internal component instance\n */\nfunction executeDispatch(event, simulated, listener, inst) {\n var type = event.type || 'unknown-event';\n event.currentTarget = EventPluginUtils.getNodeFromInstance(inst);\n if (simulated) {\n ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event);\n } else {\n ReactErrorUtils.invokeGuardedCallback(type, listener, event);\n }\n event.currentTarget = null;\n}\n\n/**\n * Standard/simple iteration through an event's collected dispatches.\n */\nfunction executeDispatchesInOrder(event, simulated) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n if (process.env.NODE_ENV !== 'production') {\n validateEventDispatches(event);\n }\n if (Array.isArray(dispatchListeners)) {\n for (var i = 0; i < dispatchListeners.length; i++) {\n if (event.isPropagationStopped()) {\n break;\n }\n // Listeners and Instances are two parallel arrays that are always in sync.\n executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]);\n }\n } else if (dispatchListeners) {\n executeDispatch(event, simulated, dispatchListeners, dispatchInstances);\n }\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n}\n\n/**\n * Standard/simple iteration through an event's collected dispatches, but stops\n * at the first dispatch execution returning true, and returns that id.\n *\n * @return {?string} id of the first dispatch execution who's listener returns\n * true, or null if no listener returned true.\n */\nfunction executeDispatchesInOrderStopAtTrueImpl(event) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n if (process.env.NODE_ENV !== 'production') {\n validateEventDispatches(event);\n }\n if (Array.isArray(dispatchListeners)) {\n for (var i = 0; i < dispatchListeners.length; i++) {\n if (event.isPropagationStopped()) {\n break;\n }\n // Listeners and Instances are two parallel arrays that are always in sync.\n if (dispatchListeners[i](event, dispatchInstances[i])) {\n return dispatchInstances[i];\n }\n }\n } else if (dispatchListeners) {\n if (dispatchListeners(event, dispatchInstances)) {\n return dispatchInstances;\n }\n }\n return null;\n}\n\n/**\n * @see executeDispatchesInOrderStopAtTrueImpl\n */\nfunction executeDispatchesInOrderStopAtTrue(event) {\n var ret = executeDispatchesInOrderStopAtTrueImpl(event);\n event._dispatchInstances = null;\n event._dispatchListeners = null;\n return ret;\n}\n\n/**\n * Execution of a \"direct\" dispatch - there must be at most one dispatch\n * accumulated on the event or it is considered an error. It doesn't really make\n * sense for an event with multiple dispatches (bubbled) to keep track of the\n * return values at each dispatch execution, but it does tend to make sense when\n * dealing with \"direct\" dispatches.\n *\n * @return {*} The return value of executing the single dispatch.\n */\nfunction executeDirectDispatch(event) {\n if (process.env.NODE_ENV !== 'production') {\n validateEventDispatches(event);\n }\n var dispatchListener = event._dispatchListeners;\n var dispatchInstance = event._dispatchInstances;\n !!Array.isArray(dispatchListener) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : _prodInvariant('103') : void 0;\n event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null;\n var res = dispatchListener ? dispatchListener(event) : null;\n event.currentTarget = null;\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n return res;\n}\n\n/**\n * @param {SyntheticEvent} event\n * @return {boolean} True iff number of dispatches accumulated is greater than 0.\n */\nfunction hasDispatches(event) {\n return !!event._dispatchListeners;\n}\n\n/**\n * General utilities that are useful in creating custom Event Plugins.\n */\nvar EventPluginUtils = {\n isEndish: isEndish,\n isMoveish: isMoveish,\n isStartish: isStartish,\n\n executeDirectDispatch: executeDirectDispatch,\n executeDispatchesInOrder: executeDispatchesInOrder,\n executeDispatchesInOrderStopAtTrue: executeDispatchesInOrderStopAtTrue,\n hasDispatches: hasDispatches,\n\n getInstanceFromNode: function (node) {\n return ComponentTree.getInstanceFromNode(node);\n },\n getNodeFromInstance: function (node) {\n return ComponentTree.getNodeFromInstance(node);\n },\n isAncestor: function (a, b) {\n return TreeTraversal.isAncestor(a, b);\n },\n getLowestCommonAncestor: function (a, b) {\n return TreeTraversal.getLowestCommonAncestor(a, b);\n },\n getParentInstance: function (inst) {\n return TreeTraversal.getParentInstance(inst);\n },\n traverseTwoPhase: function (target, fn, arg) {\n return TreeTraversal.traverseTwoPhase(target, fn, arg);\n },\n traverseEnterLeave: function (from, to, fn, argFrom, argTo) {\n return TreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo);\n },\n\n injection: injection\n};\n\nmodule.exports = EventPluginUtils;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/EventPluginUtils.js\n// module id = 55\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/EventPluginUtils.js?"); + +/***/ }), +/* 56 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar caughtError = null;\n\n/**\n * Call a function while guarding against errors that happens within it.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} a First argument\n * @param {*} b Second argument\n */\nfunction invokeGuardedCallback(name, func, a) {\n try {\n func(a);\n } catch (x) {\n if (caughtError === null) {\n caughtError = x;\n }\n }\n}\n\nvar ReactErrorUtils = {\n invokeGuardedCallback: invokeGuardedCallback,\n\n /**\n * Invoked by ReactTestUtils.Simulate so that any errors thrown by the event\n * handler are sure to be rethrown by rethrowCaughtError.\n */\n invokeGuardedCallbackWithCatch: invokeGuardedCallback,\n\n /**\n * During execution of guarded functions we will capture the first error which\n * we will rethrow to be handled by the top level error handler.\n */\n rethrowCaughtError: function () {\n if (caughtError) {\n var error = caughtError;\n caughtError = null;\n throw error;\n }\n }\n};\n\nif (process.env.NODE_ENV !== 'production') {\n /**\n * To help development we can get better devtools integration by simulating a\n * real browser event.\n */\n if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {\n var fakeNode = document.createElement('react');\n ReactErrorUtils.invokeGuardedCallback = function (name, func, a) {\n var boundFunc = func.bind(null, a);\n var evtType = 'react-' + name;\n fakeNode.addEventListener(evtType, boundFunc, false);\n var evt = document.createEvent('Event');\n evt.initEvent(evtType, false, false);\n fakeNode.dispatchEvent(evt);\n fakeNode.removeEventListener(evtType, boundFunc, false);\n };\n }\n}\n\nmodule.exports = ReactErrorUtils;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactErrorUtils.js\n// module id = 56\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactErrorUtils.js?"); + +/***/ }), +/* 57 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar invariant = __webpack_require__(15);\n\n/**\n * Accumulates items that must not be null or undefined into the first one. This\n * is used to conserve memory by avoiding array allocations, and thus sacrifices\n * API cleanness. Since `current` can be null before being passed in and not\n * null after this function, make sure to assign it back to `current`:\n *\n * `a = accumulateInto(a, b);`\n *\n * This API should be sparingly used. Try `accumulate` for something cleaner.\n *\n * @return {*|array<*>} An accumulation of items.\n */\n\nfunction accumulateInto(current, next) {\n !(next != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : void 0;\n\n if (current == null) {\n return next;\n }\n\n // Both are not empty. Warning: Never call x.concat(y) when you are not\n // certain that x is an Array (x could be a string with concat method).\n if (Array.isArray(current)) {\n if (Array.isArray(next)) {\n current.push.apply(current, next);\n return current;\n }\n current.push(next);\n return current;\n }\n\n if (Array.isArray(next)) {\n // A bit too dangerous to mutate `next`.\n return [current].concat(next);\n }\n\n return [current, next];\n}\n\nmodule.exports = accumulateInto;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/accumulateInto.js\n// module id = 57\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/accumulateInto.js?"); + +/***/ }), +/* 58 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * @param {array} arr an \"accumulation\" of items which is either an Array or\n * a single item. Useful when paired with the `accumulate` module. This is a\n * simple utility that allows us to reason about a collection of items, but\n * handling the case when there is exactly one item (and we do not need to\n * allocate an array).\n */\n\nfunction forEachAccumulated(arr, cb, scope) {\n if (Array.isArray(arr)) {\n arr.forEach(cb, scope);\n } else if (arr) {\n cb.call(scope, arr);\n }\n}\n\nmodule.exports = forEachAccumulated;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/forEachAccumulated.js\n// module id = 58\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/forEachAccumulated.js?"); + +/***/ }), +/* 59 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\n/**\n * Simple, lightweight module assisting with the detection and context of\n * Worker. Helps avoid circular dependencies and allows code to reason about\n * whether or not they are in a Worker, even if they never include the main\n * `ReactWorker` dependency.\n */\nvar ExecutionEnvironment = {\n\n canUseDOM: canUseDOM,\n\n canUseWorkers: typeof Worker !== 'undefined',\n\n canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n\n canUseViewport: canUseDOM && !!window.screen,\n\n isInWorker: !canUseDOM // For now, this is true - might change in the future.\n\n};\n\nmodule.exports = ExecutionEnvironment;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/ExecutionEnvironment.js\n// module id = 59\n// module chunks = 0\n//# sourceURL=webpack:///./~/fbjs/lib/ExecutionEnvironment.js?"); + +/***/ }), +/* 60 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = __webpack_require__(11);\n\nvar PooledClass = __webpack_require__(61);\n\nvar getTextContentAccessor = __webpack_require__(62);\n\n/**\n * This helper class stores information about text content of a target node,\n * allowing comparison of content before and after a given event.\n *\n * Identify the node where selection currently begins, then observe\n * both its text content and its current position in the DOM. Since the\n * browser may natively replace the target node during composition, we can\n * use its position to find its replacement.\n *\n * @param {DOMEventTarget} root\n */\nfunction FallbackCompositionState(root) {\n this._root = root;\n this._startText = this.getText();\n this._fallbackText = null;\n}\n\n_assign(FallbackCompositionState.prototype, {\n destructor: function () {\n this._root = null;\n this._startText = null;\n this._fallbackText = null;\n },\n\n /**\n * Get current text of input.\n *\n * @return {string}\n */\n getText: function () {\n if ('value' in this._root) {\n return this._root.value;\n }\n return this._root[getTextContentAccessor()];\n },\n\n /**\n * Determine the differing substring between the initially stored\n * text content and the current content.\n *\n * @return {string}\n */\n getData: function () {\n if (this._fallbackText) {\n return this._fallbackText;\n }\n\n var start;\n var startValue = this._startText;\n var startLength = startValue.length;\n var end;\n var endValue = this.getText();\n var endLength = endValue.length;\n\n for (start = 0; start < startLength; start++) {\n if (startValue[start] !== endValue[start]) {\n break;\n }\n }\n\n var minEnd = startLength - start;\n for (end = 1; end <= minEnd; end++) {\n if (startValue[startLength - end] !== endValue[endLength - end]) {\n break;\n }\n }\n\n var sliceTail = end > 1 ? 1 - end : undefined;\n this._fallbackText = endValue.slice(start, sliceTail);\n return this._fallbackText;\n }\n});\n\nPooledClass.addPoolingTo(FallbackCompositionState);\n\nmodule.exports = FallbackCompositionState;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/FallbackCompositionState.js\n// module id = 60\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/FallbackCompositionState.js?"); + +/***/ }), +/* 61 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar invariant = __webpack_require__(15);\n\n/**\n * Static poolers. Several custom versions for each potential number of\n * arguments. A completely generic pooler is easy to implement, but would\n * require accessing the `arguments` object. In each of these, `this` refers to\n * the Class itself, not an instance. If any others are needed, simply add them\n * here, or in their own files.\n */\nvar oneArgumentPooler = function (copyFieldsFrom) {\n var Klass = this;\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, copyFieldsFrom);\n return instance;\n } else {\n return new Klass(copyFieldsFrom);\n }\n};\n\nvar twoArgumentPooler = function (a1, a2) {\n var Klass = this;\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2);\n return instance;\n } else {\n return new Klass(a1, a2);\n }\n};\n\nvar threeArgumentPooler = function (a1, a2, a3) {\n var Klass = this;\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3);\n return instance;\n } else {\n return new Klass(a1, a2, a3);\n }\n};\n\nvar fourArgumentPooler = function (a1, a2, a3, a4) {\n var Klass = this;\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3, a4);\n return instance;\n } else {\n return new Klass(a1, a2, a3, a4);\n }\n};\n\nvar standardReleaser = function (instance) {\n var Klass = this;\n !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;\n instance.destructor();\n if (Klass.instancePool.length < Klass.poolSize) {\n Klass.instancePool.push(instance);\n }\n};\n\nvar DEFAULT_POOL_SIZE = 10;\nvar DEFAULT_POOLER = oneArgumentPooler;\n\n/**\n * Augments `CopyConstructor` to be a poolable class, augmenting only the class\n * itself (statically) not adding any prototypical fields. Any CopyConstructor\n * you give this may have a `poolSize` property, and will look for a\n * prototypical `destructor` on instances.\n *\n * @param {Function} CopyConstructor Constructor that can be used to reset.\n * @param {Function} pooler Customizable pooler.\n */\nvar addPoolingTo = function (CopyConstructor, pooler) {\n // Casting as any so that flow ignores the actual implementation and trusts\n // it to match the type we declared\n var NewKlass = CopyConstructor;\n NewKlass.instancePool = [];\n NewKlass.getPooled = pooler || DEFAULT_POOLER;\n if (!NewKlass.poolSize) {\n NewKlass.poolSize = DEFAULT_POOL_SIZE;\n }\n NewKlass.release = standardReleaser;\n return NewKlass;\n};\n\nvar PooledClass = {\n addPoolingTo: addPoolingTo,\n oneArgumentPooler: oneArgumentPooler,\n twoArgumentPooler: twoArgumentPooler,\n threeArgumentPooler: threeArgumentPooler,\n fourArgumentPooler: fourArgumentPooler\n};\n\nmodule.exports = PooledClass;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/PooledClass.js\n// module id = 61\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/PooledClass.js?"); + +/***/ }), +/* 62 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = __webpack_require__(59);\n\nvar contentKey = null;\n\n/**\n * Gets the key used to access text content on a DOM node.\n *\n * @return {?string} Key used to access text content.\n * @internal\n */\nfunction getTextContentAccessor() {\n if (!contentKey && ExecutionEnvironment.canUseDOM) {\n // Prefer textContent to innerText because many browsers support both but\n // SVG elements don't support innerText even when
does.\n contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText';\n }\n return contentKey;\n}\n\nmodule.exports = getTextContentAccessor;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/getTextContentAccessor.js\n// module id = 62\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/getTextContentAccessor.js?"); + +/***/ }), +/* 63 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = __webpack_require__(64);\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents\n */\nvar CompositionEventInterface = {\n data: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);\n\nmodule.exports = SyntheticCompositionEvent;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/SyntheticCompositionEvent.js\n// module id = 63\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/SyntheticCompositionEvent.js?"); + +/***/ }), +/* 64 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _assign = __webpack_require__(11);\n\nvar PooledClass = __webpack_require__(61);\n\nvar emptyFunction = __webpack_require__(19);\nvar warning = __webpack_require__(18);\n\nvar didWarnForAddedNewProperty = false;\nvar isProxySupported = typeof Proxy === 'function';\n\nvar shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances'];\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar EventInterface = {\n type: null,\n target: null,\n // currentTarget is set when dispatching; no use in copying it here\n currentTarget: emptyFunction.thatReturnsNull,\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function (event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n};\n\n/**\n * Synthetic events are dispatched by event plugins, typically in response to a\n * top-level event delegation handler.\n *\n * These systems should generally use pooling to reduce the frequency of garbage\n * collection. The system should check `isPersistent` to determine whether the\n * event should be released into the pool after being dispatched. Users that\n * need a persisted event should invoke `persist`.\n *\n * Synthetic events (and subclasses) implement the DOM Level 3 Events API by\n * normalizing browser quirks. Subclasses do not necessarily have to implement a\n * DOM interface; custom application-specific events can also subclass this.\n *\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {*} targetInst Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @param {DOMEventTarget} nativeEventTarget Target node.\n */\nfunction SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {\n if (process.env.NODE_ENV !== 'production') {\n // these have a getter/setter for warnings\n delete this.nativeEvent;\n delete this.preventDefault;\n delete this.stopPropagation;\n }\n\n this.dispatchConfig = dispatchConfig;\n this._targetInst = targetInst;\n this.nativeEvent = nativeEvent;\n\n var Interface = this.constructor.Interface;\n for (var propName in Interface) {\n if (!Interface.hasOwnProperty(propName)) {\n continue;\n }\n if (process.env.NODE_ENV !== 'production') {\n delete this[propName]; // this has a getter/setter for warnings\n }\n var normalize = Interface[propName];\n if (normalize) {\n this[propName] = normalize(nativeEvent);\n } else {\n if (propName === 'target') {\n this.target = nativeEventTarget;\n } else {\n this[propName] = nativeEvent[propName];\n }\n }\n }\n\n var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;\n if (defaultPrevented) {\n this.isDefaultPrevented = emptyFunction.thatReturnsTrue;\n } else {\n this.isDefaultPrevented = emptyFunction.thatReturnsFalse;\n }\n this.isPropagationStopped = emptyFunction.thatReturnsFalse;\n return this;\n}\n\n_assign(SyntheticEvent.prototype, {\n\n preventDefault: function () {\n this.defaultPrevented = true;\n var event = this.nativeEvent;\n if (!event) {\n return;\n }\n\n if (event.preventDefault) {\n event.preventDefault();\n } else if (typeof event.returnValue !== 'unknown') {\n // eslint-disable-line valid-typeof\n event.returnValue = false;\n }\n this.isDefaultPrevented = emptyFunction.thatReturnsTrue;\n },\n\n stopPropagation: function () {\n var event = this.nativeEvent;\n if (!event) {\n return;\n }\n\n if (event.stopPropagation) {\n event.stopPropagation();\n } else if (typeof event.cancelBubble !== 'unknown') {\n // eslint-disable-line valid-typeof\n // The ChangeEventPlugin registers a \"propertychange\" event for\n // IE. This event does not support bubbling or cancelling, and\n // any references to cancelBubble throw \"Member not found\". A\n // typeof check of \"unknown\" circumvents this issue (and is also\n // IE specific).\n event.cancelBubble = true;\n }\n\n this.isPropagationStopped = emptyFunction.thatReturnsTrue;\n },\n\n /**\n * We release all dispatched `SyntheticEvent`s after each event loop, adding\n * them back into the pool. This allows a way to hold onto a reference that\n * won't be added back into the pool.\n */\n persist: function () {\n this.isPersistent = emptyFunction.thatReturnsTrue;\n },\n\n /**\n * Checks if this event should be released back into the pool.\n *\n * @return {boolean} True if this should not be released, false otherwise.\n */\n isPersistent: emptyFunction.thatReturnsFalse,\n\n /**\n * `PooledClass` looks for `destructor` on each instance it releases.\n */\n destructor: function () {\n var Interface = this.constructor.Interface;\n for (var propName in Interface) {\n if (process.env.NODE_ENV !== 'production') {\n Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));\n } else {\n this[propName] = null;\n }\n }\n for (var i = 0; i < shouldBeReleasedProperties.length; i++) {\n this[shouldBeReleasedProperties[i]] = null;\n }\n if (process.env.NODE_ENV !== 'production') {\n Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));\n Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction));\n Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));\n }\n }\n\n});\n\nSyntheticEvent.Interface = EventInterface;\n\nif (process.env.NODE_ENV !== 'production') {\n if (isProxySupported) {\n /*eslint-disable no-func-assign */\n SyntheticEvent = new Proxy(SyntheticEvent, {\n construct: function (target, args) {\n return this.apply(target, Object.create(target.prototype), args);\n },\n apply: function (constructor, that, args) {\n return new Proxy(constructor.apply(that, args), {\n set: function (target, prop, value) {\n if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {\n process.env.NODE_ENV !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\\'re ' + 'seeing this, you\\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;\n didWarnForAddedNewProperty = true;\n }\n target[prop] = value;\n return true;\n }\n });\n }\n });\n /*eslint-enable no-func-assign */\n }\n}\n/**\n * Helper to reduce boilerplate when creating subclasses.\n *\n * @param {function} Class\n * @param {?object} Interface\n */\nSyntheticEvent.augmentClass = function (Class, Interface) {\n var Super = this;\n\n var E = function () {};\n E.prototype = Super.prototype;\n var prototype = new E();\n\n _assign(prototype, Class.prototype);\n Class.prototype = prototype;\n Class.prototype.constructor = Class;\n\n Class.Interface = _assign({}, Super.Interface, Interface);\n Class.augmentClass = Super.augmentClass;\n\n PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);\n};\n\nPooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);\n\nmodule.exports = SyntheticEvent;\n\n/**\n * Helper to nullify syntheticEvent instance properties when destructing\n *\n * @param {object} SyntheticEvent\n * @param {String} propName\n * @return {object} defineProperty object\n */\nfunction getPooledWarningPropertyDefinition(propName, getVal) {\n var isFunction = typeof getVal === 'function';\n return {\n configurable: true,\n set: set,\n get: get\n };\n\n function set(val) {\n var action = isFunction ? 'setting the method' : 'setting the property';\n warn(action, 'This is effectively a no-op');\n return val;\n }\n\n function get() {\n var action = isFunction ? 'accessing the method' : 'accessing the property';\n var result = isFunction ? 'This is a no-op function' : 'This is set to null';\n warn(action, result);\n return getVal;\n }\n\n function warn(action, result) {\n var warningCondition = false;\n process.env.NODE_ENV !== 'production' ? warning(warningCondition, 'This synthetic event is reused for performance reasons. If you\\'re seeing this, ' + 'you\\'re %s `%s` on a released/nullified synthetic event. %s. ' + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;\n }\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/SyntheticEvent.js\n// module id = 64\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/SyntheticEvent.js?"); + +/***/ }), +/* 65 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = __webpack_require__(64);\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105\n * /#events-inputevents\n */\nvar InputEventInterface = {\n data: null\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface);\n\nmodule.exports = SyntheticInputEvent;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/SyntheticInputEvent.js\n// module id = 65\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/SyntheticInputEvent.js?"); + +/***/ }), +/* 66 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPluginHub = __webpack_require__(53);\nvar EventPropagators = __webpack_require__(52);\nvar ExecutionEnvironment = __webpack_require__(59);\nvar ReactDOMComponentTree = __webpack_require__(45);\nvar ReactUpdates = __webpack_require__(67);\nvar SyntheticEvent = __webpack_require__(64);\n\nvar getEventTarget = __webpack_require__(80);\nvar isEventSupported = __webpack_require__(81);\nvar isTextInputElement = __webpack_require__(82);\n\nvar eventTypes = {\n change: {\n phasedRegistrationNames: {\n bubbled: 'onChange',\n captured: 'onChangeCapture'\n },\n dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange']\n }\n};\n\n/**\n * For IE shims\n */\nvar activeElement = null;\nvar activeElementInst = null;\nvar activeElementValue = null;\nvar activeElementValueProp = null;\n\n/**\n * SECTION: handle `change` event\n */\nfunction shouldUseChangeEvent(elem) {\n var nodeName = elem.nodeName && elem.nodeName.toLowerCase();\n return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';\n}\n\nvar doesChangeEventBubble = false;\nif (ExecutionEnvironment.canUseDOM) {\n // See `handleChange` comment below\n doesChangeEventBubble = isEventSupported('change') && (!document.documentMode || document.documentMode > 8);\n}\n\nfunction manualDispatchChangeEvent(nativeEvent) {\n var event = SyntheticEvent.getPooled(eventTypes.change, activeElementInst, nativeEvent, getEventTarget(nativeEvent));\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n // If change and propertychange bubbled, we'd just bind to it like all the\n // other events and have it go through ReactBrowserEventEmitter. Since it\n // doesn't, we manually listen for the events and so we have to enqueue and\n // process the abstract event manually.\n //\n // Batching is necessary here in order to ensure that all event handlers run\n // before the next rerender (including event handlers attached to ancestor\n // elements instead of directly on the input). Without this, controlled\n // components don't work properly in conjunction with event bubbling because\n // the component is rerendered and the value reverted before all the event\n // handlers can run. See https://github.com/facebook/react/issues/708.\n ReactUpdates.batchedUpdates(runEventInBatch, event);\n}\n\nfunction runEventInBatch(event) {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue(false);\n}\n\nfunction startWatchingForChangeEventIE8(target, targetInst) {\n activeElement = target;\n activeElementInst = targetInst;\n activeElement.attachEvent('onchange', manualDispatchChangeEvent);\n}\n\nfunction stopWatchingForChangeEventIE8() {\n if (!activeElement) {\n return;\n }\n activeElement.detachEvent('onchange', manualDispatchChangeEvent);\n activeElement = null;\n activeElementInst = null;\n}\n\nfunction getTargetInstForChangeEvent(topLevelType, targetInst) {\n if (topLevelType === 'topChange') {\n return targetInst;\n }\n}\nfunction handleEventsForChangeEventIE8(topLevelType, target, targetInst) {\n if (topLevelType === 'topFocus') {\n // stopWatching() should be a noop here but we call it just in case we\n // missed a blur event somehow.\n stopWatchingForChangeEventIE8();\n startWatchingForChangeEventIE8(target, targetInst);\n } else if (topLevelType === 'topBlur') {\n stopWatchingForChangeEventIE8();\n }\n}\n\n/**\n * SECTION: handle `input` event\n */\nvar isInputEventSupported = false;\nif (ExecutionEnvironment.canUseDOM) {\n // IE9 claims to support the input event but fails to trigger it when\n // deleting text, so we ignore its input events.\n // IE10+ fire input events to often, such when a placeholder\n // changes or when an input with a placeholder is focused.\n isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 11);\n}\n\n/**\n * (For IE <=11) Replacement getter/setter for the `value` property that gets\n * set on the active element.\n */\nvar newValueProp = {\n get: function () {\n return activeElementValueProp.get.call(this);\n },\n set: function (val) {\n // Cast to a string so we can do equality checks.\n activeElementValue = '' + val;\n activeElementValueProp.set.call(this, val);\n }\n};\n\n/**\n * (For IE <=11) Starts tracking propertychange events on the passed-in element\n * and override the value property so that we can distinguish user events from\n * value changes in JS.\n */\nfunction startWatchingForValueChange(target, targetInst) {\n activeElement = target;\n activeElementInst = targetInst;\n activeElementValue = target.value;\n activeElementValueProp = Object.getOwnPropertyDescriptor(target.constructor.prototype, 'value');\n\n // Not guarded in a canDefineProperty check: IE8 supports defineProperty only\n // on DOM elements\n Object.defineProperty(activeElement, 'value', newValueProp);\n if (activeElement.attachEvent) {\n activeElement.attachEvent('onpropertychange', handlePropertyChange);\n } else {\n activeElement.addEventListener('propertychange', handlePropertyChange, false);\n }\n}\n\n/**\n * (For IE <=11) Removes the event listeners from the currently-tracked element,\n * if any exists.\n */\nfunction stopWatchingForValueChange() {\n if (!activeElement) {\n return;\n }\n\n // delete restores the original property definition\n delete activeElement.value;\n\n if (activeElement.detachEvent) {\n activeElement.detachEvent('onpropertychange', handlePropertyChange);\n } else {\n activeElement.removeEventListener('propertychange', handlePropertyChange, false);\n }\n\n activeElement = null;\n activeElementInst = null;\n activeElementValue = null;\n activeElementValueProp = null;\n}\n\n/**\n * (For IE <=11) Handles a propertychange event, sending a `change` event if\n * the value of the active element has changed.\n */\nfunction handlePropertyChange(nativeEvent) {\n if (nativeEvent.propertyName !== 'value') {\n return;\n }\n var value = nativeEvent.srcElement.value;\n if (value === activeElementValue) {\n return;\n }\n activeElementValue = value;\n\n manualDispatchChangeEvent(nativeEvent);\n}\n\n/**\n * If a `change` event should be fired, returns the target's ID.\n */\nfunction getTargetInstForInputEvent(topLevelType, targetInst) {\n if (topLevelType === 'topInput') {\n // In modern browsers (i.e., not IE8 or IE9), the input event is exactly\n // what we want so fall through here and trigger an abstract event\n return targetInst;\n }\n}\n\nfunction handleEventsForInputEventIE(topLevelType, target, targetInst) {\n if (topLevelType === 'topFocus') {\n // In IE8, we can capture almost all .value changes by adding a\n // propertychange handler and looking for events with propertyName\n // equal to 'value'\n // In IE9-11, propertychange fires for most input events but is buggy and\n // doesn't fire when text is deleted, but conveniently, selectionchange\n // appears to fire in all of the remaining cases so we catch those and\n // forward the event if the value has changed\n // In either case, we don't want to call the event handler if the value\n // is changed from JS so we redefine a setter for `.value` that updates\n // our activeElementValue variable, allowing us to ignore those changes\n //\n // stopWatching() should be a noop here but we call it just in case we\n // missed a blur event somehow.\n stopWatchingForValueChange();\n startWatchingForValueChange(target, targetInst);\n } else if (topLevelType === 'topBlur') {\n stopWatchingForValueChange();\n }\n}\n\n// For IE8 and IE9.\nfunction getTargetInstForInputEventIE(topLevelType, targetInst) {\n if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') {\n // On the selectionchange event, the target is just document which isn't\n // helpful for us so just check activeElement instead.\n //\n // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire\n // propertychange on the first input event after setting `value` from a\n // script and fires only keydown, keypress, keyup. Catching keyup usually\n // gets it and catching keydown lets us fire an event for the first\n // keystroke if user does a key repeat (it'll be a little delayed: right\n // before the second keystroke). Other input methods (e.g., paste) seem to\n // fire selectionchange normally.\n if (activeElement && activeElement.value !== activeElementValue) {\n activeElementValue = activeElement.value;\n return activeElementInst;\n }\n }\n}\n\n/**\n * SECTION: handle `click` event\n */\nfunction shouldUseClickEvent(elem) {\n // Use the `click` event to detect changes to checkbox and radio inputs.\n // This approach works across all browsers, whereas `change` does not fire\n // until `blur` in IE8.\n return elem.nodeName && elem.nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');\n}\n\nfunction getTargetInstForClickEvent(topLevelType, targetInst) {\n if (topLevelType === 'topClick') {\n return targetInst;\n }\n}\n\nfunction handleControlledInputBlur(inst, node) {\n // TODO: In IE, inst is occasionally null. Why?\n if (inst == null) {\n return;\n }\n\n // Fiber and ReactDOM keep wrapper state in separate places\n var state = inst._wrapperState || node._wrapperState;\n\n if (!state || !state.controlled || node.type !== 'number') {\n return;\n }\n\n // If controlled, assign the value attribute to the current value on blur\n var value = '' + node.value;\n if (node.getAttribute('value') !== value) {\n node.setAttribute('value', value);\n }\n}\n\n/**\n * This plugin creates an `onChange` event that normalizes change events\n * across form elements. This event fires at a time when it's possible to\n * change the element's value without seeing a flicker.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - select\n */\nvar ChangeEventPlugin = {\n\n eventTypes: eventTypes,\n\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;\n\n var getTargetInstFunc, handleEventFunc;\n if (shouldUseChangeEvent(targetNode)) {\n if (doesChangeEventBubble) {\n getTargetInstFunc = getTargetInstForChangeEvent;\n } else {\n handleEventFunc = handleEventsForChangeEventIE8;\n }\n } else if (isTextInputElement(targetNode)) {\n if (isInputEventSupported) {\n getTargetInstFunc = getTargetInstForInputEvent;\n } else {\n getTargetInstFunc = getTargetInstForInputEventIE;\n handleEventFunc = handleEventsForInputEventIE;\n }\n } else if (shouldUseClickEvent(targetNode)) {\n getTargetInstFunc = getTargetInstForClickEvent;\n }\n\n if (getTargetInstFunc) {\n var inst = getTargetInstFunc(topLevelType, targetInst);\n if (inst) {\n var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, nativeEventTarget);\n event.type = 'change';\n EventPropagators.accumulateTwoPhaseDispatches(event);\n return event;\n }\n }\n\n if (handleEventFunc) {\n handleEventFunc(topLevelType, targetNode, targetInst);\n }\n\n // When blurring, set the value attribute for number inputs\n if (topLevelType === 'topBlur') {\n handleControlledInputBlur(targetInst, targetNode);\n }\n }\n\n};\n\nmodule.exports = ChangeEventPlugin;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ChangeEventPlugin.js\n// module id = 66\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ChangeEventPlugin.js?"); + +/***/ }), +/* 67 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46),\n _assign = __webpack_require__(11);\n\nvar CallbackQueue = __webpack_require__(68);\nvar PooledClass = __webpack_require__(61);\nvar ReactFeatureFlags = __webpack_require__(69);\nvar ReactReconciler = __webpack_require__(70);\nvar Transaction = __webpack_require__(79);\n\nvar invariant = __webpack_require__(15);\n\nvar dirtyComponents = [];\nvar updateBatchNumber = 0;\nvar asapCallbackQueue = CallbackQueue.getPooled();\nvar asapEnqueued = false;\n\nvar batchingStrategy = null;\n\nfunction ensureInjected() {\n !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0;\n}\n\nvar NESTED_UPDATES = {\n initialize: function () {\n this.dirtyComponentsLength = dirtyComponents.length;\n },\n close: function () {\n if (this.dirtyComponentsLength !== dirtyComponents.length) {\n // Additional updates were enqueued by componentDidUpdate handlers or\n // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run\n // these new updates so that if A's componentDidUpdate calls setState on\n // B, B will update before the callback A's updater provided when calling\n // setState.\n dirtyComponents.splice(0, this.dirtyComponentsLength);\n flushBatchedUpdates();\n } else {\n dirtyComponents.length = 0;\n }\n }\n};\n\nvar UPDATE_QUEUEING = {\n initialize: function () {\n this.callbackQueue.reset();\n },\n close: function () {\n this.callbackQueue.notifyAll();\n }\n};\n\nvar TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING];\n\nfunction ReactUpdatesFlushTransaction() {\n this.reinitializeTransaction();\n this.dirtyComponentsLength = null;\n this.callbackQueue = CallbackQueue.getPooled();\n this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(\n /* useCreateElement */true);\n}\n\n_assign(ReactUpdatesFlushTransaction.prototype, Transaction, {\n getTransactionWrappers: function () {\n return TRANSACTION_WRAPPERS;\n },\n\n destructor: function () {\n this.dirtyComponentsLength = null;\n CallbackQueue.release(this.callbackQueue);\n this.callbackQueue = null;\n ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction);\n this.reconcileTransaction = null;\n },\n\n perform: function (method, scope, a) {\n // Essentially calls `this.reconcileTransaction.perform(method, scope, a)`\n // with this transaction's wrappers around it.\n return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a);\n }\n});\n\nPooledClass.addPoolingTo(ReactUpdatesFlushTransaction);\n\nfunction batchedUpdates(callback, a, b, c, d, e) {\n ensureInjected();\n return batchingStrategy.batchedUpdates(callback, a, b, c, d, e);\n}\n\n/**\n * Array comparator for ReactComponents by mount ordering.\n *\n * @param {ReactComponent} c1 first component you're comparing\n * @param {ReactComponent} c2 second component you're comparing\n * @return {number} Return value usable by Array.prototype.sort().\n */\nfunction mountOrderComparator(c1, c2) {\n return c1._mountOrder - c2._mountOrder;\n}\n\nfunction runBatchedUpdates(transaction) {\n var len = transaction.dirtyComponentsLength;\n !(len === dirtyComponents.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected flush transaction\\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0;\n\n // Since reconciling a component higher in the owner hierarchy usually (not\n // always -- see shouldComponentUpdate()) will reconcile children, reconcile\n // them before their children by sorting the array.\n dirtyComponents.sort(mountOrderComparator);\n\n // Any updates enqueued while reconciling must be performed after this entire\n // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and\n // C, B could update twice in a single batch if C's render enqueues an update\n // to B (since B would have already updated, we should skip it, and the only\n // way we can know to do so is by checking the batch counter).\n updateBatchNumber++;\n\n for (var i = 0; i < len; i++) {\n // If a component is unmounted before pending changes apply, it will still\n // be here, but we assume that it has cleared its _pendingCallbacks and\n // that performUpdateIfNecessary is a noop.\n var component = dirtyComponents[i];\n\n // If performUpdateIfNecessary happens to enqueue any new updates, we\n // shouldn't execute the callbacks until the next render happens, so\n // stash the callbacks first\n var callbacks = component._pendingCallbacks;\n component._pendingCallbacks = null;\n\n var markerName;\n if (ReactFeatureFlags.logTopLevelRenders) {\n var namedComponent = component;\n // Duck type TopLevelWrapper. This is probably always true.\n if (component._currentElement.type.isReactTopLevelWrapper) {\n namedComponent = component._renderedComponent;\n }\n markerName = 'React update: ' + namedComponent.getName();\n console.time(markerName);\n }\n\n ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction, updateBatchNumber);\n\n if (markerName) {\n console.timeEnd(markerName);\n }\n\n if (callbacks) {\n for (var j = 0; j < callbacks.length; j++) {\n transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance());\n }\n }\n }\n}\n\nvar flushBatchedUpdates = function () {\n // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents\n // array and perform any updates enqueued by mount-ready handlers (i.e.,\n // componentDidUpdate) but we need to check here too in order to catch\n // updates enqueued by setState callbacks and asap calls.\n while (dirtyComponents.length || asapEnqueued) {\n if (dirtyComponents.length) {\n var transaction = ReactUpdatesFlushTransaction.getPooled();\n transaction.perform(runBatchedUpdates, null, transaction);\n ReactUpdatesFlushTransaction.release(transaction);\n }\n\n if (asapEnqueued) {\n asapEnqueued = false;\n var queue = asapCallbackQueue;\n asapCallbackQueue = CallbackQueue.getPooled();\n queue.notifyAll();\n CallbackQueue.release(queue);\n }\n }\n};\n\n/**\n * Mark a component as needing a rerender, adding an optional callback to a\n * list of functions which will be executed once the rerender occurs.\n */\nfunction enqueueUpdate(component) {\n ensureInjected();\n\n // Various parts of our code (such as ReactCompositeComponent's\n // _renderValidatedComponent) assume that calls to render aren't nested;\n // verify that that's the case. (This is called by each top-level update\n // function, like setState, forceUpdate, etc.; creation and\n // destruction of top-level components is guarded in ReactMount.)\n\n if (!batchingStrategy.isBatchingUpdates) {\n batchingStrategy.batchedUpdates(enqueueUpdate, component);\n return;\n }\n\n dirtyComponents.push(component);\n if (component._updateBatchNumber == null) {\n component._updateBatchNumber = updateBatchNumber + 1;\n }\n}\n\n/**\n * Enqueue a callback to be run at the end of the current batching cycle. Throws\n * if no updates are currently being performed.\n */\nfunction asap(callback, context) {\n !batchingStrategy.isBatchingUpdates ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0;\n asapCallbackQueue.enqueue(callback, context);\n asapEnqueued = true;\n}\n\nvar ReactUpdatesInjection = {\n injectReconcileTransaction: function (ReconcileTransaction) {\n !ReconcileTransaction ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0;\n ReactUpdates.ReactReconcileTransaction = ReconcileTransaction;\n },\n\n injectBatchingStrategy: function (_batchingStrategy) {\n !_batchingStrategy ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0;\n !(typeof _batchingStrategy.batchedUpdates === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0;\n !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0;\n batchingStrategy = _batchingStrategy;\n }\n};\n\nvar ReactUpdates = {\n /**\n * React references `ReactReconcileTransaction` using this property in order\n * to allow dependency injection.\n *\n * @internal\n */\n ReactReconcileTransaction: null,\n\n batchedUpdates: batchedUpdates,\n enqueueUpdate: enqueueUpdate,\n flushBatchedUpdates: flushBatchedUpdates,\n injection: ReactUpdatesInjection,\n asap: asap\n};\n\nmodule.exports = ReactUpdates;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactUpdates.js\n// module id = 67\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactUpdates.js?"); + +/***/ }), +/* 68 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar PooledClass = __webpack_require__(61);\n\nvar invariant = __webpack_require__(15);\n\n/**\n * A specialized pseudo-event module to help keep track of components waiting to\n * be notified when their DOM representations are available for use.\n *\n * This implements `PooledClass`, so you should never need to instantiate this.\n * Instead, use `CallbackQueue.getPooled()`.\n *\n * @class ReactMountReady\n * @implements PooledClass\n * @internal\n */\n\nvar CallbackQueue = function () {\n function CallbackQueue(arg) {\n _classCallCheck(this, CallbackQueue);\n\n this._callbacks = null;\n this._contexts = null;\n this._arg = arg;\n }\n\n /**\n * Enqueues a callback to be invoked when `notifyAll` is invoked.\n *\n * @param {function} callback Invoked when `notifyAll` is invoked.\n * @param {?object} context Context to call `callback` with.\n * @internal\n */\n\n\n CallbackQueue.prototype.enqueue = function enqueue(callback, context) {\n this._callbacks = this._callbacks || [];\n this._callbacks.push(callback);\n this._contexts = this._contexts || [];\n this._contexts.push(context);\n };\n\n /**\n * Invokes all enqueued callbacks and clears the queue. This is invoked after\n * the DOM representation of a component has been created or updated.\n *\n * @internal\n */\n\n\n CallbackQueue.prototype.notifyAll = function notifyAll() {\n var callbacks = this._callbacks;\n var contexts = this._contexts;\n var arg = this._arg;\n if (callbacks && contexts) {\n !(callbacks.length === contexts.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0;\n this._callbacks = null;\n this._contexts = null;\n for (var i = 0; i < callbacks.length; i++) {\n callbacks[i].call(contexts[i], arg);\n }\n callbacks.length = 0;\n contexts.length = 0;\n }\n };\n\n CallbackQueue.prototype.checkpoint = function checkpoint() {\n return this._callbacks ? this._callbacks.length : 0;\n };\n\n CallbackQueue.prototype.rollback = function rollback(len) {\n if (this._callbacks && this._contexts) {\n this._callbacks.length = len;\n this._contexts.length = len;\n }\n };\n\n /**\n * Resets the internal queue.\n *\n * @internal\n */\n\n\n CallbackQueue.prototype.reset = function reset() {\n this._callbacks = null;\n this._contexts = null;\n };\n\n /**\n * `PooledClass` looks for this.\n */\n\n\n CallbackQueue.prototype.destructor = function destructor() {\n this.reset();\n };\n\n return CallbackQueue;\n}();\n\nmodule.exports = PooledClass.addPoolingTo(CallbackQueue);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/CallbackQueue.js\n// module id = 68\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/CallbackQueue.js?"); + +/***/ }), +/* 69 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactFeatureFlags = {\n // When true, call console.time() before and .timeEnd() after each top-level\n // render (both initial renders and updates). Useful when looking at prod-mode\n // timeline profiles in Chrome, for example.\n logTopLevelRenders: false\n};\n\nmodule.exports = ReactFeatureFlags;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactFeatureFlags.js\n// module id = 69\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactFeatureFlags.js?"); + +/***/ }), +/* 70 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ReactRef = __webpack_require__(71);\nvar ReactInstrumentation = __webpack_require__(73);\n\nvar warning = __webpack_require__(18);\n\n/**\n * Helper to call ReactRef.attachRefs with this composite component, split out\n * to avoid allocations in the transaction mount-ready queue.\n */\nfunction attachRefs() {\n ReactRef.attachRefs(this, this._currentElement);\n}\n\nvar ReactReconciler = {\n\n /**\n * Initializes the component, renders markup, and registers event listeners.\n *\n * @param {ReactComponent} internalInstance\n * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n * @param {?object} the containing host component instance\n * @param {?object} info about the host container\n * @return {?string} Rendered markup to be inserted into the DOM.\n * @final\n * @internal\n */\n mountComponent: function (internalInstance, transaction, hostParent, hostContainerInfo, context, parentDebugID // 0 in production and for roots\n ) {\n if (process.env.NODE_ENV !== 'production') {\n if (internalInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onBeforeMountComponent(internalInstance._debugID, internalInstance._currentElement, parentDebugID);\n }\n }\n var markup = internalInstance.mountComponent(transaction, hostParent, hostContainerInfo, context, parentDebugID);\n if (internalInstance._currentElement && internalInstance._currentElement.ref != null) {\n transaction.getReactMountReady().enqueue(attachRefs, internalInstance);\n }\n if (process.env.NODE_ENV !== 'production') {\n if (internalInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID);\n }\n }\n return markup;\n },\n\n /**\n * Returns a value that can be passed to\n * ReactComponentEnvironment.replaceNodeWithMarkup.\n */\n getHostNode: function (internalInstance) {\n return internalInstance.getHostNode();\n },\n\n /**\n * Releases any resources allocated by `mountComponent`.\n *\n * @final\n * @internal\n */\n unmountComponent: function (internalInstance, safely) {\n if (process.env.NODE_ENV !== 'production') {\n if (internalInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID);\n }\n }\n ReactRef.detachRefs(internalInstance, internalInstance._currentElement);\n internalInstance.unmountComponent(safely);\n if (process.env.NODE_ENV !== 'production') {\n if (internalInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID);\n }\n }\n },\n\n /**\n * Update a component using a new element.\n *\n * @param {ReactComponent} internalInstance\n * @param {ReactElement} nextElement\n * @param {ReactReconcileTransaction} transaction\n * @param {object} context\n * @internal\n */\n receiveComponent: function (internalInstance, nextElement, transaction, context) {\n var prevElement = internalInstance._currentElement;\n\n if (nextElement === prevElement && context === internalInstance._context) {\n // Since elements are immutable after the owner is rendered,\n // we can do a cheap identity compare here to determine if this is a\n // superfluous reconcile. It's possible for state to be mutable but such\n // change should trigger an update of the owner which would recreate\n // the element. We explicitly check for the existence of an owner since\n // it's possible for an element created outside a composite to be\n // deeply mutated and reused.\n\n // TODO: Bailing out early is just a perf optimization right?\n // TODO: Removing the return statement should affect correctness?\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (internalInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, nextElement);\n }\n }\n\n var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement);\n\n if (refsChanged) {\n ReactRef.detachRefs(internalInstance, prevElement);\n }\n\n internalInstance.receiveComponent(nextElement, transaction, context);\n\n if (refsChanged && internalInstance._currentElement && internalInstance._currentElement.ref != null) {\n transaction.getReactMountReady().enqueue(attachRefs, internalInstance);\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (internalInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);\n }\n }\n },\n\n /**\n * Flush any dirty changes in a component.\n *\n * @param {ReactComponent} internalInstance\n * @param {ReactReconcileTransaction} transaction\n * @internal\n */\n performUpdateIfNecessary: function (internalInstance, transaction, updateBatchNumber) {\n if (internalInstance._updateBatchNumber !== updateBatchNumber) {\n // The component's enqueued batch number should always be the current\n // batch or the following one.\n process.env.NODE_ENV !== 'production' ? warning(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : void 0;\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (internalInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, internalInstance._currentElement);\n }\n }\n internalInstance.performUpdateIfNecessary(transaction);\n if (process.env.NODE_ENV !== 'production') {\n if (internalInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);\n }\n }\n }\n\n};\n\nmodule.exports = ReactReconciler;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactReconciler.js\n// module id = 70\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactReconciler.js?"); + +/***/ }), +/* 71 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactOwner = __webpack_require__(72);\n\nvar ReactRef = {};\n\nfunction attachRef(ref, component, owner) {\n if (typeof ref === 'function') {\n ref(component.getPublicInstance());\n } else {\n // Legacy ref\n ReactOwner.addComponentAsRefTo(component, ref, owner);\n }\n}\n\nfunction detachRef(ref, component, owner) {\n if (typeof ref === 'function') {\n ref(null);\n } else {\n // Legacy ref\n ReactOwner.removeComponentAsRefFrom(component, ref, owner);\n }\n}\n\nReactRef.attachRefs = function (instance, element) {\n if (element === null || typeof element !== 'object') {\n return;\n }\n var ref = element.ref;\n if (ref != null) {\n attachRef(ref, instance, element._owner);\n }\n};\n\nReactRef.shouldUpdateRefs = function (prevElement, nextElement) {\n // If either the owner or a `ref` has changed, make sure the newest owner\n // has stored a reference to `this`, and the previous owner (if different)\n // has forgotten the reference to `this`. We use the element instead\n // of the public this.props because the post processing cannot determine\n // a ref. The ref conceptually lives on the element.\n\n // TODO: Should this even be possible? The owner cannot change because\n // it's forbidden by shouldUpdateReactComponent. The ref can change\n // if you swap the keys of but not the refs. Reconsider where this check\n // is made. It probably belongs where the key checking and\n // instantiateReactComponent is done.\n\n var prevRef = null;\n var prevOwner = null;\n if (prevElement !== null && typeof prevElement === 'object') {\n prevRef = prevElement.ref;\n prevOwner = prevElement._owner;\n }\n\n var nextRef = null;\n var nextOwner = null;\n if (nextElement !== null && typeof nextElement === 'object') {\n nextRef = nextElement.ref;\n nextOwner = nextElement._owner;\n }\n\n return prevRef !== nextRef ||\n // If owner changes but we have an unchanged function ref, don't update refs\n typeof nextRef === 'string' && nextOwner !== prevOwner;\n};\n\nReactRef.detachRefs = function (instance, element) {\n if (element === null || typeof element !== 'object') {\n return;\n }\n var ref = element.ref;\n if (ref != null) {\n detachRef(ref, instance, element._owner);\n }\n};\n\nmodule.exports = ReactRef;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactRef.js\n// module id = 71\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactRef.js?"); + +/***/ }), +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar invariant = __webpack_require__(15);\n\n/**\n * @param {?object} object\n * @return {boolean} True if `object` is a valid owner.\n * @final\n */\nfunction isValidOwner(object) {\n return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function');\n}\n\n/**\n * ReactOwners are capable of storing references to owned components.\n *\n * All components are capable of //being// referenced by owner components, but\n * only ReactOwner components are capable of //referencing// owned components.\n * The named reference is known as a \"ref\".\n *\n * Refs are available when mounted and updated during reconciliation.\n *\n * var MyComponent = React.createClass({\n * render: function() {\n * return (\n *
\n * \n *
\n * );\n * },\n * handleClick: function() {\n * this.refs.custom.handleClick();\n * },\n * componentDidMount: function() {\n * this.refs.custom.initialize();\n * }\n * });\n *\n * Refs should rarely be used. When refs are used, they should only be done to\n * control data that is not handled by React's data flow.\n *\n * @class ReactOwner\n */\nvar ReactOwner = {\n /**\n * Adds a component by ref to an owner component.\n *\n * @param {ReactComponent} component Component to reference.\n * @param {string} ref Name by which to refer to the component.\n * @param {ReactOwner} owner Component on which to record the ref.\n * @final\n * @internal\n */\n addComponentAsRefTo: function (component, ref, owner) {\n !isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0;\n owner.attachRef(ref, component);\n },\n\n /**\n * Removes a component by ref from an owner component.\n *\n * @param {ReactComponent} component Component to dereference.\n * @param {string} ref Name of the ref to remove.\n * @param {ReactOwner} owner Component on which the ref is recorded.\n * @final\n * @internal\n */\n removeComponentAsRefFrom: function (component, ref, owner) {\n !isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0;\n var ownerPublicInstance = owner.getPublicInstance();\n // Check that `component`'s owner is still alive and that `component` is still the current ref\n // because we do not want to detach the ref if another component stole it.\n if (ownerPublicInstance && ownerPublicInstance.refs[ref] === component.getPublicInstance()) {\n owner.detachRef(ref);\n }\n }\n\n};\n\nmodule.exports = ReactOwner;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactOwner.js\n// module id = 72\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactOwner.js?"); + +/***/ }), +/* 73 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n// Trust the developer to only use ReactInstrumentation with a __DEV__ check\n\nvar debugTool = null;\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactDebugTool = __webpack_require__(74);\n debugTool = ReactDebugTool;\n}\n\nmodule.exports = { debugTool: debugTool };\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactInstrumentation.js\n// module id = 73\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactInstrumentation.js?"); + +/***/ }), +/* 74 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar ReactInvalidSetStateWarningHook = __webpack_require__(75);\nvar ReactHostOperationHistoryHook = __webpack_require__(76);\nvar ReactComponentTreeHook = __webpack_require__(33);\nvar ExecutionEnvironment = __webpack_require__(59);\n\nvar performanceNow = __webpack_require__(77);\nvar warning = __webpack_require__(18);\n\nvar hooks = [];\nvar didHookThrowForEvent = {};\n\nfunction callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) {\n try {\n fn.call(context, arg1, arg2, arg3, arg4, arg5);\n } catch (e) {\n process.env.NODE_ENV !== 'production' ? warning(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\\n' + e.stack) : void 0;\n didHookThrowForEvent[event] = true;\n }\n}\n\nfunction emitEvent(event, arg1, arg2, arg3, arg4, arg5) {\n for (var i = 0; i < hooks.length; i++) {\n var hook = hooks[i];\n var fn = hook[event];\n if (fn) {\n callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);\n }\n }\n}\n\nvar isProfiling = false;\nvar flushHistory = [];\nvar lifeCycleTimerStack = [];\nvar currentFlushNesting = 0;\nvar currentFlushMeasurements = [];\nvar currentFlushStartTime = 0;\nvar currentTimerDebugID = null;\nvar currentTimerStartTime = 0;\nvar currentTimerNestedFlushDuration = 0;\nvar currentTimerType = null;\n\nvar lifeCycleTimerHasWarned = false;\n\nfunction clearHistory() {\n ReactComponentTreeHook.purgeUnmountedComponents();\n ReactHostOperationHistoryHook.clearHistory();\n}\n\nfunction getTreeSnapshot(registeredIDs) {\n return registeredIDs.reduce(function (tree, id) {\n var ownerID = ReactComponentTreeHook.getOwnerID(id);\n var parentID = ReactComponentTreeHook.getParentID(id);\n tree[id] = {\n displayName: ReactComponentTreeHook.getDisplayName(id),\n text: ReactComponentTreeHook.getText(id),\n updateCount: ReactComponentTreeHook.getUpdateCount(id),\n childIDs: ReactComponentTreeHook.getChildIDs(id),\n // Text nodes don't have owners but this is close enough.\n ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,\n parentID: parentID\n };\n return tree;\n }, {});\n}\n\nfunction resetMeasurements() {\n var previousStartTime = currentFlushStartTime;\n var previousMeasurements = currentFlushMeasurements;\n var previousOperations = ReactHostOperationHistoryHook.getHistory();\n\n if (currentFlushNesting === 0) {\n currentFlushStartTime = 0;\n currentFlushMeasurements = [];\n clearHistory();\n return;\n }\n\n if (previousMeasurements.length || previousOperations.length) {\n var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();\n flushHistory.push({\n duration: performanceNow() - previousStartTime,\n measurements: previousMeasurements || [],\n operations: previousOperations || [],\n treeSnapshot: getTreeSnapshot(registeredIDs)\n });\n }\n\n clearHistory();\n currentFlushStartTime = performanceNow();\n currentFlushMeasurements = [];\n}\n\nfunction checkDebugID(debugID) {\n var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (allowRoot && debugID === 0) {\n return;\n }\n if (!debugID) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDebugTool: debugID may not be empty.') : void 0;\n }\n}\n\nfunction beginLifeCycleTimer(debugID, timerType) {\n if (currentFlushNesting === 0) {\n return;\n }\n if (currentTimerType && !lifeCycleTimerHasWarned) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'Did not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;\n lifeCycleTimerHasWarned = true;\n }\n currentTimerStartTime = performanceNow();\n currentTimerNestedFlushDuration = 0;\n currentTimerDebugID = debugID;\n currentTimerType = timerType;\n}\n\nfunction endLifeCycleTimer(debugID, timerType) {\n if (currentFlushNesting === 0) {\n return;\n }\n if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;\n lifeCycleTimerHasWarned = true;\n }\n if (isProfiling) {\n currentFlushMeasurements.push({\n timerType: timerType,\n instanceID: debugID,\n duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration\n });\n }\n currentTimerStartTime = 0;\n currentTimerNestedFlushDuration = 0;\n currentTimerDebugID = null;\n currentTimerType = null;\n}\n\nfunction pauseCurrentLifeCycleTimer() {\n var currentTimer = {\n startTime: currentTimerStartTime,\n nestedFlushStartTime: performanceNow(),\n debugID: currentTimerDebugID,\n timerType: currentTimerType\n };\n lifeCycleTimerStack.push(currentTimer);\n currentTimerStartTime = 0;\n currentTimerNestedFlushDuration = 0;\n currentTimerDebugID = null;\n currentTimerType = null;\n}\n\nfunction resumeCurrentLifeCycleTimer() {\n var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(),\n startTime = _lifeCycleTimerStack$.startTime,\n nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime,\n debugID = _lifeCycleTimerStack$.debugID,\n timerType = _lifeCycleTimerStack$.timerType;\n\n var nestedFlushDuration = performanceNow() - nestedFlushStartTime;\n currentTimerStartTime = startTime;\n currentTimerNestedFlushDuration += nestedFlushDuration;\n currentTimerDebugID = debugID;\n currentTimerType = timerType;\n}\n\nvar lastMarkTimeStamp = 0;\nvar canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';\n\nfunction shouldMark(debugID) {\n if (!isProfiling || !canUsePerformanceMeasure) {\n return false;\n }\n var element = ReactComponentTreeHook.getElement(debugID);\n if (element == null || typeof element !== 'object') {\n return false;\n }\n var isHostElement = typeof element.type === 'string';\n if (isHostElement) {\n return false;\n }\n return true;\n}\n\nfunction markBegin(debugID, markType) {\n if (!shouldMark(debugID)) {\n return;\n }\n\n var markName = debugID + '::' + markType;\n lastMarkTimeStamp = performanceNow();\n performance.mark(markName);\n}\n\nfunction markEnd(debugID, markType) {\n if (!shouldMark(debugID)) {\n return;\n }\n\n var markName = debugID + '::' + markType;\n var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown';\n\n // Chrome has an issue of dropping markers recorded too fast:\n // https://bugs.chromium.org/p/chromium/issues/detail?id=640652\n // To work around this, we will not report very small measurements.\n // I determined the magic number by tweaking it back and forth.\n // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe.\n // When the bug is fixed, we can `measure()` unconditionally if we want to.\n var timeStamp = performanceNow();\n if (timeStamp - lastMarkTimeStamp > 0.1) {\n var measurementName = displayName + ' [' + markType + ']';\n performance.measure(measurementName, markName);\n }\n\n performance.clearMarks(markName);\n performance.clearMeasures(measurementName);\n}\n\nvar ReactDebugTool = {\n addHook: function (hook) {\n hooks.push(hook);\n },\n removeHook: function (hook) {\n for (var i = 0; i < hooks.length; i++) {\n if (hooks[i] === hook) {\n hooks.splice(i, 1);\n i--;\n }\n }\n },\n isProfiling: function () {\n return isProfiling;\n },\n beginProfiling: function () {\n if (isProfiling) {\n return;\n }\n\n isProfiling = true;\n flushHistory.length = 0;\n resetMeasurements();\n ReactDebugTool.addHook(ReactHostOperationHistoryHook);\n },\n endProfiling: function () {\n if (!isProfiling) {\n return;\n }\n\n isProfiling = false;\n resetMeasurements();\n ReactDebugTool.removeHook(ReactHostOperationHistoryHook);\n },\n getFlushHistory: function () {\n return flushHistory;\n },\n onBeginFlush: function () {\n currentFlushNesting++;\n resetMeasurements();\n pauseCurrentLifeCycleTimer();\n emitEvent('onBeginFlush');\n },\n onEndFlush: function () {\n resetMeasurements();\n currentFlushNesting--;\n resumeCurrentLifeCycleTimer();\n emitEvent('onEndFlush');\n },\n onBeginLifeCycleTimer: function (debugID, timerType) {\n checkDebugID(debugID);\n emitEvent('onBeginLifeCycleTimer', debugID, timerType);\n markBegin(debugID, timerType);\n beginLifeCycleTimer(debugID, timerType);\n },\n onEndLifeCycleTimer: function (debugID, timerType) {\n checkDebugID(debugID);\n endLifeCycleTimer(debugID, timerType);\n markEnd(debugID, timerType);\n emitEvent('onEndLifeCycleTimer', debugID, timerType);\n },\n onBeginProcessingChildContext: function () {\n emitEvent('onBeginProcessingChildContext');\n },\n onEndProcessingChildContext: function () {\n emitEvent('onEndProcessingChildContext');\n },\n onHostOperation: function (operation) {\n checkDebugID(operation.instanceID);\n emitEvent('onHostOperation', operation);\n },\n onSetState: function () {\n emitEvent('onSetState');\n },\n onSetChildren: function (debugID, childDebugIDs) {\n checkDebugID(debugID);\n childDebugIDs.forEach(checkDebugID);\n emitEvent('onSetChildren', debugID, childDebugIDs);\n },\n onBeforeMountComponent: function (debugID, element, parentDebugID) {\n checkDebugID(debugID);\n checkDebugID(parentDebugID, true);\n emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);\n markBegin(debugID, 'mount');\n },\n onMountComponent: function (debugID) {\n checkDebugID(debugID);\n markEnd(debugID, 'mount');\n emitEvent('onMountComponent', debugID);\n },\n onBeforeUpdateComponent: function (debugID, element) {\n checkDebugID(debugID);\n emitEvent('onBeforeUpdateComponent', debugID, element);\n markBegin(debugID, 'update');\n },\n onUpdateComponent: function (debugID) {\n checkDebugID(debugID);\n markEnd(debugID, 'update');\n emitEvent('onUpdateComponent', debugID);\n },\n onBeforeUnmountComponent: function (debugID) {\n checkDebugID(debugID);\n emitEvent('onBeforeUnmountComponent', debugID);\n markBegin(debugID, 'unmount');\n },\n onUnmountComponent: function (debugID) {\n checkDebugID(debugID);\n markEnd(debugID, 'unmount');\n emitEvent('onUnmountComponent', debugID);\n },\n onTestEvent: function () {\n emitEvent('onTestEvent');\n }\n};\n\n// TODO remove these when RN/www gets updated\nReactDebugTool.addDevtool = ReactDebugTool.addHook;\nReactDebugTool.removeDevtool = ReactDebugTool.removeHook;\n\nReactDebugTool.addHook(ReactInvalidSetStateWarningHook);\nReactDebugTool.addHook(ReactComponentTreeHook);\nvar url = ExecutionEnvironment.canUseDOM && window.location.href || '';\nif (/[?&]react_perf\\b/.test(url)) {\n ReactDebugTool.beginProfiling();\n}\n\nmodule.exports = ReactDebugTool;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactDebugTool.js\n// module id = 74\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactDebugTool.js?"); + +/***/ }), +/* 75 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar warning = __webpack_require__(18);\n\nif (process.env.NODE_ENV !== 'production') {\n var processingChildContext = false;\n\n var warnInvalidSetState = function () {\n process.env.NODE_ENV !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0;\n };\n}\n\nvar ReactInvalidSetStateWarningHook = {\n onBeginProcessingChildContext: function () {\n processingChildContext = true;\n },\n onEndProcessingChildContext: function () {\n processingChildContext = false;\n },\n onSetState: function () {\n warnInvalidSetState();\n }\n};\n\nmodule.exports = ReactInvalidSetStateWarningHook;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactInvalidSetStateWarningHook.js\n// module id = 75\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactInvalidSetStateWarningHook.js?"); + +/***/ }), +/* 76 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar history = [];\n\nvar ReactHostOperationHistoryHook = {\n onHostOperation: function (operation) {\n history.push(operation);\n },\n clearHistory: function () {\n if (ReactHostOperationHistoryHook._preventClearing) {\n // Should only be used for tests.\n return;\n }\n\n history = [];\n },\n getHistory: function () {\n return history;\n }\n};\n\nmodule.exports = ReactHostOperationHistoryHook;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactHostOperationHistoryHook.js\n// module id = 76\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactHostOperationHistoryHook.js?"); + +/***/ }), +/* 77 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\nvar performance = __webpack_require__(78);\n\nvar performanceNow;\n\n/**\n * Detect if we can use `window.performance.now()` and gracefully fallback to\n * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now\n * because of Facebook's testing infrastructure.\n */\nif (performance.now) {\n performanceNow = function performanceNow() {\n return performance.now();\n };\n} else {\n performanceNow = function performanceNow() {\n return Date.now();\n };\n}\n\nmodule.exports = performanceNow;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/performanceNow.js\n// module id = 77\n// module chunks = 0\n//# sourceURL=webpack:///./~/fbjs/lib/performanceNow.js?"); + +/***/ }), +/* 78 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n'use strict';\n\nvar ExecutionEnvironment = __webpack_require__(59);\n\nvar performance;\n\nif (ExecutionEnvironment.canUseDOM) {\n performance = window.performance || window.msPerformance || window.webkitPerformance;\n}\n\nmodule.exports = performance || {};\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/performance.js\n// module id = 78\n// module chunks = 0\n//# sourceURL=webpack:///./~/fbjs/lib/performance.js?"); + +/***/ }), +/* 79 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar invariant = __webpack_require__(15);\n\nvar OBSERVED_ERROR = {};\n\n/**\n * `Transaction` creates a black box that is able to wrap any method such that\n * certain invariants are maintained before and after the method is invoked\n * (Even if an exception is thrown while invoking the wrapped method). Whoever\n * instantiates a transaction can provide enforcers of the invariants at\n * creation time. The `Transaction` class itself will supply one additional\n * automatic invariant for you - the invariant that any transaction instance\n * should not be run while it is already being run. You would typically create a\n * single instance of a `Transaction` for reuse multiple times, that potentially\n * is used to wrap several different methods. Wrappers are extremely simple -\n * they only require implementing two methods.\n *\n *
\n *                       wrappers (injected at creation time)\n *                                      +        +\n *                                      |        |\n *                    +-----------------|--------|--------------+\n *                    |                 v        |              |\n *                    |      +---------------+   |              |\n *                    |   +--|    wrapper1   |---|----+         |\n *                    |   |  +---------------+   v    |         |\n *                    |   |          +-------------+  |         |\n *                    |   |     +----|   wrapper2  |--------+   |\n *                    |   |     |    +-------------+  |     |   |\n *                    |   |     |                     |     |   |\n *                    |   v     v                     v     v   | wrapper\n *                    | +---+ +---+   +---------+   +---+ +---+ | invariants\n * perform(anyMethod) | |   | |   |   |         |   |   | |   | | maintained\n * +----------------->|-|---|-|---|-->|anyMethod|---|---|-|---|-|-------->\n *                    | |   | |   |   |         |   |   | |   | |\n *                    | |   | |   |   |         |   |   | |   | |\n *                    | |   | |   |   |         |   |   | |   | |\n *                    | +---+ +---+   +---------+   +---+ +---+ |\n *                    |  initialize                    close    |\n *                    +-----------------------------------------+\n * 
\n *\n * Use cases:\n * - Preserving the input selection ranges before/after reconciliation.\n * Restoring selection even in the event of an unexpected error.\n * - Deactivating events while rearranging the DOM, preventing blurs/focuses,\n * while guaranteeing that afterwards, the event system is reactivated.\n * - Flushing a queue of collected DOM mutations to the main UI thread after a\n * reconciliation takes place in a worker thread.\n * - Invoking any collected `componentDidUpdate` callbacks after rendering new\n * content.\n * - (Future use case): Wrapping particular flushes of the `ReactWorker` queue\n * to preserve the `scrollTop` (an automatic scroll aware DOM).\n * - (Future use case): Layout calculations before and after DOM updates.\n *\n * Transactional plugin API:\n * - A module that has an `initialize` method that returns any precomputation.\n * - and a `close` method that accepts the precomputation. `close` is invoked\n * when the wrapped process is completed, or has failed.\n *\n * @param {Array} transactionWrapper Wrapper modules\n * that implement `initialize` and `close`.\n * @return {Transaction} Single transaction for reuse in thread.\n *\n * @class Transaction\n */\nvar TransactionImpl = {\n /**\n * Sets up this instance so that it is prepared for collecting metrics. Does\n * so such that this setup method may be used on an instance that is already\n * initialized, in a way that does not consume additional memory upon reuse.\n * That can be useful if you decide to make your subclass of this mixin a\n * \"PooledClass\".\n */\n reinitializeTransaction: function () {\n this.transactionWrappers = this.getTransactionWrappers();\n if (this.wrapperInitData) {\n this.wrapperInitData.length = 0;\n } else {\n this.wrapperInitData = [];\n }\n this._isInTransaction = false;\n },\n\n _isInTransaction: false,\n\n /**\n * @abstract\n * @return {Array} Array of transaction wrappers.\n */\n getTransactionWrappers: null,\n\n isInTransaction: function () {\n return !!this._isInTransaction;\n },\n\n /**\n * Executes the function within a safety window. Use this for the top level\n * methods that result in large amounts of computation/mutations that would\n * need to be safety checked. The optional arguments helps prevent the need\n * to bind in many cases.\n *\n * @param {function} method Member of scope to call.\n * @param {Object} scope Scope to invoke from.\n * @param {Object?=} a Argument to pass to the method.\n * @param {Object?=} b Argument to pass to the method.\n * @param {Object?=} c Argument to pass to the method.\n * @param {Object?=} d Argument to pass to the method.\n * @param {Object?=} e Argument to pass to the method.\n * @param {Object?=} f Argument to pass to the method.\n *\n * @return {*} Return value from `method`.\n */\n perform: function (method, scope, a, b, c, d, e, f) {\n !!this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0;\n var errorThrown;\n var ret;\n try {\n this._isInTransaction = true;\n // Catching errors makes debugging more difficult, so we start with\n // errorThrown set to true before setting it to false after calling\n // close -- if it's still set to true in the finally block, it means\n // one of these calls threw.\n errorThrown = true;\n this.initializeAll(0);\n ret = method.call(scope, a, b, c, d, e, f);\n errorThrown = false;\n } finally {\n try {\n if (errorThrown) {\n // If `method` throws, prefer to show that stack trace over any thrown\n // by invoking `closeAll`.\n try {\n this.closeAll(0);\n } catch (err) {}\n } else {\n // Since `method` didn't throw, we don't want to silence the exception\n // here.\n this.closeAll(0);\n }\n } finally {\n this._isInTransaction = false;\n }\n }\n return ret;\n },\n\n initializeAll: function (startIndex) {\n var transactionWrappers = this.transactionWrappers;\n for (var i = startIndex; i < transactionWrappers.length; i++) {\n var wrapper = transactionWrappers[i];\n try {\n // Catching errors makes debugging more difficult, so we start with the\n // OBSERVED_ERROR state before overwriting it with the real return value\n // of initialize -- if it's still set to OBSERVED_ERROR in the finally\n // block, it means wrapper.initialize threw.\n this.wrapperInitData[i] = OBSERVED_ERROR;\n this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null;\n } finally {\n if (this.wrapperInitData[i] === OBSERVED_ERROR) {\n // The initializer for wrapper i threw an error; initialize the\n // remaining wrappers but silence any exceptions from them to ensure\n // that the first error is the one to bubble up.\n try {\n this.initializeAll(i + 1);\n } catch (err) {}\n }\n }\n }\n },\n\n /**\n * Invokes each of `this.transactionWrappers.close[i]` functions, passing into\n * them the respective return values of `this.transactionWrappers.init[i]`\n * (`close`rs that correspond to initializers that failed will not be\n * invoked).\n */\n closeAll: function (startIndex) {\n !this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : _prodInvariant('28') : void 0;\n var transactionWrappers = this.transactionWrappers;\n for (var i = startIndex; i < transactionWrappers.length; i++) {\n var wrapper = transactionWrappers[i];\n var initData = this.wrapperInitData[i];\n var errorThrown;\n try {\n // Catching errors makes debugging more difficult, so we start with\n // errorThrown set to true before setting it to false after calling\n // close -- if it's still set to true in the finally block, it means\n // wrapper.close threw.\n errorThrown = true;\n if (initData !== OBSERVED_ERROR && wrapper.close) {\n wrapper.close.call(this, initData);\n }\n errorThrown = false;\n } finally {\n if (errorThrown) {\n // The closer for wrapper i threw an error; close the remaining\n // wrappers but silence any exceptions from them to ensure that the\n // first error is the one to bubble up.\n try {\n this.closeAll(i + 1);\n } catch (e) {}\n }\n }\n }\n this.wrapperInitData.length = 0;\n }\n};\n\nmodule.exports = TransactionImpl;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/Transaction.js\n// module id = 79\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/Transaction.js?"); + +/***/ }), +/* 80 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Gets the target node from a native browser event by accounting for\n * inconsistencies in browser DOM APIs.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {DOMEventTarget} Target node.\n */\n\nfunction getEventTarget(nativeEvent) {\n var target = nativeEvent.target || nativeEvent.srcElement || window;\n\n // Normalize SVG element events #4963\n if (target.correspondingUseElement) {\n target = target.correspondingUseElement;\n }\n\n // Safari may fire events on text nodes (Node.TEXT_NODE is 3).\n // @see http://www.quirksmode.org/js/events_properties.html\n return target.nodeType === 3 ? target.parentNode : target;\n}\n\nmodule.exports = getEventTarget;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/getEventTarget.js\n// module id = 80\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/getEventTarget.js?"); + +/***/ }), +/* 81 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = __webpack_require__(59);\n\nvar useHasFeature;\nif (ExecutionEnvironment.canUseDOM) {\n useHasFeature = document.implementation && document.implementation.hasFeature &&\n // always returns true in newer browsers as per the standard.\n // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature\n document.implementation.hasFeature('', '') !== true;\n}\n\n/**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @param {?boolean} capture Check if the capture phase is supported.\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nfunction isEventSupported(eventNameSuffix, capture) {\n if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) {\n return false;\n }\n\n var eventName = 'on' + eventNameSuffix;\n var isSupported = eventName in document;\n\n if (!isSupported) {\n var element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof element[eventName] === 'function';\n }\n\n if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {\n // This is the only way to test support for the `wheel` event in IE9+.\n isSupported = document.implementation.hasFeature('Events.wheel', '3.0');\n }\n\n return isSupported;\n}\n\nmodule.exports = isEventSupported;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/isEventSupported.js\n// module id = 81\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/isEventSupported.js?"); + +/***/ }), +/* 82 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary\n */\n\nvar supportedInputTypes = {\n 'color': true,\n 'date': true,\n 'datetime': true,\n 'datetime-local': true,\n 'email': true,\n 'month': true,\n 'number': true,\n 'password': true,\n 'range': true,\n 'search': true,\n 'tel': true,\n 'text': true,\n 'time': true,\n 'url': true,\n 'week': true\n};\n\nfunction isTextInputElement(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n\n if (nodeName === 'input') {\n return !!supportedInputTypes[elem.type];\n }\n\n if (nodeName === 'textarea') {\n return true;\n }\n\n return false;\n}\n\nmodule.exports = isTextInputElement;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/isTextInputElement.js\n// module id = 82\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/isTextInputElement.js?"); + +/***/ }), +/* 83 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Module that is injectable into `EventPluginHub`, that specifies a\n * deterministic ordering of `EventPlugin`s. A convenient way to reason about\n * plugins, without having to package every one of them. This is better than\n * having plugins be ordered in the same order that they are injected because\n * that ordering would be influenced by the packaging order.\n * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that\n * preventing default on events is convenient in `SimpleEventPlugin` handlers.\n */\n\nvar DefaultEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];\n\nmodule.exports = DefaultEventPluginOrder;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/DefaultEventPluginOrder.js\n// module id = 83\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/DefaultEventPluginOrder.js?"); + +/***/ }), +/* 84 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar EventPropagators = __webpack_require__(52);\nvar ReactDOMComponentTree = __webpack_require__(45);\nvar SyntheticMouseEvent = __webpack_require__(85);\n\nvar eventTypes = {\n mouseEnter: {\n registrationName: 'onMouseEnter',\n dependencies: ['topMouseOut', 'topMouseOver']\n },\n mouseLeave: {\n registrationName: 'onMouseLeave',\n dependencies: ['topMouseOut', 'topMouseOver']\n }\n};\n\nvar EnterLeaveEventPlugin = {\n\n eventTypes: eventTypes,\n\n /**\n * For almost every interaction we care about, there will be both a top-level\n * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that\n * we do not extract duplicate events. However, moving the mouse into the\n * browser from outside will not fire a `mouseout` event. In this case, we use\n * the `mouseover` top-level event.\n */\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {\n return null;\n }\n if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') {\n // Must not be a mouse in or mouse out - ignoring.\n return null;\n }\n\n var win;\n if (nativeEventTarget.window === nativeEventTarget) {\n // `nativeEventTarget` is probably a window object.\n win = nativeEventTarget;\n } else {\n // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n var doc = nativeEventTarget.ownerDocument;\n if (doc) {\n win = doc.defaultView || doc.parentWindow;\n } else {\n win = window;\n }\n }\n\n var from;\n var to;\n if (topLevelType === 'topMouseOut') {\n from = targetInst;\n var related = nativeEvent.relatedTarget || nativeEvent.toElement;\n to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null;\n } else {\n // Moving to a node from outside the window.\n from = null;\n to = targetInst;\n }\n\n if (from === to) {\n // Nothing pertains to our managed components.\n return null;\n }\n\n var fromNode = from == null ? win : ReactDOMComponentTree.getNodeFromInstance(from);\n var toNode = to == null ? win : ReactDOMComponentTree.getNodeFromInstance(to);\n\n var leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, from, nativeEvent, nativeEventTarget);\n leave.type = 'mouseleave';\n leave.target = fromNode;\n leave.relatedTarget = toNode;\n\n var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, to, nativeEvent, nativeEventTarget);\n enter.type = 'mouseenter';\n enter.target = toNode;\n enter.relatedTarget = fromNode;\n\n EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to);\n\n return [leave, enter];\n }\n\n};\n\nmodule.exports = EnterLeaveEventPlugin;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/EnterLeaveEventPlugin.js\n// module id = 84\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/EnterLeaveEventPlugin.js?"); + +/***/ }), +/* 85 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticUIEvent = __webpack_require__(86);\nvar ViewportMetrics = __webpack_require__(87);\n\nvar getEventModifierState = __webpack_require__(88);\n\n/**\n * @interface MouseEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar MouseEventInterface = {\n screenX: null,\n screenY: null,\n clientX: null,\n clientY: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n getModifierState: getEventModifierState,\n button: function (event) {\n // Webkit, Firefox, IE9+\n // which: 1 2 3\n // button: 0 1 2 (standard)\n var button = event.button;\n if ('which' in event) {\n return button;\n }\n // IE<9\n // which: undefined\n // button: 0 0 0\n // button: 1 4 2 (onmouseup)\n return button === 2 ? 2 : button === 4 ? 1 : 0;\n },\n buttons: null,\n relatedTarget: function (event) {\n return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);\n },\n // \"Proprietary\" Interface.\n pageX: function (event) {\n return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft;\n },\n pageY: function (event) {\n return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop;\n }\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface);\n\nmodule.exports = SyntheticMouseEvent;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/SyntheticMouseEvent.js\n// module id = 85\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/SyntheticMouseEvent.js?"); + +/***/ }), +/* 86 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar SyntheticEvent = __webpack_require__(64);\n\nvar getEventTarget = __webpack_require__(80);\n\n/**\n * @interface UIEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar UIEventInterface = {\n view: function (event) {\n if (event.view) {\n return event.view;\n }\n\n var target = getEventTarget(event);\n if (target.window === target) {\n // target is a window object\n return target;\n }\n\n var doc = target.ownerDocument;\n // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n if (doc) {\n return doc.defaultView || doc.parentWindow;\n } else {\n return window;\n }\n },\n detail: function (event) {\n return event.detail || 0;\n }\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticEvent}\n */\nfunction SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface);\n\nmodule.exports = SyntheticUIEvent;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/SyntheticUIEvent.js\n// module id = 86\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/SyntheticUIEvent.js?"); + +/***/ }), +/* 87 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ViewportMetrics = {\n\n currentScrollLeft: 0,\n\n currentScrollTop: 0,\n\n refreshScrollValues: function (scrollPosition) {\n ViewportMetrics.currentScrollLeft = scrollPosition.x;\n ViewportMetrics.currentScrollTop = scrollPosition.y;\n }\n\n};\n\nmodule.exports = ViewportMetrics;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ViewportMetrics.js\n// module id = 87\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ViewportMetrics.js?"); + +/***/ }), +/* 88 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Translation from modifier key to the associated property in the event.\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers\n */\n\nvar modifierKeyToProp = {\n 'Alt': 'altKey',\n 'Control': 'ctrlKey',\n 'Meta': 'metaKey',\n 'Shift': 'shiftKey'\n};\n\n// IE8 does not implement getModifierState so we simply map it to the only\n// modifier keys exposed by the event itself, does not support Lock-keys.\n// Currently, all major browsers except Chrome seems to support Lock-keys.\nfunction modifierStateGetter(keyArg) {\n var syntheticEvent = this;\n var nativeEvent = syntheticEvent.nativeEvent;\n if (nativeEvent.getModifierState) {\n return nativeEvent.getModifierState(keyArg);\n }\n var keyProp = modifierKeyToProp[keyArg];\n return keyProp ? !!nativeEvent[keyProp] : false;\n}\n\nfunction getEventModifierState(nativeEvent) {\n return modifierStateGetter;\n}\n\nmodule.exports = getEventModifierState;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/getEventModifierState.js\n// module id = 88\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/getEventModifierState.js?"); + +/***/ }), +/* 89 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMProperty = __webpack_require__(47);\n\nvar MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY;\nvar HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE;\nvar HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE;\nvar HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE;\nvar HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE;\n\nvar HTMLDOMPropertyConfig = {\n isCustomAttribute: RegExp.prototype.test.bind(new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$')),\n Properties: {\n /**\n * Standard Properties\n */\n accept: 0,\n acceptCharset: 0,\n accessKey: 0,\n action: 0,\n allowFullScreen: HAS_BOOLEAN_VALUE,\n allowTransparency: 0,\n alt: 0,\n // specifies target context for links with `preload` type\n as: 0,\n async: HAS_BOOLEAN_VALUE,\n autoComplete: 0,\n // autoFocus is polyfilled/normalized by AutoFocusUtils\n // autoFocus: HAS_BOOLEAN_VALUE,\n autoPlay: HAS_BOOLEAN_VALUE,\n capture: HAS_BOOLEAN_VALUE,\n cellPadding: 0,\n cellSpacing: 0,\n charSet: 0,\n challenge: 0,\n checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,\n cite: 0,\n classID: 0,\n className: 0,\n cols: HAS_POSITIVE_NUMERIC_VALUE,\n colSpan: 0,\n content: 0,\n contentEditable: 0,\n contextMenu: 0,\n controls: HAS_BOOLEAN_VALUE,\n coords: 0,\n crossOrigin: 0,\n data: 0, // For `` acts as `src`.\n dateTime: 0,\n 'default': HAS_BOOLEAN_VALUE,\n defer: HAS_BOOLEAN_VALUE,\n dir: 0,\n disabled: HAS_BOOLEAN_VALUE,\n download: HAS_OVERLOADED_BOOLEAN_VALUE,\n draggable: 0,\n encType: 0,\n form: 0,\n formAction: 0,\n formEncType: 0,\n formMethod: 0,\n formNoValidate: HAS_BOOLEAN_VALUE,\n formTarget: 0,\n frameBorder: 0,\n headers: 0,\n height: 0,\n hidden: HAS_BOOLEAN_VALUE,\n high: 0,\n href: 0,\n hrefLang: 0,\n htmlFor: 0,\n httpEquiv: 0,\n icon: 0,\n id: 0,\n inputMode: 0,\n integrity: 0,\n is: 0,\n keyParams: 0,\n keyType: 0,\n kind: 0,\n label: 0,\n lang: 0,\n list: 0,\n loop: HAS_BOOLEAN_VALUE,\n low: 0,\n manifest: 0,\n marginHeight: 0,\n marginWidth: 0,\n max: 0,\n maxLength: 0,\n media: 0,\n mediaGroup: 0,\n method: 0,\n min: 0,\n minLength: 0,\n // Caution; `option.selected` is not updated if `select.multiple` is\n // disabled with `removeAttribute`.\n multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,\n muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,\n name: 0,\n nonce: 0,\n noValidate: HAS_BOOLEAN_VALUE,\n open: HAS_BOOLEAN_VALUE,\n optimum: 0,\n pattern: 0,\n placeholder: 0,\n playsInline: HAS_BOOLEAN_VALUE,\n poster: 0,\n preload: 0,\n profile: 0,\n radioGroup: 0,\n readOnly: HAS_BOOLEAN_VALUE,\n referrerPolicy: 0,\n rel: 0,\n required: HAS_BOOLEAN_VALUE,\n reversed: HAS_BOOLEAN_VALUE,\n role: 0,\n rows: HAS_POSITIVE_NUMERIC_VALUE,\n rowSpan: HAS_NUMERIC_VALUE,\n sandbox: 0,\n scope: 0,\n scoped: HAS_BOOLEAN_VALUE,\n scrolling: 0,\n seamless: HAS_BOOLEAN_VALUE,\n selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,\n shape: 0,\n size: HAS_POSITIVE_NUMERIC_VALUE,\n sizes: 0,\n span: HAS_POSITIVE_NUMERIC_VALUE,\n spellCheck: 0,\n src: 0,\n srcDoc: 0,\n srcLang: 0,\n srcSet: 0,\n start: HAS_NUMERIC_VALUE,\n step: 0,\n style: 0,\n summary: 0,\n tabIndex: 0,\n target: 0,\n title: 0,\n // Setting .type throws on non- tags\n type: 0,\n useMap: 0,\n value: 0,\n width: 0,\n wmode: 0,\n wrap: 0,\n\n /**\n * RDFa Properties\n */\n about: 0,\n datatype: 0,\n inlist: 0,\n prefix: 0,\n // property is also supported for OpenGraph in meta tags.\n property: 0,\n resource: 0,\n 'typeof': 0,\n vocab: 0,\n\n /**\n * Non-standard Properties\n */\n // autoCapitalize and autoCorrect are supported in Mobile Safari for\n // keyboard hints.\n autoCapitalize: 0,\n autoCorrect: 0,\n // autoSave allows WebKit/Blink to persist values of input fields on page reloads\n autoSave: 0,\n // color is for Safari mask-icon link\n color: 0,\n // itemProp, itemScope, itemType are for\n // Microdata support. See http://schema.org/docs/gs.html\n itemProp: 0,\n itemScope: HAS_BOOLEAN_VALUE,\n itemType: 0,\n // itemID and itemRef are for Microdata support as well but\n // only specified in the WHATWG spec document. See\n // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api\n itemID: 0,\n itemRef: 0,\n // results show looking glass icon and recent searches on input\n // search fields in WebKit/Blink\n results: 0,\n // IE-only attribute that specifies security restrictions on an iframe\n // as an alternative to the sandbox attribute on IE<10\n security: 0,\n // IE-only attribute that controls focus behavior\n unselectable: 0\n },\n DOMAttributeNames: {\n acceptCharset: 'accept-charset',\n className: 'class',\n htmlFor: 'for',\n httpEquiv: 'http-equiv'\n },\n DOMPropertyNames: {},\n DOMMutationMethods: {\n value: function (node, value) {\n if (value == null) {\n return node.removeAttribute('value');\n }\n\n // Number inputs get special treatment due to some edge cases in\n // Chrome. Let everything else assign the value attribute as normal.\n // https://github.com/facebook/react/issues/7253#issuecomment-236074326\n if (node.type !== 'number' || node.hasAttribute('value') === false) {\n node.setAttribute('value', '' + value);\n } else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) {\n // Don't assign an attribute if validation reports bad\n // input. Chrome will clear the value. Additionally, don't\n // operate on inputs that have focus, otherwise Chrome might\n // strip off trailing decimal places and cause the user's\n // cursor position to jump to the beginning of the input.\n //\n // In ReactDOMInput, we have an onBlur event that will trigger\n // this function again when focus is lost.\n node.setAttribute('value', '' + value);\n }\n }\n }\n};\n\nmodule.exports = HTMLDOMPropertyConfig;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/HTMLDOMPropertyConfig.js\n// module id = 89\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/HTMLDOMPropertyConfig.js?"); + +/***/ }), +/* 90 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMChildrenOperations = __webpack_require__(91);\nvar ReactDOMIDOperations = __webpack_require__(102);\n\n/**\n * Abstracts away all functionality of the reconciler that requires knowledge of\n * the browser context. TODO: These callers should be refactored to avoid the\n * need for this injection.\n */\nvar ReactComponentBrowserEnvironment = {\n\n processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,\n\n replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup\n\n};\n\nmodule.exports = ReactComponentBrowserEnvironment;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/ReactComponentBrowserEnvironment.js\n// module id = 90\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/ReactComponentBrowserEnvironment.js?"); + +/***/ }), +/* 91 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMLazyTree = __webpack_require__(92);\nvar Danger = __webpack_require__(98);\nvar ReactDOMComponentTree = __webpack_require__(45);\nvar ReactInstrumentation = __webpack_require__(73);\n\nvar createMicrosoftUnsafeLocalFunction = __webpack_require__(95);\nvar setInnerHTML = __webpack_require__(94);\nvar setTextContent = __webpack_require__(96);\n\nfunction getNodeAfter(parentNode, node) {\n // Special case for text components, which return [open, close] comments\n // from getHostNode.\n if (Array.isArray(node)) {\n node = node[1];\n }\n return node ? node.nextSibling : parentNode.firstChild;\n}\n\n/**\n * Inserts `childNode` as a child of `parentNode` at the `index`.\n *\n * @param {DOMElement} parentNode Parent node in which to insert.\n * @param {DOMElement} childNode Child node to insert.\n * @param {number} index Index at which to insert the child.\n * @internal\n */\nvar insertChildAt = createMicrosoftUnsafeLocalFunction(function (parentNode, childNode, referenceNode) {\n // We rely exclusively on `insertBefore(node, null)` instead of also using\n // `appendChild(node)`. (Using `undefined` is not allowed by all browsers so\n // we are careful to use `null`.)\n parentNode.insertBefore(childNode, referenceNode);\n});\n\nfunction insertLazyTreeChildAt(parentNode, childTree, referenceNode) {\n DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode);\n}\n\nfunction moveChild(parentNode, childNode, referenceNode) {\n if (Array.isArray(childNode)) {\n moveDelimitedText(parentNode, childNode[0], childNode[1], referenceNode);\n } else {\n insertChildAt(parentNode, childNode, referenceNode);\n }\n}\n\nfunction removeChild(parentNode, childNode) {\n if (Array.isArray(childNode)) {\n var closingComment = childNode[1];\n childNode = childNode[0];\n removeDelimitedText(parentNode, childNode, closingComment);\n parentNode.removeChild(closingComment);\n }\n parentNode.removeChild(childNode);\n}\n\nfunction moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) {\n var node = openingComment;\n while (true) {\n var nextNode = node.nextSibling;\n insertChildAt(parentNode, node, referenceNode);\n if (node === closingComment) {\n break;\n }\n node = nextNode;\n }\n}\n\nfunction removeDelimitedText(parentNode, startNode, closingComment) {\n while (true) {\n var node = startNode.nextSibling;\n if (node === closingComment) {\n // The closing comment is removed by ReactMultiChild.\n break;\n } else {\n parentNode.removeChild(node);\n }\n }\n}\n\nfunction replaceDelimitedText(openingComment, closingComment, stringText) {\n var parentNode = openingComment.parentNode;\n var nodeAfterComment = openingComment.nextSibling;\n if (nodeAfterComment === closingComment) {\n // There are no text nodes between the opening and closing comments; insert\n // a new one if stringText isn't empty.\n if (stringText) {\n insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment);\n }\n } else {\n if (stringText) {\n // Set the text content of the first node after the opening comment, and\n // remove all following nodes up until the closing comment.\n setTextContent(nodeAfterComment, stringText);\n removeDelimitedText(parentNode, nodeAfterComment, closingComment);\n } else {\n removeDelimitedText(parentNode, openingComment, closingComment);\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n ReactInstrumentation.debugTool.onHostOperation({\n instanceID: ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID,\n type: 'replace text',\n payload: stringText\n });\n }\n}\n\nvar dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup;\nif (process.env.NODE_ENV !== 'production') {\n dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) {\n Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup);\n if (prevInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onHostOperation({\n instanceID: prevInstance._debugID,\n type: 'replace with',\n payload: markup.toString()\n });\n } else {\n var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node);\n if (nextInstance._debugID !== 0) {\n ReactInstrumentation.debugTool.onHostOperation({\n instanceID: nextInstance._debugID,\n type: 'mount',\n payload: markup.toString()\n });\n }\n }\n };\n}\n\n/**\n * Operations for updating with DOM children.\n */\nvar DOMChildrenOperations = {\n\n dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup,\n\n replaceDelimitedText: replaceDelimitedText,\n\n /**\n * Updates a component's children by processing a series of updates. The\n * update configurations are each expected to have a `parentNode` property.\n *\n * @param {array} updates List of update configurations.\n * @internal\n */\n processUpdates: function (parentNode, updates) {\n if (process.env.NODE_ENV !== 'production') {\n var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID;\n }\n\n for (var k = 0; k < updates.length; k++) {\n var update = updates[k];\n switch (update.type) {\n case 'INSERT_MARKUP':\n insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode));\n if (process.env.NODE_ENV !== 'production') {\n ReactInstrumentation.debugTool.onHostOperation({\n instanceID: parentNodeDebugID,\n type: 'insert child',\n payload: { toIndex: update.toIndex, content: update.content.toString() }\n });\n }\n break;\n case 'MOVE_EXISTING':\n moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode));\n if (process.env.NODE_ENV !== 'production') {\n ReactInstrumentation.debugTool.onHostOperation({\n instanceID: parentNodeDebugID,\n type: 'move child',\n payload: { fromIndex: update.fromIndex, toIndex: update.toIndex }\n });\n }\n break;\n case 'SET_MARKUP':\n setInnerHTML(parentNode, update.content);\n if (process.env.NODE_ENV !== 'production') {\n ReactInstrumentation.debugTool.onHostOperation({\n instanceID: parentNodeDebugID,\n type: 'replace children',\n payload: update.content.toString()\n });\n }\n break;\n case 'TEXT_CONTENT':\n setTextContent(parentNode, update.content);\n if (process.env.NODE_ENV !== 'production') {\n ReactInstrumentation.debugTool.onHostOperation({\n instanceID: parentNodeDebugID,\n type: 'replace text',\n payload: update.content.toString()\n });\n }\n break;\n case 'REMOVE_NODE':\n removeChild(parentNode, update.fromNode);\n if (process.env.NODE_ENV !== 'production') {\n ReactInstrumentation.debugTool.onHostOperation({\n instanceID: parentNodeDebugID,\n type: 'remove child',\n payload: { fromIndex: update.fromIndex }\n });\n }\n break;\n }\n }\n }\n\n};\n\nmodule.exports = DOMChildrenOperations;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/DOMChildrenOperations.js\n// module id = 91\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/DOMChildrenOperations.js?"); + +/***/ }), +/* 92 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMNamespaces = __webpack_require__(93);\nvar setInnerHTML = __webpack_require__(94);\n\nvar createMicrosoftUnsafeLocalFunction = __webpack_require__(95);\nvar setTextContent = __webpack_require__(96);\n\nvar ELEMENT_NODE_TYPE = 1;\nvar DOCUMENT_FRAGMENT_NODE_TYPE = 11;\n\n/**\n * In IE (8-11) and Edge, appending nodes with no children is dramatically\n * faster than appending a full subtree, so we essentially queue up the\n * .appendChild calls here and apply them so each node is added to its parent\n * before any children are added.\n *\n * In other browsers, doing so is slower or neutral compared to the other order\n * (in Firefox, twice as slow) so we only do this inversion in IE.\n *\n * See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode.\n */\nvar enableLazy = typeof document !== 'undefined' && typeof document.documentMode === 'number' || typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\\bEdge\\/\\d/.test(navigator.userAgent);\n\nfunction insertTreeChildren(tree) {\n if (!enableLazy) {\n return;\n }\n var node = tree.node;\n var children = tree.children;\n if (children.length) {\n for (var i = 0; i < children.length; i++) {\n insertTreeBefore(node, children[i], null);\n }\n } else if (tree.html != null) {\n setInnerHTML(node, tree.html);\n } else if (tree.text != null) {\n setTextContent(node, tree.text);\n }\n}\n\nvar insertTreeBefore = createMicrosoftUnsafeLocalFunction(function (parentNode, tree, referenceNode) {\n // DocumentFragments aren't actually part of the DOM after insertion so\n // appending children won't update the DOM. We need to ensure the fragment\n // is properly populated first, breaking out of our lazy approach for just\n // this level. Also, some plugins (like Flash Player) will read\n // nodes immediately upon insertion into the DOM, so \n // must also be populated prior to insertion into the DOM.\n if (tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || tree.node.nodeType === ELEMENT_NODE_TYPE && tree.node.nodeName.toLowerCase() === 'object' && (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html)) {\n insertTreeChildren(tree);\n parentNode.insertBefore(tree.node, referenceNode);\n } else {\n parentNode.insertBefore(tree.node, referenceNode);\n insertTreeChildren(tree);\n }\n});\n\nfunction replaceChildWithTree(oldNode, newTree) {\n oldNode.parentNode.replaceChild(newTree.node, oldNode);\n insertTreeChildren(newTree);\n}\n\nfunction queueChild(parentTree, childTree) {\n if (enableLazy) {\n parentTree.children.push(childTree);\n } else {\n parentTree.node.appendChild(childTree.node);\n }\n}\n\nfunction queueHTML(tree, html) {\n if (enableLazy) {\n tree.html = html;\n } else {\n setInnerHTML(tree.node, html);\n }\n}\n\nfunction queueText(tree, text) {\n if (enableLazy) {\n tree.text = text;\n } else {\n setTextContent(tree.node, text);\n }\n}\n\nfunction toString() {\n return this.node.nodeName;\n}\n\nfunction DOMLazyTree(node) {\n return {\n node: node,\n children: [],\n html: null,\n text: null,\n toString: toString\n };\n}\n\nDOMLazyTree.insertTreeBefore = insertTreeBefore;\nDOMLazyTree.replaceChildWithTree = replaceChildWithTree;\nDOMLazyTree.queueChild = queueChild;\nDOMLazyTree.queueHTML = queueHTML;\nDOMLazyTree.queueText = queueText;\n\nmodule.exports = DOMLazyTree;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/DOMLazyTree.js\n// module id = 92\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/DOMLazyTree.js?"); + +/***/ }), +/* 93 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar DOMNamespaces = {\n html: 'http://www.w3.org/1999/xhtml',\n mathml: 'http://www.w3.org/1998/Math/MathML',\n svg: 'http://www.w3.org/2000/svg'\n};\n\nmodule.exports = DOMNamespaces;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/DOMNamespaces.js\n// module id = 93\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/DOMNamespaces.js?"); + +/***/ }), +/* 94 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = __webpack_require__(59);\nvar DOMNamespaces = __webpack_require__(93);\n\nvar WHITESPACE_TEST = /^[ \\r\\n\\t\\f]/;\nvar NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \\r\\n\\t\\f\\/>]/;\n\nvar createMicrosoftUnsafeLocalFunction = __webpack_require__(95);\n\n// SVG temp container for IE lacking innerHTML\nvar reusableSVGContainer;\n\n/**\n * Set the innerHTML property of a node, ensuring that whitespace is preserved\n * even in IE8.\n *\n * @param {DOMElement} node\n * @param {string} html\n * @internal\n */\nvar setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {\n // IE does not have innerHTML for SVG nodes, so instead we inject the\n // new markup in a temp node and then move the child nodes across into\n // the target node\n if (node.namespaceURI === DOMNamespaces.svg && !('innerHTML' in node)) {\n reusableSVGContainer = reusableSVGContainer || document.createElement('div');\n reusableSVGContainer.innerHTML = '' + html + '';\n var svgNode = reusableSVGContainer.firstChild;\n while (svgNode.firstChild) {\n node.appendChild(svgNode.firstChild);\n }\n } else {\n node.innerHTML = html;\n }\n});\n\nif (ExecutionEnvironment.canUseDOM) {\n // IE8: When updating a just created node with innerHTML only leading\n // whitespace is removed. When updating an existing node with innerHTML\n // whitespace in root TextNodes is also collapsed.\n // @see quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html\n\n // Feature detection; only IE8 is known to behave improperly like this.\n var testElement = document.createElement('div');\n testElement.innerHTML = ' ';\n if (testElement.innerHTML === '') {\n setInnerHTML = function (node, html) {\n // Magic theory: IE8 supposedly differentiates between added and updated\n // nodes when processing innerHTML, innerHTML on updated nodes suffers\n // from worse whitespace behavior. Re-adding a node like this triggers\n // the initial and more favorable whitespace behavior.\n // TODO: What to do on a detached node?\n if (node.parentNode) {\n node.parentNode.replaceChild(node, node);\n }\n\n // We also implement a workaround for non-visible tags disappearing into\n // thin air on IE8, this only happens if there is no visible text\n // in-front of the non-visible tags. Piggyback on the whitespace fix\n // and simply check if any non-visible tags appear in the source.\n if (WHITESPACE_TEST.test(html) || html[0] === '<' && NONVISIBLE_TEST.test(html)) {\n // Recover leading whitespace by temporarily prepending any character.\n // \\uFEFF has the potential advantage of being zero-width/invisible.\n // UglifyJS drops U+FEFF chars when parsing, so use String.fromCharCode\n // in hopes that this is preserved even if \"\\uFEFF\" is transformed to\n // the actual Unicode character (by Babel, for example).\n // https://github.com/mishoo/UglifyJS2/blob/v2.4.20/lib/parse.js#L216\n node.innerHTML = String.fromCharCode(0xFEFF) + html;\n\n // deleteData leaves an empty `TextNode` which offsets the index of all\n // children. Definitely want to avoid this.\n var textNode = node.firstChild;\n if (textNode.data.length === 1) {\n node.removeChild(textNode);\n } else {\n textNode.deleteData(0, 1);\n }\n } else {\n node.innerHTML = html;\n }\n };\n }\n testElement = null;\n}\n\nmodule.exports = setInnerHTML;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/setInnerHTML.js\n// module id = 94\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/setInnerHTML.js?"); + +/***/ }), +/* 95 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n/* globals MSApp */\n\n'use strict';\n\n/**\n * Create a function which has 'unsafe' privileges (required by windows8 apps)\n */\n\nvar createMicrosoftUnsafeLocalFunction = function (func) {\n if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {\n return function (arg0, arg1, arg2, arg3) {\n MSApp.execUnsafeLocalFunction(function () {\n return func(arg0, arg1, arg2, arg3);\n });\n };\n } else {\n return func;\n }\n};\n\nmodule.exports = createMicrosoftUnsafeLocalFunction;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/createMicrosoftUnsafeLocalFunction.js\n// module id = 95\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/createMicrosoftUnsafeLocalFunction.js?"); + +/***/ }), +/* 96 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar ExecutionEnvironment = __webpack_require__(59);\nvar escapeTextContentForBrowser = __webpack_require__(97);\nvar setInnerHTML = __webpack_require__(94);\n\n/**\n * Set the textContent property of a node, ensuring that whitespace is preserved\n * even in IE8. innerText is a poor substitute for textContent and, among many\n * issues, inserts
instead of the literal newline chars. innerHTML behaves\n * as it should.\n *\n * @param {DOMElement} node\n * @param {string} text\n * @internal\n */\nvar setTextContent = function (node, text) {\n if (text) {\n var firstChild = node.firstChild;\n\n if (firstChild && firstChild === node.lastChild && firstChild.nodeType === 3) {\n firstChild.nodeValue = text;\n return;\n }\n }\n node.textContent = text;\n};\n\nif (ExecutionEnvironment.canUseDOM) {\n if (!('textContent' in document.documentElement)) {\n setTextContent = function (node, text) {\n if (node.nodeType === 3) {\n node.nodeValue = text;\n return;\n }\n setInnerHTML(node, escapeTextContentForBrowser(text));\n };\n }\n}\n\nmodule.exports = setTextContent;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/setTextContent.js\n// module id = 96\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/setTextContent.js?"); + +/***/ }), +/* 97 */ +/***/ (function(module, exports) { + + eval("/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * Based on the escape-html library, which is used under the MIT License below:\n *\n * Copyright (c) 2012-2013 TJ Holowaychuk\n * Copyright (c) 2015 Andreas Lubbe\n * Copyright (c) 2015 Tiancheng \"Timothy\" Gu\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n *\n */\n\n'use strict';\n\n// code copied and modified from escape-html\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n var str = '' + string;\n var match = matchHtmlRegExp.exec(str);\n\n if (!match) {\n return str;\n }\n\n var escape;\n var html = '';\n var index = 0;\n var lastIndex = 0;\n\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34:\n // \"\n escape = '"';\n break;\n case 38:\n // &\n escape = '&';\n break;\n case 39:\n // '\n escape = '''; // modified from escape-html; used to be '''\n break;\n case 60:\n // <\n escape = '<';\n break;\n case 62:\n // >\n escape = '>';\n break;\n default:\n continue;\n }\n\n if (lastIndex !== index) {\n html += str.substring(lastIndex, index);\n }\n\n lastIndex = index + 1;\n html += escape;\n }\n\n return lastIndex !== index ? html + str.substring(lastIndex, index) : html;\n}\n// end code copied and modified from escape-html\n\n\n/**\n * Escapes text to prevent scripting attacks.\n *\n * @param {*} text Text value to escape.\n * @return {string} An escaped string.\n */\nfunction escapeTextContentForBrowser(text) {\n if (typeof text === 'boolean' || typeof text === 'number') {\n // this shortcircuit helps perf for types that we know will never have\n // special characters, especially given that this function is used often\n // for numeric dom ids.\n return '' + text;\n }\n return escapeHtml(text);\n}\n\nmodule.exports = escapeTextContentForBrowser;\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/escapeTextContentForBrowser.js\n// module id = 97\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/escapeTextContentForBrowser.js?"); + +/***/ }), +/* 98 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = __webpack_require__(46);\n\nvar DOMLazyTree = __webpack_require__(92);\nvar ExecutionEnvironment = __webpack_require__(59);\n\nvar createNodesFromMarkup = __webpack_require__(99);\nvar emptyFunction = __webpack_require__(19);\nvar invariant = __webpack_require__(15);\n\nvar Danger = {\n\n /**\n * Replaces a node with a string of markup at its current position within its\n * parent. The markup must render into a single root node.\n *\n * @param {DOMElement} oldChild Child node to replace.\n * @param {string} markup Markup to render in place of the child node.\n * @internal\n */\n dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) {\n !ExecutionEnvironment.canUseDOM ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('56') : void 0;\n !markup ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0;\n !(oldChild.nodeName !== 'HTML') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().') : _prodInvariant('58') : void 0;\n\n if (typeof markup === 'string') {\n var newChild = createNodesFromMarkup(markup, emptyFunction)[0];\n oldChild.parentNode.replaceChild(newChild, oldChild);\n } else {\n DOMLazyTree.replaceChildWithTree(oldChild, markup);\n }\n }\n\n};\n\nmodule.exports = Danger;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-dom/lib/Danger.js\n// module id = 98\n// module chunks = 0\n//# sourceURL=webpack:///./~/react-dom/lib/Danger.js?"); + +/***/ }), +/* 99 */ +/***/ (function(module, exports, __webpack_require__) { + + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n/*eslint-disable fb-www/unsafe-html*/\n\nvar ExecutionEnvironment = __webpack_require__(59);\n\nvar createArrayFromMixed = __webpack_require__(100);\nvar getMarkupWrap = __webpack_require__(101);\nvar invariant = __webpack_require__(15);\n\n/**\n * Dummy container used to render all markup.\n */\nvar dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;\n\n/**\n * Pattern used by `getNodeName`.\n */\nvar nodeNamePattern = /^\\s*<(\\w+)/;\n\n/**\n * Extracts the `nodeName` of the first element in a string of markup.\n *\n * @param {string} markup String of markup.\n * @return {?string} Node name of the supplied markup.\n */\nfunction getNodeName(markup) {\n var nodeNameMatch = markup.match(nodeNamePattern);\n return nodeNameMatch && nodeNameMatch[1].toLowerCase();\n}\n\n/**\n * Creates an array containing the nodes rendered from the supplied markup. The\n * optionally supplied `handleScript` function will be invoked once for each\n *