@spaziodati/atoka-design-system 2.0.72-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AddableItems/AddableItems.d.ts +72 -0
- package/AddableItems/ClickableExcludableItem.d.ts +23 -0
- package/AddableItems/ClickableItemList.d.ts +32 -0
- package/AddableItems/index.d.ts +1 -0
- package/AddableItems/index.js +1046 -0
- package/AddableItems/index.js.map +1 -0
- package/Alert/Alert.d.ts +37 -0
- package/Alert/index.d.ts +1 -0
- package/Alert/index.js +319 -0
- package/Alert/index.js.map +1 -0
- package/Badge/Badge.d.ts +38 -0
- package/Badge/index.d.ts +1 -0
- package/Badge/index.js +285 -0
- package/Badge/index.js.map +1 -0
- package/Bs4V3Wrapper/Bs4V3Wrapper.d.ts +7 -0
- package/Bs4V3Wrapper/StoryWrapper.d.ts +8 -0
- package/Bs4V3Wrapper/index.d.ts +1 -0
- package/Bs4V3Wrapper/index.js +251 -0
- package/Bs4V3Wrapper/index.js.map +1 -0
- package/BubbleChart/BubbleChart.d.ts +33 -0
- package/BubbleChart/BubbleChartUI.d.ts +31 -0
- package/BubbleChart/index.d.ts +1 -0
- package/BubbleChart/index.js +3793 -0
- package/BubbleChart/index.js.map +1 -0
- package/Button/Button.d.ts +29 -0
- package/Button/Button.storiesConfig.d.ts +68 -0
- package/Button/index.d.ts +1 -0
- package/Button/index.js +323 -0
- package/Button/index.js.map +1 -0
- package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
- package/ButtonDropdown/index.d.ts +2 -0
- package/ButtonDropdown/index.js +603 -0
- package/ButtonDropdown/index.js.map +1 -0
- package/CardsPage/CardsPage.d.ts +12 -0
- package/CardsPage/CardsPageActions.d.ts +2 -0
- package/CardsPage/CardsPageCards.d.ts +5 -0
- package/CardsPage/CardsPageCardsCounter.d.ts +7 -0
- package/CardsPage/CardsPageFilters.d.ts +3 -0
- package/CardsPage/CardsPageHeader.d.ts +11 -0
- package/CardsPage/CardsPageLayoutMode.d.ts +13 -0
- package/CardsPage/CardsPageSelectionActions.d.ts +17 -0
- package/CardsPage/CardsPageSelectionToggler.d.ts +8 -0
- package/CardsPage/CardsPageSorting.d.ts +15 -0
- package/CardsPage/CardsPageSubtitle.d.ts +2 -0
- package/CardsPage/CardsPageTabContent.d.ts +19 -0
- package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
- package/CardsPage/CardsPageTitle.d.ts +2 -0
- package/CardsPage/index.d.ts +2 -0
- package/CardsPage/index.js +2511 -0
- package/CardsPage/index.js.map +1 -0
- package/CursorPagination/CursorPagination.d.ts +21 -0
- package/CursorPagination/index.d.ts +1 -0
- package/CursorPagination/index.js +952 -0
- package/CursorPagination/index.js.map +1 -0
- package/DatePicker/DatePicker.d.ts +27 -0
- package/DatePicker/index.d.ts +1 -0
- package/DatePicker/index.js +452 -0
- package/DatePicker/index.js.map +1 -0
- package/DetailPage/DetailPage.d.ts +18 -0
- package/DetailPage/DetailPageBodyContainer.d.ts +2 -0
- package/DetailPage/DetailPageBodySection.d.ts +3 -0
- package/DetailPage/DetailPageHeaderContainer.d.ts +7 -0
- package/DetailPage/DetailPageHeaderUI.d.ts +12 -0
- package/DetailPage/DetailPageMenuContainer.d.ts +2 -0
- package/DetailPage/DetailPageMenuUI.d.ts +4 -0
- package/DetailPage/index.d.ts +1 -0
- package/DetailPage/index.js +2066 -0
- package/DetailPage/index.js.map +1 -0
- package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
- package/Dropdown/Dropdown.d.ts +12 -0
- package/Dropdown/DropdownMenu.d.ts +7 -0
- package/Dropdown/index.d.ts +3 -0
- package/Dropdown/index.js +723 -0
- package/Dropdown/index.js.map +1 -0
- package/EditableString/EditableString.d.ts +42 -0
- package/EditableString/index.d.ts +1 -0
- package/EditableString/index.js +3321 -0
- package/EditableString/index.js.map +1 -0
- package/EllipsableContent/EllipsableContent.d.ts +18 -0
- package/EllipsableContent/index.d.ts +1 -0
- package/EllipsableContent/index.js +784 -0
- package/EllipsableContent/index.js.map +1 -0
- package/EmptyState/EmptyState.d.ts +12 -0
- package/EmptyState/index.d.ts +1 -0
- package/EmptyState/index.js +278 -0
- package/EmptyState/index.js.map +1 -0
- package/Facet/Facet.d.ts +21 -0
- package/Facet/FacetHelp.d.ts +28 -0
- package/Facet/FacetItemCount.d.ts +7 -0
- package/Facet/FacetSubtitle.d.ts +2 -0
- package/Facet/index.d.ts +1 -0
- package/Facet/index.js +914 -0
- package/Facet/index.js.map +1 -0
- package/FacetSection/FacetSection.d.ts +21 -0
- package/FacetSection/index.d.ts +1 -0
- package/FacetSection/index.js +443 -0
- package/FacetSection/index.js.map +1 -0
- package/FadeAnimation/FadeAnimation.d.ts +14 -0
- package/FadeAnimation/index.d.ts +1 -0
- package/FadeAnimation/index.js +1228 -0
- package/FadeAnimation/index.js.map +1 -0
- package/FeedbackButton/FeedbackButton.d.ts +19 -0
- package/FeedbackButton/index.d.ts +1 -0
- package/FeedbackButton/index.js +398 -0
- package/FeedbackButton/index.js.map +1 -0
- package/Form/Form.d.ts +23 -0
- package/Form/FormCheckbox.d.ts +10 -0
- package/Form/FormControl.d.ts +23 -0
- package/Form/FormControlFeedBack.d.ts +6 -0
- package/Form/FormHelp.d.ts +7 -0
- package/Form/FormLabel.d.ts +4 -0
- package/Form/FormRadio.d.ts +10 -0
- package/Form/index.d.ts +1 -0
- package/Form/index.js +450 -0
- package/Form/index.js.map +1 -0
- package/Funnel/Funnel.d.ts +54 -0
- package/Funnel/SVGDataLabel.d.ts +11 -0
- package/Funnel/index.d.ts +1 -0
- package/Funnel/index.js +3997 -0
- package/Funnel/index.js.map +1 -0
- package/GridCard/Fixtures.d.ts +3 -0
- package/GridCard/GridCard.d.ts +20 -0
- package/GridCard/GridCardContent.d.ts +2 -0
- package/GridCard/GridCardFooter.d.ts +2 -0
- package/GridCard/GridCardHeader.d.ts +14 -0
- package/GridCard/GridCardMenu.d.ts +2 -0
- package/GridCard/GridCardTags.d.ts +2 -0
- package/GridCard/GridCardTitle.d.ts +6 -0
- package/GridCard/index.d.ts +1 -0
- package/GridCard/index.js +1618 -0
- package/GridCard/index.js.map +1 -0
- package/HighlightableText/HighlightableText.d.ts +21 -0
- package/HighlightableText/index.d.ts +1 -0
- package/HighlightableText/index.js +624 -0
- package/HighlightableText/index.js.map +1 -0
- package/Histogram/Histogram.d.ts +126 -0
- package/Histogram/Types.d.ts +19 -0
- package/Histogram/index.d.ts +1 -0
- package/Histogram/index.js +2359 -0
- package/Histogram/index.js.map +1 -0
- package/InlineStringEditor/InlineStringEditor.d.ts +49 -0
- package/InlineStringEditor/index.d.ts +1 -0
- package/InlineStringEditor/index.js +1882 -0
- package/InlineStringEditor/index.js.map +1 -0
- package/InputGroup/InputGroup.d.ts +16 -0
- package/InputGroup/InputGroupText.d.ts +2 -0
- package/InputGroup/index.d.ts +1 -0
- package/InputGroup/index.js +279 -0
- package/InputGroup/index.js.map +1 -0
- package/Jumbotron/Jumbotron.d.ts +16 -0
- package/Jumbotron/index.d.ts +1 -0
- package/Jumbotron/index.js +270 -0
- package/Jumbotron/index.js.map +1 -0
- package/Map/Map.d.ts +27 -0
- package/Map/MapChoropleth.d.ts +31 -0
- package/Map/MapControl.d.ts +13 -0
- package/Map/MapLegendContent.d.ts +27 -0
- package/Map/MapPopup.d.ts +5 -0
- package/Map/MapUtils.d.ts +2 -0
- package/Map/Types.d.ts +38 -0
- package/Map/index.d.ts +2 -0
- package/Map/index.js +4810 -0
- package/Map/index.js.map +1 -0
- package/Modal/Modal.d.ts +32 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +743 -0
- package/Modal/index.js.map +1 -0
- package/Navbar/Navbar.d.ts +42 -0
- package/Navbar/NavbarMobileMenuCollapse.d.ts +3 -0
- package/Navbar/NavbarMobileMenuToggle.d.ts +3 -0
- package/Navbar/NavbarNavigationMenu.d.ts +9 -0
- package/Navbar/NavbarNavigationMenuItem.d.ts +9 -0
- package/Navbar/NavbarNinjaMenu.d.ts +6 -0
- package/Navbar/NavbarNinjaMenuItem.d.ts +6 -0
- package/Navbar/NavbarNotificationMenu.d.ts +12 -0
- package/Navbar/NavbarNotificationMenuItem.d.ts +8 -0
- package/Navbar/NavbarOverlaySearch.d.ts +28 -0
- package/Navbar/NavbarOverlaySearchCard.d.ts +9 -0
- package/Navbar/NavbarOverlaySearchResults.d.ts +12 -0
- package/Navbar/NavbarUserMenu.d.ts +9 -0
- package/Navbar/NavbarUserMenuItem.d.ts +6 -0
- package/Navbar/index.d.ts +1 -0
- package/Navbar/index.js +3521 -0
- package/Navbar/index.js.map +1 -0
- package/Pagination/Pagination.d.ts +27 -0
- package/Pagination/PaginationNext.d.ts +7 -0
- package/Pagination/PaginationPrev.d.ts +7 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +994 -0
- package/Pagination/index.js.map +1 -0
- package/PieChart/PieChart.d.ts +71 -0
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +1986 -0
- package/PieChart/index.js.map +1 -0
- package/PublicFooter/PublicFooter.d.ts +6 -0
- package/PublicFooter/index.d.ts +1 -0
- package/PublicFooter/index.js +454 -0
- package/PublicFooter/index.js.map +1 -0
- package/PublicNavbar/PublicNavbar.d.ts +6 -0
- package/PublicNavbar/index.d.ts +1 -0
- package/PublicNavbar/index.js +255 -0
- package/PublicNavbar/index.js.map +1 -0
- package/RecordBit/RecordBit.d.ts +14 -0
- package/RecordBit/index.d.ts +1 -0
- package/RecordBit/index.js +482 -0
- package/RecordBit/index.js.map +1 -0
- package/ResultItemCard/ResultItemCard.d.ts +19 -0
- package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
- package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
- package/ResultItemCard/ResultItemCardImage.d.ts +6 -0
- package/ResultItemCard/ResultItemCardSubtitle.d.ts +6 -0
- package/ResultItemCard/ResultItemCardText.d.ts +7 -0
- package/ResultItemCard/ResultItemCardTitle.d.ts +7 -0
- package/ResultItemCard/index.d.ts +1 -0
- package/ResultItemCard/index.js +1067 -0
- package/ResultItemCard/index.js.map +1 -0
- package/SelectDropdown/SelectDropdown.d.ts +29 -0
- package/SelectDropdown/index.d.ts +1 -0
- package/SelectDropdown/index.js +1520 -0
- package/SelectDropdown/index.js.map +1 -0
- package/Spinner/Spinner.d.ts +32 -0
- package/Spinner/index.d.ts +1 -0
- package/Spinner/index.js +325 -0
- package/Spinner/index.js.map +1 -0
- package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
- package/StatisticsItemCard/index.d.ts +1 -0
- package/StatisticsItemCard/index.js +1786 -0
- package/StatisticsItemCard/index.js.map +1 -0
- package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
- package/StatisticsItemNumeric/index.d.ts +1 -0
- package/StatisticsItemNumeric/index.js +283 -0
- package/StatisticsItemNumeric/index.js.map +1 -0
- package/StatisticsLegend/StatisticsLegend.d.ts +35 -0
- package/StatisticsLegend/StatisticsLegendItem.d.ts +50 -0
- package/StatisticsLegend/StatisticsSVGLegend.d.ts +26 -0
- package/StatisticsLegend/helpers.d.ts +19 -0
- package/StatisticsLegend/index.d.ts +3 -0
- package/StatisticsLegend/index.js +1571 -0
- package/StatisticsLegend/index.js.map +1 -0
- package/StatisticsTooltip/StatisticsTooltip.d.ts +20 -0
- package/StatisticsTooltip/helpers.d.ts +19 -0
- package/StatisticsTooltip/index.d.ts +2 -0
- package/StatisticsTooltip/index.js +796 -0
- package/StatisticsTooltip/index.js.map +1 -0
- package/Suggester/CustomOption.d.ts +29 -0
- package/Suggester/InputValueContainer.d.ts +11 -0
- package/Suggester/Suggester.d.ts +80 -0
- package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +6 -0
- package/Suggester/index.d.ts +3 -0
- package/Suggester/index.js +1126 -0
- package/Suggester/index.js.map +1 -0
- package/SunBurst/SunBurst.d.ts +61 -0
- package/SunBurst/index.d.ts +2 -0
- package/SunBurst/index.js +1170 -0
- package/SunBurst/index.js.map +1 -0
- package/TabSwitcher/TabSwitcher.d.ts +35 -0
- package/TabSwitcher/TabSwitcherChoice.d.ts +21 -0
- package/TabSwitcher/index.d.ts +1 -0
- package/TabSwitcher/index.js +1135 -0
- package/TabSwitcher/index.js.map +1 -0
- package/Title/Title.d.ts +16 -0
- package/Title/index.d.ts +1 -0
- package/Title/index.js +302 -0
- package/Title/index.js.map +1 -0
- package/ToggleButtonGroup/ToggleButton.d.ts +15 -0
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +24 -0
- package/ToggleButtonGroup/index.d.ts +1 -0
- package/ToggleButtonGroup/index.js +609 -0
- package/ToggleButtonGroup/index.js.map +1 -0
- package/Tooltip/Tooltip.d.ts +20 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +291 -0
- package/Tooltip/index.js.map +1 -0
- package/Utils/CommonTypes.d.ts +29 -0
- package/Utils/Statistics.d.ts +3 -0
- package/Utils/Style.d.ts +5 -0
- package/Utils/Text.d.ts +12 -0
- package/Utils/Utils.d.ts +12 -0
- package/Utils/index.d.ts +5 -0
- package/Utils/index.js +3379 -0
- package/Utils/index.js.map +1 -0
- package/atoka-design-system-2.0.72-beta.min.css +1 -0
- package/commonFixtures.d.ts +1 -0
- package/index.d.ts +51 -0
- package/index.js +15343 -0
- package/index.js.map +1 -0
- package/package.json +157 -0
- package/styles/animations-mixin.less +28 -0
- package/styles/atoka-bootstrap-fixed-mixins.less +81 -0
- package/styles/atoka-bootstrap-variables.less +70 -0
- package/styles/atoka-bs.less +99 -0
- package/styles/atoka-namespaced-bs.less +28 -0
- package/styles/variables.less +106 -0
- package/styles/variant-mixins.less +96 -0
package/Map/index.js
ADDED
|
@@ -0,0 +1,4810 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@fortawesome/pro-light-svg-icons/faEmptySet"), require("@fortawesome/react-fontawesome"), require("classnames"), require("leaflet"), require("leaflet-image"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/OverlayTrigger"), require("react-bootstrap/Tooltip"), require("react-dom"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faEmptySet", "@fortawesome/react-fontawesome", "classnames", "leaflet", "leaflet-image", "react", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText", "react-bootstrap/OverlayTrigger", "react-bootstrap/Tooltip", "react-dom"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faEmptySet"), require("@fortawesome/react-fontawesome"), require("classnames"), require("leaflet"), require("leaflet-image"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/OverlayTrigger"), require("react-bootstrap/Tooltip"), require("react-dom"));
|
|
8
|
+
else
|
|
9
|
+
root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faEmptySet"], root["@fortawesome/react-fontawesome"], root["classnames"], root["leaflet"], root["leaflet-image"], root["react"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"], root["react-bootstrap/OverlayTrigger"], root["react-bootstrap/Tooltip"], root["react-dom"]);
|
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__3402__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__4159__, __WEBPACK_EXTERNAL_MODULE__855__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__, __WEBPACK_EXTERNAL_MODULE__6043__, __WEBPACK_EXTERNAL_MODULE__8053__, __WEBPACK_EXTERNAL_MODULE__7111__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ var __webpack_modules__ = ({
|
|
13
|
+
|
|
14
|
+
/***/ 5385:
|
|
15
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
|
|
19
|
+
// EXPORTS
|
|
20
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21
|
+
"EmptyState": () => (/* reexport */ EmptyState)
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// EXTERNAL MODULE: external "react"
|
|
25
|
+
var external_react_ = __webpack_require__(8156);
|
|
26
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
27
|
+
// EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
|
|
28
|
+
var react_fontawesome_ = __webpack_require__(5692);
|
|
29
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faEmptySet"
|
|
30
|
+
var faEmptySet_ = __webpack_require__(3402);
|
|
31
|
+
// EXTERNAL MODULE: external "classnames"
|
|
32
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
33
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
34
|
+
;// CONCATENATED MODULE: ./src/components/EmptyState/EmptyState.tsx
|
|
35
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
36
|
+
var extendStatics = function (d, b) {
|
|
37
|
+
extendStatics = Object.setPrototypeOf ||
|
|
38
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
39
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
40
|
+
return extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
return function (d, b) {
|
|
43
|
+
extendStatics(d, b);
|
|
44
|
+
function __() { this.constructor = d; }
|
|
45
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* ### Overview
|
|
55
|
+
*
|
|
56
|
+
* An empty state is a predominant element the user sees on a page where there is nothing to display.
|
|
57
|
+
*/
|
|
58
|
+
var EmptyState = /** @class */ (function (_super) {
|
|
59
|
+
__extends(EmptyState, _super);
|
|
60
|
+
function EmptyState() {
|
|
61
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
62
|
+
}
|
|
63
|
+
EmptyState.prototype.render = function () {
|
|
64
|
+
return (external_react_default().createElement("div", { className: external_classnames_default()('atoka-empty-state', this.props.className) },
|
|
65
|
+
external_react_default().createElement("div", { className: 'mb-2' },
|
|
66
|
+
external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: faEmptySet_.faEmptySet })),
|
|
67
|
+
this.props.children));
|
|
68
|
+
};
|
|
69
|
+
EmptyState.displayName = 'EmptyState';
|
|
70
|
+
return EmptyState;
|
|
71
|
+
}((external_react_default()).PureComponent));
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
;// CONCATENATED MODULE: ./src/components/EmptyState/index.ts
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
/***/ }),
|
|
79
|
+
|
|
80
|
+
/***/ 9316:
|
|
81
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
82
|
+
|
|
83
|
+
"use strict";
|
|
84
|
+
|
|
85
|
+
// UNUSED EXPORTS: Form
|
|
86
|
+
|
|
87
|
+
// EXTERNAL MODULE: external "react"
|
|
88
|
+
var external_react_ = __webpack_require__(8156);
|
|
89
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
90
|
+
// EXTERNAL MODULE: external "classnames"
|
|
91
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
92
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
93
|
+
// EXTERNAL MODULE: external "react-bootstrap/Form"
|
|
94
|
+
var Form_ = __webpack_require__(8721);
|
|
95
|
+
var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
|
|
96
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
var FormLabel = external_react_default().memo(function (props) {
|
|
102
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
|
|
103
|
+
return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
|
|
104
|
+
});
|
|
105
|
+
FormLabel.displayName = 'FormLabel';
|
|
106
|
+
|
|
107
|
+
// EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
|
|
108
|
+
var FormControl = __webpack_require__(3422);
|
|
109
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
|
|
110
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
111
|
+
__assign = Object.assign || function(t) {
|
|
112
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
113
|
+
s = arguments[i];
|
|
114
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
115
|
+
t[p] = s[p];
|
|
116
|
+
}
|
|
117
|
+
return t;
|
|
118
|
+
};
|
|
119
|
+
return __assign.apply(this, arguments);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
var FormCheckbox = function (props) {
|
|
126
|
+
var _a;
|
|
127
|
+
var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
|
|
128
|
+
return external_react_default().createElement((Form_default()).Check, __assign({ type: 'checkbox' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
|
|
129
|
+
};
|
|
130
|
+
FormCheckbox.displayName = 'FormCheckbox';
|
|
131
|
+
|
|
132
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
|
|
133
|
+
var FormRadio_assign = (undefined && undefined.__assign) || function () {
|
|
134
|
+
FormRadio_assign = Object.assign || function(t) {
|
|
135
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
136
|
+
s = arguments[i];
|
|
137
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
138
|
+
t[p] = s[p];
|
|
139
|
+
}
|
|
140
|
+
return t;
|
|
141
|
+
};
|
|
142
|
+
return FormRadio_assign.apply(this, arguments);
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
var FormRadio = function (props) {
|
|
149
|
+
var _a;
|
|
150
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
|
|
151
|
+
return external_react_default().createElement((Form_default()).Check, FormRadio_assign({ type: 'radio' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
|
|
152
|
+
};
|
|
153
|
+
FormRadio.displayName = 'FormRadio';
|
|
154
|
+
|
|
155
|
+
// EXTERNAL MODULE: external "react-bootstrap/FormText"
|
|
156
|
+
var FormText_ = __webpack_require__(8763);
|
|
157
|
+
var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
|
|
158
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
|
|
159
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
160
|
+
var t = {};
|
|
161
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
162
|
+
t[p] = s[p];
|
|
163
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
164
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
165
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
166
|
+
t[p[i]] = s[p[i]];
|
|
167
|
+
}
|
|
168
|
+
return t;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
var FormHelp = external_react_default().memo(function (_a) {
|
|
175
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
176
|
+
var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
|
|
177
|
+
return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
|
|
178
|
+
});
|
|
179
|
+
FormHelp.displayName = 'FormHelp';
|
|
180
|
+
|
|
181
|
+
;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
|
|
182
|
+
var Form_assign = (undefined && undefined.__assign) || function () {
|
|
183
|
+
Form_assign = Object.assign || function(t) {
|
|
184
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
185
|
+
s = arguments[i];
|
|
186
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
187
|
+
t[p] = s[p];
|
|
188
|
+
}
|
|
189
|
+
return t;
|
|
190
|
+
};
|
|
191
|
+
return Form_assign.apply(this, arguments);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
var Form = function (props) {
|
|
203
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
|
|
204
|
+
return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
|
|
205
|
+
};
|
|
206
|
+
Form.displayName = 'Form';
|
|
207
|
+
Form.Control = FormControl/* FormControl */.N;
|
|
208
|
+
Form.Label = FormLabel;
|
|
209
|
+
Form.Checkbox = FormCheckbox;
|
|
210
|
+
Form.Radio = FormRadio;
|
|
211
|
+
Form.File = (Form_default()).File;
|
|
212
|
+
Form.Switch = (Form_default()).Switch;
|
|
213
|
+
Form.Help = FormHelp;
|
|
214
|
+
Form.Group = (Form_default()).Group;
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
/***/ }),
|
|
219
|
+
|
|
220
|
+
/***/ 3422:
|
|
221
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
222
|
+
|
|
223
|
+
"use strict";
|
|
224
|
+
|
|
225
|
+
// EXPORTS
|
|
226
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
227
|
+
"N": () => (/* binding */ FormControl)
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
// EXTERNAL MODULE: external "react"
|
|
231
|
+
var external_react_ = __webpack_require__(8156);
|
|
232
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
233
|
+
// EXTERNAL MODULE: external "classnames"
|
|
234
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
235
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
236
|
+
// EXTERNAL MODULE: external "react-bootstrap/FormControl"
|
|
237
|
+
var FormControl_ = __webpack_require__(1082);
|
|
238
|
+
var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
|
|
239
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
|
|
240
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
241
|
+
var t = {};
|
|
242
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
243
|
+
t[p] = s[p];
|
|
244
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
245
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
246
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
247
|
+
t[p[i]] = s[p[i]];
|
|
248
|
+
}
|
|
249
|
+
return t;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
var FormControlFeedBack = external_react_default().memo(function (_a) {
|
|
255
|
+
var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
|
|
256
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
|
|
257
|
+
'd-block': show,
|
|
258
|
+
});
|
|
259
|
+
return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
|
|
260
|
+
});
|
|
261
|
+
FormControlFeedBack.displayName = ' FormControlFeedBack';
|
|
262
|
+
|
|
263
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
|
|
264
|
+
var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
|
|
265
|
+
var t = {};
|
|
266
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
267
|
+
t[p] = s[p];
|
|
268
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
269
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
270
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
271
|
+
t[p[i]] = s[p[i]];
|
|
272
|
+
}
|
|
273
|
+
return t;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
|
|
281
|
+
var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
|
|
282
|
+
var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
|
|
283
|
+
'atoka-shadow': props.withShadow,
|
|
284
|
+
'disabled': props.disabled,
|
|
285
|
+
});
|
|
286
|
+
return (external_react_default().createElement((FormControl_default()), { as: props.as, rows: props.rows, cols: props.cols, placeholder: props.placeholder, className: className, disabled: props.disabled, readOnly: props.readOnly, value: props.value, onChange: props.onChange, onKeyPress: props.onKeyPress, onKeyDown: props.onKeyDown, defaultValue: props.defaultValue, size: size === 'md' ? undefined : size, type: props.type, id: props.id, isValid: props.isValid, isInvalid: props.isInvalid, ref: ref, autoComplete: 'off' }, props.children));
|
|
287
|
+
});
|
|
288
|
+
FormControlComponent.displayName = 'FormControlComponent';
|
|
289
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
290
|
+
var FormControl = FormControlComponent;
|
|
291
|
+
FormControl.FeedBack = FormControlFeedBack;
|
|
292
|
+
FormControl.displayName = 'FormControl';
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
/***/ }),
|
|
297
|
+
|
|
298
|
+
/***/ 604:
|
|
299
|
+
/***/ (() => {
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
/***/ }),
|
|
304
|
+
|
|
305
|
+
/***/ 69:
|
|
306
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
307
|
+
|
|
308
|
+
"use strict";
|
|
309
|
+
// ESM COMPAT FLAG
|
|
310
|
+
__webpack_require__.r(__webpack_exports__);
|
|
311
|
+
|
|
312
|
+
// EXPORTS
|
|
313
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
314
|
+
"Map": () => (/* reexport */ Map_Map),
|
|
315
|
+
"MapChoroplethProps": () => (/* reexport */ Types.MapChoroplethProps),
|
|
316
|
+
"MapData": () => (/* reexport */ Types.MapData),
|
|
317
|
+
"MapDataKind": () => (/* reexport */ Types.MapDataKind),
|
|
318
|
+
"MapEventDispatcher": () => (/* reexport */ Types.MapEventDispatcher),
|
|
319
|
+
"MapProps": () => (/* reexport */ Types.MapProps)
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
// EXTERNAL MODULE: external "react"
|
|
323
|
+
var external_react_ = __webpack_require__(8156);
|
|
324
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
325
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
326
|
+
var objectWithoutPropertiesLoose = __webpack_require__(7038);
|
|
327
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
328
|
+
|
|
329
|
+
function _objectWithoutProperties(source, excluded) {
|
|
330
|
+
if (source == null) return {};
|
|
331
|
+
var target = (0,objectWithoutPropertiesLoose/* default */.Z)(source, excluded);
|
|
332
|
+
var key, i;
|
|
333
|
+
|
|
334
|
+
if (Object.getOwnPropertySymbols) {
|
|
335
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
336
|
+
|
|
337
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
338
|
+
key = sourceSymbolKeys[i];
|
|
339
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
340
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
341
|
+
target[key] = source[key];
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
return target;
|
|
346
|
+
}
|
|
347
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
348
|
+
function _arrayWithHoles(arr) {
|
|
349
|
+
if (Array.isArray(arr)) return arr;
|
|
350
|
+
}
|
|
351
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
352
|
+
function _iterableToArrayLimit(arr, i) {
|
|
353
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
354
|
+
|
|
355
|
+
if (_i == null) return;
|
|
356
|
+
var _arr = [];
|
|
357
|
+
var _n = true;
|
|
358
|
+
var _d = false;
|
|
359
|
+
|
|
360
|
+
var _s, _e;
|
|
361
|
+
|
|
362
|
+
try {
|
|
363
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
364
|
+
_arr.push(_s.value);
|
|
365
|
+
|
|
366
|
+
if (i && _arr.length === i) break;
|
|
367
|
+
}
|
|
368
|
+
} catch (err) {
|
|
369
|
+
_d = true;
|
|
370
|
+
_e = err;
|
|
371
|
+
} finally {
|
|
372
|
+
try {
|
|
373
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
374
|
+
} finally {
|
|
375
|
+
if (_d) throw _e;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return _arr;
|
|
380
|
+
}
|
|
381
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
382
|
+
function _arrayLikeToArray(arr, len) {
|
|
383
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
384
|
+
|
|
385
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
386
|
+
arr2[i] = arr[i];
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
return arr2;
|
|
390
|
+
}
|
|
391
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
392
|
+
|
|
393
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
394
|
+
if (!o) return;
|
|
395
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
396
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
397
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
398
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
399
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
400
|
+
}
|
|
401
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
402
|
+
function _nonIterableRest() {
|
|
403
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
404
|
+
}
|
|
405
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
function slicedToArray_slicedToArray(arr, i) {
|
|
411
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
412
|
+
}
|
|
413
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/context.js
|
|
414
|
+
|
|
415
|
+
var CONTEXT_VERSION = 1;
|
|
416
|
+
var LeafletContext = /*#__PURE__*/(0,external_react_.createContext)(null);
|
|
417
|
+
var LeafletProvider = LeafletContext.Provider;
|
|
418
|
+
function useLeafletContext() {
|
|
419
|
+
var context = (0,external_react_.useContext)(LeafletContext);
|
|
420
|
+
|
|
421
|
+
if (context == null) {
|
|
422
|
+
throw new Error('No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>');
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
return context;
|
|
426
|
+
}
|
|
427
|
+
// EXTERNAL MODULE: external "leaflet"
|
|
428
|
+
var external_leaflet_ = __webpack_require__(4159);
|
|
429
|
+
var external_leaflet_default = /*#__PURE__*/__webpack_require__.n(external_leaflet_);
|
|
430
|
+
;// CONCATENATED MODULE: ./node_modules/react-leaflet-v3/esm/MapContainer.js
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
var _excluded = ["children", "className", "id", "placeholder", "style", "whenCreated"];
|
|
434
|
+
|
|
435
|
+
function _extends() {
|
|
436
|
+
_extends = Object.assign || function (target) {
|
|
437
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
438
|
+
var source = arguments[i];
|
|
439
|
+
|
|
440
|
+
for (var key in source) {
|
|
441
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
442
|
+
target[key] = source[key];
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
return target;
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
return _extends.apply(this, arguments);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
function useMapElement(mapRef, props) {
|
|
457
|
+
var _useState = (0,external_react_.useState)(null),
|
|
458
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
459
|
+
map = _useState2[0],
|
|
460
|
+
setMap = _useState2[1];
|
|
461
|
+
|
|
462
|
+
(0,external_react_.useEffect)(function () {
|
|
463
|
+
if (mapRef.current !== null && map === null) {
|
|
464
|
+
var instance = new external_leaflet_.Map(mapRef.current, props);
|
|
465
|
+
|
|
466
|
+
if (props.center != null && props.zoom != null) {
|
|
467
|
+
instance.setView(props.center, props.zoom);
|
|
468
|
+
} else if (props.bounds != null) {
|
|
469
|
+
instance.fitBounds(props.bounds, props.boundsOptions);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
if (props.whenReady != null) {
|
|
473
|
+
instance.whenReady(props.whenReady);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
setMap(instance);
|
|
477
|
+
}
|
|
478
|
+
}, [mapRef, map, props]);
|
|
479
|
+
return map;
|
|
480
|
+
}
|
|
481
|
+
function MapContainer(_ref) {
|
|
482
|
+
var children = _ref.children,
|
|
483
|
+
className = _ref.className,
|
|
484
|
+
id = _ref.id,
|
|
485
|
+
placeholder = _ref.placeholder,
|
|
486
|
+
style = _ref.style,
|
|
487
|
+
whenCreated = _ref.whenCreated,
|
|
488
|
+
options = _objectWithoutProperties(_ref, _excluded);
|
|
489
|
+
|
|
490
|
+
var mapRef = (0,external_react_.useRef)(null);
|
|
491
|
+
var map = useMapElement(mapRef, options);
|
|
492
|
+
var createdRef = (0,external_react_.useRef)(false);
|
|
493
|
+
(0,external_react_.useEffect)(function () {
|
|
494
|
+
if (map != null && createdRef.current === false && whenCreated != null) {
|
|
495
|
+
createdRef.current = true;
|
|
496
|
+
whenCreated(map);
|
|
497
|
+
}
|
|
498
|
+
}, [map, whenCreated]);
|
|
499
|
+
|
|
500
|
+
var _useState3 = (0,external_react_.useState)({
|
|
501
|
+
className: className,
|
|
502
|
+
id: id,
|
|
503
|
+
style: style
|
|
504
|
+
}),
|
|
505
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 1),
|
|
506
|
+
props = _useState4[0];
|
|
507
|
+
|
|
508
|
+
var context = (0,external_react_.useMemo)(function () {
|
|
509
|
+
return map ? {
|
|
510
|
+
__version: CONTEXT_VERSION,
|
|
511
|
+
map: map
|
|
512
|
+
} : null;
|
|
513
|
+
}, [map]);
|
|
514
|
+
var contents = context ? /*#__PURE__*/external_react_default().createElement(LeafletProvider, {
|
|
515
|
+
value: context
|
|
516
|
+
}, children) : placeholder != null ? placeholder : null;
|
|
517
|
+
return /*#__PURE__*/external_react_default().createElement("div", _extends({}, props, {
|
|
518
|
+
ref: mapRef
|
|
519
|
+
}), contents);
|
|
520
|
+
}
|
|
521
|
+
// EXTERNAL MODULE: external "react-dom"
|
|
522
|
+
var external_react_dom_ = __webpack_require__(7111);
|
|
523
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/component.js
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
function component_createContainerComponent(useElement) {
|
|
529
|
+
function ContainerComponent(props, ref) {
|
|
530
|
+
var _useElement$current = useElement(props).current,
|
|
531
|
+
instance = _useElement$current.instance,
|
|
532
|
+
context = _useElement$current.context;
|
|
533
|
+
(0,external_react_.useImperativeHandle)(ref, function () {
|
|
534
|
+
return instance;
|
|
535
|
+
});
|
|
536
|
+
return props.children == null ? null : /*#__PURE__*/external_react_default().createElement(LeafletProvider, {
|
|
537
|
+
value: context
|
|
538
|
+
}, props.children);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
return /*#__PURE__*/(0,external_react_.forwardRef)(ContainerComponent);
|
|
542
|
+
}
|
|
543
|
+
function component_createDivOverlayComponent(useElement) {
|
|
544
|
+
function OverlayComponent(props, ref) {
|
|
545
|
+
var _useState = useState(false),
|
|
546
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
547
|
+
isOpen = _useState2[0],
|
|
548
|
+
setOpen = _useState2[1];
|
|
549
|
+
|
|
550
|
+
var instance = useElement(props, setOpen).current.instance;
|
|
551
|
+
useImperativeHandle(ref, function () {
|
|
552
|
+
return instance;
|
|
553
|
+
});
|
|
554
|
+
useEffect(function updateOverlay() {
|
|
555
|
+
if (isOpen) {
|
|
556
|
+
instance.update();
|
|
557
|
+
}
|
|
558
|
+
}, [instance, isOpen, props.children]); // @ts-ignore _contentNode missing in type definition
|
|
559
|
+
|
|
560
|
+
var contentNode = instance._contentNode;
|
|
561
|
+
return contentNode ? /*#__PURE__*/createPortal(props.children, contentNode) : null;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
return /*#__PURE__*/forwardRef(OverlayComponent);
|
|
565
|
+
}
|
|
566
|
+
function component_createLeafComponent(useElement) {
|
|
567
|
+
function LeafComponent(props, ref) {
|
|
568
|
+
var instance = useElement(props).current.instance;
|
|
569
|
+
(0,external_react_.useImperativeHandle)(ref, function () {
|
|
570
|
+
return instance;
|
|
571
|
+
});
|
|
572
|
+
return null;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
return /*#__PURE__*/(0,external_react_.forwardRef)(LeafComponent);
|
|
576
|
+
}
|
|
577
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/element.js
|
|
578
|
+
|
|
579
|
+
function element_createElementHook(createElement, updateElement) {
|
|
580
|
+
if (updateElement == null) {
|
|
581
|
+
return function useImmutableLeafletElement(props, context) {
|
|
582
|
+
return (0,external_react_.useRef)(createElement(props, context));
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
return function useMutableLeafletElement(props, context) {
|
|
587
|
+
var elementRef = (0,external_react_.useRef)(createElement(props, context));
|
|
588
|
+
var propsRef = (0,external_react_.useRef)(props);
|
|
589
|
+
var instance = elementRef.current.instance;
|
|
590
|
+
(0,external_react_.useEffect)(function updateElementProps() {
|
|
591
|
+
if (propsRef.current !== props) {
|
|
592
|
+
updateElement(instance, props, propsRef.current);
|
|
593
|
+
propsRef.current = props;
|
|
594
|
+
}
|
|
595
|
+
}, [instance, props, context]);
|
|
596
|
+
return elementRef;
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/attribution.js
|
|
600
|
+
|
|
601
|
+
function useAttribution(map, attribution) {
|
|
602
|
+
var attributionRef = (0,external_react_.useRef)(attribution);
|
|
603
|
+
(0,external_react_.useEffect)(function updateAttribution() {
|
|
604
|
+
if (attribution !== attributionRef.current && map.attributionControl != null) {
|
|
605
|
+
if (attributionRef.current != null) {
|
|
606
|
+
map.attributionControl.removeAttribution(attributionRef.current);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
if (attribution != null) {
|
|
610
|
+
map.attributionControl.addAttribution(attribution);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
attributionRef.current = attribution;
|
|
615
|
+
}, [map, attribution]);
|
|
616
|
+
}
|
|
617
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/events.js
|
|
618
|
+
|
|
619
|
+
function useEventHandlers(element, eventHandlers) {
|
|
620
|
+
var eventHandlersRef = (0,external_react_.useRef)();
|
|
621
|
+
(0,external_react_.useEffect)(function addEventHandlers() {
|
|
622
|
+
if (eventHandlers != null) {
|
|
623
|
+
element.instance.on(eventHandlers);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
eventHandlersRef.current = eventHandlers;
|
|
627
|
+
return function removeEventHandlers() {
|
|
628
|
+
if (eventHandlersRef.current != null) {
|
|
629
|
+
element.instance.off(eventHandlersRef.current);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
eventHandlersRef.current = null;
|
|
633
|
+
};
|
|
634
|
+
}, [element, eventHandlers]);
|
|
635
|
+
}
|
|
636
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
637
|
+
function _defineProperty(obj, key, value) {
|
|
638
|
+
if (key in obj) {
|
|
639
|
+
Object.defineProperty(obj, key, {
|
|
640
|
+
value: value,
|
|
641
|
+
enumerable: true,
|
|
642
|
+
configurable: true,
|
|
643
|
+
writable: true
|
|
644
|
+
});
|
|
645
|
+
} else {
|
|
646
|
+
obj[key] = value;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
return obj;
|
|
650
|
+
}
|
|
651
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/pane.js
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
655
|
+
|
|
656
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
657
|
+
|
|
658
|
+
function withPane(props, context) {
|
|
659
|
+
var _props$pane;
|
|
660
|
+
|
|
661
|
+
var pane = (_props$pane = props.pane) != null ? _props$pane : context.pane;
|
|
662
|
+
return pane ? _objectSpread(_objectSpread({}, props), {}, {
|
|
663
|
+
pane: pane
|
|
664
|
+
}) : props;
|
|
665
|
+
}
|
|
666
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/layer.js
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
function useLayerLifecycle(element, context) {
|
|
673
|
+
(0,external_react_.useEffect)(function addLayer() {
|
|
674
|
+
var _context$layerContain;
|
|
675
|
+
|
|
676
|
+
var container = (_context$layerContain = context.layerContainer) != null ? _context$layerContain : context.map;
|
|
677
|
+
container.addLayer(element.instance);
|
|
678
|
+
return function removeLayer() {
|
|
679
|
+
container.removeLayer(element.instance);
|
|
680
|
+
};
|
|
681
|
+
}, [context, element]);
|
|
682
|
+
}
|
|
683
|
+
function layer_createLayerHook(useElement) {
|
|
684
|
+
return function useLayer(props) {
|
|
685
|
+
var context = useLeafletContext();
|
|
686
|
+
var elementRef = useElement(withPane(props, context), context);
|
|
687
|
+
useAttribution(context.map, props.attribution);
|
|
688
|
+
useEventHandlers(elementRef.current, props.eventHandlers);
|
|
689
|
+
useLayerLifecycle(elementRef.current, context);
|
|
690
|
+
return elementRef;
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/path.js
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
function usePathOptions(element, props) {
|
|
700
|
+
var optionsRef = (0,external_react_.useRef)();
|
|
701
|
+
(0,external_react_.useEffect)(function updatePathOptions() {
|
|
702
|
+
if (props.pathOptions !== optionsRef.current) {
|
|
703
|
+
var _props$pathOptions;
|
|
704
|
+
|
|
705
|
+
var options = (_props$pathOptions = props.pathOptions) != null ? _props$pathOptions : {};
|
|
706
|
+
element.instance.setStyle(options);
|
|
707
|
+
optionsRef.current = options;
|
|
708
|
+
}
|
|
709
|
+
}, [element, props]);
|
|
710
|
+
}
|
|
711
|
+
function createPathHook(useElement) {
|
|
712
|
+
return function usePath(props) {
|
|
713
|
+
var context = useLeafletContext();
|
|
714
|
+
var elementRef = useElement(withPane(props, context), context);
|
|
715
|
+
useEventHandlers(elementRef.current, props.eventHandlers);
|
|
716
|
+
useLayerLifecycle(elementRef.current, context);
|
|
717
|
+
usePathOptions(elementRef.current, props);
|
|
718
|
+
return elementRef;
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/generic.js
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
function createControlComponent(createInstance) {
|
|
729
|
+
function createElement(props, context) {
|
|
730
|
+
return {
|
|
731
|
+
instance: createInstance(props),
|
|
732
|
+
context: context
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
var useElement = createElementHook(createElement);
|
|
737
|
+
var useControl = createControlHook(useElement);
|
|
738
|
+
return createLeafComponent(useControl);
|
|
739
|
+
}
|
|
740
|
+
function createLayerComponent(createElement, updateElement) {
|
|
741
|
+
var useElement = createElementHook(createElement, updateElement);
|
|
742
|
+
var useLayer = createLayerHook(useElement);
|
|
743
|
+
return createContainerComponent(useLayer);
|
|
744
|
+
}
|
|
745
|
+
function createOverlayComponent(createElement, useLifecycle) {
|
|
746
|
+
var useElement = createElementHook(createElement);
|
|
747
|
+
var useOverlay = createDivOverlayHook(useElement, useLifecycle);
|
|
748
|
+
return createDivOverlayComponent(useOverlay);
|
|
749
|
+
}
|
|
750
|
+
function createPathComponent(createElement, updateElement) {
|
|
751
|
+
var useElement = element_createElementHook(createElement, updateElement);
|
|
752
|
+
var usePath = createPathHook(useElement);
|
|
753
|
+
return component_createContainerComponent(usePath);
|
|
754
|
+
}
|
|
755
|
+
function createTileLayerComponent(createElement, updateElement) {
|
|
756
|
+
var useElement = element_createElementHook(createElement, updateElement);
|
|
757
|
+
var useLayer = layer_createLayerHook(useElement);
|
|
758
|
+
return component_createLeafComponent(useLayer);
|
|
759
|
+
}
|
|
760
|
+
;// CONCATENATED MODULE: ./node_modules/@react-leaflet/core/esm/grid-layer.js
|
|
761
|
+
function updateGridLayer(layer, props, prevProps) {
|
|
762
|
+
var opacity = props.opacity,
|
|
763
|
+
zIndex = props.zIndex;
|
|
764
|
+
|
|
765
|
+
if (opacity != null && opacity !== prevProps.opacity) {
|
|
766
|
+
layer.setOpacity(opacity);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
if (zIndex != null && zIndex !== prevProps.zIndex) {
|
|
770
|
+
layer.setZIndex(zIndex);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
;// CONCATENATED MODULE: ./node_modules/react-leaflet-v3/esm/TileLayer.js
|
|
774
|
+
|
|
775
|
+
var TileLayer_excluded = ["url"];
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
var TileLayer = createTileLayerComponent(function createTileLayer(_ref, context) {
|
|
779
|
+
var url = _ref.url,
|
|
780
|
+
options = _objectWithoutProperties(_ref, TileLayer_excluded);
|
|
781
|
+
|
|
782
|
+
return {
|
|
783
|
+
instance: new external_leaflet_.TileLayer(url, withPane(options, context)),
|
|
784
|
+
context: context
|
|
785
|
+
};
|
|
786
|
+
}, updateGridLayer);
|
|
787
|
+
// EXTERNAL MODULE: external "classnames"
|
|
788
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
789
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
790
|
+
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
791
|
+
var esm = __webpack_require__(6627);
|
|
792
|
+
// EXTERNAL MODULE: external "leaflet-image"
|
|
793
|
+
var external_leaflet_image_ = __webpack_require__(855);
|
|
794
|
+
var external_leaflet_image_default = /*#__PURE__*/__webpack_require__.n(external_leaflet_image_);
|
|
795
|
+
// EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
|
|
796
|
+
var Utils = __webpack_require__(5654);
|
|
797
|
+
// EXTERNAL MODULE: ./src/components/Spinner/index.ts + 1 modules
|
|
798
|
+
var Spinner = __webpack_require__(4482);
|
|
799
|
+
// EXTERNAL MODULE: ./src/components/EmptyState/index.ts + 1 modules
|
|
800
|
+
var EmptyState = __webpack_require__(5385);
|
|
801
|
+
// EXTERNAL MODULE: external "react-bootstrap/Tooltip"
|
|
802
|
+
var Tooltip_ = __webpack_require__(8053);
|
|
803
|
+
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
804
|
+
// EXTERNAL MODULE: external "react-bootstrap/OverlayTrigger"
|
|
805
|
+
var OverlayTrigger_ = __webpack_require__(6043);
|
|
806
|
+
var OverlayTrigger_default = /*#__PURE__*/__webpack_require__.n(OverlayTrigger_);
|
|
807
|
+
// EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
|
|
808
|
+
var react_fontawesome_ = __webpack_require__(5692);
|
|
809
|
+
;// CONCATENATED MODULE: ./src/components/Map/MapControl.tsx
|
|
810
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
811
|
+
var t = {};
|
|
812
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
813
|
+
t[p] = s[p];
|
|
814
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
815
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
816
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
817
|
+
t[p[i]] = s[p[i]];
|
|
818
|
+
}
|
|
819
|
+
return t;
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
var MapControl = external_react_default().memo(function (_a) {
|
|
828
|
+
var _b;
|
|
829
|
+
var _c = _a.size, size = _c === void 0 ? 'sm' : _c, props = __rest(_a, ["size"]);
|
|
830
|
+
var icon = null;
|
|
831
|
+
if (props.icon != null) {
|
|
832
|
+
icon = external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { size: 'xs', icon: props.icon });
|
|
833
|
+
}
|
|
834
|
+
var className = external_classnames_default()('map-control-button', props.className, size, {
|
|
835
|
+
selected: props.isSelected,
|
|
836
|
+
});
|
|
837
|
+
if (props.children == null || size === 'lg') {
|
|
838
|
+
return (external_react_default().createElement("button", { className: className, onClick: props.onClick },
|
|
839
|
+
icon,
|
|
840
|
+
props.children));
|
|
841
|
+
}
|
|
842
|
+
var tooltip = (external_react_default().createElement((Tooltip_default()), { id: (_b = props === null || props === void 0 ? void 0 : props.tooltipId) !== null && _b !== void 0 ? _b : '', className: 'big-tooltip' }, props.children));
|
|
843
|
+
return (external_react_default().createElement((OverlayTrigger_default()), { rootClose: true, trigger: ['hover', 'focus'], placement: 'bottom', overlay: tooltip },
|
|
844
|
+
external_react_default().createElement("button", { className: className, onClick: props.onClick }, icon)));
|
|
845
|
+
});
|
|
846
|
+
MapControl.displayName = 'MapControl';
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
// EXTERNAL MODULE: ./node_modules/d3-scale/src/linear.js + 38 modules
|
|
850
|
+
var linear = __webpack_require__(1820);
|
|
851
|
+
;// CONCATENATED MODULE: ./node_modules/react-leaflet-v3/esm/GeoJSON.js
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
var GeoJSON_excluded = ["data"];
|
|
855
|
+
|
|
856
|
+
function GeoJSON_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
857
|
+
|
|
858
|
+
function GeoJSON_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? GeoJSON_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : GeoJSON_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
var GeoJSON = createPathComponent(function createGeoJSON(_ref, ctx) {
|
|
863
|
+
var data = _ref.data,
|
|
864
|
+
options = _objectWithoutProperties(_ref, GeoJSON_excluded);
|
|
865
|
+
|
|
866
|
+
var instance = new external_leaflet_.GeoJSON(data, options);
|
|
867
|
+
return {
|
|
868
|
+
instance: instance,
|
|
869
|
+
context: GeoJSON_objectSpread(GeoJSON_objectSpread({}, ctx), {}, {
|
|
870
|
+
overlayContainer: instance
|
|
871
|
+
})
|
|
872
|
+
};
|
|
873
|
+
});
|
|
874
|
+
// EXTERNAL MODULE: ./src/components/Utils/Style.ts
|
|
875
|
+
var Style = __webpack_require__(2755);
|
|
876
|
+
// EXTERNAL MODULE: ./src/components/Utils/Text.ts
|
|
877
|
+
var Text = __webpack_require__(6347);
|
|
878
|
+
;// CONCATENATED MODULE: ./src/components/Map/MapPopup.tsx
|
|
879
|
+
var MapPopup_rest = (undefined && undefined.__rest) || function (s, e) {
|
|
880
|
+
var t = {};
|
|
881
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
882
|
+
t[p] = s[p];
|
|
883
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
884
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
885
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
886
|
+
t[p[i]] = s[p[i]];
|
|
887
|
+
}
|
|
888
|
+
return t;
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
var MapPopup = external_react_default().memo(function (_a) {
|
|
894
|
+
var props = MapPopup_rest(_a, []);
|
|
895
|
+
var className = external_classnames_default()('map-popup-container', 'w-100', props.className);
|
|
896
|
+
return external_react_default().createElement("div", { className: className }, props.children);
|
|
897
|
+
});
|
|
898
|
+
MapPopup.displayName = 'MapPopup';
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
;// CONCATENATED MODULE: ./src/components/Map/MapLegendContent.tsx
|
|
902
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
903
|
+
var extendStatics = function (d, b) {
|
|
904
|
+
extendStatics = Object.setPrototypeOf ||
|
|
905
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
906
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
907
|
+
return extendStatics(d, b);
|
|
908
|
+
};
|
|
909
|
+
return function (d, b) {
|
|
910
|
+
extendStatics(d, b);
|
|
911
|
+
function __() { this.constructor = d; }
|
|
912
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
913
|
+
};
|
|
914
|
+
})();
|
|
915
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
916
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
917
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
918
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
919
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
920
|
+
};
|
|
921
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
922
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
923
|
+
};
|
|
924
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
925
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
926
|
+
if (!m) return o;
|
|
927
|
+
var i = m.call(o), r, ar = [], e;
|
|
928
|
+
try {
|
|
929
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
930
|
+
}
|
|
931
|
+
catch (error) { e = { error: error }; }
|
|
932
|
+
finally {
|
|
933
|
+
try {
|
|
934
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
935
|
+
}
|
|
936
|
+
finally { if (e) throw e.error; }
|
|
937
|
+
}
|
|
938
|
+
return ar;
|
|
939
|
+
};
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
var MapLegendContent = /** @class */ (function (_super) {
|
|
944
|
+
__extends(MapLegendContent, _super);
|
|
945
|
+
function MapLegendContent() {
|
|
946
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
947
|
+
_this.popupRef = external_react_default().createRef();
|
|
948
|
+
return _this;
|
|
949
|
+
}
|
|
950
|
+
MapLegendContent.prototype.componentDidMount = function () {
|
|
951
|
+
if (this.props.forceUpdateOnMount) {
|
|
952
|
+
this.forceUpdate();
|
|
953
|
+
}
|
|
954
|
+
};
|
|
955
|
+
MapLegendContent.estimatedWordSize = function (wordLength, letterPixels, constant) {
|
|
956
|
+
if (letterPixels === void 0) { letterPixels = this.ESTIMATED_LETTER_PIXELS; }
|
|
957
|
+
if (constant === void 0) { constant = this.ESTIMATED_ADDABLE_SPACE; }
|
|
958
|
+
return wordLength * letterPixels + constant;
|
|
959
|
+
};
|
|
960
|
+
MapLegendContent.prototype.getItemsPositions = function (wordLength, minMargin) {
|
|
961
|
+
var _a, _b, _c, _d, _e;
|
|
962
|
+
if (minMargin === void 0) { minMargin = 30; }
|
|
963
|
+
var _f = ((_d = (_c = (_b = (_a = this.popupRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect) === null || _c === void 0 ? void 0 : _c.call(_b)) !== null && _d !== void 0 ? _d : {}).width, width = _f === void 0 ? 0 : _f, _g = ((_e = this.props.hoveredItem) !== null && _e !== void 0 ? _e : {}).value, value = _g === void 0 ? 0 : _g, hoveredItemPosition = Math.round((value * width) / this.props.valueMax), middle = width / 2, isOnLeftSide = hoveredItemPosition < Math.round(middle), vector = 0, estimatedWordSize = MapLegendContent.estimatedWordSize(wordLength);
|
|
964
|
+
if (width === 0) {
|
|
965
|
+
return [0, 0];
|
|
966
|
+
}
|
|
967
|
+
if (isOnLeftSide) {
|
|
968
|
+
vector = ((middle - hoveredItemPosition) * minMargin) / middle;
|
|
969
|
+
}
|
|
970
|
+
else {
|
|
971
|
+
vector = -((hoveredItemPosition - middle) * minMargin) / middle;
|
|
972
|
+
}
|
|
973
|
+
var cursorPosition = hoveredItemPosition + vector, textLeftPosition = -Infinity;
|
|
974
|
+
if (cursorPosition < width / 3) {
|
|
975
|
+
textLeftPosition = cursorPosition - 10;
|
|
976
|
+
}
|
|
977
|
+
else if (cursorPosition < 2 * (width / 3)) {
|
|
978
|
+
textLeftPosition = cursorPosition - estimatedWordSize / 2;
|
|
979
|
+
}
|
|
980
|
+
else {
|
|
981
|
+
textLeftPosition = cursorPosition - estimatedWordSize;
|
|
982
|
+
}
|
|
983
|
+
return [cursorPosition, textLeftPosition];
|
|
984
|
+
};
|
|
985
|
+
MapLegendContent.prototype.renderCursor = function (position) {
|
|
986
|
+
var className = external_classnames_default()({
|
|
987
|
+
triangle: true,
|
|
988
|
+
invisible: this.props.hoveredItem == null,
|
|
989
|
+
});
|
|
990
|
+
return external_react_default().createElement("div", { className: className, style: { left: position } });
|
|
991
|
+
};
|
|
992
|
+
MapLegendContent.prototype.renderMapBitInfo = function (leftPosition) {
|
|
993
|
+
var _a, _b;
|
|
994
|
+
var _c = (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.hoveredItem) !== null && _b !== void 0 ? _b : {}, _d = _c.value, value = _d === void 0 ? 0 : _d, _e = _c.label, label = _e === void 0 ? '' : _e, mapBitClassName = external_classnames_default()({
|
|
995
|
+
'invisible w-0': this.props.hoveredItem == null,
|
|
996
|
+
'w-100': this.props.hoveredItem != null,
|
|
997
|
+
'map-bit-info': true,
|
|
998
|
+
});
|
|
999
|
+
return (external_react_default().createElement("div", { className: mapBitClassName },
|
|
1000
|
+
external_react_default().createElement("div", { className: 'pusher-container', style: { flex: "0 1 " + leftPosition + "px" } }),
|
|
1001
|
+
external_react_default().createElement("div", { className: 'content' },
|
|
1002
|
+
external_react_default().createElement("span", { className: 'first-letter-capitalize' }, label), ": " + this.getFormattedNumber(value))));
|
|
1003
|
+
};
|
|
1004
|
+
MapLegendContent.prototype.getFormattedNumber = function (value) {
|
|
1005
|
+
var numberToStringFormatter = this.props.numberToStringFormatter;
|
|
1006
|
+
return numberToStringFormatter != null ? numberToStringFormatter(value) : "" + value;
|
|
1007
|
+
};
|
|
1008
|
+
MapLegendContent.prototype.renderPopupChildren = function () {
|
|
1009
|
+
var mapDataclassName = external_classnames_default()({
|
|
1010
|
+
invisible: this.props.hoveredItem != null,
|
|
1011
|
+
}), className = external_classnames_default()({
|
|
1012
|
+
'd-flex w-100': this.props.hoveredItem == null,
|
|
1013
|
+
'd-none': this.props.hoveredItem != null,
|
|
1014
|
+
'text-white justify-content-between': true,
|
|
1015
|
+
}), min = Math.round(this.props.valueMin), middle = (this.props.valueMax - this.props.valueMin) / 2;
|
|
1016
|
+
return (external_react_default().createElement("span", { className: className },
|
|
1017
|
+
external_react_default().createElement("span", { className: mapDataclassName }, this.getFormattedNumber(min)),
|
|
1018
|
+
external_react_default().createElement("span", { className: mapDataclassName }, this.getFormattedNumber(middle)),
|
|
1019
|
+
external_react_default().createElement("span", { className: mapDataclassName }, this.getFormattedNumber(this.props.valueMax))));
|
|
1020
|
+
};
|
|
1021
|
+
MapLegendContent.prototype.render = function () {
|
|
1022
|
+
var _a, _b, _c;
|
|
1023
|
+
var linearG = 'linear-gradient(to right, ' + this.props.minColor + ',' + this.props.maxColor + ')', className = external_classnames_default()({
|
|
1024
|
+
'popup-children': true,
|
|
1025
|
+
}), _d = (_a = this.props.hoveredItem) !== null && _a !== void 0 ? _a : {}, _e = _d.value, value = _e === void 0 ? 0 : _e, _f = _d.label, label = _f === void 0 ? '' : _f, estimationLabel = ((_c = (_b = this.props) === null || _b === void 0 ? void 0 : _b.hoveredItem) === null || _c === void 0 ? void 0 : _c.value) == null ? '' : label + ": " + this.getFormattedNumber(value), _g = __read(this.getItemsPositions(estimationLabel.length), 2), cursorPosition = _g[0], textLeftPosition = _g[1];
|
|
1026
|
+
return (external_react_default().createElement("div", { className: className, ref: this.popupRef, style: { backgroundImage: linearG } },
|
|
1027
|
+
this.renderPopupChildren(),
|
|
1028
|
+
this.renderMapBitInfo(textLeftPosition),
|
|
1029
|
+
this.renderCursor(cursorPosition)));
|
|
1030
|
+
};
|
|
1031
|
+
MapLegendContent.ESTIMATED_LETTER_PIXELS = 5.4;
|
|
1032
|
+
MapLegendContent.ESTIMATED_ADDABLE_SPACE = 1.1;
|
|
1033
|
+
MapLegendContent.displayName = 'MapLegendContent';
|
|
1034
|
+
MapLegendContent.defaultProps = {
|
|
1035
|
+
forceUpdateOnMount: false,
|
|
1036
|
+
};
|
|
1037
|
+
__decorate([
|
|
1038
|
+
esm/* default */.ZP,
|
|
1039
|
+
__metadata("design:type", Function),
|
|
1040
|
+
__metadata("design:paramtypes", [Number]),
|
|
1041
|
+
__metadata("design:returntype", String)
|
|
1042
|
+
], MapLegendContent.prototype, "getFormattedNumber", null);
|
|
1043
|
+
return MapLegendContent;
|
|
1044
|
+
}((external_react_default()).PureComponent));
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
// EXTERNAL MODULE: ./src/components/Map/Types.ts
|
|
1048
|
+
var Types = __webpack_require__(604);
|
|
1049
|
+
;// CONCATENATED MODULE: ./src/components/Map/MapUtils.ts
|
|
1050
|
+
var MAP_ATTRIBUTION = '<a href="https://www.mapbox.com/feedback/">© Mapbox</a> | ' +
|
|
1051
|
+
'<a href="https://www.mapbox.com/feedback/" target="_blank"><strong>Improve this map</strong></a>', mapboxStyle = 'mapbox/light-v10', mapboxAccessToken = 'pk.eyJ1Ijoic2RhdG9rYSIsImEiOiI5MjlmNDMxYzJiYWQ5YjhjMjU4ZGE2YmVkZjQ1YzhiOCJ9.FYB402MPxkR2bIME35d0zg', MAP_TILE_URL = 'https://api.mapbox.com/styles/v1/' + mapboxStyle + '/tiles/{z}/{x}/{y}?access_token=' + mapboxAccessToken;
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
;// CONCATENATED MODULE: ./src/components/Map/MapChoropleth.tsx
|
|
1055
|
+
var MapChoropleth_extends = (undefined && undefined.__extends) || (function () {
|
|
1056
|
+
var extendStatics = function (d, b) {
|
|
1057
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1058
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1059
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1060
|
+
return extendStatics(d, b);
|
|
1061
|
+
};
|
|
1062
|
+
return function (d, b) {
|
|
1063
|
+
extendStatics(d, b);
|
|
1064
|
+
function __() { this.constructor = d; }
|
|
1065
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1066
|
+
};
|
|
1067
|
+
})();
|
|
1068
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
1069
|
+
__assign = Object.assign || function(t) {
|
|
1070
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1071
|
+
s = arguments[i];
|
|
1072
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
1073
|
+
t[p] = s[p];
|
|
1074
|
+
}
|
|
1075
|
+
return t;
|
|
1076
|
+
};
|
|
1077
|
+
return __assign.apply(this, arguments);
|
|
1078
|
+
};
|
|
1079
|
+
var MapChoropleth_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1080
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1081
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1082
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1083
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1084
|
+
};
|
|
1085
|
+
var MapChoropleth_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
1086
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1087
|
+
};
|
|
1088
|
+
var MapChoropleth_read = (undefined && undefined.__read) || function (o, n) {
|
|
1089
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1090
|
+
if (!m) return o;
|
|
1091
|
+
var i = m.call(o), r, ar = [], e;
|
|
1092
|
+
try {
|
|
1093
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
1094
|
+
}
|
|
1095
|
+
catch (error) { e = { error: error }; }
|
|
1096
|
+
finally {
|
|
1097
|
+
try {
|
|
1098
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
1099
|
+
}
|
|
1100
|
+
finally { if (e) throw e.error; }
|
|
1101
|
+
}
|
|
1102
|
+
return ar;
|
|
1103
|
+
};
|
|
1104
|
+
var __values = (undefined && undefined.__values) || function(o) {
|
|
1105
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1106
|
+
if (m) return m.call(o);
|
|
1107
|
+
if (o && typeof o.length === "number") return {
|
|
1108
|
+
next: function () {
|
|
1109
|
+
if (o && i >= o.length) o = void 0;
|
|
1110
|
+
return { value: o && o[i++], done: !o };
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
var MapChoropleth = /** @class */ (function (_super) {
|
|
1128
|
+
MapChoropleth_extends(MapChoropleth, _super);
|
|
1129
|
+
function MapChoropleth() {
|
|
1130
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1131
|
+
_this.state = {
|
|
1132
|
+
mapDataShowKind: null,
|
|
1133
|
+
currentMapData: null,
|
|
1134
|
+
hoveredItem: null,
|
|
1135
|
+
nameToDataPoint: new Map(),
|
|
1136
|
+
valueMax: -Infinity,
|
|
1137
|
+
valueMin: Infinity,
|
|
1138
|
+
itemValueToColor: (0,linear/* default */.Z)(),
|
|
1139
|
+
};
|
|
1140
|
+
return _this;
|
|
1141
|
+
}
|
|
1142
|
+
MapChoropleth.getDerivedStateFromProps = function (props, state) {
|
|
1143
|
+
var _a, _b, _c;
|
|
1144
|
+
var mapDataShowKind = (_a = state === null || state === void 0 ? void 0 : state.mapDataShowKind) !== null && _a !== void 0 ? _a : (_c = (_b = props.mapData) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.kind, _d = MapChoropleth_read(MapChoropleth.getSetupData(props, mapDataShowKind), 5), currentMapData = _d[0], nameToDataPoint = _d[1], valueMax = _d[2], valueMin = _d[3], itemValueToColor = _d[4];
|
|
1145
|
+
return __assign(__assign({}, state), { mapDataShowKind: mapDataShowKind,
|
|
1146
|
+
currentMapData: currentMapData,
|
|
1147
|
+
nameToDataPoint: nameToDataPoint,
|
|
1148
|
+
valueMax: valueMax,
|
|
1149
|
+
valueMin: valueMin,
|
|
1150
|
+
itemValueToColor: itemValueToColor });
|
|
1151
|
+
};
|
|
1152
|
+
MapChoropleth.getSetupData = function (props, currentType) {
|
|
1153
|
+
var _a;
|
|
1154
|
+
var mapDataFromType = props.mapData.filter(function (m) {
|
|
1155
|
+
return m.kind === currentType;
|
|
1156
|
+
});
|
|
1157
|
+
if (mapDataFromType.length === 0) {
|
|
1158
|
+
return [null, new Map(), -Infinity, Infinity, (0,linear/* default */.Z)()];
|
|
1159
|
+
}
|
|
1160
|
+
var currentMapData = mapDataFromType[0], dataPoint = currentMapData.dataPoint, nameToDataPoint = new Map(), valueMax = -Infinity, valueMin = (_a = props.valueMin) !== null && _a !== void 0 ? _a : Infinity, itemValueToColor = (0,linear/* default */.Z)();
|
|
1161
|
+
dataPoint.forEach(function (item) {
|
|
1162
|
+
nameToDataPoint.set(item.label, item);
|
|
1163
|
+
valueMax = Math.max(valueMax, item.value);
|
|
1164
|
+
valueMin = Math.min(valueMin, item.value);
|
|
1165
|
+
});
|
|
1166
|
+
itemValueToColor.domain([valueMin, valueMax]).range([props.minColor, props.maxColor]);
|
|
1167
|
+
return [currentMapData, nameToDataPoint, valueMax, valueMin, itemValueToColor];
|
|
1168
|
+
};
|
|
1169
|
+
MapChoropleth.prototype.getFeatureStyle = function (feature) {
|
|
1170
|
+
var _a, _b, _c, _d, _e;
|
|
1171
|
+
var featureName = (_b = (_a = feature.properties) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : '', item = (_c = this.state.nameToDataPoint) === null || _c === void 0 ? void 0 : _c.get(featureName);
|
|
1172
|
+
if (item == null) {
|
|
1173
|
+
return {
|
|
1174
|
+
className: "interactive-base " + (0,Text/* slugify */.lV)(featureName),
|
|
1175
|
+
weight: 1,
|
|
1176
|
+
opacity: 0.5,
|
|
1177
|
+
fillOpacity: 0.1,
|
|
1178
|
+
fill: true,
|
|
1179
|
+
stroke: true,
|
|
1180
|
+
color: 'white',
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
if (((_e = (_d = this.state) === null || _d === void 0 ? void 0 : _d.hoveredItem) === null || _e === void 0 ? void 0 : _e.label) === featureName) {
|
|
1184
|
+
return {
|
|
1185
|
+
weight: 1,
|
|
1186
|
+
opacity: 0.9,
|
|
1187
|
+
fillOpacity: 0.9,
|
|
1188
|
+
className: "interactive-hovered " + (0,Text/* slugify */.lV)(featureName),
|
|
1189
|
+
fillColor: this.props.hoverColor,
|
|
1190
|
+
fill: true,
|
|
1191
|
+
stroke: true,
|
|
1192
|
+
color: 'white',
|
|
1193
|
+
};
|
|
1194
|
+
}
|
|
1195
|
+
return {
|
|
1196
|
+
weight: 1,
|
|
1197
|
+
opacity: 0.9,
|
|
1198
|
+
fillOpacity: 0.9,
|
|
1199
|
+
className: "interactive-selected " + (0,Text/* slugify */.lV)(featureName),
|
|
1200
|
+
fillColor: this.state.itemValueToColor(item.value),
|
|
1201
|
+
fill: true,
|
|
1202
|
+
stroke: true,
|
|
1203
|
+
color: 'white',
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
MapChoropleth.prototype.handleFeatureOver = function (feature) {
|
|
1207
|
+
var _a, _b;
|
|
1208
|
+
var hoveredItem = (_a = this.state.nameToDataPoint) === null || _a === void 0 ? void 0 : _a.get(feature.name);
|
|
1209
|
+
if (hoveredItem != null && ((_b = this.state.hoveredItem) === null || _b === void 0 ? void 0 : _b.label) !== hoveredItem.label) {
|
|
1210
|
+
this.setState({ hoveredItem: hoveredItem });
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
MapChoropleth.prototype.handleFeatureOut = function () {
|
|
1214
|
+
this.setState({ hoveredItem: null });
|
|
1215
|
+
};
|
|
1216
|
+
MapChoropleth.prototype.handleChangeMapDataType = function (kind) {
|
|
1217
|
+
if (this.state.mapDataShowKind === kind) {
|
|
1218
|
+
return;
|
|
1219
|
+
}
|
|
1220
|
+
var _a = MapChoropleth_read(MapChoropleth.getSetupData(this.props, kind), 5), currentMapData = _a[0], nameToDataPoint = _a[1], valueMax = _a[2], valueMin = _a[3], itemValueToColor = _a[4];
|
|
1221
|
+
this.setState({
|
|
1222
|
+
mapDataShowKind: kind,
|
|
1223
|
+
currentMapData: currentMapData,
|
|
1224
|
+
nameToDataPoint: nameToDataPoint,
|
|
1225
|
+
valueMax: valueMax,
|
|
1226
|
+
valueMin: valueMin,
|
|
1227
|
+
itemValueToColor: itemValueToColor,
|
|
1228
|
+
hoveredItem: null,
|
|
1229
|
+
});
|
|
1230
|
+
};
|
|
1231
|
+
MapChoropleth.prototype.renderSingleControl = function (mapData) {
|
|
1232
|
+
var _this = this;
|
|
1233
|
+
return (external_react_default().createElement(Map_Map.Control, { isSelected: mapData.kind === this.state.mapDataShowKind, key: mapData.kind, size: 'lg', className: 'ml-2', onClick: function () { return _this.handleChangeMapDataType(mapData.kind); } }, mapData.label));
|
|
1234
|
+
};
|
|
1235
|
+
MapChoropleth.prototype.renderMapDataToggleButtons = function () {
|
|
1236
|
+
if (this.props.mapData.length < 2) {
|
|
1237
|
+
return null;
|
|
1238
|
+
}
|
|
1239
|
+
return (external_react_default().createElement(Map_Map.ControlsContainer, { className: 'd-flex' }, this.props.mapData.map(this.renderSingleControl)));
|
|
1240
|
+
};
|
|
1241
|
+
MapChoropleth.prototype.renderBottomPopup = function () {
|
|
1242
|
+
if (!this.props.withLegend) {
|
|
1243
|
+
return null;
|
|
1244
|
+
}
|
|
1245
|
+
return (external_react_default().createElement(MapPopup, null,
|
|
1246
|
+
external_react_default().createElement(MapLegendContent, { hoveredItem: this.state.hoveredItem, valueMax: this.state.valueMax, valueMin: this.state.valueMin, numberToStringFormatter: this.props.numberToStringFormatter, minColor: this.props.minColor, maxColor: this.props.maxColor })));
|
|
1247
|
+
};
|
|
1248
|
+
MapChoropleth.prototype.renderHoveredItem = function () {
|
|
1249
|
+
var e_1, _a;
|
|
1250
|
+
var _b, _c, _d, _e, _f, _g;
|
|
1251
|
+
var features = [], geometries = (_c = (_b = this.state.currentMapData) === null || _b === void 0 ? void 0 : _b.geometries) !== null && _c !== void 0 ? _c : [];
|
|
1252
|
+
try {
|
|
1253
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1254
|
+
for (var _h = __values((_e = (_d = geometries) === null || _d === void 0 ? void 0 : _d.features) !== null && _e !== void 0 ? _e : []), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
1255
|
+
var feature = _j.value;
|
|
1256
|
+
if (feature.properties.name === ((_f = this.state.hoveredItem) === null || _f === void 0 ? void 0 : _f.label)) {
|
|
1257
|
+
features.push(feature);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1262
|
+
finally {
|
|
1263
|
+
try {
|
|
1264
|
+
if (_j && !_j.done && (_a = _h.return)) _a.call(_h);
|
|
1265
|
+
}
|
|
1266
|
+
finally { if (e_1) throw e_1.error; }
|
|
1267
|
+
}
|
|
1268
|
+
if (features.length === 0) {
|
|
1269
|
+
return null;
|
|
1270
|
+
}
|
|
1271
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1272
|
+
var data = {
|
|
1273
|
+
features: features,
|
|
1274
|
+
};
|
|
1275
|
+
return (external_react_default().createElement(GeoJSON, { key: (_g = this.state.hoveredItem) === null || _g === void 0 ? void 0 : _g.label, style: this.getFeatureStyle, data: data, onEachFeature: this.onHoverEachFeature }));
|
|
1276
|
+
};
|
|
1277
|
+
MapChoropleth.prototype.onHoverEachFeature = function (feature, layer) {
|
|
1278
|
+
var _this = this;
|
|
1279
|
+
layer.on('mouseout', function () { return _this.handleFeatureOut(); });
|
|
1280
|
+
};
|
|
1281
|
+
MapChoropleth.prototype.onEachFeature = function (feature, layer) {
|
|
1282
|
+
var _this = this;
|
|
1283
|
+
layer.on('mouseover', function () { return _this.handleFeatureOver(feature.properties); });
|
|
1284
|
+
};
|
|
1285
|
+
MapChoropleth.prototype.render = function () {
|
|
1286
|
+
var _a;
|
|
1287
|
+
if (!this.state.mapDataShowKind == null) {
|
|
1288
|
+
return null;
|
|
1289
|
+
}
|
|
1290
|
+
var geometries = (_a = this.state.currentMapData) === null || _a === void 0 ? void 0 : _a.geometries, key = "ita-" + this.state.mapDataShowKind;
|
|
1291
|
+
if (geometries == null) {
|
|
1292
|
+
return null;
|
|
1293
|
+
}
|
|
1294
|
+
return (external_react_default().createElement((external_react_default()).Fragment, null,
|
|
1295
|
+
this.renderHoveredItem(),
|
|
1296
|
+
external_react_default().createElement(GeoJSON, { key: key, style: this.getFeatureStyle, data: geometries, onEachFeature: this.onEachFeature }),
|
|
1297
|
+
this.renderBottomPopup(),
|
|
1298
|
+
this.renderMapDataToggleButtons(),
|
|
1299
|
+
external_react_default().createElement(Map_Map.TileLayer, { url: MAP_TILE_URL, attribution: MAP_ATTRIBUTION, minZoom: 4 })));
|
|
1300
|
+
};
|
|
1301
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1302
|
+
MapChoropleth.displayName = 'MapChoropleth';
|
|
1303
|
+
MapChoropleth.defaultProps = {
|
|
1304
|
+
minColor: Style/* blue30 */.KH,
|
|
1305
|
+
maxColor: Style/* blue300 */.p5,
|
|
1306
|
+
hoverColor: Style/* orange */.$y,
|
|
1307
|
+
withLegend: true,
|
|
1308
|
+
};
|
|
1309
|
+
MapChoropleth_decorate([
|
|
1310
|
+
esm/* default */.ZP,
|
|
1311
|
+
MapChoropleth_metadata("design:type", Function),
|
|
1312
|
+
MapChoropleth_metadata("design:paramtypes", [typeof (_a = typeof MapBaseChoroplethFeature !== "undefined" && MapBaseChoroplethFeature) === "function" ? _a : Object]),
|
|
1313
|
+
MapChoropleth_metadata("design:returntype", typeof (_b = typeof external_leaflet_.PathOptions !== "undefined" && external_leaflet_.PathOptions) === "function" ? _b : Object)
|
|
1314
|
+
], MapChoropleth.prototype, "getFeatureStyle", null);
|
|
1315
|
+
MapChoropleth_decorate([
|
|
1316
|
+
esm/* default */.ZP,
|
|
1317
|
+
MapChoropleth_metadata("design:type", Function),
|
|
1318
|
+
MapChoropleth_metadata("design:paramtypes", [typeof (_c = typeof Types.MapBaseChoroplethFeatureProperties !== "undefined" && Types.MapBaseChoroplethFeatureProperties) === "function" ? _c : Object]),
|
|
1319
|
+
MapChoropleth_metadata("design:returntype", void 0)
|
|
1320
|
+
], MapChoropleth.prototype, "handleFeatureOver", null);
|
|
1321
|
+
MapChoropleth_decorate([
|
|
1322
|
+
esm/* default */.ZP,
|
|
1323
|
+
MapChoropleth_metadata("design:type", Function),
|
|
1324
|
+
MapChoropleth_metadata("design:paramtypes", []),
|
|
1325
|
+
MapChoropleth_metadata("design:returntype", void 0)
|
|
1326
|
+
], MapChoropleth.prototype, "handleFeatureOut", null);
|
|
1327
|
+
MapChoropleth_decorate([
|
|
1328
|
+
esm/* default */.ZP,
|
|
1329
|
+
MapChoropleth_metadata("design:type", Function),
|
|
1330
|
+
MapChoropleth_metadata("design:paramtypes", [typeof (_d = typeof Types.MapDataKind !== "undefined" && Types.MapDataKind) === "function" ? _d : Object]),
|
|
1331
|
+
MapChoropleth_metadata("design:returntype", void 0)
|
|
1332
|
+
], MapChoropleth.prototype, "handleChangeMapDataType", null);
|
|
1333
|
+
MapChoropleth_decorate([
|
|
1334
|
+
esm/* default */.ZP,
|
|
1335
|
+
MapChoropleth_metadata("design:type", Function),
|
|
1336
|
+
MapChoropleth_metadata("design:paramtypes", [typeof (_e = typeof Types.MapData !== "undefined" && Types.MapData) === "function" ? _e : Object]),
|
|
1337
|
+
MapChoropleth_metadata("design:returntype", typeof (_f = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _f : Object)
|
|
1338
|
+
], MapChoropleth.prototype, "renderSingleControl", null);
|
|
1339
|
+
MapChoropleth_decorate([
|
|
1340
|
+
esm/* default */.ZP,
|
|
1341
|
+
MapChoropleth_metadata("design:type", Function),
|
|
1342
|
+
MapChoropleth_metadata("design:paramtypes", [typeof (_g = typeof MapBaseChoroplethFeature !== "undefined" && MapBaseChoroplethFeature) === "function" ? _g : Object, typeof (_h = typeof external_leaflet_.Layer !== "undefined" && external_leaflet_.Layer) === "function" ? _h : Object]),
|
|
1343
|
+
MapChoropleth_metadata("design:returntype", void 0)
|
|
1344
|
+
], MapChoropleth.prototype, "onHoverEachFeature", null);
|
|
1345
|
+
MapChoropleth_decorate([
|
|
1346
|
+
esm/* default */.ZP,
|
|
1347
|
+
MapChoropleth_metadata("design:type", Function),
|
|
1348
|
+
MapChoropleth_metadata("design:paramtypes", [typeof (_j = typeof MapBaseChoroplethFeature !== "undefined" && MapBaseChoroplethFeature) === "function" ? _j : Object, typeof (_k = typeof external_leaflet_.Layer !== "undefined" && external_leaflet_.Layer) === "function" ? _k : Object]),
|
|
1349
|
+
MapChoropleth_metadata("design:returntype", void 0)
|
|
1350
|
+
], MapChoropleth.prototype, "onEachFeature", null);
|
|
1351
|
+
return MapChoropleth;
|
|
1352
|
+
}((external_react_default()).Component));
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
;// CONCATENATED MODULE: ./src/components/Map/Map.tsx
|
|
1356
|
+
var Map_extends = (undefined && undefined.__extends) || (function () {
|
|
1357
|
+
var extendStatics = function (d, b) {
|
|
1358
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1359
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1360
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1361
|
+
return extendStatics(d, b);
|
|
1362
|
+
};
|
|
1363
|
+
return function (d, b) {
|
|
1364
|
+
extendStatics(d, b);
|
|
1365
|
+
function __() { this.constructor = d; }
|
|
1366
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1367
|
+
};
|
|
1368
|
+
})();
|
|
1369
|
+
var Map_assign = (undefined && undefined.__assign) || function () {
|
|
1370
|
+
Map_assign = Object.assign || function(t) {
|
|
1371
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1372
|
+
s = arguments[i];
|
|
1373
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
1374
|
+
t[p] = s[p];
|
|
1375
|
+
}
|
|
1376
|
+
return t;
|
|
1377
|
+
};
|
|
1378
|
+
return Map_assign.apply(this, arguments);
|
|
1379
|
+
};
|
|
1380
|
+
var Map_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1381
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1382
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1383
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1384
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1385
|
+
};
|
|
1386
|
+
var Map_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
1387
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1388
|
+
};
|
|
1389
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1390
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1391
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1392
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1393
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1394
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1395
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1396
|
+
});
|
|
1397
|
+
};
|
|
1398
|
+
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
1399
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
1400
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
1401
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
1402
|
+
function step(op) {
|
|
1403
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
1404
|
+
while (_) try {
|
|
1405
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
1406
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
1407
|
+
switch (op[0]) {
|
|
1408
|
+
case 0: case 1: t = op; break;
|
|
1409
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
1410
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
1411
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
1412
|
+
default:
|
|
1413
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
1414
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
1415
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
1416
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
1417
|
+
if (t[2]) _.ops.pop();
|
|
1418
|
+
_.trys.pop(); continue;
|
|
1419
|
+
}
|
|
1420
|
+
op = body.call(thisArg, _);
|
|
1421
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
1422
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
// eslint-disable-next-line
|
|
1431
|
+
// @ts-expect-error: no types for leaflet-image yet :/
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
var ControlsContainer = external_react_default().memo(function (props) {
|
|
1440
|
+
var className = external_classnames_default()('map-controls-container', props.className);
|
|
1441
|
+
return external_react_default().createElement("div", { className: className }, props.children);
|
|
1442
|
+
});
|
|
1443
|
+
ControlsContainer.displayName = 'ControlsContainer';
|
|
1444
|
+
/** Container component to display the map component.<br />
|
|
1445
|
+
* You should use its special children Choropleth to define its content<br />
|
|
1446
|
+
* and a Spinner as well as EmptyState to define its empty states */
|
|
1447
|
+
var Map_Map = /** @class */ (function (_super) {
|
|
1448
|
+
Map_extends(Map, _super);
|
|
1449
|
+
function Map() {
|
|
1450
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1451
|
+
_this.map = null;
|
|
1452
|
+
_this.italyBounds = [
|
|
1453
|
+
[47.53203824675999, 6.3394115537],
|
|
1454
|
+
[36.12012758978146, 18.8501168459],
|
|
1455
|
+
];
|
|
1456
|
+
return _this;
|
|
1457
|
+
}
|
|
1458
|
+
Map.prototype.renderOtherChildren = function () {
|
|
1459
|
+
var ret = [];
|
|
1460
|
+
external_react_default().Children.forEach(this.props.children, function (element) {
|
|
1461
|
+
if ((element === null || element === void 0 ? void 0 : element.type) !== Map.Choropleth && (element === null || element === void 0 ? void 0 : element.type) !== Spinner.Spinner && (element === null || element === void 0 ? void 0 : element.type) !== EmptyState.EmptyState) {
|
|
1462
|
+
ret.push(element);
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
return ret;
|
|
1466
|
+
};
|
|
1467
|
+
Map.prototype.renderChoropleth = function () {
|
|
1468
|
+
if (this.props.isLoading || this.props.isEmpty) {
|
|
1469
|
+
return null;
|
|
1470
|
+
}
|
|
1471
|
+
return (0,Utils/* findChildByComponent */.z8)(this.props.children, Map.Choropleth);
|
|
1472
|
+
};
|
|
1473
|
+
Map.prototype.renderIsLoading = function () {
|
|
1474
|
+
if (!this.props.isLoading) {
|
|
1475
|
+
return null;
|
|
1476
|
+
}
|
|
1477
|
+
return (external_react_default().createElement("div", { className: 'w-100 h-100 d-flex justify-content-center align-items-center' }, (0,Utils/* findChildByComponent */.z8)(this.props.children, Spinner.Spinner)));
|
|
1478
|
+
};
|
|
1479
|
+
Map.prototype.renderIsEmpty = function () {
|
|
1480
|
+
if (!this.props.isEmpty) {
|
|
1481
|
+
return null;
|
|
1482
|
+
}
|
|
1483
|
+
return (external_react_default().createElement("div", { className: 'w-100 h-100 d-flex justify-content-center align-items-center' }, (0,Utils/* findChildByComponent */.z8)(this.props.children, EmptyState.EmptyState)));
|
|
1484
|
+
};
|
|
1485
|
+
Map.prototype.handleMapCreated = function (map) {
|
|
1486
|
+
var _a, _b;
|
|
1487
|
+
this.map = map;
|
|
1488
|
+
(_b = (_a = this.props).onInit) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
|
1489
|
+
getCanvas: function () {
|
|
1490
|
+
return __awaiter(this, void 0, Promise, function () {
|
|
1491
|
+
return __generator(this, function (_a) {
|
|
1492
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1493
|
+
external_leaflet_image_default()(map, function (err, canvas) {
|
|
1494
|
+
if (err) {
|
|
1495
|
+
reject(err);
|
|
1496
|
+
return;
|
|
1497
|
+
}
|
|
1498
|
+
resolve(canvas);
|
|
1499
|
+
});
|
|
1500
|
+
})];
|
|
1501
|
+
});
|
|
1502
|
+
});
|
|
1503
|
+
},
|
|
1504
|
+
});
|
|
1505
|
+
};
|
|
1506
|
+
Map.prototype.render = function () {
|
|
1507
|
+
var _a;
|
|
1508
|
+
var bounds = (_a = this.props.bounds) !== null && _a !== void 0 ? _a : this.italyBounds, isDisabled = this.props.isLoading || this.props.isEmpty || this.props.zoomControl === false, className = external_classnames_default()('atoka-map-container', {
|
|
1509
|
+
disabled: isDisabled,
|
|
1510
|
+
});
|
|
1511
|
+
// The map does not rerender when props that are not children re-renders. We force it to do so giving it a key
|
|
1512
|
+
return (external_react_default().createElement(MapContainer, Map_assign({}, this.props, { bounds: bounds, className: className, key: className, renderer: external_leaflet_default().canvas(), whenCreated: this.handleMapCreated, id: this.props.id }),
|
|
1513
|
+
this.renderChoropleth(),
|
|
1514
|
+
this.renderIsLoading(),
|
|
1515
|
+
this.renderIsEmpty(),
|
|
1516
|
+
this.renderOtherChildren()));
|
|
1517
|
+
};
|
|
1518
|
+
var _a;
|
|
1519
|
+
Map.displayName = 'Map';
|
|
1520
|
+
Map.defaultProps = {
|
|
1521
|
+
isLoading: false,
|
|
1522
|
+
isEmpty: false,
|
|
1523
|
+
id: '',
|
|
1524
|
+
};
|
|
1525
|
+
Map.Choropleth = MapChoropleth;
|
|
1526
|
+
Map.TileLayer = TileLayer;
|
|
1527
|
+
Map.ControlsContainer = ControlsContainer;
|
|
1528
|
+
Map.Control = MapControl;
|
|
1529
|
+
Map_decorate([
|
|
1530
|
+
esm/* boundMethod */.MR,
|
|
1531
|
+
Map_metadata("design:type", Function),
|
|
1532
|
+
Map_metadata("design:paramtypes", [typeof (_a = typeof (external_leaflet_default()) !== "undefined" && (external_leaflet_default()).Map) === "function" ? _a : Object]),
|
|
1533
|
+
Map_metadata("design:returntype", void 0)
|
|
1534
|
+
], Map.prototype, "handleMapCreated", null);
|
|
1535
|
+
return Map;
|
|
1536
|
+
}((external_react_default()).Component));
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
;// CONCATENATED MODULE: ./src/components/Map/index.ts
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
/***/ }),
|
|
1545
|
+
|
|
1546
|
+
/***/ 4482:
|
|
1547
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1548
|
+
|
|
1549
|
+
"use strict";
|
|
1550
|
+
|
|
1551
|
+
// EXPORTS
|
|
1552
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1553
|
+
"Spinner": () => (/* reexport */ Spinner)
|
|
1554
|
+
});
|
|
1555
|
+
|
|
1556
|
+
// UNUSED EXPORTS: SpinnerSize
|
|
1557
|
+
|
|
1558
|
+
// EXTERNAL MODULE: external "classnames"
|
|
1559
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
1560
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
1561
|
+
// EXTERNAL MODULE: external "react"
|
|
1562
|
+
var external_react_ = __webpack_require__(8156);
|
|
1563
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
1564
|
+
;// CONCATENATED MODULE: ./src/components/Spinner/Spinner.tsx
|
|
1565
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
1566
|
+
var extendStatics = function (d, b) {
|
|
1567
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1568
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1569
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1570
|
+
return extendStatics(d, b);
|
|
1571
|
+
};
|
|
1572
|
+
return function (d, b) {
|
|
1573
|
+
extendStatics(d, b);
|
|
1574
|
+
function __() { this.constructor = d; }
|
|
1575
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1576
|
+
};
|
|
1577
|
+
})();
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
var SpinnerSize;
|
|
1582
|
+
(function (SpinnerSize) {
|
|
1583
|
+
SpinnerSize[SpinnerSize["mini"] = 0] = "mini";
|
|
1584
|
+
SpinnerSize[SpinnerSize["small"] = 1] = "small";
|
|
1585
|
+
SpinnerSize[SpinnerSize["big"] = 2] = "big";
|
|
1586
|
+
SpinnerSize[SpinnerSize["modal"] = 3] = "modal";
|
|
1587
|
+
})(SpinnerSize || (SpinnerSize = {}));
|
|
1588
|
+
/**
|
|
1589
|
+
* ### Overview
|
|
1590
|
+
*
|
|
1591
|
+
* We can find two different spinners in the Atoka interface, small and big. The **small** one is used to show that a specific section inside the page is loading. The **big** spinner on the other hand shows when the whole page is loading.
|
|
1592
|
+
*
|
|
1593
|
+
* ### Best practice
|
|
1594
|
+
*
|
|
1595
|
+
* Use the spinner if the waiting time is between 0.1 and 1 second. After one second, the user gets the impression that the app is slow: in that case, use a progress indicator instead.
|
|
1596
|
+
**/
|
|
1597
|
+
var Spinner = /** @class */ (function (_super) {
|
|
1598
|
+
__extends(Spinner, _super);
|
|
1599
|
+
function Spinner() {
|
|
1600
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1601
|
+
}
|
|
1602
|
+
Spinner.prototype.renderOnlyDotsSpinner = function (size) {
|
|
1603
|
+
var className = 'atoka-spinner spinner-' + size + ' ' + this.props.className;
|
|
1604
|
+
return (external_react_default().createElement("div", { className: className },
|
|
1605
|
+
external_react_default().createElement("div", { className: 'spinner-dot1' },
|
|
1606
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' })),
|
|
1607
|
+
external_react_default().createElement("div", { className: 'spinner-dot2' },
|
|
1608
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' })),
|
|
1609
|
+
external_react_default().createElement("div", { className: 'spinner-dot3' },
|
|
1610
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' }))));
|
|
1611
|
+
};
|
|
1612
|
+
Spinner.prototype.renderSmall = function () {
|
|
1613
|
+
return this.renderOnlyDotsSpinner('small');
|
|
1614
|
+
};
|
|
1615
|
+
Spinner.prototype.renderMini = function () {
|
|
1616
|
+
return this.renderOnlyDotsSpinner('mini');
|
|
1617
|
+
};
|
|
1618
|
+
Spinner.prototype.renderLeaf = function () {
|
|
1619
|
+
return (external_react_default().createElement("svg", { viewBox: '0 0 204.01 190.64', version: '1.1', xmlns: 'http://www.w3.org/2000/svg' },
|
|
1620
|
+
external_react_default().createElement("g", { id: 'leaf' },
|
|
1621
|
+
external_react_default().createElement("path", { d: 'M80.88,7.62a26,26,0,0,0-36.79,36.8,25.85,25.85,0,0,0,13.4,7.14V83.39c1.19,0,2.4-.08,3.62-.08,2.16,0,4.28.08,6.38.23v-32A26,26,0,0,0,80.88,7.62ZM73.81,37.35a16,16,0,1,1,0-22.66,15.92,15.92,0,0,1,0,22.66Z' }))));
|
|
1622
|
+
};
|
|
1623
|
+
Spinner.prototype.renderLetter = function () {
|
|
1624
|
+
return (external_react_default().createElement("svg", { viewBox: '0 0 204.01 190.64', version: '1.1', xmlns: 'http://www.w3.org/2000/svg' },
|
|
1625
|
+
external_react_default().createElement("g", { id: 'logo-vector' },
|
|
1626
|
+
external_react_default().createElement("path", { d: 'M110.77,180.67V140.16a50.47,50.47,0,1,0-22,41.71L93.12,187a10,10,0,0,0,17.65-6.34Zm-81-40.51a30.5,30.5,0,1,1,30.5,30.5,30.49,30.49,0,0,1-30.5-30.5Z' }))));
|
|
1627
|
+
};
|
|
1628
|
+
Spinner.prototype.renderBig = function () {
|
|
1629
|
+
var spinnerClassName = external_classnames_default()(this.props.className, {
|
|
1630
|
+
'atoka-spinner': true,
|
|
1631
|
+
'spinner-big': this.props.size === SpinnerSize.big,
|
|
1632
|
+
'spinner-medium': this.props.size === SpinnerSize.modal,
|
|
1633
|
+
}), containerClassName = external_classnames_default()({
|
|
1634
|
+
'container-fluid spinner-modal': this.props.size === SpinnerSize.modal,
|
|
1635
|
+
});
|
|
1636
|
+
return (external_react_default().createElement("div", { className: containerClassName },
|
|
1637
|
+
external_react_default().createElement("div", { className: spinnerClassName },
|
|
1638
|
+
external_react_default().createElement("div", { className: 'spinner-dot1' },
|
|
1639
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
|
|
1640
|
+
external_react_default().createElement("div", { className: 'spinner-dot2' },
|
|
1641
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
|
|
1642
|
+
external_react_default().createElement("div", { className: 'spinner-dot3' },
|
|
1643
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
|
|
1644
|
+
external_react_default().createElement("span", { className: 'spinner-letter' }, this.renderLetter()))));
|
|
1645
|
+
};
|
|
1646
|
+
Spinner.prototype.render = function () {
|
|
1647
|
+
switch (this.props.size) {
|
|
1648
|
+
case SpinnerSize.mini:
|
|
1649
|
+
return this.renderMini();
|
|
1650
|
+
case SpinnerSize.small:
|
|
1651
|
+
return this.renderSmall();
|
|
1652
|
+
case SpinnerSize.big:
|
|
1653
|
+
case SpinnerSize.modal:
|
|
1654
|
+
return this.renderBig();
|
|
1655
|
+
default:
|
|
1656
|
+
return null;
|
|
1657
|
+
}
|
|
1658
|
+
};
|
|
1659
|
+
Spinner.displayName = 'Spinner';
|
|
1660
|
+
Spinner.defaultProps = {
|
|
1661
|
+
size: SpinnerSize.small,
|
|
1662
|
+
className: '',
|
|
1663
|
+
};
|
|
1664
|
+
return Spinner;
|
|
1665
|
+
}((external_react_default()).Component));
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
;// CONCATENATED MODULE: ./src/components/Spinner/index.ts
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
/***/ }),
|
|
1673
|
+
|
|
1674
|
+
/***/ 2755:
|
|
1675
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1676
|
+
|
|
1677
|
+
"use strict";
|
|
1678
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1679
|
+
/* harmony export */ "KH": () => (/* binding */ blue30),
|
|
1680
|
+
/* harmony export */ "p5": () => (/* binding */ blue300),
|
|
1681
|
+
/* harmony export */ "$y": () => (/* binding */ orange)
|
|
1682
|
+
/* harmony export */ });
|
|
1683
|
+
/* unused harmony exports calculateDomain, generateRangeColor, white, blue25, blue50, blue80, blue90, blue95, blue100, gray200, blue400, yellow, red, green, gray100, gray300, gray400, purple, viola, pink100, pink200, salmon, black */
|
|
1684
|
+
|
|
1685
|
+
function generateRangeColor(len, rangeColors) {
|
|
1686
|
+
if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
|
|
1687
|
+
var generatedColors = [];
|
|
1688
|
+
if (len === 0) {
|
|
1689
|
+
return undefined;
|
|
1690
|
+
}
|
|
1691
|
+
var colors = scaleLinear(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
|
|
1692
|
+
colors = colors.domain(domain).range(rangeColors);
|
|
1693
|
+
for (var i = 0; i < len; i++) {
|
|
1694
|
+
generatedColors.push(colors(targetDomain[i]));
|
|
1695
|
+
}
|
|
1696
|
+
return generatedColors;
|
|
1697
|
+
}
|
|
1698
|
+
function calculateDomain(len, rangeColorsLength) {
|
|
1699
|
+
var domain = [];
|
|
1700
|
+
domain.push(0);
|
|
1701
|
+
for (var i = 0; i < len - 2; i++) {
|
|
1702
|
+
var num = Number((rangeColorsLength / len) * (i + 1));
|
|
1703
|
+
domain.push(parseFloat(num.toFixed(2)));
|
|
1704
|
+
}
|
|
1705
|
+
domain.push(rangeColorsLength);
|
|
1706
|
+
return domain;
|
|
1707
|
+
}
|
|
1708
|
+
// Keep these in sync with variables.less
|
|
1709
|
+
var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
|
|
1710
|
+
blue400 = '#11455C', gray100 = '#FAFAFA', gray200 = '#EBEBEB', gray300 = '#B0B0B0', gray400 = '#717171', yellow = '#FFBB00', orange = '#F38522', red = '#F72200', green = '#309B0A', purple = '#63619F', viola = '#965DA3', pink200 = '#C55795', pink100 = '#E85778', salmon = '#F86752', black = '#222222';
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
/***/ }),
|
|
1715
|
+
|
|
1716
|
+
/***/ 6347:
|
|
1717
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1718
|
+
|
|
1719
|
+
"use strict";
|
|
1720
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1721
|
+
/* harmony export */ "lV": () => (/* binding */ slugify)
|
|
1722
|
+
/* harmony export */ });
|
|
1723
|
+
/* unused harmony exports isStringEmpty, estimateWordSize, ellipse, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
|
|
1724
|
+
var __values = (undefined && undefined.__values) || function(o) {
|
|
1725
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1726
|
+
if (m) return m.call(o);
|
|
1727
|
+
if (o && typeof o.length === "number") return {
|
|
1728
|
+
next: function () {
|
|
1729
|
+
if (o && i >= o.length) o = void 0;
|
|
1730
|
+
return { value: o && o[i++], done: !o };
|
|
1731
|
+
}
|
|
1732
|
+
};
|
|
1733
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1734
|
+
};
|
|
1735
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
1736
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1737
|
+
if (!m) return o;
|
|
1738
|
+
var i = m.call(o), r, ar = [], e;
|
|
1739
|
+
try {
|
|
1740
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
1741
|
+
}
|
|
1742
|
+
catch (error) { e = { error: error }; }
|
|
1743
|
+
finally {
|
|
1744
|
+
try {
|
|
1745
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
1746
|
+
}
|
|
1747
|
+
finally { if (e) throw e.error; }
|
|
1748
|
+
}
|
|
1749
|
+
return ar;
|
|
1750
|
+
};
|
|
1751
|
+
var __spread = (undefined && undefined.__spread) || function () {
|
|
1752
|
+
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
1753
|
+
return ar;
|
|
1754
|
+
};
|
|
1755
|
+
function isStringEmpty(s) {
|
|
1756
|
+
if (s == null) {
|
|
1757
|
+
return true;
|
|
1758
|
+
}
|
|
1759
|
+
return s.match(/^\s*$/) !== null;
|
|
1760
|
+
}
|
|
1761
|
+
function slugify(text) {
|
|
1762
|
+
var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
|
|
1763
|
+
return text
|
|
1764
|
+
.toString()
|
|
1765
|
+
.toLowerCase()
|
|
1766
|
+
.replace(/\s+/g, '-') // Replace spaces with -
|
|
1767
|
+
.replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
|
|
1768
|
+
.replace(/&/g, '-and-') // Replace & with 'and'
|
|
1769
|
+
.replace(/[^\w-]+/g, '') // Remove all non-word characters
|
|
1770
|
+
.replace(/--+/g, '-') // Replace multiple - with single -
|
|
1771
|
+
.replace(/^-+/, '') // Trim - from start of text
|
|
1772
|
+
.replace(/-+$/, ''); // Trim - from end of text
|
|
1773
|
+
}
|
|
1774
|
+
function estimateWordSize(wordLength, letterPixels, constant) {
|
|
1775
|
+
return wordLength * letterPixels + constant;
|
|
1776
|
+
}
|
|
1777
|
+
function ellipse(input, length) {
|
|
1778
|
+
if (input == null) {
|
|
1779
|
+
return '';
|
|
1780
|
+
}
|
|
1781
|
+
return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
|
|
1782
|
+
}
|
|
1783
|
+
function matchAndFormatRangeLabel(formatter) {
|
|
1784
|
+
return function (label) {
|
|
1785
|
+
var match = /^([\d*]+)-([\d*]+)$/.exec(label);
|
|
1786
|
+
if (match == null) {
|
|
1787
|
+
return label;
|
|
1788
|
+
}
|
|
1789
|
+
return formatRange({
|
|
1790
|
+
from: match[1],
|
|
1791
|
+
to: match[2],
|
|
1792
|
+
}, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
|
|
1793
|
+
};
|
|
1794
|
+
}
|
|
1795
|
+
function formatRange(item, formatter) {
|
|
1796
|
+
var _a, _b;
|
|
1797
|
+
var to = item.to === '*' ? '*' : formatter(parseInt((_a = item.to) !== null && _a !== void 0 ? _a : '0', 10)), from = formatter(parseInt((_b = item.from) !== null && _b !== void 0 ? _b : '0', 10));
|
|
1798
|
+
if (from === to) {
|
|
1799
|
+
return "" + from;
|
|
1800
|
+
}
|
|
1801
|
+
return from + " - " + to;
|
|
1802
|
+
}
|
|
1803
|
+
function ellipseAndFormat(formatter, maxLabelLength) {
|
|
1804
|
+
return function (value) {
|
|
1805
|
+
var strValue = value.toString();
|
|
1806
|
+
if (formatter == null) {
|
|
1807
|
+
return ellipse(strValue, maxLabelLength);
|
|
1808
|
+
}
|
|
1809
|
+
return ellipse("" + formatter(strValue), maxLabelLength);
|
|
1810
|
+
};
|
|
1811
|
+
}
|
|
1812
|
+
function escapeRegExp(input) {
|
|
1813
|
+
// eslint-disable-next-line
|
|
1814
|
+
return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
|
|
1815
|
+
}
|
|
1816
|
+
function isMatching(text0, text1) {
|
|
1817
|
+
var e_1, _a;
|
|
1818
|
+
if (text0 == null || text1 == null) {
|
|
1819
|
+
return false;
|
|
1820
|
+
}
|
|
1821
|
+
text0 = text0.toLowerCase();
|
|
1822
|
+
text1 = text1.toLowerCase();
|
|
1823
|
+
if (text1.match(' ') === null) {
|
|
1824
|
+
return text0.match(escapeRegExp(text1)) !== null;
|
|
1825
|
+
}
|
|
1826
|
+
var splitNeedles = text1
|
|
1827
|
+
.split(' ')
|
|
1828
|
+
.filter(function (s) { return !isStringEmpty(s); })
|
|
1829
|
+
.sort(function (a, b) { return b.length - a.length; });
|
|
1830
|
+
try {
|
|
1831
|
+
for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
|
|
1832
|
+
var needle = splitNeedles_1_1.value;
|
|
1833
|
+
if (text0 === needle) {
|
|
1834
|
+
return true;
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1839
|
+
finally {
|
|
1840
|
+
try {
|
|
1841
|
+
if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
|
|
1842
|
+
}
|
|
1843
|
+
finally { if (e_1) throw e_1.error; }
|
|
1844
|
+
}
|
|
1845
|
+
return false;
|
|
1846
|
+
}
|
|
1847
|
+
function splitTextInParts(needles, text) {
|
|
1848
|
+
var e_2, _a;
|
|
1849
|
+
if (text == null) {
|
|
1850
|
+
return [];
|
|
1851
|
+
}
|
|
1852
|
+
if (needles.match(' ') === null) {
|
|
1853
|
+
var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
|
|
1854
|
+
return text.split(re);
|
|
1855
|
+
}
|
|
1856
|
+
var splitNeedles = needles
|
|
1857
|
+
.split(' ')
|
|
1858
|
+
.filter(function (s) { return !isStringEmpty(s); })
|
|
1859
|
+
.sort(function (a, b) { return b.length - a.length; }), ret = [text];
|
|
1860
|
+
try {
|
|
1861
|
+
for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
|
|
1862
|
+
var needle = splitNeedles_2_1.value;
|
|
1863
|
+
var re = new RegExp('(' + needle + ')', 'gi');
|
|
1864
|
+
for (var index = 0; index < ret.length; index++) {
|
|
1865
|
+
var currentText = ret[index];
|
|
1866
|
+
if (isMatching(currentText, escapeRegExp(needles))) {
|
|
1867
|
+
continue;
|
|
1868
|
+
}
|
|
1869
|
+
var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
|
|
1870
|
+
ret.splice.apply(ret, __spread([index, 1], newParts));
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1875
|
+
finally {
|
|
1876
|
+
try {
|
|
1877
|
+
if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
|
|
1878
|
+
}
|
|
1879
|
+
finally { if (e_2) throw e_2.error; }
|
|
1880
|
+
}
|
|
1881
|
+
return ret;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
/***/ }),
|
|
1886
|
+
|
|
1887
|
+
/***/ 5654:
|
|
1888
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1889
|
+
|
|
1890
|
+
"use strict";
|
|
1891
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1892
|
+
/* harmony export */ "z8": () => (/* binding */ findChildByComponent)
|
|
1893
|
+
/* harmony export */ });
|
|
1894
|
+
/* unused harmony exports findChildrenByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, sortObjDesc, clone, getDebouncer, deepEqual, rgbToHex */
|
|
1895
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
|
|
1896
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
|
|
1897
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
|
|
1898
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1899
|
+
/* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
|
|
1900
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
1901
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1902
|
+
if (!m) return o;
|
|
1903
|
+
var i = m.call(o), r, ar = [], e;
|
|
1904
|
+
try {
|
|
1905
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
1906
|
+
}
|
|
1907
|
+
catch (error) { e = { error: error }; }
|
|
1908
|
+
finally {
|
|
1909
|
+
try {
|
|
1910
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
1911
|
+
}
|
|
1912
|
+
finally { if (e) throw e.error; }
|
|
1913
|
+
}
|
|
1914
|
+
return ar;
|
|
1915
|
+
};
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
|
|
1919
|
+
function findChildrenByComponent(children,
|
|
1920
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1921
|
+
component) {
|
|
1922
|
+
var ret = [];
|
|
1923
|
+
react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(children, function (element) {
|
|
1924
|
+
if ((element === null || element === void 0 ? void 0 : element.type) === component) {
|
|
1925
|
+
ret.push(element);
|
|
1926
|
+
}
|
|
1927
|
+
});
|
|
1928
|
+
return ret;
|
|
1929
|
+
}
|
|
1930
|
+
function findChildByComponent(children,
|
|
1931
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1932
|
+
component) {
|
|
1933
|
+
var _a, _b;
|
|
1934
|
+
return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
|
|
1935
|
+
}
|
|
1936
|
+
function hasChildIconOrCheckboxComponent(children) {
|
|
1937
|
+
var ret = false;
|
|
1938
|
+
React.Children.forEach(children, function (element) {
|
|
1939
|
+
if ((element === null || element === void 0 ? void 0 : element.type) != null &&
|
|
1940
|
+
((element === null || element === void 0 ? void 0 : element.type) === FontAwesomeIcon || (element === null || element === void 0 ? void 0 : element.type) === 'i' || (element === null || element === void 0 ? void 0 : element.type) === Form.Checkbox)) {
|
|
1941
|
+
ret = true;
|
|
1942
|
+
return;
|
|
1943
|
+
}
|
|
1944
|
+
});
|
|
1945
|
+
return ret;
|
|
1946
|
+
}
|
|
1947
|
+
function scrollToTop() {
|
|
1948
|
+
window.scrollTo(0, 0);
|
|
1949
|
+
}
|
|
1950
|
+
function zip(arr1, arr2) {
|
|
1951
|
+
var ret = [];
|
|
1952
|
+
var i = 0;
|
|
1953
|
+
while (arr1[i]) {
|
|
1954
|
+
ret.push(arr1[i]);
|
|
1955
|
+
ret.push(arr2[i++]);
|
|
1956
|
+
}
|
|
1957
|
+
return ret;
|
|
1958
|
+
}
|
|
1959
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1960
|
+
function sortObjDesc(accessor) {
|
|
1961
|
+
return function (a, b) {
|
|
1962
|
+
var leftVal = 0, rightVal = 0;
|
|
1963
|
+
if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
|
|
1964
|
+
leftVal = a === null || a === void 0 ? void 0 : a[accessor];
|
|
1965
|
+
}
|
|
1966
|
+
if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
|
|
1967
|
+
rightVal = b === null || b === void 0 ? void 0 : b[accessor];
|
|
1968
|
+
}
|
|
1969
|
+
return leftVal > rightVal ? -1 : 1;
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
function clone(ob) {
|
|
1973
|
+
return JSON.parse(JSON.stringify(ob));
|
|
1974
|
+
}
|
|
1975
|
+
function getDebouncer(delay) {
|
|
1976
|
+
if (delay === void 0) { delay = 1; }
|
|
1977
|
+
var debounceTimeout = null;
|
|
1978
|
+
return function debounce(f) {
|
|
1979
|
+
if (debounceTimeout !== null) {
|
|
1980
|
+
clearTimeout(debounceTimeout);
|
|
1981
|
+
}
|
|
1982
|
+
debounceTimeout = window.setTimeout(f, delay);
|
|
1983
|
+
};
|
|
1984
|
+
}
|
|
1985
|
+
function isObject(obj) {
|
|
1986
|
+
return typeof obj === 'object' && obj != null;
|
|
1987
|
+
}
|
|
1988
|
+
function deepEqual(obj1, obj2) {
|
|
1989
|
+
if (obj1 === obj2) {
|
|
1990
|
+
return true;
|
|
1991
|
+
}
|
|
1992
|
+
if (isObject(obj1) && isObject(obj2)) {
|
|
1993
|
+
if (Object.keys(obj1).length !== Object.keys(obj2).length) {
|
|
1994
|
+
return false;
|
|
1995
|
+
}
|
|
1996
|
+
for (var prop in obj1) {
|
|
1997
|
+
if (!deepEqual(obj1[prop], obj2[prop])) {
|
|
1998
|
+
return false;
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
return true;
|
|
2002
|
+
}
|
|
2003
|
+
return false;
|
|
2004
|
+
}
|
|
2005
|
+
function componentToHex(c) {
|
|
2006
|
+
if (isNaN(c)) {
|
|
2007
|
+
throw Error('The color has not been written correctly');
|
|
2008
|
+
}
|
|
2009
|
+
var hex = c.toString(16).toUpperCase();
|
|
2010
|
+
return hex.length === 1 ? '0' + hex : hex;
|
|
2011
|
+
}
|
|
2012
|
+
function cleanSingleColor(c) {
|
|
2013
|
+
return c.replace(/"|'/g, '').trim();
|
|
2014
|
+
}
|
|
2015
|
+
function rgbToHex(rgb) {
|
|
2016
|
+
if (rgb.includes('rgba')) {
|
|
2017
|
+
throw Error('not implemented');
|
|
2018
|
+
}
|
|
2019
|
+
var _a = __read(rgb
|
|
2020
|
+
.replace('rgb', '')
|
|
2021
|
+
.replace(/\(|\)/gi, '')
|
|
2022
|
+
.split(',')
|
|
2023
|
+
.map(function (c) { return parseInt(cleanSingleColor(c), 10); }), 3), _b = _a[0], r = _b === void 0 ? 0 : _b, _c = _a[1], g = _c === void 0 ? 0 : _c, _d = _a[2], b = _d === void 0 ? 0 : _d;
|
|
2024
|
+
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
/***/ }),
|
|
2029
|
+
|
|
2030
|
+
/***/ 6496:
|
|
2031
|
+
/***/ ((module) => {
|
|
2032
|
+
|
|
2033
|
+
function _typeof(obj) {
|
|
2034
|
+
"@babel/helpers - typeof";
|
|
2035
|
+
|
|
2036
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2037
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
2038
|
+
return typeof obj;
|
|
2039
|
+
};
|
|
2040
|
+
|
|
2041
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2042
|
+
} else {
|
|
2043
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
2044
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2045
|
+
};
|
|
2046
|
+
|
|
2047
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
return _typeof(obj);
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
module.exports = _typeof;
|
|
2054
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2055
|
+
|
|
2056
|
+
/***/ }),
|
|
2057
|
+
|
|
2058
|
+
/***/ 9673:
|
|
2059
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2060
|
+
|
|
2061
|
+
module.exports = __webpack_require__(3538);
|
|
2062
|
+
|
|
2063
|
+
/***/ }),
|
|
2064
|
+
|
|
2065
|
+
/***/ 6627:
|
|
2066
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2067
|
+
|
|
2068
|
+
"use strict";
|
|
2069
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2070
|
+
/* harmony export */ "MR": () => (/* binding */ boundMethod),
|
|
2071
|
+
/* harmony export */ "ZP": () => (/* binding */ autobind)
|
|
2072
|
+
/* harmony export */ });
|
|
2073
|
+
/* unused harmony export boundClass */
|
|
2074
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
function _typeof(obj) {
|
|
2078
|
+
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
2079
|
+
_typeof = function _typeof(obj) {
|
|
2080
|
+
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
2081
|
+
};
|
|
2082
|
+
} else {
|
|
2083
|
+
_typeof = function _typeof(obj) {
|
|
2084
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
2085
|
+
};
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
return _typeof(obj);
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
* Return a descriptor removing the value and returning a getter
|
|
2092
|
+
* The getter will return a .bind version of the function
|
|
2093
|
+
* and memoize the result against a symbol on the instance
|
|
2094
|
+
*/
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
function boundMethod(target, key, descriptor) {
|
|
2098
|
+
var fn = descriptor.value;
|
|
2099
|
+
|
|
2100
|
+
if (typeof fn !== 'function') {
|
|
2101
|
+
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
2102
|
+
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
2103
|
+
// getter for the property which is being replaced. This causes infinite
|
|
2104
|
+
// recursion and an "Out of stack space" error.
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
var definingProperty = false;
|
|
2108
|
+
return {
|
|
2109
|
+
configurable: true,
|
|
2110
|
+
get: function get() {
|
|
2111
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
2112
|
+
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
2113
|
+
return fn;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
var boundFn = fn.bind(this);
|
|
2117
|
+
definingProperty = true;
|
|
2118
|
+
Object.defineProperty(this, key, {
|
|
2119
|
+
configurable: true,
|
|
2120
|
+
get: function get() {
|
|
2121
|
+
return boundFn;
|
|
2122
|
+
},
|
|
2123
|
+
set: function set(value) {
|
|
2124
|
+
fn = value;
|
|
2125
|
+
delete this[key];
|
|
2126
|
+
}
|
|
2127
|
+
});
|
|
2128
|
+
definingProperty = false;
|
|
2129
|
+
return boundFn;
|
|
2130
|
+
},
|
|
2131
|
+
set: function set(value) {
|
|
2132
|
+
fn = value;
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
/**
|
|
2137
|
+
* Use boundMethod to bind all methods on the target.prototype
|
|
2138
|
+
*/
|
|
2139
|
+
|
|
2140
|
+
function boundClass(target) {
|
|
2141
|
+
// (Using reflect to get all keys including symbols)
|
|
2142
|
+
var keys; // Use Reflect if exists
|
|
2143
|
+
|
|
2144
|
+
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
2145
|
+
keys = Reflect.ownKeys(target.prototype);
|
|
2146
|
+
} else {
|
|
2147
|
+
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
2148
|
+
|
|
2149
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
2150
|
+
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
keys.forEach(function (key) {
|
|
2155
|
+
// Ignore special case target method
|
|
2156
|
+
if (key === 'constructor') {
|
|
2157
|
+
return;
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
2161
|
+
|
|
2162
|
+
if (typeof descriptor.value === 'function') {
|
|
2163
|
+
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
2164
|
+
}
|
|
2165
|
+
});
|
|
2166
|
+
return target;
|
|
2167
|
+
}
|
|
2168
|
+
function autobind() {
|
|
2169
|
+
if (arguments.length === 1) {
|
|
2170
|
+
return boundClass.apply(void 0, arguments);
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
return boundMethod.apply(void 0, arguments);
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
/***/ }),
|
|
2177
|
+
|
|
2178
|
+
/***/ 2766:
|
|
2179
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2180
|
+
|
|
2181
|
+
"use strict";
|
|
2182
|
+
|
|
2183
|
+
// EXPORTS
|
|
2184
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2185
|
+
"ZP": () => (/* binding */ color),
|
|
2186
|
+
"B8": () => (/* binding */ rgb)
|
|
2187
|
+
});
|
|
2188
|
+
|
|
2189
|
+
// UNUSED EXPORTS: Color, Rgb, brighter, darker, hsl, hslConvert, rgbConvert
|
|
2190
|
+
|
|
2191
|
+
;// CONCATENATED MODULE: ./node_modules/d3-color/src/define.js
|
|
2192
|
+
/* harmony default export */ function src_define(constructor, factory, prototype) {
|
|
2193
|
+
constructor.prototype = factory.prototype = prototype;
|
|
2194
|
+
prototype.constructor = constructor;
|
|
2195
|
+
}
|
|
2196
|
+
function extend(parent, definition) {
|
|
2197
|
+
var prototype = Object.create(parent.prototype);
|
|
2198
|
+
|
|
2199
|
+
for (var key in definition) {
|
|
2200
|
+
prototype[key] = definition[key];
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
return prototype;
|
|
2204
|
+
}
|
|
2205
|
+
;// CONCATENATED MODULE: ./node_modules/d3-color/src/color.js
|
|
2206
|
+
|
|
2207
|
+
function Color() {}
|
|
2208
|
+
var _darker = 0.7;
|
|
2209
|
+
|
|
2210
|
+
|
|
2211
|
+
var _brighter = 1 / _darker;
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
2215
|
+
reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
2216
|
+
reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
2217
|
+
reHex = /^#([0-9a-f]{3,8})$/,
|
|
2218
|
+
reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
|
|
2219
|
+
reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
|
|
2220
|
+
reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
|
|
2221
|
+
reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
|
|
2222
|
+
reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
|
|
2223
|
+
reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
|
|
2224
|
+
var named = {
|
|
2225
|
+
aliceblue: 0xf0f8ff,
|
|
2226
|
+
antiquewhite: 0xfaebd7,
|
|
2227
|
+
aqua: 0x00ffff,
|
|
2228
|
+
aquamarine: 0x7fffd4,
|
|
2229
|
+
azure: 0xf0ffff,
|
|
2230
|
+
beige: 0xf5f5dc,
|
|
2231
|
+
bisque: 0xffe4c4,
|
|
2232
|
+
black: 0x000000,
|
|
2233
|
+
blanchedalmond: 0xffebcd,
|
|
2234
|
+
blue: 0x0000ff,
|
|
2235
|
+
blueviolet: 0x8a2be2,
|
|
2236
|
+
brown: 0xa52a2a,
|
|
2237
|
+
burlywood: 0xdeb887,
|
|
2238
|
+
cadetblue: 0x5f9ea0,
|
|
2239
|
+
chartreuse: 0x7fff00,
|
|
2240
|
+
chocolate: 0xd2691e,
|
|
2241
|
+
coral: 0xff7f50,
|
|
2242
|
+
cornflowerblue: 0x6495ed,
|
|
2243
|
+
cornsilk: 0xfff8dc,
|
|
2244
|
+
crimson: 0xdc143c,
|
|
2245
|
+
cyan: 0x00ffff,
|
|
2246
|
+
darkblue: 0x00008b,
|
|
2247
|
+
darkcyan: 0x008b8b,
|
|
2248
|
+
darkgoldenrod: 0xb8860b,
|
|
2249
|
+
darkgray: 0xa9a9a9,
|
|
2250
|
+
darkgreen: 0x006400,
|
|
2251
|
+
darkgrey: 0xa9a9a9,
|
|
2252
|
+
darkkhaki: 0xbdb76b,
|
|
2253
|
+
darkmagenta: 0x8b008b,
|
|
2254
|
+
darkolivegreen: 0x556b2f,
|
|
2255
|
+
darkorange: 0xff8c00,
|
|
2256
|
+
darkorchid: 0x9932cc,
|
|
2257
|
+
darkred: 0x8b0000,
|
|
2258
|
+
darksalmon: 0xe9967a,
|
|
2259
|
+
darkseagreen: 0x8fbc8f,
|
|
2260
|
+
darkslateblue: 0x483d8b,
|
|
2261
|
+
darkslategray: 0x2f4f4f,
|
|
2262
|
+
darkslategrey: 0x2f4f4f,
|
|
2263
|
+
darkturquoise: 0x00ced1,
|
|
2264
|
+
darkviolet: 0x9400d3,
|
|
2265
|
+
deeppink: 0xff1493,
|
|
2266
|
+
deepskyblue: 0x00bfff,
|
|
2267
|
+
dimgray: 0x696969,
|
|
2268
|
+
dimgrey: 0x696969,
|
|
2269
|
+
dodgerblue: 0x1e90ff,
|
|
2270
|
+
firebrick: 0xb22222,
|
|
2271
|
+
floralwhite: 0xfffaf0,
|
|
2272
|
+
forestgreen: 0x228b22,
|
|
2273
|
+
fuchsia: 0xff00ff,
|
|
2274
|
+
gainsboro: 0xdcdcdc,
|
|
2275
|
+
ghostwhite: 0xf8f8ff,
|
|
2276
|
+
gold: 0xffd700,
|
|
2277
|
+
goldenrod: 0xdaa520,
|
|
2278
|
+
gray: 0x808080,
|
|
2279
|
+
green: 0x008000,
|
|
2280
|
+
greenyellow: 0xadff2f,
|
|
2281
|
+
grey: 0x808080,
|
|
2282
|
+
honeydew: 0xf0fff0,
|
|
2283
|
+
hotpink: 0xff69b4,
|
|
2284
|
+
indianred: 0xcd5c5c,
|
|
2285
|
+
indigo: 0x4b0082,
|
|
2286
|
+
ivory: 0xfffff0,
|
|
2287
|
+
khaki: 0xf0e68c,
|
|
2288
|
+
lavender: 0xe6e6fa,
|
|
2289
|
+
lavenderblush: 0xfff0f5,
|
|
2290
|
+
lawngreen: 0x7cfc00,
|
|
2291
|
+
lemonchiffon: 0xfffacd,
|
|
2292
|
+
lightblue: 0xadd8e6,
|
|
2293
|
+
lightcoral: 0xf08080,
|
|
2294
|
+
lightcyan: 0xe0ffff,
|
|
2295
|
+
lightgoldenrodyellow: 0xfafad2,
|
|
2296
|
+
lightgray: 0xd3d3d3,
|
|
2297
|
+
lightgreen: 0x90ee90,
|
|
2298
|
+
lightgrey: 0xd3d3d3,
|
|
2299
|
+
lightpink: 0xffb6c1,
|
|
2300
|
+
lightsalmon: 0xffa07a,
|
|
2301
|
+
lightseagreen: 0x20b2aa,
|
|
2302
|
+
lightskyblue: 0x87cefa,
|
|
2303
|
+
lightslategray: 0x778899,
|
|
2304
|
+
lightslategrey: 0x778899,
|
|
2305
|
+
lightsteelblue: 0xb0c4de,
|
|
2306
|
+
lightyellow: 0xffffe0,
|
|
2307
|
+
lime: 0x00ff00,
|
|
2308
|
+
limegreen: 0x32cd32,
|
|
2309
|
+
linen: 0xfaf0e6,
|
|
2310
|
+
magenta: 0xff00ff,
|
|
2311
|
+
maroon: 0x800000,
|
|
2312
|
+
mediumaquamarine: 0x66cdaa,
|
|
2313
|
+
mediumblue: 0x0000cd,
|
|
2314
|
+
mediumorchid: 0xba55d3,
|
|
2315
|
+
mediumpurple: 0x9370db,
|
|
2316
|
+
mediumseagreen: 0x3cb371,
|
|
2317
|
+
mediumslateblue: 0x7b68ee,
|
|
2318
|
+
mediumspringgreen: 0x00fa9a,
|
|
2319
|
+
mediumturquoise: 0x48d1cc,
|
|
2320
|
+
mediumvioletred: 0xc71585,
|
|
2321
|
+
midnightblue: 0x191970,
|
|
2322
|
+
mintcream: 0xf5fffa,
|
|
2323
|
+
mistyrose: 0xffe4e1,
|
|
2324
|
+
moccasin: 0xffe4b5,
|
|
2325
|
+
navajowhite: 0xffdead,
|
|
2326
|
+
navy: 0x000080,
|
|
2327
|
+
oldlace: 0xfdf5e6,
|
|
2328
|
+
olive: 0x808000,
|
|
2329
|
+
olivedrab: 0x6b8e23,
|
|
2330
|
+
orange: 0xffa500,
|
|
2331
|
+
orangered: 0xff4500,
|
|
2332
|
+
orchid: 0xda70d6,
|
|
2333
|
+
palegoldenrod: 0xeee8aa,
|
|
2334
|
+
palegreen: 0x98fb98,
|
|
2335
|
+
paleturquoise: 0xafeeee,
|
|
2336
|
+
palevioletred: 0xdb7093,
|
|
2337
|
+
papayawhip: 0xffefd5,
|
|
2338
|
+
peachpuff: 0xffdab9,
|
|
2339
|
+
peru: 0xcd853f,
|
|
2340
|
+
pink: 0xffc0cb,
|
|
2341
|
+
plum: 0xdda0dd,
|
|
2342
|
+
powderblue: 0xb0e0e6,
|
|
2343
|
+
purple: 0x800080,
|
|
2344
|
+
rebeccapurple: 0x663399,
|
|
2345
|
+
red: 0xff0000,
|
|
2346
|
+
rosybrown: 0xbc8f8f,
|
|
2347
|
+
royalblue: 0x4169e1,
|
|
2348
|
+
saddlebrown: 0x8b4513,
|
|
2349
|
+
salmon: 0xfa8072,
|
|
2350
|
+
sandybrown: 0xf4a460,
|
|
2351
|
+
seagreen: 0x2e8b57,
|
|
2352
|
+
seashell: 0xfff5ee,
|
|
2353
|
+
sienna: 0xa0522d,
|
|
2354
|
+
silver: 0xc0c0c0,
|
|
2355
|
+
skyblue: 0x87ceeb,
|
|
2356
|
+
slateblue: 0x6a5acd,
|
|
2357
|
+
slategray: 0x708090,
|
|
2358
|
+
slategrey: 0x708090,
|
|
2359
|
+
snow: 0xfffafa,
|
|
2360
|
+
springgreen: 0x00ff7f,
|
|
2361
|
+
steelblue: 0x4682b4,
|
|
2362
|
+
tan: 0xd2b48c,
|
|
2363
|
+
teal: 0x008080,
|
|
2364
|
+
thistle: 0xd8bfd8,
|
|
2365
|
+
tomato: 0xff6347,
|
|
2366
|
+
turquoise: 0x40e0d0,
|
|
2367
|
+
violet: 0xee82ee,
|
|
2368
|
+
wheat: 0xf5deb3,
|
|
2369
|
+
white: 0xffffff,
|
|
2370
|
+
whitesmoke: 0xf5f5f5,
|
|
2371
|
+
yellow: 0xffff00,
|
|
2372
|
+
yellowgreen: 0x9acd32
|
|
2373
|
+
};
|
|
2374
|
+
src_define(Color, color, {
|
|
2375
|
+
copy: function copy(channels) {
|
|
2376
|
+
return Object.assign(new this.constructor(), this, channels);
|
|
2377
|
+
},
|
|
2378
|
+
displayable: function displayable() {
|
|
2379
|
+
return this.rgb().displayable();
|
|
2380
|
+
},
|
|
2381
|
+
hex: color_formatHex,
|
|
2382
|
+
// Deprecated! Use color.formatHex.
|
|
2383
|
+
formatHex: color_formatHex,
|
|
2384
|
+
formatHsl: color_formatHsl,
|
|
2385
|
+
formatRgb: color_formatRgb,
|
|
2386
|
+
toString: color_formatRgb
|
|
2387
|
+
});
|
|
2388
|
+
|
|
2389
|
+
function color_formatHex() {
|
|
2390
|
+
return this.rgb().formatHex();
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
function color_formatHsl() {
|
|
2394
|
+
return hslConvert(this).formatHsl();
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
function color_formatRgb() {
|
|
2398
|
+
return this.rgb().formatRgb();
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
function color(format) {
|
|
2402
|
+
var m, l;
|
|
2403
|
+
format = (format + "").trim().toLowerCase();
|
|
2404
|
+
return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
|
|
2405
|
+
: l === 3 ? new Rgb(m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, (m & 0xf) << 4 | m & 0xf, 1) // #f00
|
|
2406
|
+
: l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
|
|
2407
|
+
: l === 4 ? rgba(m >> 12 & 0xf | m >> 8 & 0xf0, m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, ((m & 0xf) << 4 | m & 0xf) / 0xff) // #f000
|
|
2408
|
+
: null // invalid hex
|
|
2409
|
+
) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
|
|
2410
|
+
: (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
|
|
2411
|
+
: (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
|
|
2412
|
+
: (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
|
|
2413
|
+
: (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
|
|
2414
|
+
: (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
|
|
2415
|
+
: named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
|
|
2416
|
+
: format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
function rgbn(n) {
|
|
2420
|
+
return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
function rgba(r, g, b, a) {
|
|
2424
|
+
if (a <= 0) r = g = b = NaN;
|
|
2425
|
+
return new Rgb(r, g, b, a);
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
function rgbConvert(o) {
|
|
2429
|
+
if (!(o instanceof Color)) o = color(o);
|
|
2430
|
+
if (!o) return new Rgb();
|
|
2431
|
+
o = o.rgb();
|
|
2432
|
+
return new Rgb(o.r, o.g, o.b, o.opacity);
|
|
2433
|
+
}
|
|
2434
|
+
function rgb(r, g, b, opacity) {
|
|
2435
|
+
return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
|
|
2436
|
+
}
|
|
2437
|
+
function Rgb(r, g, b, opacity) {
|
|
2438
|
+
this.r = +r;
|
|
2439
|
+
this.g = +g;
|
|
2440
|
+
this.b = +b;
|
|
2441
|
+
this.opacity = +opacity;
|
|
2442
|
+
}
|
|
2443
|
+
src_define(Rgb, rgb, extend(Color, {
|
|
2444
|
+
brighter: function brighter(k) {
|
|
2445
|
+
k = k == null ? _brighter : Math.pow(_brighter, k);
|
|
2446
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
2447
|
+
},
|
|
2448
|
+
darker: function darker(k) {
|
|
2449
|
+
k = k == null ? _darker : Math.pow(_darker, k);
|
|
2450
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
2451
|
+
},
|
|
2452
|
+
rgb: function rgb() {
|
|
2453
|
+
return this;
|
|
2454
|
+
},
|
|
2455
|
+
displayable: function displayable() {
|
|
2456
|
+
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
2457
|
+
},
|
|
2458
|
+
hex: rgb_formatHex,
|
|
2459
|
+
// Deprecated! Use color.formatHex.
|
|
2460
|
+
formatHex: rgb_formatHex,
|
|
2461
|
+
formatRgb: rgb_formatRgb,
|
|
2462
|
+
toString: rgb_formatRgb
|
|
2463
|
+
}));
|
|
2464
|
+
|
|
2465
|
+
function rgb_formatHex() {
|
|
2466
|
+
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
function rgb_formatRgb() {
|
|
2470
|
+
var a = this.opacity;
|
|
2471
|
+
a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
|
|
2472
|
+
return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")");
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
function hex(value) {
|
|
2476
|
+
value = Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
2477
|
+
return (value < 16 ? "0" : "") + value.toString(16);
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
function hsla(h, s, l, a) {
|
|
2481
|
+
if (a <= 0) h = s = l = NaN;else if (l <= 0 || l >= 1) h = s = NaN;else if (s <= 0) h = NaN;
|
|
2482
|
+
return new Hsl(h, s, l, a);
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
function hslConvert(o) {
|
|
2486
|
+
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
2487
|
+
if (!(o instanceof Color)) o = color(o);
|
|
2488
|
+
if (!o) return new Hsl();
|
|
2489
|
+
if (o instanceof Hsl) return o;
|
|
2490
|
+
o = o.rgb();
|
|
2491
|
+
var r = o.r / 255,
|
|
2492
|
+
g = o.g / 255,
|
|
2493
|
+
b = o.b / 255,
|
|
2494
|
+
min = Math.min(r, g, b),
|
|
2495
|
+
max = Math.max(r, g, b),
|
|
2496
|
+
h = NaN,
|
|
2497
|
+
s = max - min,
|
|
2498
|
+
l = (max + min) / 2;
|
|
2499
|
+
|
|
2500
|
+
if (s) {
|
|
2501
|
+
if (r === max) h = (g - b) / s + (g < b) * 6;else if (g === max) h = (b - r) / s + 2;else h = (r - g) / s + 4;
|
|
2502
|
+
s /= l < 0.5 ? max + min : 2 - max - min;
|
|
2503
|
+
h *= 60;
|
|
2504
|
+
} else {
|
|
2505
|
+
s = l > 0 && l < 1 ? 0 : h;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
return new Hsl(h, s, l, o.opacity);
|
|
2509
|
+
}
|
|
2510
|
+
function hsl(h, s, l, opacity) {
|
|
2511
|
+
return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
function Hsl(h, s, l, opacity) {
|
|
2515
|
+
this.h = +h;
|
|
2516
|
+
this.s = +s;
|
|
2517
|
+
this.l = +l;
|
|
2518
|
+
this.opacity = +opacity;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
src_define(Hsl, hsl, extend(Color, {
|
|
2522
|
+
brighter: function brighter(k) {
|
|
2523
|
+
k = k == null ? _brighter : Math.pow(_brighter, k);
|
|
2524
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
2525
|
+
},
|
|
2526
|
+
darker: function darker(k) {
|
|
2527
|
+
k = k == null ? _darker : Math.pow(_darker, k);
|
|
2528
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
2529
|
+
},
|
|
2530
|
+
rgb: function rgb() {
|
|
2531
|
+
var h = this.h % 360 + (this.h < 0) * 360,
|
|
2532
|
+
s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
|
|
2533
|
+
l = this.l,
|
|
2534
|
+
m2 = l + (l < 0.5 ? l : 1 - l) * s,
|
|
2535
|
+
m1 = 2 * l - m2;
|
|
2536
|
+
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
|
2537
|
+
},
|
|
2538
|
+
displayable: function displayable() {
|
|
2539
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
2540
|
+
},
|
|
2541
|
+
formatHsl: function formatHsl() {
|
|
2542
|
+
var a = this.opacity;
|
|
2543
|
+
a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
|
|
2544
|
+
return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
2545
|
+
}
|
|
2546
|
+
}));
|
|
2547
|
+
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
2548
|
+
|
|
2549
|
+
function hsl2rgb(h, m1, m2) {
|
|
2550
|
+
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
/***/ }),
|
|
2554
|
+
|
|
2555
|
+
/***/ 1820:
|
|
2556
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2557
|
+
|
|
2558
|
+
"use strict";
|
|
2559
|
+
|
|
2560
|
+
// EXPORTS
|
|
2561
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2562
|
+
"Z": () => (/* binding */ linear_linear)
|
|
2563
|
+
});
|
|
2564
|
+
|
|
2565
|
+
// UNUSED EXPORTS: linearish
|
|
2566
|
+
|
|
2567
|
+
;// CONCATENATED MODULE: ./node_modules/d3-array/src/ticks.js
|
|
2568
|
+
var e10 = Math.sqrt(50),
|
|
2569
|
+
e5 = Math.sqrt(10),
|
|
2570
|
+
e2 = Math.sqrt(2);
|
|
2571
|
+
/* harmony default export */ function ticks(start, stop, count) {
|
|
2572
|
+
var reverse,
|
|
2573
|
+
i = -1,
|
|
2574
|
+
n,
|
|
2575
|
+
ticks,
|
|
2576
|
+
step;
|
|
2577
|
+
stop = +stop, start = +start, count = +count;
|
|
2578
|
+
if (start === stop && count > 0) return [start];
|
|
2579
|
+
if (reverse = stop < start) n = start, start = stop, stop = n;
|
|
2580
|
+
if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
|
|
2581
|
+
|
|
2582
|
+
if (step > 0) {
|
|
2583
|
+
var r0 = Math.round(start / step),
|
|
2584
|
+
r1 = Math.round(stop / step);
|
|
2585
|
+
if (r0 * step < start) ++r0;
|
|
2586
|
+
if (r1 * step > stop) --r1;
|
|
2587
|
+
ticks = new Array(n = r1 - r0 + 1);
|
|
2588
|
+
|
|
2589
|
+
while (++i < n) {
|
|
2590
|
+
ticks[i] = (r0 + i) * step;
|
|
2591
|
+
}
|
|
2592
|
+
} else {
|
|
2593
|
+
step = -step;
|
|
2594
|
+
|
|
2595
|
+
var _r = Math.round(start * step),
|
|
2596
|
+
_r2 = Math.round(stop * step);
|
|
2597
|
+
|
|
2598
|
+
if (_r / step < start) ++_r;
|
|
2599
|
+
if (_r2 / step > stop) --_r2;
|
|
2600
|
+
ticks = new Array(n = _r2 - _r + 1);
|
|
2601
|
+
|
|
2602
|
+
while (++i < n) {
|
|
2603
|
+
ticks[i] = (_r + i) / step;
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
if (reverse) ticks.reverse();
|
|
2608
|
+
return ticks;
|
|
2609
|
+
}
|
|
2610
|
+
function tickIncrement(start, stop, count) {
|
|
2611
|
+
var step = (stop - start) / Math.max(0, count),
|
|
2612
|
+
power = Math.floor(Math.log(step) / Math.LN10),
|
|
2613
|
+
error = step / Math.pow(10, power);
|
|
2614
|
+
return power >= 0 ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
|
|
2615
|
+
}
|
|
2616
|
+
function tickStep(start, stop, count) {
|
|
2617
|
+
var step0 = Math.abs(stop - start) / Math.max(0, count),
|
|
2618
|
+
step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
|
|
2619
|
+
error = step0 / step1;
|
|
2620
|
+
if (error >= e10) step1 *= 10;else if (error >= e5) step1 *= 5;else if (error >= e2) step1 *= 2;
|
|
2621
|
+
return stop < start ? -step1 : step1;
|
|
2622
|
+
}
|
|
2623
|
+
;// CONCATENATED MODULE: ./node_modules/d3-array/src/ascending.js
|
|
2624
|
+
/* harmony default export */ function ascending(a, b) {
|
|
2625
|
+
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
2626
|
+
}
|
|
2627
|
+
;// CONCATENATED MODULE: ./node_modules/d3-array/src/bisector.js
|
|
2628
|
+
|
|
2629
|
+
/* harmony default export */ function bisector(f) {
|
|
2630
|
+
var delta = f;
|
|
2631
|
+
var compare = f;
|
|
2632
|
+
|
|
2633
|
+
if (f.length === 1) {
|
|
2634
|
+
delta = function delta(d, x) {
|
|
2635
|
+
return f(d) - x;
|
|
2636
|
+
};
|
|
2637
|
+
|
|
2638
|
+
compare = ascendingComparator(f);
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
function left(a, x, lo, hi) {
|
|
2642
|
+
if (lo == null) lo = 0;
|
|
2643
|
+
if (hi == null) hi = a.length;
|
|
2644
|
+
|
|
2645
|
+
while (lo < hi) {
|
|
2646
|
+
var mid = lo + hi >>> 1;
|
|
2647
|
+
if (compare(a[mid], x) < 0) lo = mid + 1;else hi = mid;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
return lo;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
function right(a, x, lo, hi) {
|
|
2654
|
+
if (lo == null) lo = 0;
|
|
2655
|
+
if (hi == null) hi = a.length;
|
|
2656
|
+
|
|
2657
|
+
while (lo < hi) {
|
|
2658
|
+
var mid = lo + hi >>> 1;
|
|
2659
|
+
if (compare(a[mid], x) > 0) hi = mid;else lo = mid + 1;
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
return lo;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
function center(a, x, lo, hi) {
|
|
2666
|
+
if (lo == null) lo = 0;
|
|
2667
|
+
if (hi == null) hi = a.length;
|
|
2668
|
+
var i = left(a, x, lo, hi - 1);
|
|
2669
|
+
return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
return {
|
|
2673
|
+
left: left,
|
|
2674
|
+
center: center,
|
|
2675
|
+
right: right
|
|
2676
|
+
};
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
function ascendingComparator(f) {
|
|
2680
|
+
return function (d, x) {
|
|
2681
|
+
return ascending(f(d), x);
|
|
2682
|
+
};
|
|
2683
|
+
}
|
|
2684
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
2685
|
+
var regenerator = __webpack_require__(9673);
|
|
2686
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
2687
|
+
;// CONCATENATED MODULE: ./node_modules/d3-array/src/number.js
|
|
2688
|
+
|
|
2689
|
+
|
|
2690
|
+
var _marked = /*#__PURE__*/regenerator_default().mark(numbers);
|
|
2691
|
+
|
|
2692
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2693
|
+
|
|
2694
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
2695
|
+
|
|
2696
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2697
|
+
|
|
2698
|
+
/* harmony default export */ function number(x) {
|
|
2699
|
+
return x === null ? NaN : +x;
|
|
2700
|
+
}
|
|
2701
|
+
function numbers(values, valueof) {
|
|
2702
|
+
var _iterator, _step, value, index, _iterator2, _step2, _value;
|
|
2703
|
+
|
|
2704
|
+
return regenerator_default().wrap(function numbers$(_context) {
|
|
2705
|
+
while (1) {
|
|
2706
|
+
switch (_context.prev = _context.next) {
|
|
2707
|
+
case 0:
|
|
2708
|
+
if (!(valueof === undefined)) {
|
|
2709
|
+
_context.next = 21;
|
|
2710
|
+
break;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
_iterator = _createForOfIteratorHelper(values);
|
|
2714
|
+
_context.prev = 2;
|
|
2715
|
+
|
|
2716
|
+
_iterator.s();
|
|
2717
|
+
|
|
2718
|
+
case 4:
|
|
2719
|
+
if ((_step = _iterator.n()).done) {
|
|
2720
|
+
_context.next = 11;
|
|
2721
|
+
break;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
value = _step.value;
|
|
2725
|
+
|
|
2726
|
+
if (!(value != null && (value = +value) >= value)) {
|
|
2727
|
+
_context.next = 9;
|
|
2728
|
+
break;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
_context.next = 9;
|
|
2732
|
+
return value;
|
|
2733
|
+
|
|
2734
|
+
case 9:
|
|
2735
|
+
_context.next = 4;
|
|
2736
|
+
break;
|
|
2737
|
+
|
|
2738
|
+
case 11:
|
|
2739
|
+
_context.next = 16;
|
|
2740
|
+
break;
|
|
2741
|
+
|
|
2742
|
+
case 13:
|
|
2743
|
+
_context.prev = 13;
|
|
2744
|
+
_context.t0 = _context["catch"](2);
|
|
2745
|
+
|
|
2746
|
+
_iterator.e(_context.t0);
|
|
2747
|
+
|
|
2748
|
+
case 16:
|
|
2749
|
+
_context.prev = 16;
|
|
2750
|
+
|
|
2751
|
+
_iterator.f();
|
|
2752
|
+
|
|
2753
|
+
return _context.finish(16);
|
|
2754
|
+
|
|
2755
|
+
case 19:
|
|
2756
|
+
_context.next = 40;
|
|
2757
|
+
break;
|
|
2758
|
+
|
|
2759
|
+
case 21:
|
|
2760
|
+
index = -1;
|
|
2761
|
+
_iterator2 = _createForOfIteratorHelper(values);
|
|
2762
|
+
_context.prev = 23;
|
|
2763
|
+
|
|
2764
|
+
_iterator2.s();
|
|
2765
|
+
|
|
2766
|
+
case 25:
|
|
2767
|
+
if ((_step2 = _iterator2.n()).done) {
|
|
2768
|
+
_context.next = 32;
|
|
2769
|
+
break;
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
_value = _step2.value;
|
|
2773
|
+
|
|
2774
|
+
if (!((_value = valueof(_value, ++index, values)) != null && (_value = +_value) >= _value)) {
|
|
2775
|
+
_context.next = 30;
|
|
2776
|
+
break;
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
_context.next = 30;
|
|
2780
|
+
return _value;
|
|
2781
|
+
|
|
2782
|
+
case 30:
|
|
2783
|
+
_context.next = 25;
|
|
2784
|
+
break;
|
|
2785
|
+
|
|
2786
|
+
case 32:
|
|
2787
|
+
_context.next = 37;
|
|
2788
|
+
break;
|
|
2789
|
+
|
|
2790
|
+
case 34:
|
|
2791
|
+
_context.prev = 34;
|
|
2792
|
+
_context.t1 = _context["catch"](23);
|
|
2793
|
+
|
|
2794
|
+
_iterator2.e(_context.t1);
|
|
2795
|
+
|
|
2796
|
+
case 37:
|
|
2797
|
+
_context.prev = 37;
|
|
2798
|
+
|
|
2799
|
+
_iterator2.f();
|
|
2800
|
+
|
|
2801
|
+
return _context.finish(37);
|
|
2802
|
+
|
|
2803
|
+
case 40:
|
|
2804
|
+
case "end":
|
|
2805
|
+
return _context.stop();
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
}, _marked, null, [[2, 13, 16, 19], [23, 34, 37, 40]]);
|
|
2809
|
+
}
|
|
2810
|
+
;// CONCATENATED MODULE: ./node_modules/d3-array/src/bisect.js
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
var ascendingBisect = bisector(ascending);
|
|
2815
|
+
var bisectRight = ascendingBisect.right;
|
|
2816
|
+
var bisectLeft = ascendingBisect.left;
|
|
2817
|
+
var bisectCenter = bisector(number).center;
|
|
2818
|
+
/* harmony default export */ const bisect = (bisectRight);
|
|
2819
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2820
|
+
var esm_typeof = __webpack_require__(4329);
|
|
2821
|
+
// EXTERNAL MODULE: ./node_modules/d3-color/src/color.js + 1 modules
|
|
2822
|
+
var src_color = __webpack_require__(2766);
|
|
2823
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/basis.js
|
|
2824
|
+
function basis(t1, v0, v1, v2, v3) {
|
|
2825
|
+
var t2 = t1 * t1,
|
|
2826
|
+
t3 = t2 * t1;
|
|
2827
|
+
return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6;
|
|
2828
|
+
}
|
|
2829
|
+
/* harmony default export */ function src_basis(values) {
|
|
2830
|
+
var n = values.length - 1;
|
|
2831
|
+
return function (t) {
|
|
2832
|
+
var i = t <= 0 ? t = 0 : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
|
|
2833
|
+
v1 = values[i],
|
|
2834
|
+
v2 = values[i + 1],
|
|
2835
|
+
v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
|
|
2836
|
+
v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
|
|
2837
|
+
return basis((t - i / n) * n, v0, v1, v2, v3);
|
|
2838
|
+
};
|
|
2839
|
+
}
|
|
2840
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/basisClosed.js
|
|
2841
|
+
|
|
2842
|
+
/* harmony default export */ function basisClosed(values) {
|
|
2843
|
+
var n = values.length;
|
|
2844
|
+
return function (t) {
|
|
2845
|
+
var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
|
|
2846
|
+
v0 = values[(i + n - 1) % n],
|
|
2847
|
+
v1 = values[i % n],
|
|
2848
|
+
v2 = values[(i + 1) % n],
|
|
2849
|
+
v3 = values[(i + 2) % n];
|
|
2850
|
+
return basis((t - i / n) * n, v0, v1, v2, v3);
|
|
2851
|
+
};
|
|
2852
|
+
}
|
|
2853
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/constant.js
|
|
2854
|
+
/* harmony default export */ const src_constant = (function (x) {
|
|
2855
|
+
return function () {
|
|
2856
|
+
return x;
|
|
2857
|
+
};
|
|
2858
|
+
});
|
|
2859
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/color.js
|
|
2860
|
+
|
|
2861
|
+
|
|
2862
|
+
function linear(a, d) {
|
|
2863
|
+
return function (t) {
|
|
2864
|
+
return a + t * d;
|
|
2865
|
+
};
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
function exponential(a, b, y) {
|
|
2869
|
+
return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function (t) {
|
|
2870
|
+
return Math.pow(a + t * b, y);
|
|
2871
|
+
};
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
function hue(a, b) {
|
|
2875
|
+
var d = b - a;
|
|
2876
|
+
return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);
|
|
2877
|
+
}
|
|
2878
|
+
function gamma(y) {
|
|
2879
|
+
return (y = +y) === 1 ? nogamma : function (a, b) {
|
|
2880
|
+
return b - a ? exponential(a, b, y) : src_constant(isNaN(a) ? b : a);
|
|
2881
|
+
};
|
|
2882
|
+
}
|
|
2883
|
+
function nogamma(a, b) {
|
|
2884
|
+
var d = b - a;
|
|
2885
|
+
return d ? linear(a, d) : src_constant(isNaN(a) ? b : a);
|
|
2886
|
+
}
|
|
2887
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/rgb.js
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
/* harmony default export */ const rgb = ((function rgbGamma(y) {
|
|
2893
|
+
var color = gamma(y);
|
|
2894
|
+
|
|
2895
|
+
function rgb(start, end) {
|
|
2896
|
+
var r = color((start = (0,src_color/* rgb */.B8)(start)).r, (end = (0,src_color/* rgb */.B8)(end)).r),
|
|
2897
|
+
g = color(start.g, end.g),
|
|
2898
|
+
b = color(start.b, end.b),
|
|
2899
|
+
opacity = nogamma(start.opacity, end.opacity);
|
|
2900
|
+
return function (t) {
|
|
2901
|
+
start.r = r(t);
|
|
2902
|
+
start.g = g(t);
|
|
2903
|
+
start.b = b(t);
|
|
2904
|
+
start.opacity = opacity(t);
|
|
2905
|
+
return start + "";
|
|
2906
|
+
};
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
rgb.gamma = rgbGamma;
|
|
2910
|
+
return rgb;
|
|
2911
|
+
})(1));
|
|
2912
|
+
|
|
2913
|
+
function rgbSpline(spline) {
|
|
2914
|
+
return function (colors) {
|
|
2915
|
+
var n = colors.length,
|
|
2916
|
+
r = new Array(n),
|
|
2917
|
+
g = new Array(n),
|
|
2918
|
+
b = new Array(n),
|
|
2919
|
+
i,
|
|
2920
|
+
color;
|
|
2921
|
+
|
|
2922
|
+
for (i = 0; i < n; ++i) {
|
|
2923
|
+
color = (0,src_color/* rgb */.B8)(colors[i]);
|
|
2924
|
+
r[i] = color.r || 0;
|
|
2925
|
+
g[i] = color.g || 0;
|
|
2926
|
+
b[i] = color.b || 0;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
r = spline(r);
|
|
2930
|
+
g = spline(g);
|
|
2931
|
+
b = spline(b);
|
|
2932
|
+
color.opacity = 1;
|
|
2933
|
+
return function (t) {
|
|
2934
|
+
color.r = r(t);
|
|
2935
|
+
color.g = g(t);
|
|
2936
|
+
color.b = b(t);
|
|
2937
|
+
return color + "";
|
|
2938
|
+
};
|
|
2939
|
+
};
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
var rgbBasis = rgbSpline(src_basis);
|
|
2943
|
+
var rgbBasisClosed = rgbSpline(basisClosed);
|
|
2944
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/array.js
|
|
2945
|
+
|
|
2946
|
+
|
|
2947
|
+
/* harmony default export */ function array(a, b) {
|
|
2948
|
+
return (isNumberArray(b) ? numberArray : genericArray)(a, b);
|
|
2949
|
+
}
|
|
2950
|
+
function genericArray(a, b) {
|
|
2951
|
+
var nb = b ? b.length : 0,
|
|
2952
|
+
na = a ? Math.min(nb, a.length) : 0,
|
|
2953
|
+
x = new Array(na),
|
|
2954
|
+
c = new Array(nb),
|
|
2955
|
+
i;
|
|
2956
|
+
|
|
2957
|
+
for (i = 0; i < na; ++i) {
|
|
2958
|
+
x[i] = value(a[i], b[i]);
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
for (; i < nb; ++i) {
|
|
2962
|
+
c[i] = b[i];
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
return function (t) {
|
|
2966
|
+
for (i = 0; i < na; ++i) {
|
|
2967
|
+
c[i] = x[i](t);
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
return c;
|
|
2971
|
+
};
|
|
2972
|
+
}
|
|
2973
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/date.js
|
|
2974
|
+
/* harmony default export */ function date(a, b) {
|
|
2975
|
+
var d = new Date();
|
|
2976
|
+
return a = +a, b = +b, function (t) {
|
|
2977
|
+
return d.setTime(a * (1 - t) + b * t), d;
|
|
2978
|
+
};
|
|
2979
|
+
}
|
|
2980
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/number.js
|
|
2981
|
+
/* harmony default export */ function src_number(a, b) {
|
|
2982
|
+
return a = +a, b = +b, function (t) {
|
|
2983
|
+
return a * (1 - t) + b * t;
|
|
2984
|
+
};
|
|
2985
|
+
}
|
|
2986
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/object.js
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
/* harmony default export */ function object(a, b) {
|
|
2990
|
+
var i = {},
|
|
2991
|
+
c = {},
|
|
2992
|
+
k;
|
|
2993
|
+
if (a === null || (0,esm_typeof/* default */.Z)(a) !== "object") a = {};
|
|
2994
|
+
if (b === null || (0,esm_typeof/* default */.Z)(b) !== "object") b = {};
|
|
2995
|
+
|
|
2996
|
+
for (k in b) {
|
|
2997
|
+
if (k in a) {
|
|
2998
|
+
i[k] = value(a[k], b[k]);
|
|
2999
|
+
} else {
|
|
3000
|
+
c[k] = b[k];
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
return function (t) {
|
|
3005
|
+
for (k in i) {
|
|
3006
|
+
c[k] = i[k](t);
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
return c;
|
|
3010
|
+
};
|
|
3011
|
+
}
|
|
3012
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/string.js
|
|
3013
|
+
|
|
3014
|
+
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
|
|
3015
|
+
reB = new RegExp(reA.source, "g");
|
|
3016
|
+
|
|
3017
|
+
function zero(b) {
|
|
3018
|
+
return function () {
|
|
3019
|
+
return b;
|
|
3020
|
+
};
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
function one(b) {
|
|
3024
|
+
return function (t) {
|
|
3025
|
+
return b(t) + "";
|
|
3026
|
+
};
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
/* harmony default export */ function string(a, b) {
|
|
3030
|
+
var bi = reA.lastIndex = reB.lastIndex = 0,
|
|
3031
|
+
// scan index for next number in b
|
|
3032
|
+
am,
|
|
3033
|
+
// current match in a
|
|
3034
|
+
bm,
|
|
3035
|
+
// current match in b
|
|
3036
|
+
bs,
|
|
3037
|
+
// string preceding current number in b, if any
|
|
3038
|
+
i = -1,
|
|
3039
|
+
// index in s
|
|
3040
|
+
s = [],
|
|
3041
|
+
// string constants and placeholders
|
|
3042
|
+
q = []; // number interpolators
|
|
3043
|
+
// Coerce inputs to strings.
|
|
3044
|
+
|
|
3045
|
+
a = a + "", b = b + ""; // Interpolate pairs of numbers in a & b.
|
|
3046
|
+
|
|
3047
|
+
while ((am = reA.exec(a)) && (bm = reB.exec(b))) {
|
|
3048
|
+
if ((bs = bm.index) > bi) {
|
|
3049
|
+
// a string precedes the next number in b
|
|
3050
|
+
bs = b.slice(bi, bs);
|
|
3051
|
+
if (s[i]) s[i] += bs; // coalesce with previous string
|
|
3052
|
+
else s[++i] = bs;
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
if ((am = am[0]) === (bm = bm[0])) {
|
|
3056
|
+
// numbers in a & b match
|
|
3057
|
+
if (s[i]) s[i] += bm; // coalesce with previous string
|
|
3058
|
+
else s[++i] = bm;
|
|
3059
|
+
} else {
|
|
3060
|
+
// interpolate non-matching numbers
|
|
3061
|
+
s[++i] = null;
|
|
3062
|
+
q.push({
|
|
3063
|
+
i: i,
|
|
3064
|
+
x: src_number(am, bm)
|
|
3065
|
+
});
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
bi = reB.lastIndex;
|
|
3069
|
+
} // Add remains of b.
|
|
3070
|
+
|
|
3071
|
+
|
|
3072
|
+
if (bi < b.length) {
|
|
3073
|
+
bs = b.slice(bi);
|
|
3074
|
+
if (s[i]) s[i] += bs; // coalesce with previous string
|
|
3075
|
+
else s[++i] = bs;
|
|
3076
|
+
} // Special optimization for only a single match.
|
|
3077
|
+
// Otherwise, interpolate each of the numbers and rejoin the string.
|
|
3078
|
+
|
|
3079
|
+
|
|
3080
|
+
return s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function (t) {
|
|
3081
|
+
for (var i = 0, o; i < b; ++i) {
|
|
3082
|
+
s[(o = q[i]).i] = o.x(t);
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
return s.join("");
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
3088
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/numberArray.js
|
|
3089
|
+
/* harmony default export */ function src_numberArray(a, b) {
|
|
3090
|
+
if (!b) b = [];
|
|
3091
|
+
var n = a ? Math.min(b.length, a.length) : 0,
|
|
3092
|
+
c = b.slice(),
|
|
3093
|
+
i;
|
|
3094
|
+
return function (t) {
|
|
3095
|
+
for (i = 0; i < n; ++i) {
|
|
3096
|
+
c[i] = a[i] * (1 - t) + b[i] * t;
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
return c;
|
|
3100
|
+
};
|
|
3101
|
+
}
|
|
3102
|
+
function numberArray_isNumberArray(x) {
|
|
3103
|
+
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
3104
|
+
}
|
|
3105
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/value.js
|
|
3106
|
+
|
|
3107
|
+
|
|
3108
|
+
|
|
3109
|
+
|
|
3110
|
+
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
|
|
3114
|
+
|
|
3115
|
+
|
|
3116
|
+
/* harmony default export */ function value(a, b) {
|
|
3117
|
+
var t = (0,esm_typeof/* default */.Z)(b),
|
|
3118
|
+
c;
|
|
3119
|
+
|
|
3120
|
+
return b == null || t === "boolean" ? src_constant(b) : (t === "number" ? src_number : t === "string" ? (c = (0,src_color/* default */.ZP)(b)) ? (b = c, rgb) : string : b instanceof src_color/* default */.ZP ? rgb : b instanceof Date ? date : numberArray_isNumberArray(b) ? src_numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object : src_number)(a, b);
|
|
3121
|
+
}
|
|
3122
|
+
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/round.js
|
|
3123
|
+
/* harmony default export */ function round(a, b) {
|
|
3124
|
+
return a = +a, b = +b, function (t) {
|
|
3125
|
+
return Math.round(a * (1 - t) + b * t);
|
|
3126
|
+
};
|
|
3127
|
+
}
|
|
3128
|
+
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/constant.js
|
|
3129
|
+
function constants(x) {
|
|
3130
|
+
return function () {
|
|
3131
|
+
return x;
|
|
3132
|
+
};
|
|
3133
|
+
}
|
|
3134
|
+
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/number.js
|
|
3135
|
+
function number_number(x) {
|
|
3136
|
+
return +x;
|
|
3137
|
+
}
|
|
3138
|
+
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/continuous.js
|
|
3139
|
+
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
var unit = [0, 1];
|
|
3144
|
+
function identity(x) {
|
|
3145
|
+
return x;
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
function normalize(a, b) {
|
|
3149
|
+
return (b -= a = +a) ? function (x) {
|
|
3150
|
+
return (x - a) / b;
|
|
3151
|
+
} : constants(isNaN(b) ? NaN : 0.5);
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
function clamper(a, b) {
|
|
3155
|
+
var t;
|
|
3156
|
+
if (a > b) t = a, a = b, b = t;
|
|
3157
|
+
return function (x) {
|
|
3158
|
+
return Math.max(a, Math.min(b, x));
|
|
3159
|
+
};
|
|
3160
|
+
} // normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
|
|
3161
|
+
// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
|
|
3162
|
+
|
|
3163
|
+
|
|
3164
|
+
function bimap(domain, range, interpolate) {
|
|
3165
|
+
var d0 = domain[0],
|
|
3166
|
+
d1 = domain[1],
|
|
3167
|
+
r0 = range[0],
|
|
3168
|
+
r1 = range[1];
|
|
3169
|
+
if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
|
|
3170
|
+
return function (x) {
|
|
3171
|
+
return r0(d0(x));
|
|
3172
|
+
};
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
function polymap(domain, range, interpolate) {
|
|
3176
|
+
var j = Math.min(domain.length, range.length) - 1,
|
|
3177
|
+
d = new Array(j),
|
|
3178
|
+
r = new Array(j),
|
|
3179
|
+
i = -1; // Reverse descending domains.
|
|
3180
|
+
|
|
3181
|
+
if (domain[j] < domain[0]) {
|
|
3182
|
+
domain = domain.slice().reverse();
|
|
3183
|
+
range = range.slice().reverse();
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
while (++i < j) {
|
|
3187
|
+
d[i] = normalize(domain[i], domain[i + 1]);
|
|
3188
|
+
r[i] = interpolate(range[i], range[i + 1]);
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
return function (x) {
|
|
3192
|
+
var i = bisect(domain, x, 1, j) - 1;
|
|
3193
|
+
return r[i](d[i](x));
|
|
3194
|
+
};
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
function copy(source, target) {
|
|
3198
|
+
return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());
|
|
3199
|
+
}
|
|
3200
|
+
function transformer() {
|
|
3201
|
+
var domain = unit,
|
|
3202
|
+
range = unit,
|
|
3203
|
+
interpolate = value,
|
|
3204
|
+
transform,
|
|
3205
|
+
untransform,
|
|
3206
|
+
unknown,
|
|
3207
|
+
clamp = identity,
|
|
3208
|
+
piecewise,
|
|
3209
|
+
output,
|
|
3210
|
+
input;
|
|
3211
|
+
|
|
3212
|
+
function rescale() {
|
|
3213
|
+
var n = Math.min(domain.length, range.length);
|
|
3214
|
+
if (clamp !== identity) clamp = clamper(domain[0], domain[n - 1]);
|
|
3215
|
+
piecewise = n > 2 ? polymap : bimap;
|
|
3216
|
+
output = input = null;
|
|
3217
|
+
return scale;
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3220
|
+
function scale(x) {
|
|
3221
|
+
return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
scale.invert = function (y) {
|
|
3225
|
+
return clamp(untransform((input || (input = piecewise(range, domain.map(transform), src_number)))(y)));
|
|
3226
|
+
};
|
|
3227
|
+
|
|
3228
|
+
scale.domain = function (_) {
|
|
3229
|
+
return arguments.length ? (domain = Array.from(_, number_number), rescale()) : domain.slice();
|
|
3230
|
+
};
|
|
3231
|
+
|
|
3232
|
+
scale.range = function (_) {
|
|
3233
|
+
return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
|
|
3234
|
+
};
|
|
3235
|
+
|
|
3236
|
+
scale.rangeRound = function (_) {
|
|
3237
|
+
return range = Array.from(_), interpolate = round, rescale();
|
|
3238
|
+
};
|
|
3239
|
+
|
|
3240
|
+
scale.clamp = function (_) {
|
|
3241
|
+
return arguments.length ? (clamp = _ ? true : identity, rescale()) : clamp !== identity;
|
|
3242
|
+
};
|
|
3243
|
+
|
|
3244
|
+
scale.interpolate = function (_) {
|
|
3245
|
+
return arguments.length ? (interpolate = _, rescale()) : interpolate;
|
|
3246
|
+
};
|
|
3247
|
+
|
|
3248
|
+
scale.unknown = function (_) {
|
|
3249
|
+
return arguments.length ? (unknown = _, scale) : unknown;
|
|
3250
|
+
};
|
|
3251
|
+
|
|
3252
|
+
return function (t, u) {
|
|
3253
|
+
transform = t, untransform = u;
|
|
3254
|
+
return rescale();
|
|
3255
|
+
};
|
|
3256
|
+
}
|
|
3257
|
+
function continuous() {
|
|
3258
|
+
return transformer()(identity, identity);
|
|
3259
|
+
}
|
|
3260
|
+
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/init.js
|
|
3261
|
+
function initRange(domain, range) {
|
|
3262
|
+
switch (arguments.length) {
|
|
3263
|
+
case 0:
|
|
3264
|
+
break;
|
|
3265
|
+
|
|
3266
|
+
case 1:
|
|
3267
|
+
this.range(domain);
|
|
3268
|
+
break;
|
|
3269
|
+
|
|
3270
|
+
default:
|
|
3271
|
+
this.range(range).domain(domain);
|
|
3272
|
+
break;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
return this;
|
|
3276
|
+
}
|
|
3277
|
+
function initInterpolator(domain, interpolator) {
|
|
3278
|
+
switch (arguments.length) {
|
|
3279
|
+
case 0:
|
|
3280
|
+
break;
|
|
3281
|
+
|
|
3282
|
+
case 1:
|
|
3283
|
+
{
|
|
3284
|
+
if (typeof domain === "function") this.interpolator(domain);else this.range(domain);
|
|
3285
|
+
break;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
default:
|
|
3289
|
+
{
|
|
3290
|
+
this.domain(domain);
|
|
3291
|
+
if (typeof interpolator === "function") this.interpolator(interpolator);else this.range(interpolator);
|
|
3292
|
+
break;
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
return this;
|
|
3297
|
+
}
|
|
3298
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatSpecifier.js
|
|
3299
|
+
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
3300
|
+
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
3301
|
+
function formatSpecifier(specifier) {
|
|
3302
|
+
if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
|
|
3303
|
+
var match;
|
|
3304
|
+
return new FormatSpecifier({
|
|
3305
|
+
fill: match[1],
|
|
3306
|
+
align: match[2],
|
|
3307
|
+
sign: match[3],
|
|
3308
|
+
symbol: match[4],
|
|
3309
|
+
zero: match[5],
|
|
3310
|
+
width: match[6],
|
|
3311
|
+
comma: match[7],
|
|
3312
|
+
precision: match[8] && match[8].slice(1),
|
|
3313
|
+
trim: match[9],
|
|
3314
|
+
type: match[10]
|
|
3315
|
+
});
|
|
3316
|
+
}
|
|
3317
|
+
formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
|
|
3318
|
+
|
|
3319
|
+
function FormatSpecifier(specifier) {
|
|
3320
|
+
this.fill = specifier.fill === undefined ? " " : specifier.fill + "";
|
|
3321
|
+
this.align = specifier.align === undefined ? ">" : specifier.align + "";
|
|
3322
|
+
this.sign = specifier.sign === undefined ? "-" : specifier.sign + "";
|
|
3323
|
+
this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + "";
|
|
3324
|
+
this.zero = !!specifier.zero;
|
|
3325
|
+
this.width = specifier.width === undefined ? undefined : +specifier.width;
|
|
3326
|
+
this.comma = !!specifier.comma;
|
|
3327
|
+
this.precision = specifier.precision === undefined ? undefined : +specifier.precision;
|
|
3328
|
+
this.trim = !!specifier.trim;
|
|
3329
|
+
this.type = specifier.type === undefined ? "" : specifier.type + "";
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
FormatSpecifier.prototype.toString = function () {
|
|
3333
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === undefined ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === undefined ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
3334
|
+
};
|
|
3335
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatDecimal.js
|
|
3336
|
+
/* harmony default export */ function formatDecimal(x) {
|
|
3337
|
+
return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
|
|
3338
|
+
} // Computes the decimal coefficient and exponent of the specified number x with
|
|
3339
|
+
// significant digits p, where x is positive and p is in [1, 21] or undefined.
|
|
3340
|
+
// For example, formatDecimalParts(1.23) returns ["123", 0].
|
|
3341
|
+
|
|
3342
|
+
function formatDecimalParts(x, p) {
|
|
3343
|
+
if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
|
|
3344
|
+
|
|
3345
|
+
var i,
|
|
3346
|
+
coefficient = x.slice(0, i); // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
|
|
3347
|
+
// (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
|
|
3348
|
+
|
|
3349
|
+
return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1)];
|
|
3350
|
+
}
|
|
3351
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/exponent.js
|
|
3352
|
+
|
|
3353
|
+
/* harmony default export */ function exponent(x) {
|
|
3354
|
+
return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
|
|
3355
|
+
}
|
|
3356
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionPrefix.js
|
|
3357
|
+
|
|
3358
|
+
/* harmony default export */ function precisionPrefix(step, value) {
|
|
3359
|
+
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
|
|
3360
|
+
}
|
|
3361
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatGroup.js
|
|
3362
|
+
/* harmony default export */ function formatGroup(grouping, thousands) {
|
|
3363
|
+
return function (value, width) {
|
|
3364
|
+
var i = value.length,
|
|
3365
|
+
t = [],
|
|
3366
|
+
j = 0,
|
|
3367
|
+
g = grouping[0],
|
|
3368
|
+
length = 0;
|
|
3369
|
+
|
|
3370
|
+
while (i > 0 && g > 0) {
|
|
3371
|
+
if (length + g + 1 > width) g = Math.max(1, width - length);
|
|
3372
|
+
t.push(value.substring(i -= g, i + g));
|
|
3373
|
+
if ((length += g + 1) > width) break;
|
|
3374
|
+
g = grouping[j = (j + 1) % grouping.length];
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
return t.reverse().join(thousands);
|
|
3378
|
+
};
|
|
3379
|
+
}
|
|
3380
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatNumerals.js
|
|
3381
|
+
/* harmony default export */ function formatNumerals(numerals) {
|
|
3382
|
+
return function (value) {
|
|
3383
|
+
return value.replace(/[0-9]/g, function (i) {
|
|
3384
|
+
return numerals[+i];
|
|
3385
|
+
});
|
|
3386
|
+
};
|
|
3387
|
+
}
|
|
3388
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTrim.js
|
|
3389
|
+
// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
|
|
3390
|
+
/* harmony default export */ function formatTrim(s) {
|
|
3391
|
+
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
|
|
3392
|
+
switch (s[i]) {
|
|
3393
|
+
case ".":
|
|
3394
|
+
i0 = i1 = i;
|
|
3395
|
+
break;
|
|
3396
|
+
|
|
3397
|
+
case "0":
|
|
3398
|
+
if (i0 === 0) i0 = i;
|
|
3399
|
+
i1 = i;
|
|
3400
|
+
break;
|
|
3401
|
+
|
|
3402
|
+
default:
|
|
3403
|
+
if (!+s[i]) break out;
|
|
3404
|
+
if (i0 > 0) i0 = 0;
|
|
3405
|
+
break;
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3409
|
+
return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
|
|
3410
|
+
}
|
|
3411
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatPrefixAuto.js
|
|
3412
|
+
|
|
3413
|
+
var prefixExponent;
|
|
3414
|
+
/* harmony default export */ function formatPrefixAuto(x, p) {
|
|
3415
|
+
var d = formatDecimalParts(x, p);
|
|
3416
|
+
if (!d) return x + "";
|
|
3417
|
+
var coefficient = d[0],
|
|
3418
|
+
exponent = d[1],
|
|
3419
|
+
i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
|
|
3420
|
+
n = coefficient.length;
|
|
3421
|
+
return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!
|
|
3422
|
+
}
|
|
3423
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatRounded.js
|
|
3424
|
+
|
|
3425
|
+
/* harmony default export */ function formatRounded(x, p) {
|
|
3426
|
+
var d = formatDecimalParts(x, p);
|
|
3427
|
+
if (!d) return x + "";
|
|
3428
|
+
var coefficient = d[0],
|
|
3429
|
+
exponent = d[1];
|
|
3430
|
+
return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
|
|
3431
|
+
}
|
|
3432
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTypes.js
|
|
3433
|
+
|
|
3434
|
+
|
|
3435
|
+
|
|
3436
|
+
/* harmony default export */ const formatTypes = ({
|
|
3437
|
+
"%": function _(x, p) {
|
|
3438
|
+
return (x * 100).toFixed(p);
|
|
3439
|
+
},
|
|
3440
|
+
"b": function b(x) {
|
|
3441
|
+
return Math.round(x).toString(2);
|
|
3442
|
+
},
|
|
3443
|
+
"c": function c(x) {
|
|
3444
|
+
return x + "";
|
|
3445
|
+
},
|
|
3446
|
+
"d": formatDecimal,
|
|
3447
|
+
"e": function e(x, p) {
|
|
3448
|
+
return x.toExponential(p);
|
|
3449
|
+
},
|
|
3450
|
+
"f": function f(x, p) {
|
|
3451
|
+
return x.toFixed(p);
|
|
3452
|
+
},
|
|
3453
|
+
"g": function g(x, p) {
|
|
3454
|
+
return x.toPrecision(p);
|
|
3455
|
+
},
|
|
3456
|
+
"o": function o(x) {
|
|
3457
|
+
return Math.round(x).toString(8);
|
|
3458
|
+
},
|
|
3459
|
+
"p": function p(x, _p) {
|
|
3460
|
+
return formatRounded(x * 100, _p);
|
|
3461
|
+
},
|
|
3462
|
+
"r": formatRounded,
|
|
3463
|
+
"s": formatPrefixAuto,
|
|
3464
|
+
"X": function X(x) {
|
|
3465
|
+
return Math.round(x).toString(16).toUpperCase();
|
|
3466
|
+
},
|
|
3467
|
+
"x": function x(_x) {
|
|
3468
|
+
return Math.round(_x).toString(16);
|
|
3469
|
+
}
|
|
3470
|
+
});
|
|
3471
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/identity.js
|
|
3472
|
+
/* harmony default export */ function src_identity(x) {
|
|
3473
|
+
return x;
|
|
3474
|
+
}
|
|
3475
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/locale.js
|
|
3476
|
+
|
|
3477
|
+
|
|
3478
|
+
|
|
3479
|
+
|
|
3480
|
+
|
|
3481
|
+
|
|
3482
|
+
|
|
3483
|
+
|
|
3484
|
+
var map = Array.prototype.map,
|
|
3485
|
+
prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
3486
|
+
/* harmony default export */ function locale(locale) {
|
|
3487
|
+
var group = locale.grouping === undefined || locale.thousands === undefined ? src_identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
|
|
3488
|
+
currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
|
|
3489
|
+
currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
|
|
3490
|
+
decimal = locale.decimal === undefined ? "." : locale.decimal + "",
|
|
3491
|
+
numerals = locale.numerals === undefined ? src_identity : formatNumerals(map.call(locale.numerals, String)),
|
|
3492
|
+
percent = locale.percent === undefined ? "%" : locale.percent + "",
|
|
3493
|
+
minus = locale.minus === undefined ? "−" : locale.minus + "",
|
|
3494
|
+
nan = locale.nan === undefined ? "NaN" : locale.nan + "";
|
|
3495
|
+
|
|
3496
|
+
function newFormat(specifier) {
|
|
3497
|
+
specifier = formatSpecifier(specifier);
|
|
3498
|
+
var fill = specifier.fill,
|
|
3499
|
+
align = specifier.align,
|
|
3500
|
+
sign = specifier.sign,
|
|
3501
|
+
symbol = specifier.symbol,
|
|
3502
|
+
zero = specifier.zero,
|
|
3503
|
+
width = specifier.width,
|
|
3504
|
+
comma = specifier.comma,
|
|
3505
|
+
precision = specifier.precision,
|
|
3506
|
+
trim = specifier.trim,
|
|
3507
|
+
type = specifier.type; // The "n" type is an alias for ",g".
|
|
3508
|
+
|
|
3509
|
+
if (type === "n") comma = true, type = "g"; // The "" type, and any invalid type, is an alias for ".12~g".
|
|
3510
|
+
else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = "g"; // If zero fill is specified, padding goes after sign and before digits.
|
|
3511
|
+
|
|
3512
|
+
if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "="; // Compute the prefix and suffix.
|
|
3513
|
+
// For SI-prefix, the suffix is lazily computed.
|
|
3514
|
+
|
|
3515
|
+
var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
|
|
3516
|
+
suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : ""; // What format function should we use?
|
|
3517
|
+
// Is this an integer type?
|
|
3518
|
+
// Can this type generate exponential notation?
|
|
3519
|
+
|
|
3520
|
+
var formatType = formatTypes[type],
|
|
3521
|
+
maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified,
|
|
3522
|
+
// or clamp the specified precision to the supported range.
|
|
3523
|
+
// For significant precision, it must be in [1, 21].
|
|
3524
|
+
// For fixed precision, it must be in [0, 20].
|
|
3525
|
+
|
|
3526
|
+
precision = precision === undefined ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
|
|
3527
|
+
|
|
3528
|
+
function format(value) {
|
|
3529
|
+
var valuePrefix = prefix,
|
|
3530
|
+
valueSuffix = suffix,
|
|
3531
|
+
i,
|
|
3532
|
+
n,
|
|
3533
|
+
c;
|
|
3534
|
+
|
|
3535
|
+
if (type === "c") {
|
|
3536
|
+
valueSuffix = formatType(value) + valueSuffix;
|
|
3537
|
+
value = "";
|
|
3538
|
+
} else {
|
|
3539
|
+
value = +value; // Determine the sign. -0 is not less than 0, but 1 / -0 is!
|
|
3540
|
+
|
|
3541
|
+
var valueNegative = value < 0 || 1 / value < 0; // Perform the initial formatting.
|
|
3542
|
+
|
|
3543
|
+
value = isNaN(value) ? nan : formatType(Math.abs(value), precision); // Trim insignificant zeros.
|
|
3544
|
+
|
|
3545
|
+
if (trim) value = formatTrim(value); // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
|
|
3546
|
+
|
|
3547
|
+
if (valueNegative && +value === 0 && sign !== "+") valueNegative = false; // Compute the prefix and suffix.
|
|
3548
|
+
|
|
3549
|
+
valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
|
|
3550
|
+
valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); // Break the formatted value into the integer “value” part that can be
|
|
3551
|
+
// grouped, and fractional or exponential “suffix” part that is not.
|
|
3552
|
+
|
|
3553
|
+
if (maybeSuffix) {
|
|
3554
|
+
i = -1, n = value.length;
|
|
3555
|
+
|
|
3556
|
+
while (++i < n) {
|
|
3557
|
+
if (c = value.charCodeAt(i), 48 > c || c > 57) {
|
|
3558
|
+
valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
|
|
3559
|
+
value = value.slice(0, i);
|
|
3560
|
+
break;
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
} // If the fill character is not "0", grouping is applied before padding.
|
|
3565
|
+
|
|
3566
|
+
|
|
3567
|
+
if (comma && !zero) value = group(value, Infinity); // Compute the padding.
|
|
3568
|
+
|
|
3569
|
+
var length = valuePrefix.length + value.length + valueSuffix.length,
|
|
3570
|
+
padding = length < width ? new Array(width - length + 1).join(fill) : ""; // If the fill character is "0", grouping is applied after padding.
|
|
3571
|
+
|
|
3572
|
+
if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; // Reconstruct the final output based on the desired alignment.
|
|
3573
|
+
|
|
3574
|
+
switch (align) {
|
|
3575
|
+
case "<":
|
|
3576
|
+
value = valuePrefix + value + valueSuffix + padding;
|
|
3577
|
+
break;
|
|
3578
|
+
|
|
3579
|
+
case "=":
|
|
3580
|
+
value = valuePrefix + padding + value + valueSuffix;
|
|
3581
|
+
break;
|
|
3582
|
+
|
|
3583
|
+
case "^":
|
|
3584
|
+
value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
|
|
3585
|
+
break;
|
|
3586
|
+
|
|
3587
|
+
default:
|
|
3588
|
+
value = padding + valuePrefix + value + valueSuffix;
|
|
3589
|
+
break;
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3592
|
+
return numerals(value);
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
format.toString = function () {
|
|
3596
|
+
return specifier + "";
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
return format;
|
|
3600
|
+
}
|
|
3601
|
+
|
|
3602
|
+
function formatPrefix(specifier, value) {
|
|
3603
|
+
var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
|
|
3604
|
+
e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
|
|
3605
|
+
k = Math.pow(10, -e),
|
|
3606
|
+
prefix = prefixes[8 + e / 3];
|
|
3607
|
+
return function (value) {
|
|
3608
|
+
return f(k * value) + prefix;
|
|
3609
|
+
};
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
return {
|
|
3613
|
+
format: newFormat,
|
|
3614
|
+
formatPrefix: formatPrefix
|
|
3615
|
+
};
|
|
3616
|
+
}
|
|
3617
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/defaultLocale.js
|
|
3618
|
+
|
|
3619
|
+
var defaultLocale_locale;
|
|
3620
|
+
var format;
|
|
3621
|
+
var formatPrefix;
|
|
3622
|
+
defaultLocale({
|
|
3623
|
+
thousands: ",",
|
|
3624
|
+
grouping: [3],
|
|
3625
|
+
currency: ["$", ""]
|
|
3626
|
+
});
|
|
3627
|
+
function defaultLocale(definition) {
|
|
3628
|
+
defaultLocale_locale = locale(definition);
|
|
3629
|
+
format = defaultLocale_locale.format;
|
|
3630
|
+
formatPrefix = defaultLocale_locale.formatPrefix;
|
|
3631
|
+
return defaultLocale_locale;
|
|
3632
|
+
}
|
|
3633
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionRound.js
|
|
3634
|
+
|
|
3635
|
+
/* harmony default export */ function precisionRound(step, max) {
|
|
3636
|
+
step = Math.abs(step), max = Math.abs(max) - step;
|
|
3637
|
+
return Math.max(0, exponent(max) - exponent(step)) + 1;
|
|
3638
|
+
}
|
|
3639
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionFixed.js
|
|
3640
|
+
|
|
3641
|
+
/* harmony default export */ function precisionFixed(step) {
|
|
3642
|
+
return Math.max(0, -exponent(Math.abs(step)));
|
|
3643
|
+
}
|
|
3644
|
+
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/tickFormat.js
|
|
3645
|
+
|
|
3646
|
+
|
|
3647
|
+
function tickFormat(start, stop, count, specifier) {
|
|
3648
|
+
var step = tickStep(start, stop, count),
|
|
3649
|
+
precision;
|
|
3650
|
+
specifier = formatSpecifier(specifier == null ? ",f" : specifier);
|
|
3651
|
+
|
|
3652
|
+
switch (specifier.type) {
|
|
3653
|
+
case "s":
|
|
3654
|
+
{
|
|
3655
|
+
var value = Math.max(Math.abs(start), Math.abs(stop));
|
|
3656
|
+
if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
|
|
3657
|
+
return formatPrefix(specifier, value);
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
case "":
|
|
3661
|
+
case "e":
|
|
3662
|
+
case "g":
|
|
3663
|
+
case "p":
|
|
3664
|
+
case "r":
|
|
3665
|
+
{
|
|
3666
|
+
if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
|
|
3667
|
+
break;
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
case "f":
|
|
3671
|
+
case "%":
|
|
3672
|
+
{
|
|
3673
|
+
if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
|
|
3674
|
+
break;
|
|
3675
|
+
}
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
return format(specifier);
|
|
3679
|
+
}
|
|
3680
|
+
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/linear.js
|
|
3681
|
+
|
|
3682
|
+
|
|
3683
|
+
|
|
3684
|
+
|
|
3685
|
+
function linearish(scale) {
|
|
3686
|
+
var domain = scale.domain;
|
|
3687
|
+
|
|
3688
|
+
scale.ticks = function (count) {
|
|
3689
|
+
var d = domain();
|
|
3690
|
+
return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
|
|
3691
|
+
};
|
|
3692
|
+
|
|
3693
|
+
scale.tickFormat = function (count, specifier) {
|
|
3694
|
+
var d = domain();
|
|
3695
|
+
return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
|
|
3696
|
+
};
|
|
3697
|
+
|
|
3698
|
+
scale.nice = function (count) {
|
|
3699
|
+
if (count == null) count = 10;
|
|
3700
|
+
var d = domain();
|
|
3701
|
+
var i0 = 0;
|
|
3702
|
+
var i1 = d.length - 1;
|
|
3703
|
+
var start = d[i0];
|
|
3704
|
+
var stop = d[i1];
|
|
3705
|
+
var prestep;
|
|
3706
|
+
var step;
|
|
3707
|
+
var maxIter = 10;
|
|
3708
|
+
|
|
3709
|
+
if (stop < start) {
|
|
3710
|
+
step = start, start = stop, stop = step;
|
|
3711
|
+
step = i0, i0 = i1, i1 = step;
|
|
3712
|
+
}
|
|
3713
|
+
|
|
3714
|
+
while (maxIter-- > 0) {
|
|
3715
|
+
step = tickIncrement(start, stop, count);
|
|
3716
|
+
|
|
3717
|
+
if (step === prestep) {
|
|
3718
|
+
d[i0] = start;
|
|
3719
|
+
d[i1] = stop;
|
|
3720
|
+
return domain(d);
|
|
3721
|
+
} else if (step > 0) {
|
|
3722
|
+
start = Math.floor(start / step) * step;
|
|
3723
|
+
stop = Math.ceil(stop / step) * step;
|
|
3724
|
+
} else if (step < 0) {
|
|
3725
|
+
start = Math.ceil(start * step) / step;
|
|
3726
|
+
stop = Math.floor(stop * step) / step;
|
|
3727
|
+
} else {
|
|
3728
|
+
break;
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
prestep = step;
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
return scale;
|
|
3735
|
+
};
|
|
3736
|
+
|
|
3737
|
+
return scale;
|
|
3738
|
+
}
|
|
3739
|
+
function linear_linear() {
|
|
3740
|
+
var scale = continuous();
|
|
3741
|
+
|
|
3742
|
+
scale.copy = function () {
|
|
3743
|
+
return copy(scale, linear_linear());
|
|
3744
|
+
};
|
|
3745
|
+
|
|
3746
|
+
initRange.apply(scale, arguments);
|
|
3747
|
+
return linearish(scale);
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
/***/ }),
|
|
3751
|
+
|
|
3752
|
+
/***/ 3538:
|
|
3753
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3754
|
+
|
|
3755
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
3756
|
+
var _typeof = __webpack_require__(6496);
|
|
3757
|
+
|
|
3758
|
+
/**
|
|
3759
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
3760
|
+
*
|
|
3761
|
+
* This source code is licensed under the MIT license found in the
|
|
3762
|
+
* LICENSE file in the root directory of this source tree.
|
|
3763
|
+
*/
|
|
3764
|
+
var runtime = function (exports) {
|
|
3765
|
+
"use strict";
|
|
3766
|
+
|
|
3767
|
+
var Op = Object.prototype;
|
|
3768
|
+
var hasOwn = Op.hasOwnProperty;
|
|
3769
|
+
var undefined; // More compressible than void 0.
|
|
3770
|
+
|
|
3771
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
3772
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
3773
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
3774
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
3775
|
+
|
|
3776
|
+
function define(obj, key, value) {
|
|
3777
|
+
Object.defineProperty(obj, key, {
|
|
3778
|
+
value: value,
|
|
3779
|
+
enumerable: true,
|
|
3780
|
+
configurable: true,
|
|
3781
|
+
writable: true
|
|
3782
|
+
});
|
|
3783
|
+
return obj[key];
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3786
|
+
try {
|
|
3787
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
3788
|
+
define({}, "");
|
|
3789
|
+
} catch (err) {
|
|
3790
|
+
define = function define(obj, key, value) {
|
|
3791
|
+
return obj[key] = value;
|
|
3792
|
+
};
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
3796
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
3797
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
3798
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
3799
|
+
var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,
|
|
3800
|
+
// .throw, and .return methods.
|
|
3801
|
+
|
|
3802
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
3803
|
+
return generator;
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
|
|
3807
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
3808
|
+
// have been (and was previously) designed to take a closure to be
|
|
3809
|
+
// invoked without arguments, but in all the cases we care about we
|
|
3810
|
+
// already have an existing method we want to call, so there's no need
|
|
3811
|
+
// to create a new function object. We can even get away with assuming
|
|
3812
|
+
// the method takes exactly one argument, since that happens to be true
|
|
3813
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
3814
|
+
// only additional allocation required is the completion record, which
|
|
3815
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
3816
|
+
|
|
3817
|
+
function tryCatch(fn, obj, arg) {
|
|
3818
|
+
try {
|
|
3819
|
+
return {
|
|
3820
|
+
type: "normal",
|
|
3821
|
+
arg: fn.call(obj, arg)
|
|
3822
|
+
};
|
|
3823
|
+
} catch (err) {
|
|
3824
|
+
return {
|
|
3825
|
+
type: "throw",
|
|
3826
|
+
arg: err
|
|
3827
|
+
};
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
3832
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
3833
|
+
var GenStateExecuting = "executing";
|
|
3834
|
+
var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
|
|
3835
|
+
// breaking out of the dispatch switch statement.
|
|
3836
|
+
|
|
3837
|
+
var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
|
|
3838
|
+
// .constructor.prototype properties for functions that return Generator
|
|
3839
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
3840
|
+
// minifier not to mangle the names of these two functions.
|
|
3841
|
+
|
|
3842
|
+
function Generator() {}
|
|
3843
|
+
|
|
3844
|
+
function GeneratorFunction() {}
|
|
3845
|
+
|
|
3846
|
+
function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
|
|
3847
|
+
// don't natively support it.
|
|
3848
|
+
|
|
3849
|
+
|
|
3850
|
+
var IteratorPrototype = {};
|
|
3851
|
+
|
|
3852
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
3853
|
+
return this;
|
|
3854
|
+
};
|
|
3855
|
+
|
|
3856
|
+
var getProto = Object.getPrototypeOf;
|
|
3857
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
3858
|
+
|
|
3859
|
+
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
3860
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
3861
|
+
// of the polyfill.
|
|
3862
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
3863
|
+
}
|
|
3864
|
+
|
|
3865
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
3866
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
3867
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
3868
|
+
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
|
|
3869
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
3870
|
+
|
|
3871
|
+
function defineIteratorMethods(prototype) {
|
|
3872
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
3873
|
+
define(prototype, method, function (arg) {
|
|
3874
|
+
return this._invoke(method, arg);
|
|
3875
|
+
});
|
|
3876
|
+
});
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3879
|
+
exports.isGeneratorFunction = function (genFun) {
|
|
3880
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
3881
|
+
return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
|
|
3882
|
+
// do is to check its .name property.
|
|
3883
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
|
|
3884
|
+
};
|
|
3885
|
+
|
|
3886
|
+
exports.mark = function (genFun) {
|
|
3887
|
+
if (Object.setPrototypeOf) {
|
|
3888
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
3889
|
+
} else {
|
|
3890
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
3891
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
genFun.prototype = Object.create(Gp);
|
|
3895
|
+
return genFun;
|
|
3896
|
+
}; // Within the body of any async function, `await x` is transformed to
|
|
3897
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
3898
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
3899
|
+
// meant to be awaited.
|
|
3900
|
+
|
|
3901
|
+
|
|
3902
|
+
exports.awrap = function (arg) {
|
|
3903
|
+
return {
|
|
3904
|
+
__await: arg
|
|
3905
|
+
};
|
|
3906
|
+
};
|
|
3907
|
+
|
|
3908
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
3909
|
+
function invoke(method, arg, resolve, reject) {
|
|
3910
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
3911
|
+
|
|
3912
|
+
if (record.type === "throw") {
|
|
3913
|
+
reject(record.arg);
|
|
3914
|
+
} else {
|
|
3915
|
+
var result = record.arg;
|
|
3916
|
+
var value = result.value;
|
|
3917
|
+
|
|
3918
|
+
if (value && _typeof(value) === "object" && hasOwn.call(value, "__await")) {
|
|
3919
|
+
return PromiseImpl.resolve(value.__await).then(function (value) {
|
|
3920
|
+
invoke("next", value, resolve, reject);
|
|
3921
|
+
}, function (err) {
|
|
3922
|
+
invoke("throw", err, resolve, reject);
|
|
3923
|
+
});
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
return PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
3927
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
3928
|
+
// the .value of the Promise<{value,done}> result for the
|
|
3929
|
+
// current iteration.
|
|
3930
|
+
result.value = unwrapped;
|
|
3931
|
+
resolve(result);
|
|
3932
|
+
}, function (error) {
|
|
3933
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
3934
|
+
// into the async generator function so it can be handled there.
|
|
3935
|
+
return invoke("throw", error, resolve, reject);
|
|
3936
|
+
});
|
|
3937
|
+
}
|
|
3938
|
+
}
|
|
3939
|
+
|
|
3940
|
+
var previousPromise;
|
|
3941
|
+
|
|
3942
|
+
function enqueue(method, arg) {
|
|
3943
|
+
function callInvokeWithMethodAndArg() {
|
|
3944
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
3945
|
+
invoke(method, arg, resolve, reject);
|
|
3946
|
+
});
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
return previousPromise = // If enqueue has been called before, then we want to wait until
|
|
3950
|
+
// all previous Promises have been resolved before calling invoke,
|
|
3951
|
+
// so that results are always delivered in the correct order. If
|
|
3952
|
+
// enqueue has not been called before, then it is important to
|
|
3953
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
3954
|
+
// so that the async generator function has the opportunity to do
|
|
3955
|
+
// any necessary setup in a predictable way. This predictability
|
|
3956
|
+
// is why the Promise constructor synchronously invokes its
|
|
3957
|
+
// executor callback, and why async functions synchronously
|
|
3958
|
+
// execute code before the first await. Since we implement simple
|
|
3959
|
+
// async functions in terms of async generators, it is especially
|
|
3960
|
+
// important to get this right, even though it requires care.
|
|
3961
|
+
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
|
|
3962
|
+
// invocations of the iterator.
|
|
3963
|
+
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
3964
|
+
} // Define the unified helper method that is used to implement .next,
|
|
3965
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
3966
|
+
|
|
3967
|
+
|
|
3968
|
+
this._invoke = enqueue;
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3971
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
3972
|
+
|
|
3973
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
3974
|
+
return this;
|
|
3975
|
+
};
|
|
3976
|
+
|
|
3977
|
+
exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
|
|
3978
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
3979
|
+
// the final result produced by the iterator.
|
|
3980
|
+
|
|
3981
|
+
exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
3982
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
3983
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
3984
|
+
return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
|
|
3985
|
+
: iter.next().then(function (result) {
|
|
3986
|
+
return result.done ? result.value : iter.next();
|
|
3987
|
+
});
|
|
3988
|
+
};
|
|
3989
|
+
|
|
3990
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
3991
|
+
var state = GenStateSuspendedStart;
|
|
3992
|
+
return function invoke(method, arg) {
|
|
3993
|
+
if (state === GenStateExecuting) {
|
|
3994
|
+
throw new Error("Generator is already running");
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
if (state === GenStateCompleted) {
|
|
3998
|
+
if (method === "throw") {
|
|
3999
|
+
throw arg;
|
|
4000
|
+
} // Be forgiving, per 25.3.3.3.3 of the spec:
|
|
4001
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
4002
|
+
|
|
4003
|
+
|
|
4004
|
+
return doneResult();
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
context.method = method;
|
|
4008
|
+
context.arg = arg;
|
|
4009
|
+
|
|
4010
|
+
while (true) {
|
|
4011
|
+
var delegate = context.delegate;
|
|
4012
|
+
|
|
4013
|
+
if (delegate) {
|
|
4014
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
4015
|
+
|
|
4016
|
+
if (delegateResult) {
|
|
4017
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
4018
|
+
return delegateResult;
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
if (context.method === "next") {
|
|
4023
|
+
// Setting context._sent for legacy support of Babel's
|
|
4024
|
+
// function.sent implementation.
|
|
4025
|
+
context.sent = context._sent = context.arg;
|
|
4026
|
+
} else if (context.method === "throw") {
|
|
4027
|
+
if (state === GenStateSuspendedStart) {
|
|
4028
|
+
state = GenStateCompleted;
|
|
4029
|
+
throw context.arg;
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
context.dispatchException(context.arg);
|
|
4033
|
+
} else if (context.method === "return") {
|
|
4034
|
+
context.abrupt("return", context.arg);
|
|
4035
|
+
}
|
|
4036
|
+
|
|
4037
|
+
state = GenStateExecuting;
|
|
4038
|
+
var record = tryCatch(innerFn, self, context);
|
|
4039
|
+
|
|
4040
|
+
if (record.type === "normal") {
|
|
4041
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
4042
|
+
// GenStateExecuting and loop back for another invocation.
|
|
4043
|
+
state = context.done ? GenStateCompleted : GenStateSuspendedYield;
|
|
4044
|
+
|
|
4045
|
+
if (record.arg === ContinueSentinel) {
|
|
4046
|
+
continue;
|
|
4047
|
+
}
|
|
4048
|
+
|
|
4049
|
+
return {
|
|
4050
|
+
value: record.arg,
|
|
4051
|
+
done: context.done
|
|
4052
|
+
};
|
|
4053
|
+
} else if (record.type === "throw") {
|
|
4054
|
+
state = GenStateCompleted; // Dispatch the exception by looping back around to the
|
|
4055
|
+
// context.dispatchException(context.arg) call above.
|
|
4056
|
+
|
|
4057
|
+
context.method = "throw";
|
|
4058
|
+
context.arg = record.arg;
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
};
|
|
4062
|
+
} // Call delegate.iterator[context.method](context.arg) and handle the
|
|
4063
|
+
// result, either by returning a { value, done } result from the
|
|
4064
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
4065
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
4066
|
+
|
|
4067
|
+
|
|
4068
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
4069
|
+
var method = delegate.iterator[context.method];
|
|
4070
|
+
|
|
4071
|
+
if (method === undefined) {
|
|
4072
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
4073
|
+
// method always terminates the yield* loop.
|
|
4074
|
+
context.delegate = null;
|
|
4075
|
+
|
|
4076
|
+
if (context.method === "throw") {
|
|
4077
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
4078
|
+
if (delegate.iterator["return"]) {
|
|
4079
|
+
// If the delegate iterator has a return method, give it a
|
|
4080
|
+
// chance to clean up.
|
|
4081
|
+
context.method = "return";
|
|
4082
|
+
context.arg = undefined;
|
|
4083
|
+
maybeInvokeDelegate(delegate, context);
|
|
4084
|
+
|
|
4085
|
+
if (context.method === "throw") {
|
|
4086
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
4087
|
+
// "return" to "throw", let that override the TypeError below.
|
|
4088
|
+
return ContinueSentinel;
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
context.method = "throw";
|
|
4093
|
+
context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
4094
|
+
}
|
|
4095
|
+
|
|
4096
|
+
return ContinueSentinel;
|
|
4097
|
+
}
|
|
4098
|
+
|
|
4099
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
4100
|
+
|
|
4101
|
+
if (record.type === "throw") {
|
|
4102
|
+
context.method = "throw";
|
|
4103
|
+
context.arg = record.arg;
|
|
4104
|
+
context.delegate = null;
|
|
4105
|
+
return ContinueSentinel;
|
|
4106
|
+
}
|
|
4107
|
+
|
|
4108
|
+
var info = record.arg;
|
|
4109
|
+
|
|
4110
|
+
if (!info) {
|
|
4111
|
+
context.method = "throw";
|
|
4112
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
4113
|
+
context.delegate = null;
|
|
4114
|
+
return ContinueSentinel;
|
|
4115
|
+
}
|
|
4116
|
+
|
|
4117
|
+
if (info.done) {
|
|
4118
|
+
// Assign the result of the finished delegate to the temporary
|
|
4119
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
4120
|
+
context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
|
|
4121
|
+
|
|
4122
|
+
context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
|
|
4123
|
+
// exception, let the outer generator proceed normally. If
|
|
4124
|
+
// context.method was "next", forget context.arg since it has been
|
|
4125
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
4126
|
+
// "return", allow the original .return call to continue in the
|
|
4127
|
+
// outer generator.
|
|
4128
|
+
|
|
4129
|
+
if (context.method !== "return") {
|
|
4130
|
+
context.method = "next";
|
|
4131
|
+
context.arg = undefined;
|
|
4132
|
+
}
|
|
4133
|
+
} else {
|
|
4134
|
+
// Re-yield the result returned by the delegate method.
|
|
4135
|
+
return info;
|
|
4136
|
+
} // The delegate iterator is finished, so forget it and continue with
|
|
4137
|
+
// the outer generator.
|
|
4138
|
+
|
|
4139
|
+
|
|
4140
|
+
context.delegate = null;
|
|
4141
|
+
return ContinueSentinel;
|
|
4142
|
+
} // Define Generator.prototype.{next,throw,return} in terms of the
|
|
4143
|
+
// unified ._invoke helper method.
|
|
4144
|
+
|
|
4145
|
+
|
|
4146
|
+
defineIteratorMethods(Gp);
|
|
4147
|
+
define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the
|
|
4148
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
4149
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
4150
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
4151
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
4152
|
+
|
|
4153
|
+
Gp[iteratorSymbol] = function () {
|
|
4154
|
+
return this;
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
Gp.toString = function () {
|
|
4158
|
+
return "[object Generator]";
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
function pushTryEntry(locs) {
|
|
4162
|
+
var entry = {
|
|
4163
|
+
tryLoc: locs[0]
|
|
4164
|
+
};
|
|
4165
|
+
|
|
4166
|
+
if (1 in locs) {
|
|
4167
|
+
entry.catchLoc = locs[1];
|
|
4168
|
+
}
|
|
4169
|
+
|
|
4170
|
+
if (2 in locs) {
|
|
4171
|
+
entry.finallyLoc = locs[2];
|
|
4172
|
+
entry.afterLoc = locs[3];
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
this.tryEntries.push(entry);
|
|
4176
|
+
}
|
|
4177
|
+
|
|
4178
|
+
function resetTryEntry(entry) {
|
|
4179
|
+
var record = entry.completion || {};
|
|
4180
|
+
record.type = "normal";
|
|
4181
|
+
delete record.arg;
|
|
4182
|
+
entry.completion = record;
|
|
4183
|
+
}
|
|
4184
|
+
|
|
4185
|
+
function Context(tryLocsList) {
|
|
4186
|
+
// The root entry object (effectively a try statement without a catch
|
|
4187
|
+
// or a finally block) gives us a place to store values thrown from
|
|
4188
|
+
// locations where there is no enclosing try statement.
|
|
4189
|
+
this.tryEntries = [{
|
|
4190
|
+
tryLoc: "root"
|
|
4191
|
+
}];
|
|
4192
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
4193
|
+
this.reset(true);
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
exports.keys = function (object) {
|
|
4197
|
+
var keys = [];
|
|
4198
|
+
|
|
4199
|
+
for (var key in object) {
|
|
4200
|
+
keys.push(key);
|
|
4201
|
+
}
|
|
4202
|
+
|
|
4203
|
+
keys.reverse(); // Rather than returning an object with a next method, we keep
|
|
4204
|
+
// things simple and return the next function itself.
|
|
4205
|
+
|
|
4206
|
+
return function next() {
|
|
4207
|
+
while (keys.length) {
|
|
4208
|
+
var key = keys.pop();
|
|
4209
|
+
|
|
4210
|
+
if (key in object) {
|
|
4211
|
+
next.value = key;
|
|
4212
|
+
next.done = false;
|
|
4213
|
+
return next;
|
|
4214
|
+
}
|
|
4215
|
+
} // To avoid creating an additional object, we just hang the .value
|
|
4216
|
+
// and .done properties off the next function object itself. This
|
|
4217
|
+
// also ensures that the minifier will not anonymize the function.
|
|
4218
|
+
|
|
4219
|
+
|
|
4220
|
+
next.done = true;
|
|
4221
|
+
return next;
|
|
4222
|
+
};
|
|
4223
|
+
};
|
|
4224
|
+
|
|
4225
|
+
function values(iterable) {
|
|
4226
|
+
if (iterable) {
|
|
4227
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
4228
|
+
|
|
4229
|
+
if (iteratorMethod) {
|
|
4230
|
+
return iteratorMethod.call(iterable);
|
|
4231
|
+
}
|
|
4232
|
+
|
|
4233
|
+
if (typeof iterable.next === "function") {
|
|
4234
|
+
return iterable;
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4237
|
+
if (!isNaN(iterable.length)) {
|
|
4238
|
+
var i = -1,
|
|
4239
|
+
next = function next() {
|
|
4240
|
+
while (++i < iterable.length) {
|
|
4241
|
+
if (hasOwn.call(iterable, i)) {
|
|
4242
|
+
next.value = iterable[i];
|
|
4243
|
+
next.done = false;
|
|
4244
|
+
return next;
|
|
4245
|
+
}
|
|
4246
|
+
}
|
|
4247
|
+
|
|
4248
|
+
next.value = undefined;
|
|
4249
|
+
next.done = true;
|
|
4250
|
+
return next;
|
|
4251
|
+
};
|
|
4252
|
+
|
|
4253
|
+
return next.next = next;
|
|
4254
|
+
}
|
|
4255
|
+
} // Return an iterator with no values.
|
|
4256
|
+
|
|
4257
|
+
|
|
4258
|
+
return {
|
|
4259
|
+
next: doneResult
|
|
4260
|
+
};
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4263
|
+
exports.values = values;
|
|
4264
|
+
|
|
4265
|
+
function doneResult() {
|
|
4266
|
+
return {
|
|
4267
|
+
value: undefined,
|
|
4268
|
+
done: true
|
|
4269
|
+
};
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4272
|
+
Context.prototype = {
|
|
4273
|
+
constructor: Context,
|
|
4274
|
+
reset: function reset(skipTempReset) {
|
|
4275
|
+
this.prev = 0;
|
|
4276
|
+
this.next = 0; // Resetting context._sent for legacy support of Babel's
|
|
4277
|
+
// function.sent implementation.
|
|
4278
|
+
|
|
4279
|
+
this.sent = this._sent = undefined;
|
|
4280
|
+
this.done = false;
|
|
4281
|
+
this.delegate = null;
|
|
4282
|
+
this.method = "next";
|
|
4283
|
+
this.arg = undefined;
|
|
4284
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
4285
|
+
|
|
4286
|
+
if (!skipTempReset) {
|
|
4287
|
+
for (var name in this) {
|
|
4288
|
+
// Not sure about the optimal order of these conditions:
|
|
4289
|
+
if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
|
|
4290
|
+
this[name] = undefined;
|
|
4291
|
+
}
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
},
|
|
4295
|
+
stop: function stop() {
|
|
4296
|
+
this.done = true;
|
|
4297
|
+
var rootEntry = this.tryEntries[0];
|
|
4298
|
+
var rootRecord = rootEntry.completion;
|
|
4299
|
+
|
|
4300
|
+
if (rootRecord.type === "throw") {
|
|
4301
|
+
throw rootRecord.arg;
|
|
4302
|
+
}
|
|
4303
|
+
|
|
4304
|
+
return this.rval;
|
|
4305
|
+
},
|
|
4306
|
+
dispatchException: function dispatchException(exception) {
|
|
4307
|
+
if (this.done) {
|
|
4308
|
+
throw exception;
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
var context = this;
|
|
4312
|
+
|
|
4313
|
+
function handle(loc, caught) {
|
|
4314
|
+
record.type = "throw";
|
|
4315
|
+
record.arg = exception;
|
|
4316
|
+
context.next = loc;
|
|
4317
|
+
|
|
4318
|
+
if (caught) {
|
|
4319
|
+
// If the dispatched exception was caught by a catch block,
|
|
4320
|
+
// then let that catch block handle the exception normally.
|
|
4321
|
+
context.method = "next";
|
|
4322
|
+
context.arg = undefined;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
return !!caught;
|
|
4326
|
+
}
|
|
4327
|
+
|
|
4328
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
4329
|
+
var entry = this.tryEntries[i];
|
|
4330
|
+
var record = entry.completion;
|
|
4331
|
+
|
|
4332
|
+
if (entry.tryLoc === "root") {
|
|
4333
|
+
// Exception thrown outside of any try block that could handle
|
|
4334
|
+
// it, so set the completion value of the entire function to
|
|
4335
|
+
// throw the exception.
|
|
4336
|
+
return handle("end");
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
if (entry.tryLoc <= this.prev) {
|
|
4340
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
4341
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
4342
|
+
|
|
4343
|
+
if (hasCatch && hasFinally) {
|
|
4344
|
+
if (this.prev < entry.catchLoc) {
|
|
4345
|
+
return handle(entry.catchLoc, true);
|
|
4346
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
4347
|
+
return handle(entry.finallyLoc);
|
|
4348
|
+
}
|
|
4349
|
+
} else if (hasCatch) {
|
|
4350
|
+
if (this.prev < entry.catchLoc) {
|
|
4351
|
+
return handle(entry.catchLoc, true);
|
|
4352
|
+
}
|
|
4353
|
+
} else if (hasFinally) {
|
|
4354
|
+
if (this.prev < entry.finallyLoc) {
|
|
4355
|
+
return handle(entry.finallyLoc);
|
|
4356
|
+
}
|
|
4357
|
+
} else {
|
|
4358
|
+
throw new Error("try statement without catch or finally");
|
|
4359
|
+
}
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
},
|
|
4363
|
+
abrupt: function abrupt(type, arg) {
|
|
4364
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
4365
|
+
var entry = this.tryEntries[i];
|
|
4366
|
+
|
|
4367
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
4368
|
+
var finallyEntry = entry;
|
|
4369
|
+
break;
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
|
|
4374
|
+
// Ignore the finally entry if control is not jumping to a
|
|
4375
|
+
// location outside the try/catch block.
|
|
4376
|
+
finallyEntry = null;
|
|
4377
|
+
}
|
|
4378
|
+
|
|
4379
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
4380
|
+
record.type = type;
|
|
4381
|
+
record.arg = arg;
|
|
4382
|
+
|
|
4383
|
+
if (finallyEntry) {
|
|
4384
|
+
this.method = "next";
|
|
4385
|
+
this.next = finallyEntry.finallyLoc;
|
|
4386
|
+
return ContinueSentinel;
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
return this.complete(record);
|
|
4390
|
+
},
|
|
4391
|
+
complete: function complete(record, afterLoc) {
|
|
4392
|
+
if (record.type === "throw") {
|
|
4393
|
+
throw record.arg;
|
|
4394
|
+
}
|
|
4395
|
+
|
|
4396
|
+
if (record.type === "break" || record.type === "continue") {
|
|
4397
|
+
this.next = record.arg;
|
|
4398
|
+
} else if (record.type === "return") {
|
|
4399
|
+
this.rval = this.arg = record.arg;
|
|
4400
|
+
this.method = "return";
|
|
4401
|
+
this.next = "end";
|
|
4402
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
4403
|
+
this.next = afterLoc;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
return ContinueSentinel;
|
|
4407
|
+
},
|
|
4408
|
+
finish: function finish(finallyLoc) {
|
|
4409
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
4410
|
+
var entry = this.tryEntries[i];
|
|
4411
|
+
|
|
4412
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
4413
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
4414
|
+
resetTryEntry(entry);
|
|
4415
|
+
return ContinueSentinel;
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
},
|
|
4419
|
+
"catch": function _catch(tryLoc) {
|
|
4420
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
4421
|
+
var entry = this.tryEntries[i];
|
|
4422
|
+
|
|
4423
|
+
if (entry.tryLoc === tryLoc) {
|
|
4424
|
+
var record = entry.completion;
|
|
4425
|
+
|
|
4426
|
+
if (record.type === "throw") {
|
|
4427
|
+
var thrown = record.arg;
|
|
4428
|
+
resetTryEntry(entry);
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
return thrown;
|
|
4432
|
+
}
|
|
4433
|
+
} // The context.catch method must only be called with a location
|
|
4434
|
+
// argument that corresponds to a known catch block.
|
|
4435
|
+
|
|
4436
|
+
|
|
4437
|
+
throw new Error("illegal catch attempt");
|
|
4438
|
+
},
|
|
4439
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
4440
|
+
this.delegate = {
|
|
4441
|
+
iterator: values(iterable),
|
|
4442
|
+
resultName: resultName,
|
|
4443
|
+
nextLoc: nextLoc
|
|
4444
|
+
};
|
|
4445
|
+
|
|
4446
|
+
if (this.method === "next") {
|
|
4447
|
+
// Deliberately forget the last sent value so that we don't
|
|
4448
|
+
// accidentally pass it on to the delegate.
|
|
4449
|
+
this.arg = undefined;
|
|
4450
|
+
}
|
|
4451
|
+
|
|
4452
|
+
return ContinueSentinel;
|
|
4453
|
+
}
|
|
4454
|
+
}; // Regardless of whether this script is executing as a CommonJS module
|
|
4455
|
+
// or not, return the runtime object so that we can declare the variable
|
|
4456
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
4457
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
4458
|
+
|
|
4459
|
+
return exports;
|
|
4460
|
+
}( // If this script is executing as a CommonJS module, use module.exports
|
|
4461
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
4462
|
+
// object. Either way, the resulting object will be used to initialize
|
|
4463
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
4464
|
+
( false ? 0 : _typeof(module)) === "object" ? module.exports : {});
|
|
4465
|
+
|
|
4466
|
+
try {
|
|
4467
|
+
regeneratorRuntime = runtime;
|
|
4468
|
+
} catch (accidentalStrictMode) {
|
|
4469
|
+
// This module should not be running in strict mode, so the above
|
|
4470
|
+
// assignment should always work unless something is misconfigured. Just
|
|
4471
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
4472
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
4473
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
4474
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
4475
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
4476
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
4477
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
4478
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
4479
|
+
}
|
|
4480
|
+
|
|
4481
|
+
/***/ }),
|
|
4482
|
+
|
|
4483
|
+
/***/ 3402:
|
|
4484
|
+
/***/ ((module) => {
|
|
4485
|
+
|
|
4486
|
+
"use strict";
|
|
4487
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3402__;
|
|
4488
|
+
|
|
4489
|
+
/***/ }),
|
|
4490
|
+
|
|
4491
|
+
/***/ 5692:
|
|
4492
|
+
/***/ ((module) => {
|
|
4493
|
+
|
|
4494
|
+
"use strict";
|
|
4495
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
|
|
4496
|
+
|
|
4497
|
+
/***/ }),
|
|
4498
|
+
|
|
4499
|
+
/***/ 8310:
|
|
4500
|
+
/***/ ((module) => {
|
|
4501
|
+
|
|
4502
|
+
"use strict";
|
|
4503
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
4504
|
+
|
|
4505
|
+
/***/ }),
|
|
4506
|
+
|
|
4507
|
+
/***/ 4159:
|
|
4508
|
+
/***/ ((module) => {
|
|
4509
|
+
|
|
4510
|
+
"use strict";
|
|
4511
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4159__;
|
|
4512
|
+
|
|
4513
|
+
/***/ }),
|
|
4514
|
+
|
|
4515
|
+
/***/ 855:
|
|
4516
|
+
/***/ ((module) => {
|
|
4517
|
+
|
|
4518
|
+
"use strict";
|
|
4519
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__855__;
|
|
4520
|
+
|
|
4521
|
+
/***/ }),
|
|
4522
|
+
|
|
4523
|
+
/***/ 8156:
|
|
4524
|
+
/***/ ((module) => {
|
|
4525
|
+
|
|
4526
|
+
"use strict";
|
|
4527
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
4528
|
+
|
|
4529
|
+
/***/ }),
|
|
4530
|
+
|
|
4531
|
+
/***/ 8721:
|
|
4532
|
+
/***/ ((module) => {
|
|
4533
|
+
|
|
4534
|
+
"use strict";
|
|
4535
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
|
|
4536
|
+
|
|
4537
|
+
/***/ }),
|
|
4538
|
+
|
|
4539
|
+
/***/ 1082:
|
|
4540
|
+
/***/ ((module) => {
|
|
4541
|
+
|
|
4542
|
+
"use strict";
|
|
4543
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
|
|
4544
|
+
|
|
4545
|
+
/***/ }),
|
|
4546
|
+
|
|
4547
|
+
/***/ 8763:
|
|
4548
|
+
/***/ ((module) => {
|
|
4549
|
+
|
|
4550
|
+
"use strict";
|
|
4551
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
|
|
4552
|
+
|
|
4553
|
+
/***/ }),
|
|
4554
|
+
|
|
4555
|
+
/***/ 6043:
|
|
4556
|
+
/***/ ((module) => {
|
|
4557
|
+
|
|
4558
|
+
"use strict";
|
|
4559
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;
|
|
4560
|
+
|
|
4561
|
+
/***/ }),
|
|
4562
|
+
|
|
4563
|
+
/***/ 8053:
|
|
4564
|
+
/***/ ((module) => {
|
|
4565
|
+
|
|
4566
|
+
"use strict";
|
|
4567
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8053__;
|
|
4568
|
+
|
|
4569
|
+
/***/ }),
|
|
4570
|
+
|
|
4571
|
+
/***/ 7111:
|
|
4572
|
+
/***/ ((module) => {
|
|
4573
|
+
|
|
4574
|
+
"use strict";
|
|
4575
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7111__;
|
|
4576
|
+
|
|
4577
|
+
/***/ }),
|
|
4578
|
+
|
|
4579
|
+
/***/ 7038:
|
|
4580
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
4581
|
+
|
|
4582
|
+
"use strict";
|
|
4583
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4584
|
+
/* harmony export */ "Z": () => (/* binding */ _objectWithoutPropertiesLoose)
|
|
4585
|
+
/* harmony export */ });
|
|
4586
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
4587
|
+
if (source == null) return {};
|
|
4588
|
+
var target = {};
|
|
4589
|
+
var sourceKeys = Object.keys(source);
|
|
4590
|
+
var key, i;
|
|
4591
|
+
|
|
4592
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
4593
|
+
key = sourceKeys[i];
|
|
4594
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
4595
|
+
target[key] = source[key];
|
|
4596
|
+
}
|
|
4597
|
+
|
|
4598
|
+
return target;
|
|
4599
|
+
}
|
|
4600
|
+
|
|
4601
|
+
/***/ }),
|
|
4602
|
+
|
|
4603
|
+
/***/ 4329:
|
|
4604
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
4605
|
+
|
|
4606
|
+
"use strict";
|
|
4607
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4608
|
+
/* harmony export */ "Z": () => (/* binding */ _typeof)
|
|
4609
|
+
/* harmony export */ });
|
|
4610
|
+
function _typeof(obj) {
|
|
4611
|
+
"@babel/helpers - typeof";
|
|
4612
|
+
|
|
4613
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
4614
|
+
_typeof = function _typeof(obj) {
|
|
4615
|
+
return typeof obj;
|
|
4616
|
+
};
|
|
4617
|
+
} else {
|
|
4618
|
+
_typeof = function _typeof(obj) {
|
|
4619
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
4620
|
+
};
|
|
4621
|
+
}
|
|
4622
|
+
|
|
4623
|
+
return _typeof(obj);
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
/***/ })
|
|
4627
|
+
|
|
4628
|
+
/******/ });
|
|
4629
|
+
/************************************************************************/
|
|
4630
|
+
/******/ // The module cache
|
|
4631
|
+
/******/ var __webpack_module_cache__ = {};
|
|
4632
|
+
/******/
|
|
4633
|
+
/******/ // The require function
|
|
4634
|
+
/******/ function __webpack_require__(moduleId) {
|
|
4635
|
+
/******/ // Check if module is in cache
|
|
4636
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
4637
|
+
/******/ if (cachedModule !== undefined) {
|
|
4638
|
+
/******/ return cachedModule.exports;
|
|
4639
|
+
/******/ }
|
|
4640
|
+
/******/ // Create a new module (and put it into the cache)
|
|
4641
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
4642
|
+
/******/ id: moduleId,
|
|
4643
|
+
/******/ loaded: false,
|
|
4644
|
+
/******/ exports: {}
|
|
4645
|
+
/******/ };
|
|
4646
|
+
/******/
|
|
4647
|
+
/******/ // Execute the module function
|
|
4648
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
4649
|
+
/******/
|
|
4650
|
+
/******/ // Flag the module as loaded
|
|
4651
|
+
/******/ module.loaded = true;
|
|
4652
|
+
/******/
|
|
4653
|
+
/******/ // Return the exports of the module
|
|
4654
|
+
/******/ return module.exports;
|
|
4655
|
+
/******/ }
|
|
4656
|
+
/******/
|
|
4657
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
4658
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
4659
|
+
/******/
|
|
4660
|
+
/************************************************************************/
|
|
4661
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
4662
|
+
/******/ (() => {
|
|
4663
|
+
/******/ var deferred = [];
|
|
4664
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
4665
|
+
/******/ if(chunkIds) {
|
|
4666
|
+
/******/ priority = priority || 0;
|
|
4667
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
4668
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
4669
|
+
/******/ return;
|
|
4670
|
+
/******/ }
|
|
4671
|
+
/******/ var notFulfilled = Infinity;
|
|
4672
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
4673
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
4674
|
+
/******/ var fulfilled = true;
|
|
4675
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
4676
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
4677
|
+
/******/ chunkIds.splice(j--, 1);
|
|
4678
|
+
/******/ } else {
|
|
4679
|
+
/******/ fulfilled = false;
|
|
4680
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
4681
|
+
/******/ }
|
|
4682
|
+
/******/ }
|
|
4683
|
+
/******/ if(fulfilled) {
|
|
4684
|
+
/******/ deferred.splice(i--, 1)
|
|
4685
|
+
/******/ var r = fn();
|
|
4686
|
+
/******/ if (r !== undefined) result = r;
|
|
4687
|
+
/******/ }
|
|
4688
|
+
/******/ }
|
|
4689
|
+
/******/ return result;
|
|
4690
|
+
/******/ };
|
|
4691
|
+
/******/ })();
|
|
4692
|
+
/******/
|
|
4693
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
4694
|
+
/******/ (() => {
|
|
4695
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
4696
|
+
/******/ __webpack_require__.n = (module) => {
|
|
4697
|
+
/******/ var getter = module && module.__esModule ?
|
|
4698
|
+
/******/ () => (module['default']) :
|
|
4699
|
+
/******/ () => (module);
|
|
4700
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
4701
|
+
/******/ return getter;
|
|
4702
|
+
/******/ };
|
|
4703
|
+
/******/ })();
|
|
4704
|
+
/******/
|
|
4705
|
+
/******/ /* webpack/runtime/define property getters */
|
|
4706
|
+
/******/ (() => {
|
|
4707
|
+
/******/ // define getter functions for harmony exports
|
|
4708
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
4709
|
+
/******/ for(var key in definition) {
|
|
4710
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
4711
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
4712
|
+
/******/ }
|
|
4713
|
+
/******/ }
|
|
4714
|
+
/******/ };
|
|
4715
|
+
/******/ })();
|
|
4716
|
+
/******/
|
|
4717
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
4718
|
+
/******/ (() => {
|
|
4719
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
4720
|
+
/******/ })();
|
|
4721
|
+
/******/
|
|
4722
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
4723
|
+
/******/ (() => {
|
|
4724
|
+
/******/ // define __esModule on exports
|
|
4725
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
4726
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
4727
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4728
|
+
/******/ }
|
|
4729
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4730
|
+
/******/ };
|
|
4731
|
+
/******/ })();
|
|
4732
|
+
/******/
|
|
4733
|
+
/******/ /* webpack/runtime/node module decorator */
|
|
4734
|
+
/******/ (() => {
|
|
4735
|
+
/******/ __webpack_require__.nmd = (module) => {
|
|
4736
|
+
/******/ module.paths = [];
|
|
4737
|
+
/******/ if (!module.children) module.children = [];
|
|
4738
|
+
/******/ return module;
|
|
4739
|
+
/******/ };
|
|
4740
|
+
/******/ })();
|
|
4741
|
+
/******/
|
|
4742
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
4743
|
+
/******/ (() => {
|
|
4744
|
+
/******/ // no baseURI
|
|
4745
|
+
/******/
|
|
4746
|
+
/******/ // object to store loaded and loading chunks
|
|
4747
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
4748
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
4749
|
+
/******/ var installedChunks = {
|
|
4750
|
+
/******/ 1855: 0,
|
|
4751
|
+
/******/ 8016: 0,
|
|
4752
|
+
/******/ 410: 0,
|
|
4753
|
+
/******/ 1981: 0
|
|
4754
|
+
/******/ };
|
|
4755
|
+
/******/
|
|
4756
|
+
/******/ // no chunk on demand loading
|
|
4757
|
+
/******/
|
|
4758
|
+
/******/ // no prefetching
|
|
4759
|
+
/******/
|
|
4760
|
+
/******/ // no preloaded
|
|
4761
|
+
/******/
|
|
4762
|
+
/******/ // no HMR
|
|
4763
|
+
/******/
|
|
4764
|
+
/******/ // no HMR manifest
|
|
4765
|
+
/******/
|
|
4766
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
4767
|
+
/******/
|
|
4768
|
+
/******/ // install a JSONP callback for chunk loading
|
|
4769
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
4770
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
4771
|
+
/******/ // add "moreModules" to the modules object,
|
|
4772
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
4773
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
4774
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
4775
|
+
/******/ for(moduleId in moreModules) {
|
|
4776
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
4777
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
4778
|
+
/******/ }
|
|
4779
|
+
/******/ }
|
|
4780
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
4781
|
+
/******/ }
|
|
4782
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
4783
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
4784
|
+
/******/ chunkId = chunkIds[i];
|
|
4785
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
4786
|
+
/******/ installedChunks[chunkId][0]();
|
|
4787
|
+
/******/ }
|
|
4788
|
+
/******/ installedChunks[chunkIds[i]] = 0;
|
|
4789
|
+
/******/ }
|
|
4790
|
+
/******/ return __webpack_require__.O(result);
|
|
4791
|
+
/******/ }
|
|
4792
|
+
/******/
|
|
4793
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
4794
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
4795
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
4796
|
+
/******/ })();
|
|
4797
|
+
/******/
|
|
4798
|
+
/************************************************************************/
|
|
4799
|
+
/******/
|
|
4800
|
+
/******/ // startup
|
|
4801
|
+
/******/ // Load entry module and return exports
|
|
4802
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
4803
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(69)))
|
|
4804
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
4805
|
+
/******/
|
|
4806
|
+
/******/ return __webpack_exports__;
|
|
4807
|
+
/******/ })()
|
|
4808
|
+
;
|
|
4809
|
+
});
|
|
4810
|
+
//# sourceMappingURL=index.js.map
|