@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.
Files changed (294) hide show
  1. package/AddableItems/AddableItems.d.ts +72 -0
  2. package/AddableItems/ClickableExcludableItem.d.ts +23 -0
  3. package/AddableItems/ClickableItemList.d.ts +32 -0
  4. package/AddableItems/index.d.ts +1 -0
  5. package/AddableItems/index.js +1046 -0
  6. package/AddableItems/index.js.map +1 -0
  7. package/Alert/Alert.d.ts +37 -0
  8. package/Alert/index.d.ts +1 -0
  9. package/Alert/index.js +319 -0
  10. package/Alert/index.js.map +1 -0
  11. package/Badge/Badge.d.ts +38 -0
  12. package/Badge/index.d.ts +1 -0
  13. package/Badge/index.js +285 -0
  14. package/Badge/index.js.map +1 -0
  15. package/Bs4V3Wrapper/Bs4V3Wrapper.d.ts +7 -0
  16. package/Bs4V3Wrapper/StoryWrapper.d.ts +8 -0
  17. package/Bs4V3Wrapper/index.d.ts +1 -0
  18. package/Bs4V3Wrapper/index.js +251 -0
  19. package/Bs4V3Wrapper/index.js.map +1 -0
  20. package/BubbleChart/BubbleChart.d.ts +33 -0
  21. package/BubbleChart/BubbleChartUI.d.ts +31 -0
  22. package/BubbleChart/index.d.ts +1 -0
  23. package/BubbleChart/index.js +3793 -0
  24. package/BubbleChart/index.js.map +1 -0
  25. package/Button/Button.d.ts +29 -0
  26. package/Button/Button.storiesConfig.d.ts +68 -0
  27. package/Button/index.d.ts +1 -0
  28. package/Button/index.js +323 -0
  29. package/Button/index.js.map +1 -0
  30. package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
  31. package/ButtonDropdown/index.d.ts +2 -0
  32. package/ButtonDropdown/index.js +603 -0
  33. package/ButtonDropdown/index.js.map +1 -0
  34. package/CardsPage/CardsPage.d.ts +12 -0
  35. package/CardsPage/CardsPageActions.d.ts +2 -0
  36. package/CardsPage/CardsPageCards.d.ts +5 -0
  37. package/CardsPage/CardsPageCardsCounter.d.ts +7 -0
  38. package/CardsPage/CardsPageFilters.d.ts +3 -0
  39. package/CardsPage/CardsPageHeader.d.ts +11 -0
  40. package/CardsPage/CardsPageLayoutMode.d.ts +13 -0
  41. package/CardsPage/CardsPageSelectionActions.d.ts +17 -0
  42. package/CardsPage/CardsPageSelectionToggler.d.ts +8 -0
  43. package/CardsPage/CardsPageSorting.d.ts +15 -0
  44. package/CardsPage/CardsPageSubtitle.d.ts +2 -0
  45. package/CardsPage/CardsPageTabContent.d.ts +19 -0
  46. package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
  47. package/CardsPage/CardsPageTitle.d.ts +2 -0
  48. package/CardsPage/index.d.ts +2 -0
  49. package/CardsPage/index.js +2511 -0
  50. package/CardsPage/index.js.map +1 -0
  51. package/CursorPagination/CursorPagination.d.ts +21 -0
  52. package/CursorPagination/index.d.ts +1 -0
  53. package/CursorPagination/index.js +952 -0
  54. package/CursorPagination/index.js.map +1 -0
  55. package/DatePicker/DatePicker.d.ts +27 -0
  56. package/DatePicker/index.d.ts +1 -0
  57. package/DatePicker/index.js +452 -0
  58. package/DatePicker/index.js.map +1 -0
  59. package/DetailPage/DetailPage.d.ts +18 -0
  60. package/DetailPage/DetailPageBodyContainer.d.ts +2 -0
  61. package/DetailPage/DetailPageBodySection.d.ts +3 -0
  62. package/DetailPage/DetailPageHeaderContainer.d.ts +7 -0
  63. package/DetailPage/DetailPageHeaderUI.d.ts +12 -0
  64. package/DetailPage/DetailPageMenuContainer.d.ts +2 -0
  65. package/DetailPage/DetailPageMenuUI.d.ts +4 -0
  66. package/DetailPage/index.d.ts +1 -0
  67. package/DetailPage/index.js +2066 -0
  68. package/DetailPage/index.js.map +1 -0
  69. package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
  70. package/Dropdown/Dropdown.d.ts +12 -0
  71. package/Dropdown/DropdownMenu.d.ts +7 -0
  72. package/Dropdown/index.d.ts +3 -0
  73. package/Dropdown/index.js +723 -0
  74. package/Dropdown/index.js.map +1 -0
  75. package/EditableString/EditableString.d.ts +42 -0
  76. package/EditableString/index.d.ts +1 -0
  77. package/EditableString/index.js +3321 -0
  78. package/EditableString/index.js.map +1 -0
  79. package/EllipsableContent/EllipsableContent.d.ts +18 -0
  80. package/EllipsableContent/index.d.ts +1 -0
  81. package/EllipsableContent/index.js +784 -0
  82. package/EllipsableContent/index.js.map +1 -0
  83. package/EmptyState/EmptyState.d.ts +12 -0
  84. package/EmptyState/index.d.ts +1 -0
  85. package/EmptyState/index.js +278 -0
  86. package/EmptyState/index.js.map +1 -0
  87. package/Facet/Facet.d.ts +21 -0
  88. package/Facet/FacetHelp.d.ts +28 -0
  89. package/Facet/FacetItemCount.d.ts +7 -0
  90. package/Facet/FacetSubtitle.d.ts +2 -0
  91. package/Facet/index.d.ts +1 -0
  92. package/Facet/index.js +914 -0
  93. package/Facet/index.js.map +1 -0
  94. package/FacetSection/FacetSection.d.ts +21 -0
  95. package/FacetSection/index.d.ts +1 -0
  96. package/FacetSection/index.js +443 -0
  97. package/FacetSection/index.js.map +1 -0
  98. package/FadeAnimation/FadeAnimation.d.ts +14 -0
  99. package/FadeAnimation/index.d.ts +1 -0
  100. package/FadeAnimation/index.js +1228 -0
  101. package/FadeAnimation/index.js.map +1 -0
  102. package/FeedbackButton/FeedbackButton.d.ts +19 -0
  103. package/FeedbackButton/index.d.ts +1 -0
  104. package/FeedbackButton/index.js +398 -0
  105. package/FeedbackButton/index.js.map +1 -0
  106. package/Form/Form.d.ts +23 -0
  107. package/Form/FormCheckbox.d.ts +10 -0
  108. package/Form/FormControl.d.ts +23 -0
  109. package/Form/FormControlFeedBack.d.ts +6 -0
  110. package/Form/FormHelp.d.ts +7 -0
  111. package/Form/FormLabel.d.ts +4 -0
  112. package/Form/FormRadio.d.ts +10 -0
  113. package/Form/index.d.ts +1 -0
  114. package/Form/index.js +450 -0
  115. package/Form/index.js.map +1 -0
  116. package/Funnel/Funnel.d.ts +54 -0
  117. package/Funnel/SVGDataLabel.d.ts +11 -0
  118. package/Funnel/index.d.ts +1 -0
  119. package/Funnel/index.js +3997 -0
  120. package/Funnel/index.js.map +1 -0
  121. package/GridCard/Fixtures.d.ts +3 -0
  122. package/GridCard/GridCard.d.ts +20 -0
  123. package/GridCard/GridCardContent.d.ts +2 -0
  124. package/GridCard/GridCardFooter.d.ts +2 -0
  125. package/GridCard/GridCardHeader.d.ts +14 -0
  126. package/GridCard/GridCardMenu.d.ts +2 -0
  127. package/GridCard/GridCardTags.d.ts +2 -0
  128. package/GridCard/GridCardTitle.d.ts +6 -0
  129. package/GridCard/index.d.ts +1 -0
  130. package/GridCard/index.js +1618 -0
  131. package/GridCard/index.js.map +1 -0
  132. package/HighlightableText/HighlightableText.d.ts +21 -0
  133. package/HighlightableText/index.d.ts +1 -0
  134. package/HighlightableText/index.js +624 -0
  135. package/HighlightableText/index.js.map +1 -0
  136. package/Histogram/Histogram.d.ts +126 -0
  137. package/Histogram/Types.d.ts +19 -0
  138. package/Histogram/index.d.ts +1 -0
  139. package/Histogram/index.js +2359 -0
  140. package/Histogram/index.js.map +1 -0
  141. package/InlineStringEditor/InlineStringEditor.d.ts +49 -0
  142. package/InlineStringEditor/index.d.ts +1 -0
  143. package/InlineStringEditor/index.js +1882 -0
  144. package/InlineStringEditor/index.js.map +1 -0
  145. package/InputGroup/InputGroup.d.ts +16 -0
  146. package/InputGroup/InputGroupText.d.ts +2 -0
  147. package/InputGroup/index.d.ts +1 -0
  148. package/InputGroup/index.js +279 -0
  149. package/InputGroup/index.js.map +1 -0
  150. package/Jumbotron/Jumbotron.d.ts +16 -0
  151. package/Jumbotron/index.d.ts +1 -0
  152. package/Jumbotron/index.js +270 -0
  153. package/Jumbotron/index.js.map +1 -0
  154. package/Map/Map.d.ts +27 -0
  155. package/Map/MapChoropleth.d.ts +31 -0
  156. package/Map/MapControl.d.ts +13 -0
  157. package/Map/MapLegendContent.d.ts +27 -0
  158. package/Map/MapPopup.d.ts +5 -0
  159. package/Map/MapUtils.d.ts +2 -0
  160. package/Map/Types.d.ts +38 -0
  161. package/Map/index.d.ts +2 -0
  162. package/Map/index.js +4810 -0
  163. package/Map/index.js.map +1 -0
  164. package/Modal/Modal.d.ts +32 -0
  165. package/Modal/index.d.ts +1 -0
  166. package/Modal/index.js +743 -0
  167. package/Modal/index.js.map +1 -0
  168. package/Navbar/Navbar.d.ts +42 -0
  169. package/Navbar/NavbarMobileMenuCollapse.d.ts +3 -0
  170. package/Navbar/NavbarMobileMenuToggle.d.ts +3 -0
  171. package/Navbar/NavbarNavigationMenu.d.ts +9 -0
  172. package/Navbar/NavbarNavigationMenuItem.d.ts +9 -0
  173. package/Navbar/NavbarNinjaMenu.d.ts +6 -0
  174. package/Navbar/NavbarNinjaMenuItem.d.ts +6 -0
  175. package/Navbar/NavbarNotificationMenu.d.ts +12 -0
  176. package/Navbar/NavbarNotificationMenuItem.d.ts +8 -0
  177. package/Navbar/NavbarOverlaySearch.d.ts +28 -0
  178. package/Navbar/NavbarOverlaySearchCard.d.ts +9 -0
  179. package/Navbar/NavbarOverlaySearchResults.d.ts +12 -0
  180. package/Navbar/NavbarUserMenu.d.ts +9 -0
  181. package/Navbar/NavbarUserMenuItem.d.ts +6 -0
  182. package/Navbar/index.d.ts +1 -0
  183. package/Navbar/index.js +3521 -0
  184. package/Navbar/index.js.map +1 -0
  185. package/Pagination/Pagination.d.ts +27 -0
  186. package/Pagination/PaginationNext.d.ts +7 -0
  187. package/Pagination/PaginationPrev.d.ts +7 -0
  188. package/Pagination/index.d.ts +1 -0
  189. package/Pagination/index.js +994 -0
  190. package/Pagination/index.js.map +1 -0
  191. package/PieChart/PieChart.d.ts +71 -0
  192. package/PieChart/index.d.ts +1 -0
  193. package/PieChart/index.js +1986 -0
  194. package/PieChart/index.js.map +1 -0
  195. package/PublicFooter/PublicFooter.d.ts +6 -0
  196. package/PublicFooter/index.d.ts +1 -0
  197. package/PublicFooter/index.js +454 -0
  198. package/PublicFooter/index.js.map +1 -0
  199. package/PublicNavbar/PublicNavbar.d.ts +6 -0
  200. package/PublicNavbar/index.d.ts +1 -0
  201. package/PublicNavbar/index.js +255 -0
  202. package/PublicNavbar/index.js.map +1 -0
  203. package/RecordBit/RecordBit.d.ts +14 -0
  204. package/RecordBit/index.d.ts +1 -0
  205. package/RecordBit/index.js +482 -0
  206. package/RecordBit/index.js.map +1 -0
  207. package/ResultItemCard/ResultItemCard.d.ts +19 -0
  208. package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
  209. package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
  210. package/ResultItemCard/ResultItemCardImage.d.ts +6 -0
  211. package/ResultItemCard/ResultItemCardSubtitle.d.ts +6 -0
  212. package/ResultItemCard/ResultItemCardText.d.ts +7 -0
  213. package/ResultItemCard/ResultItemCardTitle.d.ts +7 -0
  214. package/ResultItemCard/index.d.ts +1 -0
  215. package/ResultItemCard/index.js +1067 -0
  216. package/ResultItemCard/index.js.map +1 -0
  217. package/SelectDropdown/SelectDropdown.d.ts +29 -0
  218. package/SelectDropdown/index.d.ts +1 -0
  219. package/SelectDropdown/index.js +1520 -0
  220. package/SelectDropdown/index.js.map +1 -0
  221. package/Spinner/Spinner.d.ts +32 -0
  222. package/Spinner/index.d.ts +1 -0
  223. package/Spinner/index.js +325 -0
  224. package/Spinner/index.js.map +1 -0
  225. package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
  226. package/StatisticsItemCard/index.d.ts +1 -0
  227. package/StatisticsItemCard/index.js +1786 -0
  228. package/StatisticsItemCard/index.js.map +1 -0
  229. package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
  230. package/StatisticsItemNumeric/index.d.ts +1 -0
  231. package/StatisticsItemNumeric/index.js +283 -0
  232. package/StatisticsItemNumeric/index.js.map +1 -0
  233. package/StatisticsLegend/StatisticsLegend.d.ts +35 -0
  234. package/StatisticsLegend/StatisticsLegendItem.d.ts +50 -0
  235. package/StatisticsLegend/StatisticsSVGLegend.d.ts +26 -0
  236. package/StatisticsLegend/helpers.d.ts +19 -0
  237. package/StatisticsLegend/index.d.ts +3 -0
  238. package/StatisticsLegend/index.js +1571 -0
  239. package/StatisticsLegend/index.js.map +1 -0
  240. package/StatisticsTooltip/StatisticsTooltip.d.ts +20 -0
  241. package/StatisticsTooltip/helpers.d.ts +19 -0
  242. package/StatisticsTooltip/index.d.ts +2 -0
  243. package/StatisticsTooltip/index.js +796 -0
  244. package/StatisticsTooltip/index.js.map +1 -0
  245. package/Suggester/CustomOption.d.ts +29 -0
  246. package/Suggester/InputValueContainer.d.ts +11 -0
  247. package/Suggester/Suggester.d.ts +80 -0
  248. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +6 -0
  249. package/Suggester/index.d.ts +3 -0
  250. package/Suggester/index.js +1126 -0
  251. package/Suggester/index.js.map +1 -0
  252. package/SunBurst/SunBurst.d.ts +61 -0
  253. package/SunBurst/index.d.ts +2 -0
  254. package/SunBurst/index.js +1170 -0
  255. package/SunBurst/index.js.map +1 -0
  256. package/TabSwitcher/TabSwitcher.d.ts +35 -0
  257. package/TabSwitcher/TabSwitcherChoice.d.ts +21 -0
  258. package/TabSwitcher/index.d.ts +1 -0
  259. package/TabSwitcher/index.js +1135 -0
  260. package/TabSwitcher/index.js.map +1 -0
  261. package/Title/Title.d.ts +16 -0
  262. package/Title/index.d.ts +1 -0
  263. package/Title/index.js +302 -0
  264. package/Title/index.js.map +1 -0
  265. package/ToggleButtonGroup/ToggleButton.d.ts +15 -0
  266. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +24 -0
  267. package/ToggleButtonGroup/index.d.ts +1 -0
  268. package/ToggleButtonGroup/index.js +609 -0
  269. package/ToggleButtonGroup/index.js.map +1 -0
  270. package/Tooltip/Tooltip.d.ts +20 -0
  271. package/Tooltip/index.d.ts +1 -0
  272. package/Tooltip/index.js +291 -0
  273. package/Tooltip/index.js.map +1 -0
  274. package/Utils/CommonTypes.d.ts +29 -0
  275. package/Utils/Statistics.d.ts +3 -0
  276. package/Utils/Style.d.ts +5 -0
  277. package/Utils/Text.d.ts +12 -0
  278. package/Utils/Utils.d.ts +12 -0
  279. package/Utils/index.d.ts +5 -0
  280. package/Utils/index.js +3379 -0
  281. package/Utils/index.js.map +1 -0
  282. package/atoka-design-system-2.0.72-beta.min.css +1 -0
  283. package/commonFixtures.d.ts +1 -0
  284. package/index.d.ts +51 -0
  285. package/index.js +15343 -0
  286. package/index.js.map +1 -0
  287. package/package.json +157 -0
  288. package/styles/animations-mixin.less +28 -0
  289. package/styles/atoka-bootstrap-fixed-mixins.less +81 -0
  290. package/styles/atoka-bootstrap-variables.less +70 -0
  291. package/styles/atoka-bs.less +99 -0
  292. package/styles/atoka-namespaced-bs.less +28 -0
  293. package/styles/variables.less +106 -0
  294. package/styles/variant-mixins.less +96 -0
