diff --git a/packages/maps-native/package.json b/packages/maps-native/package.json index e14d38506a..ddf1423735 100644 --- a/packages/maps-native/package.json +++ b/packages/maps-native/package.json @@ -47,7 +47,7 @@ "react-native": "~0.59.1" }, "dependencies": { - "@appbaseio/reactivecore": "9.5.2", + "@appbaseio/reactivecore": "9.5.3", "@ptomasroos/react-native-multi-slider": "^0.0.13", "appbase-js": "^4.0.2-beta.11", "hoist-non-react-statics": "^3.3.0", diff --git a/packages/maps/examples/GeoDistanceDropdown/package.json b/packages/maps/examples/GeoDistanceDropdown/package.json index c9deffaa6a..c0a2e65b68 100644 --- a/packages/maps/examples/GeoDistanceDropdown/package.json +++ b/packages/maps/examples/GeoDistanceDropdown/package.json @@ -6,7 +6,7 @@ "license": "Apache-2.0", "dependencies": { "@appbaseio/reactivemaps": "3.0.0-beta.6", - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.2.0", "react-dom": "^16.2.0" }, @@ -26,4 +26,4 @@ "build": "webpack -p --progress", "start": "webpack-dev-server --hot --inline --progress --colors --port 8001 --open" } -} +} \ No newline at end of file diff --git a/packages/maps/examples/GeoDistanceSlider/package.json b/packages/maps/examples/GeoDistanceSlider/package.json index 9f30539eeb..b59925a74b 100644 --- a/packages/maps/examples/GeoDistanceSlider/package.json +++ b/packages/maps/examples/GeoDistanceSlider/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "@appbaseio/reactivemaps": "3.0.0-beta.6", "react": "^16.2.0", "react-dom": "^16.2.0" @@ -25,4 +25,4 @@ "build": "webpack -p --progress", "start": "webpack-dev-server --hot --inline --progress --colors --port 8001 --open" } -} +} \ No newline at end of file diff --git a/packages/maps/examples/ReactiveMap/package.json b/packages/maps/examples/ReactiveMap/package.json index da8eef6429..29a876553c 100644 --- a/packages/maps/examples/ReactiveMap/package.json +++ b/packages/maps/examples/ReactiveMap/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "@appbaseio/reactivemaps": "3.0.0-beta.6", "react": "^16.2.0", "react-dom": "^16.2.0" @@ -25,4 +25,4 @@ "build": "webpack -p --progress", "start": "webpack-dev-server --hot --inline --progress --colors --port 8001" } -} +} \ No newline at end of file diff --git a/packages/native/package.json b/packages/native/package.json index a6ad1159f1..5924940bbd 100644 --- a/packages/native/package.json +++ b/packages/native/package.json @@ -44,7 +44,7 @@ "react-native": "~0.60.5" }, "dependencies": { - "@appbaseio/reactivecore": "9.5.2", + "@appbaseio/reactivecore": "9.5.3", "@babel/polyfill": "^7.0.0-rc.3", "@ptomasroos/react-native-multi-slider": "^1.0.0", "appbase-js": "^4.0.2-beta.11", diff --git a/packages/playground b/packages/playground index c752a0b1bb..7b9ed9530a 160000 --- a/packages/playground +++ b/packages/playground @@ -1 +1 @@ -Subproject commit c752a0b1bb6e493ec50426226e5c20d13f15aef4 +Subproject commit 7b9ed9530a36cf1aea4e329e5fd4e378050a69ed diff --git a/packages/reactivecore b/packages/reactivecore index 9377a077c9..58a1b407d1 160000 --- a/packages/reactivecore +++ b/packages/reactivecore @@ -1 +1 @@ -Subproject commit 9377a077c990d123937ef0c6673127a32d8cfb9f +Subproject commit 58a1b407d1d579ea0c9dff714563641474c7ec14 diff --git a/packages/vue/package.json b/packages/vue/package.json index a0ca981499..5b397597f3 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -33,7 +33,7 @@ "dist" ], "dependencies": { - "@appbaseio/reactivecore": "9.5.2", + "@appbaseio/reactivecore": "9.5.3", "@appbaseio/vue-emotion": "0.4.4", "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0", "appbase-js": "^4.0.2-beta.11", diff --git a/packages/web/examples/CategorySearch/package.json b/packages/web/examples/CategorySearch/package.json index 2c15c4f676..ab08df02cb 100644 --- a/packages/web/examples/CategorySearch/package.json +++ b/packages/web/examples/CategorySearch/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/CategorySearchWithAggregation/package.json b/packages/web/examples/CategorySearchWithAggregation/package.json index 612c70f409..caab197f37 100644 --- a/packages/web/examples/CategorySearchWithAggregation/package.json +++ b/packages/web/examples/CategorySearchWithAggregation/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/CustomSelectedFilters/package.json b/packages/web/examples/CustomSelectedFilters/package.json index fb29114299..a15d3cd0c2 100644 --- a/packages/web/examples/CustomSelectedFilters/package.json +++ b/packages/web/examples/CustomSelectedFilters/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.2.0", "react-dom": "^16.2.0" }, diff --git a/packages/web/examples/DataSearch/package.json b/packages/web/examples/DataSearch/package.json index 6d49d944da..a20da902fb 100644 --- a/packages/web/examples/DataSearch/package.json +++ b/packages/web/examples/DataSearch/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/DataSearchControlled/package.json b/packages/web/examples/DataSearchControlled/package.json index c2cbf64d3a..3064791468 100644 --- a/packages/web/examples/DataSearchControlled/package.json +++ b/packages/web/examples/DataSearchControlled/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/DataSearchWithAggregation/package.json b/packages/web/examples/DataSearchWithAggregation/package.json index 68af8432f8..a2d772055e 100644 --- a/packages/web/examples/DataSearchWithAggregation/package.json +++ b/packages/web/examples/DataSearchWithAggregation/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/DatePicker/package.json b/packages/web/examples/DatePicker/package.json index 24ce883f29..c47e246f8f 100644 --- a/packages/web/examples/DatePicker/package.json +++ b/packages/web/examples/DatePicker/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "moment": "^2.20.1", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" diff --git a/packages/web/examples/DateRange/package.json b/packages/web/examples/DateRange/package.json index f2ba8a066b..865ec12467 100644 --- a/packages/web/examples/DateRange/package.json +++ b/packages/web/examples/DateRange/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "moment": "^2.20.1", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" diff --git a/packages/web/examples/DynamicRangeSlider/package.json b/packages/web/examples/DynamicRangeSlider/package.json index 8b914e9297..a1195e3680 100644 --- a/packages/web/examples/DynamicRangeSlider/package.json +++ b/packages/web/examples/DynamicRangeSlider/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/MultiDataList/package.json b/packages/web/examples/MultiDataList/package.json index 1f7b9b34a9..7af0f1c3a9 100644 --- a/packages/web/examples/MultiDataList/package.json +++ b/packages/web/examples/MultiDataList/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/MultiDataListControlled/package.json b/packages/web/examples/MultiDataListControlled/package.json index 3d261360fa..439fb654ed 100644 --- a/packages/web/examples/MultiDataListControlled/package.json +++ b/packages/web/examples/MultiDataListControlled/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.9.0", "react-dom": "^16.9.0" }, diff --git a/packages/web/examples/MultiDropdownList/package.json b/packages/web/examples/MultiDropdownList/package.json index 9149409387..69fbc002ea 100644 --- a/packages/web/examples/MultiDropdownList/package.json +++ b/packages/web/examples/MultiDropdownList/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/MultiDropdownListControlled/package.json b/packages/web/examples/MultiDropdownListControlled/package.json index 84027d43a7..a8d34188a9 100644 --- a/packages/web/examples/MultiDropdownListControlled/package.json +++ b/packages/web/examples/MultiDropdownListControlled/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.9.0", "react-dom": "^16.9.0" }, diff --git a/packages/web/examples/MultiDropdownRange/package.json b/packages/web/examples/MultiDropdownRange/package.json index 6e924420f1..cba5f24f3e 100644 --- a/packages/web/examples/MultiDropdownRange/package.json +++ b/packages/web/examples/MultiDropdownRange/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/MultiDropdownRangeControlled/package.json b/packages/web/examples/MultiDropdownRangeControlled/package.json index ec0ec912e4..d89818f15a 100644 --- a/packages/web/examples/MultiDropdownRangeControlled/package.json +++ b/packages/web/examples/MultiDropdownRangeControlled/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.9.0", "react-dom": "^16.9.0" }, diff --git a/packages/web/examples/MultiList/package.json b/packages/web/examples/MultiList/package.json index e2d5e5d41c..c45e454f85 100644 --- a/packages/web/examples/MultiList/package.json +++ b/packages/web/examples/MultiList/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/MultiListControlled/package.json b/packages/web/examples/MultiListControlled/package.json index 83c8cb166f..c588109dcc 100644 --- a/packages/web/examples/MultiListControlled/package.json +++ b/packages/web/examples/MultiListControlled/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/MultiRange/package.json b/packages/web/examples/MultiRange/package.json index 1ef51596f0..dadc856fa4 100644 --- a/packages/web/examples/MultiRange/package.json +++ b/packages/web/examples/MultiRange/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/MultiRangeControlled/package.json b/packages/web/examples/MultiRangeControlled/package.json index 595abf968d..96b221810a 100644 --- a/packages/web/examples/MultiRangeControlled/package.json +++ b/packages/web/examples/MultiRangeControlled/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/NumberBox/package.json b/packages/web/examples/NumberBox/package.json index 73373742a8..9659f46287 100644 --- a/packages/web/examples/NumberBox/package.json +++ b/packages/web/examples/NumberBox/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/RangeInput/package.json b/packages/web/examples/RangeInput/package.json index 58733b4a97..5a8176e0e1 100644 --- a/packages/web/examples/RangeInput/package.json +++ b/packages/web/examples/RangeInput/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/RangeSlider/package.json b/packages/web/examples/RangeSlider/package.json index 84f404e737..0e938cb551 100644 --- a/packages/web/examples/RangeSlider/package.json +++ b/packages/web/examples/RangeSlider/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/RatingsFilter/package.json b/packages/web/examples/RatingsFilter/package.json index 0229052ab3..acee12ef14 100644 --- a/packages/web/examples/RatingsFilter/package.json +++ b/packages/web/examples/RatingsFilter/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/ReactiveComponent/package.json b/packages/web/examples/ReactiveComponent/package.json index 30943ee45e..47916101d3 100644 --- a/packages/web/examples/ReactiveComponent/package.json +++ b/packages/web/examples/ReactiveComponent/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/ReactiveComponentWithAggregation/package.json b/packages/web/examples/ReactiveComponentWithAggregation/package.json index 7403b8dc1b..23e3960773 100644 --- a/packages/web/examples/ReactiveComponentWithAggregation/package.json +++ b/packages/web/examples/ReactiveComponentWithAggregation/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/ReactiveList/package.json b/packages/web/examples/ReactiveList/package.json index bbe0504764..d146575a18 100644 --- a/packages/web/examples/ReactiveList/package.json +++ b/packages/web/examples/ReactiveList/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.2.0", "react-dom": "^16.2.0" }, diff --git a/packages/web/examples/ReactiveListWithAggregation/package.json b/packages/web/examples/ReactiveListWithAggregation/package.json index 1550830c1e..3327361bfb 100644 --- a/packages/web/examples/ReactiveListWithAggregation/package.json +++ b/packages/web/examples/ReactiveListWithAggregation/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/ResultCard/package.json b/packages/web/examples/ResultCard/package.json index 2030613cf7..8605d353bb 100644 --- a/packages/web/examples/ResultCard/package.json +++ b/packages/web/examples/ResultCard/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.2.0", "react-dom": "^16.2.0" }, diff --git a/packages/web/examples/ResultList/package.json b/packages/web/examples/ResultList/package.json index 6b99af90a9..e9b443409a 100644 --- a/packages/web/examples/ResultList/package.json +++ b/packages/web/examples/ResultList/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.2.0", "react-dom": "^16.2.0" }, diff --git a/packages/web/examples/SelectedFilters/package.json b/packages/web/examples/SelectedFilters/package.json index bb0fca40fa..c9fd68ce2a 100644 --- a/packages/web/examples/SelectedFilters/package.json +++ b/packages/web/examples/SelectedFilters/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.2.0", "react-dom": "^16.2.0" }, diff --git a/packages/web/examples/SingleDataList/package.json b/packages/web/examples/SingleDataList/package.json index 75d800b4e3..f36815e82a 100644 --- a/packages/web/examples/SingleDataList/package.json +++ b/packages/web/examples/SingleDataList/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/SingleDropdownList/package.json b/packages/web/examples/SingleDropdownList/package.json index 4d5c3e22c1..5e4ba4ba54 100644 --- a/packages/web/examples/SingleDropdownList/package.json +++ b/packages/web/examples/SingleDropdownList/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/SingleDropdownRange/package.json b/packages/web/examples/SingleDropdownRange/package.json index f9ebd29c82..95e7032765 100644 --- a/packages/web/examples/SingleDropdownRange/package.json +++ b/packages/web/examples/SingleDropdownRange/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/SingleList/package.json b/packages/web/examples/SingleList/package.json index 7948e854b4..9ef33bd8da 100644 --- a/packages/web/examples/SingleList/package.json +++ b/packages/web/examples/SingleList/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/SingleRange/package.json b/packages/web/examples/SingleRange/package.json index 7659609adc..6e65d8aa23 100644 --- a/packages/web/examples/SingleRange/package.json +++ b/packages/web/examples/SingleRange/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/TagCloud/package.json b/packages/web/examples/TagCloud/package.json index ec8e1385e2..8c640677ac 100644 --- a/packages/web/examples/TagCloud/package.json +++ b/packages/web/examples/TagCloud/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/ToggleButton/package.json b/packages/web/examples/ToggleButton/package.json index 9bc7e0dbde..bc99ac489c 100644 --- a/packages/web/examples/ToggleButton/package.json +++ b/packages/web/examples/ToggleButton/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.7.0-alpha.2", "react-dom": "^16.7.0-alpha.2" }, diff --git a/packages/web/examples/graphQl/package.json b/packages/web/examples/graphQl/package.json index d4a4125242..ccc91bfb62 100644 --- a/packages/web/examples/graphQl/package.json +++ b/packages/web/examples/graphQl/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "react": "^16.2.0", "react-dom": "^16.2.0" }, diff --git a/packages/web/examples/ssr-with-react-dom/package.json b/packages/web/examples/ssr-with-react-dom/package.json index 726f77dbdb..8d0b0ff0ee 100644 --- a/packages/web/examples/ssr-with-react-dom/package.json +++ b/packages/web/examples/ssr-with-react-dom/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "emotion": "^9.1.1", "emotion-server": "^9.1.1", "express": "^4.16.3", diff --git a/packages/web/examples/ssr/package.json b/packages/web/examples/ssr/package.json index 521df83ad8..5944914d9b 100644 --- a/packages/web/examples/ssr/package.json +++ b/packages/web/examples/ssr/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "@zeit/next-css": "^1.0.1", "emotion-server": "^9.1.0", "moment": "^2.21.0", diff --git a/packages/web/examples/typescript/package.json b/packages/web/examples/typescript/package.json index 9219091631..80c4778207 100644 --- a/packages/web/examples/typescript/package.json +++ b/packages/web/examples/typescript/package.json @@ -11,7 +11,7 @@ "react-dom": "^16.8.6", "react-scripts": "3.0.0", "typescript": "3.4.5", - "@appbaseio/reactivesearch": "3.7.10" + "@appbaseio/reactivesearch": "3.7.11" }, "scripts": { "start": "react-scripts start", diff --git a/packages/web/examples/withRedux/package.json b/packages/web/examples/withRedux/package.json index 54fdcee7f4..87a6656da4 100644 --- a/packages/web/examples/withRedux/package.json +++ b/packages/web/examples/withRedux/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "prop-types": "^15.6.0", "react": "^16.2.0", "react-dom": "^16.2.0", diff --git a/packages/web/examples/withStreaming/package.json b/packages/web/examples/withStreaming/package.json index 5a3f143cf1..5018152a34 100644 --- a/packages/web/examples/withStreaming/package.json +++ b/packages/web/examples/withStreaming/package.json @@ -5,7 +5,7 @@ "main": "index.js", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivesearch": "3.7.10", + "@appbaseio/reactivesearch": "3.7.11", "appbase-js": "^4.0.2-beta.11", "react": "^16.2.0", "react-dom": "^16.2.0" diff --git a/packages/web/package.json b/packages/web/package.json index 896bee3037..38bee91671 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,6 +1,6 @@ { "name": "@appbaseio/reactivesearch", - "version": "3.7.10", + "version": "3.7.11", "description": "A React UI components library for building search experiences", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -32,7 +32,7 @@ "author": "metagrover", "license": "Apache-2.0", "dependencies": { - "@appbaseio/reactivecore": "9.5.2", + "@appbaseio/reactivecore": "9.5.3", "appbase-js": "4.0.2", "cross-env": "^5.2.0", "downshift": "^1.31.2", diff --git a/packages/web/umd/reactivesearch.js b/packages/web/umd/reactivesearch.js index f71cbfdb6d..15d193d268 100644 --- a/packages/web/umd/reactivesearch.js +++ b/packages/web/umd/reactivesearch.js @@ -2,7 +2,7 @@ /** * @preserve XDate v@VERSION * Docs & Licensing: http://arshaw.com/xdate/ - */!function(r,o,i){function l(){return c(this instanceof l?this:new l,arguments)}function c(e,t){var n,o=t.length;if(Q(t[o-1])&&(n=t[--o],t=x(t,0,o)),o)if(1==o){var a=t[0];a instanceof r?e[0]=new r(a.getTime()):function(e){return"number"==typeof e}(a)?e[0]=new r(a):a instanceof l?e[0]=function(e){var t=new r(e[0].getTime());return p(e)&&(t.toString=$),t}(a):V(a)&&(e[0]=new r(0),e=function(e,t,n){for(var o,a=l.parsers,s=0;s=n;o--)r/=X[o],r+=k(t,!1,o)-k(e,!1,o);n==j&&(r+=12*(t.getFullYear()-e.getFullYear()))}else if(n==L){var a=e.toDate().setUTCHours(0,0,0,0),i=t.toDate().setUTCHours(0,0,0,0);r=s((i-a)/z)+(t-i-(e-a))/z}else r=(t-e)/[36e5,6e4,1e3,1][n-3];return r}function m(e){return function(e,t,n){var o=new r(J(e,t,n)),a=g(y(e,t,n));return u(s((o-a)/z)/7)+1}(e(M),e(j),e(L))}function y(e,t,n){var o=new r(J(e,t,n));return o=g(e+1)?e+1:e}function g(e){var t=new r(J(e,0,4));return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+6)%7),t}function v(e,t,n,r){var o=D(k,e,r),a=D(S,e,r);void 0===n&&(n=y(o(M),o(j),o(L)));var s=g(n);r||(s=I(s)),e.setTime(s.getTime()),a(L,[o(L)+7*(t-1)])}function b(e,t,n,r,o){var a=l.locales,s=a[l.defaultLocale]||{},i=D(k,e,o);return n=(V(n)?a[n]:n)||{},C(e,t,(function(e){if(r)for(var t=(e==H?L:e)-1;0<=t;t--)r.push(i(t));return i(e)}),(function(e){return n[e]||s[e]}),o)}function C(e,t,n,r,o){for(var a,s,i="";a=t.match(Z);)i+=t.substr(0,a.index),a[1]?i+=w(e,a[1],n,r,o):a[3]?(s=C(e,a[4],n,r,o),parseInt(s.replace(/\D/g,""),10)&&(i+=s)):i+=a[7]||"'",t=t.substr(a.index+a[0].length);return i+t}function w(e,t,n,r,o){for(var a,s=t.length,i="";0s?"th":["st","nd","rd"][s%10-1]||"th"}}function P(e,t){var n=e.getTimezoneOffset(),r=0>n?"+":"-",o=u(a(n)/60),s=a(n)%60,i=o;return"zz"==t?i=N(o):"zzz"==t&&(i=N(o)+":"+N(s)),r+i}function _(e,t){return 12>e(F)?t("amDesignator"):t("pmDesignator")}function E(e){return!isNaN(e[0].getTime())}function k(e,t,n){return e["get"+(t?"UTC":"")+G[n]]()}function S(e,t,n,r){e["set"+(t?"UTC":"")+G[n]].apply(e,r)}function I(e){return new r(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function R(e,t){return 32-new r(J(e,t,32)).getUTCDate()}function T(e){return function(){return e.apply(void 0,[this].concat(x(arguments)))}}function D(e){var t=x(arguments,1);return function(){return e.apply(void 0,t.concat(x(arguments)))}}function x(e,t,n){return i.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function A(e,t){for(var n=0;n=n&&0!==t.indexOf("Arrow")?"Arrow"+t:t}n.r(t);var y=n(0),g=n.n(y),v=n(6),b=(n.n(v),"undefined"==typeof document?null:document.getElementById("a11y-status-message")),C=[],w=0,O=function e(t,n,r){return null!==n&&n!==r.parentNode?t(n)?n===document.body&&0===n.scrollTop?document.documentElement:n:e(t,n.parentNode,r):null}.bind(null,(function(e){return e.scrollHeight>e.clientHeight})),P=["highlightedIndex","inputValue","isOpen","selectedItem","type"],_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=Object.assign||function(e){for(var t,n=1;nu.top&&0>o.top)return void(n.scrollTop+=u.top);if(0>u.top)return void(n.scrollTop+=u.top-i);if(0o.top)return void(0o.bottom&&(n.scrollTop+=u.bottom-o.bottom+s));var l=u.top+n.scrollTop-i;ln.scrollTop+o.height&&(n.scrollTop=l+u.height-o.height+s)}}(this.getItemNodeFromIndex(this.getState().highlightedIndex),this._rootNode)},t.prototype.moveHighlightedIndex=function(e,t){this.getState().isOpen?this.changeHighlightedIndex(e,t):this.setHighlightedIndex(void 0,E({isOpen:!0},t))},t.prototype.changeHighlightedIndex=function(e,t){var n=this.getItemCount()-1;if(!(0>n)){var r=this.getState().highlightedIndex;null===r&&(r=0o?o=n:o>n&&(o=0),this.setHighlightedIndex(o,t)}},t.prototype.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,a=this.props.itemToString,s=this.id,i=this.getRootProps,u=this.getButtonProps,l=this.getToggleButtonProps,c=this.getLabelProps,p=this.getInputProps,d=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,y=this.selectItem,g=this.selectItemAtIndex,v=this.selectHighlightedItem,b=this.setHighlightedIndex,C=this.clearSelection,w=this.clearItems;return{getRootProps:i,getButtonProps:u,getToggleButtonProps:l,getLabelProps:c,getInputProps:p,getItemProps:d,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:y,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:C,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:a,id:s,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},t.prototype.getItemId=function(e){return this.id+"-item-"+e},t.prototype.componentDidMount=function(){var e=this;this._isMounted=!0;var n=function(){e.isMouseDown=!0},r=function(n){var r=e.props.environment.document;e.isMouseDown=!1;var o=e._rootNode&&s(e._rootNode,n.target),a=e._rootNode&&s(e._rootNode,r.activeElement);o||a||!e.getState().isOpen||e.reset({type:t.stateChangeTypes.mouseUp},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(n){!(e._rootNode&&s(e._rootNode,n.target))&&e.getState().isOpen&&e.reset({type:t.stateChangeTypes.touchStart},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",r),this.props.environment.addEventListener("touchstart",o),this.cleanup=function(){e._isMounted=!1,e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",r),e.props.environment.removeEventListener("touchstart",o)}},t.prototype.componentDidUpdate=function(e,n){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:t.stateChangeTypes.controlledPropUpdatedSelectedItem,inputValue:this.props.itemToString(this.props.selectedItem)});var r=void 0===this.props.highlightedIndex?this.state:this.props,o=void 0===e.highlightedIndex?n:e;r.highlightedIndex===o.highlightedIndex||this.avoidScrolling||this.scrollHighlightedItemIntoView(),this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cleanup()},t.prototype.render=function(){var e=c(this.props.render||this.props.children,a);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=c(e(this.getStateAndHelpers()));if(!t)return null;if(this.getRootProps.called)return this.getRootProps.suppressRefError||function(e,t){var n=t.refKey,r="ref"!==n,o=!p(e);if(o&&!r)throw new Error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps");if(!o&&r)throw new Error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"');if(!d(e)[n])throw new Error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}(t,this.getRootProps),t;if(p(t))return g.a.cloneElement(t,this.getRootProps(d(t)));throw new Error("downshift: If you return a non-DOM element, you must use apply the getRootProps function")},t}(y.Component);I.defaultProps={defaultHighlightedIndex:null,defaultSelectedItem:null,defaultInputValue:"",defaultIsOpen:!1,getA11yStatusMessage:function(e){var t=e.isOpen,n=e.highlightedItem,r=e.selectedItem,o=e.resultCount,a=e.previousResultCount,s=e.itemToString;return t?o?n&&o===a?s(n):o+" "+(1===o?"result is":"results are")+" available, use up and down arrow keys to navigate.":"No results.":r?s(r):""},itemToString:function(e){return null==e?"":e+""},onStateChange:function(){},onInputValueChange:function(){},onUserAction:function(){},onChange:function(){},onSelect:function(){},onOuterClick:function(){},selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},breakingChanges:{}},I.stateChangeTypes={unknown:"__autocomplete_unknown__",mouseUp:"__autocomplete_mouseup__",itemMouseEnter:"__autocomplete_item_mouseenter__",keyDownArrowUp:"__autocomplete_keydown_arrow_up__",keyDownArrowDown:"__autocomplete_keydown_arrow_down__",keyDownEscape:"__autocomplete_keydown_escape__",keyDownEnter:"__autocomplete_keydown_enter__",clickItem:"__autocomplete_click_item__",blurInput:"__autocomplete_blur_input__",changeInput:"__autocomplete_change_input__",keyDownSpaceButton:"__autocomplete_keydown_space_button__",clickButton:"__autocomplete_click_button__",blurButton:"__autocomplete_blur_button__",controlledPropUpdatedSelectedItem:"__autocomplete_controlled_prop_updated_selected_item__",touchStart:"__autocomplete_touchstart__"};var R=function(){var e=this;this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.setItemCount=function(t){return e.itemCount=t},this.unsetItemCount=function(){return e.itemCount=null},this.setHighlightedIndex=function(){var t=0>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r,o=arguments[1],a=0;a div{font-size:1.15rem;font-weight:500;}.DayPicker-Weekdays{margin-top:1rem;display:table-header-group;}.DayPicker-WeekdaysRow{display:table-row;}.DayPicker-Weekday{display:table-cell;padding:0.5rem;font-size:0.875em;text-align:center;color:#8b9898;}.DayPicker-Weekday abbr[title]{border-bottom:none;text-decoration:none;}.DayPicker-Body{display:table-row-group;}.DayPicker-Week{display:table-row;}.DayPicker-Day{display:table-cell;padding:0.5rem;text-align:center;cursor:pointer;vertical-align:middle;outline:none;}.DayPicker-WeekNumber{display:table-cell;padding:0.5rem;text-align:right;vertical-align:middle;min-width:1rem;font-size:0.75em;cursor:pointer;color:#8b9898;border-right:1px solid #eaecec;}.DayPicker--interactionDisabled .DayPicker-Day{cursor:default;}.DayPicker-Footer{padding-top:0.5rem;}.DayPicker-TodayButton{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;color:",(function(e){return e.theme.colors.primaryColor}),";font-size:0.875em;}.DayPicker-Day--today{color:",(function(e){return e.theme.colors.primaryColor}),";font-weight:700;}.DayPicker-Day--outside{cursor:default;color:#8b9898;}.DayPicker-Day--disabled{color:#dce0e0;cursor:default;}.DayPicker-Day--sunday{background-color:#f7f8f8;}.DayPicker-Day--sunday:not(.DayPicker-Day--today){color:#dce0e0;}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){position:relative;color:#f0f8ff;color:#f0f8ff;background-color:",(function(e){return e.theme.colors.primaryColor}),";border-radius:",(function(e){return e.range?0:"100%"}),";}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover{background-color:",(function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)}),";}.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover{background-color:",(function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)}),";border-radius:50%;}.DayPicker-Day--selected.DayPicker-Day--start:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-left-radius:50%;border-bottom-left-radius:50%;}.DayPicker-Day--selected.DayPicker-Day--end:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-right-radius:50%;border-bottom-right-radius:50%;}.DayPicker-Day.DayPicker-Day--end:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-right-radius:50%;border-bottom-right-radius:50%;background-color:",(function(e){return e.theme.colors.primaryColor||"#fff"}),";color:#fff;}.DayPickerInput{flex:1;}.DayPickerInput input{",i.input,";background-color:",(function(e){return e.theme.colors.backgroundColor||"#fff"}),";color:",(function(e){return e.theme.colors.textColor}),";",(function(e){return!e.showBorder&&(0,r.css)("border:none;")}),";&:focus{background-color:",(function(e){return e.theme.colors.backgroundColor||"#fff"}),";}}.DayPickerInput-OverlayWrapper{position:absolute;width:100%;left:0;z-index:4;}.DayPickerInput-OverlayWrapper .DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside){background-color:",(function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)||"#f0f8ff"}),";}.DayPickerInput-Overlay{left:0;top:1px;z-index:1;position:absolute;background:",(function(e){var t=e.theme.colors;return t.backgroundColor?(0,s.lighten)(.15,t.backgroundColor):"#fff"}),";box-shadow:0 2px 5px rgba(0,0,0,0.15);}",(function(e){return e.theme.component}),";");t.default=(0,a.withTheme)(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t,n=1;nt.key?1:0})),n.setState({stats:e||[]})})),(0,p.checkSomePropChange)(this.props,e,["dataField","nestedField"],(function(){n.updateQueryOptions(n.props),n.handleChange(n.state.currentValue,n.props)})),(0,p.isEqual)(this.props.value,e.value)){if(!(0,p.isEqual)(this.state.currentValue,this.props.selectedValue)&&!(0,p.isEqual)(this.props.selectedValue,e.selectedValue)){var r=this.props,o=r.value,a=r.onChange;if(void 0===o){var s=t.parseValue(this.props.selectedValue,this.props);this.handleChange(s,this.props)}else a?a(this.props.selectedValue||null):this.handleChange(this.state.currentValue)}}else{var i=t.parseValue(this.props.value,this.props);this.handleChange(i,this.props)}},t.prototype.shouldComponentUpdate=function(e){var t=u((e.range.end-e.range.start)/2);return!(1>e.stepValue||e.stepValue>t)||(console.warn("stepValue for RangeSlider "+e.componentId+" should be greater than 0 and less than or equal to "+t),!1)},t.prototype.componentWillUnmount=function(){this.props.removeComponent(this.props.componentId),this.props.removeComponent(this.internalComponent)},t.prototype.render=function(){var e=this;return s.default.createElement(v.default,{primary:!0,style:this.props.style,className:this.props.className},this.props.title&&s.default.createElement(b.default,{className:(0,p.getClassName)(this.props.innerClass,"title")||null},this.props.title),this.state.stats.length&&this.props.showHistogram&&this.props.showSlider?s.default.createElement(m.default,{stats:this.state.stats,range:this.props.range,interval:this.getValidInterval(this.props)}):null,this.props.showSlider&&s.default.createElement(f.default,{min:this.props.range.start,max:this.props.range.end,values:this.state.currentValue,onChange:this.handleSlider,onValuesUpdated:this.handleDrag,snap:this.props.snap,snapPoints:this.props.snap?this.getSnapPoints():null,className:(0,p.getClassName)(this.props.innerClass,"slider"),handle:function(t){var n=t.className,r=t.style,a=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","style"]);return s.default.createElement(g.default,o({style:r,className:n},a,{renderTooltipData:e.props.renderTooltipData,tooltipTrigger:e.props.tooltipTrigger}))}}),this.props.rangeLabels&&this.props.showSlider&&s.default.createElement("div",{className:C.rangeLabelsContainer},s.default.createElement(y.default,{align:"left",className:(0,p.getClassName)(this.props.innerClass,"label")||null},this.props.rangeLabels.start),s.default.createElement(y.default,{align:"right",className:(0,p.getClassName)(this.props.innerClass,"label")||null},this.props.rangeLabels.end)))},t}(a.Component);O.parseValue=function(e,t){return Array.isArray(e)?e:e?[e.start,e.end]:[t.range.start,t.range.end]},O.defaultQuery=function(e,t){var n=null;return Array.isArray(e)&&e.length&&(n=(0,w.getRangeQueryWithNullValues)(e,t)),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n};var P=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){var r=(0,p.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.getSnapPoints=function(){var t=[],n=e.props.stepValue;100<(e.props.range.end-e.props.range.start)/n&&(n=(e.props.range.end-e.props.range.start)/100);for(var r=e.props.range.start;r<=e.props.range.end;r+=n)t=t.concat(r);return t[t.length-1]!==e.props.range.end&&(t=t.concat(e.props.range.end)),t},this.getValidInterval=function(e){var t=i((e.range.end-e.range.start)/100)||1;return e.interval?e.interval=i.start&&s<=i.end?e.setState({currentValue:t},o):o()}))},this.handleSlider=function(t){var n=t.values;if(!(0,p.isEqual)(n,e.state.currentValue)){var r=e.props,o=r.value,a=r.onChange;void 0===o?e.handleChange(n):a?(e.forceUpdate(),a(n)):e.setState({currentValue:e.state.currentValue})}},this.handleDrag=function(t){if(e.props.onDrag){var n=t.min,r=t.max,o=t.values;e.props.onDrag(o,[n,r])}},this.updateQuery=function(e,t){var n=t.customQuery,r=O.defaultQuery(e,t),o=void 0;n&&(r=(n(e,t)||{}).query,o=(0,p.getOptionsFromQuery)(n(e,t)),(0,p.updateCustomQuery)(t.componentId,t,e));var a=t.showFilter,s=t.range,i=s.start,u=s.end,l=e[0],c=e[1];t.setQueryOptions(t.componentId,o),t.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:a&&!(l===i&&c===u),URLParams:t.URLParams,componentType:h.componentTypes.rangeSlider})},this.updateQueryOptions=function(t){if(t.showHistogram){var n=t.customQuery,r={size:0,aggs:(t.histogramQuery||e.histogramQuery)(t)},a=[t.range.start,t.range.end],s=n||O.defaultQuery,i=n?(0,p.getOptionsFromQuery)(n(a,t)):null;t.setQueryOptions(e.internalComponent,o({},r,i),!1),t.updateQuery({componentId:e.internalComponent,query:s(a,t),value:a})}}};O.propTypes={addComponent:d.default.funcRequired,removeComponent:d.default.funcRequired,setQueryListener:d.default.funcRequired,setQueryOptions:d.default.funcRequired,updateQuery:d.default.funcRequired,watchComponent:d.default.funcRequired,options:d.default.options,selectedValue:d.default.selectedValue,setComponentProps:d.default.funcRequired,setCustomQuery:d.default.funcRequired,updateComponentProps:d.default.funcRequired,beforeValueChange:d.default.func,className:d.default.string,componentId:d.default.stringRequired,customQuery:d.default.func,dataField:d.default.stringRequired,defaultValue:d.default.range,value:d.default.range,filterLabel:d.default.string,innerClass:d.default.style,interval:d.default.number,nestedField:d.default.string,onDrag:d.default.func,onQueryChange:d.default.func,onValueChange:d.default.func,onChange:d.default.func,range:d.default.range,rangeLabels:d.default.rangeLabels,react:d.default.react,showHistogram:d.default.bool,histogramQuery:d.default.func,showFilter:d.default.bool,showSlider:d.default.bool,tooltipTrigger:d.default.tooltipTrigger,renderTooltipData:d.default.func,snap:d.default.bool,stepValue:d.default.number,style:d.default.style,title:d.default.title,URLParams:d.default.bool,includeNullValues:d.default.bool},O.defaultProps={className:null,range:{start:0,end:10},showHistogram:!0,showSlider:!0,tooltipTrigger:"none",snap:!0,stepValue:1,showFilter:!0,style:{},URLParams:!1,includeNullValues:!1};var _=(0,w.connect)((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null}}),(function(e){return{setComponentProps:function(t,n,r){return e((0,l.setComponentProps)(t,n,r))},setCustomQuery:function(t,n){return e((0,l.setCustomQuery)(t,n))},updateComponentProps:function(t,n,r){return e((0,l.updateComponentProps)(t,n,r))},addComponent:function(t){return e((0,l.addComponent)(t))},removeComponent:function(t){return e((0,l.removeComponent)(t))},setQueryOptions:function(t,n,r){return e((0,l.setQueryOptions)(t,n,r))},setQueryListener:function(t,n,r){return e((0,l.setQueryListener)(t,n,r))},updateQuery:function(t){return e((0,l.updateQuery)(t))},watchComponent:function(t,n){return e((0,l.watchComponent)(t,n))}}}))((function(e){return s.default.createElement(O,o({ref:e.myForwardedRef},e))})),E=s.default.forwardRef((function(e,t){return s.default.createElement(_,o({},e,{myForwardedRef:t}))}));(0,c.default)(E,O),E.name="RangeSlider",t.default=E},function(e,t,i){function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function f(e){return["rheostat","vertical"===e.orientation?"rheostat-vertical":"rheostat-horizontal"].concat(e.className.split(" ")).join(" ")}function h(e){return+e.currentTarget.getAttribute("data-handle-key")}function m(e){e.stopPropagation(),e.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0});var y=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&i.return&&i.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},g=Object.assign||function(e){for(var t,n=1;ng?bw.PERCENT_FULL))throw new TypeError("getNextHandlePosition returned invalid position. Valid positions are floats between 0 and 100");return o}},{key:"validatePosition",value:function(e,t){var n=this.state,a=n.handlePos,s=n.handleDimensions,i=this.userAdjustPosition(e,t);return o(r(i,void 0===a[e+1]?w.PERCENT_FULL:a[e+1]-s),void 0===a[e-1]?w.PERCENT_EMPTY:a[e-1]+s)}},{key:"validateValues",value:function(e,t){var n=t||this.props,a=n.max,s=n.min;return e.map((function(e,t,n){var i=o(r(e,a),s);return n.length&&iw.PERCENT_FULL||t>(void 0===r[e+1]?1/0:r[e+1]-o)||t<(void 0===r[e-1]?-1/0:r[e-1]+o))}},{key:"fireChangeEvent",value:function(){var e=this.props.onChange;e&&e(this.getPublicState())}},{key:"slideTo",value:function(e,t,n){var r=this,o=this.getNextState(e,t);this.setState(o,(function(){var e=r.props.onValuesUpdated;e&&e(r.getPublicState()),n&&n()}))}},{key:"updateNewValues",value:function(e){var t=this;if(null===this.state.slidingIndex){var n=e.max,r=e.min,o=e.values,a=this.props.algorithm,s=this.validateValues(o,e);this.setState({handlePos:s.map((function(e){return a.getPosition(e,r,n)})),values:s},(function(){return t.fireChangeEvent()}))}}},{key:"invalidatePitStyleCache",value:function(){this.pitStyleCache={}}},{key:"render",value:function(){var e=this,t=this.props,n=t.algorithm,r=t.children,o=t.disabled,a=t.handle,s=t.max,i=t.min,u=t.orientation,l=t.pitComponent,c=t.pitPoints,p=t.progressBar,d=this.state,f=d.className,h=d.handlePos,m=d.values;return b.default.createElement("div",{className:f,ref:this.setRef,onClick:o?void 0:this.handleClick,style:{position:"relative"}},b.default.createElement("div",{className:"rheostat-background"}),h.map((function(t,n){var r="vertical"===u?{top:t+"%",position:"absolute"}:{left:t+"%",position:"absolute"};return b.default.createElement(a,{"aria-valuemax":e.getMaxValue(n),"aria-valuemin":e.getMinValue(n),"aria-valuenow":m[n],"aria-disabled":o,"data-handle-key":n,className:"rheostat-handle",key:"handle-"+n,onClick:e.killEvent,onKeyDown:o?void 0:e.handleKeydown,onMouseDown:o?void 0:e.startMouseSlide,onTouchStart:o?void 0:e.startTouchSlide,role:"slider",style:r,tabIndex:0})})),h.map((function(t,n,r){return 0===n&&1e.range.start&&(n=[{key:e.range.start,doc_count:0}].concat(n));var r=n[n.length-1];r.key+e.interval, or pass a custom React context provider to and the corresponding React context consumer to '+u+" in connect options.");var n,r=e.storeState,o=e.store,a=this.props;g&&(a=this.props.wrapperProps,n=this.props.forwardedRef);var s=this.selectDerivedProps(r,a,o,c);return this.selectChildElement(t,s,n)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(T.isContextConsumer)(C.a.createElement(this.props.context.Consumer,null))?this.props.context:w;return C.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},o}(m);if(y.WrappedComponent=t,y.displayName=u,g){var v=C.a.forwardRef((function(e,t){return C.a.createElement(y,{wrapperProps:e,forwardedRef:t})}));return v.displayName=u,v.WrappedComponent=t,S()(v,t)}return S()(y,t)}}function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function u(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;othis.status,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new a(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(m.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=function(e){return e&&DataView.prototype.isPrototypeOf(e)},v=ArrayBuffer.isView||function(e){return e&&-1f)&&(L=(U=U.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:s=s.replace(u,"-webkit-"+u)+";"+s;break;case 207:case 102:s=s.replace(u,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0n.length?e:r+R(n,t)}function l(e){b.inserted[e]=!0}if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var m,y,g=t.key||"css",v=u()((function(e){m+=e,f&&C.insert(e,_)}));void 0!==t.prefix&&(y={prefix:t.prefix});var b={registered:{},inserted:{},nonce:t.nonce,key:g},C=new h(t);f&&C.inject();var w=new s(y);w.use(t.stylisPlugins)(v);var O,P,_="",E=new WeakMap,k=/label:\s*([^\s;\n{]+)\s*;/g,S=function(e,t){return function(e){for(var t,n=e.length,r=n^n,o=0;4<=n;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((65535&1540483477*(t>>>16))<<16),r=1540483477*(65535&r)+((65535&1540483477*(r>>>16))<<16)^(t=1540483477*(65535&(t^=t>>>24))+((65535&1540483477*(t>>>16))<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((65535&1540483477*(r>>>16))<<16)}return r=1540483477*(65535&(r^=r>>>13))+((65535&1540483477*(r>>>16))<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t},I=function(e){var t=!0,r="",o="";null==e||void 0===e.raw?(t=!1,r+=n.call(this,e,!1)):r+=e[0];for(var a=arguments.length,s=Array(1=n;o--)r/=X[o],r+=k(t,!1,o)-k(e,!1,o);n==j&&(r+=12*(t.getFullYear()-e.getFullYear()))}else if(n==L){var a=e.toDate().setUTCHours(0,0,0,0),i=t.toDate().setUTCHours(0,0,0,0);r=s((i-a)/z)+(t-i-(e-a))/z}else r=(t-e)/[36e5,6e4,1e3,1][n-3];return r}function m(e){return function(e,t,n){var o=new r(J(e,t,n)),a=g(y(e,t,n));return u(s((o-a)/z)/7)+1}(e(M),e(j),e(L))}function y(e,t,n){var o=new r(J(e,t,n));return o=g(e+1)?e+1:e}function g(e){var t=new r(J(e,0,4));return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+6)%7),t}function v(e,t,n,r){var o=D(k,e,r),a=D(S,e,r);void 0===n&&(n=y(o(M),o(j),o(L)));var s=g(n);r||(s=I(s)),e.setTime(s.getTime()),a(L,[o(L)+7*(t-1)])}function b(e,t,n,r,o){var a=l.locales,s=a[l.defaultLocale]||{},i=D(k,e,o);return n=(V(n)?a[n]:n)||{},C(e,t,(function(e){if(r)for(var t=(e==H?L:e)-1;0<=t;t--)r.push(i(t));return i(e)}),(function(e){return n[e]||s[e]}),o)}function C(e,t,n,r,o){for(var a,s,i="";a=t.match(Z);)i+=t.substr(0,a.index),a[1]?i+=w(e,a[1],n,r,o):a[3]?(s=C(e,a[4],n,r,o),parseInt(s.replace(/\D/g,""),10)&&(i+=s)):i+=a[7]||"'",t=t.substr(a.index+a[0].length);return i+t}function w(e,t,n,r,o){for(var a,s=t.length,i="";0s?"th":["st","nd","rd"][s%10-1]||"th"}}function P(e,t){var n=e.getTimezoneOffset(),r=0>n?"+":"-",o=u(a(n)/60),s=a(n)%60,i=o;return"zz"==t?i=N(o):"zzz"==t&&(i=N(o)+":"+N(s)),r+i}function _(e,t){return 12>e(F)?t("amDesignator"):t("pmDesignator")}function E(e){return!isNaN(e[0].getTime())}function k(e,t,n){return e["get"+(t?"UTC":"")+G[n]]()}function S(e,t,n,r){e["set"+(t?"UTC":"")+G[n]].apply(e,r)}function I(e){return new r(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function R(e,t){return 32-new r(J(e,t,32)).getUTCDate()}function T(e){return function(){return e.apply(void 0,[this].concat(x(arguments)))}}function D(e){var t=x(arguments,1);return function(){return e.apply(void 0,t.concat(x(arguments)))}}function x(e,t,n){return i.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function A(e,t){for(var n=0;n=n&&0!==t.indexOf("Arrow")?"Arrow"+t:t}n.r(t);var y=n(0),g=n.n(y),v=n(6),b=(n.n(v),"undefined"==typeof document?null:document.getElementById("a11y-status-message")),C=[],w=0,O=function e(t,n,r){return null!==n&&n!==r.parentNode?t(n)?n===document.body&&0===n.scrollTop?document.documentElement:n:e(t,n.parentNode,r):null}.bind(null,(function(e){return e.scrollHeight>e.clientHeight})),P=["highlightedIndex","inputValue","isOpen","selectedItem","type"],_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=Object.assign||function(e){for(var t,n=1;nu.top&&0>o.top)return void(n.scrollTop+=u.top);if(0>u.top)return void(n.scrollTop+=u.top-i);if(0o.top)return void(0o.bottom&&(n.scrollTop+=u.bottom-o.bottom+s));var l=u.top+n.scrollTop-i;ln.scrollTop+o.height&&(n.scrollTop=l+u.height-o.height+s)}}(this.getItemNodeFromIndex(this.getState().highlightedIndex),this._rootNode)},t.prototype.moveHighlightedIndex=function(e,t){this.getState().isOpen?this.changeHighlightedIndex(e,t):this.setHighlightedIndex(void 0,E({isOpen:!0},t))},t.prototype.changeHighlightedIndex=function(e,t){var n=this.getItemCount()-1;if(!(0>n)){var r=this.getState().highlightedIndex;null===r&&(r=0o?o=n:o>n&&(o=0),this.setHighlightedIndex(o,t)}},t.prototype.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,a=this.props.itemToString,s=this.id,i=this.getRootProps,u=this.getButtonProps,l=this.getToggleButtonProps,c=this.getLabelProps,p=this.getInputProps,d=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,y=this.selectItem,g=this.selectItemAtIndex,v=this.selectHighlightedItem,b=this.setHighlightedIndex,C=this.clearSelection,w=this.clearItems;return{getRootProps:i,getButtonProps:u,getToggleButtonProps:l,getLabelProps:c,getInputProps:p,getItemProps:d,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:y,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:C,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:a,id:s,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},t.prototype.getItemId=function(e){return this.id+"-item-"+e},t.prototype.componentDidMount=function(){var e=this;this._isMounted=!0;var n=function(){e.isMouseDown=!0},r=function(n){var r=e.props.environment.document;e.isMouseDown=!1;var o=e._rootNode&&s(e._rootNode,n.target),a=e._rootNode&&s(e._rootNode,r.activeElement);o||a||!e.getState().isOpen||e.reset({type:t.stateChangeTypes.mouseUp},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(n){!(e._rootNode&&s(e._rootNode,n.target))&&e.getState().isOpen&&e.reset({type:t.stateChangeTypes.touchStart},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",r),this.props.environment.addEventListener("touchstart",o),this.cleanup=function(){e._isMounted=!1,e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",r),e.props.environment.removeEventListener("touchstart",o)}},t.prototype.componentDidUpdate=function(e,n){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:t.stateChangeTypes.controlledPropUpdatedSelectedItem,inputValue:this.props.itemToString(this.props.selectedItem)});var r=void 0===this.props.highlightedIndex?this.state:this.props,o=void 0===e.highlightedIndex?n:e;r.highlightedIndex===o.highlightedIndex||this.avoidScrolling||this.scrollHighlightedItemIntoView(),this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cleanup()},t.prototype.render=function(){var e=c(this.props.render||this.props.children,a);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=c(e(this.getStateAndHelpers()));if(!t)return null;if(this.getRootProps.called)return this.getRootProps.suppressRefError||function(e,t){var n=t.refKey,r="ref"!==n,o=!p(e);if(o&&!r)throw new Error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps");if(!o&&r)throw new Error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"');if(!d(e)[n])throw new Error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}(t,this.getRootProps),t;if(p(t))return g.a.cloneElement(t,this.getRootProps(d(t)));throw new Error("downshift: If you return a non-DOM element, you must use apply the getRootProps function")},t}(y.Component);I.defaultProps={defaultHighlightedIndex:null,defaultSelectedItem:null,defaultInputValue:"",defaultIsOpen:!1,getA11yStatusMessage:function(e){var t=e.isOpen,n=e.highlightedItem,r=e.selectedItem,o=e.resultCount,a=e.previousResultCount,s=e.itemToString;return t?o?n&&o===a?s(n):o+" "+(1===o?"result is":"results are")+" available, use up and down arrow keys to navigate.":"No results.":r?s(r):""},itemToString:function(e){return null==e?"":e+""},onStateChange:function(){},onInputValueChange:function(){},onUserAction:function(){},onChange:function(){},onSelect:function(){},onOuterClick:function(){},selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},breakingChanges:{}},I.stateChangeTypes={unknown:"__autocomplete_unknown__",mouseUp:"__autocomplete_mouseup__",itemMouseEnter:"__autocomplete_item_mouseenter__",keyDownArrowUp:"__autocomplete_keydown_arrow_up__",keyDownArrowDown:"__autocomplete_keydown_arrow_down__",keyDownEscape:"__autocomplete_keydown_escape__",keyDownEnter:"__autocomplete_keydown_enter__",clickItem:"__autocomplete_click_item__",blurInput:"__autocomplete_blur_input__",changeInput:"__autocomplete_change_input__",keyDownSpaceButton:"__autocomplete_keydown_space_button__",clickButton:"__autocomplete_click_button__",blurButton:"__autocomplete_blur_button__",controlledPropUpdatedSelectedItem:"__autocomplete_controlled_prop_updated_selected_item__",touchStart:"__autocomplete_touchstart__"};var R=function(){var e=this;this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.setItemCount=function(t){return e.itemCount=t},this.unsetItemCount=function(){return e.itemCount=null},this.setHighlightedIndex=function(){var t=0>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r,o=arguments[1],a=0;a div{font-size:1.15rem;font-weight:500;}.DayPicker-Weekdays{margin-top:1rem;display:table-header-group;}.DayPicker-WeekdaysRow{display:table-row;}.DayPicker-Weekday{display:table-cell;padding:0.5rem;font-size:0.875em;text-align:center;color:#8b9898;}.DayPicker-Weekday abbr[title]{border-bottom:none;text-decoration:none;}.DayPicker-Body{display:table-row-group;}.DayPicker-Week{display:table-row;}.DayPicker-Day{display:table-cell;padding:0.5rem;text-align:center;cursor:pointer;vertical-align:middle;outline:none;}.DayPicker-WeekNumber{display:table-cell;padding:0.5rem;text-align:right;vertical-align:middle;min-width:1rem;font-size:0.75em;cursor:pointer;color:#8b9898;border-right:1px solid #eaecec;}.DayPicker--interactionDisabled .DayPicker-Day{cursor:default;}.DayPicker-Footer{padding-top:0.5rem;}.DayPicker-TodayButton{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;color:",(function(e){return e.theme.colors.primaryColor}),";font-size:0.875em;}.DayPicker-Day--today{color:",(function(e){return e.theme.colors.primaryColor}),";font-weight:700;}.DayPicker-Day--outside{cursor:default;color:#8b9898;}.DayPicker-Day--disabled{color:#dce0e0;cursor:default;}.DayPicker-Day--sunday{background-color:#f7f8f8;}.DayPicker-Day--sunday:not(.DayPicker-Day--today){color:#dce0e0;}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){position:relative;color:#f0f8ff;color:#f0f8ff;background-color:",(function(e){return e.theme.colors.primaryColor}),";border-radius:",(function(e){return e.range?0:"100%"}),";}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover{background-color:",(function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)}),";}.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover{background-color:",(function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)}),";border-radius:50%;}.DayPicker-Day--selected.DayPicker-Day--start:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-left-radius:50%;border-bottom-left-radius:50%;}.DayPicker-Day--selected.DayPicker-Day--end:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-right-radius:50%;border-bottom-right-radius:50%;}.DayPicker-Day.DayPicker-Day--end:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-right-radius:50%;border-bottom-right-radius:50%;background-color:",(function(e){return e.theme.colors.primaryColor||"#fff"}),";color:#fff;}.DayPickerInput{flex:1;}.DayPickerInput input{",i.input,";background-color:",(function(e){return e.theme.colors.backgroundColor||"#fff"}),";color:",(function(e){return e.theme.colors.textColor}),";",(function(e){return!e.showBorder&&(0,r.css)("border:none;")}),";&:focus{background-color:",(function(e){return e.theme.colors.backgroundColor||"#fff"}),";}}.DayPickerInput-OverlayWrapper{position:absolute;width:100%;left:0;z-index:4;}.DayPickerInput-OverlayWrapper .DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside){background-color:",(function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)||"#f0f8ff"}),";}.DayPickerInput-Overlay{left:0;top:1px;z-index:1;position:absolute;background:",(function(e){var t=e.theme.colors;return t.backgroundColor?(0,s.lighten)(.15,t.backgroundColor):"#fff"}),";box-shadow:0 2px 5px rgba(0,0,0,0.15);}",(function(e){return e.theme.component}),";");t.default=(0,a.withTheme)(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t,n=1;nt.key?1:0})),n.setState({stats:e||[]})})),(0,p.checkSomePropChange)(this.props,e,["dataField","nestedField"],(function(){n.updateQueryOptions(n.props),n.handleChange(n.state.currentValue,n.props)})),(0,p.isEqual)(this.props.value,e.value)){if(!(0,p.isEqual)(this.state.currentValue,this.props.selectedValue)&&!(0,p.isEqual)(this.props.selectedValue,e.selectedValue)){var r=this.props,o=r.value,a=r.onChange;if(void 0===o){var s=t.parseValue(this.props.selectedValue,this.props);this.handleChange(s,this.props)}else a?a(this.props.selectedValue||null):this.handleChange(this.state.currentValue)}}else{var i=t.parseValue(this.props.value,this.props);this.handleChange(i,this.props)}},t.prototype.shouldComponentUpdate=function(e){var t=u((e.range.end-e.range.start)/2);return!(1>e.stepValue||e.stepValue>t)||(console.warn("stepValue for RangeSlider "+e.componentId+" should be greater than 0 and less than or equal to "+t),!1)},t.prototype.componentWillUnmount=function(){this.props.removeComponent(this.props.componentId),this.props.removeComponent(this.internalComponent)},t.prototype.render=function(){var e=this;return s.default.createElement(v.default,{primary:!0,style:this.props.style,className:this.props.className},this.props.title&&s.default.createElement(b.default,{className:(0,p.getClassName)(this.props.innerClass,"title")||null},this.props.title),this.state.stats.length&&this.props.showHistogram&&this.props.showSlider?s.default.createElement(m.default,{stats:this.state.stats,range:this.props.range,interval:this.getValidInterval(this.props)}):null,this.props.showSlider&&s.default.createElement(f.default,{min:this.props.range.start,max:this.props.range.end,values:this.state.currentValue,onChange:this.handleSlider,onValuesUpdated:this.handleDrag,snap:this.props.snap,snapPoints:this.props.snap?this.getSnapPoints():null,className:(0,p.getClassName)(this.props.innerClass,"slider"),handle:function(t){var n=t.className,r=t.style,a=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","style"]);return s.default.createElement(g.default,o({style:r,className:n},a,{renderTooltipData:e.props.renderTooltipData,tooltipTrigger:e.props.tooltipTrigger}))}}),this.props.rangeLabels&&this.props.showSlider&&s.default.createElement("div",{className:C.rangeLabelsContainer},s.default.createElement(y.default,{align:"left",className:(0,p.getClassName)(this.props.innerClass,"label")||null},this.props.rangeLabels.start),s.default.createElement(y.default,{align:"right",className:(0,p.getClassName)(this.props.innerClass,"label")||null},this.props.rangeLabels.end)))},t}(a.Component);O.parseValue=function(e,t){return Array.isArray(e)?e:e?[e.start,e.end]:[t.range.start,t.range.end]},O.defaultQuery=function(e,t){var n=null;return Array.isArray(e)&&e.length&&(n=(0,w.getRangeQueryWithNullValues)(e,t)),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n};var P=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){var r=(0,p.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.getSnapPoints=function(){var t=[],n=e.props.stepValue;100<(e.props.range.end-e.props.range.start)/n&&(n=(e.props.range.end-e.props.range.start)/100);for(var r=e.props.range.start;r<=e.props.range.end;r+=n)t=t.concat(r);return t[t.length-1]!==e.props.range.end&&(t=t.concat(e.props.range.end)),t},this.getValidInterval=function(e){var t=i((e.range.end-e.range.start)/100)||1;return e.interval?e.interval=i.start&&s<=i.end?e.setState({currentValue:t},o):o()}))},this.handleSlider=function(t){var n=t.values;if(!(0,p.isEqual)(n,e.state.currentValue)){var r=e.props,o=r.value,a=r.onChange;void 0===o?e.handleChange(n):a?(e.forceUpdate(),a(n)):e.setState({currentValue:e.state.currentValue})}},this.handleDrag=function(t){if(e.props.onDrag){var n=t.min,r=t.max,o=t.values;e.props.onDrag(o,[n,r])}},this.updateQuery=function(e,t){var n=t.customQuery,r=O.defaultQuery(e,t),o=void 0;n&&(r=(n(e,t)||{}).query,o=(0,p.getOptionsFromQuery)(n(e,t)),(0,p.updateCustomQuery)(t.componentId,t,e));var a=t.showFilter,s=t.range,i=s.start,u=s.end,l=e[0],c=e[1];t.setQueryOptions(t.componentId,o),t.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:a&&!(l===i&&c===u),URLParams:t.URLParams,componentType:h.componentTypes.rangeSlider})},this.updateQueryOptions=function(t){if(t.showHistogram){var n=t.customQuery,r={size:0,aggs:(t.histogramQuery||e.histogramQuery)(t)},a=[t.range.start,t.range.end],s=n||O.defaultQuery,i=n?(0,p.getOptionsFromQuery)(n(a,t)):null;t.setQueryOptions(e.internalComponent,o({},r,i),!1),t.updateQuery({componentId:e.internalComponent,query:s(a,t),value:a})}}};O.propTypes={addComponent:d.default.funcRequired,removeComponent:d.default.funcRequired,setQueryListener:d.default.funcRequired,setQueryOptions:d.default.funcRequired,updateQuery:d.default.funcRequired,watchComponent:d.default.funcRequired,options:d.default.options,selectedValue:d.default.selectedValue,setComponentProps:d.default.funcRequired,setCustomQuery:d.default.funcRequired,updateComponentProps:d.default.funcRequired,beforeValueChange:d.default.func,className:d.default.string,componentId:d.default.stringRequired,customQuery:d.default.func,dataField:d.default.stringRequired,defaultValue:d.default.range,value:d.default.range,filterLabel:d.default.string,innerClass:d.default.style,interval:d.default.number,nestedField:d.default.string,onDrag:d.default.func,onQueryChange:d.default.func,onValueChange:d.default.func,onChange:d.default.func,range:d.default.range,rangeLabels:d.default.rangeLabels,react:d.default.react,showHistogram:d.default.bool,histogramQuery:d.default.func,showFilter:d.default.bool,showSlider:d.default.bool,tooltipTrigger:d.default.tooltipTrigger,renderTooltipData:d.default.func,snap:d.default.bool,stepValue:d.default.number,style:d.default.style,title:d.default.title,URLParams:d.default.bool,includeNullValues:d.default.bool},O.defaultProps={className:null,range:{start:0,end:10},showHistogram:!0,showSlider:!0,tooltipTrigger:"none",snap:!0,stepValue:1,showFilter:!0,style:{},URLParams:!1,includeNullValues:!1};var _=(0,w.connect)((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null}}),(function(e){return{setComponentProps:function(t,n,r){return e((0,l.setComponentProps)(t,n,r))},setCustomQuery:function(t,n){return e((0,l.setCustomQuery)(t,n))},updateComponentProps:function(t,n,r){return e((0,l.updateComponentProps)(t,n,r))},addComponent:function(t){return e((0,l.addComponent)(t))},removeComponent:function(t){return e((0,l.removeComponent)(t))},setQueryOptions:function(t,n,r){return e((0,l.setQueryOptions)(t,n,r))},setQueryListener:function(t,n,r){return e((0,l.setQueryListener)(t,n,r))},updateQuery:function(t){return e((0,l.updateQuery)(t))},watchComponent:function(t,n){return e((0,l.watchComponent)(t,n))}}}))((function(e){return s.default.createElement(O,o({ref:e.myForwardedRef},e))})),E=s.default.forwardRef((function(e,t){return s.default.createElement(_,o({},e,{myForwardedRef:t}))}));(0,c.default)(E,O),E.name="RangeSlider",t.default=E},function(e,t,i){function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function f(e){return["rheostat","vertical"===e.orientation?"rheostat-vertical":"rheostat-horizontal"].concat(e.className.split(" ")).join(" ")}function h(e){return+e.currentTarget.getAttribute("data-handle-key")}function m(e){e.stopPropagation(),e.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0});var y=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&i.return&&i.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},g=Object.assign||function(e){for(var t,n=1;ng?bw.PERCENT_FULL))throw new TypeError("getNextHandlePosition returned invalid position. Valid positions are floats between 0 and 100");return o}},{key:"validatePosition",value:function(e,t){var n=this.state,a=n.handlePos,s=n.handleDimensions,i=this.userAdjustPosition(e,t);return o(r(i,void 0===a[e+1]?w.PERCENT_FULL:a[e+1]-s),void 0===a[e-1]?w.PERCENT_EMPTY:a[e-1]+s)}},{key:"validateValues",value:function(e,t){var n=t||this.props,a=n.max,s=n.min;return e.map((function(e,t,n){var i=o(r(e,a),s);return n.length&&iw.PERCENT_FULL||t>(void 0===r[e+1]?1/0:r[e+1]-o)||t<(void 0===r[e-1]?-1/0:r[e-1]+o))}},{key:"fireChangeEvent",value:function(){var e=this.props.onChange;e&&e(this.getPublicState())}},{key:"slideTo",value:function(e,t,n){var r=this,o=this.getNextState(e,t);this.setState(o,(function(){var e=r.props.onValuesUpdated;e&&e(r.getPublicState()),n&&n()}))}},{key:"updateNewValues",value:function(e){var t=this;if(null===this.state.slidingIndex){var n=e.max,r=e.min,o=e.values,a=this.props.algorithm,s=this.validateValues(o,e);this.setState({handlePos:s.map((function(e){return a.getPosition(e,r,n)})),values:s},(function(){return t.fireChangeEvent()}))}}},{key:"invalidatePitStyleCache",value:function(){this.pitStyleCache={}}},{key:"render",value:function(){var e=this,t=this.props,n=t.algorithm,r=t.children,o=t.disabled,a=t.handle,s=t.max,i=t.min,u=t.orientation,l=t.pitComponent,c=t.pitPoints,p=t.progressBar,d=this.state,f=d.className,h=d.handlePos,m=d.values;return b.default.createElement("div",{className:f,ref:this.setRef,onClick:o?void 0:this.handleClick,style:{position:"relative"}},b.default.createElement("div",{className:"rheostat-background"}),h.map((function(t,n){var r="vertical"===u?{top:t+"%",position:"absolute"}:{left:t+"%",position:"absolute"};return b.default.createElement(a,{"aria-valuemax":e.getMaxValue(n),"aria-valuemin":e.getMinValue(n),"aria-valuenow":m[n],"aria-disabled":o,"data-handle-key":n,className:"rheostat-handle",key:"handle-"+n,onClick:e.killEvent,onKeyDown:o?void 0:e.handleKeydown,onMouseDown:o?void 0:e.startMouseSlide,onTouchStart:o?void 0:e.startTouchSlide,role:"slider",style:r,tabIndex:0})})),h.map((function(t,n,r){return 0===n&&1e.range.start&&(n=[{key:e.range.start,doc_count:0}].concat(n));var r=n[n.length-1];r.key+e.interval, or pass a custom React context provider to and the corresponding React context consumer to '+u+" in connect options.");var n,r=e.storeState,o=e.store,a=this.props;g&&(a=this.props.wrapperProps,n=this.props.forwardedRef);var s=this.selectDerivedProps(r,a,o,c);return this.selectChildElement(t,s,n)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(T.isContextConsumer)(C.a.createElement(this.props.context.Consumer,null))?this.props.context:w;return C.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},o}(m);if(y.WrappedComponent=t,y.displayName=u,g){var v=C.a.forwardRef((function(e,t){return C.a.createElement(y,{wrapperProps:e,forwardedRef:t})}));return v.displayName=u,v.WrappedComponent=t,S()(v,t)}return S()(y,t)}}function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function u(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;othis.status,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new a(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(m.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=function(e){return e&&DataView.prototype.isPrototypeOf(e)},v=ArrayBuffer.isView||function(e){return e&&-1f)&&(L=(U=U.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:s=s.replace(u,"-webkit-"+u)+";"+s;break;case 207:case 102:s=s.replace(u,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0n.length?e:r+R(n,t)}function l(e){b.inserted[e]=!0}if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var m,y,g=t.key||"css",v=u()((function(e){m+=e,f&&C.insert(e,_)}));void 0!==t.prefix&&(y={prefix:t.prefix});var b={registered:{},inserted:{},nonce:t.nonce,key:g},C=new h(t);f&&C.inject();var w=new s(y);w.use(t.stylisPlugins)(v);var O,P,_="",E=new WeakMap,k=/label:\s*([^\s;\n{]+)\s*;/g,S=function(e,t){return function(e){for(var t,n=e.length,r=n^n,o=0;4<=n;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((65535&1540483477*(t>>>16))<<16),r=1540483477*(65535&r)+((65535&1540483477*(r>>>16))<<16)^(t=1540483477*(65535&(t^=t>>>24))+((65535&1540483477*(t>>>16))<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((65535&1540483477*(r>>>16))<<16)}return r=1540483477*(65535&(r^=r>>>13))+((65535&1540483477*(r>>>16))<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t},I=function(e){var t=!0,r="",o="";null==e||void 0===e.raw?(t=!1,r+=n.call(this,e,!1)):r+=e[0];for(var a=arguments.length,s=Array(12&&void 0!==arguments[2]?arguments[2]:this,r=null,o=null,a=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(a,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,n,o){var a=null,i=null;e in t&&(a=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var a=p(d(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n?n[t]:null})).filter((function(e){return!!e})));a&&(r=[].concat(s(r),[a]))}else if("string"==typeof t[o]){var i=p(d(o),n[t[o]]);i&&(r=[].concat(s(r),[i]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&(r=[].concat(s(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],n),i=function e(t,n,o){var a={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){n[e]&&(a=r({},a,n[e]))})):"string"==typeof t[o]?n[t[o]]&&(a=r({},a,n[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(a=r({},a,e(t[o],n)))})),n[o]&&(a=r({},a,n[o]));return a}(t[e],o,e));return{queryObj:a,options:i}},t.pushToAndClause=function e(t,n){var o=r({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(s(o.and),[n]),o):"string"==typeof o.and?(o.and=[o.and,n],o):(o.and=e(o.and,n),o);return r({},o,{and:n})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var a=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var i=n(o);i instanceof Promise?i.then(r).catch(a):r()}catch(e){a(e)}else r()},t.getAggsOrder=h,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_seconds":return Math.floor(e.getTime()/1e3);default:return o.default[t.queryFormat]?e.toString(o.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,n=e.size,o=e.time,a=e.hidden,i=e.promotedResults;return r({numberOfResults:t},n>0?{numberOfPages:Math.ceil(t/n)}:null,{time:o,hidden:a,promoted:i&&i.length})},t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,o=n.promotedResults,i=Array.isArray(n.dataField)?n.dataField:[n.dataField],u=g(e,!1),l=g(o,!1);if(l&&l.length){var c=l.map((function(e){return e._id})).filter(Boolean);c&&(u=u.filter((function(e){return!c.includes(e._id)}))),u=[].concat(s(l),s(u))}var f=(0,a.default)({fields:i,suggestions:u,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions});if(r)return f.map((function(e){return r(e)}));return f};var o=i(n(167)),a=i(n(168));function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1])||arguments[1],n=null;return e&&(n=[].concat(s(e)).map((function(e){var n={};e._updated?n._updated=e._updated:e._deleted&&(n._deleted=e._deleted);var o=r({},e);return t&&(o=m(e)),Object.keys(o).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=o[t],e}),r({highlight:o.highlight||{}},o._source,n))}))),n};var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=u(e,["query"]);return Object.keys(t).length?t:null}return null};function b(e,t,n){Object.keys(e).forEach((function(o){var a=e[o]||{},i=a.hidden,u=a.total,s=a.time;t[o]=r({},t[o],{resultStats:r({},t[o].resultStats,{numberOfResults:u,time:s,promoted:n[o]&&n[o].length,hidden:i||0})})}))}t.getOptionsFromQuery=v;t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.selectedValues,o=e.queryLog,a=e.dependencyTree,i=e.props,u=e.hits,s=e.aggregations,c=e.isLoading,f=e.error,d=e.promotedResults,p=e.settings,h=e.customData,y=e.rawData,m={},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(n){m[n]=r({},m[n],t?l({},t,e[n]):e[n])}))};return g(i),Object.keys(n).forEach((function(e){var t=m[e],o=n[e];o&&(m[e]=r({},t,r({title:o.label,componentType:o.componentType,value:o.value},o.category&&{category:o.category},{URLParams:o.URLParams})))})),t||(g(o),g(u,"hits"),g(s,"aggregations"),g(c,"isLoading"),g(f,"error"),g(d,"promotedData"),g(p,"settings"),g(h,"customData"),g(y,"rawData"),b(u,m,d)),g(a,"react"),m},t.updateInternalQuery=function(e,t,n,o,a,i){var u=o.defaultQuery,s=void 0,l=void 0;if(u){var f=u(n,o);l=(f||{}).query,s=v(f),c(e,o,n)}o.setQueryOptions(e,r({},s,t||a)),l&&o.updateQuery(r({componentId:e,query:l,value:n},i))};var _=function(e){var t={};if(e){var n=e();if(n){n.query;var r=u(n,["query"]);r&&(t=r)}}return t};t.extractQueryFromDefaultQuery=_;t.getAggsQuery=function(e,t){var n=e,o=t.dataField,a=t.size,i=t.sortBy,u=t.showMissing,s=t.missingLabel;return n.size=0,n.aggs=l({},o,{terms:r({field:o,size:a,order:h(i||"count")},u?{missing:s}:{})}),t.nestedField&&(n.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:n.aggs}}),r({},n,_(t.defaultQuery))},t.getCompositeAggsQuery=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e,i=t.dataField,u=t.size,s=t.sortBy,c=t.showMissing,f=t.aggregationField,d=f||i,p="count"===s?{}:{order:s};return a.aggs=l({},d,r({composite:r({sources:[l({},d,{terms:r({field:d},p,c?{missing_bucket:!0}:{})})],size:u},n)},o?{aggs:l({},d,{top_hits:{size:1}})}:{})),a.size=0,t.nestedField&&(a.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:a.aggs}}),r({},a,_(t.defaultQuery))},t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return r({},e,{_click_id:t})}))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),a=n(167),i=(r=a)&&r.__esModule?r:{default:r},u=n(17);var s=(0,o.oneOfType)([o.string,(0,o.arrayOf)(o.string),o.object,(0,o.arrayOf)(o.object)]);function l(e,t){return isNaN(e[t])?new Error(t+" value must be a number"):"lat"===t&&(e[t]<-90||e[t]>90)?new Error(t+" value should be between -90 and 90."):"lng"===t&&(e[t]<-180||e[t]>180)?new Error(t+" value should be between -180 and 180."):null}var c={any:o.any,analyticsConfig:(0,o.shape)({searchStateHeader:o.bool,emptyQuery:o.bool,suggestionAnalytics:o.bool,userId:o.string,customEvents:o.object}),appbaseConfig:(0,o.shape)({enableQueryRules:o.bool,recordAnalytics:o.bool,searchStateHeader:o.bool,emptyQuery:o.bool,suggestionAnalytics:o.bool,userId:o.string,customEvents:o.object}),bool:o.bool,boolRequired:o.bool.isRequired,components:(0,o.arrayOf)(o.string),children:o.any,data:(0,o.arrayOf)(o.object),dataFieldArray:(0,o.oneOfType)([o.string,(0,o.arrayOf)(o.string)]).isRequired,dataNumberBox:(0,o.shape)({label:o.string,start:o.number.isRequired,end:o.number.isRequired}).isRequired,date:(0,o.oneOfType)([o.string,(0,o.arrayOf)(o.string)]),dateObject:o.object,excludeFields:(0,o.arrayOf)(o.string),fieldWeights:(0,o.arrayOf)(o.number),filterLabel:o.string,func:o.func,funcRequired:o.func.isRequired,fuzziness:(0,o.oneOf)([0,1,2,"AUTO"]),headers:o.object,hits:(0,o.arrayOf)(o.object),rawData:o.object,iconPosition:(0,o.oneOf)(["left","right"]),includeFields:(0,o.arrayOf)(o.string),labelPosition:(0,o.oneOf)(["left","right","top","bottom"]),number:o.number,options:(0,o.oneOfType)([(0,o.arrayOf)(o.object),o.object]),paginationAt:(0,o.oneOf)(["top","bottom","both"]),range:(0,o.shape)({start:o.number.isRequired,end:o.number.isRequired}),rangeLabels:(0,o.shape)({start:o.string.isRequired,end:o.string.isRequired}),react:(0,o.shape)({and:s,or:s,not:s}),categorySearchValue:(0,o.shape)({term:o.string,category:o.string}),selectedValues:o.object,selectedValue:(0,o.oneOfType)([o.string,(0,o.arrayOf)(o.string),(0,o.arrayOf)(o.object),o.object,o.number,(0,o.arrayOf)(o.number)]),suggestions:(0,o.arrayOf)(o.object),supportedOrientations:(0,o.oneOf)(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),tooltipTrigger:(0,o.oneOf)(["hover","none","focus","always"]),sortBy:(0,o.oneOf)(["asc","desc"]),sortOptions:(0,o.arrayOf)((0,o.shape)({label:o.string,dataField:o.string,sortBy:o.string})),sortByWithCount:(0,o.oneOf)(["asc","desc","count"]),stats:(0,o.arrayOf)(o.object),string:o.string,stringArray:(0,o.arrayOf)(o.string),stringOrArray:(0,o.oneOfType)([o.string,(0,o.arrayOf)(o.string)]),stringRequired:o.string.isRequired,style:o.object,themePreset:(0,o.oneOf)(["light","dark"]),queryFormatDate:(0,o.oneOf)(Object.keys(i.default)),queryFormatSearch:(0,o.oneOf)(["and","or"]),queryFormatNumberBox:(0,o.oneOf)(["exact","lte","gte"]),params:o.object.isRequired,props:o.object,rangeLabelsAlign:(0,o.oneOf)(["left","right"]),title:(0,o.oneOfType)([o.string,o.any]),location:(0,o.shape)({lat:l,lng:l}),unit:(0,o.oneOf)(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),aggregationData:o.array,showClearAll:(0,o.oneOf)([u.CLEAR_ALL.NEVER,u.CLEAR_ALL.ALWAYS,u.CLEAR_ALL.DEFAULT,!0,!1]),componentObject:o.object};t.default=c},function(e,t,n){var r=n(128),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo"},t.validProps=["componentType","aggregationField","dataField","includeFields","excludeFields","size","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","unit"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,a,i,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,i,u],c=0;(s=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.getRangeQueryWithNullValues=t.getNullValuesQuery=t.handleCaretPosition=t.getValidPropsKeys=t.isIdentical=t.isEvent=t.hasCustomRenderer=t.getComponent=t.isFunction=t.composeThemeObject=t.connect=t.ReactReduxContext=void 0;var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=Object.assign([],e),r=n.indexOf(t);r>-1?n.splice(r,1):n.push(t);return n},t.escapeRegExp=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};var o,a=n(0),i=(o=a)&&o.__esModule?o:{default:o},u=n(193),s=n(13),l=n(17);var c=t.ReactReduxContext=i.default.createContext(null),f=(t.connect=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{typography:r({},e.typography,t.typography),colors:r({},e.colors,t.colors),component:r({},e.component,t.component)}},t.isFunction=function(e){return"function"==typeof e}),d=(t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return f(n)?n(e):f(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return f(n)||f(t)},t.isEvent=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},t.isIdentical=function(e,t){return!e&&!t||"function"==typeof e&&"function"==typeof t&&!!(0,s.isEqual)(e(),t())},t.getValidPropsKeys=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(e){return l.validProps.includes(e)}))},t.handleCaretPosition=function(e){if(window){var t=e.target.selectionStart,n=e.target;window.requestAnimationFrame((function(){n.selectionStart=t,n.selectionEnd=t}))}},t.getNullValuesQuery=function(e){return{bool:{must_not:{exists:{field:e}}}}});t.getRangeQueryWithNullValues=function(e,t){var n,r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)};return t.includeNullValues?{bool:{should:[r,d(t.dataField)]}}:r}},function(e,t,n){var r=n(77)("wks"),o=n(52),a=n(24).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";(function(e,r){var o,a=n(196);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var i=Object(a.a)(o);t.a=i}).call(this,n(48),n(301)(e))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(434);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=n(166);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var a=n(169);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var i=n(98);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var u=n(99);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})}));var s=n(437);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var l=n(173);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}));var c=n(172);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(24),o=n(16),a=n(78),i=n(33),u=n(28),s=function(e,t,n){var l,c,f,d=e&s.F,p=e&s.G,h=e&s.S,y=e&s.P,m=e&s.B,g=e&s.W,v=p?o:o[t]||(o[t]={}),b=v.prototype,_=p?r:h?r[t]:(r[t]||{}).prototype;for(l in p&&(n=t),n)(c=!d&&_&&void 0!==_[l])&&u(v,l)||(f=c?_[l]:n[l],v[l]=p&&"function"!=typeof _[l]?n[l]:m&&c?a(f,r):g&&_[l]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):y&&"function"==typeof f?a(Function.call,f):f,y&&((v.virtual||(v.virtual={}))[l]=f,e&s.R&&b&&!b[l]&&i(b,l,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(34),o=n(114),a=n(79),i=Object.defineProperty;t.f=n(27)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(36)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(272),o=n(277);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ThemeProvider",(function(){return m})),n.d(t,"withTheme",(function(){return g})),n.d(t,"channel",(function(){return d})),n.d(t,"contextTypes",(function(){return p})),n.d(t,"createBroadcast",(function(){return f}));var r=n(2),o=n.n(r),a=n(0),i=n(197),u=n.n(i);function s(){return(s=Object.assign||function(e){for(var t=1;t ({})}!");return n}if(!h(e))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return void 0===t?e:s({},t,e)}var m=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;void 0!==this.context[d]&&(this.unsubscribeToOuterId=this.context[d].subscribe((function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)}))),this.broadcast=f(y(this.props.theme,this.outerTheme))},n.getChildContext=function(){var e;return(e={})[d]={subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e},n.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},n.componentWillUnmount=function(){var e=this.context[d];void 0!==e&&e.unsubscribe(this.unsubscribeToOuterId)},n.publish=function(e){this.broadcast.publish(y(e,this.outerTheme))},n.render=function(){return this.props.children?a.Children.only(this.props.children):null},t.childContextTypes=p,t.contextTypes=p,t}(a.Component),g=function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e){return t.call(this,e)||this}l(n,t);var r=n.prototype;return r.componentWillMount=function(){var e=this,t=this.context[d];void 0!==t?this.unsubscribeId=t.subscribe((function(t){e.setState({theme:t})})):console.error("[withTheme] Please use ThemeProvider to be able to use withTheme")},r.componentWillUnmount=function(){-1!==this.unsubscribeId&&this.context[d].unsubscribe(this.unsubscribeId)},r.render=function(){return Object(a.createElement)(e,s({theme:this.state.theme},this.props))},n}(a.Component);return n.displayName="WithTheme("+t+")",n.contextTypes=p,u()(n,e)}},function(e,t,n){"use strict";var r=n(108),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(e){return r.isMemo(e)?i:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var u=s(t),y=s(n),m=0;m .trim{display:block;display:-webkit-box;width:100%;max-height:2.3rem;line-height:1.2rem;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}}","dark"===e&&l(t))}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(11);var a=(0,((r=o)&&r.__esModule?r:{default:r}).default)("h2",{target:"e1hnx4sx0"})("margin:0 0 8px;font-size:1rem;color:",(function(e){return e.theme.colors.titleColor}),";");t.default=a},function(e,t,n){"use strict";function r(e){return new Date(e.getTime())}function o(e){return e instanceof Date&&!isNaN(e.valueOf())}function a(e,t){var n=r(e);return n.setMonth(e.getMonth()+t),n}function i(e,t){return!(!e||!t)&&(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function u(e,t){return!(!e||!t)&&(e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function s(e,t){return r(e).setHours(0,0,0,0)r(t).setHours(0,0,0,0)}function c(e){var t=new Date;return t.setHours(0,0,0,0),s(e,t)}function f(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function d(e,t,n){var o=r(e);return o.setHours(0,0,0,0),l(o,t)&&s(o,n)||l(o,n)&&s(o,t)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=t.from,r=t.to;return n?n&&r&&i(n,r)&&i(e,n)?(n=null,r=null):r&&s(e,n)?n=e:r&&i(e,r)?(n=e,r=e):s(r=e,n)&&(r=n,n=e):n=e,{from:n,to:r}}function h(e,t){var n=t.from,r=t.to;return n&&i(e,n)||r&&i(e,r)||n&&r&&d(e,n,r)}function y(e){var t=r(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(t,"__esModule",{value:!0}),t.clone=r,t.isDate=o,t.addMonths=a,t.isSameDay=i,t.isSameMonth=u,t.isDayBefore=s,t.isDayAfter=l,t.isPastDay=c,t.isFutureDay=f,t.isDayBetween=d,t.addDayToRange=p,t.isDayInRange=h,t.getWeekNumber=y,t.default={addDayToRange:p,addMonths:a,clone:r,getWeekNumber:y,isDate:o,isDayAfter:l,isDayBefore:s,isDayBetween:d,isDayInRange:h,isFutureDay:f,isPastDay:c,isSameDay:i,isSameMonth:u}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i-1&&e%1==0&&ee.clientHeight}));function d(e,t){return e===t||e.contains(t)}function p(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t={};return _.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function C(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}var k=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},x=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},S=function(e){function t(){k(this,t);for(var n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:this.state;return Object.keys(t).reduce((function(n,r){return n[r]=e.isControlledProp(r)?e.props[r]:t[r],n}),{})},t.prototype.isControlledProp=function(e){return void 0!==this.props[e]},t.prototype.getItemCount=function(){return null!=this.itemCount?this.itemCount:void 0!==this.props.itemCount?this.props.itemCount:this.items.length},t.prototype.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},t.prototype.scrollHighlightedItemIntoView=function(){!function(e,t){var n=f(e,t);if(null!==n){var r=getComputedStyle(n),o=n.getBoundingClientRect(),a=parseInt(r.borderTopWidth,10),i=a+parseInt(r.borderBottomWidth,10),u=o.top+a,s=e.getBoundingClientRect();if(s.top<0&&o.top<0)n.scrollTop+=s.top;else if(s.top<0)n.scrollTop+=s.top-u;else if(s.top>0&&o.top<0)o.bottom>0&&s.bottom+i>o.bottom&&(n.scrollTop+=s.bottom-o.bottom+i);else{var l=s.top+n.scrollTop-u;ln.scrollTop+o.height&&(n.scrollTop=l+s.height-o.height+i)}}}(this.getItemNodeFromIndex(this.getState().highlightedIndex),this._rootNode)},t.prototype.moveHighlightedIndex=function(e,t){this.getState().isOpen?this.changeHighlightedIndex(e,t):this.setHighlightedIndex(void 0,E({isOpen:!0},t))},t.prototype.changeHighlightedIndex=function(e,t){var n=this.getItemCount()-1;if(!(n<0)){var r=this.getState().highlightedIndex;null===r&&(r=e>0?-1:n+1);var o=r+e;o<0?o=n:o>n&&(o=0),this.setHighlightedIndex(o,t)}},t.prototype.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,a=this.props.itemToString,i=this.id,u=this.getRootProps,s=this.getButtonProps,l=this.getToggleButtonProps,c=this.getLabelProps,f=this.getInputProps,d=this.getItemProps,p=this.openMenu,h=this.closeMenu,y=this.toggleMenu,m=this.selectItem,g=this.selectItemAtIndex,v=this.selectHighlightedItem,b=this.setHighlightedIndex,_=this.clearSelection,w=this.clearItems;return{getRootProps:u,getButtonProps:s,getToggleButtonProps:l,getLabelProps:c,getInputProps:f,getItemProps:d,reset:this.reset,openMenu:p,closeMenu:h,toggleMenu:y,selectItem:m,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:_,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:a,id:i,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},t.prototype.getItemId=function(e){return this.id+"-item-"+e},t.prototype.componentDidMount=function(){var e=this;this._isMounted=!0;var n=function(){e.isMouseDown=!0},r=function(n){var r=e.props.environment.document;e.isMouseDown=!1;var o=e._rootNode&&d(e._rootNode,n.target),a=e._rootNode&&d(e._rootNode,r.activeElement);o||a||!e.getState().isOpen||e.reset({type:t.stateChangeTypes.mouseUp},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(n){!(e._rootNode&&d(e._rootNode,n.target))&&e.getState().isOpen&&e.reset({type:t.stateChangeTypes.touchStart},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",r),this.props.environment.addEventListener("touchstart",o),this.cleanup=function(){e._isMounted=!1,e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",r),e.props.environment.removeEventListener("touchstart",o)}},t.prototype.componentDidUpdate=function(e,n){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:t.stateChangeTypes.controlledPropUpdatedSelectedItem,inputValue:this.props.itemToString(this.props.selectedItem)});var r=void 0===this.props.highlightedIndex?this.state:this.props,o=void 0===e.highlightedIndex?n:e;r.highlightedIndex===o.highlightedIndex||this.avoidScrolling||this.scrollHighlightedItemIntoView(),this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cleanup()},t.prototype.render=function(){var e=m(this.props.render||this.props.children,c);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=m(e(this.getStateAndHelpers()));if(!t)return null;if(this.getRootProps.called)return this.getRootProps.suppressRefError||function(e,t){var n=t.refKey,r="ref"!==n,o=!g(e);if(o&&!r)throw new Error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps");if(!o&&r)throw new Error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"');if(!v(e)[n])throw new Error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}(t,this.getRootProps),t;if(g(t))return o.a.cloneElement(t,this.getRootProps(v(t)));throw new Error("downshift: If you return a non-DOM element, you must use apply the getRootProps function")},t}(r.Component);S.defaultProps={defaultHighlightedIndex:null,defaultSelectedItem:null,defaultInputValue:"",defaultIsOpen:!1,getA11yStatusMessage:function(e){var t=e.isOpen,n=e.highlightedItem,r=e.selectedItem,o=e.resultCount,a=e.previousResultCount,i=e.itemToString;return t?o?n&&o===a?i(n):o+" "+(1===o?"result is":"results are")+" available, use up and down arrow keys to navigate.":"No results.":r?i(r):""},itemToString:function(e){return null==e?"":String(e)},onStateChange:function(){},onInputValueChange:function(){},onUserAction:function(){},onChange:function(){},onSelect:function(){},onOuterClick:function(){},selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},breakingChanges:{}},S.stateChangeTypes={unknown:"__autocomplete_unknown__",mouseUp:"__autocomplete_mouseup__",itemMouseEnter:"__autocomplete_item_mouseenter__",keyDownArrowUp:"__autocomplete_keydown_arrow_up__",keyDownArrowDown:"__autocomplete_keydown_arrow_down__",keyDownEscape:"__autocomplete_keydown_escape__",keyDownEnter:"__autocomplete_keydown_enter__",clickItem:"__autocomplete_click_item__",blurInput:"__autocomplete_blur_input__",changeInput:"__autocomplete_change_input__",keyDownSpaceButton:"__autocomplete_keydown_space_button__",clickButton:"__autocomplete_click_button__",blurButton:"__autocomplete_blur_button__",controlledPropUpdatedSelectedItem:"__autocomplete_controlled_prop_updated_selected_item__",touchStart:"__autocomplete_touchstart__"};var P=function(){var e,t,n,r=this;this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.setItemCount=function(e){return r.itemCount=e},this.unsetItemCount=function(){return r.itemCount=null},this.setHighlightedIndex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props.defaultHighlightedIndex,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=w(t),r.internalSetState(E({highlightedIndex:e},t))},this.clearSelection=function(e){r.internalSetState({selectedItem:null,inputValue:"",isOpen:!1},e)},this.selectItem=function(e,t,n){t=w(t),r.internalSetState(E({isOpen:!1,highlightedIndex:r.props.defaultHighlightedIndex,selectedItem:e,inputValue:r.isControlledProp("selectedItem")&&r.props.breakingChanges.resetInputOnSelection?r.props.defaultInputValue:r.props.itemToString(e)},t),n)},this.selectItemAtIndex=function(e,t,n){var o=r.items[e];null!=o&&r.selectItem(o,t,n)},this.selectHighlightedItem=function(e,t){return r.selectItemAtIndex(r.getState().highlightedIndex,e,t)},this.internalSetState=function(e,t){var n=void 0,o=void 0,a={},i="function"==typeof e;return!i&&e.hasOwnProperty("inputValue")&&r.props.onInputValueChange(e.inputValue,E({},r.getStateAndHelpers(),e)),r.setState((function(t){t=r.getState(t);var u=i?e(t):e;u=r.props.stateReducer(t,u),n=u.hasOwnProperty("selectedItem");var s={},l={};return n&&u.selectedItem!==t.selectedItem&&(o=u.selectedItem),u.type=u.type||S.stateChangeTypes.unknown,Object.keys(u).forEach((function(e){t[e]!==u[e]&&(a[e]=u[e]),"type"!==e&&(l[e]=u[e],r.isControlledProp(e)||(s[e]=u[e]))})),i&&u.hasOwnProperty("inputValue")&&r.props.onInputValueChange(u.inputValue,E({},r.getStateAndHelpers(),u)),s}),(function(){l(t)(),Object.keys(a).length>1&&r.props.onStateChange(a,r.getStateAndHelpers()),n&&r.props.onSelect(e.selectedItem,r.getStateAndHelpers()),void 0!==o&&r.props.onChange(o,r.getStateAndHelpers()),r.props.onUserAction(a,r.getStateAndHelpers())}))},this.rootRef=function(e){return r._rootNode=e},this.getRootProps=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.suppressRefError,a=void 0!==o&&o,i=t.refKey,u=void 0===i?"ref":i,s=O(t,["refKey"]);return r.getRootProps.called=!0,r.getRootProps.refKey=u,r.getRootProps.suppressRefError=a,E(((e={})[u]=r.rootRef,e),s)},this.keyDownHandlers={ArrowDown:function(e){e.preventDefault();var t=e.shiftKey?5:1;this.moveHighlightedIndex(t,{type:S.stateChangeTypes.keyDownArrowDown})},ArrowUp:function(e){e.preventDefault();var t=e.shiftKey?-5:-1;this.moveHighlightedIndex(t,{type:S.stateChangeTypes.keyDownArrowUp})},Enter:function(e){if(this.getState().isOpen){e.preventDefault();var t=this.getState().highlightedIndex,n=this.items[t],r=this.getItemNodeFromIndex(t);if(null==n||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:S.stateChangeTypes.keyDownEnter})}},Escape:function(e){e.preventDefault(),this.reset({type:S.stateChangeTypes.keyDownEscape})}},this.buttonKeyDownHandlers=E({},this.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:S.stateChangeTypes.keyDownSpaceButton})}}),this.getToggleButtonProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClick,n=e.onKeyDown,o=e.onBlur,a=O(e,["onClick","onKeyDown","onBlur"]),i=r.getState(),u=i.isOpen,s={onClick:p(t,r.button_handleClick),onKeyDown:p(n,r.button_handleKeyDown),onBlur:p(o,r.button_handleBlur)},l=a.disabled?{}:s;return E({type:"button",role:"button","aria-label":u?"close menu":"open menu","aria-expanded":u,"aria-haspopup":!0,"data-toggle":!0},l,a)},this.getButtonProps=this.getToggleButtonProps,this.button_handleKeyDown=function(e){var t=C(e);r.buttonKeyDownHandlers[t]&&r.buttonKeyDownHandlers[t].call(r,e)},this.button_handleClick=function(e){e.preventDefault(),r.props.environment.document.activeElement===r.props.environment.document.body&&e.target.focus(),setTimeout((function(){return r.toggleMenu({type:S.stateChangeTypes.clickButton})}))},this.button_handleBlur=function(e){var t=e.target;setTimeout((function(){r.isMouseDown||null!=r.props.environment.document.activeElement&&r.props.environment.document.activeElement.id===r.inputId||r.props.environment.document.activeElement===t||r.reset({type:S.stateChangeTypes.blurButton})}))},this.getLabelProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.getLabelProps.called=!0,r.getInputProps.called&&e.htmlFor&&e.htmlFor!==r.inputId)throw new Error('downshift: You provided the htmlFor of "'+e.htmlFor+'" for your label, but the id of your input is "'+r.inputId+'". You must either remove the id from your input or set the htmlFor of the label equal to the input id.');return r.inputId=y(r.inputId,e.htmlFor,r.id+"-input"),E({},e,{htmlFor:r.inputId})},this.getInputProps=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.onKeyDown,o=t.onBlur,a=t.onChange,i=t.onInput,u=O(t,["onKeyDown","onBlur","onChange","onInput"]);if(r.getInputProps.called=!0,r.getLabelProps.called&&u.id&&u.id!==r.inputId)throw new Error('downshift: You provided the id of "'+u.id+'" for your input, but the htmlFor of your label is "'+r.inputId+'". You must either remove the id from your input or set the htmlFor of the label equal to the input id.');r.inputId=y(r.inputId,u.id,r.id+"-input");var s=void 0;s="onChange";var l=r.getState(),c=l.inputValue,f=l.isOpen,d=l.highlightedIndex,h=u.disabled?{}:((e={})[s]=p(a,i,r.input_handleChange),e.onKeyDown=p(n,r.input_handleKeyDown),e.onBlur=p(o,r.input_handleBlur),e);return E({role:"combobox","aria-autocomplete":"list","aria-expanded":f,"aria-activedescendant":f&&"number"==typeof d&&d>=0?r.getItemId(d):null,autoComplete:"off",value:c},h,u,{id:r.inputId})},this.input_handleKeyDown=function(e){var t=C(e);t&&r.keyDownHandlers[t]&&r.keyDownHandlers[t].call(r,e)},this.input_handleChange=function(e){r.internalSetState({type:S.stateChangeTypes.changeInput,isOpen:!0,inputValue:e.target.value})},this.input_handleBlur=function(){setTimeout((function(){var e=r.props.environment.document.activeElement.dataset.toggle&&r._rootNode&&r._rootNode.contains(r.props.environment.document.activeElement);r.isMouseDown||e||r.reset({type:S.stateChangeTypes.blurInput})}))},this.getItemProps=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.onMouseMove,o=t.onMouseDown,a=t.onClick,i=t.index,u=t.item,s=void 0===u?b("getItemProps","item"):u,l=O(t,["onMouseMove","onMouseDown","onClick","index","item"]);void 0===i?(r.items.push(s),i=r.items.indexOf(s)):r.items[i]=s;var c="onClick",f=((e={onMouseMove:p(n,(function(){i!==r.getState().highlightedIndex&&(r.setHighlightedIndex(i,{type:S.stateChangeTypes.itemMouseEnter}),r.avoidScrolling=!0,setTimeout((function(){return r.avoidScrolling=!1}),250))})),onMouseDown:p(o,(function(e){e.preventDefault()}))})[c]=p(a,(function(){r.selectItemAtIndex(i,{type:S.stateChangeTypes.clickItem})})),e),d=l.disabled?{}:f;return E({id:r.getItemId(i)},d,l)},this.clearItems=function(){r.items=[]},this.reset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];e=w(e),r.internalSetState((function(t){var n=t.selectedItem;return E({isOpen:!1,highlightedIndex:r.props.defaultHighlightedIndex,inputValue:r.props.itemToString(n)},e)}),l(t))},this.toggleMenu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];e=w(e),r.internalSetState((function(t){var n=t.isOpen;return E({isOpen:!n},e)}),(function(){r.getState().isOpen&&r.setHighlightedIndex(void 0,e),l(t)()}))},this.openMenu=function(e){r.internalSetState({isOpen:!0},l(e))},this.closeMenu=function(e){r.internalSetState({isOpen:!1},l(e))},this.updateStatus=(e=function(){if(r._isMounted){var e=r.getState(),t=r.items[e.highlightedIndex],n=r.getItemCount(),o=r.props.getA11yStatusMessage(E({itemToString:r.props.itemToString,previousResultCount:r.previousResultCount,resultCount:n,highlightedItem:t},e));r.previousResultCount=n,u(o)}},t=200,n=void 0,function(){for(var r=arguments.length,o=Array(r),a=0;a1)return n.splice(1,0,t),n.reduce((function(e,t){return""+e+r(t)}));var o=e.replace(/([a-z])([A-Z])/g,"$1"+t+"$2");return e===o?""+e+t:o}function i(e,t){for(var n={},r=0;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:"16px",r=t,o=n;if("string"==typeof t){if(!s(t,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+e+'(), got "'+t+'" instead.');r=l(t)}if("string"==typeof n){if(!s(n,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+e+'(), got "'+n+'" instead.');o=l(n)}if("string"==typeof r)throw new Error('Passed invalid pixel value ("'+t+'") to '+e+'(), please pass a value like "12px" or 12.');if("string"==typeof o)throw new Error('Passed invalid base value ("'+n+'") to '+e+'(), please pass a value like "12px" or 12.');return""+r/o+e}},f=c("em"),d={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1em",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"perfectFourth";if("number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof n&&!d[n])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var r="string"==typeof t?l(t):t,o="string"==typeof n?d[n]:n;if("string"==typeof r)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+t+'"');return r*Math.pow(o,e)+"em"}var h=c("rem");function y(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&",n=t+"::after";return(e={})[n]={clear:"both",content:'""',display:"table"},e}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100%";return{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}}function g(e,t,n){var r=[];return t&&r.push(function(e){return e.map((function(e){return'local("'+e+'")'})).join(", ")}(t)),e&&r.push(function(e,t){return t.map((function(t){return'url("'+e+"."+t+'")'})).join(", ")}(e,n)),r.join(", ")}function v(e){var t=e.fontFamily,n=e.fontFilePath,r=e.fontStretch,o=e.fontStyle,a=e.fontVariant,i=e.fontWeight,u=e.fileFormats,s=void 0===u?["eot","woff2","woff","ttf","svg"]:u,l=e.localFonts,c=e.unicodeRange;if(!t)throw new Error("fontFace expects a name of a font-family.");if(!n&&!l)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(l&&!Array.isArray(l))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(s))throw new Error("fontFace expects fileFormats to be an array.");var f={"@font-face":{fontFamily:t,src:g(n,l,s),unicodeRange:c,fontStretch:r,fontStyle:o,fontVariant:a,fontWeight:i}};return JSON.parse(JSON.stringify(f))}function b(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}}function _(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.3;return"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}var C,k,E,O=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"&";return(t={})[n+"::-webkit-input-placeholder"]=O({},e),t[n+":-moz-placeholder"]=O({},e),t[n+"::-moz-placeholder"]=O({},e),t[n+":-ms-input-placeholder"]=O({},e),t}var D=x(["radial-gradient(","","","",")"],["radial-gradient(","","","",")"]);function A(e){return e[0].split(" ")[0]}function R(e){for(var t="",n=0;n2&&void 0!==arguments[2]?arguments[2]:"png",o=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"_2x";if(!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var i=r.replace(/^\./,""),u=o?o+"."+i:""+e+a+"."+i;return(n={backgroundImage:"url("+e+"."+i+")"})[w()]={backgroundImage:"url("+u+")",backgroundSize:t},n}function N(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t={})[n+"::-moz-selection"]=O({},e),t[n+"::selection"]=O({},e),t}var L={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function F(e){return L[e]}var U=function(e,t,n){switch(e){case"top":return"0 "+n/2+"px "+t+"px "+n/2+"px";case"left":return t/2+"px "+n+"px "+t/2+"px 0";case"bottom":return t+"px "+n/2+"px 0 "+n/2+"px";case"right":return t/2+"px 0 "+t/2+"px "+n+"px";default:throw new Error("Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.")}},V={left:"Right",right:"Left",top:"Bottom",bottom:"Top"};function B(e){var t,n=e.pointingDirection,r=e.height,o=e.width,a=e.foregroundColor,i=e.backgroundColor,u=void 0===i?"transparent":i,s=parseFloat(r),l=parseFloat(o);if(isNaN(s)||isNaN(l))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");return(t={borderColor:u,width:"0",height:"0",borderWidth:U(n,s,l),borderStyle:"solid"})["border"+V[n]+"Color"]=a+" !important",t}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"break-word",t="break-word"===e?"break-all":e;return{overflowWrap:e,wordWrap:e,wordBreak:t}}function q(e){return Math.round(255*e)}function W(e,t,n){return q(e)+","+q(t)+","+q(n)}function Q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:W;if(0===t)return r(n,n,n);var o=e%360/60,a=(1-Math.abs(2*n-1))*t,i=a*(1-Math.abs(o%2-1)),u=0,s=0,l=0;o>=0&&o<1?(u=a,s=i):o>=1&&o<2?(u=i,s=a):o>=2&&o<3?(s=a,l=i):o>=3&&o<4?(s=i,l=a):o>=4&&o<5?(u=i,l=a):o>=5&&o<6&&(u=a,l=i);var c=n-a/2,f=u+c,d=s+c,p=l+c;return r(f,d,p)}var H={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var K=/^#[a-fA-F0-9]{6}$/,G=/^#[a-fA-F0-9]{3}$/,Y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,Z=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,$=/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,X=/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function J(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return H[t]?"#"+H[t]:e}(e);if(t.match(K))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(G))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};var n=Y.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var r=Z.exec(t);if(r)return{red:parseInt(""+r[1],10),green:parseInt(""+r[2],10),blue:parseInt(""+r[3],10),alpha:parseFloat(""+r[4])};var o=$.exec(t);if(o){var a="rgb("+Q(parseInt(""+o[1],10),parseInt(""+o[2],10)/100,parseInt(""+o[3],10)/100)+")",i=Y.exec(a);if(!i)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+a+".");return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)}}var u=X.exec(t);if(u){var s="rgb("+Q(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",l=Y.exec(s);if(!l)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+s+".");return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+u[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function ee(e){return function(e){var t=e.red/255,n=e.green/255,r=e.blue/255,o=Math.max(t,n,r),a=Math.min(t,n,r),i=(o+a)/2;if(o===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=void 0,s=o-a,l=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:u=(n-r)/s+(n=1?re(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?re(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}function ae(e){return ne(Math.round(255*e))}function ie(e,t,n){return te("#"+ae(e)+ae(t)+ae(n))}function ue(e,t,n){return Q(e,t,n,ie)}function se(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return ue(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return ue(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function le(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?ue(e,t,n):"rgba("+Q(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?ue(e.hue,e.saturation,e.lightness):"rgba("+Q(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}var ce="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function fe(e){if("object"!=typeof e)throw new Error(ce);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return oe(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return re(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return le(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return se(e);throw new Error(ce)}function de(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function pe(e,t){var n=ee(t);return fe(O({},n,{hue:(n.hue+e)%360}))}var he=de(pe);function ye(e){var t=ee(e);return fe(O({},t,{hue:(t.hue+180)%360}))}function me(e,t,n){return Math.max(e,Math.min(t,n))}function ge(e,t){var n=ee(t);return fe(O({},n,{lightness:me(0,1,n.lightness-e)}))}var ve=de(ge);function be(e,t){var n=ee(t);return fe(O({},n,{saturation:me(0,1,n.saturation-e)}))}var _e=de(be);function we(e){var t=J(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}));return.2126*n[0]+.7152*n[1]+.0722*n[2]}function Ce(e){return fe(O({},ee(e),{saturation:0}))}function ke(e){var t=J(e);return fe(O({},t,{red:255-t.red,green:255-t.green,blue:255-t.blue}))}function Ee(e,t){var n=ee(t);return fe(O({},n,{lightness:me(0,1,n.lightness+e)}))}var Oe=de(Ee);function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,t=arguments[1],n=arguments[2],r=J(t),o=O({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),a=J(n),i=O({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),u=o.alpha-i.alpha,s=2*e-1,l=s*u==-1?s:s+u,c=1+s*u,f=(l/c+1)/2,d=1-f,p={red:Math.floor(o.red*f+i.red*d),green:Math.floor(o.green*f+i.green*d),blue:Math.floor(o.blue*f+i.blue*d),alpha:o.alpha+(i.alpha-o.alpha)*(e/1)};return oe(p)}var Se=de(xe);function Pe(e,t){var n=J(t),r="number"==typeof n.alpha?n.alpha:1;return oe(O({},n,{alpha:me(0,1,(100*r+100*e)/100)}))}var Te=de(Pe);function Me(e){return we(e)>.179?"#000":"#fff"}var De=de(Me);function Ae(e,t){var n=ee(t);return fe(O({},n,{saturation:me(0,1,n.saturation+e)}))}var Re=de(Ae);function Ie(e,t){return fe(O({},ee(t),{hue:e}))}var je=de(Ie);function Ne(e,t){return fe(O({},ee(t),{lightness:e}))}var Le=de(Ne);function Fe(e,t){return fe(O({},ee(t),{saturation:e}))}var Ue=de(Fe);function Ve(e,t){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to shade, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof t)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return Se(e,t,"rgb(0, 0, 0)")}var Be=de(Ve);function ze(e,t){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to tint, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof t)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return Se(e,t,"rgb(255, 255, 255)")}var qe=de(ze);function We(e,t){var n=J(t),r="number"==typeof n.alpha?n.alpha:1;return oe(O({},n,{alpha:me(0,1,(100*r-100*e)/100)}))}var Qe=de(We);function He(){for(var e=arguments.length,t=Array(e),n=0;n8)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");var o=t.map((function(e){if(r&&!Array.isArray(e)||!r&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&e.length>8)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e})).join(", ");return{animation:o}}function Ke(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),r=1;r=0)return O({position:e},u.apply(void 0,[""].concat(n)));var o=e;return u.apply(void 0,["",o].concat(n))}function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{height:e,width:t}}var lt=[void 0,null,"active","focus","hover"];function ct(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}function ft(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:(0,i.getFirstDayOfWeek)(),n=arguments[2],r=c(e),o=[],u=[],s=[],l=1;l<=r;l+=1)o.push(new Date(e.getFullYear(),e.getMonth(),l,12));o.forEach((function(e){u.length>0&&e.getDay()===t&&(s.push(u),u=[]),u.push(e),o.indexOf(e)===o.length-1&&s.push(u)}));for(var f=s[0],d=7-f.length;d>0;d-=1){var p=(0,a.clone)(f[0]);p.setDate(f[0].getDate()-1),f.unshift(p)}for(var h=s[s.length-1],y=h.length;y<7;y+=1){var m=(0,a.clone)(h[h.length-1]);m.setDate(h[h.length-1].getDate()+1),h.push(m)}if(n&&s.length<6)for(var g=void 0,v=s.length;v<6;v+=1){for(var b=(g=s[s.length-1])[g.length-1],_=[],w=0;w<7;w+=1){var C=(0,a.clone)(b);C.setDate(b.getDate()+w+1),_.push(C)}s.push(_)}return s},t.startOfMonth=function(e){var t=(0,a.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t},t.getDayNodes=function(e,t){var n=void 0;n=t===s.default?t.day+"--"+t.outside:""+t.outside;var r=t.day.replace(/ /g,"."),o=n.replace(/ /g,"."),a="."+r+":not(."+o+")";return e.querySelectorAll(a)},t.nodeListToArray=function(e){return Array.prototype.slice.call(e,0)},t.hasOwnProp=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o,a=n(41),i=n(106),u=n(72),s=(o=u)&&o.__esModule?o:{default:o};function l(e){return new Date(e.getFullYear(),e.getMonth(),1,12)}function c(e){var t=l(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.getDate()}},function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(77)("keys"),o=n(52);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(16),o=n(24),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(51)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(237);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(35);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(34),o=n(244),a=n(83),i=n(76)("IE_PROTO"),u=function(){},s=function(){var e,t=n(115)("iframe"),r=a.length;for(t.style.display="none",n(247).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("