@sisense/sdk-ui 1.31.0 → 1.33.0

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 (213) hide show
  1. package/dist/ai.cjs +22 -423
  2. package/dist/ai.js +1827 -1781
  3. package/dist/analytics-composer.cjs +54 -54
  4. package/dist/analytics-composer.js +546 -525
  5. package/dist/derive-chart-family-B4sA-ao-.cjs +758 -0
  6. package/dist/derive-chart-family-nTKwlMms.js +101063 -0
  7. package/dist/index.cjs +30 -858
  8. package/dist/index.js +14249 -10959
  9. package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +3 -2
  10. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -3
  11. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +12 -3
  12. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +2 -2
  13. package/dist/packages/sdk-ui/src/ai/chatbot.d.ts +2 -2
  14. package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +13 -0
  15. package/dist/packages/sdk-ui/src/ai/index.d.ts +7 -4
  16. package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
  17. package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +12 -5
  18. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +8 -4
  19. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +8 -0
  20. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -2
  21. package/dist/packages/sdk-ui/src/analytics-composer/common/constants.d.ts +1 -0
  22. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +12 -1
  23. package/dist/packages/sdk-ui/src/app/client-application.d.ts +15 -0
  24. package/dist/packages/sdk-ui/src/area-chart.d.ts +2 -2
  25. package/dist/packages/sdk-ui/src/bar-chart.d.ts +2 -2
  26. package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +16 -0
  27. package/dist/packages/sdk-ui/src/chart/helpers/use-chart-data-preparation.d.ts +17 -0
  28. package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +3 -1
  29. package/dist/packages/sdk-ui/src/chart/index.d.ts +1 -0
  30. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/areamap-chart-builder.d.ts +2 -0
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +4 -0
  32. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/geo-data-coloring-function.d.ts +2 -0
  33. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/index.d.ts +2 -0
  34. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/data-options.d.ts +2 -0
  35. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/index.d.ts +1 -0
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/design-options.d.ts +2 -0
  37. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/index.d.ts +1 -0
  38. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap-map.d.ts +2 -2
  39. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap-utils.d.ts +12 -0
  40. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap.d.ts +5 -5
  41. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/feature-styles-dictionary.d.ts +2 -2
  42. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/index.d.ts +1 -0
  43. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/use-geo-json.d.ts +1 -1
  44. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/types.d.ts +35 -0
  45. package/dist/packages/sdk-ui/src/chart/restructured-charts/bar-chart/bar-chart-builder.d.ts +2 -0
  46. package/dist/packages/sdk-ui/src/chart/restructured-charts/chart-builder-factory.d.ts +3 -0
  47. package/dist/packages/sdk-ui/src/chart/restructured-charts/column-chart/column-chart-builder.d.ts +2 -0
  48. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data-options.d.ts +27 -0
  49. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data.d.ts +4 -0
  50. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/stackable/design-options.d.ts +5 -0
  51. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +12 -0
  52. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +100 -0
  53. package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +3 -0
  54. package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -29
  55. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +6 -3
  56. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +9 -8
  57. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -7
  58. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +2 -3
  59. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -1
  60. package/dist/packages/sdk-ui/src/column-chart.d.ts +2 -2
  61. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +10 -0
  62. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +10 -0
  63. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/grouped-items-browser.d.ts +6 -0
  64. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/item-row.d.ts +15 -0
  65. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/types.d.ts +40 -0
  66. package/dist/packages/sdk-ui/src/common/components/loading-dots.d.ts +1 -1
  67. package/dist/packages/sdk-ui/src/common/components/popover.d.ts +1 -0
  68. package/dist/packages/sdk-ui/src/common/components/radio.d.ts +1 -0
  69. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/index.d.ts +4 -0
  70. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-data-accumulation.d.ts +7 -0
  71. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-get-load-more-function.d.ts +4 -0
  72. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +16 -0
  73. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-manage-slice-to-load.d.ts +10 -0
  74. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/calculate-if-all-items-loaded.d.ts +2 -0
  75. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/get-hook-state-result.d.ts +9 -0
  76. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/index.d.ts +2 -0
  77. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/index.d.ts +1 -0
  78. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/types.d.ts +27 -0
  79. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +7 -0
  80. package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +17 -0
  81. package/dist/packages/sdk-ui/src/common/hooks/use-defaults.d.ts +9 -0
  82. package/dist/packages/sdk-ui/src/common/hooks/use-last-defined.d.ts +6 -0
  83. package/dist/packages/sdk-ui/src/common/icons/approval-icon.d.ts +1 -0
  84. package/dist/packages/sdk-ui/src/common/icons/arrow-icon.d.ts +3 -0
  85. package/dist/packages/sdk-ui/src/common/icons/breadcrumbs-arrows-arrow-icon.d.ts +3 -0
  86. package/dist/packages/sdk-ui/src/common/icons/close-icon.d.ts +1 -0
  87. package/dist/packages/sdk-ui/src/common/icons/date-attribute-icon.d.ts +1 -0
  88. package/dist/packages/sdk-ui/src/common/icons/elasticube-icon.d.ts +1 -0
  89. package/dist/packages/sdk-ui/src/common/icons/numeric-attribute-icon.d.ts +1 -0
  90. package/dist/packages/sdk-ui/src/common/icons/plus-icon.d.ts +1 -0
  91. package/dist/packages/sdk-ui/src/common/icons/table-icon.d.ts +1 -0
  92. package/dist/packages/sdk-ui/src/common/icons/text-attribute-icon.d.ts +1 -0
  93. package/dist/packages/sdk-ui/src/dashboard/components/content-panel.d.ts +8 -1
  94. package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
  95. package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +4 -0
  96. package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +6 -6
  97. package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +18 -0
  98. package/dist/packages/sdk-ui/src/dashboard/hooks/use-widgets-layout.d.ts +14 -0
  99. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
  100. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +68 -32
  101. package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +7 -2
  102. package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-data-browser.d.ts +9 -0
  103. package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-popover.d.ts +14 -0
  104. package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/index.d.ts +1 -0
  105. package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/popover-header.d.ts +12 -0
  106. package/dist/packages/sdk-ui/src/data-browser/data-source-selector/data-source-selector.d.ts +7 -0
  107. package/dist/packages/sdk-ui/src/data-browser/data-source-selector/use-data-source-selection.d.ts +5 -0
  108. package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/dimensions-browser.d.ts +6 -0
  109. package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/types.d.ts +74 -0
  110. package/dist/packages/sdk-ui/src/data-browser/search-input/search-input.d.ts +5 -0
  111. package/dist/packages/sdk-ui/src/filters/components/common/checkbox.d.ts +1 -0
  112. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
  113. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +8 -7
  114. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/date-range-calculator.d.ts +1 -1
  115. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +3 -0
  116. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
  117. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +5 -2
  118. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts +4 -0
  119. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +11 -7
  120. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/calendar-select.d.ts +24 -0
  121. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/index.d.ts +2 -0
  122. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/types.d.ts +14 -0
  123. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +5 -0
  124. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/members-list-select.d.ts +11 -0
  125. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +3 -4
  126. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +17 -4
  127. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +3 -2
  128. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +2 -1
  129. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-container.d.ts +2 -1
  130. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-context.d.ts +13 -0
  131. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-datetime.d.ts +9 -0
  132. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-numerical.d.ts +2 -1
  133. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +6 -2
  134. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts +2 -1
  135. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +6 -2
  136. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-datetime-formatter.d.ts +2 -0
  137. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +4 -2
  138. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/common/granularities.d.ts +8 -0
  139. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-exclude-condition-form.d.ts +11 -0
  140. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-is-within-condition-form.d.ts +10 -0
  141. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/datetime-condition-section.d.ts +12 -0
  142. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/index.d.ts +1 -0
  143. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-members-section.d.ts +12 -0
  144. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-range-section.d.ts +11 -0
  145. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-relative-section.d.ts +9 -0
  146. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +0 -5
  147. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/not-supported-section.d.ts +6 -0
  148. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/numeric-condition-section.d.ts +1 -6
  149. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +1 -3
  150. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/types.d.ts +4 -0
  151. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/utils.d.ts +5 -2
  152. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/types.d.ts +5 -0
  153. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +13 -1
  154. package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +7 -0
  155. package/dist/packages/sdk-ui/src/filters/components/filters-panel/constants.d.ts +6 -0
  156. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-header.d.ts +6 -0
  157. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +5 -2
  158. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +19 -0
  159. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +19 -0
  160. package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -0
  161. package/dist/packages/sdk-ui/src/filters/components/filters-panel/types.d.ts +60 -0
  162. package/dist/packages/sdk-ui/src/filters/components/icons/date-icon.d.ts +1 -1
  163. package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +0 -1
  164. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
  165. package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +3 -2
  166. package/dist/packages/sdk-ui/src/index.d.ts +2 -1
  167. package/dist/packages/sdk-ui/src/line-chart.d.ts +2 -2
  168. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +0 -2
  169. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +7 -1
  170. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +2 -1
  171. package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +9 -1
  172. package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +1 -1
  173. package/dist/packages/sdk-ui/src/pie-chart.d.ts +2 -2
  174. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
  175. package/dist/packages/sdk-ui/src/plugins-provider/custom-plugins-provider.d.ts +8 -8
  176. package/dist/packages/sdk-ui/src/plugins-provider/plugins-context.d.ts +6 -6
  177. package/dist/packages/sdk-ui/src/plugins-provider/plugins-provider.d.ts +3 -3
  178. package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +2 -1
  179. package/dist/packages/sdk-ui/src/polar-chart.d.ts +2 -2
  180. package/dist/packages/sdk-ui/src/props.d.ts +35 -15
  181. package/dist/packages/sdk-ui/src/query-execution/use-execute-query.d.ts +1 -1
  182. package/dist/packages/sdk-ui/src/scatter-chart.d.ts +1 -1
  183. package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -16
  184. package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +16 -1
  185. package/dist/packages/sdk-ui/src/theme-provider/use-theme-settings.d.ts +1 -1
  186. package/dist/packages/sdk-ui/src/theme-provider/utils.d.ts +5 -0
  187. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +47 -0
  188. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +94 -0
  189. package/dist/packages/sdk-ui/src/types.d.ts +203 -1
  190. package/dist/packages/sdk-ui/src/utils/data-sources-utils.d.ts +8 -0
  191. package/dist/packages/sdk-ui/src/utils/generate-attribute-name.d.ts +2 -0
  192. package/dist/packages/sdk-ui/src/utils/utility-types.d.ts +38 -0
  193. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +1 -0
  194. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +16 -5
  195. package/dist/packages/sdk-ui/src/widgets/drilldown-widget.d.ts +1 -1
  196. package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +35 -0
  197. package/dist/use-common-filters--WPkVexd.js +28459 -0
  198. package/dist/use-common-filters-BNKt9a0z.cjs +271 -0
  199. package/dist/{widget-composer-BrQ6SrZ6.js → widget-composer-CobNNZ1e.js} +239 -233
  200. package/dist/widget-composer-DPqi_qzU.cjs +316 -0
  201. package/package.json +10 -9
  202. package/dist/derive-chart-family-D3iN--j2.js +0 -44430
  203. package/dist/derive-chart-family-Tt7cIUck.cjs +0 -271
  204. package/dist/packages/sdk-ui/src/ai/use-get-data-source-fields.d.ts +0 -12
  205. package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +0 -4
  206. package/dist/packages/sdk-ui/src/chart-data/data-coloring/geo-data-coloring-function.d.ts +0 -2
  207. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-areamap-options.d.ts +0 -3
  208. package/dist/packages/sdk-ui/src/charts/map-charts/areamap/areamap-utils.d.ts +0 -11
  209. package/dist/use-common-filters-CHBXz5rL.js +0 -83439
  210. package/dist/use-common-filters-Dd-gOMfB.cjs +0 -916
  211. package/dist/widget-composer-BHf4pbvI.cjs +0 -311
  212. /package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/alternative-country-names-dictionary.d.ts +0 -0
  213. /package/dist/packages/sdk-ui/src/{filters/components → common}/icons/search-icon.d.ts +0 -0
@@ -0,0 +1,271 @@
1
+ "use strict";var am=Object.defineProperty,sm=Object.defineProperties;var lm=Object.getOwnPropertyDescriptors;var Co=Object.getOwnPropertySymbols;var $l=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable;var Qe=Math.pow,Nl=(e,t,r)=>t in e?am(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>{for(var r in t||(t={}))$l.call(t,r)&&Nl(e,r,t[r]);if(Co)for(var r of Co(t))Ll.call(t,r)&&Nl(e,r,t[r]);return e},J=(e,t)=>sm(e,lm(t));var br=(e,t)=>{var r={};for(var n in e)$l.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Co)for(var n of Co(e))t.indexOf(n)<0&&Ll.call(e,n)&&(r[n]=e[n]);return r};var rt=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});const u=require("./derive-chart-family-B4sA-ao-.cjs"),F=require("react"),te=require("react/jsx-runtime"),kr=require("react-dom");function yd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=yd(F),um=yd(kr);function cm(e){let{i18n:t,defaultNS:r,children:n}=e;const o=F.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return F.createElement(u.I18nContext.Provider,{value:o},n)}function Wt(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}const ze={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function fs(e){return[u.customFormula(ze.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),u.customFormula(ze.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),u.customFormula(ze.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function dm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),u.customFormula(ze.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function fm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function pm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),u.customFormula(ze.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const hm=e=>{const t=u.cloneDeep(e),r=u.customFormula(ze.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=u.customFormula(ze.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=o=>{const i=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?i:{jaql:i}},t},mm=e=>{const t=u.cloneDeep(e),r=u.customFormula(ze.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=u.customFormula(ze.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=o=>{const i=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?i:{jaql:i}},t};function kn(e){return!!e&&"operator"in e&&(e.operator==="AND"||e.operator==="OR")&&!!e.right&&!!e.left}function bd(e=[],t=[]){if(!kn(e)&&!kn(t))return lt(e,t);const{filters:r,relations:n}=In(e),o=ps(t),i=lt(r,o),a=Rn(r,n,i);return Sn(i,a)}function In(e){if(!e)return{filters:[],relations:null};if(u.isArray(e))return{filters:e,relations:null};const t=new Set;function r(o){if(_d(o))return t.add(o),{instanceid:o.config.guid};if(kn(o)){const i=r(o.left),a=r(o.right);return{left:i,right:a,operator:o.operator}}throw new ai}const n=r(e);return{filters:Array.from(t),relations:n}}function ps(e){return e?In(e).filters:[]}function Sn(e,t){if(!t||hs(t))return e;const r=n(t);return _d(r)?[r]:r;function n(o){if(oi(o))return e.find(i=>i.config.guid===o.instanceid);if(ii(o))return{left:n(o.left),right:n(o.right),operator:o.operator};throw new ai}}function hs(e){return!!e&&"instanceid"in e}function Rn(e,t,r){if(t===null)return null;const n=vm(e,r);return n.length===0?t:n.reduce((o,i)=>{switch(i.type){case"add":return ym(i.payload,o);case"remove":return Ta(i.payload,o)}},t)}function Fl(e,t){return e.config.guid===t.config.guid}function gm(e,t,r){if(!e)return null;return o(e);function o(i){if(oi(i))return i.instanceid===t.config.guid?{instanceid:r.config.guid}:i;if(ii(i))return{left:o(i.left),right:o(i.right),operator:i.operator};throw new ai}}function vm(e,t){const r=[],n=[...e],o=[...t];return n.forEach(i=>{o.some(s=>Fl(i,s))||r.push({type:"remove",payload:i})}),o.forEach(i=>{n.some(s=>Fl(i,s))||r.push({type:"add",payload:i})}),r}function ym(e,t){return t?{left:t,right:{instanceid:e.config.guid},operator:"AND"}:{instanceid:e.config.guid}}function Ta(e,t){if(!t)return null;if(hs(t))return t.instanceid===e.config.guid?null:t;const r=Ta(e,t.left),n=Ta(e,t.right);return r===null&&n?n:n===null&&r?r:r===null&&n===null?null:{left:r,right:n,operator:t.operator}}function bm(e,t){if(!e)return null;function r(n){if(_m(n))return{instanceid:n.instanceId};if(xm(n))return r(n.value);if(wm(n))return{operator:n.operator,left:r(n.left),right:r(n.right)};if(Cm(n)){const o=t.find(i=>{if(!u.isCascadingFilter(i))return!1;const a=i.filters.map(s=>s.config.guid);return n.levels.every(s=>a.includes(s.instanceId))});if(o)return{instanceid:o.config.guid};throw new Error("Broken filter relations model. Cascading filter not found.")}throw new Error("Broken filter relations model. Unknown node type.")}return r(e)}function _m(e){return"instanceId"in e}function xm(e){return"value"in e}function wm(e){return"operator"in e}function Cm(e){return"levels"in e&&u.isArray(e.levels)}function oi(e){return"instanceid"in e}function ii(e){return"operator"in e}function _d(e){return"config"in e&&"guid"in e.config}function Tm(e,t){if(!e)return;function r(n){if(oi(n)){const o=t.find(i=>i.config.guid===n.instanceid);return o&&u.isCascadingFilter(o)?{type:"CascadingIdentifier",levels:o.filters.map(a=>({type:"Identifier",instanceId:a.config.guid}))}:{type:"Identifier",instanceId:n.instanceid}}else{if(ii(n))return{type:"LogicalExpression",operator:n.operator,left:r(n.left),right:r(n.right)};throw new Error("Unknown node type in filter relations rules.")}}return r(e)}function Em(e,t){return e.find(r=>r.config.guid===t)}class ai extends Error{constructor(){super("Broken filter relations. Unknown node type.")}}function Sm(e){return e.nodeType==="openBracket"}function Rm(e){return e.nodeType==="closeBracket"}function Om(e){return e.nodeType==="attribute"}function Mm(e){return e.nodeType==="operator"}function An(e){if(u.isCascadingFilter(e))return e.filters.map(An).join("-");const{attribute:t}=e,r=e.jaql().jaql,n=t.expression||r.dim,o=t.granularity||((r==null?void 0:r.datatype)==="datetime"?u.DimensionalLevelAttribute.translateJaqlToGranularity(r):"");return`${n}${o}`}function lt(e=[],t=[]){const r=[...e];return t.forEach(n=>{const o=r.findIndex(a=>An(n)===An(a));o!==-1?r[o]=n:r.push(n)}),r}function Pm(e){if(!e)return e;const t=u.cloneDeep(e);function r(n){if("instanceId"in n)return{instanceid:n.instanceId};if("value"in n)return r(n.value);if("operator"in n){const o={operator:n.operator};return"left"in n&&(o.left=r(n.left)),"right"in n&&(o.right=r(n.right)),o}return n}return r(t)}function Dm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(e,t){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ea(e,t)}function km(e,t){if(u._typeof(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Im(e){var t=km(e,"string");return u._typeof(t)=="symbol"?t:t+""}function Am(e,t,r){return t=Im(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xn={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function xd(e,t,r){const n={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.widgetBackgroundColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor,fontsLoader:{fonts:Nm(e.typography.fontFamily,r,e.typography.customFontSelected)}},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor,popover:u.getDefaultThemeSettings().general.popover,buttons:{cancel:{backgroundColor:{default:e.general.secondaryButtonBaseColor,hover:e.general.secondaryButtonHoverColor,focus:e.general.secondaryButtonHoverColor},textColor:e.general.secondaryButtonTextColor}}},widget:{spaceAround:xn[e.dashboards.widgetSpacing],cornerRadius:xn[e.dashboards.widgetCornerRadius],shadow:xn[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:xn[e.dashboards.widgetTitleAlignment],dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:u.DEFAULT_DIVIDER_WIDTH,dividerLineColor:u.DEFAULT_DIVIDER_COLOR},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor}}};return u.merge.withOptions({mergeArrays:!1},u.getDefaultThemeSettings(),n)}function wd(e){return e.dashboards.colorPaletteName}function Nm(e,t,r){const i=r?"fonts/":"resources/base/fonts/";return[{fontFamily:e,fontWeight:"normal",fontStyle:"normal",src:[{url:`${t}${i}${e}-Regular.eot`},{local:`${e}-Regular`},{url:`${t}${i}${e}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-Regular.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:600,fontStyle:"normal",src:[{url:`${t}${i}${e}-SemiBold.eot`},{local:`${e}-SemiBold`},{url:`${t}${i}${e}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:"bold",fontStyle:"normal",src:[{url:`${t}${i}${e}-Bold.eot`},{local:`${e}-Bold`},{url:`${t}${i}${e}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-Bold.ttf`,format:"truetype"}]}]}function Cd(e,t){return rt(this,null,function*(){const r=yield $m(e,t);if(!r)throw new u.TranslatableError("errors.themeNotFound",{themeOid:e});const n=wd(r),o=yield Td(n,t);return xd(r,o,t.url)})}function $m(e,t){return rt(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new u.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function Td(e,t){return rt(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new u.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}const Hl="composesdk",Ed=(e,t,r,n=!1)=>{const o=Object.assign({action:e,cat:Hl,eventType:"product",direct:!0},t);return n&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",o),Promise.resolve()):r.post("api/activities/",[o],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(i=>{console.error(`unable to log action=${e}, category=${Hl}`,i)})},Lm={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},Bl=(e,t,r,n,o)=>{const i=Lm[`${e}`];return i.internal&&Ed(e,t,r,o),i.external&&n&&n(q({action:e},t)),Promise.resolve()},ms=()=>{const{tracking:e,app:t}=u.useSisenseContext(),r=F.useCallback((o,i={},a=!1)=>t?Bl(o,i,t.httpClient,e.onTrackingEvent,a):Promise.resolve(),[e,t]),n=F.useCallback((o,i=!1)=>{if(!t)return Promise.resolve();const{packageName:a,packageVersion:s,component:l,error:c}=o;let p="";return typeof c=="string"?p=c:c instanceof Error&&(p=c.message||c.toString()),Bl("sdkError",{packageName:a,packageVersion:s,component:l,error:p},t.httpClient,e.onTrackingEvent,i)},[e,t]);return{trackEvent:r,trackError:n}},Fm="sdkComponentInit",Sd=F.createContext(!1),Hm=({skipNested:e=!0,children:t})=>u.jsx(Sd.Provider,{value:e,children:t}),Bm=(e,t)=>{const{tracking:r,app:n}=u.useSisenseContext(),{trackEvent:o}=ms(),i=F.useContext(Sd),a=F.useRef(!1);F.useEffect(()=>{if(!r||!n)return;if(!a.current&&!i){const l={packageName:r.packageName,packageVersion:"1.33.0",componentName:e,attributesUsed:Object.entries(t).filter(([,c])=>!!c).map(([c])=>c).join(", ")};o(Fm,l,!r.enabled).finally(()=>a.current=!0)}},[e,t,r,i,o,n])};var jm="[object Boolean]";function Rd(e){return e===!0||e===!1||u.isObjectLike(e)&&u.baseGetTag(e)==jm}const Al=class Al extends F.Component{constructor(t){super(t),this.postponedErrors=[],this.handler=t.handler,this.componentName=t.componentName}componentDidMount(){var t;this.context.isInitialized&&(this.httpClient=(t=this.context.app)==null?void 0:t.httpClient)}componentDidCatch(t){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(t):this.postponedErrors.push(t)),t}sendErrorTracking(t){try{this.handler({packageName:"sdk-ui",packageVersion:"1.33.0",component:this.componentName,error:t})}catch(r){console.log("Failed to send tracking error event: ",r)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(t=>this.sendErrorTracking(t)),this.postponedErrors=[],this.props.children}};Al.contextType=u.SisenseContext;let Sa=Al;const zm=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return o=>function(a){const{trackError:s}=ms();return Rd(r)&&r||u.isFunction(r)&&r(a)?u.jsx(o,q({},a)):(Bm(e,a),u.jsx(Hm,{skipNested:!n,children:u.jsx(Sa,{componentName:e,handler:s,children:u.jsx(o,q({},a))})}))}},Wm="_container_1wquj_1",Vm="_card_1wquj_11",Um="_text_1wquj_19",Qi={container:Wm,card:Vm,text:Um};function Od({color:e="#FFCB05"}){return u.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:u.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:u.jsxs("g",{children:[u.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),u.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const Md=({error:e=new u.TranslatableError("errors.componentRenderError")})=>{var d,m,g,v,y,w;const{themeSettings:t}=u.useThemeContext(),{app:r}=u.useSisenseContext(),{t:n}=u.useTranslation(),[o,i]=F.useState(!1),a=()=>{i(!0)},s=()=>{i(!1)},l=u.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:u.jsx(Od,{color:(d=t==null?void 0:t.general)==null?void 0:d.brandColor})}),c=e instanceof u.AbstractTranslatableError?n(e.key,q({},e.interpolationOptions)):n(e instanceof Error?e.message:e),p=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),h=(g=(m=r==null?void 0:r.settings)==null?void 0:m.errorBoundaryConfig)==null?void 0:g.alwaysShowErrorText;return u.jsx("div",{onMouseEnter:h?void 0:a,onMouseLeave:h?void 0:s,className:Qi.container,"aria-label":"error-box",children:u.jsxs("div",{className:Qi.card,style:{backgroundColor:((v=t==null?void 0:t.general)==null?void 0:v.backgroundColor)||"rgba(255,255,255,0.5)"},children:[l,(h||o)&&u.jsx("div",{className:Qi.text,style:{color:((y=t==null?void 0:t.typography)==null?void 0:y.primaryTextColor)||u.DEFAULT_TEXT_COLOR,fontFamily:((w=t==null?void 0:t.typography)==null?void 0:w.fontFamily)||"inherit"},children:p})]})})};let Pd=class extends F.Component{constructor(t){var r;super(t),this.showErrorBox=!0,this.showErrorBox=(r=t.showErrorBox)!=null?r:!0,this.onError=t.onError,this.isContainerComponent=t.isContainerComponent||!1,this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){var r;this.setState({error:t}),(r=this.onError)==null||r.call(this,t instanceof Error?t:new Error(t))}componentDidUpdate(t,r){r.error!==null&&qm(t.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const t=this.state.error||this.props.error;return!t||this.isContainerComponent&&!this.showErrorBox?this.props.children:this.showErrorBox?u.jsx(Md,{error:t}):null}};function qm(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!u.isEqual(r,t[n]))}const Gm=({componentName:e})=>t=>function(n){const o=u.useSisenseContext(),i=a=>{var s,l;return(l=(s=o.errorBoundary).onError)==null?void 0:l.call(s,a,{componentName:e,componentProps:n})};return u.jsx(Pd,{resetKeys:Object.values(n),showErrorBox:o.errorBoundary.showErrorBox,onError:i,isContainerComponent:!!(n!=null&&n.children),children:u.jsx(t,q({},n))})},gs=({color:e})=>{const t={backgroundColor:e||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},r=J(q({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=J(q({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),o=J(q({},t),{marginRight:"unset"}),i={"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}};return u.jsxs("div",{children:[u.jsx("style",{children:`
2
+ @keyframes loading-dots-animation {
3
+ ${Object.entries(i).map(([a,s])=>`${a} { ${Object.entries(s).map(([l,c])=>`${l}: ${c};`).join("")} }`).join("")}
4
+ }
5
+ `}),u.jsx("div",{style:r}),u.jsx("div",{style:n}),u.jsx("div",{style:o})]})},si=({themeSettings:e,onCancel:t})=>{const{t:r}=u.useTranslation(),n=e!=null&&e.chart.backgroundColor?{backgroundColor:e.chart.backgroundColor}:void 0;return u.jsx("div",{style:n,className:"csdk-h-full csdk-bg-white csdk-p-[20px]","aria-label":"csdk-loading-indicator",children:u.jsxs("div",{style:n,className:"csdk-h-full csdk-bg-background-priority csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center",children:[u.jsx(gs,{color:e==null?void 0:e.chart.textColor}),t&&u.jsx("div",{className:"csdk-text-ai-sm csdk-text-text-link csdk-cursor-pointer",onClick:t,children:r("cancel")})]})})},Ym=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(o){if(Xm(e,o))return u.jsx(r,q({},o));const{app:i,isInitialized:a}=u.useSisenseContext();if(!a){const s=t||"errors.noSisenseContext";throw new u.TranslatableError(s)}return i?u.jsx(r,q({},o)):u.jsx(si,{})};function Xm(e,t){return Rd(e)&&e||u.isFunction(e)&&e(t)}function Km(){const[e,t]=F.useState(null);return F.useEffect(()=>{u.initializeI18n().initPromise.then(r=>t(r))},[]),e}const Dd=({children:e,userLanguage:t,customTranslations:r=[]})=>{const n=Km();return F.useEffect(()=>{if(t&&(n==null?void 0:n.language)!==t){for(const{language:o,resources:i,namespace:a="sdkUi"}of r)n==null||n.addResourceBundle(o,a,i);n==null||n.changeLanguage(t)}},[n,t,r]),n&&u.jsx(cm,{i18n:n,children:e})},Qm=()=>e=>function(r){const{isInitialized:n}=u.useSisenseContext();return n?u.jsx(e,q({},r)):u.jsx(Dd,{children:u.jsx(e,q({},r))})},vs=F.createContext(null),li=()=>F.useContext(vs);function ae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Ra={exports:{}},he={};/**
6
+ * @license React
7
+ * react-is.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */var jl;function Zm(){if(jl)return he;jl=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function v(y){if(typeof y=="object"&&y!==null){var w=y.$$typeof;switch(w){case e:switch(y=y.type,y){case r:case o:case n:case c:case p:return y;default:switch(y=y&&y.$$typeof,y){case s:case a:case l:case d:case h:case i:return y;default:return w}}case t:return w}}}return he.ContextConsumer=a,he.ContextProvider=i,he.Element=e,he.ForwardRef=l,he.Fragment=r,he.Lazy=d,he.Memo=h,he.Portal=t,he.Profiler=o,he.StrictMode=n,he.Suspense=c,he.SuspenseList=p,he.isAsyncMode=function(){return!1},he.isConcurrentMode=function(){return!1},he.isContextConsumer=function(y){return v(y)===a},he.isContextProvider=function(y){return v(y)===i},he.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},he.isForwardRef=function(y){return v(y)===l},he.isFragment=function(y){return v(y)===r},he.isLazy=function(y){return v(y)===d},he.isMemo=function(y){return v(y)===h},he.isPortal=function(y){return v(y)===t},he.isProfiler=function(y){return v(y)===o},he.isStrictMode=function(y){return v(y)===n},he.isSuspense=function(y){return v(y)===c},he.isSuspenseList=function(y){return v(y)===p},he.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===c||y===p||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===h||y.$$typeof===i||y.$$typeof===a||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},he.typeOf=v,he}var me={};/**
14
+ * @license React
15
+ * react-is.development.js
16
+ *
17
+ * Copyright (c) Facebook, Inc. and its affiliates.
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */var zl;function Jm(){return zl||(zl=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=!1,v=!1,y=!1,w=!1,E=!1,_;_=Symbol.for("react.module.reference");function x(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===r||Z===o||E||Z===n||Z===c||Z===p||w||Z===m||g||v||y||typeof Z=="object"&&Z!==null&&(Z.$$typeof===d||Z.$$typeof===h||Z.$$typeof===i||Z.$$typeof===a||Z.$$typeof===l||Z.$$typeof===_||Z.getModuleId!==void 0))}function b(Z){if(typeof Z=="object"&&Z!==null){var oe=Z.$$typeof;switch(oe){case e:var de=Z.type;switch(de){case r:case o:case n:case c:case p:return de;default:var pe=de&&de.$$typeof;switch(pe){case s:case a:case l:case d:case h:case i:return pe;default:return oe}}case t:return oe}}}var C=a,S=i,O=e,M=l,D=r,R=d,T=h,I=t,A=o,P=n,N=c,H=p,B=!1,L=!1;function k(Z){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(Z){return L||(L=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(Z){return b(Z)===a}function j(Z){return b(Z)===i}function W(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function U(Z){return b(Z)===l}function Y(Z){return b(Z)===r}function K(Z){return b(Z)===d}function X(Z){return b(Z)===h}function Q(Z){return b(Z)===t}function ee(Z){return b(Z)===o}function re(Z){return b(Z)===n}function G(Z){return b(Z)===c}function ne(Z){return b(Z)===p}me.ContextConsumer=C,me.ContextProvider=S,me.Element=O,me.ForwardRef=M,me.Fragment=D,me.Lazy=R,me.Memo=T,me.Portal=I,me.Profiler=A,me.StrictMode=P,me.Suspense=N,me.SuspenseList=H,me.isAsyncMode=k,me.isConcurrentMode=$,me.isContextConsumer=V,me.isContextProvider=j,me.isElement=W,me.isForwardRef=U,me.isFragment=Y,me.isLazy=K,me.isMemo=X,me.isPortal=Q,me.isProfiler=ee,me.isStrictMode=re,me.isSuspense=G,me.isSuspenseList=ne,me.isValidElementType=x,me.typeOf=b}()),me}process.env.NODE_ENV==="production"?Ra.exports=Zm():Ra.exports=Jm();var Nn=Ra.exports,Oa={exports:{}},To={exports:{}},ge={};/** @license React v16.13.1
22
+ * react-is.production.min.js
23
+ *
24
+ * Copyright (c) Facebook, Inc. and its affiliates.
25
+ *
26
+ * This source code is licensed under the MIT license found in the
27
+ * LICENSE file in the root directory of this source tree.
28
+ */var Wl;function eg(){if(Wl)return ge;Wl=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var C=b.$$typeof;switch(C){case t:switch(b=b.type,b){case l:case c:case n:case i:case o:case h:return b;default:switch(b=b&&b.$$typeof,b){case s:case p:case g:case m:case a:return b;default:return C}}case r:return C}}}function x(b){return _(b)===c}return ge.AsyncMode=l,ge.ConcurrentMode=c,ge.ContextConsumer=s,ge.ContextProvider=a,ge.Element=t,ge.ForwardRef=p,ge.Fragment=n,ge.Lazy=g,ge.Memo=m,ge.Portal=r,ge.Profiler=i,ge.StrictMode=o,ge.Suspense=h,ge.isAsyncMode=function(b){return x(b)||_(b)===l},ge.isConcurrentMode=x,ge.isContextConsumer=function(b){return _(b)===s},ge.isContextProvider=function(b){return _(b)===a},ge.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},ge.isForwardRef=function(b){return _(b)===p},ge.isFragment=function(b){return _(b)===n},ge.isLazy=function(b){return _(b)===g},ge.isMemo=function(b){return _(b)===m},ge.isPortal=function(b){return _(b)===r},ge.isProfiler=function(b){return _(b)===i},ge.isStrictMode=function(b){return _(b)===o},ge.isSuspense=function(b){return _(b)===h},ge.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===c||b===i||b===o||b===h||b===d||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===m||b.$$typeof===a||b.$$typeof===s||b.$$typeof===p||b.$$typeof===y||b.$$typeof===w||b.$$typeof===E||b.$$typeof===v)},ge.typeOf=_,ge}var ve={};/** @license React v16.13.1
29
+ * react-is.development.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */var Vl;function tg(){return Vl||(Vl=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function _(G){return typeof G=="string"||typeof G=="function"||G===n||G===c||G===i||G===o||G===h||G===d||typeof G=="object"&&G!==null&&(G.$$typeof===g||G.$$typeof===m||G.$$typeof===a||G.$$typeof===s||G.$$typeof===p||G.$$typeof===y||G.$$typeof===w||G.$$typeof===E||G.$$typeof===v)}function x(G){if(typeof G=="object"&&G!==null){var ne=G.$$typeof;switch(ne){case t:var Z=G.type;switch(Z){case l:case c:case n:case i:case o:case h:return Z;default:var oe=Z&&Z.$$typeof;switch(oe){case s:case p:case g:case m:case a:return oe;default:return ne}}case r:return ne}}}var b=l,C=c,S=s,O=a,M=t,D=p,R=n,T=g,I=m,A=r,P=i,N=o,H=h,B=!1;function L(G){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(G)||x(G)===l}function k(G){return x(G)===c}function $(G){return x(G)===s}function V(G){return x(G)===a}function j(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function W(G){return x(G)===p}function U(G){return x(G)===n}function Y(G){return x(G)===g}function K(G){return x(G)===m}function X(G){return x(G)===r}function Q(G){return x(G)===i}function ee(G){return x(G)===o}function re(G){return x(G)===h}ve.AsyncMode=b,ve.ConcurrentMode=C,ve.ContextConsumer=S,ve.ContextProvider=O,ve.Element=M,ve.ForwardRef=D,ve.Fragment=R,ve.Lazy=T,ve.Memo=I,ve.Portal=A,ve.Profiler=P,ve.StrictMode=N,ve.Suspense=H,ve.isAsyncMode=L,ve.isConcurrentMode=k,ve.isContextConsumer=$,ve.isContextProvider=V,ve.isElement=j,ve.isForwardRef=W,ve.isFragment=U,ve.isLazy=Y,ve.isMemo=K,ve.isPortal=X,ve.isProfiler=Q,ve.isStrictMode=ee,ve.isSuspense=re,ve.isValidElementType=_,ve.typeOf=x}()),ve}var Ul;function kd(){return Ul||(Ul=1,process.env.NODE_ENV==="production"?To.exports=eg():To.exports=tg()),To.exports}/*
36
+ object-assign
37
+ (c) Sindre Sorhus
38
+ @license MIT
39
+ */var Zi,ql;function rg(){if(ql)return Zi;ql=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(p){c[p]=p}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch(p){return!1}}return Zi=o()?Object.assign:function(i,a){for(var s,l=n(i),c,p=1;p<arguments.length;p++){s=Object(arguments[p]);for(var h in s)t.call(s,h)&&(l[h]=s[h]);if(e){c=e(s);for(var d=0;d<c.length;d++)r.call(s,c[d])&&(l[c[d]]=s[c[d]])}}return l},Zi}var Ji,Gl;function ys(){if(Gl)return Ji;Gl=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ji=e,Ji}var ea,Yl;function Id(){return Yl||(Yl=1,ea=Function.call.bind(Object.prototype.hasOwnProperty)),ea}var ta,Xl;function ng(){if(Xl)return ta;Xl=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ys(),r={},n=Id();e=function(i){var a="Warning: "+i;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(s){}}}function o(i,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var p in i)if(n(i,p)){var h;try{if(typeof i[p]!="function"){var d=Error((l||"React class")+": "+s+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}h=i[p](a,p,l,s,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var m=c?c():"";e("Failed "+s+" type: "+h.message+(m!=null?m:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ta=o,ta}var ra,Kl;function og(){if(Kl)return ra;Kl=1;var e=kd(),t=rg(),r=ys(),n=Id(),o=ng(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var l="Warning: "+s;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(c){}});function a(){return null}return ra=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(k){var $=k&&(c&&k[c]||k[p]);if(typeof $=="function")return $}var d="<<anonymous>>",m={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:E(),arrayOf:_,element:x(),elementType:b(),instanceOf:C,node:D(),objectOf:O,oneOf:S,oneOfType:M,shape:T,exact:I};function g(k,$){return k===$?k!==0||1/k===1/$:k!==k&&$!==$}function v(k,$){this.message=k,this.data=$&&typeof $=="object"?$:{},this.stack=""}v.prototype=Error.prototype;function y(k){if(process.env.NODE_ENV!=="production")var $={},V=0;function j(U,Y,K,X,Q,ee,re){if(X=X||d,ee=ee||K,re!==r){if(l){var G=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var ne=X+":"+K;!$[ne]&&V<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+X+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[ne]=!0,V++)}}return Y[K]==null?U?Y[K]===null?new v("The "+Q+" `"+ee+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new v("The "+Q+" `"+ee+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:k(Y,K,X,Q,ee)}var W=j.bind(null,!1);return W.isRequired=j.bind(null,!0),W}function w(k){function $(V,j,W,U,Y,K){var X=V[j],Q=N(X);if(Q!==k){var ee=H(X);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return y($)}function E(){return y(a)}function _(k){function $(V,j,W,U,Y){if(typeof k!="function")return new v("Property `"+Y+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var K=V[j];if(!Array.isArray(K)){var X=N(K);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+X+"` supplied to `"+W+"`, expected an array."))}for(var Q=0;Q<K.length;Q++){var ee=k(K,Q,W,U,Y+"["+Q+"]",r);if(ee instanceof Error)return ee}return null}return y($)}function x(){function k($,V,j,W,U){var Y=$[V];if(!s(Y)){var K=N(Y);return new v("Invalid "+W+" `"+U+"` of type "+("`"+K+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return y(k)}function b(){function k($,V,j,W,U){var Y=$[V];if(!e.isValidElementType(Y)){var K=N(Y);return new v("Invalid "+W+" `"+U+"` of type "+("`"+K+"` supplied to `"+j+"`, expected a single ReactElement type."))}return null}return y(k)}function C(k){function $(V,j,W,U,Y){if(!(V[j]instanceof k)){var K=k.name||d,X=L(V[j]);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+X+"` supplied to `"+W+"`, expected ")+("instance of `"+K+"`."))}return null}return y($)}function S(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function $(V,j,W,U,Y){for(var K=V[j],X=0;X<k.length;X++)if(g(K,k[X]))return null;var Q=JSON.stringify(k,function(re,G){var ne=H(G);return ne==="symbol"?String(G):G});return new v("Invalid "+U+" `"+Y+"` of value `"+String(K)+"` "+("supplied to `"+W+"`, expected one of "+Q+"."))}return y($)}function O(k){function $(V,j,W,U,Y){if(typeof k!="function")return new v("Property `"+Y+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var K=V[j],X=N(K);if(X!=="object")return new v("Invalid "+U+" `"+Y+"` of type "+("`"+X+"` supplied to `"+W+"`, expected an object."));for(var Q in K)if(n(K,Q)){var ee=k(K,Q,W,U,Y+"."+Q,r);if(ee instanceof Error)return ee}return null}return y($)}function M(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<k.length;$++){var V=k[$];if(typeof V!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(V)+" at index "+$+"."),a}function j(W,U,Y,K,X){for(var Q=[],ee=0;ee<k.length;ee++){var re=k[ee],G=re(W,U,Y,K,X,r);if(G==null)return null;G.data&&n(G.data,"expectedType")&&Q.push(G.data.expectedType)}var ne=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new v("Invalid "+K+" `"+X+"` supplied to "+("`"+Y+"`"+ne+"."))}return y(j)}function D(){function k($,V,j,W,U){return A($[V])?null:new v("Invalid "+W+" `"+U+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return y(k)}function R(k,$,V,j,W){return new v((k||"React class")+": "+$+" type `"+V+"."+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function T(k){function $(V,j,W,U,Y){var K=V[j],X=N(K);if(X!=="object")return new v("Invalid "+U+" `"+Y+"` of type `"+X+"` "+("supplied to `"+W+"`, expected `object`."));for(var Q in k){var ee=k[Q];if(typeof ee!="function")return R(W,U,Y,Q,H(ee));var re=ee(K,Q,W,U,Y+"."+Q,r);if(re)return re}return null}return y($)}function I(k){function $(V,j,W,U,Y){var K=V[j],X=N(K);if(X!=="object")return new v("Invalid "+U+" `"+Y+"` of type `"+X+"` "+("supplied to `"+W+"`, expected `object`."));var Q=t({},V[j],k);for(var ee in Q){var re=k[ee];if(n(k,ee)&&typeof re!="function")return R(W,U,Y,ee,H(re));if(!re)return new v("Invalid "+U+" `"+Y+"` key `"+ee+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(V[j],null," ")+`
40
+ Valid keys: `+JSON.stringify(Object.keys(k),null," "));var G=re(K,ee,W,U,Y+"."+ee,r);if(G)return G}return null}return y($)}function A(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(A);if(k===null||s(k))return!0;var $=h(k);if($){var V=$.call(k),j;if($!==k.entries){for(;!(j=V.next()).done;)if(!A(j.value))return!1}else for(;!(j=V.next()).done;){var W=j.value;if(W&&!A(W[1]))return!1}}else return!1;return!0;default:return!1}}function P(k,$){return k==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function N(k){var $=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":P($,k)?"symbol":$}function H(k){if(typeof k=="undefined"||k===null)return""+k;var $=N(k);if($==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return $}function B(k){var $=H(k);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function L(k){return!k.constructor||!k.constructor.name?d:k.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},ra}var na,Ql;function ig(){if(Ql)return na;Ql=1;var e=ys();function t(){}function r(){}return r.resetWarningCache=t,na=function(){function n(a,s,l,c,p,h){if(h!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},na}if(process.env.NODE_ENV!=="production"){var ag=kd(),sg=!0;Oa.exports=og()(ag.isElement,sg)}else Oa.exports=ig()();var Ye=Oa.exports;const f=u.getDefaultExportFromCjs(Ye);function Ad(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ad(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function se(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ad(e))&&(n&&(n+=" "),n+=t);return n}function De(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),r&&r[a]&&i.push(r[a])}return i},[]).join(" ")}),n}function Ot(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}const lg=z.createContext(),bs=()=>{const e=z.useContext(lg);return e!=null?e:!1};function Ma(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ve(...e){return z.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ma(r,t)})},e)}function _s(e){return typeof e=="string"}function wn(e,t,r){return e===void 0||_s(e)?t:u._extends({},t,{ownerState:u._extends({},t.ownerState,r)})}function Nd(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Zl(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function ug(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const m=se(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),g=u._extends({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),v=u._extends({},r,o,n);return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const a=Nd(u._extends({},o,n)),s=Zl(n),l=Zl(o),c=t(a),p=se(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),h=u._extends({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),d=u._extends({},c,r,l,s);return p.length>0&&(d.className=p),Object.keys(h).length>0&&(d.style=h),{props:d,internalRef:c.ref}}function cg(e,t,r){return typeof e=="function"?e(t,r):e}const dg=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Vt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ae(e,dg),s=i?{}:cg(n,o),{props:l,internalRef:c}=ug(u._extends({},a,{externalSlotProps:s})),p=Ve(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return wn(r,u._extends({},l,{ref:p}),o)}function We(e){return e&&e.ownerDocument||document}var Yn={};const fg=u.getAugmentedNamespace(u._extends$1);var oa={exports:{}},Jl;function pg(){return Jl||(Jl=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(n.indexOf(i)>=0)continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(oa)),oa.exports}let Pa;typeof document=="object"&&(Pa=u.createCache({key:"css",prepend:!0}));function $d(e){const{injectFirst:t,children:r}=e;return t&&Pa?te.jsx(u.CacheProvider,{value:Pa,children:r}):r}process.env.NODE_ENV!=="production"&&($d.propTypes={children:f.node,injectFirst:f.bool});function hg(e){return e==null||Object.keys(e).length===0}function Ld(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(hg(o)?r:o):t;return te.jsx(u.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ld.propTypes={defaultTheme:f.object,styles:f.oneOfType([f.array,f.string,f.object,f.func])});/**
41
+ * @mui/styled-engine v5.16.6
42
+ *
43
+ * @license MIT
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */function Fd(e,t){const r=u.newStyled(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
47
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Hd=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},mg=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ld,StyledEngineProvider:$d,ThemeContext:u.ThemeContext$1,css:u.css,default:Fd,internal_processStyles:Hd,keyframes:u.keyframes},Symbol.toStringTag,{value:"Module"})),Bd=u.getAugmentedNamespace(mg);function St(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function jd(e){if(!St(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=jd(e[r])}),t}function dr(e,t,r={clone:!0}){const n=r.clone?u._extends({},e):e;return St(e)&&St(t)&&Object.keys(t).forEach(o=>{St(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&St(e[o])?n[o]=dr(e[o],t[o],r):r.clone?n[o]=St(t[o])?jd(t[o]):t[o]:n[o]=t[o]}),n}const gg=Object.freeze(Object.defineProperty({__proto__:null,default:dr,isPlainObject:St},Symbol.toStringTag,{value:"Module"})),vg=u.getAugmentedNamespace(gg);function zd(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const yg=Object.freeze(Object.defineProperty({__proto__:null,default:zd},Symbol.toStringTag,{value:"Module"}));function ui(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":zd(7));return e.charAt(0).toUpperCase()+e.slice(1)}const bg=Object.freeze(Object.defineProperty({__proto__:null,default:ui},Symbol.toStringTag,{value:"Module"})),_g=u.getAugmentedNamespace(bg),xg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Wd(e){const t=`${e}`.match(xg);return t&&t[1]||""}function Vd(e,t=""){return e.displayName||e.name||Wd(e)||t}function eu(e,t,r){const n=Vd(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ud(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vd(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Nn.ForwardRef:return eu(e,e.render,"ForwardRef");case Nn.Memo:return eu(e,e.type,"memo");default:return}}}const wg=Object.freeze(Object.defineProperty({__proto__:null,default:Ud,getFunctionName:Wd},Symbol.toStringTag,{value:"Module"})),Cg=u.getAugmentedNamespace(wg),Tg=["values","unit","step"],Eg=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>u._extends({},r,{[n.key]:n.val}),{})};function qd(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ae(e,Tg),i=Eg(t),a=Object.keys(i);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function c(d,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-n/100}${r})`}function p(d){return a.indexOf(d)+1<a.length?c(d,a[a.indexOf(d)+1]):s(d)}function h(d){const m=a.indexOf(d);return m===0?s(a[1]):m===a.length-1?l(a[m]):c(d,a[a.indexOf(d)+1]).replace("@media","@media not all and")}return u._extends({keys:a,values:i,up:s,down:l,between:c,only:p,not:h,unit:r},o)}const Sg={borderRadius:4},qt=process.env.NODE_ENV!=="production"?f.oneOfType([f.number,f.string,f.object,f.array]):{};function On(e,t){return t?dr(e,t,{clone:!1}):e}const xs={xs:0,sm:600,md:900,lg:1200,xl:1536},tu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xs[e]}px)`};function Tt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||tu;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const i=n.breakpoints||tu;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||xs).indexOf(s)!==-1){const l=i.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function Gd(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Yd(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Rg(e,...t){const r=Gd(e),n=[r,...t].reduce((o,i)=>dr(o,i),{});return Yd(Object.keys(r),n)}function Og(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Mg({values:e,breakpoints:t,base:r}){const n=r||Og(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function ci(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Vo(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=ci(e,r)||n,t&&(o=t(o,n,e)),o}function Ie(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=ci(l,n)||{};return Tt(a,s,h=>{let d=Vo(c,o,h);return h===d&&typeof h=="string"&&(d=Vo(c,o,`${t}${h==="default"?"":ui(h)}`,h)),r===!1?d:{[r]:d}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:qt}:{},i.filterProps=[t],i}function Pg(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Dg={m:"margin",p:"padding"},kg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ru={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ig=Pg(e=>{if(e.length>2)if(ru[e])e=ru[e];else return[e];const[t,r]=e.split(""),n=Dg[t],o=kg[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),di=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ag=[...di,...fi];function Xn(e,t,r,n){var o;const i=(o=ci(e,t,!1))!=null?o:r;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
48
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
49
+ `))),i[a]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
50
+ `)),()=>{})}function ws(e){return Xn(e,"spacing",8,"spacing")}function zr(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Ng(e,t){return r=>e.reduce((n,o)=>(n[o]=zr(t,r),n),{})}function $g(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ig(r),i=Ng(o,n),a=e[r];return Tt(e,a,i)}function Xd(e,t){const r=ws(e.theme);return Object.keys(e).map(n=>$g(e,t,n,r)).reduce(On,{})}function Oe(e){return Xd(e,di)}Oe.propTypes=process.env.NODE_ENV!=="production"?di.reduce((e,t)=>(e[t]=qt,e),{}):{};Oe.filterProps=di;function Me(e){return Xd(e,fi)}Me.propTypes=process.env.NODE_ENV!=="production"?fi.reduce((e,t)=>(e[t]=qt,e),{}):{};Me.filterProps=fi;process.env.NODE_ENV!=="production"&&Ag.reduce((e,t)=>(e[t]=qt,e),{});function Lg(e=8){if(e.mui)return e;const t=ws({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function pi(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?On(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function st(e){return typeof e!="number"?e:`${e}px solid`}function ht(e,t){return Ie({prop:e,themeKey:"borders",transform:t})}const Fg=ht("border",st),Hg=ht("borderTop",st),Bg=ht("borderRight",st),jg=ht("borderBottom",st),zg=ht("borderLeft",st),Wg=ht("borderColor"),Vg=ht("borderTopColor"),Ug=ht("borderRightColor"),qg=ht("borderBottomColor"),Gg=ht("borderLeftColor"),Yg=ht("outline",st),Xg=ht("outlineColor"),hi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:zr(t,n)});return Tt(e,e.borderRadius,r)}return null};hi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:qt}:{};hi.filterProps=["borderRadius"];pi(Fg,Hg,Bg,jg,zg,Wg,Vg,Ug,qg,Gg,hi,Yg,Xg);const mi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xn(e.theme,"spacing",8,"gap"),r=n=>({gap:zr(t,n)});return Tt(e,e.gap,r)}return null};mi.propTypes=process.env.NODE_ENV!=="production"?{gap:qt}:{};mi.filterProps=["gap"];const gi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:zr(t,n)});return Tt(e,e.columnGap,r)}return null};gi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:qt}:{};gi.filterProps=["columnGap"];const vi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:zr(t,n)});return Tt(e,e.rowGap,r)}return null};vi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:qt}:{};vi.filterProps=["rowGap"];const Kg=Ie({prop:"gridColumn"}),Qg=Ie({prop:"gridRow"}),Zg=Ie({prop:"gridAutoFlow"}),Jg=Ie({prop:"gridAutoColumns"}),ev=Ie({prop:"gridAutoRows"}),tv=Ie({prop:"gridTemplateColumns"}),rv=Ie({prop:"gridTemplateRows"}),nv=Ie({prop:"gridTemplateAreas"}),ov=Ie({prop:"gridArea"});pi(mi,gi,vi,Kg,Qg,Zg,Jg,ev,tv,rv,nv,ov);function Ar(e,t){return t==="grey"?t:e}const iv=Ie({prop:"color",themeKey:"palette",transform:Ar}),av=Ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ar}),sv=Ie({prop:"backgroundColor",themeKey:"palette",transform:Ar});pi(iv,av,sv);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const lv=Ie({prop:"width",transform:Je}),Cs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||xs[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Je(r)}};return Tt(e,e.maxWidth,t)}return null};Cs.filterProps=["maxWidth"];const uv=Ie({prop:"minWidth",transform:Je}),cv=Ie({prop:"height",transform:Je}),dv=Ie({prop:"maxHeight",transform:Je}),fv=Ie({prop:"minHeight",transform:Je});Ie({prop:"size",cssProperty:"width",transform:Je});Ie({prop:"size",cssProperty:"height",transform:Je});const pv=Ie({prop:"boxSizing"});pi(lv,Cs,uv,cv,dv,fv,pv);const Kn={border:{themeKey:"borders",transform:st},borderTop:{themeKey:"borders",transform:st},borderRight:{themeKey:"borders",transform:st},borderBottom:{themeKey:"borders",transform:st},borderLeft:{themeKey:"borders",transform:st},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:st},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hi},color:{themeKey:"palette",transform:Ar},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ar},backgroundColor:{themeKey:"palette",transform:Ar},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:Oe},mt:{style:Oe},mr:{style:Oe},mb:{style:Oe},ml:{style:Oe},mx:{style:Oe},my:{style:Oe},margin:{style:Oe},marginTop:{style:Oe},marginRight:{style:Oe},marginBottom:{style:Oe},marginLeft:{style:Oe},marginX:{style:Oe},marginY:{style:Oe},marginInline:{style:Oe},marginInlineStart:{style:Oe},marginInlineEnd:{style:Oe},marginBlock:{style:Oe},marginBlockStart:{style:Oe},marginBlockEnd:{style:Oe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:mi},rowGap:{style:vi},columnGap:{style:gi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:Cs},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function hv(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function mv(e,t){return typeof e=="function"?e(t):e}function Kd(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:p,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const d=ci(o,c)||{};return h?h(a):Tt(a,n,g=>{let v=Vo(d,p,g);return g===v&&typeof g=="string"&&(v=Vo(d,p,`${r}${g==="default"?"":ui(g)}`,g)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:Kn;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const p=Gd(i.breakpoints),h=Object.keys(p);let d=p;return Object.keys(c).forEach(m=>{const g=mv(c[m],i);if(g!=null)if(typeof g=="object")if(a[m])d=On(d,e(m,g,i,a));else{const v=Tt({theme:i},g,y=>({[m]:y}));hv(v,g)?d[m]=t({sx:g,theme:i}):d=On(d,v)}else d=On(d,e(m,g,i,a))}),Yd(h,d)}return Array.isArray(o)?o.map(s):s(o)}return t}const Qn=Kd();Qn.filterProps=["sx"];function Qd(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const gv=["breakpoints","palette","spacing","shape"];function yi(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=ae(e,gv),s=qd(r),l=Lg(o);let c=dr({breakpoints:s,direction:"ltr",components:{},palette:u._extends({mode:"light"},n),spacing:l,shape:u._extends({},Sg,i)},a);return c.applyStyles=Qd,c=t.reduce((p,h)=>dr(p,h),c),c.unstable_sxConfig=u._extends({},Kn,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(h){return Qn({sx:h,theme:this})},c}const vv=Object.freeze(Object.defineProperty({__proto__:null,default:yi,private_createBreakpoints:qd,unstable_applyStyles:Qd},Symbol.toStringTag,{value:"Module"})),yv=u.getAugmentedNamespace(vv),bv=["sx"],_v=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Kn;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Ts(e){const{sx:t}=e,r=ae(e,bv),{systemProps:n,otherProps:o}=_v(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return St(s)?u._extends({},n,s):n}:i=u._extends({},n,t),u._extends({},o,{sx:i})}const xv=Object.freeze(Object.defineProperty({__proto__:null,default:Qn,extendSxProp:Ts,unstable_createStyleFunctionSx:Kd,unstable_defaultSxConfig:Kn},Symbol.toStringTag,{value:"Module"})),wv=u.getAugmentedNamespace(xv);var Wr=u.interopRequireDefaultExports;Object.defineProperty(Yn,"__esModule",{value:!0});var Cv=Yn.default=Lv;Yn.shouldForwardProp=$o;Yn.systemDefaultTheme=void 0;var ot=Wr(fg),Da=Wr(pg()),nu=kv(Bd),Tv=vg,Ev=Wr(_g),Sv=Wr(Cg),Rv=Wr(yv),Ov=Wr(wv);const Mv=["ownerState"],Pv=["variants"],Dv=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zd(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Zd=function(n){return n?r:t})(e)}function kv(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Zd(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function Iv(e){return Object.keys(e).length===0}function Av(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $o(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Nv=Yn.systemDefaultTheme=(0,Rv.default)(),ou=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Eo({defaultTheme:e,theme:t,themeId:r}){return Iv(t)?e:t[r]||t}function $v(e){return e?(t,r)=>r[e]:null}function Lo(e,t){let{ownerState:r}=t,n=(0,Da.default)(t,Mv);const o=typeof e=="function"?e((0,ot.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>Lo(i,(0,ot.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,Da.default)(o,Pv);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,ot.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(p=>{(r==null?void 0:r[p])!==l.props[p]&&n[p]!==l.props[p]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,ot.default)({ownerState:r},n,r)):l.style))}),s}return o}function Lv(e={}){const{themeId:t,defaultTheme:r=Nv,rootShouldForwardProp:n=$o,slotShouldForwardProp:o=$o}=e,i=a=>(0,Ov.default)((0,ot.default)({},a,{theme:Eo((0,ot.default)({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,nu.internal_processStyles)(a,b=>b.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:p,skipSx:h,overridesResolver:d=$v(ou(c))}=s,m=(0,Da.default)(s,Dv),g=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,v=h||!1;let y;process.env.NODE_ENV!=="production"&&l&&(y=`${l}-${ou(c||"Root")}`);let w=$o;c==="Root"||c==="root"?w=n:c?w=o:Av(a)&&(w=void 0);const E=(0,nu.default)(a,(0,ot.default)({shouldForwardProp:w,label:y},m)),_=b=>typeof b=="function"&&b.__emotion_real!==b||(0,Tv.isPlainObject)(b)?C=>Lo(b,(0,ot.default)({},C,{theme:Eo({theme:C.theme,defaultTheme:r,themeId:t})})):b,x=(b,...C)=>{let S=_(b);const O=C?C.map(_):[];l&&d&&O.push(R=>{const T=Eo((0,ot.default)({},R,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[l]||!T.components[l].styleOverrides)return null;const I=T.components[l].styleOverrides,A={};return Object.entries(I).forEach(([P,N])=>{A[P]=Lo(N,(0,ot.default)({},R,{theme:T}))}),d(R,A)}),l&&!g&&O.push(R=>{var T;const I=Eo((0,ot.default)({},R,{defaultTheme:r,themeId:t})),A=I==null||(T=I.components)==null||(T=T[l])==null?void 0:T.variants;return Lo({variants:A},(0,ot.default)({},R,{theme:I}))}),v||O.push(i);const M=O.length-C.length;if(Array.isArray(b)&&M>0){const R=new Array(M).fill("");S=[...b,...R],S.raw=[...b.raw,...R]}const D=E(S,...O);if(process.env.NODE_ENV!=="production"){let R;l&&(R=`${l}${(0,Ev.default)(c||"")}`),R===void 0&&(R=`Styled(${(0,Sv.default)(a)})`),D.displayName=R}return a.muiName&&(D.muiName=a.muiName),D};return E.withConfig&&(x.withConfig=E.withConfig),x}}function Uo(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Rr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jd(e){if(!Rr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Jd(e[r])}),t}function Nr(e,t,r={clone:!0}){const n=r.clone?u._extends({},e):e;return Rr(e)&&Rr(t)&&Object.keys(t).forEach(o=>{Rr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Rr(e[o])?n[o]=Nr(e[o],t[o],r):r.clone?n[o]=Rr(t[o])?Jd(t[o]):t[o]:n[o]=t[o]}),n}const iu=e=>e,Fv=()=>{let e=iu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=iu}}},Hv=Fv(),Bv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function we(e,t,r="Mui"){const n=Bv[t];return n?`${r}-${n}`:`${Hv.generate(e)}-${t}`}function jv(e,t){return u._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ae={};const zv=u.getAugmentedNamespace(yg);function Wv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Vv=Object.freeze(Object.defineProperty({__proto__:null,default:Wv},Symbol.toStringTag,{value:"Module"})),Uv=u.getAugmentedNamespace(Vv);var ef=u.interopRequireDefaultExports;Object.defineProperty(Ae,"__esModule",{value:!0});var Pe=Ae.alpha=sf;Ae.blend=t1;Ae.colorChannel=void 0;var tf=Ae.darken=Ss;Ae.decomposeColor=dt;var au=Ae.emphasize=lf,su=Ae.getContrastRatio=Kv;Ae.getLuminance=qo;Ae.hexToRgb=nf;Ae.hslToRgb=af;var rf=Ae.lighten=Rs;Ae.private_safeAlpha=Qv;Ae.private_safeColorChannel=void 0;Ae.private_safeDarken=Zv;Ae.private_safeEmphasize=e1;Ae.private_safeLighten=Jv;Ae.recomposeColor=Vr;Ae.rgbToHex=Xv;var lu=ef(zv),qv=ef(Uv);function Es(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,qv.default)(e,t,r)}function nf(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Gv(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function dt(e){if(e.type)return e;if(e.charAt(0)==="#")return dt(nf(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
51
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,lu.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
52
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,lu.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const of=e=>{const t=dt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Ae.colorChannel=of;const Yv=(e,t)=>{try{return of(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};Ae.private_safeColorChannel=Yv;function Vr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Xv(e){if(e.indexOf("#")===0)return e;const{values:t}=dt(e);return`#${t.map((r,n)=>Gv(n===3?Math.round(255*r):r)).join("")}`}function af(e){e=dt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,p=(c+r/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Vr({type:s,values:l})}function qo(e){e=dt(e);let t=e.type==="hsl"||e.type==="hsla"?dt(af(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:Qe((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Kv(e,t){const r=qo(e),n=qo(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function sf(e,t){return e=dt(e),t=Es(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vr(e)}function Qv(e,t,r){try{return sf(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ss(e,t){if(e=dt(e),t=Es(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Vr(e)}function Zv(e,t,r){try{return Ss(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Rs(e,t){if(e=dt(e),t=Es(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Vr(e)}function Jv(e,t,r){try{return Rs(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function lf(e,t=.15){return qo(e)>.5?Ss(e,t):Rs(e,t)}function e1(e,t,r){try{return lf(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function t1(e,t,r,n=1){const o=(l,c)=>Math.round(Qe(Qe(l,1/n)*(1-r)+Qe(c,1/n)*r,n)),i=dt(e),a=dt(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Vr({type:"rgb",values:s})}const $n={black:"#000",white:"#fff"},r1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},_r={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},xr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},pn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Cr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Tr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},n1=["mode","contrastThreshold","tonalOffset"],uu={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$n.white,default:$n.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ia={text:{primary:$n.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$n.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cu(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=rf(e.main,o):t==="dark"&&(e.dark=tf(e.main,i)))}function o1(e="light"){return e==="dark"?{main:wr[200],light:wr[50],dark:wr[400]}:{main:wr[700],light:wr[400],dark:wr[800]}}function i1(e="light"){return e==="dark"?{main:_r[200],light:_r[50],dark:_r[400]}:{main:_r[500],light:_r[300],dark:_r[700]}}function a1(e="light"){return e==="dark"?{main:xr[500],light:xr[300],dark:xr[700]}:{main:xr[700],light:xr[400],dark:xr[800]}}function s1(e="light"){return e==="dark"?{main:Cr[400],light:Cr[300],dark:Cr[700]}:{main:Cr[700],light:Cr[500],dark:Cr[900]}}function l1(e="light"){return e==="dark"?{main:Tr[400],light:Tr[300],dark:Tr[700]}:{main:Tr[800],light:Tr[500],dark:Tr[900]}}function u1(e="light"){return e==="dark"?{main:pn[400],light:pn[300],dark:pn[700]}:{main:"#ed6c02",light:pn[500],dark:pn[900]}}function c1(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ae(e,n1),i=e.primary||o1(t),a=e.secondary||i1(t),s=e.error||a1(t),l=e.info||s1(t),c=e.success||l1(t),p=e.warning||u1(t);function h(v){const y=su(v,ia.text.primary)>=r?ia.text.primary:uu.text.primary;if(process.env.NODE_ENV!=="production"){const w=su(v,y);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${y} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
53
+ `))}return y}const d=({color:v,name:y,mainShade:w=500,lightShade:E=300,darkShade:_=700})=>{if(v=u._extends({},v),!v.main&&v[w]&&(v.main=v[w]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
54
+ The color object needs to have a \`main\` property or a \`${w}\` property.`:Uo(11,y?` (${y})`:"",w));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
55
+ \`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
56
+
57
+ Did you intend to use one of the following approaches?
58
+
59
+ import { green } from "@mui/material/colors";
60
+
61
+ const theme1 = createTheme({ palette: {
62
+ primary: green,
63
+ } });
64
+
65
+ const theme2 = createTheme({ palette: {
66
+ primary: { main: green[500] },
67
+ } });`:Uo(12,y?` (${y})`:"",JSON.stringify(v.main)));return cu(v,"light",E,n),cu(v,"dark",_,n),v.contrastText||(v.contrastText=h(v.main)),v},m={dark:ia,light:uu};return process.env.NODE_ENV!=="production"&&(m[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Nr(u._extends({common:u._extends({},$n),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:p,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:r1,contrastThreshold:r,getContrastText:h,augmentColor:d,tonalOffset:n},m[t]),o)}const d1=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function f1(e){return Math.round(e*1e5)/1e5}const du={textTransform:"uppercase"},fu='"Roboto", "Helvetica", "Arial", sans-serif';function p1(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=fu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:p,pxToRem:h}=r,d=ae(r,d1);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=o/14,g=h||(w=>`${w/c*m}rem`),v=(w,E,_,x,b)=>u._extends({fontFamily:n,fontWeight:w,fontSize:g(E),lineHeight:_},n===fu?{letterSpacing:`${f1(x/E)}em`}:{},b,p),y={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,du),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,du),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nr(u._extends({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},y),d,{clone:!1})}const h1=.2,m1=.14,g1=.12;function Ee(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${h1})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${m1})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${g1})`].join(",")}const v1=["none",Ee(0,2,1,-1,0,1,1,0,0,1,3,0),Ee(0,3,1,-2,0,2,2,0,0,1,5,0),Ee(0,3,3,-2,0,3,4,0,0,1,8,0),Ee(0,2,4,-1,0,4,5,0,0,1,10,0),Ee(0,3,5,-1,0,5,8,0,0,1,14,0),Ee(0,3,5,-1,0,6,10,0,0,1,18,0),Ee(0,4,5,-2,0,7,10,1,0,2,16,1),Ee(0,5,5,-3,0,8,10,1,0,3,14,2),Ee(0,5,6,-3,0,9,12,1,0,3,16,2),Ee(0,6,6,-3,0,10,14,1,0,4,18,3),Ee(0,6,7,-4,0,11,15,1,0,4,20,3),Ee(0,7,8,-4,0,12,17,2,0,5,22,4),Ee(0,7,8,-4,0,13,19,2,0,5,24,4),Ee(0,7,9,-4,0,14,21,2,0,5,26,4),Ee(0,8,9,-5,0,15,22,2,0,6,28,5),Ee(0,8,10,-5,0,16,24,2,0,6,30,5),Ee(0,8,11,-5,0,17,26,2,0,6,32,5),Ee(0,9,11,-5,0,18,28,2,0,7,34,6),Ee(0,9,12,-6,0,19,29,2,0,7,36,6),Ee(0,10,13,-6,0,20,31,3,0,8,38,7),Ee(0,10,13,-6,0,21,33,3,0,8,40,7),Ee(0,10,14,-6,0,22,35,3,0,8,42,7),Ee(0,11,14,-7,0,23,36,3,0,9,44,8),Ee(0,11,15,-7,0,24,38,3,0,9,46,8)],y1=["duration","easing","delay"],b1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},uf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pu(e){return`${Math.round(e)}ms`}function _1(e){if(!e)return 0;const t=e/36;return Math.round((4+15*Qe(t,.25)+t/5)*10)}function x1(e){const t=u._extends({},b1,e.easing),r=u._extends({},uf,e.duration),n=(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=i,c=ae(i,y1);if(process.env.NODE_ENV!=="production"){const p=d=>typeof d=="string",h=d=>!isNaN(parseFloat(d));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(s)||console.error('MUI: Argument "easing" must be a string.'),!h(l)&&!p(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
68
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:pu(a)} ${s} ${typeof l=="string"?l:pu(l)}`).join(",")};return u._extends({getAutoHeightDuration:_1,create:n},e,{easing:t,duration:r})}const w1={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},C1=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function T1(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=ae(e,C1);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Uo(18));const s=c1(n),l=yi(e);let c=Nr(l,{mixins:jv(l.breakpoints,r),palette:s,shadows:v1.slice(),typography:p1(s,i),transitions:x1(o),zIndex:u._extends({},w1)});if(c=Nr(c,a),c=t.reduce((p,h)=>Nr(p,h),c),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(d,m)=>{let g;for(g in d){const v=d[g];if(p.indexOf(g)!==-1&&Object.keys(v).length>0){if(process.env.NODE_ENV!=="production"){const y=we("",g);console.error([`MUI: The \`${m}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:v}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
69
+ `))}d[g]={}}}};Object.keys(c.components).forEach(d=>{const m=c.components[d].styleOverrides;m&&d.indexOf("Mui")===0&&h(m,d)})}return c.unstable_sxConfig=u._extends({},Kn,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(h){return Qn({sx:h,theme:this})},c}const cf=T1(),df="$$material";function E1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zn=e=>E1(e)&&e!=="classes",le=Cv({themeId:df,defaultTheme:cf,rootShouldForwardProp:Zn});function Go(e,t){const r=u._extends({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=u._extends({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=u._extends({},i),Object.keys(o).forEach(a=>{r[n][a]=Go(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const S1=z.createContext(void 0);function R1(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Go(o.defaultProps,n):!o.styleOverrides&&!o.variants?Go(o,n):n}function O1({props:e,name:t}){const r=z.useContext(S1);return R1({props:e,name:t,theme:{components:r}})}function Re(e){return O1(e)}const Ln=z.createContext({});process.env.NODE_ENV!=="production"&&(Ln.displayName="ListContext");function Ce(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=we(e,o,r)}),n}function M1(e){return we("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const P1=["children","className","component","dense","disablePadding","subheader"],D1=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return De({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},M1,t)},k1=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>u._extends({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Os=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,p=ae(n,P1),h=z.useMemo(()=>({dense:s}),[s]),d=u._extends({},n,{component:a,dense:s,disablePadding:l}),m=D1(d);return te.jsx(Ln.Provider,{value:h,children:te.jsxs(k1,u._extends({as:a,className:se(m.root,i),ref:r,ownerState:d},p,{children:[c,o]}))})});process.env.NODE_ENV!=="production"&&(Os.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,dense:f.bool,disablePadding:f.bool,subheader:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function ff(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Ut=typeof window!="undefined"?z.useLayoutEffect:z.useEffect,I1=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function aa(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function hu(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function pf(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function hn(e,t,r,n,o,i){let a=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!pf(s,i)||l)s=o(e,s,r);else return s.focus(),!0}return!1}const Ms=z.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:p,variant:h="selectedMenu"}=t,d=ae(t,I1),m=z.useRef(null),g=z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ut(()=>{o&&m.current.focus()},[o]),z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:x})=>{const b=!m.current.style.width;if(_.clientHeight<m.current.clientHeight&&b){const C=`${ff(We(_))}px`;m.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=C,m.current.style.width=`calc(100% + ${C})`}return m.current}}),[]);const v=_=>{const x=m.current,b=_.key,C=We(x).activeElement;if(b==="ArrowDown")_.preventDefault(),hn(x,C,c,l,aa);else if(b==="ArrowUp")_.preventDefault(),hn(x,C,c,l,hu);else if(b==="Home")_.preventDefault(),hn(x,null,c,l,aa);else if(b==="End")_.preventDefault(),hn(x,null,c,l,hu);else if(b.length===1){const S=g.current,O=b.toLowerCase(),M=performance.now();S.keys.length>0&&(M-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&O!==S.keys[0]&&(S.repeating=!1)),S.lastTime=M,S.keys.push(O);const D=C&&!S.repeating&&pf(C,S);S.previousKeyMatched&&(D||hn(x,C,!1,l,aa,S))?_.preventDefault():S.previousKeyMatched=!1}p&&p(_)},y=Ve(m,r);let w=-1;z.Children.forEach(a,(_,x)=>{if(!z.isValidElement(_)){w===x&&(w+=1,w>=a.length&&(w=-1));return}process.env.NODE_ENV!=="production"&&Nn.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
70
+ `)),_.props.disabled||(h==="selectedMenu"&&_.props.selected||w===-1)&&(w=x),w===x&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const E=z.Children.map(a,(_,x)=>{if(x===w){const b={};return i&&(b.autoFocus=!0),_.props.tabIndex===void 0&&h==="selectedMenu"&&(b.tabIndex=0),z.cloneElement(_,b)}return _});return te.jsx(Os,u._extends({role:"menu",ref:y,className:s,onKeyDown:v,tabIndex:o?0:-1},d,{children:E}))});process.env.NODE_ENV!=="production"&&(Ms.propTypes={autoFocus:f.bool,autoFocusItem:f.bool,children:f.node,className:f.string,disabledItemsFocusable:f.bool,disableListWrap:f.bool,onKeyDown:f.func,variant:f.oneOf(["menu","selectedMenu"])});const Jn=f.oneOfType([f.func,f.object]);function Pt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function A1(e){const{prototype:t={}}=e;return!!t.isReactComponent}function N1(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window=="undefined")return null;let s;return typeof i=="function"&&!A1(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ps=Pt(f.elementType,N1);function $1(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function L1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const F1=Number.isInteger||L1;function hf(e,t,r,n){const o=e[t];if(o==null||!F1(o)){const i=$1(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function mf(e,t,...r){return e[t]===void 0?null:hf(e,t,...r)}function ka(){return null}mf.isRequired=hf;ka.isRequired=ka;const bt=process.env.NODE_ENV==="production"?ka:mf;function H1(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Fn(e){return We(e).defaultView||window}const mu={};function B1(e,t){const r=z.useRef(mu);return r.current===mu&&(r.current=e(t)),r}const j1=[];function z1(e){z.useEffect(e,j1)}class eo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new eo}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function sr(){const e=B1(eo.create).current;return z1(e.disposeEffect),e}function W1(e){const{prototype:t={}}=e;return!!t.isReactComponent}function gf(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window=="undefined")return null;let s;const l=i.type;return typeof l=="function"&&!W1(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const pr=Pt(f.element,gf);pr.isRequired=Pt(f.element.isRequired,gf);function vf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ea(e,t)}const gu={disabled:!1};var V1=process.env.NODE_ENV!=="production"?f.oneOfType([f.number,f.shape({enter:f.number,exit:f.number,appear:f.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&f.oneOfType([f.string,f.shape({enter:f.string,exit:f.string,active:f.string}),f.shape({enter:f.string,enterDone:f.string,enterActive:f.string,exit:f.string,exitDone:f.string,exitActive:f.string})]);const Yo=F.createContext(null);var Cn="unmounted",or="exited",ir="entering",Or="entered",Ia="exiting",gt=function(e){vf(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=or,i.appearStatus=ir):l=Or:n.unmountOnExit||n.mountOnEnter?l=Cn:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Cn?{status:or}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ir&&a!==Or&&(i=ir):(a===ir||a===Or)&&(i=Ia)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===ir?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:kr.findDOMNode(this)),this.performEnter(o)):this.performExit()):this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Cn})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[kr.findDOMNode(this),s],c=l[0],p=l[1],h=this.getTimeouts(),d=s?h.appear:h.enter;if(!o&&!a||gu.disabled){this.safeSetState({status:Or},function(){i.props.onEntered(c)});return}this.props.onEnter(c,p),this.safeSetState({status:ir},function(){i.props.onEntering(c,p),i.onTransitionEnd(d,function(){i.safeSetState({status:Or},function(){i.props.onEntered(c,p)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:kr.findDOMNode(this);if(!i||gu.disabled){this.safeSetState({status:or},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ia},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:kr.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],p=l[1];this.props.addEndListener(c,p)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Cn)return null;var i=this.props,a=i.children,s=ae(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.createElement(Yo.Provider,{value:null},typeof a=="function"?a(o,s):F.cloneElement(F.Children.only(a),s))},t}(F.Component);gt.contextType=Yo;gt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:f.shape({current:typeof Element=="undefined"?f.any:function(e,t,r,n,o,i){var a=e[t];return f.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:f.oneOfType([f.func.isRequired,f.element.isRequired]).isRequired,in:f.bool,mountOnEnter:f.bool,unmountOnExit:f.bool,appear:f.bool,enter:f.bool,exit:f.bool,timeout:function(t){var r=V1;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:f.func,onEnter:f.func,onEntering:f.func,onEntered:f.func,onExit:f.func,onExiting:f.func,onExited:f.func}:{};function Er(){}gt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Er,onEntering:Er,onEntered:Er,onExit:Er,onExiting:Er,onExited:Er};gt.UNMOUNTED=Cn;gt.EXITED=or;gt.ENTERING=ir;gt.ENTERED=Or;gt.EXITING=Ia;function Ds(e,t){var r=function(i){return t&&F.isValidElement(i)?t(i):i},n=Object.create(null);return e&&F.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function U1(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];s[n[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<o.length;a++)s[o[a]]=r(o[a]);return s}function lr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function q1(e,t){return Ds(e.children,function(r){return F.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:lr(r,"appear",e),enter:lr(r,"enter",e),exit:lr(r,"exit",e)})})}function G1(e,t,r){var n=Ds(e.children),o=U1(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(F.isValidElement(a)){var s=i in t,l=i in n,c=t[i],p=F.isValidElement(c)&&!c.props.in;l&&(!s||p)?o[i]=F.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:lr(a,"exit",e),enter:lr(a,"enter",e)}):!l&&s&&!p?o[i]=F.cloneElement(a,{in:!1}):l&&s&&F.isValidElement(c)&&(o[i]=F.cloneElement(a,{onExited:r.bind(null,a),in:c.props.in,exit:lr(a,"exit",e),enter:lr(a,"enter",e)}))}}),o}var Y1=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},X1={component:"div",childFactory:function(t){return t}},ks=function(e){vf(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(Dm(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?q1(o,s):G1(o,a,s),firstRender:!1}},r.handleExited=function(o,i){var a=Ds(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var l=u._extends({},s.children);return delete l[o.key],{children:l}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=ae(o,["component","childFactory"]),l=this.state.contextValue,c=Y1(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?F.createElement(Yo.Provider,{value:l},c):F.createElement(Yo.Provider,{value:l},F.createElement(i,s,c))},t}(F.Component);ks.propTypes=process.env.NODE_ENV!=="production"?{component:f.any,children:f.node,appear:f.bool,enter:f.bool,exit:f.bool,childFactory:f.func}:{};ks.defaultProps=X1;function K1(e){return Object.keys(e).length===0}function Q1(e=null){const t=z.useContext(u.ThemeContext$1);return!t||K1(t)?e:t}const Z1=yi();function yf(e=Z1){return Q1(e)}function to(){const e=yf(cf);return process.env.NODE_ENV!=="production"&&z.useDebugValue(e),e[df]||e}function Hn(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:(r=a.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const J1=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Aa(e){return`scale(${e}, ${Qe(e,2)})`}const ey={entering:{opacity:1,transform:Aa(1)},entered:{opacity:1,transform:"none"}},sa=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Bn=z.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:p,onExit:h,onExited:d,onExiting:m,style:g,timeout:v="auto",TransitionComponent:y=gt}=t,w=ae(t,J1),E=sr(),_=z.useRef(),x=to(),b=z.useRef(null),C=Ve(b,i.ref,r),S=P=>N=>{if(P){const H=b.current;N===void 0?P(H):P(H,N)}},O=S(p),M=S((P,N)=>{const{duration:H,delay:B,easing:L}=Hn({style:g,timeout:v,easing:a},{mode:"enter"});let k;v==="auto"?(k=x.transitions.getAutoHeightDuration(P.clientHeight),_.current=k):k=H,P.style.transition=[x.transitions.create("opacity",{duration:k,delay:B}),x.transitions.create("transform",{duration:sa?k:k*.666,delay:B,easing:L})].join(","),l&&l(P,N)}),D=S(c),R=S(m),T=S(P=>{const{duration:N,delay:H,easing:B}=Hn({style:g,timeout:v,easing:a},{mode:"exit"});let L;v==="auto"?(L=x.transitions.getAutoHeightDuration(P.clientHeight),_.current=L):L=N,P.style.transition=[x.transitions.create("opacity",{duration:L,delay:H}),x.transitions.create("transform",{duration:sa?L:L*.666,delay:sa?H:H||L*.333,easing:B})].join(","),P.style.opacity=0,P.style.transform=Aa(.75),h&&h(P)}),I=S(d),A=P=>{v==="auto"&&E.start(_.current||0,P),n&&n(b.current,P)};return te.jsx(y,u._extends({appear:o,in:s,nodeRef:b,onEnter:M,onEntered:D,onEntering:O,onExit:T,onExited:I,onExiting:R,addEndListener:A,timeout:v==="auto"?null:v},w,{children:(P,N)=>z.cloneElement(i,u._extends({style:u._extends({opacity:0,transform:Aa(.75),visibility:P==="exited"&&!s?"hidden":void 0},ey[P],g,i.props.style),ref:C},N))}))});process.env.NODE_ENV!=="production"&&(Bn.propTypes={addEndListener:f.func,appear:f.bool,children:pr.isRequired,easing:f.oneOfType([f.shape({enter:f.string,exit:f.string}),f.string]),in:f.bool,onEnter:f.func,onEntered:f.func,onEntering:f.func,onExit:f.func,onExited:f.func,onExiting:f.func,style:f.object,timeout:f.oneOfType([f.oneOf(["auto"]),f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});Bn.muiSupportAuto=!0;const ty="exact-prop: ​";function Is(e){return process.env.NODE_ENV==="production"?e:u._extends({},e,{[ty]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function fe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Uo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Na(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}let vu=0;function ry(e){const[t,r]=z.useState(e),n=e||t;return z.useEffect(()=>{t==null&&(vu+=1,r(`mui-${vu}`))},[t]),n}const yu=z[`useId${Math.random()}`.slice(0,5)];function bf(e){if(yu!==void 0){const t=yu();return e!=null?e:t}return ry(e)}function As({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=z.useRef(e!==void 0),[i,a]=z.useState(t),s=o?e:i;if(process.env.NODE_ENV!=="production"){z.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
71
+ `))},[n,r,e]);const{current:c}=z.useRef(t);z.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
72
+ `))},[JSON.stringify(t)])}const l=z.useCallback(c=>{o||a(c)},[]);return[s,l]}function Rt(e){const t=z.useRef(e);return Ut(()=>{t.current=e}),z.useRef((...r)=>(0,t.current)(...r)).current}let bi=!0,$a=!1;const ny=new eo,oy={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function iy(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&oy[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ay(e){e.metaKey||e.altKey||e.ctrlKey||(bi=!0)}function la(){bi=!1}function sy(){this.visibilityState==="hidden"&&$a&&(bi=!0)}function ly(e){e.addEventListener("keydown",ay,!0),e.addEventListener("mousedown",la,!0),e.addEventListener("pointerdown",la,!0),e.addEventListener("touchstart",la,!0),e.addEventListener("visibilitychange",sy,!0)}function uy(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return bi||iy(t)}function _f(){const e=z.useCallback(o=>{o!=null&&ly(o.ownerDocument)},[]),t=z.useRef(!1);function r(){return t.current?($a=!0,ny.start(100,()=>{$a=!1}),t.current=!1,!0):!1}function n(o){return uy(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function xf(e,t){const r=u._extends({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=u._extends({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=u._extends({},i),Object.keys(o).forEach(a=>{r[n][a]=xf(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function cy(e){const t=We(e);return t.body===e?Fn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bu(e){return parseInt(Fn(e).getComputedStyle(e).paddingRight,10)||0}function dy(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function _u(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!dy(a);s&&l&&Mn(a,o)})}function ua(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function fy(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(cy(n)){const a=ff(We(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${bu(n)+a}px`;const s=We(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${bu(l)+a}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=We(n).body;else{const a=n.parentElement,s=Fn(n);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function py(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class hy{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Mn(t.modalRef,!1);const o=py(r);_u(r,t.mount,t.modalRef,o,!0);const i=ua(this.containers,a=>a.container===r);return i!==-1?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=ua(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=fy(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=ua(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Mn(t.modalRef,r),_u(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Mn(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const my=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gy(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function vy(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function yy(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||vy(e))}function by(e){const t=[],r=[];return Array.from(e.querySelectorAll(my)).forEach((n,o)=>{const i=gy(n);i===-1||!yy(n)||(i===0?t.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function _y(){return!0}function Xo(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=by,isEnabled:a=_y,open:s}=e,l=z.useRef(!1),c=z.useRef(null),p=z.useRef(null),h=z.useRef(null),d=z.useRef(null),m=z.useRef(!1),g=z.useRef(null),v=Ve(t.ref,g),y=z.useRef(null);z.useEffect(()=>{!s||!g.current||(m.current=!r)},[r,s]),z.useEffect(()=>{if(!s||!g.current)return;const _=We(g.current);return g.current.contains(_.activeElement)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
73
+ `)),g.current.setAttribute("tabIndex","-1")),m.current&&g.current.focus()),()=>{o||(h.current&&h.current.focus&&(l.current=!0,h.current.focus()),h.current=null)}},[s]),z.useEffect(()=>{if(!s||!g.current)return;const _=We(g.current),x=S=>{y.current=S,!(n||!a()||S.key!=="Tab")&&_.activeElement===g.current&&S.shiftKey&&(l.current=!0,p.current&&p.current.focus())},b=()=>{const S=g.current;if(S===null)return;if(!_.hasFocus()||!a()||l.current){l.current=!1;return}if(S.contains(_.activeElement)||n&&_.activeElement!==c.current&&_.activeElement!==p.current)return;if(_.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!m.current)return;let O=[];if((_.activeElement===c.current||_.activeElement===p.current)&&(O=i(g.current)),O.length>0){var M,D;const R=!!((M=y.current)!=null&&M.shiftKey&&((D=y.current)==null?void 0:D.key)==="Tab"),T=O[0],I=O[O.length-1];typeof T!="string"&&typeof I!="string"&&(R?I.focus():T.focus())}else S.focus()};_.addEventListener("focusin",b),_.addEventListener("keydown",x,!0);const C=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(C),_.removeEventListener("focusin",b),_.removeEventListener("keydown",x,!0)}},[r,n,o,a,s,i]);const w=_=>{h.current===null&&(h.current=_.relatedTarget),m.current=!0,d.current=_.target;const x=t.props.onFocus;x&&x(_)},E=_=>{h.current===null&&(h.current=_.relatedTarget),m.current=!0};return te.jsxs(z.Fragment,{children:[te.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:c,"data-testid":"sentinelStart"}),z.cloneElement(t,{ref:v,onFocus:w}),te.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Xo.propTypes={children:pr,disableAutoFocus:f.bool,disableEnforceFocus:f.bool,disableRestoreFocus:f.bool,getTabbable:f.func,isEnabled:f.func,open:f.bool.isRequired});process.env.NODE_ENV!=="production"&&(Xo.propTypes=Is(Xo.propTypes));function xy(e){return typeof e=="function"?e():e}const jn=z.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[a,s]=z.useState(null),l=Ve(z.isValidElement(n)?n.ref:null,r);if(Ut(()=>{i||s(xy(o)||document.body)},[o,i]),Ut(()=>{if(a&&!i)return Ma(r,a),()=>{Ma(r,null)}},[r,a,i]),i){if(z.isValidElement(n)){const c={ref:l};return z.cloneElement(n,c)}return te.jsx(z.Fragment,{children:n})}return te.jsx(z.Fragment,{children:a&&um.createPortal(n,a)})});process.env.NODE_ENV!=="production"&&(jn.propTypes={children:f.node,container:f.oneOfType([Ot,f.func]),disablePortal:f.bool});process.env.NODE_ENV!=="production"&&(jn.propTypes=Is(jn.propTypes));const wy=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cy={entering:{opacity:1},entered:{opacity:1}},Ns=z.forwardRef(function(t,r){const n=to(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:p,onEntered:h,onEntering:d,onExit:m,onExited:g,onExiting:v,style:y,timeout:w=o,TransitionComponent:E=gt}=t,_=ae(t,wy),x=z.useRef(null),b=Ve(x,s.ref,r),C=A=>P=>{if(A){const N=x.current;P===void 0?A(N):A(N,P)}},S=C(d),O=C((A,P)=>{const N=Hn({style:y,timeout:w,easing:l},{mode:"enter"});A.style.webkitTransition=n.transitions.create("opacity",N),A.style.transition=n.transitions.create("opacity",N),p&&p(A,P)}),M=C(h),D=C(v),R=C(A=>{const P=Hn({style:y,timeout:w,easing:l},{mode:"exit"});A.style.webkitTransition=n.transitions.create("opacity",P),A.style.transition=n.transitions.create("opacity",P),m&&m(A)}),T=C(g),I=A=>{i&&i(x.current,A)};return te.jsx(E,u._extends({appear:a,in:c,nodeRef:x,onEnter:O,onEntered:M,onEntering:S,onExit:R,onExited:T,onExiting:D,addEndListener:I,timeout:w},_,{children:(A,P)=>z.cloneElement(s,u._extends({style:u._extends({opacity:0,visibility:A==="exited"&&!c?"hidden":void 0},Cy[A],y,s.props.style),ref:b},P))}))});process.env.NODE_ENV!=="production"&&(Ns.propTypes={addEndListener:f.func,appear:f.bool,children:pr.isRequired,easing:f.oneOfType([f.shape({enter:f.string,exit:f.string}),f.string]),in:f.bool,onEnter:f.func,onEntered:f.func,onEntering:f.func,onExit:f.func,onExited:f.func,onExiting:f.func,style:f.object,timeout:f.oneOfType([f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});function Ty(e){return we("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const Ey=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Sy=e=>{const{classes:t,invisible:r}=e;return De({root:["root",r&&"invisible"]},Ty,t)},Ry=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>u._extends({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),$s=z.forwardRef(function(t,r){var n,o,i;const a=Re({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:p={},componentsProps:h={},invisible:d=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:y=Ns,transitionDuration:w}=a,E=ae(a,Ey),_=u._extends({},a,{component:c,invisible:d}),x=Sy(_),b=(n=g.root)!=null?n:h.root;return te.jsx(y,u._extends({in:m,timeout:w},E,{children:te.jsx(Ry,u._extends({"aria-hidden":!0},b,{as:(o=(i=v.root)!=null?i:p.Root)!=null?o:c,className:se(x.root,l,b==null?void 0:b.className),ownerState:u._extends({},_,b==null?void 0:b.ownerState),classes:x,ref:r,children:s}))}))});process.env.NODE_ENV!=="production"&&($s.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,components:f.shape({Root:f.elementType}),componentsProps:f.shape({root:f.object}),invisible:f.bool,open:f.bool.isRequired,slotProps:f.shape({root:f.object}),slots:f.shape({root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),TransitionComponent:f.elementType,transitionDuration:f.oneOfType([f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})])});function Oy(e){return typeof e=="function"?e():e}function My(e){return e?e.props.hasOwnProperty("in"):!1}const Py=new hy;function Dy(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Py,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:p,rootRef:h}=e,d=z.useRef({}),m=z.useRef(null),g=z.useRef(null),v=Ve(g,h),[y,w]=z.useState(!p),E=My(l);let _=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(_=!1);const x=()=>We(m.current),b=()=>(d.current.modalRef=g.current,d.current.mount=m.current,d.current),C=()=>{o.mount(b(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},S=Rt(()=>{const N=Oy(t)||x().body;o.add(b(),N),g.current&&C()}),O=z.useCallback(()=>o.isTopModal(b()),[o]),M=Rt(N=>{m.current=N,N&&(p&&O()?C():g.current&&Mn(g.current,_))}),D=z.useCallback(()=>{o.remove(b(),_)},[_,o]);z.useEffect(()=>()=>{D()},[D]),z.useEffect(()=>{p?S():(!E||!i)&&D()},[p,D,E,i,S]);const R=N=>H=>{var B;(B=N.onKeyDown)==null||B.call(N,H),!(H.key!=="Escape"||H.which===229||!O())&&(r||(H.stopPropagation(),c&&c(H,"escapeKeyDown")))},T=N=>H=>{var B;(B=N.onClick)==null||B.call(N,H),H.target===H.currentTarget&&c&&c(H,"backdropClick")};return{getRootProps:(N={})=>{const H=Nd(e);delete H.onTransitionEnter,delete H.onTransitionExited;const B=u._extends({},H,N);return u._extends({role:"presentation"},B,{onKeyDown:R(B),ref:v})},getBackdropProps:(N={})=>{const H=N;return u._extends({"aria-hidden":!0},H,{onClick:T(H),open:p})},getTransitionProps:()=>{const N=()=>{w(!1),a&&a()},H=()=>{w(!0),s&&s(),i&&D()};return{onEnter:Na(N,l==null?void 0:l.props.onEnter),onExited:Na(H,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:M,isTopModal:O,exited:y,hasTransition:E}}function ky(e){return we("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const Iy=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Ay=e=>{const{open:t,exited:r,classes:n}=e;return De({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ky,n)},Ny=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>u._extends({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),$y=le($s,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ls=z.forwardRef(function(t,r){var n,o,i,a,s,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:p=$y,BackdropProps:h,className:d,closeAfterTransition:m=!1,children:g,container:v,component:y,components:w={},componentsProps:E={},disableAutoFocus:_=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:O=!1,hideBackdrop:M=!1,keepMounted:D=!1,onBackdropClick:R,open:T,slotProps:I,slots:A}=c,P=ae(c,Iy),N=u._extends({},c,{closeAfterTransition:m,disableAutoFocus:_,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:S,disableScrollLock:O,hideBackdrop:M,keepMounted:D}),{getRootProps:H,getBackdropProps:B,getTransitionProps:L,portalRef:k,isTopModal:$,exited:V,hasTransition:j}=Dy(u._extends({},N,{rootRef:r})),W=u._extends({},N,{exited:V}),U=Ay(W),Y={};if(g.props.tabIndex===void 0&&(Y.tabIndex="-1"),j){const{onEnter:ne,onExited:Z}=L();Y.onEnter=ne,Y.onExited=Z}const K=(n=(o=A==null?void 0:A.root)!=null?o:w.Root)!=null?n:Ny,X=(i=(a=A==null?void 0:A.backdrop)!=null?a:w.Backdrop)!=null?i:p,Q=(s=I==null?void 0:I.root)!=null?s:E.root,ee=(l=I==null?void 0:I.backdrop)!=null?l:E.backdrop,re=Vt({elementType:K,externalSlotProps:Q,externalForwardedProps:P,getSlotProps:H,additionalProps:{ref:r,as:y},ownerState:W,className:se(d,Q==null?void 0:Q.className,U==null?void 0:U.root,!W.open&&W.exited&&(U==null?void 0:U.hidden))}),G=Vt({elementType:X,externalSlotProps:ee,additionalProps:h,getSlotProps:ne=>B(u._extends({},ne,{onClick:Z=>{R&&R(Z),ne!=null&&ne.onClick&&ne.onClick(Z)}})),className:se(ee==null?void 0:ee.className,h==null?void 0:h.className,U==null?void 0:U.backdrop),ownerState:W});return!D&&!T&&(!j||V)?null:te.jsx(jn,{ref:k,container:v,disablePortal:C,children:te.jsxs(K,u._extends({},re,{children:[!M&&p?te.jsx(X,u._extends({},G)):null,te.jsx(Xo,{disableEnforceFocus:x,disableAutoFocus:_,disableRestoreFocus:S,isEnabled:$,open:T,children:z.cloneElement(g,Y)})]}))})});process.env.NODE_ENV!=="production"&&(Ls.propTypes={BackdropComponent:f.elementType,BackdropProps:f.object,children:pr.isRequired,classes:f.object,className:f.string,closeAfterTransition:f.bool,component:f.elementType,components:f.shape({Backdrop:f.elementType,Root:f.elementType}),componentsProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),container:f.oneOfType([Ot,f.func]),disableAutoFocus:f.bool,disableEnforceFocus:f.bool,disableEscapeKeyDown:f.bool,disablePortal:f.bool,disableRestoreFocus:f.bool,disableScrollLock:f.bool,hideBackdrop:f.bool,keepMounted:f.bool,onBackdropClick:f.func,onClose:f.func,onTransitionEnter:f.func,onTransitionExited:f.func,open:f.bool.isRequired,slotProps:f.shape({backdrop:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({backdrop:f.elementType,root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const xu=e=>{let t;return e<1?t=5.11916*Qe(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ly(e){return we("MuiPaper",e)}Ce("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Fy=["className","component","elevation","square","variant"],Hy=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return De(i,Ly,o)},By=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return u._extends({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&u._extends({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Pe("#fff",xu(t.elevation))}, ${Pe("#fff",xu(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),_i=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=n,c=ae(n,Fy),p=u._extends({},n,{component:i,elevation:a,square:s,variant:l}),h=Hy(p);return process.env.NODE_ENV!=="production"&&to().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
74
+ `)),te.jsx(By,u._extends({as:i,ownerState:p,className:se(h.root,o),ref:r},c))});process.env.NODE_ENV!=="production"&&(_i.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,elevation:Pt(bt,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["elevation","outlined"]),f.string])});function jy(e){return we("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);const zy=["onEntering"],Wy=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vy=["slotProps"];function wu(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Cu(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Tu(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Fo(e){return typeof e=="function"?e():e}const Uy=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"]},jy,t)},qy=le(Ls,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wf=le(_i,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),xi=z.forwardRef(function(t,r){var n,o,i;const a=Re({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:h="anchorEl",children:d,className:m,container:g,elevation:v=8,marginThreshold:y=16,open:w,PaperProps:E={},slots:_,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:C=Bn,transitionDuration:S="auto",TransitionProps:{onEntering:O}={},disableScrollLock:M=!1}=a,D=ae(a.TransitionProps,zy),R=ae(a,Wy),T=(n=x==null?void 0:x.paper)!=null?n:E,I=z.useRef(),A=Ve(I,T.ref),P=u._extends({},a,{anchorOrigin:c,anchorReference:h,elevation:v,marginThreshold:y,externalPaperSlotProps:T,transformOrigin:b,TransitionComponent:C,transitionDuration:S,TransitionProps:D}),N=Uy(P),H=z.useCallback(()=>{if(h==="anchorPosition")return process.env.NODE_ENV!=="production"&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),p;const ne=Fo(l),Z=ne&&ne.nodeType===1?ne:We(I.current).body,oe=Z.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const de=Z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&de.top===0&&de.left===0&&de.right===0&&de.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
75
+ `))}return{top:oe.top+wu(oe,c.vertical),left:oe.left+Cu(oe,c.horizontal)}},[l,c.horizontal,c.vertical,p,h]),B=z.useCallback(ne=>({vertical:wu(ne,b.vertical),horizontal:Cu(ne,b.horizontal)}),[b.horizontal,b.vertical]),L=z.useCallback(ne=>{const Z={width:ne.offsetWidth,height:ne.offsetHeight},oe=B(Z);if(h==="none")return{top:null,left:null,transformOrigin:Tu(oe)};const de=H();let pe=de.top-oe.vertical,ce=de.left-oe.horizontal;const Ne=pe+Z.height,Te=ce+Z.width,$e=Fn(Fo(l)),Le=$e.innerHeight-y,ye=$e.innerWidth-y;if(y!==null&&pe<y){const be=pe-y;pe-=be,oe.vertical+=be}else if(y!==null&&Ne>Le){const be=Ne-Le;pe-=be,oe.vertical+=be}if(process.env.NODE_ENV!=="production"&&Z.height>Le&&Z.height&&Le&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${Z.height-Le}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
76
+ `)),y!==null&&ce<y){const be=ce-y;ce-=be,oe.horizontal+=be}else if(Te>ye){const be=Te-ye;ce-=be,oe.horizontal+=be}return{top:`${Math.round(pe)}px`,left:`${Math.round(ce)}px`,transformOrigin:Tu(oe)}},[l,h,H,B,y]),[k,$]=z.useState(w),V=z.useCallback(()=>{const ne=I.current;if(!ne)return;const Z=L(ne);Z.top!==null&&(ne.style.top=Z.top),Z.left!==null&&(ne.style.left=Z.left),ne.style.transformOrigin=Z.transformOrigin,$(!0)},[L]);z.useEffect(()=>(M&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[l,M,V]);const j=(ne,Z)=>{O&&O(ne,Z),V()},W=()=>{$(!1)};z.useEffect(()=>{w&&V()}),z.useImperativeHandle(s,()=>w?{updatePosition:()=>{V()}}:null,[w,V]),z.useEffect(()=>{if(!w)return;const ne=H1(()=>{V()}),Z=Fn(l);return Z.addEventListener("resize",ne),()=>{ne.clear(),Z.removeEventListener("resize",ne)}},[l,w,V]);let U=S;S==="auto"&&!C.muiSupportAuto&&(U=void 0);const Y=g||(l?We(Fo(l)).body:void 0),K=(o=_==null?void 0:_.root)!=null?o:qy,X=(i=_==null?void 0:_.paper)!=null?i:wf,Q=Vt({elementType:X,externalSlotProps:u._extends({},T,{style:k?T.style:u._extends({},T.style,{opacity:0})}),additionalProps:{elevation:v,ref:A},ownerState:P,className:se(N.paper,T==null?void 0:T.className)}),ee=Vt({elementType:K,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:R,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Y,open:w},ownerState:P,className:se(N.root,m)}),{slotProps:re}=ee,G=ae(ee,Vy);return te.jsx(K,u._extends({},G,!_s(K)&&{slotProps:re,disableScrollLock:M},{children:te.jsx(C,u._extends({appear:!0,in:w,onEntering:j,onExited:W,timeout:U},D,{children:te.jsx(X,u._extends({},Q,{children:d}))}))}))});process.env.NODE_ENV!=="production"&&(xi.propTypes={action:Jn,anchorEl:Pt(f.oneOfType([Ot,f.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Fo(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
77
+ `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
78
+ `))}return null}),anchorOrigin:f.shape({horizontal:f.oneOfType([f.oneOf(["center","left","right"]),f.number]).isRequired,vertical:f.oneOfType([f.oneOf(["bottom","center","top"]),f.number]).isRequired}),anchorPosition:f.shape({left:f.number.isRequired,top:f.number.isRequired}),anchorReference:f.oneOf(["anchorEl","anchorPosition","none"]),children:f.node,classes:f.object,className:f.string,container:f.oneOfType([Ot,f.func]),disableScrollLock:f.bool,elevation:bt,marginThreshold:f.number,onClose:f.func,open:f.bool.isRequired,PaperProps:f.shape({component:Ps}),slotProps:f.shape({paper:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({paper:f.elementType,root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),transformOrigin:f.shape({horizontal:f.oneOfType([f.oneOf(["center","left","right"]),f.number]).isRequired,vertical:f.oneOfType([f.oneOf(["bottom","center","top"]),f.number]).isRequired}),TransitionComponent:f.elementType,transitionDuration:f.oneOfType([f.oneOf(["auto"]),f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})]),TransitionProps:f.object});function Gy(e){return we("MuiMenu",e)}Ce("MuiMenu",["root","paper","list"]);const Yy=["onEntering"],Xy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ky={vertical:"top",horizontal:"right"},Qy={vertical:"top",horizontal:"left"},Zy=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"],list:["list"]},Gy,t)},Jy=le(xi,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eb=le(wf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tb=le(Ms,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),wi=z.forwardRef(function(t,r){var n,o;const i=Re({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:p={},onClose:h,open:d,PaperProps:m={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:y}={},variant:w="selectedMenu",slots:E={},slotProps:_={}}=i,x=ae(i.TransitionProps,Yy),b=ae(i,Xy),C=bs(),S=u._extends({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:p,onEntering:y,PaperProps:m,transitionDuration:v,TransitionProps:x,variant:w}),O=Zy(S),M=a&&!c&&d,D=z.useRef(null),R=(B,L)=>{D.current&&D.current.adjustStyleForScrollbar(B,{direction:C?"rtl":"ltr"}),y&&y(B,L)},T=B=>{B.key==="Tab"&&(B.preventDefault(),h&&h(B,"tabKeyDown"))};let I=-1;z.Children.map(s,(B,L)=>{z.isValidElement(B)&&(process.env.NODE_ENV!=="production"&&Nn.isFragment(B)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
79
+ `)),B.props.disabled||(w==="selectedMenu"&&B.props.selected||I===-1)&&(I=L))});const A=(n=E.paper)!=null?n:eb,P=(o=_.paper)!=null?o:m,N=Vt({elementType:E.root,externalSlotProps:_.root,ownerState:S,className:[O.root,l]}),H=Vt({elementType:A,externalSlotProps:P,ownerState:S,className:O.paper});return te.jsx(Jy,u._extends({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ky:Qy,slots:{paper:A,root:E.root},slotProps:{root:N,paper:H},open:d,ref:r,transitionDuration:v,TransitionProps:u._extends({onEntering:R},x),ownerState:S},b,{classes:g,children:te.jsx(tb,u._extends({onKeyDown:T,actions:D,autoFocus:a&&(I===-1||c),autoFocusItem:M,variant:w},p,{className:se(O.list,p.className),children:s}))}))});process.env.NODE_ENV!=="production"&&(wi.propTypes={anchorEl:f.oneOfType([Ot,f.func]),autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,disableAutoFocusItem:f.bool,MenuListProps:f.object,onClose:f.func,open:f.bool.isRequired,PaperProps:f.object,PopoverClasses:f.object,slotProps:f.shape({paper:f.oneOfType([f.func,f.object]),root:f.oneOfType([f.func,f.object])}),slots:f.shape({paper:f.elementType,root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),transitionDuration:f.oneOfType([f.oneOf(["auto"]),f.number,f.shape({appear:f.number,enter:f.number,exit:f.number})]),TransitionProps:f.object,variant:f.oneOf(["menu","selectedMenu"])});const rb=({children:e,open:t,position:r,onClose:n})=>{const{themeSettings:o}=u.useThemeContext();return u.jsx(wi,{MenuListProps:{dense:!0,sx:{paddingTop:0,paddingBottom:0,fontFamily:o.typography.fontFamily}},anchorReference:"anchorPosition",anchorPosition:r!=null?r:{left:0,top:0},disableEnforceFocus:!0,disableRestoreFocus:!0,open:t,onClose:n,slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:o.typography.fontFamily}}},children:e})};function Cf(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[p,h]=z.useState(!1),d=se(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=se(r.child,p&&r.childLeaving,n&&r.childPulsate);return!s&&!p&&h(!0),z.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),te.jsx("span",{className:d,style:m,children:te.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Cf.propTypes={classes:f.object.isRequired,className:f.string,in:f.bool,onExited:f.func,pulsate:f.bool,rippleSize:f.number,rippleX:f.number,rippleY:f.number,timeout:f.number.isRequired});const at=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nb=["center","classes","className"];let Ci=e=>e,Eu,Su,Ru,Ou;const La=550,ob=80,ib=u.keyframes(Eu||(Eu=Ci`
80
+ 0% {
81
+ transform: scale(0);
82
+ opacity: 0.1;
83
+ }
84
+
85
+ 100% {
86
+ transform: scale(1);
87
+ opacity: 0.3;
88
+ }
89
+ `)),ab=u.keyframes(Su||(Su=Ci`
90
+ 0% {
91
+ opacity: 1;
92
+ }
93
+
94
+ 100% {
95
+ opacity: 0;
96
+ }
97
+ `)),sb=u.keyframes(Ru||(Ru=Ci`
98
+ 0% {
99
+ transform: scale(1);
100
+ }
101
+
102
+ 50% {
103
+ transform: scale(0.92);
104
+ }
105
+
106
+ 100% {
107
+ transform: scale(1);
108
+ }
109
+ `)),lb=le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ub=le(Cf,{name:"MuiTouchRipple",slot:"Ripple"})(Ou||(Ou=Ci`
110
+ opacity: 0;
111
+ position: absolute;
112
+
113
+ &.${0} {
114
+ opacity: 0.3;
115
+ transform: scale(1);
116
+ animation-name: ${0};
117
+ animation-duration: ${0}ms;
118
+ animation-timing-function: ${0};
119
+ }
120
+
121
+ &.${0} {
122
+ animation-duration: ${0}ms;
123
+ }
124
+
125
+ & .${0} {
126
+ opacity: 1;
127
+ display: block;
128
+ width: 100%;
129
+ height: 100%;
130
+ border-radius: 50%;
131
+ background-color: currentColor;
132
+ }
133
+
134
+ & .${0} {
135
+ opacity: 0;
136
+ animation-name: ${0};
137
+ animation-duration: ${0}ms;
138
+ animation-timing-function: ${0};
139
+ }
140
+
141
+ & .${0} {
142
+ position: absolute;
143
+ /* @noflip */
144
+ left: 0px;
145
+ top: 0;
146
+ animation-name: ${0};
147
+ animation-duration: 2500ms;
148
+ animation-timing-function: ${0};
149
+ animation-iteration-count: infinite;
150
+ animation-delay: 200ms;
151
+ }
152
+ `),at.rippleVisible,ib,La,({theme:e})=>e.transitions.easing.easeInOut,at.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,at.child,at.childLeaving,ab,La,({theme:e})=>e.transitions.easing.easeInOut,at.childPulsate,sb,({theme:e})=>e.transitions.easing.easeInOut),Tf=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=ae(n,nb),[l,c]=z.useState([]),p=z.useRef(0),h=z.useRef(null);z.useEffect(()=>{h.current&&(h.current(),h.current=null)},[l]);const d=z.useRef(!1),m=sr(),g=z.useRef(null),v=z.useRef(null),y=z.useCallback(x=>{const{pulsate:b,rippleX:C,rippleY:S,rippleSize:O,cb:M}=x;c(D=>[...D,te.jsx(ub,{classes:{ripple:se(i.ripple,at.ripple),rippleVisible:se(i.rippleVisible,at.rippleVisible),ripplePulsate:se(i.ripplePulsate,at.ripplePulsate),child:se(i.child,at.child),childLeaving:se(i.childLeaving,at.childLeaving),childPulsate:se(i.childPulsate,at.childPulsate)},timeout:La,pulsate:b,rippleX:C,rippleY:S,rippleSize:O},p.current)]),p.current+=1,h.current=M},[i]),w=z.useCallback((x={},b={},C=()=>{})=>{const{pulsate:S=!1,center:O=o||b.pulsate,fakeElement:M=!1}=b;if((x==null?void 0:x.type)==="mousedown"&&d.current){d.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(d.current=!0);const D=M?null:v.current,R=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,I,A;if(O||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)T=Math.round(R.width/2),I=Math.round(R.height/2);else{const{clientX:P,clientY:N}=x.touches&&x.touches.length>0?x.touches[0]:x;T=Math.round(P-R.left),I=Math.round(N-R.top)}if(O)A=Math.sqrt((2*Qe(R.width,2)+Qe(R.height,2))/3),A%2===0&&(A+=1);else{const P=Math.max(Math.abs((D?D.clientWidth:0)-T),T)*2+2,N=Math.max(Math.abs((D?D.clientHeight:0)-I),I)*2+2;A=Math.sqrt(Qe(P,2)+Qe(N,2))}x!=null&&x.touches?g.current===null&&(g.current=()=>{y({pulsate:S,rippleX:T,rippleY:I,rippleSize:A,cb:C})},m.start(ob,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:S,rippleX:T,rippleY:I,rippleSize:A,cb:C})},[o,y,m]),E=z.useCallback(()=>{w({},{pulsate:!0})},[w]),_=z.useCallback((x,b)=>{if(m.clear(),(x==null?void 0:x.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{_(x,b)});return}g.current=null,c(C=>C.length>0?C.slice(1):C),h.current=b},[m]);return z.useImperativeHandle(r,()=>({pulsate:E,start:w,stop:_}),[E,w,_]),te.jsx(lb,u._extends({className:se(at.root,i.root,a),ref:v},s,{children:te.jsx(ks,{component:null,exit:!0,children:l})}))});process.env.NODE_ENV!=="production"&&(Tf.propTypes={center:f.bool,classes:f.object,className:f.string});function cb(e){return we("MuiButtonBase",e)}const db=Ce("MuiButtonBase",["root","disabled","focusVisible"]),fb=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],pb=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=De({root:["root",t&&"disabled",r&&"focusVisible"]},cb,o);return r&&n&&(a.root+=` ${n}`),a},hb=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${db.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hr=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:d=!1,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:y,onDragLeave:w,onFocus:E,onFocusVisible:_,onKeyDown:x,onKeyUp:b,onMouseDown:C,onMouseLeave:S,onMouseUp:O,onTouchEnd:M,onTouchMove:D,onTouchStart:R,tabIndex:T=0,TouchRippleProps:I,touchRippleRef:A,type:P}=n,N=ae(n,fb),H=z.useRef(null),B=z.useRef(null),L=Ve(B,A),{isFocusVisibleRef:k,onFocus:$,onBlur:V,ref:j}=_f(),[W,U]=z.useState(!1);c&&W&&U(!1),z.useImperativeHandle(o,()=>({focusVisible:()=>{U(!0),H.current.focus()}}),[]);const[Y,K]=z.useState(!1);z.useEffect(()=>{K(!0)},[]);const X=Y&&!p&&!c;z.useEffect(()=>{W&&d&&!p&&Y&&B.current.pulsate()},[p,d,W,Y]);function Q(ie,Be,Qt=h){return Rt(vt=>(Be&&Be(vt),!Qt&&B.current&&B.current[ie](vt),!0))}const ee=Q("start",C),re=Q("stop",y),G=Q("stop",w),ne=Q("stop",O),Z=Q("stop",ie=>{W&&ie.preventDefault(),S&&S(ie)}),oe=Q("start",R),de=Q("stop",M),pe=Q("stop",D),ce=Q("stop",ie=>{V(ie),k.current===!1&&U(!1),g&&g(ie)},!1),Ne=Rt(ie=>{H.current||(H.current=ie.currentTarget),$(ie),k.current===!0&&(U(!0),_&&_(ie)),E&&E(ie)}),Te=()=>{const ie=H.current;return l&&l!=="button"&&!(ie.tagName==="A"&&ie.href)},$e=z.useRef(!1),Le=Rt(ie=>{d&&!$e.current&&W&&B.current&&ie.key===" "&&($e.current=!0,B.current.stop(ie,()=>{B.current.start(ie)})),ie.target===ie.currentTarget&&Te()&&ie.key===" "&&ie.preventDefault(),x&&x(ie),ie.target===ie.currentTarget&&Te()&&ie.key==="Enter"&&!c&&(ie.preventDefault(),v&&v(ie))}),ye=Rt(ie=>{d&&ie.key===" "&&B.current&&W&&!ie.defaultPrevented&&($e.current=!1,B.current.stop(ie,()=>{B.current.pulsate(ie)})),b&&b(ie),v&&ie.target===ie.currentTarget&&Te()&&ie.key===" "&&!ie.defaultPrevented&&v(ie)});let be=l;be==="button"&&(N.href||N.to)&&(be=m);const Ue={};be==="button"?(Ue.type=P===void 0?"button":P,Ue.disabled=c):(!N.href&&!N.to&&(Ue.role="button"),c&&(Ue["aria-disabled"]=c));const He=Ve(r,j,H);process.env.NODE_ENV!=="production"&&z.useEffect(()=>{X&&!B.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
153
+ `))},[X]);const Xe=u._extends({},n,{centerRipple:i,component:l,disabled:c,disableRipple:p,disableTouchRipple:h,focusRipple:d,tabIndex:T,focusVisible:W}),kt=pb(Xe);return te.jsxs(hb,u._extends({as:be,className:se(kt.root,s),ownerState:Xe,onBlur:ce,onClick:v,onContextMenu:re,onFocus:Ne,onKeyDown:Le,onKeyUp:ye,onMouseDown:ee,onMouseLeave:Z,onMouseUp:ne,onDragLeave:G,onTouchEnd:de,onTouchMove:pe,onTouchStart:oe,ref:He,tabIndex:c?-1:T,type:P},Ue,N,{children:[a,X?te.jsx(Tf,u._extends({ref:L,center:i},I)):null]}))});process.env.NODE_ENV!=="production"&&(hr.propTypes={action:Jn,centerRipple:f.bool,children:f.node,classes:f.object,className:f.string,component:Ps,disabled:f.bool,disableRipple:f.bool,disableTouchRipple:f.bool,focusRipple:f.bool,focusVisibleClassName:f.string,href:f.any,LinkComponent:f.elementType,onBlur:f.func,onClick:f.func,onContextMenu:f.func,onDragLeave:f.func,onFocus:f.func,onFocusVisible:f.func,onKeyDown:f.func,onKeyUp:f.func,onMouseDown:f.func,onMouseLeave:f.func,onMouseUp:f.func,onTouchEnd:f.func,onTouchMove:f.func,onTouchStart:f.func,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),tabIndex:f.number,TouchRippleProps:f.object,touchRippleRef:f.oneOfType([f.func,f.shape({current:f.shape({pulsate:f.func.isRequired,start:f.func.isRequired,stop:f.func.isRequired})})]),type:f.oneOfType([f.oneOf(["button","reset","submit"]),f.string])});function mb(e){return we("MuiDivider",e)}const Mu=Ce("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),gb=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],vb=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return De({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},mb,n)},yb=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>u._extends({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Pe(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>u._extends({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>u._extends({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>u._extends({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>u._extends({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),bb=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>u._extends({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),$r=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:p="horizontal",role:h=s!=="hr"?"separator":void 0,textAlign:d="center",variant:m="fullWidth"}=n,g=ae(n,gb),v=u._extends({},n,{absolute:o,component:s,flexItem:l,light:c,orientation:p,role:h,textAlign:d,variant:m}),y=vb(v);return te.jsx(yb,u._extends({as:s,className:se(y.root,a),role:h,ref:r,ownerState:v},g,{children:i?te.jsx(bb,{className:y.wrapper,ownerState:v,children:i}):null}))});$r.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&($r.propTypes={absolute:f.bool,children:f.node,classes:f.object,className:f.string,component:f.elementType,flexItem:f.bool,light:f.bool,orientation:f.oneOf(["horizontal","vertical"]),role:f.string,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),textAlign:f.oneOf(["center","left","right"]),variant:f.oneOfType([f.oneOf(["fullWidth","inset","middle"]),f.string])});const Pu=Ce("MuiListItemIcon",["root","alignItemsFlexStart"]);function _b(e){return we("MuiTypography",e)}Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wb=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return De(s,_b,a)},Cb=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${fe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>u._extends({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Du={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Eb=e=>Tb[e]||e,Ze=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiTypography"}),o=Eb(n.color),i=Ts(u._extends({},n,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:p=!1,paragraph:h=!1,variant:d="body1",variantMapping:m=Du}=i,g=ae(i,xb),v=u._extends({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:p,paragraph:h,variant:d,variantMapping:m}),y=l||(h?"p":m[d]||Du[d])||"span",w=wb(v);return te.jsx(Cb,u._extends({as:y,ref:r,ownerState:v,className:se(w.root,s)},g))});process.env.NODE_ENV!=="production"&&(Ze.propTypes={align:f.oneOf(["center","inherit","justify","left","right"]),children:f.node,classes:f.object,className:f.string,component:f.elementType,gutterBottom:f.bool,noWrap:f.bool,paragraph:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),f.string]),variantMapping:f.object});function Sb(e){return we("MuiListItemText",e)}const Fa=Ce("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Rb(e){return we("MuiMenuItem",e)}const mn=Ce("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ob=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Mb=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Pb=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e,l=De({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Rb,a);return u._extends({},a,l)},Db=le(hr,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Mb})(({theme:e,ownerState:t})=>u._extends({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${mn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Mu.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Mu.inset}`]:{marginLeft:52},[`& .${Fa.root}`]:{marginTop:0,marginBottom:0},[`& .${Fa.inset}`]:{paddingLeft:36},[`& .${Pu.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&u._extends({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Pu.root} svg`]:{fontSize:"1.25rem"}}))),Ti=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:p="menuitem",tabIndex:h,className:d}=n,m=ae(n,Ob),g=z.useContext(Ln),v=z.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),y=z.useRef(null);Ut(()=>{o&&(y.current?y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const w=u._extends({},n,{dense:v.dense,divider:s,disableGutters:l}),E=Pb(n),_=Ve(y,r);let x;return n.disabled||(x=h!==void 0?h:-1),te.jsx(Ln.Provider,{value:v,children:te.jsx(Db,u._extends({ref:_,role:p,tabIndex:x,component:i,focusVisibleClassName:se(E.focusVisible,c),className:se(E.root,d)},m,{ownerState:w,classes:E}))})});process.env.NODE_ENV!=="production"&&(Ti.propTypes={autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,component:f.elementType,dense:f.bool,disabled:f.bool,disableGutters:f.bool,divider:f.bool,focusVisibleClassName:f.string,role:f.string,selected:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),tabIndex:f.number});const kb=({children:e,disabled:t,style:r,className:n="",onClick:o})=>{const{themeSettings:i}=u.useThemeContext();return u.jsx("div",{className:`csdk-menu-item ${n}`,children:u.jsx(Ti,{disabled:t,sx:q({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:i.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"15px",color:u.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:u.DEFAULT_BACKGROUND_COLOR}},r),onClick:o,children:u.jsx("div",{className:"csdk-menu-item-content",children:e})})})};function Ib(e){return we("MuiListSubheader",e)}Ce("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ab=["className","color","component","disableGutters","disableSticky","inset"],Nb=e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:i}=e,a={root:["root",r!=="default"&&`color${fe(r)}`,!n&&"gutters",o&&"inset",!i&&"sticky"]};return De(a,Ib,t)},$b=le("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${fe(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>u._extends({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Fs=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=n,p=ae(n,Ab),h=u._extends({},n,{color:i,component:a,disableGutters:s,disableSticky:l,inset:c}),d=Nb(h);return te.jsx($b,u._extends({as:a,className:se(d.root,o),ref:r,ownerState:h},p))});Fs.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Fs.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOf(["default","inherit","primary"]),component:f.elementType,disableGutters:f.bool,disableSticky:f.bool,inset:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const Lb=({children:e})=>{const{themeSettings:t}=u.useThemeContext();return u.jsx(Fs,{sx:{width:"100%",minWidth:"170px",backgroundColor:"#f2f2f2",borderBottom:"1px solid #e6e6e6",height:"29px",lineHeight:"29px",fontFamily:t.typography.fontFamily,fontSize:"13px",paddingLeft:"15px",paddingRight:"15px",color:u.DEFAULT_TEXT_COLOR},children:e})};function Fb({color:e=u.DEFAULT_TEXT_COLOR}){return u.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",children:u.jsx("path",{fill:e,d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})})}const Hb=({children:e,label:t,allowOpen:r,disabled:n,style:o,className:i=""})=>{const{themeSettings:a}=u.useThemeContext(),s=F.useRef(null),l=F.useRef(null),[c,p]=F.useState(!1),h=F.useCallback(()=>{n||p(!0)},[n]),d=F.useCallback(()=>p(!1),[]),m=F.useCallback(()=>p(!0),[]),g=F.useCallback(()=>p(!1),[]),v=c&&r;return u.jsxs("div",{ref:s,className:`csdk-menu-item ${i}`,children:[u.jsx(Ti,{disabled:n,sx:q({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:a.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"0px",color:u.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:u.DEFAULT_BACKGROUND_COLOR}},o),onMouseEnter:h,onMouseLeave:d,children:u.jsxs("div",{className:"csdk-menu-item-content",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t,u.jsx(Fb,{})]})}),u.jsx(wi,{ref:l,style:{pointerEvents:"none"},anchorEl:s.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:v,autoFocus:!1,disableAutoFocus:!0,disableEnforceFocus:!0,MenuListProps:{sx:{paddingTop:0,paddingBottom:0}},slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:a.typography.fontFamily}}},onClose:()=>{p(!1)},onMouseEnter:m,onMouseLeave:g,children:u.jsx("div",{style:{pointerEvents:"auto"},children:e})})]})},Ef=({position:e,itemSections:t,children:r,closeContextMenu:n})=>{const[o,i]=F.useState(t),a=!!e;F.useEffect(()=>{t&&i(t)},[t]);const s=F.useCallback((l,c)=>{const{sectionTitle:p,items:h=[]}=l;return u.jsxs("div",{className:"csdk-menu-section",children:[p&&u.jsx(Lb,{children:p}),h.map((d,m)=>{const{subItems:g}=d;return g&&g.length?u.jsx(Hb,{label:d.caption,allowOpen:a,style:d.style,className:d.class,children:g.map(s)},m):u.jsx(kb,{disabled:d.disabled,style:d.style,className:d.class,onClick:()=>{var y;n(),(y=d.onClick)==null||y.call(d)},children:d.caption},m)})]},c!=null?c:p)},[n,a]);return u.jsx(u.Fragment,{children:u.jsxs(rb,{position:e!=null?e:null,open:a,onClose:n,children:[o==null?void 0:o.map(s),r]})})},Bb=({children:e,onBeforeMenuOpen:t})=>{const[r,n]=F.useState(null),o=F.useCallback(l=>{const c=t?t(l):l;c&&n(c)},[t]),i=F.useCallback(()=>{n(null)},[]),a=F.useCallback(()=>{var l;(l=r==null?void 0:r.onClose)==null||l.call(r),i()},[i,r]),s=F.useMemo(()=>({openMenu:o,closeMenu:i}),[o,i]);return u.jsxs(vs.Provider,{value:s,children:[u.jsx(Ef,{position:r==null?void 0:r.position,itemSections:r==null?void 0:r.itemSections,closeContextMenu:a}),e]})},jb=({children:e,onBeforeMenuOpen:t})=>{const r=li(),n=F.useCallback(a=>{const s=t?t(a):a;s&&(r==null||r.openMenu(s))},[t,r]),o=F.useCallback(()=>{r==null||r.closeMenu()},[r]),i={openMenu:n,closeMenu:o};return u.jsx(vs.Provider,{value:i,children:e})},Sf=({children:e,onBeforeMenuOpen:t})=>li()?t?u.jsx(jb,{onBeforeMenuOpen:t,children:e}):u.jsx(u.Fragment,{children:e}):u.jsx(Bb,{onBeforeMenuOpen:t,children:e}),zb=({shouldHaveOwnMenuRoot:e}={})=>t=>function(n){const i=!!li();return e&&!i?u.jsx(Sf,{children:u.jsx(t,q({},n))}):u.jsx(t,q({},n))},Wb=e=>t=>(t.displayName=e,t),ro=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:o,shouldHaveOwnMenuRoot:i}=e;return a=>u.flow(Wb(t),Ym({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:o}),zm({componentName:t,config:n}),Gm({componentName:t}),Qm(),zb({shouldHaveOwnMenuRoot:i}))(a)};class no{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,o){t.font=o;let i=this.getStringWidth(t,r);const a="…",s=this.getStringWidth(t,a);if(i<=n)return{string:r,width:i};if(s>=n)return{string:a,width:s};do r=r.slice(0,r.length-1),i=this.getStringWidth(t,r);while(i+s>n);return{string:r+a,width:i+s}}getStringWidth(t,r){return Math.ceil(t.measureText(r).width)}floor(t,r){r=typeof r=="number"?r:0;const n=Math.pow(10,r);return Math.round(t*n)/n}setCanvasSizes(t,r,n,o){const i=window.devicePixelRatio||1;t.width=n*i,t.height=o*i,t.style.width=n+"px",t.style.height=o+"px",r.scale(i,i)}}const Mr=new no,nr=function(e,t){return Mr.floor(e*t.value,t.decimals)};function Vb(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function Ub(e,t,r){const{showTitle:n,showSecondary:o,skin:i,maxHeight:a,maxWidth:s,borderWidth:l}=r;for(let c=0;c<t.length;c++){const p=t[c],h=p.value,d=nr(h,e.valueSectionMarginBottom),g=nr(h,e.indicatorVerticalMargin)*2;let v=h+d+g;if(n&&i==="vertical"){const y=nr(h,e.titleSectionHeight);v+=y}if(o){const y=nr(h,e.secSectionHeight),w=nr(h,e.secSectionMarginTop);v+=y+w+(l||0)}if(v<=a){const y=nr(h,e.numericMinWidth),E=nr(h,e.indicatorHorizontalMargin)*2;if(y+E<=s)return J(q({},p),{maxWidth:s-E,maxHeight:a-g})}}return null}class qb{getBaseMeasure(t,r,n){const o=r,i="sizes"in o?o.sizes:[],a=o.relativeSizes,s=o.measureKeys.concat(),l=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),p=Vb(s,a);return Ub(p,i,{maxWidth:l,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in o?o.borderWidth:0})}render(t,r,n,o){const i=t.getContext("2d");let a;n.height=o.value,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,a=n.height,n.fitValueMeasure=this.getFitValueMeasure(i,r,n),r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(i,r,n),a+=r.skin==="vertical"?n.titleSectionHeight:0),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(i,r,n),a+=n.valueSectionMarginBottom+n.secSectionHeight+n.secSectionMarginTop+n.borderWidth);const s=this.getCanvasWidth(r,n);n.width=s,n.height=a,Mr.setCanvasSizes(t,i,s,a),this.draw(i,r,n)}getFitTitleMeasure(t,r,n){const o=r.skin==="horizontal",i=n.maxWidth-(o?n.fitValueMeasure.width+n.valueSectionMarginRight:0);if(o&&i+n.titleSectionMinWidth<=0)return;const a=Mr.getFitStringMeasure(t,r.title.text,i,n.titleFont);return a.width+=o?n.valueSectionMarginRight:0,a.key="title",a}getFitValueMeasure(t,r,n){const o=Mr.getFitStringMeasure(t,r.value.text,n.maxWidth,n.valueFont);return o.key="value",o}getFitSecondaryMeasure(t,r,n){const o=n.secDividerWidth,i=n.maxWidth-o,a=i-n.secTitleMinWidth,s=Mr.getFitStringMeasure(t,r.secondary.text,a,n.secondaryValueFont),l=i-s.width,c=Mr.getFitStringMeasure(t,r.secondaryTitle.text,l,n.secondaryTitleFont);return{width:c.width+s.width+o,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n;const o=r.fitTitleMeasure,i=r.fitValueMeasure,a=r.fitSecondaryMeasure;if(r.fitMeasures.some(l=>{const c=r[l.key],p=t[l.dataKey];return!!(c&&p&&c[l.prop]!==p.text)}))return r.maxWidth;if(t.skin==="vertical"){let c=o&&o.width>i.width?o:i;c=a&&a.width>c.width?a:c,n=c.width}else n=i.width,o&&(n+=o.width),a&&a.width>n&&(n=a.width);return n}draw(t,r,n){this.clearCanvas(t,n),this.drawValue(t,r,n),r.showTitle&&this.drawTitle(t,r,n),r.showSecondary&&this.drawSecondary(t,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r,n){!n.fitTitleMeasure||r.skin==="horizontal"&&n.fitValueMeasure.string!==r[n.fitValueMeasure.key].text||(t.font=n.titleFont,t.fillStyle=n.titleColor,r.skin==="vertical"?(t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitTitleMeasure.string,n.width/2,n.titleSectionHeight/2)):(t.textAlign="left",t.textBaseline="top",t.fillText(n.fitTitleMeasure.string,n.fitValueMeasure.width+n.valueSectionMarginRight,n.titleSectionMarginTop)))}drawValue(t,r,n){const o=r.skin==="vertical";t.fillStyle=n.valueColor||r.color,t.font=n.valueFont,t.textAlign=o?"center":"left",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,o?n.width/2:0,(r.showTitle&&o?n.titleSectionHeight:0)+n.valueSectionHeight/2)}drawSecondary(t,r){let n=r.height-r.secSectionHeight/2;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="middle",t.fillText(r.fitSecondaryMeasure.titleString,0,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.fillText(r.fitSecondaryMeasure.valueString,r.width,n),t.strokeStyle=r.borderColor,t.beginPath(),n=r.height-r.secSectionHeight-r.secSectionMarginTop-r.borderWidth,t.moveTo(0,n),t.lineTo(r.width,n),t.stroke()}}const Pr=new no,So=function(e,t){return Pr.floor(e*t.value,t.decimals)};function Gb(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function Yb(e,t,r){const{showTitle:n,showSecondary:o,maxHeight:i,maxWidth:a,bracketThickness:s}=r;for(let l=0;l<t.length;l++){const c=t[l],p=c.value,h=So(p,e.indicatorMargin);let d=p+h;if(n){const m=So(p,e.titleSectionHeight);d+=m}if(o){const m=So(p,e.secSectionHeight);d+=m}if(d<=i){const m=So(p,e.numericMinWidth),g=h*2;if(m+s*2+g<=a)return J(q({},c),{maxWidth:a-g,maxHeight:i-h})}}return null}class Xb{getBaseMeasure(t,r,n){const o=r,i="sizes"in o?o.sizes:[],a=o.relativeSizes,s=o.measureKeys.concat(),l=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),p=Gb(s,a);return Yb(p,i,{maxWidth:l,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:o.bracketThickness})}render(t,r,n,o){const i=t.getContext("2d");let a;n.height=o.value,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,n.offsetY=0,a=n.height,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(i,r,n),a+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(i,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(i,r,n),a+=n.secSectionHeight);const s=this.getCanvasWidth(r,n);n.width=s,n.height=a,Pr.setCanvasSizes(t,i,s,a),this.draw(i,r,n)}getFitTitleMeasure(t,r,n){const o=n.bracketWidth*2+n.titleHorizontalMargin*2,i=n.maxWidth-o,a=Pr.getFitStringMeasure(t,r.title.text,i,n.titleFont);return a.width+=o,a.key="title",a}getFitValueMeasure(t,r,n){const o=n.bracketThickness*2,i=n.maxWidth-o,a=Pr.getFitStringMeasure(t,r.value.text,i,n.valueFont);return a.width+=o,a.key="value",a}getFitSecondaryMeasure(t,r,n){const o=n.bracketWidth*2+n.secDividerWidth,i=n.maxWidth-o,a=i-n.secTitleMinWidth,s=Pr.getFitStringMeasure(t,r.secondary.text,a,n.secondaryValueFont),l=i-s.width,c=Pr.getFitStringMeasure(t,r.secondaryTitle.text,l,n.secondaryTitleFont);return{width:c.width+s.width+o,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const o=r.fitTitleMeasure,i=r.fitValueMeasure;let s=o&&o.width>i.width?o:i;const l=r.fitSecondaryMeasure,c=l&&l.width>s.width;let p;return s=c?l:s,c?p=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:p=s.string!==t[s.key].text,p?n=r.maxWidth:s.width>n&&(n=s.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),(r.showTitle||r.showSecondary)&&this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,r.titleSectionHeight/2),r.offsetY+=r.titleSectionHeight}drawValue(t,r,n){const o=n.offsetY;t.fillStyle=n.valueColor,t.fillRect(1,o,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,o+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){t.strokeStyle=n.bracketColor,t.beginPath(),r.showTitle?(t.moveTo(n.bracketWidth+.5,.5),t.lineTo(.5,.5)):t.moveTo(.5,.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),r.showTitle?(t.moveTo(n.width-(n.bracketWidth+.5),.5),t.lineTo(n.width-.5,.5)):t.moveTo(n.width-.5,.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}}const Se=new no,Sr=function(e,t){return Se.floor(e*t.value,t.decimals)};function Kb(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function Qb(e,t,r){const{maxWidth:n,maxHeight:o,showTitle:i,showSecondary:a}=r;for(let s=0;s<t.length;s++){const l=t[s],c=l.value,p=Sr(c,e.valueSectionHeight),h=Sr(c,e.indicatorMargin),d=Math.ceil(h*1.5);let m=c+p+d;if(i){const g=Sr(c,e.titleSectionHeight);m+=g}if(a){const g=Sr(c,e.secSectionHeight);m+=g}if(m<=o){const g=Sr(c,e.gaugeWidth),v=Sr(c,e.bracketWidth),y=h*2;if(g+v*2+y<=n)return J(q({},l),{maxWidth:n-y,maxHeight:o-d})}}return null}class Zb{getBaseMeasure(t,r,n){const o=r,i="gaugeHeights"in o?o.gaugeHeights:void 0;if(!i)return null;const a=o.relativeSizes,s=o.measureKeys.concat(),l=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),p=Kb(s,a);return Qb(p,i,{maxWidth:l,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,o){const i=t.getContext("2d");let a=0,s;n.gaugeHeight=o.value,n.size=o.size,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,n.offsetY=0,s=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(i,r,n),s+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(i,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(i,r,n),s+=n.secSectionHeight),a=this.getCanvasWidth(r,n),n.width=a,n.height=s,Se.setCanvasSizes(t,i,a,s),this.draw(i,r,n)}getFitTitleMeasure(t,r,n){const o=n.bracketWidth*2+n.titleHorizontalMargin*2,i=n.maxWidth-o,a=Se.getFitStringMeasure(t,r.title.text,i,n.titleFont);return a.width+=o,a.key="title",a}getFitValueMeasure(t,r,n){const o=n.bracketThickness*2,i=n.maxWidth-o,a=Se.getFitStringMeasure(t,r.value.text,i,n.valueFont);return a.width+=o,a.key="value",a}getFitSecondaryMeasure(t,r,n){const o=n.bracketWidth*2+n.secDividerWidth,i=n.maxWidth-o,a=i-n.secTitleMinWidth,s=Se.getFitStringMeasure(t,r.secondary.text,a,n.secondaryValueFont),l=i-s.width,c=Se.getFitStringMeasure(t,r.secondaryTitle.text,l,n.secondaryTitleFont);return{width:c.width+s.width+o,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const o=r.fitTitleMeasure,i=r.fitValueMeasure;let s=o&&o.width>i.width?o:i;const l=r.fitSecondaryMeasure,c=l&&l.width>s.width;let p;return s=c?l:s,c?p=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:p=s.string!==t[s.key].text,p?n=r.maxWidth:s.width>n&&(n=s.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawGauge(t,r,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,(r.titleSectionHeight-r.titleBottomMargin)/2),r.offsetY+=r.titleSectionHeight}drawGauge(t,r,n){n.gaugeCenterX=n.width/2,n.gaugeCenterY=n.offsetY+n.gaugeHeight-n.gaugeBottomMargin,n.needleAngle=this.getNeedleAngle(r,n),r.skin===2&&r.conditions&&r.conditions.length?this.drawConditionalDial(t,r,n):this.drawSimpleDial(t,r,n),r.showTicks&&n.size!=="micro"&&this.drawTicks(t,r,n),this.drawNeedle(t,n),r.showLabels&&n.size!=="micro"&&this.drawLabels(t,r,n),n.offsetY+=n.gaugeHeight}drawValue(t,r,n){t.fillStyle=n.valueColor,t.fillRect(1,n.offsetY,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,n.offsetY+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){const o=r.showTitle?(n.titleSectionHeight-n.titleBottomMargin)/2:0;t.strokeStyle=n.bracketColor,t.beginPath(),t.moveTo(n.bracketWidth+.5,o+.5),t.lineTo(.5,o+.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),t.moveTo(n.width-(n.bracketWidth+.5),o+.5),t.lineTo(n.width-.5,o+.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}getNeedleAngle(t,r){const n=+t.min.data,o=+t.max.data,i=+(t.value.data||0);return i<n?r.startAngle-r.overDegrees:i>o?r.endAngle+r.overDegrees:this.getAngle(r,i,n,o)}getAngle(t,r,n,o){const i=(t.endAngle-t.startAngle)/(o-n);return(r-n)*i+t.startAngle}drawConditionalDial(t,r,n){const o=r.conditions,i=+r.min.data,a=+r.max.data,s=Se.degToRad(n.startAngle+180),l=Se.degToRad(n.endAngle+180);let c;const p=h=>this.getAngle(n,h,i,a);for(this.drawArc(t,n,s,l,n.defaultDialColor),c=o.length-1;c>=0;c--){const h=o[c];let d=+h.data,m,g=NaN,v=NaN,y=NaN,w=NaN;const E=.25;switch(h.operator){case"<":if(d<=i)break;d=d>a?a:d,m=p(d),g=s,v=Se.degToRad(m+180);break;case">":if(d>=a)break;d=d<i?i:d,m=p(d),g=Se.degToRad(m+180),v=l;break;case"≤":if(d<i)break;d=d>a?a:d,m=p(d),g=s,v=Se.degToRad(m+(m+E<=n.endAngle?E:0)+180);break;case"≥":if(d>a)break;d=d<i?i:d,m=p(d),g=Se.degToRad(m-(m-E>=n.startAngle?E:0)+180),v=l;break;case"=":if(d<i||d>a)break;m=p(d),g=Se.degToRad(m-(m-E>=n.startAngle?E:0)+180),v=Se.degToRad(m+(m+E<=n.endAngle?E:0)+180);break;case"≠":if(d<i||d>a)g=s,v=l;else if(d===i||d===a){const _=d===i;g=Se.degToRad(n.startAngle+(_?E:0)+180),v=Se.degToRad(n.endAngle-(_?0:E)+180)}else m=p(d),g=s,v=Se.degToRad(m-(m-E>=n.startAngle?E:0)+180),y=Se.degToRad(m+(m+E<=n.endAngle?E:0)+180),w=l}!isNaN(g)&&!isNaN(v)&&this.drawArc(t,n,g,v,h.color),!isNaN(y)&&!isNaN(w)&&this.drawArc(t,n,y,w,h.color)}}drawSimpleDial(t,r,n){const o=Se.degToRad(n.startAngle+180),i=Se.degToRad(n.needleAngle+180),a=Se.degToRad(n.endAngle+180);n.needleAngle>n.startAngle&&n.needleAngle<n.endAngle?(this.drawArc(t,n,o,i,n.valueColor),t.globalAlpha=n.gaugeOpacity,this.drawArc(t,n,i,a,n.valueColor)):(n.needleAngle<=n.startAngle&&(t.globalAlpha=n.gaugeOpacity),this.drawArc(t,n,o,a,n.valueColor)),t.globalAlpha=1}drawArc(t,r,n,o,i){t.fillStyle=i,t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.outerArcRadius,n,o),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.innerArcRadius,o,n,!0),t.fill()}drawTicks(t,r,n){const o=n.startAngle,i=n.endAngle,a=n.tickDegreesIncrement,s=n.needleAngle;let l;for(l=o;l<=i;l+=a){const c=Se.degToRad(l),p=n.gaugeCenterX-n.lengthToTick*Math.cos(c),h=n.gaugeCenterY-n.lengthToTick*Math.sin(c),d=s<o,m=s>=l-a/2&&s<l+a/2,g=l===i&&s>=l;t.fillStyle=!d&&m||g?r.color:n.tickColor,t.beginPath(),t.arc(p,h,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Se.degToRad(r.needleAngle);t.fillStyle=r.needleColor,t.save(),t.translate(r.gaugeCenterX,r.gaugeCenterY),t.rotate(n),t.translate(-r.gaugeCenterX,-r.gaugeCenterY),t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.needleBaseRadius,.5*Math.PI,1.5*Math.PI,!0),t.lineTo(r.gaugeCenterX-r.needleLength,r.gaugeCenterY),t.fill(),t.restore()}drawLabels(t,r,n){t.font=n.labelFont,t.fillStyle=n.labelColor,t.textAlign="right",t.textBaseline="middle",t.fillText(r.min.text,n.gaugeCenterX-n.labelMargin,n.gaugeCenterY),t.textAlign="left",t.fillText(r.max.text,n.gaugeCenterX+n.labelMargin,n.gaugeCenterY)}}const yt=new no;class Jb{render(t,r,n,o){const i=t.getContext("2d"),a=Math.floor(o.clientWidth)-n.horizontalMargin*2,s=n.sectionMinWidth;let l=0,c=0,p=0,h=0,d=0,m=0,g=0,v=0,y;if(i.font=n.valueFont,y=yt.getStringWidth(i,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(i.font=n.titleFont,m=yt.getStringWidth(i,r.value.text),d=yt.getStringWidth(i,r.title.text),c=d<s?d:s,y+=c+n.textPadding),r.showSecondary&&(i.font=n.secondaryValueFont,v=yt.getStringWidth(i,r.secondary.text),h=v<s?v:s,y+=h,i.font=n.secondaryTitleFont||"",g=yt.getStringWidth(i,r.secondaryTitle.text),p=g<s?g:s,y+=p+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const E=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const x=m+d+g+v+n.textPadding*4+E,b=a-E-x;n.barWidth=Math.max(b,n.barWidth)}const _=n.barWidth+E;y+=_,n.showTickerBar=y<=a||!0,l+=n.showTickerBar?_:0}l+=r.showTitle?n.textPadding:0,l+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const w=a-l-c-p-h;if(n.fitValueMeasure=yt.getFitStringMeasure(i,r.value.text,w,n.valueFont),l+=n.fitValueMeasure.width,r.showSecondary){const E=a-l-c-p;let _;n.fitSecValueMeasure=yt.getFitStringMeasure(i,r.secondary.text,E,n.secondaryValueFont),l+=n.fitSecValueMeasure.width;const x=a-l,b=x/2;r.showTitle?d+g>x?d>b&&g>b?_=b:g>b&&d<=b?_=x-d:_=g:_=g:_=x,n.fitSecTitleMeasure=yt.getFitStringMeasure(i,r.secondaryTitle.text,_,n.secondaryTitleFont),l+=n.fitSecTitleMeasure.width}if(r.showTitle){const E=a-l;n.fitTitleMeasure=yt.getFitStringMeasure(i,r.title.text,E,n.titleFont),l+=n.fitTitleMeasure.width}n.width=l,yt.setCanvasSizes(t,i,l,n.height),this.draw(i,r,n)}draw(t,r,n){this.clearCanvas(t,n),r.type==="gauge"&&n.showTickerBar&&(this.drawTickerBar(t,r,n),this.drawDivider(t,n)),t.textBaseline="middle",r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&(this.drawDivider(t,n),this.drawSecondary(t,n))}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTickerBar(t,r,n){var c;const o=+r.min.data,i=+r.max.data,a=+(((c=r.value)==null?void 0:c.data)||0),s=Math.round((n.height-n.barHeight)/2);let l;if(t.fillStyle=n.valueColor,a<=o)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,s,n.barWidth,n.barHeight),l=0;else if(a>=i)t.fillRect(n.offsetX,s,n.barWidth,n.barHeight),l=n.barWidth-n.tickerBarWidth;else{const p=(a-Math.abs(o))/(i-o),h=n.barWidth*p;t.fillRect(n.offsetX,s,h,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+h,s,n.barWidth-h,n.barHeight),h>n.barWidth-n.tickerBarWidth?l=n.barWidth-n.tickerBarWidth:h<n.tickerBarWidth?l=0:l=h-1}t.globalAlpha=1,t.fillStyle=n.barHandleColor,t.fillRect(n.offsetX+l,Math.round((n.height-n.tickerBarHeight)/2),n.tickerBarWidth,n.tickerBarHeight),n.offsetX+=n.barWidth}drawDivider(t,r){t.fillStyle=r.dividerColor,t.fillRect(r.offsetX+r.horizontalPadding,Math.round((r.height-r.dividerHeight)/2),r.dividerWidth,r.dividerHeight),r.offsetX+=r.horizontalPadding*2+r.dividerWidth}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.fillText(r.fitTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitTitleMeasure.width+r.textPadding}drawValue(t,r,n){t.font=n.valueFont,t.fillStyle=n.valueColor||r.color,t.fillText(n.fitValueMeasure.string,n.offsetX,Math.floor(n.height/2)),n.offsetX+=n.fitValueMeasure.width}drawSecondary(t,r){t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.fillText(r.fitSecTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitSecTitleMeasure.width+r.textPadding,t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.fillText(r.fitSecValueMeasure.string,r.offsetX,Math.floor(r.height/2))}}const ku={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(0,206,230)",fontSizes:{big:66,medium:46,small:32,micro:23}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",borderColor:"rgb(215, 215, 215)",borderWidth:1,relativeSizes:[{key:"titleSectionHeight",value:.5,decimals:0},{key:"titleSectionMarginTop",value:.13,decimals:0},{key:"titleSectionMinWidth",value:.29,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"valueSectionMarginRight",value:.14,decimals:0},{key:"valueSectionMarginBottom",value:.07,decimals:0},{key:"secSectionHeight",value:.34,decimals:0},{key:"secSectionMarginTop",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"indicatorHorizontalMargin",value:.31,decimals:0},{key:"indicatorVerticalMargin",value:.46,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","titleSectionHeight","secSectionHeight","valueSectionMarginBottom","secSectionMarginTop","indicatorHorizontalMargin","indicatorVerticalMargin"],sizes:[{size:"big",value:70},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}],fitMeasures:[{key:"fitTitleMeasure",prop:"string",dataKey:"title"},{key:"fitValueMeasure",prop:"string",dataKey:"value"},{key:"fitSecondaryMeasure",prop:"titleString",dataKey:"secondaryTitle"},{key:"fitSecondaryMeasure",prop:"valueString",dataKey:"secondary"}]},e2={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",bracketColor:"rgb(198, 198, 198)",bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:1,decimals:0},{key:"titleHorizontalMargin",value:.16,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"secSectionHeight",value:1,decimals:0},{key:"secBottomMargin",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"bracketWidth",value:.21,decimals:0},{key:"indicatorMargin",value:.64,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","bracketWidth","titleSectionHeight","secSectionHeight"],sizes:[{size:"big",value:70,maxWidth:1261,maxHeight:665},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}]},t2={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},label:{color:"rgb(68, 81, 102)",fontSizes:{big:18,medium:13,small:9,micro:9}},textKeys:["title","value","secondaryTitle","secondaryValue","label"],backgroundColor:"rgb(255, 255, 255)",tickColor:"rgb(0, 0, 0)",needleColor:"rgb(43, 51, 66)",bracketColor:"rgb(198, 198, 198)",defaultDialColor:"rgb(179, 179, 179)",gaugeOpacity:.5,startAngle:20,endAngle:160,overDegrees:5,tickDegreesIncrement:10,bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:.26,decimals:0},{key:"titleHorizontalMargin",value:.08,decimals:0},{key:"titleBottomMargin",value:.1,decimals:0},{key:"gaugeWidth",value:1.33,decimals:0},{key:"gaugeBottomMargin",value:.19,decimals:0},{key:"outerArcRadius",value:.63,decimals:0},{key:"innerArcRadius",dataKey:"skin",values:{1:.24,2:.51},decimals:0},{key:"lengthToTick",value:.7,decimals:0},{key:"tickRadius",value:.01,decimals:1},{key:"needleLength",dataKey:"skin",values:{1:.52,2:.58},decimals:0},{key:"needleBaseRadius",value:.04,decimals:0},{key:"labelMargin",value:.26,decimals:0},{key:"valueSectionHeight",value:.36,decimals:0},{key:"secSectionHeight",value:.36,decimals:0},{key:"secBottomMargin",value:.05,decimals:0},{key:"secDividerWidth",value:.05,decimals:0},{key:"secTitleMinWidth",value:.1,decimals:0},{key:"bracketWidth",value:.08,decimals:0},{key:"indicatorMargin",value:.14,decimals:0}],gaugeHeights:[{size:"big",value:192,maxWidth:1297,maxHeight:1075},{size:"medium",value:134},{size:"small",value:94},{size:"micro",value:66}],measureKeys:["indicatorMargin","gaugeWidth","bracketWidth","titleSectionHeight","valueSectionHeight","secSectionHeight"]},r2={fontFamily:"Open Sans",fontSize:15,title:{color:"rgb(68, 81, 102)"},value:{fontWeight:800},secondaryTitle:{color:"rgb(163, 163, 163)"},secondaryValue:{color:"rgb(163, 163, 163)"},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"transparent",dividerColor:"rgb(39, 42, 52)",barHandleColor:"rgb(43, 51, 66)",height:35,horizontalMargin:15,barWidth:100,barHeight:11,barOpacity:.5,tickerBarWidth:2,tickerBarHeight:13,horizontalPadding:9,textPadding:6,sectionMinWidth:20,dividerWidth:1,dividerHeight:13,forceTickerView:!1};function n2(e,t){const r=u.cloneDeep(r2);if(r.forceTickerView=t.forceTickerView,r.fontFamily=t.fontFamily,r.backgroundColor=t.backgroundColor,r.value.color=t.value.color,r.title.color=t.title.color,r.secondaryTitle.color=t.secondaryTitle.color,r.secondaryValue.color=t.secondaryTitle.color,t.tickerBarHeight){const n=t.tickerBarHeight;r.barHeight=n,r.tickerBarHeight=n+2}return r.forceTickerView&&(r.height=e.offsetHeight),r}const o2=new no,i2=new qb,a2=new Xb,s2=new Zb,l2=new Jb;class u2{getService(t){switch(t){case"numericSimple":return i2;case"numericBar":return a2;case"gauge":return s2;case"ticker":return l2}}render(t,r,n,o){let i=this.getService(r.type);const a="getBaseMeasure"in i?i.getBaseMeasure(r,n,o):void 0;if(!a||n.forceTickerView){i=this.getService("ticker");const s=n2(t,n);this.setTextOptions(s),i.render(t,r,s,o);return}this.calculateRelativeSizes(r,n,a.value),this.setTextOptions(n,a.size),i.render(t,r,n,a)}calculateRelativeSizes(t,r,n){const{relativeSizes:o}=r;o.forEach(function(i){let a;if("dataKey"in i&&"values"in i&&i.dataKey in t)a=i.values[t[i.dataKey]];else if("value"in i)a=i.value;else throw new u.TranslatableError("errors.indicatorInvalidRelativeSize");const s=a*n;r[i.key]=o2.floor(s,i.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const o=t[n],i=o.fontStyle?`${o.fontStyle} `:"",a=o.fontVariant?`${o.fontVariant} `:"",s=o.fontWeight?`${o.fontWeight} `:"",l=`${Number.parseFloat(o.fontSizes&&o.fontSizes[r]||o.fontSize||t.fontSize)}px `,c=o.fontFamily||t.fontFamily,{color:p}=o;t[`${n}Font`]=i+a+s+l+c,t[`${n}Color`]=p})}}function Rf(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function c2(e,t,r){if(!d2(e))return r;const o=u.getColoringServiceByColorOptions(e).getColor(t);return o?J(q({},r),{value:J(q({},r.value),{color:o})}):r}function d2(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const f2=(e,t)=>{const r=Rf(t);return r&&e.value?u.getColoringServiceByColorOptions(r).getColor(u.isNumber(e.value)?e.value:0):null},p2=(e,t,r)=>{var h,d,m,g,v,y,w,E,_,x,b,C;const n=u.isNumber(e.min)?e.min:0,o=u.isNumber(e.max)?e.max:100,i=Ro(r,"value"),a=Ro(r,"secondary"),s=Ro(r,"min"),l=Ro(r,"max"),c=f2(e,r),p=t.indicatorType==="gauge"?1:"vertical";return J(q(q({},m2),c?{color:c}:null),{type:h2(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||p,title:{text:(m=(d=(h=t.indicatorComponents)==null?void 0:h.title)==null?void 0:d.text)!=null?m:""},min:{data:n,text:u.applyFormatPlainText(s,n)},max:{data:o,text:u.applyFormatPlainText(l,o)},value:{data:e.value,text:Iu(e.value,i)},secondary:{data:e.secondary,text:Iu(e.secondary,a)},secondaryTitle:{text:(y=(v=(g=t.indicatorComponents)==null?void 0:g.secondaryTitle)==null?void 0:v.text)!=null?y:""},showSecondary:e.secondary!==void 0,showTitle:!!((E=(w=t.indicatorComponents)==null?void 0:w.title)!=null&&E.shouldBeShown),showLabels:!!((x=(_=t.indicatorComponents)==null?void 0:_.labels)!=null&&x.shouldBeShown),showTicks:!!((C=(b=t.indicatorComponents)==null?void 0:b.ticks)!=null&&C.shouldBeShown)})};function h2(e,t){return e==="numeric"?t:e}function Ro(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return u.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const m2={color:"#00cee6",showSecondary:!1};function Iu(e,t){return e===void 0?"":isNaN(e)?"#N/A":u.applyFormatPlainText(t,e)}function Ha(e,t,r){const n=u.cloneDeep(r);for(const o in t){const i=t[o],a=g2(e,i);a&&Of(n,o,a)}return n}function Of(e,t,r){const n=t.split(".");if(n.length===1)if(n[0]in e)e[n[0]]=r;else return;else{const[o,...i]=n;if(!(o in e))return;const a=e[o];if(!Mf(a))return;Of(a,i.join("."),r)}}function g2(e,t){const r=t.split(".");let n=e;for(const o of r){if(!Mf(n)||!(o in n))return;n=n[o]}return n}function Mf(e){return typeof e=="object"&&e!==null}function v2(e,t,r){return Ha(e,t,r)}const y2={fontFamily:"typography.fontFamily","title.color":"chart.textColor",backgroundColor:"chart.backgroundColor","label.color":"chart.textColor","secondaryTitle.color":"chart.secondaryTextColor","secondaryValue.color":"chart.secondaryTextColor","value.color":"palette.variantColors.0"},b2=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:o}=t,{type:i}=e;let a;switch(i){case"gauge":a=t2;break;case"numeric":e.numericSubtype==="numericBar"?a=e2:a=ku;break;default:a=ku}o&&(a=v2(o,y2,a));const s=Rf(n);return s&&r.value&&u.isNumber(r.value)&&(a=c2(s,r.value,a)),q(J(q({},a),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};var _2=function(e){return e.DEFAULT="default",e.HOVER="hover",e.FOCUS="focus",e}({});function Ho(e){return typeof e=="string"}function x2(e){var l;const t=u.useThemeContext().themeSettings,[r,n]=F.useState(null),[o,i]=F.useState(null),a=(l=u.useSisenseContext().app)==null?void 0:l.httpClient;F.useEffect(()=>{e&&Ho(e)&&a&&Cd(e,a).then(c=>{n(c)}).catch(i)},[a,e]),F.useEffect(()=>{(!e||!Ho(e))&&(n(null),i(null))},[e]);const s=F.useMemo(()=>r?Au(t,r):e&&!Ho(e)?Au(t,e):t,[r,t,e]);return o?[null,o]:[s,null]}function Au(e,t){return u.merge.withOptions({mergeArrays:!1},e,t)}function Nu(e){return`${e.fontFamily}|${e.fontWeight}|${e.fontStyle}`}function w2(e,t){const[r,n]=F.useState([]),[o,i]=F.useState(!1),a=F.useMemo(()=>e.filter(s=>!t.includes(Nu(s))),[e,t]);return F.useEffect(()=>{if(a.length===0){i(!0);return}let s=!1;const l=a.map(c=>{const p=c.src.map(d=>Object.entries(d).map(([g,v])=>`${g}('${v}')`).join(" ")).join(", ");return new FontFace(c.fontFamily,p,{style:c.fontStyle,weight:c.fontWeight.toString()}).load().then(d=>(s||document.fonts.add(d),Nu(c)))});return Promise.all(l).then(c=>{s||(n(p=>[...p,...c]),i(!0))}).catch(c=>{console.error("Failed to load fonts:",c),i(!0)}),()=>{s=!0}},[a]),{loadedFonts:r,areAllFontsLoaded:o}}const $u=F.createContext({loadedFonts:[]}),C2=({fonts:e,children:t})=>{var a;const{loadedFonts:r}=F.useContext($u),{themeSettings:n}=u.useThemeContext(),{loadedFonts:o,areAllFontsLoaded:i}=w2(e||((a=n.typography.fontsLoader)==null?void 0:a.fonts)||[],r);return u.jsx($u.Provider,{value:{loadedFonts:[...r,...o]},children:i&&t})},Pf=ro({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r}=e,[n,o]=x2(t);if(o)throw o;return u.jsx(u.Fragment,{children:n&&u.jsx(u.ThemeContext.Provider,{value:{themeSettings:n},children:u.jsx(C2,{children:r})})})});function T2(e,t,r){return e==null?e:u.baseSet(e,t,r)}const Df={"value.data":"value.data","value.text":"value.text","secondary.data":"secondary.data","secondary.text":"secondary.text","title.text":"title.text","secondaryTitle.text":"secondaryTitle.text"},kf={"value.color":"value.color","secondaryValue.color":"secondary.color","secondaryValue.fontWeight":"secondary.fontWeight","title.color":"title.color","secondaryTitle.color":"secondaryTitle.color"};function E2(e,t){const r={};return u.flow(Lu(e,Df),Lu(t,kf))(r)}function Lu(e,t){return r=>{const n=q({},r);for(const[o,i]of Object.entries(t))T2(n,i,u.get(e,o));return n}}const S2=(e,t,r)=>{const n=Ha(e,Df,t),o=Ha(e,kf,r);return{legacyDataOptions:n,legacyChartOptions:o}},R2=e=>e,O2=({chartData:e,dataOptions:t,designOptions:r,onBeforeRender:n=R2})=>{var s;const o=F.useRef(null),i=F.useRef(null),{themeSettings:a}=u.useThemeContext();return F.useEffect(()=>{if(!i.current||!o.current)return;const l=new u2,c=p2(e,r,t),p=b2({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:a}),h=E2(c,p),d=n(h),{legacyDataOptions:m,legacyChartOptions:g}=S2(d,c,p);l.render(i.current,m,g,o.current)},[e,t,r,a,n]),u.jsx("div",{ref:o,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(s=a==null?void 0:a.chart)==null?void 0:s.backgroundColor},"aria-label":"indicator-root",children:u.jsx("canvas",{ref:i})})},M2=e=>e.type==="indicator",P2=e=>"min"in e,D2=e=>"indicatorComponents"in e,k2=e=>!!e.chartData&&M2(e.chartData)&&P2(e.dataOptions)&&D2(e.designOptions);function If(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:u.baseSlice(e,t,r)}function I2(e,t){for(var r=e.length;r--&&u.baseIndexOf(t,e[r],0)>-1;);return r}function A2(e,t){for(var r=-1,n=e.length;++r<n&&u.baseIndexOf(t,e[r],0)>-1;);return r}function N2(e){return e.split("")}var $2="\\ud800-\\udfff",L2="\\u0300-\\u036f",F2="\\ufe20-\\ufe2f",H2="\\u20d0-\\u20ff",B2=L2+F2+H2,j2="\\ufe0e\\ufe0f",z2="\\u200d",W2=RegExp("["+z2+$2+B2+j2+"]");function Af(e){return W2.test(e)}var Nf="\\ud800-\\udfff",V2="\\u0300-\\u036f",U2="\\ufe20-\\ufe2f",q2="\\u20d0-\\u20ff",G2=V2+U2+q2,Y2="\\ufe0e\\ufe0f",X2="["+Nf+"]",Ba="["+G2+"]",ja="\\ud83c[\\udffb-\\udfff]",K2="(?:"+Ba+"|"+ja+")",$f="[^"+Nf+"]",Lf="(?:\\ud83c[\\udde6-\\uddff]){2}",Ff="[\\ud800-\\udbff][\\udc00-\\udfff]",Q2="\\u200d",Hf=K2+"?",Bf="["+Y2+"]?",Z2="(?:"+Q2+"(?:"+[$f,Lf,Ff].join("|")+")"+Bf+Hf+")*",J2=Bf+Hf+Z2,e_="(?:"+[$f+Ba+"?",Ba,Lf,Ff,X2].join("|")+")",t_=RegExp(ja+"(?="+ja+")|"+e_+J2,"g");function r_(e){return e.match(t_)||[]}function za(e){return Af(e)?r_(e):N2(e)}function n_(e,t,r){if(e=u.toString(e),e&&(r||t===void 0))return u.baseTrim(e);if(!e||!(t=u.baseToString(t)))return e;var n=za(e),o=za(t),i=A2(n,o),a=I2(n,o)+1;return If(n,i,a).join("")}const jf=",";function o_(e){return e.join(`${jf} `)}function i_(e){return e.split(jf).map(n_)}function a_(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function s_(e,t){const{name:r,rawName:n,coordinates:o,value:i,colorValue:a,details:s}=e,c={geo:t.locations.map((p,h)=>J(q({},u.getDataPointMetadata(`geo.${h}`,p)),{value:n[h]}))};if(t.size&&(c.size=J(q({},u.getDataPointMetadata("size",t.size)),{value:i})),t.colorBy&&(c.colorBy=J(q({},u.getDataPointMetadata("colorBy",t.colorBy)),{value:a})),t.details){const p=u.getDataPointMetadata("details",t.details);p.measure&&(c.details=J(q({},p),{value:s}))}return{categories:n,displayName:r,coordinates:{lat:o.lat,lng:o.lng},value:i,entries:c}}const l_=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function u_(e,t){const r=l_[e.toLowerCase()];return r&&(t[r]=e),r||e}function c_(e,t){return t[e.toLowerCase()]||e}const d_=(e,t)=>{const{app:r}=u.useSisenseContext(),[n,o]=F.useState([]),i=F.useRef(e),a=F.useCallback(()=>rt(exports,null,function*(){if(!r||!e)return;const s={},l=a_(t),c=yield r.httpClient.post("api/v1/geo/locations",q({locations:e.map(g=>({name:u_(g.name,s)}))},l&&{geoLevel:l})),p=i.current!==e;if(!c||p)return;const h=c.reduce((g,v)=>{const y=J(q({},v),{name:c_(v.name,s)});return g[y.name]=y,g},{}),d=[],m=e.map(g=>(h[g.name]||d.push(g.name),q(q({},g),h[g.name]?{coordinates:h[g.name].latLng}:null)));d.length&&console.warn(`Locations "${d.join(", ")}" coordinates not found`),o(m)}),[r,o,e,t]);return F.useEffect(()=>{e&&(i.current=e,e.some(l=>!!l.coordinates)?o(e):a())},[e,r,a,o]),n};function f_(e){let t=Number.MAX_VALUE,r=Number.MIN_VALUE;return e.forEach(n=>{isNaN(n)||(t=Math.min(t,n),r=Math.max(r,n))}),{min:t,max:r}}function p_(e,t=4,r=24){let n=0;const{min:o,max:i}=f_(e.map(({value:s})=>s)),a=r-t;return n=i-o,e.map(s=>n===0?t:(s.value-o)/n*a+t)}const h_=()=>{const{app:e}=u.useSisenseContext(),[t,r]=F.useState(null),n=F.useCallback(()=>rt(exports,null,function*(){if(!e)return;const o=yield e.httpClient.get("api/v1/settings/system");o&&r(o.geo)}),[r,e]);return F.useEffect(()=>{n()},[e,n]),t},m_="#00cee6",g_=u.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>J(q({},e),{color:t})});function v_(e,t){return t?g_(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>m_)}function zf(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function Wf(e){const{color:t,size:r,fill:n,blur:o}=e,{isFilled:i}=zf(n),l=o?{filled:.1,"filled-light":.1,hollow:.2,"hollow-bold":.25}[n]:{filled:.5,"filled-light":.2,hollow:.35,"hollow-bold":.9}[n];return{radius:r,fillOpacity:l,opacity:l,fillColor:i?t:"transparent",color:i?"transparent":t,stroke:!i,weight:i?0:2,customStyle:e}}function y_({coordinates:e,style:t}){const r=new u.Leaflet.CircleMarker({lat:e.lat,lng:e.lng},Wf(t));return r.on("mouseover",b_),r.on("mouseout",__),r}function b_(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:o}=zf(r.fill);return t.setStyle(n?{stroke:!0,weight:2,opacity:o?.5:.7,fillOpacity:o?.5:.7}:{weight:3,opacity:o?.6:1}),t}function __(e){const t=e.target,r=t.options.customStyle;t.setStyle(Wf(r))}function x_(e){e.forEach(t=>t.remove())}function w_(e,t){const r=`
154
+ © <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
155
+ © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
156
+ <strong>
157
+ <a href='https://www.mapbox.com/map-feedback/' target='_blank' aria-label='Improve this map (opens in a new tab)'>
158
+ Improve this map
159
+ </a>
160
+ </strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",o=u.Leaflet.control.attribution();return t.indexOf("mapbox")>-1?o.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&o.addAttribution(n).addTo(e),o}var C_="Expected a function";function T_(e,t,r){if(typeof e!="function")throw new TypeError(C_);return setTimeout(function(){e.apply(void 0,r)},t)}var E_=u.baseRest(function(e,t,r){return T_(e,u.toNumber(t)||0,r)}),ca=function(e){return e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e}({});const S_="#9EA2AB",Fu="N/A",da=10,R_=`
161
+ <svg
162
+ xmlns="http://www.w3.org/2000/svg"
163
+ width="24"
164
+ height="24"
165
+ viewBox="0 0 24 24"
166
+ fill="green"
167
+ class="csdk-animate-spin"
168
+ >
169
+ <path
170
+ fillRule="evenodd"
171
+ clipRule="evenodd"
172
+ d="M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z"
173
+ fill="transparent"
174
+ fillOpacity="0.3"
175
+ />
176
+ <path
177
+ fillRule="evenodd"
178
+ clipRule="evenodd"
179
+ d="M20 12C20 16.4183 16.4183 20 12 20C11.2844 20 10.5908 19.906 9.93078 19.7298C9.96227 19.5889 9.97888 19.4423 9.97888 19.2918C9.97888 18.1873 9.08345 17.2918 7.97888 17.2918C6.87431 17.2918 5.97888 18.1873 5.97888 19.2918C5.97888 20.3964 6.87431 21.2918 7.97888 21.2918C8.56576 21.2918 9.0936 21.0391 9.45946 20.6364C10.2652 20.8731 11.1178 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3V4C16.4183 4 20 7.58172 20 12Z"
180
+ fill="#22C3C3"
181
+ />
182
+ </svg>
183
+ `,O_=e=>{const t=`
184
+ <div>
185
+ <div>${u.spanSegment("...")}</div>
186
+ <div>${u.spanSegment(`Showing first ${da} results`)}</div>
187
+ </div>
188
+ `;return`
189
+ <div>
190
+ ${e.slice(0,da).map(r=>`<div>${u.spanSegment(r)}</div>`).join("")}
191
+ ${e.length>da?t:""}
192
+ </div>
193
+ `},fa=e=>`
194
+ <span style="padding-right: 20px">
195
+ ${u.spanSegment(e,S_)}
196
+ </span>
197
+ `,M_=()=>`
198
+ <span style="verical-align: bottom">
199
+ ${u.spanSegment(R_)}
200
+ </span>
201
+ `,Oo=(e,t,r=1)=>{const n=u.formatTooltipValue(t.size,e.value,`${e.value}`),o=u.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),i=t.details&&u.formatTooltipValue(t.details,e.details,`${e.details}`);return u.tooltipWrapper(`
202
+ <div style="text-align: left">
203
+ <div>${u.spanSegment(e.name)}</div>
204
+ <div class="csdk-scattermap-tooltip-row">
205
+ ${t.size?fa(u.getDataOptionTitle(t.size)):""}
206
+ ${t.size?u.spanSegment(n):""}
207
+ </div>
208
+ <div class="csdk-scattermap-tooltip-row">
209
+ ${t.colorBy?fa(u.getDataOptionTitle(t.colorBy)):""}
210
+ ${t.colorBy?u.spanSegment(o||Fu):""}
211
+ </div>
212
+ <div class="csdk-scattermap-tooltip-row">
213
+ ${(r===2||r===0)&&t.details?fa(u.getDataOptionTitle(t.details)):""}
214
+ ${r===2?M_():""}
215
+ ${r===0&&t.details&&u.isMeasureColumn(t.details)?u.spanSegment(i||Fu):""}
216
+ </div>
217
+ <div>
218
+ ${r===0&&t.details&&!u.isMeasureColumn(t.details)?O_(e.details):""}
219
+ </div>
220
+ </div>
221
+ `)},P_=600,D_=11,k_=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=u.useSisenseContext(),o=F.useCallback(a=>rt(exports,null,function*(){if(!n||!e.details||u.isMeasureColumn(e.details))return[];const s=e.locations.map((p,h)=>{const d=u.translateColumnToAttribute(p),m=i_(a)[h];return u.members(d,[m])}),l={dataSource:t,dimensions:[u.translateColumnToAttribute(e.details)],filters:lt(r,s),count:D_};return(yield u.executeQuery(l,n)).rows.map(([p])=>p.text)}),[n,e,t,r]);return F.useCallback(a=>{if(!e.details||e.details&&!u.isMeasureColumn(e.details)&&!t)return{content:Oo(a,e)};if(u.isMeasureColumn(e.details))return{content:Oo(a,e,ca.YES)};const s=new Promise(c=>E_(c,P_)),l=Promise.all([o(a.name),s]).then(([c])=>Oo(J(q({},a),{details:c}),e,ca.YES));return{content:Oo(a,e,ca.LOADING),postponedContent:l}},[e,t,o])},I_=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:o,onDataPointClick:i})=>{const{locations:a}=e,s=h_(),{themeSettings:l}=u.useThemeContext(),c=d_(a,t.locationLevel),{filters:p}=u.getFilterListAndRelationsJaql(n),h=k_({dataOptions:t,dataSource:r,filters:p}),d=F.useRef(null),m=F.useRef(null),g=F.useMemo(()=>p_(c,t.size?o.markers.size.minSize:o.markers.size.defaultSize,t.size?o.markers.size.maxSize:o.markers.size.defaultSize),[c,t,o]),v=F.useMemo(()=>{var x;return v_(c,(x=t.colorBy)==null?void 0:x.color)},[c,t]),y=F.useRef([]),w=F.useRef(u.Leaflet.layerGroup([])),E=F.useRef(null),_=F.useRef(null);return F.useEffect(()=>{d.current&&!m.current&&(m.current=u.Leaflet.map(d.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),w.current.addTo(m.current),m.current.fitWorld())},[]),F.useEffect(()=>{y.current&&(x_(y.current),y.current=[]),c&&(c.forEach((x,b)=>{if(!x.coordinates)return;const C=y_({coordinates:x.coordinates,style:{color:v[b],size:g[b],fill:o.markers.fill,blur:!!x.blur}});y.current.push(C),C.addTo(w.current),i&&C.on("click",S=>{i(s_(x,t),S.originalEvent)}),C.bindTooltip(()=>{const{content:S,postponedContent:O}=h(x);return O==null||O.then(M=>C.setTooltipContent(M)),S})}),u.fitMapToBounds(m.current,y.current,u.prepareFitBoundsAnimationOptions(l)))},[c,v,g,o,l,t,h,i]),F.useEffect(()=>{var x;s&&(E.current&&E.current.remove(),E.current=u.Leaflet.tileLayer(s.maps_api_provider,{zoomOffset:-1,tileSize:512}),m.current&&(E.current.addTo(m.current),(x=_.current)==null||x.remove(),_.current=w_(m.current,s.maps_api_provider)))},[s]),u.jsx("div",{className:"csdk-map-container",ref:d,style:{width:"100%",height:"100%"}})},Vf=e=>e.type==="scattermap"&&"locations"in e,A_=e=>"locations"in e,N_=e=>"markers"in e,$_=e=>!!e.chartData&&Vf(e.chartData)&&A_(e.dataOptions)&&N_(e.designOptions),L_="_wrapper_g0ngm_1",F_="_title_g0ngm_7",H_="_image_g0ngm_18",pa={wrapper:L_,title:F_,image:H_},B_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='50.5'%20y='558.5'%20fill='%23E4E4E4'%20width='466'%20height='2'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M487.5,531.5h-410v-68.9l0.3-0.3l144-155.7l104.2,88.1l161.6-179.5V531.5z%20M79.5,529.5h406V220.4%20L326.1,397.5l-104.2-88.2l-142.4,154V529.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",j_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='25.5'%20y='558.5'%20fill='%23E4E4E4'%20width='516'%20height='2'/%3e%3cpath%20fill='%23E4E4E4'%20d='M518.9,188.1c-18.1,0-32.8,14.7-32.8,32.8c0,10,4.5,19,11.7,25.1l-129,162.8c-5.5-4.1-12.2-6.5-19.6-6.5%20c-10.4,0-19.7,4.9-25.7,12.5l-96.4-71.5c3.7-5.3,5.9-11.8,5.9-18.7c0-18.1-14.7-32.8-32.8-32.8c-18.1,0-32.8,14.7-32.8,32.8%20c0,9.2,3.8,17.5,9.9,23.5L69.5,465.4c-5.8-5-13.2-8-21.4-8c-18.1,0-32.8,14.7-32.8,32.8S30,523,48.1,523s32.8-14.7,32.8-32.8%20c0-9.2-3.8-17.5-9.9-23.5l107.8-117.4c5.8,5,13.2,8,21.4,8c10.4,0,19.7-4.9,25.7-12.5l96.4,71.5c-3.7,5.3-5.9,11.8-5.9,18.7%20c0,18.1,14.7,32.8,32.8,32.8s32.8-14.7,32.8-32.8c0-10-4.5-19-11.7-25.1l129-162.8c5.5,4.1,12.2,6.5,19.6,6.5%20c18.1,0,32.8-14.7,32.8-32.8S537,188.1,518.9,188.1z%20M48.1,521c-17,0-30.8-13.8-30.8-30.8s13.8-30.8,30.8-30.8%20c7.7,0,14.7,2.8,20.1,7.5c0.5,0.4,1,0.9,1.5,1.4c5.7,5.6,9.3,13.4,9.3,22C78.9,507.2,65,521,48.1,521z%20M200.2,355.4%20c-7.7,0-14.7-2.8-20.1-7.5c-0.5-0.4-1-0.9-1.5-1.4c-5.7-5.6-9.3-13.4-9.3-22c0-17,13.8-30.8,30.8-30.8c17,0,30.8,13.8,30.8,30.8%20c0,6.5-2,12.5-5.5,17.5c-0.4,0.5-0.8,1.1-1.2,1.6C218.7,350.8,210,355.4,200.2,355.4z%20M349.3,465.9c-17,0-30.8-13.8-30.8-30.8%20c0-6.5,2-12.5,5.5-17.5c0.4-0.5,0.8-1.1,1.2-1.6c5.6-7.1,14.4-11.7,24.1-11.7c6.9,0,13.2,2.3,18.3,6.1c0.5,0.4,1.1,0.8,1.6,1.2%20c6.7,5.7,10.9,14.1,10.9,23.5C380.1,452,366.3,465.9,349.3,465.9z%20M518.9,251.7c-6.9,0-13.2-2.3-18.3-6.1c-0.5-0.4-1.1-0.8-1.6-1.2%20c-6.7-5.7-10.9-14.1-10.9-23.5c0-17,13.8-30.8,30.8-30.8s30.8,13.8,30.8,30.8S535.9,251.7,518.9,251.7z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",z_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='64.5'%20y='201.5'%20fill='%23E4E4E4'%20width='2'%20height='381'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M447.5,560.5h-357v-60h357V560.5z%20M92.5,558.5h353v-56h-353V558.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M292.5,468.5h-202v-60h202V468.5z%20M92.5,466.5h198v-56h-198V466.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M526.5,377.5h-436v-60h436V377.5z%20M92.5,375.5h432v-56h-432V375.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M368.5,285.5h-278v-59h278V285.5z%20M92.5,283.5h274v-55h-274V283.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='78'%20y='558.5'%20fill='%23E4E4E4'%20width='410'%20height='2'/%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M463,533.5h-61v-207h61V533.5z%20M404,531.5h57v-203h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M363,533.5h-61v-152h61V533.5z%20M304,531.5h57v-148h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M263,533.5h-61v-316h61V533.5z%20M204,531.5h57v-312h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M163,533.5h-62v-248h62V533.5z%20M103,531.5h58v-244h-58V531.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M298.5,607.2c-12.6,0-25.3-1.1-37.6-3.2l-1-0.2l29.6-198l-27.1,61l-20.3-12.1l45.2-52.6L126.8,524.6%20l-0.6-0.8c-12.1-15.5-21.8-32.7-29-50.9l-0.4-0.9l0.9-0.4l181.4-70.1l-149.6,20.9v-47.1l158.4,22.1L97.5,323.8l0.4-0.9%20c7.3-18,17.1-34.9,29.3-50.4l0.6-0.8L282,389.2l-76.9-89.5l34.5-20.2l49.9,112.2l-29.6-198l1-0.2c12.4-2.1,25-3.2,37.6-3.2%20c8,0,16.1,0.4,23.9,1.3l1,0.1l-0.2,1l-29.7,198.8l83.2-187.1l0.9,0.3c19.5,7.5,37.7,17.7,54.3,30.3l0.8,0.6L301.2,389.2l132.5-101%20l28,44.9l-166,64.2L511.5,367l0.1,1c1.6,10.2,2.4,20.6,2.4,30.8c0,10.2-0.8,20.6-2.4,30.8l-0.1,1l-207.1-29l95.5,36.9l-18.5,28.9%20l-85.5-65.1l108.5,126.3l-45.5,23.8l-65.1-146.5l29.9,199.9l-1,0.1C314.4,606.8,306.4,607.2,298.5,607.2z%20M262.2,602.2%20c12,2,24.2,3,36.3,3c7.4,0,15.1-0.4,22.7-1.2l-29.7-198.5L262.2,602.2z%20M295.3,404.7l64.5,144.9l41.4-21.7L295.3,404.7l0.1,0.1%20L295.3,404.7z%20M99.4,473.1c7,17.4,16.3,33.8,27.8,48.7l158.3-120.6L99.4,473.1z%20M297.8,401.2l83.1,63.3l16-25L297.8,401.2z%20M245.2,454.3l16.3,9.7l26.4-59.4L245.2,454.3z%20M298.8,398.8l211,29.5c1.4-9.8,2.2-19.7,2.2-29.5c0-9.8-0.7-19.7-2.2-29.5%20L298.8,398.8z%20M131.5,377.6V420l152.2-21.2L131.5,377.6z%20M433.2,291.1L297.8,394.2l160.9-62.2L433.2,291.1z%20M100.1,322.6%20l185.2,71.6L128.2,274.5C116.6,289.3,107.2,305.5,100.1,322.6z%20M377.9,207.1L295.3,393l0,0l0,0L430,236.1%20C414,224.1,396.5,214.3,377.9,207.1z%20M287.9,393L287.9,393l-49.2-110.6l-30.5,17.8L287.9,393L287.9,393z%20M262.2,195.3L291.6,392%20l29.6-198.5c-7.5-0.8-15.1-1.2-22.7-1.2C286.4,192.3,274.2,193.4,262.2,195.3z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U_="data:image/svg+xml,%3csvg%20width='616'%20height='559'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20fill='none'%20stroke='%23E4E4E4'%20id='svg_1'%20stroke-width='2'%20d='m97.44781,156.99998l419.1042,0l-24.42354,59.30477l-370.25707,0l-24.42359,-59.30477zm29.93028,72.6737l359.24347,0l-24.42354,59.30458l-310.39633,0l-24.42361,-59.30458zm54.35357,131.97891l-24.4232,-59.30521l299.38335,0l-24.42422,59.30521l-250.53593,0zm220.60617,72.6737l-190.67573,0l-24.42491,-59.30458l239.52554,0l-24.42491,59.30458zm-3.92305,72.6737l-182.82963,0l1.26325,-59.30458l180.30313,0l1.26325,59.30458z'/%3e%3c/g%3e%3c/svg%3e",q_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M480.4,506.2l-162.3-106L509.4,431l-0.2,1c-4.3,26.5-13.8,51.2-28.4,73.4L480.4,506.2z%20M327,403.7%20l152.7,99.8c13.9-21.5,23.1-45.3,27.3-70.8L327,403.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M275.3,586.8C170.9,586.8,86,502,86,397.7c0-50.6,19.6-98.1,55.1-133.8c35.6-35.7,83-55.5,133.5-55.5h1%20v188.7l158.3,103.1l-0.5,0.8C398.1,554.8,339.1,586.8,275.3,586.8z%20M273.5,210.7c-49.6,0.3-96.1,19.7-131.1,54.8%20C107.3,300.7,88,347.7,88,397.7c0,103.2,84,187.1,187.4,187.1c62.7,0,120.9-31.4,155.7-83.9L273.5,398.3V210.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M482.8,408.7l-1-0.2l-187.3-30V188.5h1c74.8,0,142.7,44.1,173.1,112.2c15.2,34.1,20.2,71.1,14.4,107%20L482.8,408.7z%20M296.5,376.9l184.6,29.5c5.5-35.2,0.5-71.4-14.4-104.9c-29.9-67.1-96.6-110.5-170.2-110.9V376.9z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cpolygon%20fill='%23E4E4E4'%20points='80,575%2080,233%2078,233%2078,575%2078,577%2080,577%20497,577%20497,575%20'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M374.7,480.1c-29.7,0-53.9-24.2-53.9-53.9c0-29.7,24.2-53.9,53.9-53.9s53.9,24.2,53.9,53.9%20C428.6,455.9,404.4,480.1,374.7,480.1z%20M374.7,374.3c-28.6,0-51.9,23.3-51.9,51.9s23.3,51.9,51.9,51.9s51.9-23.3,51.9-51.9%20S403.3,374.3,374.7,374.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M264.2,395.2c-22,0-40-17.9-40-40c0-22,17.9-40,40-40s40,17.9,40,40C304.2,377.3,286.2,395.2,264.2,395.2z%20M264.2,317.3c-20.9,0-38,17-38,38c0,20.9,17,38,38,38s38-17,38-38C302.2,334.3,285.1,317.3,264.2,317.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M413.7,351.2c-38.8,0-70.3-31.6-70.3-70.3c0-38.8,31.6-70.3,70.3-70.3s70.3,31.5,70.3,70.3%20C484,319.6,452.4,351.2,413.7,351.2z%20M413.7,212.5c-37.7,0-68.3,30.7-68.3,68.3c0,37.7,30.7,68.3,68.3,68.3%20c37.7,0,68.3-30.7,68.3-68.3C482,243.2,451.3,212.5,413.7,212.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M228.9,489C228.9,489,228.9,489,228.9,489c-15.8,0-29.7-10.1-34.5-25.2c-3-9.2-2.2-19,2.3-27.7%20c4.4-8.6,11.9-15,21.2-18c3.6-1.2,7.4-1.8,11.1-1.8c15.8,0,29.7,10.1,34.5,25.2c3,9.2,2.2,19.1-2.3,27.7c-4.4,8.6-11.9,15-21.2,18%20C236.4,488.4,232.6,489,228.9,489z%20M228.9,418.4c-3.6,0-7.1,0.6-10.5,1.7c-8.7,2.8-15.8,8.8-20,17c-4.2,8.1-4.9,17.4-2.1,26.1%20c4.6,14.2,17.7,23.8,32.6,23.8c3.6,0,7.1-0.6,10.5-1.7c8.7-2.8,15.8-8.8,20-17c4.2-8.1,4.9-17.4,2.1-26.2%20C256.9,428,243.8,418.4,228.9,418.4z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M147.5,548C147.5,548,147.5,548,147.5,548c-9.4,0-17.6-6-20.4-14.9c-3.6-11.3,2.6-23.4,13.9-27%20c2.1-0.7,4.4-1,6.6-1c9.3,0,17.6,6,20.4,14.9c3.6,11.3-2.6,23.3-13.9,27C152,547.7,149.7,548,147.5,548z%20M147.5,507.1%20c-2,0-4,0.3-6,0.9c-10.2,3.3-15.9,14.2-12.6,24.4c2.6,8.1,10,13.5,18.5,13.5c0,0,0,0,0,0c2,0,4-0.3,6-0.9%20c10.2-3.3,15.8-14.3,12.6-24.5C163.4,512.5,156,507.1,147.5,507.1z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Y_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M307.6,337.5h-28.6l-3.4,41.7h28.6L307.6,337.5z%20M278.4,376.7l3-36.7h23.5l-3,36.7H278.4z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M262.9,415.9h12l2.4-28.6h23.5l-2.4,28.6h12l2.4-28.6h18.6v-10.5h-17.5l3-36.7h17.7v-10.5h-16.8l2.4-28.6%20h-12l-2.4,28.6h-23.5l2.4-28.6h-12l-2.4,28.6h-18.5V340h17.5l-3,36.7h-17.7v10.5h16.8L262.9,415.9z%20M251.1,384.7v-5.5h17.5%20l3.4-41.7h-17.8V332h18.3l2.4-28.6h7l-2.4,28.6h28.6l2.4-28.6h7l-2.4,28.6h17v5.5h-17.5l-3.4,41.7H329v5.5h-18.4l-2.4,28.6h-7%20l2.4-28.6h-28.6l-2.4,28.6h-7l2.4-28.6H251.1z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M84,269.1v178.8h396.6V269.1H84z%20M478.2,445.4H86.5V271.6h391.6V445.4z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",X_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566.5%20700.5'%20enable-background='new%200%200%20566.5%20700.5'%20xml:space='preserve'%3e%3cg%20id='Layer_2'%3e%3crect%20x='-5057'%20y='-6963'%20fill='transparent'%20stroke='%23000000'%20stroke-miterlimit='10'%20width='16156.4'%20height='16115.1'/%3e%3c/g%3e%3cg%20id='Layer_1'%3e%3cpath%20fill='%23E4E4E4'%20d='M399,207h-2H284h-2H170h-2H53v35v4v31v2v31v2v30v2v31v2v30v2v31v2v31v2v34h115h2h112h2h113h2h116v-34v-2%20v-31v-2v-31v-2v-30v-2v-31v-2v-30v-2v-31v-2v-31v-4v-35H399z%20M397,211v31H284v-31H397z%20M282,279v31H170v-31H282z%20M170,277v-31h112%20v31H170z%20M282,312v30H170v-30H282z%20M282,344v31H170v-31H282z%20M282,377v30H170v-30H282z%20M282,409v31H170v-31H282z%20M282,442v31H170%20v-31H282z%20M284,442h113v31H284V442z%20M284,440v-31h113v31H284z%20M284,407v-30h113v30H284z%20M284,375v-31h113v31H284z%20M284,342v-30h113%20v30H284z%20M284,310v-31h113v31H284z%20M284,277v-31h113v31H284z%20M282,211v31H170v-31H282z%20M57,211h111v31H57V211z%20M57,246h111v31H57%20V246z%20M57,279h111v31H57V279z%20M57,312h111v30H57V312z%20M57,344h111v31H57V344z%20M57,377h111v30H57V377z%20M57,409h111v31H57V409z%20M57,442h111v31H57V442z%20M57,505v-30h111v30H57z%20M170,505v-30h112v30H170z%20M284,505v-30h113v30H284z%20M511,505H399v-30h112V505z%20M511,473H399v-31h112V473z%20M511,440H399v-31h112V440z%20M511,407H399v-30h112V407z%20M511,375H399v-31h112V375z%20M511,342H399v-30h112%20V342z%20M511,310H399v-31h112V310z%20M511,277H399v-31h112V277z%20M399,242v-31h112v31H399z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",K_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3cpath%20fill='%23E4E4E4'%20d='M52,202.5v200v2v104h462v-306H52z%20M510,402.5H225v-196h285V402.5z%20M56,206.5h167v196H56V206.5z%20M56,404.5%20h298v100H56V404.5z%20M356,504.5v-100h154v100H356z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Hu="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M276.8,521.3c-0.5,0-0.9-0.1-1.3-0.2l-0.3-0.1l-0.2-0.2c-0.5-0.6-1-1.3-0.8-1.9c-1-0.6-2.6-0.6-4-0.6%20c-1,0-1.8,0-2.5-0.2l-0.3-0.1l-0.2-0.2c-0.5-0.6-2.8-1.7-4.5-2.5c-1.9-0.9-3.8-1.7-4.8-2.5l-0.2-0.2l-0.1-0.3c-2-5-2.7-6.5-3-7%20c-0.1-0.3-0.2-0.4-0.2-0.6c-0.1-0.6,0-1.1,0.1-1.4c0.1-0.5,0.2-1-1.2-3.5c-0.4-0.6-2.4-2.7-3.6-3.8l-0.2-0.2l-1.1-3%20c-1.8-1.6-3.5-5.2-5.1-8.3c-0.7-1.4-1.3-2.6-1.8-3.5c-1.1-1.6-2-2.4-2.9-3.2c-1.1-1-2.2-2-3.8-4.3c-2.1-0.3-3.7,0-5.3,0.4%20c-2,0.4-3.9,0.8-6-0.3c-0.4,0.5-1.1,1.8-1.6,2.7c-1.6,2.9-3.4,6.3-5.8,5.3c-12.1-4.7-13.8-9.4-14.9-12.4c-0.1-0.3-0.2-0.6-0.3-0.8%20l-0.1-0.2l0-0.2c0.2-2.3,0.1-2.4-0.3-3.1c-0.4-0.7-1-1.7-1.9-4.2c-4.3-2.4-8.1-7.1-10.8-10.5c-1.1-1.3-2-2.5-2.7-3.2%20c-0.1,0-0.2-0.1-0.4-0.1l0,0.2l-0.9-0.1c-2.4-0.3-7.4-0.9-14.7-1.2l-1,4.1l-0.4,0.2c-2.2,1-6.3,1.8-8.9,0.7l0,0l-9.4-1.9%20c-5.6,0.2-10.8-2.5-14.6-4.5l-0.9-0.5c-4.7-2.3-8.4-4.5-11.4-6.3c-1.2-0.7-2.2-1.3-3.2-1.9c-5.5-3.1-9.2-5.2-15.9-8.5l-0.5-0.2%20l-0.1-0.5c-0.1-0.7-0.1-1.2-0.1-1.6c0-0.1,0-0.3,0-0.4l-5.3-0.6c-6-0.7-12.2-1.3-16.2-1.5l-0.1,0.1l-0.7-0.1l0.1-1.1l-0.5-0.7%20c-0.3,0.2-0.4,0.5-0.4,0.6c0.1-1-1.4-8.7-2.7-10.8c-1.4-2.1-3.1-3.5-5.6-4.5l-0.3-0.1l-0.2-0.2c-0.7-0.9-0.8-2.2-0.8-3.1%20c-0.3-0.1-0.6-0.2-1.1-0.3c-1.8-0.6-6.9-4.8-7.6-6.2c-0.8-0.8-2.2-1.9-3.2-1.9c-2.7,0-4.7-0.8-5.8-2.4c-1.7-2.4-0.9-5.9-0.1-8%20c-1.4-2.2-2.9-5.5-4.2-8.4c-1.2-2.7-2.5-5.4-3.2-6.3l-0.2-0.2l0-0.3c-0.2-1.6-0.5-4.7,2.1-6.5c0.1-0.9-0.3-1.2-1.2-1.8%20c-0.9-0.7-2.2-1.6-2.8-3.6c-0.3-0.9-0.1-3.3,0.1-5.1c0,0-0.1,0-0.1,0c-0.2-0.1-0.5-0.4-0.7-0.9l-0.1-0.3l0.1-0.3%20c0.3-0.8,0.4-1.2,0.4-1.4c-0.1-0.1-0.3-0.4-0.4-0.7l-0.1-0.5l0,0c0,0-0.1-0.1-0.1-0.1c-0.6-0.6-1.3-1.2-1.7-2.2l-0.3-0.5l0.4-0.5%20c0.4-0.6,0.3-1.1-0.1-2.5c-0.2-0.6-0.4-1.3-0.5-2c0,0,0,0,0,0c-1.3-0.9-4-2.8-3.1-9.6c0.4-2.6,0.5-4.7,0.6-6.6%20c0.1-0.8,0.1-1.6,0.2-2.5c-0.8-1-2.8-4.1-2.3-7.1c0.3-1.6,1.2-2.9,2.8-3.9c1.5-2.9,3.3-8.8,3.6-12.7c-0.7-1.2-0.5-2.7-0.2-4.7%20c0.1-0.7,0.2-1.5,0.3-2.4c0.4-4.3,2.4-8.3,5.1-10.4c3.3-8.1,7.8-19.4,11.2-28.6l-0.4-0.3l0.3-0.9c-1-0.6-0.9-2-0.9-2.5%20c0.1-1.4,1.1-2.6,1.8-3.4c0,0,0,0,0.1-0.1c-0.6-1.6-0.6-1.9-0.4-3.7c0.2-1,0.9-1.5,1.4-1.7c0-0.9-0.2-2.8-0.3-4.4%20c-0.3-3.2-0.7-7.2-0.5-10.1c0.1-2.1,0.9-3.4,2.2-3.8c3.8-1.2,10.8,7.2,12.9,9.7l0.5,0.6l-0.4,0.6c-1.2,1.7-0.2,6.3,0.8,8.6%20c0.3-1.3,0.9-3.2,2.7-3.7l0.2-3.6l0.1,0c0-0.4-0.1-1.3-0.2-2c-0.4-2.8-0.5-4.3,0-5.1c0-0.3-0.4-1.1-0.6-1.6%20c-0.6-1.1-1.2-2.4-0.8-3.7l0.3-1.1l1,0.4c2.4,1,29.9,7.4,44.2,10.6c2.8,0.3,7.6,1.6,8.4,1.8c0.4,0,1.5,0.2,4.9,0.8%20c7.5,1.3,23.2,4,42.1,6.6c14.2,2,31.3,3.6,47.7,5.1l54.2,1.4c2.1-0.3,4.4-0.4,14.5-0.4v-1c0-2.1,0.8-2.3,2.8-2.8l0.3-0.1%20c1.4-0.2,3.3,2.6,3.6,4c0.1,0.7,0.7,2.1,1.3,2.6c1.1,0.9,1.9,1,2.7,1.1c0.4,0.1,0.8,0.1,1.2,0.2c0.1,0,0.4,0.1,0.7,0.2%20c0.8,0.2,2.8,0.7,3.3,0.6c8.4-1,8.6-0.5,9.1,0c0.1,0.1,0.1,0.4,0.1,0.9v0.2l-0.1,0.3c-0.2,0.2-0.3,0.5-0.4,0.7%20c3.4,0.4,6.8,2.2,8,3c2.4-1.1,4.4-1.3,7.2-1.6c1-0.1,2.2-0.2,3.5-0.4l5.5-0.3c3-1,6.7-2.1,7.8-1.8l0.2,0.1l0.2,0.2%20c0.6,0.5,1.3,2.4,0.5,4.1c-1,2.2-3.8,3.1-8.4,2.6l-0.2,0l-0.2-0.1c-1-0.6-6.7,1.9-8.1,2.9c-0.8,0.6-6.6,6.7-9.9,10.4%20c1.5-0.3,3.2-1,4.7-1.7c1.3-0.6,2.5-1.1,3.4-1.2l0.6-0.1l0.8,1.4c0.2,0.2,0.3,0.4,0.4,0.5c0.2,0.6-0.2,1-0.4,1.2%20c-0.1,0.1-0.1,0.1-0.2,0.2c1,0.2,1.8,0.4,2.4,0.6c0.5-0.1,2.4-0.4,2.6-1.5c0-0.2,0.1-0.5,0.2-0.7l2.1-2.9l-0.2,2.3%20c2.1-0.8,6.4-2.8,8.6-5.2c0.6-1.8,3.7-3.6,4.4-3.9c0.2-0.1,0.4-0.2,0.5-0.3c0.7-0.4,1.8-1,2.7-0.6c0.6,0.2,1,0.7,1.3,1.4l0.1,0.2%20l0,0.2c-0.2,2.4-2.1,2.5-2.8,2.6c-0.1,0-0.2,0-0.2,0c-0.1,0-0.4,0.3-0.7,0.7c0.2,0.7-0.1,1.5-0.5,2.1c2-0.2,4.5,0.4,8.1,3.9%20c0.5-0.1,1.2-0.2,1.9-0.3l0.3,0l0.3,0.2c1.3,0.9,4.8-1.3,6.3-2.2c0.8-0.5,1.2-0.7,1.6-0.8l0.1,0c0.7-0.1,1.4-0.2,2-0.3%20c1.9-0.3,3.4-0.5,4.4-1.1l1.1-0.6l0.4,1.5c0.2,0.8,0.5,1.7,1,1.9c0.6,0.3,1.8,0,3.3-0.7l1.3-0.6l0.1,1.4c0.1,0.5,1.6,2.4,2.4,3.4%20c0.5,0.7,1.1,1.6,1.4,2l1.1,1.8h-1.9c-1.3,0-3.1-0.1-4.7,0c0,0,0-0.1,0-0.1c-0.1,0.1-0.1,0.1-0.3,0.6l11.1,4.2l0.2,0.2%20c0.1,0.1,1.4,1.6,2.3,3.9l0,0.1c0.6,2.6,1.3,7.7,1.3,7.8l0.1,0.9l-0.9,0.2c-0.3,0.1-0.5,0.1-0.6,0.1c0,0,0,0,0,0%20c-0.6,2.3-1.2,3.9-2.8,4.3c-0.5,1.4-0.2,1.9-0.1,2.1c0.2,0.2,0.5,0.3,0.7,0.3l1.6-1.3c0.2-0.9,0.8-2.9,3.5-4.5l0.3-0.2l0.3,0%20c2.8,0.1,4,2.2,4.5,3.1l0.2,0.5c1.2,5.7,3.2,7.3,3.2,7.3l0.4,0.3l0,0.5c-0.1,1.8-0.3,3.9-0.2,4.4c0.2,0.8,0,2.1-0.2,2.6%20c-0.2,0.6-0.4,1-0.7,1.2c0,0.2,0.2,0.3,0.2,0.6v0.7l-0.8,0.3c-0.2,0.1-0.4,0.1-0.5,0.2c0,0,0,0,0,0l0.1,0.5l-0.3,0.4%20c-0.5,0.6-1.1,0.7-1.5,0.9c-0.4,0.1-0.4,0.1-0.5,0.2c-0.1,0.3-0.1,0.4-0.1,0.4c0,0.1,0.2,0.3,0.3,0.5l0.7,0.9l-0.7,0.6%20c-0.6,0.5-2,2.2-2.6,3.7c2.2,0.5,5.9,1.4,7.4,1.7c1.2-1.3,2.6-1.7,3.5-2c0.1,0,0.2-0.1,0.3-0.1l0-0.2l2.8-1.1l1.8-2.1%20c0.1-0.1,2.4-3.3,5.5-4.1l0.3-0.2l2.1-0.7c0.3-0.1,0.8-0.3,1.3-0.4c0.8-0.2,1.7-0.5,2.2-0.8l0.2-0.1l0.2,0c0,0,1-0.2,2.5-0.2%20c0.2-0.3,0.4-0.7,0.7-1.1c1.1-1.6,3.3-4.9,3.6-5.7l0.3-0.8l0.6,0.1c0-0.1,0.1-0.2,0.1-0.3c0.2-0.4,0.4-0.8,0.7-1.4%20c0-0.7-0.3-1.2-0.7-2c-0.4-0.7-0.9-1.4-1.1-2.4c-0.1-0.2-0.3-0.4-0.3-0.5v0c0-0.1,0.2-0.2,0.2-0.2l-0.1-0.1c0-0.3-0.1-0.5-0.1-0.7%20V291l1.6,5.8c0.1-0.1,0.3-0.1,0.5-0.2c1.3-0.5,5-1,9.2-1.5c1.5-0.2,2.8-0.3,3.4-0.4c1.8-0.4,4.6-1.2,5.3-1.7%20c0.8-0.6,1.7-1.8,2.2-2.3c0.1-1.5,0-3.8-0.6-4.4c-0.1-0.1-0.3-0.2-0.6-0.1l-1.1,0.2l-0.1-1.1c-0.1-1.6,0.9-2.8,1.3-3.1%20c5-7.8,9-11.1,9.2-11.2l0.2-0.1l12-3l0-0.4l0.8-0.2c4.5-0.9,8.2-2,11.2-2.8c1-0.3,1.9-0.6,2.7-0.8c0-0.3,0-0.6,0-0.8%20c0.2-1.4,1.6-2.8,3.3-3.3c0.1,0,0.1-0.1,0.2-0.1l1.3-3v-1.5c-0.4-0.5-0.8-1.3-0.5-2c0.2-0.4,0.6-0.9,1.7-0.8%20c0.5-0.6,1-2.9,1.2-10.6c0-0.8,0-1.5,0.1-1.8l0-0.4l0.3-0.3c0.7-0.6,1.2-2.3,1.7-3.7c0.6-2,1.2-3.9,2.6-4.7l0.8-0.4l0.5,0.8%20c0.2,0.4,1.1,1.4,2,1.3c0.9-0.2,1.5-0.7,2.1-1.3c0.8-0.7,1.7-1.5,3-1.5h0.3l0.3,0.2c3.6,2.8,4.2,3.6,4.9,4.9%20c0.2,0.3,0.4,0.7,0.7,1.1l0.1,0.3c0.2,0.6,0.6,2.1,1.1,4c0.8,2.7,1.8,6.3,2.2,7.5c0.2,0.1,0.7,0.1,1.1,0c2-0.2,2.5,1.3,2.8,2.4%20c0.1,0.4,0.3,0.9,0.6,1.4c0.1,0,0.3,0.1,0.4,0.2c0.9,0.6,1.2,2.1,1.5,3.6c0.1,0.5,0.2,1.2,0.3,1.5l0.5,0.4l-0.3,0.7%20c-0.4,0.9-1.5,2.5-2.5,4c-0.2,0.4-0.4,0.6-0.5,0.8c-0.9,2.3-2.9,4-5.4,4.7c-1.3,0.3-2.4,0.3-3.2-0.1c-0.2,1.2-0.4,2.5-0.3,3.2%20l0,0.8l-1.8,0.6c-0.4,2-2.1,4-3.6,4.9c0.1,0.7,0.4,1.6,0.6,2.5c0.6,2.3,1.3,4.7,0.8,6.3l-0.1,0.4l-0.4,0.2%20c-1.8,0.8-3.9,1.4-5.5,1.6c0.3,0.4,0.9,0.8,2,1.4l0.9,0.4l-0.5,0.9c-0.2,0.4,0.1,2.1,0.2,2.9c0.1,0.5,0.1,0.9,0.2,1.2%20c1.7,2.5,3,3.3,3.6,3.1c0.5-0.1,0.9-0.9,0.9-1.3l0.1-0.7l0.7-0.2c2.2-0.5,3.5,1.3,4.2,2.4c0.1,0.2,0.3,0.4,0.4,0.6%20c1.4,0.2,4,0.4,4.9,0.3l1.1-0.2v1.2c0,0.5,0,1.4-4.1,2.5c-1.4,0.3-2.7,0.1-3.8-0.5c-0.6,0.5-1.3,0.7-1.9,0.6%20c-0.5-0.1-0.8-0.3-1.1-0.5c-0.4,0.3-1,0.7-1.5,0.9l-1.7,0.5l0.2-0.8c-0.9-0.1-2.3-0.2-3.8-0.2c0.6,1.1,1.5,2.5,2.1,3.5l0.4,0.6%20l-0.4,0.6c-2.1,2.8-5.7,4.7-5.9,4.8l-0.2,0.1c-3,0.8-14.2,8-19.4,11.4l1.3,0.1l0.2,0.7c0,0.2,1.1,4.6,0,9%20c-1.1,4.2-3.8,8.9-3.9,9.1l-0.9,1.6l-1.5-3l-2-0.4l-2.3-1.3c0.6,1.2,1.3,2.7,1.6,3.3l0.1,0.2c0.4,3.5,1.5,5.4,1.5,5.4l0.2,0.3%20l-0.3,4.6l0.2,0.1l-0.1,0.9c0,0,0,0.2-0.1,0.4l-0.1,1.6h-0.9c-0.1,0.1-0.4,0.4-0.7,0.8c-1.1,1.2-2.5,0.8-3.4,0.4%20c-0.1,0.2-0.3,0.4-0.6,0.5c-0.3,0.1-0.6,0.1-0.8,0.1c0,0,0,0,0,0c-0.6,0.4-1.5,0.2-2.7-0.6c0.2,0.6,0.1,1.2,0,1.7%20c0,0.2-0.1,0.6-0.1,0.7c0.3,0.4,0.4,0.8,0.5,1c0.1,0.2,0.1,0.3,0.4,0.5c0.5,0.4,0.6,0.8,0.6,1.1c0,0.6-0.4,1-0.7,1.2%20c0,0-0.1,0.1-0.1,0.1c0.1,0.1,0.4,0.4,1,0.8c0.4,0.3,1.3,0.9,1.1,1.8c-0.2,0.9-1.1,1-1.9,1.2c-0.2,0-0.5,0.1-0.8,0.2%20c0.2,0.3,0.6,0.8,1.6,1.6c0.9,0.8,1.5,1.9,1.7,2.8h1.1c0.8,0,1.4,0.4,1.7,0.8c2.3-0.2,6.4-0.4,8.7,5.2c1.3,3.1-2.5,8-2.9,8.6%20l-0.1,0.1c-0.7,0.6-1.8,0.5-3,0.5c-0.1,0-0.2,0-0.3,0l0.4,0.3l-0.1,0.6c0,0.2-0.1,0.5-0.2,0.7c-0.1,0.5-0.2,0.8-0.1,1.1%20c0.1,0,0.2,0,0.2,0c0.5-0.1,1.3-0.3,2,0.2c0.5,0.4,0.7,0.9,0.8,1.8c0.2,1-0.8,2.4-1.2,2.9l-0.7,0.9l-0.7-0.7c-0.2,0-1.2,0-4.3,1.7%20c-3.3,1.4-5.3,5.8-6,9.1l-0.1,0.2l-0.2,0.2c-0.6,0.7-1.8,1.5-2,1.5l-0.2,0.1l-0.2,0c-1.7,0.1-2.5,0.5-3.1,0.9%20c-0.3,0.2-0.7,0.4-1.1,0.4c-0.2,0.4-0.6,0.9-1.1,1.5c-0.4,0.5-0.8,1-1.1,1.5c-2.2,5.6-4.7,9.1-4.8,9.3l-0.1,0.2%20c-0.1,0.1-1.3,1.2-2.8,2.1c-0.4,1.3-0.7,2.4-0.7,2.4l-0.2,0.6l-0.6,0.1c-0.8,0.1-1.9,0.5-2.7,0.8c0.6,1.4,0.2,2.4-0.2,2.9%20c-0.7,0.8-1.8,1.2-2.7,1.2c-0.3,0.8-0.7,1.5-1.1,2.1c-1.8,4-3.6,10.4-3.6,15.2c1.1,1.2,1.8,3.4,2.5,5.6c0.3,0.9,0.6,1.9,0.9,2.7%20c1.3,3.1,6.4,11.1,7.5,12.4c0.5,0.1,1.4,0.3,2.2,1.1c1.4,1.3,2.1,3.6,2.1,6.8c0,0.2,0,0.4-0.1,0.6c1.3,2.8,4.1,8.3,7.1,11.1%20l0.2,0.2l0,0.2c1.1,2.9,2.3,11,2.3,13.3v0.5l-0.4,0.3c-1.5,1-1.5,4.8-1.5,6.6c0,1.4,0,1.8-0.5,2.2l-0.4,0.3l-0.5-0.1%20c-0.7-0.2-1.5,0.3-2.3,0.7c-1,0.6-2.4,1.4-3.6,0.1c-0.4-0.4-0.3-0.9-0.3-1.1c0-0.1,0-0.1,0.1-0.2c0-0.1-0.1-0.1-0.1-0.2%20c-0.1-0.1-0.2-0.3-0.2-0.4c-0.1,0-0.4,0.1-0.8,0.5l-1.1,0.8l-0.5-1.3c-1-2.9-4.9-5.2-8.6-7.1l-0.5-0.2l-0.1-0.5%20c-0.2-1.6-1-2.9-2.1-3.5c-1.1-0.6-1.5-1.9-1.7-3c-0.5,0.1-0.9-0.1-1.1-0.2l-0.7-0.2l0-0.5c-2.6-1.4-3.9-4.2-5.2-7.1l-0.1-0.2%20l0-0.3c0.1-0.7,0.4-1.4,0.7-2.2c-0.1,0.1-0.2,0.2-0.3,0.3c-0.4,0.3-1,0.3-1.6,0.1l-0.3-0.1l-0.2-0.2c-0.3-0.3-0.5-0.4-0.6-0.5%20c-0.4-0.3-0.9-0.7-0.7-1.7c0.2-3.5,0.6-6.1,0.6-6.2c0.3-1.7,0.4-4.6-0.5-5.3l-0.1-0.1l-0.1-0.1c-0.7-1.1-1.3-1.8-2.2-2.1%20c-3.3-1-5.5-2.7-6.7-5c-1.3-0.5-2.5-1.8-3.1-2.9c-1.6-0.3-5.1-0.6-6.2,0.8l-0.1,0.1l-0.1,0.1c-1.1,0.7-1.9,1.4-2.6,2%20c-1.6,1.4-2.8,2.4-6.5,2.3c-2.6-0.2-3.3-0.9-4-2c-0.4-0.7-0.9-1.4-3.5-1.9c-1.1-0.2-1.9-0.4-2.4-0.4c0,0.2,0,0.4-0.1,0.6%20c-0.4,0.8-1.3,0.8-1.6,0.9c-2.1,0.2-2.8-0.8-3.2-1.4c-2.9,1-5.4-0.8-7.1-2c0,0-0.1-0.1-0.1-0.1c0,0,0,0-0.1,0.1l-0.2,0.3%20c0,0.1,0,0.1,0,0.2l0,0.4l-0.2,0.3c-1.1,1.3-3.5,1.8-3.7,1.8l-0.8,0.2l-0.3-0.7c-0.2-0.6-0.8-1.7-1.3-2.7c0,0.2-0.1,0.4-0.1,0.6%20c-0.2,1.2-0.3,2.2-1.1,2.6c-0.1,0.1-0.1,0.3-0.2,0.4c-0.1,0.3-0.4,1-1.1,1c-0.4,0-0.7-0.1-0.9-0.3h-0.4c-0.8,0-1-0.6-1.1-1.4%20c-2.4,0.5-7,1.7-10,3.8c0.1,0.1,0.1,0.3,0.1,0.4c0,0.8-0.6,1.2-1.3,1.5c-0.7,0.4-1.4,0.8-1.3,1.2l0,0.3c0,0.1,0,0.2,0,0.2%20c0.3,0.1,0.7,0.4,1.3,0.8l0.1-0.1l0.6,0.2c6,2.4,6.5,3.4,6.6,3.8c0.1,0.2,0.2,0.5,0.2,0.7v0c0,0.5-0.2,1.8-1.4,2.3%20c-1.3,0.6-3.3-0.3-6.3-2.7c-0.2-0.2-0.4-0.2-0.4-0.2c0,0-0.2,0.1-0.3,0.1c-0.3,0.2-1,0.5-1.7,0.2c-0.1,0.7-0.4,1.5-1.2,2.2%20l-0.5,0.4l-0.6-0.3c-3.4-1.6-4.1-1.2-4.1-1.2c0,0.1-0.1,0.3-0.1,0.4c0,0.1,0,0.3,0,0.4l-0.1,0.7l-0.7,0.1%20c-2.3,0.4-4.2,0.3-6.2-1.1l-0.3-0.2l0-0.2c-0.3-0.4-0.8-1-1.3-2.2c-0.3-0.2-0.7-0.3-1.2-0.5c-0.9-0.2-2-0.3-2.6-1.7%20c-0.3-0.1-0.8-0.1-1.2-0.1h-0.3l-0.2-0.3c-0.4-0.2-1.2-0.4-1.5-0.1c-0.2,0.2-0.1,0.5-0.1,0.8l0.2,0.7l-0.6,0.4%20c-2.9,1.9-6.9,0.5-10.8-0.9c-0.9-0.3-1.8-0.6-2.6-0.9c-2,0.7-4.3,1.2-6,1.2l-0.2,0c-0.1,0-0.1,0-0.2-0.1c-1.4,1-5.1,2.4-6.8,3%20c-0.2,0.8-0.6,2-1.8,2.6l-3.8,3.4l-4.1,2.9l-5,2.2c-0.5,0.5-1.1,0.9-1.6,1.3l0.6,0.4l-1.1,0.8c-0.5,0.3-1,0.7-1.7,1.2%20c-1.6,1.1-4,2.7-4.4,3.9l-0.5,1.9l-0.7-1c0.2,0.9-0.5,1.8-0.9,2.5c-0.1,0.2-0.2,0.3-0.3,0.4l-0.3,0.6l-0.7-0.1l-0.3,1.8%20c-0.1,0.5-0.3,2.1-0.3,2.7c0,0.6,0.3,1.8,0.6,3.1c0.6,2.7,1.4,6,1.2,8.2c0.4,0.1,0.7,0.4,0.9,0.6c0.7,0.9,0.2,2.1,0.1,2.4%20l-0.1,0.1c0,0.1-0.1,0.2-0.1,0.3c-0.1,0.3-0.3,0.8-0.9,1.1c-0.4,0.2-0.8,0.1-1.2,0C278.8,521,277.8,521.3,276.8,521.3z%20M274.9,519.6c0.1,0.2,0.3,0.3,0.4,0.3c0.2,0.1,0.4,0,0.5,0l-0.4-0.5L274.9,519.6z%20M275.5,519.3l0.5,0.4l0.2-0.5c0,0,0,0,0,0%20c0-0.1,0-0.2,0-0.3L275.5,519.3z%20M276.3,519.3c0.9,0.1,2.2-0.3,2.6-0.5l0.4-0.2l0.4,0.2c0-0.1,0.1-0.3,0.2-0.4%20c0-0.1,0-0.1,0.1-0.2c-0.1,0-0.2,0-0.3,0l-1.8,0.3l0.7-1.6c0.6-1.6-0.3-5.6-1-8.3c-0.4-1.5-0.7-2.7-0.7-3.5c0-0.3,0-0.7,0.1-1.1%20l-1.4,0.7l2.7-6.3l1,0.1l0,0c0.2-0.3,0.5-0.8,0.6-1c0,0-0.1,0-0.1-0.1l-0.9-0.4l0.4-0.9c0.3-0.7,1.3-1.3,2.2-1.4%20c0.1,0,0.1,0,0.2,0c0.9-1.5,2.9-2.8,4.8-4.1c0.1-0.1,0.3-0.2,0.4-0.3l-0.4-0.7l0.6-0.6c0.2-0.2,0.4-0.3,0.6-0.3%20c0.5-0.3,1.4-0.9,2.3-1.7l0.1-0.1l5.2-2.3l3.8-2.7l4-3.6c0.7-0.3,0.9-1.5,0.9-1.7l0.1-0.6l0.6-0.2c3-1.1,6.5-2.3,7-2.8l0.5,0.8%20h1.2v-1.1c0-0.1-0.3-0.2-0.4-0.2c0.1,0,0.2,0.1,0.3,0.1c1.5,0,3.7-0.5,5.5-1.2l0.3-0.1l0.3,0.1c1,0.3,2,0.7,3,1%20c3.1,1.1,6.3,2.2,8.5,1.3c-0.1-1.2,0.5-1.8,0.9-2.1c1-0.8,2.5-0.7,3.5-0.3c1.1,0.1,2.1,0.6,2.2,0.6l0.4,0.2l0.1,0.4%20c0.2,0.7,0.5,0.8,1.4,1c0.6,0.2,1.4,0.4,2.1,1l0.2,0.2l0.1,0.2c0.6,1.3,1,1.9,1.2,2.1c0,0,0,0,0,0c1.1,0.7,2.1,0.9,3.8,0.7%20c0.1-0.5,0.4-1.1,1-1.4c1.1-0.6,2.7-0.3,5.3,0.8c0.1-0.3,0.1-0.8,0-1.3c-0.1-0.4-0.2-1.2,0.5-1.6c0.7-0.4,1.4,0.2,1.8,0.6%20c0.2,0.2,0.3,0.2,0.3,0.2c0,0,0.1-0.1,0.2-0.1c0.2-0.1,0.6-0.3,1-0.3c-0.2-0.1-0.3-0.3-0.5-0.5c-0.3-0.2-0.5-0.4-0.6-0.5%20c-0.2,0-0.4-0.1-0.6-0.2c-0.7-0.4-0.8-1.2-0.8-1.9c-0.1-0.6-0.1-1.1,0.1-1.5c-0.3,0-0.6,0-0.9-0.1c-0.9-0.3-1.6-1.1-2.2-2.3%20l-0.2-0.4l0.2-0.4c0.3-0.5,0.6-1,0.8-1.4c0-0.1,0.1-0.1,0.1-0.2l-0.1-0.2l0.5-0.6c0.5-0.5,1.1-0.5,2.6,0.1c0.3,0,0.6,0.1,0.9,0.3%20l0.8,0.3l-0.1,0.4c0.1,0.1,0.2,0.2,0.2,0.3c0.2,0.2,0.4,0.5,0.6,0.7c3.7-2.6,9.3-3.9,11.5-4.3l0.6-0.1l0.1,0.5l0.3-0.6%20c-0.3-0.1-0.6-0.1-0.8,0l0.4-0.2l0.5,0.1c0.2,0.1,0.5,0.2,0.7,0.7l0.2,0.5c0.1-0.1,0.2-0.2,0.4-0.3c0.1-0.2,0.2-0.8,0.2-1.3%20c0.2-1.1,0.3-2.4,1.1-3.2l0.7-0.7l0.7,0.7c0.9,0.9,1.9,2.9,2.4,4c0.6-0.2,1-0.4,1.4-0.8c0-0.4,0.1-0.7,0.1-1v-0.3%20c0-0.1,0.1-0.2,0.1-0.3l0-0.1l0-0.1c0-0.2,0-0.4,0-0.5c-0.2-0.6-0.7-1.4-0.9-1.7l1.6-1.2c0.4,0.4,1,1.2,1.3,2.4%20c0.1,0.2,0.1,0.3,0.1,0.5c0.4,0.2,0.8,0.5,1.3,0.8c1.6,1.1,3.5,2.5,5.5,1.7c0.9-0.4,1.7-0.1,2.2,0.9c0.2,0.3,0.3,0.5,0.9,0.5%20c-0.1-0.3-0.1-0.6,0.1-1c0.5-0.7,1.4-0.7,5,0c3.2,0.7,4.1,1.7,4.8,2.8c0.4,0.6,0.6,0.9,2.4,1c2.9,0.2,3.6-0.4,5.1-1.8%20c0.7-0.6,1.5-1.3,2.6-2.1c2.3-2.7,7.9-1.4,8.6-1.3l0.5,0.1l0.2,0.5c0.4,0.9,1.5,2.2,2.5,2.4l0.5,0.1l0.2,0.4%20c0.8,2,2.7,3.4,5.6,4.3l0.1,0c1.2,0.5,2.2,1.4,3.1,2.8c1.9,1.8,1.2,6.2,1,7l0,0c0,0-0.4,2.6-0.6,6c0.1,0.1,0.2,0.2,0.4,0.3%20c0-0.1,0.1-0.2,0.1-0.3c0.1-0.5,0.4-1.3,1.2-1.7c0.8-0.3,1.6,0.1,2.2,0.5c0.3,0.1,0.5,0.3,0.6,0.6c0.4,0.7-0.1,1.6-0.7,2.8%20c-0.3,0.6-0.6,1.3-0.8,1.8c1.2,2.8,2.5,5.1,4.7,6.1l0.4,0.1l0-0.1l1,0l1,0l0,1c0,1,0.3,2.3,0.9,2.7c1.5,0.8,2.6,2.5,3,4.5%20c3.4,1.8,7,4.1,8.6,6.9c0.4-0.2,0.9-0.3,1.4-0.2c0.8,0.2,1.2,0.9,1.5,1.4c0.1,0.2,0.2,0.3,0.3,0.5c0.1,0.1,0.2,0.3,0.3,0.4%20c0.2-0.1,0.4-0.2,0.6-0.3c0.7-0.4,1.6-0.9,2.6-1c0-0.1,0-0.3,0-0.4c0-2.3,0.1-6,2-7.8c-0.1-2.4-1.2-9.2-2.2-11.9%20c-3.4-3.3-6.4-9.6-7.6-12.2l-2.4-5.1l2.4,2.4c-0.2-2-0.9-3-1.4-3.5c-0.6-0.5-1.1-0.6-1.1-0.6l0,0l-0.1,0l-0.1,0%20c-1.7-0.4-8-11.7-8.8-13.6c-0.4-0.9-0.7-1.9-1-2.9c-0.6-1.8-1.3-3.9-2-4.8l-0.5-0.4l0.4-0.5l-0.5,0c-0.1-5.2,1.9-12.1,3.8-16.6%20l0.1-0.2c0.5-0.7,1-1.5,1.1-2.3l0.2-1.3l1.2,0.5c0.2,0.1,1.2,0,1.5-0.4c0.3-0.4-0.2-1.2-0.5-1.5l-0.8-1.1l1.3-0.4%20c0,0,0.2-0.1,0.3-0.1c0.7-0.3,2-0.8,3.2-1.1c0.2-0.5,0.4-1.3,0.6-2.2l0.1-0.4l0.4-0.2c1.2-0.7,2.4-1.7,2.7-2%20c0.4-0.6,2.5-3.9,4.5-8.9l0.1-0.2c0.3-0.5,0.8-1.1,1.2-1.7c0.3-0.4,0.7-0.9,0.9-1.2c-0.2-0.4-0.2-0.8,0.1-1.2%20c0.5-0.6,1.2-0.3,1.6,0c0.1,0,0.1-0.1,0.2-0.1c0.6-0.4,1.7-1,3.7-1.1c0.4-0.2,0.8-0.6,1.1-0.8c0.4-1.9,2.3-8.2,7.1-10.2%20c2.3-1.3,4.2-2,5.4-1.9c0.2-0.4,0.4-0.7,0.4-0.8c0-0.2,0-0.3,0-0.3c-0.1,0-0.2,0-0.3,0.1c-0.5,0.1-1,0.2-1.6,0l-0.3-0.1l-0.2-0.2%20c-0.9-1.2-0.6-2.4-0.4-3.2c0,0,0,0,0-0.1c-0.4-0.5-0.8-1.2-0.7-1.8c0-0.5,0.3-0.9,0.8-1.1l0.3-0.1c0.5-0.1,1.2-0.1,1.9,0%20c0.5,0,1.3,0,1.6,0c1.7-2.2,3.1-5.1,2.5-6.4c-1.8-4.5-4.9-4.2-6.9-4c-0.1,0-0.3,0-0.4,0c-0.3,0.1-0.5,0.1-0.8,0%20c-0.5,0-1-0.2-1.2-0.8l0.1-0.1l-1,0v-2c-1,0-1.1,0.5-1.1,0.8c0-0.3-0.3-1.4-1.1-2.1c-1.9-1.6-2.7-2.7-2.4-3.8%20c0.2-0.9,1-1.2,1.8-1.4c-0.8-0.7-1.3-1.3-1.3-2c0-0.6,0.2-1,0.5-1.3c-0.3-0.4-0.5-0.7-0.6-1c-0.1-0.2-0.1-0.3-0.2-0.5%20c-0.5-0.8-0.4-1.6-0.3-2.2c0-0.2,0.1-0.4,0.1-0.5c-0.6-0.7-0.9-1.3-1.3-1.9l-0.6-1l1.2-0.5c0.6-0.3,1.7-0.7,2.6,0.1%20c0.5,0.4,0.9,0.7,1.2,0.9l0.4-0.3c0.2-0.1,0.4-0.2,0.7-0.1l0-0.1l0.5-0.4c0.6-0.3,1.1-0.1,1.5,0.2c1,0.6,1.4,0.7,1.7,0.4%20c0.5-0.5,0.7-0.8,0.9-0.9l0,0c0.1-0.2,0.2-0.4,0.3-0.7l0.1-1.8l0.2-3c-0.4-0.7-1.3-2.7-1.6-5.8c-0.4-1-2-4-2.5-5.1l-0.7-1.3%20l2.6-0.3l4.2,2.3l2.5,0.5l0.2,0.5c0.9-1.7,2.2-4.5,2.8-6.9c0.7-2.9,0.4-6,0.1-7.3l-2.7-0.2l0.5-2.5l0.3-0.2%20c0.7-0.5,16.6-11,20.9-12.4c0.5-0.3,3-1.7,4.7-3.7c-1.2-1.9-2.6-4.4-2.7-4.5l-0.8-1.5l1.7,0c4.2,0.1,6,0.3,6.8,0.5%20c0.4-0.2,0.9-0.6,1.2-0.9l0.4-0.4c-0.2,0.1-0.4,0.2-0.7,0.3c-1.9,0.5-3.8-1-5.9-4.2l-0.1-0.2l0-0.3c0-0.3-0.1-0.8-0.2-1.3%20c-0.2-1.3-0.4-2.3-0.3-3.1c-1.5-0.8-2.2-1.6-2.5-2.2l-0.2-0.2c-0.2-0.2-0.4-0.6-0.2-1.2c0,0,0,0,0,0c0,0.1-0.1,0.1-0.1,0.1%20c0,0,0-0.2-0.2-0.5c-0.1-0.1-0.9-1.5-0.4-2.3l0.3-0.5l0.6,0.1c0.6,0.1,0.8,0.5,1.4,2c1.1-0.1,3-0.5,4.9-1.3%20c0.1-1.1-0.5-3.1-0.9-4.7c-0.4-1.3-0.7-2.5-0.8-3.5l-0.1-0.9l0.9-0.2c1-0.2,2.9-2.4,3.1-4.1l0-0.7l1.7-0.5%20c0.1-1.6,0.5-3.9,0.7-4.7c0-0.1,0-0.2,0-0.2l0.1-0.6l0.6-0.2l1.6-0.5l-0.3,1.4c0.1,0.1,0.2,0.3,0.5,0.5c0.1,0,1,0.2,2.3-0.3%20c1-0.3,2.7-1.2,3.5-3.2c0-0.2,0.2-0.4,0.7-1.2c0.6-0.9,1.6-2.3,2.1-3.3c-0.2-0.5-0.3-1.1-0.4-1.9c-0.1-0.6-0.3-1.7-0.5-2.1%20l-0.4,0.1l-0.4-0.6c-0.5-0.8-0.8-1.6-1-2.3c-0.4-1.1-0.4-1.1-0.7-1c-0.7,0.1-2.6,0.2-3.1-1c-0.4-1-1.5-4.7-2.4-7.9%20c-0.5-1.7-0.9-3.1-1.1-3.8c-0.3-0.4-0.5-0.8-0.7-1.1c-0.6-1-0.9-1.5-4.1-4.1c-0.4,0.1-0.8,0.4-1.4,0.9c-0.8,0.7-1.7,1.5-3.1,1.8%20c-1.4,0.2-2.5-0.6-3.2-1.3c-0.4,0.7-0.8,1.9-1.1,2.9c-0.5,1.7-1,3.4-2,4.4c0,0.3,0,0.7,0,1.3c-0.1,6.6-0.5,11-2,12.2%20c-0.2,0.1-0.4,0.2-0.6,0.3l0.1,0.1l0,2.6l-3.9,8.7l0.2-3.8c-0.7,0.4-1.1,0.9-1.2,1.3l0.6-0.2l-0.1,0.8l0.4,0.2l-0.4,0.8%20c0,0,0,0,0,0.1c0,0.1,0,0.3,0,0.4c0,0,0,0,0,0.1l-1.1-0.1c-1,0.3-2.2,0.6-3.5,1c-2.8,0.8-6.3,1.9-10.5,2.7c0,0.1,0,0.2,0,0.2l0,0%20c0,0.7-0.2,1-0.9,1.1c-0.5,0-0.8-0.2-0.9-0.5l-11.3,2.8c-0.8,0.7-4.4,4-8.7,10.7l-0.2,0.2c0,0-0.3,0.3-0.6,0.8%20c0.4,0.1,0.7,0.3,1,0.6c1.7,1.6,1.3,5.6,1.2,6.4l0,0.2l-0.1,0.2c-0.1,0.1-1.4,2-2.7,3c-1.3,1-5.4,1.9-6.2,2.1%20c-0.8,0.1-2,0.3-3.6,0.5c-3,0.4-7.5,0.9-8.7,1.4c-0.4,0.2-0.5,0.3-0.5,0.4c0,0,0,0.1,0,0.2c0,0.1,0.1,0.3,0.1,0.4%20c0.1,0.7,0.4,1.3,0.8,1.9c0.5,0.9,1,1.9,0.9,3.3l0,0.3l-0.1,0.2c-0.4,0.5-0.6,1-0.8,1.4c-0.2,0.5-0.6,1.2-1.2,1.4%20c-0.6,1.1-2,3.2-3.5,5.5c0,0,0,0,0,0h0.3l-1.3,1.6c-0.5,0.6-1,0.5-1.3,0.4c-1,0-1.8,0.1-2.1,0.1c-0.7,0.3-1.6,0.6-2.4,0.9%20c-0.5,0.1-0.9,0.3-1.2,0.4l-1.5,0.5v0.1l-0.8,0.2c-2.1,0.4-4.2,2.6-4.8,3.5l-2.2,2.5l-2.5,1c-0.3,0.3-0.8,0.4-1.2,0.6%20c-0.8,0.3-2,0.6-2.9,1.8l-0.3,0.4l-0.6-0.1c-1.3-0.2-7.7-1.7-8.9-2h-1.1l0.1-1.1c0.2-1.9,1.8-4.1,2.9-5.2%20c-0.4-0.6-0.5-1.2-0.1-2.3c0.4-1,1.3-1.2,1.8-1.4c0,0,0,0,0,0c0-0.2,0-0.3,0.1-0.5c0.2-0.4,0.5-0.7,0.9-0.9c-0.2-0.5,0-1,0.4-1.4%20l0.2-0.2l0.3,0c0.2-0.1,0.4-1,0.4-1.5c-0.2-0.5-0.1-1.5,0.1-4.7c-0.8-0.8-2.4-3-3.5-7.9l0-0.1c-0.4-0.8-1-1.9-2.5-2.1%20c-2.2,1.5-2.3,3.1-2.3,3.1l0,0.5l-0.3,0.3l-2.4,2l-0.3,0c-0.2,0-1.8,0.2-2.8-1c-0.8-1-0.8-2.7,0-4.8l0.2-0.8h0.7%20c0.5,0,0.9,0.2,1.7-3.2l0.1-0.4l0.5-0.2c0.2-0.1,0.4-0.1,0.5-0.2c-0.2-1.8-0.7-4.8-1.1-6.6c-0.6-1.5-1.4-2.6-1.7-3.1l-10.5-4%20l-0.3,0.4l-1.2,1.9c0.1,0.5,0.2,1,0.3,1.3l0.3,0.8l-0.8,0.4c-0.7,0.4-1.1,0.9-1.4,1.2c0.1,0.1,0.2,0.2,0.2,0.4%20c0.6,1.2,0.8,3.8-1.4,5.5l-0.2,0.1c-1.4,0.6-2.3,0.3-2.7-0.1c-0.4-0.3-0.6-0.7-0.7-1c-3.1,4.5-2.7,8.2-2.4,10.7%20c0.1,0.5,0.1,0.9,0.1,1.3l0,0.1l0,0.1c-0.1,1.6-0.4,2.2-0.7,2.6c0,0,0,0.1,0,0.1c0.2,0.7,0.7,2,1.3,3.3c0.8,1.9,1.8,4,2.1,5.8%20c0.9,6.1-0.1,9.9-2.7,16.2l-0.3,0.6h-0.7c-0.2,0-5.4,0.3-8.5-0.4l-0.8-0.2v-0.4c-2.2-1.7-3.3-4.9-3.1-9.9h0l-0.2-0.9l0.4-0.2%20c-0.7-2.8-1.3-6-0.8-11.6l0.8-6.6c0,0,0.3-2.3,1.6-7.5c-0.2,0-0.4,0-0.6,0c-0.5,0.7-0.9,1.3-1.2,1.8c-0.5,0.9-1.1,1.9-2.3,1.6%20c-0.7-0.1-1.2-0.4-1.5-1c-0.4-1,0.2-1.9,1-3.2c0.7-1.1,1.6-2.5,1.6-3.7c0,0,0,0,0,0c0,0,0,0,0,0c0-0.1,0-0.1,0-0.2l0.4,0l0.4-0.4%20l-0.3-0.7c0.4-0.3,1.4-2.1,2-3.4c0.6-1.3,1.3-2.6,1.9-3.5l0.4-0.6l0.7,0.1c0.5,0.1,0.6,0.1,0.6,0.1h0c0,0,0.1-0.1,0.1-0.2%20c0.3-0.4,0.8-1,2-1.5l1.7-0.7l-0.2,1.1c1.1-1.6,3.7-2.2,5.3-2.6c0.3-0.1,0.5-0.1,0.7-0.2c0.1-0.1,0.2,0,0.3-0.2%20c0.3-0.4,0.8-0.9,2-0.9c0,0,0,0,0,0c2.8,0,3.9,0.3,5.2,1.2c0.1-0.2,0.2-0.4,0.3-0.6c0.1-0.1,0.1-0.2,0.2-0.3l0.3-0.4l0.5-0.1%20c1.1-0.1,2.3-0.2,3.4-0.2c-0.1-0.1-0.1-0.1-0.2-0.2c-1.2-1.5-1.9-2.5-2.4-3.3c-1.7,0.6-3,0.7-4,0.2c-1.1-0.5-1.6-1.5-1.9-2.4%20c-1.1,0.4-2.4,0.6-3.9,0.8c-0.6,0.1-1.2,0.2-1.9,0.3c-0.2,0.1-0.7,0.4-1.1,0.6c-2.2,1.3-5.7,3.5-8.1,2.3c-0.9,0.1-1.9,0.3-1.9,0.3%20l-0.5,0.1l-0.4-0.4c-4.5-4.6-6.5-4-8.8-3.2l-1.1,0.3l-0.3-1c-0.3-1.1-0.5-1.9,0-2.5c0.2-0.2,0.4-0.3,0.6-0.4l0.9-1.4%20c0.5-0.9,1-1.4,1.4-1.8c-1.3,0.7-2.7,2-2.8,2.5l-0.1,0.3l-0.2,0.2c-2,2.2-7.7,5.6-10.6,6.2c-0.8,2.2-3.9,2.7-4.6,2.7h-0.2%20l-0.2-0.1c-0.8-0.3-1.7-0.5-3.1-0.8l-0.5-0.1l-0.2-0.5c-0.4-1-0.2-1.8,0.1-2.2c-0.6,0.2-1.4,0.5-2.2,0.9c-2.2,1-4.9,2.2-7.3,1.9%20l-0.5,0.5l-1.5-1.3c0.8-1.1,11.6-12.7,12.7-13.3c0,0,7.2-4.4,10.1-3c3.3,0.3,5.4-0.1,6.1-1.3c0.4-0.6,0.3-1.3,0.1-1.7%20c-1.1,0.2-4,1-6.5,1.8l-0.3,0.1l-5.5,0.3c-1.2,0.2-2.4,0.3-3.4,0.4c-2.8,0.3-4.7,0.5-7,1.6l-0.5,0.2l-0.5-0.3c0,0-4.6-3-8.4-3%20c-0.5,0-0.9-0.2-1.1-0.7c-0.1-0.2-0.4-0.7,0.3-1.9c-1,0-2.9,0.1-6.4,0.6c-0.8,0.2-2.2-0.2-4.1-0.6c-0.3-0.1-0.5-0.1-0.7-0.2%20c-0.3-0.1-0.6-0.1-0.9-0.2c-0.9-0.1-2.2-0.3-3.7-1.6c-1.1-1-1.8-2.9-1.9-3.7c-0.2-0.8-1.1-2-1.6-2.3c-0.5,0.1-1,0.2-1.2,0.3%20c0,0.1,0,0.2,0,0.5v2.8h-1c-10.9,0-13.2,0.1-15.2,0.5l-0.1,0.1l-0.1,0l-54.3-1.4c-16.4-1.5-33.6-3.1-47.8-5.1%20c-19-2.7-34.7-5.3-42.2-6.6c-2.5-0.4-4.5-0.8-4.8-0.8l-0.2,0c-0.1,0-5.4-1.6-8.2-1.8l0.1-0.6l-0.1,0.6c-1.6-0.4-35.1-8-43.1-10.3%20c0.1,0.4,0.3,0.8,0.5,1.2c0.5,1.1,1.1,2.2,0.7,3.2l-0.1,0.3c-0.1,0.6,0.1,2.6,0.3,3.8c0.2,1.7,0.3,2.5,0.1,3.1l-0.2,4.6l-0.9,0.1%20c-1.1,0.1-1.4,0.9-1.8,2.7c-0.1,0.7-0.3,1.3-0.6,1.8c-0.2,0.4-0.6,0.6-1,0.6c-0.8,0-1.3-0.8-1.8-1.7c-1.2-2.4-2.7-7.6-1.3-10.6%20c-3.7-4.6-8.6-9.1-10.3-8.6c-0.4,0.1-0.7,0.9-0.8,2c-0.2,2.7,0.2,6.6,0.5,9.7c0.5,4.7,0.5,5.7-0.2,6.2c-0.2,0.1-0.4,0.2-0.5,0.2%20c-0.1,0.1-0.2,0.2-0.2,0.2c-0.2,1.6-0.2,1.6,0.4,3.1l0,0.1c0.2,0.6-0.2,1-0.7,1.5c-0.5,0.5-1.3,1.4-1.3,2.1c0,0.2,0,0.3,0,0.4%20L61,246l-0.9,3.3l0.5,0.4l-0.2,0.7c-3.4,9.5-8.2,21.3-11.6,29.6l-0.1,0.3l-0.2,0.2c-2.4,1.7-4.2,5.3-4.5,9.1%20c-0.1,0.9-0.2,1.7-0.3,2.4c-0.2,1.7-0.4,2.9,0,3.5l-1,0.6l1.3,0.1c-0.2,4.3-2.2,11-4,14.2l-0.1,0.2l-0.2,0.1%20c-1.2,0.7-1.9,1.6-2.1,2.7c-0.5,2.7,2.1,5.8,2.1,5.8l0.3,0.3l0,0.4c-0.1,1-0.1,1.9-0.2,2.8c-0.1,2-0.3,4.1-0.7,6.8%20c-0.7,5.6,1.2,7,2.3,7.7c0.1,0.1,0.3,0.2,0.4,0.3l0.3,0.2l0.1,0.4c0.1,0.8,0.4,1.6,0.5,2.2c0.4,1.3,0.8,2.5,0.2,3.7%20c0.3,0.4,0.7,0.7,1,1.1c0.4,0.4,0.8,0.7,1.1,1.2l0.2,0.2l0.1,0.8l-0.2,0.2c0,0.3,0,0.6-0.1,1.1l1.2-0.2l-0.6,1.6%20c-0.4,1.2-0.7,4.7-0.4,5.4c0.4,1.4,1.1,2,2,2.5c1.1,0.8,2.5,1.7,1.9,4.2l-0.1,0.5l-0.4,0.2c-1.6,0.8-1.8,2.3-1.6,4.5%20c0.9,1.2,2.1,3.7,3.3,6.5c1.4,3,2.9,6.5,4.4,8.5l0.3,0.4l-0.2,0.5c-1.1,2.8-1.3,5.3-0.3,6.6c0.7,1,2.1,1.5,4.1,1.5%20c2.3,0,4.7,2.6,4.9,2.9l1.6,1.8c1.5,1.4,3.8,3.3,4.9,3.6c0.2,0.1,0.3,0.1,0.4,0.1c0.4-0.2,0.9-0.1,1.3-0.1l1,0.2l-0.2,1%20c-0.1,0.7-0.1,2,0.2,2.7c2.7,1.1,4.7,2.7,6.2,5.1c1.1,1.7,2.8,8.1,3,11.1c4.1,0.2,10.1,0.8,16,1.5l6.9,0.8l0.1,0.8%20c0.1,0.6,0.1,1,0.1,1.5c0,0.3,0,0.5,0,0.9c6.5,3.2,10.1,5.3,15.5,8.4c1,0.5,2,1.2,3.2,1.9c2.9,1.8,6.6,4,11.2,6.2l0.9,0.5%20c3.9,2,8.7,4.5,13.8,4.2l0.1,0l9.9,2.1c1.6,0.8,4.8,0.4,7-0.5l1.1-4.7l0.8,0c6.7,0.2,11.6,0.7,14.7,1.1l0-0.2l1,0.2%20c0.7,0,1.3,0.1,1.9,0.3l0.2,0.1l0.2,0.2c0.8,0.8,1.9,2.1,3.1,3.6c2.7,3.4,6.5,8,10.5,10.2l0.4,0.2l0.1,0.4%20c0.8,2.6,1.4,3.6,1.8,4.2c0.7,1.1,0.8,1.6,0.6,4.1c0.1,0.2,0.2,0.4,0.2,0.7c1,2.9,2.5,6.9,13.7,11.3c0.8,0.3,2.6-3,3.4-4.4%20c1.2-2.3,2-3.8,3.2-3.9l0.4,0l0.3,0.2c1.7,1.1,3.1,0.8,5.1,0.4c1.7-0.4,3.8-0.8,6.4-0.3l0.4,0.1l0.2,0.4c1.6,2.4,2.6,3.3,3.7,4.4%20c0.9,0.9,1.9,1.8,3.2,3.6c0.6,1,1.2,2.3,1.9,3.7c1.4,2.9,3.2,6.6,4.8,7.9l0.2,0.2l1.1,3c0.8,0.8,3.2,3.1,3.7,4.1%20c1.7,2.9,1.7,3.8,1.5,4.9c0,0.2-0.1,0.4-0.1,0.7c0,0,0,0.1,0.1,0.1c0.3,0.6,1,2,3,6.9c1,0.7,2.6,1.4,4.2,2.2%20c2.5,1.2,4.2,2,5.1,2.8c0.4,0.1,1,0,1.6,0c2.1,0,5-0.1,6.4,2.2c0,0.1,0.1,0.1,0.1,0.1l-0.5,0.3C276.2,519,276.3,519.2,276.3,519.3%20z%20M358.2,474.6c0.2,0.1,0.5,0.3,0.8,0.5c3.2,2.7,4.1,2.5,4.1,2.5c0-0.1,0-0.5,0-0.6c0,0,0-0.1,0-0.1c-0.7-0.5-2.8-1.5-4.7-2.3%20C358.4,474.6,358.3,474.6,358.2,474.6z%20M353.7,467.1c0.3,0.5,0.6,0.8,0.8,0.8c0.1,0,0.1,0,0.1,0l0.2-0.1l0.2,0%20c0.2,0,0.5-0.1,0.8-0.2c0.1-0.1,0.3-0.1,0.5-0.2c-0.1-0.2-0.3-0.3-0.4-0.5c-0.1-0.2-0.3-0.4-0.4-0.5c-0.4-0.2-0.8-0.3-1-0.3%20c-0.1,0.1-0.1,0.2-0.2,0.3C354,466.6,353.9,466.9,353.7,467.1z%20M365.3,327.2c2.3,0.4,5.4,0.3,6.7,0.3c2.3-5.7,3.1-9.1,2.3-14.5%20c-0.3-1.5-1.2-3.5-2-5.3c-0.7-1.5-1.2-2.8-1.5-3.7c-0.1-0.8,0-1.2,0.3-1.7c0.1-0.1,0.2-0.3,0.3-1.5c0-0.3-0.1-0.7-0.1-1.1%20c-0.3-2.7-0.8-7.1,3-12.4l0.2-0.2l3.3-2.5l-0.3,2.4c-0.1,0.5,0,1.2,0.2,1.3c0,0,0.2,0.1,0.6-0.1c0.7-0.6,0.9-1.3,1-1.7%20c0-0.4,0-0.7-0.1-1l-1.3,0.4l0.5-1.8c0-0.1,0.4-1.5,2-2.7c-0.1-0.6-0.2-1.1-0.3-1.2l-0.1-0.4l2-3.2l-0.1-0.1%20c-1.3-1-1.9-1.4-4.4-1.4c-0.3,0-0.3,0-0.5,0.3c-0.2,0.2-0.4,0.6-0.9,0.9l-0.2,0.1c-0.3,0.1-0.6,0.2-1.1,0.3%20c-1.2,0.3-3.6,0.8-4.2,1.8c0.1,1.4-0.8,2.6-1.9,3.2c-0.3,0.2-0.6,0.3-0.9,0.3l-0.1,0.2l-0.9-0.3l-0.9-0.4l0.4-0.9%20c0,0,0-0.1,0.1-0.1c-0.3,0.2-0.7,0.2-1.3,0.2c-0.5,0.8-1,1.8-1.5,2.8c-0.9,1.8-1.6,3.2-2.3,3.9c0,0.9-0.3,1.7-0.6,2.5l0.3-0.1%20c0.2,0,1.8-0.3,3,0.5l0.6,0.4l-0.2,0.7c-1.4,5.7-1.7,8.1-1.7,8.1l-0.8,6.5c-0.5,5.9,0.2,8.9,1,11.8l0.3,1l-0.7,0.2%20c-0.1,4.2,0.8,7.1,2.6,8.1L365.3,327.2z%20M517,298.6l0.6,1.2c0.1,0.2,0.3,0.4,0.4,0.4c0.1,0,0.4-0.1,0.8-0.5l0.6-0.6l0.5,0.3%20c-0.1-0.2-0.3-0.4-0.4-0.6c-0.6-0.9-1-1.4-1.5-1.6C517.7,297.8,517.4,298.2,517,298.6z%20M356.1,260.5c-0.2,0-0.8,0.3-1.1,0.5%20c-0.1,0.1-0.2,0.1-0.3,0.1c0,0,0.1,0,0.1,0c0.1,0,0.3,0,0.4,0C355.9,261,356.1,261,356.1,260.5%20C356.2,260.5,356.2,260.5,356.1,260.5C356.2,260.5,356.1,260.5,356.1,260.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Q_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='477px'%20height='689px'%20viewBox='0%200%20477%20689'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20sketchtool%2040.1%20(33804)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eD5222DCB-A5E7-4783-ABD3-E5AAF56D153F%3c/title%3e%3cdesc%3eCreated%20with%20sketchtool.%3c/desc%3e%3cdefs%3e%3crect%20id='path-1'%20x='0.760775862'%20y='88.8671642'%20width='90'%20height='138'%3e%3c/rect%3e%3cmask%20id='mask-2'%20maskContentUnits='userSpaceOnUse'%20maskUnits='objectBoundingBox'%20x='0'%20y='0'%20width='90'%20height='138'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='box-and-whiskers-plot'%20transform='translate(-1362.000000,%20-6618.000000)'%20stroke='%23E5E5E5'%3e%3cg%20id='boxplot_small'%20transform='translate(1362.000000,%206618.000000)'%3e%3cg%20id='Group-40'%20transform='translate(193.000000,%20187.000000)'%3e%3cg%20id='Group-39'%20transform='translate(0.239224,%200.132836)'%3e%3cuse%20id='Rectangle-32'%20mask='url(%23mask-2)'%20stroke-width='2'%20xlink:href='%23path-1'%3e%3c/use%3e%3cpath%20d='M0.760775862,185.367164%20L90.7607759,185.367164'%20id='Path-63'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M0.760775862,313.367164%20L90.7607759,313.367164'%20id='Path-63'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M0.760775862,1.36716418%20L90.7607759,1.36716418'%20id='Path-63-Copy'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M46.2607759,0.867164179%20L46.2607759,88.8671642'%20id='Path-64'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M46.2607759,225.867164%20L46.2607759,313.867164'%20id='Path-64'%20fill='%23D8D8D8'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Z_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M148.3,490.8l-1-1.3c-25.5-31.2-39.6-70.6-39.6-111c0-40.4,14.1-79.8,39.6-111l1-1.3l26.9,26.9l-0.8,1%20c-38.6,49.6-38.6,118.9,0,168.6l0.8,1L148.3,490.8z%20M148.5,270.8c-24.4,30.4-37.9,68.6-37.9,107.8c0,39.1,13.4,77.4,37.9,107.8%20l22.7-22.7c-38.4-50.3-38.4-119.9,0-170.2L148.5,270.8z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M368.3,270.8l-1-0.8c-23.9-18.6-53.9-28.9-84.3-28.9c-30.4,0-60.3,10.2-84.3,28.9l-1,0.8l-26.9-26.9%20l1.3-1c31.2-25.5,70.6-39.6,111-39.6c40.4,0,79.8,14.1,111,39.6l1.3,1L368.3,270.8z%20M283,238.1c30.6,0,60.8,10.2,85.1,28.7%20l22.7-22.7c-30.4-24.4-68.6-37.9-107.8-37.9c-39.2,0-77.4,13.4-107.8,37.9l22.7,22.7C222.2,248.3,252.4,238.1,283,238.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M417.7,490.8l-26.9-26.9l0.8-1c38.6-49.6,38.6-118.9,0-168.6l-0.8-1l26.9-26.9l1,1.3%20c25.5,31.2,39.6,70.6,39.6,111c0,40.4-14.1,79.8-39.6,111L417.7,490.8z%20M394.8,463.7l22.7,22.7c24.4-30.4,37.9-68.6,37.9-107.8%20c0-39.1-13.4-77.3-37.9-107.8l-22.7,22.7C433.1,343.8,433.1,413.4,394.8,463.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,553.9L283,553.9c-40.4,0-79.8-14.1-111-39.6l-1.3-1l26.9-26.9l1,0.8c23.9,18.6,53.9,28.9,84.3,28.9%20c30.4,0,60.4-10.2,84.3-28.9l1-0.8l26.9,26.9l-1.3,1C362.8,539.9,323.4,553.9,283,553.9z%20M175.2,513.1%20c30.4,24.4,68.6,37.9,107.7,37.9h0.1c39.1,0,77.3-13.4,107.8-37.9l-22.7-22.7c-24.3,18.5-54.4,28.7-85.1,28.7%20c-30.6,0-60.8-10.2-85.1-28.7L175.2,513.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,458c-43.8,0-79.4-35.6-79.4-79.4c0-43.8,35.6-79.4,79.4-79.4c43.8,0,79.4,35.6,79.4,79.4%20C362.4,422.4,326.8,458,283,458z%20M283,302.2c-42.1,0-76.4,34.3-76.4,76.4c0,42.1,34.3,76.4,76.4,76.4c42.1,0,76.4-34.3,76.4-76.4%20C359.4,336.5,325.1,302.2,283,302.2z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,493c-63.1,0-114.4-51.3-114.4-114.4S219.9,264.2,283,264.2c63.1,0,114.4,51.3,114.4,114.4%20S346.1,493,283,493z%20M283,267.2c-61.4,0-111.4,50-111.4,111.4S221.6,490,283,490c61.4,0,111.4-50,111.4-111.4%20S344.4,267.2,283,267.2z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Bu={area:B_,line:j_,bar:z_,column:W_,polar:V_,funnel:U_,pie:q_,scatter:G_,indicator:Y_,table:X_,treemap:K_,areamap:Hu,scattermap:Hu,boxplot:Q_,sunburst:Z_};function J_(e){var r;return(r=Bu[e])!=null?r:Bu["bar"]}const Hs=({iconType:e})=>{var s;const{themeSettings:t}=u.useThemeContext(),r=F.useRef(null),[n,o]=F.useState({width:null,height:null});F.useEffect(()=>{r.current&&o({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const i=J_(e),{t:a}=u.useTranslation();return u.jsxs("div",{ref:r,className:pa.wrapper,children:[u.jsx("div",{className:pa.title,style:{fontFamily:(s=t.typography)==null?void 0:s.fontFamily,fontSize:ex(n.width,n.height)},children:a("chartNoData")}),i?u.jsx("img",{className:pa.image,src:i}):null]})};function ex(e,t){return!e||!t?"18px":e<300?`${Math.max(Math.sqrt(e*e+t*t)*.045,18)}px`:`${Math.min(Math.max(t*.09,18),60)}px`}const tx=(e,t,r)=>({width:(t==null?void 0:t.width)||(e==null?void 0:e.width)||r.width,height:(t==null?void 0:t.height)||(e==null?void 0:e.height)||r.height}),Ei=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:o,onSizeChange:i})=>{const a=F.useRef(null),[s,l]=F.useState(),c=F.useCallback(()=>{var _,x;const E={width:(_=a.current)==null?void 0:_.offsetWidth,height:(x=a.current)==null?void 0:x.offsetHeight};l(b=>{const C=(b==null?void 0:b.width)===0&&E.width===t.width,S=(b==null?void 0:b.height)===0&&E.height===t.height,O={width:C?b.width:E.width,height:S?b.height:E.height};return u.isEqual(b,O)?b:O})},[a,t]);F.useLayoutEffect(()=>{c()},[c]),F.useEffect(()=>(window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)),[c]);const p=F.useMemo(()=>tx(s,r,t),[s,t,r]),h=!!s;F.useEffect(()=>{h&&i&&i(p)},[p,h,i]);const d={width:r!=null&&r.width&&!(o!=null&&o.width)?`${r.width}px`:"100%",height:r!=null&&r.height&&!(o!=null&&o.height)?`${r.height}px`:"100%"},m=(s==null?void 0:s.width)||(s==null?void 0:s.width)===void 0,g=(s==null?void 0:s.height)||(s==null?void 0:s.width)===void 0,v={width:m||o!=null&&o.width?"100%":`${p.width}px`,height:g||o!=null&&o.height?"100%":`${p.height}px`,position:"relative"},y=o!=null&&o.width||o!=null&&o.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},w=n?`${p==null?void 0:p.width}${p==null?void 0:p.height}`:"";return u.jsx("div",{style:d,ref:a,children:u.jsx("div",{style:v,children:u.jsx("div",{style:y,children:p&&(typeof e=="function"?e(p):e)})},w)})},Uf={width:400,height:500},Bs=e=>u.isTable(e)?{width:400,height:500}:u.isIndicator(e)?{width:200,height:200}:{width:400,height:400},rx=25,qf=(e,{hasHeader:t}={})=>{const r=e==="pivot"?Uf:Bs(e);return t&&(r.height=r.height+rx),r},Bo=({isVisible:e,themeSettings:t,children:r})=>u.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[e&&u.jsx("div",{className:"csdk-absolute csdk-h-full csdk-w-full csdk-z-[401] csdk-opacity-80","aria-label":"csdk-loading-overlay",children:u.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:u.jsx("div",{className:"csdk-h-full csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center csdk-bg-transparent",children:u.jsx("div",{style:{backgroundColor:t.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:u.jsx(gs,{color:t==null?void 0:t.chart.textColor})})})})}),r]});function Wa(e,t,r=u.getBaseDateFnsLocale(),n=u.defaultDateConfig){const o=new Map;return[...t.breakBy?t.breakBy:[],...t.x?Array.isArray(t.x)?t.x:[t.x]:[],...t.columns?t.columns:[]].forEach(function(a){if(u.isMeasureColumn(a)||!a.dateFormat||!(e!=null&&e.columns))return;const s=e.columns.findIndex(function(c){return c.name===a.column.name&&u.isDatetime(a.column.type)&&u.isDatetime(c.type)});s!==-1&&o.set(s,a.dateFormat)}),o.size===0||(e.rows=e.rows.map(function(a){return a.map(function(l,c){const p=o.get(c);if(!p)return l;let h,d;if(u.isCell(l))h=q({},l);else{const g=u.createCompareValue(`${l}`,"datetime");d=new Date(g.value),h={data:d.toISOString(),text:`${l}`}}if(!h.data)return l;let m=h.text;try{m=u.applyDateFormat(u.parseISO(h.data),p,r,n)}catch(g){console.error(g)}return h.text=m,h})})),e}function nx(e,t){return ix(e,t)}const ox={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function ix(e,t){const r=ox[e];t.category.length>r.category&&console.warn(`Maximum 'category' length is limited to ${r.category} for '${e}' chart. Taken first ${r.category} categories`);const n=t.category.slice(0,r.category);let o=t.value;return(e!=="pie"||t.category.length>0)&&(t.value.length>r.value&&console.warn(`Maximum 'value' length is limited to ${r.value} for '${e}' chart. Taken first ${r.value} values`),o=t.value.slice(0,r.value)),J(q({},t),{category:n,value:o})}const js=e=>{const t={},r=n=>`$measure${n}_`;return e.forEach((n,o)=>{const i=n.name,s=`${r(o)}${i}`;n.name=s,t[s]=i}),t},ax=(e,t)=>{if(t==="funnel"){const r=u.merge(e);if(r.breakBy.length>0&&r.breakBy[0].sortType===void 0&&r.y.length>0&&r.y[0].sortType===void 0)return r.y[0].sortType="sortDesc",r}return e},Gf=(e,t,r,n,o,i)=>{if(!e)return!0;if(t.length+r.length===0)throw new u.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(a=>{if(e.columns.findIndex(l=>l.name===a.name)===-1)throw new u.TranslatableError("errors.dataOptions.attributeNotFound",{attributeName:a.name})}),r.forEach(a=>{if(e.columns.findIndex(l=>l.name===a.name||l.name===n[a.name])===-1)throw new u.TranslatableError("errors.dataOptions.measureNotFound",{measureName:n[a.name]})}),o&&o.forEach(a=>{if(e.columns.findIndex(l=>l.name===a.attribute.name)===-1)throw new u.TranslatableError("errors.dataOptions.filterAttributeNotFound",{attributeName:a.attribute.name})}),i&&i.forEach(a=>{if(e.columns.findIndex(l=>l.name===a.attribute.name)===-1)throw new u.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:a.attribute.name})}),!0};function sx(e,t){switch(e){case"pie":case"funnel":case"treemap":return nx(e,t);default:return t}}const zs=()=>{const[e,t]=F.useState();if(e)throw e;return t},lx=e=>e==="funnel"?e:u.deriveChartFamily(e),ux=({dataSet:e,chartDataOptions:t,chartType:r,attributes:n,measures:o,dataColumnNamesMapping:i,filters:a,highlights:s,refreshCounter:l,setIsLoading:c,enabled:p=!0,loadData:h})=>{const d=zs(),m=F.useMemo(()=>lx(r),[r]),g=F.useMemo(()=>[void 0,t],[t]),[v,y]=F.useState({}),{app:w}=u.useSisenseContext();return F.useEffect(()=>{if(!p)return;let E=!1;const{filters:_,relations:x}=u.getFilterListAndRelationsJaql(a);if(Wt(e)){if(!w)return;const b=h({app:w,chartDataOptionsInternal:t,queryDescription:{dataSource:e,dimensions:n,measures:o,filters:_,filterRelations:x,highlights:s,count:w.settings.queryLimit}}),C=w==null?void 0:w.settings.loadingIndicatorConfig,S=setTimeout(()=>{C!=null&&C.enabled&&(c==null||c(!0))},C==null?void 0:C.delay);b.then(O=>{const M=Wa(O,t,w==null?void 0:w.settings.locale,w==null?void 0:w.settings.dateConfig);E||y({[m]:[M,t]})}).catch(O=>{d(O)}).finally(()=>{clearTimeout(S),C!=null&&C.enabled&&(c==null||c(!1))})}else{Gf(e,n,o,i,_,s);const b=Wa(e,t,w==null?void 0:w.settings.locale,w==null?void 0:w.settings.dateConfig);y({[m]:[b,t]})}return()=>{E=!0}},[r,t,e,a,s,w,l,p]),v[m]||g},cx=(e,t)=>{switch(t){case"iqr":return dm(e);case"extremums":return fm(e);case"standardDeviation":return pm(e)}},dx=(e,t)=>{switch(t){case"iqr":return hm(e);case"standardDeviation":return mm(e)}},fx=(e,t,r)=>{const{column:n,style:o}=u.splitColumn(e);let i=cx(n,t),a;return o&&(i=i.map(s=>q({column:s},o))),r&&(a=dx(n,t),a&&o&&(a=q({column:a},o))),{values:i,outliers:a}},px=e=>e.value.length>1,Yf=e=>{var h;const{category:t}=e;let r,n,o;if(px(e))r=e.value,o=e.valueTitle,n=(h=e.outliers)==null?void 0:h[0];else{const{outliersEnabled:d,boxType:m}=e,g=u.normalizeColumn(e.value[0]),{values:v,outliers:y}=fx(g,m,!!d);r=v,n=y,o=u.getDataOptionTitle(g)}const[i,a,s,l,c,p]=r;return{category:t[0]&&u.normalizeColumn(t[0]),boxMin:i&&u.normalizeMeasureColumn(i),boxMedian:a&&u.normalizeMeasureColumn(a),boxMax:s&&u.normalizeMeasureColumn(s),whiskerMin:l&&u.normalizeMeasureColumn(l),whiskerMax:c&&u.normalizeMeasureColumn(c),outliersCount:p&&u.normalizeMeasureColumn(p),outliers:n&&u.normalizeColumn(n),valueTitle:o}},ju={city:4,state:3,country:2,auto:1};function hx(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>ju[n]>ju[r]?n:r,"auto")}function mx(e){const{geo:t,size:r,colorBy:n,details:o}=e;return{locations:t.map(u.normalizeColumn),size:r&&u.normalizeMeasureColumn(r),colorBy:n&&u.normalizeMeasureColumn(n),details:o&&u.normalizeAnyColumn(o),locationLevel:hx(t)}}function gx(e){var i;const t=e.value.map(a=>{if(a!=null&&a.chartType)return[u.normalizeMeasureColumn(a)];const h=a,{lowerBound:s,upperBound:l,title:c}=h,p=br(h,["lowerBound","upperBound","title"]);return[u.normalizeMeasureColumn(q({column:u.safeMerge(s,{title:c})},p)),u.normalizeMeasureColumn(q({column:u.safeMerge(l,{title:c})},p))]}),r=t.flat(),n=t.filter(a=>a.length===2),o=t.filter(a=>a.length===1).flat();return{x:e.category.map(u.normalizeColumn),breakBy:((i=e.breakBy)==null?void 0:i.map(u.normalizeColumn))||[],y:r,rangeValues:n,seriesValues:o,seriesToColorMap:e.seriesToColorMap}}function vx(e,t){if(u.isCartesian(e))return u.translateCartesianChartDataOptions(t);if(u.isCategorical(e))return yx(t);if(u.isIndicator(e))return bx(t);if(u.isScatter(e))return _x(t);if(u.isBoxplot(e))return Yf(t);if(u.isScattermap(e))return mx(t);if(u.isRange(e))return gx(t);throw new u.TranslatableError("errors.unexpectedChartType",{chartType:e})}const yx=e=>({y:e.value.map(u.normalizeMeasureColumn),breakBy:e.category.map(u.normalizeColumn),seriesToColorMap:e.seriesToColorMap}),bx=e=>{var t,r,n,o,i,a;return{value:(t=e.value)==null?void 0:t.map(u.normalizeMeasureColumn),secondary:(r=e.secondary)==null?void 0:r.map(u.normalizeMeasureColumn),min:(o=(n=e.min)==null?void 0:n.map(u.normalizeMeasureColumn))==null?void 0:o.map(zu("min")),max:(a=(i=e.max)==null?void 0:i.map(u.normalizeMeasureColumn))==null?void 0:a.map(zu("max"))}},zu=e=>t=>{const{column:r}=t,n="aggregation"in r&&r.aggregation||e;return J(q({},t),{column:u.safeMerge(r,{aggregation:n})})},_x=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:o,size:i,seriesToColorMap:a}=e;return{x:t&&u.normalizeAnyColumn(t),y:r&&u.normalizeAnyColumn(r),breakByPoint:n&&u.normalizeColumn(n),breakByColor:o&&u.normalizeAnyColumn(o),size:i&&u.normalizeMeasureColumn(i),seriesToColorMap:a}};function xx(e,t){let r=[];return u.isScatter(t)?r=["x","y","breakByPoint","breakByColor"]:u.isCartesian(t)||u.isCategorical(t)||u.isRange(t)?r=["x","breakBy"]:u.isBoxplot(t)?r=["category","outliers"]:u.isScattermap(t)&&(r=["locations"]),r.flatMap(o=>{var i;return(i=e[o])!=null?i:[]}).filter(o=>!u.isMeasureColumn(o)).map(({column:o})=>o)}function wx(e,t){let r=[];return u.isIndicator(t)?r=["value","secondary","min","max"]:u.isScatter(t)?r=["x","y","breakByColor","size"]:u.isCartesian(t)||u.isCategorical(t)||u.isRange(t)?r=["y"]:u.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"]:u.isScattermap(t)&&(r=["size","colorBy","details"]),r.flatMap(o=>{var i;return(i=e[o])!=null?i:[]}).filter(u.isMeasureColumn).map(({column:o})=>o)}function Xf(e){return{columns:e.columns.map(u.normalizeAnyColumn)}}function Cx(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(u.normalizeColumn),columns:(r=e.columns)==null?void 0:r.map(u.normalizeColumn),values:(n=e.values)==null?void 0:n.map(u.normalizeMeasureColumn),grandTotals:e.grandTotals}}function Kf(e,t){{const r=sx(t,e),n=vx(t,r),o=ax(n,t),i=xx(o,t),a=wx(o,t);return{dataOptions:o,attributes:i,measures:a}}}const Tx=(e,t)=>F.useMemo(()=>{if(u.isRestructuredChartType(t)){const r=u.getChartBuilder(t);if(!r.dataOptions.isCorrectDataOptions(e))throw new Error("Incorrect data options");return Ex(r,e)}else return Sx(e,t)},[e,t]);function Ex(e,t){const r=e.dataOptions.translateDataOptionsToInternal(t),n=e.dataOptions.getAttributes(r),o=e.dataOptions.getMeasures(r),i=js(o);return{dataOptions:r,attributes:n,measures:o,dataColumnNamesMapping:i}}function Sx(e,t){const{dataOptions:r,attributes:n,measures:o}=Kf(e,t),i=js(o);return{dataOptions:r,attributes:n,measures:o,dataColumnNamesMapping:i}}function Rx(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:o,designOptions:i,onBeforeRender:a,onDataPointClick:s,onDataPointContextMenu:l,onDataPointsSelected:c,filters:p}=e;return!o||!i?null:{dataSource:Wt(t)?t:null,chartType:r,chartData:n,dataOptions:o,designOptions:i,onBeforeRender:a,onDataPointClick:s,onDataPointContextMenu:l,onDataPointsSelected:c,filters:p}}const Ox=(e,t)=>{const r=e.category&&u.getColumnByName(t,e.category.column.name);r&&(r.direction=u.sortDirection(e.category.sortType));const n=u.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?u.rownumColumnName:void 0),o=u.getIndexedRows(t.rows,r?[r]:[]),i=u.getColumnByName(t,e.boxMin.column.name),a=u.getColumnByName(t,e.boxMedian.column.name),s=u.getColumnByName(t,e.boxMax.column.name),l=u.getColumnByName(t,e.whiskerMin.column.name),c=u.getColumnByName(t,e.whiskerMax.column.name),p=e.outliers&&u.getColumnByName(t,e.outliers.column.name),h=[],d=[];n.forEach((g,v)=>{const y=o[g.key],w=y?y[0]:[],E=r&&!!u.isBlurred(w,r);h.push({q1:i?u.getValue(w,i):0,median:a?u.getValue(w,a):0,q3:s?u.getValue(w,s):0,low:l?u.getValue(w,l):0,high:c?u.getValue(w,c):0,blur:E});const _=p?w[p.index].rawValue.split(",").map(x=>parseFloat(x)):[];d.push(..._.map(x=>({x:v,y:x,blur:E})))});const m=[{name:e.valueTitle,title:e.valueTitle,data:h}];return d.length>0&&m.push({name:e.valueTitle,title:e.valueTitle,data:d}),{type:"boxplot",xValues:n,series:m}};function Mx(e){return e.type==="boxplot"}const Px=2e4;function gn(e,t){if(e&&t){const r=t.column.name,n=e.findIndex(o=>o.name===r);return n===-1?null:n}return null}const Qf=(e,t,r)=>{if(!e)return{columns:[],rows:[]};let n=0,o=4,i=5,a=0,s=1;return r&&(n=gn(e.columns,r.category),o=gn(e.columns,r.whiskerMin),i=gn(e.columns,r.whiskerMax),a=gn(t.columns,r.category),s=gn(t.columns,r.outliers)),u.isNull(s)?e:{columns:[...e.columns,t.columns[s]],rows:e.rows.map(c=>{const p=u.isNull(n)?null:c[n].data,h=c[i].data,d=c[o].data,m=t.rows.filter(g=>{const v=u.isNull(a)?null:g[a].data,y=g[s].data;return v===p&&(y<d||y>h)}).map(g=>g[s].data).join(",");return[...c,{data:m}]})}};function Dx(e,t,r){const n=r&&Yf(r);return Qf(e,t,n)}const kx=(c,p)=>rt(exports,[c,p],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:o,filters:i,filterRelations:a,highlights:s},l){var v;const h={dataSource:r,dimensions:t.category?[n[0]]:[],measures:o,filters:i,filterRelations:a,highlights:s},d=yield l(h,e);let m=d;const g=t.outliersCount?Ix(d,t.outliersCount.column.name):0;if(t.outliers&&g<Px){const y={dataSource:r,dimensions:n,measures:[],filters:i,filterRelations:a,highlights:s};try{const w=yield l(y,e);m=Qf(d,w,t)}catch(w){if((v=w==null?void 0:w.message)!=null&&v.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw w}}return m}),Ix=(e,t)=>{if(!(e!=null&&e.columns))return 0;const r=e.columns.findIndex(({name:o})=>o===t);let n=0;return e.rows.forEach(o=>{n+=parseInt(o[r].data)}),n};function Ax(e){return u.isRestructuredChartType(e)?u.getChartBuilder(e).data.loadData:e==="boxplot"?$x:Nx}const Nx=n=>rt(exports,[n],function*({app:e,queryDescription:t,executionConfig:r}){var a,s;return(((s=(a=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:a.enabled)!=null?s:!1)?u.executeQueryWithCache:u.executeQuery)(t,e,r)}),$x=n=>rt(exports,[n],function*({app:e,chartDataOptionsInternal:t,queryDescription:r}){var a,s,l,c;const i=((s=(a=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:a.enabled)!=null?s:!1)?u.executeQueryWithCache:u.executeQuery;return kx({app:e,chartDataOptions:t,dataSource:r.dataSource,attributes:(l=r.dimensions)!=null?l:[],measures:(c=r.measures)!=null?c:[],filters:r.filters,highlights:r.highlights,filterRelations:r.filterRelations},i)}),Lx=(e,t)=>{const r=J(q({},e),{x:e.breakBy,breakBy:[]});let n=u.cartesianData(r,t);if(e.breakBy.some(({column:{type:i},numberFormatConfig:a})=>u.isNumber$1(i)&&a)){const i=n.xValues.map(a=>{const s=[];return e.breakBy.forEach(({column:{type:l},numberFormatConfig:c},p)=>{const h=u.getCompleteNumberFormatConfig(c),d=a.xValues[p];u.isNumber$1(l)?s.push(u.applyFormatPlainText(h,parseFloat(d))):s.push(a.xValues[p])}),J(q({},a),{xValues:s})});n=J(q({},n),{xValues:i})}return J(q({},n),{type:"categorical"})},Mo=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=u.getColumnByName(e,t[0].column.name);return r?[u.getValue(e.rows[0],r),t[0].column.name]:[void 0,void 0]},Fx=(e,t)=>{var s;const r={type:"indicator"};if(!((s=e.value)!=null&&s.length)||t.rows.length===0)return r;const[n]=Mo(t,e.value);if(n===void 0)return r;const[o]=Mo(t,e.secondary),[i]=Mo(t,e.min),[a]=Mo(t,e.max);return{type:"indicator",value:n,secondary:o,min:i,max:a}},Hx="N\\A",Bx=1,jx=(e,t)=>{const r=zx(e),n=e.locations&&u.getColumnsByName(t,e.locations.map(({column:{name:l}})=>l)),o=e.size&&u.getColumnByName(t,e.size.column.name),i=e.colorBy&&u.getColumnByName(t,e.colorBy.column.name),a=e.details&&u.getColumnByName(t,e.details.column.name);return{type:"scattermap",locations:t.rows.filter(l=>n.some(c=>u.getValue(l,c)!==Hx)).map(l=>{const c=n.map(m=>u.getValue(l,m)),p=o_(c);let h;r&&(h={lat:u.getValue(l,n[0]),lng:u.getValue(l,n[1])});const d=n[0]&&!!u.isBlurred(l,n[0]);return q(J(q(q({name:p,rawName:c,value:o?u.getValue(l,o):Bx},i&&{colorValue:u.getValue(l,i)}),a&&{details:u.getValue(l,a)}),{blur:d}),h?{coordinates:h}:null)})}};function zx(e){return e.locations.length===2&&e.locations.filter(({column:{type:t}})=>u.isNumber$1(t)).length===2}const Wx=(e,t,r)=>{if(u.isCartesian(e))return u.isForecastChart(t)?u.advancedAnalyticsData(t,r):u.cartesianData(t,r);if(u.isCategorical(e))return Lx(t,r);if(u.isScatter(e))return u.scatterData(t,r);if(u.isScattermap(e))return jx(t,r);if(u.isIndicator(e))return Fx(t,r);if(u.isBoxplot(e))return Ox(t,r);if(u.isRange(e))return u.rangeData(t,r);throw new u.TranslatableError("errors.unexpectedChartType",{chartType:e})};var Vx=1/0,Ux=u.Set&&1/u.setToArray(new u.Set([,-0]))[1]==Vx?function(e){return new u.Set(e)}:u.noop,qx=200;function Ws(e,t,r){var n=-1,o=u.arrayIncludes,i=e.length,a=!0,s=[],l=s;if(i>=qx){var c=t?null:Ux(e);if(c)return u.setToArray(c);a=!1,o=u.cacheHas,l=new u.SetCache}else l=t?[]:s;e:for(;++n<i;){var p=e[n],h=t?t(p):p;if(p=p!==0?p:0,a&&h===h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),s.push(p)}else o(l,h,r)||(l!==s&&l.push(h),s.push(p))}return s}var Gx=u.baseRest(function(e){return Ws(u.baseFlatten(e,1,u.isArrayLikeObject,!0))});const Zf=(e,t,r,n={})=>{if(u.emptyTable(e))return{rows:[],columns:[]};const o=Gx(u.getColumnsByName(e,t.map(p=>p.name))),i=e,s=[...r.map(p=>{var h,d;return{column:(h=n[p.name])!=null?h:p.name,title:p.name,agg:(d=p.aggregation)!=null?d:"sum"}}),{column:u.rownumColumnName,title:u.rownumColumnName,agg:"min"}],l=u.groupBy(i,o,s),c=u.getColumnByName(l,u.rownumColumnName);if(!c)throw new u.TranslatableError("errors.noRowNumColumn");return u.orderBy(l,[c])};function Yx({dataSet:e,data:t,chartDataOptions:r,chartType:n,attributes:o,measures:i,dataColumnNamesMapping:a,onDataReady:s}){return F.useMemo(()=>{if(!t||!r)return null;let l;if(s&&(l=s(t),!Jf(l)))throw new u.TranslatableError("errors.incorrectOnDataReadyHandler");const c=l||t;let p=u.createDataTableFromData(c);return Wt(e)||(p=Zf(p,o,i,a)),Xx(n,r,p)},[t,n])}function Xx(e,t,r){if(u.isRestructuredChartType(e)){const n=u.getChartBuilder(e);if(n.dataOptions.isCorrectDataOptionsInternal(t))return n.data.getChartData(t,r);throw new Error("Incorrect internal data options for restructured chart")}return Wx(e,t,r)}const Kx=e=>e==="indicator",Qx=(e,t)=>e==="scatter"&&"scatterDataTable"in t?t.scatterDataTable.length===0:e==="areamap"&&u.isAreamapData(t)?t.geoData.length===0:e==="scattermap"&&Vf(t)?t.locations.length===0:e==="boxplot"&&Mx(t)?t.xValues.length===0:"series"in t&&t.series.length===0,Va=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:o,highlights:i,styleOptions:a,refreshCounter:s,onDataPointClick:l,onDataPointContextMenu:c,onDataPointsSelected:p,onBeforeRender:h,onDataReady:d}=e,[m,g]=F.useState(!1),v=Bs(t),{themeSettings:y}=u.useThemeContext(),{dataOptions:w,attributes:E,measures:_,dataColumnNamesMapping:x}=Tx(n,t),b=E.length===0&&_.length===0,C=F.useMemo(()=>Ax(t),[t]),[S,O]=ux({dataSet:r,chartDataOptions:w,chartType:t,attributes:E,measures:_,dataColumnNamesMapping:x,filters:o,highlights:i,refreshCounter:s,setIsLoading:g,enabled:!b,loadData:C}),M=F.useMemo(()=>n?u.prepareChartDesignOptions(t,O,a):null,[n,t,O,a]),D=Yx({dataSet:r,data:S,chartDataOptions:w,chartType:t,attributes:E,measures:_,dataColumnNamesMapping:x,onDataReady:d}),R=Rx({dataSet:r,chartType:t,chartData:D,internalDataOptions:O,designOptions:M,onBeforeRender:h,onDataPointClick:l,onDataPointContextMenu:c,onDataPointsSelected:p,filters:o});return R?u.jsx(Ei,{defaultSize:v,size:{width:a==null?void 0:a.width,height:a==null?void 0:a.height},rerenderOnResize:Kx(t),children:()=>{if(!D&&m)return u.jsx(si,{themeSettings:y});if(D&&Qx(t,D)||b)return u.jsx(Hs,{iconType:t});if(u.isRestructuredChartType(t)){const T=u.getChartBuilder(t);if(T.renderer.isCorrectRendererProps(R))return u.jsx(T.renderer.ChartRendererComponent,q({},R))}return t==="scattermap"&&$_(R)?u.jsx(Bo,{themeSettings:y,isVisible:m,children:u.jsx(I_,q({},R))}):t==="indicator"&&k2(R)?u.jsx(Bo,{themeSettings:y,isVisible:m,children:u.jsx(O2,q({},R))}):u.isSisenseChartType(t)&&u.isSisenseChartProps(R)?u.jsx(Bo,{themeSettings:y,isVisible:m,children:u.jsx(u.SisenseChart,J(q({},R),{designOptions:q({},R.designOptions)}))}):null}}):null};function Jf(e){return e&&typeof e=="object"&&"columns"in e&&u.isArray(e.columns)&&"rows"in e&&u.isArray(e.rows)}function Zx(e){return we("MuiPagination",e)}Ce("MuiPagination",["root","ul","outlined","text"]);const Jx=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function e3(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:p=!1,showLastButton:h=!1,siblingCount:d=1}=e,m=ae(e,Jx),[g,v]=As({controlled:c,default:o,name:r,state:"page"}),y=(M,D)=>{c||v(D),l&&l(M,D)},w=(M,D)=>{const R=D-M+1;return Array.from({length:R},(T,I)=>M+I)},E=w(1,Math.min(t,n)),_=w(Math.max(n-t+1,t+1),n),x=Math.max(Math.min(g-d,n-t-d*2-1),t+2),b=Math.min(Math.max(g+d,t+d*2+2),_.length>0?_[0]-2:n-1),C=[...p?["first"]:[],...s?[]:["previous"],...E,...x>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...w(x,b),...b<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],..._,...a?[]:["next"],...h?["last"]:[]],S=M=>{switch(M){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},O=C.map(M=>typeof M=="number"?{onClick:D=>{y(D,M)},type:"page",page:M,selected:M===g,disabled:i,"aria-current":M===g?"true":void 0}:{onClick:D=>{y(D,S(M))},type:M,page:S(M),selected:!1,disabled:i||M.indexOf("ellipsis")===-1&&(M==="next"||M==="last"?g>=n:g<=1)});return u._extends({items:O},m)}function t3(e){return we("MuiPaginationItem",e)}const nt=Ce("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);function r3(e){return we("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const n3=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],o3=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(r)}`]};return De(o,r3,n)},i3=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${fe(r.color)}`],t[`fontSize${fe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,p,h,d,m,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(p=c.pxToRem)==null?void 0:p.call(c,35))||"2.1875rem"}[t.fontSize],color:(h=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?h:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Ko=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:p=!1,titleAccess:h,viewBox:d="0 0 24 24"}=n,m=ae(n,n3),g=z.isValidElement(o)&&o.type==="svg",v=u._extends({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:d,hasSvgAsChild:g}),y={};p||(y.viewBox=d);const w=o3(v);return te.jsxs(i3,u._extends({as:s,className:se(w.root,i),focusable:"false",color:c,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},y,m,g&&o.props,{ownerState:v,children:[g?o.props.children:o,h?te.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Ko.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),f.string]),component:f.elementType,fontSize:f.oneOfType([f.oneOf(["inherit","large","medium","small"]),f.string]),htmlColor:f.string,inheritViewBox:f.bool,shapeRendering:f.string,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),titleAccess:f.string,viewBox:f.string});Ko.muiName="SvgIcon";function Ur(e,t){function r(n,o){return te.jsx(Ko,u._extends({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Ko.muiName,z.memo(z.forwardRef(r))}const Wu=Ur(te.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Vu=Ur(te.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Uu=Ur(te.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),qu=Ur(te.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),a3=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],ep=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${fe(r.size)}`],r.variant==="text"&&t[`text${fe(r.color)}`],r.variant==="outlined"&&t[`outlined${fe(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},s3=e=>{const{classes:t,color:r,disabled:n,selected:o,size:i,shape:a,type:s,variant:l}=e,c={root:["root",`size${fe(i)}`,l,a,r!=="standard"&&`color${fe(r)}`,r!=="standard"&&`${l}${fe(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return De(c,t3,t)},l3=le("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:ep})(({theme:e,ownerState:t})=>u._extends({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${nt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),u3=le(hr,{name:"MuiPaginationItem",slot:"Root",overridesResolver:ep})(({theme:e,ownerState:t})=>u._extends({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nt.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${nt.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>u._extends({},t.variant==="text"&&{[`&.${nt.selected}`]:u._extends({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${nt.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${nt.selected}`]:u._extends({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:Pe(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Pe(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pe(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pe(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${nt.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),c3=le("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>u._extends({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),tp=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiPaginationItem"}),{className:o,color:i="standard",component:a,components:s={},disabled:l=!1,page:c,selected:p=!1,shape:h="circular",size:d="medium",slots:m={},type:g="page",variant:v="text"}=n,y=ae(n,a3),w=u._extends({},n,{color:i,disabled:l,selected:p,shape:h,size:d,type:g,variant:v}),E=bs(),_=s3(w),b=(E?{previous:m.next||s.next||qu,next:m.previous||s.previous||Uu,last:m.first||s.first||Wu,first:m.last||s.last||Vu}:{previous:m.previous||s.previous||Uu,next:m.next||s.next||qu,first:m.first||s.first||Wu,last:m.last||s.last||Vu})[g];return g==="start-ellipsis"||g==="end-ellipsis"?te.jsx(l3,{ref:r,ownerState:w,className:se(_.root,o),children:"…"}):te.jsxs(u3,u._extends({ref:r,ownerState:w,component:a,disabled:l,className:se(_.root,o)},y,{children:[g==="page"&&c,b?te.jsx(c3,{as:b,ownerState:w,className:_.icon}):null]}))});process.env.NODE_ENV!=="production"&&(tp.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","standard"]),f.string]),component:f.elementType,components:f.shape({first:f.elementType,last:f.elementType,next:f.elementType,previous:f.elementType}),disabled:f.bool,page:f.node,selected:f.bool,shape:f.oneOf(["circular","rounded"]),size:f.oneOfType([f.oneOf(["small","medium","large"]),f.string]),slots:f.shape({first:f.elementType,last:f.elementType,next:f.elementType,previous:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:f.oneOfType([f.oneOf(["outlined","text"]),f.string])});const d3=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],f3=e=>{const{classes:t,variant:r}=e;return De({root:["root",r],ul:["ul"]},Zx,t)},p3=le("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),h3=le("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function m3(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const rp=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:i,color:a="standard",count:s=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:p=m3,hideNextButton:h=!1,hidePrevButton:d=!1,renderItem:m=O=>te.jsx(tp,u._extends({},O)),shape:g="circular",showFirstButton:v=!1,showLastButton:y=!1,siblingCount:w=1,size:E="medium",variant:_="text"}=n,x=ae(n,d3),{items:b}=e3(u._extends({},n,{componentName:"Pagination"})),C=u._extends({},n,{boundaryCount:o,color:a,count:s,defaultPage:l,disabled:c,getItemAriaLabel:p,hideNextButton:h,hidePrevButton:d,renderItem:m,shape:g,showFirstButton:v,showLastButton:y,siblingCount:w,size:E,variant:_}),S=f3(C);return te.jsx(p3,u._extends({"aria-label":"pagination navigation",className:se(S.root,i),ownerState:C,ref:r},x,{children:te.jsx(h3,{className:S.ul,ownerState:C,children:b.map((O,M)=>te.jsx("li",{children:m(u._extends({},O,{color:a,"aria-label":p(O.type,O.page,O.selected),shape:g,size:E,variant:_}))},M))})}))});process.env.NODE_ENV!=="production"&&(rp.propTypes={boundaryCount:bt,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","standard"]),f.string]),count:bt,defaultPage:bt,disabled:f.bool,getItemAriaLabel:f.func,hideNextButton:f.bool,hidePrevButton:f.bool,onChange:f.func,page:bt,renderItem:f.func,shape:f.oneOf(["circular","rounded"]),showFirstButton:f.bool,showLastButton:f.bool,siblingCount:bt,size:f.oneOfType([f.oneOf(["small","medium","large"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["outlined","text"]),f.string])});const np=e=>{const t=[],r=[];for(const n of e.columns)u.isMeasureColumn(n)?r.push(u.translateColumnToMeasure(n)):t.push(u.translateColumnToAttribute(n));return{attributes:t,measures:r}},g3=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:o,offset:i})=>{const a=zs(),[s,l]=F.useState(Wt(e)?null:e),[c,p]=F.useState(!1),h=F.useRef(!0),{isInitialized:d,app:m}=u.useSisenseContext(),[g,v]=F.useState(t);return F.useEffect(()=>{var _;let y=!1;if(!t)return;const{attributes:w,measures:E}=np(t);if(Wt(e)){if(!d){a(new u.TranslatableError("errors.chartNoSisenseContext"));return}if(!m||!h.current&&i>0)return;p(!0),((_=m.settings.queryCacheConfig)!=null&&_.enabled?u.executeQueryWithCache:u.executeQuery)({dataSource:e,dimensions:w,measures:E,filters:r,filterRelations:n,count:o+1,offset:i,ungroup:!0},m).then(b=>{if(y)return;h.current=b.rows.length>o;const C=h.current?b.rows.slice(0,o):b.rows;i>0?l(S=>{const O=S==null?void 0:S.rows.length,M=O?O>i?S.rows.slice(0,i):S.rows:null;return{columns:b.columns,rows:M?[...M,...C]:C}}):l({columns:b.columns,rows:C}),v(t)}).finally(()=>{p(!1)}).catch(b=>{y||a(b)})}else l(e),v(t);return()=>{y=!0}},[m,e,t,r,n,i,o,d,a]),[c?null:s,g]},v3=(e,t)=>{if(u.emptyTable(t))return{rows:[],columns:[]};const r=u.getColumnsByName(t,e);return u.selectColumns(t,r)},Ua=({column:e,sortType:t})=>{switch("getSort"in e?e.getSort():t){case"sortAsc":case u.Sort.Ascending:return 1;case"sortDesc":case u.Sort.Descending:return-1;default:return 0}},y3=(e,t)=>{const r=e.columns.find(n=>Ua(n)!==0);if(r){const n=u.getColumnByName(t,r.column.name);n&&(n.direction=Ua(r))}return t},b3=(e,t)=>({columns:e.columns.map(r=>{const n=r.column.name===t.name,o=Ua(r),i=o===1?"sortDesc":"sortAsc",a=o===1?u.Sort.Descending:u.Sort.Ascending;return J(q({},r),{sortType:n?i:"sortNone",column:"sort"in r.column?r.column.sort(n?a:u.Sort.None):r.column})})}),_3=(e,t)=>{const r=v3(e.columns.map(({column:{name:n}})=>n),t);return y3(e,r)},x3=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:o}=u.useSisenseContext();return F.useMemo(()=>{if(!e||!t)return null;let i=u.createDataTableFromData(Wa(e,t,o==null?void 0:o.settings.locale,o==null?void 0:o.settings.dateConfig));const a=t.columns.filter(l=>!u.isMeasureColumn(l)).map(u.translateColumnToAttribute),s=t.columns.filter(l=>u.isMeasureColumn(l)).map(u.translateColumnToMeasure);return Gf(i,a,s,r),n&&(i=Zf(i,a,s,r)),_3(t,i)},[e,t,n,r,o])};var op={},ip={};function Gu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Yu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gu(Object(r),!0).forEach(function(n){Am(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Xu=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ha=function(){return Math.random().toString(36).substring(7).split("").join(".")},zt={INIT:"@@redux/INIT"+ha(),REPLACE:"@@redux/REPLACE"+ha(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ha()}};function ap(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function w3(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(E3(e))return"date";if(T3(e))return"error";var r=C3(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function C3(e){return typeof e.constructor=="function"?e.constructor.name:null}function T3(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function E3(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ht(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=w3(e)),t}function Vs(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Fe(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Fe(1):"Expected the enhancer to be a function. Instead, received: '"+Ht(r)+"'");return r(Vs)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Fe(2):"Expected the root reducer to be a function. Instead, received: '"+Ht(e)+"'");var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function p(){if(l)throw new Error(process.env.NODE_ENV==="production"?Fe(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Fe(4):"Expected the listener to be a function. Instead, received: '"+Ht(v)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?Fe(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;return c(),s.push(v),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?Fe(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c();var E=s.indexOf(v);s.splice(E,1),a=null}}}function d(v){if(!ap(v))throw new Error(process.env.NODE_ENV==="production"?Fe(7):"Actions must be plain objects. Instead, the actual type was: '"+Ht(v)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof v.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?Fe(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?Fe(9):"Reducers may not dispatch actions.");try{l=!0,i=o(i,v)}finally{l=!1}for(var y=a=s,w=0;w<y.length;w++){var E=y[w];E()}return v}function m(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Fe(10):"Expected the nextReducer to be a function. Instead, received: '"+Ht(v));o=v,d({type:zt.REPLACE})}function g(){var v,y=h;return v={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?Fe(11):"Expected the observer to be an object. Instead, received: '"+Ht(E)+"'");function _(){E.next&&E.next(p())}_();var x=y(_);return{unsubscribe:x}}},v[Xu]=function(){return this},v}return d({type:zt.INIT}),n={dispatch:d,subscribe:h,getState:p,replaceReducer:m},n[Xu]=g,n}var S3=Vs;function Ku(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function R3(e,t,r,n){var o=Object.keys(t),i=r&&r.type===zt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!ap(e))return"The "+i+' has unexpected type of "'+Ht(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(s){return!t.hasOwnProperty(s)&&!n[s]});if(a.forEach(function(s){n[s]=!0}),!(r&&r.type===zt.REPLACE)&&a.length>0)return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function O3(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:zt.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?Fe(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:zt.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?Fe(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+zt.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function M3(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];process.env.NODE_ENV!=="production"&&typeof e[o]=="undefined"&&Ku('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(r[o]=e[o])}var i=Object.keys(r),a;process.env.NODE_ENV!=="production"&&(a={});var s;try{O3(r)}catch(l){s=l}return function(c,p){if(c===void 0&&(c={}),s)throw s;if(process.env.NODE_ENV!=="production"){var h=R3(c,r,p,a);h&&Ku(h)}for(var d=!1,m={},g=0;g<i.length;g++){var v=i[g],y=r[v],w=c[v],E=y(w,p);if(typeof E=="undefined"){var _=p&&p.type;throw new Error(process.env.NODE_ENV==="production"?Fe(14):"When called with an action of type "+(_?'"'+String(_)+'"':"(unknown type)")+', the slice reducer for key "'+v+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}m[v]=E,d=d||E!==w}return d=d||i.length!==Object.keys(c).length,d?m:c}}function Qu(e,t){return function(){return t(e.apply(this,arguments))}}function P3(e,t){if(typeof e=="function")return Qu(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?Fe(16):"bindActionCreators expected an object or a function, but instead received: '"+Ht(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var o=e[n];typeof o=="function"&&(r[n]=Qu(o,t))}return r}function sp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function D3(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?Fe(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return i=sp.apply(void 0,s)(o.dispatch),Yu(Yu({},o),{},{dispatch:i})}}}const k3=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:zt,applyMiddleware:D3,bindActionCreators:P3,combineReducers:M3,compose:sp,createStore:Vs,legacy_createStore:S3},Symbol.toStringTag,{value:"Module"})),lp=u.getAugmentedNamespace(k3);var qr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(o,i,a,s,l,c,p,h){if(process.env.NODE_ENV!=="production"&&i===void 0)throw new Error("invariant requires an error message argument");if(!o){var d;if(i===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[a,s,l,c,p,h],g=0;d=new Error("Invariant Violation: "+i.replace(/%s/g,function(){return m[g++]}))}throw d.framesToPop=1,d}},r=t;e.default=r})(qr);var I3=Array.isArray,tt=I3,A3=typeof u.commonjsGlobal=="object"&&u.commonjsGlobal&&u.commonjsGlobal.Object===Object&&u.commonjsGlobal,up=A3,N3=up,$3=typeof self=="object"&&self&&self.Object===Object&&self,L3=N3||$3||Function("return this")(),Dt=L3,F3=Dt,H3=F3.Symbol,oo=H3,Zu=oo,cp=Object.prototype,B3=cp.hasOwnProperty,j3=cp.toString,vn=Zu?Zu.toStringTag:void 0;function z3(e){var t=B3.call(e,vn),r=e[vn];try{e[vn]=void 0;var n=!0}catch(i){}var o=j3.call(e);return n&&(t?e[vn]=r:delete e[vn]),o}var W3=z3,V3=Object.prototype,U3=V3.toString;function q3(e){return U3.call(e)}var G3=q3,Ju=oo,Y3=W3,X3=G3,K3="[object Null]",Q3="[object Undefined]",ec=Ju?Ju.toStringTag:void 0;function Z3(e){return e==null?e===void 0?Q3:K3:ec&&ec in Object(e)?Y3(e):X3(e)}var Gr=Z3;function J3(e){return e!=null&&typeof e=="object"}var Yr=J3,ew=Gr,tw=Yr,rw="[object Symbol]";function nw(e){return typeof e=="symbol"||tw(e)&&ew(e)==rw}var Si=nw,ow=tt,iw=Si,aw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sw=/^\w*$/;function lw(e,t){if(ow(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||iw(e)?!0:sw.test(e)||!aw.test(e)||t!=null&&e in Object(t)}var Us=lw;function uw(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var io=uw,cw=Gr,dw=io,fw="[object AsyncFunction]",pw="[object Function]",hw="[object GeneratorFunction]",mw="[object Proxy]";function gw(e){if(!dw(e))return!1;var t=cw(e);return t==pw||t==hw||t==fw||t==mw}var dp=gw,vw=Dt,yw=vw["__core-js_shared__"],bw=yw,ma=bw,tc=function(){var e=/[^.]+$/.exec(ma&&ma.keys&&ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _w(e){return!!tc&&tc in e}var xw=_w,ww=Function.prototype,Cw=ww.toString;function Tw(e){if(e!=null){try{return Cw.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var fp=Tw,Ew=dp,Sw=xw,Rw=io,Ow=fp,Mw=/[\\^$.*+?()[\]{}|]/g,Pw=/^\[object .+?Constructor\]$/,Dw=Function.prototype,kw=Object.prototype,Iw=Dw.toString,Aw=kw.hasOwnProperty,Nw=RegExp("^"+Iw.call(Aw).replace(Mw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $w(e){if(!Rw(e)||Sw(e))return!1;var t=Ew(e)?Nw:Pw;return t.test(Ow(e))}var Lw=$w;function Fw(e,t){return e==null?void 0:e[t]}var Hw=Fw,Bw=Lw,jw=Hw;function zw(e,t){var r=jw(e,t);return Bw(r)?r:void 0}var mr=zw,Ww=mr,Vw=Ww(Object,"create"),Ri=Vw,rc=Ri;function Uw(){this.__data__=rc?rc(null):{},this.size=0}var qw=Uw;function Gw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Yw=Gw,Xw=Ri,Kw="__lodash_hash_undefined__",Qw=Object.prototype,Zw=Qw.hasOwnProperty;function Jw(e){var t=this.__data__;if(Xw){var r=t[e];return r===Kw?void 0:r}return Zw.call(t,e)?t[e]:void 0}var eC=Jw,tC=Ri,rC=Object.prototype,nC=rC.hasOwnProperty;function oC(e){var t=this.__data__;return tC?t[e]!==void 0:nC.call(t,e)}var iC=oC,aC=Ri,sC="__lodash_hash_undefined__";function lC(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=aC&&t===void 0?sC:t,this}var uC=lC,cC=qw,dC=Yw,fC=eC,pC=iC,hC=uC;function Xr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xr.prototype.clear=cC;Xr.prototype.delete=dC;Xr.prototype.get=fC;Xr.prototype.has=pC;Xr.prototype.set=hC;var mC=Xr;function gC(){this.__data__=[],this.size=0}var vC=gC;function yC(e,t){return e===t||e!==e&&t!==t}var qs=yC,bC=qs;function _C(e,t){for(var r=e.length;r--;)if(bC(e[r][0],t))return r;return-1}var Oi=_C,xC=Oi,wC=Array.prototype,CC=wC.splice;function TC(e){var t=this.__data__,r=xC(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():CC.call(t,r,1),--this.size,!0}var EC=TC,SC=Oi;function RC(e){var t=this.__data__,r=SC(t,e);return r<0?void 0:t[r][1]}var OC=RC,MC=Oi;function PC(e){return MC(this.__data__,e)>-1}var DC=PC,kC=Oi;function IC(e,t){var r=this.__data__,n=kC(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var AC=IC,NC=vC,$C=EC,LC=OC,FC=DC,HC=AC;function Kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Kr.prototype.clear=NC;Kr.prototype.delete=$C;Kr.prototype.get=LC;Kr.prototype.has=FC;Kr.prototype.set=HC;var Mi=Kr,BC=mr,jC=Dt,zC=BC(jC,"Map"),Gs=zC,nc=mC,WC=Mi,VC=Gs;function UC(){this.size=0,this.__data__={hash:new nc,map:new(VC||WC),string:new nc}}var qC=UC;function GC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var YC=GC,XC=YC;function KC(e,t){var r=e.__data__;return XC(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Pi=KC,QC=Pi;function ZC(e){var t=QC(this,e).delete(e);return this.size-=t?1:0,t}var JC=ZC,eT=Pi;function tT(e){return eT(this,e).get(e)}var rT=tT,nT=Pi;function oT(e){return nT(this,e).has(e)}var iT=oT,aT=Pi;function sT(e,t){var r=aT(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var lT=sT,uT=qC,cT=JC,dT=rT,fT=iT,pT=lT;function Qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qr.prototype.clear=uT;Qr.prototype.delete=cT;Qr.prototype.get=dT;Qr.prototype.has=fT;Qr.prototype.set=pT;var Ys=Qr,pp=Ys,hT="Expected a function";function Xs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hT);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Xs.Cache||pp),r}Xs.Cache=pp;var mT=Xs,gT=mT,vT=500;function yT(e){var t=gT(e,function(n){return r.size===vT&&r.clear(),n}),r=t.cache;return t}var bT=yT,_T=bT,xT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wT=/\\(\\)?/g,CT=_T(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xT,function(r,n,o,i){t.push(o?i.replace(wT,"$1"):n||r)}),t}),TT=CT;function ET(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var hp=ET,oc=oo,ST=hp,RT=tt,OT=Si,MT=1/0,ic=oc?oc.prototype:void 0,ac=ic?ic.toString:void 0;function mp(e){if(typeof e=="string")return e;if(RT(e))return ST(e,mp)+"";if(OT(e))return ac?ac.call(e):"";var t=e+"";return t=="0"&&1/e==-MT?"-0":t}var PT=mp,DT=PT;function kT(e){return e==null?"":DT(e)}var IT=kT,AT=tt,NT=Us,$T=TT,LT=IT;function FT(e,t){return AT(e)?e:NT(e,t)?[e]:$T(LT(e))}var Di=FT,HT=Si,BT=1/0;function jT(e){if(typeof e=="string"||HT(e))return e;var t=e+"";return t=="0"&&1/e==-BT?"-0":t}var ao=jT,zT=Di,WT=ao;function VT(e,t){t=zT(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[WT(t[r++])];return r&&r==n?e:void 0}var Ks=VT,UT=mr,qT=function(){try{var e=UT(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),gp=qT,sc=gp;function GT(e,t,r){t=="__proto__"&&sc?sc(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var YT=GT,XT=YT,KT=qs,QT=Object.prototype,ZT=QT.hasOwnProperty;function JT(e,t,r){var n=e[t];(!(ZT.call(e,t)&&KT(n,r))||r===void 0&&!(t in e))&&XT(e,t,r)}var eE=JT,tE=9007199254740991,rE=/^(?:0|[1-9]\d*)$/;function nE(e,t){var r=typeof e;return t=t==null?tE:t,!!t&&(r=="number"||r!="symbol"&&rE.test(e))&&e>-1&&e%1==0&&e<t}var Qs=nE,oE=eE,iE=Di,aE=Qs,lc=io,sE=ao;function lE(e,t,r,n){if(!lc(e))return e;t=iE(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=sE(t[o]),c=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var p=s[l];c=n?n(p,l,s):void 0,c===void 0&&(c=lc(p)?p:aE(t[o+1])?[]:{})}oE(s,l,c),s=s[l]}return e}var uE=lE,cE=Ks,dE=uE,fE=Di;function pE(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],s=cE(e,a);r(s,a)&&dE(i,fE(a,e),s)}return i}var hE=pE;function mE(e,t){return e!=null&&t in Object(e)}var gE=mE,vE=Gr,yE=Yr,bE="[object Arguments]";function _E(e){return yE(e)&&vE(e)==bE}var xE=_E,uc=xE,wE=Yr,vp=Object.prototype,CE=vp.hasOwnProperty,TE=vp.propertyIsEnumerable,EE=uc(function(){return arguments}())?uc:function(e){return wE(e)&&CE.call(e,"callee")&&!TE.call(e,"callee")},ki=EE,SE=9007199254740991;function RE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SE}var Zs=RE,OE=Di,ME=ki,PE=tt,DE=Qs,kE=Zs,IE=ao;function AE(e,t,r){t=OE(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=IE(t[n]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&kE(o)&&DE(a,o)&&(PE(e)||ME(e)))}var NE=AE,$E=gE,LE=NE;function FE(e,t){return e!=null&&LE(e,t,$E)}var yp=FE,HE=hE,BE=yp;function jE(e,t){return HE(e,t,function(r,n){return BE(e,n)})}var zE=jE;function WE(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var bp=WE,cc=oo,VE=ki,UE=tt,dc=cc?cc.isConcatSpreadable:void 0;function qE(e){return UE(e)||VE(e)||!!(dc&&e&&e[dc])}var GE=qE,YE=bp,XE=GE;function _p(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=XE),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?_p(s,t-1,r,n,o):YE(o,s):n||(o[o.length]=s)}return o}var KE=_p,QE=KE;function ZE(e){var t=e==null?0:e.length;return t?QE(e,1):[]}var JE=ZE;function eS(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var tS=eS,rS=tS,fc=Math.max;function nS(e,t,r){return t=fc(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=fc(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),rS(e,this,s)}}var oS=nS;function iS(e){return function(){return e}}var aS=iS;function sS(e){return e}var Js=sS,lS=aS,pc=gp,uS=Js,cS=pc?function(e,t){return pc(e,"toString",{configurable:!0,enumerable:!1,value:lS(t),writable:!0})}:uS,dS=cS,fS=800,pS=16,hS=Date.now;function mS(e){var t=0,r=0;return function(){var n=hS(),o=pS-(n-r);if(r=n,o>0){if(++t>=fS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var gS=mS,vS=dS,yS=gS,bS=yS(vS),_S=bS,xS=JE,wS=oS,CS=_S;function TS(e){return CS(wS(e,void 0,xS),e+"")}var ES=TS,SS=zE,RS=ES,OS=RS(function(e,t){return e==null?{}:SS(e,t)}),el=OS,xe={};Object.defineProperty(xe,"__esModule",{value:!0});xe.SCROLL_TO_Y=xe.SCROLL_TO_X=xe.SCROLL_END=xe.SCROLL_START=xe.PROP_CHANGE=xe.INITIALIZE=xe.COLUMN_RESIZE=xe.COLUMN_REORDER_MOVE=xe.COLUMN_REORDER_END=xe.COLUMN_REORDER_START=void 0;var MS="COLUMN_REORDER_START";xe.COLUMN_REORDER_START=MS;var PS="COLUMN_REORDER_END";xe.COLUMN_REORDER_END=PS;var DS="COLUMN_REORDER_MOVE";xe.COLUMN_REORDER_MOVE=DS;var kS="COLUMN_RESIZE";xe.COLUMN_RESIZE=kS;var IS="INITIALIZE";xe.INITIALIZE=IS;var AS="PROP_CHANGE";xe.PROP_CHANGE=AS;var NS="SCROLL_START";xe.SCROLL_START=NS;var $S="SCROLL_END";xe.SCROLL_END=$S;var LS="SCROLL_TO_X";xe.SCROLL_TO_X=LS;var FS="SCROLL_TO_Y";xe.SCROLL_TO_Y=FS;var _t={};Object.defineProperty(_t,"__esModule",{value:!0});_t.resizeColumn=_t.moveColumnReorder=_t.stopColumnReorder=_t.startColumnReorder=void 0;var Ii=xe,HS=function(t){return{type:Ii.COLUMN_REORDER_START,reorderData:t}};_t.startColumnReorder=HS;var BS=function(){return{type:Ii.COLUMN_REORDER_END}};_t.stopColumnReorder=BS;var jS=function(t){return{type:Ii.COLUMN_REORDER_MOVE,deltaX:t}};_t.moveColumnReorder=jS;var zS=function(t){return{type:Ii.COLUMN_RESIZE,resizeData:t}};_t.resizeColumn=zS;var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.stopScroll=xt.startScroll=xt.scrollToY=xt.scrollToX=void 0;var Ai=xe,WS=function(t){return{type:Ai.SCROLL_TO_X,scrollX:t}};xt.scrollToX=WS;var VS=function(t){return{type:Ai.SCROLL_TO_Y,scrollY:t}};xt.scrollToY=VS;var US=function(){return{type:Ai.SCROLL_START}};xt.startScroll=US;var qS=function(){return{type:Ai.SCROLL_END}};xt.stopScroll=qS;var xp={},GS=Gr,YS=Yr,XS="[object Number]";function KS(e){return typeof e=="number"||YS(e)&&GS(e)==XS}var QS=KS,ZS=QS;function JS(e){return ZS(e)&&e!=+e}var eR=JS,mt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(s)}var r=/\//g,n={};function o(s){return n[s]||(n[s]=s.replace(r,"_")),n[s]}function i(s){var l;return t(s)=="object"?l=Object.keys(s).filter(function(c){return s[c]}):l=Array.prototype.slice.call(arguments),l.map(o).join(" ")}var a=i;e.default=a})(mt);var wp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n,o,i,a,s){a=a||setTimeout,s=s||clearTimeout;var l;function c(){for(var p=arguments.length,h=new Array(p),d=0;d<p;d++)h[d]=arguments[d];c.reset();var m=function(){n.apply(i,h)};m.__SMmeta=n.__SMmeta,l=a(m,o)}return c.reset=function(){s(l)},c}var r=t;e.default=r})(wp);var Gt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n){n||(n="");var o,i=arguments.length;if(i>1)for(var a=1;a<i;a++)o=arguments[a],o&&(n=(n?n+" ":"")+o);return n}var r=t;e.default=r})(Gt);var so={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(a){return typeof a}:t=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(o)}function r(o,i){if(o===i)return!0;if(t(o)!=="object"||o===null||t(i)!=="object"||i===null)return!1;var a=Object.keys(o),s=Object.keys(i);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(i),c=0;c<a.length;c++)if(!l(a[c])||o[a[c]]!==i[a[c]])return!1;return!0}var n=r;e.default=n})(so);var tl={},Yt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(o){return function(){return o}}function r(){}r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(o){return o};var n=r;e.default=n})(Yt);var Cp={},Tp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!1,r,n,o,i,a,s,l,c,p,h,d,m,g,v,y;function w(){if(!t){t=!0;var x=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(x),C=/(Mac OS X)|(Windows)|(Linux)/.exec(x);if(m=/\b(iPhone|iP[ao]d)/.exec(x),g=/\b(iP[ao]d)/.exec(x),h=/Android/i.exec(x),v=/FBAN\/\w+;/i.exec(x),y=/Mobile/i.exec(x),d=!!/Win64/.exec(x),b){r=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var S=/(?:Trident\/(\d+.\d+))/.exec(x);s=S?parseFloat(S[1])+4:r,n=b[2]?parseFloat(b[2]):NaN,o=b[3]?parseFloat(b[3]):NaN,i=b[4]?parseFloat(b[4]):NaN,i?(b=/(?:Chrome\/(\d+\.\d+))/.exec(x),a=b&&b[1]?parseFloat(b[1]):NaN):a=NaN}else r=n=o=a=i=NaN;if(C){if(C[1]){var O=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(x);l=O?parseFloat(O[1].replace("_",".")):!0}else l=!1;c=!!C[2],p=!!C[3]}else l=c=p=!1}}var E={ie:function(){return w()||r},ieCompatibilityMode:function(){return w()||s>r},ie64:function(){return E.ie()&&d},firefox:function(){return w()||n},opera:function(){return w()||o},webkit:function(){return w()||i},safari:function(){return E.webkit()},chrome:function(){return w()||a},windows:function(){return w()||c},osx:function(){return w()||l},linux:function(){return w()||p},iphone:function(){return w()||m},mobile:function(){return w()||m||g||h||y},nativeApp:function(){return w()||v},android:function(){return w()||h},ipad:function(){return w()||g}},_=E;e.default=_})(Tp);var Ep={},rl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),r={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t},n=r;e.default=n})(rl);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(rl);function r(a){return a&&a.__esModule?a:{default:a}}var n;t.default.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
222
+ * Checks if an event is supported in the current execution environment.
223
+ *
224
+ * NOTE: This will not work correctly for non-generic events such as `change`,
225
+ * `reset`, `load`, `error`, and `select`.
226
+ *
227
+ * Borrows from Modernizr.
228
+ *
229
+ * @param {string} eventNameSuffix Event name, e.g. "click".
230
+ * @param {?boolean} capture Check if the capture phase is supported.
231
+ * @return {boolean} True if the event is supported.
232
+ * @internal
233
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
234
+ */function o(a,s){if(!t.default.canUseDOM||s&&!("addEventListener"in document))return!1;var l="on"+a,c=l in document;if(!c){var p=document.createElement("div");p.setAttribute(l,"return;"),c=typeof p[l]=="function"}return!c&&n&&a==="wheel"&&(c=document.implementation.hasFeature("Events.wheel","3.0")),c}var i=o;e.default=i})(Ep);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Tp),r=n(Ep);function n(c){return c&&c.__esModule?c:{default:c}}var o=10,i=40,a=800;function s(c){var p=0,h=0,d=0,m=0;return"detail"in c&&(h=c.detail),"wheelDelta"in c&&(h=-c.wheelDelta/120),"wheelDeltaY"in c&&(h=-c.wheelDeltaY/120),"wheelDeltaX"in c&&(p=-c.wheelDeltaX/120),"axis"in c&&c.axis===c.HORIZONTAL_AXIS&&(p=h,h=0),d=p*o,m=h*o,"deltaY"in c&&(m=c.deltaY),"deltaX"in c&&(d=c.deltaX),(d||m)&&c.deltaMode&&(c.deltaMode==1?(d*=i,m*=i):(d*=a,m*=a)),d&&!p&&(p=d<1?-1:1),m&&!h&&(h=m<1?-1:1),{spinX:p,spinY:h,pixelX:d,pixelY:m}}s.getEventType=function(){return t.default.firefox()?"DOMMouseScroll":(0,r.default)("wheel")?"wheel":"mousewheel"};var l=s;e.default=l})(Cp);var Ni={},Sp={},Zr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof u.commonjsGlobal!="undefined"?u.commonjsGlobal:typeof self!="undefined"?self:{},r=t;e.default=r})(Zr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Zr);function r(i){return i&&i.__esModule?i:{default:i}}var n=t.default.requestAnimationFrame||t.default.webkitRequestAnimationFrame||t.default.mozRequestAnimationFrame||t.default.oRequestAnimationFrame||t.default.msRequestAnimationFrame,o=n;e.default=o})(Sp);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(Yt),r=o(Sp),n=o(Zr);function o(l){return l&&l.__esModule?l:{default:l}}var i=0,a=r.default||function(l){var c=Date.now(),p=Math.max(0,16-(c-i));return i=c+p,n.default.setTimeout(function(){l(Date.now())},p)};a(t.default);var s=a;e.default=s})(Ni);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(Yt),r=o(Cp),n=o(Ni);function o(p){return p&&p.__esModule?p:{default:p}}function i(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function a(p,h){for(var d=0;d<h.length;d++){var m=h[d];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(p,m.key,m)}}function s(p,h,d){return h&&a(p.prototype,h),d&&a(p,d),p}var l=function(){function p(h,d,m,g,v,y){i(this,p),this._animationFrameID=null,this._deltaX=0,this._deltaY=0,this._didWheel=this._didWheel.bind(this),this._rootRef=null,typeof d!="function"&&(d=d?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof m!="function"&&(m=m?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=d,this._handleScrollY=m,this._preventDefault=v,this._stopPropagation=y,this._onWheelCallback=h,this.onWheel=this.onWheel.bind(this),this._isRTL=g}return s(p,[{key:"onWheel",value:function(d){this._preventDefault&&d.preventDefault();var m=(0,r.default)(d);d.shiftKey&&p._allowInternalAxesSwap()?m=p._swapNormalizedWheelAxis(m):d.shiftKey||(m.pixelX*=this._isRTL?-1:1);var g=this._deltaX+m.pixelX,v=this._deltaY+m.pixelY,y=this._handleScrollX(g,v),w=this._handleScrollY(v,g);if(!(!y&&!w)&&!(this._rootRef&&!this._contains(d.target))){this._deltaX+=y?m.pixelX:0,this._deltaY+=w?m.pixelY:0,d.defaultPrevented||d.preventDefault();var E;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&d.stopPropagation(),E=!0),E===!0&&this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didWheel))}}},{key:"setRoot",value:function(d){this._rootRef=d}},{key:"_didWheel",value:function(){this._animationFrameID=null,this._onWheelCallback(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_contains",value:function(d){for(var m=d;m!=document.body;){if(m===this._rootRef)return!0;m=m.parentNode}return!1}}],[{key:"_swapNormalizedWheelAxis",value:function(d){return{spinX:d.spinY,spinY:d.spinX,pixelX:d.pixelY,pixelY:d.pixelX}}},{key:"_allowInternalAxesSwap",value:function(){return navigator.platform!=="MacIntel"}}]),p}(),c=l;e.default=c})(tl);var Rp={},gr={},Qo="NOT_FOUND";function tR(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Qo},put:function(n,o){t={key:n,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function rR(e,t){var r=[];function n(s){var l=r.findIndex(function(p){return t(s,p.key)});if(l>-1){var c=r[l];return l>0&&(r.splice(l,1),r.unshift(c)),c.value}return Qo}function o(s,l){n(s)===Qo&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var Op=function(t,r){return t===r};function nR(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var o=r.length,i=0;i<o;i++)if(!e(r[i],n[i]))return!1;return!0}}function Mp(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,o=n===void 0?Op:n,i=r.maxSize,a=i===void 0?1:i,s=r.resultEqualityCheck,l=nR(o),c=a===1?tR(l):rR(a,l);function p(){var h=c.get(arguments);if(h===Qo){if(h=e.apply(null,arguments),s){var d=c.getEntries(),m=d.find(function(g){return s(g.value,h)});m&&(h=m.value)}c.put(arguments,h)}return h}return p.clearCache=function(){return c.clear()},p}function oR(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(n){return typeof n=="function"})){var r=t.map(function(n){return typeof n=="function"?"function "+(n.name||"unnamed")+"()":typeof n}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}function Pp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=0,p,h={memoizeOptions:void 0},d=s.pop();if(typeof d=="object"&&(h=d,d=s.pop()),typeof d!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof d+"]");var m=h,g=m.memoizeOptions,v=g===void 0?r:g,y=Array.isArray(v)?v:[v],w=oR(s),E=e.apply(void 0,[function(){return c++,d.apply(null,arguments)}].concat(y)),_=e(function(){for(var b=[],C=w.length,S=0;S<C;S++)b.push(w[S].apply(null,arguments));return p=E.apply(null,b),p});return Object.assign(_,{resultFunc:d,memoizedResultFunc:E,dependencies:w,lastResult:function(){return p},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),_};return o}var Dp=Pp(Mp),iR=function(t,r){if(r===void 0&&(r=Dp),typeof t!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof t));var n=Object.keys(t),o=r(n.map(function(i){return t[i]}),function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return a.reduce(function(l,c,p){return l[n[p]]=c,l},{})});return o};const aR=Object.freeze(Object.defineProperty({__proto__:null,createSelector:Dp,createSelectorCreator:Pp,createStructuredSelector:iR,defaultEqualityCheck:Op,defaultMemoize:Mp},Symbol.toStringTag,{value:"Module"})),sR=u.getAugmentedNamespace(aR);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=sR,r=n(so);function n(i){return i&&i.__esModule?i:{default:i}}var o=(0,t.createSelectorCreator)(t.defaultMemoize,r.default);e.default=o})(gr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(gr);function r(i){return i&&i.__esModule?i:{default:i}}function n(i,a,s){var l=1,c=1,p=i+2,h=i+1,d=2;return a&&(c++,h++,p++,d++),s&&h++,{ariaGroupHeaderIndex:l,ariaHeaderIndex:c,ariaFooterIndex:p,ariaRowCount:h,ariaRowIndexOffset:d}}var o=(0,t.default)([function(i){return i.rowsCount},function(i){return i.groupHeaderHeight>0},function(i){return i.footerHeight>0}],n);e.default=o})(Rp);var kp={};function lR(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var uR=lR;function cR(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(r(i[l],l,i)===!1)break}return t}}var dR=cR,fR=dR,pR=fR(),hR=pR;function mR(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var gR=mR,qa={exports:{}};function vR(){return!1}var yR=vR;(function(e,t){var r=Dt,n=yR,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(qa,qa.exports);var nl=qa.exports,bR=Gr,_R=Zs,xR=Yr,wR="[object Arguments]",CR="[object Array]",TR="[object Boolean]",ER="[object Date]",SR="[object Error]",RR="[object Function]",OR="[object Map]",MR="[object Number]",PR="[object Object]",DR="[object RegExp]",kR="[object Set]",IR="[object String]",AR="[object WeakMap]",NR="[object ArrayBuffer]",$R="[object DataView]",LR="[object Float32Array]",FR="[object Float64Array]",HR="[object Int8Array]",BR="[object Int16Array]",jR="[object Int32Array]",zR="[object Uint8Array]",WR="[object Uint8ClampedArray]",VR="[object Uint16Array]",UR="[object Uint32Array]",_e={};_e[LR]=_e[FR]=_e[HR]=_e[BR]=_e[jR]=_e[zR]=_e[WR]=_e[VR]=_e[UR]=!0;_e[wR]=_e[CR]=_e[NR]=_e[TR]=_e[$R]=_e[ER]=_e[SR]=_e[RR]=_e[OR]=_e[MR]=_e[PR]=_e[DR]=_e[kR]=_e[IR]=_e[AR]=!1;function qR(e){return xR(e)&&_R(e.length)&&!!_e[bR(e)]}var GR=qR;function YR(e){return function(t){return e(t)}}var XR=YR,Ga={exports:{}};(function(e,t){var r=up,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch(c){}}();e.exports=s})(Ga,Ga.exports);var KR=Ga.exports,QR=GR,ZR=XR,hc=KR,mc=hc&&hc.isTypedArray,JR=mc?ZR(mc):QR,ol=JR,eO=gR,tO=ki,rO=tt,nO=nl,oO=Qs,iO=ol,aO=Object.prototype,sO=aO.hasOwnProperty;function lO(e,t){var r=rO(e),n=!r&&tO(e),o=!r&&!n&&nO(e),i=!r&&!n&&!o&&iO(e),a=r||n||o||i,s=a?eO(e.length,String):[],l=s.length;for(var c in e)(t||sO.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||oO(c,l)))&&s.push(c);return s}var uO=lO,cO=Object.prototype;function dO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||cO;return e===r}var Ip=dO;function fO(e,t){return function(r){return e(t(r))}}var pO=fO,hO=pO,mO=hO(Object.keys,Object),gO=mO,vO=Ip,yO=gO,bO=Object.prototype,_O=bO.hasOwnProperty;function xO(e){if(!vO(e))return yO(e);var t=[];for(var r in Object(e))_O.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ap=xO,wO=dp,CO=Zs;function TO(e){return e!=null&&CO(e.length)&&!wO(e)}var $i=TO,EO=uO,SO=Ap,RO=$i;function OO(e){return RO(e)?EO(e):SO(e)}var il=OO,MO=hR,PO=il;function DO(e,t){return e&&MO(e,t,PO)}var kO=DO,IO=$i;function AO(e,t){return function(r,n){if(r==null)return r;if(!IO(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++i<o)&&n(a[i],i,a)!==!1;);return r}}var NO=AO,$O=kO,LO=NO,FO=LO($O),al=FO,HO=Js;function BO(e){return typeof e=="function"?e:HO}var jO=BO,zO=uR,WO=al,VO=jO,UO=tt;function qO(e,t){var r=UO(e)?zO:WO;return r(e,VO(t))}var sl=qO,ll={},GO=Mi;function YO(){this.__data__=new GO,this.size=0}var XO=YO;function KO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var QO=KO;function ZO(e){return this.__data__.get(e)}var JO=ZO;function eM(e){return this.__data__.has(e)}var tM=eM,rM=Mi,nM=Gs,oM=Ys,iM=200;function aM(e,t){var r=this.__data__;if(r instanceof rM){var n=r.__data__;if(!nM||n.length<iM-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new oM(n)}return r.set(e,t),this.size=r.size,this}var sM=aM,lM=Mi,uM=XO,cM=QO,dM=JO,fM=tM,pM=sM;function Jr(e){var t=this.__data__=new lM(e);this.size=t.size}Jr.prototype.clear=uM;Jr.prototype.delete=cM;Jr.prototype.get=dM;Jr.prototype.has=fM;Jr.prototype.set=pM;var Np=Jr,hM="__lodash_hash_undefined__";function mM(e){return this.__data__.set(e,hM),this}var gM=mM;function vM(e){return this.__data__.has(e)}var yM=vM,bM=Ys,_M=gM,xM=yM;function Zo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new bM;++t<r;)this.add(e[t])}Zo.prototype.add=Zo.prototype.push=_M;Zo.prototype.has=xM;var wM=Zo;function CM(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var TM=CM;function EM(e,t){return e.has(t)}var SM=EM,RM=wM,OM=TM,MM=SM,PM=1,DM=2;function kM(e,t,r,n,o,i){var a=r&PM,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),p=i.get(t);if(c&&p)return c==t&&p==e;var h=-1,d=!0,m=r&DM?new RM:void 0;for(i.set(e,t),i.set(t,e);++h<s;){var g=e[h],v=t[h];if(n)var y=a?n(v,g,h,t,e,i):n(g,v,h,e,t,i);if(y!==void 0){if(y)continue;d=!1;break}if(m){if(!OM(t,function(w,E){if(!MM(m,E)&&(g===w||o(g,w,r,n,i)))return m.push(E)})){d=!1;break}}else if(!(g===v||o(g,v,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var $p=kM,IM=Dt,AM=IM.Uint8Array,NM=AM;function $M(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}var LM=$M;function FM(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var HM=FM,gc=oo,vc=NM,BM=qs,jM=$p,zM=LM,WM=HM,VM=1,UM=2,qM="[object Boolean]",GM="[object Date]",YM="[object Error]",XM="[object Map]",KM="[object Number]",QM="[object RegExp]",ZM="[object Set]",JM="[object String]",e4="[object Symbol]",t4="[object ArrayBuffer]",r4="[object DataView]",yc=gc?gc.prototype:void 0,ga=yc?yc.valueOf:void 0;function n4(e,t,r,n,o,i,a){switch(r){case r4:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case t4:return!(e.byteLength!=t.byteLength||!i(new vc(e),new vc(t)));case qM:case GM:case KM:return BM(+e,+t);case YM:return e.name==t.name&&e.message==t.message;case QM:case JM:return e==t+"";case XM:var s=zM;case ZM:var l=n&VM;if(s||(s=WM),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=UM,a.set(e,t);var p=jM(s(e),s(t),n,o,i,a);return a.delete(e),p;case e4:if(ga)return ga.call(e)==ga.call(t)}return!1}var o4=n4,i4=bp,a4=tt;function s4(e,t,r){var n=t(e);return a4(e)?n:i4(n,r(e))}var l4=s4;function u4(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}var c4=u4;function d4(){return[]}var f4=d4,p4=c4,h4=f4,m4=Object.prototype,g4=m4.propertyIsEnumerable,bc=Object.getOwnPropertySymbols,v4=bc?function(e){return e==null?[]:(e=Object(e),p4(bc(e),function(t){return g4.call(e,t)}))}:h4,y4=v4,b4=l4,_4=y4,x4=il;function w4(e){return b4(e,x4,_4)}var C4=w4,_c=C4,T4=1,E4=Object.prototype,S4=E4.hasOwnProperty;function R4(e,t,r,n,o,i){var a=r&T4,s=_c(e),l=s.length,c=_c(t),p=c.length;if(l!=p&&!a)return!1;for(var h=l;h--;){var d=s[h];if(!(a?d in t:S4.call(t,d)))return!1}var m=i.get(e),g=i.get(t);if(m&&g)return m==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var y=a;++h<l;){d=s[h];var w=e[d],E=t[d];if(n)var _=a?n(E,w,d,t,e,i):n(w,E,d,e,t,i);if(!(_===void 0?w===E||o(w,E,r,n,i):_)){v=!1;break}y||(y=d=="constructor")}if(v&&!y){var x=e.constructor,b=t.constructor;x!=b&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof b=="function"&&b instanceof b)&&(v=!1)}return i.delete(e),i.delete(t),v}var O4=R4,M4=mr,P4=Dt,D4=M4(P4,"DataView"),k4=D4,I4=mr,A4=Dt,N4=I4(A4,"Promise"),$4=N4,L4=mr,F4=Dt,H4=L4(F4,"Set"),B4=H4,j4=mr,z4=Dt,W4=j4(z4,"WeakMap"),V4=W4,Ya=k4,Xa=Gs,Ka=$4,Qa=B4,Za=V4,Lp=Gr,en=fp,xc="[object Map]",U4="[object Object]",wc="[object Promise]",Cc="[object Set]",Tc="[object WeakMap]",Ec="[object DataView]",q4=en(Ya),G4=en(Xa),Y4=en(Ka),X4=en(Qa),K4=en(Za),ar=Lp;(Ya&&ar(new Ya(new ArrayBuffer(1)))!=Ec||Xa&&ar(new Xa)!=xc||Ka&&ar(Ka.resolve())!=wc||Qa&&ar(new Qa)!=Cc||Za&&ar(new Za)!=Tc)&&(ar=function(e){var t=Lp(e),r=t==U4?e.constructor:void 0,n=r?en(r):"";if(n)switch(n){case q4:return Ec;case G4:return xc;case Y4:return wc;case X4:return Cc;case K4:return Tc}return t});var Fp=ar,va=Np,Q4=$p,Z4=o4,J4=O4,Sc=Fp,Rc=tt,Oc=nl,e5=ol,t5=1,Mc="[object Arguments]",Pc="[object Array]",Po="[object Object]",r5=Object.prototype,Dc=r5.hasOwnProperty;function n5(e,t,r,n,o,i){var a=Rc(e),s=Rc(t),l=a?Pc:Sc(e),c=s?Pc:Sc(t);l=l==Mc?Po:l,c=c==Mc?Po:c;var p=l==Po,h=c==Po,d=l==c;if(d&&Oc(e)){if(!Oc(t))return!1;a=!0,p=!1}if(d&&!p)return i||(i=new va),a||e5(e)?Q4(e,t,r,n,o,i):Z4(e,t,l,r,n,o,i);if(!(r&t5)){var m=p&&Dc.call(e,"__wrapped__"),g=h&&Dc.call(t,"__wrapped__");if(m||g){var v=m?e.value():e,y=g?t.value():t;return i||(i=new va),o(v,y,r,n,i)}}return d?(i||(i=new va),J4(e,t,r,n,o,i)):!1}var o5=n5,i5=o5,kc=Yr;function Hp(e,t,r,n,o){return e===t?!0:e==null||t==null||!kc(e)&&!kc(t)?e!==e&&t!==t:i5(e,t,r,n,Hp,o)}var Bp=Hp,a5=Np,s5=Bp,l5=1,u5=2;function c5(e,t,r,n){var o=r.length,i=o,a=!n;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var l=s[0],c=e[l],p=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var h=new a5;if(n)var d=n(c,p,l,e,t,h);if(!(d===void 0?s5(p,c,l5|u5,n,h):d))return!1}}return!0}var d5=c5,f5=io;function p5(e){return e===e&&!f5(e)}var jp=p5,h5=jp,m5=il;function g5(e){for(var t=m5(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,h5(o)]}return t}var v5=g5;function y5(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var zp=y5,b5=d5,_5=v5,x5=zp;function w5(e){var t=_5(e);return t.length==1&&t[0][2]?x5(t[0][0],t[0][1]):function(r){return r===e||b5(r,e,t)}}var C5=w5,T5=Ks;function E5(e,t,r){var n=e==null?void 0:T5(e,t);return n===void 0?r:n}var S5=E5,R5=Bp,O5=S5,M5=yp,P5=Us,D5=jp,k5=zp,I5=ao,A5=1,N5=2;function $5(e,t){return P5(e)&&D5(t)?k5(I5(e),t):function(r){var n=O5(r,e);return n===void 0&&n===t?M5(r,e):R5(t,n,A5|N5)}}var L5=$5;function F5(e){return function(t){return t==null?void 0:t[e]}}var H5=F5,B5=Ks;function j5(e){return function(t){return B5(t,e)}}var z5=j5,W5=H5,V5=z5,U5=Us,q5=ao;function G5(e){return U5(e)?W5(q5(e)):V5(e)}var Y5=G5,X5=C5,K5=L5,Q5=Js,Z5=tt,J5=Y5;function eP(e){return typeof e=="function"?e:e==null?Q5:typeof e=="object"?Z5(e)?K5(e[0],e[1]):X5(e):J5(e)}var Wp=eP,tP=al,rP=$i;function nP(e,t){var r=-1,n=rP(e)?Array(e.length):[];return tP(e,function(o,i,a){n[++r]=t(o,i,a)}),n}var oP=nP,iP=hp,aP=Wp,sP=oP,lP=tt;function uP(e,t){var r=lP(e)?iP:sP;return r(e,aP(t))}var Vp=uP,Xt={};function cP(e,t,r,n){var o=-1,i=e==null?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}var dP=cP;function fP(e,t,r,n,o){return o(e,function(i,a,s){r=n?(n=!1,i):t(r,i,a,s)}),r}var pP=fP,hP=dP,mP=al,gP=Wp,vP=pP,yP=tt;function bP(e,t,r){var n=yP(e)?hP:vP,o=arguments.length<3;return n(e,gP(t),r,o,mP)}var _P=bP;Object.defineProperty(Xt,"__esModule",{value:!0});Xt.sumPropWidths=wP;Xt.getTotalWidth=CP;Xt.getTotalFlexGrow=TP;var ul=xP(_P);function xP(e){return e&&e.__esModule?e:{default:e}}function wP(e){return(0,ul.default)(e,function(t,r){return t+r.props.width},0)}function CP(e){return(0,ul.default)(e,function(t,r){return t+r.width},0)}function TP(e){return(0,ul.default)(e,function(t,r){return t+(r.flexGrow||0)},0)}var tn={},Li={},Fi={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n,o,i){return n<o?o:n>i?i:n}var r=t;e.default=r})(Fi);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ScrollbarState=void 0;var t=o(Fi),r=o(gr),n=Xt;function o(m){return m&&m.__esModule?m:{default:m}}var i=1,a=3,s=6,l={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};e.ScrollbarState=l;function c(m,g,v,y,w,E,_){var x=g.cellGroupWrapperHeight,b=g.footerHeight,C=g.headerHeight,S=g.groupHeaderHeight,O=x?0:2*i,M=b+C+S+O,D=w.height,R=w.maxHeight,T=w.useMaxHeight,I=w.width,A=Math.round(T?R:D),P=A-M,N=p(m,y,I,_),H=P,B=P;switch(N){case l.VISIBLE:{H-=E,B-=E;break}case l.JOINT_SCROLLBARS:{H-=E;break}}return{bufferRowCount:h(B,v),minAvailableHeight:Math.max(H,0),maxAvailableHeight:Math.max(B,0),reservedHeight:M,scrollStateX:N}}function p(m,g,v,y){var w=g.overflowX,E=g.showScrollbarX,_=(0,n.getTotalWidth)(m);return w==="hidden"||E===!1?l.HIDDEN:_>v?l.VISIBLE:_>v-y?l.JOINT_SCROLLBARS:l.HIDDEN}function h(m,g){var v=g.bufferRowCount,y=g.rowHeight,w=g.subRowHeight;if(v!==void 0)return console.log("buffer set: "+v),v;var E=y+w,_=Math.ceil(m/E)+1;return(0,t.default)(Math.floor(_/2),a,s)}var d=(0,r.default)([function(m){return m.columnProps},function(m){return m.elementHeights},function(m){return m.rowSettings},function(m){return m.scrollFlags},function(m){return m.tableSize},function(m){return m.scrollbarXHeight},function(m){return m.scrollbarYWidth}],c);e.default=d})(Li);(function(e){function t(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(h){return typeof h}:t=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(c)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(gr),n=i(Li);function o(c){if(typeof WeakMap!="function")return null;var p=new WeakMap,h=new WeakMap;return(o=function(m){return m?h:p})(c)}function i(c,p){if(c&&c.__esModule)return c;if(c===null||t(c)!=="object"&&typeof c!="function")return{default:c};var h=o(p);if(h&&h.has(c))return h.get(c);var d={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&Object.prototype.hasOwnProperty.call(c,g)){var v=m?Object.getOwnPropertyDescriptor(c,g):null;v&&(v.get||v.set)?Object.defineProperty(d,g,v):d[g]=c[g]}return d.default=c,h&&h.set(c,d),d}function a(c){return c&&c.__esModule?c:{default:c}}function s(c,p,h){var d=h.overflowY,m=h.showScrollbarY,g=d!=="hidden"&&m!==!1,v=c.minAvailableHeight,y=c.maxAvailableHeight,w=c.scrollStateX,E=!1,_=!1;w===n.ScrollbarState.VISIBLE&&(_=!0),g&&p>y&&(E=!0),E&&w===n.ScrollbarState.JOINT_SCROLLBARS&&(_=!0);var x=y;return _&&(x=v),{availableHeight:x,scrollEnabledX:_,scrollEnabledY:E}}var l=(0,r.default)([n.default,function(c){return c.scrollContentHeight},function(c){return c.scrollFlags}],s);e.default=l})(tn);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(sl),r=a(Vp),n=a(gr),o=Xt,i=a(tn);function a(d){return d&&d.__esModule?d:{default:d}}function s(){return s=Object.assign||function(d){for(var m=1;m<arguments.length;m++){var g=arguments[m];for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(d[v]=g[v])}return d},s.apply(this,arguments)}function l(d,m,g,v,y){var w=g?y:0,E=v-w,_=c(d,m,E),x=_.newColumnGroupProps,b=_.newColumnProps,C=p(b),S=C.fixedColumns,O=C.fixedRightColumns,M=C.scrollableColumns,D=E-(0,o.getTotalWidth)(S)-(0,o.getTotalWidth)(O),R=Math.max(0,(0,o.getTotalWidth)(b)-E);return{columnGroupProps:x,columnProps:b,availableScrollWidth:D,fixedColumns:S,fixedRightColumns:O,scrollableColumns:M,maxScrollX:R}}function c(d,m,g){var v=m,y=(0,o.getTotalFlexGrow)(m);if(y!==0){var w=(0,o.getTotalWidth)(m),E=Math.max(g-w,0);v=(0,r.default)(m,function(b){var C=b.flexGrow;if(!C)return b;var S=Math.floor(C*E/y),O=b.width+S;return y-=C,E-=S,s({},b,{width:O})})}var _=(0,r.default)(d,function(){return 0});(0,t.default)(v,function(b){b.groupIdx!==void 0&&(_[b.groupIdx]+=b.width)});var x=(0,r.default)(d,function(b,C){return _[C]===b.width?b:s({},b,{width:_[C]})});return{newColumnGroupProps:x,newColumnProps:v}}function p(d){var m=[],g=[],v=[];return(0,t.default)(d,function(y){var w=v;y.fixed?w=m:y.fixedRight&&(w=g),w.push(y)}),{fixedColumns:m,fixedRightColumns:g,scrollableColumns:v}}var h=(0,n.default)([function(d){return d.columnGroupProps},function(d){return d.columnProps},function(d){return(0,i.default)(d).scrollEnabledY},function(d){return d.tableSize.width},function(d){return d.scrollbarYWidth}],l);e.default=h})(ll);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(sl),r=o(gr),n=o(ll);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,l){var c=s.columnGroupProps,p=s.columnProps,h=[],d=[],m=[];(0,t.default)(c,function(w,E){var _={props:w,template:l.groupHeader[E]};w.fixed?h.push(_):w.fixedRight?d.push(_):m.push(_)});var g={cell:[],header:[],footer:[]},v={cell:[],header:[],footer:[]},y={cell:[],header:[],footer:[]};return(0,t.default)(p,function(w,E){var _=y;w.fixed?_=g:w.fixedRight&&(_=v),_.cell.push({props:w,template:l.cell[E]}),_.header.push({props:w,template:l.header[E]}),_.footer.push({props:w,template:l.footer[E]})}),{fixedColumnGroups:h,fixedColumns:g,fixedRightColumnGroups:d,fixedRightColumns:v,scrollableColumnGroups:m,scrollableColumns:y}}var a=(0,r.default)([function(s){return(0,n.default)(s)},function(s){return s.elementTemplates}],i);e.default=a})(kp);var cl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(gr),r=o(Li),n=o(tn);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,l,c,p,h,d,m){var g=h.availableHeight,v=h.scrollEnabledX,y=c;v&&(y+=m);var w=Math.min(g,p),E=d?w:g,_=E+y,x=E;l<_&&(x=l-y);var b=d?p:Math.max(p,g),C=b+y;l&&(C=Math.max(l,C));var S=s.footerHeight,O=s.groupHeaderHeight,M=s.headerHeight,D=O+M,R=D+x,T=R+S,I=Math.max(0,R-D);return{bodyHeight:w,bodyOffsetTop:D,componentHeight:_,contentHeight:C,footOffsetTop:R,scrollbarXOffsetTop:T,scrollbarYHeight:I,visibleRowsHeight:x}}var a=(0,t.default)([function(s){return s.elementHeights},function(s){return s.tableSize.ownerHeight},function(s){return(0,r.default)(s).reservedHeight},function(s){return s.scrollContentHeight},n.default,function(s){return s.tableSize.useMaxHeight},function(s){return s.scrollbarXHeight}],i);e.default=a})(cl);var Up={},Hi={},qp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Yt);function r(i){return i&&i.__esModule?i:{default:i}}var n={listen:function(a,s,l){if(a.addEventListener)return a.addEventListener(s,l,!1),{remove:function(){a.removeEventListener(s,l,!1)}};if(a.attachEvent)return a.attachEvent("on"+s,l),{remove:function(){a.detachEvent("on"+s,l)}}},capture:function(a,s,l){return a.addEventListener?(a.addEventListener(s,l,!0),{remove:function(){a.removeEventListener(s,l,!0)}}):(process.env.NODE_ENV!=="production"&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:t.default})},registerDefault:function(){}},o=n;e.default=o})(qp);var Gp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Zr);function r(i){return i&&i.__esModule?i:{default:i}}var n=t.default.cancelAnimationFrame||t.default.webkitCancelAnimationFrame||t.default.mozCancelAnimationFrame||t.default.oCancelAnimationFrame||t.default.msCancelAnimationFrame||t.default.clearTimeout,o=n;e.default=o})(Gp);var Bi={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(o){var i=0,a=0;if(!o.clientX||!o.clientY){if(o.touches&&o.touches.length>0){var s=o.touches[0];i=s.clientX,a=s.clientY}}else i=o.clientX,a=o.clientY;return{x:i,y:a}}var r={getCoordinatesFromEvent:t},n=r;e.default=n})(Bi);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(qp),r=i(Gp),n=i(Ni),o=i(Bi);function i(h){return h&&h.__esModule?h:{default:h}}function a(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function s(h,d){for(var m=0;m<d.length;m++){var g=d[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function l(h,d,m){return d&&s(h.prototype,d),h}var c=function(){function h(d,m,g,v){a(this,h),this._isDragging=!1,this._isTouchEnabled=v,this._animationFrameID=null,this._domNode=g,this._onMove=d,this._onMoveEnd=m,this._onMouseEnd=this._onMouseEnd.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._didMouseMove=this._didMouseMove.bind(this)}return l(h,[{key:"captureMouseMoves",value:function(m){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=t.default.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=t.default.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=t.default.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=t.default.listen(this._domNode,"touchstart",this._onMouseMove),this._eventTouchMoveToken=t.default.listen(this._domNode,"touchmove",this._onMouseMove),this._eventTouchEndToken=t.default.listen(this._domNode,"touchend",this._onMouseUp)),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var g=o.default.getCoordinatesFromEvent(m),v=g.x,y=g.y;this._x=v,this._y=y}m.preventDefault()}},{key:"releaseMouseMoves",value:function(){this._eventMoveToken&&this._eventUpToken&&this._eventLeaveToken&&(this._eventMoveToken.remove(),this._eventMoveToken=null,this._eventUpToken.remove(),this._eventUpToken=null,this._eventLeaveToken.remove(),this._eventLeaveToken=null),this._isTouchEnabled&&this._eventTouchStartToken&&this._eventTouchMoveToken&&this._eventTouchEndToken&&(this._eventTouchStartToken.remove(),this._eventTouchStartToken=null,this._eventTouchMoveToken.remove(),this._eventTouchMoveToken=null,this._eventTouchEndToken.remove(),this._eventTouchEndToken=null),this._animationFrameID!==null&&((0,r.default)(this._animationFrameID),this._animationFrameID=null),this._isDragging&&(this._isDragging=!1,this._x=null,this._y=null)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"_onMouseMove",value:function(m){var g=o.default.getCoordinatesFromEvent(m),v=g.x,y=g.y;this._deltaX+=v-this._x,this._deltaY+=y-this._y,this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didMouseMove)),this._x=v,this._y=y,m.preventDefault()}},{key:"_didMouseMove",value:function(){this._animationFrameID=null,this._onMove(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_onMouseUp",value:function(){this._animationFrameID&&this._didMouseMove(),this._onMoveEnd(!1)}},{key:"_onMouseEnd",value:function(){this._onMoveEnd(!0)}}]),h}(),p=c;e.default=p})(Hi);(function(e){function t(b){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(S){return typeof S}:t=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},t(b)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(F),n=s(Ye),o=s(Fi),i=s(mt),a=s(Hi);function s(b){return b&&b.__esModule?b:{default:b}}function l(b,C){if(!(b instanceof C))throw new TypeError("Cannot call a class as a function")}function c(b,C){for(var S=0;S<C.length;S++){var O=C[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(b,O.key,O)}}function p(b,C,S){return C&&c(b.prototype,C),b}function h(b,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(C&&C.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),C&&d(b,C)}function d(b,C){return d=Object.setPrototypeOf||function(O,M){return O.__proto__=M,O},d(b,C)}function m(b){var C=y();return function(){var O=w(b),M;if(C){var D=w(this).constructor;M=Reflect.construct(O,arguments,D)}else M=O.apply(this,arguments);return g(this,M)}}function g(b,C){return C&&(t(C)==="object"||typeof C=="function")?C:v(b)}function v(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function y(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(b){return!1}}function w(b){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},w(b)}function E(b,C,S){return C in b?Object.defineProperty(b,C,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[C]=S,b}var _=function(b){h(S,b);var C=m(S);function S(){var O;l(this,S);for(var M=arguments.length,D=new Array(M),R=0;R<M;R++)D[R]=arguments[R];return O=C.call.apply(C,[this].concat(D)),E(v(O),"state",{width:0,cursorDelta:0}),E(v(O),"_onMove",function(T){O.props.isRTL&&(T=-T);var I=O.state.cursorDelta+T,A=(0,o.default)(I,O.props.minWidth,O.props.maxWidth);O.setState({width:A,cursorDelta:I})}),E(v(O),"_onColumnResizeEnd",function(){O._mouseMoveTracker&&O._mouseMoveTracker.releaseMouseMoves(),O.props.onColumnResizeEnd(O.state.width,O.props.columnKey)}),O}return p(S,[{key:"componentDidUpdate",value:function(){this.props.initialEvent&&!this._mouseMoveTracker.isDragging()&&(this._mouseMoveTracker.captureMouseMoves(this.props.initialEvent),this.setState({width:this.props.initialWidth,cursorDelta:this.props.initialWidth}))}},{key:"componentDidMount",value:function(){this._mouseMoveTracker=new a.default(this._onMove,this._onColumnResizeEnd,document.body,this.props.touchEnabled)}},{key:"componentWillUnmount",value:function(){this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}},{key:"render",value:function(){var M={width:this.state.width,height:this.props.height};return this.props.isRTL?M.right=this.props.leftOffset:M.left=this.props.leftOffset,r.default.createElement("div",{className:(0,i.default)({"fixedDataTableColumnResizerLineLayout/main":!0,"fixedDataTableColumnResizerLineLayout/hiddenElem":!this.props.visible,"public/fixedDataTableColumnResizerLine/main":!0}),style:M},r.default.createElement("div",{className:(0,i.default)("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}}))}}]),S}(r.default.PureComponent);E(_,"propTypes",{visible:n.default.bool.isRequired,height:n.default.number.isRequired,leftOffset:n.default.number.isRequired,knobHeight:n.default.number.isRequired,initialWidth:n.default.number,minWidth:n.default.number,maxWidth:n.default.number,initialEvent:n.default.object,onColumnResizeEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var x=_;e.default=x})(Up);var Yp={};function EP(e,t){return e==null||e!==e?t:e}var SP=EP,RP=Math.max,OP=Math.min;function MP(e,t,r){return e>=OP(t,r)&&e<RP(t,r)}var PP=MP,DP=/\s/;function kP(e){for(var t=e.length;t--&&DP.test(e.charAt(t)););return t}var IP=kP,AP=IP,NP=/^\s+/;function $P(e){return e&&e.slice(0,AP(e)+1).replace(NP,"")}var LP=$P,FP=LP,Ic=io,HP=Si,Ac=NaN,BP=/^[-+]0x[0-9a-f]+$/i,jP=/^0b[01]+$/i,zP=/^0o[0-7]+$/i,WP=parseInt;function VP(e){if(typeof e=="number")return e;if(HP(e))return Ac;if(Ic(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ic(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=FP(e);var r=jP.test(e);return r||zP.test(e)?WP(e.slice(2),r?2:8):BP.test(e)?Ac:+e}var dl=VP,UP=dl,Nc=1/0,qP=17976931348623157e292;function GP(e){if(!e)return e===0?e:0;if(e=UP(e),e===Nc||e===-Nc){var t=e<0?-1:1;return t*qP}return e===e?e:0}var YP=GP,XP=PP,$c=YP,KP=dl;function QP(e,t,r){return t=$c(t),r===void 0?(r=t,t=0):r=$c(r),e=KP(e),XP(e,t,r)}var ZP=QP;function JP(e){return e==null}var Xp=JP,fl={},Kp={},Qp={},pl={};(function(e){function t(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(R){return typeof R}:t=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t(M)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(F),n=a(Ye),o=a(mt),i=a(Gt);function a(M){return M&&M.__esModule?M:{default:M}}function s(){return s=Object.assign||function(M){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(M[T]=R[T])}return M},s.apply(this,arguments)}function l(M,D){var R=Object.keys(M);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(M);D&&(T=T.filter(function(I){return Object.getOwnPropertyDescriptor(M,I).enumerable})),R.push.apply(R,T)}return R}function c(M){for(var D=1;D<arguments.length;D++){var R=arguments[D]!=null?arguments[D]:{};D%2?l(Object(R),!0).forEach(function(T){C(M,T,R[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(R)):l(Object(R)).forEach(function(T){Object.defineProperty(M,T,Object.getOwnPropertyDescriptor(R,T))})}return M}function p(M,D){if(M==null)return{};var R=h(M,D),T,I;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(M);for(I=0;I<A.length;I++)T=A[I],!(D.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(M,T)&&(R[T]=M[T])}return R}function h(M,D){if(M==null)return{};var R={},T=Object.keys(M),I,A;for(A=0;A<T.length;A++)I=T[A],!(D.indexOf(I)>=0)&&(R[I]=M[I]);return R}function d(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function m(M,D){for(var R=0;R<D.length;R++){var T=D[R];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(M,T.key,T)}}function g(M,D,R){return D&&m(M.prototype,D),M}function v(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&y(M,D)}function y(M,D){return y=Object.setPrototypeOf||function(T,I){return T.__proto__=I,T},y(M,D)}function w(M){var D=x();return function(){var T=b(M),I;if(D){var A=b(this).constructor;I=Reflect.construct(T,arguments,A)}else I=T.apply(this,arguments);return E(this,I)}}function E(M,D){return D&&(t(D)==="object"||typeof D=="function")?D:_(M)}function _(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function x(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(M){return!1}}function b(M){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},b(M)}function C(M,D,R){return D in M?Object.defineProperty(M,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):M[D]=R,M}var S=function(M){v(R,M);var D=w(R);function R(){return d(this,R),D.apply(this,arguments)}return g(R,[{key:"render",value:function(){var I=this.props,A=I.height,P=I.width,N=I.style,H=I.className,B=I.children,L=p(I,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),k=c({height:A,width:P},N);return r.default.createElement("div",s({},L,{className:(0,i.default)((0,o.default)("fixedDataTableCellLayout/wrap1"),(0,o.default)("public/fixedDataTableCell/wrap1"),H),style:k}),r.default.createElement("div",{className:(0,i.default)((0,o.default)("fixedDataTableCellLayout/wrap2"),(0,o.default)("public/fixedDataTableCell/wrap2"))},r.default.createElement("div",{className:(0,i.default)((0,o.default)("fixedDataTableCellLayout/wrap3"),(0,o.default)("public/fixedDataTableCell/wrap3"))},r.default.createElement("div",{className:(0,o.default)("public/fixedDataTableCell/cellContent")},B))))}}]),R}(r.default.Component);C(S,"propTypes",{height:n.default.number,width:n.default.number,columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number,isVisible:n.default.bool});var O=S;e.default=O})(pl);var Zp={};(function(e){function t(b){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(S){return typeof S}:t=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},t(b)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(F),n=s(Ye),o=s(mt),i=s(Hi),a=s(Bi);function s(b){return b&&b.__esModule?b:{default:b}}function l(b,C){if(!(b instanceof C))throw new TypeError("Cannot call a class as a function")}function c(b,C){for(var S=0;S<C.length;S++){var O=C[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(b,O.key,O)}}function p(b,C,S){return C&&c(b.prototype,C),b}function h(b,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(C&&C.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),C&&d(b,C)}function d(b,C){return d=Object.setPrototypeOf||function(O,M){return O.__proto__=M,O},d(b,C)}function m(b){var C=y();return function(){var O=w(b),M;if(C){var D=w(this).constructor;M=Reflect.construct(O,arguments,D)}else M=O.apply(this,arguments);return g(this,M)}}function g(b,C){return C&&(t(C)==="object"||typeof C=="function")?C:v(b)}function v(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function y(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(b){return!1}}function w(b){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},w(b)}function E(b,C,S){return C in b?Object.defineProperty(b,C,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[C]=S,b}var _=function(b){h(S,b);var C=m(S);function S(){var O;l(this,S);for(var M=arguments.length,D=new Array(M),R=0;R<M;R++)D[R]=arguments[R];return O=C.call.apply(C,[this].concat(D)),E(v(O),"state",{dragDistance:0}),E(v(O),"onMouseDown",function(T){var I=T.target.getBoundingClientRect(),A=a.default.getCoordinatesFromEvent(T),P=A.x-I.left,N=P+T.target.parentElement.offsetLeft;O._mouseMoveTracker=new i.default(O._onMove,O._onColumnReorderEnd,document.body,O.props.touchEnabled),O._mouseMoveTracker.captureMouseMoves(T),O.setState({dragDistance:0}),O.props.onMouseDown({columnKey:O.props.columnKey,mouseLocation:{dragDistance:0,inElement:P,inColumnGroup:N}}),O._distance=0,O._animating=!0,O.frameId=requestAnimationFrame(O._updateState),O.props.touchEnabled&&T.stopPropagation()}),E(v(O),"_onMove",function(T){O._distance=O.state.dragDistance+T*(O.props.isRTL?-1:1)}),E(v(O),"_onColumnReorderEnd",function(T){O._animating=!1,cancelAnimationFrame(O.frameId),O.frameId=null,O._mouseMoveTracker&&O._mouseMoveTracker.releaseMouseMoves(),O.props.columnReorderingData.cancelReorder=T,O.props.onColumnReorderEnd()}),E(v(O),"_updateState",function(){O._animating&&(O.frameId=requestAnimationFrame(O._updateState)),O.setState({dragDistance:O._distance}),O.props.onColumnReorderMove(O._distance)}),O}return p(S,[{key:"componentWillUnmount",value:function(){this._mouseMoveTracker&&(cancelAnimationFrame(this.frameId),this.frameId=null,this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}},{key:"render",value:function(){var M={height:this.props.height};return r.default.createElement("div",{className:(0,o.default)({"fixedDataTableCellLayout/columnReorderContainer":!0,"fixedDataTableCellLayout/columnReorderContainer/active":!1}),onMouseDown:this.onMouseDown,onTouchStart:this.props.touchEnabled?this.onMouseDown:null,onTouchEnd:this.props.touchEnabled?function(D){return D.stopPropagation()}:null,onTouchMove:this.props.touchEnabled?function(D){return D.stopPropagation()}:null,style:M})}}]),S}(r.default.PureComponent);E(_,"propTypes",{onColumnReorderEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var x=_;e.default=x})(Zp);function Jp(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function e0(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function t0(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Jp.__suppressDeprecationWarning=!0;e0.__suppressDeprecationWarning=!0;t0.__suppressDeprecationWarning=!0;function eD(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,o=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),r!==null||n!==null||o!==null){var i=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
235
+
236
+ `+i+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?`
237
+ `+r:"")+(n!==null?`
238
+ `+n:"")+(o!==null?`
239
+ `+o:"")+`
240
+
241
+ The above lifecycles should be removed. Learn more about this warning here:
242
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Jp,t.componentWillReceiveProps=e0),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=t0;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,p,h){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;s.call(this,c,p,d)}}return e}const tD=Object.freeze(Object.defineProperty({__proto__:null,polyfill:eD},Symbol.toStringTag,{value:"Module"})),r0=u.getAugmentedNamespace(tD);(function(e){function t(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(I){return typeof I}:t=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},t(R)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=p(F),n=p(Ye),o=p(mt),i=p(Gt),a=p(so),s=p(pl),l=p(Zp),c=r0;function p(R){return R&&R.__esModule?R:{default:R}}function h(){return h=Object.assign||function(R){for(var T=1;T<arguments.length;T++){var I=arguments[T];for(var A in I)Object.prototype.hasOwnProperty.call(I,A)&&(R[A]=I[A])}return R},h.apply(this,arguments)}function d(R,T){if(R==null)return{};var I=m(R,T),A,P;if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(R);for(P=0;P<N.length;P++)A=N[P],!(T.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(R,A)&&(I[A]=R[A])}return I}function m(R,T){if(R==null)return{};var I={},A=Object.keys(R),P,N;for(N=0;N<A.length;N++)P=A[N],!(T.indexOf(P)>=0)&&(I[P]=R[P]);return I}function g(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function v(R,T){for(var I=0;I<T.length;I++){var A=T[I];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(R,A.key,A)}}function y(R,T,I){return T&&v(R.prototype,T),I&&v(R,I),R}function w(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),T&&E(R,T)}function E(R,T){return E=Object.setPrototypeOf||function(A,P){return A.__proto__=P,A},E(R,T)}function _(R){var T=C();return function(){var A=S(R),P;if(T){var N=S(this).constructor;P=Reflect.construct(A,arguments,N)}else P=A.apply(this,arguments);return x(this,P)}}function x(R,T){return T&&(t(T)==="object"||typeof T=="function")?T:b(R)}function b(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function C(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}function S(R){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},S(R)}function O(R,T,I){return T in R?Object.defineProperty(R,T,{value:I,enumerable:!0,configurable:!0,writable:!0}):R[T]=I,R}var M=function(R){w(I,R);var T=_(I);function I(){var A;g(this,I);for(var P=arguments.length,N=new Array(P),H=0;H<P;H++)N[H]=arguments[H];return A=T.call.apply(T,[this].concat(N)),O(b(A),"state",{isReorderingThisColumn:!1,displacement:0,reorderingDisplacement:0}),O(b(A),"_onColumnResizerMouseDown",function(B){A.props.onColumnResize(A.props.left,A.props.width,A.props.minWidth,A.props.maxWidth,A.props.columnKey,B),A.props.touchEnabled&&(B.preventDefault(),B.stopPropagation())}),O(b(A),"_onColumnReorderMouseDown",function(B){A.props.onColumnReorder(A.props.columnKey,A.props.width,A.props.left,B)}),O(b(A),"_suppressEvent",function(B){B.preventDefault(),B.stopPropagation()}),A}return y(I,[{key:"shouldComponentUpdate",value:function(P){if(P.isScrolling&&this.props.rowIndex===P.rowIndex&&this.props.isVisible===P.isVisible)return!1;if(!P.pureRendering)return!0;var N=this.props,H=N.cell,B=d(N,["cell"]),L=P.cell,k=d(P,["cell"]);return!(0,a.default)(B,k)||!H||!L||H.type!==L.type||!(0,a.default)(H.props,L.props)}},{key:"render",value:function(){var P=this.props,N=P.height,H=P.width,B=P.isVisible,L=P.columnKey,k=P.isHeaderOrFooter,$=d(P,["height","width","isVisible","columnKey","isHeaderOrFooter"]),V={height:N,width:H};if(this.props.isRTL?V.right=$.left:V.left=$.left,this.state.isReorderingThisColumn){var j=this.props.isRTL?-1:1;V.transform="translateX(".concat(this.state.displacement*j,"px) translateZ(0)"),V.zIndex=1}var W=(0,i.default)((0,o.default)({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":$.lastChild,"fixedDataTableCellLayout/alignRight":$.align==="right","fixedDataTableCellLayout/alignCenter":$.align==="center","public/fixedDataTableCell/alignRight":$.align==="right","public/fixedDataTableCell/highlighted":$.highlighted,"public/fixedDataTableCell/main":!0,"public/fixedDataTableCell/hasReorderHandle":!!$.onColumnReorder,"public/fixedDataTableCell/reordering":this.state.isReorderingThisColumn}),$.className),U;if($.onColumnResize){var Y={height:N};U=r.default.createElement("div",{className:(0,o.default)("fixedDataTableCellLayout/columnResizerContainer"),style:Y,onMouseDown:this._onColumnResizerMouseDown,onTouchStart:this.props.touchEnabled?this._onColumnResizerMouseDown:null,onTouchEnd:this.props.touchEnabled?this._suppressEvent:null,onTouchMove:this.props.touchEnabled?this._suppressEvent:null},r.default.createElement("div",{className:(0,i.default)((0,o.default)("fixedDataTableCellLayout/columnResizerKnob"),(0,o.default)("public/fixedDataTableCell/columnResizerKnob")),style:Y}))}var K;$.onColumnReorder&&(K=r.default.createElement(l.default,h({columnKey:this.columnKey,touchEnabled:this.props.touchEnabled,onMouseDown:this._onColumnReorderMouseDown,onTouchStart:this._onColumnReorderMouseDown,height:N},this.props)));var X={columnKey:L,height:N,width:H,isVisible:B};$.rowIndex>=0&&(X.rowIndex=$.rowIndex);var Q;r.default.isValidElement($.cell)?Q=r.default.cloneElement($.cell,X):typeof $.cell=="function"?Q=$.cell(X):Q=r.default.createElement(s.default,X,$.cell);var ee=k?"columnheader":"gridcell";return r.default.createElement("div",{className:W,style:V,role:ee},U,K,Q)}}],[{key:"getDerivedStateFromProps",value:function(P,N){var H=P.left+N.displacement,B={isReorderingThisColumn:!1};if(!P.isColumnReordering)return B.displacement=0,B;var L=P.columnReorderingData.originalLeft,k=L+P.columnReorderingData.dragDistance,$=P.columnGroupWidth-P.columnReorderingData.columnWidth;if(k=Math.max(k,0),k=Math.min(k,$),P.columnKey===P.columnReorderingData.columnKey)return B.displacement=k-P.left,B.isReorderingThisColumn=!0,B;var V=k+P.columnReorderingData.columnWidth,j=k+P.columnReorderingData.columnWidth/2,W=H+P.width/2,U=j>W,Y=L>P.left,K=!1;return U?k<W&&(K=!0,Y?B.displacement=P.columnReorderingData.columnWidth:B.displacement=0):V>W&&(K=!0,Y?B.displacement=0:B.displacement=P.columnReorderingData.columnWidth*-1),K?U?P.columnReorderingData.columnAfter||(P.columnReorderingData.columnAfter=P.columnKey):P.columnReorderingData.columnBefore=P.columnKey:U?P.columnReorderingData.columnBefore=P.columnKey:P.columnReorderingData.columnAfter||(P.columnReorderingData.columnAfter=P.columnKey),B}}]),I}(r.default.Component);O(M,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:n.default.bool,align:n.default.oneOf(["left","center","right"]),className:n.default.string,highlighted:n.default.bool,width:n.default.number.isRequired,minWidth:n.default.number,maxWidth:n.default.number,height:n.default.number.isRequired,cell:n.default.oneOfType([n.default.string,n.default.element,n.default.func]),columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number.isRequired,onColumnResize:n.default.func,onColumnReorder:n.default.func,left:n.default.number,pureRendering:n.default.bool,touchEnabled:n.default.bool,isHeaderOrFooter:n.default.bool,isRTL:n.default.bool,isVisible:n.default.bool.isRequired}),O(M,"defaultProps",{align:"left",highlighted:!1});var D=(0,c.polyfill)(M);e.default=D})(Qp);var lo={},hl={},ml={},n0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/-(.)/g;function r(o){return o.replace(t,function(i,a){return a.toUpperCase()})}var n=r;e.default=n})(n0);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(qr),r=o(rl),n=o(n0);function o(d){return d&&d.__esModule?d:{default:d}}var i={},a=["Webkit","ms","Moz","O"],s=new RegExp("^("+a.join("|")+")"),l=r.default.canUseDOM?document.createElement("div").style:{};function c(d){for(var m=0;m<a.length;m++){var g=a[m]+d;if(g in l)return g}return null}function p(d){var m=(0,n.default)(d);if(i[m]===void 0){var g=m.charAt(0).toUpperCase()+m.slice(1);s.test(g)&&(0,t.default)(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",d),i[m]=m in l?m:c(g)}return i[m]}var h=p;e.default=h})(ml);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ml);function r(i){return i&&i.__esModule?i:{default:i}}var n={hasCSSAnimations:function(){return!!(0,t.default)("animationName")},hasCSSTransforms:function(){return!!(0,t.default)("transform")},hasCSS3DTransforms:function(){return!!(0,t.default)("perspective")},hasCSSTransitions:function(){return!!(0,t.default)("transition")}},o=n;e.default=o})(hl);var o0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(hl),r=o(ml),n=o(Zr);function o(l){return l&&l.__esModule?l:{default:l}}var i=(0,r.default)("transform");(0,r.default)("backfaceVisibility");var a=function(){if(t.default.hasCSSTransforms()){var l=n.default.window?n.default.window.navigator.userAgent:"UNKNOWN",c=/Safari\//.test(l)&&!/Chrome\//.test(l);return!c&&t.default.hasCSS3DTransforms()?function(p,h,d){p[i]="translate3d("+h+"px,"+d+"px,0)"}:function(p,h,d){p[i]="translate("+h+"px,"+d+"px)"}}else return function(p,h,d){p.left=h+"px",p.top=d+"px"}}(),s=a;e.default=s})(o0);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(hl),r=n(o0);function n(a){return a&&a.__esModule?a:{default:a}}function o(a,s,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;a.display!=="none"&&(c?(a.left=s+"px",a.top=l+"px"):(t.default.hasCSSTransforms()&&(s*=p?-1:1),(0,r.default)(a,s,l)),p&&(a.right=a.left,a.left="auto"))}var i=o;e.default=i})(lo);(function(e){function t(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(T){return typeof T}:t=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},t(D)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(F),n=l(Ye),o=l(mt),i=Xt,a=l(Qp),s=l(lo);function l(D){return D&&D.__esModule?D:{default:D}}function c(){return c=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var T=arguments[R];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(D[I]=T[I])}return D},c.apply(this,arguments)}function p(D,R){if(D==null)return{};var T=h(D,R),I,A;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(D);for(A=0;A<P.length;A++)I=P[A],!(R.indexOf(I)>=0)&&Object.prototype.propertyIsEnumerable.call(D,I)&&(T[I]=D[I])}return T}function h(D,R){if(D==null)return{};var T={},I=Object.keys(D),A,P;for(P=0;P<I.length;P++)A=I[P],!(R.indexOf(A)>=0)&&(T[A]=D[A]);return T}function d(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function m(D,R){for(var T=0;T<R.length;T++){var I=R[T];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(D,I.key,I)}}function g(D,R,T){return R&&m(D.prototype,R),D}function v(D,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(R&&R.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),R&&y(D,R)}function y(D,R){return y=Object.setPrototypeOf||function(I,A){return I.__proto__=A,I},y(D,R)}function w(D){var R=x();return function(){var I=b(D),A;if(R){var P=b(this).constructor;A=Reflect.construct(I,arguments,P)}else A=I.apply(this,arguments);return E(this,A)}}function E(D,R){return R&&(t(R)==="object"||typeof R=="function")?R:_(D)}function _(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function x(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(D){return!1}}function b(D){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)},b(D)}function C(D,R,T){return R in D?Object.defineProperty(D,R,{value:T,enumerable:!0,configurable:!0,writable:!0}):D[R]=T,D}var S=function(D){v(T,D);var R=w(T);function T(I){var A;return d(this,T),A=R.call(this,I),C(_(A),"_renderCell",function(P,N,H,B,L,k,$,V,j){var W=H.isResizable&&A.props.onColumnResize,U=W?A.props.onColumnResize:null,Y=H.isReorderable&&A.props.onColumnReorder&&P===-1&&$!==H.width,K=Y?A.props.onColumnReorder:null,X=H.cellClassName,Q=H.pureRendering||!1;return r.default.createElement(a.default,{isScrolling:A.props.isScrolling,isHeaderOrFooter:A.props.isHeaderOrFooter,align:H.align,className:X,height:N,key:k,maxWidth:H.maxWidth,minWidth:H.minWidth,touchEnabled:A.props.touchEnabled,onColumnResize:U,onColumnReorder:K,onColumnReorderMove:A.props.onColumnReorderMove,onColumnReorderEnd:A.props.onColumnReorderEnd,isColumnReordering:V,columnReorderingData:A.props.columnReorderingData,rowIndex:P,columnKey:H.columnKey,width:H.width,left:L,cell:B,columnGroupWidth:$,pureRendering:Q,isRTL:A.props.isRTL,isVisible:A.props.isVisible&&j})}),A._initialRender=!0,A}return g(T,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var A=this.props,P=A.columns,N=new Array(P.length),H=(0,i.sumPropWidths)(P),B=A.isColumnReordering&&P.reduce(function(X,Q){return X||A.columnReorderingData.columnKey===Q.props.columnKey},!1),L=0,k=0,$=P.length;k<$;k++){var V=P[k].props,j=P[k].template,W=V.allowCellsRecycling&&!B,U=L-A.left<=A.width&&L-A.left+V.width>=0;if(!W||U){var Y=V.columnKey||"cell_"+k;N[k]=this._renderCell(A.rowIndex,A.rowHeight,V,j,L,Y,H,B,U)}L+=V.width}var K={height:A.height,position:"absolute",width:H,zIndex:A.zIndex};return(0,s.default)(K,-1*A.left,0,this._initialRender,this.props.isRTL),r.default.createElement("div",{className:(0,o.default)("fixedDataTableCellGroupLayout/cellGroup"),style:K},N)}}]),T}(r.default.Component);C(S,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:n.default.array.isRequired,isScrolling:n.default.bool,left:n.default.number,onColumnResize:n.default.func,onColumnReorder:n.default.func,onColumnReorderMove:n.default.func,onColumnReorderEnd:n.default.func,height:n.default.number.isRequired,cellGroupWrapperHeight:n.default.number,rowHeight:n.default.number.isRequired,rowIndex:n.default.number.isRequired,width:n.default.number.isRequired,zIndex:n.default.number.isRequired,touchEnabled:n.default.bool,isHeaderOrFooter:n.default.bool,isRTL:n.default.bool,isVisible:n.default.bool.isRequired});var O=function(D){v(T,D);var R=w(T);function T(){var I;d(this,T);for(var A=arguments.length,P=new Array(A),N=0;N<A;N++)P[N]=arguments[N];return I=R.call.apply(R,[this].concat(P)),C(_(I),"_onColumnResize",function(H,B,L,k,$,V){I.props.onColumnResize&&I.props.onColumnResize(I.props.offsetLeft,H-I.props.left+B,B,L,k,$,V)}),I}return g(T,[{key:"shouldComponentUpdate",value:function(A){return!(A.isScrolling&&this.props.rowIndex===A.rowIndex&&this.props.left===A.left&&this.props.offsetLeft===A.offsetLeft&&this.props.isVisible===A.isVisible)}},{key:"render",value:function(){var A=this.props,P=A.offsetLeft,N=p(A,["offsetLeft"]),H={height:N.cellGroupWrapperHeight||N.height,width:N.width};this.props.isRTL?H.right=P:H.left=P;var B=N.onColumnResize?this._onColumnResize:null;return r.default.createElement("div",{style:H,className:(0,o.default)("fixedDataTableCellGroupLayout/cellGroupWrapper")},r.default.createElement(S,c({},N,{onColumnResize:B})))}}]),T}(r.default.Component);C(O,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:n.default.bool,height:n.default.number.isRequired,offsetLeft:n.default.number,left:n.default.number,zIndex:n.default.number.isRequired}),C(O,"defaultProps",{left:0,offsetLeft:0});var M=O;e.default=M})(Kp);(function(e){function t(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(A){return typeof A}:t=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(T)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(Ye),n=c(F),o=c(mt),i=c(Gt),a=Xt,s=c(Kp),l=c(lo);function c(T){return T&&T.__esModule?T:{default:T}}function p(T,I){if(T==null)return{};var A=h(T,I),P,N;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(T);for(N=0;N<H.length;N++)P=H[N],!(I.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(T,P)&&(A[P]=T[P])}return A}function h(T,I){if(T==null)return{};var A={},P=Object.keys(T),N,H;for(H=0;H<P.length;H++)N=P[H],!(I.indexOf(N)>=0)&&(A[N]=T[N]);return A}function d(){return d=Object.assign||function(T){for(var I=1;I<arguments.length;I++){var A=arguments[I];for(var P in A)Object.prototype.hasOwnProperty.call(A,P)&&(T[P]=A[P])}return T},d.apply(this,arguments)}function m(T,I){if(!(T instanceof I))throw new TypeError("Cannot call a class as a function")}function g(T,I){for(var A=0;A<I.length;A++){var P=I[A];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}function v(T,I,A){return I&&g(T.prototype,I),T}function y(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(I&&I.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),I&&w(T,I)}function w(T,I){return w=Object.setPrototypeOf||function(P,N){return P.__proto__=N,P},w(T,I)}function E(T){var I=b();return function(){var P=C(T),N;if(I){var H=C(this).constructor;N=Reflect.construct(P,arguments,H)}else N=P.apply(this,arguments);return _(this,N)}}function _(T,I){return I&&(t(I)==="object"||typeof I=="function")?I:x(T)}function x(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(T){return!1}}function C(T){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},C(T)}function S(T,I,A){return I in T?Object.defineProperty(T,I,{value:A,enumerable:!0,configurable:!0,writable:!0}):T[I]=A,T}var O=1,M=function(T){y(A,T);var I=E(A);function A(){var P;m(this,A);for(var N=arguments.length,H=new Array(N),B=0;B<N;B++)H[B]=arguments[B];return P=I.call.apply(I,[this].concat(H)),S(x(P),"mouseLeaveIndex",null),S(x(P),"_getRowExpanded",function(L){if(P.props.rowExpanded){var k={rowIndex:P.props.index,height:L,width:P.props.width},$;return n.default.isValidElement(P.props.rowExpanded)?$=n.default.cloneElement(P.props.rowExpanded,k):typeof P.props.rowExpanded=="function"&&($=P.props.rowExpanded(k)),$}}),S(x(P),"_renderColumnsLeftShadow",function(L){var k=(0,o.default)({"fixedDataTableRowLayout/fixedColumnsDivider":L>0,"fixedDataTableRowLayout/columnsShadow":P.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":L>0,"public/fixedDataTableRow/columnsShadow":P.props.scrollLeft>0}),$=P.props.cellGroupWrapperHeight?P.props.cellGroupWrapperHeight-O:P.props.height,V={left:L,height:$};return P.props.isRTL&&(V.right=L,V.left="auto"),n.default.createElement("div",{className:k,style:V})}),S(x(P),"_renderFixedRightColumnsShadow",function(L){var k=(0,o.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),$={height:P.props.height,left:L};return P.props.isRTL&&($.right=L,$.left="auto"),n.default.createElement("div",{className:k,style:$})}),S(x(P),"_renderColumnsRightShadow",function(L){if(Math.ceil(P.props.scrollLeft+P.props.width)<Math.floor(L)){var k=(0,o.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),$={height:P.props.height};return n.default.createElement("div",{className:k,style:$})}}),S(x(P),"_onClick",function(L){P.props.onClick(L,P.props.index)}),S(x(P),"_onContextMenu",function(L){P.props.onContextMenu(L,P.props.index)}),S(x(P),"_onDoubleClick",function(L){P.props.onDoubleClick(L,P.props.index)}),S(x(P),"_onMouseUp",function(L){P.props.onMouseUp(L,P.props.index)}),S(x(P),"_onMouseDown",function(L){P.props.onMouseDown(L,P.props.index)}),S(x(P),"_onMouseEnter",function(L){P.mouseLeaveIndex=P.props.index,P.props.onMouseEnter&&P.props.onMouseEnter(L,P.props.index)}),S(x(P),"_onMouseLeave",function(L){P.mouseLeaveIndex===null&&(P.mouseLeaveIndex=P.props.index),P.props.onMouseLeave(L,P.mouseLeaveIndex),P.mouseLeaveIndex=null}),S(x(P),"_onTouchStart",function(L){P.props.onTouchStart(L,P.props.index)}),S(x(P),"_onTouchEnd",function(L){P.props.onTouchEnd(L,P.props.index)}),S(x(P),"_onTouchMove",function(L){P.props.onTouchMove(L,P.props.index)}),P}return v(A,[{key:"shouldComponentUpdate",value:function(N){return N.isScrolling?N.visible?this.props.visible!==N.visible?!0:!(this.props.index===N.index&&this.props.scrollLeft===N.scrollLeft):!1:!0}},{key:"render",value:function(){var N=this.props.subRowHeight||0,H={width:this.props.width,height:this.props.height+N},B=(0,o.default)({"fixedDataTableRowLayout/main":!0,"public/fixedDataTableRow/main":!0,"public/fixedDataTableRow/highlighted":this.props.index%2===1,"public/fixedDataTableRow/odd":this.props.index%2===1,"public/fixedDataTableRow/even":this.props.index%2===0}),L=(0,a.sumPropWidths)(this.props.fixedColumns),k=n.default.createElement(s.default,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:L,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),$=this._renderColumnsLeftShadow(L),V=(0,a.sumPropWidths)(this.props.fixedRightColumns),j=this.props.showScrollbarY?this.props.scrollbarYWidth:0,W=n.default.createElement(s.default,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-V-j,width:V,zIndex:2,columns:this.props.fixedRightColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),U=V?this._renderFixedRightColumnsShadow(this.props.width-V-j-5):null,Y=n.default.createElement(s.default,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:L,width:this.props.width-L-V-j,zIndex:0,columns:this.props.scrollableColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),K=(0,a.sumPropWidths)(this.props.scrollableColumns),X=this._renderColumnsRightShadow(L+K),Q=this._getRowExpanded(N),ee={height:N,top:this.props.height,width:this.props.width},re=null;if(this.props.showScrollbarY){var G={width:j,height:this.props.height,left:this.props.isRTL?2:this.props.width-j-2};re=n.default.createElement("div",{style:G,className:(0,o.default)("public/fixedDataTable/scrollbarSpacer")})}return n.default.createElement("div",d({className:(0,i.default)(B,this.props.className),role:"row","aria-rowindex":this.props.ariaRowIndex},this.props.attributes,{onClick:this.props.onClick?this._onClick:null,onContextMenu:this.props.onContextMenu?this._onContextMenu:null,onDoubleClick:this.props.onDoubleClick?this._onDoubleClick:null,onMouseDown:this.props.onMouseDown?this._onMouseDown:null,onMouseUp:this.props.onMouseUp?this._onMouseUp:null,onMouseEnter:this.props.onMouseEnter||this.props.onMouseLeave?this._onMouseEnter:null,onMouseLeave:this.props.onMouseLeave?this._onMouseLeave:null,onTouchStart:this.props.onTouchStart?this._onTouchStart:null,onTouchEnd:this.props.onTouchEnd?this._onTouchEnd:null,onTouchMove:this.props.onTouchMove?this._onTouchMove:null,style:H}),n.default.createElement("div",{className:(0,o.default)("fixedDataTableRowLayout/body")},k,Y,$,W,U,re),Q&&n.default.createElement("div",{className:(0,o.default)("fixedDataTableRowLayout/rowExpanded"),style:ee},Q),X)}}]),A}(n.default.Component);S(M,"propTypes",{isScrolling:r.default.bool,fixedColumns:r.default.array.isRequired,fixedRightColumns:r.default.array.isRequired,height:r.default.number.isRequired,cellGroupWrapperHeight:r.default.number,subRowHeight:r.default.number,rowExpanded:r.default.oneOfType([r.default.element,r.default.func]),index:r.default.number.isRequired,scrollableColumns:r.default.array.isRequired,scrollLeft:r.default.number.isRequired,width:r.default.number.isRequired,onClick:r.default.func,onContextMenu:r.default.func,onDoubleClick:r.default.func,onColumnResize:r.default.func,isColumnReordering:r.default.bool,onColumnReorder:r.default.func,onColumnReorderMove:r.default.func,onColumnReorderEnd:r.default.func,touchEnabled:r.default.bool,isHeaderOrFooter:r.default.bool,ariaRowIndex:r.default.number,isRTL:r.default.bool,attributes:r.default.object});var D=function(T){y(A,T);var I=E(A);function A(P){var N;return m(this,A),N=I.call(this,P),N._initialRender=!0,N}return v(A,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(N){return!N.isScrolling||this.props.visible!==N.visible?!0:N.visible?!(N.isScrolling&&this.props.index===N.index&&this.props.offsetTop===N.offsetTop&&this.props.scrollLeft===N.scrollLeft):!1}},{key:"render",value:function(){var N=this.props,H=N.offsetTop,B=N.zIndex,L=p(N,["offsetTop","zIndex"]),k={width:this.props.width,height:this.props.height,zIndex:B||0,visibility:L.visible?"visible":"hidden"};return(0,l.default)(k,0,H,this._initialRender,this.props.isRTL),n.default.createElement("div",{style:k,className:(0,o.default)("fixedDataTableRowLayout/rowWrapper")},n.default.createElement(M,L))}}]),A}(n.default.Component);S(D,"propTypes",{isScrolling:r.default.bool,height:r.default.number.isRequired,zIndex:r.default.number,offsetTop:r.default.number.isRequired,visible:r.default.bool.isRequired,width:r.default.number.isRequired});var R=D;e.default=R})(fl);(function(e){function t(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(I){return typeof I}:t=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},t(R)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=d(Ye),n=d(F),o=d(SP),i=d(ZP),a=d(Xp),s=d(mt),l=d(Yt),c=d(Gt),p=d(fl),h=d(lo);function d(R){return R&&R.__esModule?R:{default:R}}function m(){return m=Object.assign||function(R){for(var T=1;T<arguments.length;T++){var I=arguments[T];for(var A in I)Object.prototype.hasOwnProperty.call(I,A)&&(R[A]=I[A])}return R},m.apply(this,arguments)}function g(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function v(R,T){for(var I=0;I<T.length;I++){var A=T[I];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(R,A.key,A)}}function y(R,T,I){return T&&v(R.prototype,T),R}function w(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),T&&E(R,T)}function E(R,T){return E=Object.setPrototypeOf||function(A,P){return A.__proto__=P,A},E(R,T)}function _(R){var T=C();return function(){var A=S(R),P;if(T){var N=S(this).constructor;P=Reflect.construct(A,arguments,N)}else P=A.apply(this,arguments);return x(this,P)}}function x(R,T){return T&&(t(T)==="object"||typeof T=="function")?T:b(R)}function b(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function C(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}function S(R){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},S(R)}function O(R,T,I){return T in R?Object.defineProperty(R,T,{value:I,enumerable:!0,configurable:!0,writable:!0}):R[T]=I,R}var M=function(R){w(I,R);var T=_(I);function I(A){var P;return g(this,I),P=T.call(this,A),P._staticRowArray=[],P._initialRender=!0,P}return y(I,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillUnmount",value:function(){this._staticRowArray.length=0}},{key:"render",value:function(){var P=this.props,N=P.offsetTop,H=P.rowOffsets,B=P.scrollTop,L=P.isScrolling,k=P.rowsToRender;k=k||[],L?this._staticRowArray.length=Math.max(this._staticRowArray.length,k.length):this._staticRowArray.length=k.length;for(var $=1e6,V=N-B%$,j=0;j<this._staticRowArray.length;j++){var W,U=(0,o.default)(k[j],(W=this._staticRowArray[j])===null||W===void 0?void 0:W.props.index);if((0,a.default)(U)||!(0,i.default)(U,0,this.props.rowSettings.rowsCount)){this._staticRowArray[j]=null;continue}var Y=H[U]-Math.floor(B/$)*$;this._staticRowArray[j]=this.renderRow({rowIndex:U,key:j,rowOffsetTop:Y})}var K={};(0,h.default)(K,0,V,!1);var X=this._staticRowArray.slice().sort(this.rowSortComparator);return n.default.createElement("div",{style:K},X)}},{key:"renderRow",value:function(P){var N=P.rowIndex,H=P.key,B=P.rowOffsetTop,L=this.props,k=L.rowClassNameGetter||l.default,$={};$.height=this.props.rowSettings.rowHeightGetter(N),$.subRowHeight=this.props.rowSettings.subRowHeightGetter(N),$.offsetTop=B,$.key=L.rowKeyGetter?L.rowKeyGetter(N):H,$.attributes=L.rowSettings.rowAttributesGetter&&L.rowSettings.rowAttributesGetter(N);var V=N===L.rowSettings.rowsCount-1&&L.showLastRowBorder;$.className=(0,c.default)(k(N),(0,s.default)("public/fixedDataTable/bodyRow"),(0,s.default)({"fixedDataTableLayout/hasBottomBorder":V,"public/fixedDataTable/hasBottomBorder":V}));var j=(0,i.default)(N,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return n.default.createElement(p.default,m({key:H,index:N,ariaRowIndex:N+L.ariaRowIndexOffset,isScrolling:L.isScrolling,width:L.width,rowExpanded:L.rowExpanded,scrollLeft:Math.round(L.scrollLeft),fixedColumns:L.fixedColumns,fixedRightColumns:L.fixedRightColumns,scrollableColumns:L.scrollableColumns,onClick:L.onRowClick,onContextMenu:L.onRowContextMenu,onDoubleClick:L.onRowDoubleClick,onMouseDown:L.onRowMouseDown,onMouseUp:L.onRowMouseUp,onMouseEnter:L.onRowMouseEnter,onMouseLeave:L.onRowMouseLeave,onTouchStart:L.onRowTouchStart,onTouchEnd:L.onRowTouchEnd,onTouchMove:L.onRowTouchMove,showScrollbarY:L.showScrollbarY,scrollbarYWidth:L.scrollbarYWidth,isRTL:L.isRTL,visible:j},$))}},{key:"rowSortComparator",value:function(P,N){var H,B;return((H=P==null?void 0:P.props.ariaRowIndex)!==null&&H!==void 0?H:-1)-((B=N==null?void 0:N.props.ariaRowIndex)!==null&&B!==void 0?B:-1)}}]),I}(n.default.Component);O(M,"propTypes",{ariaRowIndexOffset:r.default.number,isScrolling:r.default.bool,firstViewportRowIndex:r.default.number.isRequired,endViewportRowIndex:r.default.number.isRequired,fixedColumns:r.default.array.isRequired,fixedRightColumns:r.default.array.isRequired,height:r.default.number.isRequired,offsetTop:r.default.number.isRequired,onRowClick:r.default.func,onRowContextMenu:r.default.func,onRowDoubleClick:r.default.func,onRowMouseDown:r.default.func,onRowMouseUp:r.default.func,onRowMouseEnter:r.default.func,onRowMouseLeave:r.default.func,onRowTouchStart:r.default.func,onRowTouchEnd:r.default.func,onRowTouchMove:r.default.func,rowClassNameGetter:r.default.func,rowExpanded:r.default.oneOfType([r.default.element,r.default.func]),rowOffsets:r.default.object.isRequired,rowKeyGetter:r.default.func,rowSettings:r.default.shape({rowAttributesGetter:r.default.func,rowHeightGetter:r.default.func,rowsCount:r.default.number.isRequired,subRowHeightGetter:r.default.func}),rowsToRender:r.default.array.isRequired,scrollLeft:r.default.number.isRequired,scrollTop:r.default.number.isRequired,scrollableColumns:r.default.array.isRequired,showLastRowBorder:r.default.bool,showScrollbarY:r.default.bool,width:r.default.number.isRequired,isRTL:r.default.bool});var D=M;e.default=D})(Yp);var i0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Yt),r=n(Ni);function n(m){return m&&m.__esModule?m:{default:m}}function o(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function i(m,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}function a(m,g,v){return g&&i(m.prototype,g),m}var s=1.6,l=1.6,c=325,p=100,h=function(){function m(g,v,y,w,E){o(this,m),this._dragAnimationId=null,this._trackerId=null,this._deltaX=0,this._deltaY=0,this._lastTouchX=0,this._lastTouchY=0,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),this._autoScrollTimestamp=Date.now(),typeof v!="function"&&(v=v?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof y!="function"&&(y=y?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=v,this._handleScrollY=y,this._preventDefault=w,this._stopPropagation=E,this._onTouchScrollCallback=g,this._didTouchMove=this._didTouchMove.bind(this),this._track=this._track.bind(this),this._autoScroll=this._autoScroll.bind(this),this._startAutoScroll=this._startAutoScroll.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchCancel=this.onTouchCancel.bind(this)}return a(m,[{key:"onTouchStart",value:function(v){this._lastTouchX=v.touches[0].pageX,this._lastTouchY=v.touches[0].pageY,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),clearInterval(this._trackerId),this._trackerId=setInterval(this._track,p),this._stopPropagation&&v.stopPropagation()}},{key:"onTouchEnd",value:function(v){clearInterval(this._trackerId),this._trackerId=null,(0,r.default)(this._startAutoScroll),this._stopPropagation&&v.stopPropagation()}},{key:"onTouchCancel",value:function(v){clearInterval(this._trackerId),this._trackerId=null,this._stopPropagation&&v.stopPropagation()}},{key:"onTouchMove",value:function(v){this._preventDefault&&v.preventDefault();var y=v.touches[0].pageX,w=v.touches[0].pageY;this._deltaX=s*(this._lastTouchX-y),this._deltaY=s*(this._lastTouchY-w);var E=this._handleScrollX(this._deltaX,this._deltaY),_=this._handleScrollY(this._deltaY,this._deltaX);if(!(!E&&!_)){E?this._lastTouchX=y:this._deltaX=0,_?this._lastTouchY=w:this._deltaY=0,v.defaultPrevented||v.preventDefault();var x=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&v.stopPropagation(),x=!0),x===!0&&this._dragAnimationId===null&&(this._dragAnimationId=(0,r.default)(this._didTouchMove))}}},{key:"_didTouchMove",value:function(){this._dragAnimationId=null,this._onTouchScrollCallback(this._deltaX,this._deltaY),this._accumulatedDeltaX+=this._deltaX,this._accumulatedDeltaY+=this._deltaY,this._deltaX=0,this._deltaY=0}},{key:"_track",value:function(){var v=Date.now(),y=v-this._lastFrameTimestamp,w=this._velocityX,E=this._velocityY,_=.8;y<p&&(_*=y/p),w===0&&E===0&&(_=1),this._velocityX=_*(p*this._accumulatedDeltaX/(1+y)),_<1&&(this._velocityX+=(1-_)*w),this._velocityY=_*(p*this._accumulatedDeltaY/(1+y)),_<1&&(this._velocityY+=(1-_)*E),this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=v}},{key:"_startAutoScroll",value:function(){this._autoScrollTimestamp=Date.now(),(this._deltaX>0||this.deltaY>0)&&this._didTouchMove(),this._track(),this._autoScroll()}},{key:"_autoScroll",value:function(){var v=Date.now()-this._autoScrollTimestamp,y=l*Math.exp(-v/c),w=y*this._velocityX,E=y*this._velocityY;(Math.abs(w)<=5||!this._handleScrollX(w,E))&&(w=0),(Math.abs(E)<=5||!this._handleScrollY(E,w))&&(E=0),(w!==0||E!==0)&&(this._onTouchScrollCallback(w,E),(0,r.default)(this._autoScroll))}}]),m}(),d=h;e.default=d})(i0);(function(e){function t(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function($){return typeof $}:t=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},t(L)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_(F),n=_(Ye),o=_(eR),i=_(mt),a=_(wp),s=_(Gt),l=_(so),c=_(tl),p=_(Rp),h=_(kp),d=_(tn),m=_(cl),g=_(Up),v=_(Yp),y=_(Bi),w=_(fl),E=_(i0);function _(L){return L&&L.__esModule?L:{default:L}}function x(){return x=Object.assign||function(L){for(var k=1;k<arguments.length;k++){var $=arguments[k];for(var V in $)Object.prototype.hasOwnProperty.call($,V)&&(L[V]=$[V])}return L},x.apply(this,arguments)}function b(L,k){if(!(L instanceof k))throw new TypeError("Cannot call a class as a function")}function C(L,k){for(var $=0;$<k.length;$++){var V=k[$];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(L,V.key,V)}}function S(L,k,$){return k&&C(L.prototype,k),L}function O(L,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(k&&k.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),k&&M(L,k)}function M(L,k){return M=Object.setPrototypeOf||function(V,j){return V.__proto__=j,V},M(L,k)}function D(L){var k=I();return function(){var V=A(L),j;if(k){var W=A(this).constructor;j=Reflect.construct(V,arguments,W)}else j=V.apply(this,arguments);return R(this,j)}}function R(L,k){return k&&(t(k)==="object"||typeof k=="function")?k:T(L)}function T(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function I(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(L){return!1}}function A(L){return A=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},A(L)}function P(L,k,$){return k in L?Object.defineProperty(L,k,{value:$,enumerable:!0,configurable:!0,writable:!0}):L[k]=$,L}var N=25,H=function(L){O($,L);var k=D($);function $(V){var j;return b(this,$),j=k.call(this,V),P(T(j),"_shouldHandleTouchX",function(W){return j.props.touchScrollEnabled&&j._shouldHandleWheelX(W)}),P(T(j),"_shouldHandleTouchY",function(W){return j.props.touchScrollEnabled&&j._shouldHandleWheelY(W)}),P(T(j),"_shouldHandleWheelX",function(W){var U=j.props,Y=U.maxScrollX,K=U.scrollFlags,X=U.scrollX,Q=K.overflowX;return Q==="hidden"||(W=Math.round(W),W===0)?!1:W<0&&X>0||W>=0&&X<Y}),P(T(j),"_shouldHandleWheelY",function(W){var U=j.props,Y=U.maxScrollY,K=U.scrollFlags,X=U.scrollY,Q=K.overflowY;return Q==="hidden"||W===0||(W=Math.round(W),W===0)?!1:W<0&&X>0||W>=0&&X<Y}),P(T(j),"_reportContentHeight",function(){var W=(0,m.default)(j.props),U=W.contentHeight,Y=j.props.onContentHeightChange;U!==j._contentHeight&&Y&&Y(U),j._contentHeight=U}),P(T(j),"_renderRows",function(W,U,Y,K,X,Q){var ee=(0,d.default)(j.props),re=ee.scrollEnabledY,G=j.props;return r.default.createElement(v.default,{ariaRowIndexOffset:Q,isScrolling:G.scrolling,fixedColumns:U,fixedRightColumns:Y,firstViewportRowIndex:G.firstRowIndex,endViewportRowIndex:G.endRowIndex,height:X,offsetTop:W,onRowClick:G.onRowClick,onRowContextMenu:G.onRowContextMenu,onRowDoubleClick:G.onRowDoubleClick,onRowMouseUp:G.onRowMouseUp,onRowMouseDown:G.onRowMouseDown,onRowMouseEnter:G.onRowMouseEnter,onRowMouseLeave:G.onRowMouseLeave,onRowTouchStart:G.touchScrollEnabled?G.onRowTouchStart:null,onRowTouchEnd:G.touchScrollEnabled?G.onRowTouchEnd:null,onRowTouchMove:G.touchScrollEnabled?G.onRowTouchMove:null,rowClassNameGetter:G.rowClassNameGetter,rowExpanded:G.rowExpanded,rowKeyGetter:G.rowKeyGetter,rowSettings:G.rowSettings,scrollLeft:G.scrollX,scrollTop:G.scrollY,scrollableColumns:K,showLastRowBorder:!0,width:G.tableSize.width,rowsToRender:G.rows,rowOffsets:G.rowOffsets,showScrollbarY:re,scrollbarYWidth:G.scrollbarYWidth,isRTL:G.isRTL})}),P(T(j),"_onRef",function(W){j._divRef=W,j._wheelHandler&&(j.props.stopReactWheelPropagation?j._wheelHandler.setRoot(W):j._wheelHandler.setRoot(null))}),P(T(j),"_onColumnResize",function(W,U,Y,K,X,Q,ee){var re=y.default.getCoordinatesFromEvent(ee),G=re.x,ne=re.y;j.props.columnActions.resizeColumn({cellMinWidth:K,cellMaxWidth:X,cellWidth:Y,columnKey:Q,combinedWidth:W,clientX:G,clientY:ne,leftOffset:U})}),P(T(j),"_onColumnReorder",function(W,U,Y,K){j.props.columnActions.startColumnReorder({scrollStart:j.props.scrollX,columnKey:W,width:U,left:Y})}),P(T(j),"_onColumnReorderMove",function(W){j.props.columnActions.moveColumnReorder(W)}),P(T(j),"_onColumnReorderEnd",function(W,U){var Y=j.props,K=Y.columnActions,X=Y.columnReorderingData,Q=X.cancelReorder,ee=X.columnAfter,re=X.columnBefore,G=X.columnKey,ne=X.scrollStart,Z=Y.onColumnReorderEndCallback,oe=Y.onHorizontalScroll,de=Y.scrollX;K.stopColumnReorder(),!Q&&(Z({columnAfter:ee,columnBefore:re,reorderColumn:G}),ne!==de&&oe&&oe(de))}),P(T(j),"_onScroll",function(W,U){var Y=j.props,K=Y.maxScrollX,X=Y.maxScrollY,Q=Y.onHorizontalScroll,ee=Y.onVerticalScroll,re=Y.scrollActions,G=Y.scrollFlags,ne=Y.scrollX,Z=Y.scrollY,oe=G.overflowX,de=G.overflowY,pe=ne,ce=Z;if(Math.abs(U)>Math.abs(W)&&de!=="hidden")ce+=U,ce=ce<0?0:ce,ce=ce>X?X:ce,(!ee||ee(ce))&&re.scrollToY(ce);else if(W&&oe!=="hidden"){pe+=W,pe=pe<0?0:pe,pe=pe>K?K:pe;var Ne=Math.round(pe);(!Q||Q(Ne))&&re.scrollToX(Ne)}}),P(T(j),"_scrollTo",function(W,U){j._scrollToX(W),j._scrollToY(U)}),P(T(j),"_scrollToX",function(W){var U=j.props,Y=U.onHorizontalScroll,K=U.scrollActions,X=U.scrollX;if(W!==X){var Q=Math.round(W);(!Y||Y(Q))&&K.scrollToX(Q)}}),P(T(j),"_scrollToY",function(W){var U=j.props,Y=U.onVerticalScroll,K=U.scrollActions,X=U.scrollY;W!==X&&(!Y||Y(W))&&K.scrollToY(W)}),P(T(j),"_didScroll",function(W){var U=j.props,Y=U.onScrollStart,K=U.scrollX,X=U.scrollY,Q=U.onHorizontalScroll,ee=U.onVerticalScroll,re=U.tableSize.ownerHeight,G=U.scrolling,ne=W.endRowIndex,Z=W.firstRowIndex,oe=W.scrollX,de=W.scrollY,pe=W.tableSize.ownerHeight,ce=W.scrolling,Ne=re!==pe&&!((0,o.default)(re)&&(0,o.default)(pe)),Te=K!==oe,$e=X!==de;!Ne&&!Te&&!$e||(!ce&&G&&Y&&Y(oe,de,Z,ne),Te&&Q&&Q(K),$e&&ee&&ee(X),j._didScrollStop())}),P(T(j),"_didScrollStopSync",function(){var W=j.props,U=W.endRowIndex,Y=W.firstRowIndex,K=W.onScrollEnd,X=W.scrollActions,Q=W.scrollX,ee=W.scrollY,re=W.scrolling;re&&(X.stopScroll(),K&&K(Q,ee,Y,U))}),j._didScrollStop=(0,a.default)(j._didScrollStopSync,200,T(j)),j._onKeyDown=j._onKeyDown.bind(T(j)),j._setupHandlers(),j}return S($,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new c.default(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new E.default(this._onScroll,this._shouldHandleTouchX,this._shouldHandleTouchY,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._divRef&&this._divRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this.props.touchScrollEnabled&&this._divRef&&this._divRef.addEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1})}},{key:"_cleanupHandlers",value:function(){this._wheelHandler&&(this._divRef&&this._divRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._wheelHandler=null),this._touchHandler&&(this._divRef&&this._divRef.removeEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1}),this._touchHandler=null)}},{key:"_onKeyDown",value:function(j){var W=(0,m.default)(this.props),U=W.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(j.key){case"PageDown":this._onScroll(0,U),j.preventDefault();break;case"PageUp":this._onScroll(0,U*-1),j.preventDefault();break}if(this.props.keyboardScrollEnabled)switch(j.key){case"ArrowDown":this._onScroll(0,N),j.preventDefault();break;case"ArrowUp":this._onScroll(0,N*-1),j.preventDefault();break;case"ArrowRight":this._onScroll(N,0),j.preventDefault();break;case"ArrowLeft":this._onScroll(N*-1,0),j.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(j){return!(0,l.default)(this.props,j)}},{key:"componentDidMount",value:function(){this._setupHandlers(),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"componentDidUpdate",value:function(j){this._didScroll(j),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"_reportScrollBarsUpdates",value:function(){var j=(0,m.default)(this.props),W=j.bodyOffsetTop,U=j.scrollbarXOffsetTop,Y=j.visibleRowsHeight,K=this.props,X=K.tableSize.width,Q=K.scrollContentHeight,ee=K.scrollY,re=K.scrollX,G={viewportHeight:Y,contentHeight:Q,scrollbarYOffsetTop:W,scrollY:ee,viewportWidth:X,contentWidth:X+this.props.maxScrollX,scrollbarXOffsetTop:U,scrollX:re,scrollTo:this._scrollTo,scrollToX:this._scrollToX,scrollToY:this._scrollToY};(0,l.default)(this.previousScrollState,G)||(this.props.onScrollBarsUpdate(G),this.previousScrollState=G)}},{key:"render",value:function(){var j=(0,p.default)(this.props),W=j.ariaGroupHeaderIndex,U=j.ariaHeaderIndex,Y=j.ariaFooterIndex,K=j.ariaRowCount,X=j.ariaRowIndexOffset,Q=(0,h.default)(this.props),ee=Q.fixedColumnGroups,re=Q.fixedColumns,G=Q.fixedRightColumnGroups,ne=Q.fixedRightColumns,Z=Q.scrollableColumnGroups,oe=Q.scrollableColumns,de=(0,m.default)(this.props),pe=de.bodyHeight,ce=de.bodyOffsetTop,Ne=de.componentHeight,Te=de.footOffsetTop,$e=de.scrollbarXOffsetTop,Le=de.visibleRowsHeight,ye=this.props,be=ye.className,Ue=ye.columnReorderingData,He=ye.columnResizingData,Xe=ye.elementHeights,kt=ye.isColumnReordering,ie=ye.isColumnResizing,Be=ye.gridAttributesGetter,Qt=ye.maxScrollY,vt=ye.onColumnReorderEndCallback,Zt=ye.onColumnResizeEndCallback,mo=ye.scrollContentHeight,It=ye.scrollX,Jt=ye.scrollY,er=ye.scrolling,on=ye.tableSize,tr=ye.touchScrollEnabled,an=ye.scrollbarYWidth,go=on.ownerHeight,At=on.width,sn=Xe.cellGroupWrapperHeight,ln=Xe.footerHeight,vr=Xe.groupHeaderHeight,vo=Xe.headerHeight,yo=(0,d.default)(this.props),Xi=yo.scrollEnabledX,Nt=yo.scrollEnabledY,bo=vt?this._onColumnReorder:null,rr=Be&&Be(),yr;vr>0&&(yr=r.default.createElement(w.default,{key:"group_header",ariaRowIndex:W,isHeaderOrFooter:!0,isScrolling:er,className:(0,s.default)((0,i.default)("fixedDataTableLayout/header"),(0,i.default)("public/fixedDataTable/header")),width:At,height:vr,cellGroupWrapperHeight:sn,index:0,zIndex:1,offsetTop:0,scrollLeft:It,fixedColumns:ee,fixedRightColumns:G,scrollableColumns:Z,visible:!0,onColumnResize:this._onColumnResize,onColumnReorder:bo,onColumnReorderMove:this._onColumnReorderMove,showScrollbarY:Nt,scrollbarYWidth:an,isRTL:this.props.isRTL}));var je;Nt&&(je=this.props.scrollbarY);var $t;Xi&&($t=this.props.scrollbarX);var Ki=r.default.createElement(g.default,{height:Ne,initialWidth:He.width||0,minWidth:He.minWidth||0,maxWidth:He.maxWidth||Number.MAX_VALUE,visible:!!ie,leftOffset:He.left||0,knobHeight:vo,initialEvent:He.initialEvent,onColumnResizeEnd:Zt,columnKey:He.key,touchEnabled:tr,isRTL:this.props.isRTL}),Lt=null;ln&&(Lt=r.default.createElement(w.default,{key:"footer",ariaRowIndex:Y,isHeaderOrFooter:!0,isScrolling:er,className:(0,s.default)((0,i.default)("fixedDataTableLayout/footer"),(0,i.default)("public/fixedDataTable/footer")),width:At,height:ln,index:-1,zIndex:1,offsetTop:Te,visible:!0,fixedColumns:re.footer,fixedRightColumns:ne.footer,scrollableColumns:oe.footer,scrollLeft:It,showScrollbarY:Nt,scrollbarYWidth:an,isRTL:this.props.isRTL}));var un=this._renderRows(ce,re.cell,ne.cell,oe.cell,pe,X),_o=r.default.createElement(w.default,{key:"header",ariaRowIndex:U,isHeaderOrFooter:!0,isScrolling:er,className:(0,s.default)((0,i.default)("fixedDataTableLayout/header"),(0,i.default)("public/fixedDataTable/header")),width:At,height:vo,cellGroupWrapperHeight:sn,index:-1,zIndex:1,offsetTop:vr,scrollLeft:It,visible:!0,fixedColumns:re.header,fixedRightColumns:ne.header,scrollableColumns:oe.header,touchEnabled:tr,onColumnResize:this._onColumnResize,onColumnReorder:bo,onColumnReorderMove:this._onColumnReorderMove,onColumnReorderEnd:this._onColumnReorderEnd,isColumnReordering:!!kt,columnReorderingData:Ue,showScrollbarY:Nt,scrollbarYWidth:an,isRTL:this.props.isRTL}),cn;Jt&&(cn=r.default.createElement("div",{className:(0,s.default)((0,i.default)("fixedDataTableLayout/topShadow"),(0,i.default)("public/fixedDataTable/topShadow")),style:{top:ce}}));var xo=go&&go<Ne&&mo>Le,dn;(xo||Jt<Qt)&&(dn=r.default.createElement("div",{className:(0,s.default)((0,i.default)("fixedDataTableLayout/bottomShadow"),(0,i.default)("public/fixedDataTable/bottomShadow")),style:{top:Te}}));var wo=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(wo=0);var fn=be;return this.props.isRTL&&(fn=(0,s.default)(fn,"fixedDataTable_isRTL")),r.default.createElement("div",x({className:(0,s.default)(fn,(0,i.default)("fixedDataTableLayout/main"),(0,i.default)("public/fixedDataTable/main")),role:"grid","aria-rowcount":K},rr,{tabIndex:wo,onKeyDown:this._onKeyDown,onTouchStart:tr?this._touchHandler.onTouchStart:null,onTouchEnd:tr?this._touchHandler.onTouchEnd:null,onTouchCancel:tr?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:Ne,width:At}}),r.default.createElement("div",{className:(0,i.default)("fixedDataTableLayout/rowsContainer"),style:{height:$e,width:At}},Ki,yr,_o,un,Lt,cn,dn),je,$t)}}]),$}(r.default.Component);P(H,"propTypes",{width:n.default.number.isRequired,height:n.default.number,className:n.default.string,maxHeight:n.default.number,ownerHeight:n.default.number,overflowX:n.default.oneOf(["hidden","auto"]),overflowY:n.default.oneOf(["hidden","auto"]),touchScrollEnabled:n.default.bool,keyboardScrollEnabled:n.default.bool,keyboardPageEnabled:n.default.bool,scrollbarX:n.default.node,scrollbarXHeight:n.default.number,scrollbarY:n.default.node,scrollbarYWidth:n.default.number,onScrollBarsUpdate:n.default.func,defaultScrollbars:n.default.bool,showScrollbarX:n.default.bool,showScrollbarY:n.default.bool,onHorizontalScroll:n.default.func,onVerticalScroll:n.default.func,rowsCount:n.default.number.isRequired,rowHeight:n.default.number.isRequired,rowHeightGetter:n.default.func,subRowHeight:n.default.number,subRowHeightGetter:n.default.func,rowExpanded:n.default.oneOfType([n.default.element,n.default.func]),rowClassNameGetter:n.default.func,rowKeyGetter:n.default.func,groupHeaderHeight:n.default.number,headerHeight:n.default.number.isRequired,cellGroupWrapperHeight:n.default.number,footerHeight:n.default.number,scrollLeft:n.default.number,scrollToColumn:n.default.number,scrollTop:n.default.number,scrollToRow:n.default.number,onScrollStart:n.default.func,onScrollEnd:n.default.func,stopReactWheelPropagation:n.default.bool,stopScrollDefaultHandling:n.default.bool,stopScrollPropagation:n.default.bool,onContentHeightChange:n.default.func,onRowClick:n.default.func,onRowContextMenu:n.default.func,onRowDoubleClick:n.default.func,onRowMouseDown:n.default.func,onRowMouseUp:n.default.func,onRowMouseEnter:n.default.func,onRowMouseLeave:n.default.func,onRowTouchStart:n.default.func,onRowTouchEnd:n.default.func,onRowTouchMove:n.default.func,onColumnResizeEndCallback:n.default.func,onColumnReorderEndCallback:n.default.func,isColumnResizing:n.default.bool,isColumnReordering:n.default.bool,isRTL:n.default.bool,bufferRowCount:n.default.number,elementHeights:n.default.shape({cellGroupWrapperHeight:n.default.number,footerHeight:n.default.number,groupHeaderHeight:n.default.number,headerHeight:n.default.number}),gridAttributesGetter:n.default.func,rowAttributesGetter:n.default.func}),P(H,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var B=H;e.default=B})(xp);var a0={},s0={},l0={},u0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function r(s,l){for(var c=0;c<l.length;c++){var p=l[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}function n(s,l,c){return l&&r(s.prototype,l),s}function o(s,l){return s<l}var i=function(){function s(l,c){t(this,s),this._items=l||[],this._size=this._items.length,this._comparator=c||o,this._heapify()}return n(s,[{key:"empty",value:function(){return this._size===0}},{key:"pop",value:function(){if(this._size!==0){var c=this._items[0],p=this._items.pop();return this._size--,this._size>0&&(this._items[0]=p,this._sinkDown(0)),c}}},{key:"push",value:function(c){this._items[this._size++]=c,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){if(this._size!==0)return this._items[0]}},{key:"_heapify",value:function(){for(var c=Math.floor((this._size+1)/2);c>=0;c--)this._sinkDown(c)}},{key:"_bubbleUp",value:function(c){for(var p=this._items[c];c>0;){var h=Math.floor((c+1)/2)-1,d=this._items[h];if(this._comparator(d,p))return;this._items[h]=p,this._items[c]=d,c=h}}},{key:"_sinkDown",value:function(c){for(var p=this._items[c];;){var h=2*(c+1)-1,d=2*(c+1),m=-1;if(h<this._size){var g=this._items[h];this._comparator(g,p)&&(m=h)}if(d<this._size){var v=this._items[d];this._comparator(v,p)&&(m===-1||this._comparator(v,this._items[m]))&&(m=d)}if(m===-1)return;this._items[c]=this._items[m],this._items[m]=p,c=m}}}]),s}(),a=i;e.default=a})(u0);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(u0),r=n(qr);function n(c){return c&&c.__esModule?c:{default:c}}function o(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function i(c,p){for(var h=0;h<p.length;h++){var d=p[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function a(c,p,h){return p&&i(c.prototype,p),c}var s=function(){function c(){o(this,c),this._valueToPositionMap={},this._size=0,this._smallValues=new t.default([],this._smallerComparator),this._largeValues=new t.default([],this._greaterComparator),this.getNewPositionForValue=this.getNewPositionForValue.bind(this),this.getValuePosition=this.getValuePosition.bind(this),this.getSize=this.getSize.bind(this),this.replaceFurthestValuePosition=this.replaceFurthestValuePosition.bind(this)}return a(c,[{key:"getSize",value:function(){return this._size}},{key:"getValuePosition",value:function(h){return this._valueToPositionMap[h]===void 0?null:this._valueToPositionMap[h]}},{key:"getNewPositionForValue",value:function(h){(0,r.default)(this._valueToPositionMap[h]===void 0,"Shouldn't try to find new position for value already stored in BufferSet");var d=this._size;return this._size++,this._pushToHeaps(d,h),this._valueToPositionMap[h]=d,d}},{key:"replaceFurthestValuePosition",value:function(h,d,m){if((0,r.default)(this._valueToPositionMap[m]===void 0,"Shouldn't try to replace values with value already stored value in BufferSet"),this._cleanHeaps(),this._smallValues.empty()||this._largeValues.empty())return null;var g=this._smallValues.peek().value,v=this._largeValues.peek().value;if(g>=h&&v<=d)return null;var y;h-g>v-d?(y=g,this._smallValues.pop()):(y=v,this._largeValues.pop());var w=this._valueToPositionMap[y];return delete this._valueToPositionMap[y],this._valueToPositionMap[m]=w,this._pushToHeaps(w,m),w}},{key:"_pushToHeaps",value:function(h,d){var m={position:h,value:d};this._smallValues.push(m),this._largeValues.push(m)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var h=Math.min(this._smallValues.size(),this._largeValues.size()),d=Math.max(this._smallValues.size(),this._largeValues.size());d>10*h&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var h=this._smallValues.size()<this._largeValues.size()?this._smallValues:this._largeValues,d=new t.default([],this._smallerComparator),m=new t.default([],this._greaterComparator);!h.empty();){var g=h.pop();this._valueToPositionMap[g.value]!==void 0&&(d.push(g),m.push(g))}this._smallValues=d,this._largeValues=m}},{key:"_cleanHeap",value:function(h){for(;!h.empty()&&this._valueToPositionMap[h.peek().value]===void 0;)h.pop()}},{key:"_smallerComparator",value:function(h,d){return h.value<d.value}},{key:"_greaterComparator",value:function(h,d){return h.value>d.value}}]),c}(),l=s;e.default=l})(l0);var c0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(qr),r=n(Zr);function n(d){return d&&d.__esModule?d:{default:d}}function o(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function i(d,m){for(var g=0;g<m.length;g++){var v=m[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}function a(d,m,g){return m&&i(d.prototype,m),g&&i(d,g),d}var s=function(m){return Math.floor(m/2)},l=r.default.Int32Array||function(d){for(var m=[],g=d-1;g>=0;--g)m[g]=0;return m};function c(d){for(var m=1;m<d;)m*=2;return m}var p=function(){function d(m){o(this,d),this._size=m.length,this._half=c(this._size),this._heap=new l(2*this._half);var g;for(g=0;g<this._size;++g)this._heap[this._half+g]=m[g];for(g=this._half-1;g>0;--g)this._heap[g]=this._heap[2*g]+this._heap[2*g+1]}return a(d,[{key:"set",value:function(g,v){(0,t.default)(0<=g&&g<this._size,"Index out of range %s",g);var y=this._half+g;for(this._heap[y]=v,y=s(y);y!==0;y=s(y))this._heap[y]=this._heap[2*y]+this._heap[2*y+1]}},{key:"get",value:function(g){(0,t.default)(0<=g&&g<this._size,"Index out of range %s",g);var v=this._half+g;return this._heap[v]}},{key:"getSize",value:function(){return this._size}},{key:"sumUntil",value:function(g){if((0,t.default)(0<=g&&g<this._size+1,"Index out of range %s",g),g===0)return 0;for(var v=this._half+g-1,y=this._heap[v];v!==1;v=s(v))v%2===1&&(y+=this._heap[v-1]);return y}},{key:"sumTo",value:function(g){return(0,t.default)(0<=g&&g<this._size,"Index out of range %s",g),this.sumUntil(g+1)}},{key:"sum",value:function(g,v){return(0,t.default)(g<=v,"Begin must precede end"),this.sumUntil(v)-this.sumUntil(g)}},{key:"greatestLowerBound",value:function(g){if(g<0)return-1;var v=1;if(this._heap[v]<=g)return this._size;for(;v<this._half;){var y=this._heap[2*v];g<y?v=2*v:(v=2*v+1,g-=y)}return v-this._half}},{key:"greatestStrictLowerBound",value:function(g){if(g<=0)return-1;var v=1;if(this._heap[v]<g)return this._size;for(;v<this._half;){var y=this._heap[2*v];g<=y?v=2*v:(v=2*v+1,g-=y)}return v-this._half}},{key:"leastUpperBound",value:function(g){return this.greatestStrictLowerBound(g)+1}},{key:"leastStrictUpperBound",value:function(g){return this.greatestLowerBound(g)+1}}],[{key:"uniform",value:function(g,v){for(var y=[],w=g-1;w>=0;--w)y[w]=v;return new d(y)}},{key:"empty",value:function(g){return d.uniform(g,0)}}]),d}(),h=p;e.default=h})(c0);var d0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(F),r=a(sl),n=a(qr),o=a(Vp),i=a(el);function a(h){return h&&h.__esModule?h:{default:h}}function s(h){return(0,i.default)(h.props,["align","allowCellsRecycling","cellClassName","columnKey","flexGrow","fixed","fixedRight","maxWidth","minWidth","isReorderable","isResizable","pureRendering","width"])}function l(h,d){h.cell.push(d.props.cell),h.footer.push(d.props.footer),h.header.push(d.props.header)}function c(h){var d=[];t.default.Children.forEach(h,function(w,E){w!=null&&((0,n.default)(w.type.__TableColumnGroup__||w.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),d.push(w))});var m={cell:[],footer:[],groupHeader:[],header:[]},g=[],v=d.length&&d[0].type.__TableColumnGroup__;if(v){var y=(0,o.default)(d,s);return(0,r.default)(d,function(w,E){m.groupHeader.push(w.props.header),t.default.Children.forEach(w.props.children,function(_){var x=s(_);x.groupIdx=E,g.push(x),l(m,_)})}),{columnGroupProps:y,columnProps:g,elementTemplates:m,useGroupHeader:!0}}return(0,r.default)(d,function(w){g.push(s(w)),l(m,w)}),{columnGroupProps:[],columnProps:g,elementTemplates:m,useGroupHeader:!1}}var p=c;e.default=p})(d0);var ji={},gl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,n){var o=r.storedHeights,i=r.rowOffsetIntervalTree,a=r.rowSettings,s=a.rowHeightGetter,l=a.subRowHeightGetter,c=s(n)+l(n),p=o[n];return c!==p&&(i.set(n,c),o[n]=c,r.scrollContentHeight+=c-p),o[n]}})(gl);Object.defineProperty(ji,"__esModule",{value:!0});ji.getScrollAnchor=nD;ji.scrollTo=h0;var f0=vl(Fi),p0=vl(tn),rD=vl(gl);function vl(e){return e&&e.__esModule?e:{default:e}}function nD(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?oD(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?h0(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function h0(e,t){var r=(0,p0.default)(e),n=r.availableHeight,o=e.rowOffsetIntervalTree,i=e.rowSettings,a=e.scrollContentHeight,s=i.rowsCount;if(s===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var l=0,c=0,p=void 0;if(!(t<=0))if(t>=a-n)l=void 0,p=s-1;else{var h=o.greatestLowerBound(t);l=(0,f0.default)(h,0,Math.max(s-1,0));var d=o.sumUntil(l);c=d-t}return{firstIndex:l,firstOffset:c,lastIndex:p,changed:!0}}function oD(e,t){var r=(0,p0.default)(e),n=r.availableHeight,o=e.rowOffsetIntervalTree,i=e.rowSettings,a=e.storedHeights,s=e.scrollY,l=i.rowsCount;if(l===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};t=(0,f0.default)(t,0,Math.max(l-1,0)),(0,rD.default)(e,t);var c=o.sumUntil(t),p=c+a[t],h=t,d=void 0;if(!(c<s))if(s+n<p)h=void 0,d=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:h,firstOffset:0,lastIndex:d,changed:!0}}var m0={};function iD(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var aD=iD,sD=aD,ya=dl;function lD(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=ya(r),r=r===r?r:0),t!==void 0&&(t=ya(t),t=t===t?t:0),sD(ya(e),t,r)}var g0=lD;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(Xp),r=i(g0),n=i(Yt),o=i(ll);function i(v){return v&&v.__esModule?v:{default:v}}function a(){return a=Object.assign||function(v){for(var y=1;y<arguments.length;y++){var w=arguments[y];for(var E in w)Object.prototype.hasOwnProperty.call(w,E)&&(v[E]=w[E])}return v},a.apply(this,arguments)}var s=15,l=100;function c(v,y,w){var E=y.scrollLeft,_=v.columnResizingData,x=v.isColumnResizing,b=v.scrollX;E!==void 0&&(!w||E!==w.scrollLeft)&&(b=E),b=p(v,y,w.scrollToColumn,b);var C=(0,o.default)(v),S=C.maxScrollX;return b=(0,r.default)(b,0,S),x=y.isColumnResizing!==void 0?y.isColumnResizing:x,_=x?_:{},a({},v,{columnResizingData:_,isColumnResizing:x,maxScrollX:S,scrollX:b})}function p(v,y,w,E){var _=y.scrollToColumn;if((0,t.default)(_))return E;var x=(0,o.default)(v),b=x.availableScrollWidth,C=x.fixedColumns,S=x.scrollableColumns,O=C.length,M=S.length,D=M===0,R=_===w,T=_<O,I=_>=O+M;if(R||T||I||D)return E;for(var A=Math.min(_-O,S.length-1),P=0,N=0;N<A;++N)P+=S[N].width;var H=S[A].width,B=P+H-b;return E<B?B:E>P?P:E}function h(v,y){var w=y.cellMinWidth,E=y.cellMaxWidth,_=y.cellWidth,x=y.columnKey,b=y.combinedWidth,C=y.clientX,S=y.clientY,O=y.leftOffset;return a({},v,{isColumnResizing:!0,columnResizingData:{left:O+b-_,width:_,minWidth:w,maxWidth:E,initialEvent:{clientX:C,clientY:S,preventDefault:n.default},key:x}})}function d(v,y){var w=y.columnKey,E=y.left,_=y.scrollStart,x=y.width,b=(0,o.default)(v),C=b.fixedColumns,S=C.some(function(O){return O.columnKey===w});return a({},v,{isColumnReordering:!0,columnReorderingData:{cancelReorder:!1,dragDistance:0,isFixed:S,scrollStart:_,columnKey:w,columnWidth:x,originalLeft:E,columnBefore:void 0,columnAfter:void 0}})}function m(v,y){var w=v.columnReorderingData,E=w.isFixed,_=w.originalLeft,x=w.scrollStart,b=v.maxScrollX,C=v.scrollX;if(!E){var S=_-x+y,O=(0,o.default)(v),M=O.availableScrollWidth;y+=C-x,S>M-l?C=Math.min(C+s,b):S<=l&&(C=Math.max(C-s,0))}var D=a({},v.columnReorderingData,{dragDistance:y,columnBefore:void 0,columnAfter:void 0});return a({},v,{scrollX:C,columnReorderingData:D})}var g={initialize:c,reorderColumn:d,reorderColumnMove:m,resizeColumn:h};e.default=g})(m0);var v0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(g0),r=a(Li),n=a(tn),o=a(cl),i=a(gl);function a(d){return d&&d.__esModule?d:{default:d}}function s(){return s=Object.assign||function(d){for(var m=1;m<arguments.length;m++){var g=arguments[m];for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(d[v]=g[v])}return d},s.apply(this,arguments)}function l(d,m){var g=s({},d),v=c(g,m),y=g.rowSettings,w=g.scrollContentHeight,E=y.rowsCount,_=(0,o.default)(g),x=_.bodyHeight,b=w-x,C;b===0?(v.firstViewportIdx>0&&(v=c(g,{firstOffset:0,lastIndex:E-1})),C=0):C=v.firstOffset;var S=v.firstViewportIdx,O=v.endViewportIdx;p(g,v,d.scrolling);var M=0;return E>0&&(M=g.rowOffsets[v.firstViewportIdx]-C),M=(0,t.default)(M,0,b),s(g,{firstRowIndex:S,firstRowOffset:C,endRowIndex:O,maxScrollY:b,scrollY:M})}function c(d,m){var g=(0,r.default)(d),v=g.bufferRowCount,y=g.maxAvailableHeight,w=d.rowSettings.rowsCount;if(w===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var E=m.firstIndex,_=m.firstOffset,x=m.lastIndex;(E>=w||x>=w)&&(x=w-1);var b=1,C=E,S=_;x!==void 0&&(b=-1,C=x,S=0);for(var O=C,M=O;O<w&&O>=0&&S<y;)S+=(0,i.default)(d,O),M=O,O+=b;var D=!1;if(S<y&&O===w&&x===void 0)for(D=!0,O=E-1;O>=0&&S<y;)S+=(0,i.default)(d,O),C=O,--O;var R=Math.min(C,M),T=Math.max(R-v,0);for(O=T;O<R;O++)(0,i.default)(d,O);var I=Math.max(C,M)+1,A=Math.min(I+v,w);for(O=I;O<A;O++)(0,i.default)(d,O);var P=(0,n.default)(d),N=P.availableHeight;if(x!==void 0||D){_=_+Math.min(N-S,0);var H=d.storedHeights;-1*_>=H[R]&&(R+=1,_+=H[R])}return{endBufferIdx:A,endViewportIdx:I,firstBufferIdx:T,firstOffset:_,firstViewportIdx:R}}function p(d,m,g){var v=d.rowBufferSet,y=d.rowOffsetIntervalTree,w=d.storedHeights,E=m.endBufferIdx,_=m.endViewportIdx,x=m.firstBufferIdx,b=m.firstViewportIdx,C=E-x;if(C===0){d.rowOffsets={},d.rows=[];return}for(var S=g?b:x,O=g?_:E,M=[],D={},R=y.sumUntil(S),T=S;T<O;T++){D[T]=R,R+=w[T];var I=h(T,v,S,O,C);M[I]=T}d.rows=M,d.rowOffsets=D}function h(d,m,g,v,y){var w=m.getValuePosition(d);return w===null&&m.getSize()>=y&&(w=m.replaceFurthestValuePosition(g,v-1,d)),w===null&&(w=m.getNewPositionForValue(d)),w}})(v0);var zi={},y0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105};e.default=t})(y0);var Ja={"--scrollbar-face-active-color":"#7d7d7d","--scrollbar-face-color":"#c2c2c2","--scrollbar-face-margin":"4px","--scrollbar-face-radius":"6px","--scrollbar-size":"15px","--scrollbar-size-large":"17px","--scrollbar-track-color":"#fff","--border-color":"#d3d3d3","--fbui-white":"#fff","--fbui-desktop-background-light":"#f6f7f8"};function b0(e){if(Ja.hasOwnProperty(e))return Ja[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}b0.CSS_VARS=Ja;var uD=b0;(function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(B){return typeof B}:t=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=d(F),n=d(kr),o=d(Ye),i=d(mt),a=d(Yt),s=d(y0),l=d(tl),c=d(Hi),p=d(uD),h=d(lo);function d(N){return N&&N.__esModule?N:{default:N}}function m(N,H){if(!(N instanceof H))throw new TypeError("Cannot call a class as a function")}function g(N,H){for(var B=0;B<H.length;B++){var L=H[B];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(N,L.key,L)}}function v(N,H,B){return H&&g(N.prototype,H),N}function y(N,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(H&&H.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),H&&w(N,H)}function w(N,H){return w=Object.setPrototypeOf||function(L,k){return L.__proto__=k,L},w(N,H)}function E(N){var H=b();return function(){var L=C(N),k;if(H){var $=C(this).constructor;k=Reflect.construct(L,arguments,$)}else k=L.apply(this,arguments);return _(this,k)}}function _(N,H){return H&&(t(H)==="object"||typeof H=="function")?H:x(N)}function x(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(N){return!1}}function C(N){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},C(N)}function S(N,H,B){return H in N?Object.defineProperty(N,H,{value:B,enumerable:!0,configurable:!0,writable:!0}):N[H]=B,N}var O={position:0,scrollable:!1},M=parseInt((0,p.default)("--scrollbar-face-margin"),10),D=M*2,R=30,T=40,I=null,A=function(N){y(B,N);var H=E(B);function B(L){var k;return m(this,B),k=H.call(this,L),S(x(k),"_onRefFace",function($){return k._faceRef=$}),S(x(k),"_onRefRoot",function($){return k._rootRef=$}),S(x(k),"scrollBy",function($){k._onWheel($)}),S(x(k),"_shouldHandleX",function($){return k.props.orientation==="horizontal"?k._shouldHandleChange($):!1}),S(x(k),"_shouldHandleY",function($){return k.props.orientation!=="horizontal"?k._shouldHandleChange($):!1}),S(x(k),"_shouldHandleChange",function($){var V=k._calculateState(k.state.position+$,k.props.size,k.props.contentSize,k.props.orientation);return V.position!==k.state.position}),S(x(k),"_calculateState",function($,V,j,W){var U=Math.max(1,V);if(j<=U)return O;var Y="".concat($,"_").concat(U,"_").concat(j,"_").concat(W);if(k._stateKey===Y)return k._stateForKey;var K=W==="horizontal",X=U/j,Q=U*X;Q<R&&(X=(U-R)/(j-U),Q=R);var ee=!0,re=j-U;$<0?$=0:$>re&&($=re);var G=k._mouseMoveTracker?k._mouseMoveTracker.isDragging():!1,ne={faceSize:Q,isDragging:G,isHorizontal:K,position:$,scale:X,scrollable:ee};return k._stateKey=Y,k._stateForKey=ne,ne}),S(x(k),"_onWheelY",function($,V){k._onWheel(V)}),S(x(k),"_onWheelX",function($,V){k._onWheel($)}),S(x(k),"_onWheel",function($){var V=k.props;k._setNextState(k._calculateState(k.state.position+$,V.size,V.contentSize,V.orientation))}),S(x(k),"_onMouseDown",function($){var V;if($.target!==k._faceRef){var j=$.nativeEvent,W=k.state.isHorizontal?j.offsetX||j.layerX||k.getTouchX(j):j.offsetY||j.layerY||k.getTouchY(j),U=k.props;W/=k.state.scale,V=k._calculateState(W-k.state.faceSize*.5/k.state.scale,U.size,U.contentSize,U.orientation)}else V={};V.focused=!0,k._setNextState(V),k._mouseMoveTracker.captureMouseMoves($),k._rootRef.focus()}),S(x(k),"_onTouchCancel",function($){$.stopPropagation()}),S(x(k),"_onTouchEnd",function($){$.stopPropagation()}),S(x(k),"_onTouchMove",function($){$.stopPropagation()}),S(x(k),"_onTouchStart",function($){$.stopPropagation(),k._onMouseDown($)}),S(x(k),"_onMouseMove",function($,V){var j=k.props,W=k.state.isHorizontal?$*(k.props.isRTL?-1:1):V;W/=k.state.scale;var U=n.default.flushSync||function(Y){return Y()};U(function(){return k._setNextState(k._calculateState(k.state.position+W,j.size,j.contentSize,j.orientation))})}),S(x(k),"_onMouseMoveEnd",function(){k._nextState=null,k._mouseMoveTracker.releaseMouseMoves(),k.setState({isDragging:!1})}),S(x(k),"_onKeyDown",function($){var V=$.keyCode;if(V!==s.default.TAB){var j=T,W=0;if(k.state.isHorizontal)switch(V){case s.default.HOME:W=-1,j=k.props.contentSize;break;case s.default.LEFT:W=-1;break;case s.default.RIGHT:W=1;break;default:return}if(!k.state.isHorizontal)switch(V){case s.default.SPACE:$.shiftKey?W=-1:W=1;break;case s.default.HOME:W=-1,j=k.props.contentSize;break;case s.default.UP:W=-1;break;case s.default.DOWN:W=1;break;case s.default.PAGE_UP:W=-1,j=k.props.size;break;case s.default.PAGE_DOWN:W=1,j=k.props.size;break;default:return}$.preventDefault();var U=k.props;k._setNextState(k._calculateState(k.state.position+j*W,U.size,U.contentSize,U.orientation))}}),S(x(k),"_onFocus",function(){k.setState({focused:!0})}),S(x(k),"_onBlur",function(){k.setState({focused:!1})}),S(x(k),"_blur",function(){var $=n.default.findDOMNode(x(k));if($)try{k._onBlur(),$.blur()}catch(V){}}),S(x(k),"getTouchX",function($){return Math.round($.targetTouches[0].clientX-$.target.getBoundingClientRect().x)}),S(x(k),"getTouchY",function($){return Math.round($.targetTouches[0].clientY-$.target.getBoundingClientRect().y)}),S(x(k),"_setNextState",function($,V){V=V||k.props;var j=V.position,W=k.state.position!==$.position;if(j===void 0){var U=W?k._didScroll:void 0;k.setState($,U)}else if(j===$.position)k.setState($);else{$.position!==void 0&&$.position!==k.state.position&&k.props.onScroll($.position);return}W&&I!==x(k)&&(I&&I._blur(),I=x(k))}),S(x(k),"_didScroll",function(){k.props.onScroll(k.state.position)}),k.state=k._calculateState(L.position||L.defaultPosition||0,L.size,L.contentSize,L.orientation),k._initialRender=!0,k}return v(B,[{key:"componentDidUpdate",value:function(){var k=this.props.position;k===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState(k,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var k=this.props.size,$,V,j=this.state.isHorizontal,W=!j,U=this.state.focused||this.state.isDragging,Y=this.state.faceSize,K=this.props.isOpaque,X=this.props.verticalTop||0,Q=(0,i.default)({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":W,"ScrollbarLayout/mainHorizontal":j,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":K,"public/Scrollbar/mainActive":U}),ee=(0,i.default)({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":j,"ScrollbarLayout/faceVertical":W,"public/Scrollbar/faceActive":U,"public/Scrollbar/face":!0}),re=this.state.position*this.state.scale+M;return j?($={width:k},V={width:Y-D,top:0,bottom:0},(0,h.default)(V,re,0,this._initialRender,this.props.isRTL)):($={top:X,height:k},this.props.isRTL&&($.left=$.right||0,$.right="auto"),V={height:Y-D},(0,h.default)(V,0,re,this._initialRender,this.props.isRTL),V.left=0,V.right=0),$.touchAction="none",$.zIndex=this.props.zIndex,this.props.trackColor==="gray"&&($.backgroundColor=(0,p.default)("--fbui-desktop-background-light")),r.default.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onTouchCancel:this._onTouchCancel,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,className:Q,style:$,ref:this._onRefRoot},r.default.createElement("div",{ref:this._onRefFace,className:ee,style:V}))}},{key:"componentDidMount",value:function(){var k=this.props.orientation==="horizontal",$=k?this._onWheelX:this._onWheelY;this._wheelHandler=new l.default($,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new c.default(this._onMouseMove,this._onMouseMoveEnd,document.documentElement,this.props.touchEnabled),this.props.position!==void 0&&this.state.position!==this.props.position&&this._didScroll(),this._initialRender=!1}},{key:"componentWillUnmount",value:function(){this._rootRef&&this._rootRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._nextState=null,this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null),I===this&&(I=null)}}]),B}(r.default.PureComponent);S(A,"propTypes",{contentSize:o.default.number.isRequired,defaultPosition:o.default.number,isOpaque:o.default.bool,orientation:o.default.oneOf(["vertical","horizontal"]),onScroll:o.default.func,position:o.default.number,size:o.default.number.isRequired,trackColor:o.default.oneOf(["gray"]),touchEnabled:o.default.bool,zIndex:o.default.number,verticalTop:o.default.number,isRTL:o.default.bool}),S(A,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:a.default,orientation:"vertical",zIndex:99}),A.KEYBOARD_SCROLL_AMOUNT=T,A.SIZE=parseInt((0,p.default)("--scrollbar-size"),10),A.OFFSET=1;var P=A;e.default=P})(zi);(function(e){function t(b){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(S){return typeof S}:t=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},t(b)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=g(el),n=g(l0),o=g(c0),i=g(so),a=g(d0),s=m(xe),l=ji,c=g(m0),p=g(v0),h=g(zi);function d(b){if(typeof WeakMap!="function")return null;var C=new WeakMap,S=new WeakMap;return(d=function(M){return M?S:C})(b)}function m(b,C){if(b&&b.__esModule)return b;if(b===null||t(b)!=="object"&&typeof b!="function")return{default:b};var S=d(C);if(S&&S.has(b))return S.get(b);var O={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in b)if(D!=="default"&&Object.prototype.hasOwnProperty.call(b,D)){var R=M?Object.getOwnPropertyDescriptor(b,D):null;R&&(R.get||R.set)?Object.defineProperty(O,D,R):O[D]=b[D]}return O.default=b,S&&S.set(b,O),O}function g(b){return b&&b.__esModule?b:{default:b}}function v(){return v=Object.assign||function(b){for(var C=1;C<arguments.length;C++){var S=arguments[C];for(var O in S)Object.prototype.hasOwnProperty.call(S,O)&&(b[O]=S[O])}return b},v.apply(this,arguments)}function y(){return{columnProps:[],columnGroupProps:[],elementTemplates:{cell:[],footer:[],groupHeader:[],header:[]},elementHeights:{footerHeight:0,groupHeaderHeight:0,headerHeight:0},propsRevision:null,rowSettings:{bufferRowCount:void 0,rowAttributesGetter:void 0,rowHeight:0,rowHeightGetter:function(){return 0},rowsCount:0,subRowHeight:0,subRowHeightGetter:function(){return 0}},scrollFlags:{overflowX:"auto",overflowY:"auto",showScrollbarX:!0,showScrollbarY:!0},tableSize:{height:void 0,maxHeight:0,ownerHeight:void 0,useMaxHeight:!1,width:0},columnReorderingData:{},columnResizingData:{},firstRowIndex:0,firstRowOffset:0,isColumnReordering:!1,isColumnResizing:!1,maxScrollX:0,maxScrollY:0,rowOffsets:{},rows:[],scrollContentHeight:0,scrollX:0,scrollbarXHeight:h.default.SIZE,scrollY:0,scrollbarYWidth:h.default.SIZE,scrolling:!1,rowBufferSet:new n.default,storedHeights:[],rowOffsetIntervalTree:null}}function w(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y(),C=arguments.length>1?arguments[1]:void 0;switch(C.type){case s.INITIALIZE:{var S=C.props,O=_(b,S);O=E(O);var M=(0,l.getScrollAnchor)(O,S);return O=(0,p.default)(O,M),c.default.initialize(O,S,{})}case s.PROP_CHANGE:{var D=C.newProps,R=C.oldProps,T=_(b,D);(R.rowsCount!==D.rowsCount||R.rowHeight!==D.rowHeight||R.subRowHeight!==D.subRowHeight)&&(T=E(T)),R.rowsCount!==D.rowsCount&&(T.rowBufferSet=new n.default);var I=(0,l.getScrollAnchor)(T,D,R);return(!(0,i.default)(b,T)||I.changed)&&(T=(0,p.default)(T,I)),T=c.default.initialize(T,D,R),(T.scrollX!==b.scrollX||T.scrollY!==b.scrollY)&&(T.scrolling=T.scrolling||!0),T}case s.SCROLL_END:{var A=v({},b,{scrolling:!1}),P={firstIndex:b.firstRowIndex,firstOffset:b.firstRowOffset,lastIndex:b.lastIndex};return(0,p.default)(A,P)}case s.SCROLL_TO_Y:{var N=C.scrollY,H=v({},b,{scrolling:!0}),B=(0,l.scrollTo)(H,N);return(0,p.default)(H,B)}case s.COLUMN_RESIZE:{var L=C.resizeData;return c.default.resizeColumn(b,L)}case s.COLUMN_REORDER_START:{var k=C.reorderData;return c.default.reorderColumn(b,k)}case s.COLUMN_REORDER_END:return v({},b,{isColumnReordering:!1,columnReorderingData:{}});case s.COLUMN_REORDER_MOVE:{var $=C.deltaX;return c.default.reorderColumnMove(b,$)}case s.SCROLL_TO_X:{var V=C.scrollX;return v({},b,{scrolling:!0,scrollX:V})}default:return b}}function E(b){for(var C=b.rowSettings,S=C.rowHeight,O=C.rowsCount,M=C.subRowHeight,D=S+M,R=o.default.uniform(O,D),T=O*D,I=new Array(O),A=0;A<O;A++)I[A]=D;return v({},b,{rowOffsetIntervalTree:R,scrollContentHeight:T,storedHeights:I})}function _(b,C){var S=(0,a.default)(C.children),O=S.columnGroupProps,M=S.columnProps,D=S.elementTemplates,R=S.useGroupHeader,T=v({},b,{columnGroupProps:O,columnProps:M,elementTemplates:D,propsRevision:b.propsRevision+1});T.elementHeights=v({},T.elementHeights,(0,r.default)(C,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),R||(T.elementHeights.groupHeaderHeight=0),T.rowSettings=v({},T.rowSettings,(0,r.default)(C,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var I=T.rowSettings,A=I.rowHeight,P=I.subRowHeight;return T.rowSettings.rowHeightGetter=C.rowHeightGetter||function(){return A},T.rowSettings.subRowHeightGetter=C.subRowHeightGetter||function(){return P||0},T.rowSettings.rowAttributesGetter=C.rowAttributesGetter,T.scrollFlags=v({},T.scrollFlags,(0,r.default)(C,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),T.tableSize=v({},T.tableSize,(0,r.default)(C,["height","maxHeight","ownerHeight","width"])),T.tableSize.useMaxHeight=T.tableSize.height===void 0,T.scrollbarXHeight=C.scrollbarXHeight,T.scrollbarYWidth=C.scrollbarYWidth,T}var x=w;e.default=x})(s0);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=lp,r=n(s0);function n(i){return i&&i.__esModule?i:{default:i}}var o={get:function(){return(0,t.createStore)(r.default)}};e.default=o})(a0);var _0={},cD=Ap,dD=Fp,fD=ki,pD=tt,hD=$i,mD=nl,gD=Ip,vD=ol,yD="[object Map]",bD="[object Set]",_D=Object.prototype,xD=_D.hasOwnProperty;function wD(e){if(e==null)return!0;if(hD(e)&&(pD(e)||typeof e=="string"||typeof e.splice=="function"||mD(e)||vD(e)||fD(e)))return!e.length;var t=dD(e);if(t==yD||t==bD)return!e.size;if(gD(e))return!cD(e).length;for(var r in e)if(xD.call(e,r))return!1;return!0}var CD=wD;(function(e){function t(O){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(D){return typeof D}:t=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},t(O)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(F),n=l(Ye),o=l(CD),i=l(mt),a=l(Gt),s=l(zi);function l(O){return O&&O.__esModule?O:{default:O}}function c(){return c=Object.assign||function(O){for(var M=1;M<arguments.length;M++){var D=arguments[M];for(var R in D)Object.prototype.hasOwnProperty.call(D,R)&&(O[R]=D[R])}return O},c.apply(this,arguments)}function p(O,M){if(!(O instanceof M))throw new TypeError("Cannot call a class as a function")}function h(O,M){for(var D=0;D<M.length;D++){var R=M[D];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(O,R.key,R)}}function d(O,M,D){return M&&h(O.prototype,M),O}function m(O,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(M&&M.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),M&&g(O,M)}function g(O,M){return g=Object.setPrototypeOf||function(R,T){return R.__proto__=T,R},g(O,M)}function v(O){var M=E();return function(){var R=_(O),T;if(M){var I=_(this).constructor;T=Reflect.construct(R,arguments,I)}else T=R.apply(this,arguments);return y(this,T)}}function y(O,M){return M&&(t(M)==="object"||typeof M=="function")?M:w(O)}function w(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function E(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(O){return!1}}function _(O){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},_(O)}function x(O,M,D){return M in O?Object.defineProperty(O,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):O[M]=D,O}var b=function(O){m(D,O);var M=v(D);function D(){var R;p(this,D);for(var T=arguments.length,I=new Array(T),A=0;A<T;A++)I[A]=arguments[A];return R=M.call.apply(M,[this].concat(I)),x(w(R),"state",{}),x(w(R),"_onScrollBarsUpdate",function(P){R.setState(P)}),x(w(R),"_onVerticalScroll",function(P){R.state.scrollToY!==void 0&&R.state.scrollToY(P)}),x(w(R),"_onHorizontalScroll",function(P){R.state.scrollToX!==void 0&&R.state.scrollToX(P)}),R}return d(D,[{key:"render",value:function(){var T=!(0,o.default)(this.state)&&r.default.createElement(s.default,{size:this.state.viewportHeight,contentSize:this.state.contentHeight,onScroll:this._onVerticalScroll,verticalTop:this.state.scrollbarYOffsetTop,position:this.state.scrollY,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL}),I=!(0,o.default)(this.state)&&r.default.createElement(C,{contentSize:this.state.contentWidth,offset:this.state.scrollbarXOffsetTop,onScroll:this._onHorizontalScroll,position:this.state.scrollX,size:this.state.viewportWidth,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL});return r.default.cloneElement(this.props.children,{onScrollBarsUpdate:this._onScrollBarsUpdate,scrollbarX:I,scrollbarY:T})}}]),D}(r.default.Component),C=function(O){m(D,O);var M=v(D);function D(){return p(this,D),M.apply(this,arguments)}return d(D,[{key:"render",value:function(){var T=this.props,I=T.offset,A=T.size,P={height:s.default.SIZE,width:A},N={height:s.default.SIZE,overflow:"hidden",width:A,top:I};return r.default.createElement("div",{className:(0,a.default)((0,i.default)("public/fixedDataTable/horizontalScrollbar")),style:P},r.default.createElement("div",{style:N},r.default.createElement(s.default,c({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),D}(r.default.PureComponent);x(C,"propTypes",{contentSize:n.default.number.isRequired,offset:n.default.number.isRequired,onScroll:n.default.func.isRequired,position:n.default.number.isRequired,size:n.default.number.isRequired,isRTL:n.default.bool});var S=b;e.default=S})(_0);(function(e){function t(P){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(H){return typeof H}:t=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},t(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=y(F),n=lp,o=y(qr),i=y(el),a=v(xe),s=v(_t),l=v(xt),c=y(xp),p=y(a0),h=y(zi),d=y(_0),m=r0;function g(P){if(typeof WeakMap!="function")return null;var N=new WeakMap,H=new WeakMap;return(g=function(L){return L?H:N})(P)}function v(P,N){if(P&&P.__esModule)return P;if(P===null||t(P)!=="object"&&typeof P!="function")return{default:P};var H=g(N);if(H&&H.has(P))return H.get(P);var B={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in P)if(k!=="default"&&Object.prototype.hasOwnProperty.call(P,k)){var $=L?Object.getOwnPropertyDescriptor(P,k):null;$&&($.get||$.set)?Object.defineProperty(B,k,$):B[k]=P[k]}return B.default=P,H&&H.set(P,B),B}function y(P){return P&&P.__esModule?P:{default:P}}function w(){return w=Object.assign||function(P){for(var N=1;N<arguments.length;N++){var H=arguments[N];for(var B in H)Object.prototype.hasOwnProperty.call(H,B)&&(P[B]=H[B])}return P},w.apply(this,arguments)}function E(P,N){if(!(P instanceof N))throw new TypeError("Cannot call a class as a function")}function _(P,N){for(var H=0;H<N.length;H++){var B=N[H];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(P,B.key,B)}}function x(P,N,H){return N&&_(P.prototype,N),H&&_(P,H),P}function b(P,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(N&&N.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),N&&C(P,N)}function C(P,N){return C=Object.setPrototypeOf||function(B,L){return B.__proto__=L,B},C(P,N)}function S(P){var N=D();return function(){var B=R(P),L;if(N){var k=R(this).constructor;L=Reflect.construct(B,arguments,k)}else L=B.apply(this,arguments);return O(this,L)}}function O(P,N){return N&&(t(N)==="object"||typeof N=="function")?N:M(P)}function M(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function D(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(P){return!1}}function R(P){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},R(P)}function T(P,N,H){return N in P?Object.defineProperty(P,N,{value:H,enumerable:!0,configurable:!0,writable:!0}):P[N]=H,P}var I=function(P){b(H,P);var N=S(H);function H(B){var L;return E(this,H),L=N.call(this,B),L.reduxStore=p.default.get(),L.scrollActions=(0,n.bindActionCreators)(l,L.reduxStore.dispatch),L.columnActions=(0,n.bindActionCreators)(s,L.reduxStore.dispatch),L.reduxStore.dispatch({type:a.INITIALIZE,props:B}),L.unsubscribe=L.reduxStore.subscribe(L.onStoreUpdate.bind(M(L))),L.state={boundState:H.getBoundState(L.reduxStore),reduxStore:L.reduxStore,props:B},L}return x(H,[{key:"componentWillUnmount",value:function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.reduxStore=null}},{key:"render",value:function(){var L=r.default.createElement(c.default,w({},this.props,this.state.boundState,{scrollActions:this.scrollActions,columnActions:this.columnActions}));return this.props.defaultScrollbars?r.default.createElement(d.default,this.props,L):L}},{key:"onStoreUpdate",value:function(){var L=H.getBoundState(this.reduxStore);this.state.boundState.propsRevision===L.propsRevision&&this.setState({boundState:L})}}],[{key:"getDerivedStateFromProps",value:function(L,k){return(0,o.default)(L.height!==void 0||L.maxHeight!==void 0,"You must set either a height or a maxHeight"),L===k.props?null:(k.reduxStore.dispatch({type:a.PROP_CHANGE,newProps:L,oldProps:k.props}),{boundState:H.getBoundState(k.reduxStore),props:L})}},{key:"getBoundState",value:function(L){var k=L.getState(),$=(0,i.default)(k,["columnGroupProps","columnProps","columnReorderingData","columnResizingData","elementHeights","elementTemplates","firstRowIndex","endRowIndex","isColumnReordering","isColumnResizing","maxScrollX","maxScrollY","propsRevision","rows","rowOffsets","rowSettings","scrollContentHeight","scrollFlags","scrollX","scrollY","scrolling","scrollJumpedX","scrollJumpedY","tableSize"]);return $}}]),H}(r.default.Component);T(I,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:h.default.SIZE,scrollbarYWidth:h.default.SIZE});var A=(0,m.polyfill)(I);e.default=A})(ip);var x0={};(function(e){function t(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(R){return typeof R}:t=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t(M)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(F),n=a(Ye),o=a(mt),i=a(Gt);function a(M){return M&&M.__esModule?M:{default:M}}function s(){return s=Object.assign||function(M){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(M[T]=R[T])}return M},s.apply(this,arguments)}function l(M,D){var R=Object.keys(M);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(M);D&&(T=T.filter(function(I){return Object.getOwnPropertyDescriptor(M,I).enumerable})),R.push.apply(R,T)}return R}function c(M){for(var D=1;D<arguments.length;D++){var R=arguments[D]!=null?arguments[D]:{};D%2?l(Object(R),!0).forEach(function(T){C(M,T,R[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(R)):l(Object(R)).forEach(function(T){Object.defineProperty(M,T,Object.getOwnPropertyDescriptor(R,T))})}return M}function p(M,D){if(M==null)return{};var R=h(M,D),T,I;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(M);for(I=0;I<A.length;I++)T=A[I],!(D.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(M,T)&&(R[T]=M[T])}return R}function h(M,D){if(M==null)return{};var R={},T=Object.keys(M),I,A;for(A=0;A<T.length;A++)I=T[A],!(D.indexOf(I)>=0)&&(R[I]=M[I]);return R}function d(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function m(M,D){for(var R=0;R<D.length;R++){var T=D[R];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(M,T.key,T)}}function g(M,D,R){return D&&m(M.prototype,D),M}function v(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&y(M,D)}function y(M,D){return y=Object.setPrototypeOf||function(T,I){return T.__proto__=I,T},y(M,D)}function w(M){var D=x();return function(){var T=b(M),I;if(D){var A=b(this).constructor;I=Reflect.construct(T,arguments,A)}else I=T.apply(this,arguments);return E(this,I)}}function E(M,D){return D&&(t(D)==="object"||typeof D=="function")?D:_(M)}function _(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function x(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(M){return!1}}function b(M){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},b(M)}function C(M,D,R){return D in M?Object.defineProperty(M,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):M[D]=R,M}var S=function(M){v(R,M);var D=w(R);function R(){return d(this,R),D.apply(this,arguments)}return g(R,[{key:"render",value:function(){var I=this.props,A=I.height,P=I.width,N=I.style,H=I.className,B=I.children,L=p(I,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),k=c({height:A,width:P},N);return r.default.createElement("div",s({},L,{className:(0,i.default)((0,o.default)("fixedDataTableCellLayout/wrap"),(0,o.default)("public/fixedDataTableCell/wrap"),(0,o.default)("public/fixedDataTableCell/cellContent"),H),style:k}),B)}}]),R}(r.default.Component);C(S,"propTypes",{height:n.default.number,width:n.default.number,columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number,isVisible:n.default.bool});var O=S;e.default=O})(x0);var w0={};(function(e){function t(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(x){return typeof x}:t=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},t(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(F),n=o(Ye);function o(E){return E&&E.__esModule?E:{default:E}}function i(E,_){if(!(E instanceof _))throw new TypeError("Cannot call a class as a function")}function a(E,_){for(var x=0;x<_.length;x++){var b=_[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(E,b.key,b)}}function s(E,_,x){return _&&a(E.prototype,_),E}function l(E,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(_&&_.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),_&&c(E,_)}function c(E,_){return c=Object.setPrototypeOf||function(b,C){return b.__proto__=C,b},c(E,_)}function p(E){var _=m();return function(){var b=g(E),C;if(_){var S=g(this).constructor;C=Reflect.construct(b,arguments,S)}else C=b.apply(this,arguments);return h(this,C)}}function h(E,_){return _&&(t(_)==="object"||typeof _=="function")?_:d(E)}function d(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function m(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(E){return!1}}function g(E){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},g(E)}function v(E,_,x){return _ in E?Object.defineProperty(E,_,{value:x,enumerable:!0,configurable:!0,writable:!0}):E[_]=x,E}var y=function(E){l(x,E);var _=p(x);function x(){return i(this,x),_.apply(this,arguments)}return s(x,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),x}(r.default.Component);v(y,"__TableColumn__",!0),v(y,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,fixedRight:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func]),cell:n.default.oneOfType([n.default.node,n.default.func]),footer:n.default.oneOfType([n.default.node,n.default.func]),columnKey:n.default.oneOfType([n.default.string,n.default.number]),width:n.default.number.isRequired,minWidth:n.default.number,maxWidth:n.default.number,flexGrow:n.default.number,isResizable:n.default.bool,isReorderable:n.default.bool,allowCellsRecycling:n.default.bool,pureRendering:n.default.bool,cellClassName:n.default.string}),v(y,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});var w=y;e.default=w})(w0);var C0={};(function(e){function t(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(x){return typeof x}:t=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},t(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(F),n=o(Ye);function o(E){return E&&E.__esModule?E:{default:E}}function i(E,_){if(!(E instanceof _))throw new TypeError("Cannot call a class as a function")}function a(E,_){for(var x=0;x<_.length;x++){var b=_[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(E,b.key,b)}}function s(E,_,x){return _&&a(E.prototype,_),E}function l(E,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(_&&_.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),_&&c(E,_)}function c(E,_){return c=Object.setPrototypeOf||function(b,C){return b.__proto__=C,b},c(E,_)}function p(E){var _=m();return function(){var b=g(E),C;if(_){var S=g(this).constructor;C=Reflect.construct(b,arguments,S)}else C=b.apply(this,arguments);return h(this,C)}}function h(E,_){return _&&(t(_)==="object"||typeof _=="function")?_:d(E)}function d(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function m(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(E){return!1}}function g(E){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},g(E)}function v(E,_,x){return _ in E?Object.defineProperty(E,_,{value:x,enumerable:!0,configurable:!0,writable:!0}):E[_]=x,E}var y=function(E){l(x,E);var _=p(x);function x(){return i(this,x),_.apply(this,arguments)}return s(x,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),x}(r.default.Component);v(y,"__TableColumnGroup__",!0),v(y,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func])}),v(y,"defaultProps",{fixed:!1});var w=y;e.default=w})(C0);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Cell",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"DataCell",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Column",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ColumnGroup",{enumerable:!0,get:function(){return i.default}}),e.version=void 0;var t=a(ip),r=a(pl),n=a(x0),o=a(w0),i=a(C0);function a(l){return l&&l.__esModule?l:{default:l}}var s="1.2.22";e.version=s})(op);var Do=op;const TD="#f4f4f8",ED="#edeef1",SD="#e3e5ea",RD="#f9f9fb",OD="#ffcb05",MD="#1faff3",PD="#e5e5e5",DD="#5b6372",kD="#3a4356",ID="#3c3c42",AD="#a3a3a3",ND="#d0d3db",$D="_tableWrapper_1ode4_16",LD="_table_1ode4_16",FD="_tableHeader_1ode4_78",HD="_tableCell_1ode4_88",BD="_tableCellContent_1ode4_99",jD="_headerColor_1ode4_105",zD="_rowColor_1ode4_109",Tn={athensGray:TD,athensGrayDark:ED,athensGrayDark2:SD,athensGrayLight:RD,defaultBrandColor:OD,dodgerBlue:MD,mercury:PD,shuttleGrayDark:DD,oxfordBlue:kD,darkModeDefaultBackground:ID,indicatorGrey:AD,secondaryButtonHover:ND,tableWrapper:$D,table:LD,tableHeader:FD,tableCell:HD,tableCellContent:BD,headerColor:jD,rowColor:zD},WD="#f4f4f8",VD="#edeef1",UD="#e3e5ea",qD="#f9f9fb",GD="#ffcb05",YD="#1faff3",XD="#e5e5e5",KD="#5b6372",QD="#3a4356",ZD="#3c3c42",JD="#a3a3a3",ek="#d0d3db",tk="_headerCell_2qf2w_16",rk="_noSort_2qf2w_29",nk="_standard_2qf2w_29",ok="_caret_2qf2w_33",ik="_headerLabel_2qf2w_38",ak="_icon_2qf2w_43",sk="_numberIcon_2qf2w_50",lk="_dateIcon_2qf2w_54",uk="_textIcon_2qf2w_58",ck="_booleanIcon_2qf2w_62",dk="_sortIcon_2qf2w_66",fk="_sortAscending_2qf2w_74",pk="_sortDescending_2qf2w_78",Ft={athensGray:WD,athensGrayDark:VD,athensGrayDark2:UD,athensGrayLight:qD,defaultBrandColor:GD,dodgerBlue:YD,mercury:XD,shuttleGrayDark:KD,oxfordBlue:QD,darkModeDefaultBackground:ZD,indicatorGrey:JD,secondaryButtonHover:ek,headerCell:tk,noSort:rk,standard:nk,caret:ok,headerLabel:ik,icon:ak,numberIcon:sk,dateIcon:lk,textIcon:uk,booleanIcon:ck,sortIcon:dk,sortAscending:fk,sortDescending:pk};var T0={exports:{}};/*!
243
+ Copyright (c) 2018 Jed Watson.
244
+ Licensed under the MIT License (MIT), see
245
+ http://jedwatson.github.io/classnames
246
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(T0);var hk=T0.exports;const zn=u.getDefaultExportFromCjs(hk),mk="_icon_t30x8_1",gk="_numberIcon_t30x8_11",vk="_dateIcon_t30x8_15",yk="_textIcon_t30x8_19",bk="_booleanIcon_t30x8_23",yn={icon:mk,numberIcon:gk,dateIcon:vk,textIcon:yk,booleanIcon:bk},_k=({columnType:e})=>u.jsx("div",{className:zn(yn.icon,{[yn.numberIcon]:u.isNumber$1(e),[yn.dateIcon]:u.isDatetime(e),[yn.textIcon]:u.isText(e),[yn.booleanIcon]:u.isBoolean(e)})}),xk=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:o,sortIcon:i="standard"})=>u.jsxs("div",{className:Ft.headerCell,onClick:()=>{t(e)},children:[o&&u.jsx(_k,{columnType:e.type}),u.jsx("div",{className:Ft.headerLabel,children:n}),u.jsx("div",{className:zn(Ft.sortIcon,{[Ft.caret]:i==="caret",[Ft.standard]:i==="standard",[Ft.noSort]:!r||e.direction===0,[Ft.sortAscending]:r&&e.direction===1,[Ft.sortDescending]:r&&e.direction===-1})})]}),wk=26,Ck=26,Lc=20,E0=36,S0=29,R0=24,es=350,Tk=126,Ek=38,Sk=55,Rk=(e,t,r,n)=>{const i=document.createElement("canvas").getContext("2d");if(!i)return[];i.font=`13px ${n||"Open Sans"}`;const a=e.columns.map(h=>i.measureText(h.name).width+E0+(t?S0:0)),s=i.measureText("0").width,l=e.columns.map(h=>({type:u.simpleColumnType(h.type),index:h.index})),{rows:c}=e,p=l.map(h=>{const d=c.reduce((m,g)=>{var E;const v=g[h.index].displayValue,y=(E=r[h.index])!=null&&E.isHtml?Ok(v):v,w=h.type==="number"?g[h.index].displayValue.length*s:i.measureText(y).width;return Math.max(m,w)},0);return R0+d});return a.map((h,d)=>{var m;return(m=r[d])!=null&&m.width?r[d].width:Math.ceil(Math.max(Tk,Math.min(es,Math.max(h,p[d]))))})};function Ok(e){const t=document.createElement("div");return t.innerHTML=e,O0(t)}function O0(e){let t,r,n,o;for(r="",t=0;t<e.childNodes.length;t++)o=e.childNodes[t],n=null,o.nodeType===1?n=O0(o):o.nodeType===3&&(n=o.nodeValue),n&&(r+=n);return r}const Fc=e=>e%2===1,Hc=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:o})=>{var c,p,h,d,m,g,v,y,w,E,_,x,b,C,S,O,M,D;let i=r.chart.textColor;const a=r.typography.fontFamily;let s=r.chart.backgroundColor;const l=u.getSlightlyDifferentColor(s);return o?(p=(c=n==null?void 0:n.header)==null?void 0:c.color)!=null&&p.enabled&&(s=((d=(h=n==null?void 0:n.header)==null?void 0:h.color)==null?void 0:d.backgroundColor)||l,i=((g=(m=n==null?void 0:n.header)==null?void 0:m.color)==null?void 0:g.textColor)||i):((y=(v=n==null?void 0:n.columns)==null?void 0:v.alternatingColor)!=null&&y.enabled&&Fc(e)&&(s=((E=(w=n==null?void 0:n.columns)==null?void 0:w.alternatingColor)==null?void 0:E.backgroundColor)||l,i=((x=(_=n==null?void 0:n.columns)==null?void 0:_.alternatingColor)==null?void 0:x.textColor)||i),(C=(b=n==null?void 0:n.rows)==null?void 0:b.alternatingColor)!=null&&C.enabled&&Fc(t)&&(s=((O=(S=n==null?void 0:n.rows)==null?void 0:S.alternatingColor)==null?void 0:O.backgroundColor)||l,i=((D=(M=n==null?void 0:n.rows)==null?void 0:M.alternatingColor)==null?void 0:D.textColor)||i)),{color:i,backgroundColor:s,fontFamily:a}};var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var M0=yl.default=void 0,Mk=Dk(F),Pk=Bd;function P0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(P0=function(n){return n?r:t})(e)}function Dk(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=P0(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function kk(e){return Object.keys(e).length===0}function Ik(e=null){const t=Mk.useContext(Pk.ThemeContext);return!t||kk(t)?e:t}M0=yl.default=Ik;var qe="top",ft="bottom",pt="right",Ge="left",bl="auto",uo=[qe,ft,pt,Ge],Lr="start",Wn="end",Ak="clippingParents",D0="viewport",bn="popper",Nk="reference",Bc=uo.reduce(function(e,t){return e.concat([t+"-"+Lr,t+"-"+Wn])},[]),k0=[].concat(uo,[bl]).reduce(function(e,t){return e.concat([t,t+"-"+Lr,t+"-"+Wn])},[]),$k="beforeRead",Lk="read",Fk="afterRead",Hk="beforeMain",Bk="main",jk="afterMain",zk="beforeWrite",Wk="write",Vk="afterWrite",Uk=[$k,Lk,Fk,Hk,Bk,jk,zk,Wk,Vk];function Et(e){return e?(e.nodeName||"").toLowerCase():null}function et(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fr(e){var t=et(e).Element;return e instanceof t||e instanceof Element}function ut(e){var t=et(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _l(e){if(typeof ShadowRoot=="undefined")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qk(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!ut(i)||!Et(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Gk(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!ut(o)||!Et(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Yk={name:"applyStyles",enabled:!0,phase:"write",fn:qk,effect:Gk,requires:["computeStyles"]};function Ct(e){return e.split("-")[0]}var cr=Math.max,Jo=Math.min,Fr=Math.round;function ts(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function I0(){return!/^((?!chrome|android).)*safari/i.test(ts())}function Hr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&ut(e)&&(o=e.offsetWidth>0&&Fr(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Fr(n.height)/e.offsetHeight||1);var a=fr(e)?et(e):window,s=a.visualViewport,l=!I0()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/o,p=(n.top+(l&&s?s.offsetTop:0))/i,h=n.width/o,d=n.height/i;return{width:h,height:d,top:p,right:c+h,bottom:p+d,left:c,x:c,y:p}}function xl(e){var t=Hr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function A0(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_l(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Mt(e){return et(e).getComputedStyle(e)}function Xk(e){return["table","td","th"].indexOf(Et(e))>=0}function Kt(e){return((fr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wi(e){return Et(e)==="html"?e:e.assignedSlot||e.parentNode||(_l(e)?e.host:null)||Kt(e)}function jc(e){return!ut(e)||Mt(e).position==="fixed"?null:e.offsetParent}function Kk(e){var t=/firefox/i.test(ts()),r=/Trident/i.test(ts());if(r&&ut(e)){var n=Mt(e);if(n.position==="fixed")return null}var o=Wi(e);for(_l(o)&&(o=o.host);ut(o)&&["html","body"].indexOf(Et(o))<0;){var i=Mt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function co(e){for(var t=et(e),r=jc(e);r&&Xk(r)&&Mt(r).position==="static";)r=jc(r);return r&&(Et(r)==="html"||Et(r)==="body"&&Mt(r).position==="static")?t:r||Kk(e)||t}function wl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pn(e,t,r){return cr(e,Jo(t,r))}function Qk(e,t,r){var n=Pn(e,t,r);return n>r?r:n}function N0(){return{top:0,right:0,bottom:0,left:0}}function $0(e){return Object.assign({},N0(),e)}function L0(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Zk=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$0(typeof t!="number"?t:L0(t,uo))};function Jk(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Ct(r.placement),l=wl(s),c=[Ge,pt].indexOf(s)>=0,p=c?"height":"width";if(!(!i||!a)){var h=Zk(o.padding,r),d=xl(i),m=l==="y"?qe:Ge,g=l==="y"?ft:pt,v=r.rects.reference[p]+r.rects.reference[l]-a[l]-r.rects.popper[p],y=a[l]-r.rects.reference[l],w=co(i),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,_=v/2-y/2,x=h[m],b=E-d[p]-h[g],C=E/2-d[p]/2+_,S=Pn(x,C,b),O=l;r.modifiersData[n]=(t={},t[O]=S,t.centerOffset=S-C,t)}}function e6(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||A0(t.elements.popper,o)&&(t.elements.arrow=o))}const t6={name:"arrow",enabled:!0,phase:"main",fn:Jk,effect:e6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Br(e){return e.split("-")[1]}var r6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function n6(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Fr(r*o)/o||0,y:Fr(n*o)/o||0}}function zc(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,p=e.roundOffsets,h=e.isFixed,d=a.x,m=d===void 0?0:d,g=a.y,v=g===void 0?0:g,y=typeof p=="function"?p({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),_=Ge,x=qe,b=window;if(c){var C=co(r),S="clientHeight",O="clientWidth";if(C===et(r)&&(C=Kt(r),Mt(C).position!=="static"&&s==="absolute"&&(S="scrollHeight",O="scrollWidth")),C=C,o===qe||(o===Ge||o===pt)&&i===Wn){x=ft;var M=h&&C===b&&b.visualViewport?b.visualViewport.height:C[S];v-=M-n.height,v*=l?1:-1}if(o===Ge||(o===qe||o===ft)&&i===Wn){_=pt;var D=h&&C===b&&b.visualViewport?b.visualViewport.width:C[O];m-=D-n.width,m*=l?1:-1}}var R=Object.assign({position:s},c&&r6),T=p===!0?n6({x:m,y:v},et(r)):{x:m,y:v};if(m=T.x,v=T.y,l){var I;return Object.assign({},R,(I={},I[x]=E?"0":"",I[_]=w?"0":"",I.transform=(b.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",I))}return Object.assign({},R,(t={},t[x]=E?v+"px":"",t[_]=w?m+"px":"",t.transform="",t))}function o6(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Ct(t.placement),variation:Br(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const i6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:o6,data:{}};var ko={passive:!0};function a6(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,l=et(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",r.update,ko)}),s&&l.addEventListener("resize",r.update,ko),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",r.update,ko)}),s&&l.removeEventListener("resize",r.update,ko)}}const s6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:a6,data:{}};var l6={left:"right",right:"left",bottom:"top",top:"bottom"};function jo(e){return e.replace(/left|right|bottom|top/g,function(t){return l6[t]})}var u6={start:"end",end:"start"};function Wc(e){return e.replace(/start|end/g,function(t){return u6[t]})}function Cl(e){var t=et(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Tl(e){return Hr(Kt(e)).left+Cl(e).scrollLeft}function c6(e,t){var r=et(e),n=Kt(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=I0();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Tl(e),y:l}}function d6(e){var t,r=Kt(e),n=Cl(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=cr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Tl(e),l=-n.scrollTop;return Mt(o||r).direction==="rtl"&&(s+=cr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function El(e){var t=Mt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function F0(e){return["html","body","#document"].indexOf(Et(e))>=0?e.ownerDocument.body:ut(e)&&El(e)?e:F0(Wi(e))}function Dn(e,t){var r;t===void 0&&(t=[]);var n=F0(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=et(n),a=o?[i].concat(i.visualViewport||[],El(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Dn(Wi(a)))}function rs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f6(e,t){var r=Hr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Vc(e,t,r){return t===D0?rs(c6(e,r)):fr(t)?f6(t,r):rs(d6(Kt(e)))}function p6(e){var t=Dn(Wi(e)),r=["absolute","fixed"].indexOf(Mt(e).position)>=0,n=r&&ut(e)?co(e):e;return fr(n)?t.filter(function(o){return fr(o)&&A0(o,n)&&Et(o)!=="body"}):[]}function h6(e,t,r,n){var o=t==="clippingParents"?p6(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(l,c){var p=Vc(e,c,n);return l.top=cr(p.top,l.top),l.right=Jo(p.right,l.right),l.bottom=Jo(p.bottom,l.bottom),l.left=cr(p.left,l.left),l},Vc(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function H0(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ct(n):null,i=n?Br(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case qe:l={x:a,y:t.y-r.height};break;case ft:l={x:a,y:t.y+t.height};break;case pt:l={x:t.x+t.width,y:s};break;case Ge:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?wl(o):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case Lr:l[c]=l[c]-(t[p]/2-r[p]/2);break;case Wn:l[c]=l[c]+(t[p]/2-r[p]/2);break}}return l}function Vn(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?Ak:s,c=r.rootBoundary,p=c===void 0?D0:c,h=r.elementContext,d=h===void 0?bn:h,m=r.altBoundary,g=m===void 0?!1:m,v=r.padding,y=v===void 0?0:v,w=$0(typeof y!="number"?y:L0(y,uo)),E=d===bn?Nk:bn,_=e.rects.popper,x=e.elements[g?E:d],b=h6(fr(x)?x:x.contextElement||Kt(e.elements.popper),l,p,a),C=Hr(e.elements.reference),S=H0({reference:C,element:_,strategy:"absolute",placement:o}),O=rs(Object.assign({},_,S)),M=d===bn?O:C,D={top:b.top-M.top+w.top,bottom:M.bottom-b.bottom+w.bottom,left:b.left-M.left+w.left,right:M.right-b.right+w.right},R=e.modifiersData.offset;if(d===bn&&R){var T=R[o];Object.keys(D).forEach(function(I){var A=[pt,ft].indexOf(I)>=0?1:-1,P=[qe,ft].indexOf(I)>=0?"y":"x";D[I]+=T[P]*A})}return D}function m6(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?k0:l,p=Br(n),h=p?s?Bc:Bc.filter(function(g){return Br(g)===p}):uo,d=h.filter(function(g){return c.indexOf(g)>=0});d.length===0&&(d=h);var m=d.reduce(function(g,v){return g[v]=Vn(e,{placement:v,boundary:o,rootBoundary:i,padding:a})[Ct(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function g6(e){if(Ct(e)===bl)return[];var t=jo(e);return[Wc(e),t,Wc(t)]}function v6(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,p=r.boundary,h=r.rootBoundary,d=r.altBoundary,m=r.flipVariations,g=m===void 0?!0:m,v=r.allowedAutoPlacements,y=t.options.placement,w=Ct(y),E=w===y,_=l||(E||!g?[jo(y)]:g6(y)),x=[y].concat(_).reduce(function(W,U){return W.concat(Ct(U)===bl?m6(t,{placement:U,boundary:p,rootBoundary:h,padding:c,flipVariations:g,allowedAutoPlacements:v}):U)},[]),b=t.rects.reference,C=t.rects.popper,S=new Map,O=!0,M=x[0],D=0;D<x.length;D++){var R=x[D],T=Ct(R),I=Br(R)===Lr,A=[qe,ft].indexOf(T)>=0,P=A?"width":"height",N=Vn(t,{placement:R,boundary:p,rootBoundary:h,altBoundary:d,padding:c}),H=A?I?pt:Ge:I?ft:qe;b[P]>C[P]&&(H=jo(H));var B=jo(H),L=[];if(i&&L.push(N[T]<=0),s&&L.push(N[H]<=0,N[B]<=0),L.every(function(W){return W})){M=R,O=!1;break}S.set(R,L)}if(O)for(var k=g?3:1,$=function(U){var Y=x.find(function(K){var X=S.get(K);if(X)return X.slice(0,U).every(function(Q){return Q})});if(Y)return M=Y,"break"},V=k;V>0;V--){var j=$(V);if(j==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const y6={name:"flip",enabled:!0,phase:"main",fn:v6,requiresIfExists:["offset"],data:{_skip:!1}};function Uc(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function qc(e){return[qe,pt,ft,Ge].some(function(t){return e[t]>=0})}function b6(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Vn(t,{elementContext:"reference"}),s=Vn(t,{altBoundary:!0}),l=Uc(a,n),c=Uc(s,o,i),p=qc(l),h=qc(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const _6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b6};function x6(e,t,r){var n=Ct(e),o=[Ge,qe].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ge,pt].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function w6(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=k0.reduce(function(p,h){return p[h]=x6(h,t.rects,i),p},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const C6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:w6};function T6(e){var t=e.state,r=e.name;t.modifiersData[r]=H0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const E6={name:"popperOffsets",enabled:!0,phase:"read",fn:T6,data:{}};function S6(e){return e==="x"?"y":"x"}function R6(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,p=r.altBoundary,h=r.padding,d=r.tether,m=d===void 0?!0:d,g=r.tetherOffset,v=g===void 0?0:g,y=Vn(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:p}),w=Ct(t.placement),E=Br(t.placement),_=!E,x=wl(w),b=S6(x),C=t.modifiersData.popperOffsets,S=t.rects.reference,O=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(i){var I,A=x==="y"?qe:Ge,P=x==="y"?ft:pt,N=x==="y"?"height":"width",H=C[x],B=H+y[A],L=H-y[P],k=m?-O[N]/2:0,$=E===Lr?S[N]:O[N],V=E===Lr?-O[N]:-S[N],j=t.elements.arrow,W=m&&j?xl(j):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:N0(),Y=U[A],K=U[P],X=Pn(0,S[N],W[N]),Q=_?S[N]/2-k-X-Y-D.mainAxis:$-X-Y-D.mainAxis,ee=_?-S[N]/2+k+X+K+D.mainAxis:V+X+K+D.mainAxis,re=t.elements.arrow&&co(t.elements.arrow),G=re?x==="y"?re.clientTop||0:re.clientLeft||0:0,ne=(I=R==null?void 0:R[x])!=null?I:0,Z=H+Q-ne-G,oe=H+ee-ne,de=Pn(m?Jo(B,Z):B,H,m?cr(L,oe):L);C[x]=de,T[x]=de-H}if(s){var pe,ce=x==="x"?qe:Ge,Ne=x==="x"?ft:pt,Te=C[b],$e=b==="y"?"height":"width",Le=Te+y[ce],ye=Te-y[Ne],be=[qe,Ge].indexOf(w)!==-1,Ue=(pe=R==null?void 0:R[b])!=null?pe:0,He=be?Le:Te-S[$e]-O[$e]-Ue+D.altAxis,Xe=be?Te+S[$e]+O[$e]-Ue-D.altAxis:ye,kt=m&&be?Qk(He,Te,Xe):Pn(m?He:Le,Te,m?Xe:ye);C[b]=kt,T[b]=kt-Te}t.modifiersData[n]=T}}const O6={name:"preventOverflow",enabled:!0,phase:"main",fn:R6,requiresIfExists:["offset"]};function M6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function P6(e){return e===et(e)||!ut(e)?Cl(e):M6(e)}function D6(e){var t=e.getBoundingClientRect(),r=Fr(t.width)/e.offsetWidth||1,n=Fr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function k6(e,t,r){r===void 0&&(r=!1);var n=ut(t),o=ut(t)&&D6(t),i=Kt(t),a=Hr(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Et(t)!=="body"||El(i))&&(s=P6(t)),ut(t)?(l=Hr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Tl(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function I6(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function A6(e){var t=I6(e);return Uk.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function N6(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function $6(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Gc={placement:"bottom",modifiers:[],strategy:"absolute"};function Yc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function L6(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Gc:o;return function(s,l,c){c===void 0&&(c=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gc,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},h=[],d=!1,m={state:p,setOptions:function(w){var E=typeof w=="function"?w(p.options):w;v(),p.options=Object.assign({},i,p.options,E),p.scrollParents={reference:fr(s)?Dn(s):s.contextElement?Dn(s.contextElement):[],popper:Dn(l)};var _=A6($6([].concat(n,p.options.modifiers)));return p.orderedModifiers=_.filter(function(x){return x.enabled}),g(),m.update()},forceUpdate:function(){if(!d){var w=p.elements,E=w.reference,_=w.popper;if(Yc(E,_)){p.rects={reference:k6(E,co(_),p.options.strategy==="fixed"),popper:xl(_)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var x=0;x<p.orderedModifiers.length;x++){if(p.reset===!0){p.reset=!1,x=-1;continue}var b=p.orderedModifiers[x],C=b.fn,S=b.options,O=S===void 0?{}:S,M=b.name;typeof C=="function"&&(p=C({state:p,options:O,name:M,instance:m})||p)}}}},update:N6(function(){return new Promise(function(y){m.forceUpdate(),y(p)})}),destroy:function(){v(),d=!0}};if(!Yc(s,l))return m;m.setOptions(c).then(function(y){!d&&c.onFirstUpdate&&c.onFirstUpdate(y)});function g(){p.orderedModifiers.forEach(function(y){var w=y.name,E=y.options,_=E===void 0?{}:E,x=y.effect;if(typeof x=="function"){var b=x({state:p,name:w,instance:m,options:_}),C=function(){};h.push(b||C)}})}function v(){h.forEach(function(y){return y()}),h=[]}return m}}var F6=[s6,E6,i6,Yk,C6,y6,O6,t6,_6],H6=L6({defaultModifiers:F6});function B6(e){return we("MuiPopper",e)}Ce("MuiPopper",["root"]);const j6=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],z6=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function W6(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function ei(e){return typeof e=="function"?e():e}function Vi(e){return e.nodeType!==void 0}function V6(e){return!Vi(e)}const U6=e=>{const{classes:t}=e;return De({root:["root"]},B6,t)},q6={},G6=z.forwardRef(function(t,r){var n;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:p,popperOptions:h,popperRef:d,slotProps:m={},slots:g={},TransitionProps:v}=t,y=ae(t,j6),w=z.useRef(null),E=Ve(w,r),_=z.useRef(null),x=Ve(_,d),b=z.useRef(x);Ut(()=>{b.current=x},[x]),z.useImperativeHandle(d,()=>_.current,[]);const C=W6(p,a),[S,O]=z.useState(C),[M,D]=z.useState(ei(o));z.useEffect(()=>{_.current&&_.current.forceUpdate()}),z.useEffect(()=>{o&&D(ei(o))},[o]),Ut(()=>{if(!M||!c)return;const P=B=>{O(B.placement)};if(process.env.NODE_ENV!=="production"&&M&&Vi(M)&&M.nodeType===1){const B=M.getBoundingClientRect();process.env.NODE_ENV!=="test"&&B.top===0&&B.left===0&&B.right===0&&B.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
247
+ `))}let N=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{P(B)}}];l!=null&&(N=N.concat(l)),h&&h.modifiers!=null&&(N=N.concat(h.modifiers));const H=H6(M,w.current,u._extends({placement:C},h,{modifiers:N}));return b.current(H),()=>{H.destroy(),b.current(null)}},[M,s,l,c,h,C]);const R={placement:S};v!==null&&(R.TransitionProps=v);const T=U6(t),I=(n=g.root)!=null?n:"div",A=Vt({elementType:I,externalSlotProps:m.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:T.root});return te.jsx(I,u._extends({},A,{children:typeof i=="function"?i(R):i}))}),B0=z.forwardRef(function(t,r){const{anchorEl:n,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:p,placement:h="bottom",popperOptions:d=q6,popperRef:m,style:g,transition:v=!1,slotProps:y={},slots:w={}}=t,E=ae(t,z6),[_,x]=z.useState(!0),b=()=>{x(!1)},C=()=>{x(!0)};if(!l&&!p&&(!v||_))return null;let S;if(i)S=i;else if(n){const D=ei(n);S=D&&Vi(D)?We(D).body:We(null).body}const O=!p&&l&&(!v||_)?"none":void 0,M=v?{in:p,onEnter:b,onExited:C}:void 0;return te.jsx(jn,{disablePortal:s,container:S,children:te.jsx(G6,u._extends({anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:r,open:v?!_:p,placement:h,popperOptions:d,popperRef:m,slotProps:y,slots:w},E,{style:u._extends({position:"fixed",top:0,left:0,display:O},g),TransitionProps:M,children:o}))})});process.env.NODE_ENV!=="production"&&(B0.propTypes={anchorEl:Pt(f.oneOfType([Ot,f.object,f.func]),e=>{if(e.open){const t=ei(e.anchorEl);if(t&&Vi(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
248
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||V6(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
249
+ `))}return null}),children:f.oneOfType([f.node,f.func]),container:f.oneOfType([Ot,f.func]),direction:f.oneOf(["ltr","rtl"]),disablePortal:f.bool,keepMounted:f.bool,modifiers:f.arrayOf(f.shape({data:f.object,effect:f.func,enabled:f.bool,fn:f.func,name:f.any,options:f.object,phase:f.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:f.arrayOf(f.string),requiresIfExists:f.arrayOf(f.string)})),open:f.bool.isRequired,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:f.shape({modifiers:f.array,onFirstUpdate:f.func,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:f.oneOf(["absolute","fixed"])}),popperRef:Jn,slotProps:f.shape({root:f.oneOfType([f.func,f.object])}),slots:f.shape({root:f.elementType}),transition:f.bool});const Y6=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],X6=le(B0,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fo=z.forwardRef(function(t,r){var n;const o=M0(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:p,disablePortal:h,keepMounted:d,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:w,transition:E,slots:_,slotProps:x}=i,b=ae(i,Y6),C=(n=_==null?void 0:_.root)!=null?n:l==null?void 0:l.Root,S=u._extends({anchorEl:a,container:p,disablePortal:h,keepMounted:d,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:w,transition:E},b);return te.jsx(X6,u._extends({as:s,direction:o==null?void 0:o.direction,slots:{root:C},slotProps:x!=null?x:c},S,{ref:r}))});process.env.NODE_ENV!=="production"&&(fo.propTypes={anchorEl:f.oneOfType([Ot,f.object,f.func]),children:f.oneOfType([f.node,f.func]),component:f.elementType,components:f.shape({Root:f.elementType}),componentsProps:f.shape({root:f.oneOfType([f.func,f.object])}),container:f.oneOfType([Ot,f.func]),disablePortal:f.bool,keepMounted:f.bool,modifiers:f.arrayOf(f.shape({data:f.object,effect:f.func,enabled:f.bool,fn:f.func,name:f.any,options:f.object,phase:f.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:f.arrayOf(f.string),requiresIfExists:f.arrayOf(f.string)})),open:f.bool.isRequired,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:f.shape({modifiers:f.array,onFirstUpdate:f.func,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:f.oneOf(["absolute","fixed"])}),popperRef:Jn,slotProps:f.shape({root:f.oneOfType([f.func,f.object])}),slots:f.shape({root:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),transition:f.bool});function K6(e){return we("MuiTooltip",e)}const jt=Ce("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Q6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Z6(e){return Math.round(e*1e5)/1e5}const J6=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${fe(i.split("-")[0])}`],arrow:["arrow"]};return De(a,K6,t)},e8=le(fo,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>u._extends({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${jt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${jt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${jt.arrow}`]:u._extends({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${jt.arrow}`]:u._extends({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),t8=le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${fe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>u._extends({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Pe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Z6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${jt.popper}[data-popper-placement*="left"] &`]:u._extends({transformOrigin:"right center"},t.isRtl?u._extends({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):u._extends({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${jt.popper}[data-popper-placement*="right"] &`]:u._extends({transformOrigin:"left center"},t.isRtl?u._extends({marginRight:"14px"},t.touch&&{marginRight:"24px"}):u._extends({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${jt.popper}[data-popper-placement*="top"] &`]:u._extends({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${jt.popper}[data-popper-placement*="bottom"] &`]:u._extends({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),r8=le("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Pe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Io=!1;const Xc=new eo;let _n={x:0,y:0};function Ao(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Ui=z.forwardRef(function(t,r){var n,o,i,a,s,l,c,p,h,d,m,g,v,y,w,E,_,x,b;const C=Re({props:t,name:"MuiTooltip"}),{arrow:S=!1,children:O,components:M={},componentsProps:D={},describeChild:R=!1,disableFocusListener:T=!1,disableHoverListener:I=!1,disableInteractive:A=!1,disableTouchListener:P=!1,enterDelay:N=100,enterNextDelay:H=0,enterTouchDelay:B=700,followCursor:L=!1,id:k,leaveDelay:$=0,leaveTouchDelay:V=1500,onClose:j,onOpen:W,open:U,placement:Y="bottom",PopperComponent:K,PopperProps:X={},slotProps:Q={},slots:ee={},title:re,TransitionComponent:G=Bn,TransitionProps:ne}=C,Z=ae(C,Q6),oe=z.isValidElement(O)?O:te.jsx("span",{children:O}),de=to(),pe=bs(),[ce,Ne]=z.useState(),[Te,$e]=z.useState(null),Le=z.useRef(!1),ye=A||L,be=sr(),Ue=sr(),He=sr(),Xe=sr(),[kt,ie]=As({controlled:U,default:!1,name:"Tooltip",state:"open"});let Be=kt;if(process.env.NODE_ENV!=="production"){const{current:ue}=z.useRef(U!==void 0);z.useEffect(()=>{ce&&ce.disabled&&!ue&&re!==""&&ce.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
250
+ `))},[re,ce,ue])}const Qt=bf(k),vt=z.useRef(),Zt=Rt(()=>{vt.current!==void 0&&(document.body.style.WebkitUserSelect=vt.current,vt.current=void 0),Xe.clear()});z.useEffect(()=>Zt,[Zt]);const mo=ue=>{Xc.clear(),Io=!0,ie(!0),W&&!Be&&W(ue)},It=Rt(ue=>{Xc.start(800+$,()=>{Io=!1}),ie(!1),j&&Be&&j(ue),be.start(de.transitions.duration.shortest,()=>{Le.current=!1})}),Jt=ue=>{Le.current&&ue.type!=="touchstart"||(ce&&ce.removeAttribute("title"),Ue.clear(),He.clear(),N||Io&&H?Ue.start(Io?H:N,()=>{mo(ue)}):mo(ue))},er=ue=>{Ue.clear(),He.start($,()=>{It(ue)})},{isFocusVisibleRef:on,onBlur:tr,onFocus:an,ref:go}=_f(),[,At]=z.useState(!1),sn=ue=>{tr(ue),on.current===!1&&(At(!1),er(ue))},ln=ue=>{ce||Ne(ue.currentTarget),an(ue),on.current===!0&&(At(!0),Jt(ue))},vr=ue=>{Le.current=!0;const Ke=oe.props;Ke.onTouchStart&&Ke.onTouchStart(ue)},vo=ue=>{vr(ue),He.clear(),be.clear(),Zt(),vt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Xe.start(B,()=>{document.body.style.WebkitUserSelect=vt.current,Jt(ue)})},yo=ue=>{oe.props.onTouchEnd&&oe.props.onTouchEnd(ue),Zt(),He.start(V,()=>{It(ue)})};z.useEffect(()=>{if(!Be)return;function ue(Ke){(Ke.key==="Escape"||Ke.key==="Esc")&&It(Ke)}return document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)}},[It,Be]);const Xi=Ve(oe.ref,go,Ne,r);!re&&re!==0&&(Be=!1);const Nt=z.useRef(),bo=ue=>{const Ke=oe.props;Ke.onMouseMove&&Ke.onMouseMove(ue),_n={x:ue.clientX,y:ue.clientY},Nt.current&&Nt.current.update()},rr={},yr=typeof re=="string";R?(rr.title=!Be&&yr&&!I?re:null,rr["aria-describedby"]=Be?Qt:null):(rr["aria-label"]=yr?re:null,rr["aria-labelledby"]=Be&&!yr?Qt:null);const je=u._extends({},rr,Z,oe.props,{className:se(Z.className,oe.props.className),onTouchStart:vr,ref:Xi},L?{onMouseMove:bo}:{});process.env.NODE_ENV!=="production"&&(je["data-mui-internal-clone-element"]=!0,z.useEffect(()=>{ce&&!ce.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
251
+ `))},[ce]));const $t={};P||(je.onTouchStart=vo,je.onTouchEnd=yo),I||(je.onMouseOver=Ao(Jt,je.onMouseOver),je.onMouseLeave=Ao(er,je.onMouseLeave),ye||($t.onMouseOver=Jt,$t.onMouseLeave=er)),T||(je.onFocus=Ao(ln,je.onFocus),je.onBlur=Ao(sn,je.onBlur),ye||($t.onFocus=ln,$t.onBlur=sn)),process.env.NODE_ENV!=="production"&&oe.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${oe.props.title}\` or the Tooltip component.`].join(`
252
+ `));const Ki=z.useMemo(()=>{var ue;let Ke=[{name:"arrow",enabled:!!Te,options:{element:Te,padding:4}}];return(ue=X.popperOptions)!=null&&ue.modifiers&&(Ke=Ke.concat(X.popperOptions.modifiers)),u._extends({},X.popperOptions,{modifiers:Ke})},[Te,X]),Lt=u._extends({},C,{isRtl:pe,arrow:S,disableInteractive:ye,placement:Y,PopperComponentProp:K,touch:Le.current}),un=J6(Lt),_o=(n=(o=ee.popper)!=null?o:M.Popper)!=null?n:e8,cn=(i=(a=(s=ee.transition)!=null?s:M.Transition)!=null?a:G)!=null?i:Bn,xo=(l=(c=ee.tooltip)!=null?c:M.Tooltip)!=null?l:t8,dn=(p=(h=ee.arrow)!=null?h:M.Arrow)!=null?p:r8,wo=wn(_o,u._extends({},X,(d=Q.popper)!=null?d:D.popper,{className:se(un.popper,X==null?void 0:X.className,(m=(g=Q.popper)!=null?g:D.popper)==null?void 0:m.className)}),Lt),fn=wn(cn,u._extends({},ne,(v=Q.transition)!=null?v:D.transition),Lt),om=wn(xo,u._extends({},(y=Q.tooltip)!=null?y:D.tooltip,{className:se(un.tooltip,(w=(E=Q.tooltip)!=null?E:D.tooltip)==null?void 0:w.className)}),Lt),im=wn(dn,u._extends({},(_=Q.arrow)!=null?_:D.arrow,{className:se(un.arrow,(x=(b=Q.arrow)!=null?b:D.arrow)==null?void 0:x.className)}),Lt);return te.jsxs(z.Fragment,{children:[z.cloneElement(oe,je),te.jsx(_o,u._extends({as:K!=null?K:fo,placement:Y,anchorEl:L?{getBoundingClientRect:()=>({top:_n.y,left:_n.x,right:_n.x,bottom:_n.y,width:0,height:0})}:ce,popperRef:Nt,open:ce?Be:!1,id:Qt,transition:!0},$t,wo,{popperOptions:Ki,children:({TransitionProps:ue})=>te.jsx(cn,u._extends({timeout:de.transitions.duration.shorter},ue,fn,{children:te.jsxs(xo,u._extends({},om,{children:[re,S?te.jsx(dn,u._extends({},im,{ref:$e})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(Ui.propTypes={arrow:f.bool,children:pr.isRequired,classes:f.object,className:f.string,components:f.shape({Arrow:f.elementType,Popper:f.elementType,Tooltip:f.elementType,Transition:f.elementType}),componentsProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),describeChild:f.bool,disableFocusListener:f.bool,disableHoverListener:f.bool,disableInteractive:f.bool,disableTouchListener:f.bool,enterDelay:f.number,enterNextDelay:f.number,enterTouchDelay:f.number,followCursor:f.bool,id:f.string,leaveDelay:f.number,leaveTouchDelay:f.number,onClose:f.func,onOpen:f.func,open:f.bool,placement:f.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:f.elementType,PopperProps:f.object,slotProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),slots:f.shape({arrow:f.elementType,popper:f.elementType,tooltip:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),title:f.node,TransitionComponent:f.elementType,TransitionProps:f.object});const n8=e=>u.isNumber$1(e)?"right":"left",Kc=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:o})=>{const i=e.length>n;return u.jsx("div",{className:Tn.tableCellContent,style:{maxWidth:`${t-r}px`},children:o?u.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):i?u.jsx(Ui,{title:e,children:u.jsx("div",{children:e})}):u.jsx("div",{children:e})})},o8=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:o,themeSettings:i,onSortUpdate:a})=>{var E,_,x;const s=o&&o.showFieldTypeIcon!==void 0?o.showFieldTypeIcon:!0,l=E0+(s?S0:0),c=(o==null?void 0:o.paddingVertical)||Lc,p=(o==null?void 0:o.paddingHorizontal)||Lc,h=((E=o==null?void 0:o.columns)==null?void 0:E.width)==="auto"?(n-p*2-1)/t.columns.length:void 0,d=F.useMemo(()=>t.columns.map(b=>({isHtml:"isHtml"in b&&!!b.isHtml,width:h})),[t.columns,h]),[m,g]=F.useState(((_=document.fonts)==null?void 0:_.status)==="loaded"),v=(x=i.typography)==null?void 0:x.fontFamily,y=F.useMemo(()=>Rk(e,s,d,v),[e,s,d,v,m]);F.useEffect(()=>{var b;(b=document.fonts)==null||b.ready.then(()=>{g(!0)}).catch(C=>{console.warn("Failed to observe font loading",C)})},[]);const w=F.useMemo(()=>e.columns.map((b,C)=>{const S=y[C],O=t.columns[C],M=Hc({isHeaderCell:!0,themeSettings:i,customStyles:o});return S?u.jsx(Do.Column,{maxWidth:es,minWidth:es,allowCellsRecycling:!0,width:S,header:u.jsx(Do.Cell,{className:zn(Tn.tableHeader),style:M,children:u.jsx(xk,{column:b,onClick:a,isSelected:!!Math.abs(b.direction),showFieldTypeIcon:s,sortIcon:(o==null?void 0:o.sortIcon)||"standard",children:Kc({displayValue:u.getDataOptionTitle(O),width:S,padding:l,ellipsizedLength:Ek})})}),cell:T=>{var I=T,{rowIndex:D}=I,R=br(I,["rowIndex"]);return u.jsx(Do.Cell,J(q({className:zn(Tn.tableCell),style:Hc({colIndex:C,rowIndex:D,themeSettings:i,customStyles:o})},R),{children:Kc({displayValue:e.rows[D][C].displayValue,width:S,padding:R0,ellipsizedLength:Sk,isHtml:"isHtml"in O&&O.isHtml})}))},align:n8(b.type)},`col${C}`):null}),[e,y,i,o,a,s,t,l]);return F.useMemo(()=>u.jsx("div",{className:Tn.tableWrapper,style:{padding:`${c}px ${p}px`},children:u.jsx(Do.Table,{className:Tn.table,rowHeight:(o==null?void 0:o.rowHeight)||Ck,rowsCount:e.rows.length,width:n-p*2,height:r-c*2,headerHeight:(o==null?void 0:o.headerHeight)||wk,children:w})}),[w,o,e,r,p,c,n])},i8="_component_1rw9b_1",a8={component:i8},s8=(e,t)=>{if(!e.columns.some(a=>u.isNumber$1(a.type)))return e;const r=e.columns,o=e.rows.map(a=>a.map((s,l)=>{const c=r[l].type,p=u.getCompleteNumberFormatConfig(t.columns[l].numberFormatConfig);if(u.isNumber$1(c)){const h=u.createCompareValue(s.displayValue,c);return{displayValue:u.applyFormatPlainText(p,h.value),compareValue:h}}else return s}));return{columns:r,rows:o}},l8=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:o,width:i=400,height:a=500})=>{const s=F.useRef(null),l=F.useRef(e),c=F.useMemo(()=>s8(e,t),[e,t]);F.useLayoutEffect(()=>{l.current=e},[e]);const p=F.useMemo(()=>q({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return u.jsx("div",{className:a8.component,ref:s,children:u.jsx(o8,{dataTable:c,dataOptions:t,onSortUpdate:n,height:a,width:i,customStyles:p,themeSettings:o})})},u8=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}});var c8=Object.prototype,d8=c8.hasOwnProperty;function f8(e,t){return e!=null&&d8.call(e,t)}function p8(e,t){return e!=null&&u.hasPath(e,t,f8)}function h8(e,t){for(const r of t)p8(e,r)&&console.warn(`Prop '${r}' has been deprecated. Please refer to the documentation at https://sisense.dev/guides/sdk/ for the updated prop and use that instead.`)}const m8=e=>(h8(e,["headersColor","alternatingRowsColor","alternatingColumnsColor"]),{paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:q(q({},e.headersColor?{color:{enabled:e.headersColor}}:null),e.header),rows:q(q({},e.alternatingRowsColor?{alternatingColor:{enabled:e.alternatingRowsColor}}:null),e.rows),columns:q(q({},e.alternatingColumnsColor?{alternatingColor:{enabled:e.alternatingColumnsColor}}:null),e.columns)}),j0=25,z0=10,W0=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n,onDataReady:o})=>{const{rowsPerPage:i=j0,width:a,height:s}=r,{themeSettings:l}=u.useThemeContext(),[c,p]=F.useState(0),{filters:h,relations:d}=u.getFilterListAndRelationsJaql(n),[m,g]=F.useState(1),v=F.useRef(null),y=F.useMemo(()=>Xf(t),[t]),w=F.useMemo(()=>js(y.columns.filter(u.isMeasureColumn).map(u.translateColumnToMeasure)),[y]),E=F.useMemo(()=>m8(r),[r]),[_,x]=F.useState(y),[b,C]=F.useState(e),[S,O]=g3({dataSet:b,dataOptions:_,filters:h,filterRelations:d,count:i*z0,offset:c}),M=F.useMemo(()=>{if(S&&o){const P=o(S);if(!Jf(P))throw new u.TranslatableError("errors.incorrectOnDataReadyHandler");return P}return S},[S]),D=x3({data:M,innerDataOptions:O,dataColumnNamesMapping:w,needToAggregate:!Wt(b)});F.useEffect(()=>{x(y),C(e),g(1),p(0)},[e,y]);const R=F.useCallback(P=>{if(!S)return;Math.floor(S.rows.length/i)===P&&p(S.rows.length),g(P)},[S,i]),T=F.useCallback(P=>{g(1),p(0),_&&x(b3(_,P))},[_]),I=F.useMemo(()=>{if(!D||Wt(b))return D;const P=D.columns.find(N=>N.direction!==0);return P?u.orderBy(D,[P]):D},[D,b]),A=F.useMemo(()=>I?{columns:I.columns,rows:I.rows.slice((m-1)*i,m*i)}:void 0,[I,m,i]);return O?u.jsx(Ei,{defaultSize:Bs("table"),size:{width:a,height:s},children:P=>{if(!D||!A)return u.jsx(si,{themeSettings:l});if(u.isDataTableEmpty(D))return u.jsx(Hs,{iconType:"table"});const N=Math.ceil(D.rows.length/i);return u.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:l.chart.backgroundColor},"aria-label":"table-root",children:[u.jsx(l8,{dataTable:A,dataOptions:O,designOptions:E,themeSettings:l,width:P.width,height:P.height-32,onSortUpdate:T}),u.jsx(rp,{ref:v,page:m,count:N,onChange:(B,L)=>R(L),sx:u8(l)})]})}}):null},V0=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},g8=F.createContext(null),ba={didCatch:!1,error:null};class U0 extends F.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ba}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:i,reason:"imperative-api"}),this.setState(ba)}}componentDidCatch(t,r){var n,o;(n=(o=this.props).onError)===null||n===void 0||n.call(o,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:o}=this.props;if(n&&r.error!==null&&v8(t.resetKeys,o)){var i,a;(i=(a=this.props).onReset)===null||i===void 0||i.call(a,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(ba)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=t;if(i){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=F.createElement(n,l);else if(o===null||F.isValidElement(o))s=o;else throw a}return F.createElement(g8.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function v8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const q0=F.createContext(void 0),y8=({children:e})=>{const[t,r]=F.useState([]),[n,o]=F.useState([]),i=()=>r([]),a=()=>o([]);return u.jsx(q0.Provider,{value:{errors:t,warnings:n,clearError:i,clearWarning:a,setErrors:r,setWarnings:o},children:e})},G0=()=>{const e=F.useContext(q0);return e||{errors:[],warnings:[],setErrors:()=>{console.warn("setErrors called, but context is not available.")},setWarnings:()=>{console.warn("setWarnings called, but context is not available.")},clearError:()=>{console.warn("clearError called, but context is not available.")},clearWarning:()=>{console.warn("clearWarning called, but context is not available.")}}};function Sl(e,t,r){const n=u.usePrevious(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(i=>!u.isEqual(n[i],e[i])):!u.isEqual(n,e))?!0:r?r(e,n):!1}const b8=e=>{const[t,r]=F.useState(0),{setErrors:n,errors:o}=G0(),i=Sl(e,["dataOptions","filters"]);if(F.useEffect(()=>{i&&o.length>0&&(r(t+1),n([]))},[e.dataOptions,e.filters]),!Wt(e.dataSet))throw new u.TranslatableError("errors.undefinedDataSource");const a=u.cloneDeep(e.dataOptions),s=u.extractTrendMeasures(a);a.value.push(...s);const l=u.extractForecastMeasures(a);a.value.push(...l);const c=F.useCallback(({error:p})=>(console.debug("Unexpected error occurred when rendering advanced chart:",p),u.jsx(Va,q({},e))),[e,o]);return o.length===2?null:u.jsx(U0,{fallbackRender:c,onError:p=>{n(h=>[...h,p.message])},children:u.jsx(Va,J(q({},e),{dataOptions:a}))},`errorboundary_${t}`)},Y0=ro({componentName:"Chart",shouldSkipSisenseContextWaiting:V0,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(_8(e))return u.jsx(W0,q({},e));if(x8(e))return u.jsx(b8,q({},e));if(X0(e))return u.jsx(Va,q({},e));throw new u.TranslatableError("errors.chartInvalidProps")});function _8(e){return e.chartType==="table"&&"columns"in e.dataOptions}function X0(e){return e.chartType!=="table"}function x8(e){return!X0(e)||!u.isCartesian(e.chartType)?!1:e.dataOptions.value.some(r=>(r==null?void 0:r.forecast)!==void 0||(r==null?void 0:r.trend)!==void 0)}var w8=function(e){return e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e}({}),ns=function(e){return e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e}(ns||{}),os=function(e){return e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e}(os||{}),K0=function(e){return e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e}({});const C8=(e,t)=>{const r=u.get(e,"shadow",t.widget.shadow),n=u.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in ns&&n in os){const o=ns[`${r}`];return`0px ${os[`${n}`]} rgba(9, 9, 10, ${o})`}return"none"};function T8(e){return we("MuiCard",e)}Ce("MuiCard",["root"]);const E8=["className","raised"],S8=e=>{const{classes:t}=e;return De({root:["root"]},T8,t)},R8=le(_i,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Q0=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=n,a=ae(n,E8),s=u._extends({},n,{raised:i}),l=S8(s);return te.jsx(R8,u._extends({className:se(l.root,o),elevation:i?8:void 0,ref:r,ownerState:s},a))});process.env.NODE_ENV!=="production"&&(Q0.propTypes={children:f.node,classes:f.object,className:f.string,raised:Pt(f.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function O8(e){return we("MuiCardContent",e)}Ce("MuiCardContent",["root"]);const M8=["className","component"],P8=e=>{const{classes:t}=e;return De({root:["root"]},O8,t)},D8=le("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Z0=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=n,a=ae(n,M8),s=u._extends({},n,{component:i}),l=P8(s);return te.jsx(D8,u._extends({as:i,className:se(l.root,o),ownerState:s,ref:r},a))});process.env.NODE_ENV!=="production"&&(Z0.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function k8(e){return we("MuiIconButton",e)}const I8=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),A8=["edge","children","className","color","disabled","disableFocusRipple","size"],N8=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${fe(n)}`,o&&`edge${fe(o)}`,`size${fe(i)}`]};return De(a,k8,t)},$8=le(hr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${fe(r.color)}`],r.edge&&t[`edge${fe(r.edge)}`],t[`size${fe(r.size)}`]]}})(({theme:e,ownerState:t})=>u._extends({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return u._extends({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&u._extends({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":u._extends({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${I8.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),jr=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:p="medium"}=n,h=ae(n,A8),d=u._extends({},n,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:p}),m=N8(d);return te.jsx($8,u._extends({className:se(m.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:r},h,{ownerState:d,children:i}))});process.env.NODE_ENV!=="production"&&(jr.propTypes={children:Pt(f.node,e=>z.Children.toArray(e.children).some(r=>z.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
253
+ `)):null),classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),f.string]),disabled:f.bool,disableFocusRipple:f.bool,disableRipple:f.bool,edge:f.oneOf(["end","start",!1]),size:f.oneOfType([f.oneOf(["small","medium","large"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function L8({fill:e="rgba(38, 46, 61, 0.67)"}){return u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:u.jsx("path",{fill:e,d:"M11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zM13 8.878c0-1.27-.499-1.896-1.496-1.878C10.501 7.03 10 7.68 10 8.95c0 .737.17 1.647.51 2.731l.318.98c.081.245.14.413.175.503.197.533.376.811.537.835.15.018.314-.248.493-.8.083-.257.161-.512.233-.763.071-.252.146-.503.224-.755.34-1.12.51-2.054.51-2.803zM11.5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})})}const F8=u.newStyled(xi,{target:"e1g12j10",label:"StyledMuiPopover"})(".MuiPaper-root.MuiPopover-paper:not([style*='top']),.MuiPaper-root.MuiPopover-paper:not([style*='left']){opacity:0 !important;}"),J0=e=>{const s=e,{children:t,open:r,id:n,position:o,onClose:i}=s,a=br(s,["children","open","id","position","onClose"]);return u.jsx(F8,J(q({id:n,className:"csdk-accessible",anchorEl:o==null?void 0:o.anchorEl,anchorOrigin:o==null?void 0:o.anchorOrigin,transformOrigin:o==null?void 0:o.contentOrigin,transitionDuration:0,open:r,slotProps:{paper:{sx:{display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"}}},onClose:i},a),{children:t}))};function H8({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:o}){var w,E,_;const[i,a]=F.useState(null),{themeSettings:s}=u.useThemeContext(),{typography:{primaryTextColor:l,secondaryTextColor:c,fontFamily:p}}=s,{t:h}=u.useTranslation(),d=x=>{a(x.currentTarget)},m=()=>{a(null)},g=F.useMemo(()=>e?u.jsx(Ze,{variant:"body2",style:{color:l,fontFamily:p,fontSize:13},children:e}):null,[e,l,p]),v=F.useMemo(()=>r.length===0?null:r.map(x=>u.jsxs(u.Fragment,{children:[u.jsx($r,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),u.jsxs("div",{className:"csdk-flex",children:[u.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:u.jsx(L8,{fill:"#fa5656"})}),u.jsx(Ze,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:p,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:x})]})]})),[r,c,p]),y=F.useMemo(()=>t?u.jsxs(u.Fragment,{children:[u.jsx($r,{sx:{my:"8px",borderColor:c,opacity:.3}}),u.jsx(Ze,{variant:"body2",style:{color:c,fontFamily:p,fontSize:13},children:t})]}):null,[t,c,p]);return u.jsxs(u.Fragment,{children:[u.jsx(Ui,{title:h("widgetHeader.info.tooltip"),style:{color:(w=s.chart)==null?void 0:w.textColor,fontFamily:(E=s.typography)==null?void 0:E.fontFamily},children:u.jsx(jr,{onClick:d,sx:{p:0},children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:u.jsx("path",{fill:(n==null?void 0:n.titleTextColor)||s.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),u.jsx(J0,{open:!!i,position:i?{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:m,children:u.jsxs(Q0,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[u.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:u.getSlightlyDifferentColor(s.general.backgroundColor)},children:[u.jsx(Ze,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily},children:h("widgetHeader.info.details")}),u.jsx(jr,{onClick:o,sx:{p:0},children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:u.jsx("path",{fill:(_=s.chart)==null?void 0:_.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),u.jsx($r,{sx:{borderColor:s.typography.secondaryTextColor,opacity:.3}}),u.jsxs(Z0,{style:{backgroundColor:s.general.backgroundColor,padding:12},children:[g,v,y]})]})})]})}const B8=({title:e,description:t,errorMessages:r=[],warningMessages:n=[],dataSetName:o,styleOptions:i,onRefresh:a})=>{var c;const{themeSettings:s}=u.useThemeContext(),l=()=>{var h;const p=u.jsx(u.Fragment,{children:u.jsx(H8,{title:o,description:t,styleOptions:i,errorMessages:r,warningMessages:n,onRefresh:a})});return i!=null&&i.renderToolbar?(h=i==null?void 0:i.renderToolbar)==null?void 0:h.call(i,a,p):p};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(i==null?void 0:i.backgroundColor)||s.widget.header.backgroundColor},children:[u.jsx("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:j8((i==null?void 0:i.titleAlignment)||s.widget.header.titleAlignment),color:(i==null?void 0:i.titleTextColor)||s.widget.header.titleTextColor,fontFamily:(c=s.typography)==null?void 0:c.fontFamily,fontSize:15},children:e||""}),u.jsx("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:l()})]}),u.get(i,"dividerLine",s.widget.header.dividerLine)&&u.jsx($r,{style:{backgroundColor:(i==null?void 0:i.dividerLineColor)||s.widget.header.dividerLineColor||"#e6e6e6"}})]})};function j8(e){return e.toLowerCase()}const eh=e=>u.jsx(y8,{children:u.jsx(z8,q({},e))}),z8=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:o,bottomSlot:i,children:a,onRefresh:s=()=>{}})=>{var h,d,m;const{errors:l,warnings:c}=G0(),{themeSettings:p}=u.useThemeContext();return u.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden csdk-accessible",children:u.jsx("div",{className:"csdk-h-full",style:{padding:K0[u.get(t,"spaceAround",p.widget.spaceAround)]||"0px"},children:u.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(t==null?void 0:t.backgroundColor)||"unset",borderWidth:u.get(t,"border",p.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||p.widget.borderColor,borderRadius:w8[(t==null?void 0:t.cornerRadius)||p.widget.cornerRadius]||0,boxShadow:C8(t,p),display:"flex",flexDirection:"column"},children:[!((h=t==null?void 0:t.header)!=null&&h.hidden)&&u.jsx(B8,{title:r,description:n,dataSetName:e,errorMessages:l,warningMessages:c,styleOptions:t==null?void 0:t.header,onRefresh:s}),o,u.jsx(Pf,{theme:{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((d=p.chart)==null?void 0:d.backgroundColor)}},children:u.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(t==null?void 0:t.backgroundColor)||((m=p.chart)==null?void 0:m.backgroundColor)},children:a})}),i]})})})};var W8="[object String]";function th(e){return typeof e=="string"||!u.isArray(e)&&u.isObjectLike(e)&&u.baseGetTag(e)==W8}const V8=e=>{const t=U8(e);return t.config.disabled=!e.config.disabled,t},U8=e=>{const t=u.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function q8(e,t,r){const n={guid:t,excludeMembers:!1,backgroundFilter:r};return u.members(e,[],n)}function qi(e){if(!u.isMembersFilter(e))throw new u.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return q8(t,r,n)}function Rl(e){return"members"in e&&e.members.length===0}function ct(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function rh(e,t){return e===void 0&&t===void 0?!1:[e,t].some(r=>r===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.some((r,n)=>!u.isEqualWith(r,t[n],nh))}function Ol(e,t){return ct(e.attribute,t.attribute)}function nh(e,t){const r=u.flow(G8,Y8);return u.isEqual(r(e),r(t))}function G8(e){return J(q({},e),{name:""})}function Y8(e){return J(q({},e),{config:J(q({},e.config),{guid:""})})}function X8(e,t,r,n){if(r===void 0&&n===void 0)return!1;if([r,n].some(i=>i===void 0))return!0;function o(i,a){const s=i,l=i,c=a,p=a;return i===void 0&&a===void 0?!0:[i,a].some(h=>h===void 0)||s.operator!==c.operator?!1:l.instanceid&&p.instanceid?!rh(e==null?void 0:e.filter(h=>h.config.guid===l.instanceid),t==null?void 0:t.filter(h=>h.config.guid===p.instanceid)):o(s.left,c.left)&&o(s.right,c.right)||o(s.left,c.right)&&o(s.right,c.left)}return!o(r,n)}const oh="sdkHookInit",K8=(e,t,r,n)=>{if(!r)return;Ed(oh,{packageName:t,packageVersion:"1.33.0",hookName:e},r.httpClient).finally(n)};function Q8(e){const{tracking:t,app:r}=u.useSisenseContext(),{trackEvent:n}=ms(),o=F.useRef(!1);F.useEffect(()=>{if(!(!t||!r)&&!o.current){const i={packageName:t.packageName||"sdk-ui",packageVersion:"1.33.0",hookName:e};n(oh,i,!t.enabled).finally(()=>o.current=!0)}},[t,e,n,r])}const ih=e=>t=>(...r)=>(Q8(e),t(...r));function is(e,t){switch(t.type){case"loading":return Z8(e);case"success":return J8(t.data);case"error":return e7(t.error)}}function Z8(e){return e.status==="loading"?e:J(q({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function J8(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function e7(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}function ah({enabled:e},t){const r=F.useRef(!1);return F.useCallback((n,o=!1)=>{const i=e===!1||!n,a=r.current;return r.current=i,!i&&(a||t||o)},[e,t])}var _a=function(){return u.root.Date.now()},t7="Expected a function",r7=Math.max,n7=Math.min;function o7(e,t,r){var n,o,i,a,s,l,c=0,p=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(t7);t=u.toNumber(t)||0,u.isObject(r)&&(p=!!r.leading,h="maxWait"in r,i=h?r7(u.toNumber(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function m(C){var S=n,O=o;return n=o=void 0,c=C,a=e.apply(O,S),a}function g(C){return c=C,s=setTimeout(w,t),p?m(C):a}function v(C){var S=C-l,O=C-c,M=t-S;return h?n7(M,i-O):M}function y(C){var S=C-l,O=C-c;return l===void 0||S>=t||S<0||h&&O>=i}function w(){var C=_a();if(y(C))return E(C);s=setTimeout(w,v(C))}function E(C){return s=void 0,d&&n?m(C):(n=o=void 0,a)}function _(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function x(){return s===void 0?a:E(_a())}function b(){var C=_a(),S=y(C);if(n=arguments,o=this,l=C,S){if(s===void 0)return g(l);if(h)return clearTimeout(s),s=setTimeout(w,t),m(l)}return s===void 0&&(s=setTimeout(w,t)),a}return b.cancel=_,b.flush=x,b}function Ml(e,{onLocalStateChange:t,syncCompareFn:r=u.isEqual}={}){const[n,o]=F.useState(e),i=F.useRef(e);F.useEffect(()=>{r(i.current,e)||o(e),i.current=e},[e,r]);const a=F.useCallback(s=>{o(l=>{const c=u.isFunction(s)?s(l):s;return t==null||t(c),c})},[t]);return[n,a]}function i7({chartType:e,dataOptions:t,enabled:r}){const[n,o]=F.useState([]),i=F.useMemo(()=>{var d;const h=u.isCartesian(e)&&((d=t.category)==null?void 0:d.length)===1||u.isScatter(e);return r&&h},[r,e,t]),a=F.useMemo(()=>{if(n.length===0)return h=>J(q({},h),{series:h.series.map(d=>J(q({},d),{data:d.data.map(m=>J(q({},m),{selected:!1}))}))});if(u.isScatter(e))return h=>J(q({},h),{series:h.series.map(d=>J(q({},d),{data:d.data.map(m=>J(q({},m),{selected:!n.some(g=>{var v,y;return g.x===m.x&&g.y===m.y&&g.size===m.z&&g.breakByPoint===((v=m.custom)==null?void 0:v.maskedBreakByPoint)&&g.breakByColor===((y=m.custom)==null?void 0:y.maskedBreakByColor)})}))}))});{const h=n.reduce((d,{categoryValue:m})=>(m&&(d[`${m}`]=!0),d),{});return d=>J(q({},d),{series:d.series.map(m=>J(q({},m),{data:m.data.map(g=>{var v,y;return h[(y=(v=g.custom)==null?void 0:v.xValue)==null?void 0:y[0]]?g:J(q({},g),{selected:!0})})}))})}},[n,e]),s=F.useMemo(()=>h=>{var d;return J(q({},h),{chart:J(q({},h.chart),{events:J(q({},(d=h.chart)==null?void 0:d.events),{click:()=>{o([])}})})})},[]),l=F.useCallback(h=>(i&&(h=a(h),h=s(h)),h),[a,s,i]),c=F.useCallback(h=>{i&&o(h)},[i]),p=F.useCallback(h=>{i&&o([h])},[i]);return{onBeforeRender:l,onDataPointsSelected:c,onDataPointClick:p}}const sh=()=>{const e=li();if(!e)throw new u.TranslatableError("errors.missingMenuRoot");const{openMenu:t,closeMenu:r}=e;return{openMenu:t,closeMenu:r}};function as(e){return e&&e.length?Ws(e):[]}function a7(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function s7(e,t){return function(r,n){if(r==null)return r;if(!u.isArrayLike(r))return e(r,n);for(var o=r.length,i=-1,a=Object(r);++i<o&&n(a[i],i,a)!==!1;);return r}}var l7=s7(u.baseForOwn);function u7(e,t,r,n){return l7(e,function(o,i,a){t(n,o,r(o),a)}),n}function lh(e,t){return function(r,n){var o=u.isArray(r)?a7:u7,i=t?t():{};return o(r,e,u.baseIteratee(n),i)}}var po=lh(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});const c7=Ur(te.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),d7=["slots","slotProps"],f7=le(hr)(({theme:e})=>u._extends({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":u._extends({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":u._extends({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:au(e.palette.grey[200],.12)}:{backgroundColor:au(e.palette.grey[600],.12)})})),p7=le(c7)({width:24,height:16});function uh(e){const{slots:t={},slotProps:r={}}=e,n=ae(e,d7),o=e;return te.jsx("li",{children:te.jsx(f7,u._extends({focusRipple:!0},n,{ownerState:o,children:te.jsx(p7,u._extends({as:t.CollapsedIcon,ownerState:o},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(uh.propTypes={slotProps:f.shape({collapsedIcon:f.oneOfType([f.func,f.object])}),slots:f.shape({CollapsedIcon:f.elementType}),sx:f.object});function h7(e){return we("MuiBreadcrumbs",e)}const m7=Ce("MuiBreadcrumbs",["root","ol","li","separator"]),g7=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],v7=e=>{const{classes:t}=e;return De({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},h7,t)},y7=le(Ze,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${m7.li}`]:t.li},t.root]})({}),b7=le("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),_7=le("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function x7(e,t,r,n){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,te.jsx(_7,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${a}`)):o.push(i),o),[])}const ch=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:h=1,maxItems:d=8,separator:m="/"}=n,g=ae(n,g7),[v,y]=z.useState(!1),w=u._extends({},n,{component:a,expanded:v,expandText:c,itemsAfterCollapse:p,itemsBeforeCollapse:h,maxItems:d,separator:m}),E=v7(w),_=Vt({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:w}),x=z.useRef(null),b=S=>{const O=()=>{y(!0);const M=x.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return h+p>=S.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${h}} >= maxItems={${d}}`].join(`
254
+ `)),S):[...S.slice(0,h),te.jsx(uh,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:_},onClick:O},"ellipsis"),...S.slice(S.length-p,S.length)]},C=z.Children.toArray(o).filter(S=>(process.env.NODE_ENV!=="production"&&Nn.isFragment(S)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
255
+ `)),z.isValidElement(S))).map((S,O)=>te.jsx("li",{className:E.li,children:S},`child-${O}`));return te.jsx(y7,u._extends({ref:r,component:a,color:"text.secondary",className:se(E.root,i),ownerState:w},g,{children:te.jsx(b7,{className:E.ol,ref:x,ownerState:w,children:x7(v||d&&C.length<=d?C:b(C),E.separator,m,w)})}))});process.env.NODE_ENV!=="production"&&(ch.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,expandText:f.string,itemsAfterCollapse:bt,itemsBeforeCollapse:bt,maxItems:bt,separator:f.node,slotProps:f.shape({collapsedIcon:f.oneOfType([f.func,f.object])}),slots:f.shape({CollapsedIcon:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function w7(e){return we("MuiButton",e)}const No=Ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),dh=z.createContext({});process.env.NODE_ENV!=="production"&&(dh.displayName="ButtonGroupContext");const fh=z.createContext(void 0);process.env.NODE_ENV!=="production"&&(fh.displayName="ButtonGroupButtonContext");const C7=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],T7=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,`color${fe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${fe(o)}`],endIcon:["icon","endIcon",`iconSize${fe(o)}`]},l=De(s,w7,a);return u._extends({},a,l)},ph=e=>u._extends({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),E7=le(hr,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${fe(r.color)}`],t[`size${fe(r.size)}`],t[`${r.variant}Size${fe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return u._extends({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":u._extends({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":u._extends({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${No.focusVisible}`]:u._extends({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${No.disabled}`]:u._extends({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Pe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${No.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${No.disabled}`]:{boxShadow:"none"}}),S7=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${fe(r.size)}`]]}})(({ownerState:e})=>u._extends({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},ph(e))),R7=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${fe(r.size)}`]]}})(({ownerState:e})=>u._extends({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},ph(e))),Un=z.forwardRef(function(t,r){const n=z.useContext(dh),o=z.useContext(fh),i=xf(n,t),a=Re({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:p,disabled:h=!1,disableElevation:d=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:y=!1,size:w="medium",startIcon:E,type:_,variant:x="text"}=a,b=ae(a,C7),C=u._extends({},a,{color:l,component:c,disabled:h,disableElevation:d,disableFocusRipple:m,fullWidth:y,size:w,type:_,variant:x}),S=T7(C),O=E&&te.jsx(S7,{className:S.startIcon,ownerState:C,children:E}),M=g&&te.jsx(R7,{className:S.endIcon,ownerState:C,children:g}),D=o||"";return te.jsxs(E7,u._extends({ownerState:C,className:se(n.className,S.root,p,D),component:c,disabled:h,focusRipple:!m,focusVisibleClassName:se(S.focusVisible,v),ref:r,type:_},b,{classes:S,children:[O,s,M]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","primary","secondary","success","error","info","warning"]),f.string]),component:f.elementType,disabled:f.bool,disableElevation:f.bool,disableFocusRipple:f.bool,disableRipple:f.bool,endIcon:f.node,focusVisibleClassName:f.string,fullWidth:f.bool,href:f.string,size:f.oneOfType([f.oneOf(["small","medium","large"]),f.string]),startIcon:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.oneOfType([f.oneOf(["button","reset","submit"]),f.string]),variant:f.oneOfType([f.oneOf(["contained","outlined","text"]),f.string])});const O7=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{const{t:o}=u.useTranslation(),i=t.name,a=u.newStyled(Un,{target:"e1olvz1k0",label:"StyledCancelButton"})("&&{background-color:",n.activeDrillBackgroundColor,";color:",n.primaryButtonTextColor,";border-radius:100%;border:2px solid white;min-width:39px;width:39px;height:39px;z-index:10;padding:7px;cursor:pointer;text-transform:none;margin-right:-5px;&:hover{background-color:",n.activeDrillHoverBackgroundColor,";color:",n.primaryTextColor,";}}"),s=u.newStyled("svg",{target:"e1olvz1k1",label:"Icon"})("width:22px;height:22px;fill:#9ea2ab;"),l=()=>u.jsx(a,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:u.jsx(s,{width:22,height:22,viewBox:"0 0 24 24",children:u.jsx("path",{fill:"#9EA2AB",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})})}),c=u.newStyled(Un,{target:"e1olvz1k2",label:"StyledCurrentDrillButton"})("&&{position:relative;font-family:",h=>h.theme.fontFamily,";border-radius:0;border:1px solid ",wt,";background-color:",h=>h.theme.chartBackgroundColor,";border-right:none;border-left:none;color:",h=>h.theme.secondaryTextColor,";padding-right:1.25rem;padding-left:1.875rem;height:1.64rem;font-size:13px;transition:background-color 0.2s,border-color 0.2s,color 0.2s;text-transform:none;cursor:auto;pointer-events:none;white-space:nowrap;&:hover{background-color:",h=>h.theme.chartBackgroundColor,";border:1px solid ",wt,";border-right:none;border-left:none;}}");return{CancelButton:l,CurrentDrillButton:()=>u.jsxs(c,{theme:n,children:[i," (",o("drilldown.breadcrumbsAllSuffix"),")",u.jsx("span",{className:"flex items-center justify-between",children:u.jsx("span",{className:"csdk-absolute csdk-right-[0px] csdk-top-[3px] csdk-h-[18px] csdk-w-[18px] csdk-transform csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:"transparent",borderTop:`1px solid ${wt}`,borderRight:`1px solid ${wt}`}})})]})}},M7={modifiers:[{name:"offset",options:{offset:[0,12]}}]},P7=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>{const{t:o}=u.useTranslation();return u.jsxs("div",{className:"csdk-w-50 csdk-px-[12px] csdk-shadow-md csdk-shadow-gray-500 csdk-rounded-md csdk-bg-white",style:{backgroundColor:e.chartBackgroundColor,color:e.primaryTextColor},children:[u.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.members")}),u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),u.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.table")}),u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),u.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.column")}),u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]})},D7=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[o,i]=n?n[1].split("."):["",""],a=!!e;return u.jsx(fo,{open:a,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:M7,children:e&&u.jsx(P7,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:o,currentColumn:i})})},k7=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:o,primaryButtonTextColor:i},chart:{backgroundColor:a}}}=u.useThemeContext(),s=u.scaleBrightness(a,-.02),l=u.scaleBrightness(s,-.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:o,primaryButtonTextColor:i,chartBackgroundColor:a,activeDrillBackgroundColor:s,activeDrillHoverBackgroundColor:l}},I7=u.newStyled(jr,{target:"egcu0nk0",label:"StyledPrevButton"})("&&{position:absolute;left:0;right:auto;margin:auto;bottom:0;top:0;z-index:10;background:linear-gradient(to right,white 30%,rgba(255,255,255,0) 100%);display:inline-flex;span[aria-label='prev-item']{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:5px solid #000;color:transparent;opacity:0.3;&:hover{opacity:0.8;}}}"),A7=u.newStyled(jr,{target:"egcu0nk1",label:"StyledNextButton"})("&&{position:absolute;left:auto;right:0;margin:auto;bottom:0;top:0;z-index:10;background:linear-gradient(to right,rgba(255,255,255,0) 0,white 70%);display:inline-flex;span[aria-label='next-item']{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:5px solid #000;color:transparent;opacity:0.3;&:hover{opacity:0.8;}}}"),N7=({currentDimension:e,children:t})=>{const{t:r}=u.useTranslation(),n=F.useRef(null),[o,i]=F.useState(0),[a,s]=F.useState(0),[l,c]=F.useState(0),p=()=>{var g;return(g=n.current)==null?void 0:g.querySelector("ol")};F.useEffect(()=>{const g=p();if(g){const v=g.clientWidth,y=g.scrollWidth,w=g.scrollLeft;i(v),s(y),c(w)}},[e]),F.useEffect(()=>{const g=p();function v(){if(g){const E=g.clientWidth;i(E)}}function y(){if(g){const E=g.scrollLeft;c(E)}}const w=new ResizeObserver(v);return g?(w.observe(g),g.addEventListener("scroll",y),()=>{w.disconnect(),g.removeEventListener("scroll",y)}):()=>{}},[]);const h=g=>{const y="smooth",w=p();w&&w.scrollBy({left:g==="right"?200:-200,behavior:y})},d=l!=0,m=Math.floor(a-l)>o;return u.jsxs("div",{style:{position:"relative"},children:[d&&u.jsx(I7,{onClick:()=>h("left"),children:u.jsx("span",{"aria-label":"prev-item",children:r("drilldown.breadcrumbsPrev")})}),m&&u.jsx(A7,{onClick:()=>h("right"),children:u.jsx("span",{"aria-label":"next-item",children:r("drilldown.breadcrumbsNext")})}),u.jsx("div",{ref:n,children:t})]})},wt="#F2F2F2",$7=u.newStyled(Un,{target:"ex0ybhj0",label:"StyledDrillButton"})("&&{font-family:",({theme:e})=>e.fontFamily,";position:relative;border-radius:0;border:1px solid ",wt,";border-right:none;color:",({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor,";background-color:",({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor,";padding-right:1.25rem;padding-left:1.875rem;height:1.64rem;font-size:13px;text-transform:none;transition:background-color 0.2s,border-color 0.2s,color 0.2s;white-space:nowrap;cursor:",({active:e})=>e==="true"?"pointer":"auto",";margin-right:",({active:e})=>e==="true"?"5px":"0px",";&:hover{background-color:",({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor,";border:1px solid ",wt,";border-right:none;}.MuiTouchRipple-root{display:none;}}"),L7=u.newStyled(ch,{target:"ex0ybhj1",label:"StyledBreadcrumbs"})(".MuiBreadcrumbs-ol{flex-wrap:nowrap;overflow:hidden;}.MuiBreadcrumbs-separator{display:none;}"),F7=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:o,themeProps:i,popperParams:a,index:s})=>u.jsx($7,{theme:i,active:e.toString(),index:s,onMouseEnter:r,onMouseLeave:n,onClick:o,children:u.jsxs("span",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?u.jsx("span",{className:"csdk-absolute csdk-right-0 csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:t===(a==null?void 0:a.filterDisplayValues)?i.activeDrillHoverBackgroundColor:i.activeDrillBackgroundColor,borderTop:`1px solid ${wt}`,borderRight:`1px solid ${wt}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,u.jsx("span",{className:`csdk-absolute ${e?"csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-right-[-15px]":"csdk-h-[10px] csdk-w-[10px] csdk-top-[7px] csdk-right-[-5px]"} csdk-transform translate-x-1/2 csdk-rotate-45`,style:{backgroundColor:i.chartBackgroundColor,borderTop:`1px solid ${wt}`,borderRight:`1px solid ${wt}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),hh=ro({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[o,i]=F.useState(null),[a,s]=F.useState(!1),l=k7(),{CancelButton:c,CurrentDrillButton:p}=O7({clearDrilldownSelections:r,currentDimension:t,isHovered:a,setIsHovered:s,themeProps:l}),h=v=>y=>{s(!0),i({filterDisplayValues:v,anchorEl:y.currentTarget})},d=()=>{s(!1),i(null)},m=v=>v<e.length-1,g=v=>v===e.length-2;return e.length?u.jsx("div",{"aria-label":"drilldown-breadcrumbs",children:u.jsx(N7,{currentDimension:t,children:u.jsxs(L7,{separator:null,sx:{backgroundColor:l.chartBackgroundColor,padding:"4px"},children:[u.jsx(c,{}),e.map((v,y)=>{const w=m(y),E=g(y);return u.jsx("div",{children:u.jsx(F7,{isActive:w,isLastActive:E,filterDisplayValue:v,handleMouseEnter:h(v),handleMouseLeave:d,handleClick:()=>n(y+1),themeProps:l,popperParams:o,index:y})},y)}),u.jsx(p,{}),u.jsx(D7,{popperParams:o,currentDimension:t,themeProps:l})]})})}):null}),mh=e=>{const{initialDimension:t,onDrilldownSelectionsChange:r}=e,n=F.useMemo(()=>e.drilldownPaths||[],[e.drilldownPaths]),o=F.useMemo(()=>e.drilldownSelections||[],[e.drilldownSelections]),{t:i}=u.useTranslation();if(!t)throw new u.TranslatableError("errors.drilldownNoInitialDimension");const[a,s]=Ml(o,{onLocalStateChange:r}),l=F.useMemo(()=>[u.translateColumnToAttribute(t),...a.map(({nextDimension:y})=>y)],[t,a]),c=F.useMemo(()=>n.filter(y=>{if(u.MetadataTypes.isAttribute(y)){const _=y;return l.every(x=>!ct(x,_))}const E=y;return l.every((_,x)=>ct(_,E.levels[x]))}),[n,l]),p=F.useCallback((y,w,E)=>{s(_=>gh(_,y,w,E))},[s]),h=F.useCallback(y=>{s(w=>w.slice(0,y))},[s]),d=F.useCallback(()=>{s([])},[s]),{drilldownFilters:m,drilldownFiltersDisplayValues:g,drilldownDimension:v}=F.useMemo(()=>vh(a,t,i),[a,t,i]);return{drilldownSelections:a,availableDrilldownPaths:c,drilldownFilters:m,drilldownFiltersDisplayValues:g,drilldownDimension:v,selectDrilldown:p,sliceDrilldownSelections:h,clearDrilldownSelections:d}},gh=(e,t,r,n)=>{var d,m;if(!(n!=null&&n.levels))return[...e,{points:t,nextDimension:r}];if(ct(n.levels[0],r))return[];const i=(d=e==null?void 0:e.findIndex(g=>ct(g.nextDimension,r)))!=null?d:-1;if(i!==-1)return e.slice(0,i+1);const s=(m=u.last(e))==null?void 0:m.nextDimension,l=e.length?n.levels.findIndex(g=>s&&ct(g,s)):0,c=n.levels.indexOf(r),h=n.levels.slice(l+1,c+1).map((g,v)=>({points:v===0?t:[],nextDimension:g}));return[...e,...h]},vh=(e,t,r)=>{let n=t&&u.translateColumnToAttribute(t);const o=[],i=[];return e.forEach(({points:a,nextDimension:s})=>{o.push(u.members(n,a.map(H7)));const l=a.length?a.map(yh):[`${n.name} (${r("drilldown.breadcrumbsAllSuffix")})`];i.push(l),n=s}),{drilldownFilters:o,drilldownFiltersDisplayValues:i,drilldownDimension:n}};function yh(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function H7(e){return"categoryValue"in e?`${e.categoryValue}`:""}var B7=Object.prototype,j7=B7.hasOwnProperty,z7=lh(function(e,t,r){j7.call(e,r)?e[r].push(t):u.baseAssignValue(e,r,[t])});function W7(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.config.guid))})}function bh(e,t){return e.find(r=>ct(r.attribute,t))}function _h(e,t,r){const n=bh(r,e);return u.members(e,t.map(o=>`${o}`),{guid:n==null?void 0:n.config.guid,backgroundFilter:n==null?void 0:n.config.backgroundFilter})}function xh(e,t){return Ol(e,t)&&"members"in e&&"members"in t&&u.isEqual(e.members,t.members)}var qn=function(e){return e.DRILLDOWN_CHART_POINTS_SELECTION="drilldown-chart-points-selection",e.DRILLDOWN_DRILL_DIRECTIONS="drilldown-drill-directions",e.CROSSFILTERING_CHART_POINTS_SELECTION="crossfiltering-chart-points-selection",e}({});const wh=2;function rn(e,t){const r=e.flatMap(({entries:o={}})=>t.flatMap(i=>{const a=o[i];return a?(Array.isArray(a)?a:[a]).filter(({attribute:l})=>!!l):[]})),n=z7(r,({id:o})=>o);return Object.values(n).map(o=>({attribute:o[0].attribute,values:as(o.map(({value:i})=>i)),displayValues:as(o.map(({displayValue:i})=>i))}))}function V7(e){return rn(e,["category"])}function U7(e){return rn(e,["category"])}function q7(e,t){const r=rn(e,["category"]),n=r.length-1;return t.category.map((o,i)=>n===i?r[i]:{attribute:u.translateColumnToAttribute(o),values:[],displayValues:[]})}function G7(e){return rn(e,["x","y","breakByPoint","breakByColor"])}function Y7(e){return rn(e,["geo"])}function X7(e){return rn(e,["geo"])}function zo(e,t,r){return e==="plugin"?[]:e==="text"?[]:e==="pivot"?[]:e==="treemap"||e==="sunburst"?q7(r,t):u.isCartesian(e)||e==="pie"||e==="funnel"?V7(r):u.isBoxplot(e)?U7(r):u.isScatter(e)?G7(r):u.isScattermap(e)?Y7(r):u.isAreamap(e)?X7(r):[]}function Pl(e,t){let r=[];return e==="plugin"?r=[]:e==="text"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:u.isCartesian(e)||u.isCategorical(e)||u.isBoxplot(e)||u.isRange(e)?r=[...t.category]:u.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!u.isMeasureColumn(n))):(u.isScattermap(e)||u.isAreamap(e))&&(r=[...t.geo]),r.map(u.translateColumnToAttribute)}function K7(e,t,r){const n=bh(t,e.attribute);if(!n||Rl(n))return null;if(xh(e,n))return qi(e);if(u.isMembersFilter(n)&&r){const[o,i]=po(n.members,s=>e.members.includes(s));if(o.length===e.members.length&&i.length)return _h(e.attribute,i,[n])}return null}function Q7(e,t,r){const n=t.filter(a=>!a.config.disabled),o=e.map(a=>K7(a,n,r)).filter(a=>!!a),i=e.length!==o.length;return{filters:i?e:o,isSelection:i}}function xa(e,t,r=!1){const n=e.map(({attribute:i,values:a})=>_h(i,a,t)),o=Z7(t,n);return Q7(o,t,r)}function Z7(e,t){const r=e.filter(n=>n.config.locked);return r.length?t.filter(n=>!r.some(o=>Ol(o,n))):t}function J7(e,t,r){const n=zo(e,t,r).filter(({displayValues:s})=>s.length);if(n.length===0)return"";const[o]=n,i=r.length===1,a=o.displayValues.length>wh;return n.length>1?i?n.map(s=>s.displayValues[0]).join(", "):a?"":o.displayValues.join(", "):a?o.attribute.name:o.displayValues.join(", ")}function Qc(e,t,r){const n=J7(e,t,r);return n?{id:qn.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:n}:null}function Zc(e,t){return{items:[{caption:e,onClick:t}]}}const eI=({initialDimension:e,drilldownPaths:t,drilldownSelections:r,openMenu:n,onDrilldownSelectionsChange:o})=>{const{t:i}=u.useTranslation(),{availableDrilldownPaths:a,drilldownFilters:s,drilldownFiltersDisplayValues:l,drilldownDimension:c,selectDrilldown:p,sliceDrilldownSelections:h,clearDrilldownSelections:d}=mh({initialDimension:e,drilldownPaths:t,drilldownSelections:r,onDrilldownSelectionsChange:o}),m=F.useCallback((v,y)=>{const w=[Ch(y,c),Th(a,c,(E,_)=>{p(y,E,_)},i)];n({position:v,itemSections:w})},[c,a,i,p,n]),g=F.useMemo(()=>c&&u.jsx(hh,{filtersDisplayValues:l,currentDimension:c,clearDrilldownSelections:d,sliceDrilldownSelections:h}),[d,c,l,h]);return{drilldownDimension:c,drilldownFilters:s,breadcrumbs:g,openDrilldownMenu:m}};function Ch(e,t){const r=as(e.map(yh).filter(n=>!!n));return r.length>wh?{id:qn.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:t.name}:{id:qn.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:r.join(", ")}}function tI(e){return 30+12*e}function Th(e,t,r,n){const[o,i]=po(e,u.MetadataTypes.isAttribute.bind(u.MetadataTypes)),a=o.map(l=>({caption:l.name,onClick:()=>r(l)})),s=i.map(l=>({caption:l.title,subItems:[{items:l.levels.map((c,p)=>({caption:c.name,class:p===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${tI(p)}px`},disabled:ct(c,t),onClick:()=>r(c,l)}))}]}));return{id:qn.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:n("drilldown.drillMenuItem"),items:[...s,...a]}}var Gi=function(e){return e.HIGHLIGHT="highlight",e.FILTER="filter",e}({});function Eh(e){return function(t){t=u.toString(t);var r=Af(t)?za(t):void 0,n=r?r[0]:t.charAt(0),o=r?If(r,1).join(""):t.slice(1);return n[e]()+o}}var Sh=Eh("toUpperCase");function rI(e){return Sh(u.toString(e).toLowerCase())}function nI(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function oI(e){return function(t){return e==null?void 0:e[t]}}var iI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},aI=oI(iI),sI=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lI="\\u0300-\\u036f",uI="\\ufe20-\\ufe2f",cI="\\u20d0-\\u20ff",dI=lI+uI+cI,fI="["+dI+"]",pI=RegExp(fI,"g");function hI(e){return e=u.toString(e),e&&e.replace(sI,aI).replace(pI,"")}var mI=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gI(e){return e.match(mI)||[]}var vI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function yI(e){return vI.test(e)}var Rh="\\ud800-\\udfff",bI="\\u0300-\\u036f",_I="\\ufe20-\\ufe2f",xI="\\u20d0-\\u20ff",wI=bI+_I+xI,Oh="\\u2700-\\u27bf",Mh="a-z\\xdf-\\xf6\\xf8-\\xff",CI="\\xac\\xb1\\xd7\\xf7",TI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",EI="\\u2000-\\u206f",SI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ph="A-Z\\xc0-\\xd6\\xd8-\\xde",RI="\\ufe0e\\ufe0f",Dh=CI+TI+EI+SI,kh="['’]",Jc="["+Dh+"]",OI="["+wI+"]",Ih="\\d+",MI="["+Oh+"]",Ah="["+Mh+"]",Nh="[^"+Rh+Dh+Ih+Oh+Mh+Ph+"]",PI="\\ud83c[\\udffb-\\udfff]",DI="(?:"+OI+"|"+PI+")",kI="[^"+Rh+"]",$h="(?:\\ud83c[\\udde6-\\uddff]){2}",Lh="[\\ud800-\\udbff][\\udc00-\\udfff]",Dr="["+Ph+"]",II="\\u200d",ed="(?:"+Ah+"|"+Nh+")",AI="(?:"+Dr+"|"+Nh+")",td="(?:"+kh+"(?:d|ll|m|re|s|t|ve))?",rd="(?:"+kh+"(?:D|LL|M|RE|S|T|VE))?",Fh=DI+"?",Hh="["+RI+"]?",NI="(?:"+II+"(?:"+[kI,$h,Lh].join("|")+")"+Hh+Fh+")*",$I="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",FI=Hh+Fh+NI,HI="(?:"+[MI,$h,Lh].join("|")+")"+FI,BI=RegExp([Dr+"?"+Ah+"+"+td+"(?="+[Jc,Dr,"$"].join("|")+")",AI+"+"+rd+"(?="+[Jc,Dr+ed,"$"].join("|")+")",Dr+"?"+ed+"+"+td,Dr+"+"+rd,LI,$I,Ih,HI].join("|"),"g");function jI(e){return e.match(BI)||[]}function zI(e,t,r){return e=u.toString(e),t=t,t===void 0?yI(e)?jI(e):gI(e):e.match(t)||[]}var WI="['’]",VI=RegExp(WI,"g");function UI(e){return function(t){return nI(zI(hI(t).replace(VI,"")),e,"")}}var Bh=UI(function(e,t,r){return t=t.toLowerCase(),e+(r?rI(t):t)});function qI(e){const{_id:t,title:r,levels:n}=e;return{id:t,title:r,levels:n.map(o=>u.createDimensionalElementFromJaql(o))}}function jh(e,t,r){return rt(this,null,function*(){const o=yield new u.RestApi(e,r).getHierarchies(t);return o==null?void 0:o.map(i=>qI(i))})}const GI=ih("useGetHierarchyModels")(zh);function zh(e){const t=Sl(e,["dataSource","dimension","ids","alwaysIncluded"]),r=ah(e,t),[n,o]=F.useReducer(is,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=u.useSisenseContext();return F.useEffect(()=>{i||o({type:"error",error:new u.TranslatableError("errors.sisenseContextNotFound")}),r(a)&&(o({type:"loading"}),jh(a.httpClient,e,a.defaultDataSource).then(s=>{o({type:"success",data:s})}).catch(s=>{o({type:"error",error:s})}))},[a,i,e,r]),n.data&&t?nd(is(n,{type:"loading"})):nd(n)}function nd(e){const n=e,{data:t}=n,r=br(n,["data"]);return J(q({},r),{hierarchies:t})}function YI({attribute:e,dataSource:t,drilldownPaths:r=[],enabled:n}){const[o,i]=F.useMemo(()=>po(r,th),[r]),{hierarchies:a=[]}=zh({enabled:n,dataSource:t,dimension:e,ids:o,alwaysIncluded:!0});return F.useMemo(()=>a.length?[...a,...i]:i,[a,i])}function XI(e,t){return Pl(e,t)[0]}function KI(e){return[...u.CARTESIAN_CHART_TYPES,...u.CATEGORICAL_CHART_TYPES,...u.SCATTER_CHART_TYPES,...u.BOXPLOT_CHART_TYPES,...u.RANGE_CHART_TYPES].includes(e)}function QI(e,t){return Pl(e,t).length===1}function ZI(e,t){return QI(e,t)&&KI(e)}function Wh(e,t,r){const n=o=>!!o&&!ct(r,u.translateColumnToAttribute(o));if(u.isCartesian(e)||u.isCategorical(e)||u.isBoxplot(e)||u.isRange(e)){const o=t.category[0];if(n(o))return J(q({},t),{category:[r]})}else if(u.isScatter(e)){const o=t,i=["x","y","breakByPoint","breakByColor"];for(const a of i){const s=o[a];if(s&&!u.isMeasureColumn(s)&&n(s))return J(q({},o),{[a]:r})}}return t}function od(e,t,r){return e.map(n=>{const o=["x","y","breakByPoint","breakByColor"],i=[...o,"size"].some(s=>s in n),a=o.find(s=>r[s]&&!u.isMeasureColumn(r[s]));if(i){const s=t,l=s.type==="mouseup";l&&console.warn("No drilldown support for multi-selection in scatter chart");const c=l?n[a]:s.point.options.custom[Bh(`{masked ${a}`)];return{categoryValue:c,categoryDisplayValue:c}}return n})}const JI=({propsToExtend:e,onDrilldownSelectionsChange:t})=>{const{chartType:r,dataOptions:n,dataSource:o,drilldownOptions:i}=e,{drilldownSelections:a}=i||{},{openMenu:s}=sh(),l=F.useMemo(()=>ZI(r,n),[r,n]),c=F.useMemo(()=>[...(i==null?void 0:i.drilldownPaths)||[],...(i==null?void 0:i.drilldownDimensions)||[]],[i==null?void 0:i.drilldownPaths,i==null?void 0:i.drilldownDimensions]),p=F.useMemo(()=>{const O=u.createAttribute({name:"dummy drilldown initial attribute"});return XI(r,n)||O},[r,n]),h=YI({attribute:p,dataSource:o,drilldownPaths:c,enabled:l}),d=F.useMemo(()=>{var M,D;return(((M=i==null?void 0:i.drilldownSelections)==null?void 0:M.length)||((D=i==null?void 0:i.drilldownDimensions)==null?void 0:D.length)||(h==null?void 0:h.length))&&l},[i,l,h]),{drilldownDimension:m,drilldownFilters:g,breadcrumbs:v,openDrilldownMenu:y}=eI({initialDimension:p,drilldownSelections:a,drilldownPaths:h,openMenu:s,onDrilldownSelectionsChange:t}),w=F.useCallback((O,M)=>{const D=od(O,M,n);y({left:M.clientX,top:M.clientY},D)},[n,y]),E=F.useCallback((O,M)=>{const D=od([O],M,n);y({left:M.clientX,top:M.clientY},D)},[n,y]),_=F.useMemo(()=>Wh(r,n,m),[r,n,m]),x=F.useMemo(()=>g.length?bd(e.filters||[],g):e.filters,[e.filters,g]),b=F.useMemo(()=>u.combineHandlers([w,e.onDataPointsSelected]),[w,e.onDataPointsSelected]),C=F.useMemo(()=>u.combineHandlers([E,e.onDataPointContextMenu]),[E,e.onDataPointContextMenu]);return{propsWithDrilldown:q(q({},e),d&&{dataOptions:_,filters:x,onDataPointsSelected:b,onDataPointContextMenu:C}),isDrilldownEnabled:d,breadcrumbs:v}},eA=ro({componentName:"ChartWidget"})(e=>{var O,M;const{app:t}=u.useSisenseContext(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:o,styleOptions:i,highlightSelectionDisabled:a=!1,highlights:s,description:l,onChange:c}=e,{width:p,height:h}=i||{},d=qf(r,{hasHeader:!((O=i==null?void 0:i.header)!=null&&O.hidden)}),[m,g]=F.useState(0),v=F.useMemo(()=>u.omit(i,["width","height"]),[i]),y=F.useCallback(D=>{c==null||c({drilldownOptions:{drilldownSelections:D}})},[c]),{propsWithDrilldown:w,isDrilldownEnabled:E,breadcrumbs:_}=JI({propsToExtend:e,onDrilldownSelectionsChange:y}),x=i7({chartType:r,dataOptions:o,enabled:!a&&!E&&!(s!=null&&s.length)}),b=(M=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:M.enabled,C=F.useCallback(D=>{var R;return b?J(q({},D),{accessibility:J(q({},D.accessibility),{description:l!=null?l:(R=D.accessibility)==null?void 0:R.description})}):D},[l,b]);if(!r||!o)return null;const S=J(q({},w),{dataSet:n,styleOptions:v,refreshCounter:m,onDataPointClick:F.useMemo(()=>u.combineHandlers([x.onDataPointClick,e.onDataPointClick]),[x.onDataPointClick,e.onDataPointClick]),onDataPointContextMenu:w.onDataPointContextMenu,onDataPointsSelected:F.useMemo(()=>u.combineHandlers([x.onDataPointsSelected,w.onDataPointsSelected]),[x.onDataPointsSelected,w.onDataPointsSelected]),onBeforeRender:F.useMemo(()=>u.combineHandlers([C,x.onBeforeRender,e.onBeforeRender],!0),[C,x.onBeforeRender,e.onBeforeRender])});return u.jsx(Ei,{defaultSize:d,size:{width:p,height:h},children:u.jsx(eh,J(q({},e),{topSlot:u.jsxs(u.Fragment,{children:[e.topSlot,_]}),dataSetName:n&&u.getDataSourceName(n),onRefresh:()=>g(m+1),children:u.jsx(Y0,q({},S))}))})});class nn{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Gn=typeof window=="undefined"||"Deno"in window;function it(){}function tA(e,t){return typeof e=="function"?e(t):e}function ss(e){return typeof e=="number"&&e>=0&&e!==1/0}function Vh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function En(e,t,r){return ho(e)?typeof t=="function"?J(q({},r),{queryKey:e,queryFn:t}):J(q({},t),{queryKey:e}):e}function rA(e,t,r){return ho(e)?J(q({},t),{mutationKey:e}):typeof e=="function"?J(q({},t),{mutationFn:e}):q({},e)}function Bt(e,t,r){return ho(e)?[J(q({},t),{queryKey:e}),r]:[e||{},t]}function id(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(ho(a)){if(n){if(t.queryHash!==Dl(a,t.options))return!1}else if(!Ir(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o!="undefined"&&o!==t.state.fetchStatus||i&&!i(t))}function ad(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(ho(i)){if(!t.options.mutationKey)return!1;if(r){if(ur(t.options.mutationKey)!==ur(i))return!1}else if(!Ir(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function Dl(e,t){return((t==null?void 0:t.queryKeyHashFn)||ur)(e)}function ur(e){return JSON.stringify(e,(t,r)=>ls(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Ir(e,t){return Uh(e,t)}function Uh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Uh(e[r],t[r])):!1}function qh(e,t){if(e===t)return e;const r=sd(e)&&sd(t);if(r||ls(e)&&ls(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let s=0;for(let l=0;l<i;l++){const c=r?l:o[l];a[c]=qh(e[c],t[c]),a[c]===e[c]&&s++}return n===i&&s===n?e:a}return t}function ti(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function sd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ls(e){if(!ld(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!ld(r)||!r.hasOwnProperty("isPrototypeOf"))}function ld(e){return Object.prototype.toString.call(e)==="[object Object]"}function ho(e){return Array.isArray(e)}function Gh(e){return new Promise(t=>{setTimeout(t,e)})}function ud(e){Gh(0).then(e)}function nA(){if(typeof AbortController=="function")return new AbortController}function us(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?qh(e,t):t}class oA extends nn{constructor(){super(),this.setup=t=>{if(!Gn&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const ri=new oA,cd=["online","offline"];class iA extends nn{constructor(){super(),this.setup=t=>{if(!Gn&&window.addEventListener){const r=()=>t();return cd.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{cd.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const ni=new iA;function aA(e){return Math.min(1e3*Qe(2,e),3e4)}function Yi(e){return(e!=null?e:"online")==="online"?ni.isOnline():!0}class Yh{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Wo(e){return e instanceof Yh}function Xh(e){let t=!1,r=0,n=!1,o,i,a;const s=new Promise((y,w)=>{i=y,a=w}),l=y=>{n||(m(new Yh(y)),e.abort==null||e.abort())},c=()=>{t=!0},p=()=>{t=!1},h=()=>!ri.isFocused()||e.networkMode!=="always"&&!ni.isOnline(),d=y=>{n||(n=!0,e.onSuccess==null||e.onSuccess(y),o==null||o(),i(y))},m=y=>{n||(n=!0,e.onError==null||e.onError(y),o==null||o(),a(y))},g=()=>new Promise(y=>{o=w=>{const E=n||!h();return E&&y(w),E},e.onPause==null||e.onPause()}).then(()=>{o=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let y;try{y=e.fn()}catch(w){y=Promise.reject(w)}Promise.resolve(y).then(d).catch(w=>{var E,_;if(n)return;const x=(E=e.retry)!=null?E:3,b=(_=e.retryDelay)!=null?_:aA,C=typeof b=="function"?b(r,w):b,S=x===!0||typeof x=="number"&&r<x||typeof x=="function"&&x(r,w);if(t||!S){m(w);return}r++,e.onFail==null||e.onFail(r,w),Gh(C).then(()=>{if(h())return g()}).then(()=>{t?m(w):v()})})};return Yi(e.networkMode)?v():g().then(v),{promise:s,cancel:l,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:c,continueRetry:p}}const kl=console;function sA(){let e=[],t=0,r=p=>{p()},n=p=>{p()};const o=p=>{let h;t++;try{h=p()}finally{t--,t||s()}return h},i=p=>{t?e.push(p):ud(()=>{r(p)})},a=p=>(...h)=>{i(()=>{p(...h)})},s=()=>{const p=e;e=[],p.length&&ud(()=>{n(()=>{p.forEach(h=>{r(h)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p}}}const ke=sA();class Kh{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ss(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Gn?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class lA extends Kh{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||kl,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||uA(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=q(q({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=us(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(it).catch(it):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Vh(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=nA(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),p={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(l(p),(n=this.options.behavior)==null||n.onFetch(p),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=p.fetchOptions)==null?void 0:o.meta)){var h;this.dispatch({type:"fetch",meta:(h=p.fetchOptions)==null?void 0:h.meta})}const d=m=>{if(Wo(m)&&m.silent||this.dispatch({type:"error",error:m}),!Wo(m)){var g,v,y,w;(g=(v=this.cache.config).onError)==null||g.call(v,m,this),(y=(w=this.cache.config).onSettled)==null||y.call(w,this.state.data,m,this),process.env.NODE_ENV!=="production"&&this.logger.error(m)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Xh({fn:p.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:m=>{var g,v,y,w;if(typeof m=="undefined"){process.env.NODE_ENV!=="production"&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),d(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(g=(v=this.cache.config).onSuccess)==null||g.call(v,m,this),(y=(w=this.cache.config).onSettled)==null||y.call(w,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(m,g)=>{this.dispatch({type:"failed",failureCount:m,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var o,i;switch(t.type){case"failed":return J(q({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return J(q({},n),{fetchStatus:"paused"});case"continue":return J(q({},n),{fetchStatus:"fetching"});case"fetch":return q(J(q({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Yi(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return q(J(q({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const a=t.error;return Wo(a)&&a.revert&&this.revertState?J(q({},this.revertState),{fetchStatus:"idle"}):J(q({},n),{error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"});case"invalidate":return J(q({},n),{isInvalidated:!0});case"setState":return q(q({},n),t.state)}};this.state=r(this.state),ke.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function uA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t!="undefined",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n!=null?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class cA extends nn{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var o;const i=r.queryKey,a=(o=r.queryHash)!=null?o:Dl(i,r);let s=this.get(a);return s||(s=new lA({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ke.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=Bt(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(o=>id(n,o))}findAll(t,r){const[n]=Bt(t,r);return Object.keys(n).length>0?this.queries.filter(o=>id(n,o)):this.queries}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){ke.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class dA extends Kh{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||kl,this.observers=[],this.state=t.state||Qh(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=q(q({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}execute(){return rt(this,null,function*(){const t=()=>{var S;return this.retryer=Xh({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,M)=>{this.dispatch({type:"failed",failureCount:O,error:M})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(S=this.options.retry)!=null?S:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,o,i,a,s,l,c,p;if(!r){var h,d,m,g;this.dispatch({type:"loading",variables:this.options.variables}),yield(h=(d=this.mutationCache.config).onMutate)==null?void 0:h.call(d,this.state.variables,this);const O=yield(m=(g=this.options).onMutate)==null?void 0:m.call(g,this.state.variables);O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const S=yield t();return yield(n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,S,this.state.variables,this.state.context,this),yield(i=(a=this.options).onSuccess)==null?void 0:i.call(a,S,this.state.variables,this.state.context),yield(s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,S,null,this.state.variables,this.state.context,this),yield(c=(p=this.options).onSettled)==null?void 0:c.call(p,S,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:S}),S}catch(S){try{var v,y,w,E,_,x,b,C;throw yield(v=(y=this.mutationCache.config).onError)==null?void 0:v.call(y,S,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(S),yield(w=(E=this.options).onError)==null?void 0:w.call(E,S,this.state.variables,this.state.context),yield(_=(x=this.mutationCache.config).onSettled)==null?void 0:_.call(x,void 0,S,this.state.variables,this.state.context,this),yield(b=(C=this.options).onSettled)==null?void 0:b.call(C,void 0,S,this.state.variables,this.state.context),S}finally{this.dispatch({type:"error",error:S})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return J(q({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return J(q({},n),{isPaused:!0});case"continue":return J(q({},n),{isPaused:!1});case"loading":return J(q({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Yi(this.options.networkMode),status:"loading",variables:t.variables});case"success":return J(q({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return J(q({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return q(q({},n),t.state)}};this.state=r(this.state),ke.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Qh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class fA extends nn{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new dA({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){ke.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact=="undefined"&&(t.exact=!0),this.mutations.find(r=>ad(t,r))}findAll(t){return this.mutations.filter(r=>ad(t,r))}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return ke.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(it)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function pA(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,i,a;const s=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,l=(n=e.fetchOptions)==null||(o=n.meta)==null?void 0:o.fetchMore,c=l==null?void 0:l.pageParam,p=(l==null?void 0:l.direction)==="forward",h=(l==null?void 0:l.direction)==="backward",d=((i=e.state.data)==null?void 0:i.pages)||[],m=((a=e.state.data)==null?void 0:a.pageParams)||[];let g=m,v=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)v=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{v=!0})}return e.signal}})},w=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),E=(C,S,O,M)=>(g=M?[S,...g]:[...g,S],M?[O,...C]:[...C,O]),_=(C,S,O,M)=>{if(v)return Promise.reject("Cancelled");if(typeof O=="undefined"&&!S&&C.length)return Promise.resolve(C);const D={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};y(D);const R=w(D);return Promise.resolve(R).then(I=>E(C,O,I,M))};let x;if(!d.length)x=_([]);else if(p){const C=typeof c!="undefined",S=C?c:dd(e.options,d);x=_(d,C,S)}else if(h){const C=typeof c!="undefined",S=C?c:hA(e.options,d);x=_(d,C,S,!0)}else{g=[];const C=typeof e.options.getNextPageParam=="undefined";x=(s&&d[0]?s(d[0],0,d):!0)?_([],C,m[0]):Promise.resolve(E([],m[0],d[0]));for(let O=1;O<d.length;O++)x=x.then(M=>{if(s&&d[O]?s(d[O],O,d):!0){const R=C?m[O]:dd(e.options,M);return _(M,C,R)}return Promise.resolve(E(M,m[O],d[O]))})}return x.then(C=>({pages:C,pageParams:g}))}}}}function dd(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function hA(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class mA{constructor(t={}){this.queryCache=t.queryCache||new cA,this.mutationCache=t.mutationCache||new fA,this.logger=t.logger||kl,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,process.env.NODE_ENV!=="production"&&t.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=ri.subscribe(()=>{ri.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ni.subscribe(()=>{ni.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=Bt(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(J(q({},t),{fetching:!0})).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const o=En(t,r,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const o=n.data;return[r,o]})}setQueryData(t,r,n){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=tA(r,i);if(typeof a=="undefined")return;const s=En(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,J(q({},n),{manual:!0}))}setQueriesData(t,r,n){return ke.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=Bt(t,r),o=this.queryCache;ke.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=Bt(t,r,n),a=this.queryCache,s=q({type:"active"},o);return ke.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,r,n){const[o,i={}]=Bt(t,r,n);typeof i.revert=="undefined"&&(i.revert=!0);const a=ke.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(it).catch(it)}invalidateQueries(t,r,n){const[o,i]=Bt(t,r,n);return ke.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(c=>{c.invalidate()}),o.refetchType==="none")return Promise.resolve();const l=J(q({},o),{type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"});return this.refetchQueries(l,i)})}refetchQueries(t,r,n){const[o,i]=Bt(t,r,n),a=ke.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,J(q({},i),{cancelRefetch:(c=i==null?void 0:i.cancelRefetch)!=null?c:!0,meta:{refetchPage:o.refetchPage}}))}));let s=Promise.all(a).then(it);return i!=null&&i.throwOnError||(s=s.catch(it)),s}fetchQuery(t,r,n){const o=En(t,r,n),i=this.defaultQueryOptions(o);typeof i.retry=="undefined"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(it).catch(it)}fetchInfiniteQuery(t,r,n){const o=En(t,r,n);return o.behavior=pA(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(it).catch(it)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(o=>ur(t)===ur(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Ir(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(o=>Ir(t,o.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(t)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."),r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>ur(t)===ur(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Ir(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(o=>Ir(t,o.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(t)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."),r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r=J(q(q(q({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=Dl(r.queryKey,r)),typeof r.refetchOnReconnect=="undefined"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary=="undefined"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:J(q(q(q({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class gA extends nn{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),fd(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cs(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cs(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),process.env.NODE_ENV!=="production"&&typeof(t==null?void 0:t.isDataEqual)!="undefined"&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),ti(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&pd(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return yA(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(n={}){var o=n,{refetchPage:t}=o,r=br(o,["refetchPage"]);return this.fetch(J(q({},r),{meta:{refetchPage:t}}))}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch(J(q({},t),{cancelRefetch:(r=t.cancelRefetch)!=null?r:!0})).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(it)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Gn||this.currentResult.isStale||!ss(this.options.staleTime))return;const r=Vh(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Gn||this.options.enabled===!1||!ss(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||ri.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=t!==n,c=l?t.state:this.currentQueryInitialState,p=l?this.currentResult:this.previousQueryResult,{state:h}=t;let{dataUpdatedAt:d,error:m,errorUpdatedAt:g,fetchStatus:v,status:y}=h,w=!1,E=!1,_;if(r._optimisticResults){const O=this.hasListeners(),M=!O&&fd(t,r),D=O&&pd(t,n,r,o);(M||D)&&(v=Yi(t.options.networkMode)?"fetching":"paused",d||(y="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!h.dataUpdatedAt&&p!=null&&p.isSuccess&&y!=="error")_=p.data,d=p.dataUpdatedAt,y=p.status,w=!0;else if(r.select&&typeof h.data!="undefined")if(i&&h.data===(a==null?void 0:a.data)&&r.select===this.selectFn)_=this.selectResult;else try{this.selectFn=r.select,_=r.select(h.data),_=us(i==null?void 0:i.data,_,r),this.selectResult=_,this.selectError=null}catch(O){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(O),this.selectError=O}else _=h.data;if(typeof r.placeholderData!="undefined"&&typeof _=="undefined"&&y==="loading"){let O;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))O=i.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof O!="undefined")try{O=r.select(O),this.selectError=null}catch(M){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(M),this.selectError=M}typeof O!="undefined"&&(y="success",_=us(i==null?void 0:i.data,O,r),E=!0)}this.selectError&&(m=this.selectError,_=this.selectResult,g=Date.now(),y="error");const x=v==="fetching",b=y==="loading",C=y==="error";return{status:y,fetchStatus:v,isLoading:b,isSuccess:y==="success",isError:C,isInitialLoading:b&&x,data:_,dataUpdatedAt:d,error:m,errorUpdatedAt:g,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:C&&h.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:E,isPreviousData:w,isRefetchError:C&&h.dataUpdatedAt!==0,isStale:Il(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,ti(n,r))return;this.currentResult=n;const o={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s!=null?s:this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const p=c;return this.currentResult[p]!==r[p]&&l.has(p)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify(q(q({},o),t))}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Wo(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){ke.batch(()=>{if(t.onSuccess){var r,n,o,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,s,l,c;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:p})=>{p(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function vA(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fd(e,t){return vA(e,t)||e.state.dataUpdatedAt>0&&cs(e,t,t.refetchOnMount)}function cs(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Il(e,t)}return!1}function pd(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Il(e,r)}function Il(e,t){return e.isStaleByTime(t.staleTime)}function yA(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!ti(e.getCurrentResult(),t)}var ds={exports:{}},wa={};/**
256
+ * @license React
257
+ * use-sync-external-store-shim.production.min.js
258
+ *
259
+ * Copyright (c) Facebook, Inc. and its affiliates.
260
+ *
261
+ * This source code is licensed under the MIT license found in the
262
+ * LICENSE file in the root directory of this source tree.
263
+ */var hd;function bA(){if(hd)return wa;hd=1;var e=F;function t(h,d){return h===d&&(h!==0||1/h===1/d)||h!==h&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(h,d){var m=d(),g=n({inst:{value:m,getSnapshot:d}}),v=g[0].inst,y=g[1];return i(function(){v.value=m,v.getSnapshot=d,l(v)&&y({inst:v})},[h,m,d]),o(function(){return l(v)&&y({inst:v}),h(function(){l(v)&&y({inst:v})})},[h]),a(m),m}function l(h){var d=h.getSnapshot;h=h.value;try{var m=d();return!r(h,m)}catch(g){return!0}}function c(h,d){return d()}var p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c:s;return wa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,wa}var Ca={};/**
264
+ * @license React
265
+ * use-sync-external-store-shim.development.js
266
+ *
267
+ * Copyright (c) Facebook, Inc. and its affiliates.
268
+ *
269
+ * This source code is licensed under the MIT license found in the
270
+ * LICENSE file in the root directory of this source tree.
271
+ */var md;function _A(){return md||(md=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=F,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(_){{for(var x=arguments.length,b=new Array(x>1?x-1:0),C=1;C<x;C++)b[C-1]=arguments[C];n("error",_,b)}}function n(_,x,b){{var C=t.ReactDebugCurrentFrame,S=C.getStackAddendum();S!==""&&(x+="%s",b=b.concat([S]));var O=b.map(function(M){return String(M)});O.unshift("Warning: "+x),Function.prototype.apply.call(console[_],console,O)}}function o(_,x){return _===x&&(_!==0||1/_===1/x)||_!==_&&x!==x}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,p=!1,h=!1;function d(_,x,b){p||e.startTransition!==void 0&&(p=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var C=x();if(!h){var S=x();i(C,S)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}var O=a({inst:{value:C,getSnapshot:x}}),M=O[0].inst,D=O[1];return l(function(){M.value=C,M.getSnapshot=x,m(M)&&D({inst:M})},[_,C,x]),s(function(){m(M)&&D({inst:M});var R=function(){m(M)&&D({inst:M})};return _(R)},[_]),c(C),C}function m(_){var x=_.getSnapshot,b=_.value;try{var C=x();return!i(b,C)}catch(S){return!0}}function g(_,x,b){return x()}var v=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",y=!v,w=y?g:d,E=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:w;Ca.useSyncExternalStore=E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ca}process.env.NODE_ENV==="production"?ds.exports=bA():ds.exports=_A();var xA=ds.exports;const Zh=xA.useSyncExternalStore,gd=z.createContext(void 0),Jh=z.createContext(!1);function em(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=gd),window.ReactQueryClientContext):gd)}const tm=({context:e}={})=>{const t=z.useContext(em(e,z.useContext(Jh)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wA=({client:e,children:t,context:r,contextSharing:n=!1})=>{z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),process.env.NODE_ENV!=="production"&&n&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=em(r,n);return z.createElement(Jh.Provider,{value:!r&&n},z.createElement(o.Provider,{value:e},t))},CA=z.createContext(!1),TA=()=>z.useContext(CA);function EA(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const SA=z.createContext(EA()),RA=()=>z.useContext(SA);function rm(e,t){return typeof e=="function"?e(...t):!!e}const OA=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},MA=e=>{z.useEffect(()=>{e.clearReset()},[e])},PA=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&rm(r,[e.error,n]),DA=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},kA=(e,t)=>e.isLoading&&e.isFetching&&!t,IA=(e,t,r)=>(e==null?void 0:e.suspense)&&kA(t,r),AA=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function NA(e,t){const r=tm({context:e.context}),n=TA(),o=RA(),i=r.defaultQueryOptions(e);i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=ke.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ke.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ke.batchCalls(i.onSettled)),DA(i),OA(i,o),MA(o);const[a]=z.useState(()=>new t(r,i)),s=a.getOptimisticResult(i);if(Zh(z.useCallback(l=>{const c=n?()=>{}:a.subscribe(ke.batchCalls(l));return a.updateResult(),c},[a,n]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),z.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),IA(i,s,n))throw AA(i,a,o);if(PA({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}function $A(e,t,r){const n=En(e,t,r);return NA(n,gA)}const LA=u.newStyled("button",{target:"e14rhw2k0",label:"ClearSelectionButton"})("color:",({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor},";background:none;font-size:13px;border:none;height:26px;padding:0 6px 0 2px;margin:0 4px 0 4px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;&:hover{background-color:rgba(247,247,247,1);}"),FA=u.newStyled("span",{target:"e14rhw2k1",label:"ClearSelectionText"})("color:",({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor},";display:inline-block;padding-top:3px;white-space:nowrap;"),HA=({onClick:e})=>{var n;const{themeSettings:t}=u.useThemeContext(),{t:r}=u.useTranslation();return u.jsxs(LA,{onClick:e,theme:t,children:[u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:u.jsx("path",{fill:(n=t.chart)==null?void 0:n.textColor,d:"M7.187 7l9.774 10.279A1 1 0 0 0 17 17V8a1 1 0 0 0-1-1H7.187zm9.018 10.979L6.206 7.463l.487-.415A1 1 0 0 0 6 8v9a1 1 0 0 0 1 1h9c.07 0 .139-.007.205-.021zM7 6h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"})}),u.jsx(FA,{theme:t,children:r("commonFilter.clearSelectionButton")})]})};function BA(e){const t={};return{flatFilters:e.reduce((n,o)=>(u.isCascadingFilter(o)?(t[o.config.guid]||(t[o.config.guid]=[]),o.filters.forEach(i=>{t[o.config.guid].push(i),n.push(i)})):n.push(o),n),[]),cascadingToPureFiltersMap:t}}function nm(e,t,r){const n=t.filter(u.isCascadingFilter);return zA(e,n).map(i=>{if(jA(i)){const a=n.find(l=>l.config.guid===i.groupId);if(!a)throw new u.TranslatableError("errors.cascadingFilterOriginalNotFound");const s=r==null?void 0:r.shouldResetFiltersDeeperThanModified;return WA(i,a,{shouldResetFiltersDeeperThanModified:s})}return i})}function jA(e){return"groupId"in e}function zA(e,t){const r=[];return e.forEach(n=>{const o=t.find(i=>i.filters.some(a=>An(a)===An(n)));if(o){const i=o.config.guid,a=r.find(s=>"groupId"in s&&s.groupId===i);a?a.filters.push(n):r.push({groupId:i,filters:[n],previousFilters:o.filters})}else r.push(n)}),r}function WA(e,t,r){const n=r!=null&&r.shouldResetFiltersDeeperThanModified?qA(e.filters,e.previousFilters):e.filters,o=VA(n,t.config.disabled);return u.cascading(n,{guid:t.config.guid,disabled:o})}function VA(e,t){return e.some(n=>n.config.disabled!==t)?!t:t}function UA(e,t,r){const{flatFilters:n,cascadingToPureFiltersMap:o}=BA(e);return{pureFilters:n,updateFilters:a=>{const s=nm(a,e,{shouldResetFiltersDeeperThanModified:!0});t(s)},pureFiltersIgnoringRules:GA(r,o)}}function qA(e,t){const r=e.reduce((n,o,i)=>{const a=t.find(s=>Ol(s,o));return a&&!xh(o,a)?i:n},-1);return r===-1?e:e.map((n,o)=>o>r?qi(n):n)}function GA(e,t){var r;return{all:e.all,ids:((r=e.ids)==null?void 0:r.reduce((n,o)=>{const i=t[o];return i?n.concat(i.map(a=>a.config.guid)):n.concat(o)},[]))||[]}}const vd={applyMode:Gi.HIGHLIGHT,shouldAffectFilters:!0,ignoreFilters:{all:!1,ids:[]},forceApplyBackgroundFilters:!0};function YA(e,t){return e==="table"?{applyMode:Gi.FILTER,shouldAffectFilters:!1,ignoreFilters:u.merge(vd.ignoreFilters,t.ignoreFilters||{})}:u.merge(vd,t)}function XA(e,t,r,n,o,i,a){const s={},l=YA(r,o),{pureFilters:c,updateFilters:p,pureFiltersIgnoringRules:h}=UA(e,t,l.ignoreFilters||{}),d=c.filter(_=>!_.config.disabled),m=W7(d,h),g=Pl(r,n),v=l.shouldAffectFilters&&g.length,[y,w]=QA(m,g,l.applyMode),E=l.forceApplyBackgroundFilters?lt(KA(c),y):y;if(s.filters=E,s.highlights=w,s.onDataPointsSelected=(_,x)=>{const b=[],C=Qc(r,n,_);if(C&&b.push(C),v){const S=zo(r,n,_),{filters:O,isSelection:M}=xa(S,c,!0),D=i(M?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),R=Zc(D,()=>{p(lt(c,O))});b.push(R)}b.length&&(a==null||a({position:{left:x.clientX,top:x.clientY},itemSections:b}))},s.onDataPointContextMenu=(_,x)=>{const b=[],C=Qc(r,n,[_]);if(C&&b.push(C),v){const S=zo(r,n,[_]),{filters:O,isSelection:M}=xa(S,c,!0),D=i(M?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),R=Zc(D,()=>{p(lt(c,O))});b.push(R)}b.length&&(a==null||a({position:{left:x.clientX,top:x.clientY},itemSections:b}))},v){s.onDataPointClick=C=>{const S=zo(r,n,[C]),{filters:O}=xa(S,c);p(lt(c,O))};const _=d.filter(C=>g==null?void 0:g.some(S=>u.isMembersFilter(C)&&ct(C.attribute,S)&&!Rl(C)&&!C.config.locked)),x=!!_.length,b=()=>{const C=_.map(qi);p(lt(c,C))};x&&(s.renderToolbar=(C,S)=>{const O=g.map(({expression:M})=>M).join(";");return u.jsxs("div",{style:{display:"flex"},children:[u.jsx(HA,{onClick:b}),S]},O)})}return s}function KA(e){return e.map(t=>{var r;return(r=t.config)==null?void 0:r.backgroundFilter}).filter(t=>!!t)}function QA(e,t,r){if(r===Gi.HIGHLIGHT){const[n,o]=po(e,a=>t.every(s=>!ct(s,a.attribute))),i=o.filter(a=>!Rl(a));return[n,i]}return[e,[]]}function ZA(e,t){const[r,n]=Ml(F.useMemo(()=>In(e),[e]),{onLocalStateChange:F.useCallback(d=>{const{filters:m,relations:g}=d;t&&t(Sn(m,g))},[t])}),{filters:o,relations:i}=r,a=F.useMemo(()=>Sn(o,i),[o,i]),s=F.useCallback(d=>{if(kn(d)){const{filters:m,relations:g}=In(d);n({filters:m||[],relations:g||null})}else n({filters:d,relations:null})},[n]),l=F.useCallback(d=>{const m=lt(o,[d]);n({filters:m,relations:Rn(o,i,m)})},[o,i,n]),c=F.useCallback(d=>{n({filters:d,relations:Rn(o,i,d)})},[o,i,n]),p=F.useMemo(()=>o.some(d=>u.isCascadingFilter(d)),[o]),h=F.useCallback(d=>{if(!i)return d;const m=p?nm(d,o):d,g=Rn(o,i,m);return Sn(m,g)},[p,o,i]);return{regularFilters:o,addFilter:l,filtersOrFilterRelations:a,setFiltersOrFilterRelations:s,setFilters:c,applyRelationsToOtherFilters:h}}const JA=({initialFilters:e=[],openMenu:t,onBeforeMenuOpen:r,onFiltersChange:n}={})=>{const{t:o}=u.useTranslation(),{filtersOrFilterRelations:i,regularFilters:a,addFilter:s,setFiltersOrFilterRelations:l,setFilters:c,applyRelationsToOtherFilters:p}=ZA(e,n),h=F.useCallback((d,m={})=>{var x,b;if(u.isTextWidgetProps(d))return d;const g=u.getInternalWidgetType(d),v=d,y=u.cloneDeep(d),E="drilldownOptions"in d&&((b=(x=d.drilldownOptions)==null?void 0:x.drilldownSelections)==null?void 0:b.length)?Wh(d.chartType,d.dataOptions,u.last(d.drilldownOptions.drilldownSelections).nextDimension):d.dataOptions,_=XA(a,c,g,E,m,o,t);return y.highlights=lt(_.highlights,v.highlights),y.onBeforeMenuOpen=r,_.onDataPointClick&&u.registerDataPointClickHandler(y,_.onDataPointClick),y.filters=p(lt(_.filters,ps(v.filters))),_.onDataPointClick&&u.registerDataPointClickHandler(y,_.onDataPointClick),_.onDataPointsSelected&&u.registerDataPointsSelectedHandler(y,_.onDataPointsSelected),_.onDataPointContextMenu&&u.registerDataPointContextMenuHandler(y,_.onDataPointContextMenu),_.renderToolbar&&u.registerRenderToolbarHandler(y,_.renderToolbar),y},[a,c,o,t,r,p]);return{filters:i,setFilters:l,addFilter:s,connectToWidgetProps:h}};exports.Backdrop=$s;exports.Button=Un;exports.ButtonBase=hr;exports.Chart=Y0;exports.ChartWidget=eA;exports.CommonFiltersApplyMode=Gi;exports.ContextMenu=Ef;exports.DEFAULT_PIVOT_TABLE_SIZE=Uf;exports.DEFAULT_TABLE_ROWS_PER_PAGE=j0;exports.DrilldownBreadcrumbs=hh;exports.DynamicSizeContainer=Ei;exports.ElementStates=_2;exports.ErrorBoundary=Pd;exports.ErrorBoundary$1=U0;exports.ErrorBoundaryBox=Md;exports.ExclamationMarkIcon=Od;exports.Fade=Ns;exports.I18nProvider=Dd;exports.IconButton=jr;exports.LEGACY_DESIGN_TYPES=xn;exports.List=Os;exports.ListContext=Ln;exports.LoadingDots=gs;exports.LoadingIndicator=si;exports.LoadingOverlay=Bo;exports.Menu=wi;exports.MenuIds=qn;exports.MenuItem=Ti;exports.MenuList=Ms;exports.MenuProvider=Sf;exports.Modal=Ls;exports.NoResultsOverlay=Hs;exports.PAGES_BATCH_SIZE=z0;exports.Paper=_i;exports.Popover=J0;exports.Popover$1=xi;exports.Popper=fo;exports.PropTypes=f;exports.QueryClient=mA;exports.QueryClientProvider=wA;exports.Subscribable=nn;exports.TableComponent=W0;exports.ThemeProvider=Pf;exports.Tooltip=Ui;exports.Transition=gt;exports.Typography=Ze;exports.UnknownRelationsNodeError=ai;exports.WidgetContainer=eh;exports.WidgetSpaceAround=K0;exports._objectWithoutPropertiesLoose=ae;exports.alpha_1=Pe;exports.areFiltersEqual=nh;exports.asSisenseComponent=ro;exports.baseUniq=Ws;exports.boxWhiskerProcessResult=Dx;exports.calculateNewRelations=Rn;exports.camelCase=Bh;exports.capitalize=ui;exports.capitalize$1=fe;exports.chainPropTypes=Pt;exports.classNames=zn;exports.clearMembersFilter=qi;exports.cloneFilterAndToggleDisabled=V8;exports.clsx=se;exports.combineFiltersAndRelations=Sn;exports.composeClasses=De;exports.convertFilterRelationsModelToJaql=Pm;exports.convertFilterRelationsModelToRelationRules=bm;exports.convertToThemeSettings=xd;exports.createCaseFirst=Eh;exports.createChainedFunction=Na;exports.createSvgIcon=Ur;exports.createTheme=yi;exports.createUnarySpacing=ws;exports.darken_1=tf;exports.dataLoadStateReducer=is;exports.debounce=o7;exports.deepmerge=dr;exports.duration=uf;exports.elementAcceptingRef=pr;exports.elementTypeAcceptingRef=Ps;exports.exactProp=Is;exports.extendSxProp=Ts;exports.filterRelationRulesToFilterRelationsModel=Tm;exports.findFilterByGuid=Em;exports.generateUtilityClass=we;exports.generateUtilityClasses=Ce;exports.getDefaultState=Qh;exports.getDisplayName=Ud;exports.getDrilldownMenuItems=Th;exports.getFiltersArray=ps;exports.getHierarchyModels=jh;exports.getLegacyPalette=Td;exports.getListItemTextUtilityClass=Sb;exports.getPaletteName=wd;exports.getRelationsWithReplacedFilter=gm;exports.getSelectionTitleMenuItem=Ch;exports.getTableAttributesAndMeasures=np;exports.getThemeSettingsByOid=Cd;exports.getTransitionProps=Hn;exports.getTranslatedDataOptions=Kf;exports.getValue=zr;exports.getWidgetDefaultSize=qf;exports.handleBreakpoints=Tt;exports.internal_processStyles=Hd;exports.isAttributeDescriptionNode=Om;exports.isCloseBracketDescriptionNode=Rm;exports.isFilterRelations=kn;exports.isFiltersChanged=rh;exports.isHostComponent=_s;exports.isOpenBracketDescriptionNode=Sm;exports.isOperatorDescriptionNode=Mm;exports.isPlainObject=St;exports.isRelationsChanged=X8;exports.isRelationsRule=ii;exports.isRelationsRuleIdNode=oi;exports.isSameAttribute=ct;exports.isString=th;exports.isThemeOid=Ho;exports.isTrivialSingleNodeRelations=hs;exports.lighten_1=rf;exports.listItemTextClasses=Fa;exports.mergeBreakpointsInOrder=Rg;exports.mergeFilters=lt;exports.mergeFiltersOrFilterRelations=bd;exports.notifyManager=ke;exports.ownerDocument=We;exports.parseMutationArgs=rA;exports.partition=po;exports.processDrilldownSelections=vh;exports.refType=Jn;exports.resolveBreakpointValues=Mg;exports.resolveProps=Go;exports.rootShouldForwardProp=Zn;exports.shallowEqualObjects=ti;exports.shouldSkipSisenseContextWaiting=V0;exports.shouldThrowError=rm;exports.splitFiltersAndRelations=In;exports.styleFunctionSx=Qn;exports.styled=Fd;exports.styled$1=le;exports.trackHook=K8;exports.translatePivotTableDataOptions=Cx;exports.translateTableDataOptions=Xf;exports.updateDrilldownSelections=gh;exports.upperFirst=Sh;exports.useCommonFilters=JA;exports.useControlled=As;exports.useDefaultProps=Re;exports.useDrilldownCore=mh;exports.useEnhancedEffect=Ut;exports.useEventCallback=Rt;exports.useForkRef=Ve;exports.useGetHierarchyModels=GI;exports.useHasChanged=Sl;exports.useId=bf;exports.useMenu=sh;exports.useQuery=$A;exports.useQueryClient=tm;exports.useSetError=zs;exports.useShouldLoad=ah;exports.useSyncExternalStore=Zh;exports.useSyncedState=Ml;exports.useTheme=yf;exports.useTheme$1=to;exports.useTimeout=sr;exports.withTracking=ih;