@@ -0,0 +1,3997 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("@fortawesome/react-fontawesome"), require("@nivo/funnel"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/OverlayTrigger"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("atoka-design-system", ["@fortawesome/react-fontawesome", "@nivo/funnel", "classnames", "react", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText", "react-bootstrap/OverlayTrigger"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["atoka-design-system"] = factory(require("@fortawesome/react-fontawesome"), require("@nivo/funnel"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/OverlayTrigger"));
8
+ else
9
+ root["atoka-design-system"] = factory(root["@fortawesome/react-fontawesome"], root["@nivo/funnel"], root["classnames"], root["react"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"], root["react-bootstrap/OverlayTrigger"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__9179__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__, __WEBPACK_EXTERNAL_MODULE__6043__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 9316:
15
+ /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
16
+
17
+ "use strict";
18
+
19
+ // UNUSED EXPORTS: Form
20
+
21
+ // EXTERNAL MODULE: external "react"
22
+ var external_react_ = __webpack_require__(8156);
23
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
24
+ // EXTERNAL MODULE: external "classnames"
25
+ var external_classnames_ = __webpack_require__(8310);
26
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
27
+ // EXTERNAL MODULE: external "react-bootstrap/Form"
28
+ var Form_ = __webpack_require__(8721);
29
+ var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
30
+ ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
31
+
32
+
33
+
34
+
35
+ var FormLabel = external_react_default().memo(function (props) {
36
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
37
+ return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
38
+ });
39
+ FormLabel.displayName = 'FormLabel';
40
+
41
+ // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
42
+ var FormControl = __webpack_require__(3422);
43
+ ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
44
+ var __assign = (undefined && undefined.__assign) || function () {
45
+ __assign = Object.assign || function(t) {
46
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
47
+ s = arguments[i];
48
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
49
+ t[p] = s[p];
50
+ }
51
+ return t;
52
+ };
53
+ return __assign.apply(this, arguments);
54
+ };
55
+
56
+
57
+
58
+
59
+ var FormCheckbox = function (props) {
60
+ var _a;
61
+ var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
62
+ 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 : '' }));
63
+ };
64
+ FormCheckbox.displayName = 'FormCheckbox';
65
+
66
+ ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
67
+ var FormRadio_assign = (undefined && undefined.__assign) || function () {
68
+ FormRadio_assign = Object.assign || function(t) {
69
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
70
+ s = arguments[i];
71
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
72
+ t[p] = s[p];
73
+ }
74
+ return t;
75
+ };
76
+ return FormRadio_assign.apply(this, arguments);
77
+ };
78
+
79
+
80
+
81
+
82
+ var FormRadio = function (props) {
83
+ var _a;
84
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
85
+ 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 : '' }));
86
+ };
87
+ FormRadio.displayName = 'FormRadio';
88
+
89
+ // EXTERNAL MODULE: external "react-bootstrap/FormText"
90
+ var FormText_ = __webpack_require__(8763);
91
+ var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
92
+ ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
93
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
94
+ var t = {};
95
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
96
+ t[p] = s[p];
97
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
98
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
99
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
100
+ t[p[i]] = s[p[i]];
101
+ }
102
+ return t;
103
+ };
104
+
105
+
106
+
107
+
108
+ var FormHelp = external_react_default().memo(function (_a) {
109
+ var children = _a.children, props = __rest(_a, ["children"]);
110
+ var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
111
+ return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
112
+ });
113
+ FormHelp.displayName = 'FormHelp';
114
+
115
+ ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
116
+ var Form_assign = (undefined && undefined.__assign) || function () {
117
+ Form_assign = Object.assign || function(t) {
118
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
119
+ s = arguments[i];
120
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
121
+ t[p] = s[p];
122
+ }
123
+ return t;
124
+ };
125
+ return Form_assign.apply(this, arguments);
126
+ };
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ var Form = function (props) {
137
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
138
+ return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
139
+ };
140
+ Form.displayName = 'Form';
141
+ Form.Control = FormControl/* FormControl */.N;
142
+ Form.Label = FormLabel;
143
+ Form.Checkbox = FormCheckbox;
144
+ Form.Radio = FormRadio;
145
+ Form.File = (Form_default()).File;
146
+ Form.Switch = (Form_default()).Switch;
147
+ Form.Help = FormHelp;
148
+ Form.Group = (Form_default()).Group;
149
+
150
+
151
+
152
+ /***/ }),
153
+
154
+ /***/ 3422:
155
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
156
+
157
+ "use strict";
158
+
159
+ // EXPORTS
160
+ __webpack_require__.d(__webpack_exports__, {
161
+ "N": () => (/* binding */ FormControl)
162
+ });
163
+
164
+ // EXTERNAL MODULE: external "react"
165
+ var external_react_ = __webpack_require__(8156);
166
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
167
+ // EXTERNAL MODULE: external "classnames"
168
+ var external_classnames_ = __webpack_require__(8310);
169
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
170
+ // EXTERNAL MODULE: external "react-bootstrap/FormControl"
171
+ var FormControl_ = __webpack_require__(1082);
172
+ var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
173
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
174
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
175
+ var t = {};
176
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
177
+ t[p] = s[p];
178
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
179
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
180
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
181
+ t[p[i]] = s[p[i]];
182
+ }
183
+ return t;
184
+ };
185
+
186
+
187
+
188
+ var FormControlFeedBack = external_react_default().memo(function (_a) {
189
+ var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
190
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
191
+ 'd-block': show,
192
+ });
193
+ return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
194
+ });
195
+ FormControlFeedBack.displayName = ' FormControlFeedBack';
196
+
197
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
198
+ var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
199
+ var t = {};
200
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
201
+ t[p] = s[p];
202
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
203
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
204
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
205
+ t[p[i]] = s[p[i]];
206
+ }
207
+ return t;
208
+ };
209
+
210
+
211
+
212
+
213
+
214
+ var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
215
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
216
+ var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
217
+ 'atoka-shadow': props.withShadow,
218
+ 'disabled': props.disabled,
219
+ });
220
+ 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));
221
+ });
222
+ FormControlComponent.displayName = 'FormControlComponent';
223
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
224
+ var FormControl = FormControlComponent;
225
+ FormControl.FeedBack = FormControlFeedBack;
226
+ FormControl.displayName = 'FormControl';
227
+
228
+
229
+
230
+ /***/ }),
231
+
232
+ /***/ 8044:
233
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
234
+
235
+ "use strict";
236
+ // ESM COMPAT FLAG
237
+ __webpack_require__.r(__webpack_exports__);
238
+
239
+ // EXPORTS
240
+ __webpack_require__.d(__webpack_exports__, {
241
+ "Funnel": () => (/* reexport */ Funnel),
242
+ "FunnelData": () => (/* reexport */ Funnel_namespaceObject.FunnelData)
243
+ });
244
+
245
+ // NAMESPACE OBJECT: ./src/components/Funnel/Funnel.tsx
246
+ var Funnel_namespaceObject = {};
247
+ __webpack_require__.r(Funnel_namespaceObject);
248
+ __webpack_require__.d(Funnel_namespaceObject, {
249
+ "o": () => (Funnel)
250
+ });
251
+
252
+ // EXTERNAL MODULE: external "@nivo/funnel"
253
+ var funnel_ = __webpack_require__(9179);
254
+ // EXTERNAL MODULE: external "react"
255
+ var external_react_ = __webpack_require__(8156);
256
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
257
+ // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
258
+ var esm = __webpack_require__(6627);
259
+ // EXTERNAL MODULE: external "classnames"
260
+ var external_classnames_ = __webpack_require__(8310);
261
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
262
+ // EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
263
+ var Utils = __webpack_require__(5654);
264
+ // EXTERNAL MODULE: ./src/components/Utils/Style.ts
265
+ var Style = __webpack_require__(2755);
266
+ // EXTERNAL MODULE: ./src/components/Tooltip/index.ts + 1 modules
267
+ var Tooltip = __webpack_require__(1512);
268
+ // EXTERNAL MODULE: ./src/components/StatisticsTooltip/helpers.tsx
269
+ var helpers = __webpack_require__(1470);
270
+ // EXTERNAL MODULE: ./src/components/StatisticsLegend/StatisticsSVGLegend.tsx
271
+ var StatisticsSVGLegend = __webpack_require__(655);
272
+ // EXTERNAL MODULE: ./src/components/Utils/Text.ts
273
+ var Text = __webpack_require__(6347);
274
+ ;// CONCATENATED MODULE: ./src/components/Funnel/SVGDataLabel.tsx
275
+
276
+
277
+
278
+ var SVGDataLabelSizes = {
279
+ ESTIMATED_LETTER_PIXELS: 6,
280
+ };
281
+ var SVGDataLabel = external_react_default().memo(function (_a) {
282
+ var _b, _c, _d;
283
+ var item = _a.item, numberToStringFormatter = _a.numberToStringFormatter, _e = _a.fontSize, fontSize = _e === void 0 ? 11 : _e;
284
+ var itemValue = (_b = item.data) === null || _b === void 0 ? void 0 : _b.value, itemLabel = (_c = item.data.label) !== null && _c !== void 0 ? _c : '', maxLabelLength = item.width / SVGDataLabelSizes.ESTIMATED_LETTER_PIXELS, label = (0,Text/* ellipse */.Hp)(itemLabel, maxLabelLength), heigth = item.y1 + item.y0 + 30, labelSlug = (0,Text/* slugify */.lV)(itemLabel) + "-data-label";
285
+ return (external_react_default().createElement("text", { key: labelSlug, className: labelSlug, x: item.x0, y: heigth, fill: Style/* gray400 */.de },
286
+ external_react_default().createElement("tspan", { fontSize: fontSize, x: item.x0, y: heigth - fontSize }, label),
287
+ external_react_default().createElement("tspan", { fontSize: fontSize, fill: 'black', fontWeight: 'bold', x: item.x0, y: heigth + 3 }, (_d = numberToStringFormatter === null || numberToStringFormatter === void 0 ? void 0 : numberToStringFormatter(itemValue)) !== null && _d !== void 0 ? _d : itemValue)));
288
+ });
289
+ SVGDataLabel.displayName = 'SVGDataLabel';
290
+
291
+
292
+ ;// CONCATENATED MODULE: ./src/components/Funnel/Funnel.tsx
293
+ var __extends = (undefined && undefined.__extends) || (function () {
294
+ var extendStatics = function (d, b) {
295
+ extendStatics = Object.setPrototypeOf ||
296
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
297
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
298
+ return extendStatics(d, b);
299
+ };
300
+ return function (d, b) {
301
+ extendStatics(d, b);
302
+ function __() { this.constructor = d; }
303
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
304
+ };
305
+ })();
306
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
307
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
308
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
309
+ 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;
310
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
311
+ };
312
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
313
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
314
+ };
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+ // Importing this type from nivo, we get an error, therefore we create it here.
327
+ var FunnelLayerType;
328
+ (function (FunnelLayerType) {
329
+ FunnelLayerType["Parts"] = "parts";
330
+ })(FunnelLayerType || (FunnelLayerType = {}));
331
+ /**
332
+ * ### Overview
333
+ *
334
+ * The `Funnel` allows you to see cumulated data.
335
+ * To see each state independently, prefer a `Histogram` or a `PieChart`.<br />
336
+ * Make sure the component's container has a defined height so it is rendered.
337
+ * */
338
+ var Funnel = /** @class */ (function (_super) {
339
+ __extends(Funnel, _super);
340
+ function Funnel(props) {
341
+ var _this = _super.call(this, props) || this;
342
+ _this.marginBottom = 60;
343
+ _this.renderTooltip = null;
344
+ _this.state = {
345
+ data: [],
346
+ sinkData: [],
347
+ colors: [],
348
+ };
349
+ return _this;
350
+ }
351
+ Funnel.prototype.componentDidMount = function () {
352
+ this.setupComponent();
353
+ };
354
+ Funnel.prototype.componentDidUpdate = function (prevProps) {
355
+ if ((0,Utils/* deepEqual */.vZ)(prevProps, this.props)) {
356
+ return;
357
+ }
358
+ this.setupComponent();
359
+ };
360
+ Funnel.prototype.setupComponent = function () {
361
+ var _a;
362
+ var _b = this.separateDataFromSinkData(), data = _b.data, sinkData = _b.sinkData, accumulatedValues = data.reduce(function (acc, item) { return acc + item.value; }, 0), colors = (0,Style/* generateRangeColor */.vA)(data.length, this.props.colors);
363
+ this.renderTooltip = (0,helpers/* getRenderStatisticsTooltip */.q)({
364
+ tooltipDataLabelKey: 'value',
365
+ tooltipDataTitleKey: 'id',
366
+ tooltipDataValueKey: 'percentage',
367
+ numberToStringFormatter: (_a = this.props.tooltipValueFormat) !== null && _a !== void 0 ? _a : this.props.numberToStringFormatter,
368
+ className: null,
369
+ withColor: true,
370
+ });
371
+ this.setState({ data: data, sinkData: sinkData, colors: colors, isZeroData: accumulatedValues === 0 });
372
+ };
373
+ Funnel.prototype.separateDataFromSinkData = function () {
374
+ var _a, _b;
375
+ var data = [], sinkData = [];
376
+ ((_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.data) !== null && _b !== void 0 ? _b : []).forEach(function (item) {
377
+ if (item.isSinkState) {
378
+ sinkData.push(item);
379
+ }
380
+ else {
381
+ data.push({ id: item.label, value: item.value, label: item.label, percentage: item.percentage });
382
+ }
383
+ });
384
+ return { data: data, sinkData: sinkData };
385
+ };
386
+ Funnel.prototype.renderTooltips = function () {
387
+ return (external_react_default().createElement("div", { className: 'position-absolute h-100 w-100 d-flex align-items-end' }, this.state.data.map(this.renderSingleTooltip)));
388
+ };
389
+ Funnel.prototype.renderSingleTooltip = function (item, i) {
390
+ var _a, _b, _c;
391
+ var content = (_a = this === null || this === void 0 ? void 0 : this.renderTooltip) === null || _a === void 0 ? void 0 : _a.call(this, { data: item, color: (_c = (_b = this.state) === null || _b === void 0 ? void 0 : _b.colors) === null || _c === void 0 ? void 0 : _c[i] });
392
+ if (content == null) {
393
+ return null;
394
+ }
395
+ return (external_react_default().createElement(Tooltip.Tooltip, { key: item.label, placement: 'top', content: content },
396
+ external_react_default().createElement("div", { className: 'w-100 tooltip-zone' })));
397
+ };
398
+ Funnel.prototype.renderDataLabels = function (props) {
399
+ return props.parts.map(this.renderSVGDataLabel);
400
+ };
401
+ Funnel.prototype.renderSinkDataLabels = function (props) {
402
+ return (external_react_default().createElement(StatisticsSVGLegend/* StatisticsSVGLegend */.Q, { data: this.state.sinkData, x: 0, y: props.height + this.marginBottom - 8, valueFormat: this.props.numberToStringFormatter }));
403
+ };
404
+ Funnel.prototype.renderSVGDataLabel = function (part) {
405
+ return (external_react_default().createElement(SVGDataLabel, { key: part.data.label + "-data", item: part, numberToStringFormatter: this.props.numberToStringFormatter }));
406
+ };
407
+ Funnel.prototype.renderEmptyParts = function (props) {
408
+ return props.parts.map(this.renderEmptyPart);
409
+ };
410
+ Funnel.prototype.renderEmptyPart = function (part) {
411
+ return (external_react_default().createElement("line", { key: part.data.label + "-empty", x1: part.x0, y1: part.y, x2: part.x1, y2: part.y, stroke: part.color }));
412
+ };
413
+ Funnel.prototype.render = function () {
414
+ var layers = this.state.isZeroData
415
+ ? [this.renderEmptyParts]
416
+ : [FunnelLayerType.Parts], className = external_classnames_default()('funnel-container w-100 h-100', this.props.className);
417
+ layers.push(this.renderDataLabels, this.renderSinkDataLabels);
418
+ return (external_react_default().createElement("div", { id: this.props.id, className: className, ref: this.props.chartRef },
419
+ external_react_default().createElement(funnel_.ResponsiveFunnel, { layers: layers, shapeBlending: 0.25, isInteractive: false, data: this.state.data, colors: this.state.colors, direction: 'horizontal', margin: { top: 0, right: 0, bottom: this.marginBottom, left: 0 }, borderWidth: 1, borderOpacity: 1, labelColor: { from: 'color', modifiers: [['darker', 3]] }, enableBeforeSeparators: false, enableAfterSeparators: false, currentBorderWidth: 0 }),
420
+ this.renderTooltips()));
421
+ };
422
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
423
+ Funnel.displayName = 'Funnel';
424
+ Funnel.defaultProps = {
425
+ colors: [Style/* blue50 */.WV, Style/* blue90 */.Ls, Style/* blue95 */.P3, Style/* blue300 */.p5],
426
+ };
427
+ __decorate([
428
+ esm/* boundMethod */.MR,
429
+ __metadata("design:type", Function),
430
+ __metadata("design:paramtypes", []),
431
+ __metadata("design:returntype", typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _a : Object)
432
+ ], Funnel.prototype, "renderTooltips", null);
433
+ __decorate([
434
+ esm/* boundMethod */.MR,
435
+ __metadata("design:type", Function),
436
+ __metadata("design:paramtypes", [Object, Number]),
437
+ __metadata("design:returntype", typeof (_b = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _b : Object)
438
+ ], Funnel.prototype, "renderSingleTooltip", null);
439
+ __decorate([
440
+ esm/* boundMethod */.MR,
441
+ __metadata("design:type", Function),
442
+ __metadata("design:paramtypes", [typeof (_c = typeof funnel_.FunnelCustomLayerProps !== "undefined" && funnel_.FunnelCustomLayerProps) === "function" ? _c : Object]),
443
+ __metadata("design:returntype", typeof (_d = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _d : Object)
444
+ ], Funnel.prototype, "renderDataLabels", null);
445
+ __decorate([
446
+ esm/* boundMethod */.MR,
447
+ __metadata("design:type", Function),
448
+ __metadata("design:paramtypes", [typeof (_e = typeof funnel_.FunnelCustomLayerProps !== "undefined" && funnel_.FunnelCustomLayerProps) === "function" ? _e : Object]),
449
+ __metadata("design:returntype", typeof (_f = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _f : Object)
450
+ ], Funnel.prototype, "renderSinkDataLabels", null);
451
+ __decorate([
452
+ esm/* boundMethod */.MR,
453
+ __metadata("design:type", Function),
454
+ __metadata("design:paramtypes", [typeof (_g = typeof funnel_.Part !== "undefined" && funnel_.Part) === "function" ? _g : Object]),
455
+ __metadata("design:returntype", typeof (_h = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _h : Object)
456
+ ], Funnel.prototype, "renderSVGDataLabel", null);
457
+ __decorate([
458
+ esm/* boundMethod */.MR,
459
+ __metadata("design:type", Function),
460
+ __metadata("design:paramtypes", [typeof (_j = typeof funnel_.FunnelCustomLayerProps !== "undefined" && funnel_.FunnelCustomLayerProps) === "function" ? _j : Object]),
461
+ __metadata("design:returntype", typeof (_k = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _k : Object)
462
+ ], Funnel.prototype, "renderEmptyParts", null);
463
+ __decorate([
464
+ esm/* boundMethod */.MR,
465
+ __metadata("design:type", Function),
466
+ __metadata("design:paramtypes", [typeof (_l = typeof funnel_.Part !== "undefined" && funnel_.Part) === "function" ? _l : Object]),
467
+ __metadata("design:returntype", typeof (_m = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _m : Object)
468
+ ], Funnel.prototype, "renderEmptyPart", null);
469
+ return Funnel;
470
+ }((external_react_default()).Component));
471
+
472
+
473
+ ;// CONCATENATED MODULE: ./src/components/Funnel/index.ts
474
+
475
+
476
+
477
+ /***/ }),
478
+
479
+ /***/ 655:
480
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
481
+
482
+ "use strict";
483
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
484
+ /* harmony export */ "Q": () => (/* binding */ StatisticsSVGLegend)
485
+ /* harmony export */ });
486
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
487
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
488
+ /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6627);
489
+ /* harmony import */ var _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6055);
490
+ /* harmony import */ var _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__);
491
+ /* harmony import */ var _Utils_Style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2755);
492
+ /* harmony import */ var _Utils_Statistics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5258);
493
+ var __extends = (undefined && undefined.__extends) || (function () {
494
+ var extendStatics = function (d, b) {
495
+ extendStatics = Object.setPrototypeOf ||
496
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
497
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
498
+ return extendStatics(d, b);
499
+ };
500
+ return function (d, b) {
501
+ extendStatics(d, b);
502
+ function __() { this.constructor = d; }
503
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
504
+ };
505
+ })();
506
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
507
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
508
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
509
+ 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;
510
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
511
+ };
512
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
513
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
514
+ };
515
+
516
+
517
+
518
+
519
+
520
+ var StatisticsSVGLegend = /** @class */ (function (_super) {
521
+ __extends(StatisticsSVGLegend, _super);
522
+ function StatisticsSVGLegend() {
523
+ return _super !== null && _super.apply(this, arguments) || this;
524
+ }
525
+ StatisticsSVGLegend.prototype.renderSVGDataInfoBit = function (item, i) {
526
+ var _a, _b, _c, _d, _e, _f, _g, _h;
527
+ var label = (_a = item.label) !== null && _a !== void 0 ? _a : '', percentage = this.renderPercentage(item), dot = this.renderCircle((_b = this.props.colors) === null || _b === void 0 ? void 0 : _b[i]);
528
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), { key: item.label + "-legend-data" },
529
+ dot,
530
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", { x: this.props.x, y: this.props.y, fill: _Utils_Style__WEBPACK_IMPORTED_MODULE_2__/* .gray400 */ .de, fontSize: this.props.fontSize, key: item.label + "-legend-data" },
531
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { dx: dot == null ? 0 : 10 }, (_e = (_d = (_c = this.props).labelFormat) === null || _d === void 0 ? void 0 : _d.call(_c, label)) !== null && _e !== void 0 ? _e : label),
532
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { x: this.getRightElementX(), dx: 5, fill: 'black', fontWeight: 'bold', textAnchor: 'end' }, (_h = (_g = (_f = this.props).valueFormat) === null || _g === void 0 ? void 0 : _g.call(_f, item.value)) !== null && _h !== void 0 ? _h : item.value),
533
+ percentage)));
534
+ };
535
+ StatisticsSVGLegend.prototype.renderSVGDataInfoBitMoreItems = function (item, i) {
536
+ var _a, _b, _c, _d, _e, _f, _g, _h;
537
+ var label = (_a = item.label) !== null && _a !== void 0 ? _a : '', percentage = this.renderPercentage(item), dot = this.renderCircle((_b = this.props.colors) === null || _b === void 0 ? void 0 : _b[i]);
538
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), { key: item.label + "-legend-data-items" },
539
+ dot,
540
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { dx: i === 0 || dot != null ? 0 : 10, fill: _Utils_Style__WEBPACK_IMPORTED_MODULE_2__/* .gray400 */ .de }, (_e = (_d = (_c = this.props).labelFormat) === null || _d === void 0 ? void 0 : _d.call(_c, label)) !== null && _e !== void 0 ? _e : label),
541
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { dx: 5, fill: 'black', fontWeight: 'bold' }, (_h = (_g = (_f = this.props).valueFormat) === null || _g === void 0 ? void 0 : _g.call(_f, item.value)) !== null && _h !== void 0 ? _h : item.value),
542
+ percentage));
543
+ };
544
+ StatisticsSVGLegend.prototype.renderCircle = function (color) {
545
+ if (color == null) {
546
+ return null;
547
+ }
548
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", { cx: this.props.x, cy: this.props.y - 3, r: '5', fill: color });
549
+ };
550
+ StatisticsSVGLegend.prototype.renderPercentage = function (item) {
551
+ var _a;
552
+ var percentage = item.percentage != null ? (0,_Utils_Statistics__WEBPACK_IMPORTED_MODULE_1__/* .normalizePercentage */ .Ow)(item.percentage) : null;
553
+ if (percentage == null) {
554
+ return null;
555
+ }
556
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { x: this.getRightElementX(), dx: 5, fill: (_a = this.props.colors) === null || _a === void 0 ? void 0 : _a[0] }, percentage));
557
+ };
558
+ StatisticsSVGLegend.prototype.getRightElementX = function () {
559
+ var width = this.props.width;
560
+ if (width == null) {
561
+ return undefined;
562
+ }
563
+ return (this.props.x === 0 ? width / 2 : width) - 18;
564
+ };
565
+ StatisticsSVGLegend.prototype.removeItemIfNoValue = function (propsData) {
566
+ return propsData.filter(function (item) { return item.value !== null; });
567
+ };
568
+ StatisticsSVGLegend.prototype.render = function () {
569
+ var legendData = this.removeItemIfNoValue(this.props.data);
570
+ if ((legendData === null || legendData === void 0 ? void 0 : legendData.length) > 1) {
571
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null,
572
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", { x: this.props.x, y: this.props.y, dy: this.props.dy, fill: _Utils_Style__WEBPACK_IMPORTED_MODULE_2__/* .gray400 */ .de, fontSize: this.props.fontSize, key: 'legend-data-bit', className: 'legend-data-bit' }, legendData.map(this.renderSVGDataInfoBitMoreItems))));
573
+ }
574
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null, legendData.map(this.renderSVGDataInfoBit));
575
+ };
576
+ var _a, _b, _c, _d;
577
+ StatisticsSVGLegend.displayName = 'StatisticsSVGLegend';
578
+ StatisticsSVGLegend.defaultProps = {
579
+ dy: 0,
580
+ fontSize: 11,
581
+ colors: [],
582
+ };
583
+ __decorate([
584
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP,
585
+ __metadata("design:type", Function),
586
+ __metadata("design:paramtypes", [typeof (_a = typeof _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__.DataPoint !== "undefined" && _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__.DataPoint) === "function" ? _a : Object, Number]),
587
+ __metadata("design:returntype", typeof (_b = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().ReactNode)) === "function" ? _b : Object)
588
+ ], StatisticsSVGLegend.prototype, "renderSVGDataInfoBit", null);
589
+ __decorate([
590
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP,
591
+ __metadata("design:type", Function),
592
+ __metadata("design:paramtypes", [typeof (_c = typeof _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__.DataPoint !== "undefined" && _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__.DataPoint) === "function" ? _c : Object, Number]),
593
+ __metadata("design:returntype", typeof (_d = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().ReactNode)) === "function" ? _d : Object)
594
+ ], StatisticsSVGLegend.prototype, "renderSVGDataInfoBitMoreItems", null);
595
+ return StatisticsSVGLegend;
596
+ }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
597
+
598
+
599
+
600
+ /***/ }),
601
+
602
+ /***/ 1470:
603
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
604
+
605
+ "use strict";
606
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
607
+ /* harmony export */ "q": () => (/* binding */ getRenderStatisticsTooltip)
608
+ /* harmony export */ });
609
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
610
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
611
+ /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8805);
612
+ var __assign = (undefined && undefined.__assign) || function () {
613
+ __assign = Object.assign || function(t) {
614
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
615
+ s = arguments[i];
616
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
617
+ t[p] = s[p];
618
+ }
619
+ return t;
620
+ };
621
+ return __assign.apply(this, arguments);
622
+ };
623
+
624
+
625
+ function getRenderStatisticsTooltip(_a) {
626
+ var tooltipDataLabelKey = _a.tooltipDataLabelKey, tooltipDataValueKey = _a.tooltipDataValueKey, tooltipDataTitleKey = _a.tooltipDataTitleKey, otherId = _a.otherId, otherLabel = _a.otherLabel, numberToStringFormatter = _a.numberToStringFormatter, withColor = _a.withColor, _b = _a.className, className = _b === void 0 ? 'tooltip-background' : _b;
627
+ // eslint-disable-next-line react/display-name
628
+ return function (props) {
629
+ var _a, _b, _c, _d;
630
+ var tooltipData = __assign(__assign({}, props.data), { value: (_a = props.data) === null || _a === void 0 ? void 0 : _a['value'], label: (_b = props.data) === null || _b === void 0 ? void 0 : _b['label'], id: (_c = props.data) === null || _c === void 0 ? void 0 : _c['id'], percentage: (_d = props.data) === null || _d === void 0 ? void 0 : _d['percentage'] });
631
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_index__WEBPACK_IMPORTED_MODULE_1__.StatisticsTooltip, { otherId: otherId, otherLabel: otherLabel, numberToStringFormatter: numberToStringFormatter, data: tooltipData, tooltipDataLabelKey: tooltipDataLabelKey, tooltipDataTitleKey: tooltipDataTitleKey, tooltipDataValueKey: tooltipDataValueKey, className: className !== null && className !== void 0 ? className : '', color: withColor ? props.color : undefined }));
632
+ };
633
+ }
634
+
635
+
636
+ /***/ }),
637
+
638
+ /***/ 8805:
639
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
640
+
641
+ "use strict";
642
+
643
+ // EXPORTS
644
+ __webpack_require__.d(__webpack_exports__, {
645
+ "StatisticsTooltip": () => (/* reexport */ StatisticsTooltip)
646
+ });
647
+
648
+ // UNUSED EXPORTS: GetRenderStatisticsTooltipType, getRenderStatisticsTooltip
649
+
650
+ // EXTERNAL MODULE: external "react"
651
+ var external_react_ = __webpack_require__(8156);
652
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
653
+ // EXTERNAL MODULE: external "classnames"
654
+ var external_classnames_ = __webpack_require__(8310);
655
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
656
+ // EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
657
+ var Statistics = __webpack_require__(5258);
658
+ ;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/StatisticsTooltip.tsx
659
+
660
+
661
+
662
+ var StatisticsTooltip = external_react_default().memo(function (props) {
663
+ // eslint-disable-next-line react/display-name
664
+ function renderSubtitle() {
665
+ var values = [
666
+ { value: getLabel(), key: props.tooltipDataLabelKey, className: 'label' },
667
+ { value: getValue(), key: props.tooltipDataValueKey, className: 'value' },
668
+ ]
669
+ .filter(function (el) { return el.value != null; })
670
+ .map(function (el) { return (external_react_default().createElement("span", { key: el.key, className: el.className }, el.value)); });
671
+ if (values.length === 0) {
672
+ return null;
673
+ }
674
+ return external_react_default().createElement("div", { className: 'd-flex justify-content-between' }, values);
675
+ }
676
+ function getLabel() {
677
+ var tooltipDataLabelKey = props.tooltipDataLabelKey, numberToStringFormatter = props.numberToStringFormatter, data = props.data, label = getValueFromData(tooltipDataLabelKey, data);
678
+ if (label == null) {
679
+ return undefined;
680
+ }
681
+ if (numberToStringFormatter == null) {
682
+ return String(label);
683
+ }
684
+ if (typeof label == 'string') {
685
+ return label;
686
+ }
687
+ return numberToStringFormatter(label);
688
+ }
689
+ function getValue() {
690
+ var tooltipDataValueKey = props.tooltipDataValueKey, data = props.data, value = getValueFromData(tooltipDataValueKey, data);
691
+ if (value == null) {
692
+ return undefined;
693
+ }
694
+ if (typeof value == 'number') {
695
+ return (0,Statistics/* normalizePercentage */.Ow)(value);
696
+ }
697
+ return value;
698
+ }
699
+ function getTitle() {
700
+ var tooltipDataTitleKey = props.tooltipDataTitleKey, data = props.data, otherId = props.otherId, otherLabel = props.otherLabel, title = getValueFromData(tooltipDataTitleKey, data);
701
+ if (title === otherId) {
702
+ return otherLabel !== null && otherLabel !== void 0 ? otherLabel : otherId;
703
+ }
704
+ return title ? String(title) : undefined;
705
+ }
706
+ function getValueFromData(key, data) {
707
+ return key == null ? undefined : data === null || data === void 0 ? void 0 : data[key];
708
+ }
709
+ var className = external_classnames_default()('statistics-tooltip', props === null || props === void 0 ? void 0 : props.className), colorRectangle = props.color == null ? null : external_react_default().createElement("span", { className: 'tooltip-rectangle', style: { background: props.color } });
710
+ return (external_react_default().createElement("div", { className: className },
711
+ external_react_default().createElement("div", { className: 'd-flex align-items-center' },
712
+ colorRectangle,
713
+ external_react_default().createElement("span", { className: 'text-left' }, getTitle())),
714
+ renderSubtitle(),
715
+ props.children));
716
+ });
717
+ StatisticsTooltip.displayName = 'StatisticsTooltip';
718
+
719
+ // EXTERNAL MODULE: ./src/components/StatisticsTooltip/helpers.tsx
720
+ var helpers = __webpack_require__(1470);
721
+ ;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/index.ts
722
+
723
+
724
+
725
+
726
+ /***/ }),
727
+
728
+ /***/ 1512:
729
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
730
+
731
+ "use strict";
732
+
733
+ // EXPORTS
734
+ __webpack_require__.d(__webpack_exports__, {
735
+ "Tooltip": () => (/* reexport */ Tooltip)
736
+ });
737
+
738
+ // EXTERNAL MODULE: external "react"
739
+ var external_react_ = __webpack_require__(8156);
740
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
741
+ // EXTERNAL MODULE: external "classnames"
742
+ var external_classnames_ = __webpack_require__(8310);
743
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
744
+ // EXTERNAL MODULE: external "react-bootstrap/OverlayTrigger"
745
+ var OverlayTrigger_ = __webpack_require__(6043);
746
+ var OverlayTrigger_default = /*#__PURE__*/__webpack_require__.n(OverlayTrigger_);
747
+ ;// CONCATENATED MODULE: ./src/components/Tooltip/Tooltip.tsx
748
+ var __assign = (undefined && undefined.__assign) || function () {
749
+ __assign = Object.assign || function(t) {
750
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
751
+ s = arguments[i];
752
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
753
+ t[p] = s[p];
754
+ }
755
+ return t;
756
+ };
757
+ return __assign.apply(this, arguments);
758
+ };
759
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
760
+ var t = {};
761
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
762
+ t[p] = s[p];
763
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
764
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
765
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
766
+ t[p[i]] = s[p[i]];
767
+ }
768
+ return t;
769
+ };
770
+
771
+
772
+
773
+
774
+ /**
775
+ * ### Overview
776
+ *
777
+ * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.
778
+ *
779
+ * ### Best practices
780
+ * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task
781
+ * - The text inside the tooltip should be brief but helpful
782
+ * - Use tooltips to describe the action of icon-only buttons
783
+ * - Make sure that the tooltip’s placement doesn’t hide its related content behind it
784
+ */
785
+ var Tooltip = external_react_default().memo(function (props) {
786
+ var _a;
787
+ var bs4v3Wrapper = document.querySelector('.bs4-v3-external-container'), placement = (_a = props.placement) !== null && _a !== void 0 ? _a : 'top', classNames = external_classnames_default()('tooltip atoka-tooltip', props.className, {
788
+ 'top bs-tooltip-top': placement.indexOf('top') === 0,
789
+ 'right bs-tooltip-right': placement.indexOf('right') === 0,
790
+ 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,
791
+ 'left bs-tooltip-left': placement.indexOf('left') === 0,
792
+ });
793
+ var content = props.content, overlayProps = __rest(props, ["content"]), renderTooltip = function (_a) {
794
+ var arrowProps = _a.arrowProps, tooltipProps = __rest(_a, ["arrowProps"]);
795
+ // {vrut} do not pass show to the component, this will raise an error, see PANDA-439
796
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
797
+ var show = tooltipProps.show, rest = __rest(tooltipProps, ["show"]), component = (external_react_default().createElement("div", __assign({}, rest, { className: classNames, role: 'tooltip' }),
798
+ external_react_default().createElement("div", { className: 'tooltip-inner' },
799
+ external_react_default().createElement("div", __assign({ className: 'arrow arrow-back' }, arrowProps)),
800
+ content,
801
+ external_react_default().createElement("div", __assign({ className: 'arrow arrow-front' }, arrowProps)))));
802
+ return component;
803
+ };
804
+ return (external_react_default().createElement((OverlayTrigger_default()), __assign({}, overlayProps, { container: bs4v3Wrapper, overlay: renderTooltip }), props.children));
805
+ });
806
+ Tooltip.displayName = 'Tooltip';
807
+
808
+ ;// CONCATENATED MODULE: ./src/components/Tooltip/index.ts
809
+
810
+
811
+
812
+ /***/ }),
813
+
814
+ /***/ 6055:
815
+ /***/ (() => {
816
+
817
+
818
+
819
+ /***/ }),
820
+
821
+ /***/ 5258:
822
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
823
+
824
+ "use strict";
825
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
826
+ /* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
827
+ /* harmony export */ });
828
+ /* unused harmony exports createDataWithOtherSlice, createCleanTree */
829
+ /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5654);
830
+ var __values = (undefined && undefined.__values) || function(o) {
831
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
832
+ if (m) return m.call(o);
833
+ if (o && typeof o.length === "number") return {
834
+ next: function () {
835
+ if (o && i >= o.length) o = void 0;
836
+ return { value: o && o[i++], done: !o };
837
+ }
838
+ };
839
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
840
+ };
841
+
842
+
843
+ function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
844
+ var _a, _b;
845
+ if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
846
+ if (dataValueKey === void 0) { dataValueKey = 'value'; }
847
+ var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
848
+ // We know it is defined but Typescript does not get it.
849
+ newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort(sortObjDesc(dataValueKey));
850
+ maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
851
+ var _a;
852
+ if (i < newmaxSlicesNumber && node.id !== otherId) {
853
+ newData.push(createCleanTree(node));
854
+ }
855
+ else {
856
+ var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
857
+ otherValue += nodeValue;
858
+ }
859
+ });
860
+ var otherNode = {};
861
+ otherNode['id'] = newOtherId;
862
+ otherNode['value'] = parseFloat(otherValue.toFixed(2));
863
+ otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
864
+ otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
865
+ if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
866
+ otherNode['percentage'] = (otherValue / total) * 100;
867
+ }
868
+ if (maxSlicesNumber !== Infinity || otherValue !== 0) {
869
+ newData.push(otherNode);
870
+ }
871
+ return newData;
872
+ }
873
+ function createCleanTree(node) {
874
+ if (node.children == null) {
875
+ return node;
876
+ }
877
+ var newNode = clone(node);
878
+ removeValueIfChildren(newNode);
879
+ return newNode;
880
+ }
881
+ // eslint-disable-next-line @typescript-eslint/ban-types
882
+ function removeValueIfChildren(node) {
883
+ var e_1, _a;
884
+ var _b;
885
+ var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
886
+ node['initialValue'] = node['value'];
887
+ if (children.length > 0) {
888
+ delete node['value'];
889
+ }
890
+ try {
891
+ for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
892
+ var child = children_1_1.value;
893
+ removeValueIfChildren(child);
894
+ }
895
+ }
896
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
897
+ finally {
898
+ try {
899
+ if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
900
+ }
901
+ finally { if (e_1) throw e_1.error; }
902
+ }
903
+ }
904
+ function normalizePercentage(value) {
905
+ var _a;
906
+ return parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10) + "%";
907
+ }
908
+
909
+
910
+ /***/ }),
911
+
912
+ /***/ 2755:
913
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
914
+
915
+ "use strict";
916
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
917
+ /* harmony export */ "vA": () => (/* binding */ generateRangeColor),
918
+ /* harmony export */ "WV": () => (/* binding */ blue50),
919
+ /* harmony export */ "Ls": () => (/* binding */ blue90),
920
+ /* harmony export */ "P3": () => (/* binding */ blue95),
921
+ /* harmony export */ "p5": () => (/* binding */ blue300),
922
+ /* harmony export */ "de": () => (/* binding */ gray400)
923
+ /* harmony export */ });
924
+ /* unused harmony exports calculateDomain, white, blue25, blue30, blue80, blue100, gray200, blue400, yellow, orange, red, green, gray100, gray300, purple, viola, pink100, pink200, salmon, black */
925
+ /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1820);
926
+
927
+ function generateRangeColor(len, rangeColors) {
928
+ if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
929
+ var generatedColors = [];
930
+ if (len === 0) {
931
+ return undefined;
932
+ }
933
+ var colors = (0,d3_scale__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
934
+ colors = colors.domain(domain).range(rangeColors);
935
+ for (var i = 0; i < len; i++) {
936
+ generatedColors.push(colors(targetDomain[i]));
937
+ }
938
+ return generatedColors;
939
+ }
940
+ function calculateDomain(len, rangeColorsLength) {
941
+ var domain = [];
942
+ domain.push(0);
943
+ for (var i = 0; i < len - 2; i++) {
944
+ var num = Number((rangeColorsLength / len) * (i + 1));
945
+ domain.push(parseFloat(num.toFixed(2)));
946
+ }
947
+ domain.push(rangeColorsLength);
948
+ return domain;
949
+ }
950
+ // Keep these in sync with variables.less
951
+ var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
952
+ 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';
953
+
954
+
955
+
956
+ /***/ }),
957
+
958
+ /***/ 6347:
959
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
960
+
961
+ "use strict";
962
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
963
+ /* harmony export */ "lV": () => (/* binding */ slugify),
964
+ /* harmony export */ "Hp": () => (/* binding */ ellipse)
965
+ /* harmony export */ });
966
+ /* unused harmony exports isStringEmpty, estimateWordSize, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
967
+ var __values = (undefined && undefined.__values) || function(o) {
968
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
969
+ if (m) return m.call(o);
970
+ if (o && typeof o.length === "number") return {
971
+ next: function () {
972
+ if (o && i >= o.length) o = void 0;
973
+ return { value: o && o[i++], done: !o };
974
+ }
975
+ };
976
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
977
+ };
978
+ var __read = (undefined && undefined.__read) || function (o, n) {
979
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
980
+ if (!m) return o;
981
+ var i = m.call(o), r, ar = [], e;
982
+ try {
983
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
984
+ }
985
+ catch (error) { e = { error: error }; }
986
+ finally {
987
+ try {
988
+ if (r && !r.done && (m = i["return"])) m.call(i);
989
+ }
990
+ finally { if (e) throw e.error; }
991
+ }
992
+ return ar;
993
+ };
994
+ var __spread = (undefined && undefined.__spread) || function () {
995
+ for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
996
+ return ar;
997
+ };
998
+ function isStringEmpty(s) {
999
+ if (s == null) {
1000
+ return true;
1001
+ }
1002
+ return s.match(/^\s*$/) !== null;
1003
+ }
1004
+ function slugify(text) {
1005
+ var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
1006
+ return text
1007
+ .toString()
1008
+ .toLowerCase()
1009
+ .replace(/\s+/g, '-') // Replace spaces with -
1010
+ .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
1011
+ .replace(/&/g, '-and-') // Replace & with 'and'
1012
+ .replace(/[^\w-]+/g, '') // Remove all non-word characters
1013
+ .replace(/--+/g, '-') // Replace multiple - with single -
1014
+ .replace(/^-+/, '') // Trim - from start of text
1015
+ .replace(/-+$/, ''); // Trim - from end of text
1016
+ }
1017
+ function estimateWordSize(wordLength, letterPixels, constant) {
1018
+ return wordLength * letterPixels + constant;
1019
+ }
1020
+ function ellipse(input, length) {
1021
+ if (input == null) {
1022
+ return '';
1023
+ }
1024
+ return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
1025
+ }
1026
+ function matchAndFormatRangeLabel(formatter) {
1027
+ return function (label) {
1028
+ var match = /^([\d*]+)-([\d*]+)$/.exec(label);
1029
+ if (match == null) {
1030
+ return label;
1031
+ }
1032
+ return formatRange({
1033
+ from: match[1],
1034
+ to: match[2],
1035
+ }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
1036
+ };
1037
+ }
1038
+ function formatRange(item, formatter) {
1039
+ var _a, _b;
1040
+ 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));
1041
+ if (from === to) {
1042
+ return "" + from;
1043
+ }
1044
+ return from + " - " + to;
1045
+ }
1046
+ function ellipseAndFormat(formatter, maxLabelLength) {
1047
+ return function (value) {
1048
+ var strValue = value.toString();
1049
+ if (formatter == null) {
1050
+ return ellipse(strValue, maxLabelLength);
1051
+ }
1052
+ return ellipse("" + formatter(strValue), maxLabelLength);
1053
+ };
1054
+ }
1055
+ function escapeRegExp(input) {
1056
+ // eslint-disable-next-line
1057
+ return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
1058
+ }
1059
+ function isMatching(text0, text1) {
1060
+ var e_1, _a;
1061
+ if (text0 == null || text1 == null) {
1062
+ return false;
1063
+ }
1064
+ text0 = text0.toLowerCase();
1065
+ text1 = text1.toLowerCase();
1066
+ if (text1.match(' ') === null) {
1067
+ return text0.match(escapeRegExp(text1)) !== null;
1068
+ }
1069
+ var splitNeedles = text1
1070
+ .split(' ')
1071
+ .filter(function (s) { return !isStringEmpty(s); })
1072
+ .sort(function (a, b) { return b.length - a.length; });
1073
+ try {
1074
+ for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
1075
+ var needle = splitNeedles_1_1.value;
1076
+ if (text0 === needle) {
1077
+ return true;
1078
+ }
1079
+ }
1080
+ }
1081
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1082
+ finally {
1083
+ try {
1084
+ if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
1085
+ }
1086
+ finally { if (e_1) throw e_1.error; }
1087
+ }
1088
+ return false;
1089
+ }
1090
+ function splitTextInParts(needles, text) {
1091
+ var e_2, _a;
1092
+ if (text == null) {
1093
+ return [];
1094
+ }
1095
+ if (needles.match(' ') === null) {
1096
+ var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
1097
+ return text.split(re);
1098
+ }
1099
+ var splitNeedles = needles
1100
+ .split(' ')
1101
+ .filter(function (s) { return !isStringEmpty(s); })
1102
+ .sort(function (a, b) { return b.length - a.length; }), ret = [text];
1103
+ try {
1104
+ for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
1105
+ var needle = splitNeedles_2_1.value;
1106
+ var re = new RegExp('(' + needle + ')', 'gi');
1107
+ for (var index = 0; index < ret.length; index++) {
1108
+ var currentText = ret[index];
1109
+ if (isMatching(currentText, escapeRegExp(needles))) {
1110
+ continue;
1111
+ }
1112
+ var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
1113
+ ret.splice.apply(ret, __spread([index, 1], newParts));
1114
+ }
1115
+ }
1116
+ }
1117
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1118
+ finally {
1119
+ try {
1120
+ if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
1121
+ }
1122
+ finally { if (e_2) throw e_2.error; }
1123
+ }
1124
+ return ret;
1125
+ }
1126
+
1127
+
1128
+ /***/ }),
1129
+
1130
+ /***/ 5654:
1131
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1132
+
1133
+ "use strict";
1134
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1135
+ /* harmony export */ "vZ": () => (/* binding */ deepEqual)
1136
+ /* harmony export */ });
1137
+ /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, sortObjDesc, clone, getDebouncer, rgbToHex */
1138
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
1139
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
1140
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
1141
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1142
+ /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
1143
+ var __read = (undefined && undefined.__read) || function (o, n) {
1144
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1145
+ if (!m) return o;
1146
+ var i = m.call(o), r, ar = [], e;
1147
+ try {
1148
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1149
+ }
1150
+ catch (error) { e = { error: error }; }
1151
+ finally {
1152
+ try {
1153
+ if (r && !r.done && (m = i["return"])) m.call(i);
1154
+ }
1155
+ finally { if (e) throw e.error; }
1156
+ }
1157
+ return ar;
1158
+ };
1159
+
1160
+
1161
+
1162
+ function findChildrenByComponent(children,
1163
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1164
+ component) {
1165
+ var ret = [];
1166
+ React.Children.forEach(children, function (element) {
1167
+ if ((element === null || element === void 0 ? void 0 : element.type) === component) {
1168
+ ret.push(element);
1169
+ }
1170
+ });
1171
+ return ret;
1172
+ }
1173
+ function findChildByComponent(children,
1174
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1175
+ component) {
1176
+ var _a, _b;
1177
+ return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
1178
+ }
1179
+ function hasChildIconOrCheckboxComponent(children) {
1180
+ var ret = false;
1181
+ React.Children.forEach(children, function (element) {
1182
+ if ((element === null || element === void 0 ? void 0 : element.type) != null &&
1183
+ ((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)) {
1184
+ ret = true;
1185
+ return;
1186
+ }
1187
+ });
1188
+ return ret;
1189
+ }
1190
+ function scrollToTop() {
1191
+ window.scrollTo(0, 0);
1192
+ }
1193
+ function zip(arr1, arr2) {
1194
+ var ret = [];
1195
+ var i = 0;
1196
+ while (arr1[i]) {
1197
+ ret.push(arr1[i]);
1198
+ ret.push(arr2[i++]);
1199
+ }
1200
+ return ret;
1201
+ }
1202
+ // eslint-disable-next-line @typescript-eslint/ban-types
1203
+ function sortObjDesc(accessor) {
1204
+ return function (a, b) {
1205
+ var leftVal = 0, rightVal = 0;
1206
+ if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
1207
+ leftVal = a === null || a === void 0 ? void 0 : a[accessor];
1208
+ }
1209
+ if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
1210
+ rightVal = b === null || b === void 0 ? void 0 : b[accessor];
1211
+ }
1212
+ return leftVal > rightVal ? -1 : 1;
1213
+ };
1214
+ }
1215
+ function clone(ob) {
1216
+ return JSON.parse(JSON.stringify(ob));
1217
+ }
1218
+ function getDebouncer(delay) {
1219
+ if (delay === void 0) { delay = 1; }
1220
+ var debounceTimeout = null;
1221
+ return function debounce(f) {
1222
+ if (debounceTimeout !== null) {
1223
+ clearTimeout(debounceTimeout);
1224
+ }
1225
+ debounceTimeout = window.setTimeout(f, delay);
1226
+ };
1227
+ }
1228
+ function isObject(obj) {
1229
+ return typeof obj === 'object' && obj != null;
1230
+ }
1231
+ function deepEqual(obj1, obj2) {
1232
+ if (obj1 === obj2) {
1233
+ return true;
1234
+ }
1235
+ if (isObject(obj1) && isObject(obj2)) {
1236
+ if (Object.keys(obj1).length !== Object.keys(obj2).length) {
1237
+ return false;
1238
+ }
1239
+ for (var prop in obj1) {
1240
+ if (!deepEqual(obj1[prop], obj2[prop])) {
1241
+ return false;
1242
+ }
1243
+ }
1244
+ return true;
1245
+ }
1246
+ return false;
1247
+ }
1248
+ function componentToHex(c) {
1249
+ if (isNaN(c)) {
1250
+ throw Error('The color has not been written correctly');
1251
+ }
1252
+ var hex = c.toString(16).toUpperCase();
1253
+ return hex.length === 1 ? '0' + hex : hex;
1254
+ }
1255
+ function cleanSingleColor(c) {
1256
+ return c.replace(/"|'/g, '').trim();
1257
+ }
1258
+ function rgbToHex(rgb) {
1259
+ if (rgb.includes('rgba')) {
1260
+ throw Error('not implemented');
1261
+ }
1262
+ var _a = __read(rgb
1263
+ .replace('rgb', '')
1264
+ .replace(/\(|\)/gi, '')
1265
+ .split(',')
1266
+ .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;
1267
+ return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
1268
+ }
1269
+
1270
+
1271
+ /***/ }),
1272
+
1273
+ /***/ 6496:
1274
+ /***/ ((module) => {
1275
+
1276
+ function _typeof(obj) {
1277
+ "@babel/helpers - typeof";
1278
+
1279
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1280
+ module.exports = _typeof = function _typeof(obj) {
1281
+ return typeof obj;
1282
+ };
1283
+
1284
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
1285
+ } else {
1286
+ module.exports = _typeof = function _typeof(obj) {
1287
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1288
+ };
1289
+
1290
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
1291
+ }
1292
+
1293
+ return _typeof(obj);
1294
+ }
1295
+
1296
+ module.exports = _typeof;
1297
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
1298
+
1299
+ /***/ }),
1300
+
1301
+ /***/ 9673:
1302
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1303
+
1304
+ module.exports = __webpack_require__(3538);
1305
+
1306
+ /***/ }),
1307
+
1308
+ /***/ 6627:
1309
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1310
+
1311
+ "use strict";
1312
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1313
+ /* harmony export */ "MR": () => (/* binding */ boundMethod),
1314
+ /* harmony export */ "ZP": () => (/* binding */ autobind)
1315
+ /* harmony export */ });
1316
+ /* unused harmony export boundClass */
1317
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
1318
+
1319
+
1320
+ function _typeof(obj) {
1321
+ if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
1322
+ _typeof = function _typeof(obj) {
1323
+ return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
1324
+ };
1325
+ } else {
1326
+ _typeof = function _typeof(obj) {
1327
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
1328
+ };
1329
+ }
1330
+
1331
+ return _typeof(obj);
1332
+ }
1333
+ /**
1334
+ * Return a descriptor removing the value and returning a getter
1335
+ * The getter will return a .bind version of the function
1336
+ * and memoize the result against a symbol on the instance
1337
+ */
1338
+
1339
+
1340
+ function boundMethod(target, key, descriptor) {
1341
+ var fn = descriptor.value;
1342
+
1343
+ if (typeof fn !== 'function') {
1344
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
1345
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
1346
+ // getter for the property which is being replaced. This causes infinite
1347
+ // recursion and an "Out of stack space" error.
1348
+
1349
+
1350
+ var definingProperty = false;
1351
+ return {
1352
+ configurable: true,
1353
+ get: function get() {
1354
+ // eslint-disable-next-line no-prototype-builtins
1355
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
1356
+ return fn;
1357
+ }
1358
+
1359
+ var boundFn = fn.bind(this);
1360
+ definingProperty = true;
1361
+ Object.defineProperty(this, key, {
1362
+ configurable: true,
1363
+ get: function get() {
1364
+ return boundFn;
1365
+ },
1366
+ set: function set(value) {
1367
+ fn = value;
1368
+ delete this[key];
1369
+ }
1370
+ });
1371
+ definingProperty = false;
1372
+ return boundFn;
1373
+ },
1374
+ set: function set(value) {
1375
+ fn = value;
1376
+ }
1377
+ };
1378
+ }
1379
+ /**
1380
+ * Use boundMethod to bind all methods on the target.prototype
1381
+ */
1382
+
1383
+ function boundClass(target) {
1384
+ // (Using reflect to get all keys including symbols)
1385
+ var keys; // Use Reflect if exists
1386
+
1387
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
1388
+ keys = Reflect.ownKeys(target.prototype);
1389
+ } else {
1390
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
1391
+
1392
+ if (typeof Object.getOwnPropertySymbols === 'function') {
1393
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
1394
+ }
1395
+ }
1396
+
1397
+ keys.forEach(function (key) {
1398
+ // Ignore special case target method
1399
+ if (key === 'constructor') {
1400
+ return;
1401
+ }
1402
+
1403
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
1404
+
1405
+ if (typeof descriptor.value === 'function') {
1406
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
1407
+ }
1408
+ });
1409
+ return target;
1410
+ }
1411
+ function autobind() {
1412
+ if (arguments.length === 1) {
1413
+ return boundClass.apply(void 0, arguments);
1414
+ }
1415
+
1416
+ return boundMethod.apply(void 0, arguments);
1417
+ }
1418
+
1419
+ /***/ }),
1420
+
1421
+ /***/ 2766:
1422
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1423
+
1424
+ "use strict";
1425
+
1426
+ // EXPORTS
1427
+ __webpack_require__.d(__webpack_exports__, {
1428
+ "ZP": () => (/* binding */ color),
1429
+ "B8": () => (/* binding */ rgb)
1430
+ });
1431
+
1432
+ // UNUSED EXPORTS: Color, Rgb, brighter, darker, hsl, hslConvert, rgbConvert
1433
+
1434
+ ;// CONCATENATED MODULE: ./node_modules/d3-color/src/define.js
1435
+ /* harmony default export */ function src_define(constructor, factory, prototype) {
1436
+ constructor.prototype = factory.prototype = prototype;
1437
+ prototype.constructor = constructor;
1438
+ }
1439
+ function extend(parent, definition) {
1440
+ var prototype = Object.create(parent.prototype);
1441
+
1442
+ for (var key in definition) {
1443
+ prototype[key] = definition[key];
1444
+ }
1445
+
1446
+ return prototype;
1447
+ }
1448
+ ;// CONCATENATED MODULE: ./node_modules/d3-color/src/color.js
1449
+
1450
+ function Color() {}
1451
+ var _darker = 0.7;
1452
+
1453
+
1454
+ var _brighter = 1 / _darker;
1455
+
1456
+
1457
+ var reI = "\\s*([+-]?\\d+)\\s*",
1458
+ reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
1459
+ reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
1460
+ reHex = /^#([0-9a-f]{3,8})$/,
1461
+ reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
1462
+ reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
1463
+ reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
1464
+ reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
1465
+ reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
1466
+ reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
1467
+ var named = {
1468
+ aliceblue: 0xf0f8ff,
1469
+ antiquewhite: 0xfaebd7,
1470
+ aqua: 0x00ffff,
1471
+ aquamarine: 0x7fffd4,
1472
+ azure: 0xf0ffff,
1473
+ beige: 0xf5f5dc,
1474
+ bisque: 0xffe4c4,
1475
+ black: 0x000000,
1476
+ blanchedalmond: 0xffebcd,
1477
+ blue: 0x0000ff,
1478
+ blueviolet: 0x8a2be2,
1479
+ brown: 0xa52a2a,
1480
+ burlywood: 0xdeb887,
1481
+ cadetblue: 0x5f9ea0,
1482
+ chartreuse: 0x7fff00,
1483
+ chocolate: 0xd2691e,
1484
+ coral: 0xff7f50,
1485
+ cornflowerblue: 0x6495ed,
1486
+ cornsilk: 0xfff8dc,
1487
+ crimson: 0xdc143c,
1488
+ cyan: 0x00ffff,
1489
+ darkblue: 0x00008b,
1490
+ darkcyan: 0x008b8b,
1491
+ darkgoldenrod: 0xb8860b,
1492
+ darkgray: 0xa9a9a9,
1493
+ darkgreen: 0x006400,
1494
+ darkgrey: 0xa9a9a9,
1495
+ darkkhaki: 0xbdb76b,
1496
+ darkmagenta: 0x8b008b,
1497
+ darkolivegreen: 0x556b2f,
1498
+ darkorange: 0xff8c00,
1499
+ darkorchid: 0x9932cc,
1500
+ darkred: 0x8b0000,
1501
+ darksalmon: 0xe9967a,
1502
+ darkseagreen: 0x8fbc8f,
1503
+ darkslateblue: 0x483d8b,
1504
+ darkslategray: 0x2f4f4f,
1505
+ darkslategrey: 0x2f4f4f,
1506
+ darkturquoise: 0x00ced1,
1507
+ darkviolet: 0x9400d3,
1508
+ deeppink: 0xff1493,
1509
+ deepskyblue: 0x00bfff,
1510
+ dimgray: 0x696969,
1511
+ dimgrey: 0x696969,
1512
+ dodgerblue: 0x1e90ff,
1513
+ firebrick: 0xb22222,
1514
+ floralwhite: 0xfffaf0,
1515
+ forestgreen: 0x228b22,
1516
+ fuchsia: 0xff00ff,
1517
+ gainsboro: 0xdcdcdc,
1518
+ ghostwhite: 0xf8f8ff,
1519
+ gold: 0xffd700,
1520
+ goldenrod: 0xdaa520,
1521
+ gray: 0x808080,
1522
+ green: 0x008000,
1523
+ greenyellow: 0xadff2f,
1524
+ grey: 0x808080,
1525
+ honeydew: 0xf0fff0,
1526
+ hotpink: 0xff69b4,
1527
+ indianred: 0xcd5c5c,
1528
+ indigo: 0x4b0082,
1529
+ ivory: 0xfffff0,
1530
+ khaki: 0xf0e68c,
1531
+ lavender: 0xe6e6fa,
1532
+ lavenderblush: 0xfff0f5,
1533
+ lawngreen: 0x7cfc00,
1534
+ lemonchiffon: 0xfffacd,
1535
+ lightblue: 0xadd8e6,
1536
+ lightcoral: 0xf08080,
1537
+ lightcyan: 0xe0ffff,
1538
+ lightgoldenrodyellow: 0xfafad2,
1539
+ lightgray: 0xd3d3d3,
1540
+ lightgreen: 0x90ee90,
1541
+ lightgrey: 0xd3d3d3,
1542
+ lightpink: 0xffb6c1,
1543
+ lightsalmon: 0xffa07a,
1544
+ lightseagreen: 0x20b2aa,
1545
+ lightskyblue: 0x87cefa,
1546
+ lightslategray: 0x778899,
1547
+ lightslategrey: 0x778899,
1548
+ lightsteelblue: 0xb0c4de,
1549
+ lightyellow: 0xffffe0,
1550
+ lime: 0x00ff00,
1551
+ limegreen: 0x32cd32,
1552
+ linen: 0xfaf0e6,
1553
+ magenta: 0xff00ff,
1554
+ maroon: 0x800000,
1555
+ mediumaquamarine: 0x66cdaa,
1556
+ mediumblue: 0x0000cd,
1557
+ mediumorchid: 0xba55d3,
1558
+ mediumpurple: 0x9370db,
1559
+ mediumseagreen: 0x3cb371,
1560
+ mediumslateblue: 0x7b68ee,
1561
+ mediumspringgreen: 0x00fa9a,
1562
+ mediumturquoise: 0x48d1cc,
1563
+ mediumvioletred: 0xc71585,
1564
+ midnightblue: 0x191970,
1565
+ mintcream: 0xf5fffa,
1566
+ mistyrose: 0xffe4e1,
1567
+ moccasin: 0xffe4b5,
1568
+ navajowhite: 0xffdead,
1569
+ navy: 0x000080,
1570
+ oldlace: 0xfdf5e6,
1571
+ olive: 0x808000,
1572
+ olivedrab: 0x6b8e23,
1573
+ orange: 0xffa500,
1574
+ orangered: 0xff4500,
1575
+ orchid: 0xda70d6,
1576
+ palegoldenrod: 0xeee8aa,
1577
+ palegreen: 0x98fb98,
1578
+ paleturquoise: 0xafeeee,
1579
+ palevioletred: 0xdb7093,
1580
+ papayawhip: 0xffefd5,
1581
+ peachpuff: 0xffdab9,
1582
+ peru: 0xcd853f,
1583
+ pink: 0xffc0cb,
1584
+ plum: 0xdda0dd,
1585
+ powderblue: 0xb0e0e6,
1586
+ purple: 0x800080,
1587
+ rebeccapurple: 0x663399,
1588
+ red: 0xff0000,
1589
+ rosybrown: 0xbc8f8f,
1590
+ royalblue: 0x4169e1,
1591
+ saddlebrown: 0x8b4513,
1592
+ salmon: 0xfa8072,
1593
+ sandybrown: 0xf4a460,
1594
+ seagreen: 0x2e8b57,
1595
+ seashell: 0xfff5ee,
1596
+ sienna: 0xa0522d,
1597
+ silver: 0xc0c0c0,
1598
+ skyblue: 0x87ceeb,
1599
+ slateblue: 0x6a5acd,
1600
+ slategray: 0x708090,
1601
+ slategrey: 0x708090,
1602
+ snow: 0xfffafa,
1603
+ springgreen: 0x00ff7f,
1604
+ steelblue: 0x4682b4,
1605
+ tan: 0xd2b48c,
1606
+ teal: 0x008080,
1607
+ thistle: 0xd8bfd8,
1608
+ tomato: 0xff6347,
1609
+ turquoise: 0x40e0d0,
1610
+ violet: 0xee82ee,
1611
+ wheat: 0xf5deb3,
1612
+ white: 0xffffff,
1613
+ whitesmoke: 0xf5f5f5,
1614
+ yellow: 0xffff00,
1615
+ yellowgreen: 0x9acd32
1616
+ };
1617
+ src_define(Color, color, {
1618
+ copy: function copy(channels) {
1619
+ return Object.assign(new this.constructor(), this, channels);
1620
+ },
1621
+ displayable: function displayable() {
1622
+ return this.rgb().displayable();
1623
+ },
1624
+ hex: color_formatHex,
1625
+ // Deprecated! Use color.formatHex.
1626
+ formatHex: color_formatHex,
1627
+ formatHsl: color_formatHsl,
1628
+ formatRgb: color_formatRgb,
1629
+ toString: color_formatRgb
1630
+ });
1631
+
1632
+ function color_formatHex() {
1633
+ return this.rgb().formatHex();
1634
+ }
1635
+
1636
+ function color_formatHsl() {
1637
+ return hslConvert(this).formatHsl();
1638
+ }
1639
+
1640
+ function color_formatRgb() {
1641
+ return this.rgb().formatRgb();
1642
+ }
1643
+
1644
+ function color(format) {
1645
+ var m, l;
1646
+ format = (format + "").trim().toLowerCase();
1647
+ return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
1648
+ : l === 3 ? new Rgb(m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, (m & 0xf) << 4 | m & 0xf, 1) // #f00
1649
+ : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
1650
+ : 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
1651
+ : null // invalid hex
1652
+ ) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
1653
+ : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
1654
+ : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
1655
+ : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
1656
+ : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
1657
+ : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
1658
+ : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
1659
+ : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
1660
+ }
1661
+
1662
+ function rgbn(n) {
1663
+ return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
1664
+ }
1665
+
1666
+ function rgba(r, g, b, a) {
1667
+ if (a <= 0) r = g = b = NaN;
1668
+ return new Rgb(r, g, b, a);
1669
+ }
1670
+
1671
+ function rgbConvert(o) {
1672
+ if (!(o instanceof Color)) o = color(o);
1673
+ if (!o) return new Rgb();
1674
+ o = o.rgb();
1675
+ return new Rgb(o.r, o.g, o.b, o.opacity);
1676
+ }
1677
+ function rgb(r, g, b, opacity) {
1678
+ return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
1679
+ }
1680
+ function Rgb(r, g, b, opacity) {
1681
+ this.r = +r;
1682
+ this.g = +g;
1683
+ this.b = +b;
1684
+ this.opacity = +opacity;
1685
+ }
1686
+ src_define(Rgb, rgb, extend(Color, {
1687
+ brighter: function brighter(k) {
1688
+ k = k == null ? _brighter : Math.pow(_brighter, k);
1689
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
1690
+ },
1691
+ darker: function darker(k) {
1692
+ k = k == null ? _darker : Math.pow(_darker, k);
1693
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
1694
+ },
1695
+ rgb: function rgb() {
1696
+ return this;
1697
+ },
1698
+ displayable: function displayable() {
1699
+ 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;
1700
+ },
1701
+ hex: rgb_formatHex,
1702
+ // Deprecated! Use color.formatHex.
1703
+ formatHex: rgb_formatHex,
1704
+ formatRgb: rgb_formatRgb,
1705
+ toString: rgb_formatRgb
1706
+ }));
1707
+
1708
+ function rgb_formatHex() {
1709
+ return "#" + hex(this.r) + hex(this.g) + hex(this.b);
1710
+ }
1711
+
1712
+ function rgb_formatRgb() {
1713
+ var a = this.opacity;
1714
+ a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
1715
+ 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 + ")");
1716
+ }
1717
+
1718
+ function hex(value) {
1719
+ value = Math.max(0, Math.min(255, Math.round(value) || 0));
1720
+ return (value < 16 ? "0" : "") + value.toString(16);
1721
+ }
1722
+
1723
+ function hsla(h, s, l, a) {
1724
+ if (a <= 0) h = s = l = NaN;else if (l <= 0 || l >= 1) h = s = NaN;else if (s <= 0) h = NaN;
1725
+ return new Hsl(h, s, l, a);
1726
+ }
1727
+
1728
+ function hslConvert(o) {
1729
+ if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
1730
+ if (!(o instanceof Color)) o = color(o);
1731
+ if (!o) return new Hsl();
1732
+ if (o instanceof Hsl) return o;
1733
+ o = o.rgb();
1734
+ var r = o.r / 255,
1735
+ g = o.g / 255,
1736
+ b = o.b / 255,
1737
+ min = Math.min(r, g, b),
1738
+ max = Math.max(r, g, b),
1739
+ h = NaN,
1740
+ s = max - min,
1741
+ l = (max + min) / 2;
1742
+
1743
+ if (s) {
1744
+ 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;
1745
+ s /= l < 0.5 ? max + min : 2 - max - min;
1746
+ h *= 60;
1747
+ } else {
1748
+ s = l > 0 && l < 1 ? 0 : h;
1749
+ }
1750
+
1751
+ return new Hsl(h, s, l, o.opacity);
1752
+ }
1753
+ function hsl(h, s, l, opacity) {
1754
+ return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
1755
+ }
1756
+
1757
+ function Hsl(h, s, l, opacity) {
1758
+ this.h = +h;
1759
+ this.s = +s;
1760
+ this.l = +l;
1761
+ this.opacity = +opacity;
1762
+ }
1763
+
1764
+ src_define(Hsl, hsl, extend(Color, {
1765
+ brighter: function brighter(k) {
1766
+ k = k == null ? _brighter : Math.pow(_brighter, k);
1767
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
1768
+ },
1769
+ darker: function darker(k) {
1770
+ k = k == null ? _darker : Math.pow(_darker, k);
1771
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
1772
+ },
1773
+ rgb: function rgb() {
1774
+ var h = this.h % 360 + (this.h < 0) * 360,
1775
+ s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
1776
+ l = this.l,
1777
+ m2 = l + (l < 0.5 ? l : 1 - l) * s,
1778
+ m1 = 2 * l - m2;
1779
+ 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);
1780
+ },
1781
+ displayable: function displayable() {
1782
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1783
+ },
1784
+ formatHsl: function formatHsl() {
1785
+ var a = this.opacity;
1786
+ a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
1787
+ return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
1788
+ }
1789
+ }));
1790
+ /* From FvD 13.37, CSS Color Module Level 3 */
1791
+
1792
+ function hsl2rgb(h, m1, m2) {
1793
+ return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
1794
+ }
1795
+
1796
+ /***/ }),
1797
+
1798
+ /***/ 1820:
1799
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1800
+
1801
+ "use strict";
1802
+
1803
+ // EXPORTS
1804
+ __webpack_require__.d(__webpack_exports__, {
1805
+ "Z": () => (/* binding */ linear_linear)
1806
+ });
1807
+
1808
+ // UNUSED EXPORTS: linearish
1809
+
1810
+ ;// CONCATENATED MODULE: ./node_modules/d3-array/src/ticks.js
1811
+ var e10 = Math.sqrt(50),
1812
+ e5 = Math.sqrt(10),
1813
+ e2 = Math.sqrt(2);
1814
+ /* harmony default export */ function ticks(start, stop, count) {
1815
+ var reverse,
1816
+ i = -1,
1817
+ n,
1818
+ ticks,
1819
+ step;
1820
+ stop = +stop, start = +start, count = +count;
1821
+ if (start === stop && count > 0) return [start];
1822
+ if (reverse = stop < start) n = start, start = stop, stop = n;
1823
+ if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
1824
+
1825
+ if (step > 0) {
1826
+ var r0 = Math.round(start / step),
1827
+ r1 = Math.round(stop / step);
1828
+ if (r0 * step < start) ++r0;
1829
+ if (r1 * step > stop) --r1;
1830
+ ticks = new Array(n = r1 - r0 + 1);
1831
+
1832
+ while (++i < n) {
1833
+ ticks[i] = (r0 + i) * step;
1834
+ }
1835
+ } else {
1836
+ step = -step;
1837
+
1838
+ var _r = Math.round(start * step),
1839
+ _r2 = Math.round(stop * step);
1840
+
1841
+ if (_r / step < start) ++_r;
1842
+ if (_r2 / step > stop) --_r2;
1843
+ ticks = new Array(n = _r2 - _r + 1);
1844
+
1845
+ while (++i < n) {
1846
+ ticks[i] = (_r + i) / step;
1847
+ }
1848
+ }
1849
+
1850
+ if (reverse) ticks.reverse();
1851
+ return ticks;
1852
+ }
1853
+ function tickIncrement(start, stop, count) {
1854
+ var step = (stop - start) / Math.max(0, count),
1855
+ power = Math.floor(Math.log(step) / Math.LN10),
1856
+ error = step / Math.pow(10, power);
1857
+ 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);
1858
+ }
1859
+ function tickStep(start, stop, count) {
1860
+ var step0 = Math.abs(stop - start) / Math.max(0, count),
1861
+ step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
1862
+ error = step0 / step1;
1863
+ if (error >= e10) step1 *= 10;else if (error >= e5) step1 *= 5;else if (error >= e2) step1 *= 2;
1864
+ return stop < start ? -step1 : step1;
1865
+ }
1866
+ ;// CONCATENATED MODULE: ./node_modules/d3-array/src/ascending.js
1867
+ /* harmony default export */ function ascending(a, b) {
1868
+ return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
1869
+ }
1870
+ ;// CONCATENATED MODULE: ./node_modules/d3-array/src/bisector.js
1871
+
1872
+ /* harmony default export */ function bisector(f) {
1873
+ var delta = f;
1874
+ var compare = f;
1875
+
1876
+ if (f.length === 1) {
1877
+ delta = function delta(d, x) {
1878
+ return f(d) - x;
1879
+ };
1880
+
1881
+ compare = ascendingComparator(f);
1882
+ }
1883
+
1884
+ function left(a, x, lo, hi) {
1885
+ if (lo == null) lo = 0;
1886
+ if (hi == null) hi = a.length;
1887
+
1888
+ while (lo < hi) {
1889
+ var mid = lo + hi >>> 1;
1890
+ if (compare(a[mid], x) < 0) lo = mid + 1;else hi = mid;
1891
+ }
1892
+
1893
+ return lo;
1894
+ }
1895
+
1896
+ function right(a, x, lo, hi) {
1897
+ if (lo == null) lo = 0;
1898
+ if (hi == null) hi = a.length;
1899
+
1900
+ while (lo < hi) {
1901
+ var mid = lo + hi >>> 1;
1902
+ if (compare(a[mid], x) > 0) hi = mid;else lo = mid + 1;
1903
+ }
1904
+
1905
+ return lo;
1906
+ }
1907
+
1908
+ function center(a, x, lo, hi) {
1909
+ if (lo == null) lo = 0;
1910
+ if (hi == null) hi = a.length;
1911
+ var i = left(a, x, lo, hi - 1);
1912
+ return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
1913
+ }
1914
+
1915
+ return {
1916
+ left: left,
1917
+ center: center,
1918
+ right: right
1919
+ };
1920
+ }
1921
+
1922
+ function ascendingComparator(f) {
1923
+ return function (d, x) {
1924
+ return ascending(f(d), x);
1925
+ };
1926
+ }
1927
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
1928
+ var regenerator = __webpack_require__(9673);
1929
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
1930
+ ;// CONCATENATED MODULE: ./node_modules/d3-array/src/number.js
1931
+
1932
+
1933
+ var _marked = /*#__PURE__*/regenerator_default().mark(numbers);
1934
+
1935
+ 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; } } }; }
1936
+
1937
+ 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); }
1938
+
1939
+ 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; }
1940
+
1941
+ /* harmony default export */ function number(x) {
1942
+ return x === null ? NaN : +x;
1943
+ }
1944
+ function numbers(values, valueof) {
1945
+ var _iterator, _step, value, index, _iterator2, _step2, _value;
1946
+
1947
+ return regenerator_default().wrap(function numbers$(_context) {
1948
+ while (1) {
1949
+ switch (_context.prev = _context.next) {
1950
+ case 0:
1951
+ if (!(valueof === undefined)) {
1952
+ _context.next = 21;
1953
+ break;
1954
+ }
1955
+
1956
+ _iterator = _createForOfIteratorHelper(values);
1957
+ _context.prev = 2;
1958
+
1959
+ _iterator.s();
1960
+
1961
+ case 4:
1962
+ if ((_step = _iterator.n()).done) {
1963
+ _context.next = 11;
1964
+ break;
1965
+ }
1966
+
1967
+ value = _step.value;
1968
+
1969
+ if (!(value != null && (value = +value) >= value)) {
1970
+ _context.next = 9;
1971
+ break;
1972
+ }
1973
+
1974
+ _context.next = 9;
1975
+ return value;
1976
+
1977
+ case 9:
1978
+ _context.next = 4;
1979
+ break;
1980
+
1981
+ case 11:
1982
+ _context.next = 16;
1983
+ break;
1984
+
1985
+ case 13:
1986
+ _context.prev = 13;
1987
+ _context.t0 = _context["catch"](2);
1988
+
1989
+ _iterator.e(_context.t0);
1990
+
1991
+ case 16:
1992
+ _context.prev = 16;
1993
+
1994
+ _iterator.f();
1995
+
1996
+ return _context.finish(16);
1997
+
1998
+ case 19:
1999
+ _context.next = 40;
2000
+ break;
2001
+
2002
+ case 21:
2003
+ index = -1;
2004
+ _iterator2 = _createForOfIteratorHelper(values);
2005
+ _context.prev = 23;
2006
+
2007
+ _iterator2.s();
2008
+
2009
+ case 25:
2010
+ if ((_step2 = _iterator2.n()).done) {
2011
+ _context.next = 32;
2012
+ break;
2013
+ }
2014
+
2015
+ _value = _step2.value;
2016
+
2017
+ if (!((_value = valueof(_value, ++index, values)) != null && (_value = +_value) >= _value)) {
2018
+ _context.next = 30;
2019
+ break;
2020
+ }
2021
+
2022
+ _context.next = 30;
2023
+ return _value;
2024
+
2025
+ case 30:
2026
+ _context.next = 25;
2027
+ break;
2028
+
2029
+ case 32:
2030
+ _context.next = 37;
2031
+ break;
2032
+
2033
+ case 34:
2034
+ _context.prev = 34;
2035
+ _context.t1 = _context["catch"](23);
2036
+
2037
+ _iterator2.e(_context.t1);
2038
+
2039
+ case 37:
2040
+ _context.prev = 37;
2041
+
2042
+ _iterator2.f();
2043
+
2044
+ return _context.finish(37);
2045
+
2046
+ case 40:
2047
+ case "end":
2048
+ return _context.stop();
2049
+ }
2050
+ }
2051
+ }, _marked, null, [[2, 13, 16, 19], [23, 34, 37, 40]]);
2052
+ }
2053
+ ;// CONCATENATED MODULE: ./node_modules/d3-array/src/bisect.js
2054
+
2055
+
2056
+
2057
+ var ascendingBisect = bisector(ascending);
2058
+ var bisectRight = ascendingBisect.right;
2059
+ var bisectLeft = ascendingBisect.left;
2060
+ var bisectCenter = bisector(number).center;
2061
+ /* harmony default export */ const bisect = (bisectRight);
2062
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
2063
+ var esm_typeof = __webpack_require__(4329);
2064
+ // EXTERNAL MODULE: ./node_modules/d3-color/src/color.js + 1 modules
2065
+ var src_color = __webpack_require__(2766);
2066
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/basis.js
2067
+ function basis(t1, v0, v1, v2, v3) {
2068
+ var t2 = t1 * t1,
2069
+ t3 = t2 * t1;
2070
+ 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;
2071
+ }
2072
+ /* harmony default export */ function src_basis(values) {
2073
+ var n = values.length - 1;
2074
+ return function (t) {
2075
+ var i = t <= 0 ? t = 0 : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
2076
+ v1 = values[i],
2077
+ v2 = values[i + 1],
2078
+ v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
2079
+ v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
2080
+ return basis((t - i / n) * n, v0, v1, v2, v3);
2081
+ };
2082
+ }
2083
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/basisClosed.js
2084
+
2085
+ /* harmony default export */ function basisClosed(values) {
2086
+ var n = values.length;
2087
+ return function (t) {
2088
+ var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
2089
+ v0 = values[(i + n - 1) % n],
2090
+ v1 = values[i % n],
2091
+ v2 = values[(i + 1) % n],
2092
+ v3 = values[(i + 2) % n];
2093
+ return basis((t - i / n) * n, v0, v1, v2, v3);
2094
+ };
2095
+ }
2096
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/constant.js
2097
+ /* harmony default export */ const src_constant = (function (x) {
2098
+ return function () {
2099
+ return x;
2100
+ };
2101
+ });
2102
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/color.js
2103
+
2104
+
2105
+ function linear(a, d) {
2106
+ return function (t) {
2107
+ return a + t * d;
2108
+ };
2109
+ }
2110
+
2111
+ function exponential(a, b, y) {
2112
+ return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function (t) {
2113
+ return Math.pow(a + t * b, y);
2114
+ };
2115
+ }
2116
+
2117
+ function hue(a, b) {
2118
+ var d = b - a;
2119
+ return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);
2120
+ }
2121
+ function gamma(y) {
2122
+ return (y = +y) === 1 ? nogamma : function (a, b) {
2123
+ return b - a ? exponential(a, b, y) : src_constant(isNaN(a) ? b : a);
2124
+ };
2125
+ }
2126
+ function nogamma(a, b) {
2127
+ var d = b - a;
2128
+ return d ? linear(a, d) : src_constant(isNaN(a) ? b : a);
2129
+ }
2130
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/rgb.js
2131
+
2132
+
2133
+
2134
+
2135
+ /* harmony default export */ const rgb = ((function rgbGamma(y) {
2136
+ var color = gamma(y);
2137
+
2138
+ function rgb(start, end) {
2139
+ var r = color((start = (0,src_color/* rgb */.B8)(start)).r, (end = (0,src_color/* rgb */.B8)(end)).r),
2140
+ g = color(start.g, end.g),
2141
+ b = color(start.b, end.b),
2142
+ opacity = nogamma(start.opacity, end.opacity);
2143
+ return function (t) {
2144
+ start.r = r(t);
2145
+ start.g = g(t);
2146
+ start.b = b(t);
2147
+ start.opacity = opacity(t);
2148
+ return start + "";
2149
+ };
2150
+ }
2151
+
2152
+ rgb.gamma = rgbGamma;
2153
+ return rgb;
2154
+ })(1));
2155
+
2156
+ function rgbSpline(spline) {
2157
+ return function (colors) {
2158
+ var n = colors.length,
2159
+ r = new Array(n),
2160
+ g = new Array(n),
2161
+ b = new Array(n),
2162
+ i,
2163
+ color;
2164
+
2165
+ for (i = 0; i < n; ++i) {
2166
+ color = (0,src_color/* rgb */.B8)(colors[i]);
2167
+ r[i] = color.r || 0;
2168
+ g[i] = color.g || 0;
2169
+ b[i] = color.b || 0;
2170
+ }
2171
+
2172
+ r = spline(r);
2173
+ g = spline(g);
2174
+ b = spline(b);
2175
+ color.opacity = 1;
2176
+ return function (t) {
2177
+ color.r = r(t);
2178
+ color.g = g(t);
2179
+ color.b = b(t);
2180
+ return color + "";
2181
+ };
2182
+ };
2183
+ }
2184
+
2185
+ var rgbBasis = rgbSpline(src_basis);
2186
+ var rgbBasisClosed = rgbSpline(basisClosed);
2187
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/array.js
2188
+
2189
+
2190
+ /* harmony default export */ function array(a, b) {
2191
+ return (isNumberArray(b) ? numberArray : genericArray)(a, b);
2192
+ }
2193
+ function genericArray(a, b) {
2194
+ var nb = b ? b.length : 0,
2195
+ na = a ? Math.min(nb, a.length) : 0,
2196
+ x = new Array(na),
2197
+ c = new Array(nb),
2198
+ i;
2199
+
2200
+ for (i = 0; i < na; ++i) {
2201
+ x[i] = value(a[i], b[i]);
2202
+ }
2203
+
2204
+ for (; i < nb; ++i) {
2205
+ c[i] = b[i];
2206
+ }
2207
+
2208
+ return function (t) {
2209
+ for (i = 0; i < na; ++i) {
2210
+ c[i] = x[i](t);
2211
+ }
2212
+
2213
+ return c;
2214
+ };
2215
+ }
2216
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/date.js
2217
+ /* harmony default export */ function date(a, b) {
2218
+ var d = new Date();
2219
+ return a = +a, b = +b, function (t) {
2220
+ return d.setTime(a * (1 - t) + b * t), d;
2221
+ };
2222
+ }
2223
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/number.js
2224
+ /* harmony default export */ function src_number(a, b) {
2225
+ return a = +a, b = +b, function (t) {
2226
+ return a * (1 - t) + b * t;
2227
+ };
2228
+ }
2229
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/object.js
2230
+
2231
+
2232
+ /* harmony default export */ function object(a, b) {
2233
+ var i = {},
2234
+ c = {},
2235
+ k;
2236
+ if (a === null || (0,esm_typeof/* default */.Z)(a) !== "object") a = {};
2237
+ if (b === null || (0,esm_typeof/* default */.Z)(b) !== "object") b = {};
2238
+
2239
+ for (k in b) {
2240
+ if (k in a) {
2241
+ i[k] = value(a[k], b[k]);
2242
+ } else {
2243
+ c[k] = b[k];
2244
+ }
2245
+ }
2246
+
2247
+ return function (t) {
2248
+ for (k in i) {
2249
+ c[k] = i[k](t);
2250
+ }
2251
+
2252
+ return c;
2253
+ };
2254
+ }
2255
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/string.js
2256
+
2257
+ var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
2258
+ reB = new RegExp(reA.source, "g");
2259
+
2260
+ function zero(b) {
2261
+ return function () {
2262
+ return b;
2263
+ };
2264
+ }
2265
+
2266
+ function one(b) {
2267
+ return function (t) {
2268
+ return b(t) + "";
2269
+ };
2270
+ }
2271
+
2272
+ /* harmony default export */ function string(a, b) {
2273
+ var bi = reA.lastIndex = reB.lastIndex = 0,
2274
+ // scan index for next number in b
2275
+ am,
2276
+ // current match in a
2277
+ bm,
2278
+ // current match in b
2279
+ bs,
2280
+ // string preceding current number in b, if any
2281
+ i = -1,
2282
+ // index in s
2283
+ s = [],
2284
+ // string constants and placeholders
2285
+ q = []; // number interpolators
2286
+ // Coerce inputs to strings.
2287
+
2288
+ a = a + "", b = b + ""; // Interpolate pairs of numbers in a & b.
2289
+
2290
+ while ((am = reA.exec(a)) && (bm = reB.exec(b))) {
2291
+ if ((bs = bm.index) > bi) {
2292
+ // a string precedes the next number in b
2293
+ bs = b.slice(bi, bs);
2294
+ if (s[i]) s[i] += bs; // coalesce with previous string
2295
+ else s[++i] = bs;
2296
+ }
2297
+
2298
+ if ((am = am[0]) === (bm = bm[0])) {
2299
+ // numbers in a & b match
2300
+ if (s[i]) s[i] += bm; // coalesce with previous string
2301
+ else s[++i] = bm;
2302
+ } else {
2303
+ // interpolate non-matching numbers
2304
+ s[++i] = null;
2305
+ q.push({
2306
+ i: i,
2307
+ x: src_number(am, bm)
2308
+ });
2309
+ }
2310
+
2311
+ bi = reB.lastIndex;
2312
+ } // Add remains of b.
2313
+
2314
+
2315
+ if (bi < b.length) {
2316
+ bs = b.slice(bi);
2317
+ if (s[i]) s[i] += bs; // coalesce with previous string
2318
+ else s[++i] = bs;
2319
+ } // Special optimization for only a single match.
2320
+ // Otherwise, interpolate each of the numbers and rejoin the string.
2321
+
2322
+
2323
+ return s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function (t) {
2324
+ for (var i = 0, o; i < b; ++i) {
2325
+ s[(o = q[i]).i] = o.x(t);
2326
+ }
2327
+
2328
+ return s.join("");
2329
+ });
2330
+ }
2331
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/numberArray.js
2332
+ /* harmony default export */ function src_numberArray(a, b) {
2333
+ if (!b) b = [];
2334
+ var n = a ? Math.min(b.length, a.length) : 0,
2335
+ c = b.slice(),
2336
+ i;
2337
+ return function (t) {
2338
+ for (i = 0; i < n; ++i) {
2339
+ c[i] = a[i] * (1 - t) + b[i] * t;
2340
+ }
2341
+
2342
+ return c;
2343
+ };
2344
+ }
2345
+ function numberArray_isNumberArray(x) {
2346
+ return ArrayBuffer.isView(x) && !(x instanceof DataView);
2347
+ }
2348
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/value.js
2349
+
2350
+
2351
+
2352
+
2353
+
2354
+
2355
+
2356
+
2357
+
2358
+
2359
+ /* harmony default export */ function value(a, b) {
2360
+ var t = (0,esm_typeof/* default */.Z)(b),
2361
+ c;
2362
+
2363
+ 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);
2364
+ }
2365
+ ;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/round.js
2366
+ /* harmony default export */ function round(a, b) {
2367
+ return a = +a, b = +b, function (t) {
2368
+ return Math.round(a * (1 - t) + b * t);
2369
+ };
2370
+ }
2371
+ ;// CONCATENATED MODULE: ./node_modules/d3-scale/src/constant.js
2372
+ function constants(x) {
2373
+ return function () {
2374
+ return x;
2375
+ };
2376
+ }
2377
+ ;// CONCATENATED MODULE: ./node_modules/d3-scale/src/number.js
2378
+ function number_number(x) {
2379
+ return +x;
2380
+ }
2381
+ ;// CONCATENATED MODULE: ./node_modules/d3-scale/src/continuous.js
2382
+
2383
+
2384
+
2385
+
2386
+ var unit = [0, 1];
2387
+ function identity(x) {
2388
+ return x;
2389
+ }
2390
+
2391
+ function normalize(a, b) {
2392
+ return (b -= a = +a) ? function (x) {
2393
+ return (x - a) / b;
2394
+ } : constants(isNaN(b) ? NaN : 0.5);
2395
+ }
2396
+
2397
+ function clamper(a, b) {
2398
+ var t;
2399
+ if (a > b) t = a, a = b, b = t;
2400
+ return function (x) {
2401
+ return Math.max(a, Math.min(b, x));
2402
+ };
2403
+ } // normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
2404
+ // interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
2405
+
2406
+
2407
+ function bimap(domain, range, interpolate) {
2408
+ var d0 = domain[0],
2409
+ d1 = domain[1],
2410
+ r0 = range[0],
2411
+ r1 = range[1];
2412
+ if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
2413
+ return function (x) {
2414
+ return r0(d0(x));
2415
+ };
2416
+ }
2417
+
2418
+ function polymap(domain, range, interpolate) {
2419
+ var j = Math.min(domain.length, range.length) - 1,
2420
+ d = new Array(j),
2421
+ r = new Array(j),
2422
+ i = -1; // Reverse descending domains.
2423
+
2424
+ if (domain[j] < domain[0]) {
2425
+ domain = domain.slice().reverse();
2426
+ range = range.slice().reverse();
2427
+ }
2428
+
2429
+ while (++i < j) {
2430
+ d[i] = normalize(domain[i], domain[i + 1]);
2431
+ r[i] = interpolate(range[i], range[i + 1]);
2432
+ }
2433
+
2434
+ return function (x) {
2435
+ var i = bisect(domain, x, 1, j) - 1;
2436
+ return r[i](d[i](x));
2437
+ };
2438
+ }
2439
+
2440
+ function copy(source, target) {
2441
+ return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());
2442
+ }
2443
+ function transformer() {
2444
+ var domain = unit,
2445
+ range = unit,
2446
+ interpolate = value,
2447
+ transform,
2448
+ untransform,
2449
+ unknown,
2450
+ clamp = identity,
2451
+ piecewise,
2452
+ output,
2453
+ input;
2454
+
2455
+ function rescale() {
2456
+ var n = Math.min(domain.length, range.length);
2457
+ if (clamp !== identity) clamp = clamper(domain[0], domain[n - 1]);
2458
+ piecewise = n > 2 ? polymap : bimap;
2459
+ output = input = null;
2460
+ return scale;
2461
+ }
2462
+
2463
+ function scale(x) {
2464
+ return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));
2465
+ }
2466
+
2467
+ scale.invert = function (y) {
2468
+ return clamp(untransform((input || (input = piecewise(range, domain.map(transform), src_number)))(y)));
2469
+ };
2470
+
2471
+ scale.domain = function (_) {
2472
+ return arguments.length ? (domain = Array.from(_, number_number), rescale()) : domain.slice();
2473
+ };
2474
+
2475
+ scale.range = function (_) {
2476
+ return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
2477
+ };
2478
+
2479
+ scale.rangeRound = function (_) {
2480
+ return range = Array.from(_), interpolate = round, rescale();
2481
+ };
2482
+
2483
+ scale.clamp = function (_) {
2484
+ return arguments.length ? (clamp = _ ? true : identity, rescale()) : clamp !== identity;
2485
+ };
2486
+
2487
+ scale.interpolate = function (_) {
2488
+ return arguments.length ? (interpolate = _, rescale()) : interpolate;
2489
+ };
2490
+
2491
+ scale.unknown = function (_) {
2492
+ return arguments.length ? (unknown = _, scale) : unknown;
2493
+ };
2494
+
2495
+ return function (t, u) {
2496
+ transform = t, untransform = u;
2497
+ return rescale();
2498
+ };
2499
+ }
2500
+ function continuous() {
2501
+ return transformer()(identity, identity);
2502
+ }
2503
+ ;// CONCATENATED MODULE: ./node_modules/d3-scale/src/init.js
2504
+ function initRange(domain, range) {
2505
+ switch (arguments.length) {
2506
+ case 0:
2507
+ break;
2508
+
2509
+ case 1:
2510
+ this.range(domain);
2511
+ break;
2512
+
2513
+ default:
2514
+ this.range(range).domain(domain);
2515
+ break;
2516
+ }
2517
+
2518
+ return this;
2519
+ }
2520
+ function initInterpolator(domain, interpolator) {
2521
+ switch (arguments.length) {
2522
+ case 0:
2523
+ break;
2524
+
2525
+ case 1:
2526
+ {
2527
+ if (typeof domain === "function") this.interpolator(domain);else this.range(domain);
2528
+ break;
2529
+ }
2530
+
2531
+ default:
2532
+ {
2533
+ this.domain(domain);
2534
+ if (typeof interpolator === "function") this.interpolator(interpolator);else this.range(interpolator);
2535
+ break;
2536
+ }
2537
+ }
2538
+
2539
+ return this;
2540
+ }
2541
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatSpecifier.js
2542
+ // [[fill]align][sign][symbol][0][width][,][.precision][~][type]
2543
+ var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2544
+ function formatSpecifier(specifier) {
2545
+ if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
2546
+ var match;
2547
+ return new FormatSpecifier({
2548
+ fill: match[1],
2549
+ align: match[2],
2550
+ sign: match[3],
2551
+ symbol: match[4],
2552
+ zero: match[5],
2553
+ width: match[6],
2554
+ comma: match[7],
2555
+ precision: match[8] && match[8].slice(1),
2556
+ trim: match[9],
2557
+ type: match[10]
2558
+ });
2559
+ }
2560
+ formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
2561
+
2562
+ function FormatSpecifier(specifier) {
2563
+ this.fill = specifier.fill === undefined ? " " : specifier.fill + "";
2564
+ this.align = specifier.align === undefined ? ">" : specifier.align + "";
2565
+ this.sign = specifier.sign === undefined ? "-" : specifier.sign + "";
2566
+ this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + "";
2567
+ this.zero = !!specifier.zero;
2568
+ this.width = specifier.width === undefined ? undefined : +specifier.width;
2569
+ this.comma = !!specifier.comma;
2570
+ this.precision = specifier.precision === undefined ? undefined : +specifier.precision;
2571
+ this.trim = !!specifier.trim;
2572
+ this.type = specifier.type === undefined ? "" : specifier.type + "";
2573
+ }
2574
+
2575
+ FormatSpecifier.prototype.toString = function () {
2576
+ 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;
2577
+ };
2578
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatDecimal.js
2579
+ /* harmony default export */ function formatDecimal(x) {
2580
+ return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
2581
+ } // Computes the decimal coefficient and exponent of the specified number x with
2582
+ // significant digits p, where x is positive and p is in [1, 21] or undefined.
2583
+ // For example, formatDecimalParts(1.23) returns ["123", 0].
2584
+
2585
+ function formatDecimalParts(x, p) {
2586
+ if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
2587
+
2588
+ var i,
2589
+ coefficient = x.slice(0, i); // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
2590
+ // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
2591
+
2592
+ return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1)];
2593
+ }
2594
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/exponent.js
2595
+
2596
+ /* harmony default export */ function exponent(x) {
2597
+ return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
2598
+ }
2599
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionPrefix.js
2600
+
2601
+ /* harmony default export */ function precisionPrefix(step, value) {
2602
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
2603
+ }
2604
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatGroup.js
2605
+ /* harmony default export */ function formatGroup(grouping, thousands) {
2606
+ return function (value, width) {
2607
+ var i = value.length,
2608
+ t = [],
2609
+ j = 0,
2610
+ g = grouping[0],
2611
+ length = 0;
2612
+
2613
+ while (i > 0 && g > 0) {
2614
+ if (length + g + 1 > width) g = Math.max(1, width - length);
2615
+ t.push(value.substring(i -= g, i + g));
2616
+ if ((length += g + 1) > width) break;
2617
+ g = grouping[j = (j + 1) % grouping.length];
2618
+ }
2619
+
2620
+ return t.reverse().join(thousands);
2621
+ };
2622
+ }
2623
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatNumerals.js
2624
+ /* harmony default export */ function formatNumerals(numerals) {
2625
+ return function (value) {
2626
+ return value.replace(/[0-9]/g, function (i) {
2627
+ return numerals[+i];
2628
+ });
2629
+ };
2630
+ }
2631
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTrim.js
2632
+ // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
2633
+ /* harmony default export */ function formatTrim(s) {
2634
+ out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
2635
+ switch (s[i]) {
2636
+ case ".":
2637
+ i0 = i1 = i;
2638
+ break;
2639
+
2640
+ case "0":
2641
+ if (i0 === 0) i0 = i;
2642
+ i1 = i;
2643
+ break;
2644
+
2645
+ default:
2646
+ if (!+s[i]) break out;
2647
+ if (i0 > 0) i0 = 0;
2648
+ break;
2649
+ }
2650
+ }
2651
+
2652
+ return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
2653
+ }
2654
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatPrefixAuto.js
2655
+
2656
+ var prefixExponent;
2657
+ /* harmony default export */ function formatPrefixAuto(x, p) {
2658
+ var d = formatDecimalParts(x, p);
2659
+ if (!d) return x + "";
2660
+ var coefficient = d[0],
2661
+ exponent = d[1],
2662
+ i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
2663
+ n = coefficient.length;
2664
+ 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!
2665
+ }
2666
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatRounded.js
2667
+
2668
+ /* harmony default export */ function formatRounded(x, p) {
2669
+ var d = formatDecimalParts(x, p);
2670
+ if (!d) return x + "";
2671
+ var coefficient = d[0],
2672
+ exponent = d[1];
2673
+ 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");
2674
+ }
2675
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTypes.js
2676
+
2677
+
2678
+
2679
+ /* harmony default export */ const formatTypes = ({
2680
+ "%": function _(x, p) {
2681
+ return (x * 100).toFixed(p);
2682
+ },
2683
+ "b": function b(x) {
2684
+ return Math.round(x).toString(2);
2685
+ },
2686
+ "c": function c(x) {
2687
+ return x + "";
2688
+ },
2689
+ "d": formatDecimal,
2690
+ "e": function e(x, p) {
2691
+ return x.toExponential(p);
2692
+ },
2693
+ "f": function f(x, p) {
2694
+ return x.toFixed(p);
2695
+ },
2696
+ "g": function g(x, p) {
2697
+ return x.toPrecision(p);
2698
+ },
2699
+ "o": function o(x) {
2700
+ return Math.round(x).toString(8);
2701
+ },
2702
+ "p": function p(x, _p) {
2703
+ return formatRounded(x * 100, _p);
2704
+ },
2705
+ "r": formatRounded,
2706
+ "s": formatPrefixAuto,
2707
+ "X": function X(x) {
2708
+ return Math.round(x).toString(16).toUpperCase();
2709
+ },
2710
+ "x": function x(_x) {
2711
+ return Math.round(_x).toString(16);
2712
+ }
2713
+ });
2714
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/identity.js
2715
+ /* harmony default export */ function src_identity(x) {
2716
+ return x;
2717
+ }
2718
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/locale.js
2719
+
2720
+
2721
+
2722
+
2723
+
2724
+
2725
+
2726
+
2727
+ var map = Array.prototype.map,
2728
+ prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2729
+ /* harmony default export */ function locale(locale) {
2730
+ var group = locale.grouping === undefined || locale.thousands === undefined ? src_identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
2731
+ currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
2732
+ currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
2733
+ decimal = locale.decimal === undefined ? "." : locale.decimal + "",
2734
+ numerals = locale.numerals === undefined ? src_identity : formatNumerals(map.call(locale.numerals, String)),
2735
+ percent = locale.percent === undefined ? "%" : locale.percent + "",
2736
+ minus = locale.minus === undefined ? "−" : locale.minus + "",
2737
+ nan = locale.nan === undefined ? "NaN" : locale.nan + "";
2738
+
2739
+ function newFormat(specifier) {
2740
+ specifier = formatSpecifier(specifier);
2741
+ var fill = specifier.fill,
2742
+ align = specifier.align,
2743
+ sign = specifier.sign,
2744
+ symbol = specifier.symbol,
2745
+ zero = specifier.zero,
2746
+ width = specifier.width,
2747
+ comma = specifier.comma,
2748
+ precision = specifier.precision,
2749
+ trim = specifier.trim,
2750
+ type = specifier.type; // The "n" type is an alias for ",g".
2751
+
2752
+ if (type === "n") comma = true, type = "g"; // The "" type, and any invalid type, is an alias for ".12~g".
2753
+ else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = "g"; // If zero fill is specified, padding goes after sign and before digits.
2754
+
2755
+ if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "="; // Compute the prefix and suffix.
2756
+ // For SI-prefix, the suffix is lazily computed.
2757
+
2758
+ var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
2759
+ suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : ""; // What format function should we use?
2760
+ // Is this an integer type?
2761
+ // Can this type generate exponential notation?
2762
+
2763
+ var formatType = formatTypes[type],
2764
+ maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified,
2765
+ // or clamp the specified precision to the supported range.
2766
+ // For significant precision, it must be in [1, 21].
2767
+ // For fixed precision, it must be in [0, 20].
2768
+
2769
+ precision = precision === undefined ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
2770
+
2771
+ function format(value) {
2772
+ var valuePrefix = prefix,
2773
+ valueSuffix = suffix,
2774
+ i,
2775
+ n,
2776
+ c;
2777
+
2778
+ if (type === "c") {
2779
+ valueSuffix = formatType(value) + valueSuffix;
2780
+ value = "";
2781
+ } else {
2782
+ value = +value; // Determine the sign. -0 is not less than 0, but 1 / -0 is!
2783
+
2784
+ var valueNegative = value < 0 || 1 / value < 0; // Perform the initial formatting.
2785
+
2786
+ value = isNaN(value) ? nan : formatType(Math.abs(value), precision); // Trim insignificant zeros.
2787
+
2788
+ if (trim) value = formatTrim(value); // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
2789
+
2790
+ if (valueNegative && +value === 0 && sign !== "+") valueNegative = false; // Compute the prefix and suffix.
2791
+
2792
+ valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
2793
+ valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); // Break the formatted value into the integer “value” part that can be
2794
+ // grouped, and fractional or exponential “suffix” part that is not.
2795
+
2796
+ if (maybeSuffix) {
2797
+ i = -1, n = value.length;
2798
+
2799
+ while (++i < n) {
2800
+ if (c = value.charCodeAt(i), 48 > c || c > 57) {
2801
+ valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
2802
+ value = value.slice(0, i);
2803
+ break;
2804
+ }
2805
+ }
2806
+ }
2807
+ } // If the fill character is not "0", grouping is applied before padding.
2808
+
2809
+
2810
+ if (comma && !zero) value = group(value, Infinity); // Compute the padding.
2811
+
2812
+ var length = valuePrefix.length + value.length + valueSuffix.length,
2813
+ padding = length < width ? new Array(width - length + 1).join(fill) : ""; // If the fill character is "0", grouping is applied after padding.
2814
+
2815
+ if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; // Reconstruct the final output based on the desired alignment.
2816
+
2817
+ switch (align) {
2818
+ case "<":
2819
+ value = valuePrefix + value + valueSuffix + padding;
2820
+ break;
2821
+
2822
+ case "=":
2823
+ value = valuePrefix + padding + value + valueSuffix;
2824
+ break;
2825
+
2826
+ case "^":
2827
+ value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
2828
+ break;
2829
+
2830
+ default:
2831
+ value = padding + valuePrefix + value + valueSuffix;
2832
+ break;
2833
+ }
2834
+
2835
+ return numerals(value);
2836
+ }
2837
+
2838
+ format.toString = function () {
2839
+ return specifier + "";
2840
+ };
2841
+
2842
+ return format;
2843
+ }
2844
+
2845
+ function formatPrefix(specifier, value) {
2846
+ var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
2847
+ e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
2848
+ k = Math.pow(10, -e),
2849
+ prefix = prefixes[8 + e / 3];
2850
+ return function (value) {
2851
+ return f(k * value) + prefix;
2852
+ };
2853
+ }
2854
+
2855
+ return {
2856
+ format: newFormat,
2857
+ formatPrefix: formatPrefix
2858
+ };
2859
+ }
2860
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/defaultLocale.js
2861
+
2862
+ var defaultLocale_locale;
2863
+ var format;
2864
+ var formatPrefix;
2865
+ defaultLocale({
2866
+ thousands: ",",
2867
+ grouping: [3],
2868
+ currency: ["$", ""]
2869
+ });
2870
+ function defaultLocale(definition) {
2871
+ defaultLocale_locale = locale(definition);
2872
+ format = defaultLocale_locale.format;
2873
+ formatPrefix = defaultLocale_locale.formatPrefix;
2874
+ return defaultLocale_locale;
2875
+ }
2876
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionRound.js
2877
+
2878
+ /* harmony default export */ function precisionRound(step, max) {
2879
+ step = Math.abs(step), max = Math.abs(max) - step;
2880
+ return Math.max(0, exponent(max) - exponent(step)) + 1;
2881
+ }
2882
+ ;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionFixed.js
2883
+
2884
+ /* harmony default export */ function precisionFixed(step) {
2885
+ return Math.max(0, -exponent(Math.abs(step)));
2886
+ }
2887
+ ;// CONCATENATED MODULE: ./node_modules/d3-scale/src/tickFormat.js
2888
+
2889
+
2890
+ function tickFormat(start, stop, count, specifier) {
2891
+ var step = tickStep(start, stop, count),
2892
+ precision;
2893
+ specifier = formatSpecifier(specifier == null ? ",f" : specifier);
2894
+
2895
+ switch (specifier.type) {
2896
+ case "s":
2897
+ {
2898
+ var value = Math.max(Math.abs(start), Math.abs(stop));
2899
+ if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
2900
+ return formatPrefix(specifier, value);
2901
+ }
2902
+
2903
+ case "":
2904
+ case "e":
2905
+ case "g":
2906
+ case "p":
2907
+ case "r":
2908
+ {
2909
+ if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
2910
+ break;
2911
+ }
2912
+
2913
+ case "f":
2914
+ case "%":
2915
+ {
2916
+ if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
2917
+ break;
2918
+ }
2919
+ }
2920
+
2921
+ return format(specifier);
2922
+ }
2923
+ ;// CONCATENATED MODULE: ./node_modules/d3-scale/src/linear.js
2924
+
2925
+
2926
+
2927
+
2928
+ function linearish(scale) {
2929
+ var domain = scale.domain;
2930
+
2931
+ scale.ticks = function (count) {
2932
+ var d = domain();
2933
+ return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
2934
+ };
2935
+
2936
+ scale.tickFormat = function (count, specifier) {
2937
+ var d = domain();
2938
+ return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
2939
+ };
2940
+
2941
+ scale.nice = function (count) {
2942
+ if (count == null) count = 10;
2943
+ var d = domain();
2944
+ var i0 = 0;
2945
+ var i1 = d.length - 1;
2946
+ var start = d[i0];
2947
+ var stop = d[i1];
2948
+ var prestep;
2949
+ var step;
2950
+ var maxIter = 10;
2951
+
2952
+ if (stop < start) {
2953
+ step = start, start = stop, stop = step;
2954
+ step = i0, i0 = i1, i1 = step;
2955
+ }
2956
+
2957
+ while (maxIter-- > 0) {
2958
+ step = tickIncrement(start, stop, count);
2959
+
2960
+ if (step === prestep) {
2961
+ d[i0] = start;
2962
+ d[i1] = stop;
2963
+ return domain(d);
2964
+ } else if (step > 0) {
2965
+ start = Math.floor(start / step) * step;
2966
+ stop = Math.ceil(stop / step) * step;
2967
+ } else if (step < 0) {
2968
+ start = Math.ceil(start * step) / step;
2969
+ stop = Math.floor(stop * step) / step;
2970
+ } else {
2971
+ break;
2972
+ }
2973
+
2974
+ prestep = step;
2975
+ }
2976
+
2977
+ return scale;
2978
+ };
2979
+
2980
+ return scale;
2981
+ }
2982
+ function linear_linear() {
2983
+ var scale = continuous();
2984
+
2985
+ scale.copy = function () {
2986
+ return copy(scale, linear_linear());
2987
+ };
2988
+
2989
+ initRange.apply(scale, arguments);
2990
+ return linearish(scale);
2991
+ }
2992
+
2993
+ /***/ }),
2994
+
2995
+ /***/ 3538:
2996
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2997
+
2998
+ /* module decorator */ module = __webpack_require__.nmd(module);
2999
+ var _typeof = __webpack_require__(6496);
3000
+
3001
+ /**
3002
+ * Copyright (c) 2014-present, Facebook, Inc.
3003
+ *
3004
+ * This source code is licensed under the MIT license found in the
3005
+ * LICENSE file in the root directory of this source tree.
3006
+ */
3007
+ var runtime = function (exports) {
3008
+ "use strict";
3009
+
3010
+ var Op = Object.prototype;
3011
+ var hasOwn = Op.hasOwnProperty;
3012
+ var undefined; // More compressible than void 0.
3013
+
3014
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
3015
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
3016
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
3017
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
3018
+
3019
+ function define(obj, key, value) {
3020
+ Object.defineProperty(obj, key, {
3021
+ value: value,
3022
+ enumerable: true,
3023
+ configurable: true,
3024
+ writable: true
3025
+ });
3026
+ return obj[key];
3027
+ }
3028
+
3029
+ try {
3030
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
3031
+ define({}, "");
3032
+ } catch (err) {
3033
+ define = function define(obj, key, value) {
3034
+ return obj[key] = value;
3035
+ };
3036
+ }
3037
+
3038
+ function wrap(innerFn, outerFn, self, tryLocsList) {
3039
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
3040
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
3041
+ var generator = Object.create(protoGenerator.prototype);
3042
+ var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,
3043
+ // .throw, and .return methods.
3044
+
3045
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
3046
+ return generator;
3047
+ }
3048
+
3049
+ exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
3050
+ // record like context.tryEntries[i].completion. This interface could
3051
+ // have been (and was previously) designed to take a closure to be
3052
+ // invoked without arguments, but in all the cases we care about we
3053
+ // already have an existing method we want to call, so there's no need
3054
+ // to create a new function object. We can even get away with assuming
3055
+ // the method takes exactly one argument, since that happens to be true
3056
+ // in every case, so we don't have to touch the arguments object. The
3057
+ // only additional allocation required is the completion record, which
3058
+ // has a stable shape and so hopefully should be cheap to allocate.
3059
+
3060
+ function tryCatch(fn, obj, arg) {
3061
+ try {
3062
+ return {
3063
+ type: "normal",
3064
+ arg: fn.call(obj, arg)
3065
+ };
3066
+ } catch (err) {
3067
+ return {
3068
+ type: "throw",
3069
+ arg: err
3070
+ };
3071
+ }
3072
+ }
3073
+
3074
+ var GenStateSuspendedStart = "suspendedStart";
3075
+ var GenStateSuspendedYield = "suspendedYield";
3076
+ var GenStateExecuting = "executing";
3077
+ var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
3078
+ // breaking out of the dispatch switch statement.
3079
+
3080
+ var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
3081
+ // .constructor.prototype properties for functions that return Generator
3082
+ // objects. For full spec compliance, you may wish to configure your
3083
+ // minifier not to mangle the names of these two functions.
3084
+
3085
+ function Generator() {}
3086
+
3087
+ function GeneratorFunction() {}
3088
+
3089
+ function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
3090
+ // don't natively support it.
3091
+
3092
+
3093
+ var IteratorPrototype = {};
3094
+
3095
+ IteratorPrototype[iteratorSymbol] = function () {
3096
+ return this;
3097
+ };
3098
+
3099
+ var getProto = Object.getPrototypeOf;
3100
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
3101
+
3102
+ if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
3103
+ // This environment has a native %IteratorPrototype%; use it instead
3104
+ // of the polyfill.
3105
+ IteratorPrototype = NativeIteratorPrototype;
3106
+ }
3107
+
3108
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
3109
+ GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
3110
+ GeneratorFunctionPrototype.constructor = GeneratorFunction;
3111
+ GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
3112
+ // Iterator interface in terms of a single ._invoke method.
3113
+
3114
+ function defineIteratorMethods(prototype) {
3115
+ ["next", "throw", "return"].forEach(function (method) {
3116
+ define(prototype, method, function (arg) {
3117
+ return this._invoke(method, arg);
3118
+ });
3119
+ });
3120
+ }
3121
+
3122
+ exports.isGeneratorFunction = function (genFun) {
3123
+ var ctor = typeof genFun === "function" && genFun.constructor;
3124
+ return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
3125
+ // do is to check its .name property.
3126
+ (ctor.displayName || ctor.name) === "GeneratorFunction" : false;
3127
+ };
3128
+
3129
+ exports.mark = function (genFun) {
3130
+ if (Object.setPrototypeOf) {
3131
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
3132
+ } else {
3133
+ genFun.__proto__ = GeneratorFunctionPrototype;
3134
+ define(genFun, toStringTagSymbol, "GeneratorFunction");
3135
+ }
3136
+
3137
+ genFun.prototype = Object.create(Gp);
3138
+ return genFun;
3139
+ }; // Within the body of any async function, `await x` is transformed to
3140
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
3141
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
3142
+ // meant to be awaited.
3143
+
3144
+
3145
+ exports.awrap = function (arg) {
3146
+ return {
3147
+ __await: arg
3148
+ };
3149
+ };
3150
+
3151
+ function AsyncIterator(generator, PromiseImpl) {
3152
+ function invoke(method, arg, resolve, reject) {
3153
+ var record = tryCatch(generator[method], generator, arg);
3154
+
3155
+ if (record.type === "throw") {
3156
+ reject(record.arg);
3157
+ } else {
3158
+ var result = record.arg;
3159
+ var value = result.value;
3160
+
3161
+ if (value && _typeof(value) === "object" && hasOwn.call(value, "__await")) {
3162
+ return PromiseImpl.resolve(value.__await).then(function (value) {
3163
+ invoke("next", value, resolve, reject);
3164
+ }, function (err) {
3165
+ invoke("throw", err, resolve, reject);
3166
+ });
3167
+ }
3168
+
3169
+ return PromiseImpl.resolve(value).then(function (unwrapped) {
3170
+ // When a yielded Promise is resolved, its final value becomes
3171
+ // the .value of the Promise<{value,done}> result for the
3172
+ // current iteration.
3173
+ result.value = unwrapped;
3174
+ resolve(result);
3175
+ }, function (error) {
3176
+ // If a rejected Promise was yielded, throw the rejection back
3177
+ // into the async generator function so it can be handled there.
3178
+ return invoke("throw", error, resolve, reject);
3179
+ });
3180
+ }
3181
+ }
3182
+
3183
+ var previousPromise;
3184
+
3185
+ function enqueue(method, arg) {
3186
+ function callInvokeWithMethodAndArg() {
3187
+ return new PromiseImpl(function (resolve, reject) {
3188
+ invoke(method, arg, resolve, reject);
3189
+ });
3190
+ }
3191
+
3192
+ return previousPromise = // If enqueue has been called before, then we want to wait until
3193
+ // all previous Promises have been resolved before calling invoke,
3194
+ // so that results are always delivered in the correct order. If
3195
+ // enqueue has not been called before, then it is important to
3196
+ // call invoke immediately, without waiting on a callback to fire,
3197
+ // so that the async generator function has the opportunity to do
3198
+ // any necessary setup in a predictable way. This predictability
3199
+ // is why the Promise constructor synchronously invokes its
3200
+ // executor callback, and why async functions synchronously
3201
+ // execute code before the first await. Since we implement simple
3202
+ // async functions in terms of async generators, it is especially
3203
+ // important to get this right, even though it requires care.
3204
+ previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
3205
+ // invocations of the iterator.
3206
+ callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
3207
+ } // Define the unified helper method that is used to implement .next,
3208
+ // .throw, and .return (see defineIteratorMethods).
3209
+
3210
+
3211
+ this._invoke = enqueue;
3212
+ }
3213
+
3214
+ defineIteratorMethods(AsyncIterator.prototype);
3215
+
3216
+ AsyncIterator.prototype[asyncIteratorSymbol] = function () {
3217
+ return this;
3218
+ };
3219
+
3220
+ exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
3221
+ // AsyncIterator objects; they just return a Promise for the value of
3222
+ // the final result produced by the iterator.
3223
+
3224
+ exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
3225
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
3226
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
3227
+ return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
3228
+ : iter.next().then(function (result) {
3229
+ return result.done ? result.value : iter.next();
3230
+ });
3231
+ };
3232
+
3233
+ function makeInvokeMethod(innerFn, self, context) {
3234
+ var state = GenStateSuspendedStart;
3235
+ return function invoke(method, arg) {
3236
+ if (state === GenStateExecuting) {
3237
+ throw new Error("Generator is already running");
3238
+ }
3239
+
3240
+ if (state === GenStateCompleted) {
3241
+ if (method === "throw") {
3242
+ throw arg;
3243
+ } // Be forgiving, per 25.3.3.3.3 of the spec:
3244
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
3245
+
3246
+
3247
+ return doneResult();
3248
+ }
3249
+
3250
+ context.method = method;
3251
+ context.arg = arg;
3252
+
3253
+ while (true) {
3254
+ var delegate = context.delegate;
3255
+
3256
+ if (delegate) {
3257
+ var delegateResult = maybeInvokeDelegate(delegate, context);
3258
+
3259
+ if (delegateResult) {
3260
+ if (delegateResult === ContinueSentinel) continue;
3261
+ return delegateResult;
3262
+ }
3263
+ }
3264
+
3265
+ if (context.method === "next") {
3266
+ // Setting context._sent for legacy support of Babel's
3267
+ // function.sent implementation.
3268
+ context.sent = context._sent = context.arg;
3269
+ } else if (context.method === "throw") {
3270
+ if (state === GenStateSuspendedStart) {
3271
+ state = GenStateCompleted;
3272
+ throw context.arg;
3273
+ }
3274
+
3275
+ context.dispatchException(context.arg);
3276
+ } else if (context.method === "return") {
3277
+ context.abrupt("return", context.arg);
3278
+ }
3279
+
3280
+ state = GenStateExecuting;
3281
+ var record = tryCatch(innerFn, self, context);
3282
+
3283
+ if (record.type === "normal") {
3284
+ // If an exception is thrown from innerFn, we leave state ===
3285
+ // GenStateExecuting and loop back for another invocation.
3286
+ state = context.done ? GenStateCompleted : GenStateSuspendedYield;
3287
+
3288
+ if (record.arg === ContinueSentinel) {
3289
+ continue;
3290
+ }
3291
+
3292
+ return {
3293
+ value: record.arg,
3294
+ done: context.done
3295
+ };
3296
+ } else if (record.type === "throw") {
3297
+ state = GenStateCompleted; // Dispatch the exception by looping back around to the
3298
+ // context.dispatchException(context.arg) call above.
3299
+
3300
+ context.method = "throw";
3301
+ context.arg = record.arg;
3302
+ }
3303
+ }
3304
+ };
3305
+ } // Call delegate.iterator[context.method](context.arg) and handle the
3306
+ // result, either by returning a { value, done } result from the
3307
+ // delegate iterator, or by modifying context.method and context.arg,
3308
+ // setting context.delegate to null, and returning the ContinueSentinel.
3309
+
3310
+
3311
+ function maybeInvokeDelegate(delegate, context) {
3312
+ var method = delegate.iterator[context.method];
3313
+
3314
+ if (method === undefined) {
3315
+ // A .throw or .return when the delegate iterator has no .throw
3316
+ // method always terminates the yield* loop.
3317
+ context.delegate = null;
3318
+
3319
+ if (context.method === "throw") {
3320
+ // Note: ["return"] must be used for ES3 parsing compatibility.
3321
+ if (delegate.iterator["return"]) {
3322
+ // If the delegate iterator has a return method, give it a
3323
+ // chance to clean up.
3324
+ context.method = "return";
3325
+ context.arg = undefined;
3326
+ maybeInvokeDelegate(delegate, context);
3327
+
3328
+ if (context.method === "throw") {
3329
+ // If maybeInvokeDelegate(context) changed context.method from
3330
+ // "return" to "throw", let that override the TypeError below.
3331
+ return ContinueSentinel;
3332
+ }
3333
+ }
3334
+
3335
+ context.method = "throw";
3336
+ context.arg = new TypeError("The iterator does not provide a 'throw' method");
3337
+ }
3338
+
3339
+ return ContinueSentinel;
3340
+ }
3341
+
3342
+ var record = tryCatch(method, delegate.iterator, context.arg);
3343
+
3344
+ if (record.type === "throw") {
3345
+ context.method = "throw";
3346
+ context.arg = record.arg;
3347
+ context.delegate = null;
3348
+ return ContinueSentinel;
3349
+ }
3350
+
3351
+ var info = record.arg;
3352
+
3353
+ if (!info) {
3354
+ context.method = "throw";
3355
+ context.arg = new TypeError("iterator result is not an object");
3356
+ context.delegate = null;
3357
+ return ContinueSentinel;
3358
+ }
3359
+
3360
+ if (info.done) {
3361
+ // Assign the result of the finished delegate to the temporary
3362
+ // variable specified by delegate.resultName (see delegateYield).
3363
+ context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
3364
+
3365
+ context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
3366
+ // exception, let the outer generator proceed normally. If
3367
+ // context.method was "next", forget context.arg since it has been
3368
+ // "consumed" by the delegate iterator. If context.method was
3369
+ // "return", allow the original .return call to continue in the
3370
+ // outer generator.
3371
+
3372
+ if (context.method !== "return") {
3373
+ context.method = "next";
3374
+ context.arg = undefined;
3375
+ }
3376
+ } else {
3377
+ // Re-yield the result returned by the delegate method.
3378
+ return info;
3379
+ } // The delegate iterator is finished, so forget it and continue with
3380
+ // the outer generator.
3381
+
3382
+
3383
+ context.delegate = null;
3384
+ return ContinueSentinel;
3385
+ } // Define Generator.prototype.{next,throw,return} in terms of the
3386
+ // unified ._invoke helper method.
3387
+
3388
+
3389
+ defineIteratorMethods(Gp);
3390
+ define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the
3391
+ // @@iterator function is called on it. Some browsers' implementations of the
3392
+ // iterator prototype chain incorrectly implement this, causing the Generator
3393
+ // object to not be returned from this call. This ensures that doesn't happen.
3394
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
3395
+
3396
+ Gp[iteratorSymbol] = function () {
3397
+ return this;
3398
+ };
3399
+
3400
+ Gp.toString = function () {
3401
+ return "[object Generator]";
3402
+ };
3403
+
3404
+ function pushTryEntry(locs) {
3405
+ var entry = {
3406
+ tryLoc: locs[0]
3407
+ };
3408
+
3409
+ if (1 in locs) {
3410
+ entry.catchLoc = locs[1];
3411
+ }
3412
+
3413
+ if (2 in locs) {
3414
+ entry.finallyLoc = locs[2];
3415
+ entry.afterLoc = locs[3];
3416
+ }
3417
+
3418
+ this.tryEntries.push(entry);
3419
+ }
3420
+
3421
+ function resetTryEntry(entry) {
3422
+ var record = entry.completion || {};
3423
+ record.type = "normal";
3424
+ delete record.arg;
3425
+ entry.completion = record;
3426
+ }
3427
+
3428
+ function Context(tryLocsList) {
3429
+ // The root entry object (effectively a try statement without a catch
3430
+ // or a finally block) gives us a place to store values thrown from
3431
+ // locations where there is no enclosing try statement.
3432
+ this.tryEntries = [{
3433
+ tryLoc: "root"
3434
+ }];
3435
+ tryLocsList.forEach(pushTryEntry, this);
3436
+ this.reset(true);
3437
+ }
3438
+
3439
+ exports.keys = function (object) {
3440
+ var keys = [];
3441
+
3442
+ for (var key in object) {
3443
+ keys.push(key);
3444
+ }
3445
+
3446
+ keys.reverse(); // Rather than returning an object with a next method, we keep
3447
+ // things simple and return the next function itself.
3448
+
3449
+ return function next() {
3450
+ while (keys.length) {
3451
+ var key = keys.pop();
3452
+
3453
+ if (key in object) {
3454
+ next.value = key;
3455
+ next.done = false;
3456
+ return next;
3457
+ }
3458
+ } // To avoid creating an additional object, we just hang the .value
3459
+ // and .done properties off the next function object itself. This
3460
+ // also ensures that the minifier will not anonymize the function.
3461
+
3462
+
3463
+ next.done = true;
3464
+ return next;
3465
+ };
3466
+ };
3467
+
3468
+ function values(iterable) {
3469
+ if (iterable) {
3470
+ var iteratorMethod = iterable[iteratorSymbol];
3471
+
3472
+ if (iteratorMethod) {
3473
+ return iteratorMethod.call(iterable);
3474
+ }
3475
+
3476
+ if (typeof iterable.next === "function") {
3477
+ return iterable;
3478
+ }
3479
+
3480
+ if (!isNaN(iterable.length)) {
3481
+ var i = -1,
3482
+ next = function next() {
3483
+ while (++i < iterable.length) {
3484
+ if (hasOwn.call(iterable, i)) {
3485
+ next.value = iterable[i];
3486
+ next.done = false;
3487
+ return next;
3488
+ }
3489
+ }
3490
+
3491
+ next.value = undefined;
3492
+ next.done = true;
3493
+ return next;
3494
+ };
3495
+
3496
+ return next.next = next;
3497
+ }
3498
+ } // Return an iterator with no values.
3499
+
3500
+
3501
+ return {
3502
+ next: doneResult
3503
+ };
3504
+ }
3505
+
3506
+ exports.values = values;
3507
+
3508
+ function doneResult() {
3509
+ return {
3510
+ value: undefined,
3511
+ done: true
3512
+ };
3513
+ }
3514
+
3515
+ Context.prototype = {
3516
+ constructor: Context,
3517
+ reset: function reset(skipTempReset) {
3518
+ this.prev = 0;
3519
+ this.next = 0; // Resetting context._sent for legacy support of Babel's
3520
+ // function.sent implementation.
3521
+
3522
+ this.sent = this._sent = undefined;
3523
+ this.done = false;
3524
+ this.delegate = null;
3525
+ this.method = "next";
3526
+ this.arg = undefined;
3527
+ this.tryEntries.forEach(resetTryEntry);
3528
+
3529
+ if (!skipTempReset) {
3530
+ for (var name in this) {
3531
+ // Not sure about the optimal order of these conditions:
3532
+ if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
3533
+ this[name] = undefined;
3534
+ }
3535
+ }
3536
+ }
3537
+ },
3538
+ stop: function stop() {
3539
+ this.done = true;
3540
+ var rootEntry = this.tryEntries[0];
3541
+ var rootRecord = rootEntry.completion;
3542
+
3543
+ if (rootRecord.type === "throw") {
3544
+ throw rootRecord.arg;
3545
+ }
3546
+
3547
+ return this.rval;
3548
+ },
3549
+ dispatchException: function dispatchException(exception) {
3550
+ if (this.done) {
3551
+ throw exception;
3552
+ }
3553
+
3554
+ var context = this;
3555
+
3556
+ function handle(loc, caught) {
3557
+ record.type = "throw";
3558
+ record.arg = exception;
3559
+ context.next = loc;
3560
+
3561
+ if (caught) {
3562
+ // If the dispatched exception was caught by a catch block,
3563
+ // then let that catch block handle the exception normally.
3564
+ context.method = "next";
3565
+ context.arg = undefined;
3566
+ }
3567
+
3568
+ return !!caught;
3569
+ }
3570
+
3571
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3572
+ var entry = this.tryEntries[i];
3573
+ var record = entry.completion;
3574
+
3575
+ if (entry.tryLoc === "root") {
3576
+ // Exception thrown outside of any try block that could handle
3577
+ // it, so set the completion value of the entire function to
3578
+ // throw the exception.
3579
+ return handle("end");
3580
+ }
3581
+
3582
+ if (entry.tryLoc <= this.prev) {
3583
+ var hasCatch = hasOwn.call(entry, "catchLoc");
3584
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
3585
+
3586
+ if (hasCatch && hasFinally) {
3587
+ if (this.prev < entry.catchLoc) {
3588
+ return handle(entry.catchLoc, true);
3589
+ } else if (this.prev < entry.finallyLoc) {
3590
+ return handle(entry.finallyLoc);
3591
+ }
3592
+ } else if (hasCatch) {
3593
+ if (this.prev < entry.catchLoc) {
3594
+ return handle(entry.catchLoc, true);
3595
+ }
3596
+ } else if (hasFinally) {
3597
+ if (this.prev < entry.finallyLoc) {
3598
+ return handle(entry.finallyLoc);
3599
+ }
3600
+ } else {
3601
+ throw new Error("try statement without catch or finally");
3602
+ }
3603
+ }
3604
+ }
3605
+ },
3606
+ abrupt: function abrupt(type, arg) {
3607
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3608
+ var entry = this.tryEntries[i];
3609
+
3610
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
3611
+ var finallyEntry = entry;
3612
+ break;
3613
+ }
3614
+ }
3615
+
3616
+ if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
3617
+ // Ignore the finally entry if control is not jumping to a
3618
+ // location outside the try/catch block.
3619
+ finallyEntry = null;
3620
+ }
3621
+
3622
+ var record = finallyEntry ? finallyEntry.completion : {};
3623
+ record.type = type;
3624
+ record.arg = arg;
3625
+
3626
+ if (finallyEntry) {
3627
+ this.method = "next";
3628
+ this.next = finallyEntry.finallyLoc;
3629
+ return ContinueSentinel;
3630
+ }
3631
+
3632
+ return this.complete(record);
3633
+ },
3634
+ complete: function complete(record, afterLoc) {
3635
+ if (record.type === "throw") {
3636
+ throw record.arg;
3637
+ }
3638
+
3639
+ if (record.type === "break" || record.type === "continue") {
3640
+ this.next = record.arg;
3641
+ } else if (record.type === "return") {
3642
+ this.rval = this.arg = record.arg;
3643
+ this.method = "return";
3644
+ this.next = "end";
3645
+ } else if (record.type === "normal" && afterLoc) {
3646
+ this.next = afterLoc;
3647
+ }
3648
+
3649
+ return ContinueSentinel;
3650
+ },
3651
+ finish: function finish(finallyLoc) {
3652
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3653
+ var entry = this.tryEntries[i];
3654
+
3655
+ if (entry.finallyLoc === finallyLoc) {
3656
+ this.complete(entry.completion, entry.afterLoc);
3657
+ resetTryEntry(entry);
3658
+ return ContinueSentinel;
3659
+ }
3660
+ }
3661
+ },
3662
+ "catch": function _catch(tryLoc) {
3663
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3664
+ var entry = this.tryEntries[i];
3665
+
3666
+ if (entry.tryLoc === tryLoc) {
3667
+ var record = entry.completion;
3668
+
3669
+ if (record.type === "throw") {
3670
+ var thrown = record.arg;
3671
+ resetTryEntry(entry);
3672
+ }
3673
+
3674
+ return thrown;
3675
+ }
3676
+ } // The context.catch method must only be called with a location
3677
+ // argument that corresponds to a known catch block.
3678
+
3679
+
3680
+ throw new Error("illegal catch attempt");
3681
+ },
3682
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
3683
+ this.delegate = {
3684
+ iterator: values(iterable),
3685
+ resultName: resultName,
3686
+ nextLoc: nextLoc
3687
+ };
3688
+
3689
+ if (this.method === "next") {
3690
+ // Deliberately forget the last sent value so that we don't
3691
+ // accidentally pass it on to the delegate.
3692
+ this.arg = undefined;
3693
+ }
3694
+
3695
+ return ContinueSentinel;
3696
+ }
3697
+ }; // Regardless of whether this script is executing as a CommonJS module
3698
+ // or not, return the runtime object so that we can declare the variable
3699
+ // regeneratorRuntime in the outer scope, which allows this module to be
3700
+ // injected easily by `bin/regenerator --include-runtime script.js`.
3701
+
3702
+ return exports;
3703
+ }( // If this script is executing as a CommonJS module, use module.exports
3704
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
3705
+ // object. Either way, the resulting object will be used to initialize
3706
+ // the regeneratorRuntime variable at the top of this file.
3707
+ ( false ? 0 : _typeof(module)) === "object" ? module.exports : {});
3708
+
3709
+ try {
3710
+ regeneratorRuntime = runtime;
3711
+ } catch (accidentalStrictMode) {
3712
+ // This module should not be running in strict mode, so the above
3713
+ // assignment should always work unless something is misconfigured. Just
3714
+ // in case runtime.js accidentally runs in strict mode, we can escape
3715
+ // strict mode using a global Function call. This could conceivably fail
3716
+ // if a Content Security Policy forbids using Function, but in that case
3717
+ // the proper solution is to fix the accidental strict mode problem. If
3718
+ // you've misconfigured your bundler to force strict mode and applied a
3719
+ // CSP to forbid Function, and you're not willing to fix either of those
3720
+ // problems, please detail your unique predicament in a GitHub issue.
3721
+ Function("r", "regeneratorRuntime = r")(runtime);
3722
+ }
3723
+
3724
+ /***/ }),
3725
+
3726
+ /***/ 5692:
3727
+ /***/ ((module) => {
3728
+
3729
+ "use strict";
3730
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
3731
+
3732
+ /***/ }),
3733
+
3734
+ /***/ 9179:
3735
+ /***/ ((module) => {
3736
+
3737
+ "use strict";
3738
+ module.exports = __WEBPACK_EXTERNAL_MODULE__9179__;
3739
+
3740
+ /***/ }),
3741
+
3742
+ /***/ 8310:
3743
+ /***/ ((module) => {
3744
+
3745
+ "use strict";
3746
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
3747
+
3748
+ /***/ }),
3749
+
3750
+ /***/ 8156:
3751
+ /***/ ((module) => {
3752
+
3753
+ "use strict";
3754
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
3755
+
3756
+ /***/ }),
3757
+
3758
+ /***/ 8721:
3759
+ /***/ ((module) => {
3760
+
3761
+ "use strict";
3762
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
3763
+
3764
+ /***/ }),
3765
+
3766
+ /***/ 1082:
3767
+ /***/ ((module) => {
3768
+
3769
+ "use strict";
3770
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
3771
+
3772
+ /***/ }),
3773
+
3774
+ /***/ 8763:
3775
+ /***/ ((module) => {
3776
+
3777
+ "use strict";
3778
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
3779
+
3780
+ /***/ }),
3781
+
3782
+ /***/ 6043:
3783
+ /***/ ((module) => {
3784
+
3785
+ "use strict";
3786
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;
3787
+
3788
+ /***/ }),
3789
+
3790
+ /***/ 4329:
3791
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3792
+
3793
+ "use strict";
3794
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3795
+ /* harmony export */ "Z": () => (/* binding */ _typeof)
3796
+ /* harmony export */ });
3797
+ function _typeof(obj) {
3798
+ "@babel/helpers - typeof";
3799
+
3800
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
3801
+ _typeof = function _typeof(obj) {
3802
+ return typeof obj;
3803
+ };
3804
+ } else {
3805
+ _typeof = function _typeof(obj) {
3806
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
3807
+ };
3808
+ }
3809
+
3810
+ return _typeof(obj);
3811
+ }
3812
+
3813
+ /***/ })
3814
+
3815
+ /******/ });
3816
+ /************************************************************************/
3817
+ /******/ // The module cache
3818
+ /******/ var __webpack_module_cache__ = {};
3819
+ /******/
3820
+ /******/ // The require function
3821
+ /******/ function __webpack_require__(moduleId) {
3822
+ /******/ // Check if module is in cache
3823
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
3824
+ /******/ if (cachedModule !== undefined) {
3825
+ /******/ return cachedModule.exports;
3826
+ /******/ }
3827
+ /******/ // Create a new module (and put it into the cache)
3828
+ /******/ var module = __webpack_module_cache__[moduleId] = {
3829
+ /******/ id: moduleId,
3830
+ /******/ loaded: false,
3831
+ /******/ exports: {}
3832
+ /******/ };
3833
+ /******/
3834
+ /******/ // Execute the module function
3835
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
3836
+ /******/
3837
+ /******/ // Flag the module as loaded
3838
+ /******/ module.loaded = true;
3839
+ /******/
3840
+ /******/ // Return the exports of the module
3841
+ /******/ return module.exports;
3842
+ /******/ }
3843
+ /******/
3844
+ /******/ // expose the modules object (__webpack_modules__)
3845
+ /******/ __webpack_require__.m = __webpack_modules__;
3846
+ /******/
3847
+ /************************************************************************/
3848
+ /******/ /* webpack/runtime/chunk loaded */
3849
+ /******/ (() => {
3850
+ /******/ var deferred = [];
3851
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
3852
+ /******/ if(chunkIds) {
3853
+ /******/ priority = priority || 0;
3854
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
3855
+ /******/ deferred[i] = [chunkIds, fn, priority];
3856
+ /******/ return;
3857
+ /******/ }
3858
+ /******/ var notFulfilled = Infinity;
3859
+ /******/ for (var i = 0; i < deferred.length; i++) {
3860
+ /******/ var [chunkIds, fn, priority] = deferred[i];
3861
+ /******/ var fulfilled = true;
3862
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
3863
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
3864
+ /******/ chunkIds.splice(j--, 1);
3865
+ /******/ } else {
3866
+ /******/ fulfilled = false;
3867
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
3868
+ /******/ }
3869
+ /******/ }
3870
+ /******/ if(fulfilled) {
3871
+ /******/ deferred.splice(i--, 1)
3872
+ /******/ var r = fn();
3873
+ /******/ if (r !== undefined) result = r;
3874
+ /******/ }
3875
+ /******/ }
3876
+ /******/ return result;
3877
+ /******/ };
3878
+ /******/ })();
3879
+ /******/
3880
+ /******/ /* webpack/runtime/compat get default export */
3881
+ /******/ (() => {
3882
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
3883
+ /******/ __webpack_require__.n = (module) => {
3884
+ /******/ var getter = module && module.__esModule ?
3885
+ /******/ () => (module['default']) :
3886
+ /******/ () => (module);
3887
+ /******/ __webpack_require__.d(getter, { a: getter });
3888
+ /******/ return getter;
3889
+ /******/ };
3890
+ /******/ })();
3891
+ /******/
3892
+ /******/ /* webpack/runtime/define property getters */
3893
+ /******/ (() => {
3894
+ /******/ // define getter functions for harmony exports
3895
+ /******/ __webpack_require__.d = (exports, definition) => {
3896
+ /******/ for(var key in definition) {
3897
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
3898
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
3899
+ /******/ }
3900
+ /******/ }
3901
+ /******/ };
3902
+ /******/ })();
3903
+ /******/
3904
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
3905
+ /******/ (() => {
3906
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
3907
+ /******/ })();
3908
+ /******/
3909
+ /******/ /* webpack/runtime/make namespace object */
3910
+ /******/ (() => {
3911
+ /******/ // define __esModule on exports
3912
+ /******/ __webpack_require__.r = (exports) => {
3913
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
3914
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3915
+ /******/ }
3916
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
3917
+ /******/ };
3918
+ /******/ })();
3919
+ /******/
3920
+ /******/ /* webpack/runtime/node module decorator */
3921
+ /******/ (() => {
3922
+ /******/ __webpack_require__.nmd = (module) => {
3923
+ /******/ module.paths = [];
3924
+ /******/ if (!module.children) module.children = [];
3925
+ /******/ return module;
3926
+ /******/ };
3927
+ /******/ })();
3928
+ /******/
3929
+ /******/ /* webpack/runtime/jsonp chunk loading */
3930
+ /******/ (() => {
3931
+ /******/ // no baseURI
3932
+ /******/
3933
+ /******/ // object to store loaded and loading chunks
3934
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
3935
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
3936
+ /******/ var installedChunks = {
3937
+ /******/ 2494: 0,
3938
+ /******/ 9811: 0,
3939
+ /******/ 2823: 0,
3940
+ /******/ 1981: 0
3941
+ /******/ };
3942
+ /******/
3943
+ /******/ // no chunk on demand loading
3944
+ /******/
3945
+ /******/ // no prefetching
3946
+ /******/
3947
+ /******/ // no preloaded
3948
+ /******/
3949
+ /******/ // no HMR
3950
+ /******/
3951
+ /******/ // no HMR manifest
3952
+ /******/
3953
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
3954
+ /******/
3955
+ /******/ // install a JSONP callback for chunk loading
3956
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
3957
+ /******/ var [chunkIds, moreModules, runtime] = data;
3958
+ /******/ // add "moreModules" to the modules object,
3959
+ /******/ // then flag all "chunkIds" as loaded and fire callback
3960
+ /******/ var moduleId, chunkId, i = 0;
3961
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
3962
+ /******/ for(moduleId in moreModules) {
3963
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
3964
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
3965
+ /******/ }
3966
+ /******/ }
3967
+ /******/ if(runtime) var result = runtime(__webpack_require__);
3968
+ /******/ }
3969
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
3970
+ /******/ for(;i < chunkIds.length; i++) {
3971
+ /******/ chunkId = chunkIds[i];
3972
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
3973
+ /******/ installedChunks[chunkId][0]();
3974
+ /******/ }
3975
+ /******/ installedChunks[chunkIds[i]] = 0;
3976
+ /******/ }
3977
+ /******/ return __webpack_require__.O(result);
3978
+ /******/ }
3979
+ /******/
3980
+ /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
3981
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
3982
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
3983
+ /******/ })();
3984
+ /******/
3985
+ /************************************************************************/
3986
+ /******/
3987
+ /******/ // startup
3988
+ /******/ // Load entry module and return exports
3989
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
3990
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(8044)))
3991
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
3992
+ /******/
3993
+ /******/ return __webpack_exports__;
3994
+ /******/ })()
3995
+ ;
3996
+ });
3997
+ //# sourceMappingURL=index.js.map