@sisense/sdk-ui 2.28.0 → 2.30.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 (260) hide show
  1. package/dist/ai.cjs +57 -57
  2. package/dist/ai.js +767 -797
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +1310 -1230
  5. package/dist/analytics-composer.cjs +7 -7
  6. package/dist/analytics-composer.js +19 -18
  7. package/dist/apply-styled-options-to-query-BK1NnV4P.js +6453 -0
  8. package/dist/apply-styled-options-to-query-Dl8vVNxo.cjs +1 -0
  9. package/dist/{index-C77YCBVd.js → index-DCYw3JUB.js} +29 -7
  10. package/dist/index-DTvxJdqZ.cjs +1 -0
  11. package/dist/index.cjs +611 -518
  12. package/dist/index.js +26556 -24829
  13. package/dist/index.umd.js +952 -829
  14. package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/utils.d.ts +1 -1
  15. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-container.d.ts +1 -1
  16. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-config.d.ts +127 -0
  17. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-targets.d.ts +30 -0
  18. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-title.d.ts +20 -0
  19. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header.d.ts +10 -1
  20. package/dist/packages/sdk-ui/src/domains/dashboarding/constants.d.ts +2 -2
  21. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-helpers.d.ts +21 -0
  22. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +7 -0
  23. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +45 -3
  24. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +10 -1
  25. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +36 -1
  26. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -0
  27. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/dashboard-module.d.ts +34 -0
  28. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/types.d.ts +58 -0
  29. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +7 -0
  30. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-menu-item.d.ts +9 -0
  31. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-updates-persistence.d.ts +27 -0
  32. package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/deep-merge.d.ts +17 -0
  33. package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +26 -1
  34. package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/update-types.d.ts +51 -0
  35. package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +18 -7
  36. package/dist/packages/sdk-ui/src/domains/dashboarding/utils.d.ts +9 -0
  37. package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-data-browser.d.ts +11 -0
  38. package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-popover.d.ts +14 -0
  39. package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measure-ranking-title.d.ts +21 -0
  40. package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measures.d.ts +13 -0
  41. package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
  42. package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -0
  43. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-context.d.ts +1 -0
  44. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-popover.d.ts +2 -1
  45. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor.d.ts +2 -1
  46. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/numeric-condition-section/types.d.ts +5 -0
  47. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/index.d.ts +3 -0
  48. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-controls.d.ts +33 -0
  49. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-utils.d.ts +13 -0
  50. package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +2 -1
  51. package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +22 -4
  52. package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +2 -0
  53. package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-trigger-button.d.ts +17 -0
  54. package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +20 -2
  55. package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +11 -9
  56. package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +1 -1
  57. package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +2 -2
  58. package/dist/packages/sdk-ui/src/domains/narrative/core/get-widget-narrative-from-widget-props.d.ts +18 -0
  59. package/dist/packages/sdk-ui/src/domains/narrative/core/to-nlg-api-verbosity.d.ts +7 -0
  60. package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +101 -23
  61. package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +35 -32
  62. package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +11 -22
  63. package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-line-height.d.ts +10 -0
  64. package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +8 -9
  65. package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +34 -1
  66. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-jaql-excel-export.d.ts +13 -5
  67. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-xlsx-export-payload.d.ts +5 -0
  68. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +2 -1
  69. package/dist/packages/sdk-ui/src/domains/query-execution/types.d.ts +55 -3
  70. package/dist/packages/sdk-ui/src/domains/shared/header/header-item-size.d.ts +30 -0
  71. package/dist/packages/sdk-ui/src/domains/shared/header/header-items-renderer.d.ts +19 -0
  72. package/dist/packages/sdk-ui/src/domains/shared/header/header-spacer-item.d.ts +9 -0
  73. package/dist/packages/sdk-ui/src/domains/shared/header/index.d.ts +6 -0
  74. package/dist/packages/sdk-ui/src/domains/shared/header/resolve-header-items.d.ts +17 -0
  75. package/dist/packages/sdk-ui/src/domains/shared/header/types.d.ts +98 -0
  76. package/dist/packages/sdk-ui/src/domains/shared/header/use-resolved-header-items.d.ts +10 -0
  77. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +3 -1
  78. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +0 -1
  79. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data.d.ts +3 -1
  80. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/chart-data.d.ts +3 -1
  81. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +3 -1
  82. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +3 -1
  83. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +3 -1
  84. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +1 -0
  85. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/alerts/index.d.ts +5 -0
  86. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data/index.d.ts +22 -0
  87. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data-options/index.d.ts +33 -0
  88. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/design-options/index.d.ts +21 -0
  89. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/highchart-options/highcharts-options-builder.d.ts +3 -0
  90. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-chart-builder.d.ts +3 -0
  91. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-node-colors.d.ts +10 -0
  92. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/types.d.ts +38 -0
  93. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -1
  94. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +12 -9
  95. package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/data-cell-formatters/data-cell-value-formatter.d.ts +1 -1
  96. package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
  97. package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/hooks/use-pivot-data-loading.d.ts +1 -0
  98. package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/resolve-pivot-container-size.d.ts +28 -0
  99. package/dist/packages/sdk-ui/src/domains/visualizations/components/sankey-chart.d.ts +30 -0
  100. package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/format-numbers.d.ts +1 -1
  101. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/cartesian-data.d.ts +1 -1
  102. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/categorical-data.d.ts +1 -1
  103. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/chart-data-service.d.ts +1 -1
  104. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/filter-and-aggregate-chart-data.d.ts +2 -2
  105. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/scatter-data.d.ts +2 -2
  106. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/types.d.ts +2 -1
  107. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +4 -4
  108. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +74 -30
  109. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/utils.d.ts +4 -4
  110. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +3 -0
  111. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/tooltip.d.ts +1 -1
  112. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +10 -1
  113. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/funnel-plot-options.d.ts +1 -1
  114. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/number-format-config.d.ts +12 -0
  115. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
  116. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +1 -1
  117. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +1 -1
  118. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +2 -2
  119. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/types.d.ts +12 -3
  120. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/filter-to-readable-label.d.ts +14 -0
  121. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +1 -0
  122. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +5 -0
  123. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +5 -0
  124. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/truncate-pill-label.d.ts +10 -0
  125. package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +6 -0
  126. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +8 -1
  127. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-excel-download.d.ts +1 -1
  128. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-narrative.d.ts +28 -0
  129. package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/types.d.ts +11 -0
  130. package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-excel-download.d.ts +1 -1
  131. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +15 -0
  132. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +7 -1
  133. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-excel-download.d.ts +1 -1
  134. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
  135. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/tabber.d.ts +17 -1
  136. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +41 -2
  137. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/widget-narrative-style.d.ts +31 -0
  138. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +36 -1
  139. package/dist/packages/sdk-ui/src/domains/widgets/helpers/excel-export-map-dimensions-measures.d.ts +17 -2
  140. package/dist/packages/sdk-ui/src/domains/widgets/helpers/number-format-config-to-numeric-mask.d.ts +5 -0
  141. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-track-widget-init.d.ts +44 -0
  142. package/dist/packages/sdk-ui/src/domains/widgets/hooks/widget-entity-id.d.ts +30 -0
  143. package/dist/packages/sdk-ui/src/domains/widgets/hooks/widget-tracking-adapters.d.ts +41 -0
  144. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +7 -1
  145. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-style-utils.d.ts +29 -0
  146. package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/to-widget-dto-panels.d.ts +29 -1
  147. package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +6 -1
  148. package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +2 -2
  149. package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +2 -1
  150. package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +1 -7
  151. package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +1 -9
  152. package/dist/packages/sdk-ui/src/infra/app/types.d.ts +32 -0
  153. package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context-provider.d.ts +1 -1
  154. package/dist/packages/sdk-ui/src/infra/formatting/format-data-set.d.ts +21 -0
  155. package/dist/packages/sdk-ui/src/infra/formatting/format-date.d.ts +67 -0
  156. package/dist/packages/sdk-ui/src/infra/formatting/format-number.d.ts +24 -0
  157. package/dist/packages/sdk-ui/src/infra/formatting/index.d.ts +5 -0
  158. package/dist/packages/sdk-ui/src/infra/modules/build-module-graph.d.ts +31 -0
  159. package/dist/packages/sdk-ui/src/infra/modules/build-module-registry.d.ts +31 -0
  160. package/dist/packages/sdk-ui/src/infra/modules/core-module-providers-tree.d.ts +11 -0
  161. package/dist/packages/sdk-ui/src/infra/modules/core-module.d.ts +26 -0
  162. package/dist/packages/sdk-ui/src/infra/modules/index.d.ts +3 -0
  163. package/dist/packages/sdk-ui/src/infra/modules/module-provider.d.ts +17 -0
  164. package/dist/packages/sdk-ui/src/infra/modules/modules-context.d.ts +20 -0
  165. package/dist/packages/sdk-ui/src/infra/modules/types.d.ts +79 -0
  166. package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +34 -6
  167. package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +219 -49
  168. package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/widget-plugin-registry.d.ts +3 -3
  169. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +22 -0
  170. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +22 -0
  171. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +22 -0
  172. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +22 -0
  173. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +22 -0
  174. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +22 -0
  175. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +22 -0
  176. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +22 -0
  177. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +22 -0
  178. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +22 -0
  179. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +22 -0
  180. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +22 -0
  181. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +22 -0
  182. package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +22 -0
  183. package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +44 -0
  184. package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +38 -2
  185. package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +4 -13
  186. package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -1
  187. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/get-dimension-name.d.ts +9 -0
  188. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +4 -3
  189. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/filters/get-filter-name.d.ts +10 -0
  190. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/filters/translate-filters-to-json.d.ts +3 -3
  191. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/get-query-element-summary.d.ts +23 -0
  192. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/get-measure-name.d.ts +10 -0
  193. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +4 -3
  194. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +3 -1
  195. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-from-json.d.ts +1 -1
  196. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-json.d.ts +4 -3
  197. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +3 -2
  198. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +1 -1
  199. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/process-measured-value.d.ts +14 -0
  200. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +70 -9
  201. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/to-widget-props.d.ts +3 -3
  202. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/translate-envelope-widget-from-json.d.ts +2 -3
  203. package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +1 -18
  204. package/dist/packages/sdk-ui/src/props.d.ts +55 -2
  205. package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +6 -1
  206. package/dist/packages/sdk-ui/src/public-api/beta.d.ts +6 -0
  207. package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
  208. package/dist/packages/sdk-ui/src/public-api/public.d.ts +3 -1
  209. package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +5 -3
  210. package/dist/packages/sdk-ui/src/shared/components/loading-overlay.d.ts +1 -0
  211. package/dist/packages/sdk-ui/src/shared/hooks/use-element-height.d.ts +19 -0
  212. package/dist/packages/sdk-ui/src/shared/hooks/use-synced-state.d.ts +23 -2
  213. package/dist/packages/sdk-ui/src/shared/utils/filter-relations.d.ts +8 -0
  214. package/dist/packages/sdk-ui/src/shared/utils/gradient.d.ts +5 -0
  215. package/dist/packages/sdk-ui/src/types.d.ts +78 -6
  216. package/dist/{use-hover-B6VmMb06.js → quota-notification-DqabeDbO.js} +24790 -22993
  217. package/dist/quota-notification-gYE6PTWA.cjs +750 -0
  218. package/dist/translations/de-de.cjs +1 -1
  219. package/dist/translations/de-de.js +27 -5
  220. package/dist/translations/en-us.cjs +1 -1
  221. package/dist/translations/en-us.js +1 -1
  222. package/dist/translations/es-ar.cjs +1 -1
  223. package/dist/translations/es-ar.js +27 -5
  224. package/dist/translations/es-es.cjs +1 -1
  225. package/dist/translations/es-es.js +27 -5
  226. package/dist/translations/fr-fr.cjs +1 -1
  227. package/dist/translations/fr-fr.js +27 -5
  228. package/dist/translations/it-it.cjs +1 -1
  229. package/dist/translations/it-it.js +29 -7
  230. package/dist/translations/ja-jp.cjs +1 -1
  231. package/dist/translations/ja-jp.js +27 -5
  232. package/dist/translations/ko-kr.cjs +1 -1
  233. package/dist/translations/ko-kr.js +27 -5
  234. package/dist/translations/nl-nl.cjs +1 -1
  235. package/dist/translations/nl-nl.js +29 -7
  236. package/dist/translations/pt-br.cjs +1 -1
  237. package/dist/translations/pt-br.js +27 -5
  238. package/dist/translations/ru-ru.cjs +1 -1
  239. package/dist/translations/ru-ru.js +27 -5
  240. package/dist/translations/tr-tr.cjs +1 -1
  241. package/dist/translations/tr-tr.js +27 -5
  242. package/dist/translations/zh-cn.cjs +1 -1
  243. package/dist/translations/zh-cn.js +27 -5
  244. package/dist/{types-CzgBH2kL.cjs → types-DSNnndG6.cjs} +1 -1
  245. package/dist/types-DecTaxy7.js +74 -0
  246. package/dist/{utils-BwGnDoB0.cjs → utils-Cpeyj9TN.cjs} +52 -52
  247. package/dist/{utils-CsV-iYtb.js → utils-L-HO2pCd.js} +2521 -2469
  248. package/dist/{widget-composer-C72Io-3c.cjs → widget-composer-CyWQaInf.cjs} +1 -1
  249. package/dist/{widget-composer-Bv_OVu1o.js → widget-composer-u6NMLm1C.js} +3 -3
  250. package/package.json +9 -8
  251. package/dist/apply-styled-options-to-query-23D9br-S.cjs +0 -1
  252. package/dist/apply-styled-options-to-query-BagjzMqm.js +0 -5992
  253. package/dist/dimensions-Bn1EaWiP.js +0 -204
  254. package/dist/dimensions-D8r34WRI.cjs +0 -1
  255. package/dist/index-C9G8giSk.cjs +0 -1
  256. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-toolbar.d.ts +0 -25
  257. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts +0 -16
  258. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/with-navigator-scroll-save.d.ts +0 -10
  259. package/dist/types-D3fPN43o.js +0 -74
  260. package/dist/use-hover-CaSOzp0i.cjs +0 -720
@@ -1,720 +0,0 @@
1
- "use strict";var AD=Object.defineProperty,PD=Object.defineProperties;var RD=Object.getOwnPropertyDescriptors;var Ac=Object.getOwnPropertySymbols;var a_=Object.prototype.hasOwnProperty,o_=Object.prototype.propertyIsEnumerable;var Bn=Math.pow,Dp=(e,t,r)=>t in e?AD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))a_.call(t,r)&&Dp(e,r,t[r]);if(Ac)for(var r of Ac(t))o_.call(t,r)&&Dp(e,r,t[r]);return e},B=(e,t)=>PD(e,RD(t));var Pc=e=>typeof e=="symbol"?e:e+"",xe=(e,t)=>{var r={};for(var n in e)a_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ac)for(var n of Ac(e))t.indexOf(n)<0&&o_.call(e,n)&&(r[n]=e[n]);return r};var Je=(e,t,r)=>Dp(e,typeof t!="symbol"?t+"":t,r);var Vt=(e,t,r)=>new Promise((n,i)=>{var a=u=>{try{s(r.next(u))}catch(c){i(c)}},o=u=>{try{s(r.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,o);s((r=r.apply(e,t)).next())});const w=require("./utils-BwGnDoB0.cjs"),k=require("react"),D=require("./apply-styled-options-to-query-23D9br-S.cjs"),fe=require("react/jsx-runtime"),Xr=require("react-dom");function TT(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 Q=TT(k),OD=TT(Xr);function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hl.apply(this,arguments)}function kD(e){let{i18n:t,defaultNS:r,children:n}=e;const i=k.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return k.createElement(w.I18nContext.Provider,{value:i},n)}function za(e,t){if(typeof e!="string")throw new Error("URL must be a string");if(!e.trim())throw new Error("URL cannot be empty");try{const r=new URL(e);return r.origin+(r.pathname.endsWith("/")?r.pathname:r.pathname+"/")+(t&&r.search?r.search:"")}catch(r){throw new Error(`Connection string ${e} is not a valid URL`)}}function s_(e,t){if(!e)throw new Error("Base URL is required");let r;try{r=new URL(e)}catch(u){throw new Error("Base URL is not valid")}if(!t||t==="/")return r.toString();try{return new URL(t).toString()}catch(u){}const n=new URL(r.toString()),[i="",a=""]=t.split(/\?(.+)/),o=r.pathname.replace(/\/$/,""),s=i.replace(/^\/+/,"").replace(/\/+$/,"").replace(/\/+/g,"/");if(n.pathname=s?`${o}/${s}`:o,a){const u=new URLSearchParams(a);for(const[c,d]of u.entries())n.searchParams.set(c,d)}return za(n.toString(),!0)}var qm={exports:{}},nt={};/** @license React v16.13.1
2
- * react-is.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */var l_;function DD(){if(l_)return nt;l_=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function E(A){if(typeof A=="object"&&A!==null){var R=A.$$typeof;switch(R){case t:switch(A=A.type,A){case u:case c:case n:case a:case i:case h:return A;default:switch(A=A&&A.$$typeof,A){case s:case d:case v:case m:case o:return A;default:return R}}case r:return R}}}function T(A){return E(A)===c}return nt.AsyncMode=u,nt.ConcurrentMode=c,nt.ContextConsumer=s,nt.ContextProvider=o,nt.Element=t,nt.ForwardRef=d,nt.Fragment=n,nt.Lazy=v,nt.Memo=m,nt.Portal=r,nt.Profiler=a,nt.StrictMode=i,nt.Suspense=h,nt.isAsyncMode=function(A){return T(A)||E(A)===u},nt.isConcurrentMode=T,nt.isContextConsumer=function(A){return E(A)===s},nt.isContextProvider=function(A){return E(A)===o},nt.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},nt.isForwardRef=function(A){return E(A)===d},nt.isFragment=function(A){return E(A)===n},nt.isLazy=function(A){return E(A)===v},nt.isMemo=function(A){return E(A)===m},nt.isPortal=function(A){return E(A)===r},nt.isProfiler=function(A){return E(A)===a},nt.isStrictMode=function(A){return E(A)===i},nt.isSuspense=function(A){return E(A)===h},nt.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===c||A===a||A===i||A===h||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===v||A.$$typeof===m||A.$$typeof===o||A.$$typeof===s||A.$$typeof===d||A.$$typeof===b||A.$$typeof===C||A.$$typeof===x||A.$$typeof===g)},nt.typeOf=E,nt}var it={};/** @license React v16.13.1
9
- * react-is.development.js
10
- *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */var u_;function ND(){return u_||(u_=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function E(J){return typeof J=="string"||typeof J=="function"||J===n||J===c||J===a||J===i||J===h||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===v||J.$$typeof===m||J.$$typeof===o||J.$$typeof===s||J.$$typeof===d||J.$$typeof===b||J.$$typeof===C||J.$$typeof===x||J.$$typeof===g)}function T(J){if(typeof J=="object"&&J!==null){var _e=J.$$typeof;switch(_e){case t:var ve=J.type;switch(ve){case u:case c:case n:case a:case i:case h:return ve;default:var Ae=ve&&ve.$$typeof;switch(Ae){case s:case d:case v:case m:case o:return Ae;default:return _e}}case r:return _e}}}var A=u,R=c,N=s,I=o,H=t,G=d,Y=n,O=v,F=m,X=r,W=a,V=i,z=h,q=!1;function ee(J){return q||(q=!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.")),j(J)||T(J)===u}function j(J){return T(J)===c}function K(J){return T(J)===s}function ie(J){return T(J)===o}function ne(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function re(J){return T(J)===d}function oe(J){return T(J)===n}function se(J){return T(J)===v}function de(J){return T(J)===m}function ce(J){return T(J)===r}function ge(J){return T(J)===a}function Se(J){return T(J)===i}function ye(J){return T(J)===h}it.AsyncMode=A,it.ConcurrentMode=R,it.ContextConsumer=N,it.ContextProvider=I,it.Element=H,it.ForwardRef=G,it.Fragment=Y,it.Lazy=O,it.Memo=F,it.Portal=X,it.Profiler=W,it.StrictMode=V,it.Suspense=z,it.isAsyncMode=ee,it.isConcurrentMode=j,it.isContextConsumer=K,it.isContextProvider=ie,it.isElement=ne,it.isForwardRef=re,it.isFragment=oe,it.isLazy=se,it.isMemo=de,it.isPortal=ce,it.isProfiler=ge,it.isStrictMode=Se,it.isSuspense=ye,it.isValidElementType=E,it.typeOf=T}()),it}process.env.NODE_ENV==="production"?qm.exports=DD():qm.exports=ND();var ST=qm.exports,Ym={exports:{}};/*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var Np,c_;function ID(){if(c_)return Np;c_=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Np=i()?Object.assign:function(a,o){for(var s,u=n(a),c,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var h in s)t.call(s,h)&&(u[h]=s[h]);if(e){c=e(s);for(var p=0;p<c.length;p++)r.call(s,c[p])&&(u[c[p]]=s[c[p]])}}return u},Np}var Ip,d_;function Tv(){if(d_)return Ip;d_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ip=e,Ip}var Lp,h_;function ET(){return h_||(h_=1,Lp=Function.call.bind(Object.prototype.hasOwnProperty)),Lp}var Fp,f_;function LD(){if(f_)return Fp;f_=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tv(),r={},n=ET();e=function(a){var o="Warning: "+a;typeof console!="undefined"&&console.error(o);try{throw new Error(o)}catch(s){}}}function i(a,o,s,u,c){if(process.env.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var h;try{if(typeof a[d]!="function"){var p=Error((u||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=a[d](o,d,u,s,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+d+"` 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 i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Fp=i,Fp}var $p,p_;function FD(){if(p_)return $p;p_=1;var e=ST,t=ID(),r=Tv(),n=ET(),i=LD(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console!="undefined"&&console.error(u);try{throw new Error(u)}catch(c){}});function o(){return null}return $p=function(s,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(j){var K=j&&(c&&j[c]||j[d]);if(typeof K=="function")return K}var p="<<anonymous>>",m={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:x(),arrayOf:E,element:T(),elementType:A(),instanceOf:R,node:G(),objectOf:I,oneOf:N,oneOfType:H,shape:O,exact:F};function v(j,K){return j===K?j!==0||1/j===1/K:j!==j&&K!==K}function g(j,K){this.message=j,this.data=K&&typeof K=="object"?K:{},this.stack=""}g.prototype=Error.prototype;function b(j){if(process.env.NODE_ENV!=="production")var K={},ie=0;function ne(oe,se,de,ce,ge,Se,ye){if(ce=ce||p,Se=Se||de,ye!==r){if(u){var J=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 J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var _e=ce+":"+de;!K[_e]&&ie<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Se+"` prop on `"+ce+"`. 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."),K[_e]=!0,ie++)}}return se[de]==null?oe?se[de]===null?new g("The "+ge+" `"+Se+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new g("The "+ge+" `"+Se+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:j(se,de,ce,ge,Se)}var re=ne.bind(null,!1);return re.isRequired=ne.bind(null,!0),re}function C(j){function K(ie,ne,re,oe,se,de){var ce=ie[ne],ge=V(ce);if(ge!==j){var Se=z(ce);return new g("Invalid "+oe+" `"+se+"` of type "+("`"+Se+"` supplied to `"+re+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return b(K)}function x(){return b(o)}function E(j){function K(ie,ne,re,oe,se){if(typeof j!="function")return new g("Property `"+se+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var de=ie[ne];if(!Array.isArray(de)){var ce=V(de);return new g("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected an array."))}for(var ge=0;ge<de.length;ge++){var Se=j(de,ge,re,oe,se+"["+ge+"]",r);if(Se instanceof Error)return Se}return null}return b(K)}function T(){function j(K,ie,ne,re,oe){var se=K[ie];if(!s(se)){var de=V(se);return new g("Invalid "+re+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return b(j)}function A(){function j(K,ie,ne,re,oe){var se=K[ie];if(!e.isValidElementType(se)){var de=V(se);return new g("Invalid "+re+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return b(j)}function R(j){function K(ie,ne,re,oe,se){if(!(ie[ne]instanceof j)){var de=j.name||p,ce=ee(ie[ne]);return new g("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected ")+("instance of `"+de+"`."))}return null}return b(K)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function K(ie,ne,re,oe,se){for(var de=ie[ne],ce=0;ce<j.length;ce++)if(v(de,j[ce]))return null;var ge=JSON.stringify(j,function(ye,J){var _e=z(J);return _e==="symbol"?String(J):J});return new g("Invalid "+oe+" `"+se+"` of value `"+String(de)+"` "+("supplied to `"+re+"`, expected one of "+ge+"."))}return b(K)}function I(j){function K(ie,ne,re,oe,se){if(typeof j!="function")return new g("Property `"+se+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var de=ie[ne],ce=V(de);if(ce!=="object")return new g("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected an object."));for(var ge in de)if(n(de,ge)){var Se=j(de,ge,re,oe,se+"."+ge,r);if(Se instanceof Error)return Se}return null}return b(K)}function H(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var K=0;K<j.length;K++){var ie=j[K];if(typeof ie!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ie)+" at index "+K+"."),o}function ne(re,oe,se,de,ce){for(var ge=[],Se=0;Se<j.length;Se++){var ye=j[Se],J=ye(re,oe,se,de,ce,r);if(J==null)return null;J.data&&n(J.data,"expectedType")&&ge.push(J.data.expectedType)}var _e=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new g("Invalid "+de+" `"+ce+"` supplied to "+("`"+se+"`"+_e+"."))}return b(ne)}function G(){function j(K,ie,ne,re,oe){return X(K[ie])?null:new g("Invalid "+re+" `"+oe+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return b(j)}function Y(j,K,ie,ne,re){return new g((j||"React class")+": "+K+" type `"+ie+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function O(j){function K(ie,ne,re,oe,se){var de=ie[ne],ce=V(de);if(ce!=="object")return new g("Invalid "+oe+" `"+se+"` of type `"+ce+"` "+("supplied to `"+re+"`, expected `object`."));for(var ge in j){var Se=j[ge];if(typeof Se!="function")return Y(re,oe,se,ge,z(Se));var ye=Se(de,ge,re,oe,se+"."+ge,r);if(ye)return ye}return null}return b(K)}function F(j){function K(ie,ne,re,oe,se){var de=ie[ne],ce=V(de);if(ce!=="object")return new g("Invalid "+oe+" `"+se+"` of type `"+ce+"` "+("supplied to `"+re+"`, expected `object`."));var ge=t({},ie[ne],j);for(var Se in ge){var ye=j[Se];if(n(j,Se)&&typeof ye!="function")return Y(re,oe,se,Se,z(ye));if(!ye)return new g("Invalid "+oe+" `"+se+"` key `"+Se+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(ie[ne],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(j),null," "));var J=ye(de,Se,re,oe,se+"."+Se,r);if(J)return J}return null}return b(K)}function X(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(X);if(j===null||s(j))return!0;var K=h(j);if(K){var ie=K.call(j),ne;if(K!==j.entries){for(;!(ne=ie.next()).done;)if(!X(ne.value))return!1}else for(;!(ne=ie.next()).done;){var re=ne.value;if(re&&!X(re[1]))return!1}}else return!1;return!0;default:return!1}}function W(j,K){return j==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function V(j){var K=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":W(K,j)?"symbol":K}function z(j){if(typeof j=="undefined"||j===null)return""+j;var K=V(j);if(K==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return K}function q(j){var K=z(j);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function ee(j){return!j.constructor||!j.constructor.name?p:j.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},$p}var Bp,m_;function $D(){if(m_)return Bp;m_=1;var e=Tv();function t(){}function r(){}return r.resetWarningCache=t,Bp=function(){function n(o,s,u,c,d,h){if(h!==e){var p=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 p.name="Invariant Violation",p}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Bp}if(process.env.NODE_ENV!=="production"){var BD=ST,HD=!0;Ym.exports=FD()(BD.isElement,HD)}else Ym.exports=$D()();var zD=Ym.exports;const _=w.getDefaultExportFromCjs(zD);function MT(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=MT(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function je(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=MT(e))&&(n&&(n+=" "),n+=t);return n}function Dt(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let o="",s=!0;for(let u=0;u<a.length;u+=1){const c=a[u];c&&(o+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(o+=" "+r[c]))}n[i]=o}return n}function jD(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 AT(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=jD(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function PT(e,t,...r){return e[t]===void 0?null:AT(e,t,...r)}function Xm(){return null}PT.isRequired=AT;Xm.isRequired=Xm;const Vn=process.env.NODE_ENV==="production"?Xm:PT,g_=e=>e,WD=()=>{let e=g_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=g_}}},UD=WD(),VD={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 bt(e,t,r="Mui"){const n=VD[t];return n?`${r}-${n}`:`${UD.generate(e)}-${t}`}function _t(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=bt(e,i,r)}),n}function GD(e){return bt("MuiPagination",e)}_t("MuiPagination",["root","ul","outlined","text"]);function Sv({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=Q.useRef(e!==void 0),[a,o]=Q.useState(t),s=i?e:a;if(process.env.NODE_ENV!=="production"){Q.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${n} state of ${r} to be ${i?"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(`
21
- `))},[n,r,e]);const{current:c}=Q.useRef(t);Q.useEffect(()=>{!i&&!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(`
22
- `))},[JSON.stringify(t)])}const u=Q.useCallback(c=>{i||o(c)},[]);return[s,u]}function qD(e={}){const H=e,{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:i=1,disabled:a=!1,hideNextButton:o=!1,hidePrevButton:s=!1,onChange:u,page:c,showFirstButton:d=!1,showLastButton:h=!1,siblingCount:p=1}=H,m=xe(H,["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"]),[v,g]=Sv({controlled:c,default:i,name:r,state:"page"}),b=(G,Y)=>{c||g(Y),u&&u(G,Y)},C=(G,Y)=>{const O=Y-G+1;return Array.from({length:O},(F,X)=>G+X)},x=C(1,Math.min(t,n)),E=C(Math.max(n-t+1,t+1),n),T=Math.max(Math.min(v-p,n-t-p*2-1),t+2),A=Math.min(Math.max(v+p,t+p*2+2),n-t-1),R=[...d?["first"]:[],...s?[]:["previous"],...x,...T>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...C(T,A),...A<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...E,...o?[]:["next"],...h?["last"]:[]],N=G=>{switch(G){case"first":return 1;case"previous":return v-1;case"next":return v+1;case"last":return n;default:return null}},I=R.map(G=>typeof G=="number"?{onClick:Y=>{b(Y,G)},type:"page",page:G,selected:G===v,disabled:a,"aria-current":G===v?"page":void 0}:{onClick:Y=>{b(Y,N(G))},type:G,page:N(G),selected:!1,disabled:a||!G.includes("ellipsis")&&(G==="next"||G==="last"?v>=n:v<=1)});return M({items:I},m)}function xi(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function YD(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ev(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}].`),YD(e,t,r)}function XD(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ji(e){if(e.type)return e;if(e.charAt(0)==="#")return Ji(XD(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
23
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:xi(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
24
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:xi(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const KD=e=>{const t=Ji(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},pl=(e,t)=>{try{return KD(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function gh(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function RT(e){e=Ji(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(c,d=(c+r/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const u=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),gh({type:s,values:u})}function Km(e){e=Ji(e);let t=e.type==="hsl"||e.type==="hsla"?Ji(RT(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:Bn((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function v_(e,t){const r=Km(e),n=Km(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Rt(e,t){return e=Ji(e),t=Ev(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,gh(e)}function Rc(e,t,r){try{return Rt(e,t)}catch(n){return e}}function vh(e,t){if(e=Ji(e),t=Ev(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return gh(e)}function vt(e,t,r){try{return vh(e,t)}catch(n){return e}}function yh(e,t){if(e=Ji(e),t=Ev(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return gh(e)}function yt(e,t,r){try{return yh(e,t)}catch(n){return e}}function Zm(e,t=.15){return Km(e)>.5?vh(e,t):yh(e,t)}function Oc(e,t,r){try{return Zm(e,t)}catch(n){return e}}const ZD=Q.createContext(),bh=()=>{const e=Q.useContext(ZD);return e!=null?e:!1};function QD(e){return bt("MuiPaginationItem",e)}const Ar=_t("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),us=_.oneOfType([_.func,_.object]);function Ri(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function JD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eN(e,t,r,n,i){const a=e[t],o=i||t;if(a==null||typeof window=="undefined")return null;let s;return typeof a=="function"&&!JD(a)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${o}\` 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 _h=Ri(_.elementType,eN);function Rd(e){try{return e.matches(":focus-visible")}catch(t){process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
25
- `))}return!1}function Le(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":xi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Qm={exports:{}},dt={};/**
26
- * @license React
27
- * react-is.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var y_;function tN(){if(y_)return dt;y_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case i:case n:case u:case c:return g;default:switch(g=g&&g.$$typeof,g){case o:case s:case h:case d:return g;case a:return g;default:return b}}case t:return b}}}return dt.ContextConsumer=a,dt.ContextProvider=o,dt.Element=e,dt.ForwardRef=s,dt.Fragment=r,dt.Lazy=h,dt.Memo=d,dt.Portal=t,dt.Profiler=i,dt.StrictMode=n,dt.Suspense=u,dt.SuspenseList=c,dt.isContextConsumer=function(g){return v(g)===a},dt.isContextProvider=function(g){return v(g)===o},dt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},dt.isForwardRef=function(g){return v(g)===s},dt.isFragment=function(g){return v(g)===r},dt.isLazy=function(g){return v(g)===h},dt.isMemo=function(g){return v(g)===d},dt.isPortal=function(g){return v(g)===t},dt.isProfiler=function(g){return v(g)===i},dt.isStrictMode=function(g){return v(g)===n},dt.isSuspense=function(g){return v(g)===u},dt.isSuspenseList=function(g){return v(g)===c},dt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===n||g===u||g===c||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===d||g.$$typeof===o||g.$$typeof===a||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},dt.typeOf=v,dt}var ht={};/**
34
- * @license React
35
- * react-is.development.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var b_;function rN(){return b_||(b_=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case t:switch(g=g.type,g){case n:case a:case i:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case u:case p:case h:return g;case o:return g;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");ht.ContextConsumer=o,ht.ContextProvider=s,ht.Element=t,ht.ForwardRef=u,ht.Fragment=n,ht.Lazy=p,ht.Memo=h,ht.Portal=r,ht.Profiler=a,ht.StrictMode=i,ht.Suspense=c,ht.SuspenseList=d,ht.isContextConsumer=function(g){return e(g)===o},ht.isContextProvider=function(g){return e(g)===s},ht.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},ht.isForwardRef=function(g){return e(g)===u},ht.isFragment=function(g){return e(g)===n},ht.isLazy=function(g){return e(g)===p},ht.isMemo=function(g){return e(g)===h},ht.isPortal=function(g){return e(g)===r},ht.isProfiler=function(g){return e(g)===a},ht.isStrictMode=function(g){return e(g)===i},ht.isSuspense=function(g){return e(g)===c},ht.isSuspenseList=function(g){return e(g)===d},ht.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===a||g===i||g===c||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===h||g.$$typeof===s||g.$$typeof===o||g.$$typeof===u||g.$$typeof===v||g.getModuleId!==void 0)},ht.typeOf=e}()),ht}process.env.NODE_ENV==="production"?Qm.exports=tN():Qm.exports=rN();var Od=Qm.exports;function Gn(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 OT(e){if(Q.isValidElement(e)||Od.isValidElementType(e)||!Gn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=OT(e[r])}),t}function Dr(e,t,r={clone:!0}){const n=r.clone?M({},e):e;return Gn(e)&&Gn(t)&&Object.keys(t).forEach(i=>{Q.isValidElement(t[i])||Od.isValidElementType(t[i])?n[i]=t[i]:Gn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Gn(e[i])?n[i]=Dr(e[i],t[i],r):r.clone?n[i]=Gn(t[i])?OT(t[i]):t[i]:n[i]=t[i]}),n}function El(e,t){return t?Dr(e,t,{clone:!1}):e}const aa=process.env.NODE_ENV!=="production"?_.oneOfType([_.number,_.string,_.object,_.array]):{};function nN(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var o,s;const a=/min-width:\s*([0-9.]+)/;return+(((o=n.match(a))==null?void 0:o[1])||0)-+(((s=i.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},M({},t)):t}function iN(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function aN(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
42
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:xi(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function oN(e){const t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function r(a,o){a.up=(...s)=>t(e.breakpoints.up(...s),o),a.down=(...s)=>t(e.breakpoints.down(...s),o),a.between=(...s)=>t(e.breakpoints.between(...s),o),a.only=(...s)=>t(e.breakpoints.only(...s),o),a.not=(...s)=>{const u=t(e.breakpoints.not(...s),o);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},i=a=>(r(n,a),n);return r(i),B(M({},e),{containerQueries:i})}const wh={xs:0,sm:600,md:900,lg:1200,xl:1536},__={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wh[e]}px)`},sN={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:wh[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ti(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||__;return t.reduce((o,s,u)=>(o[a.up(a.keys[u])]=r(t[u]),o),{})}if(typeof t=="object"){const a=n.breakpoints||__;return Object.keys(t).reduce((o,s)=>{if(iN(a.keys,s)){const u=aN(n.containerQueries?n:sN,s);u&&(o[u]=r(t[s],s))}else if(Object.keys(a.values||wh).includes(s)){const u=a.up(s);o[u]=r(t[s],s)}else{const u=s;o[u]=t[u]}return o},{})}return r(t)}function kT(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function DT(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function lN(e,...t){const r=kT(e),n=[r,...t].reduce((i,a)=>Dr(i,a),{});return DT(Object.keys(r),n)}function uN(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function cN({values:e,breakpoints:t,base:r}){const n=r||uN(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,u)=>(Array.isArray(e)?(o[s]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function Ch(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function kd(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Ch(e,r)||n,t&&(i=t(i,n,e)),i}function Yt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],u=o.theme,c=Ch(u,n)||{};return ti(o,s,h=>{let p=kd(c,i,h);return h===p&&typeof h=="string"&&(p=kd(c,i,`${t}${h==="default"?"":Le(h)}`,h)),r===!1?p:{[r]:p}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:aa}:{},a.filterProps=[t],a}function dN(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const hN={m:"margin",p:"padding"},fN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},w_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pN=dN(e=>{if(e.length>2)if(w_[e])e=w_[e];else return[e];const[t,r]=e.split(""),n=hN[t],i=fN[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),xh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Th=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],mN=[...xh,...Th];function Cu(e,t,r,n){var a;const i=(a=Ch(e,t,!0))!=null?a:r;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${o}.`),typeof i=="string"?`calc(${o} * ${i})`:i*o):Array.isArray(i)?o=>{if(typeof o=="string")return o;const s=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
43
- `)):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(`
44
- `)));const u=i[s];return o>=0?u:typeof u=="number"?-u:`-${u}`}: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(`
45
- `)),()=>{})}function Sh(e){return Cu(e,"spacing",8,"spacing")}function cs(e,t){return typeof t=="string"||t==null?t:e(t)}function gN(e,t){return r=>e.reduce((n,i)=>(n[i]=cs(t,r),n),{})}function vN(e,t,r,n){if(!t.includes(r))return null;const i=pN(r),a=gN(i,n),o=e[r];return ti(e,o,a)}function NT(e,t){const r=Sh(e.theme);return Object.keys(e).map(n=>vN(e,t,n,r)).reduce(El,{})}function Ht(e){return NT(e,xh)}Ht.propTypes=process.env.NODE_ENV!=="production"?xh.reduce((e,t)=>(e[t]=aa,e),{}):{};Ht.filterProps=xh;function zt(e){return NT(e,Th)}zt.propTypes=process.env.NODE_ENV!=="production"?Th.reduce((e,t)=>(e[t]=aa,e),{}):{};zt.filterProps=Th;process.env.NODE_ENV!=="production"&&mN.reduce((e,t)=>(e[t]=aa,e),{});function Eh(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?El(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function pn(e){return typeof e!="number"?e:`${e}px solid`}function _n(e,t){return Yt({prop:e,themeKey:"borders",transform:t})}const yN=_n("border",pn),bN=_n("borderTop",pn),_N=_n("borderRight",pn),wN=_n("borderBottom",pn),CN=_n("borderLeft",pn),xN=_n("borderColor"),TN=_n("borderTopColor"),SN=_n("borderRightColor"),EN=_n("borderBottomColor"),MN=_n("borderLeftColor"),AN=_n("outline",pn),PN=_n("outlineColor"),Mh=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Cu(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:cs(t,n)});return ti(e,e.borderRadius,r)}return null};Mh.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:aa}:{};Mh.filterProps=["borderRadius"];Eh(yN,bN,_N,wN,CN,xN,TN,SN,EN,MN,Mh,AN,PN);const Ah=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Cu(e.theme,"spacing",8,"gap"),r=n=>({gap:cs(t,n)});return ti(e,e.gap,r)}return null};Ah.propTypes=process.env.NODE_ENV!=="production"?{gap:aa}:{};Ah.filterProps=["gap"];const Ph=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Cu(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:cs(t,n)});return ti(e,e.columnGap,r)}return null};Ph.propTypes=process.env.NODE_ENV!=="production"?{columnGap:aa}:{};Ph.filterProps=["columnGap"];const Rh=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Cu(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:cs(t,n)});return ti(e,e.rowGap,r)}return null};Rh.propTypes=process.env.NODE_ENV!=="production"?{rowGap:aa}:{};Rh.filterProps=["rowGap"];const RN=Yt({prop:"gridColumn"}),ON=Yt({prop:"gridRow"}),kN=Yt({prop:"gridAutoFlow"}),DN=Yt({prop:"gridAutoColumns"}),NN=Yt({prop:"gridAutoRows"}),IN=Yt({prop:"gridTemplateColumns"}),LN=Yt({prop:"gridTemplateRows"}),FN=Yt({prop:"gridTemplateAreas"}),$N=Yt({prop:"gridArea"});Eh(Ah,Ph,Rh,RN,ON,kN,DN,NN,IN,LN,FN,$N);function jo(e,t){return t==="grey"?t:e}const BN=Yt({prop:"color",themeKey:"palette",transform:jo}),HN=Yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jo}),zN=Yt({prop:"backgroundColor",themeKey:"palette",transform:jo});Eh(BN,HN,zN);function Yr(e){return e<=1&&e!==0?`${e*100}%`:e}const jN=Yt({prop:"width",transform:Yr}),Mv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,o,s,u;const n=((o=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:o[r])||wh[r];return n?((u=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Yr(r)}};return ti(e,e.maxWidth,t)}return null};Mv.filterProps=["maxWidth"];const WN=Yt({prop:"minWidth",transform:Yr}),UN=Yt({prop:"height",transform:Yr}),VN=Yt({prop:"maxHeight",transform:Yr}),GN=Yt({prop:"minHeight",transform:Yr});Yt({prop:"size",cssProperty:"width",transform:Yr});Yt({prop:"size",cssProperty:"height",transform:Yr});const qN=Yt({prop:"boxSizing"});Eh(jN,Mv,WN,UN,VN,GN,qN);const xu={border:{themeKey:"borders",transform:pn},borderTop:{themeKey:"borders",transform:pn},borderRight:{themeKey:"borders",transform:pn},borderBottom:{themeKey:"borders",transform:pn},borderLeft:{themeKey:"borders",transform:pn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mh},color:{themeKey:"palette",transform:jo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jo},backgroundColor:{themeKey:"palette",transform:jo},p:{style:zt},pt:{style:zt},pr:{style:zt},pb:{style:zt},pl:{style:zt},px:{style:zt},py:{style:zt},padding:{style:zt},paddingTop:{style:zt},paddingRight:{style:zt},paddingBottom:{style:zt},paddingLeft:{style:zt},paddingX:{style:zt},paddingY:{style:zt},paddingInline:{style:zt},paddingInlineStart:{style:zt},paddingInlineEnd:{style:zt},paddingBlock:{style:zt},paddingBlockStart:{style:zt},paddingBlockEnd:{style:zt},m:{style:Ht},mt:{style:Ht},mr:{style:Ht},mb:{style:Ht},ml:{style:Ht},mx:{style:Ht},my:{style:Ht},margin:{style:Ht},marginTop:{style:Ht},marginRight:{style:Ht},marginBottom:{style:Ht},marginLeft:{style:Ht},marginX:{style:Ht},marginY:{style:Ht},marginInline:{style:Ht},marginInlineStart:{style:Ht},marginInlineEnd:{style:Ht},marginBlock:{style:Ht},marginBlockStart:{style:Ht},marginBlockEnd:{style:Ht},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:Ah},rowGap:{style:Rh},columnGap:{style:Ph},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yr},maxWidth:{style:Mv},minWidth:{transform:Yr},height:{transform:Yr},maxHeight:{transform:Yr},minHeight:{transform:Yr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function YN(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function XN(e,t){return typeof e=="function"?e(t):e}function KN(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=Ch(i,c)||{};return h?h(o):ti(o,n,v=>{let g=kd(p,d,v);return v===g&&typeof v=="string"&&(g=kd(p,d,`${r}${v==="default"?"":Le(v)}`,v)),u===!1?g:{[u]:g}})}function t(r){var s;const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=(s=i.unstable_sxConfig)!=null?s:xu;function o(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const d=kT(i.breakpoints),h=Object.keys(d);let p=d;return Object.keys(c).forEach(m=>{const v=XN(c[m],i);if(v!=null)if(typeof v=="object")if(a[m])p=El(p,e(m,v,i,a));else{const g=ti({theme:i},v,b=>({[m]:b}));YN(g,v)?p[m]=t({sx:v,theme:i}):p=El(p,g)}else p=El(p,e(m,v,i,a))}),nN(i,DT(h,p))}return Array.isArray(n)?n.map(o):o(n)}return t}const Zo=KN();Zo.filterProps=["sx"];const ZN=e=>{var n,i;const t={systemProps:{},otherProps:{}},r=(i=(n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)!=null?i:xu;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function IT(e){const o=e,{sx:t}=o,r=xe(o,["sx"]),{systemProps:n,otherProps:i}=ZN(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...s)=>{const u=t(...s);return Gn(u)?M(M({},n),u):n}:a=M(M({},n),t),B(M({},i),{sx:a})}exports.jsx=function(t,r){var n=arguments;if(r==null||!w.hasOwn.call(r,"css"))return Q.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=w.Emotion$1,a[1]=w.createEmotionProps(t,r);for(var o=2;o<i;o++)a[o]=n[o];return Q.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(exports.jsx||(exports.jsx={}));var QN=w.withEmotionCache(function(e,t){var r=e.styles,n=w.serializeStyles([r],void 0,Q.useContext(w.ThemeContext)),i=Q.useRef();return w.useInsertionEffectWithLayoutFallback(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,u=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),u!==null&&(s=!0,u.setAttribute("data-emotion",a),o.hydrate([u])),i.current=[o,s],function(){o.flush()}},[t]),w.useInsertionEffectWithLayoutFallback(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&w.insertStyles(t,n.next,!0),o.tags.length){var u=o.tags[o.tags.length-1].nextElementSibling;o.before=u,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function Oh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return w.serializeStyles(t)}function Tu(){var e=Oh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var JN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LT=w.memoize(function(e){return JN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),eI=!1,tI=LT,rI=function(t){return t!=="theme"},C_=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?tI:rI},x_=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},nI=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return w.registerStyles(r,n,i),w.useInsertionEffectAlwaysWithSyncFallback(function(){return w.insertStyles(r,n,i)}),null},iI=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=x_(t,r,n),u=s||C_(i),c=!u("as");return function(){var d=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var p=d[0];h.push(p[0]);for(var m=d.length,v=1;v<m;v++)h.push(d[v],p[v])}var g=w.withEmotionCache(function(b,C,x){var E=c&&b.as||i,T="",A=[],R=b;if(b.theme==null){R={};for(var N in b)R[N]=b[N];R.theme=Q.useContext(w.ThemeContext)}typeof b.className=="string"?T=w.getRegisteredStyles(C.registered,A,b.className):b.className!=null&&(T=b.className+" ");var I=w.serializeStyles(h.concat(A),C.registered,R);T+=C.key+"-"+I.name,o!==void 0&&(T+=" "+o);var H=c&&s===void 0?C_(E):u,G={};for(var Y in b)c&&Y==="as"||H(Y)&&(G[Y]=b[Y]);return G.className=T,x&&(G.ref=x),Q.createElement(Q.Fragment,null,Q.createElement(nI,{cache:C,serialized:I,isStringTag:typeof E=="string"}),Q.createElement(E,G))});return g.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=h,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return o===void 0&&eI?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(b,C){var x=e(b,Hl({},r,C,{shouldForwardProp:x_(g,C,!0)}));return x.apply(void 0,h)},g}},aI=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ye=iI.bind(null);aI.forEach(function(e){Ye[e]=Ye(e)});function oI(e){return e==null||Object.keys(e).length===0}function FT(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(oI(i)?r:i):t;return fe.jsx(QN,{styles:n})}process.env.NODE_ENV!=="production"&&(FT.propTypes={defaultTheme:_.object,styles:_.oneOfType([_.array,_.string,_.object,_.func])});/**
46
- * @mui/styled-engine v6.4.11
47
- *
48
- * @license MIT
49
- * This source code is licensed under the MIT license found in the
50
- * LICENSE file in the root directory of this source tree.
51
- */function sI(e,t){const r=Ye(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
52
- `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function lI(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const T_=[];function S_(e){return T_[0]=e,w.serializeStyles(T_)}const uI=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)=>B(M({},r),{[n.key]:n.val}),{})};function cI(e){const p=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=p,i=xe(p,["values","unit","step"]),a=uI(t),o=Object.keys(a);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function u(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function c(m,v){const g=o.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(g!==-1&&typeof t[o[g]]=="number"?t[o[g]]:v)-n/100}${r})`}function d(m){return o.indexOf(m)+1<o.length?c(m,o[o.indexOf(m)+1]):s(m)}function h(m){const v=o.indexOf(m);return v===0?s(o[1]):v===o.length-1?u(o[v]):c(m,o[o.indexOf(m)+1]).replace("@media","@media not all and")}return M({keys:o,values:a,up:s,down:u,between:c,only:d,not:h,unit:r},i)}const dI={borderRadius:4};function $T(e=8,t=Sh({spacing:e})){if(e.mui)return e;const 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(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function hI(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function kh(e={},...t){const d=e,{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=d,o=xe(d,["breakpoints","palette","spacing","shape"]),s=cI(r),u=$T(i);let c=Dr({breakpoints:s,direction:"ltr",components:{},palette:M({mode:"light"},n),spacing:u,shape:M(M({},dI),a)},o);return c=oN(c),c.applyStyles=hI,c=t.reduce((h,p)=>Dr(h,p),c),c.unstable_sxConfig=M(M({},xu),o==null?void 0:o.unstable_sxConfig),c.unstable_sx=function(p){return Zo({sx:p,theme:this})},c}function fI(e){return Object.keys(e).length===0}function pI(e=null){const t=Q.useContext(w.ThemeContext);return!t||fI(t)?e:t}const mI=kh();function Av(e=mI){return pI(e)}function BT({styles:e,themeId:t,defaultTheme:r={}}){const n=Av(r),i=typeof e=="function"?e(t&&n[t]||n):e;return fe.jsx(FT,{styles:i})}process.env.NODE_ENV!=="production"&&(BT.propTypes={defaultTheme:_.object,styles:_.oneOfType([_.array,_.func,_.number,_.object,_.string,_.bool]),themeId:_.string});function HT(e,t=""){return e.displayName||e.name||t}function E_(e,t,r){const n=HT(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function gI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return HT(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Od.ForwardRef:return E_(e,e.render,"ForwardRef");case Od.Memo:return E_(e,e.type,"memo");default:return}}}function zT(e){const i=e,{variants:t}=i,r=xe(i,["variants"]),n={variants:t,style:S_(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=S_(a.style))}),n}const vI=kh();function Hp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yI(e){return e?(t,r)=>r[e]:null}function bI(e,t,r){e.theme=CI(e.theme)?r:e.theme[t]||e.theme}function cd(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>cd(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const n=r,{variants:a}=n;i=xe(n,["variants"])}return jT(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function jT(e,t,r=[]){var i;let n;e:for(let a=0;a<t.length;a+=1){const o=t[a];if(typeof o.props=="function"){if(n!=null||(n=B(M(M({},e),e.ownerState),{ownerState:e.ownerState})),!o.props(n))continue}else for(const s in o.props)if(e[s]!==o.props[s]&&((i=e.ownerState)==null?void 0:i[s])!==o.props[s])continue e;typeof o.style=="function"?(n!=null||(n=B(M(M({},e),e.ownerState),{ownerState:e.ownerState})),r.push(o.style(n))):r.push(o.style)}return r}function WT(e={}){const{themeId:t,defaultTheme:r=vI,rootShouldForwardProp:n=Hp,slotShouldForwardProp:i=Hp}=e;function a(s){bI(s,t,r)}return(s,u={})=>{lI(s,R=>R.filter(N=>N!==Zo));const A=u,{name:c,slot:d,skipVariantsResolver:h,skipSx:p,overridesResolver:m=yI(UT(d))}=A,v=xe(A,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),g=h!==void 0?h:d&&d!=="Root"&&d!=="root"||!1,b=p||!1;let C=Hp;d==="Root"||d==="root"?C=n:d?C=i:xI(s)&&(C=void 0);const x=sI(s,M({shouldForwardProp:C,label:wI(c,d)},v)),E=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(I){return cd(I,R)};if(Gn(R)){const N=zT(R);return N.variants?function(H){return cd(H,N)}:N.style}return R},T=(...R)=>{const N=[],I=R.map(E),H=[];if(N.push(a),c&&m&&H.push(function(F){var z,q;const W=(q=(z=F.theme.components)==null?void 0:z[c])==null?void 0:q.styleOverrides;if(!W)return null;const V={};for(const ee in W)V[ee]=cd(F,W[ee]);return m(F,V)}),c&&!g&&H.push(function(F){var V,z;const X=F.theme,W=(z=(V=X==null?void 0:X.components)==null?void 0:V[c])==null?void 0:z.variants;return W?jT(F,W):null}),b||H.push(Zo),Array.isArray(I[0])){const O=I.shift(),F=new Array(N.length).fill(""),X=new Array(H.length).fill("");let W;W=[...F,...O,...X],W.raw=[...F,...O.raw,...X],N.unshift(W)}const G=[...N,...I,...H],Y=x(...G);return s.muiName&&(Y.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(Y.displayName=_I(c,d,s)),Y};return x.withConfig&&(T.withConfig=x.withConfig),T}}function _I(e,t,r){return e?`${e}${Le(t||"")}`:`Styled(${gI(r)})`}function wI(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${UT(t||"Root")}`),r}function CI(e){for(const t in e)return!1;return!0}function xI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function UT(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function zl(e,t){const r=M({},t);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]=M(M({},e[i]),r[i]);else if(i==="componentsProps"||i==="slotProps"){const a=e[i],o=t[i];if(!o)r[i]=a||{};else if(!a)r[i]=o;else{r[i]=M({},o);for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const u=s;r[i][u]=zl(a[u],o[u])}}}else r[i]===void 0&&(r[i]=e[i])}return r}const Mn=typeof window!="undefined"?Q.useLayoutEffect:Q.useEffect;function TI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function VT(e,t,r,n,i){const a=e[t],o=i||t;if(a==null||typeof window=="undefined")return null;let s;const u=a.type;return typeof u=="function"&&!TI(u)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${n} \`${o}\` 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 ja=Ri(_.element,VT);ja.isRequired=Ri(_.element.isRequired,VT);const SI="exact-prop: ​";function Pv(e){return process.env.NODE_ENV==="production"?e:B(M({},e),{[SI]: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 Ti(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],o=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Jm(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function GT(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Qr(e){return e&&e.ownerDocument||document}function Si(e){return Qr(e).defaultView||window}function M_(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let A_=0;function EI(e){const[t,r]=Q.useState(e),n=e||t;return Q.useEffect(()=>{t==null&&(A_+=1,r(`mui-${A_}`))},[t]),n}const MI=M({},Q),P_=MI.useId;function Dh(e){if(P_!==void 0){const t=P_();return e!=null?e:t}return EI(e)}function Kn(e){const t=Q.useRef(e);return Mn(()=>{t.current=e}),Q.useRef((...r)=>(0,t.current)(...r)).current}function gr(...e){const t=Q.useRef(void 0),r=Q.useCallback(n=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const o=a,s=o(n);return typeof s=="function"?s:()=>{o(null)}}return a.current=n,()=>{a.current=null}});return()=>{i.forEach(a=>a==null?void 0:a())}},e);return Q.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const R_={};function qT(e,t){const r=Q.useRef(R_);return r.current===R_&&(r.current=e(t)),r}const AI=[];function PI(e){Q.useEffect(e,AI)}class Nh{constructor(){Je(this,"currentId",null);Je(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Je(this,"disposeEffect",()=>this.clear)}static create(){return new Nh}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function xa(){const e=qT(Nh.create).current;return PI(e.disposeEffect),e}function YT(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function RI(e){return typeof e=="string"}function XT(e,t,r){return e===void 0||RI(e)?t:B(M({},t),{ownerState:M(M({},t.ownerState),r)})}function KT(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 O_(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 ZT(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const m=je(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),v=M(M(M({},r==null?void 0:r.style),i==null?void 0:i.style),n==null?void 0:n.style),g=M(M(M({},r),i),n);return m.length>0&&(g.className=m),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const o=KT(M(M({},i),n)),s=O_(n),u=O_(i),c=t(o),d=je(c==null?void 0:c.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),h=M(M(M(M({},c==null?void 0:c.style),r==null?void 0:r.style),i==null?void 0:i.style),n==null?void 0:n.style),p=M(M(M(M({},c),r),u),s);return d.length>0&&(p.className=d),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:c.ref}}function QT(e,t,r){return typeof e=="function"?e(t,r):e}function Rv(e){var p;const h=e,{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1}=h,a=xe(h,["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"]),o=i?{}:QT(r,n),{props:s,internalRef:u}=ZT(B(M({},a),{externalSlotProps:o})),c=gr(u,o==null?void 0:o.ref,(p=e.additionalProps)==null?void 0:p.ref);return XT(t,B(M({},s),{ref:c}),n)}function ds(e){var t;return parseInt(Q.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const OI=Q.createContext(void 0);function kI(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?zl(i.defaultProps,n):!i.styleOverrides&&!i.variants?zl(i,n):n}function DI({props:e,name:t}){const r=Q.useContext(OI);return kI({props:e,name:t,theme:{components:r}})}const k_={theme:void 0};function NI(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(k_.theme=i.theme,a=zT(e(k_)),t=a,r=i.theme),a}}function II(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const D_=(e,t,r,n=[])=>{let i=e;t.forEach((a,o)=>{o===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},LI=(e,t,r)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([s,u])=>{(!r||r&&!r([...a,s]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,s],Array.isArray(u)?[...o,s]:o):t([...a,s],u,o))})}n(e)},FI=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function zp(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},o={};return LI(e,(s,u,c)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(s,u))){const d=`--${r?`${r}-`:""}${s.join("-")}`,h=FI(s,u);Object.assign(i,{[d]:h}),D_(a,s,`var(${d})`,c),D_(o,s,`var(${d}, ${h})`,c)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function $I(e,t={}){const{getSelector:r=b,disableCssColorScheme:n,colorSchemeSelector:i}=t,E=e,{colorSchemes:a={},components:o,defaultColorScheme:s="light"}=E,u=xe(E,["colorSchemes","components","defaultColorScheme"]),{vars:c,css:d,varsWithDefaults:h}=zp(u,t);let p=h;const m={},T=a,{[s]:v}=T,g=xe(T,[Pc(s)]);if(Object.entries(g||{}).forEach(([A,R])=>{const{vars:N,css:I,varsWithDefaults:H}=zp(R,t);p=Dr(p,H),m[A]={css:I,vars:N}}),v){const{css:A,vars:R,varsWithDefaults:N}=zp(v,t);p=Dr(p,N),m[s]={css:A,vars:R}}function b(A,R){var I,H;let N=i;if(i==="class"&&(N=".%s"),i==="data"&&(N="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(N=`[${i}="%s"]`),A){if(N==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${((H=(I=a[A])==null?void 0:I.palette)==null?void 0:H.mode)||A})`]:{":root":R}};if(N)return e.defaultColorScheme===A?`:root, ${N.replace("%s",String(A))}`:N.replace("%s",String(A))}return":root"}return{vars:p,generateThemeVars:()=>{let A=M({},c);return Object.entries(m).forEach(([,{vars:R}])=>{A=Dr(A,R)}),A},generateStyleSheets:()=>{var Y,O;const A=[],R=e.defaultColorScheme||"light";function N(F,X){Object.keys(X).length&&A.push(typeof F=="string"?{[F]:M({},X)}:F)}N(r(void 0,M({},d)),d);const G=m,{[R]:I}=G,H=xe(G,[Pc(R)]);if(I){const{css:F}=I,X=(O=(Y=a[R])==null?void 0:Y.palette)==null?void 0:O.mode,W=M(!n&&X?{colorScheme:X}:{},F);N(r(R,M({},W)),W)}return Object.entries(H).forEach(([F,{css:X}])=>{var z,q;const W=(q=(z=a[F])==null?void 0:z.palette)==null?void 0:q.mode,V=M(!n&&W?{colorScheme:W}:{},X);N(r(F,M({},V)),V)}),A}}}function BI(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const jl={black:"#000",white:"#fff"},HI={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"},uo={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"},co={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"},Ks={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"},ho={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"},fo={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"},po={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"};function JT(){return{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:jl.white,default:jl.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}}}const zI=JT();function eS(){return{text:{primary:jl.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:jl.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}}}const N_=eS();function I_(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=yh(e.main,i):t==="dark"&&(e.dark=vh(e.main,a)))}function jI(e="light"){return e==="dark"?{main:ho[200],light:ho[50],dark:ho[400]}:{main:ho[700],light:ho[400],dark:ho[800]}}function WI(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function UI(e="light"){return e==="dark"?{main:co[500],light:co[300],dark:co[700]}:{main:co[700],light:co[400],dark:co[800]}}function VI(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function GI(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function qI(e="light"){return e==="dark"?{main:Ks[400],light:Ks[300],dark:Ks[700]}:{main:"#ed6c02",light:Ks[500],dark:Ks[900]}}function Ov(e){const g=e,{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=g,i=xe(g,["mode","contrastThreshold","tonalOffset"]),a=e.primary||jI(t),o=e.secondary||WI(t),s=e.error||UI(t),u=e.info||VI(t),c=e.success||GI(t),d=e.warning||qI(t);function h(b){const C=v_(b,N_.text.primary)>=r?N_.text.primary:zI.text.primary;if(process.env.NODE_ENV!=="production"){const x=v_(b,C);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${C} on ${b}`,"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 C}const p=({color:b,name:C,mainShade:x=500,lightShade:E=300,darkShade:T=700})=>{if(b=M({},b),!b.main&&b[x]&&(b.main=b[x]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
54
- The color object needs to have a \`main\` property or a \`${x}\` property.`:xi(11,C?` (${C})`:"",x));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
55
- \`color.main\` should be a string, but \`${JSON.stringify(b.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
- } });`:xi(12,C?` (${C})`:"",JSON.stringify(b.main)));return I_(b,"light",E,n),I_(b,"dark",T,n),b.contrastText||(b.contrastText=h(b.main)),b};let m;return t==="light"?m=JT():t==="dark"&&(m=eS()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Dr(M({common:M({},jl),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:HI,contrastThreshold:r,getContrastText:h,augmentColor:p,tonalOffset:n},m),i)}function YI(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function XI(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}function KI(e){return Math.round(e*1e5)/1e5}const L_={textTransform:"uppercase"},F_='"Roboto", "Helvetica", "Arial", sans-serif';function ZI(e,t){const b=typeof t=="function"?t(e):t,{fontFamily:r=F_,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=b,h=xe(b,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,m=d||(C=>`${C/u*p}rem`),v=(C,x,E,T,A)=>M(M(M({fontFamily:r,fontWeight:C,fontSize:m(x),lineHeight:E},r===F_?{letterSpacing:`${KI(T/x)}em`}:{}),A),c),g={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(o,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(o,14,1.75,.4,L_),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,L_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dr(M({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s},g),h,{clone:!1})}const QI=.2,JI=.14,eL=.12;function Pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${QI})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${JI})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eL})`].join(",")}const tL=["none",Pt(0,2,1,-1,0,1,1,0,0,1,3,0),Pt(0,3,1,-2,0,2,2,0,0,1,5,0),Pt(0,3,3,-2,0,3,4,0,0,1,8,0),Pt(0,2,4,-1,0,4,5,0,0,1,10,0),Pt(0,3,5,-1,0,5,8,0,0,1,14,0),Pt(0,3,5,-1,0,6,10,0,0,1,18,0),Pt(0,4,5,-2,0,7,10,1,0,2,16,1),Pt(0,5,5,-3,0,8,10,1,0,3,14,2),Pt(0,5,6,-3,0,9,12,1,0,3,16,2),Pt(0,6,6,-3,0,10,14,1,0,4,18,3),Pt(0,6,7,-4,0,11,15,1,0,4,20,3),Pt(0,7,8,-4,0,12,17,2,0,5,22,4),Pt(0,7,8,-4,0,13,19,2,0,5,24,4),Pt(0,7,9,-4,0,14,21,2,0,5,26,4),Pt(0,8,9,-5,0,15,22,2,0,6,28,5),Pt(0,8,10,-5,0,16,24,2,0,6,30,5),Pt(0,8,11,-5,0,17,26,2,0,6,32,5),Pt(0,9,11,-5,0,18,28,2,0,7,34,6),Pt(0,9,12,-6,0,19,29,2,0,7,36,6),Pt(0,10,13,-6,0,20,31,3,0,8,38,7),Pt(0,10,13,-6,0,21,33,3,0,8,40,7),Pt(0,10,14,-6,0,22,35,3,0,8,42,7),Pt(0,11,14,-7,0,23,36,3,0,9,44,8),Pt(0,11,15,-7,0,24,38,3,0,9,46,8)],rL={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)"},tS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $_(e){return`${Math.round(e)}ms`}function nL(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*Bn(t,.25)+t/5)*10),3e3)}function iL(e){const t=M(M({},rL),e.easing),r=M(M({},tS),e.duration);return B(M({getAutoHeightDuration:nL,create:(i=["all"],a={})=>{const d=a,{duration:o=r.standard,easing:s=t.easeInOut,delay:u=0}=d,c=xe(d,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){const h=m=>typeof m=="string",p=m=>!Number.isNaN(parseFloat(m));!h(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(o)&&!h(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),h(s)||console.error('MUI: Argument "easing" must be a string.'),!p(u)&&!h(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(i)?i:[i]).map(h=>`${h} ${typeof o=="string"?o:$_(o)} ${s} ${typeof u=="string"?u:$_(u)}`).join(",")}},e),{easing:t,duration:r})}const aL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function oL(e){return Gn(e)||typeof e=="undefined"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function rS(e={}){const t=M({},e);function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[o,s]=i[a];!oL(s)||o.startsWith("unstable_")?delete n[o]:Gn(s)&&(n[o]=M({},s),r(n[o]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
69
-
70
- const theme = ${JSON.stringify(t,null,2)};
71
-
72
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
73
- theme.transitions = createTransitions(theme.transitions || {});
74
-
75
- export default theme;`}function e0(e={},...t){const m=e,{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:u}=m,c=xe(m,["breakpoints","mixins","spacing","palette","transitions","typography","shape"]);if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":xi(20));const d=Ov(a),h=kh(e);let p=Dr(h,{mixins:XI(h.breakpoints,n),palette:d,shadows:tL.slice(),typography:ZI(d,s),transitions:iL(o),zIndex:M({},aL)});if(p=Dr(p,c),p=t.reduce((v,g)=>Dr(v,g),p),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(b,C)=>{let x;for(x in b){const E=b[x];if(v.includes(x)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const T=bt("",x);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${x}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${T}' syntax:`,JSON.stringify({root:{[`&.${T}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
76
- `))}b[x]={}}}};Object.keys(p.components).forEach(b=>{const C=p.components[b].styleOverrides;C&&b.startsWith("Mui")&&g(C,b)})}return p.unstable_sxConfig=M(M({},xu),c==null?void 0:c.unstable_sxConfig),p.unstable_sx=function(g){return Zo({sx:g,theme:this})},p.toRuntimeSource=rS,p}function t0(e){let t;return e<1?t=5.11916*Bn(e,2):t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const sL=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=t0(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function nS(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function iS(e){return e==="dark"?sL:[]}function lL(e){const o=e,{palette:t={mode:"light"},opacity:r,overlays:n}=o,i=xe(o,["palette","opacity","overlays"]),a=Ov(t);return M({palette:a,opacity:M(M({},nS(a.mode)),r),overlays:n||iS(a.mode)},i)}function uL(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const cL=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],dL=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return cL(e.cssVarPrefix).forEach(s=>{o[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:a?{[a.replace("%s",t)]:o,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:M(M({},r),o)}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function hL(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function le(e,t,r){!e[t]&&r&&(e[t]=r)}function ml(e){return typeof e!="string"||!e.startsWith("hsl")?e:RT(e)}function gi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=pl(ml(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
77
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function fL(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Hn=e=>{try{return e()}catch(t){}},pL=(e="mui")=>II(e);function jp(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=lL(B(M({},t),{palette:M({mode:i},t==null?void 0:t.palette)}));return}const s=e0(B(M({},r),{palette:M({mode:i},t==null?void 0:t.palette)})),{palette:a}=s,o=xe(s,["palette"]);return e[n]=B(M({},t),{palette:a,opacity:M(M({},nS(i)),t==null?void 0:t.opacity),overlays:(t==null?void 0:t.overlays)||iS(i)}),o}function mL(e={},...t){const H=e,{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:o=uL,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:u=":root"}=H,c=xe(H,["colorSchemes","defaultColorScheme","disableCssColorScheme","cssVarPrefix","shouldSkipGeneratingVar","colorSchemeSelector","rootSelector"]),d=Object.keys(r)[0],h=n||(r.light&&d!=="light"?"light":d),p=pL(a),G=r,{[h]:m,light:v,dark:g}=G,b=xe(G,[Pc(h),"light","dark"]),C=M({},b);let x=m;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:xi(21,h));const E=jp(C,x,c,h);v&&!C.light&&jp(C,v,void 0,"light"),g&&!C.dark&&jp(C,g,void 0,"dark");let T=B(M({defaultColorScheme:h},E),{cssVarPrefix:a,colorSchemeSelector:s,rootSelector:u,getCssVar:p,colorSchemes:C,font:M(M({},YI(E.typography)),E.font),spacing:fL(c.spacing)});Object.keys(T.colorSchemes).forEach(Y=>{const O=T.colorSchemes[Y].palette,F=X=>{const W=X.split("-"),V=W[1],z=W[2];return p(X,O[V][z])};if(O.mode==="light"&&(le(O.common,"background","#fff"),le(O.common,"onBackground","#000")),O.mode==="dark"&&(le(O.common,"background","#000"),le(O.common,"onBackground","#fff")),hL(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){le(O.Alert,"errorColor",vt(O.error.light,.6)),le(O.Alert,"infoColor",vt(O.info.light,.6)),le(O.Alert,"successColor",vt(O.success.light,.6)),le(O.Alert,"warningColor",vt(O.warning.light,.6)),le(O.Alert,"errorFilledBg",F("palette-error-main")),le(O.Alert,"infoFilledBg",F("palette-info-main")),le(O.Alert,"successFilledBg",F("palette-success-main")),le(O.Alert,"warningFilledBg",F("palette-warning-main")),le(O.Alert,"errorFilledColor",Hn(()=>O.getContrastText(O.error.main))),le(O.Alert,"infoFilledColor",Hn(()=>O.getContrastText(O.info.main))),le(O.Alert,"successFilledColor",Hn(()=>O.getContrastText(O.success.main))),le(O.Alert,"warningFilledColor",Hn(()=>O.getContrastText(O.warning.main))),le(O.Alert,"errorStandardBg",yt(O.error.light,.9)),le(O.Alert,"infoStandardBg",yt(O.info.light,.9)),le(O.Alert,"successStandardBg",yt(O.success.light,.9)),le(O.Alert,"warningStandardBg",yt(O.warning.light,.9)),le(O.Alert,"errorIconColor",F("palette-error-main")),le(O.Alert,"infoIconColor",F("palette-info-main")),le(O.Alert,"successIconColor",F("palette-success-main")),le(O.Alert,"warningIconColor",F("palette-warning-main")),le(O.AppBar,"defaultBg",F("palette-grey-100")),le(O.Avatar,"defaultBg",F("palette-grey-400")),le(O.Button,"inheritContainedBg",F("palette-grey-300")),le(O.Button,"inheritContainedHoverBg",F("palette-grey-A100")),le(O.Chip,"defaultBorder",F("palette-grey-400")),le(O.Chip,"defaultAvatarColor",F("palette-grey-700")),le(O.Chip,"defaultIconColor",F("palette-grey-700")),le(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),le(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),le(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),le(O.LinearProgress,"primaryBg",yt(O.primary.main,.62)),le(O.LinearProgress,"secondaryBg",yt(O.secondary.main,.62)),le(O.LinearProgress,"errorBg",yt(O.error.main,.62)),le(O.LinearProgress,"infoBg",yt(O.info.main,.62)),le(O.LinearProgress,"successBg",yt(O.success.main,.62)),le(O.LinearProgress,"warningBg",yt(O.warning.main,.62)),le(O.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),le(O.Slider,"primaryTrack",yt(O.primary.main,.62)),le(O.Slider,"secondaryTrack",yt(O.secondary.main,.62)),le(O.Slider,"errorTrack",yt(O.error.main,.62)),le(O.Slider,"infoTrack",yt(O.info.main,.62)),le(O.Slider,"successTrack",yt(O.success.main,.62)),le(O.Slider,"warningTrack",yt(O.warning.main,.62));const X=Oc(O.background.default,.8);le(O.SnackbarContent,"bg",X),le(O.SnackbarContent,"color",Hn(()=>O.getContrastText(X))),le(O.SpeedDialAction,"fabHoverBg",Oc(O.background.paper,.15)),le(O.StepConnector,"border",F("palette-grey-400")),le(O.StepContent,"border",F("palette-grey-400")),le(O.Switch,"defaultColor",F("palette-common-white")),le(O.Switch,"defaultDisabledColor",F("palette-grey-100")),le(O.Switch,"primaryDisabledColor",yt(O.primary.main,.62)),le(O.Switch,"secondaryDisabledColor",yt(O.secondary.main,.62)),le(O.Switch,"errorDisabledColor",yt(O.error.main,.62)),le(O.Switch,"infoDisabledColor",yt(O.info.main,.62)),le(O.Switch,"successDisabledColor",yt(O.success.main,.62)),le(O.Switch,"warningDisabledColor",yt(O.warning.main,.62)),le(O.TableCell,"border",yt(Rc(O.divider,1),.88)),le(O.Tooltip,"bg",Rc(O.grey[700],.92))}if(O.mode==="dark"){le(O.Alert,"errorColor",yt(O.error.light,.6)),le(O.Alert,"infoColor",yt(O.info.light,.6)),le(O.Alert,"successColor",yt(O.success.light,.6)),le(O.Alert,"warningColor",yt(O.warning.light,.6)),le(O.Alert,"errorFilledBg",F("palette-error-dark")),le(O.Alert,"infoFilledBg",F("palette-info-dark")),le(O.Alert,"successFilledBg",F("palette-success-dark")),le(O.Alert,"warningFilledBg",F("palette-warning-dark")),le(O.Alert,"errorFilledColor",Hn(()=>O.getContrastText(O.error.dark))),le(O.Alert,"infoFilledColor",Hn(()=>O.getContrastText(O.info.dark))),le(O.Alert,"successFilledColor",Hn(()=>O.getContrastText(O.success.dark))),le(O.Alert,"warningFilledColor",Hn(()=>O.getContrastText(O.warning.dark))),le(O.Alert,"errorStandardBg",vt(O.error.light,.9)),le(O.Alert,"infoStandardBg",vt(O.info.light,.9)),le(O.Alert,"successStandardBg",vt(O.success.light,.9)),le(O.Alert,"warningStandardBg",vt(O.warning.light,.9)),le(O.Alert,"errorIconColor",F("palette-error-main")),le(O.Alert,"infoIconColor",F("palette-info-main")),le(O.Alert,"successIconColor",F("palette-success-main")),le(O.Alert,"warningIconColor",F("palette-warning-main")),le(O.AppBar,"defaultBg",F("palette-grey-900")),le(O.AppBar,"darkBg",F("palette-background-paper")),le(O.AppBar,"darkColor",F("palette-text-primary")),le(O.Avatar,"defaultBg",F("palette-grey-600")),le(O.Button,"inheritContainedBg",F("palette-grey-800")),le(O.Button,"inheritContainedHoverBg",F("palette-grey-700")),le(O.Chip,"defaultBorder",F("palette-grey-700")),le(O.Chip,"defaultAvatarColor",F("palette-grey-300")),le(O.Chip,"defaultIconColor",F("palette-grey-300")),le(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),le(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),le(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),le(O.LinearProgress,"primaryBg",vt(O.primary.main,.5)),le(O.LinearProgress,"secondaryBg",vt(O.secondary.main,.5)),le(O.LinearProgress,"errorBg",vt(O.error.main,.5)),le(O.LinearProgress,"infoBg",vt(O.info.main,.5)),le(O.LinearProgress,"successBg",vt(O.success.main,.5)),le(O.LinearProgress,"warningBg",vt(O.warning.main,.5)),le(O.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),le(O.Slider,"primaryTrack",vt(O.primary.main,.5)),le(O.Slider,"secondaryTrack",vt(O.secondary.main,.5)),le(O.Slider,"errorTrack",vt(O.error.main,.5)),le(O.Slider,"infoTrack",vt(O.info.main,.5)),le(O.Slider,"successTrack",vt(O.success.main,.5)),le(O.Slider,"warningTrack",vt(O.warning.main,.5));const X=Oc(O.background.default,.98);le(O.SnackbarContent,"bg",X),le(O.SnackbarContent,"color",Hn(()=>O.getContrastText(X))),le(O.SpeedDialAction,"fabHoverBg",Oc(O.background.paper,.15)),le(O.StepConnector,"border",F("palette-grey-600")),le(O.StepContent,"border",F("palette-grey-600")),le(O.Switch,"defaultColor",F("palette-grey-300")),le(O.Switch,"defaultDisabledColor",F("palette-grey-600")),le(O.Switch,"primaryDisabledColor",vt(O.primary.main,.55)),le(O.Switch,"secondaryDisabledColor",vt(O.secondary.main,.55)),le(O.Switch,"errorDisabledColor",vt(O.error.main,.55)),le(O.Switch,"infoDisabledColor",vt(O.info.main,.55)),le(O.Switch,"successDisabledColor",vt(O.success.main,.55)),le(O.Switch,"warningDisabledColor",vt(O.warning.main,.55)),le(O.TableCell,"border",vt(Rc(O.divider,1),.68)),le(O.Tooltip,"bg",Rc(O.grey[700],.92))}gi(O.background,"default"),gi(O.background,"paper"),gi(O.common,"background"),gi(O.common,"onBackground"),gi(O,"divider"),Object.keys(O).forEach(X=>{const W=O[X];X!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&le(O[X],"mainChannel",pl(ml(W.main))),W.light&&le(O[X],"lightChannel",pl(ml(W.light))),W.dark&&le(O[X],"darkChannel",pl(ml(W.dark))),W.contrastText&&le(O[X],"contrastTextChannel",pl(ml(W.contrastText))),X==="text"&&(gi(O[X],"primary"),gi(O[X],"secondary")),X==="action"&&(W.active&&gi(O[X],"active"),W.selected&&gi(O[X],"selected")))})}),T=t.reduce((Y,O)=>Dr(Y,O),T);const A={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:dL(T)},{vars:R,generateThemeVars:N,generateStyleSheets:I}=$I(T,A);return T.vars=R,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([Y,O])=>{T[Y]=O}),T.generateThemeVars=N,T.generateStyleSheets=I,T.generateSpacing=function(){return $T(c.spacing,Sh(this))},T.getColorSchemeSelector=BI(s),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=o,T.unstable_sxConfig=M(M({},xu),c==null?void 0:c.unstable_sxConfig),T.unstable_sx=function(O){return Zo({sx:O,theme:this})},T.toRuntimeSource=rS,T}function B_(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]=B(M({},r!==!0&&r),{palette:Ov(B(M({},r===!0?{}:r.palette),{mode:t}))}))}function gL(e={},...t){const d=e,{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode}=d,o=xe(d,["palette","cssVariables","colorSchemes","defaultColorScheme"]),s=a||"light",u=i==null?void 0:i[s],c=M(M({},i),r?{[s]:B(M({},typeof u!="boolean"&&u),{palette:r})}:void 0);if(n===!1){if(!("colorSchemes"in e))return e0(e,...t);let h=r;"palette"in e||c[s]&&(c[s]!==!0?h=c[s].palette:s==="dark"&&(h={mode:"dark"}));const p=e0(B(M({},e),{palette:h}),...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light=B(M({},c.light!==!0&&c.light),{palette:p.palette}),B_(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark=B(M({},c.dark!==!0&&c.dark),{palette:p.palette}),B_(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),mL(M(B(M({},o),{colorSchemes:c,defaultColorScheme:s}),typeof n!="boolean"&&n),...t)}const kv=gL(),Dv="$$material";function Su(){const e=Av(kv);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(e),e[Dv]||e}function aS(e){return fe.jsx(BT,B(M({},e),{defaultTheme:kv,themeId:Dv}))}process.env.NODE_ENV!=="production"&&(aS.propTypes={styles:_.oneOfType([_.array,_.func,_.number,_.object,_.string,_.bool])});function vL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Eu=e=>vL(e)&&e!=="classes",Ne=WT({themeId:Dv,defaultTheme:kv,rootShouldForwardProp:Eu});function yL(e){return function(r){return fe.jsx(aS,{styles:typeof e=="function"?n=>e(M({theme:n},r)):e})}}function bL(){return IT}function Mt(e){return DI(e)}class Dd{constructor(){Je(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Dd}static use(){const t=qT(Dd.create).current,[r,n]=Q.useState(!1);return t.shouldMount=r,t.setShouldMount=n,Q.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=wL(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function _L(){return Dd.use()}function wL(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function oS(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}function r0(e,t){return r0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},r0(e,t)}function sS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r0(e,t)}const H_={disabled:!1};var CL=process.env.NODE_ENV!=="production"?_.oneOfType([_.number,_.shape({enter:_.number,exit:_.number,appear:_.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&_.oneOfType([_.string,_.shape({enter:_.string,exit:_.string,active:_.string}),_.shape({enter:_.string,enterDone:_.string,enterActive:_.string,exit:_.string,exitDone:_.string,exitActive:_.string})]);const Nd=k.createContext(null);var gl="unmounted",ba="exited",_a="entering",Mo="entered",n0="exiting",Rn=function(e){sS(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=ba,a.appearStatus=_a):u=Mo:n.unmountOnExit||n.mountOnEnter?u=gl:u=ba,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===gl?{status:ba}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==_a&&o!==Mo&&(a=_a):(o===_a||o===Mo)&&(a=n0)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){i===void 0&&(i=!1),a!==null?(this.cancelNextCallback(),a===_a?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:Xr.findDOMNode(this)),this.performEnter(i)):this.performExit()):this.props.unmountOnExit&&this.state.status===ba&&this.setState({status:gl})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,u=this.props.nodeRef?[s]:[Xr.findDOMNode(this),s],c=u[0],d=u[1],h=this.getTimeouts(),p=s?h.appear:h.enter;if(!i&&!o||H_.disabled){this.safeSetState({status:Mo},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:_a},function(){a.props.onEntering(c,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Mo},function(){a.props.onEntered(c,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Xr.findDOMNode(this);if(!a||H_.disabled){this.safeSetState({status:ba},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:n0},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:ba},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Xr.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=u[0],d=u[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===gl)return null;var a=this.props,o=a.children,s=oS(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(Nd.Provider,{value:null},typeof o=="function"?o(i,s):k.cloneElement(k.Children.only(o),s))},t}(k.Component);Rn.contextType=Nd;Rn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:_.shape({current:typeof Element=="undefined"?_.any:function(e,t,r,n,i,a){var o=e[t];return _.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:_.oneOfType([_.func.isRequired,_.element.isRequired]).isRequired,in:_.bool,mountOnEnter:_.bool,unmountOnExit:_.bool,appear:_.bool,enter:_.bool,exit:_.bool,timeout:function(t){var r=CL;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return r.apply(void 0,[t].concat(i))},addEndListener:_.func,onEnter:_.func,onEntering:_.func,onEntered:_.func,onExit:_.func,onExiting:_.func,onExited:_.func}:{};function mo(){}Rn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mo,onEntering:mo,onEntered:mo,onExit:mo,onExiting:mo,onExited:mo};Rn.UNMOUNTED=gl;Rn.EXITED=ba;Rn.ENTERING=_a;Rn.ENTERED=Mo;Rn.EXITING=n0;function xL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nv(e,t){var r=function(a){return t&&k.isValidElement(a)?t(a):a},n=Object.create(null);return e&&k.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function TL(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var u in t){if(n[u])for(o=0;o<n[u].length;o++){var c=n[u][o];s[n[u][o]]=r(c)}s[u]=r(u)}for(o=0;o<i.length;o++)s[i[o]]=r(i[o]);return s}function Ta(e,t,r){return r[t]!=null?r[t]:e.props[t]}function SL(e,t){return Nv(e.children,function(r){return k.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Ta(r,"appear",e),enter:Ta(r,"enter",e),exit:Ta(r,"exit",e)})})}function EL(e,t,r){var n=Nv(e.children),i=TL(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(k.isValidElement(o)){var s=a in t,u=a in n,c=t[a],d=k.isValidElement(c)&&!c.props.in;u&&(!s||d)?i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:Ta(o,"exit",e),enter:Ta(o,"enter",e)}):!u&&s&&!d?i[a]=k.cloneElement(o,{in:!1}):u&&s&&k.isValidElement(c)&&(i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:c.props.in,exit:Ta(o,"exit",e),enter:Ta(o,"enter",e)}))}}),i}var ML=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},AL={component:"div",childFactory:function(t){return t}},Iv=function(e){sS(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(xL(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}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(i,a){var o=a.children,s=a.handleExited,u=a.firstRender;return{children:u?SL(i,s):EL(i,o,s),firstRender:!1}},r.handleExited=function(i,a){var o=Nv(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var u=Hl({},s.children);return delete u[i.key],{children:u}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,s=oS(i,["component","childFactory"]),u=this.state.contextValue,c=ML(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?k.createElement(Nd.Provider,{value:u},c):k.createElement(Nd.Provider,{value:u},k.createElement(a,s,c))},t}(k.Component);Iv.propTypes=process.env.NODE_ENV!=="production"?{component:_.any,children:_.node,appear:_.bool,enter:_.bool,exit:_.bool,childFactory:_.func}:{};Iv.defaultProps=AL;function lS(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:u,timeout:c}=e,[d,h]=Q.useState(!1),p=je(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=je(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&h(!0),Q.useEffect(()=>{if(!s&&u!=null){const g=setTimeout(u,c);return()=>{clearTimeout(g)}}},[u,s,c]),fe.jsx("span",{className:p,style:m,children:fe.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(lS.propTypes={classes:_.object.isRequired,className:_.string,in:_.bool,onExited:_.func,pulsate:_.bool,rippleSize:_.number,rippleX:_.number,rippleY:_.number,timeout:_.number.isRequired});const fn=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),i0=550,PL=80,RL=Tu`
78
- 0% {
79
- transform: scale(0);
80
- opacity: 0.1;
81
- }
82
-
83
- 100% {
84
- transform: scale(1);
85
- opacity: 0.3;
86
- }
87
- `,OL=Tu`
88
- 0% {
89
- opacity: 1;
90
- }
91
-
92
- 100% {
93
- opacity: 0;
94
- }
95
- `,kL=Tu`
96
- 0% {
97
- transform: scale(1);
98
- }
99
-
100
- 50% {
101
- transform: scale(0.92);
102
- }
103
-
104
- 100% {
105
- transform: scale(1);
106
- }
107
- `,DL=Ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),NL=Ne(lS,{name:"MuiTouchRipple",slot:"Ripple"})`
108
- opacity: 0;
109
- position: absolute;
110
-
111
- &.${fn.rippleVisible} {
112
- opacity: 0.3;
113
- transform: scale(1);
114
- animation-name: ${RL};
115
- animation-duration: ${i0}ms;
116
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
117
- }
118
-
119
- &.${fn.ripplePulsate} {
120
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
121
- }
122
-
123
- & .${fn.child} {
124
- opacity: 1;
125
- display: block;
126
- width: 100%;
127
- height: 100%;
128
- border-radius: 50%;
129
- background-color: currentColor;
130
- }
131
-
132
- & .${fn.childLeaving} {
133
- opacity: 0;
134
- animation-name: ${OL};
135
- animation-duration: ${i0}ms;
136
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
137
- }
138
-
139
- & .${fn.childPulsate} {
140
- position: absolute;
141
- /* @noflip */
142
- left: 0px;
143
- top: 0;
144
- animation-name: ${kL};
145
- animation-duration: 2500ms;
146
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
147
- animation-iteration-count: infinite;
148
- animation-delay: 200ms;
149
- }
150
- `,uS=Q.forwardRef(function(t,r){const T=Mt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=T,s=xe(T,["center","classes","className"]),[u,c]=Q.useState([]),d=Q.useRef(0),h=Q.useRef(null);Q.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const p=Q.useRef(!1),m=xa(),v=Q.useRef(null),g=Q.useRef(null),b=Q.useCallback(A=>{const{pulsate:R,rippleX:N,rippleY:I,rippleSize:H,cb:G}=A;c(Y=>[...Y,fe.jsx(NL,{classes:{ripple:je(a.ripple,fn.ripple),rippleVisible:je(a.rippleVisible,fn.rippleVisible),ripplePulsate:je(a.ripplePulsate,fn.ripplePulsate),child:je(a.child,fn.child),childLeaving:je(a.childLeaving,fn.childLeaving),childPulsate:je(a.childPulsate,fn.childPulsate)},timeout:i0,pulsate:R,rippleX:N,rippleY:I,rippleSize:H},d.current)]),d.current+=1,h.current=G},[a]),C=Q.useCallback((A={},R={},N=()=>{})=>{const{pulsate:I=!1,center:H=i||R.pulsate,fakeElement:G=!1}=R;if((A==null?void 0:A.type)==="mousedown"&&p.current){p.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(p.current=!0);const Y=G?null:g.current,O=Y?Y.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,X,W;if(H||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)F=Math.round(O.width/2),X=Math.round(O.height/2);else{const{clientX:V,clientY:z}=A.touches&&A.touches.length>0?A.touches[0]:A;F=Math.round(V-O.left),X=Math.round(z-O.top)}if(H)W=Math.sqrt((2*Bn(O.width,2)+Bn(O.height,2))/3),W%2===0&&(W+=1);else{const V=Math.max(Math.abs((Y?Y.clientWidth:0)-F),F)*2+2,z=Math.max(Math.abs((Y?Y.clientHeight:0)-X),X)*2+2;W=Math.sqrt(Bn(V,2)+Bn(z,2))}A!=null&&A.touches?v.current===null&&(v.current=()=>{b({pulsate:I,rippleX:F,rippleY:X,rippleSize:W,cb:N})},m.start(PL,()=>{v.current&&(v.current(),v.current=null)})):b({pulsate:I,rippleX:F,rippleY:X,rippleSize:W,cb:N})},[i,b,m]),x=Q.useCallback(()=>{C({},{pulsate:!0})},[C]),E=Q.useCallback((A,R)=>{if(m.clear(),(A==null?void 0:A.type)==="touchend"&&v.current){v.current(),v.current=null,m.start(0,()=>{E(A,R)});return}v.current=null,c(N=>N.length>0?N.slice(1):N),h.current=R},[m]);return Q.useImperativeHandle(r,()=>({pulsate:x,start:C,stop:E}),[x,C,E]),fe.jsx(DL,B(M({className:je(fn.root,a.root,o),ref:g},s),{children:fe.jsx(Iv,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(uS.propTypes={center:_.bool,classes:_.object,className:_.string});function IL(e){return bt("MuiButtonBase",e)}const LL=_t("MuiButtonBase",["root","disabled","focusVisible"]),FL=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Dt({root:["root",t&&"disabled",r&&"focusVisible"]},IL,i);return r&&n&&(o.root+=` ${n}`),o},$L=Ne("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"},[`&.${LL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wa=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiButtonBase"}),Nt=n,{action:i,centerRipple:a=!1,children:o,className:s,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:p=!1,focusVisibleClassName:m,LinkComponent:v="a",onBlur:g,onClick:b,onContextMenu:C,onDragLeave:x,onFocus:E,onFocusVisible:T,onKeyDown:A,onKeyUp:R,onMouseDown:N,onMouseLeave:I,onMouseUp:H,onTouchEnd:G,onTouchMove:Y,onTouchStart:O,tabIndex:F=0,TouchRippleProps:X,touchRippleRef:W,type:V}=Nt,z=xe(Nt,["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"]),q=Q.useRef(null),ee=_L(),j=gr(ee.ref,W),[K,ie]=Q.useState(!1);c&&K&&ie(!1),Q.useImperativeHandle(i,()=>({focusVisible:()=>{ie(!0),q.current.focus()}}),[]);const ne=ee.shouldMount&&!d&&!c;Q.useEffect(()=>{K&&p&&!d&&ee.pulsate()},[d,p,K,ee]);const re=vi(ee,"start",N,h),oe=vi(ee,"stop",C,h),se=vi(ee,"stop",x,h),de=vi(ee,"stop",H,h),ce=vi(ee,"stop",Re=>{K&&Re.preventDefault(),I&&I(Re)},h),ge=vi(ee,"start",O,h),Se=vi(ee,"stop",G,h),ye=vi(ee,"stop",Y,h),J=vi(ee,"stop",Re=>{Rd(Re.target)||ie(!1),g&&g(Re)},!1),_e=Kn(Re=>{q.current||(q.current=Re.currentTarget),Rd(Re.target)&&(ie(!0),T&&T(Re)),E&&E(Re)}),ve=()=>{const Re=q.current;return u&&u!=="button"&&!(Re.tagName==="A"&&Re.href)},Ae=Kn(Re=>{p&&!Re.repeat&&K&&Re.key===" "&&ee.stop(Re,()=>{ee.start(Re)}),Re.target===Re.currentTarget&&ve()&&Re.key===" "&&Re.preventDefault(),A&&A(Re),Re.target===Re.currentTarget&&ve()&&Re.key==="Enter"&&!c&&(Re.preventDefault(),b&&b(Re))}),Ie=Kn(Re=>{p&&Re.key===" "&&K&&!Re.defaultPrevented&&ee.stop(Re,()=>{ee.pulsate(Re)}),R&&R(Re),b&&Re.target===Re.currentTarget&&ve()&&Re.key===" "&&!Re.defaultPrevented&&b(Re)});let Ue=u;Ue==="button"&&(z.href||z.to)&&(Ue=v);const Ve={};Ue==="button"?(Ve.type=V===void 0?"button":V,Ve.disabled=c):(!z.href&&!z.to&&(Ve.role="button"),c&&(Ve["aria-disabled"]=c));const ir=gr(r,q),At=B(M({},n),{centerRipple:a,component:u,disabled:c,disableRipple:d,disableTouchRipple:h,focusRipple:p,tabIndex:F,focusVisible:K}),Wt=FL(At);return fe.jsxs($L,B(M(M({as:Ue,className:je(Wt.root,s),ownerState:At,onBlur:J,onClick:b,onContextMenu:oe,onFocus:_e,onKeyDown:Ae,onKeyUp:Ie,onMouseDown:re,onMouseLeave:ce,onMouseUp:de,onDragLeave:se,onTouchEnd:Se,onTouchMove:ye,onTouchStart:ge,ref:ir,tabIndex:c?-1:F,type:V},Ve),z),{children:[o,ne?fe.jsx(uS,M({ref:j,center:a},X)):null]}))});function vi(e,t,r,n=!1){return Kn(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Wa.propTypes={action:us,centerRipple:_.bool,children:_.node,classes:_.object,className:_.string,component:_h,disabled:_.bool,disableRipple:_.bool,disableTouchRipple:_.bool,focusRipple:_.bool,focusVisibleClassName:_.string,href:_.any,LinkComponent:_.elementType,onBlur:_.func,onClick:_.func,onContextMenu:_.func,onDragLeave:_.func,onFocus:_.func,onFocusVisible:_.func,onKeyDown:_.func,onKeyUp:_.func,onMouseDown:_.func,onMouseLeave:_.func,onMouseUp:_.func,onTouchEnd:_.func,onTouchMove:_.func,onTouchStart:_.func,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),tabIndex:_.number,TouchRippleProps:_.object,touchRippleRef:_.oneOfType([_.func,_.shape({current:_.shape({pulsate:_.func.isRequired,start:_.func.isRequired,stop:_.func.isRequired})})]),type:_.oneOfType([_.oneOf(["button","reset","submit"]),_.string])});function BL(e){return typeof e.main=="string"}function HL(e,t=[]){if(!BL(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function ea(e=[]){return([,t])=>t&&HL(t,e)}const $t=NI;function zL(e){return bt("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jL=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(r)}`]};return Dt(i,zL,n)},WL=Ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Le(r.color)}`],t[`fontSize${Le(r.fontSize)}`]]}})($t(({theme:e})=>{var t,r,n,i,a,o,s,u,c,d,h,p,m,v,g,b,C,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(i=(n=((r=e.vars)!=null?r:e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:h.call(d,35))||"2.1875rem"}},...Object.entries(((p=e.vars)!=null?p:e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var T,A,R;return{props:{color:E},style:{color:(R=(A=((T=e.vars)!=null?T:e).palette)==null?void 0:A[E])==null?void 0:R.main}}}),{props:{color:"action"},style:{color:(g=(v=((m=e.vars)!=null?m:e).palette)==null?void 0:v.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(x=(C=((b=e.vars)!=null?b:e).palette)==null?void 0:C.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Id=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiSvgIcon"}),x=n,{children:i,className:a,color:o="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:h,viewBox:p="0 0 24 24"}=x,m=xe(x,["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"]),v=Q.isValidElement(i)&&i.type==="svg",g=B(M({},n),{color:o,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:v}),b={};d||(b.viewBox=p);const C=jL(g);return fe.jsxs(WL,B(M(M(M({as:s,className:je(C.root,a),focusable:"false",color:c,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},b),m),v&&i.props),{ownerState:g,children:[v?i.props.children:i,h?fe.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Id.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),_.string]),component:_.elementType,fontSize:_.oneOfType([_.oneOf(["inherit","large","medium","small"]),_.string]),htmlColor:_.string,inheritViewBox:_.bool,shapeRendering:_.string,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),titleAccess:_.string,viewBox:_.string});Id.muiName="SvgIcon";function hs(e,t){function r(n,i){return fe.jsx(Id,B(M({"data-testid":`${t}Icon`,ref:i},n),{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Id.muiName,Q.memo(Q.forwardRef(r))}const UL=hs(fe.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),VL=hs(fe.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),GL=hs(fe.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),qL=hs(fe.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function lr(e,t){const A=t,{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1}=A,u=xe(A,["className","elementType","ownerState","externalForwardedProps","internalForwardedProps","shouldForwardComponentProp"]),R=a,{component:c,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=R,p=xe(R,["component","slots","slotProps"]),m=d[e]||n,v=QT(h[e],i),N=ZT(B(M({className:r},u),{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:v})),{props:I}=N,H=I,{component:g}=H,b=xe(H,["component"]),{internalRef:C}=N,x=gr(C,v==null?void 0:v.ref,t.ref),E=e==="root"?g||c:g,T=XT(m,B(M(M(M(M(M({},e==="root"&&!c&&!d[e]&&o),e!=="root"&&!d[e]&&o),b),E&&!s&&{as:E}),E&&s&&{component:E}),{ref:x}),i);return[m,T]}const cS=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Le(r.size)}`],r.variant==="text"&&t[`text${Le(r.color)}`],r.variant==="outlined"&&t[`outlined${Le(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]},YL=e=>{const{classes:t,color:r,disabled:n,selected:i,size:a,shape:o,type:s,variant:u}=e,c={root:["root",`size${Le(a)}`,u,o,r!=="standard"&&`color${Le(r)}`,r!=="standard"&&`${u}${Le(r)}`,n&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Dt(c,QD,t)},XL=Ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:cS})($t(({theme:e})=>B(M({},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",[`&.${Ar.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),KL=Ne(Wa,{name:"MuiPaginationItem",slot:"Root",overridesResolver:cS})($t(({theme:e})=>B(M({},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,[`&.${Ar.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ar.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"}},[`&.${Ar.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}))`:Rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ar.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Ar.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{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)"}`,[`&.${Ar.selected}`]:{[`&.${Ar.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Ar.selected}`]:{[`&.${Ar.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(ea(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Ar.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Ar.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Ar.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(ea(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Ar.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Rt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Rt(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ar.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),ZL=Ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})($t(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),dS=Q.forwardRef(function(t,r){var q,ee,j,K;const n=Mt({props:t,name:"MuiPaginationItem"}),z=n,{className:i,color:a="standard",component:o,components:s={},disabled:u=!1,page:c,selected:d=!1,shape:h="circular",size:p="medium",slots:m={},slotProps:v={},type:g="page",variant:b="text"}=z,C=xe(z,["className","color","component","components","disabled","page","selected","shape","size","slots","slotProps","type","variant"]),x=B(M({},n),{color:a,disabled:u,selected:d,shape:h,size:p,type:g,variant:b}),E=bh(),T=YL(x),A={slots:{previous:(q=m.previous)!=null?q:s.previous,next:(ee=m.next)!=null?ee:s.next,first:(j=m.first)!=null?j:s.first,last:(K=m.last)!=null?K:s.last},slotProps:v},[R,N]=lr("previous",{elementType:GL,externalForwardedProps:A,ownerState:x}),[I,H]=lr("next",{elementType:qL,externalForwardedProps:A,ownerState:x}),[G,Y]=lr("first",{elementType:UL,externalForwardedProps:A,ownerState:x}),[O,F]=lr("last",{elementType:VL,externalForwardedProps:A,ownerState:x}),X=E?{previous:"next",next:"previous",first:"last",last:"first"}[g]:g,W={previous:R,next:I,first:G,last:O}[X],V={previous:N,next:H,first:Y,last:F}[X];return g==="start-ellipsis"||g==="end-ellipsis"?fe.jsx(XL,{ref:r,ownerState:x,className:je(T.root,i),children:"…"}):fe.jsxs(KL,B(M({ref:r,ownerState:x,component:o,disabled:u,className:je(T.root,i)},C),{children:[g==="page"&&c,W?fe.jsx(ZL,B(M({},V),{className:T.icon,as:W})):null]}))});process.env.NODE_ENV!=="production"&&(dS.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","standard"]),_.string]),component:_.elementType,components:_.shape({first:_.elementType,last:_.elementType,next:_.elementType,previous:_.elementType}),disabled:_.bool,page:_.node,selected:_.bool,shape:_.oneOf(["circular","rounded"]),size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),slotProps:_.shape({first:_.oneOfType([_.func,_.object]),last:_.oneOfType([_.func,_.object]),next:_.oneOfType([_.func,_.object]),previous:_.oneOfType([_.func,_.object])}),slots:_.shape({first:_.elementType,last:_.elementType,next:_.elementType,previous:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),type:_.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:_.oneOfType([_.oneOf(["outlined","text"]),_.string])});const QL=e=>{const{classes:t,variant:r}=e;return Dt({root:["root",r],ul:["ul"]},GD,t)},JL=Ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),e4=Ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function t4(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const hS=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiPagination"}),G=n,{boundaryCount:i=1,className:a,color:o="standard",count:s=1,defaultPage:u=1,disabled:c=!1,getItemAriaLabel:d=t4,hideNextButton:h=!1,hidePrevButton:p=!1,onChange:m,page:v,renderItem:g=Y=>fe.jsx(dS,M({},Y)),shape:b="circular",showFirstButton:C=!1,showLastButton:x=!1,siblingCount:E=1,size:T="medium",variant:A="text"}=G,R=xe(G,["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"]),{items:N}=qD(B(M({},n),{componentName:"Pagination"})),I=B(M({},n),{boundaryCount:i,color:o,count:s,defaultPage:u,disabled:c,getItemAriaLabel:d,hideNextButton:h,hidePrevButton:p,renderItem:g,shape:b,showFirstButton:C,showLastButton:x,siblingCount:E,size:T,variant:A}),H=QL(I);return fe.jsx(JL,B(M({"aria-label":"pagination navigation",className:je(H.root,a),ownerState:I,ref:r},R),{children:fe.jsx(e4,{className:H.ul,ownerState:I,children:N.map((Y,O)=>fe.jsx("li",{children:g(B(M({},Y),{color:o,"aria-label":d(Y.type,Y.page,Y.selected),shape:b,size:T,variant:A}))},O))})}))});process.env.NODE_ENV!=="production"&&(hS.propTypes={boundaryCount:Vn,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","standard"]),_.string]),count:Vn,defaultPage:Vn,disabled:_.bool,getItemAriaLabel:_.func,hideNextButton:_.bool,hidePrevButton:_.bool,onChange:_.func,page:Vn,renderItem:_.func,shape:_.oneOf(["circular","rounded"]),showFirstButton:_.bool,showLastButton:_.bool,siblingCount:Vn,size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["outlined","text"]),_.string])});const Nr={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 Lv(e){return[D.customFormula(Nr.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),D.customFormula(Nr.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),D.customFormula(Nr.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function r4(e){return[...Lv(e),D.customFormula(Nr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),D.customFormula(Nr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),D.customFormula(Nr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function n4(e){return[...Lv(e),D.customFormula(Nr.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),D.customFormula(Nr.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function i4(e){return[...Lv(e),D.customFormula(Nr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),D.customFormula(Nr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),D.customFormula(Nr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const a4=D.withComposeCodeForAnalytics(e=>{const t=D.cloneDeep(e),r=D.customFormula(Nr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=D.customFormula(Nr.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=i=>{const a=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return i?a:{jaql:a}},t},"boxWhiskerIqrOutliers"),o4=D.withComposeCodeForAnalytics(e=>{const t=D.cloneDeep(e),r=D.customFormula(Nr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=D.customFormula(Nr.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=i=>{const a=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return i?a:{jaql:a}},t},"boxWhiskerStdDevOutliers"),s4=e=>({type:"boxplot",xValues:[],series:[{name:e,title:e,data:[]}]}),l4=(e,t)=>{const{valueTitle:r}=e,n=e.boxMin&&w.getColumnByName(t,e.boxMin.column.name),i=e.boxMedian&&w.getColumnByName(t,e.boxMedian.column.name),a=e.boxMax&&w.getColumnByName(t,e.boxMax.column.name),o=e.whiskerMin&&w.getColumnByName(t,e.whiskerMin.column.name),s=e.whiskerMax&&w.getColumnByName(t,e.whiskerMax.column.name);if(!n||!i||!a||!o||!s)return s4(r);const u=e.category&&w.getColumnByName(t,e.category.column.name);u&&(u.direction=w.sortDirection(e.category.sortType));const c=w.getOrderedXValues(t,[],u?[u]:[],(u==null?void 0:u.direction)===0?w.rownumColumnName:void 0),d=w.getIndexedRows(t.rows,u?[u]:[]),h=e.outliers&&w.getColumnByName(t,e.outliers.column.name),p=[],m=[];c.forEach((g,b)=>{const C=d[g.key],x=C?C[0]:[],E=u&&!!w.isBlurred(x,u);p.push({q1:n?w.getValue(x,n):0,median:i?w.getValue(x,i):0,q3:a?w.getValue(x,a):0,low:o?w.getValue(x,o):0,high:s?w.getValue(x,s):0,blur:E});const T=h?x[h.index].rawValue.split(",").map(A=>parseFloat(A)):[];m.push(...T.map(A=>({x:b,y:A,blur:E})))});const v=[{name:e.valueTitle,title:e.valueTitle,data:p}];return m.length>0&&v.push({name:e.valueTitle,title:e.valueTitle,data:m}),{type:"boxplot",xValues:c,series:v}};function u4(e){return e.type==="boxplot"}const c4=(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}),Ih=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:i,onSizeChange:a,debounceMs:o=300})=>{const s=k.useRef(null),[u,c]=k.useState(),d=k.useRef(null),h=k.useCallback(()=>{var R,N;const A={width:(R=s.current)==null?void 0:R.offsetWidth,height:(N=s.current)==null?void 0:N.offsetHeight};c(I=>{const H=(I==null?void 0:I.width)===0&&A.width===t.width,G=(I==null?void 0:I.height)===0&&A.height===t.height,Y={width:H?I.width:A.width,height:G?I.height:A.height};return D.isEqual(I,Y)?I:Y})},[t]),p=k.useCallback(()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{h()},o)},[h,o]);k.useLayoutEffect(()=>{h()},[h]),k.useEffect(()=>{const A=s.current;if(!A)return;const R=new ResizeObserver(()=>{p()});return R.observe(A),()=>{R.disconnect(),d.current&&clearTimeout(d.current)}},[p]);const m=k.useMemo(()=>c4(u,r,t),[u,t,r]),v=!!u;k.useEffect(()=>{v&&a&&a(m)},[m,v,a]);const g={width:r!=null&&r.width&&!(i!=null&&i.width)?`${r.width}px`:"100%",height:r!=null&&r.height&&!(i!=null&&i.height)?`${r.height}px`:"100%"},b=(u==null?void 0:u.width)||(u==null?void 0:u.width)===void 0,C=(u==null?void 0:u.height)||(u==null?void 0:u.width)===void 0,x={width:b||i!=null&&i.width?"100%":`${m.width}px`,height:C||i!=null&&i.height?"100%":`${m.height}px`,position:"relative"},E=i!=null&&i.width||i!=null&&i.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},T=n?`${m==null?void 0:m.width}${m==null?void 0:m.height}`:"";return w.jsx("div",{style:g,ref:s,children:w.jsx("div",{style:x,children:w.jsx("div",{style:E,children:typeof e=="function"?e(m):e})},T)})},fS=32,pS={width:400,height:500},d4={width:400,height:400},h4={width:400,height:500},f4={width:200,height:200},Lh=e=>D.isTable(e)?h4:D.isIndicator(e)?f4:d4,mS=(e,{hasHeader:t}={})=>{const r=e==="pivot"?pS:Lh(e);return t?{width:r.width,height:r.height+fS}:r},Fv=k.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"},errorBoundary:{showErrorBox:!0}}),ut=()=>k.useContext(Fv);function p4(){const[e,t]=k.useState(null);return k.useEffect(()=>{D.initializeI18n().initPromise.then(r=>t(r))},[]),e}const gS=({children:e,userLanguage:t,customTranslations:r=[]})=>{const n=p4();return k.useEffect(()=>{if(t&&(n==null?void 0:n.language)!==t){for(const{language:i,resources:a,namespace:o="sdkUi"}of r.flat())n==null||n.addResourceBundle(i,o,a);n==null||n.changeLanguage(t)}},[n,t,r]),n&&w.jsx(kD,{i18n:n,children:e})},m4=()=>e=>function(r){const{isInitialized:n}=ut();return n?w.jsx(e,M({},r)):w.jsx(gS,{children:w.jsx(e,M({},r))})},$v="#F2F2F2",Bv=4,Hv="#D5D5D5",zv=1,jv="#D5D5D5",Wv=1,Uv="#DADADA",Vv=1,Gv="#DADADA",qv=1,Yv=15,Xv="#1FAFF3",vS="#1FCCF3",g4={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#5B6372",secondaryTextColor:"#70747D",hyperlinkColor:Xv,hyperlinkHoverColor:vS},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#ffffff",brandColor:"#ffcb05",primaryButtonTextColor:"#3a4356",primaryButtonHoverColor:"#f2b900",popover:{cornerRadius:0,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",header:{backgroundColor:"#F4F4F8",textColor:"#5B6372"},footer:{backgroundColor:"#FFFFFF",textColor:"#5B6372"},content:{backgroundColor:"#FFFFFF",textColor:"#5B6372",clickableList:{item:{textColor:"#5B6372",backgroundColor:"#FFFFFF",hover:{textColor:"#000000",backgroundColor:"#F4F4F8"}}}},input:{backgroundColor:"#F4F4F8",textColor:"#5B6372",borderColor:{default:"transparent",focus:"#5B6372",hover:"transparent"},cornerRadius:4,dropdownList:{backgroundColor:"#FFFFFF",textColor:"#5B6372",borderColor:"#9EA2AB",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:"#5B6372"}},datepicker:{backgroundColor:"#FFFFFF",textColor:"#5B6372",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:{default:"#5B6372",focus:"#5B6372",hover:"#5B6372"}}}}},buttons:{primary:{backgroundColor:{default:"#FFCB05",focus:"#F2B900",hover:"#F2B900"},textColor:"#3A4356"},cancel:{backgroundColor:{default:"#EDEEF1",focus:"#D0D3DB",hover:"#D0D3DB"},textColor:"#3A4356"}}},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#9EA2AB",header:{titleTextColor:"#5B6372",titleFontSize:Yv,titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#5B6372",backgroundColor:"#FFFFFF"}},dashboard:{backgroundColor:"#FFFFFF",dividerLineWidth:Bv,dividerLineColor:$v,borderColor:Hv,borderWidth:zv,toolbar:{primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB",backgroundColor:"#FFFFFF",dividerLineColor:jv,dividerLineWidth:Wv}},filter:{panel:{titleColor:"#5B6372",backgroundColor:"#F6F6F6",dividerLineColor:Uv,dividerLineWidth:Vv,borderColor:Gv,borderWidth:qv}},aiChat:{backgroundColor:"rgba(244, 244, 248, 1)",primaryTextColor:"rgba(38, 46, 61, 0.8)",secondaryTextColor:"rgba(38, 46, 61, 0.55)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},systemMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},input:{backgroundColor:"rgba(255, 255, 255, 1)",focus:{outlineColor:"rgba(38, 46, 61, 0.5)"}},header:{textColor:"rgba(38, 46, 61, 0.8)",backgroundColor:"rgba(255, 255, 255, 1)"},dropup:{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",borderRadius:"4px",headers:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}},items:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}}},border:"1px solid #c6c9ce",borderRadius:"30px",suggestions:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"},loadingGradient:["rgba(194, 196, 203, 1)","rgba(236, 236, 239, 1)"],gap:"8px"},clickableMessages:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"}},dataTopics:{backgroundColor:"rgba(255, 255, 255, 1)",items:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)"}},icons:{color:"rgba(38, 46, 61, 0.67)",feedbackIcons:{hoverColor:"rgba(12, 14, 18, 0.07)"}},tooltips:{backgroundColor:"rgba(255, 255, 255, 1)",textColor:"rgba(38, 46, 61, 0.8)",boxShadow:"0px 4px 12px 0px rgba(9, 9, 10, 0.20), 0px 1px 4px 0px rgba(9, 9, 10, 0.10)"}}},v4={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",hyperlinkColor:Xv,hyperlinkHoverColor:vS},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#16161C",brandColor:"#FFCB05",primaryButtonTextColor:"#3A4356",primaryButtonHoverColor:"#F2B900",popover:{cornerRadius:0,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",header:{backgroundColor:"#313138",textColor:"#FFFFFF"},footer:{backgroundColor:"#16161C",textColor:"#FFFFFF"},content:{backgroundColor:"#16161C",textColor:"#FFFFFF",clickableList:{item:{textColor:"#FFFFFF",backgroundColor:"#16161C",hover:{textColor:"#FFFFFF",backgroundColor:"#3C3C42"}}}},input:{cornerRadius:4,backgroundColor:"#3C3C42",textColor:"#FFFFFF",borderColor:{default:"transparent",focus:"#FFFFFF",hover:"transparent"},dropdownList:{backgroundColor:"#16161C",textColor:"#FFFFFF",borderColor:"#9EA2AB",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#16161C",focus:"#16161C",hover:"#3C3C42"},textColor:"#FFFFFF"}},datepicker:{backgroundColor:"#FFFFFF",textColor:"#5B6372",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:{default:"#5B6372",focus:"#5B6372",hover:"#5B6372"}}}}},buttons:{primary:{backgroundColor:{default:"#FFCB05",focus:"#F2B900",hover:"#F2B900"},textColor:"#3A4356"},cancel:{backgroundColor:{default:"#EDEEF1",focus:"#D0D3DB",hover:"#D0D3DB"},textColor:"#3A4356"}}},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#C5C8CF",header:{titleTextColor:"#FFFFFF",titleAlignment:"Left",titleFontSize:Yv,dividerLine:!1,dividerLineColor:"#FFFFFF",backgroundColor:"#313138"}},dashboard:{backgroundColor:"#313138",dividerLineWidth:Bv,dividerLineColor:$v,borderColor:Hv,borderWidth:zv,toolbar:{primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",backgroundColor:"#313138",dividerLineColor:jv,dividerLineWidth:Wv}},filter:{panel:{titleColor:"#FFFFFF",backgroundColor:"#313138",dividerLineColor:Uv,dividerLineWidth:Vv,borderColor:Gv,borderWidth:qv}},aiChat:{backgroundColor:"rgba(23, 28, 38, 1)",primaryTextColor:"rgba(242, 247, 255, 0.9)",secondaryTextColor:"rgba(242, 247, 255, 0.4)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(31, 92, 153, 1)"},systemMessages:{backgroundColor:"rgba(46, 55, 77, 1)"},input:{backgroundColor:"rgba(242, 247, 255, 0.1)",focus:{outlineColor:"rgba(242, 247, 255, 0.5)"}},header:{backgroundColor:"#313138",textColor:"rgba(242, 247, 255, 0.9)"},dropup:{backgroundColor:"rgba(38, 46, 64, 1)",boxShadow:"0px 1px 4px 0px #020203, 0px 2px 12px 2px rgba(2, 2, 3, 0.25)",borderRadius:"8px",headers:{textColor:"rgba(242, 247, 255, 0.6)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}},items:{textColor:"rgba(242, 247, 255, 0.9)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}}},border:!1,borderRadius:"30px",suggestions:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"},loadingGradient:["rgba(242, 247, 255, 0.1)","rgba(242, 247, 255, 0.3)"],gap:"8px"},clickableMessages:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"}},dataTopics:{backgroundColor:"rgba(23, 28, 38, 1)",items:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)"}},icons:{color:"rgba(242, 247, 255, 0.5)",feedbackIcons:{hoverColor:"rgba(242, 247, 255, 0.1)"}},tooltips:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)",boxShadow:"0px 1px 8px 0px #020203, 0px 4px 24px 4px rgba(2, 2, 3, 0.25)"}}},Ld=(e=!1)=>e?D.cloneDeep(v4):D.cloneDeep(g4),Kv=k.createContext({themeSettings:Ld()}),gt=()=>k.useContext(Kv);function yS({color:e="#FFCB05"}){return w.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:w.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:w.jsxs("g",{children:[w.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),w.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 y4="_container_1wquj_1",b4="_card_1wquj_11",_4="_text_1wquj_19",Wp={container:y4,card:b4,text:_4},Zv=({error:e=new D.TranslatableError("errors.componentRenderError")})=>{var p,m,v,g,b,C;const{themeSettings:t}=gt(),{app:r}=ut(),{t:n}=w.useTranslation(),[i,a]=k.useState(!1),o=()=>{a(!0)},s=()=>{a(!1)},u=w.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:w.jsx(yS,{color:(p=t==null?void 0:t.general)==null?void 0:p.brandColor})}),c=e instanceof D.AbstractTranslatableError?n(e.key,M({},e.interpolationOptions)):n(e instanceof Error?e.message:e),d=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),h=(v=(m=r==null?void 0:r.settings)==null?void 0:m.errorBoundaryConfig)==null?void 0:v.alwaysShowErrorText;return w.jsx("div",{onMouseEnter:h?void 0:o,onMouseLeave:h?void 0:s,className:Wp.container,"aria-label":"error-box",children:w.jsxs("div",{className:Wp.card,style:{backgroundColor:((g=t==null?void 0:t.general)==null?void 0:g.backgroundColor)||"rgba(255,255,255,0.5)"},children:[u,(h||i)&&w.jsx("div",{className:Wp.text,style:{color:((b=t==null?void 0:t.typography)==null?void 0:b.primaryTextColor)||w.DEFAULT_TEXT_COLOR,fontFamily:((C=t==null?void 0:t.typography)==null?void 0:C.fontFamily)||"inherit"},children:d})]})})};let bS=class extends k.Component{constructor(r){super(r);Je(this,"showErrorBox",!0);Je(this,"onError");Je(this,"isContainerComponent");this.onError=r.onError,this.isContainerComponent=r.isContainerComponent||!1,this.state={error:null,customErrorUI:null}}static getDerivedStateFromError(r){return{error:r,customErrorUI:null}}componentDidCatch(r){const n=r instanceof Error?r:new Error(r);if(this.onError){const i=this.onError(n);if(i!==void 0&&k.isValidElement(i)){this.setState({error:r,customErrorUI:i});return}}this.setState({error:r})}componentDidUpdate(r,n){if(n.error!==null&&w4(r.resetKeys,this.props.resetKeys)&&this.setState({error:null,customErrorUI:null}),this.props.error&&!r.error&&!n.error&&!this.state.error&&this.onError){const i=this.props.error instanceof Error?this.props.error:new Error(String(this.props.error)),a=this.onError(i);a!==void 0&&k.isValidElement(a)&&this.setState({customErrorUI:a})}}render(){const{error:r,customErrorUI:n}=this.state,{shouldRenderChildrenWithProvidedError:i,showErrorBox:a,error:o,children:s}=this.props,u=r||o;return!u||o&&!r&&i?s:a?n||w.jsx(Zv,{error:u}):null}};function w4(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!D.isEqual(r,t[n]))}const _S=({componentName:e})=>t=>function(n){const i=ut(),a=o=>{var s,u;return(u=(s=i.errorBoundary).onError)==null?void 0:u.call(s,o,{componentName:e,componentProps:n})};return w.jsx(bS,{resetKeys:Object.values(n),showErrorBox:i.errorBoundary.showErrorBox,onError:a,isContainerComponent:!!(n!=null&&n.children),children:w.jsx(t,M({},n))})},Qv=k.createContext(null),Fh=()=>k.useContext(Qv),Wl=Q.createContext({});process.env.NODE_ENV!=="production"&&(Wl.displayName="ListContext");function C4(e){return bt("MuiDivider",e)}const z_=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),x4=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:u}=e;return Dt({root:["root",t&&"absolute",u,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},C4,n)},T4=Ne("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]}})($t(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Rt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),S4=Ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})($t(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ma=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiDivider"}),C=n,{absolute:i=!1,children:a,className:o,orientation:s="horizontal",component:u=a||s==="vertical"?"div":"hr",flexItem:c=!1,light:d=!1,role:h=u!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=C,v=xe(C,["absolute","children","className","orientation","component","flexItem","light","role","textAlign","variant"]),g=B(M({},n),{absolute:i,component:u,flexItem:c,light:d,orientation:s,role:h,textAlign:p,variant:m}),b=x4(g);return fe.jsx(T4,B(M({as:u,className:je(b.root,o),role:h,ref:r,ownerState:g,"aria-orientation":h==="separator"&&(u!=="hr"||s==="vertical")?s:void 0},v),{children:a?fe.jsx(S4,{className:b.wrapper,ownerState:g,children:a}):null}))});Ma&&(Ma.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Ma.propTypes={absolute:_.bool,children:_.node,classes:_.object,className:_.string,component:_.elementType,flexItem:_.bool,light:_.bool,orientation:_.oneOf(["horizontal","vertical"]),role:_.string,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),textAlign:_.oneOf(["center","left","right"]),variant:_.oneOfType([_.oneOf(["fullWidth","inset","middle"]),_.string])});const j_=_t("MuiListItemIcon",["root","alignItemsFlexStart"]);function E4(e){return bt("MuiTypography",e)}const M4=_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),A4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},P4=bL(),R4=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Le(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Dt(s,E4,o)},O4=Ne("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${Le(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})($t(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(ea()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Le(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),W_={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qr=Q.forwardRef(function(t,r){const E=Mt({props:t,name:"MuiTypography"}),{color:n}=E,i=xe(E,["color"]),a=!A4[n],o=P4(M(M({},i),a&&{color:n})),T=o,{align:s="inherit",className:u,component:c,gutterBottom:d=!1,noWrap:h=!1,paragraph:p=!1,variant:m="body1",variantMapping:v=W_}=T,g=xe(T,["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"]),b=B(M({},o),{align:s,color:n,className:u,component:c,gutterBottom:d,noWrap:h,paragraph:p,variant:m,variantMapping:v}),C=c||(p?"p":v[m]||W_[m])||"span",x=R4(b);return fe.jsx(O4,B(M({as:C,ref:r,className:je(x.root,u)},g),{ownerState:b,style:M(M({},s!=="inherit"&&{"--Typography-textAlign":s}),g.style)}))});process.env.NODE_ENV!=="production"&&(qr.propTypes={align:_.oneOf(["center","inherit","justify","left","right"]),children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),_.string]),component:_.elementType,gutterBottom:_.bool,noWrap:_.bool,paragraph:_.bool,style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),_.string]),variantMapping:_.object});function k4(e){return bt("MuiListItemText",e)}const a0=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function D4(e){return bt("MuiMenuItem",e)}const Zs=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),N4=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},I4=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:o}=e,u=Dt({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},D4,o);return M(M({},o),u)},L4=Ne(Wa,{shouldForwardProp:e=>Eu(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:N4})($t(({theme:e})=>B(M({},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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rt(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})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${z_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${z_.inset}`]:{marginLeft:52},[`& .${a0.root}`]:{marginTop:0,marginBottom:0},[`& .${a0.inset}`]:{paddingLeft:36},[`& .${j_.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:B(M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2),{[`& .${j_.root} svg`]:{fontSize:"1.25rem"}})}]}))),$h=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiMenuItem"}),A=n,{autoFocus:i=!1,component:a="li",dense:o=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:p}=A,m=xe(A,["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"]),v=Q.useContext(Wl),g=Q.useMemo(()=>({dense:o||v.dense||!1,disableGutters:u}),[v.dense,o,u]),b=Q.useRef(null);Mn(()=>{i&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const C=B(M({},n),{dense:g.dense,divider:s,disableGutters:u}),x=I4(n),E=gr(b,r);let T;return n.disabled||(T=h!==void 0?h:-1),fe.jsx(Wl.Provider,{value:g,children:fe.jsx(L4,B(M({ref:E,role:d,tabIndex:T,component:a,focusVisibleClassName:je(x.focusVisible,c),className:je(x.root,p)},m),{ownerState:C,classes:x}))})});process.env.NODE_ENV!=="production"&&($h.propTypes={autoFocus:_.bool,children:_.node,classes:_.object,className:_.string,component:_.elementType,dense:_.bool,disabled:_.bool,disableGutters:_.bool,divider:_.bool,focusVisibleClassName:_.string,role:_.string,selected:_.bool,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),tabIndex:_.number});const F4=({children:e,disabled:t,style:r,className:n="",onClick:i})=>{const{themeSettings:a}=gt();return w.jsx("div",{className:`csdk-menu-item ${n}`,children:w.jsx($h,{disabled:t,sx:M({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:a.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"15px",color:w.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:w.DEFAULT_BACKGROUND_COLOR}},r),onClick:i,children:w.jsx("div",{className:"csdk-menu-item-content",children:e})})})};function $4(e){return bt("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const B4=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,o={root:["root",r!=="default"&&`color${Le(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Dt(o,$4,t)},H4=Ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Le(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})($t(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Fd=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiListSubheader"}),m=n,{className:i,color:a="default",component:o="li",disableGutters:s=!1,disableSticky:u=!1,inset:c=!1}=m,d=xe(m,["className","color","component","disableGutters","disableSticky","inset"]),h=B(M({},n),{color:a,component:o,disableGutters:s,disableSticky:u,inset:c}),p=B4(h);return fe.jsx(H4,M({as:o,className:je(p.root,i),ref:r,ownerState:h},d))});Fd&&(Fd.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Fd.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOf(["default","inherit","primary"]),component:_.elementType,disableGutters:_.bool,disableSticky:_.bool,inset:_.bool,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});const z4=({children:e})=>{const{themeSettings:t}=gt();return w.jsx(Fd,{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:w.DEFAULT_TEXT_COLOR},children:e})};var o0={exports:{}},ft={};/**
151
- * @license React
152
- * react-is.production.js
153
- *
154
- * Copyright (c) Meta Platforms, Inc. and affiliates.
155
- *
156
- * This source code is licensed under the MIT license found in the
157
- * LICENSE file in the root directory of this source tree.
158
- */var U_;function j4(){if(U_)return ft;U_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case i:case n:case u:case c:return g;default:switch(g=g&&g.$$typeof,g){case o:case s:case h:case d:return g;case a:return g;default:return b}}case t:return b}}}return ft.ContextConsumer=a,ft.ContextProvider=o,ft.Element=e,ft.ForwardRef=s,ft.Fragment=r,ft.Lazy=h,ft.Memo=d,ft.Portal=t,ft.Profiler=i,ft.StrictMode=n,ft.Suspense=u,ft.SuspenseList=c,ft.isContextConsumer=function(g){return v(g)===a},ft.isContextProvider=function(g){return v(g)===o},ft.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ft.isForwardRef=function(g){return v(g)===s},ft.isFragment=function(g){return v(g)===r},ft.isLazy=function(g){return v(g)===h},ft.isMemo=function(g){return v(g)===d},ft.isPortal=function(g){return v(g)===t},ft.isProfiler=function(g){return v(g)===i},ft.isStrictMode=function(g){return v(g)===n},ft.isSuspense=function(g){return v(g)===u},ft.isSuspenseList=function(g){return v(g)===c},ft.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===n||g===u||g===c||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===d||g.$$typeof===o||g.$$typeof===a||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},ft.typeOf=v,ft}var pt={};/**
159
- * @license React
160
- * react-is.development.js
161
- *
162
- * Copyright (c) Meta Platforms, Inc. and affiliates.
163
- *
164
- * This source code is licensed under the MIT license found in the
165
- * LICENSE file in the root directory of this source tree.
166
- */var V_;function W4(){return V_||(V_=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case t:switch(g=g.type,g){case n:case a:case i:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case u:case p:case h:return g;case o:return g;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");pt.ContextConsumer=o,pt.ContextProvider=s,pt.Element=t,pt.ForwardRef=u,pt.Fragment=n,pt.Lazy=p,pt.Memo=h,pt.Portal=r,pt.Profiler=a,pt.StrictMode=i,pt.Suspense=c,pt.SuspenseList=d,pt.isContextConsumer=function(g){return e(g)===o},pt.isContextProvider=function(g){return e(g)===s},pt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},pt.isForwardRef=function(g){return e(g)===u},pt.isFragment=function(g){return e(g)===n},pt.isLazy=function(g){return e(g)===p},pt.isMemo=function(g){return e(g)===h},pt.isPortal=function(g){return e(g)===r},pt.isProfiler=function(g){return e(g)===a},pt.isStrictMode=function(g){return e(g)===i},pt.isSuspense=function(g){return e(g)===c},pt.isSuspenseList=function(g){return e(g)===d},pt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===a||g===i||g===c||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===h||g.$$typeof===s||g.$$typeof===o||g.$$typeof===u||g.$$typeof===v||g.getModuleId!==void 0)},pt.typeOf=e}()),pt}process.env.NODE_ENV==="production"?o0.exports=j4():o0.exports=W4();var Jv=o0.exports;function U4(e){return bt("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const V4=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Dt({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},U4,t)},G4=Ne("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ey=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiList"}),v=n,{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:u=!1,subheader:c}=v,d=xe(v,["children","className","component","dense","disablePadding","subheader"]),h=Q.useMemo(()=>({dense:s}),[s]),p=B(M({},n),{component:o,dense:s,disablePadding:u}),m=V4(p);return fe.jsx(Wl.Provider,{value:h,children:fe.jsxs(G4,B(M({as:o,className:je(m.root,a),ref:r,ownerState:p},d),{children:[c,i]}))})});process.env.NODE_ENV!=="production"&&(ey.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,dense:_.bool,disablePadding:_.bool,subheader:_.node,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function q4(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,o=typeof e=="function"?e(M(M({},i),a)):e,s=je(i==null?void 0:i.className,a==null?void 0:a.className,o==null?void 0:o.className);return M(M(M(M(M({},a),o),!!s&&{className:s}),(a==null?void 0:a.style)&&(o==null?void 0:o.style)&&{style:M(M({},a.style),o.style)}),(a==null?void 0:a.sx)&&(o==null?void 0:o.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]})};const r=t,n=je(r==null?void 0:r.className,e==null?void 0:e.className);return M(M(M(M(M({},t),e),!!n&&{className:n}),(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:M(M({},r.style),e.style)}),(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]})}function Up(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function G_(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function wS(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.startsWith(t.keys.join(""))}function Qs(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!wS(s,a)||u)s=i(e,s,r);else return s.focus(),!0}return!1}const ty=Q.forwardRef(function(t,r){const E=t,{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:u=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu"}=E,p=xe(E,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),m=Q.useRef(null),v=Q.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mn(()=>{i&&m.current.focus()},[i]),Q.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:A})=>{const R=!m.current.style.width;if(T.clientHeight<m.current.clientHeight&&R){const N=`${YT(Si(T))}px`;m.current.style[A==="rtl"?"paddingLeft":"paddingRight"]=N,m.current.style.width=`calc(100% + ${N})`}return m.current}}),[]);const g=T=>{const A=m.current,R=T.key;if(T.ctrlKey||T.metaKey||T.altKey){d&&d(T);return}const I=Qr(A).activeElement;if(R==="ArrowDown")T.preventDefault(),Qs(A,I,c,u,Up);else if(R==="ArrowUp")T.preventDefault(),Qs(A,I,c,u,G_);else if(R==="Home")T.preventDefault(),Qs(A,null,c,u,Up);else if(R==="End")T.preventDefault(),Qs(A,null,c,u,G_);else if(R.length===1){const H=v.current,G=R.toLowerCase(),Y=performance.now();H.keys.length>0&&(Y-H.lastTime>500?(H.keys=[],H.repeating=!0,H.previousKeyMatched=!0):H.repeating&&G!==H.keys[0]&&(H.repeating=!1)),H.lastTime=Y,H.keys.push(G);const O=I&&!H.repeating&&wS(I,H);H.previousKeyMatched&&(O||Qs(A,I,!1,u,Up,H))?T.preventDefault():H.previousKeyMatched=!1}d&&d(T)},b=gr(m,r);let C=-1;Q.Children.forEach(o,(T,A)=>{if(!Q.isValidElement(T)){C===A&&(C+=1,C>=o.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&Jv.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
167
- `)),T.props.disabled||(h==="selectedMenu"&&T.props.selected||C===-1)&&(C=A),C===A&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(C+=1,C>=o.length&&(C=-1))});const x=Q.Children.map(o,(T,A)=>{if(A===C){const R={};return a&&(R.autoFocus=!0),T.props.tabIndex===void 0&&h==="selectedMenu"&&(R.tabIndex=0),Q.cloneElement(T,R)}return T});return fe.jsx(ey,B(M({role:"menu",ref:b,className:s,onKeyDown:g,tabIndex:i?0:-1},p),{children:x}))});process.env.NODE_ENV!=="production"&&(ty.propTypes={autoFocus:_.bool,autoFocusItem:_.bool,children:_.node,className:_.string,disabledItemsFocusable:_.bool,disableListWrap:_.bool,onKeyDown:_.func,variant:_.oneOf(["menu","selectedMenu"])});function s0(e){return typeof e=="string"}function Ul(e,t){var a,o;const{timeout:r,easing:n,style:i={}}=e;return{duration:(a=i.transitionDuration)!=null?a:typeof r=="number"?r:r[t.mode]||0,easing:(o=i.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:i.transitionDelay}}function l0(e){return`scale(${e}, ${Bn(e,2)})`}const Y4={entering:{opacity:1,transform:l0(1)},entered:{opacity:1,transform:"none"}},Vp=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vl=Q.forwardRef(function(t,r){const W=t,{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:h,onExited:p,onExiting:m,style:v,timeout:g="auto",TransitionComponent:b=Rn}=W,C=xe(W,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=xa(),E=Q.useRef(),T=Su(),A=Q.useRef(null),R=gr(A,ds(a),r),N=V=>z=>{if(V){const q=A.current;z===void 0?V(q):V(q,z)}},I=N(d),H=N((V,z)=>{const{duration:q,delay:ee,easing:j}=Ul({style:v,timeout:g,easing:o},{mode:"enter"});let K;g==="auto"?(K=T.transitions.getAutoHeightDuration(V.clientHeight),E.current=K):K=q,V.style.transition=[T.transitions.create("opacity",{duration:K,delay:ee}),T.transitions.create("transform",{duration:Vp?K:K*.666,delay:ee,easing:j})].join(","),u&&u(V,z)}),G=N(c),Y=N(m),O=N(V=>{const{duration:z,delay:q,easing:ee}=Ul({style:v,timeout:g,easing:o},{mode:"exit"});let j;g==="auto"?(j=T.transitions.getAutoHeightDuration(V.clientHeight),E.current=j):j=z,V.style.transition=[T.transitions.create("opacity",{duration:j,delay:q}),T.transitions.create("transform",{duration:Vp?j:j*.666,delay:Vp?q:q||j*.333,easing:ee})].join(","),V.style.opacity=0,V.style.transform=l0(.75),h&&h(V)}),F=N(p),X=V=>{g==="auto"&&x.start(E.current||0,V),n&&n(A.current,V)};return fe.jsx(b,B(M({appear:i,in:s,nodeRef:A,onEnter:H,onEntered:G,onEntering:I,onExit:O,onExited:F,onExiting:Y,addEndListener:X,timeout:g==="auto"?null:g},C),{children:(V,ee)=>{var j=ee,{ownerState:z}=j,q=xe(j,["ownerState"]);return Q.cloneElement(a,M({style:M(M(M({opacity:0,transform:l0(.75),visibility:V==="exited"&&!s?"hidden":void 0},Y4[V]),v),a.props.style),ref:R},q))}}))});process.env.NODE_ENV!=="production"&&(Vl.propTypes={addEndListener:_.func,appear:_.bool,children:ja.isRequired,easing:_.oneOfType([_.shape({enter:_.string,exit:_.string}),_.string]),in:_.bool,onEnter:_.func,onEntered:_.func,onEntering:_.func,onExit:_.func,onExited:_.func,onExiting:_.func,style:_.object,timeout:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});Vl&&(Vl.muiSupportAuto=!0);function X4(e){const t=Qr(e);return t.body===e?Si(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ml(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function q_(e){return parseInt(Si(e).getComputedStyle(e).paddingRight,10)||0}function K4(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Y_(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=!a.includes(o),u=!K4(o);s&&u&&Ml(o,i)})}function Gp(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Z4(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(X4(n)){const o=YT(Si(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${q_(n)+o}px`;const s=Qr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${q_(u)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Qr(n).body;else{const o=n.parentElement,s=Si(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function Q4(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class J4{constructor(){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&&Ml(t.modalRef,!1);const i=Q4(r);Y_(r,t.mount,t.modalRef,i,!0);const a=Gp(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Gp(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=Z4(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Gp(this.containers,o=>o.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Ml(t.modalRef,r),Y_(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Ml(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const e5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function t5(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 r5(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 n5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||r5(e))}function i5(e){const t=[],r=[];return Array.from(e.querySelectorAll(e5)).forEach((n,i)=>{const a=t5(n);a===-1||!n5(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function a5(){return!0}function $d(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=i5,isEnabled:o=a5,open:s}=e,u=Q.useRef(!1),c=Q.useRef(null),d=Q.useRef(null),h=Q.useRef(null),p=Q.useRef(null),m=Q.useRef(!1),v=Q.useRef(null),g=gr(ds(t),v),b=Q.useRef(null);Q.useEffect(()=>{!s||!v.current||(m.current=!r)},[r,s]),Q.useEffect(()=>{if(!s||!v.current)return;const E=Qr(v.current);return v.current.contains(E.activeElement)||(v.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(`
168
- `)),v.current.setAttribute("tabIndex","-1")),m.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[s]),Q.useEffect(()=>{if(!s||!v.current)return;const E=Qr(v.current),T=N=>{b.current=N,!(n||!o()||N.key!=="Tab")&&E.activeElement===v.current&&N.shiftKey&&(u.current=!0,d.current&&d.current.focus())},A=()=>{var H,G;const N=v.current;if(N===null)return;if(!E.hasFocus()||!o()||u.current){u.current=!1;return}if(N.contains(E.activeElement)||n&&E.activeElement!==c.current&&E.activeElement!==d.current)return;if(E.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let I=[];if((E.activeElement===c.current||E.activeElement===d.current)&&(I=a(v.current)),I.length>0){const Y=!!((H=b.current)!=null&&H.shiftKey&&((G=b.current)==null?void 0:G.key)==="Tab"),O=I[0],F=I[I.length-1];typeof O!="string"&&typeof F!="string"&&(Y?F.focus():O.focus())}else N.focus()};E.addEventListener("focusin",A),E.addEventListener("keydown",T,!0);const R=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(R),E.removeEventListener("focusin",A),E.removeEventListener("keydown",T,!0)}},[r,n,i,o,s,a]);const C=E=>{h.current===null&&(h.current=E.relatedTarget),m.current=!0,p.current=E.target;const T=t.props.onFocus;T&&T(E)},x=E=>{h.current===null&&(h.current=E.relatedTarget),m.current=!0};return fe.jsxs(Q.Fragment,{children:[fe.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:c,"data-testid":"sentinelStart"}),Q.cloneElement(t,{ref:g,onFocus:C}),fe.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&($d.propTypes={children:ja,disableAutoFocus:_.bool,disableEnforceFocus:_.bool,disableRestoreFocus:_.bool,getTabbable:_.func,isEnabled:_.func,open:_.bool.isRequired});process.env.NODE_ENV!=="production"&&($d.propTypes=Pv($d.propTypes));function o5(e){return typeof e=="function"?e():e}const Gl=Q.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=Q.useState(null),u=gr(Q.isValidElement(n)?ds(n):null,r);if(Mn(()=>{a||s(o5(i)||document.body)},[i,a]),Mn(()=>{if(o&&!a)return M_(r,o),()=>{M_(r,null)}},[r,o,a]),a){if(Q.isValidElement(n)){const c={ref:u};return Q.cloneElement(n,c)}return n}return o&&OD.createPortal(n,o)});process.env.NODE_ENV!=="production"&&(Gl.propTypes={children:_.node,container:_.oneOfType([Ti,_.func]),disablePortal:_.bool});process.env.NODE_ENV!=="production"&&(Gl.propTypes=Pv(Gl.propTypes));const s5={entering:{opacity:1},entered:{opacity:1}},ry=Q.forwardRef(function(t,r){const n=Su(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},X=t,{addEndListener:a,appear:o=!0,children:s,easing:u,in:c,onEnter:d,onEntered:h,onEntering:p,onExit:m,onExited:v,onExiting:g,style:b,timeout:C=i,TransitionComponent:x=Rn}=X,E=xe(X,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=Q.useRef(null),A=gr(T,ds(s),r),R=W=>V=>{if(W){const z=T.current;V===void 0?W(z):W(z,V)}},N=R(p),I=R((W,V)=>{const z=Ul({style:b,timeout:C,easing:u},{mode:"enter"});W.style.webkitTransition=n.transitions.create("opacity",z),W.style.transition=n.transitions.create("opacity",z),d&&d(W,V)}),H=R(h),G=R(g),Y=R(W=>{const V=Ul({style:b,timeout:C,easing:u},{mode:"exit"});W.style.webkitTransition=n.transitions.create("opacity",V),W.style.transition=n.transitions.create("opacity",V),m&&m(W)}),O=R(v),F=W=>{a&&a(T.current,W)};return fe.jsx(x,B(M({appear:o,in:c,nodeRef:T,onEnter:I,onEntered:H,onEntering:N,onExit:Y,onExited:O,onExiting:G,addEndListener:F,timeout:C},E),{children:(W,q)=>{var ee=q,{ownerState:V}=ee,z=xe(ee,["ownerState"]);return Q.cloneElement(s,M({style:M(M(M({opacity:0,visibility:W==="exited"&&!c?"hidden":void 0},s5[W]),b),s.props.style),ref:A},z))}}))});process.env.NODE_ENV!=="production"&&(ry.propTypes={addEndListener:_.func,appear:_.bool,children:ja.isRequired,easing:_.oneOfType([_.shape({enter:_.string,exit:_.string}),_.string]),in:_.bool,onEnter:_.func,onEntered:_.func,onEntering:_.func,onExit:_.func,onExited:_.func,onExiting:_.func,style:_.object,timeout:_.oneOfType([_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});function l5(e){return bt("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const u5=e=>{const{classes:t,invisible:r}=e;return Dt({root:["root",r&&"invisible"]},l5,t)},c5=Ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ny=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiBackdrop"}),H=n,{children:i,className:a,component:o="div",invisible:s=!1,open:u,components:c={},componentsProps:d={},slotProps:h={},slots:p={},TransitionComponent:m,transitionDuration:v}=H,g=xe(H,["children","className","component","invisible","open","components","componentsProps","slotProps","slots","TransitionComponent","transitionDuration"]),b=B(M({},n),{component:o,invisible:s}),C=u5(b),x=M({transition:m,root:c.Root},p),E=M(M({},d),h),T={slots:x,slotProps:E},[A,R]=lr("root",{elementType:c5,externalForwardedProps:T,className:je(C.root,a),ownerState:b}),[N,I]=lr("transition",{elementType:ry,externalForwardedProps:T,ownerState:b});return fe.jsx(N,B(M(M({in:u,timeout:v},g),I),{children:fe.jsx(A,B(M({"aria-hidden":!0},R),{classes:C,ref:r,children:i}))}))});process.env.NODE_ENV!=="production"&&(ny.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,components:_.shape({Root:_.elementType}),componentsProps:_.shape({root:_.object}),invisible:_.bool,open:_.bool.isRequired,slotProps:_.shape({root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),TransitionComponent:_.elementType,transitionDuration:_.oneOfType([_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});function d5(e){return typeof e=="function"?e():e}function h5(e){return e?e.props.hasOwnProperty("in"):!1}const X_=()=>{},kc=new J4;function f5(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:u,open:c,rootRef:d}=e,h=Q.useRef({}),p=Q.useRef(null),m=Q.useRef(null),v=gr(m,d),[g,b]=Q.useState(!c),C=h5(s);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Qr(p.current),T=()=>(h.current.modalRef=m.current,h.current.mount=p.current,h.current),A=()=>{kc.mount(T(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},R=Kn(()=>{const W=d5(t)||E().body;kc.add(T(),W),m.current&&A()}),N=()=>kc.isTopModal(T()),I=Kn(W=>{p.current=W,W&&(c&&N()?A():m.current&&Ml(m.current,x))}),H=Q.useCallback(()=>{kc.remove(T(),x)},[x]);Q.useEffect(()=>()=>{H()},[H]),Q.useEffect(()=>{c?R():(!C||!i)&&H()},[c,H,C,i,R]);const G=W=>V=>{var z;(z=W.onKeyDown)==null||z.call(W,V),!(V.key!=="Escape"||V.which===229||!N())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},Y=W=>V=>{var z;(z=W.onClick)==null||z.call(W,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(W={})=>{const V=KT(e);delete V.onTransitionEnter,delete V.onTransitionExited;const z=M(M({},V),W);return B(M({role:"presentation"},z),{onKeyDown:G(z),ref:v})},getBackdropProps:(W={})=>{const V=W;return B(M({"aria-hidden":!0},V),{onClick:Y(V),open:c})},getTransitionProps:()=>{var z,q;const W=()=>{b(!1),a&&a()},V=()=>{b(!0),o&&o(),i&&H()};return{onEnter:Jm(W,(z=s==null?void 0:s.props.onEnter)!=null?z:X_),onExited:Jm(V,(q=s==null?void 0:s.props.onExited)!=null?q:X_)}},rootRef:v,portalRef:I,isTopModal:N,exited:g,hasTransition:C}}function p5(e){return bt("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const m5=e=>{const{open:t,exited:r,classes:n}=e;return Dt({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},p5,n)},g5=Ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})($t(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),v5=Ne(ny,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),iy=Q.forwardRef(function(t,r){const n=Mt({name:"MuiModal",props:t}),ye=n,{BackdropComponent:i=v5,BackdropProps:a,classes:o,className:s,closeAfterTransition:u=!1,children:c,container:d,component:h,components:p={},componentsProps:m={},disableAutoFocus:v=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:x=!1,disableScrollLock:E=!1,hideBackdrop:T=!1,keepMounted:A=!1,onBackdropClick:R,onClose:N,onTransitionEnter:I,onTransitionExited:H,open:G,slotProps:Y={},slots:O={},theme:F}=ye,X=xe(ye,["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"]),W=B(M({},n),{closeAfterTransition:u,disableAutoFocus:v,disableEnforceFocus:g,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:x,disableScrollLock:E,hideBackdrop:T,keepMounted:A}),{getRootProps:V,getBackdropProps:z,getTransitionProps:q,portalRef:ee,isTopModal:j,exited:K,hasTransition:ie}=f5(B(M({},W),{rootRef:r})),ne=B(M({},W),{exited:K}),re=m5(ne),oe={};if(c.props.tabIndex===void 0&&(oe.tabIndex="-1"),ie){const{onEnter:J,onExited:_e}=q();oe.onEnter=J,oe.onExited=_e}const se={slots:M({root:p.Root,backdrop:p.Backdrop},O),slotProps:M(M({},m),Y)},[de,ce]=lr("root",{ref:r,elementType:g5,externalForwardedProps:B(M(M({},se),X),{component:h}),getSlotProps:V,ownerState:ne,className:je(s,re==null?void 0:re.root,!ne.open&&ne.exited&&(re==null?void 0:re.hidden))}),[ge,Se]=lr("backdrop",{ref:a==null?void 0:a.ref,elementType:i,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:J=>z(B(M({},J),{onClick:_e=>{R&&R(_e),J!=null&&J.onClick&&J.onClick(_e)}})),className:je(a==null?void 0:a.className,re==null?void 0:re.backdrop),ownerState:ne});return!A&&!G&&(!ie||K)?null:fe.jsx(Gl,{ref:ee,container:d,disablePortal:C,children:fe.jsxs(de,B(M({},ce),{children:[!T&&i?fe.jsx(ge,M({},Se)):null,fe.jsx($d,{disableEnforceFocus:g,disableAutoFocus:v,disableRestoreFocus:x,isEnabled:j,open:G,children:Q.cloneElement(c,oe)})]}))})});process.env.NODE_ENV!=="production"&&(iy.propTypes={BackdropComponent:_.elementType,BackdropProps:_.object,children:ja.isRequired,classes:_.object,className:_.string,closeAfterTransition:_.bool,component:_.elementType,components:_.shape({Backdrop:_.elementType,Root:_.elementType}),componentsProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object])}),container:_.oneOfType([Ti,_.func]),disableAutoFocus:_.bool,disableEnforceFocus:_.bool,disableEscapeKeyDown:_.bool,disablePortal:_.bool,disableRestoreFocus:_.bool,disableScrollLock:_.bool,hideBackdrop:_.bool,keepMounted:_.bool,onBackdropClick:_.func,onClose:_.func,onTransitionEnter:_.func,onTransitionExited:_.func,open:_.bool.isRequired,slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,root:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function y5(e){return bt("MuiPaper",e)}_t("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 b5=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Dt(a,y5,i)},_5=Ne("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}`]]}})($t(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Bh=Q.forwardRef(function(t,r){var v;const n=Mt({props:t,name:"MuiPaper"}),i=Su(),m=n,{className:a,component:o="div",elevation:s=1,square:u=!1,variant:c="elevation"}=m,d=xe(m,["className","component","elevation","square","variant"]),h=B(M({},n),{component:o,elevation:s,square:u,variant:c}),p=b5(h);return process.env.NODE_ENV!=="production"&&i.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
169
- `)),fe.jsx(_5,B(M({as:o,ownerState:h,className:je(p.root,a),ref:r},d),{style:M(M({},c==="elevation"&&M(M({"--Paper-shadow":(i.vars||i).shadows[s]},i.vars&&{"--Paper-overlay":(v=i.vars.overlays)==null?void 0:v[s]}),!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Rt("#fff",t0(s))}, ${Rt("#fff",t0(s))})`})),d.style)}))});process.env.NODE_ENV!=="production"&&(Bh.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,elevation:Ri(Vn,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:_.bool,style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["elevation","outlined"]),_.string])});function w5(e){return bt("MuiPopover",e)}_t("MuiPopover",["root","paper"]);function K_(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Z_(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Q_(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function vl(e){return typeof e=="function"?e():e}const C5=e=>{const{classes:t}=e;return Dt({root:["root"],paper:["paper"]},w5,t)},x5=Ne(iy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CS=Ne(Bh,{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}),ay=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiPopover"}),Se=n,{action:i,anchorEl:a,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:u="anchorEl",children:c,className:d,container:h,elevation:p=8,marginThreshold:m=16,open:v,PaperProps:g={},slots:b={},slotProps:C={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:T="auto",TransitionProps:A={},disableScrollLock:R=!1}=Se,N=xe(Se,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"]),I=Q.useRef(),H=B(M({},n),{anchorOrigin:o,anchorReference:u,elevation:p,marginThreshold:m,transformOrigin:x,TransitionComponent:E,transitionDuration:T,TransitionProps:A}),G=C5(H),Y=Q.useCallback(()=>{if(u==="anchorPosition")return process.env.NODE_ENV!=="production"&&(s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),s;const _e=vl(a),ve=_e&&_e.nodeType===1?_e:Qr(I.current).body,Ae=ve.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Ie=ve.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Ie.top===0&&Ie.left===0&&Ie.right===0&&Ie.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(`
170
- `))}return{top:Ae.top+K_(Ae,o.vertical),left:Ae.left+Z_(Ae,o.horizontal)}},[a,o.horizontal,o.vertical,s,u]),O=Q.useCallback(_e=>({vertical:K_(_e,x.vertical),horizontal:Z_(_e,x.horizontal)}),[x.horizontal,x.vertical]),F=Q.useCallback(_e=>{const ve={width:_e.offsetWidth,height:_e.offsetHeight},Ae=O(ve);if(u==="none")return{top:null,left:null,transformOrigin:Q_(Ae)};const Ie=Y();let Ue=Ie.top-Ae.vertical,Ve=Ie.left-Ae.horizontal;const ir=Ue+ve.height,At=Ve+ve.width,Wt=Si(vl(a)),Nt=Wt.innerHeight-m,Re=Wt.innerWidth-m;if(m!==null&&Ue<m){const st=Ue-m;Ue-=st,Ae.vertical+=st}else if(m!==null&&ir>Nt){const st=ir-Nt;Ue-=st,Ae.vertical+=st}if(process.env.NODE_ENV!=="production"&&ve.height>Nt&&ve.height&&Nt&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ve.height-Nt}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
171
- `)),m!==null&&Ve<m){const st=Ve-m;Ve-=st,Ae.horizontal+=st}else if(At>Re){const st=At-Re;Ve-=st,Ae.horizontal+=st}return{top:`${Math.round(Ue)}px`,left:`${Math.round(Ve)}px`,transformOrigin:Q_(Ae)}},[a,u,Y,O,m]),[X,W]=Q.useState(v),V=Q.useCallback(()=>{const _e=I.current;if(!_e)return;const ve=F(_e);ve.top!==null&&_e.style.setProperty("top",ve.top),ve.left!==null&&(_e.style.left=ve.left),_e.style.transformOrigin=ve.transformOrigin,W(!0)},[F]);Q.useEffect(()=>(R&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[a,R,V]);const z=()=>{V()},q=()=>{W(!1)};Q.useEffect(()=>{v&&V()}),Q.useImperativeHandle(i,()=>v?{updatePosition:()=>{V()}}:null,[v,V]),Q.useEffect(()=>{if(!v)return;const _e=GT(()=>{V()}),ve=Si(vl(a));return ve.addEventListener("resize",_e),()=>{_e.clear(),ve.removeEventListener("resize",_e)}},[a,v,V]);let ee=T;const j={slots:M({transition:E},b),slotProps:M({transition:A,paper:g},C)},[K,ie]=lr("transition",{elementType:Vl,externalForwardedProps:j,ownerState:H,getSlotProps:_e=>B(M({},_e),{onEntering:(ve,Ae)=>{var Ie;(Ie=_e.onEntering)==null||Ie.call(_e,ve,Ae),z()},onExited:ve=>{var Ae;(Ae=_e.onExited)==null||Ae.call(_e,ve),q()}}),additionalProps:{appear:!0,in:v}});T==="auto"&&!K.muiSupportAuto&&(ee=void 0);const ne=h||(a?Qr(vl(a)).body:void 0),[re,ye]=lr("root",{ref:r,elementType:x5,externalForwardedProps:M(M({},j),N),shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:q4(typeof C.backdrop=="function"?C.backdrop(H):C.backdrop,{invisible:!0})},container:ne,open:v},ownerState:H,className:je(G.root,d)}),J=ye,{slots:oe,slotProps:se}=J,de=xe(J,["slots","slotProps"]),[ce,ge]=lr("paper",{ref:I,className:G.paper,elementType:CS,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:X?void 0:{opacity:0}},ownerState:H});return fe.jsx(re,B(M(M({},de),!s0(re)&&{slots:oe,slotProps:se,disableScrollLock:R}),{children:fe.jsx(K,B(M({},ie),{timeout:ee,children:fe.jsx(ce,B(M({},ge),{children:c}))}))}))});process.env.NODE_ENV!=="production"&&(ay.propTypes={action:us,anchorEl:Ri(_.oneOfType([Ti,_.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=vl(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(`
172
- `))}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(`
173
- `))}return null}),anchorOrigin:_.shape({horizontal:_.oneOfType([_.oneOf(["center","left","right"]),_.number]).isRequired,vertical:_.oneOfType([_.oneOf(["bottom","center","top"]),_.number]).isRequired}),anchorPosition:_.shape({left:_.number.isRequired,top:_.number.isRequired}),anchorReference:_.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:_.elementType,BackdropProps:_.object,children:_.node,classes:_.object,className:_.string,container:_.oneOfType([Ti,_.func]),disableScrollLock:_.bool,elevation:Vn,marginThreshold:_.number,onClose:_.func,open:_.bool.isRequired,PaperProps:_.shape({component:_h}),slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),paper:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,paper:_.elementType,root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transformOrigin:_.shape({horizontal:_.oneOfType([_.oneOf(["center","left","right"]),_.number]).isRequired,vertical:_.oneOfType([_.oneOf(["bottom","center","top"]),_.number]).isRequired}),TransitionComponent:_.elementType,transitionDuration:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})]),TransitionProps:_.object});function T5(e){return bt("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const S5={vertical:"top",horizontal:"right"},E5={vertical:"top",horizontal:"left"},M5=e=>{const{classes:t}=e;return Dt({root:["root"],paper:["paper"],list:["list"]},T5,t)},A5=Ne(ay,{shouldForwardProp:e=>Eu(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),P5=Ne(CS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),R5=Ne(ty,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Hh=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiMenu"}),ee=n,{autoFocus:i=!0,children:a,className:o,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:j={}}=ee,K=j,{onEntering:v}=K,g=xe(K,["onEntering"]),ie=ee,{variant:b="selectedMenu",slots:C={},slotProps:x={}}=ie,E=xe(ie,["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"]),T=bh(),A=B(M({},n),{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:v,PaperProps:h,transitionDuration:m,TransitionProps:g,variant:b}),R=M5(A),N=i&&!s&&d,I=Q.useRef(null),H=(ne,re)=>{I.current&&I.current.adjustStyleForScrollbar(ne,{direction:T?"rtl":"ltr"}),v&&v(ne,re)},G=ne=>{ne.key==="Tab"&&(ne.preventDefault(),c&&c(ne,"tabKeyDown"))};let Y=-1;Q.Children.map(a,(ne,re)=>{Q.isValidElement(ne)&&(process.env.NODE_ENV!=="production"&&Jv.isFragment(ne)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
174
- `)),ne.props.disabled||(b==="selectedMenu"&&ne.props.selected||Y===-1)&&(Y=re))});const O={slots:C,slotProps:M({list:u,transition:g,paper:h},x)},F=Rv({elementType:C.root,externalSlotProps:x.root,ownerState:A,className:[R.root,o]}),[X,W]=lr("paper",{className:R.paper,elementType:P5,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:A}),[V,z]=lr("list",{className:je(R.list,u.className),elementType:R5,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:ne=>B(M({},ne),{onKeyDown:re=>{var oe;G(re),(oe=ne.onKeyDown)==null||oe.call(ne,re)}}),ownerState:A}),q=typeof O.slotProps.transition=="function"?O.slotProps.transition(A):O.slotProps.transition;return fe.jsx(A5,B(M({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?S5:E5,slots:M({root:C.root,paper:X,backdrop:C.backdrop},C.transition&&{transition:C.transition}),slotProps:{root:F,paper:W,backdrop:typeof x.backdrop=="function"?x.backdrop(A):x.backdrop,transition:B(M({},q),{onEntering:(...ne)=>{var re;H(...ne),(re=q==null?void 0:q.onEntering)==null||re.call(q,...ne)}})},open:d,ref:r,transitionDuration:m,ownerState:A},E),{classes:p,children:fe.jsx(V,B(M({actions:I,autoFocus:i&&(Y===-1||s),autoFocusItem:N,variant:b},z),{children:a}))}))});process.env.NODE_ENV!=="production"&&(Hh.propTypes={anchorEl:_.oneOfType([Ti,_.func]),autoFocus:_.bool,children:_.node,classes:_.object,className:_.string,disableAutoFocusItem:_.bool,MenuListProps:_.object,onClose:_.func,open:_.bool.isRequired,PaperProps:_.object,PopoverClasses:_.object,slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),list:_.oneOfType([_.func,_.object]),paper:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,list:_.elementType,paper:_.elementType,root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transitionDuration:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})]),TransitionProps:_.object,variant:_.oneOf(["menu","selectedMenu"])});const O5=e=>{const t=(e==null?void 0:e.horizontal)==="right"?"right":"left",r=(e==null?void 0:e.vertical)==="bottom"?"bottom":"top";return{anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:r,horizontal:t}}},k5=({children:e,open:t,position:r,onClose:n,alignment:i})=>{const{themeSettings:a}=gt(),o=k.useMemo(()=>O5(i),[i]);return w.jsx(Hh,{MenuListProps:{dense:!0,sx:{paddingTop:0,paddingBottom:0,fontFamily:a.typography.fontFamily}},anchorReference:"anchorPosition",anchorPosition:r!=null?r:{left:0,top:0},anchorOrigin:o.anchorOrigin,transformOrigin:o.transformOrigin,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:a.typography.fontFamily}}},children:e})};function D5({color:e=w.DEFAULT_TEXT_COLOR}){return w.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",children:w.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 N5=({children:e,label:t,allowOpen:r,disabled:n,style:i,className:a=""})=>{const{themeSettings:o}=gt(),s=k.useRef(null),u=k.useRef(null),[c,d]=k.useState(!1),h=k.useCallback(()=>{n||d(!0)},[n]),p=k.useCallback(()=>d(!1),[]),m=k.useCallback(()=>d(!0),[]),v=k.useCallback(()=>d(!1),[]),g=c&&r;return w.jsxs("div",{ref:s,className:`csdk-menu-item ${a}`,children:[w.jsx($h,{disabled:n,sx:M({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:o.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"0px",color:w.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:w.DEFAULT_BACKGROUND_COLOR}},i),onMouseEnter:h,onMouseLeave:p,children:w.jsxs("div",{className:"csdk-menu-item-content",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t,w.jsx(D5,{})]})}),w.jsx(Hh,{ref:u,style:{pointerEvents:"none"},anchorEl:s.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:g,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:o.typography.fontFamily}}},onClose:()=>{d(!1)},onMouseEnter:m,onMouseLeave:v,children:w.jsx("div",{style:{pointerEvents:"auto"},children:e})})]})},I5="csdk-context-menu-selected-with-dot",xS=({position:e,itemSections:t,children:r,closeContextMenu:n,alignment:i})=>{const[a,o]=k.useState(t),s=!!e;k.useEffect(()=>{t&&o(t)},[t]);const u=k.useCallback((c,d)=>{const{sectionTitle:h,items:p=[]}=c;return w.jsxs("div",{className:"csdk-menu-section",children:[h&&w.jsx(z4,{children:h}),p.map((m,v)=>{const{subItems:g}=m;return g&&g.length?w.jsx(N5,{label:m.caption,allowOpen:s,style:m.style,className:m.class,children:g.map(u)},v):w.jsx(F4,{disabled:m.disabled,style:m.style,className:m.class,onClick:()=>{var C;n(),(C=m.onClick)==null||C.call(m)},children:m.caption},v)})]},d!=null?d:h)},[n,s]);return w.jsx(w.Fragment,{children:w.jsxs(k5,{position:e!=null?e:null,open:s,onClose:n,alignment:i,children:[a==null?void 0:a.map(u),r]})})},L5=({children:e,onBeforeMenuOpen:t})=>{const[r,n]=k.useState(null),i=k.useCallback(u=>{const c=t?t(u):u;c&&n(c)},[t]),a=k.useCallback(()=>{n(null)},[]),o=k.useCallback(()=>{var u;(u=r==null?void 0:r.onClose)==null||u.call(r),a()},[a,r]),s=k.useMemo(()=>({openMenu:i,closeMenu:a}),[i,a]);return w.jsxs(Qv.Provider,{value:s,children:[w.jsx(xS,{position:r==null?void 0:r.position,itemSections:r==null?void 0:r.itemSections,closeContextMenu:o,alignment:r==null?void 0:r.alignment}),e]})},F5=({children:e,onBeforeMenuOpen:t})=>{const r=Fh(),n=k.useCallback(o=>{const s=t?t(o):o;s&&(r==null||r.openMenu(s))},[t,r]),i=k.useCallback(()=>{r==null||r.closeMenu()},[r]),a={openMenu:n,closeMenu:i};return w.jsx(Qv.Provider,{value:a,children:e})},TS=({children:e,onBeforeMenuOpen:t})=>Fh()?t?w.jsx(F5,{onBeforeMenuOpen:t,children:e}):w.jsx(w.Fragment,{children:e}):w.jsx(L5,{onBeforeMenuOpen:t,children:e}),$5=({shouldHaveOwnMenuRoot:e}={})=>t=>function(n){const a=!!Fh();return e&&!a?w.jsx(TS,{children:w.jsx(t,M({},n))}):w.jsx(t,M({},n))},oy=k.createContext(null),zh=()=>k.useContext(oy),B5=Ye(ay)`
175
- // This fixes an issue where the popover appears before its position is calculated, causing it to 'jump' from the top-left corner.
176
- // Known MUI issue: https://github.com/mui/material-ui/issues/8040
177
- .MuiPaper-root.MuiPopover-paper:not([style*='top']),
178
- .MuiPaper-root.MuiPopover-paper:not([style*='left']) {
179
- opacity: 0 !important;
180
- }
181
- `,sy=e=>{var h;const d=e,{children:t,open:r,id:n,position:i,onClose:a,BackdropProps:o,style:s,slotProps:u}=d,c=xe(d,["children","open","id","position","onClose","BackdropProps","style","slotProps"]);return w.jsx(B5,B(M({id:n,className:"csdk-accessible",anchorEl:i==null?void 0:i.anchorEl,anchorOrigin:i==null?void 0:i.anchorOrigin,transformOrigin:i==null?void 0:i.contentOrigin,transitionDuration:0,open:r,BackdropProps:o,style:s,slotProps:{paper:{sx:M({display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"},(h=u==null?void 0:u.paper)==null?void 0:h.sx)}},onClose:a},c),{children:t}))};let H5=0;const z5=()=>`modal-${++H5}`,go=new Set,j5=({children:e})=>{const[t,r]=k.useState([]),n=k.useRef([]);k.useEffect(()=>()=>{go.forEach(h=>{try{h&&h.parentNode&&h.parentNode===document.body&&document.body.contains(h)&&document.body.removeChild(h)}catch(p){}}),go.clear()},[]);const i=k.useCallback(h=>new Promise(p=>{const m=z5();let v;try{v=document.createElement("div"),v.style.position="fixed",v.style.top="50%",v.style.left="50%",v.style.transform="translate(-50%, -50%)",v.style.width="1px",v.style.height="1px",v.style.pointerEvents="none",v.style.visibility="hidden",v.setAttribute("data-modal-anchor",m),document.body&&typeof document.body.appendChild=="function"?(document.body.appendChild(v),go.add(v)):console.warn("Modal: Unable to append anchor element to document body")}catch(b){console.warn("Modal: Failed to create anchor element:",b),v=document.createElement("div"),v.setAttribute("data-modal-anchor",m)}const g={id:m,options:h,anchorEl:v,resolve:()=>p(m)};r(b=>{const C=[...b,g];return n.current=C,C}),p(m)}),[]),a=k.useCallback(h=>{r(p=>{if(!h){const g=p.slice(0,-1);n.current=g;const b=p[p.length-1];return b!=null&&b.anchorEl&&setTimeout(()=>{try{b.anchorEl&&b.anchorEl.parentNode&&b.anchorEl.parentNode===document.body&&document.body.contains(b.anchorEl)&&(document.body.removeChild(b.anchorEl),go.delete(b.anchorEl))}catch(C){}},0),b&&b.resolve(),g}const m=p.find(g=>g.id===h);m!=null&&m.anchorEl&&setTimeout(()=>{try{m.anchorEl&&m.anchorEl.parentNode&&m.anchorEl.parentNode===document.body&&document.body.contains(m.anchorEl)&&(document.body.removeChild(m.anchorEl),go.delete(m.anchorEl))}catch(g){}},0),m&&m.resolve();const v=p.filter(g=>g.id!==h);return n.current=v,v})},[]),o=k.useCallback(()=>{r(h=>(h.forEach(p=>{p.anchorEl&&setTimeout(()=>{try{p.anchorEl&&p.anchorEl.parentNode&&p.anchorEl.parentNode===document.body&&document.body.contains(p.anchorEl)&&(document.body.removeChild(p.anchorEl),go.delete(p.anchorEl))}catch(m){}},0),p.resolve()}),n.current=[],[]))},[]),s=k.useCallback(()=>n.current,[]),u=k.useCallback(h=>t.some(p=>p.id===h),[t]),c=k.useCallback(h=>{a(h)},[a]),d=k.useMemo(()=>({openModal:i,closeModal:a,closeAllModals:o,getModalStack:s,isModalOpen:u}),[i,a,o,s,u]);return w.jsxs(oy.Provider,{value:d,children:[t.map((h,p)=>{const{options:m}=h,v=m.measurement==="%"?`${m.width||80}%`:`${m.width||1200}px`,g=m.measurement==="%"?`${m.height||80}%`:`${m.height||800}px`;return w.jsx("div",{children:w.jsx("div",{"data-testid":"modal-backdrop",onClick:b=>{b.target.closest(".MuiPaper-root")||c(h.id)},style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1200+p},children:w.jsx(sy,{open:!0,position:{anchorEl:h.anchorEl,anchorOrigin:{vertical:"center",horizontal:"center"},contentOrigin:{vertical:"center",horizontal:"center"}},onClose:()=>a(h.id),BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},style:{zIndex:1200+p+10},slotProps:{paper:{sx:{display:"flex",width:v,height:g,maxWidth:"95vw",maxHeight:"95vh",position:"relative",zIndex:1200+p+10}}},children:w.jsx("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:b=>b.stopPropagation(),children:w.jsx("div",{style:{flex:1,overflow:"hidden"},children:m.content})})})})},h.id)}),e]})},W5=({children:e})=>{const t=zh(),r=k.useCallback(u=>(t==null?void 0:t.openModal(u))||Promise.resolve(""),[t]),n=k.useCallback(u=>{t==null||t.closeModal(u)},[t]),i=k.useCallback(()=>{t==null||t.closeAllModals()},[t]),a=k.useCallback(()=>(t==null?void 0:t.getModalStack())||[],[t]),o=k.useCallback(u=>(t==null?void 0:t.isModalOpen(u))||!1,[t]),s={openModal:r,closeModal:n,closeAllModals:i,getModalStack:a,isModalOpen:o};return w.jsx(oy.Provider,{value:s,children:e})},SS=({children:e})=>zh()?w.jsx(W5,{children:e}):w.jsx(j5,{children:e}),U5=({shouldHaveOwnModalRoot:e}={})=>t=>function(n){const a=!!zh();return e&&!a?w.jsx(SS,{children:w.jsx(t,M({},n))}):w.jsx(t,M({},n))};var V5="[object Boolean]";function ES(e){return e===!0||e===!1||D.isObjectLike(e)&&D.baseGetTag(e)==V5}function G5(e){return t=>{var r;t.type==="rule"&&((r=t.root)==null?void 0:r.type)!==w.KEYFRAMES&&(t.props=t.props.map(n=>`${e} ${n}`))}}function MS(){var e,t;return(t=(e=document.head.querySelector('meta[property="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?t:void 0}const J_=k.createContext(void 0),AS=({children:e,cssSelectorPrefix:t})=>{const r=k.useMemo(()=>MS(),[]),n=k.useContext(J_),i=!n,a=n==null?void 0:n.cssSelectorPrefix,o=k.useMemo(()=>i&&r||t!==a?w.createCache(M(M({key:"css"},r&&{nonce:r}),t&&{stylisPlugins:[w.prefixer,G5(t)]})):null,[i,t,a,r]);return i||o?w.jsx(J_.Provider,{value:{cssSelectorPrefix:t},children:o?w.jsx(w.CacheProvider,{value:o,children:e}):w.jsx(w.Fragment,{children:e})}):w.jsx(w.Fragment,{children:e})},ew=MS(),PS=({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=B(M({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=B(M({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),i=B(M({},t),{marginRight:"unset"}),a={"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 w.jsxs("div",{children:[w.jsx("style",B(M({},ew&&{nonce:ew}),{children:`
182
- @keyframes loading-dots-animation {
183
- ${Object.entries(a).map(([o,s])=>`${o} { ${Object.entries(s).map(([u,c])=>`${u}: ${c};`).join("")} }`).join("")}
184
- }
185
- `})),w.jsx("div",{style:r}),w.jsx("div",{style:n}),w.jsx("div",{style:i})]})},q5=Ye.div`
186
- opacity: 0;
187
- // z-index is set to 401, which is higher than max z-index of 400 on areamap
188
- z-index: 401;
189
- width: 100%;
190
- height: 100%;
191
- position: absolute;
192
- animation: fadeIn 0.3s ease-in-out forwards;
193
- animation-delay: ${({delay:e})=>e}ms;
194
-
195
- @keyframes fadeIn {
196
- from {
197
- opacity: 0;
198
- }
199
- to {
200
- opacity: 0.8;
201
- }
202
- }
203
- `,Wi=({isVisible:e=!0,children:t})=>{var u,c,d,h,p,m;const{app:r}=ut(),{t:n}=w.useTranslation(),a=((d=(c=(u=r==null?void 0:r.settings)==null?void 0:u.loadingIndicatorConfig)==null?void 0:c.enabled)!=null?d:!0)&&e,o=(m=(p=(h=r==null?void 0:r.settings)==null?void 0:h.loadingIndicatorConfig)==null?void 0:p.delay)!=null?m:0,{themeSettings:s}=gt();return w.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[a&&w.jsx(q5,{delay:o,role:"status","aria-label":n("loadingOverlay.label"),"data-testid":"csdk-loading-overlay",children:w.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:w.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:w.jsx("div",{style:{backgroundColor:s.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:w.jsx(PS,{color:s==null?void 0:s.chart.textColor})})})})}),t]})},Y5=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(i){const{app:a,isInitialized:o}=ut();if(X5(e,i))return w.jsx(r,M({},i));if(!o){const s=t||"errors.noSisenseContext";throw new D.TranslatableError(s)}return a?w.jsx(r,M({},i)):w.jsx(Wi,{isVisible:!0})};function X5(e,t){return ES(e)&&e||D.isFunction(e)&&e(t)}const K5={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}},tw="composesdk",RS=(e,t,r,n=!1)=>{const i=Object.assign({action:e,cat:tw,eventType:"product",direct:!0},t);return n&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",i),Promise.resolve()):r.post("api/activities/",[i],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(a=>{console.error(`unable to log action=${e}, category=${tw}`,a)})},rw=(e,t,r,n,i)=>{const a=K5[`${e}`];return a.internal&&RS(e,t,r,i),a.external&&n&&n(M({action:e},t)),Promise.resolve()},ly=()=>{var a,o;const{tracking:e,app:t}=ut(),r=(o=(a=t==null?void 0:t.httpClient)==null?void 0:a.auth)==null?void 0:o.type,n=k.useCallback((s,u={},c=!1)=>t?rw(s,B(M({},u),{authType:r}),t.httpClient,e.onTrackingEvent,c):Promise.resolve(),[e,t,r]),i=k.useCallback((s,u=!1)=>{if(!t)return Promise.resolve();const{packageName:c,packageVersion:d,component:h,error:p}=s;let m="";return typeof p=="string"?m=p:p instanceof Error&&(m=p.message||p.toString()),rw("sdkError",B(M({},{packageName:c,packageVersion:d,component:h,error:m}),{authType:r}),t.httpClient,e.onTrackingEvent,u)},[e,t,r]);return{trackEvent:n,trackError:i}};class OS extends k.Component{constructor(r){super(r);Je(this,"componentName");Je(this,"context");Je(this,"handler");Je(this,"httpClient");Je(this,"postponedErrors",[]);this.handler=r.handler,this.componentName=r.componentName}componentDidMount(){var r;this.context.isInitialized&&(this.httpClient=(r=this.context.app)==null?void 0:r.httpClient)}componentDidCatch(r){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(r):this.postponedErrors.push(r)),r}sendErrorTracking(r){try{this.handler({packageName:"sdk-ui",packageVersion:"2.28.0",component:this.componentName,error:r})}catch(n){console.log("Failed to send tracking error event: ",n)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(r=>this.sendErrorTracking(r)),this.postponedErrors=[],this.props.children}}Je(OS,"contextType",Fv);const Z5="sdkComponentInit",kS=k.createContext(!1),Q5=({skipNested:e=!0,children:t})=>w.jsx(kS.Provider,{value:e,children:t}),J5=(e,t)=>{const{componentName:r,config:n}=e,{tracking:i,app:a}=ut(),{trackEvent:o}=ly(),s=k.useContext(kS),u=k.useRef(!1);k.useEffect(()=>{if(!i||!a)return;if(!u.current&&!s){const d={packageName:n.packageName||i.packageName,packageVersion:n.packageVersion||"2.28.0",componentName:r,attributesUsed:Object.entries(t).filter(([,h])=>!!h).map(([h])=>h).join(", ")};o(Z5,d,!i.enabled).finally(()=>u.current=!0)}},[r,t,i,s,o,a,n])},DS=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return i=>function(o){const{trackError:s}=ly();return ES(r)&&r||D.isFunction(r)&&r(o)?w.jsx(i,M({},o)):(J5({componentName:e,config:t},o),w.jsx(Q5,{skipNested:!n,children:w.jsx(OS,{componentName:e,handler:s,children:w.jsx(i,M({},o))})}))}},e6=e=>t=>(t.displayName=e,t),Mu=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:i,shouldHaveOwnMenuRoot:a,shouldHaveOwnModalRoot:o}=e;return s=>w.flow(e6(t),Y5({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:i}),DS({componentName:t,config:n}),_S({componentName:t}),m4(),$5({shouldHaveOwnMenuRoot:a}),U5({shouldHaveOwnModalRoot:o}))(s)};function nw(e){return`${e.fontFamily}|${e.fontWeight}|${e.fontStyle}`}function t6(e,t){const[r,n]=k.useState([]),[i,a]=k.useState(!1),o=k.useMemo(()=>e.filter(s=>!t.includes(nw(s))),[e,t]);return k.useEffect(()=>{if(o.length===0){a(!0);return}let s=!1;const u=o.map(c=>{const d=c.src.map(p=>Object.entries(p).map(([v,g])=>`${v}('${g}')`).join(" ")).join(", ");return new FontFace(c.fontFamily,d,{style:c.fontStyle,weight:c.fontWeight.toString()}).load().then(p=>(s||document.fonts.add(p),nw(c)))});return Promise.all(u).then(c=>{s||(n(d=>[...d,...c]),a(!0))}).catch(c=>{console.error("Failed to load fonts:",c),a(!0)}),()=>{s=!0}},[o]),{loadedFonts:r,areAllFontsLoaded:i}}const iw=k.createContext({loadedFonts:[]}),r6=({fonts:e,children:t})=>{var o;const{loadedFonts:r}=k.useContext(iw),{themeSettings:n}=gt(),{loadedFonts:i,areAllFontsLoaded:a}=t6(e||((o=n.typography.fontsLoader)==null?void 0:o.fonts)||[],r);return w.jsx(iw.Provider,{value:{loadedFonts:[...r,...i]},children:a&&t})},yl={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function NS(e,t,r){const n={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor,hyperlinkColor:e.typography.hyperlinkColor,hyperlinkHoverColor:e.typography.hyperlinkHoverColor,fontsLoader:{fonts:n6(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:Ld().general.popover,buttons:{primary:{backgroundColor:{default:e.general.brandColor,hover:e.general.primaryButtonHoverColor,focus:e.general.primaryButtonHoverColor},textColor:e.general.primaryButtonTextColor},cancel:{backgroundColor:{default:e.general.secondaryButtonBaseColor,hover:e.general.secondaryButtonHoverColor,focus:e.general.secondaryButtonHoverColor},textColor:e.general.secondaryButtonTextColor}}},widget:{spaceAround:yl[e.dashboards.widgetSpacing],cornerRadius:yl[e.dashboards.widgetCornerRadius],shadow:yl[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:yl[e.dashboards.widgetTitleAlignment],titleFontSize:Yv,dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:Bv,dividerLineColor:$v,borderWidth:zv,borderColor:Hv,toolbar:{primaryTextColor:e.dashboards.toolbarTextColor,secondaryTextColor:e.dashboards.toolbarSecondaryTextColor,backgroundColor:e.dashboards.toolbarBackgroundColor,dividerLineColor:jv,dividerLineWidth:Wv}},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor,dividerLineColor:Uv,dividerLineWidth:Vv,borderColor:Gv,borderWidth:qv}}};return w.merge.withOptions({mergeArrays:!1},Ld(),n)}function IS(e){return e.dashboards.colorPaletteName}function n6(e,t,r){const a=r?"fonts/":"resources/base/fonts/";return[{fontFamily:e,fontWeight:"normal",fontStyle:"normal",src:[{url:`${t}${a}${e}-Regular.eot`},{local:`${e}-Regular`},{url:`${t}${a}${e}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-Regular.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:600,fontStyle:"normal",src:[{url:`${t}${a}${e}-SemiBold.eot`},{local:`${e}-SemiBold`},{url:`${t}${a}${e}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:"bold",fontStyle:"normal",src:[{url:`${t}${a}${e}-Bold.eot`},{local:`${e}-Bold`},{url:`${t}${a}${e}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-Bold.ttf`,format:"truetype"}]}]}function LS(e,t){return Vt(this,null,function*(){const r=yield i6(e,t);if(!r)throw new D.TranslatableError("errors.themeNotFound",{themeOid:e});const n=IS(r),i=yield FS(n,t);return NS(r,i,t.url)})}function i6(e,t){return Vt(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new D.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function FS(e,t){return Vt(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new D.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}var $S=(e=>(e.DEFAULT="default",e.HOVER="hover",e.FOCUS="focus",e))($S||{});function qp(e){return typeof e=="string"}function a6(e){var u;const t=gt().themeSettings,[r,n]=k.useState(null),[i,a]=k.useState(null),o=(u=ut().app)==null?void 0:u.httpClient;k.useEffect(()=>{e&&qp(e)&&o&&LS(e,o).then(c=>{n(c)}).catch(a)},[o,e]),k.useEffect(()=>{(!e||!qp(e))&&(n(null),a(null))},[e]);const s=k.useMemo(()=>r?aw(t,r):e&&!qp(e)?aw(t,e):t,[r,t,e]);return i?[null,i]:[s,null]}function aw(e,t){return w.merge.withOptions({mergeArrays:!1},e,t)}const BS=Mu({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{var c;const{theme:t,children:r,config:n}=e,[i,a]=a6(t),o=gt().config,s=k.useMemo(()=>n&&o?w.merge.withOptions({mergeArrays:!1},o,n):n||o,[o,n]),u=(c=s==null?void 0:s.cssSelectorPrefix)!=null&&c.enabled?s.cssSelectorPrefix.value:void 0;if(a)throw a;return i?w.jsx(AS,{cssSelectorPrefix:u,children:w.jsx(Kv.Provider,{value:{themeSettings:i,config:s},children:w.jsx(r6,{children:r})})}):null}),ow="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",o6="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",s6="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",l6="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%3cpath%20fill='%23E4E4E4'%20d='M419,192.5h-2h-88h-2h-88h-2h-92v80H55v246h276v-80h180v-246H419z%20M507,196.5v78h-88v-78H507z%20M327,434.5%20h-88v-78h88V434.5z%20M149,434.5v-78h88v78H149z%20M237,436.5v78h-88v-78H237z%20M147,434.5H59v-78h88V434.5z%20M149,354.5v-78h88v78H149z%20M239,354.5v-78h88v78H239z%20M329,276.5h88v78h-88V276.5z%20M419,276.5h88v78h-88V276.5z%20M417,196.5v78h-88v-78H417z%20M327,196.5v78%20h-88v-78H327z%20M149,196.5h88v78h-88v-2V196.5z%20M145,276.5h2v78H59v-78H145z%20M59,436.5h88v78H59V436.5z%20M327,438.5v76h-88v-78h88%20V438.5z%20M329,434.5v-78h88v78h-86H329z%20M419,434.5v-78h88v78H419z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",u6="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",c6="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",d6="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",h6="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",f6="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",p6="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",m6="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",g6="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",v6="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",y6="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",sw="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",lw={area:ow,arearange:ow,line:h6,bar:o6,column:u6,polar:p6,funnel:c6,pie:f6,scatter:m6,indicator:d6,table:v6,treemap:y6,areamap:sw,scattermap:sw,boxplot:s6,sunburst:g6,"calendar-heatmap":l6};function b6(e){var r;return(r=lw[e])!=null?r:lw["bar"]}const _6="_wrapper_1lpzp_1",w6="_title_1lpzp_7",C6="_image_1lpzp_17",Yp={wrapper:_6,title:w6,image:C6},uy=({iconType:e})=>{var s,u;const{themeSettings:t}=gt(),r=k.useRef(null),[n,i]=k.useState({width:null,height:null});k.useEffect(()=>{r.current&&i({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const a=b6(e),{t:o}=w.useTranslation();return w.jsxs("div",{ref:r,className:Yp.wrapper,children:[w.jsx("div",{className:Yp.title,style:{fontFamily:(s=t.typography)==null?void 0:s.fontFamily,fontSize:x6(n.width,n.height),color:(u=t.typography)==null?void 0:u.secondaryTextColor},children:o("chartNoData")}),a?w.jsx("img",{className:Yp.image,src:a,alt:o("chartNoData")}):null]})};function x6(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`}function HS(e,t,r,n){if(!D.isObject(e))return e;t=D.castPath(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var u=D.toKey(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var d=s[u];c=void 0,c===void 0&&(c=D.isObject(d)?d:D.isIndex(t[i+1])?[]:{})}D.assignValue(s,u,c),s=s[u]}return e}function zS(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=D.baseGet(e,o);r(s,o)&&HS(a,D.castPath(o,e),s)}return a}function T6(e,t){return zS(e,t,function(r,n){return D.hasIn(e,n)})}var S6=D.flatRest(function(e,t){return e==null?{}:T6(e,t)});const E6={translateDataOptionsToInternal:function(e){return{geo:e.geo&&w.normalizeColumn(e.geo[0]),color:e.color&&w.normalizeMeasureColumn(e.color[0])}},getAttributes:function(e){return[e.geo.column].filter(t=>!w.isMeasureColumn(t))},getMeasures:function(e){var r;const t=(r=e.color)==null?void 0:r.column;return t&&w.isMeasureColumn(t)?[t]:[]},isCorrectDataOptions:function(e){return"geo"in e&&D.isArray(e.geo)},isCorrectDataOptionsInternal:function(e){return"geo"in e&&!!e.geo.column}},M6={errors:{invalidAttribute:"Invalid attribute {{attributeName}}. Hint: attributes for query should be extracted from the data model generated by the CLI tool.",noDimensionsOrMeasures:"Neither dimensions nor measures found. Query should have at least one dimension or measure.",invalidMeasure:'Invalid measure "{{measureName}}". Hint: measures for the query can be constructed using the "measureFactory" functions.',invalidFilter:'Invalid filter "{{filterName}}". Hint: filters for the query can be constructed using the "filterFactory" functions.',invalidHighlight:'Invalid highlight "{{highlightName}}". Hint: highlights for the query can be constructed using the "filterFactory" functions.',invalidCountNegative:'Invalid count "{{count}}" in query. Count should be non-negative.',invalidOffset:'Invalid offset "{{offset}}" in query. Offset should be non-negative.',missingHttpClient:"Query was unable to load httpClient.",missingPostMethod:'httpClient must provide "post" method.',noJaqlResponse:"No jaql response received from the server",dataSourceNotFound:'Failed to get fields for data source "{{dataSource}}". Please make sure the data source exists and is accessible.'}},A6={errors:{invalidAttribute:"Недійсний атрибут {{attributeName}}. Підказка: атрибути для запиту повинні бути витягнуті з моделі даних, створеної за допомогою CLI-інструменту.",noDimensionsOrMeasures:"Не знайдено ні вимірів, ні показників. Запит повинен мати щонайменше один вимір або показник.",invalidMeasure:'Недійсний показник "{{measureName}}". Підказка: показники для запиту можна створити за допомогою функцій "measureFactory".',invalidFilter:'Недійсний фільтр "{{filterName}}". Підказка: фільтри для запиту можна створити за допомогою функцій "filterFactory".',invalidHighlight:'Недійсне виділення "{{highlightName}}". Підказка: виділення для запиту можна створити за допомогою функцій "filterFactory".',invalidCountNegative:`Недійсний count "{{count}}". Count повинен бути не від'ємним.`,invalidOffset:`Недійсний offset "{{offset}}". Offset повинен бути не від'ємним.`,missingHttpClient:"Для запиту потрібен httpClient, щоб працювати належним чином.",missingPostMethod:'httpClient повинен мати метод "post".',noJaqlResponse:"Відповіді, що містить jaql, від сервера не отримано",dataSourceNotFound:'Не вдалося отримати поля для джерела даних "{{dataSource}}". Переконайтесь що джерело існує і доступне.'}},jS="sdkQueryClient",P6={en:M6,uk:A6};function R6(){return D.initI18next({resource:P6,language:"en",namespace:jS})}const{i18nextInstance:O6}=R6();var cy={exports:{}},Wo=typeof Reflect=="object"?Reflect:null,uw=Wo&&typeof Wo.apply=="function"?Wo.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},dd;Wo&&typeof Wo.ownKeys=="function"?dd=Wo.ownKeys:Object.getOwnPropertySymbols?dd=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:dd=function(t){return Object.getOwnPropertyNames(t)};function k6(e){console&&console.warn&&console.warn(e)}var WS=Number.isNaN||function(t){return t!==t};function mt(){mt.init.call(this)}cy.exports=mt;cy.exports.once=L6;mt.EventEmitter=mt;mt.prototype._events=void 0;mt.prototype._eventsCount=0;mt.prototype._maxListeners=void 0;var cw=10;function jh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(mt,"defaultMaxListeners",{enumerable:!0,get:function(){return cw},set:function(e){if(typeof e!="number"||e<0||WS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");cw=e}});mt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};mt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||WS(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function US(e){return e._maxListeners===void 0?mt.defaultMaxListeners:e._maxListeners}mt.prototype.getMaxListeners=function(){return US(this)};mt.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")uw(u,this,r);else for(var c=u.length,d=XS(u,c),n=0;n<c;++n)uw(d[n],this,r);return!0};function VS(e,t,r,n){var i,a,o;if(jh(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=US(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,k6(s)}return e}mt.prototype.addListener=function(t,r){return VS(this,t,r,!1)};mt.prototype.on=mt.prototype.addListener;mt.prototype.prependListener=function(t,r){return VS(this,t,r,!0)};function D6(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function GS(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=D6.bind(n);return i.listener=r,n.wrapFn=i,i}mt.prototype.once=function(t,r){return jh(r),this.on(t,GS(this,t,r)),this};mt.prototype.prependOnceListener=function(t,r){return jh(r),this.prependListener(t,GS(this,t,r)),this};mt.prototype.removeListener=function(t,r){var n,i,a,o,s;if(jh(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():N6(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};mt.prototype.off=mt.prototype.removeListener;mt.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function qS(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?I6(i):XS(i,i.length)}mt.prototype.listeners=function(t){return qS(this,t,!0)};mt.prototype.rawListeners=function(t){return qS(this,t,!1)};mt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):YS.call(e,t)};mt.prototype.listenerCount=YS;function YS(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}mt.prototype.eventNames=function(){return this._eventsCount>0?dd(this._events):[]};function XS(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function N6(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function I6(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function L6(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}KS(e,t,a,{once:!0}),t!=="error"&&F6(e,i,{once:!0})})}function F6(e,t,r){typeof e.on=="function"&&KS(e,"error",t,r)}function KS(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var $6=cy.exports;const dy=w.getDefaultExportFromCjs($6),Be={HEADERS:"headers",METADATA:"metadata",DATA:"data",GRAND:"grand",FINISH:"finish",ERROR:"error",TOTAL_ROWS:"totalRows",DATA_FINISH:"dataFinish",DATABARS:"dataBars",RANGE_MIN_MAX:"rangeMinMax"},B6=[Be.ERROR,Be.HEADERS,Be.GRAND,Be.METADATA,Be.DATA,Be.DATA_FINISH,Be.TOTAL_ROWS,Be.DATABARS,Be.RANGE_MIN_MAX,Be.FINISH];class Dc extends Error{constructor(t="Loading canceled"){super(t),this.name="LoadingCanceledError";const r=new.target.prototype;Object.setPrototypeOf&&Object.setPrototypeOf(this,r)}}class H6{constructor(t,r,n,i){this.childColCells=[],this.childRowCells=[],this.indexInParent=-1,this.siblingCount=0,this.rowIndex=t,this.colIndex=r,this.node=n,this.parent=i}isChild(){return!this.node}hasChildren(){return!!(this.childColCells.length||this.childRowCells.length)}hasColCell(){return this.childColCells.length>0}addColCell(t){this.childColCells.push(t)}getColCell(){return this.childColCells||[]}hasRowCell(){return this.childRowCells.length>0}addRowCell(t){this.childRowCells.push(t)}getRowCell(){return this.childRowCells||[]}getStopRowIndex(){return this.hasRowCell()?this.rowIndex+this.getRowCell().length:this.rowIndex}getStopColIndex(){return this.hasColCell()?this.colIndex+this.getColCell().length:this.colIndex}setIndexInParent(t,r){this.indexInParent=t,this.siblingCount=r}getIndexInParent(){return{indexInParent:this.indexInParent,siblingCount:this.siblingCount}}getParenPosition(){if(!this.parent)return;const t=(this.parent||"").match(/\d+/g)||[];return[Number(t[0]),Number(t[1])]}}const zn={FIRST:"first",LAST:"last",EVEN:"even",ODD:"odd"};var z6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const ZS=[Date,Error,RegExp,Promise];function QS(e,t=ZS){return t.some(r=>e instanceof r)}function dw(e,t=[]){let r=!1;return t.forEach(n=>{e.includes(n)&&(r=!0)}),r}function JS(e=[],t,r){const n=[];return r&&e.forEach(i=>{n.push(`${i}.$`)}),e.length?e.forEach(i=>{n.push(`${i}.${t}`)}):n.push(t),n}function Al(e){return!(e===null||typeof e=="undefined"||typeof e!="object")}function j6(e,t){return Al(e)&&e?Array.isArray(e)?!e.length:QS(e,t)?!1:!Object.keys(e).length:e==null}function W6(e=""){const t=e.split(".");return t.length>1?(t.pop(),t.join(".")):t[0]}function hw(e,t,r){return e.length?dw(e,r):t.length?!dw(t,r):!0}function eE(e,t=[],r=[],n=[],i={},a={},o=[],s=[]){if(!Al(e))return{commonIncludeKeys:[],commonExcludeKeys:[]};const u=o.indexOf(e);if(u!==-1)return s[u];o.push(e);const c=Object.keys(e),d=Array.isArray(e);let h=[],p=[];const m=[],v=[];if(c.forEach(g=>{const b=e[g],C=JS(n,g,d),x=n[0]||"&";i[x]=i[x]||[],a[x]=a[x]||[],C.forEach(E=>{(t||[]).includes(E)&&(i[x].push(E),h.push(E)),(t||[]).forEach(T=>{const A=W6(T);(`${A}.$`===x||A===x)&&(i[x].includes(T)||i[x].push(T),h.includes(T)||h.push(T))}),(r||[]).includes(E)&&(a[x].push(E),p.push(E))}),Al(b)&&eE(b,t,r,C,i,a,o,s)}),Al(e)){let g=n[0]||"&";Array.isArray(e)&&(g=`${g}.$`),i[g]=(i[g]||[]).concat(m),h=h.concat(m),a[g]=(a[g]||[]).concat(v),p=h.concat(v)}return s.push({commonIncludeKeys:h,commonExcludeKeys:p}),{commonIncludeKeys:h,commonExcludeKeys:p}}function tE(e,t,r=new WeakMap){const{includeKeys:n,includeKeysObj:i,excludeKeys:a,excludeKeysObj:o,parentKeys:s=[],excludeEmpty:u,referenceClone:c}=t||{};if(!Al(e)||QS(e,c))return e;if(r.has(e))return r.get(e);const d=Object.keys(e),h=Array.isArray(e),p=h?[]:{};r.set(e,p);const m=s[0]||"&",v=(i||{})[m]||[],g=(o||{})[m]||[];return d.forEach(b=>{const C=e[b];let x=[],E=!0;if(n||a?E=hw(n||[],a||[],[b]):(i||o)&&(x=JS(s,b,h),E=hw(v,g,x)),E){const T=tE(C,Object.assign(Object.assign({},t),{parentKeys:x}),r);(!u||!j6(T,c))&&(h?p.push(T):p[b]=T)}}),p}function Br(e,t){const r=t||{},{include:n,exclude:i}=r,a=z6(r,["include","exclude"]);let o,s;(n||i)&&(o={},s={},eE(e,n,i,[],o,s));const u=Object.assign(Object.assign({},a),{includeKeysObj:o,excludeKeysObj:s});return tE(e,u)}Br.REFERENCE_CLONE_TYPES=ZS;function fw(e,t,r=0){for(let n=r;n<e.length;n+=1){const i=e[n];if(!!t(i,n,e))return n}return-1}const U6=(e,t)=>{let r,n,i=null;const a=(...o)=>{r?i=o:(e(...o),r=!0,i=null,n=setTimeout(()=>{r=!1,i&&(e(...i),i=null)},t))};return a.cancel=()=>{clearTimeout(n),r=!1},a},ql="$*$root$*$";function V6(e,t,r,n){const i={value:e};return t&&(i.children=t),r&&(i.data=r),typeof n!="undefined"&&(i.index=n),i}function Wh(e){return!!(e&&e.children&&e.children.length)}function An(e){return e&&e.children||[]}function u0(e,t){e&&t&&Array.isArray(t)&&(e.children=t)}function G6(e,t){e&&(e.level=t)}function q6(e){return e&&typeof e.level!="undefined"?e.level||0:-1}function Ao(e){if(!e)return;if(e&&!Array.isArray(e)&&e.value===ql)return e;const t={value:ql,children:[]};return Array.isArray(e)?t.children=e:(t.children||[])[0]=e,t}function rE(e,t,r=0){let n;if(!e||!t)return n;if(t(e,r)&&(n=e),Wh(e)){const i=An(e),a=i.length;for(let o=0;o<a;o+=1){const s=rE(i[o],t,r+1);if(s){n=s;break}}}return n}function Y6(e,t){if(!e&&!t)return;if(!e&&t)return Ao(t);if(e&&!t)return Ao(e);const r=Ao(e),n=Ao(t),i=r&&r.children||[],a=n&&n.children||[],o=i.concat(a);return Ao(o)}const nE=(e,t=0)=>{if(!e||!e.isPart)return;e.level=t;const r=An(e),n=r[r.length-1];return n&&nE(n,t+1)||e},iE=(e,t,r=0)=>{if(!e||!e.isPart)return;if(e.level=r,e&&t&&e.value===t.value&&e.level===t.level)return e;const i=An(e)[0];return i&&iE(i,t,r+1)||e};function X6(e,t){let r=nE(e),n=iE(t,r);r&&r.children&&Array.isArray(r.children)&&n&&n.children&&Array.isArray(n.children)&&n.children.length>0&&(r.children=r.children.concat(n.children),n.isHandled=!0);let i=!1;for(r=e,n=t;r&&r.children&&Array.isArray(r.children)&&n&&n.children&&Array.isArray(n.children)&&!n.isHandled;){const a=r.children;r=r.children[r.children.length-1];let o=0;for(n.children[0]&&!i&&(i=!An(n.children[0]).some(s=>s.isPart),o=1);o<n.children.length;)a.push(n.children[o]),o+=1;n=n.children[0]}return e}function aE(e,t,r){!e||!t||e.forEach(n=>{t(n,r),Wh(n)&&aE(An(n),t,n)})}function oE(e,t=[],r=0,n={maxLevel:0}){return e.forEach(i=>{n.maxLevel<r&&(n.maxLevel=r),Wh(i)?oE(An(i),t,r+1,n):t.push(i)}),t}function Uh(e,t={}){if(t||(t={}),typeof t.callCount!="number"?t.callCount=1:t.callCount+=1,!e)return 0;let r=t.clearCache||!1;!Array.isArray(e)&&e.value===ql&&(r=!0);let n=1,i=[];return Array.isArray(e)?(n=0,i=e):e.children&&(i=An(e)),i&&i.length&&(!r&&!Array.isArray(e)&&typeof e.childCount=="number"?n=e.childCount:(n=0,i.forEach(a=>{n+=Uh(a,t)}),Array.isArray(e)||(e.childCount=n))),n}function sE(e,t={}){if(t||(t={}),typeof t.callCount!="number"?t.callCount=1:t.callCount+=1,!e)return 0;let r=t.clearCache||!1;!Array.isArray(e)&&e.value===ql&&(r=!0);let n=0,i=[];if(e&&!Array.isArray(e)&&typeof e.value!="undefined"&&(n=1),Array.isArray(e)?(n=0,i=e):e.children&&(i=An(e)),i&&i.length)if(!r&&!Array.isArray(e)&&typeof e.childDeep=="number")n+=e.childDeep;else{let a=0;i.forEach(o=>{const s=sE(o,t);s>a&&(a=s)}),n+=a,Array.isArray(e)||(e.childDeep=a)}return n}function lE(e=[],t=0,r){const n=[];let i=0,a=-1,o=-1;const s=e.length;if(typeof t=="number"&&typeof r=="number"&&t>r)throw new Error('Wrong "getNodesByChildCount" diapason');if(typeof t=="number"&&t<0)throw new Error('Wrong "from" index for "getNodesByChildCount"');for(let u=0;u<s;u+=1){const c=e[u],d=Uh(c);if(i+d>t&&(a<0&&(a=i),n.push(c),typeof r=="number"&&i+d>=r)){o=i+d;break}o=i+d,i+=d}return{nodes:n,start:a,stop:o}}function K6(e){e.isMapped!==void 0&&(e.isMapped=void 0),e.minLevel!==void 0&&(e.minLevel=void 0),e.childCount!==void 0&&(e.childCount=void 0),e.childDeep!==void 0&&(e.childDeep=void 0)}function c0(e=[],t=0,r,n){const{cloneFn:i=Br}=n||{},a=[],{nodes:o,start:s,stop:u}=lE(e,t,r),c=o.length;let d,h,p=!0;if(s<t){const m=o[0]||{},v=t-s;let g;c===1&&typeof r=="number"&&(g=r-s,p=!1),d=i(m,!0);const b=c0(An(m),v,g,n);u0(d,b)}if(typeof r=="number"&&u>r&&p){const m=o[c-1]||{},v=0,g=Uh(m)-(u-r);h=i(m,!0);const b=c0(An(m),v,g,n);u0(h,b)}return o.forEach((m,v)=>{if(d&&v===0)a.push(d);else if(h&&v===c-1)a.push(h);else{const g=i(m);a.push(g)}}),a}const we={ROOT:ql,create:V6,hasChildren:Wh,getChildren:An,setChildren:u0,setLevel:G6,getLevel:q6,getLastLevelNodes:oE,iterateThroughTree:aE,wrapInRootNode:Ao,findNode:rE,merge:Y6,deepMerge:X6,getChildLength:Uh,getDeepLength:sE,getNodesByChildCount:lE,getCutNodesByChildCount:c0,clearNodeCache:K6},vo=(e,t)=>`${e}-${t}`;class Z6{constructor(t,r=!1,n){this.hasGrandTotals=!1,this.isVertical=!1,this.columns=[],this.lastLevel=[],this.map={},this.metadataCache={},this.isVertical=r,this.deep=n,t&&(this.tree=t,this.columns=this.cacheLevels(we.getChildren(this.tree)))}destroy(){this.tree=void 0,this.columns=[],this.lastLevel=[],this.map={},this.metadataCache={},this.valueNode=void 0,this.grid=void 0}getMainCellWidth(t,r,n,i,a={offsetTop:-1,columnsOffset:0}){const{columnsOffset:o=0}=a,s=this.getItem(t,r),u=s&&s.hasChildren()&&s.hasColCell();let c=Number.NaN,d=!0;if(s&&u){const h=s.getColCell(),p=n({index:r+o});c=h.reduce((m,v)=>{const g=n({index:v.colIndex+o});return g||(d=!1),m+g},p),c-=i,c=Math.ceil(c)}return d?c:Number.NaN}extend(t){t&&(this.grid=void 0,this.tree=we.merge(this.tree,t),this.columns=this.cacheLevels(we.getChildren(t),this.columns))}getGrid(){if(this.grid)return this.grid;let t=this.getTreeDeepsLength(),r=this.getTreeChildLength();return this.isVertical?([t,r]=[r,t],this.map=this.fillMapVertical(we.getChildren(this.tree),r,this.map)):this.map=this.fillMap(we.getChildren(this.tree),t,this.map),this.grid=Array.from(Array(t)).map((n,i)=>Array.from(Array(r)).map((a,o)=>{const s=vo(i,o),u=this.map[s];if(!u)throw new Error(`Key "${s}" does not found in TreeService`);return u.node?u.node:u.parent})),this.grid}getPartialGrid(t,r){if(!this.isVertical)throw new Error('"getPartialGrid" can only be used for "vertical" tree');const n=this.getTreeDeepsLength(),i=we.getChildren(this.tree),{nodes:a,start:o,stop:s}=we.getNodesByChildCount(i,t,r);this.fillMapVertical(a,n,this.map,{parentRowIndex:o,parentColIndex:0,prevChildren:0,parentKey:""});const u=Math.max(o,t),c=Math.min(s,r),d=Math.max(0,c-t);return Array.from(Array(d)).map((h,p)=>Array.from(Array(n)).map((m,v)=>{const g=u+p,b=vo(g,v),C=this.map[b];if(!C)throw new Error(`Key "${b}" does not found in TreeService`);return C.node?C.node:C.parent||""}))}getPartialTree(t,r,n){const i=we.getChildren(this.tree);return we.getCutNodesByChildCount(i,t,r,n)}getTreeNode(t,r){const n=this.getItem(t,r);if(n&&n.node)return n.node}isChildren(t,r){const n=this.getItem(t,r);if(n)return n.isChild();if(typeof this.deep=="number"&&(this.isVertical?r:t)<this.deep)return!0;throw new Error(`Item "${t}-${r}" does not found in TreeService`)}hasChildren(t,r){const n=this.getItem(t,r);if(n)return n.hasChildren();throw new Error(`Item "${t}-${r}" does not found in TreeService`)}getMainCellSpans(t,r){const n={},i=this.getItem(t,r);return i&&i.hasColCell()&&(n.colSpan=i.getColCell().length+1),i&&i.hasRowCell()&&(n.rowSpan=i.getRowCell().length+1),n}alignStartIndex(t,r=!1){let n=0,i=t;if(r&&(n=t,i=0),this.isVertical===r){let a=this.getItem(n,i);if(a&&a.isChild()&&(a=this.getItemByKey(a.parent||"")),a)return r?a.rowIndex:a.colIndex}return t}alignStopIndex(t,r=!1){let n=0,i=t;if(r&&(n=t,i=0),this.isVertical===r){let a=this.getItem(n,i);if(a&&a.isChild()&&(a=this.getItemByKey(a.parent||"")),a)return r?a.getStopRowIndex():a.getStopColIndex()}return t}getTreeChildLength(t=we.getChildren(this.tree),r){return we.getChildLength(t,r)}getTreeDeepsLength(t=we.getChildren(this.tree),r){return typeof this.deep!="undefined"&&this.deep!==void 0?this.deep:we.getDeepLength(t,r)}getLastLevelNodes(){return this.lastLevel}extractData(t){if(!t)return[];const n=t.getLastLevelNodes().map(i=>i.index);return this.getLastLevelNodes().map(i=>typeof i.data=="undefined"?[i.data]:n?n.map(a=>{let o;return typeof a!="undefined"&&i.data&&(o=i.data[a]),o}):i.data)}getMetadata(t,r,n){const i=this.getTreeDeepsLength();t===1/0&&(t=i&&i-1),r===1/0&&(r=i&&i-1);const a=`${t}-${r}`;if(this.metadataCache[a])return this.metadataCache[a];let o=this.getItemByKey(a);if(!o)throw new Error(`Can not find metadata info for ${a} cell`);let s=o?o.node:void 0;if(s||(o=this.getItemByKey(o.parent||"")),!o)throw new Error(`Can not find metadata info for parent ${a} cell`);s=o?o.node:void 0;const u=this.getItemByKey(`${t+1}-${r}`),c=u?u.node:void 0,d=s&&s.level||0,h=this.isVertical?o.getStopColIndex():o.getStopRowIndex();let{indexInParent:p,siblingCount:m}=o.getIndexInParent(),v=p;if(d===0&&(m=this.getTreeChildLength(),p=this.isVertical?o.rowIndex:o.colIndex,v=p+(this.isVertical?o.getRowCell().length:o.getColCell().length)),n){const x=n.to-n.from;m<=x&&v>x-1&&(v=x-1)}const g={levels:[],siblings:[],root:void 0,parent:void 0,valueNode:this.valueNode,nextNode:c},{indexDivergence:b}=s||{};if(typeof b=="number"){const x=b===0?zn.EVEN:zn.ODD;g.siblings.push(x)}if(d===0&&g.levels.push(zn.FIRST),h===i-1&&g.levels.push(zn.LAST),p===0&&g.siblings.push(zn.FIRST),v===m-1&&g.siblings.push(zn.LAST),s&&d!==0){const x=this.isVertical?t:0,E=this.isVertical?0:r;g.root=this.getMetadata(x,E,n)}const C=this.getItemByKey(o.parent||"");if(C&&d!==0&&(g.parent=this.getMetadata(C.rowIndex,C.colIndex,n)),n){const x=this.isVertical?o.rowIndex:o.colIndex,E=this.isVertical?o.getStopRowIndex():o.getStopColIndex();let T;C&&(T=this.isVertical?C.getStopRowIndex():C.getStopColIndex()),T!==void 0&&T>=n.to-n.from&&E>=n.to-n.from-1&&!g.siblings.includes(zn.LAST)&&g.siblings.push(zn.LAST),x===0&&!g.siblings.includes(zn.FIRST)&&g.siblings.push(zn.FIRST)}return this.metadataCache[a]=g,g}setValueNode(t){typeof t=="object"&&(this.valueNode=t)}cacheLevels(t,r=[],n={level:0}){const{level:i}=n;return t.forEach(a=>{if(r[i]||(r[i]=[]),we.setLevel(a,i),r[i].push(a),we.hasChildren(a)){const o=i+1;this.cacheLevels(we.getChildren(a),r,{level:o})}else this.lastLevel.push(a)}),r}fillMap(t,r,n={},i){const a=i||{parentRowIndex:0,parentColIndex:0,prevChildren:0,parentKey:""},o=t.length;return t.forEach((s,u)=>{const{parentRowIndex:c,parentColIndex:d,prevChildren:h,parentKey:p}=a,v=we.getLevel(s)+c,g=u+d+h,b=vo(v,g),C=this.createTreeCellMap({rowIndex:v,colIndex:g,node:s,parent:p});C.setIndexInParent(u,o),n[b]=C;let x=0,E=0;if(we.hasChildren(s)?(x=this.getTreeChildLength(s),typeof s.minLevel=="number"&&(E=s.minLevel+1-v||0)):E=(r||0)-(v||0),(x>1||E>1)&&this.fillChildMap(n,b,v,g,E,x),we.hasChildren(s)){const T=Object.assign(Object.assign({},a),{parentRowIndex:E>1?E-1:0,parentColIndex:u+d,parentKey:b});this.fillMap(we.getChildren(s),r,n,T),x>1&&(a.prevChildren+=x-1)}}),n}fillMapVertical(t,r,n={},i){const a=i||{parentRowIndex:0,parentColIndex:0,prevChildren:0,parentKey:""},o=t.length;return t.forEach((s,u)=>{if(s.isMapped){a.parentRowIndex+=we.getChildLength(s)-1;return}s.isMapped=!0;const{parentRowIndex:c,prevChildren:d,parentKey:h}=a,p=we.getLevel(s),m=u+c+d,v=vo(m,p),g=this.createTreeCellMap({rowIndex:m,colIndex:p,node:s,parent:h});g.setIndexInParent(u,o),n[v]=g;let b=0,C=0;if(we.hasChildren(s)?C=this.getTreeChildLength(s):b=(r||0)-(p||0),(b>1||C>1)&&this.fillChildMap(n,v,m,p,C,b),we.hasChildren(s)){const x=Object.assign(Object.assign({},a),{parentRowIndex:u+c,parentKey:v});this.fillMapVertical(we.getChildren(s),r,n,x),C>1&&(a.prevChildren+=C-1)}}),n}fillChildMap(t,r,n,i,a,o){const s=t[r],u=Math.max(1,a),c=Math.max(1,o);Array.from(Array(u)).forEach((d,h)=>{Array.from(Array(c)).forEach((p,m)=>{if(h===0&&m===0)return;const v=n+h,g=i+m,b=vo(v,g),C=this.createTreeCellMap({rowIndex:v,colIndex:g,parent:r});t[b]=C,!(h!==0&&m!==0)&&(m===0&&s.addRowCell(C),h===0&&s.addColCell(C))})})}createTreeCellMap({rowIndex:t,colIndex:r,node:n,parent:i}){return new H6(t,r,n,i)}getItemByKey(t){return this.map[t]}getItem(t,r){const n=vo(t,r);return this.getItemByKey(n)}}class ma extends Z6{}const He={ROWS:"rows",COLUMNS:"columns",MEASURES:"measures",SCOPE:"scope"},Nc={ASC:"asc",DESC:"desc"},tr={SUB_TOTAL:"subTotal",GRAND_TOTAL:"grandTotal",MEASURE_TOP:"measureTop",MEASURE_BOTTOM:"measureBottom",CORNER:"corner"},pw={COLOR:"color",CONDITION:"condition"},hy={DATETIME:"datetime",TEXT:"text",NUMERIC:"numeric"},yo={MEMBER:"member",VALUE:"value",SUB_TOTAL:"subtotal",GRAND_TOTAL:"grandtotal"},Gi={MEMBER:"member",INDEX:"index",TITLE:"title",NAME:"name",AGG:"agg",DIM:"dim"};class mw{constructor(t=[],r){this.divergence=0;const n=r?r.getDivergence():0,i=we.getLastLevelNodes(t);this.divergence=(n+i.length)%2;for(let a=0;a<i.length;a+=1)i[a].indexDivergence=(a+n)%2}getDivergence(){return this.divergence}}const Zn=(e,t)=>{const r=e;return t&&(r.metadataType=t),r};function Au(e=[]){const t={};return e.forEach(r=>{const{index:n=1/0}=r.field||{},i=`${n}`;t[i]=r.jaql.datatype||hy.TEXT}),t}function d0(e,t){if(e&&t===hy.DATETIME)try{return new Date(e).toISOString()}catch(r){return e}return e}function gw(e){if(e!==null&&!D.isEqual(e,{}))return e}function Oa(e,t,r={}){const n=gw(e),i=gw(t);let a=!1;if(typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){a=!0;const o=Object.keys(n),s=Object.keys(i);o.length!==s.length?a=!1:o.forEach(u=>{const c=r[u]||"";let d=(n||{})[u],h=(i||{})[u];if(typeof d=="undefined"||typeof h=="undefined"){a=!1;return}c===hy.DATETIME&&(d=d0(d,c),h=d0(h,c)),d!==h&&(a=!1)})}else a=n===i;return a}function uE(e,t,r=d0){if(!e||typeof e!="object")return e;const n={};return Object.keys(e).forEach(i=>{const a=t[i],o=(e||{})[i],s=r(o,a);n[i]=s}),n}const Pn=(e,t)=>{let r=e&&e.metadata||[];return t&&(r=r.filter(n=>n.panel===t)),r.sort((n,i)=>{const a={index:1/0},o=n.field||a,s=i.field||a;return o.index-s.index}),r},Ua=(e,t,r)=>typeof t=="undefined"?void 0:Pn(e,r).filter(a=>(a.field||{index:1/0}).index===t)[0],Q6=(e,t)=>{const r=e.field||{index:1/0};if(e.panel===He.MEASURES)return!0;if(e.panel===He.ROWS){const n=Pn(t,He.ROWS),a=(n[n.length-1]||{}).field||{index:1/0};if(n.length&&a.index===r.index)return!0;n.length||console.error("Missing rows panel in jaql!")}return!1};function J6(e,t){return!e||typeof e.field!="number"?!1:e.field!==t}const fy=(e,t=He.ROWS)=>{const n=Pn(e,t).map((i,a)=>{const o=we.create(i.jaql.title,void 0,void 0,a),s=Zn(o,t);switch(s.jaqlIndex=i.field?i.field.index:void 0,t){case He.ROWS:{s.measurePath=void 0;const u=J6(i.jaql.sortDetails,s.jaqlIndex);i.jaql.sort&&!u?s.dir=i.jaql.sort:s.dir=null;break}case He.MEASURES:s.databars=i.format?i.format.databars:!1,s.measureJaqlIndex=s.jaqlIndex,Pn(e,He.COLUMNS).length||(s.measurePath=void 0,i.jaql.sortDetails&&i.jaql.sortDetails.measurePath===null?s.dir=i.jaql.sortDetails.dir:s.dir=null);break}return s});return we.wrapInRootNode(n)},cE=e=>{(e&&e.metadata?e.metadata:[]).forEach(r=>{r&&r.jaql&&r.jaql.sort&&r.jaql.sortDetails&&r.jaql.sortDetails.sortingLastDimension&&(r.jaql.sort=null,delete r.jaql.sortDetails)})},dE=e=>{e&&e.jaql&&(e.jaql.sort=null,delete e.jaql.sortDetails)},hE=e=>{(e&&e.metadata?e.metadata:[]).forEach(r=>dE(r))},eF=e=>(e.metadata||[]).reverse().find(t=>!!t.jaql.sortDetails),tF=e=>(e.metadata||[]).find(t=>!!(t.jaql.sortDetails&&t.jaql.sortDetails.isLastApplied)),rF=e=>{const t=tF(e)||eF(e);if(!t)return;const r=t.field&&t.field.index;(e.metadata||[]).forEach(n=>{(n.field&&n.field.index)!==r&&dE(n)})},fE=(e,t)=>{e.metadata.forEach(r=>{const n=r.field&&r.field.index;if(t.field===n){r.jaql.sortDetails=r.jaql.sortDetails||t,r.jaql.sortDetails.isLastApplied=!0;return}r.jaql.sortDetails&&r.jaql.sortDetails&&delete r.jaql.sortDetails.isLastApplied})},nF=(e,t,r)=>{const{isSingleRowTree:n=!1,formatter:i}=r||{};if(!t){console.warn("jaql is undefined or null!");return}const a=Ua(t,e.field);if(a&&a.panel===He.COLUMNS){console.warn('Should not be sorted by "COLUMN" type panels!');return}if(!a)return;const o=Q6(a,t);switch(n?hE(t):o&&cE(t),e.dir){case Nc.DESC:case null:a.jaql.sort=Nc.ASC;break;case Nc.ASC:a.jaql.sort=Nc.DESC;break;default:a.jaql.sort=void 0}const s=a.field||{index:1/0};if(a.jaql.sort){let{measurePath:u}=e;if(u){const c=Pn(t),d=Au(c);u=uE(u,d,i)}a.jaql.sortDetails={field:s.index,dir:a.jaql.sort,sortingLastDimension:o,measurePath:u,initialized:!0}}else a.jaql.sortDetails=void 0;t&&t.metadata&&s.index!==void 0&&(t.metadata[s.index]=a),fE(t,e)},iF=(e,t,r)=>{if(!e)return;const n=Ua(e,t);n&&(n.format=n.format||{},n.format.width=r)},aF=e=>{const t={};return e&&Pn(e).forEach(n=>{const i=n.field||{index:1/0};n.format&&typeof n.format.width!="undefined"&&typeof i.index!="undefined"&&(t[i.index]=n.format.width)}),t},pE=(e,t)=>{if(typeof t.measureJaqlIndex!="undefined"){const r=Pn(e),n=Au(r),i=r.filter(o=>o.panel===He.ROWS).find(o=>{const s=o.jaql.sortDetails;return!s||!(s.field===t.measureJaqlIndex)?!1:!!Oa(t.measurePath,s.measurePath,n)});if(i){t.dir=i.jaql.sort?i.jaql.sort:null;return}const a=Ua(e,t.measureJaqlIndex);if(a&&a.jaql.sortDetails){const o=a.jaql.sortDetails.measurePath,s=t.measurePath;if(Oa(o,s,n)){t.dir=a.jaql.sort||null;return}}}t.dir=null};function oF(e,t,r,n){const{isSingleRowTree:i,formatter:a}=n;i&&hE(e),e.metadata.forEach(o=>{o.jaql.sortDetails&&delete o.jaql.sortDetails.isLastApplied}),t.forEach((o,s)=>{let u;s===t.length-1?(o.selected&&cE(e),u=r.field):u=o.indexInJaql;const c=Ua(e,u);if(!c){console.warn(new Error("Panel not found"));return}o.selected&&!o.direction&&console.warn(new Error("Direction should be defined and equal to 'asc' or 'desc'"));const d=Pn(e),h=Au(d);if(!o.direction||!o.selected){const{sortDetails:p}=c.jaql;!!(p&&r.field===p.field&&Oa(r.measurePath,p.measurePath,h))&&(delete c.jaql.sort,delete c.jaql.sortDetails)}if(o.selected&&o.direction){c.jaql.sort=o.direction;let{measurePath:p}=r;p&&(p=uE(p,h,a)),r.measurePath===void 0&&c.field&&c.panel==="rows"&&r.field!==c.field.index&&(p={}),c.jaql.sortDetails={field:r.field,dir:o.direction,sortingLastDimension:!1,measurePath:p,isLastApplied:!0,initialized:!0}}})}function sF(e,t,r,n){return e.jaql.sortDetails?!1:r?Oa(t.measurePath,r.measurePath,n):!1}function h0(e){const t=e&&e.dir;switch(t){case"asc":case"desc":return t;default:return null}}function lF(e,t){var r,n;const i=e.metadata.filter(v=>v.panel==="rows"),a=Ua(e,t.field),o=a.jaql.datatype,s=a.jaql.sortDetails,u=Au(Pn(e)),c=[];for(let v=0;v<i.length-1;v+=1){const g=i[v],b=!!(g.jaql.sortDetails&&g.jaql.sortDetails.field===t.field&&Oa(t.measurePath,g.jaql.sortDetails.measurePath,u)),C=h0(g.jaql.sortDetails);c.push({title:g.jaql.title,datatype:o,selected:b,direction:C,indexInJaql:(r=g.field)===null||r===void 0?void 0:r.index})}const d=i[i.length-1],h=sF(d,t,s,u),p=h0(s),m={title:d.jaql.title,datatype:o,selected:h,direction:p,indexInJaql:(n=a.field)===null||n===void 0?void 0:n.index};return c.push(m),c}function uF(e,t,r){return e.filter(i=>i.field&&t.field===i.field.index).map(i=>{const{sortDetails:a}=i.jaql,o=!!(a&&Oa(t.measurePath,a.measurePath,r)),s=o?h0(a):null;return{title:i.jaql.title,datatype:i.jaql.datatype,selected:o,direction:s}})[0]}const bo={isMeasurePathEqual:Oa,getDataTypes:Au,updatePanelsSortingMetadata:nF,getMetadataTree:fy,getMetadataPanels:Pn,getMetadataPanelByIndex:Ua,setResizeWidthToJaql:iF,getResizeWidthFromJaql:aF,markSortedNode:pE,normalizeSingleBranchTreeSortDetails:rF,updateLastAppliedSortingFlag:fE,handleComplexSortingSettingsUpdate:oF,mapWidgetJaqlToSimpleSortingSettings:uF,mapWidgetJaqlToComplexSortingSettings:lF};function mE(e,t){if(!we.hasChildren(e))return!1;let r=!1;t===He.COLUMNS&&e&&e.isPart&&(r=!0);const n=we.getChildren(e);if(n.length>1||r)return!0;const[i]=n;return mE(i)}function cF(e){return e==null}const py=(e,t,r,n,i)=>{const a=[];return e.forEach(o=>{if(a.push(o),we.hasChildren(o)){const s=we.getChildren(o),u=py(s,t,r,n,i);we.setChildren(o,u);let c=!1;if((i||mE(o,r))&&(r===He.COLUMNS?typeof o.index!="undefined"&&o.index>-1&&(c=!0):r===He.ROWS&&typeof o.data!="undefined"&&(c=!0)),c){const{value:d,index:h,data:p,jaqlIndex:m,measurePath:v}=o;let g;if(r===He.COLUMNS?g=we.create(d,void 0,void 0,h):r===He.ROWS&&(g=we.create(d,void 0,p)),g){const b=Zn(g,r);b.userType=tr.SUB_TOTAL,b.jaqlIndex=m,b.measurePath=v,b.master=o,a.push(b)}}}}),a},gE=(e,t)=>{e.userType===tr.SUB_TOTAL&&e.master&&(e.measurePath=e.master.measurePath)},vE=(e,t,r,n)=>{const i=e;if(r===He.COLUMNS&&t){const a=Zn(t);if(typeof a.index=="number"){const s=fy(n,He.MEASURES);we.getChildren(s).forEach((u,c)=>{const d=Object.assign(Object.assign({},u),{index:(a.index||0)+c}),h=Zn(d,r);h.userType=tr.GRAND_TOTAL,h.measureJaqlIndex=h.jaqlIndex,i.push(h)})}}return i},yE=(e,t)=>{e.userType===tr.GRAND_TOTAL&&(e.measurePath=void 0,e.metadataType===He.ROWS&&(e.parent=void 0,e.jaqlIndex=0))},bE=(e,t,r,n)=>{let i=e;if(r===He.COLUMNS){const a=fy(n,He.MEASURES),o=we.getChildLength(a),s={maxLevel:0},u=we.getLastLevelNodes(i,[],0,s);if(o>1)u.forEach(c=>{if(c.userType===tr.GRAND_TOTAL)return;const d=we.getChildren(a),h=[];for(let p=0;p<d.length;p+=1){if(typeof c.maxChilds=="number"&&p>=c.maxChilds)continue;const m=Object.assign(Object.assign({},d[p]),{index:(c.index||0)+p,measurePath:c.measurePath}),v=Zn(m,He.MEASURES);v.userType=tr.MEASURE_BOTTOM,v.measureJaqlIndex=v.jaqlIndex,h.push(v)}c.minLevel=s.maxLevel,we.setChildren(c,h)});else if(o===1){const c=we.getChildren(a)[0];if(c){const d=Object.assign({},c),h=Zn(d,He.MEASURES);h.userType=tr.MEASURE_TOP,we.setChildren(h,i),i=[h],u.forEach(p=>{p.measureJaqlIndex=c.jaqlIndex})}}}return i},_E=(e,t)=>{!we.hasChildren(e)&&typeof e.measureJaqlIndex!="undefined"&&pE(t,e)},dF=(e,t,r,n)=>{let i={};if(t.userType===tr.SUB_TOTAL||t.userType===tr.GRAND_TOTAL||r.userType===tr.SUB_TOTAL||r.userType===tr.GRAND_TOTAL||r.parent&&r.parent.userType===tr.SUB_TOTAL||r.parent&&r.parent.userType===tr.GRAND_TOTAL)return;const a=n&&n.format&&n.format.color||null;if(!a)return;const{value:o,cf:s=-1}=e;if(a.type===pw.COLOR&&a.color&&a.color!=="transparent"&&(i.backgroundColor=a.color),a.type===pw.CONDITION&&a.conditions&&a.conditions.length)for(let u=0,c=a.conditions.length;u<c&&!cF(o);u+=1){const d=a.conditions||[],{color:h}=d[u]||{};if(h&&s===u){i.backgroundColor=h;break}}Object.keys(i).length>0&&(e.style=e.style||{},Object.assign(e.style,i)),i=void 0},wE=(e,t,r,n)=>{const i=[],{level:a=0,measurePath:o={}}=n||{};let s;Array.isArray(e)?s=e:s=we.getChildren(e);const c=Pn(r,t)[a],d=c?(c.field||{index:1/0}).index:void 0;return s.forEach(h=>{const p=Zn(h,t);if(p.jaqlIndex=d,typeof d!="undefined"&&(p.measurePath=Object.assign(Object.assign({},o),{[d]:p.value})),i.push(p),we.hasChildren(p)){const m=we.getChildren(p),v={level:a+1,measurePath:p.measurePath},g=wE(m,t,r,v);we.setChildren(p,g)}}),i},CE=(e,t,r)=>{const{skipFormatEvent:n=!1,onlyFormatEvents:i=!1,iterateFn:a,emitFn:o}=r||{};e.forEach(s=>{if(a&&a(s),(n||!i)&&(gE(s),yE(s),_E(s,t)),o&&(i||!n)){const u=Ua(t,s.jaqlIndex,s.metadataType||"");o(s,u,t)}if(we.hasChildren(s)){const u=we.getChildren(s);CE(u,t,r)}})},hF=(e,t,r,n)=>{const{originalData:i,applyIndexDivergence:a,subtotalsForSingleRow:o}=n||{};a&&a(e);let s=py(e,i,t,r,o);return s=vE(s,i,t,r),s=bE(s,i,t,r),we.iterateThroughTree(s,(u,c)=>{u.parent=c}),s},Js={insertSubTotals:py,postProcessSubTotal:gE,insertGrandTotals:vE,postProcessGrandTotal:yE,insertMeasureNodes:bE,postProcessMeasureNode:_E,applyColorFormatting:dF,preProcessTree:wE,modifyTree:hF,postProcessTree:CE};var fF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const pF=(e,t)=>e.metadata.find(r=>r.field&&r.field.index===t),hd=(e,t,r=[],n=[])=>{if(!t||!e||typeof e.jaqlIndex=="undefined")return{dimensionsMeta:r,type:n};const i=pF(t,e.jaqlIndex);if(i&&i.jaql&&e.metadataType!==He.MEASURES&&r.unshift({title:i.jaql.title,name:i.jaql.dim,member:e.value,index:e.jaqlIndex}),e&&e.userType&&(e.userType===tr.SUB_TOTAL||e.userType===tr.GRAND_TOTAL)){const a=e.userType.toLowerCase();n.push(a)}return e.parent&&e.parent.metadataType!==He.MEASURES?hd(e.parent,t,r,n):{dimensionsMeta:r,type:n}},vw=e=>{let t={};if(e){const r=e.jaql;t=fF(r,["type","datatype","table","column"]),e.field&&(t.index=e.field.index)}return t};function Uo(e,t,r){return!t||!t.length?!1:t.some(n=>{let i=!0;return r&&r.fields&&r.fields.length&&r.fields.forEach(a=>{e[a]!==void 0&&n[a]===void 0?i=!1:e[a]!==void 0&&n[a]!==void 0&&(Array.isArray(e[a])?i=i&&e[a].indexOf(n[a])!==-1:i=i&&e[a]===n[a])}),i})}const mF=(e,t=[])=>{let r=!1;return!t||!t.length?!1:e.length===0?!0:(e.forEach(n=>{t.includes(n)&&(r=!0)}),r)},yw=(e,t)=>{let r=!0;return!t||!t.length?r=!1:e.forEach(n=>{if(n.index){const i=t[t.length-1];r=r&&Uo(n,[i],{fields:[Gi.INDEX]})}if(n.dim&&(n.name=n.dim,n.members&&(n.member=n.members),r=r&&Uo(n,t,{fields:[Gi.NAME,Gi.MEMBER]})),n.title){const i=t[t.length-1];r=r&&Uo(n,[i],{fields:[Gi.TITLE]})}}),r},gF=(e,t)=>{let r=!0;return!t||!t.length?r=!1:e.forEach(n=>{n.index&&(r=r&&Uo(n,t,{fields:[Gi.INDEX]})),n.dim&&(n.name=n.dim,r=r&&Uo(n,t,{fields:[Gi.DIM,Gi.AGG]})),n.title&&(r=r&&Uo(n,t,{fields:[Gi.TITLE]}))}),r},vF=(e,t)=>{let r=!0;if(e.type&&r&&(r=r&&mF(e.type,t.type)),e.rows&&e.rows.length&&r){const n=t.rows?t.rows:[];r=r&&yw(e.rows,n)}if(e.columns&&r){const n=t.columns?t.columns:[];r=r&&yw(e.columns,n)}if(e.values&&r){const n=t.measure?[t.measure]:[];r=r&&gF(e.values,n)}return r},yF=e=>{const t={};return Object.keys(e).forEach(r=>{(!r.startsWith("border")||r==="borderColor")&&(t[r]=e[r])}),t},el="text";class my{constructor(t,r,n){this.plugins=[],this.columnsMetadata=[],this.metadataCache=new Map,this.plugins=t,this.jaql=r,this.globalStyles=n,this.indexHelper={measuresLevel:this.getMeasuresLevel(),columnStartFrom:0,rowStartFrom:0},this.globalStyles&&(this.globalStyles=yF(this.globalStyles))}getJaqlPanels(t){if(!this.jaql)throw new Error("No Jaql in Plugin service!");return this.jaql.metadata.filter(r=>r.panel===t)}getMeasuresLevel(){const t=this.getJaqlPanels(He.COLUMNS);return this.getJaqlPanels(He.MEASURES).length>1?t.length:0}getRowsColumnLength(){return this.getJaqlPanels(He.ROWS).length}getTotalTypes(t){const r=t.filter(n=>n===yo.SUB_TOTAL||n===yo.GRAND_TOTAL);return r&&r.length?r.filter((n,i,a)=>a.indexOf(n)===i):[]}getMeasureMetaByIndex(t){const r=this.getJaqlPanels(He.MEASURES);if(r.length===1)return vw(r[0]);const n=t%r.length;return vw(r[n])}resetRowStartFrom(){this.indexHelper.rowStartFrom=1}applyToColumns(t){t.length!==0&&(this.indexHelper.columnStartFrom===0&&(this.indexHelper.columnStartFrom=this.getRowsColumnLength()),this._applyToColumns(t,{row:-1}))}_applyToColumns(t,r){t.forEach((n,i)=>{const{dimensionsMeta:a,type:o}=hd(n,this.jaql);o.push(yo.MEMBER);let s=r.row>=0?r.row+1:0;s>=this.indexHelper.rowStartFrom&&(this.indexHelper.rowStartFrom=s+1),n.metadataType===He.MEASURES&&(s=this.indexHelper.measuresLevel);let u=i===0?0:1;u+=this.indexHelper.columnStartFrom;const c={type:o,rowIndex:s,colIndex:u,index:n.jaqlIndex,columns:a};n.metadataType===He.MEASURES&&(c.measure=this.getMeasureMetaByIndex(n.index||0));const d={value:n.value||"",content:n.content||"",contentType:n.contentType||el,style:n.style||{},store:n.store||{},state:n.state};if(this.applyGlobal(d),this.apply(c,d),this.addToMetadata(c,d,c.rowIndex,c.colIndex),Object.assign(n,d),this.indexHelper.columnStartFrom=u,n.children){const h={row:s,column:u};this._applyToColumns(n.children,h)}else this.columnsMetadata.push({type:o,metadata:a});return!0})}applyToHeaders(t){!t||!t.children||t.children.length===0||t.children.forEach(r=>{const{dimensionsMeta:n}=hd(r,this.jaql),i={type:[yo.MEMBER],rowIndex:0,colIndex:r.index||0,index:r.jaqlIndex,rows:n},a={value:r.value,content:r.content||"",contentType:r.contentType||el,style:r.style?r.style:{},store:r.store||{},state:r.state};this.applyGlobal(a),this.apply(i,a),this.addToMetadata(i,a,i.rowIndex,i.colIndex),Object.assign(r,a)})}applyToRows(t){if(t.length===0)return;const r=this.getJaqlPanels(He.ROWS),n=this.getJaqlPanels(He.MEASURES),i=this.getJaqlPanels(He.COLUMNS);this.indexHelper.rowStartFrom=my.getRowStartFromForPage(r.length,n.length,i.length),this._applyToRows(t)}static getRowStartFromForPage(t,r,n){if(t===0&&n===0)return 0;const i=n+(r===0?0:1);return i===0?1:i}_applyToRows(t){t.forEach((r,n)=>{const{dimensionsMeta:i,type:a}=hd(r,this.jaql);a.push(yo.MEMBER);const o=r.level?r.level:0,s=n===0?this.indexHelper.rowStartFrom:this.indexHelper.rowStartFrom+1,u={type:a,rowIndex:s,colIndex:o,index:r.jaqlIndex,rows:i},c={value:r.value,content:r.content||"",contentType:r.contentType||el,style:r.style||{},store:r.store||{},state:r.state};return this.applyGlobal(c),this.apply(u,c),this.addToMetadata(u,c,u.rowIndex,u.colIndex),this.indexHelper.rowStartFrom=s,r.children?this._applyToRows(r.children):r.data&&r.data.length&&this.applyToValues(r.data,{type:a,metadata:i},{rowIndex:s,colIndex:this.getRowsColumnLength()}),Object.assign(r,c),!0})}applyToValues(t,r,n){t.length&&t.forEach((i,a)=>{const o=[yo.VALUE],s=this.columnsMetadata[a];if(!s)return;const u=this.getTotalTypes([...r.type,...s.type]),c=this.getMeasureMetaByIndex(a),d={type:o.concat(u),rows:r.metadata,columns:s.metadata,measure:c,colIndex:a+n.colIndex,rowIndex:n.rowIndex,index:c&&c.index?c.index:0};let h={value:i,content:i,contentType:el,style:{},store:i&&i.store||{},state:i&&i.state||void 0};i!=null&&typeof i=="object"&&(h={value:i.value?i.value:null,content:i.content||"",contentType:i.contentType||el,style:i.style||{},store:i.store||{},state:i.state}),this.applyGlobal(h),this.apply(d,h),this.addToMetadata(d,h,d.rowIndex,d.colIndex),t[a]=h})}addToMetadata(t,r,n,i){const a=Object.assign({cellData:{value:r.value,content:r.content}},t);this.metadataCache.set(`${n}-${i}`,a)}applyGlobal(t){const{globalStyles:r}=this;r&&(t.style=Object.assign(Object.assign({},t.style),r))}apply(t,r){this.plugins&&this.plugins.length&&this.plugins.forEach(n=>{if(vF(n.target,t)){const a=n.handler;a(t,r)}})}}var bF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Xp=(e,t)=>{const r=e||{metadata:[],grandTotals:null};let{metadata:n}=r;return n=n.map(i=>{const a=i.field||{},o=t.find(({field:u})=>u&&u.index===a.index),s=o?o.format:null;return s?Object.assign(Object.assign({},i),{format:s}):i}),Object.assign(Object.assign({},r),{metadata:n})},bw=100,_F="dataLoad",wF="dataChunkLoaded",CF="dataBarChunkLoaded",xF="rangeMinMaxChunkLoaded",TF="grandChunkLoaded",SF="dataFinishChunkLoaded",EF="finishChunkLoaded",MF="progressError",f0="headerCellFormat",xE="dataCellFormat",AF="totalRowsCountLoaded",PF="totalColumnsCountLoaded",_w=1e3,RF=0,OF={throttle:U6,throttleTime:RF,PluginService:my,skipInternalColorFormatting:!1,subtotalsForSingleRow:!1};class Vr{constructor(t,r,n){this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.cornerTreeService=void 0,this.pageSize=bw,this.isPaginated=!1,this.loadedPagesCount=0,this.isLoadInProgress=!1,this.loadAllPromise=void 0,this.loadAllPromiseResolve=void 0,this.loadAllPromiseReject=void 0,this.isWholeDataLoaded=!1,this.hasDataFinishEvent=!1,this.isDataHandlerThrottled=!1,this.metadata=[],this.divergenceComparator=new mw,this.rawJaql=void 0,this.triggeredEventsData={},this.callPlugins=[],this.onMetadataHandler=()=>{const i={metadata:this.getMetadata()};this.isSingleRowTree()&&bo.normalizeSingleBranchTreeSortDetails(i)},this.onHeadersHandler=i=>{const a=this.getJaql.bind(this),o=this.getRawJaql.bind(this),s=this.applyIndexDivergence.bind(this),u=(m,v,g)=>this.emit(f0,m,v,g,this.options),d=Vr.createColumnsTreeServiceBuilder({getJaql:a,getRawJaql:o,pluginService:this.pluginService,applyIndexDivergence:s},{emitHeaderCellFormatEvent:u})(i);this.columnsTreeService=d.columnsTreeService,this.columnsCount=d.columnsCount,this.totalColumnsCount=d.totalColumnsCount,this.emit(PF,{columnsCount:this.columnsCount||0,totalColumnsCount:this.totalColumnsCount||0});const h=Vr.createCornerTreeServiceBuilder({getJaql:a,getRawJaql:o,pluginService:this.pluginService,columnsTreeService:this.columnsTreeService},{emitHeaderCellFormatEvent:u}),{cornerTreeService:p}=h();this.cornerTreeService=p},this.onDataHandler=i=>{this.tempDataChunks=this.tempDataChunks||[],Array.isArray(i)?(i||[]).forEach(a=>{Vr.fillDataChunks(this.tempDataChunks,a,this.pageSize)}):Vr.fillDataChunks(this.tempDataChunks,i,this.pageSize),this.tempDataChunks.length&&(this.isDataHandlerThrottled=!0,this.onDataHandlerThrottle())},this.onGrandHandler=i=>{const o=this.preProcessTree([i],He.ROWS)[0],s="Rows grand total",u=o?o.data:[],c=we.create(s,void 0,u),d=Zn(c,He.ROWS);d.userType=tr.GRAND_TOTAL,this.postProcessTree([d]),this.postProcessData([d]),this.rowsGrand=d,this.emit(TF,we.wrapInRootNode(this.rowsGrand))},this.onFinishHandler=()=>{this.emit(EF,{totalRows:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalColumns:typeof this.totalColumnsCount=="number"?this.totalColumnsCount:this.getLoadedColumnsCount()})},this.onTotalRowsHandler=i=>{const{rowsCount:a,queryRowsCount:o,limitReached:s}=i||{};this.totalRowsCount=a,this.totalRecordsCount=o,this.limitReached=s,this.emit(AF,i)},this.onDataBarsHandler=i=>{const{data:a=[]}=i;let o=0;this.cornerTreeService&&(o=this.cornerTreeService.getTreeChildLength()),this.dataBars=[...Array(o),...a],this.emit(CF,this.dataBars)},this.onRangeMinMaxHandler=i=>{const{data:a=[]}=i,o=this.getJaql(),s=bo.getMetadataTree(o,He.MEASURES),u=we.getChildren(s),c=[];u.forEach((d,h)=>{c[d.measureJaqlIndex||0]=a[h]}),this.rangeMinMax=c,this.emit(xF,this.rangeMinMax)},this.onDataFinishHandler=({rowsCount:i}={})=>{if(this.finishRequest(),this.rowsCount=i,this.tempDataChunks.length){const a=this.tempDataChunks[this.tempDataChunks.length-1];a.ready=!0}this.onDataHandlerThrottle(),this.checkLoadPromise(),this.emit(SF,{limitedRows:this.rowsCount,limitedColumns:this.columnsCount})},this.onErrorHandler=i=>{process.env.NODE_ENV!=="production"&&console.warn(`DataService data loading error "${JSON.stringify(i)}"`),!this.isLoadInProgress&&!this.isWholeDataLoaded&&!(i instanceof Dc)&&this.emit(MF,i)},this.loadService=t,this.events=r||new dy,this.options=Object.assign(Object.assign({},OF),n),this.attachEvent(),this.onDataHandlerThrottle=this.options.throttle(()=>{const i=fw(this.tempDataChunks,d=>d.ready&&!d.handled,this.lastReadyNotHandledChunkIndex);if(i===-1)return;this.lastReadyNotHandledChunkIndex=i;const a=this.tempDataChunks[i],o=this.preProcessTree(a.list,He.ROWS),s=this.modifyTree(o,He.ROWS);this.postProcessTree(s,{skipFormatEvent:!0}),this.postProcessData(s,{skipFormatEvent:!0});const u=we.wrapInRootNode(s);this.rowsTreeService?this.rowsTreeService.extend(u):this.rowsTreeService=new ma(u,!0),this.emit(wF,this.getLoadedElementsCount()),a.handled=!0;const c=fw(this.tempDataChunks,d=>!d.handled,this.lastNotHandledChunkIndex);if(c!==-1?(this.lastNotHandledChunkIndex=c,this.onDataHandlerThrottle()):this.isDataHandlerThrottled=!1,this.hasDataFinishEvent&&this.tempDataChunks.length){const d=this.tempDataChunks[this.tempDataChunks.length-1];d.ready=!0}this.hasDataFinishEvent&&c===-1?(this.finishRequest(),this.checkLoadPromise()):this.checkLoadPromise()},this.options.throttleTime)}destroy(){this.detachEvent(),this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.cornerTreeService=void 0,this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.events.removeAllListeners()}on(t,r){this.events.on(t,r),this.triggeredEventsData[t]&&(this.triggeredEventsData[t].forEach(n=>{this.events.emit(t,...n)}),delete this.triggeredEventsData[t])}emit(t,...r){this.events.listeners(t).length===0?(this.triggeredEventsData[t]=this.triggeredEventsData[t]||[],this.triggeredEventsData[t].push(r)):this.events.emit(t,...r)}off(t,r){this.events.removeListener(t,r),this.triggeredEventsData[t]&&delete this.triggeredEventsData[t]}loadData(t,r){const{pageSize:n=bw,isPaginated:i=!1,cacheResult:a=!1,metadata:o}=r||{},s=this.pageSize===n;if(this.clearLoadAllPromise(),t&&this.clearCache(),this.pageSize=n,this.isPaginated=i,this.emit(_F),this.loadPromiseCache&&s){const c=Promise.resolve(this.loadPromiseCache);return this.loadPromiseCache=void 0,c}this.isLoadInProgress=!0,t&&(this.metadata=o||[],this.rawJaql=Xp(t,this.metadata),this.initPluginService(this.rawJaql),this.loadService.load(t).then(c=>{if(c==null)return;const d=!("data"in c);if(c.dataFinish[0]&&d)throw{error:{error:!0,details:"metadata undefined."}}}).catch(c=>{this.loadPromiseReject&&this.loadPromiseReject(c.error)}));const u=new Promise((c,d)=>{this.loadPromiseResolve=c,this.loadPromiseReject=d}).then(c=>this.sendInitPage(c)).then(c=>(a&&(this.loadPromiseCache=c),this.loadedPagesCount=1,c)).catch(c=>{throw c instanceof Dc&&this.clearLoadPromise(),c});return this.checkLoadPromise(),u}loadAllData(){if(this.isWholeDataLoaded){const t={loadedRowsCount:this.getLoadedElementsCount(),totalItemsCount:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,dataBars:this.dataBars,rangeMinMax:this.rangeMinMax};return this.columnsCount!==0&&this.totalColumnsCount!==0&&(t.columnsCount=this.columnsCount,t.totalColumnsCount=this.totalColumnsCount),Promise.resolve(t)}return this.loadAllPromise||(this.loadAllPromise=new Promise((t,r)=>{this.loadAllPromiseResolve=t,this.loadAllPromiseReject=r}).then(()=>({loadedRowsCount:this.getLoadedElementsCount(),totalItemsCount:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,dataBars:this.dataBars,rangeMinMax:this.rangeMinMax})).catch(t=>{throw t instanceof Dc&&this.clearLoadAllPromise(),t})),this.loadAllPromise}getSelectedPageData(t,r){return Promise.resolve(this.sendPaginatedPage(t,r))}getIndexedPageData(t,r,n=!1){return Promise.resolve(this.sendPartialPage(t,r,n))}getJaql(){return this.loadService.getJaql()||{metadata:[],grandTotals:null}}isSingleRowTree(){return this.loadService.isSingleRowTree()}setPluginHandlers(t){this.callPlugins=t}setGlobalStyles(t){this.globalStyles=t}getRawJaql(){return this.rawJaql||this.getJaql()}getMetadata(){return this.metadata.length>0?this.metadata:this.getJaql().metadata}preProcessTree(t,r,n){return Js.preProcessTree(t,r,this.getJaql(),n)}postProcessTree(t,r){const n=(a,o,s)=>this.emit(f0,a,o,s,this.options),i=Object.assign(Object.assign({},r||{}),{emitFn:n});return Js.postProcessTree(t,this.getRawJaql(),i)}postProcessData(t,r){const{skipFormatEvent:n=!1,onlyFormatEvents:i=!1}=r||{},a=this.columnsTreeService?this.columnsTreeService.getLastLevelNodes():[],o=we.getLastLevelNodes(t),s=this.getRawJaql();n||o.forEach(u=>{const c=Zn(u);a.forEach(d=>{const h=Zn(d),p=bo.getMetadataPanelByIndex(s,h.measureJaqlIndex,He.MEASURES);if(typeof c.data!="undefined"&&typeof h.index!="undefined"){const{data:m=[]}=c,{index:v}=h,g=m[v],b=typeof g=="object"&&g!==null&&g!==void 0?g:{value:g};if(m[v]=b,i||!n){const{skipInternalColorFormatting:C=!1}=this.options;C||Js.applyColorFormatting(b,c,h,p),this.emit(xE,b,c,h,p,s,this.options)}}})})}modifyTree(t,r,n){const i=this.getJaql();return Js.modifyTree(t,r,i,{originalData:n,applyIndexDivergence:this.applyIndexDivergence.bind(this),subtotalsForSingleRow:this.options.subtotalsForSingleRow})}applyIndexDivergence(t){this.divergenceComparator=new mw(t,this.divergenceComparator)}initPluginService(t){this.pluginService=new this.options.PluginService(this.callPlugins,t,this.globalStyles)}cancelLoading(){const t=new Dc;this.loadPromiseReject&&typeof this.loadPromiseReject=="function"&&this.loadPromiseReject(t),this.loadAllPromiseReject&&typeof this.loadAllPromiseReject=="function"&&this.loadAllPromiseReject(t),this.detachEvent()}getPageSize(){return this.pageSize}sendInitPage(t){if(this.loadService.hasError()||!this.loadService.hasData())return Vr.getEmptyPage();let r,n;const i=this.getPageSize();if(this.rowsTreeService){const s=i>t?t:i,u=Vr.cloneTreeNode,c=this.rowsTreeService.getPartialTree(0,s,{cloneFn:u});this.rowsGrand&&c.push(Br(this.rowsGrand)),this.postProcessTree(c,{onlyFormatEvents:!0,iterateFn:we.clearNodeCache}),this.postProcessData(c,{onlyFormatEvents:!0});const d=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,h=we.wrapInRootNode(c);this.pluginService&&h&&h.children&&(this.pluginService.applyToRows(h.children),n=this.pluginService.metadataCache),r=new ma(h,!0,d),r.hasGrandTotals=!!this.rowsGrand}const a=this.isWholeDataLoaded&&i>=t;return{rowsTreeService:r,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:a,cellsMetadata:n}}sendPaginatedPage(t,r){if(this.loadService.hasError()||!this.loadService.hasData())return Vr.getEmptyPage();r&&(this.pageSize=r);const n=this.getPageSize(),i=this.getLoadedElementsCount();if(t*n>=i)throw new Error("Selected page is out of elements range!");if(t<0)throw new Error("Selected page must be >= 0");let a,o;if(this.rowsTreeService){const s=t>=0?t*n:0,u=(t+1)*n>i?i:(t+1)*n,c=Vr.cloneTreeNode,d=this.rowsTreeService.getPartialTree(s,u,{cloneFn:c});this.rowsGrand&&d.push(Br(this.rowsGrand)),this.postProcessTree(d,{onlyFormatEvents:!0,iterateFn:we.clearNodeCache}),this.postProcessData(d,{onlyFormatEvents:!0});const h=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,p=we.wrapInRootNode(d);this.pluginService&&p&&p.children&&(this.pluginService.applyToRows(p.children),o=this.pluginService.metadataCache),a=new ma(p,!0,h),a.hasGrandTotals=!!this.rowsGrand}return{rowsTreeService:a,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:!0,cellsMetadata:o}}sendPartialPage(t,r,n){if(this.loadService.hasError()||!this.loadService.hasData())return Vr.getEmptyPage();const i=this.getLoadedElementsCount();let[a,o]=[Math.min(t,r),Math.max(t,r)];a=a>=0?a:0,o=o>=0?o:0,o=o<i?o:i;let s,u;if(a>i)s=void 0;else{let c;if(this.rowsTreeService){const p=Vr.cloneTreeNode;c=this.rowsTreeService.getPartialTree(a,o,{cloneFn:p}),n&&this.rowsGrand&&c.push(Br(this.rowsGrand)),this.postProcessTree(c,{onlyFormatEvents:!0,iterateFn:we.clearNodeCache}),this.postProcessData(c,{onlyFormatEvents:!0})}const d=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,h=we.wrapInRootNode(c);this.pluginService&&h&&h.children&&(this.pluginService.applyToRows(h.children),u=this.pluginService.metadataCache),s=new ma(h,!0,d),s.hasGrandTotals=!!(n&&this.rowsGrand)}return{rowsTreeService:s,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:!0,cellsMetadata:u}}getLoadedElementsCount(){return this.rowsTreeService?this.rowsTreeService.getTreeChildLength():0}getTotalItemsCount(){return this.loadService.getTotalItemsCount()}getLoadedColumnsCount(){return this.columnsTreeService?this.columnsTreeService.getTreeChildLength():0}attachEvent(){this.loadService.listenerCount(Be.HEADERS)&&this.loadService.offAll(Be.HEADERS),this.loadService.on(Be.HEADERS,this.onHeadersHandler),this.loadService.on(Be.METADATA,this.onMetadataHandler),this.loadService.on(Be.DATA,this.onDataHandler),this.loadService.on(Be.GRAND,this.onGrandHandler),this.loadService.on(Be.DATA_FINISH,this.onDataFinishHandler),this.loadService.on(Be.TOTAL_ROWS,this.onTotalRowsHandler),this.loadService.on(Be.DATABARS,this.onDataBarsHandler),this.loadService.on(Be.RANGE_MIN_MAX,this.onRangeMinMaxHandler),this.loadService.on(Be.FINISH,this.onFinishHandler),this.loadService.on(Be.ERROR,this.onErrorHandler)}detachEvent(){this.loadService.off(Be.HEADERS,this.onHeadersHandler),this.loadService.off(Be.METADATA,this.onMetadataHandler),this.loadService.off(Be.DATA,this.onDataHandler),this.loadService.off(Be.GRAND,this.onGrandHandler),this.loadService.off(Be.DATA_FINISH,this.onDataFinishHandler),this.loadService.off(Be.TOTAL_ROWS,this.onTotalRowsHandler),this.loadService.off(Be.DATABARS,this.onDataBarsHandler),this.loadService.off(Be.RANGE_MIN_MAX,this.onRangeMinMaxHandler),this.loadService.off(Be.FINISH,this.onFinishHandler),this.loadService.off(Be.ERROR,this.onErrorHandler)}checkLoadPromise(){if(!this.isLoadInProgress)return;const t=this.getLoadedElementsCount();(t>=this.getPageSize()||this.isWholeDataLoaded)&&(this.isLoadInProgress=!1,typeof this.loadPromiseResolve=="function"&&(this.loadPromiseResolve(t),this.clearLoadPromise()))}clearLoadAllPromise(){this.loadAllPromise=void 0,this.loadAllPromiseReject=void 0,this.loadAllPromiseResolve=void 0}clearLoadPromise(){this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0}finishRequest(){this.hasDataFinishEvent=!0,!this.isDataHandlerThrottled&&(this.isWholeDataLoaded=!0,this.loadAllPromiseResolve&&typeof this.loadAllPromiseResolve=="function"&&(this.loadAllPromiseResolve(),this.clearLoadAllPromise()))}clearCache(){this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.loadedPagesCount=0,this.hasDataFinishEvent=!1,this.isWholeDataLoaded=!1,this.isLoadInProgress=!1,this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.isDataHandlerThrottled=!1}static getEmptyPage(){return{isLastPage:!0}}static fillDataChunks(t,r,n=_w,i=_w){const o=t.length<2?n:i;let s=t[Math.max(0,t.length-1)],u,c=!s;if(!r||typeof r.children=="undefined"&&typeof r.value=="undefined"&&r.data&&!r.data.length){s&&(s.ready=!0);return}if(s){const d=Math.max(0,s.list.length-1);u=s.list[d];const h=s.size?`${s.size}`:"0",m=parseInt(h,10)+(r.size||1);(s.handled||m>o&&!(u.isPart&&u.value===r.value))&&(c=!0)}r&&r.isPart&&u&&(!u.isPart||u.value!==r.value)&&(c=!0,u.value!==r.value&&(u=void 0)),c&&(s&&(s.ready=!0),s={list:[],size:0,ready:!1,handled:!1},t.push(s)),s&&(u&&u.isPart&&r&&r.isPart?(we.deepMerge(u,r),s.size+=r.size||1):(s.list.push(r),s.size+=r.size||1))}static cloneTreeNode(t,r){const n=t,{children:i,isMapped:a,minLevel:o,childCount:s,childDeep:u,parent:c,master:d,data:h,state:p,style:m,store:v}=n,g=bF(n,["children","isMapped","minLevel","childCount","childDeep","parent","master","data","state","style","store"]),b=Br(g);return c&&(b.parent=c),d&&(b.master=d),h&&(b.data=Br(h)),p&&(b.state=Br(p)),m&&(b.style=Br(m)),v&&(b.store=Br(v)),!r&&i&&(b.children=i.map(C=>{const x=Vr.cloneTreeNode(C);return x.parent=b,x})),b}static createColumnsTreeServiceBuilder(t,r){return n=>{const i=t.getJaql(),a=t.getRawJaql?t.getRawJaql():Xp(i,i.metadata||[]),o=bo.getMetadataTree(i,He.MEASURES),s=we.getChildren(o),{preProcessTree:u,modifyTree:c,postProcessTree:d}=Js;let h,p,m=0,v=0;if(we.hasChildren(n)){n.columnsCount&&n.totalColumnsCount&&(m=n.columnsCount,v=n.totalColumnsCount);const g=u(n,He.COLUMNS,i),b=c(g,He.COLUMNS,i,{originalData:n,applyIndexDivergence:t.applyIndexDivergence});d(b,a,{emitFn:r&&r.emitHeaderCellFormatEvent});const C=we.wrapInRootNode(b);t.pluginService&&C&&C.children&&t.pluginService.applyToColumns(C.children),h=C,p=new ma(C),s.length===1&&p.setValueNode(s[0])}else we.hasChildren(o)?(n.columnsCount&&n.totalColumnsCount&&(m=n.columnsCount,v=n.totalColumnsCount),typeof n.maxChilds=="number"&&(m=n.maxChilds,o.children=we.getChildren(o).filter((g,b)=>b<n.maxChilds)),t.pluginService&&o.children&&t.pluginService.applyToColumns(o.children),d(we.getChildren(o),a,{emitFn:r&&r.emitHeaderCellFormatEvent}),h=o,p=new ma(o)):(t.pluginService&&t.pluginService.resetRowStartFrom(),h=void 0,p=void 0,m=0,v=0);return{columnsTree:h,columnsTreeService:p,columnsCount:m,totalColumnsCount:v}}}static createCornerTreeServiceBuilder(t,r){return()=>{const n=t.getJaql(),i=t.getRawJaql?t.getRawJaql():Xp(n,n.metadata||[]),a=bo.getMetadataTree(n,He.ROWS);let o;if(we.hasChildren(a)){we.iterateThroughTree(we.getChildren(a),u=>{u.userType=tr.CORNER;const c=bo.getMetadataPanelByIndex(i,u.jaqlIndex,u.metadataType||"");r&&r.emitHeaderCellFormatEvent&&r.emitHeaderCellFormatEvent(u,c,i)});let s;t.columnsTreeService&&(s=t.columnsTreeService.getTreeDeepsLength()),t.pluginService&&t.pluginService.applyToHeaders(a),o=new ma(a,!1,s)}return{cornerTree:a,cornerTreeService:o}}}}const Ic={INCLUDE:["metadata.$.jaql","metadata.$.field","metadata.$.panel","metadata.$.hierarchies","metadata.$.format","metadata.$.disabled","metadata.$.distinctTotals"],EXCLUDE:["metadata.$.jaql.title","metadata.$.format.mask","metadata.$.format.width","queryGuid","widget","dashboard","grandTotals.title"]};class kF{constructor(t){this.jaql=void 0,this.data=void 0,this.isLoadInProgress=!1,this.loadPromiseResolve=void 0,this.loadPromiseReject=void 0,this.loadFromCacheState=void 0,this.loadFromCacheInitialTimer=void 0,this.loadFromCacheTimer=void 0,this.isSingleBranchTree=!1,this.loadedItemsCount=0,this.totalItemsCount=0,this.isLimited=!1,this.isFinishEventReceived=!1,this.events=t||new dy}destroy(){this.data=void 0,this.events.removeAllListeners()}clone(){throw new Error('"AbstractDataLoadService.clone" should be overridden in subclass')}load(t){if(!t)throw new Error('AbstractDataLoadService "jaql" is not defined for "load" method');const r=!!this.data,n=this.jaql;this.jaql=t,r&&n&&(this.jaql.queryGuid=n.queryGuid),this.isLoadInProgress=!0;const i=new Promise((a,o)=>{this.loadPromiseResolve=a,this.loadPromiseReject=o});this.loadFromCacheInitialTimer&&clearTimeout(this.loadFromCacheInitialTimer);try{r?this.loadFromCache():this.loadFromServer()}catch(a){this.notifyAboutDataError(a)}return i}clear(){this.data=void 0}getJaql(){return this.jaql}isSingleRowTree(){return this.isSingleBranchTree}getTotalItemsCount(){return this.totalItemsCount}isFormattingChanges(t){const r=Br(this.jaql,{include:Ic.INCLUDE,exclude:Ic.EXCLUDE,excludeEmpty:!0}),n=Br(t,{include:Ic.INCLUDE,exclude:Ic.EXCLUDE,excludeEmpty:!0});return[...(r==null?void 0:r.metadata)||[],...(n==null?void 0:n.metadata)||[]].forEach(i=>{i&&i.panel===He.SCOPE&&delete i.field}),JSON.stringify(r)===JSON.stringify(n)}hasData(){return!!(this.data&&this.data[Be.DATA])}hasError(){return this.data?!!this.data[Be.ERROR]:!1}loadFromServer(){throw new Error('"AbstractDataLoadService.loadFromServer" should be overridden in subclass')}cancelQuery(){const t=new Error('"AbstractDataLoadService.cancelQuery" should be overridden in subclass.');return Promise.reject(t)}isCancelQueryNeeded(){return!this.isFinishEventReceived}loadFromCache(){return Promise.resolve().then(()=>(this.loadFromCacheInitialTimer&&clearTimeout(this.loadFromCacheInitialTimer),new Promise(t=>{this.loadFromCacheInitialTimer=setTimeout(t)}))).then(()=>new Promise(t=>{this.loadFromCacheTimer&&clearImmediate(this.loadFromCacheTimer),this.loadFromCacheState=void 0,this.loadMessageFromCache(()=>{this.loadFromCacheState=void 0,this.loadFromCacheTimer&&clearImmediate(this.loadFromCacheTimer),t()})}))}loadMessageFromCache(t){this.loadFromCacheState=this.loadFromCacheState||{};const r=this.loadFromCacheState;let n="",i=0;if(B6.forEach(a=>{if(n)return;r[a]=r[a]||0,r[a]<((this.data||{})[a]||[]).length&&(n=a,i=r[a])}),n){const a=((this.data||{})[n]||[])[i];this.notifyAboutDataChunk(n||"",a,!0),r[n]=i+1,this.loadMessageFromCache(t)}else t&&t()}cacheData(t,r){this.data=this.data||{};const n=this.data;n&&(n[t]=n[t]||[],n[t].push(r||!0))}notifyAboutDataChunk(t,r,n=!1){const i=r&&r.data&&t===Be.DATA?r.data:r;if(n||this.cacheData(t,r),!n&&this.loadFromCacheState)return;t===Be.METADATA&&(this.isSingleBranchTree=!!(i&&i.isSingleBranchTree)),t===Be.ERROR&&this.notifyAboutDataError(i),t===Be.DATA_FINISH&&(this.loadedItemsCount=i?i.rowsCount:0,this.notifyAboutDataLoaded(this.data)),t===Be.TOTAL_ROWS&&(this.totalItemsCount=i?i.rowsCount:0,this.totalItemsCount!==this.loadedItemsCount&&(this.isLimited=!0)),t===Be.FINISH&&(this.isFinishEventReceived=!0);const a=Br(i);this.events.emit(t,a)}notifyAboutDataLoaded(t){this.isLoadInProgress&&(this.isLoadInProgress=!1,typeof this.loadPromiseResolve=="function"&&this.loadPromiseResolve(t),this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0)}notifyAboutDataError(t){this.isLoadInProgress&&(this.isLoadInProgress=!1,typeof this.loadPromiseReject=="function"&&this.loadPromiseReject(t),this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0)}on(t,r){this.events.on(t,r)}off(t,r){this.events.removeListener(t,r)}offAll(t){this.events.removeAllListeners(t)}listenerCount(t){return this.events.listenerCount(t)}emit(t,...r){this.events.emit(t,...r)}}class gy extends kF{constructor(t,r){if(super(r),this.initPromise=void 0,this.isInitInProgress=!1,this.onMessageCancel=void 0,this.onSocketError=n=>{this.emit("error",{error:!0,type:500,details:`Socket error: ${n.message}`})},this.onSocketDisconnect=()=>{this.emit("error",{error:!0,type:500,details:"Socket disconnected"})},!t)throw new Error('DataLoadService "socket" not defined.');this.socket=t,this.socket.on("error",this.onSocketError),this.socket.on("disconnect",this.onSocketDisconnect),this.on(Be.ERROR,n=>{const i=JSON.stringify(n,null,4);process.env.NODE_ENV!=="production"&&console.warn(`DataLoadService error message:
204
- ${i}`)})}destroy(){super.destroy(),this.onMessageCancel&&(this.onMessageCancel(),this.onMessageCancel=void 0),this.socket.off("error",this.onSocketError),this.socket.off("disconnect",this.onSocketDisconnect)}clone(){const t=Br(this.data);t[Be.HEADERS]||(t[Be.HEADERS]=[{}]);const r=new gy(this.socket);return r.data=t,r.jaql=this.jaql,r.isFinishEventReceived=this.isFinishEventReceived,r.isSingleBranchTree=this.isSingleBranchTree,r.loadedItemsCount=this.loadedItemsCount,r.totalItemsCount=this.totalItemsCount,r.isLimited=this.isLimited,r}loadFromServer(){this.waitForSocketReady().then(()=>{this.onMessageCancel&&this.onMessageCancel(),this.onMessageCancel=this.socket.onMessage(void 0,void 0,(t,r)=>{this.notifyAboutDataChunk(t,r)}),this.socket.send("pivot",this.jaql)})}cancelQuery(){return this.isCancelQueryNeeded()?this.waitForSocketReady().then(()=>{this.socket.send("pivot/cancel-query",{queryGuid:this.jaql&&this.jaql.queryGuid})}):Promise.resolve()}waitForSocketReady(){return this.socket.isReady()?Promise.resolve():this.isInitInProgress&&this.initPromise?this.initPromise:(this.isInitInProgress=!0,this.initPromise=new Promise((t,r)=>{this.socket.on("open",()=>{this.socket&&this.socket.isReady()?t():r(new Error("Can not open WebSocket connection"))})}),this.initPromise)}}class DF extends gy{constructor(t,r,n={}){super(t,r),this.onMessageCancels=[],this.options=n}destroy(){super.destroy(),this.onMessageCancels.length&&(this.onMessageCancels.forEach(t=>{t&&t()}),this.onMessageCancels.length=0)}loadFromServer(){this.waitForSocketReady().then(()=>{const t=Object.assign({queryGuid:D.v4()},this.jaql),{queryGuid:r}=t;this.onMessageCancels.length&&(this.onMessageCancels.forEach(n=>{n&&n()}),this.onMessageCancels.length=0),Object.values(Be).forEach(n=>{const i=this.socket.onMessage(n,r,(a,o)=>{this.notifyAboutDataChunk(a,o)});this.onMessageCancels.push(i)}),this.socket.send("pivot",t)})}waitForSocketReady(){return this.socket.isReady()?Promise.resolve():new Promise(t=>{const{socketRegisterCheckInterval:r=100}=this.options;this.registrationWaitTimer&&clearInterval(this.registrationWaitTimer);const n=()=>{this.socket.isReady()&&(clearInterval(this.registrationWaitTimer),t())};this.registrationWaitTimer=setInterval(n,r)})}}var p0={exports:{}},NF=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,IF=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],TE=function(t){var r=t,n=t.indexOf("["),i=t.indexOf("]");n!=-1&&i!=-1&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));for(var a=NF.exec(t||""),o={},s=14;s--;)o[IF[s]]=a[s]||"";return n!=-1&&i!=-1&&(o.source=r,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=LF(o,o.path),o.queryKey=FF(o,o.query),o};function LF(e,t){var r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&n.splice(0,1),t.substr(t.length-1,1)=="/"&&n.splice(n.length-1,1),n}function FF(e,t){var r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,i,a){i&&(r[i]=a)}),r}var m0={exports:{}},g0={exports:{}},Yl=1e3,Xl=Yl*60,Kl=Xl*60,Zl=Kl*24,$F=Zl*365.25,BF=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return HF(e);if(r==="number"&&isNaN(e)===!1)return t.long?jF(e):zF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function HF(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*$F;case"days":case"day":case"d":return r*Zl;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Kl;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xl;case"seconds":case"second":case"secs":case"sec":case"s":return r*Yl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function zF(e){return e>=Zl?Math.round(e/Zl)+"d":e>=Kl?Math.round(e/Kl)+"h":e>=Xl?Math.round(e/Xl)+"m":e>=Yl?Math.round(e/Yl)+"s":e+"ms"}function jF(e){return Lc(e,Zl,"day")||Lc(e,Kl,"hour")||Lc(e,Xl,"minute")||Lc(e,Yl,"second")||e+" ms"}function Lc(e,t,r){if(!(e<t))return e<t*1.5?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}(function(e,t){t=e.exports=n.debug=n.default=n,t.coerce=u,t.disable=o,t.enable=a,t.enabled=s,t.humanize=BF,t.instances=[],t.names=[],t.skips=[],t.formatters={};function r(c){var d=0,h;for(h in c)d=(d<<5)-d+c.charCodeAt(h),d|=0;return t.colors[Math.abs(d)%t.colors.length]}function n(c){var d;function h(){if(h.enabled){var p=h,m=+new Date,v=m-(d||m);p.diff=v,p.prev=d,p.curr=m,d=m;for(var g=new Array(arguments.length),b=0;b<g.length;b++)g[b]=arguments[b];g[0]=t.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");var C=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(E,T){if(E==="%%")return E;C++;var A=t.formatters[T];if(typeof A=="function"){var R=g[C];E=A.call(p,R),g.splice(C,1),C--}return E}),t.formatArgs.call(p,g);var x=h.log||t.log||console.log.bind(console);x.apply(p,g)}}return h.namespace=c,h.enabled=t.enabled(c),h.useColors=t.useColors(),h.color=r(c),h.destroy=i,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function i(){var c=t.instances.indexOf(this);return c!==-1?(t.instances.splice(c,1),!0):!1}function a(c){t.save(c),t.names=[],t.skips=[];var d,h=(typeof c=="string"?c:"").split(/[\s,]+/),p=h.length;for(d=0;d<p;d++)h[d]&&(c=h[d].replace(/\*/g,".*?"),c[0]==="-"?t.skips.push(new RegExp("^"+c.substr(1)+"$")):t.names.push(new RegExp("^"+c+"$")));for(d=0;d<t.instances.length;d++){var m=t.instances[d];m.enabled=t.enabled(m.namespace)}}function o(){t.enable("")}function s(c){if(c[c.length-1]==="*")return!0;var d,h;for(d=0,h=t.skips.length;d<h;d++)if(t.skips[d].test(c))return!1;for(d=0,h=t.names.length;d<h;d++)if(t.names[d].test(c))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}})(g0,g0.exports);var WF=g0.exports;(function(e,t){t=e.exports=WF,t.log=i,t.formatArgs=n,t.save=a,t.load=o,t.useColors=r,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function n(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+t.humanize(this.diff),!!c){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var h=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),u.splice(p,0,d)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch(c){}}function o(){var u;try{u=t.storage.debug}catch(c){}return!u&&typeof process!="undefined"&&"env"in process&&(u=process.env.DEBUG),u}t.enable(o());function s(){try{return window.localStorage}catch(u){}}})(m0,m0.exports);var Vh=m0.exports,UF=TE,ww=Vh("socket.io-client:url"),VF=GF;function GF(e,t){var r=e;t=t||typeof location!="undefined"&&location,e==null&&(e=t.protocol+"//"+t.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=t.protocol+e:e=t.host+e),/^(https?|wss?):\/\//.test(e)||(ww("protocol-less url %s",e),typeof t!="undefined"?e=t.protocol+"//"+e:e="https://"+e),ww("parse %s",e),r=UF(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var n=r.host.indexOf(":")!==-1,i=n?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port,r.href=r.protocol+"://"+i+(t&&t.port===r.port?"":":"+r.port),r}var Gh={},v0={exports:{}},Kp,Cw;function qF(){if(Cw)return Kp;Cw=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,a=n*365.25;Kp=function(d,h){h=h||{};var p=typeof d;if(p==="string"&&d.length>0)return o(d);if(p==="number"&&isFinite(d))return h.long?u(d):s(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function o(d){if(d=String(d),!(d.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(h){var p=parseFloat(h[1]),m=(h[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*n;case"hours":case"hour":case"hrs":case"hr":case"h":return p*r;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(d){var h=Math.abs(d);return h>=n?Math.round(d/n)+"d":h>=r?Math.round(d/r)+"h":h>=t?Math.round(d/t)+"m":h>=e?Math.round(d/e)+"s":d+"ms"}function u(d){var h=Math.abs(d);return h>=n?c(d,h,n,"day"):h>=r?c(d,h,r,"hour"):h>=t?c(d,h,t,"minute"):h>=e?c(d,h,e,"second"):d+" ms"}function c(d,h,p,m){var v=h>=p*1.5;return Math.round(d/p)+" "+m+(v?"s":"")}return Kp}function YF(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=a,r.enabled=s,r.humanize=qF(),Object.keys(e).forEach(d=>{r[d]=e[d]}),r.instances=[],r.names=[],r.skips=[],r.formatters={};function t(d){let h=0;for(let p=0;p<d.length;p++)h=(h<<5)-h+d.charCodeAt(p),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(d){let h;function p(...m){if(!p.enabled)return;const v=p,g=Number(new Date),b=g-(h||g);v.diff=b,v.prev=h,v.curr=g,h=g,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let C=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,T)=>{if(E==="%%")return E;C++;const A=r.formatters[T];if(typeof A=="function"){const R=m[C];E=A.call(v,R),m.splice(C,1),C--}return E}),r.formatArgs.call(v,m),(v.log||r.log).apply(v,m)}return p.namespace=d,p.enabled=r.enabled(d),p.useColors=r.useColors(),p.color=t(d),p.destroy=n,p.extend=i,typeof r.init=="function"&&r.init(p),r.instances.push(p),p}function n(){const d=r.instances.indexOf(this);return d!==-1?(r.instances.splice(d,1),!0):!1}function i(d,h){const p=r(this.namespace+(typeof h=="undefined"?":":h)+d);return p.log=this.log,p}function a(d){r.save(d),r.names=[],r.skips=[];let h;const p=(typeof d=="string"?d:"").split(/[\s,]+/),m=p.length;for(h=0;h<m;h++)p[h]&&(d=p[h].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.substr(1)+"$")):r.names.push(new RegExp("^"+d+"$")));for(h=0;h<r.instances.length;h++){const v=r.instances[h];v.enabled=r.enabled(v.namespace)}}function o(){const d=[...r.names.map(u),...r.skips.map(u).map(h=>"-"+h)].join(",");return r.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let h,p;for(h=0,p=r.skips.length;h<p;h++)if(r.skips[h].test(d))return!1;for(h=0,p=r.names.length;h<p;h++)if(r.names[h].test(d))return!0;return!1}function u(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function c(d){return d instanceof Error?d.stack||d.message:d}return r.enable(r.load()),r}var XF=YF;(function(e,t){t.log=i,t.formatArgs=n,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;c.splice(1,0,d,"color: inherit");let h=0,p=0;c[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(h++,m==="%c"&&(p=h))}),c.splice(p,0,d)}function i(...c){return typeof console=="object"&&console.log&&console.log(...c)}function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch(d){}}function o(){let c;try{c=t.storage.getItem("debug")}catch(d){}return!c&&typeof process!="undefined"&&"env"in process&&(c=process.env.DEBUG),c}function s(){try{return localStorage}catch(c){}}e.exports=XF(t);const{formatters:u}=e.exports;u.j=function(c){try{return JSON.stringify(c)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}})(v0,v0.exports);var KF=v0.exports,SE={exports:{}};(function(e){e.exports=t;function t(n){if(n)return r(n)}function r(n){for(var i in t.prototype)n[i]=t.prototype[i];return n}t.prototype.on=t.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},t.prototype.once=function(n,i){function a(){this.off(n,a),i.apply(this,arguments)}return a.fn=i,this.on(n,a),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+n];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var o,s=0;s<a.length;s++)if(o=a[s],o===i||o.fn===i){a.splice(s,1);break}return this},t.prototype.emit=function(n){this._callbacks=this._callbacks||{};var i=[].slice.call(arguments,1),a=this._callbacks["$"+n];if(a){a=a.slice(0);for(var o=0,s=a.length;o<s;++o)a[o].apply(this,i)}return this},t.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},t.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(SE);var ZF=SE.exports,qh={},QF={}.toString,EE=Array.isArray||function(e){return QF.call(e)=="[object Array]"},ME=r$,JF=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",e$=typeof ArrayBuffer=="function",t$=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function r$(e){return JF&&Buffer.isBuffer(e)||e$&&(e instanceof ArrayBuffer||t$(e))}var vy=EE,AE=ME,PE=Object.prototype.toString,n$=typeof Blob=="function"||typeof Blob!="undefined"&&PE.call(Blob)==="[object BlobConstructor]",i$=typeof File=="function"||typeof File!="undefined"&&PE.call(File)==="[object FileConstructor]";qh.deconstructPacket=function(e){var t=[],r=e.data,n=e;return n.data=y0(r,t),n.attachments=t.length,{packet:n,buffers:t}};function y0(e,t){if(!e)return e;if(AE(e)){var r={_placeholder:!0,num:t.length};return t.push(e),r}else if(vy(e)){for(var n=new Array(e.length),i=0;i<e.length;i++)n[i]=y0(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){var n={};for(var a in e)n[a]=y0(e[a],t);return n}return e}qh.reconstructPacket=function(e,t){return e.data=b0(e.data,t),e.attachments=void 0,e};function b0(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(vy(e))for(var r=0;r<e.length;r++)e[r]=b0(e[r],t);else if(typeof e=="object")for(var n in e)e[n]=b0(e[n],t);return e}qh.removeBlobs=function(e,t){function r(a,o,s){if(!a)return a;if(n$&&a instanceof Blob||i$&&a instanceof File){n++;var u=new FileReader;u.onload=function(){s?s[o]=this.result:i=this.result,--n||t(i)},u.readAsArrayBuffer(a)}else if(vy(a))for(var c=0;c<a.length;c++)r(a[c],c,a);else if(typeof a=="object"&&!AE(a))for(var d in a)r(a[d],d,a)}var n=0,i=e;r(i),n||t(i)};(function(e){var t=KF("socket.io-parser"),r=ZF,n=qh,i=EE,a=ME;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=o,e.Decoder=h;function o(){}var s=e.ERROR+'"encode error"';o.prototype.encode=function(b,C){if(t("encoding packet %j",b),e.BINARY_EVENT===b.type||e.BINARY_ACK===b.type)d(b,C);else{var x=u(b);C([x])}};function u(b){var C=""+b.type;if((e.BINARY_EVENT===b.type||e.BINARY_ACK===b.type)&&(C+=b.attachments+"-"),b.nsp&&b.nsp!=="/"&&(C+=b.nsp+","),b.id!=null&&(C+=b.id),b.data!=null){var x=c(b.data);if(x!==!1)C+=x;else return s}return t("encoded %j as %s",b,C),C}function c(b){try{return JSON.stringify(b)}catch(C){return!1}}function d(b,C){function x(E){var T=n.deconstructPacket(E),A=u(T.packet),R=T.buffers;R.unshift(A),C(R)}n.removeBlobs(b,x)}function h(){this.reconstructor=null}r(h.prototype),h.prototype.add=function(b){var C;if(typeof b=="string")C=p(b),e.BINARY_EVENT===C.type||e.BINARY_ACK===C.type?(this.reconstructor=new v(C),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",C)):this.emit("decoded",C);else if(a(b)||b.base64)if(this.reconstructor)C=this.reconstructor.takeBinaryData(b),C&&(this.reconstructor=null,this.emit("decoded",C));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+b)};function p(b){var C=0,x={type:Number(b.charAt(0))};if(e.types[x.type]==null)return g("unknown packet type "+x.type);if(e.BINARY_EVENT===x.type||e.BINARY_ACK===x.type){for(var E=C+1;b.charAt(++C)!=="-"&&C!=b.length;);var T=b.substring(E,C);if(T!=Number(T)||b.charAt(C)!=="-")throw new Error("Illegal attachments");x.attachments=Number(T)}if(b.charAt(C+1)==="/"){for(var E=C+1;++C;){var A=b.charAt(C);if(A===","||C===b.length)break}x.nsp=b.substring(E,C)}else x.nsp="/";var R=b.charAt(C+1);if(R!==""&&Number(R)==R){for(var E=C+1;++C;){var A=b.charAt(C);if(A==null||Number(A)!=A){--C;break}if(C===b.length)break}x.id=Number(b.substring(E,C+1))}if(b.charAt(++C)){var N=m(b.substr(C)),I=N!==!1&&(x.type===e.ERROR||i(N));if(I)x.data=N;else return g("invalid payload")}return t("decoded %s as %j",b,x),x}function m(b){try{return JSON.parse(b)}catch(C){return!1}}h.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function v(b){this.reconPack=b,this.buffers=[]}v.prototype.takeBinaryData=function(b){if(this.buffers.push(b),this.buffers.length===this.reconPack.attachments){var C=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),C}return null},v.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function g(b){return{type:e.ERROR,data:"parser error: "+b}}})(Gh);var yy={exports:{}},Yh={},_0={exports:{}};try{_0.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){_0.exports=!1}var a$=_0.exports,by=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}(),o$=a$,s$=by,_y=function(e){var t=e.xdomain,r=e.xscheme,n=e.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!t||o$))return new XMLHttpRequest}catch(i){}try{if(typeof XDomainRequest!="undefined"&&!r&&n)return new XDomainRequest}catch(i){}if(!t)try{return new s$[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(i){}},wy={exports:{}},Va={},l$=Object.keys||function(t){var r=[],n=Object.prototype.hasOwnProperty;for(var i in t)n.call(t,i)&&r.push(i);return r},u$={}.toString,c$=Array.isArray||function(e){return u$.call(e)=="[object Array]"},d$=c$,RE=Object.prototype.toString,h$=typeof Blob=="function"||typeof Blob!="undefined"&&RE.call(Blob)==="[object BlobConstructor]",f$=typeof File=="function"||typeof File!="undefined"&&RE.call(File)==="[object FileConstructor]",OE=fd;function fd(e){if(!e||typeof e!="object")return!1;if(d$(e)){for(var t=0,r=e.length;t<r;t++)if(fd(e[t]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||h$&&e instanceof Blob||f$&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return fd(e.toJSON(),!0);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&fd(e[n]))return!0;return!1}var p$=function(e,t,r){var n=e.byteLength;if(t=t||0,r=r||n,e.slice)return e.slice(t,r);if(t<0&&(t+=n),r<0&&(r+=n),r>n&&(r=n),t>=n||t>=r||n===0)return new ArrayBuffer(0);for(var i=new Uint8Array(e),a=new Uint8Array(r-t),o=t,s=0;o<r;o++,s++)a[s]=i[o];return a.buffer},m$=g$;function g$(e,t,r){var n=!1;return r=r||v$,i.count=e,e===0?t():i;function i(a,o){if(i.count<=0)throw new Error("after called too many times");--i.count,a?(n=!0,t(a),t=r):i.count===0&&!n&&t(null,o)}}function v$(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Ui=String.fromCharCode;function kE(e){for(var t=[],r=0,n=e.length,i,a;r<n;)i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<n?(a=e.charCodeAt(r++),(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)):t.push(i);return t}function y$(e){for(var t=e.length,r=-1,n,i="";++r<t;)n=e[r],n>65535&&(n-=65536,i+=Ui(n>>>10&1023|55296),n=56320|n&1023),i+=Ui(n);return i}function DE(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function Zp(e,t){return Ui(e>>t&63|128)}function b$(e,t){if(!(e&4294967168))return Ui(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=Ui(e>>18&7|240),r+=Zp(e,12),r+=Zp(e,6)):(DE(e,t)||(e=65533),r=Ui(e>>12&15|224),r+=Zp(e,6)):r=Ui(e>>6&31|192),r+=Ui(e&63|128),r}function _$(e,t){t=t||{};for(var r=t.strict!==!1,n=kE(e),i=n.length,a=-1,o,s="";++a<i;)o=n[a],s+=b$(o,r);return s}function _o(){if(qi>=Hd)throw Error("Invalid byte index");var e=Bd[qi]&255;if(qi++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function w$(e){var t,r,n,i,a;if(qi>Hd)throw Error("Invalid byte index");if(qi==Hd)return!1;if(t=Bd[qi]&255,qi++,!(t&128))return t;if((t&224)==192){if(r=_o(),a=(t&31)<<6|r,a>=128)return a;throw Error("Invalid continuation byte")}if((t&240)==224){if(r=_o(),n=_o(),a=(t&15)<<12|r<<6|n,a>=2048)return DE(a,e)?a:65533;throw Error("Invalid continuation byte")}if((t&248)==240&&(r=_o(),n=_o(),i=_o(),a=(t&7)<<18|r<<12|n<<6|i,a>=65536&&a<=1114111))return a;throw Error("Invalid UTF-8 detected")}var Bd,Hd,qi;function C$(e,t){t=t||{};var r=t.strict!==!1;Bd=kE(e),Hd=Bd.length,qi=0;for(var n=[],i;(i=w$(r))!==!1;)n.push(i);return y$(n)}var x$={version:"2.1.2",encode:_$,decode:C$},Fc={},xw;function T$(){return xw||(xw=1,function(e){Fc.encode=function(t){var r=new Uint8Array(t),n,i=r.length,a="";for(n=0;n<i;n+=3)a+=e[r[n]>>2],a+=e[(r[n]&3)<<4|r[n+1]>>4],a+=e[(r[n+1]&15)<<2|r[n+2]>>6],a+=e[r[n+2]&63];return i%3===2?a=a.substring(0,a.length-1)+"=":i%3===1&&(a=a.substring(0,a.length-2)+"=="),a},Fc.decode=function(t){var r=t.length*.75,n=t.length,i,a=0,o,s,u,c;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);var d=new ArrayBuffer(r),h=new Uint8Array(d);for(i=0;i<n;i+=4)o=e.indexOf(t[i]),s=e.indexOf(t[i+1]),u=e.indexOf(t[i+2]),c=e.indexOf(t[i+3]),h[a++]=o<<2|s>>4,h[a++]=(s&15)<<4|u>>2,h[a++]=(u&3)<<6|c&63;return d}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),Fc}var Qp,Tw;function S$(){if(Tw)return Qp;Tw=1;var e=typeof e!="undefined"?e:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,t=function(){try{var s=new Blob(["hi"]);return s.size===2}catch(u){return!1}}(),r=t&&function(){try{var s=new Blob([new Uint8Array([1,2])]);return s.size===2}catch(u){return!1}}(),n=e&&e.prototype.append&&e.prototype.getBlob;function i(s){return s.map(function(u){if(u.buffer instanceof ArrayBuffer){var c=u.buffer;if(u.byteLength!==c.byteLength){var d=new Uint8Array(u.byteLength);d.set(new Uint8Array(c,u.byteOffset,u.byteLength)),c=d.buffer}return c}return u})}function a(s,u){u=u||{};var c=new e;return i(s).forEach(function(d){c.append(d)}),u.type?c.getBlob(u.type):c.getBlob()}function o(s,u){return new Blob(i(s),u||{})}return typeof Blob!="undefined"&&(a.prototype=Blob.prototype,o.prototype=Blob.prototype),Qp=function(){return t?r?Blob:o:n?a:void 0}(),Qp}(function(e){var t=l$,r=OE,n=p$,i=m$,a=x$,o;typeof ArrayBuffer!="undefined"&&(o=T$());var s=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),u=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),c=s||u;e.protocol=3;var d=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},h=t(d),p={type:"error",data:"parser error"},m=S$();e.encodePacket=function(T,A,R,N){typeof A=="function"&&(N=A,A=!1),typeof R=="function"&&(N=R,R=null);var I=T.data===void 0?void 0:T.data.buffer||T.data;if(typeof ArrayBuffer!="undefined"&&I instanceof ArrayBuffer)return g(T,A,N);if(typeof m!="undefined"&&I instanceof m)return C(T,A,N);if(I&&I.base64)return v(T,N);var H=d[T.type];return T.data!==void 0&&(H+=R?a.encode(String(T.data),{strict:!1}):String(T.data)),N(""+H)};function v(T,A){var R="b"+e.packets[T.type]+T.data.data;return A(R)}function g(T,A,R){if(!A)return e.encodeBase64Packet(T,R);var N=T.data,I=new Uint8Array(N),H=new Uint8Array(1+N.byteLength);H[0]=d[T.type];for(var G=0;G<I.length;G++)H[G+1]=I[G];return R(H.buffer)}function b(T,A,R){if(!A)return e.encodeBase64Packet(T,R);var N=new FileReader;return N.onload=function(){e.encodePacket({type:T.type,data:N.result},A,!0,R)},N.readAsArrayBuffer(T.data)}function C(T,A,R){if(!A)return e.encodeBase64Packet(T,R);if(c)return b(T,A,R);var N=new Uint8Array(1);N[0]=d[T.type];var I=new m([N.buffer,T.data]);return R(I)}e.encodeBase64Packet=function(T,A){var R="b"+e.packets[T.type];if(typeof m!="undefined"&&T.data instanceof m){var N=new FileReader;return N.onload=function(){var O=N.result.split(",")[1];A(R+O)},N.readAsDataURL(T.data)}var I;try{I=String.fromCharCode.apply(null,new Uint8Array(T.data))}catch(O){for(var H=new Uint8Array(T.data),G=new Array(H.length),Y=0;Y<H.length;Y++)G[Y]=H[Y];I=String.fromCharCode.apply(null,G)}return R+=btoa(I),A(R)},e.decodePacket=function(T,A,R){if(T===void 0)return p;if(typeof T=="string"){if(T.charAt(0)==="b")return e.decodeBase64Packet(T.substr(1),A);if(R&&(T=x(T),T===!1))return p;var I=T.charAt(0);return Number(I)!=I||!h[I]?p:T.length>1?{type:h[I],data:T.substring(1)}:{type:h[I]}}var N=new Uint8Array(T),I=N[0],H=n(T,1);return m&&A==="blob"&&(H=new m([H])),{type:h[I],data:H}};function x(T){try{T=a.decode(T,{strict:!1})}catch(A){return!1}return T}e.decodeBase64Packet=function(T,A){var R=h[T.charAt(0)];if(!o)return{type:R,data:{base64:!0,data:T.substr(1)}};var N=o.decode(T.substr(1));return A==="blob"&&m&&(N=new m([N])),{type:R,data:N}},e.encodePayload=function(T,A,R){typeof A=="function"&&(R=A,A=null);var N=r(T);if(A&&N)return m&&!c?e.encodePayloadAsBlob(T,R):e.encodePayloadAsArrayBuffer(T,R);if(!T.length)return R("0:");function I(G){return G.length+":"+G}function H(G,Y){e.encodePacket(G,N?A:!1,!1,function(O){Y(null,I(O))})}E(T,H,function(G,Y){return R(Y.join(""))})};function E(T,A,R){for(var N=new Array(T.length),I=i(T.length,R),H=function(Y,O,F){A(O,function(X,W){N[Y]=W,F(X,N)})},G=0;G<T.length;G++)H(G,T[G],I)}e.decodePayload=function(T,A,R){if(typeof T!="string")return e.decodePayloadAsBinary(T,A,R);typeof A=="function"&&(R=A,A=null);var N;if(T==="")return R(p,0,1);for(var I="",H,G,Y=0,O=T.length;Y<O;Y++){var F=T.charAt(Y);if(F!==":"){I+=F;continue}if(I===""||I!=(H=Number(I))||(G=T.substr(Y+1,H),I!=G.length))return R(p,0,1);if(G.length){if(N=e.decodePacket(G,A,!1),p.type===N.type&&p.data===N.data)return R(p,0,1);var X=R(N,Y+H,O);if(X===!1)return}Y+=H,I=""}if(I!=="")return R(p,0,1)},e.encodePayloadAsArrayBuffer=function(T,A){if(!T.length)return A(new ArrayBuffer(0));function R(N,I){e.encodePacket(N,!0,!0,function(H){return I(null,H)})}E(T,R,function(N,I){var H=I.reduce(function(O,F){var X;return typeof F=="string"?X=F.length:X=F.byteLength,O+X.toString().length+X+2},0),G=new Uint8Array(H),Y=0;return I.forEach(function(O){var F=typeof O=="string",X=O;if(F){for(var z=new Uint8Array(O.length),W=0;W<O.length;W++)z[W]=O.charCodeAt(W);X=z.buffer}F?G[Y++]=0:G[Y++]=1;for(var V=X.byteLength.toString(),W=0;W<V.length;W++)G[Y++]=parseInt(V[W]);G[Y++]=255;for(var z=new Uint8Array(X),W=0;W<z.length;W++)G[Y++]=z[W]}),A(G.buffer)})},e.encodePayloadAsBlob=function(T,A){function R(N,I){e.encodePacket(N,!0,!0,function(H){var G=new Uint8Array(1);if(G[0]=1,typeof H=="string"){for(var Y=new Uint8Array(H.length),O=0;O<H.length;O++)Y[O]=H.charCodeAt(O);H=Y.buffer,G[0]=0}for(var F=H instanceof ArrayBuffer?H.byteLength:H.size,X=F.toString(),W=new Uint8Array(X.length+1),O=0;O<X.length;O++)W[O]=parseInt(X[O]);if(W[X.length]=255,m){var V=new m([G.buffer,W.buffer,H]);I(null,V)}})}E(T,R,function(N,I){return A(new m(I))})},e.decodePayloadAsBinary=function(T,A,R){typeof A=="function"&&(R=A,A=null);for(var N=T,I=[];N.byteLength>0;){for(var H=new Uint8Array(N),G=H[0]===0,Y="",O=1;H[O]!==255;O++){if(Y.length>310)return R(p,0,1);Y+=H[O]}N=n(N,2+Y.length),Y=parseInt(Y);var F=n(N,0,Y);if(G)try{F=String.fromCharCode.apply(null,new Uint8Array(F))}catch(V){var X=new Uint8Array(F);F="";for(var O=0;O<X.length;O++)F+=String.fromCharCode(X[O])}I.push(F),N=n(N,Y)}var W=I.length;I.forEach(function(V,z){R(e.decodePacket(V,A,!0),z,W)})}})(Va);var NE={exports:{}};(function(e){e.exports=t;function t(n){if(n)return r(n)}function r(n){for(var i in t.prototype)n[i]=t.prototype[i];return n}t.prototype.on=t.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},t.prototype.once=function(n,i){function a(){this.off(n,a),i.apply(this,arguments)}return a.fn=i,this.on(n,a),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+n];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var o,s=0;s<a.length;s++)if(o=a[s],o===i||o.fn===i){a.splice(s,1);break}return a.length===0&&delete this._callbacks["$"+n],this},t.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),a=this._callbacks["$"+n],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(a){a=a.slice(0);for(var o=0,s=a.length;o<s;++o)a[o].apply(this,i)}return this},t.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},t.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(NE);var Pu=NE.exports,Jp,Sw;function Cy(){if(Sw)return Jp;Sw=1;var e=Va,t=Pu;Jp=r;function r(n){this.path=n.path,this.hostname=n.hostname,this.port=n.port,this.secure=n.secure,this.query=n.query,this.timestampParam=n.timestampParam,this.timestampRequests=n.timestampRequests,this.readyState="",this.agent=n.agent||!1,this.socket=n.socket,this.enablesXDR=n.enablesXDR,this.withCredentials=n.withCredentials,this.pfx=n.pfx,this.key=n.key,this.passphrase=n.passphrase,this.cert=n.cert,this.ca=n.ca,this.ciphers=n.ciphers,this.rejectUnauthorized=n.rejectUnauthorized,this.forceNode=n.forceNode,this.isReactNative=n.isReactNative,this.extraHeaders=n.extraHeaders,this.localAddress=n.localAddress}return t(r.prototype),r.prototype.onError=function(n,i){var a=new Error(n);return a.type="TransportError",a.description=i,this.emit("error",a),this},r.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(n){if(this.readyState==="open")this.write(n);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(n){var i=e.decodePacket(n,this.socket.binaryType);this.onPacket(i)},r.prototype.onPacket=function(n){this.emit("packet",n)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},Jp}var fs={};fs.encode=function(e){var t="";for(var r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t};fs.decode=function(e){for(var t={},r=e.split("&"),n=0,i=r.length;n<i;n++){var a=r[n].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t};var Xh=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},IE="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),zd=64,LE={},Ew=0,Yi=0,Mw;function w0(e){var t="";do t=IE[e%zd]+t,e=Math.floor(e/zd);while(e>0);return t}function E$(e){var t=0;for(Yi=0;Yi<e.length;Yi++)t=t*zd+LE[e.charAt(Yi)];return t}function xy(){var e=w0(+new Date);return e!==Mw?(Ew=0,Mw=e):e+"."+w0(Ew++)}for(;Yi<zd;Yi++)LE[IE[Yi]]=Yi;xy.encode=w0;xy.decode=E$;var FE=xy,C0={exports:{}},x0={exports:{}},Ql=1e3,Jl=Ql*60,eu=Jl*60,tu=eu*24,M$=tu*365.25,A$=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return P$(e);if(r==="number"&&isNaN(e)===!1)return t.long?O$(e):R$(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function P$(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*M$;case"days":case"day":case"d":return r*tu;case"hours":case"hour":case"hrs":case"hr":case"h":return r*eu;case"minutes":case"minute":case"mins":case"min":case"m":return r*Jl;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ql;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function R$(e){return e>=tu?Math.round(e/tu)+"d":e>=eu?Math.round(e/eu)+"h":e>=Jl?Math.round(e/Jl)+"m":e>=Ql?Math.round(e/Ql)+"s":e+"ms"}function O$(e){return $c(e,tu,"day")||$c(e,eu,"hour")||$c(e,Jl,"minute")||$c(e,Ql,"second")||e+" ms"}function $c(e,t,r){if(!(e<t))return e<t*1.5?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}(function(e,t){t=e.exports=n.debug=n.default=n,t.coerce=u,t.disable=o,t.enable=a,t.enabled=s,t.humanize=A$,t.instances=[],t.names=[],t.skips=[],t.formatters={};function r(c){var d=0,h;for(h in c)d=(d<<5)-d+c.charCodeAt(h),d|=0;return t.colors[Math.abs(d)%t.colors.length]}function n(c){var d;function h(){if(h.enabled){var p=h,m=+new Date,v=m-(d||m);p.diff=v,p.prev=d,p.curr=m,d=m;for(var g=new Array(arguments.length),b=0;b<g.length;b++)g[b]=arguments[b];g[0]=t.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");var C=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(E,T){if(E==="%%")return E;C++;var A=t.formatters[T];if(typeof A=="function"){var R=g[C];E=A.call(p,R),g.splice(C,1),C--}return E}),t.formatArgs.call(p,g);var x=h.log||t.log||console.log.bind(console);x.apply(p,g)}}return h.namespace=c,h.enabled=t.enabled(c),h.useColors=t.useColors(),h.color=r(c),h.destroy=i,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function i(){var c=t.instances.indexOf(this);return c!==-1?(t.instances.splice(c,1),!0):!1}function a(c){t.save(c),t.names=[],t.skips=[];var d,h=(typeof c=="string"?c:"").split(/[\s,]+/),p=h.length;for(d=0;d<p;d++)h[d]&&(c=h[d].replace(/\*/g,".*?"),c[0]==="-"?t.skips.push(new RegExp("^"+c.substr(1)+"$")):t.names.push(new RegExp("^"+c+"$")));for(d=0;d<t.instances.length;d++){var m=t.instances[d];m.enabled=t.enabled(m.namespace)}}function o(){t.enable("")}function s(c){if(c[c.length-1]==="*")return!0;var d,h;for(d=0,h=t.skips.length;d<h;d++)if(t.skips[d].test(c))return!1;for(d=0,h=t.names.length;d<h;d++)if(t.names[d].test(c))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}})(x0,x0.exports);var k$=x0.exports;(function(e,t){t=e.exports=k$,t.log=i,t.formatArgs=n,t.save=a,t.load=o,t.useColors=r,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function n(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+t.humanize(this.diff),!!c){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var h=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),u.splice(p,0,d)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch(c){}}function o(){var u;try{u=t.storage.debug}catch(c){}return!u&&typeof process!="undefined"&&"env"in process&&(u=process.env.DEBUG),u}t.enable(o());function s(){try{return window.localStorage}catch(u){}}})(C0,C0.exports);var Kh=C0.exports,$E=Cy(),D$=fs,BE=Va,N$=Xh,I$=FE,Sn=Kh("engine.io-client:polling"),HE=ai,L$=function(){var e=_y,t=new e({xdomain:!1});return t.responseType!=null}();function ai(e){var t=e&&e.forceBase64;(!L$||t)&&(this.supportsBinary=!1),$E.call(this,e)}N$(ai,$E);ai.prototype.name="polling";ai.prototype.doOpen=function(){this.poll()};ai.prototype.pause=function(e){var t=this;this.readyState="pausing";function r(){Sn("paused"),t.readyState="paused",e()}if(this.polling||!this.writable){var n=0;this.polling&&(Sn("we are currently polling - waiting to pause"),n++,this.once("pollComplete",function(){Sn("pre-pause polling complete"),--n||r()})),this.writable||(Sn("we are currently writing - waiting to pause"),n++,this.once("drain",function(){Sn("pre-pause writing complete"),--n||r()}))}else r()};ai.prototype.poll=function(){Sn("polling"),this.polling=!0,this.doPoll(),this.emit("poll")};ai.prototype.onData=function(e){var t=this;Sn("polling got data %s",e);var r=function(n,i,a){if(t.readyState==="opening"&&n.type==="open"&&t.onOpen(),n.type==="close")return t.onClose(),!1;t.onPacket(n)};BE.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():Sn('ignoring poll - transport state "%s"',this.readyState))};ai.prototype.doClose=function(){var e=this;function t(){Sn("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(Sn("transport open - closing"),t()):(Sn("transport not open - deferring close"),this.once("open",t))};ai.prototype.write=function(e){var t=this;this.writable=!1;var r=function(){t.writable=!0,t.emit("drain")};BE.encodePayload(e,this.supportsBinary,function(n){t.doWrite(n,r)})};ai.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=I$()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=D$.encode(e),this.port&&(t==="https"&&Number(this.port)!==443||t==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var n=this.hostname.indexOf(":")!==-1;return t+"://"+(n?"["+this.hostname+"]":this.hostname)+r+this.path+e};var F$=_y,zE=HE,$$=Pu,B$=Xh,T0=Kh("engine.io-client:polling-xhr"),H$=by;wy.exports=ps;wy.exports.Request=rr;function Aw(){}function ps(e){if(zE.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location!="undefined"){var t=location.protocol==="https:",r=location.port;r||(r=t?443:80),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==t}}B$(ps,zE);ps.prototype.supportsBinary=!0;ps.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new rr(e)};ps.prototype.doWrite=function(e,t){var r=typeof e!="string"&&e!==void 0,n=this.request({method:"POST",data:e,isBinary:r}),i=this;n.on("success",t),n.on("error",function(a){i.onError("xhr post error",a)}),this.sendXhr=n};ps.prototype.doPoll=function(){T0("xhr poll");var e=this.request(),t=this;e.on("data",function(r){t.onData(r)}),e.on("error",function(r){t.onError("xhr poll error",r)}),this.pollXhr=e};function rr(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}$$(rr.prototype);rr.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new F$(e),r=this;try{T0("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(var n in this.extraHeaders)this.extraHeaders.hasOwnProperty(n)&&t.setRequestHeader(n,this.extraHeaders[n])}}catch(i){}if(this.method==="POST")try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{t.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){if(t.readyState===2)try{var i=t.getResponseHeader("Content-Type");(r.supportsBinary&&i==="application/octet-stream"||i==="application/octet-stream; charset=UTF-8")&&(t.responseType="arraybuffer")}catch(a){}t.readyState===4&&(t.status===200||t.status===1223?r.onLoad():setTimeout(function(){r.onError(typeof t.status=="number"?t.status:0)},0))},T0("xhr data %s",this.data),t.send(this.data)}catch(i){setTimeout(function(){r.onError(i)},0);return}typeof document!="undefined"&&(this.index=rr.requestsCount++,rr.requests[this.index]=this)};rr.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};rr.prototype.onData=function(e){this.emit("data",e),this.onSuccess()};rr.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)};rr.prototype.cleanup=function(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=Aw:this.xhr.onreadystatechange=Aw,e)try{this.xhr.abort()}catch(t){}typeof document!="undefined"&&delete rr.requests[this.index],this.xhr=null}};rr.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(r){}t==="application/octet-stream"||t==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(r){this.onError(r)}e!=null&&this.onData(e)};rr.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR};rr.prototype.abort=function(){this.cleanup()};rr.requestsCount=0;rr.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Pw);else if(typeof addEventListener=="function"){var z$="onpagehide"in H$?"pagehide":"unload";addEventListener(z$,Pw,!1)}}function Pw(){for(var e in rr.requests)rr.requests.hasOwnProperty(e)&&rr.requests[e].abort()}var j$=wy.exports,Ty=HE,W$=Xh,Rw=by,U$=ms,V$=/\n/g,G$=/\\n/g,Bc;function q$(){}function ms(e){Ty.call(this,e),this.query=this.query||{},Bc||(Bc=Rw.___eio=Rw.___eio||[]),this.index=Bc.length;var t=this;Bc.push(function(r){t.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){t.script&&(t.script.onerror=q$)},!1)}W$(ms,Ty);ms.prototype.supportsBinary=!1;ms.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),Ty.prototype.doClose.call(this)};ms.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(i){e.onError("jsonp poll error",i)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(t,r):(document.head||document.body).appendChild(t),this.script=t;var n=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);n&&setTimeout(function(){var i=document.createElement("iframe");document.body.appendChild(i),document.body.removeChild(i)},100)};ms.prototype.doWrite=function(e,t){var r=this;if(!this.form){var n=document.createElement("form"),i=document.createElement("textarea"),a=this.iframeId="eio_iframe_"+this.index,o;n.className="socketio",n.style.position="absolute",n.style.top="-1000px",n.style.left="-1000px",n.target=a,n.method="POST",n.setAttribute("accept-charset","utf-8"),i.name="d",n.appendChild(i),document.body.appendChild(n),this.form=n,this.area=i}this.form.action=this.uri();function s(){u(),t()}function u(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(d){r.onError("jsonp polling iframe removal error",d)}try{var c='<iframe src="javascript:0" name="'+r.iframeId+'">';o=document.createElement(c)}catch(d){o=document.createElement("iframe"),o.name=r.iframeId,o.src="javascript:0"}o.id=r.iframeId,r.form.appendChild(o),r.iframe=o}u(),e=e.replace(G$,`\\
205
- `),this.area.value=e.replace(V$,"\\n");try{this.form.submit()}catch(c){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){r.iframe.readyState==="complete"&&s()}:this.iframe.onload=s};const Y$={},X$=Object.freeze(Object.defineProperty({__proto__:null,default:Y$},Symbol.toStringTag,{value:"Module"})),K$=w.getAugmentedNamespace(X$);var Sy=Cy(),Z$=Va,Q$=fs,J$=Xh,e8=FE,t8=Kh("engine.io-client:websocket"),jd,Ey;typeof WebSocket!="undefined"?jd=WebSocket:typeof self!="undefined"&&(jd=self.WebSocket||self.MozWebSocket);if(typeof window=="undefined")try{Ey=K$}catch(e){}var Vo=jd||Ey,r8=vn;function vn(e){var t=e&&e.forceBase64;t&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=jd&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(Vo=Ey),Sy.call(this,e)}J$(vn,Sy);vn.prototype.name="websocket";vn.prototype.supportsBinary=!0;vn.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,r={};this.isReactNative||(r.agent=this.agent,r.perMessageDeflate=this.perMessageDeflate,r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(r.headers=this.extraHeaders),this.localAddress&&(r.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new Vo(e,t):new Vo(e):new Vo(e,t,r)}catch(n){return this.emit("error",n)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};vn.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}};vn.prototype.write=function(e){var t=this;this.writable=!1;for(var r=e.length,n=0,i=r;n<i;n++)(function(o){Z$.encodePacket(o,t.supportsBinary,function(s){if(!t.usingBrowserWebSocket){var u={};if(o.options&&(u.compress=o.options.compress),t.perMessageDeflate){var c=typeof s=="string"?Buffer.byteLength(s):s.length;c<t.perMessageDeflate.threshold&&(u.compress=!1)}}try{t.usingBrowserWebSocket?t.ws.send(s):t.ws.send(s,u)}catch(d){t8("websocket closed before onclose event")}--r||a()})})(e[n]);function a(){t.emit("flush"),setTimeout(function(){t.writable=!0,t.emit("drain")},0)}};vn.prototype.onClose=function(){Sy.prototype.onClose.call(this)};vn.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()};vn.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",r="";this.port&&(t==="wss"&&Number(this.port)!==443||t==="ws"&&Number(this.port)!==80)&&(r=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=e8()),this.supportsBinary||(e.b64=1),e=Q$.encode(e),e.length&&(e="?"+e);var n=this.hostname.indexOf(":")!==-1;return t+"://"+(n?"["+this.hostname+"]":this.hostname)+r+this.path+e};vn.prototype.check=function(){return!!Vo&&!("__initialize"in Vo&&this.name===vn.prototype.name)};var n8=_y,i8=j$,a8=U$,o8=r8;Yh.polling=s8;Yh.websocket=o8;function s8(e){var t,r=!1,n=!1,i=e.jsonp!==!1;if(typeof location!="undefined"){var a=location.protocol==="https:",o=location.port;o||(o=a?443:80),r=e.hostname!==location.hostname||o!==e.port,n=e.secure!==a}if(e.xdomain=r,e.xscheme=n,t=new n8(e),"open"in t&&!e.forceJSONP)return new i8(e);if(!i)throw new Error("JSONP disabled");return new a8(e)}var l8=[].indexOf,jE=function(e,t){if(l8)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1},u8=Yh,c8=Pu,Qt=Kh("engine.io-client:socket"),d8=jE,WE=Va,Ow=TE,h8=fs,f8=Ke;function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t=t||{},e&&typeof e=="object"&&(t=e,e=null),e?(e=Ow(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Ow(t.host).host),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=t.query||{},typeof this.query=="string"&&(this.query=h8.decode(this.query)),this.upgrade=t.upgrade!==!1,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=t.jsonp!==!1,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=t.withCredentials!==!1,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=t.perMessageDeflate!==!1?t.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||void 0,this.key=t.key||void 0,this.passphrase=t.passphrase||void 0,this.cert=t.cert||void 0,this.ca=t.ca||void 0,this.ciphers=t.ciphers||void 0,this.rejectUnauthorized=t.rejectUnauthorized===void 0?!0:t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}Ke.priorWebsocketSuccess=!1;c8(Ke.prototype);Ke.protocol=WE.protocol;Ke.Socket=Ke;Ke.Transport=Cy();Ke.transports=Yh;Ke.parser=Va;Ke.prototype.createTransport=function(e){Qt('creating transport "%s"',e);var t=p8(this.query);t.EIO=WE.protocol,t.transport=e;var r=this.transportOptions[e]||{};this.id&&(t.sid=this.id);var n=new u8[e]({query:t,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,withCredentials:r.withCredentials||this.withCredentials,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative});return n};function p8(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}Ke.prototype.open=function(){var e;if(this.rememberUpgrade&&Ke.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var t=this;setTimeout(function(){t.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(r){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)};Ke.prototype.setTransport=function(e){Qt("setting transport %s",e.name);var t=this;this.transport&&(Qt("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(r){t.onPacket(r)}).on("error",function(r){t.onError(r)}).on("close",function(){t.onClose("transport close")})};Ke.prototype.probe=function(e){Qt('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),r=!1,n=this;Ke.priorWebsocketSuccess=!1;function i(){if(n.onlyBinaryUpgrades){var h=!this.supportsBinary&&n.transport.supportsBinary;r=r||h}r||(Qt('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(p){if(!r)if(p.type==="pong"&&p.data==="probe"){if(Qt('probe transport "%s" pong',e),n.upgrading=!0,n.emit("upgrading",t),!t)return;Ke.priorWebsocketSuccess=t.name==="websocket",Qt('pausing current transport "%s"',n.transport.name),n.transport.pause(function(){r||n.readyState!=="closed"&&(Qt("changing transport and sending upgrade packet"),d(),n.setTransport(t),t.send([{type:"upgrade"}]),n.emit("upgrade",t),t=null,n.upgrading=!1,n.flush())})}else{Qt('probe transport "%s" failed',e);var m=new Error("probe error");m.transport=t.name,n.emit("upgradeError",m)}}))}function a(){r||(r=!0,d(),t.close(),t=null)}function o(h){var p=new Error("probe error: "+h);p.transport=t.name,a(),Qt('probe transport "%s" failed because of error: %s',e,h),n.emit("upgradeError",p)}function s(){o("transport closed")}function u(){o("socket closed")}function c(h){t&&h.name!==t.name&&(Qt('"%s" works - aborting "%s"',h.name,t.name),a())}function d(){t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",s),n.removeListener("close",u),n.removeListener("upgrading",c)}t.once("open",i),t.once("error",o),t.once("close",s),this.once("close",u),this.once("upgrading",c),t.open()};Ke.prototype.onOpen=function(){if(Qt("socket open"),this.readyState="open",Ke.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Qt("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}};Ke.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Qt('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else Qt('packet received with socket readyState "%s"',this.readyState)};Ke.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))};Ke.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){t.readyState!=="closed"&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)};Ke.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Qt("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)};Ke.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})};Ke.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()};Ke.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Qt("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))};Ke.prototype.write=Ke.prototype.send=function(e,t,r){return this.sendPacket("message",e,t,r),this};Ke.prototype.sendPacket=function(e,t,r,n){if(typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=null),!(this.readyState==="closing"||this.readyState==="closed")){r=r||{},r.compress=r.compress!==!1;var i={type:e,data:t,options:r};this.emit("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}};Ke.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}function t(){e.onClose("forced close"),Qt("socket closing - telling transport to close"),e.transport.close()}function r(){e.removeListener("upgrade",r),e.removeListener("upgradeError",r),t()}function n(){e.once("upgrade",r),e.once("upgradeError",r)}return this};Ke.prototype.onError=function(e){Qt("socket error %j",e),Ke.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)};Ke.prototype.onClose=function(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Qt('socket close with reason: "%s"',e);var r=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),r.writeBuffer=[],r.prevBufferLen=0}};Ke.prototype.filterUpgrades=function(e){for(var t=[],r=0,n=e.length;r<n;r++)~d8(this.transports,e[r])&&t.push(e[r]);return t};yy.exports=f8;yy.exports.parser=Va;var m8=yy.exports,UE={exports:{}},g8=v8;function v8(e,t){var r=[];t=t||0;for(var n=t||0;n<e.length;n++)r[n-t]=e[n];return r}var VE=y8;function y8(e,t,r){return e.on(t,r),{destroy:function(){e.removeListener(t,r)}}}var kw=[].slice,GE=function(e,t){if(typeof t=="string"&&(t=e[t]),typeof t!="function")throw new Error("bind() requires a function");var r=kw.call(arguments,2);return function(){return t.apply(e,r.concat(kw.call(arguments)))}};(function(e,t){var r=Gh,n=Pu,i=g8,a=VE,o=GE,s=Vh("socket.io-client:socket"),u=fs,c=OE;e.exports=p;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=n.prototype.emit;function p(m,v,g){this.io=m,this.nsp=v,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},g&&g.query&&(this.query=g.query),this.io.autoConnect&&this.open()}n(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var m=this.io;this.subs=[a(m,"open",o(this,"onopen")),a(m,"packet",o(this,"onpacket")),a(m,"close",o(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},p.prototype.send=function(){var m=i(arguments);return m.unshift("message"),this.emit.apply(this,m),this},p.prototype.emit=function(m){if(d.hasOwnProperty(m))return h.apply(this,arguments),this;var v=i(arguments),g={type:(this.flags.binary!==void 0?this.flags.binary:c(v))?r.BINARY_EVENT:r.EVENT,data:v};return g.options={},g.options.compress=!this.flags||this.flags.compress!==!1,typeof v[v.length-1]=="function"&&(s("emitting packet with ack id %d",this.ids),this.acks[this.ids]=v.pop(),g.id=this.ids++),this.connected?this.packet(g):this.sendBuffer.push(g),this.flags={},this},p.prototype.packet=function(m){m.nsp=this.nsp,this.io.packet(m)},p.prototype.onopen=function(){if(s("transport is open - connecting"),this.nsp!=="/")if(this.query){var m=typeof this.query=="object"?u.encode(this.query):this.query;s("sending connect packet with query %s",m),this.packet({type:r.CONNECT,query:m})}else this.packet({type:r.CONNECT})},p.prototype.onclose=function(m){s("close (%s)",m),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",m)},p.prototype.onpacket=function(m){var v=m.nsp===this.nsp,g=m.type===r.ERROR&&m.nsp==="/";if(!(!v&&!g))switch(m.type){case r.CONNECT:this.onconnect();break;case r.EVENT:this.onevent(m);break;case r.BINARY_EVENT:this.onevent(m);break;case r.ACK:this.onack(m);break;case r.BINARY_ACK:this.onack(m);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",m.data);break}},p.prototype.onevent=function(m){var v=m.data||[];s("emitting event %j",v),m.id!=null&&(s("attaching ack callback to event"),v.push(this.ack(m.id))),this.connected?h.apply(this,v):this.receiveBuffer.push(v)},p.prototype.ack=function(m){var v=this,g=!1;return function(){if(!g){g=!0;var b=i(arguments);s("sending ack %j",b),v.packet({type:c(b)?r.BINARY_ACK:r.ACK,id:m,data:b})}}},p.prototype.onack=function(m){var v=this.acks[m.id];typeof v=="function"?(s("calling ack %s with %j",m.id,m.data),v.apply(this,m.data),delete this.acks[m.id]):s("bad ack %s",m.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},p.prototype.emitBuffered=function(){var m;for(m=0;m<this.receiveBuffer.length;m++)h.apply(this,this.receiveBuffer[m]);for(this.receiveBuffer=[],m=0;m<this.sendBuffer.length;m++)this.packet(this.sendBuffer[m]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){s("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var m=0;m<this.subs.length;m++)this.subs[m].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(s("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(m){return this.flags.compress=m,this},p.prototype.binary=function(m){return this.flags.binary=m,this}})(UE);var qE=UE.exports,b8=gs;function gs(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}gs.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+r:e-r}return Math.min(e,this.max)|0};gs.prototype.reset=function(){this.attempts=0};gs.prototype.setMin=function(e){this.ms=e};gs.prototype.setMax=function(e){this.max=e};gs.prototype.setJitter=function(e){this.jitter=e};var _8=m8,w8=qE,C8=Pu,x8=Gh,Bi=VE,wo=GE,Tr=Vh("socket.io-client:manager"),YE=jE,T8=b8,XE=Object.prototype.hasOwnProperty,Dw=rt;function rt(e,t){if(!(this instanceof rt))return new rt(e,t);e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new T8({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var r=t.parser||x8;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this.autoConnect=t.autoConnect!==!1,this.autoConnect&&this.open()}rt.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)XE.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)};rt.prototype.updateSocketIds=function(){for(var e in this.nsps)XE.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))};rt.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id};C8(rt.prototype);rt.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection};rt.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts};rt.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay};rt.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor};rt.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax};rt.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout};rt.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()};rt.prototype.open=rt.prototype.connect=function(e,t){if(Tr("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;Tr("opening %s",this.uri),this.engine=_8(this.uri,this.opts);var r=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var i=Bi(r,"open",function(){n.onopen(),e&&e()}),a=Bi(r,"error",function(u){if(Tr("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",u),e){var c=new Error("Connection error");c.data=u,e(c)}else n.maybeReconnectOnOpen()});if(this._timeout!==!1){var o=this._timeout;Tr("connect attempt will timeout after %d",o),o===0&&i.destroy();var s=setTimeout(function(){Tr("connect attempt timed out after %d",o),i.destroy(),r.close(),r.emit("error","timeout"),n.emitAll("connect_timeout",o)},o);this.subs.push({destroy:function(){clearTimeout(s)}})}return this.subs.push(i),this.subs.push(a),this};rt.prototype.onopen=function(){Tr("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(Bi(e,"data",wo(this,"ondata"))),this.subs.push(Bi(e,"ping",wo(this,"onping"))),this.subs.push(Bi(e,"pong",wo(this,"onpong"))),this.subs.push(Bi(e,"error",wo(this,"onerror"))),this.subs.push(Bi(e,"close",wo(this,"onclose"))),this.subs.push(Bi(this.decoder,"decoded",wo(this,"ondecoded")))};rt.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")};rt.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)};rt.prototype.ondata=function(e){this.decoder.add(e)};rt.prototype.ondecoded=function(e){this.emit("packet",e)};rt.prototype.onerror=function(e){Tr("error",e),this.emitAll("error",e)};rt.prototype.socket=function(e,t){var r=this.nsps[e];if(!r){r=new w8(this,e,t),this.nsps[e]=r;var n=this;r.on("connecting",i),r.on("connect",function(){r.id=n.generateId(e)}),this.autoConnect&&i()}function i(){~YE(n.connecting,r)||n.connecting.push(r)}return r};rt.prototype.destroy=function(e){var t=YE(this.connecting,e);~t&&this.connecting.splice(t,1),!this.connecting.length&&this.close()};rt.prototype.packet=function(e){Tr("writing packet %j",e);var t=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(r){for(var n=0;n<r.length;n++)t.engine.write(r[n],e.options);t.encoding=!1,t.processPacketQueue()}))};rt.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}};rt.prototype.cleanup=function(){Tr("cleanup");for(var e=this.subs.length,t=0;t<e;t++){var r=this.subs.shift();r.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()};rt.prototype.close=rt.prototype.disconnect=function(){Tr("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()};rt.prototype.onclose=function(e){Tr("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()};rt.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)Tr("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();Tr("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var r=setTimeout(function(){e.skipReconnect||(Tr("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(n){n?(Tr("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",n.data)):(Tr("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(r)}})}};rt.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)};(function(e,t){var r=VF,n=Gh,i=Dw,a=Vh("socket.io-client");e.exports=t=s;var o=t.managers={};function s(u,c){typeof u=="object"&&(c=u,u=void 0),c=c||{};var d=r(u),h=d.source,p=d.id,m=d.path,v=o[p]&&m in o[p].nsps,g=c.forceNew||c["force new connection"]||c.multiplex===!1||v,b;return g?(a("ignoring socket cache for %s",h),b=i(h,c)):(o[p]||(a("new io instance for %s",h),o[p]=i(h,c)),b=o[p]),d.query&&!c.query&&(c.query=d.query),b.socket(d.path,c)}t.protocol=n.protocol,t.connect=s,t.Manager=Dw,t.Socket=qE})(p0,p0.exports);var S8=p0.exports;const E8=w.getDefaultExportFromCjs(S8);function M8(e=document.cookie){const t="XSRF-TOKEN",r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return r!==null&&r[2]?r[2]:null}function A8(){const e=M8(),t={};return e&&(t["X-XSRF-TOKEN"]=e),t}class My{constructor(t,r,n){this.isRegistered=!1,this.isListening=!1,typeof t=="string"?(this.socket=My.createNewSocket(t,r,n),this.subcribeOnSocketReadiness()):this.socket=t}subcribeOnSocketReadiness(){this.socket.on("register",()=>{this.isRegistered=!0}),this.socket.on("listen",()=>{this.isListening=!0})}isReady(){return this.isRegistered&&this.isListening}on(t,r){this.socket.on(t,r)}off(t,r){this.socket.off(t,r)}send(t,...r){const n=r[0];this.socket.emit(t,JSON.stringify(n))}onMessage(t,r,n){this.onMessageCallback=n;const i=t||"",a=r||"",o=a?`${i}-${a}`:i,s=u=>{let c=null;try{c=JSON.parse(u)}catch(d){throw new Error("Error parsing response message")}n(i,c)};return this.on(o,s),()=>{this.off(o,s)}}trigger(t,r){this.onMessageCallback&&this.onMessageCallback(t,r)}static createNewSocket(t,r,n){const i=new URL("./gateway",new URL(za(t))),a=i.origin+(n?`/${n}`:""),o=E8.connect(a,{path:i.pathname,transports:["websocket"],reconnection:!0,query:r});return o.on("connect_error",s=>{console.log(`connect_error due to ${s.message}`)}),o.on("csrf",()=>{o.emit("csrf",A8())}),o.on("listen",()=>{o.emit("register",{})}),o.on("register",()=>{o.emit('{"eventName": "_registerEvent", "data": "pivot2"}')}),o.on("error",s=>{console.warn(`"SisenseSocket" socket error "${s}"`)}),o}}var P8=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class R8{constructor(t){this.socket=t}destroy(){}prepareRequest(t){return Promise.resolve(t)}prepareLoadService(t,r=!1){return this.dataLoadService&&(r||this.dataLoadService.isFormattingChanges(t))?this.dataLoadService:new DF(this.socket)}prepareDataService(t){const r=new Vr(t);return{loadData:(n,i,a)=>{if(!r)throw new Error('No DataService defined during "prepareDataService"');return r.loadData(n,{pageSize:i,isPaginated:a})}}}loadInitData(t,r=!0,n=100,i=!1){return P8(this,void 0,void 0,function*(){const a=r?n:void 0;try{const o=yield this.prepareRequest(t);this.dataLoadService=this.prepareLoadService(o,i);const{loadData:s}=this.prepareDataService(this.dataLoadService),{rowsTreeService:u,columnsTreeService:c,cornerTreeService:d,isLastPage:h}=yield s(i?void 0:o,a,r);return this.transformTreeStructuresToResultData({rowsTreeService:u,columnsTreeService:c,cornerTreeService:d,isLastPage:h})}catch(o){console.error('Error during loading initial page"',o)}return D.EMPTY_PIVOT_QUERY_RESULT_DATA})}buildColumnsHelper(t,r,n,i){var a;const o=`${n}${n===""?"":" | "}${(a=i.value)===null||a===void 0?void 0:a.toString()}`;i.children?i.children.forEach(s=>{this.buildColumnsHelper(t,r,o,s)}):r.push({name:o,type:t})}transformGridToColumns(t,r){if(!r||r.length===0)return[];const n=[];return r==null||r[0].forEach(i=>{typeof i!="string"&&this.buildColumnsHelper(t,n,"",i)}),n||[]}transformTreeStructuresToResultData(t){const{rowsTreeService:r,columnsTreeService:n,cornerTreeService:i}=t;if(!r&&!n&&!i)return D.EMPTY_PIVOT_QUERY_RESULT_DATA;const a=i?i.getGrid():[],o=n?n.getGrid():[],s=r?r.getGrid():[],u=this.transformGridToColumns("string",a),c=this.transformGridToColumns("number",o),d=[...u,...c],h=r?r.extractData(n):[],p=s.length,m=d.length,v=[];let g=0,b=0;return Array.from(Array(p)).map((C,x)=>{const E=[];Array.from(Array(m)).map((T,A)=>{var R,N;let I;if(A<u.length){g=x,b=A;try{I=s[g][b]}catch(G){throw new Error(`Can't find data item for ${g}-${b}`)}}else{g=x,b=A-u.length;try{I=h[g][b]}catch(G){throw new Error(`Can't find data item for ${g}-${b}`)}}let H;if(typeof I=="string"){const G=I.split("-");if(G.length===2){const Y=Number(G[0]),O=Number(G[1]);I=s[Y][O],H=((R=I.value)===null||R===void 0?void 0:R.toString())||""}else H=""}else H=((N=I.value)===null||N===void 0?void 0:N.toString())||"";E.push({data:H,text:H})}),v.push(E)}),{table:{columns:d,rows:v},grids:{corner:a,rows:s,columns:o,values:h}}}}const O8={errorPrefix:"[request-error]",errors:{networkError:"Network error. Check browser console for further details.",authFailed:"Failed to authenticate.",ssoNotEnabled:"SSO is not enabled on target instance, please choose another authentication method.",ssoNoLoginUrl:"Unable to fetch SSO login URL from target instance. Check SSO settings.",passwordAuthFailed:"$t(errorPrefix) Username and password authentication was not successful. Check credentials.",tokenAuthFailed:"$t(errorPrefix) Token authentication was not successful. Check credentials.",authRedirectLimitExceeded:"SSO redirect limit reached. Authentication may be blocked by browser privacy settings or third-party cookie restrictions. Please check your SSO configuration or try a different browser."}},k8={errorPrefix:"[request-error]",errors:{networkError:"Помилка мережі. Можливо ви забули додати свій домен до «CORS Allowed Origins» в панелі адміністратора Sisense -> Security Settings.",authFailed:"Автентифікація не вдалася.",ssoNotEnabled:"SSO не ввімкнено на цьому сервері, будь ласка, виберіть інший метод аутентифікації",ssoNoLoginUrl:"Неможливо отримати SSO login URL з сервера. Перевірте налаштування SSO.",passwordAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою імені користувача та пароля. Перевірте дані для входу.",tokenAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою токена. Перевірте дані для входу.",authRedirectLimitExceeded:"Досягнуто ліміт перенаправлень SSO. Автентифікацію може блокувати налаштування конфіденційності браузера або обмеження сторонніх cookie. Перевірте конфігурацію SSO або спробуйте інший браузер."}},KE="sdkRestClient",D8={en:O8,uk:k8};function N8(){return D.initI18next({resource:D8,language:"en",namespace:KE})}const{i18nextInstance:I8}=N8();class Ru{constructor(t){this._valid=!0,this._authenticating=!1,this._tried=!1,this._result=new Promise(r=>{this._resolve=r}),this.type=t}isValid(){return this._valid}invalidate(){this._valid=!1}authenticate(){return this._result}isAuthenticating(){return this._authenticating}authenticated(){return this._result}applyHeaders(t){}}const Zh=(e,t)=>{if(Array.isArray(e)){for(const[n,i]of Object.entries(t))e.push([n,i]);return}if(e instanceof Headers){for(const[n,i]of Object.entries(t))e.set(n,i);return}const r=e;for(const[n,i]of Object.entries(t))r[n]=i},ZE=(e,t)=>{if(!e||typeof e!="string")return e;const r=new URL(e);for(const[n,i]of Object.entries(t))r.searchParams.set(n,i);return r.toString()},L8=(e,t)=>e===null||t===null,F8=(e,t)=>{if(!e||typeof e!="string")throw new Error("URL must be a non-empty string");let r;try{r=new URL(e)}catch(i){throw new Error(`Invalid URL format: ${e}`)}let n;try{n=new URL(t)}catch(i){throw new Error(`Invalid url origin format: ${t}`)}if(r.origin!==n.origin)throw new Error(`URL origin ${r.origin} does not match allowed origin ${n.origin}. SSRF protection: requests must be to the configured base URL only.`)};class $8 extends Ru{constructor(t,r){super("bearer"),this.bearer=r,this._resolve(!0)}applyHeaders(t){const r="Bearer "+this.bearer;Zh(t,{Authorization:r})}authenticate(){return this._result}authenticated(){return this._result}}function QE(e){return e.type==="bearer"}let bi=class extends D.AbstractTranslatableError{constructor(t,r){super(KE,{key:t,interpolationOptions:r},I8.t)}get status(){return this.interpolationOptions.status}};var em=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};const B8="sisense_sso_redirect_attempts_",H8="sisense_sso_redirect_last_at_",z8=3,j8=1e4;class W8 extends Ru{constructor(t,r=!1,n="",i=z8,a=j8){super("sso"),this.url=za(t,!0),this._enableSilentPreAuth=r,this._alternativeSsoHost=n,this._ssoMaxAuthRedirectAttempts=Math.max(1,i),this._ssoRedirectAttemptsTtlMs=Math.max(0,a)}getRedirectCountStorageKey(){return B8+encodeURIComponent(this.url)}getRedirectLastAtStorageKey(){return H8+encodeURIComponent(this.url)}getRedirectAttempts(){try{if(typeof window=="undefined"||typeof window.localStorage=="undefined")return 0;const t=window.localStorage.getItem(this.getRedirectCountStorageKey()),r=window.localStorage.getItem(this.getRedirectLastAtStorageKey());if(t==null&&r==null)return 0;const n=parseInt(t!=null?t:"",10),i=parseInt(r!=null?r:"",10);return isNaN(n)||isNaN(i)||n<0?(this.clearRedirectAttempts(),0):this._ssoRedirectAttemptsTtlMs>0&&Date.now()-i>this._ssoRedirectAttemptsTtlMs?(this.clearRedirectAttempts(),0):Math.max(0,n)}catch(t){return 0}}clearRedirectAttempts(){try{typeof window!="undefined"&&typeof window.localStorage!="undefined"&&(window.localStorage.removeItem(this.getRedirectCountStorageKey()),window.localStorage.removeItem(this.getRedirectLastAtStorageKey()))}catch(t){}}persistRedirectAttempts(t){try{if(typeof window=="undefined"||typeof window.localStorage=="undefined")return;const r=Date.now();window.localStorage.setItem(this.getRedirectCountStorageKey(),String(t)),window.localStorage.setItem(this.getRedirectLastAtStorageKey(),String(r))}catch(r){}}authenticate(t=!0){var r;return em(this,void 0,void 0,function*(){try{this._authenticating=!0;const{isAuthenticated:n,loginUrl:i}=yield this.checkAuthentication();if(n)return this.clearRedirectAttempts(),this._resolve(!0),yield this._result;let a="";try{new URL(i),a=i}catch(u){a=s_(this._alternativeSsoHost||this.url,i)}const o=Object.fromEntries(new URL(this.url).searchParams.entries());a=ZE(a,Object.assign(Object.assign({},o),{return_to:window.location.href}));const s=this.getRedirectAttempts();if(s>=this._ssoMaxAuthRedirectAttempts)throw new bi("errors.authRedirectLimitExceeded");if(this._enableSilentPreAuth&&t){yield this.authenticateSilent(a);const{isAuthenticated:u}=yield this.checkAuthentication();if(u)return this.clearRedirectAttempts(),this._resolve(!0),yield this._result}this.persistRedirectAttempts(s+1),(r=window==null?void 0:window.location)===null||r===void 0||r.replace(a)}finally{this._resolve(!1),this._authenticating=!1}return this._result})}authenticateSilent(t){return em(this,void 0,void 0,function*(){const r=document.createElement("iframe");r.style.display="none",document.body.appendChild(r),r.src=t,yield new Promise(n=>{r.onload=()=>{n(!0)}}),document.body.removeChild(r)})}checkAuthentication(){var t,r;return em(this,void 0,void 0,function*(){const n=s_(this.url,"api/auth/isauth"),i=yield fetch(n,{headers:{Internal:"true"},credentials:"include"}).catch(Qh);if(i.status===200&&!(!((r=(t=i.headers)===null||t===void 0?void 0:t.get("Content-Type"))===null||r===void 0)&&r.includes("application/json")))throw new bi("errors.authFailed");const a=yield i.json();if(!a.isAuthenticated){if(!a.ssoEnabled)throw new bi("errors.ssoNotEnabled");if(!a.loginUrl)throw new bi("errors.ssoNoLoginUrl")}return{isAuthenticated:a.isAuthenticated,loginUrl:a.loginUrl||""}})}}function Ay(e){return e.type==="sso"}var U8=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class V8 extends Ru{constructor(t,r){super("wat"),this.url=`${za(t)}api/v1/wat/sessionToken`,this.body=`{"webAccessToken": "${r}"}`}authenticate(){return U8(this,void 0,void 0,function*(){if(this._tried)return this._result;this._tried=!0;try{this._authenticating=!0;const t=yield fetch(this.url,{method:"POST",headers:{accept:"application/json","Content-Type":"application/json"},body:this.body}).catch(Qh);if(t.ok){const r=yield t.json();this._initialiser=r.initialiser,this._webSessionToken=r.webSessionToken,this._resolve(!0)}}catch(t){throw new bi("errors.tokenAuthFailed")}finally{this._resolve(!1),this._authenticating=!1}return this._result})}applyHeaders(t){if(this._webSessionToken&&this._initialiser){const r=this._webSessionToken,n=this._initialiser;Zh(t,{Authorization:r,Initialiser:n})}}}function JE(e){return e.type==="wat"}var eM=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};function G8(e){var t,r,n;return eM(this,void 0,void 0,function*(){if(!e.ok){const i=(t=e.headers)===null||t===void 0?void 0:t.get("Content-Type"),a=i&&i.includes("application/json")?yield e.json().catch(()=>({})):{};throw new bi("errors.responseError",{status:e.status.toString(),statusText:e.statusText,errorCode:(r=a.error)===null||r===void 0?void 0:r.code,errorMessage:(n=a.error)===null||n===void 0?void 0:n.message,context:e.statusText?"withStatusText":"onlyStatus"})}return e})}function q8(e,t){if(t.invalidate(),J8(t))throw new bi("errors.passwordAuthFailed");if(QE(t)||JE(t))throw new bi("errors.tokenAuthFailed");return Ay(t)&&!t.isAuthenticating()&&t.authenticate(),e}function Y8(e){return e.message==="Failed to fetch"&&e.name==="TypeError"}function X8(){return console.warn("Network error. Verify server is accessible and your domain is added to 'CORS Allowed Origins' in Sisense Admin Panel -> Security Settings."),Promise.reject(new bi("errors.networkError"))}const K8=e=>t=>eM(void 0,void 0,void 0,function*(){return t.status===401?q8(t,e):t.ok?t:G8(t)}),Qh=e=>Y8(e)?X8():Promise.reject(e);var Z8=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class Q8 extends Ru{constructor(t,r,n){super("password"),this._authheader="",this.url=`${za(t)}api/v1/authentication/login`;const i=encodeURIComponent(r),a=encodeURIComponent(n);this.body=`username=${i}&password=${a}`}authenticate(){return Z8(this,void 0,void 0,function*(){if(this._tried)return this._result;this._tried=!0;try{this._authenticating=!0;const t=yield fetch(this.url,{method:"POST",headers:{accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:this.body}).catch(Qh);if(t.ok){const r=yield t.json();this._authheader=r.access_token}}finally{this._resolve(!!this._authheader),this._authenticating=!1}return this._result})}applyHeaders(t){const r="Bearer "+this._authheader;Zh(t,{Authorization:r})}}function J8(e){return e.type==="password"}class e7{constructor(){this.ready=!0,this.events=new dy,this.ready=!0}isReady(){return this.ready}on(t,r){this.events.on(t,r)}off(t,r){this.events.removeListener(t,r)}send(t,...r){const n=t||r;this.ready=!!n||!0}onMessage(t,r,n){this.onMessageCallback=n;const i=()=>{};return this.on("message",i),()=>{this.off("message",i)}}trigger(t,r){return new Promise(n=>{setTimeout(()=>{this.onMessageCallback&&this.onMessageCallback(t,r),n()},10)})}}const t7="pivot2";class r7{constructor(t,r,n=!1){this._url=t,this._auth=r,this._mockSocket=n}getQueryOptionsSso(t){return{}}getQueryOptionsBearer(t){const r=t.bearer;if(!r)throw new Error("Missing bearer token");return{token:r}}getQueryOptionsWat(t){const r=new Headers;t.applyHeaders(r);const n=r.get("Authorization"),i=r.get("Initialiser");if(!n||!i)throw new Error("Missing auth header");return{authorization:n,initialiser:i}}get socket(){if(!this._socket){if(this._mockSocket)return this._socket=new e7,this._socket;const t=this._auth,r=this._url;let n={};QE(t)?n=this.getQueryOptionsBearer(t):JE(t)?n=this.getQueryOptionsWat(t):Ay(t)&&(n=this.getQueryOptionsSso(t)),this._socket=new My(r,n,t7)}return this._socket}}var n7=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class tM{constructor(t,r,n=!1){this.socketBuilder=new r7(za(t),r,n)}queryData(t,r,n,i){return n7(this,void 0,void 0,function*(){return new R8(this.socketBuilder.socket).loadInitData(t,r,n,i)})}}var Gr={},rM={},Jh={},Py={};(function(e){var t=w.commonjsGlobal&&w.commonjsGlobal.__awaiter||function(i,a,o,s){function u(c){return c instanceof o?c:new o(function(d){d(c)})}return new(o||(o=Promise))(function(c,d){function h(v){try{m(s.next(v))}catch(g){d(g)}}function p(v){try{m(s.throw(v))}catch(g){d(g)}}function m(v){v.done?c(v.value):u(v.value).then(h,p)}m((s=s.apply(i,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Task=e.ExecutionResultStatus=void 0;var r;(function(i){i.SUCCESS="SUCCESS",i.ERROR="ERROR"})(r=e.ExecutionResultStatus||(e.ExecutionResultStatus={}));class n{constructor(a,o,s){this.steps=a,this.passport=o,this.addons=s,this.statistics={startTime:new Date,steps:[],runtimeInfo:{}},this.currentStep=void 0}run(a){return t(this,void 0,void 0,function*(){let o=a,s;for(let c=0;c<this.steps.length;c+=1){this.currentStep=this.steps[c];const{resultValue:d,info:h}=yield this.currentStep.run(this,o);if(this.statistics.steps.push(h),h.success)o=d;else{s=h.error;break}}const u=this.statistics.steps.length===this.steps.length&&this.statistics.steps.every(c=>c.success);return this.statistics.endTime=new Date,{status:u?r.SUCCESS:r.ERROR,error:s,result:u?o:void 0,statistics:this.statistics}})}cancel(a){var o;return t(this,void 0,void 0,function*(){yield(o=this.currentStep)===null||o===void 0?void 0:o.cancel(this,a)})}addRuntimeInfo(a,o){this.statistics.runtimeInfo[a]=o}emitAddonEvent(a,...o){var s;const u=a.split("."),c=u[0],d=u[1],h=(s=this.addons)===null||s===void 0?void 0:s.find(m=>m.addonName===c),p=(h==null?void 0:h.events)[d];p(...o)}}e.Task=n})(Py);var tm=w.commonjsGlobal&&w.commonjsGlobal.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.AbstractTaskManager=void 0;const i7=Py;class a7{constructor(t){this.runningTasks=new Map,this.addons=t||[]}runTask(t){return tm(this,void 0,void 0,function*(){const{taskId:r}=t.passport;this.runningTasks.set(r,t);const n=yield t.run();return this.runningTasks.delete(r),n})}createFlow(t){return r=>tm(this,void 0,void 0,function*(){const n=new i7.Task(t,r,this.addons);return this.runTask(n)})}cancel(t,r){return tm(this,void 0,void 0,function*(){const n=this.runningTasks.get(t);n&&(yield n.cancel(r))})}}Jh.AbstractTaskManager=a7;var ef={},Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});Ou.TaskCanceledError=void 0;class o7 extends Error{constructor(t){const r=`Task was canceled due to: "${t}"`;super(r)}}Ou.TaskCanceledError=o7;var Nw=w.commonjsGlobal&&w.commonjsGlobal.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(ef,"__esModule",{value:!0});ef.Step=void 0;const s7=Ou;class l7{constructor(t,r,n){this.taskSelfResolvers=new Map,this.taskStepInfos=new Map,this.name=t,this.runLogic=r,this.cancelLogic=n}run(t,r){return Nw(this,void 0,void 0,function*(){return this.addStepInfo(t,{name:this.name}),new Promise(n=>{const i=new Date,a=(o,s)=>{const u=new Date,c=u.getTime()-i.getTime();this.addStepInfo(t,{startTime:i,endTime:u,duration:c}),this.addStepInfo(t,s?{success:!1,error:s}:{success:!0}),n({resultValue:o,info:this.getStepInfo(t)})};this.taskSelfResolvers.set(t,a),this.runLogic(t,r).then(o=>a(o)).finally(()=>{this.taskSelfResolvers.delete(t),this.taskStepInfos.delete(t)}).catch(o=>a(void 0,o))})})}cancel(t,r){return Nw(this,void 0,void 0,function*(){this.addStepInfo(t,{wasCanceled:!0,cancelingReason:r});const n=this.taskSelfResolvers.get(t);n==null||n(void 0,new s7.TaskCanceledError(r)),this.taskSelfResolvers.delete(t),this.taskStepInfos.delete(t),yield this.cancelLogic(t,r)})}addStepInfo(t,r){const n=this.taskStepInfos.get(t)||{},i=Object.assign(Object.assign({},n),r);this.taskStepInfos.set(t,i)}getStepInfo(t){return this.taskStepInfos.get(t)}}ef.Step=l7;var tf={};Object.defineProperty(tf,"__esModule",{value:!0});tf.Addon=void 0;class u7{constructor(){this.events={}}}tf.Addon=u7;var rf={},Hc,c7=new Uint8Array(16);function nM(){if(!Hc&&(Hc=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Hc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hc(c7)}const d7=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function nf(e){return typeof e=="string"&&d7.test(e)}var hr=[];for(var rm=0;rm<256;++rm)hr.push((rm+256).toString(16).substr(1));function af(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(hr[e[t+0]]+hr[e[t+1]]+hr[e[t+2]]+hr[e[t+3]]+"-"+hr[e[t+4]]+hr[e[t+5]]+"-"+hr[e[t+6]]+hr[e[t+7]]+"-"+hr[e[t+8]]+hr[e[t+9]]+"-"+hr[e[t+10]]+hr[e[t+11]]+hr[e[t+12]]+hr[e[t+13]]+hr[e[t+14]]+hr[e[t+15]]).toLowerCase();if(!nf(r))throw TypeError("Stringified UUID is invalid");return r}var Iw,nm,im=0,am=0;function h7(e,t,r){var n=t&&r||0,i=t||new Array(16);e=e||{};var a=e.node||Iw,o=e.clockseq!==void 0?e.clockseq:nm;if(a==null||o==null){var s=e.random||(e.rng||nM)();a==null&&(a=Iw=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),o==null&&(o=nm=(s[6]<<8|s[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:am+1,d=u-im+(c-am)/1e4;if(d<0&&e.clockseq===void 0&&(o=o+1&16383),(d<0||u>im)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");im=u,am=c,nm=o,u+=122192928e5;var h=((u&268435455)*1e4+c)%4294967296;i[n++]=h>>>24&255,i[n++]=h>>>16&255,i[n++]=h>>>8&255,i[n++]=h&255;var p=u/4294967296*1e4&268435455;i[n++]=p>>>8&255,i[n++]=p&255,i[n++]=p>>>24&15|16,i[n++]=p>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(var m=0;m<6;++m)i[n+m]=a[m];return t||af(i)}function iM(e){if(!nf(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function f7(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var p7="6ba7b810-9dad-11d1-80b4-00c04fd430c8",m7="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function aM(e,t,r){function n(i,a,o,s){if(typeof i=="string"&&(i=f7(i)),typeof a=="string"&&(a=iM(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+i.length);if(u.set(a),u.set(i,a.length),u=r(u),u[6]=u[6]&15|t,u[8]=u[8]&63|128,o){s=s||0;for(var c=0;c<16;++c)o[s+c]=u[c];return o}return af(u)}try{n.name=e}catch(i){}return n.DNS=p7,n.URL=m7,n}function g7(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return v7(y7(b7(e),e.length*8))}function v7(e){for(var t=[],r=e.length*32,n="0123456789abcdef",i=0;i<r;i+=8){var a=e[i>>5]>>>i%32&255,o=parseInt(n.charAt(a>>>4&15)+n.charAt(a&15),16);t.push(o)}return t}function oM(e){return(e+64>>>9<<4)+14+1}function y7(e,t){e[t>>5]|=128<<t%32,e[oM(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=r,u=n,c=i,d=a;r=yr(r,n,i,a,e[o],7,-680876936),a=yr(a,r,n,i,e[o+1],12,-389564586),i=yr(i,a,r,n,e[o+2],17,606105819),n=yr(n,i,a,r,e[o+3],22,-1044525330),r=yr(r,n,i,a,e[o+4],7,-176418897),a=yr(a,r,n,i,e[o+5],12,1200080426),i=yr(i,a,r,n,e[o+6],17,-1473231341),n=yr(n,i,a,r,e[o+7],22,-45705983),r=yr(r,n,i,a,e[o+8],7,1770035416),a=yr(a,r,n,i,e[o+9],12,-1958414417),i=yr(i,a,r,n,e[o+10],17,-42063),n=yr(n,i,a,r,e[o+11],22,-1990404162),r=yr(r,n,i,a,e[o+12],7,1804603682),a=yr(a,r,n,i,e[o+13],12,-40341101),i=yr(i,a,r,n,e[o+14],17,-1502002290),n=yr(n,i,a,r,e[o+15],22,1236535329),r=br(r,n,i,a,e[o+1],5,-165796510),a=br(a,r,n,i,e[o+6],9,-1069501632),i=br(i,a,r,n,e[o+11],14,643717713),n=br(n,i,a,r,e[o],20,-373897302),r=br(r,n,i,a,e[o+5],5,-701558691),a=br(a,r,n,i,e[o+10],9,38016083),i=br(i,a,r,n,e[o+15],14,-660478335),n=br(n,i,a,r,e[o+4],20,-405537848),r=br(r,n,i,a,e[o+9],5,568446438),a=br(a,r,n,i,e[o+14],9,-1019803690),i=br(i,a,r,n,e[o+3],14,-187363961),n=br(n,i,a,r,e[o+8],20,1163531501),r=br(r,n,i,a,e[o+13],5,-1444681467),a=br(a,r,n,i,e[o+2],9,-51403784),i=br(i,a,r,n,e[o+7],14,1735328473),n=br(n,i,a,r,e[o+12],20,-1926607734),r=_r(r,n,i,a,e[o+5],4,-378558),a=_r(a,r,n,i,e[o+8],11,-2022574463),i=_r(i,a,r,n,e[o+11],16,1839030562),n=_r(n,i,a,r,e[o+14],23,-35309556),r=_r(r,n,i,a,e[o+1],4,-1530992060),a=_r(a,r,n,i,e[o+4],11,1272893353),i=_r(i,a,r,n,e[o+7],16,-155497632),n=_r(n,i,a,r,e[o+10],23,-1094730640),r=_r(r,n,i,a,e[o+13],4,681279174),a=_r(a,r,n,i,e[o],11,-358537222),i=_r(i,a,r,n,e[o+3],16,-722521979),n=_r(n,i,a,r,e[o+6],23,76029189),r=_r(r,n,i,a,e[o+9],4,-640364487),a=_r(a,r,n,i,e[o+12],11,-421815835),i=_r(i,a,r,n,e[o+15],16,530742520),n=_r(n,i,a,r,e[o+2],23,-995338651),r=wr(r,n,i,a,e[o],6,-198630844),a=wr(a,r,n,i,e[o+7],10,1126891415),i=wr(i,a,r,n,e[o+14],15,-1416354905),n=wr(n,i,a,r,e[o+5],21,-57434055),r=wr(r,n,i,a,e[o+12],6,1700485571),a=wr(a,r,n,i,e[o+3],10,-1894986606),i=wr(i,a,r,n,e[o+10],15,-1051523),n=wr(n,i,a,r,e[o+1],21,-2054922799),r=wr(r,n,i,a,e[o+8],6,1873313359),a=wr(a,r,n,i,e[o+15],10,-30611744),i=wr(i,a,r,n,e[o+6],15,-1560198380),n=wr(n,i,a,r,e[o+13],21,1309151649),r=wr(r,n,i,a,e[o+4],6,-145523070),a=wr(a,r,n,i,e[o+11],10,-1120210379),i=wr(i,a,r,n,e[o+2],15,718787259),n=wr(n,i,a,r,e[o+9],21,-343485551),r=Xi(r,s),n=Xi(n,u),i=Xi(i,c),a=Xi(a,d)}return[r,n,i,a]}function b7(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array(oM(t)),n=0;n<t;n+=8)r[n>>5]|=(e[n/8]&255)<<n%32;return r}function Xi(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function _7(e,t){return e<<t|e>>>32-t}function of(e,t,r,n,i,a){return Xi(_7(Xi(Xi(t,e),Xi(n,a)),i),r)}function yr(e,t,r,n,i,a,o){return of(t&r|~t&n,e,t,i,a,o)}function br(e,t,r,n,i,a,o){return of(t&n|r&~n,e,t,i,a,o)}function _r(e,t,r,n,i,a,o){return of(t^r^n,e,t,i,a,o)}function wr(e,t,r,n,i,a,o){return of(r^(t|~n),e,t,i,a,o)}var w7=aM("v3",48,g7);function C7(e,t,r){e=e||{};var n=e.random||(e.rng||nM)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return af(n)}function x7(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function om(e,t){return e<<t|e>>>32-t}function T7(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o),u=0;u<o;++u){for(var c=new Uint32Array(16),d=0;d<16;++d)c[d]=e[u*64+d*4]<<24|e[u*64+d*4+1]<<16|e[u*64+d*4+2]<<8|e[u*64+d*4+3];s[u]=c}s[o-1][14]=(e.length-1)*8/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(e.length-1)*8&4294967295;for(var h=0;h<o;++h){for(var p=new Uint32Array(80),m=0;m<16;++m)p[m]=s[h][m];for(var v=16;v<80;++v)p[v]=om(p[v-3]^p[v-8]^p[v-14]^p[v-16],1);for(var g=r[0],b=r[1],C=r[2],x=r[3],E=r[4],T=0;T<80;++T){var A=Math.floor(T/20),R=om(g,5)+x7(A,b,C,x)+E+t[A]+p[T]>>>0;E=x,x=C,C=om(b,30)>>>0,b=g,g=R}r[0]=r[0]+g>>>0,r[1]=r[1]+b>>>0,r[2]=r[2]+C>>>0,r[3]=r[3]+x>>>0,r[4]=r[4]+E>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var S7=aM("v5",80,T7);const E7="00000000-0000-0000-0000-000000000000";function M7(e){if(!nf(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const A7=Object.freeze(Object.defineProperty({__proto__:null,NIL:E7,parse:iM,stringify:af,v1:h7,v3:w7,v4:C7,v5:S7,validate:nf,version:M7},Symbol.toStringTag,{value:"Module"})),P7=w.getAugmentedNamespace(A7);Object.defineProperty(rf,"__esModule",{value:!0});rf.TaskPassport=void 0;const R7=P7;class O7{constructor(){this.taskId=(0,R7.v4)()}}rf.TaskPassport=O7;(function(e){var t=w.commonjsGlobal&&w.commonjsGlobal.__createBinding||(Object.create?function(n,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,o,s)}:function(n,i,a,o){o===void 0&&(o=a),n[o]=i[a]}),r=w.commonjsGlobal&&w.commonjsGlobal.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Jh,e),r(ef,e),r(Py,e),r(tf,e),r(rf,e),r(Ou,e)})(rM);(function(e){var t=w.commonjsGlobal&&w.commonjsGlobal.__createBinding||(Object.create?function(n,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,o,s)}:function(n,i,a,o){o===void 0&&(o=a),n[o]=i[a]}),r=w.commonjsGlobal&&w.commonjsGlobal.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(rM,e)})(Gr);class xr extends D.AbstractTranslatableError{constructor(t,r){super(jS,{key:t,interpolationOptions:r},O6.t)}get status(){return this.interpolationOptions.status}}var k7=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};const ru="api/datasources",D7="api/v2/datamodels";class N7{constructor(t){this.httpClient=t}getDataSourceFields(t,r=9999,n=0){const i=D.getDataSourceName(t),a=`${ru}/${encodeURI(i)}/fields/search`;return this.httpClient.post(a,{offset:n,count:r}).catch(()=>{throw new xr("errors.dataSourceNotFound",{dataSource:typeof t=="string"?t:t.title})})}getDataSourceList(){const t=`${ru}/?sharedWith=r,w`;return this.httpClient.get(t)}getDataSourceSchema(t){const r=`${D7}/schema?title=${encodeURIComponent(t)}`;return this.httpClient.get(r)}sendJaqlRequest(t,r){const n=sM(t),i=new AbortController;return{responsePromise:this.httpClient.post(n,r,void 0,i.signal).then(a=>Array.isArray(a)?{values:[],metadata:[]}:a),abortHttpRequest:a=>i.abort(a)}}sendDownloadCsvRequest(t,r){const n=F7(t),i=new AbortController,a=new URLSearchParams;return a.append("data",encodeURIComponent(JSON.stringify(r))),{responsePromise:this.httpClient.post(n,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}},i.signal,{nonJSONBody:!0,returnBlob:!0}),abortHttpRequest:o=>i.abort(o)}}sendCancelJaqlQueryRequest(t,r){return this.sendCancelMultipleJaqlQueriesRequest([t],r)}sendCancelMultipleJaqlQueriesRequest(t,r){return k7(this,void 0,void 0,function*(){const n={queries:t.join(";")},i=I7(r);try{yield this.httpClient.post(i,n)}catch(a){if(a.status==="404"){const o=L7(r);yield this.httpClient.post(o,n)}else throw a}})}}function I7(e){const t=encodeURIComponent(D.getDataSourceName(e));return`${ru}/localhost/${t}/cancel_queries`}function L7(e){const t=encodeURIComponent(D.getDataSourceName(e));return`${ru}/live/${t}/cancel_queries`}function sM(e){const t=encodeURIComponent(D.getDataSourceName(e));return`${ru}/${t}/jaql`}function F7(e){return`${sM(e)}/csv`}var lM={exports:{}};/*! @preserve
206
- * numeral.js
207
- * version : 2.0.6
208
- * author : Adam Draper
209
- * license : MIT
210
- * http://adamwdraper.github.com/Numeral-js/
211
- */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(w.commonjsGlobal,function(){var t,r,n="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(c,d){this._input=c,this._value=d}return t=function(c){var d,h,p,m;if(t.isNumeral(c))d=c.value();else if(c===0||typeof c=="undefined")d=0;else if(c===null||r.isNaN(c))d=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)d=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)d=null;else{for(h in i)if(m=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,m&&c.match(m)){p=i[h].unformat;break}p=p||t._.stringToNumber,d=p(c)}else d=Number(c)||null;return new u(c,d)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,d,h){var p=a[t.options.currentLocale],m=!1,v=!1,g=0,b="",C=1e12,x=1e9,E=1e6,T=1e3,A="",R=!1,N,I,H,G,Y,O,F;if(c=c||0,I=Math.abs(c),t._.includes(d,"(")?(m=!0,d=d.replace(/[\(|\)]/g,"")):(t._.includes(d,"+")||t._.includes(d,"-"))&&(Y=t._.includes(d,"+")?d.indexOf("+"):c<0?d.indexOf("-"):-1,d=d.replace(/[\+|\-]/g,"")),t._.includes(d,"a")&&(N=d.match(/a(k|m|b|t)?/),N=N?N[1]:!1,t._.includes(d," a")&&(b=" "),d=d.replace(new RegExp(b+"a[kmbt]?"),""),I>=C&&!N||N==="t"?(b+=p.abbreviations.trillion,c=c/C):I<C&&I>=x&&!N||N==="b"?(b+=p.abbreviations.billion,c=c/x):I<x&&I>=E&&!N||N==="m"?(b+=p.abbreviations.million,c=c/E):(I<E&&I>=T&&!N||N==="k")&&(b+=p.abbreviations.thousand,c=c/T)),t._.includes(d,"[.]")&&(v=!0,d=d.replace("[.]",".")),H=c.toString().split(".")[0],G=d.split(".")[1],O=d.indexOf(","),g=(d.split(".")[0].split(",")[0].match(/0/g)||[]).length,G?(t._.includes(G,"[")?(G=G.replace("]",""),G=G.split("["),A=t._.toFixed(c,G[0].length+G[1].length,h,G[1].length)):A=t._.toFixed(c,G.length,h),H=A.split(".")[0],t._.includes(A,".")?A=p.delimiters.decimal+A.split(".")[1]:A="",v&&Number(A.slice(1))===0&&(A="")):H=t._.toFixed(c,0,h),b&&!N&&Number(H)>=1e3&&b!==p.abbreviations.trillion)switch(H=String(Number(H)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(H,"-")&&(H=H.slice(1),R=!0),H.length<g)for(var X=g-H.length;X>0;X--)H="0"+H;return O>-1&&(H=H.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),d.indexOf(".")===0&&(H=""),F=H+A+(b||""),m?F=(m&&R?"(":"")+F+(m&&R?")":""):Y>=0?F=Y===0?(R?"-":"+")+F:F+(R?"-":"+"):R&&(F="-"+F),F},stringToNumber:function(c){var d=a[s.currentLocale],h=c,p={thousand:3,million:6,billion:9,trillion:12},m,v,g;if(s.zeroFormat&&c===s.zeroFormat)v=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)v=null;else{v=1,d.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(d.delimiters.decimal,"."));for(m in p)if(g=new RegExp("[^a-zA-Z]"+d.abbreviations[m]+"(?:\\)|(\\"+d.currency.symbol+")?(?:\\))?)?$"),h.match(g)){v*=Math.pow(10,p[m]);break}v*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),v*=Number(c)}return v},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,d){return c.indexOf(d)!==-1},insert:function(c,d,h){return c.slice(0,h)+d+c.slice(h)},reduce:function(c,d){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof d!="function")throw new TypeError(d+" is not a function");var h=Object(c),p=h.length>>>0,m=0,v;if(arguments.length===3)v=arguments[2];else{for(;m<p&&!(m in h);)m++;if(m>=p)throw new TypeError("Reduce of empty array with no initial value");v=h[m++]}for(;m<p;m++)m in h&&(v=d(v,h[m],m,h));return v},multiplier:function(c){var d=c.toString().split(".");return d.length<2?1:Math.pow(10,d[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(d,h){var p=r.multiplier(h);return d>p?d:p},1)},toFixed:function(c,d,h,p){var m=c.toString().split("."),v=d-(p||0),g,b,C,x;return m.length===2?g=Math.min(Math.max(m[1].length,v),d):g=v,C=Math.pow(10,g),x=(h(c+"e+"+g)/C).toFixed(g),p>d-g&&(b=new RegExp("\\.?0{1,"+(p-(d-g))+"}$"),x=x.replace(b,"")),x}},t.options=s,t.formats=i,t.locales=a,t.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},t.localeData=function(c){if(!c)return a[s.currentLocale];if(c=c.toLowerCase(),!a[c])throw new Error("Unknown locale : "+c);return a[c]},t.reset=function(){for(var c in o)s[c]=o[c]},t.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,d,h){if(d=d.toLowerCase(),this[c+"s"][d])throw new TypeError(d+" "+c+" already registered.");return this[c+"s"][d]=h,h},t.validate=function(c,d){var h,p,m,v,g,b,C,x;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{C=t.localeData(d)}catch(E){C=t.localeData(t.locale())}return m=C.currency.symbol,g=C.abbreviations,h=C.delimiters.decimal,C.delimiters.thousands==="."?p="\\.":p=C.delimiters.thousands,x=c.match(/^[^\d]+/),x!==null&&(c=c.substr(1),x[0]!==m)||(x=c.match(/[^\d]+$/),x!==null&&(c=c.slice(0,-1),x[0]!==g.thousand&&x[0]!==g.million&&x[0]!==g.billion&&x[0]!==g.trillion))?!1:(b=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(v=c.split(h),v.length>2?!1:v.length<2?!!v[0].match(/^\d+.*\d$/)&&!v[0].match(b):v[0].length===1?!!v[0].match(/^\d+$/)&&!v[0].match(b)&&!!v[1].match(/^\d+$/):!!v[0].match(/^\d+.*\d$/)&&!v[0].match(b)&&!!v[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,d){var h=this._value,p=c||s.defaultFormat,m,v,g;if(d=d||Math.round,h===0&&s.zeroFormat!==null)v=s.zeroFormat;else if(h===null&&s.nullFormat!==null)v=s.nullFormat;else{for(m in i)if(p.match(i[m].regexps.format)){g=i[m].format;break}g=g||t._.numberToFormat,v=g(h,p,d)}return v},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var d=r.correctionFactor.call(null,this._value,c);function h(p,m,v,g){return p+Math.round(d*m)}return this._value=r.reduce([this._value,c],h,0)/d,this},subtract:function(c){var d=r.correctionFactor.call(null,this._value,c);function h(p,m,v,g){return p-Math.round(d*m)}return this._value=r.reduce([c],h,Math.round(this._value*d))/d,this},multiply:function(c){function d(h,p,m,v){var g=r.correctionFactor(h,p);return Math.round(h*g)*Math.round(p*g)/Math.round(g*g)}return this._value=r.reduce([this._value,c],d,1),this},divide:function(c){function d(h,p,m,v){var g=r.correctionFactor(h,p);return Math.round(h*g)/Math.round(p*g)}return this._value=r.reduce([this._value,c],d),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var d=c%10;return~~(c%100/10)===1?"th":d===1?"st":d===2?"nd":d===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,d,h){var p=t._.includes(d," BPS")?" ":"",m;return c=c*1e4,d=d.replace(/\s?BPS/,""),m=t._.numberToFormat(c,d,h),t._.includes(m,")")?(m=m.split(""),m.splice(-1,0,p+"BPS"),m=m.join("")):m=m+p+"BPS",m},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},d={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(d.suffixes.filter(function(m){return c.suffixes.indexOf(m)<0})),p=h.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(m,v,g){var b,C=t._.includes(v,"ib")?d:c,x=t._.includes(v," b")||t._.includes(v," ib")?" ":"",E,T,A;for(v=v.replace(/\s?i?b/,""),E=0;E<=C.suffixes.length;E++)if(T=Math.pow(C.base,E),A=Math.pow(C.base,E+1),m===null||m===0||m>=T&&m<A){x+=C.suffixes[E],T>0&&(m=m/T);break}return b=t._.numberToFormat(m,v,g),b+x},unformat:function(m){var v=t._.stringToNumber(m),g,b;if(v){for(g=c.suffixes.length-1;g>=0;g--){if(t._.includes(m,c.suffixes[g])){b=Math.pow(c.base,g);break}if(t._.includes(m,d.suffixes[g])){b=Math.pow(d.base,g);break}}v*=b||1}return v}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,d,h){var p=t.locales[t.options.currentLocale],m={before:d.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:d.match(/([\+|\-|\)|\s|\$]*)$/)[0]},v,g,b;for(d=d.replace(/\s?\$\s?/,""),v=t._.numberToFormat(c,d,h),c>=0?(m.before=m.before.replace(/[\-\(]/,""),m.after=m.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(m.before,"-")&&!t._.includes(m.before,"(")&&(m.before="-"+m.before),b=0;b<m.before.length;b++)switch(g=m.before[b],g){case"$":v=t._.insert(v,p.currency.symbol,b);break;case" ":v=t._.insert(v," ",b+p.currency.symbol.length-1);break}for(b=m.after.length-1;b>=0;b--)switch(g=m.after[b],g){case"$":v=b===m.after.length-1?v+p.currency.symbol:t._.insert(v,p.currency.symbol,-(m.after.length-(1+b)));break;case" ":v=b===m.after.length-1?v+" ":t._.insert(v," ",-(m.after.length-(1+b)+p.currency.symbol.length-1));break}return v}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,d,h){var p,m=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",v=m.split("e");return d=d.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(v[0]),d,h),p+"e"+v[1]},unformat:function(c){var d=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(d[0]),p=Number(d[1]);p=t._.includes(c,"e-")?p*=-1:p;function m(v,g,b,C){var x=t._.correctionFactor(v,g),E=v*x*(g*x)/(x*x);return E}return t._.reduce([h,Math.pow(10,p)],m,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,d,h){var p=t.locales[t.options.currentLocale],m,v=t._.includes(d," o")?" ":"";return d=d.replace(/\s?o/,""),v+=p.ordinal(c),m=t._.numberToFormat(c,d,h),m+v}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,d,h){var p=t._.includes(d," %")?" ":"",m;return t.options.scalePercentBy100&&(c=c*100),d=d.replace(/\s?\%/,""),m=t._.numberToFormat(c,d,h),t._.includes(m,")")?(m=m.split(""),m.splice(-1,0,p+"%"),m=m.join("")):m=m+p+"%",m},unformat:function(c){var d=t._.stringToNumber(c);return t.options.scalePercentBy100?d*.01:d}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,d,h){var p=Math.floor(c/60/60),m=Math.floor((c-p*60*60)/60),v=Math.round(c-p*60*60-m*60);return p+":"+(m<10?"0"+m:m)+":"+(v<10?"0"+v:v)},unformat:function(c){var d=c.split(":"),h=0;return d.length===3?(h=h+Number(d[0])*60*60,h=h+Number(d[1])*60,h=h+Number(d[2])):d.length===2&&(h=h+Number(d[0])*60,h=h+Number(d[1])),Number(h)}})}(),t})})(lM);var $7=lM.exports;const B7=w.getDefaultExportFromCjs($7),H7=(e,t)=>{const r=W7(e);return z7(r,t)};function z7(e,t){return{columns:t==null?void 0:t.map(r=>({name:r.name,type:D.simpleColumnType(r.type)})),rows:j7(e)}}function j7(e){var t;let r=!1;const n=(t=e[0])===null||t===void 0?void 0:t.map((i,a)=>{const o=e.some(s=>"selected"in s[a]);return o&&(r=!0),o});return e.map(i=>{const a=r?n.some((o,s)=>o&&!i[s].selected):void 0;return i.map(o=>a!==void 0?{data:o.data,text:o.text,blur:a}:{data:o.data,text:o.text})})}function W7({values:e=[],metadata:t=[]}){var r,n,i,a;e[0]&&!Array.isArray(e[0])&&(e=[e]);for(let o=0;o<e.length;o++){const s=e[o];for(let u=0;u<s.length;u++)t[u].format&&(!((n=(r=t[u])===null||r===void 0?void 0:r.format)===null||n===void 0)&&n.number)&&(s[u].text=B7(s[u].data).format((a=(i=t[u])===null||i===void 0?void 0:i.format)===null||a===void 0?void 0:a.number))}return e}var ga=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class U7 extends Gr.AbstractTaskManager{constructor(t,r){super(),this.sentRequestsAbortersMap=new Map,this.executeQuerySending=super.createFlow([new Gr.Step("PREPARE_JAQL_PAYLOAD",this.prepareJaqlPayload.bind(this),()=>ga(this,void 0,void 0,function*(){})),new Gr.Step("SEND_JAQL_QUERY",this.sendJaqlQuery.bind(this),this.cancelDataRetrievalQuery.bind(this))]),this.executeDownloadCsvSending=super.createFlow([new Gr.Step("PREPARE_JAQL_PAYLOAD",this.prepareJaqlPayload.bind(this),()=>ga(this,void 0,void 0,function*(){})),new Gr.Step("SEND_DOWNLOAD_CSV_QUERY",this.sendCsvQuery.bind(this),this.cancelDataRetrievalQuery.bind(this))]),this.executePivotQuerySending=super.createFlow([new Gr.Step("PREPARE_JAQL_PAYLOAD",this.preparePivotJaqlPayload.bind(this),()=>ga(this,void 0,void 0,function*(){})),new Gr.Step("SEND_JAQL_QUERY",this.sendPivotJaqlQuery.bind(this),this.cancelPivotJaqlQuery.bind(this))]),this.queryApi=t,this.pivotQueryClient=r}prepareJaqlPayload(t){return ga(this,void 0,void 0,function*(){const{queryDescription:r,executionConfig:n}=t.passport,i=D.getJaqlQueryPayload(r,n.shouldSkipHighlightsWithoutAttributes),a=t.passport.executionConfig.onBeforeQuery;return a?a(i):i})}sendJaqlQuery(t,r){return ga(this,void 0,void 0,function*(){const{queryDescription:n,taskId:i}=t.passport,{responsePromise:a,abortHttpRequest:o}=this.queryApi.sendJaqlRequest(t.passport.queryDescription.dataSource,r);this.sentRequestsAbortersMap.set(i,o);const s=yield a.finally(()=>{this.sentRequestsAbortersMap.delete(i)});V7(s);const u=[...n.attributes,...n.measures],c=(s.headers||[]).slice(u.length).map(d=>({name:d,type:"number"}));return H7(s,[...u,...c])})}sendCsvQuery(t,r){return ga(this,void 0,void 0,function*(){const{taskId:n}=t.passport,{responsePromise:i,abortHttpRequest:a}=this.queryApi.sendDownloadCsvRequest(t.passport.queryDescription.dataSource,r);return this.sentRequestsAbortersMap.set(n,a),i.finally(()=>{this.sentRequestsAbortersMap.delete(n)})})}cancelDataRetrievalQuery(t){const r=t.passport.taskId,n=this.sentRequestsAbortersMap.get(r);return n&&(n(),this.sentRequestsAbortersMap.delete(r)),this.queryApi.sendCancelJaqlQueryRequest(r,t.passport.queryDescription.dataSource)}preparePivotJaqlPayload(t){return ga(this,void 0,void 0,function*(){const{pivotQueryDescription:r,executionConfig:n}=t.passport,i=D.getPivotJaqlQueryPayload(r,n.shouldSkipHighlightsWithoutAttributes),a=t.passport.executionConfig.onBeforeQuery;return a?a(i):i})}sendPivotJaqlQuery(t,r){var n;const{pivotQueryDescription:i}=t.passport;return this.pivotQueryClient.queryData(r,!0,(n=i.count)!==null&&n!==void 0?n:q7,!1)}cancelPivotJaqlQuery(t){const r=t.passport.taskId,n=this.sentRequestsAbortersMap.get(r);return n&&(n(),this.sentRequestsAbortersMap.delete(r)),this.queryApi.sendCancelJaqlQueryRequest(r,t.passport.pivotQueryDescription.dataSource)}}function V7(e){var t;if(!e)throw new xr("errors.noJaqlResponse");if(e.error)throw new Error(`${e.details} ${(t=e.database)!==null&&t!==void 0?t:""} ${e.extraDetails?JSON.stringify(e.extraDetails):""}`)}class Lw extends Gr.TaskPassport{constructor(t,r,n){super(),this.queryDescription=r,this.type=t,this.executionConfig=n}}class G7 extends Gr.TaskPassport{constructor(t,r,n){super(),this.pivotQueryDescription=r,this.type=t,this.executionConfig=n}}var Fw=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};const q7=2e4,sm="Unspecified reason";class Y7{constructor(t,r=new tM(t.url,t.auth),n){X7(t),this.queryApi=new N7(t),this.taskManager=new U7(this.queryApi,r),this.shouldSkipHighlightsWithoutAttributes=n!=null?n:!1}executeQuery(t,r){const n=new Lw("SEND_JAQL_QUERY",t,Object.assign(Object.assign({},r||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((i,a)=>{$w(t),this.taskManager.executeQuerySending(n).then(o=>{o.status===Gr.ExecutionResultStatus.SUCCESS?i(o.result):a(o.error)})}),cancel:i=>this.taskManager.cancel(n.taskId,i||sm)}}executeCsvQuery(t,r){const n=new Lw("SEND_DOWNLOAD_CSV_QUERY",t,Object.assign(Object.assign({},r||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((i,a)=>{$w(t),this.taskManager.executeDownloadCsvSending(n).then(o=>{o.status===Gr.ExecutionResultStatus.SUCCESS?i(o.result):a(o.error)})}),cancel:i=>this.taskManager.cancel(n.taskId,i||sm)}}executePivotQuery(t,r){const n=new G7("SEND_JAQL_QUERY",t,Object.assign(Object.assign({},r||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((i,a)=>{uM(t),this.taskManager.executePivotQuerySending(n).then(o=>{o.status===Gr.ExecutionResultStatus.SUCCESS?i(o.result):a(o.error)})}),cancel:i=>this.taskManager.cancel(n.taskId,i||sm)}}getDataSourceFields(t,r=9999,n=0){return Fw(this,void 0,void 0,function*(){return(yield this.queryApi.getDataSourceFields(t,r,n))||[]})}getDataSourceSchema(t){return this.queryApi.getDataSourceSchema(t)}getDataSourceList(){return Fw(this,void 0,void 0,function*(){return(yield this.queryApi.getDataSourceList())||[]})}}function $w(e){const{attributes:t,measures:r,filters:n,highlights:i,count:a,offset:o}=e;if(a&&a<0)throw new xr("errors.invalidCountNegative",{count:a.toString()});if(o&&o<0)throw new xr("errors.invalidOffset",{offset:o.toString()});if(t.length+r.length===0)throw new xr("errors.noDimensionsOrMeasures");t.forEach(s=>{if(!s.skipValidation&&!D.MetadataTypes.isAttribute(s)){const{name:u}=s;throw new xr("errors.invalidAttribute",{attributeName:u})}}),r.forEach(s=>{if(!s.skipValidation&&!D.MetadataTypes.isMeasure(s))throw new xr("errors.invalidMeasure",{measureName:s.name})}),n.forEach(s=>{if(!s.skipValidation&&!D.MetadataTypes.isFilter(s))throw new xr("errors.invalidFilter",{filterName:s.name})}),i.forEach(s=>{if(!s.skipValidation&&!D.MetadataTypes.isFilter(s))throw new xr("errors.invalidHighlight",{highlightName:s.name})})}function uM(e){const{rowsAttributes:t,columnsAttributes:r,measures:n,filters:i,highlights:a,count:o,offset:s}=e;if(o&&o<0)throw new xr("errors.invalidCountNegative",{count:o.toString()});if(s&&s<0)throw new xr("errors.invalidOffset",{offset:s.toString()});if(t.length+r.length+n.length===0)throw new xr("errors.noDimensionsOrMeasures");i.forEach(u=>{if(!u.skipValidation&&!D.MetadataTypes.isFilter(u))throw new xr("errors.invalidFilter",{filterName:u.name})}),a.forEach(u=>{if(!u.skipValidation&&!D.MetadataTypes.isFilter(u))throw new xr("errors.invalidHighlight",{highlightName:u.name})})}function X7(e){if(!e)throw new xr("errors.missingHttpClient");if(!e.post)throw new xr("errors.missingPostMethod")}function On(e){var o,s;const{app:t,queryDescription:r,executionConfig:n}=e;return(((s=(o=t==null?void 0:t.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?s:!1)?D.executeQueryWithCache:D.executeQuery)(r,t,n)}const K7=(e,t)=>{const r=w.getPaletteColor(t,0),n=w.toGray(r),i=w.scaleBrightness(r,-.2),a=e.minColor===w.DEFAULT_COLOR||e.minColor===n,o=e.maxColor===w.DEFAULT_COLOR||e.maxColor===i;return a&&o?"auto":a?"max":o?"min":"both"},Z7=(e,t)=>{let r={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const o=parseFloat(`${e.minvalue}`),s=parseFloat(`${e.midvalue}`),u=parseFloat(`${e.maxvalue}`);r=M(M(M(M({},r),o&&{minValue:o}),s&&{midValue:s}),u&&{maxValue:u})}const n=w.getPaletteColor(t,0),i=w.scaleBrightness(n,.2),a=w.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return B(M({},r),{minColor:w.toGray(n),maxColor:a});case"both":return B(M({},r),{minColor:e.min||i,maxColor:e.max||a});case"min":return B(M({},r),{minColor:e.min||i,maxColor:w.DEFAULT_COLOR});case"max":return B(M({},r),{minColor:w.DEFAULT_COLOR,maxColor:e.max||a})}},cM=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return M({type:"uniform",color:e.color||w.getPaletteColor(t,e.colorIndex||0)},e.colorIndex!==void 0&&{colorIndex:e.colorIndex});case"range":return Z7(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(r=>typeof r.expression=="string").map(({color:r,expression:n,operator:i})=>({color:r,expression:n,operator:i})),defaultColor:w.getPaletteColor(t,0)};default:return w.getUniformColorOptionsFromString(w.getPaletteColor(t,0))}},dM=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),Q7=(e,t)=>{if(e===void 0)return;const r=w.getPaletteColor(t,0);if(typeof e=="string")return{type:"color",color:e};switch(e.type){case"uniform":return B(M({type:"color",color:e.color},e.colorIndex!==void 0&&{colorIndex:e.colorIndex}),{isHandPickedColor:e.colorIndex===void 0});case"range":{const n=w.getPaletteColor(t,0),i=w.toGray(n),a=w.scaleBrightness(n,-.2),o=K7(e,t),s={type:"range",steps:e.steps||5,rangeMode:o,min:o==="max"?i:e.minColor,max:o==="min"?a:e.maxColor};return s.rangeMode!=="auto"&&(e.minValue!==void 0&&(s.minvalue=e.minValue.toString()),e.midValue!==void 0&&(s.midvalue=e.midValue.toString()),e.maxValue!==void 0&&(s.maxvalue=e.maxValue.toString())),s}case"conditional":return{type:"condition",conditions:(e.conditions||[]).filter(n=>typeof n.expression=="string").map(({color:n,expression:i,operator:a})=>({color:n||r,expression:i,operator:a}))};default:return{type:"color",color:r,colorIndex:0}}},J7=e=>e.reduce((t,r)=>{var n,i;return(n=r.format)!=null&&n.members&&(t[D.normalizeName(r.jaql.title)]=dM((i=r.format)==null?void 0:i.members)),t},{}),eB=w.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>B(M({},e),{color:t})}),tB=cM({type:"range",steps:5,rangeMode:"auto"}),rB=(e,t)=>{var o,s;const r=w.getColumnByName(t,e.geo.column.name),n=w.getColumnByName(t,(s=(o=e.color)==null?void 0:o.column.name)!=null?s:e.geo.column.name);if(!r||!n)throw new D.TranslatableError("errors.requiredColumnMissing",{hint:"geo or color column is missing for Areamap"});const i=t.rows.map(u=>{var p;const c=w.getValue(u,n),d=w.getCompleteNumberFormatConfig((p=e.color)==null?void 0:p.numberFormatConfig),h=w.applyFormatPlainText(d,c);return{geoName:w.getValue(u,r),originalValue:c,formattedOriginalValue:h}});let a;return e.color&&(a=eB(i,e.color.color||tB)),{type:"areamap",geoData:a||i}},nB={loadData:On,getChartData:rB},Ry=50,iB=1e3,aB=500,Wd=1e5,Hr={lineType:"straight",stackType:"classic",legend:{enabled:!0,position:"bottom"},lineWidth:2,marker:{enabled:!1,size:"small",fill:"full"},xAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"X Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},yAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"Y Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},autoZoom:{enabled:!0},pieType:w.DefaultPieType,funnelType:w.DefaultFunnelType,funnelSize:w.DefaultFunnelSize,funnelDirection:w.DefaultFunnelDirection,indicatorType:"numeric",numericSubtype:"numericSimple",skin:"vertical",indicatorComponents:{title:{shouldBeShown:!1,text:""},secondaryTitle:{text:""},ticks:{shouldBeShown:!0},labels:{shouldBeShown:!0}},dataLimits:{seriesCapacity:Ry,categoriesCapacity:Wd}},oB={translateStyleOptionsToDesignOptions:function(e){return B(M({},Hr),{mapType:e.mapType||"world"})},isCorrectStyleOptions:function(e){return typeof e=="object"&&e!==null}};var S0={exports:{}};/* @preserve
212
- * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
213
- * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
214
- */(function(e,t){(function(r,n){n(t)})(w.commonjsGlobal,function(r){var n="1.9.4";function i(l){var f,y,S,P;for(y=1,S=arguments.length;y<S;y++){P=arguments[y];for(f in P)l[f]=P[f]}return l}var a=Object.create||function(){function l(){}return function(f){return l.prototype=f,new l}}();function o(l,f){var y=Array.prototype.slice;if(l.bind)return l.bind.apply(l,y.call(arguments,1));var S=y.call(arguments,2);return function(){return l.apply(f,S.length?S.concat(y.call(arguments)):arguments)}}var s=0;function u(l){return"_leaflet_id"in l||(l._leaflet_id=++s),l._leaflet_id}function c(l,f,y){var S,P,$,Z;return Z=function(){S=!1,P&&($.apply(y,P),P=!1)},$=function(){S?P=arguments:(l.apply(y,arguments),setTimeout(Z,f),S=!0)},$}function d(l,f,y){var S=f[1],P=f[0],$=S-P;return l===S&&y?l:((l-P)%$+$)%$+P}function h(){return!1}function p(l,f){if(f===!1)return l;var y=Math.pow(10,f===void 0?6:f);return Math.round(l*y)/y}function m(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function v(l){return m(l).split(/\s+/)}function g(l,f){Object.prototype.hasOwnProperty.call(l,"options")||(l.options=l.options?a(l.options):{});for(var y in f)l.options[y]=f[y];return l.options}function b(l,f,y){var S=[];for(var P in l)S.push(encodeURIComponent(y?P.toUpperCase():P)+"="+encodeURIComponent(l[P]));return(!f||f.indexOf("?")===-1?"?":"&")+S.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function x(l,f){return l.replace(C,function(y,S){var P=f[S];if(P===void 0)throw new Error("No value provided for variable "+y);return typeof P=="function"&&(P=P(f)),P})}var E=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function T(l,f){for(var y=0;y<l.length;y++)if(l[y]===f)return y;return-1}var A="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(l){return window["webkit"+l]||window["moz"+l]||window["ms"+l]}var N=0;function I(l){var f=+new Date,y=Math.max(0,16-(f-N));return N=f+y,window.setTimeout(l,y)}var H=window.requestAnimationFrame||R("RequestAnimationFrame")||I,G=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(l){window.clearTimeout(l)};function Y(l,f,y){if(y&&H===I)l.call(f);else return H.call(window,o(l,f))}function O(l){l&&G.call(window,l)}var F={__proto__:null,extend:i,create:a,bind:o,get lastId(){return s},stamp:u,throttle:c,wrapNum:d,falseFn:h,formatNum:p,trim:m,splitWords:v,setOptions:g,getParamString:b,template:x,isArray:E,indexOf:T,emptyImageUrl:A,requestFn:H,cancelFn:G,requestAnimFrame:Y,cancelAnimFrame:O};function X(){}X.extend=function(l){var f=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},y=f.__super__=this.prototype,S=a(y);S.constructor=f,f.prototype=S;for(var P in this)Object.prototype.hasOwnProperty.call(this,P)&&P!=="prototype"&&P!=="__super__"&&(f[P]=this[P]);return l.statics&&i(f,l.statics),l.includes&&(W(l.includes),i.apply(null,[S].concat(l.includes))),i(S,l),delete S.statics,delete S.includes,S.options&&(S.options=y.options?a(y.options):{},i(S.options,l.options)),S._initHooks=[],S.callInitHooks=function(){if(!this._initHooksCalled){y.callInitHooks&&y.callInitHooks.call(this),this._initHooksCalled=!0;for(var $=0,Z=S._initHooks.length;$<Z;$++)S._initHooks[$].call(this)}},f},X.include=function(l){var f=this.prototype.options;return i(this.prototype,l),l.options&&(this.prototype.options=f,this.mergeOptions(l.options)),this},X.mergeOptions=function(l){return i(this.prototype.options,l),this},X.addInitHook=function(l){var f=Array.prototype.slice.call(arguments,1),y=typeof l=="function"?l:function(){this[l].apply(this,f)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(y),this};function W(l){if(!(typeof L=="undefined"||!L||!L.Mixin)){l=E(l)?l:[l];for(var f=0;f<l.length;f++)l[f]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var V={on:function(l,f,y){if(typeof l=="object")for(var S in l)this._on(S,l[S],f);else{l=v(l);for(var P=0,$=l.length;P<$;P++)this._on(l[P],f,y)}return this},off:function(l,f,y){if(!arguments.length)delete this._events;else if(typeof l=="object")for(var S in l)this._off(S,l[S],f);else{l=v(l);for(var P=arguments.length===1,$=0,Z=l.length;$<Z;$++)P?this._off(l[$]):this._off(l[$],f,y)}return this},_on:function(l,f,y,S){if(typeof f!="function"){console.warn("wrong listener type: "+typeof f);return}if(this._listens(l,f,y)===!1){y===this&&(y=void 0);var P={fn:f,ctx:y};S&&(P.once=!0),this._events=this._events||{},this._events[l]=this._events[l]||[],this._events[l].push(P)}},_off:function(l,f,y){var S,P,$;if(this._events&&(S=this._events[l],!!S)){if(arguments.length===1){if(this._firingCount)for(P=0,$=S.length;P<$;P++)S[P].fn=h;delete this._events[l];return}if(typeof f!="function"){console.warn("wrong listener type: "+typeof f);return}var Z=this._listens(l,f,y);if(Z!==!1){var te=S[Z];this._firingCount&&(te.fn=h,this._events[l]=S=S.slice()),S.splice(Z,1)}}},fire:function(l,f,y){if(!this.listens(l,y))return this;var S=i({},f,{type:l,target:this,sourceTarget:f&&f.sourceTarget||this});if(this._events){var P=this._events[l];if(P){this._firingCount=this._firingCount+1||1;for(var $=0,Z=P.length;$<Z;$++){var te=P[$],ae=te.fn;te.once&&this.off(l,ae,te.ctx),ae.call(te.ctx||this,S)}this._firingCount--}}return y&&this._propagateEvent(S),this},listens:function(l,f,y,S){typeof l!="string"&&console.warn('"string" type argument expected');var P=f;typeof f!="function"&&(S=!!f,P=void 0,y=void 0);var $=this._events&&this._events[l];if($&&$.length&&this._listens(l,P,y)!==!1)return!0;if(S){for(var Z in this._eventParents)if(this._eventParents[Z].listens(l,f,y,S))return!0}return!1},_listens:function(l,f,y){if(!this._events)return!1;var S=this._events[l]||[];if(!f)return!!S.length;y===this&&(y=void 0);for(var P=0,$=S.length;P<$;P++)if(S[P].fn===f&&S[P].ctx===y)return P;return!1},once:function(l,f,y){if(typeof l=="object")for(var S in l)this._on(S,l[S],f,!0);else{l=v(l);for(var P=0,$=l.length;P<$;P++)this._on(l[P],f,y,!0)}return this},addEventParent:function(l){return this._eventParents=this._eventParents||{},this._eventParents[u(l)]=l,this},removeEventParent:function(l){return this._eventParents&&delete this._eventParents[u(l)],this},_propagateEvent:function(l){for(var f in this._eventParents)this._eventParents[f].fire(l.type,i({layer:l.target,propagatedFrom:l.target},l),!0)}};V.addEventListener=V.on,V.removeEventListener=V.clearAllEventListeners=V.off,V.addOneTimeEventListener=V.once,V.fireEvent=V.fire,V.hasEventListeners=V.listens;var z=X.extend(V);function q(l,f,y){this.x=y?Math.round(l):l,this.y=y?Math.round(f):f}var ee=Math.trunc||function(l){return l>0?Math.floor(l):Math.ceil(l)};q.prototype={clone:function(){return new q(this.x,this.y)},add:function(l){return this.clone()._add(j(l))},_add:function(l){return this.x+=l.x,this.y+=l.y,this},subtract:function(l){return this.clone()._subtract(j(l))},_subtract:function(l){return this.x-=l.x,this.y-=l.y,this},divideBy:function(l){return this.clone()._divideBy(l)},_divideBy:function(l){return this.x/=l,this.y/=l,this},multiplyBy:function(l){return this.clone()._multiplyBy(l)},_multiplyBy:function(l){return this.x*=l,this.y*=l,this},scaleBy:function(l){return new q(this.x*l.x,this.y*l.y)},unscaleBy:function(l){return new q(this.x/l.x,this.y/l.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ee(this.x),this.y=ee(this.y),this},distanceTo:function(l){l=j(l);var f=l.x-this.x,y=l.y-this.y;return Math.sqrt(f*f+y*y)},equals:function(l){return l=j(l),l.x===this.x&&l.y===this.y},contains:function(l){return l=j(l),Math.abs(l.x)<=Math.abs(this.x)&&Math.abs(l.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function j(l,f,y){return l instanceof q?l:E(l)?new q(l[0],l[1]):l==null?l:typeof l=="object"&&"x"in l&&"y"in l?new q(l.x,l.y):new q(l,f,y)}function K(l,f){if(l)for(var y=f?[l,f]:l,S=0,P=y.length;S<P;S++)this.extend(y[S])}K.prototype={extend:function(l){var f,y;if(!l)return this;if(l instanceof q||typeof l[0]=="number"||"x"in l)f=y=j(l);else if(l=ie(l),f=l.min,y=l.max,!f||!y)return this;return!this.min&&!this.max?(this.min=f.clone(),this.max=y.clone()):(this.min.x=Math.min(f.x,this.min.x),this.max.x=Math.max(y.x,this.max.x),this.min.y=Math.min(f.y,this.min.y),this.max.y=Math.max(y.y,this.max.y)),this},getCenter:function(l){return j((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,l)},getBottomLeft:function(){return j(this.min.x,this.max.y)},getTopRight:function(){return j(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(l){var f,y;return typeof l[0]=="number"||l instanceof q?l=j(l):l=ie(l),l instanceof K?(f=l.min,y=l.max):f=y=l,f.x>=this.min.x&&y.x<=this.max.x&&f.y>=this.min.y&&y.y<=this.max.y},intersects:function(l){l=ie(l);var f=this.min,y=this.max,S=l.min,P=l.max,$=P.x>=f.x&&S.x<=y.x,Z=P.y>=f.y&&S.y<=y.y;return $&&Z},overlaps:function(l){l=ie(l);var f=this.min,y=this.max,S=l.min,P=l.max,$=P.x>f.x&&S.x<y.x,Z=P.y>f.y&&S.y<y.y;return $&&Z},isValid:function(){return!!(this.min&&this.max)},pad:function(l){var f=this.min,y=this.max,S=Math.abs(f.x-y.x)*l,P=Math.abs(f.y-y.y)*l;return ie(j(f.x-S,f.y-P),j(y.x+S,y.y+P))},equals:function(l){return l?(l=ie(l),this.min.equals(l.getTopLeft())&&this.max.equals(l.getBottomRight())):!1}};function ie(l,f){return!l||l instanceof K?l:new K(l,f)}function ne(l,f){if(l)for(var y=f?[l,f]:l,S=0,P=y.length;S<P;S++)this.extend(y[S])}ne.prototype={extend:function(l){var f=this._southWest,y=this._northEast,S,P;if(l instanceof oe)S=l,P=l;else if(l instanceof ne){if(S=l._southWest,P=l._northEast,!S||!P)return this}else return l?this.extend(se(l)||re(l)):this;return!f&&!y?(this._southWest=new oe(S.lat,S.lng),this._northEast=new oe(P.lat,P.lng)):(f.lat=Math.min(S.lat,f.lat),f.lng=Math.min(S.lng,f.lng),y.lat=Math.max(P.lat,y.lat),y.lng=Math.max(P.lng,y.lng)),this},pad:function(l){var f=this._southWest,y=this._northEast,S=Math.abs(f.lat-y.lat)*l,P=Math.abs(f.lng-y.lng)*l;return new ne(new oe(f.lat-S,f.lng-P),new oe(y.lat+S,y.lng+P))},getCenter:function(){return new oe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new oe(this.getNorth(),this.getWest())},getSouthEast:function(){return new oe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(l){typeof l[0]=="number"||l instanceof oe||"lat"in l?l=se(l):l=re(l);var f=this._southWest,y=this._northEast,S,P;return l instanceof ne?(S=l.getSouthWest(),P=l.getNorthEast()):S=P=l,S.lat>=f.lat&&P.lat<=y.lat&&S.lng>=f.lng&&P.lng<=y.lng},intersects:function(l){l=re(l);var f=this._southWest,y=this._northEast,S=l.getSouthWest(),P=l.getNorthEast(),$=P.lat>=f.lat&&S.lat<=y.lat,Z=P.lng>=f.lng&&S.lng<=y.lng;return $&&Z},overlaps:function(l){l=re(l);var f=this._southWest,y=this._northEast,S=l.getSouthWest(),P=l.getNorthEast(),$=P.lat>f.lat&&S.lat<y.lat,Z=P.lng>f.lng&&S.lng<y.lng;return $&&Z},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(l,f){return l?(l=re(l),this._southWest.equals(l.getSouthWest(),f)&&this._northEast.equals(l.getNorthEast(),f)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function re(l,f){return l instanceof ne?l:new ne(l,f)}function oe(l,f,y){if(isNaN(l)||isNaN(f))throw new Error("Invalid LatLng object: ("+l+", "+f+")");this.lat=+l,this.lng=+f,y!==void 0&&(this.alt=+y)}oe.prototype={equals:function(l,f){if(!l)return!1;l=se(l);var y=Math.max(Math.abs(this.lat-l.lat),Math.abs(this.lng-l.lng));return y<=(f===void 0?1e-9:f)},toString:function(l){return"LatLng("+p(this.lat,l)+", "+p(this.lng,l)+")"},distanceTo:function(l){return ce.distance(this,se(l))},wrap:function(){return ce.wrapLatLng(this)},toBounds:function(l){var f=180*l/40075017,y=f/Math.cos(Math.PI/180*this.lat);return re([this.lat-f,this.lng-y],[this.lat+f,this.lng+y])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function se(l,f,y){return l instanceof oe?l:E(l)&&typeof l[0]!="object"?l.length===3?new oe(l[0],l[1],l[2]):l.length===2?new oe(l[0],l[1]):null:l==null?l:typeof l=="object"&&"lat"in l?new oe(l.lat,"lng"in l?l.lng:l.lon,l.alt):f===void 0?null:new oe(l,f,y)}var de={latLngToPoint:function(l,f){var y=this.projection.project(l),S=this.scale(f);return this.transformation._transform(y,S)},pointToLatLng:function(l,f){var y=this.scale(f),S=this.transformation.untransform(l,y);return this.projection.unproject(S)},project:function(l){return this.projection.project(l)},unproject:function(l){return this.projection.unproject(l)},scale:function(l){return 256*Math.pow(2,l)},zoom:function(l){return Math.log(l/256)/Math.LN2},getProjectedBounds:function(l){if(this.infinite)return null;var f=this.projection.bounds,y=this.scale(l),S=this.transformation.transform(f.min,y),P=this.transformation.transform(f.max,y);return new K(S,P)},infinite:!1,wrapLatLng:function(l){var f=this.wrapLng?d(l.lng,this.wrapLng,!0):l.lng,y=this.wrapLat?d(l.lat,this.wrapLat,!0):l.lat,S=l.alt;return new oe(y,f,S)},wrapLatLngBounds:function(l){var f=l.getCenter(),y=this.wrapLatLng(f),S=f.lat-y.lat,P=f.lng-y.lng;if(S===0&&P===0)return l;var $=l.getSouthWest(),Z=l.getNorthEast(),te=new oe($.lat-S,$.lng-P),ae=new oe(Z.lat-S,Z.lng-P);return new ne(te,ae)}},ce=i({},de,{wrapLng:[-180,180],R:6371e3,distance:function(l,f){var y=Math.PI/180,S=l.lat*y,P=f.lat*y,$=Math.sin((f.lat-l.lat)*y/2),Z=Math.sin((f.lng-l.lng)*y/2),te=$*$+Math.cos(S)*Math.cos(P)*Z*Z,ae=2*Math.atan2(Math.sqrt(te),Math.sqrt(1-te));return this.R*ae}}),ge=6378137,Se={R:ge,MAX_LATITUDE:85.0511287798,project:function(l){var f=Math.PI/180,y=this.MAX_LATITUDE,S=Math.max(Math.min(y,l.lat),-y),P=Math.sin(S*f);return new q(this.R*l.lng*f,this.R*Math.log((1+P)/(1-P))/2)},unproject:function(l){var f=180/Math.PI;return new oe((2*Math.atan(Math.exp(l.y/this.R))-Math.PI/2)*f,l.x*f/this.R)},bounds:function(){var l=ge*Math.PI;return new K([-l,-l],[l,l])}()};function ye(l,f,y,S){if(E(l)){this._a=l[0],this._b=l[1],this._c=l[2],this._d=l[3];return}this._a=l,this._b=f,this._c=y,this._d=S}ye.prototype={transform:function(l,f){return this._transform(l.clone(),f)},_transform:function(l,f){return f=f||1,l.x=f*(this._a*l.x+this._b),l.y=f*(this._c*l.y+this._d),l},untransform:function(l,f){return f=f||1,new q((l.x/f-this._b)/this._a,(l.y/f-this._d)/this._c)}};function J(l,f,y,S){return new ye(l,f,y,S)}var _e=i({},ce,{code:"EPSG:3857",projection:Se,transformation:function(){var l=.5/(Math.PI*Se.R);return J(l,.5,-l,.5)}()}),ve=i({},_e,{code:"EPSG:900913"});function Ae(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function Ie(l,f){var y="",S,P,$,Z,te,ae;for(S=0,$=l.length;S<$;S++){for(te=l[S],P=0,Z=te.length;P<Z;P++)ae=te[P],y+=(P?"L":"M")+ae.x+" "+ae.y;y+=f?Pe.svg?"z":"x":""}return y||"M0 0"}var Ue=document.documentElement.style,Ve="ActiveXObject"in window,ir=Ve&&!document.addEventListener,At="msLaunchUri"in navigator&&!("documentMode"in document),Wt=In("webkit"),Nt=In("android"),Re=In("android 2")||In("android 3"),st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ni=Nt&&In("Google")&&st<537&&!("AudioNode"in window),on=!!window.opera,sn=!At&&In("chrome"),Dn=In("gecko")&&!Wt&&!on&&!Ve,Cn=!sn&&In("safari"),ci=In("phantom"),ar="OTransition"in Ue,Nn=navigator.platform.indexOf("Win")===0,Ze=Ve&&"transition"in Ue,Xt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Re,ua="MozPerspective"in Ue,Fs=!window.L_DISABLE_3D&&(Ze||Xt||ua)&&!ar&&!ci,di=typeof orientation!="undefined"||In("mobile"),Qa=di&&Wt,rp=di&&Xt,nc=!window.PointerEvent&&window.MSPointerEvent,ic=!!(window.PointerEvent||nc),ac="ontouchstart"in window||!!window.TouchEvent,np=!window.L_NO_TOUCH&&(ac||ic),ip=di&&on,ap=di&&Dn,op=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,oc=function(){var l=!1;try{var f=Object.defineProperty({},"passive",{get:function(){l=!0}});window.addEventListener("testPassiveEventSupport",h,f),window.removeEventListener("testPassiveEventSupport",h,f)}catch(y){}return l}(),sc=function(){return!!document.createElement("canvas").getContext}(),Ja=!!(document.createElementNS&&Ae("svg").createSVGRect),lc=!!Ja&&function(){var l=document.createElement("div");return l.innerHTML="<svg/>",(l.firstChild&&l.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),$e=!Ja&&function(){try{var l=document.createElement("div");l.innerHTML='<v:shape adj="1"/>';var f=l.firstChild;return f.style.behavior="url(#default#VML)",f&&typeof f.adj=="object"}catch(y){return!1}}(),Ur=navigator.platform.indexOf("Mac")===0,uc=navigator.platform.indexOf("Linux")===0;function In(l){return navigator.userAgent.toLowerCase().indexOf(l)>=0}var Pe={ie:Ve,ielt9:ir,edge:At,webkit:Wt,android:Nt,android23:Re,androidStock:Ni,opera:on,chrome:sn,gecko:Dn,safari:Cn,phantom:ci,opera12:ar,win:Nn,ie3d:Ze,webkit3d:Xt,gecko3d:ua,any3d:Fs,mobile:di,mobileWebkit:Qa,mobileWebkit3d:rp,msPointer:nc,pointer:ic,touch:np,touchNative:ac,mobileOpera:ip,mobileGecko:ap,retina:op,passiveEvents:oc,canvas:sc,svg:Ja,vml:$e,inlineSvg:lc,mac:Ur,linux:uc},c1=Pe.msPointer?"MSPointerDown":"pointerdown",d1=Pe.msPointer?"MSPointerMove":"pointermove",h1=Pe.msPointer?"MSPointerUp":"pointerup",f1=Pe.msPointer?"MSPointerCancel":"pointercancel",sp={touchstart:c1,touchmove:d1,touchend:h1,touchcancel:f1},p1={touchstart:Ak,touchmove:cc,touchend:cc,touchcancel:cc},eo={},m1=!1;function xk(l,f,y){return f==="touchstart"&&Mk(),p1[f]?(y=p1[f].bind(this,y),l.addEventListener(sp[f],y,!1),y):(console.warn("wrong event specified:",f),h)}function Tk(l,f,y){if(!sp[f]){console.warn("wrong event specified:",f);return}l.removeEventListener(sp[f],y,!1)}function Sk(l){eo[l.pointerId]=l}function Ek(l){eo[l.pointerId]&&(eo[l.pointerId]=l)}function g1(l){delete eo[l.pointerId]}function Mk(){m1||(document.addEventListener(c1,Sk,!0),document.addEventListener(d1,Ek,!0),document.addEventListener(h1,g1,!0),document.addEventListener(f1,g1,!0),m1=!0)}function cc(l,f){if(f.pointerType!==(f.MSPOINTER_TYPE_MOUSE||"mouse")){f.touches=[];for(var y in eo)f.touches.push(eo[y]);f.changedTouches=[f],l(f)}}function Ak(l,f){f.MSPOINTER_TYPE_TOUCH&&f.pointerType===f.MSPOINTER_TYPE_TOUCH&&dr(f),cc(l,f)}function Pk(l){var f={},y,S;for(S in l)y=l[S],f[S]=y&&y.bind?y.bind(l):y;return l=f,f.type="dblclick",f.detail=2,f.isTrusted=!1,f._simulated=!0,f}var Rk=200;function Ok(l,f){l.addEventListener("dblclick",f);var y=0,S;function P($){if($.detail!==1){S=$.detail;return}if(!($.pointerType==="mouse"||$.sourceCapabilities&&!$.sourceCapabilities.firesTouchEvents)){var Z=w1($);if(!(Z.some(function(ae){return ae instanceof HTMLLabelElement&&ae.attributes.for})&&!Z.some(function(ae){return ae instanceof HTMLInputElement||ae instanceof HTMLSelectElement}))){var te=Date.now();te-y<=Rk?(S++,S===2&&f(Pk($))):S=1,y=te}}}return l.addEventListener("click",P),{dblclick:f,simDblclick:P}}function kk(l,f){l.removeEventListener("dblclick",f.dblclick),l.removeEventListener("click",f.simDblclick)}var lp=fc(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$s=fc(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),v1=$s==="webkitTransition"||$s==="OTransition"?$s+"End":"transitionend";function y1(l){return typeof l=="string"?document.getElementById(l):l}function Bs(l,f){var y=l.style[f]||l.currentStyle&&l.currentStyle[f];if((!y||y==="auto")&&document.defaultView){var S=document.defaultView.getComputedStyle(l,null);y=S?S[f]:null}return y==="auto"?null:y}function tt(l,f,y){var S=document.createElement(l);return S.className=f||"",y&&y.appendChild(S),S}function It(l){var f=l.parentNode;f&&f.removeChild(l)}function dc(l){for(;l.firstChild;)l.removeChild(l.firstChild)}function to(l){var f=l.parentNode;f&&f.lastChild!==l&&f.appendChild(l)}function ro(l){var f=l.parentNode;f&&f.firstChild!==l&&f.insertBefore(l,f.firstChild)}function up(l,f){if(l.classList!==void 0)return l.classList.contains(f);var y=hc(l);return y.length>0&&new RegExp("(^|\\s)"+f+"(\\s|$)").test(y)}function Ge(l,f){if(l.classList!==void 0)for(var y=v(f),S=0,P=y.length;S<P;S++)l.classList.add(y[S]);else if(!up(l,f)){var $=hc(l);cp(l,($?$+" ":"")+f)}}function Ut(l,f){l.classList!==void 0?l.classList.remove(f):cp(l,m((" "+hc(l)+" ").replace(" "+f+" "," ")))}function cp(l,f){l.className.baseVal===void 0?l.className=f:l.className.baseVal=f}function hc(l){return l.correspondingElement&&(l=l.correspondingElement),l.className.baseVal===void 0?l.className:l.className.baseVal}function ln(l,f){"opacity"in l.style?l.style.opacity=f:"filter"in l.style&&Dk(l,f)}function Dk(l,f){var y=!1,S="DXImageTransform.Microsoft.Alpha";try{y=l.filters.item(S)}catch(P){if(f===1)return}f=Math.round(f*100),y?(y.Enabled=f!==100,y.Opacity=f):l.style.filter+=" progid:"+S+"(opacity="+f+")"}function fc(l){for(var f=document.documentElement.style,y=0;y<l.length;y++)if(l[y]in f)return l[y];return!1}function ca(l,f,y){var S=f||new q(0,0);l.style[lp]=(Pe.ie3d?"translate("+S.x+"px,"+S.y+"px)":"translate3d("+S.x+"px,"+S.y+"px,0)")+(y?" scale("+y+")":"")}function Kt(l,f){l._leaflet_pos=f,Pe.any3d?ca(l,f):(l.style.left=f.x+"px",l.style.top=f.y+"px")}function da(l){return l._leaflet_pos||new q(0,0)}var Hs,zs,dp;if("onselectstart"in document)Hs=function(){ze(window,"selectstart",dr)},zs=function(){wt(window,"selectstart",dr)};else{var js=fc(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Hs=function(){if(js){var l=document.documentElement.style;dp=l[js],l[js]="none"}},zs=function(){js&&(document.documentElement.style[js]=dp,dp=void 0)}}function hp(){ze(window,"dragstart",dr)}function fp(){wt(window,"dragstart",dr)}var pc,pp;function mp(l){for(;l.tabIndex===-1;)l=l.parentNode;l.style&&(mc(),pc=l,pp=l.style.outlineStyle,l.style.outlineStyle="none",ze(window,"keydown",mc))}function mc(){pc&&(pc.style.outlineStyle=pp,pc=void 0,pp=void 0,wt(window,"keydown",mc))}function b1(l){do l=l.parentNode;while((!l.offsetWidth||!l.offsetHeight)&&l!==document.body);return l}function gp(l){var f=l.getBoundingClientRect();return{x:f.width/l.offsetWidth||1,y:f.height/l.offsetHeight||1,boundingClientRect:f}}var Nk={__proto__:null,TRANSFORM:lp,TRANSITION:$s,TRANSITION_END:v1,get:y1,getStyle:Bs,create:tt,remove:It,empty:dc,toFront:to,toBack:ro,hasClass:up,addClass:Ge,removeClass:Ut,setClass:cp,getClass:hc,setOpacity:ln,testProp:fc,setTransform:ca,setPosition:Kt,getPosition:da,get disableTextSelection(){return Hs},get enableTextSelection(){return zs},disableImageDrag:hp,enableImageDrag:fp,preventOutline:mp,restoreOutline:mc,getSizedParentNode:b1,getScale:gp};function ze(l,f,y,S){if(f&&typeof f=="object")for(var P in f)yp(l,P,f[P],y);else{f=v(f);for(var $=0,Z=f.length;$<Z;$++)yp(l,f[$],y,S)}return this}var Ln="_leaflet_events";function wt(l,f,y,S){if(arguments.length===1)_1(l),delete l[Ln];else if(f&&typeof f=="object")for(var P in f)bp(l,P,f[P],y);else if(f=v(f),arguments.length===2)_1(l,function(te){return T(f,te)!==-1});else for(var $=0,Z=f.length;$<Z;$++)bp(l,f[$],y,S);return this}function _1(l,f){for(var y in l[Ln]){var S=y.split(/\d/)[0];(!f||f(S))&&bp(l,S,null,null,y)}}var vp={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function yp(l,f,y,S){var P=f+u(y)+(S?"_"+u(S):"");if(l[Ln]&&l[Ln][P])return this;var $=function(te){return y.call(S||l,te||window.event)},Z=$;!Pe.touchNative&&Pe.pointer&&f.indexOf("touch")===0?$=xk(l,f,$):Pe.touch&&f==="dblclick"?$=Ok(l,$):"addEventListener"in l?f==="touchstart"||f==="touchmove"||f==="wheel"||f==="mousewheel"?l.addEventListener(vp[f]||f,$,Pe.passiveEvents?{passive:!1}:!1):f==="mouseenter"||f==="mouseleave"?($=function(te){te=te||window.event,wp(l,te)&&Z(te)},l.addEventListener(vp[f],$,!1)):l.addEventListener(f,Z,!1):l.attachEvent("on"+f,$),l[Ln]=l[Ln]||{},l[Ln][P]=$}function bp(l,f,y,S,P){P=P||f+u(y)+(S?"_"+u(S):"");var $=l[Ln]&&l[Ln][P];if(!$)return this;!Pe.touchNative&&Pe.pointer&&f.indexOf("touch")===0?Tk(l,f,$):Pe.touch&&f==="dblclick"?kk(l,$):"removeEventListener"in l?l.removeEventListener(vp[f]||f,$,!1):l.detachEvent("on"+f,$),l[Ln][P]=null}function ha(l){return l.stopPropagation?l.stopPropagation():l.originalEvent?l.originalEvent._stopped=!0:l.cancelBubble=!0,this}function _p(l){return yp(l,"wheel",ha),this}function Ws(l){return ze(l,"mousedown touchstart dblclick contextmenu",ha),l._leaflet_disable_click=!0,this}function dr(l){return l.preventDefault?l.preventDefault():l.returnValue=!1,this}function fa(l){return dr(l),ha(l),this}function w1(l){if(l.composedPath)return l.composedPath();for(var f=[],y=l.target;y;)f.push(y),y=y.parentNode;return f}function C1(l,f){if(!f)return new q(l.clientX,l.clientY);var y=gp(f),S=y.boundingClientRect;return new q((l.clientX-S.left)/y.x-f.clientLeft,(l.clientY-S.top)/y.y-f.clientTop)}var Ik=Pe.linux&&Pe.chrome?window.devicePixelRatio:Pe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function x1(l){return Pe.edge?l.wheelDeltaY/2:l.deltaY&&l.deltaMode===0?-l.deltaY/Ik:l.deltaY&&l.deltaMode===1?-l.deltaY*20:l.deltaY&&l.deltaMode===2?-l.deltaY*60:l.deltaX||l.deltaZ?0:l.wheelDelta?(l.wheelDeltaY||l.wheelDelta)/2:l.detail&&Math.abs(l.detail)<32765?-l.detail*20:l.detail?l.detail/-32765*60:0}function wp(l,f){var y=f.relatedTarget;if(!y)return!0;try{for(;y&&y!==l;)y=y.parentNode}catch(S){return!1}return y!==l}var Lk={__proto__:null,on:ze,off:wt,stopPropagation:ha,disableScrollPropagation:_p,disableClickPropagation:Ws,preventDefault:dr,stop:fa,getPropagationPath:w1,getMousePosition:C1,getWheelDelta:x1,isExternalTarget:wp,addListener:ze,removeListener:wt},T1=z.extend({run:function(l,f,y,S){this.stop(),this._el=l,this._inProgress=!0,this._duration=y||.25,this._easeOutPower=1/Math.max(S||.5,.2),this._startPos=da(l),this._offset=f.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Y(this._animate,this),this._step()},_step:function(l){var f=+new Date-this._startTime,y=this._duration*1e3;f<y?this._runFrame(this._easeOut(f/y),l):(this._runFrame(1),this._complete())},_runFrame:function(l,f){var y=this._startPos.add(this._offset.multiplyBy(l));f&&y._round(),Kt(this._el,y),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(l){return 1-Math.pow(1-l,this._easeOutPower)}}),Qe=z.extend({options:{crs:_e,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(l,f){f=g(this,f),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(l),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),f.maxBounds&&this.setMaxBounds(f.maxBounds),f.zoom!==void 0&&(this._zoom=this._limitZoom(f.zoom)),f.center&&f.zoom!==void 0&&this.setView(se(f.center),f.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=$s&&Pe.any3d&&!Pe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ze(this._proxy,v1,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(l,f,y){if(f=f===void 0?this._zoom:this._limitZoom(f),l=this._limitCenter(se(l),f,this.options.maxBounds),y=y||{},this._stop(),this._loaded&&!y.reset&&y!==!0){y.animate!==void 0&&(y.zoom=i({animate:y.animate},y.zoom),y.pan=i({animate:y.animate,duration:y.duration},y.pan));var S=this._zoom!==f?this._tryAnimatedZoom&&this._tryAnimatedZoom(l,f,y.zoom):this._tryAnimatedPan(l,y.pan);if(S)return clearTimeout(this._sizeTimer),this}return this._resetView(l,f,y.pan&&y.pan.noMoveStart),this},setZoom:function(l,f){return this._loaded?this.setView(this.getCenter(),l,{zoom:f}):(this._zoom=l,this)},zoomIn:function(l,f){return l=l||(Pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+l,f)},zoomOut:function(l,f){return l=l||(Pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-l,f)},setZoomAround:function(l,f,y){var S=this.getZoomScale(f),P=this.getSize().divideBy(2),$=l instanceof q?l:this.latLngToContainerPoint(l),Z=$.subtract(P).multiplyBy(1-1/S),te=this.containerPointToLatLng(P.add(Z));return this.setView(te,f,{zoom:y})},_getBoundsCenterZoom:function(l,f){f=f||{},l=l.getBounds?l.getBounds():re(l);var y=j(f.paddingTopLeft||f.padding||[0,0]),S=j(f.paddingBottomRight||f.padding||[0,0]),P=this.getBoundsZoom(l,!1,y.add(S));if(P=typeof f.maxZoom=="number"?Math.min(f.maxZoom,P):P,P===1/0)return{center:l.getCenter(),zoom:P};var $=S.subtract(y).divideBy(2),Z=this.project(l.getSouthWest(),P),te=this.project(l.getNorthEast(),P),ae=this.unproject(Z.add(te).divideBy(2).add($),P);return{center:ae,zoom:P}},fitBounds:function(l,f){if(l=re(l),!l.isValid())throw new Error("Bounds are not valid.");var y=this._getBoundsCenterZoom(l,f);return this.setView(y.center,y.zoom,f)},fitWorld:function(l){return this.fitBounds([[-90,-180],[90,180]],l)},panTo:function(l,f){return this.setView(l,this._zoom,{pan:f})},panBy:function(l,f){if(l=j(l).round(),f=f||{},!l.x&&!l.y)return this.fire("moveend");if(f.animate!==!0&&!this.getSize().contains(l))return this._resetView(this.unproject(this.project(this.getCenter()).add(l)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new T1,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),f.noMoveStart||this.fire("movestart"),f.animate!==!1){Ge(this._mapPane,"leaflet-pan-anim");var y=this._getMapPanePos().subtract(l).round();this._panAnim.run(this._mapPane,y,f.duration||.25,f.easeLinearity)}else this._rawPanBy(l),this.fire("move").fire("moveend");return this},flyTo:function(l,f,y){if(y=y||{},y.animate===!1||!Pe.any3d)return this.setView(l,f,y);this._stop();var S=this.project(this.getCenter()),P=this.project(l),$=this.getSize(),Z=this._zoom;l=se(l),f=f===void 0?Z:f;var te=Math.max($.x,$.y),ae=te*this.getZoomScale(Z,f),he=P.distanceTo(S)||1,Ce=1.42,Oe=Ce*Ce;function qe(Zt){var Mc=Zt?-1:1,TD=Zt?ae:te,SD=ae*ae-te*te+Mc*Oe*Oe*he*he,ED=2*TD*Oe*he,kp=SD/ED,i_=Math.sqrt(kp*kp+1)-kp,MD=i_<1e-9?-18:Math.log(i_);return MD}function Sr(Zt){return(Math.exp(Zt)-Math.exp(-Zt))/2}function or(Zt){return(Math.exp(Zt)+Math.exp(-Zt))/2}function cn(Zt){return Sr(Zt)/or(Zt)}var Lr=qe(0);function lo(Zt){return te*(or(Lr)/or(Lr+Ce*Zt))}function _D(Zt){return te*(or(Lr)*cn(Lr+Ce*Zt)-Sr(Lr))/Oe}function wD(Zt){return 1-Math.pow(1-Zt,1.5)}var CD=Date.now(),r_=(qe(1)-Lr)/Ce,xD=y.duration?1e3*y.duration:1e3*r_*.8;function n_(){var Zt=(Date.now()-CD)/xD,Mc=wD(Zt)*r_;Zt<=1?(this._flyToFrame=Y(n_,this),this._move(this.unproject(S.add(P.subtract(S).multiplyBy(_D(Mc)/he)),Z),this.getScaleZoom(te/lo(Mc),Z),{flyTo:!0})):this._move(l,f)._moveEnd(!0)}return this._moveStart(!0,y.noMoveStart),n_.call(this),this},flyToBounds:function(l,f){var y=this._getBoundsCenterZoom(l,f);return this.flyTo(y.center,y.zoom,f)},setMaxBounds:function(l){return l=re(l),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),l.isValid()?(this.options.maxBounds=l,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(l){var f=this.options.minZoom;return this.options.minZoom=l,this._loaded&&f!==l&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(l):this},setMaxZoom:function(l){var f=this.options.maxZoom;return this.options.maxZoom=l,this._loaded&&f!==l&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(l):this},panInsideBounds:function(l,f){this._enforcingBounds=!0;var y=this.getCenter(),S=this._limitCenter(y,this._zoom,re(l));return y.equals(S)||this.panTo(S,f),this._enforcingBounds=!1,this},panInside:function(l,f){f=f||{};var y=j(f.paddingTopLeft||f.padding||[0,0]),S=j(f.paddingBottomRight||f.padding||[0,0]),P=this.project(this.getCenter()),$=this.project(l),Z=this.getPixelBounds(),te=ie([Z.min.add(y),Z.max.subtract(S)]),ae=te.getSize();if(!te.contains($)){this._enforcingBounds=!0;var he=$.subtract(te.getCenter()),Ce=te.extend($).getSize().subtract(ae);P.x+=he.x<0?-Ce.x:Ce.x,P.y+=he.y<0?-Ce.y:Ce.y,this.panTo(this.unproject(P),f),this._enforcingBounds=!1}return this},invalidateSize:function(l){if(!this._loaded)return this;l=i({animate:!1,pan:!0},l===!0?{animate:!0}:l);var f=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var y=this.getSize(),S=f.divideBy(2).round(),P=y.divideBy(2).round(),$=S.subtract(P);return!$.x&&!$.y?this:(l.animate&&l.pan?this.panBy($):(l.pan&&this._rawPanBy($),this.fire("move"),l.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:f,newSize:y}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(l){if(l=this._locateOptions=i({timeout:1e4,watch:!1},l),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var f=o(this._handleGeolocationResponse,this),y=o(this._handleGeolocationError,this);return l.watch?this._locationWatchId=navigator.geolocation.watchPosition(f,y,l):navigator.geolocation.getCurrentPosition(f,y,l),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(l){if(this._container._leaflet_id){var f=l.code,y=l.message||(f===1?"permission denied":f===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:f,message:"Geolocation error: "+y+"."})}},_handleGeolocationResponse:function(l){if(this._container._leaflet_id){var f=l.coords.latitude,y=l.coords.longitude,S=new oe(f,y),P=S.toBounds(l.coords.accuracy*2),$=this._locateOptions;if($.setView){var Z=this.getBoundsZoom(P);this.setView(S,$.maxZoom?Math.min(Z,$.maxZoom):Z)}var te={latlng:S,bounds:P,timestamp:l.timestamp};for(var ae in l.coords)typeof l.coords[ae]=="number"&&(te[ae]=l.coords[ae]);this.fire("locationfound",te)}},addHandler:function(l,f){if(!f)return this;var y=this[l]=new f(this);return this._handlers.push(y),this.options[l]&&y.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(f){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),It(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var l;for(l in this._layers)this._layers[l].remove();for(l in this._panes)It(this._panes[l]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(l,f){var y="leaflet-pane"+(l?" leaflet-"+l.replace("Pane","")+"-pane":""),S=tt("div",y,f||this._mapPane);return l&&(this._panes[l]=S),S},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var l=this.getPixelBounds(),f=this.unproject(l.getBottomLeft()),y=this.unproject(l.getTopRight());return new ne(f,y)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(l,f,y){l=re(l),y=j(y||[0,0]);var S=this.getZoom()||0,P=this.getMinZoom(),$=this.getMaxZoom(),Z=l.getNorthWest(),te=l.getSouthEast(),ae=this.getSize().subtract(y),he=ie(this.project(te,S),this.project(Z,S)).getSize(),Ce=Pe.any3d?this.options.zoomSnap:1,Oe=ae.x/he.x,qe=ae.y/he.y,Sr=f?Math.max(Oe,qe):Math.min(Oe,qe);return S=this.getScaleZoom(Sr,S),Ce&&(S=Math.round(S/(Ce/100))*(Ce/100),S=f?Math.ceil(S/Ce)*Ce:Math.floor(S/Ce)*Ce),Math.max(P,Math.min($,S))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new q(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(l,f){var y=this._getTopLeftPoint(l,f);return new K(y,y.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(l){return this.options.crs.getProjectedBounds(l===void 0?this.getZoom():l)},getPane:function(l){return typeof l=="string"?this._panes[l]:l},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(l,f){var y=this.options.crs;return f=f===void 0?this._zoom:f,y.scale(l)/y.scale(f)},getScaleZoom:function(l,f){var y=this.options.crs;f=f===void 0?this._zoom:f;var S=y.zoom(l*y.scale(f));return isNaN(S)?1/0:S},project:function(l,f){return f=f===void 0?this._zoom:f,this.options.crs.latLngToPoint(se(l),f)},unproject:function(l,f){return f=f===void 0?this._zoom:f,this.options.crs.pointToLatLng(j(l),f)},layerPointToLatLng:function(l){var f=j(l).add(this.getPixelOrigin());return this.unproject(f)},latLngToLayerPoint:function(l){var f=this.project(se(l))._round();return f._subtract(this.getPixelOrigin())},wrapLatLng:function(l){return this.options.crs.wrapLatLng(se(l))},wrapLatLngBounds:function(l){return this.options.crs.wrapLatLngBounds(re(l))},distance:function(l,f){return this.options.crs.distance(se(l),se(f))},containerPointToLayerPoint:function(l){return j(l).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(l){return j(l).add(this._getMapPanePos())},containerPointToLatLng:function(l){var f=this.containerPointToLayerPoint(j(l));return this.layerPointToLatLng(f)},latLngToContainerPoint:function(l){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(l)))},mouseEventToContainerPoint:function(l){return C1(l,this._container)},mouseEventToLayerPoint:function(l){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(l))},mouseEventToLatLng:function(l){return this.layerPointToLatLng(this.mouseEventToLayerPoint(l))},_initContainer:function(l){var f=this._container=y1(l);if(f){if(f._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ze(f,"scroll",this._onScroll,this),this._containerId=u(f)},_initLayout:function(){var l=this._container;this._fadeAnimated=this.options.fadeAnimation&&Pe.any3d,Ge(l,"leaflet-container"+(Pe.touch?" leaflet-touch":"")+(Pe.retina?" leaflet-retina":"")+(Pe.ielt9?" leaflet-oldie":"")+(Pe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var f=Bs(l,"position");f!=="absolute"&&f!=="relative"&&f!=="fixed"&&f!=="sticky"&&(l.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var l=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Kt(this._mapPane,new q(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ge(l.markerPane,"leaflet-zoom-hide"),Ge(l.shadowPane,"leaflet-zoom-hide"))},_resetView:function(l,f,y){Kt(this._mapPane,new q(0,0));var S=!this._loaded;this._loaded=!0,f=this._limitZoom(f),this.fire("viewprereset");var P=this._zoom!==f;this._moveStart(P,y)._move(l,f)._moveEnd(P),this.fire("viewreset"),S&&this.fire("load")},_moveStart:function(l,f){return l&&this.fire("zoomstart"),f||this.fire("movestart"),this},_move:function(l,f,y,S){f===void 0&&(f=this._zoom);var P=this._zoom!==f;return this._zoom=f,this._lastCenter=l,this._pixelOrigin=this._getNewPixelOrigin(l),S?y&&y.pinch&&this.fire("zoom",y):((P||y&&y.pinch)&&this.fire("zoom",y),this.fire("move",y)),this},_moveEnd:function(l){return l&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(l){Kt(this._mapPane,this._getMapPanePos().subtract(l))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(l){this._targets={},this._targets[u(this._container)]=this;var f=l?wt:ze;f(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&f(window,"resize",this._onResize,this),Pe.any3d&&this.options.transform3DLimit&&(l?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=Y(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var l=this._getMapPanePos();Math.max(Math.abs(l.x),Math.abs(l.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(l,f){for(var y=[],S,P=f==="mouseout"||f==="mouseover",$=l.target||l.srcElement,Z=!1;$;){if(S=this._targets[u($)],S&&(f==="click"||f==="preclick")&&this._draggableMoved(S)){Z=!0;break}if(S&&S.listens(f,!0)&&(P&&!wp($,l)||(y.push(S),P))||$===this._container)break;$=$.parentNode}return!y.length&&!Z&&!P&&this.listens(f,!0)&&(y=[this]),y},_isClickDisabled:function(l){for(;l&&l!==this._container;){if(l._leaflet_disable_click)return!0;l=l.parentNode}},_handleDOMEvent:function(l){var f=l.target||l.srcElement;if(!(!this._loaded||f._leaflet_disable_events||l.type==="click"&&this._isClickDisabled(f))){var y=l.type;y==="mousedown"&&mp(f),this._fireDOMEvent(l,y)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(l,f,y){if(l.type==="click"){var S=i({},l);S.type="preclick",this._fireDOMEvent(S,S.type,y)}var P=this._findEventTargets(l,f);if(y){for(var $=[],Z=0;Z<y.length;Z++)y[Z].listens(f,!0)&&$.push(y[Z]);P=$.concat(P)}if(P.length){f==="contextmenu"&&dr(l);var te=P[0],ae={originalEvent:l};if(l.type!=="keypress"&&l.type!=="keydown"&&l.type!=="keyup"){var he=te.getLatLng&&(!te._radius||te._radius<=10);ae.containerPoint=he?this.latLngToContainerPoint(te.getLatLng()):this.mouseEventToContainerPoint(l),ae.layerPoint=this.containerPointToLayerPoint(ae.containerPoint),ae.latlng=he?te.getLatLng():this.layerPointToLatLng(ae.layerPoint)}for(Z=0;Z<P.length;Z++)if(P[Z].fire(f,ae,!0),ae.originalEvent._stopped||P[Z].options.bubblingMouseEvents===!1&&T(this._mouseEvents,f)!==-1)return}},_draggableMoved:function(l){return l=l.dragging&&l.dragging.enabled()?l:this,l.dragging&&l.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var l=0,f=this._handlers.length;l<f;l++)this._handlers[l].disable()},whenReady:function(l,f){return this._loaded?l.call(f||this,{target:this}):this.on("load",l,f),this},_getMapPanePos:function(){return da(this._mapPane)||new q(0,0)},_moved:function(){var l=this._getMapPanePos();return l&&!l.equals([0,0])},_getTopLeftPoint:function(l,f){var y=l&&f!==void 0?this._getNewPixelOrigin(l,f):this.getPixelOrigin();return y.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(l,f){var y=this.getSize()._divideBy(2);return this.project(l,f)._subtract(y)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(l,f,y){var S=this._getNewPixelOrigin(y,f);return this.project(l,f)._subtract(S)},_latLngBoundsToNewLayerBounds:function(l,f,y){var S=this._getNewPixelOrigin(y,f);return ie([this.project(l.getSouthWest(),f)._subtract(S),this.project(l.getNorthWest(),f)._subtract(S),this.project(l.getSouthEast(),f)._subtract(S),this.project(l.getNorthEast(),f)._subtract(S)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(l){return this.latLngToLayerPoint(l).subtract(this._getCenterLayerPoint())},_limitCenter:function(l,f,y){if(!y)return l;var S=this.project(l,f),P=this.getSize().divideBy(2),$=new K(S.subtract(P),S.add(P)),Z=this._getBoundsOffset($,y,f);return Math.abs(Z.x)<=1&&Math.abs(Z.y)<=1?l:this.unproject(S.add(Z),f)},_limitOffset:function(l,f){if(!f)return l;var y=this.getPixelBounds(),S=new K(y.min.add(l),y.max.add(l));return l.add(this._getBoundsOffset(S,f))},_getBoundsOffset:function(l,f,y){var S=ie(this.project(f.getNorthEast(),y),this.project(f.getSouthWest(),y)),P=S.min.subtract(l.min),$=S.max.subtract(l.max),Z=this._rebound(P.x,-$.x),te=this._rebound(P.y,-$.y);return new q(Z,te)},_rebound:function(l,f){return l+f>0?Math.round(l-f)/2:Math.max(0,Math.ceil(l))-Math.max(0,Math.floor(f))},_limitZoom:function(l){var f=this.getMinZoom(),y=this.getMaxZoom(),S=Pe.any3d?this.options.zoomSnap:1;return S&&(l=Math.round(l/S)*S),Math.max(f,Math.min(y,l))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ut(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(l,f){var y=this._getCenterOffset(l)._trunc();return(f&&f.animate)!==!0&&!this.getSize().contains(y)?!1:(this.panBy(y,f),!0)},_createAnimProxy:function(){var l=this._proxy=tt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(l),this.on("zoomanim",function(f){var y=lp,S=this._proxy.style[y];ca(this._proxy,this.project(f.center,f.zoom),this.getZoomScale(f.zoom,1)),S===this._proxy.style[y]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){It(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var l=this.getCenter(),f=this.getZoom();ca(this._proxy,this.project(l,f),this.getZoomScale(f,1))},_catchTransitionEnd:function(l){this._animatingZoom&&l.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(l,f,y){if(this._animatingZoom)return!0;if(y=y||{},!this._zoomAnimated||y.animate===!1||this._nothingToAnimate()||Math.abs(f-this._zoom)>this.options.zoomAnimationThreshold)return!1;var S=this.getZoomScale(f),P=this._getCenterOffset(l)._divideBy(1-1/S);return y.animate!==!0&&!this.getSize().contains(P)?!1:(Y(function(){this._moveStart(!0,y.noMoveStart||!1)._animateZoom(l,f,!0)},this),!0)},_animateZoom:function(l,f,y,S){this._mapPane&&(y&&(this._animatingZoom=!0,this._animateToCenter=l,this._animateToZoom=f,Ge(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:l,zoom:f,noUpdate:S}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ut(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Fk(l,f){return new Qe(l,f)}var xn=X.extend({options:{position:"topright"},initialize:function(l){g(this,l)},getPosition:function(){return this.options.position},setPosition:function(l){var f=this._map;return f&&f.removeControl(this),this.options.position=l,f&&f.addControl(this),this},getContainer:function(){return this._container},addTo:function(l){this.remove(),this._map=l;var f=this._container=this.onAdd(l),y=this.getPosition(),S=l._controlCorners[y];return Ge(f,"leaflet-control"),y.indexOf("bottom")!==-1?S.insertBefore(f,S.firstChild):S.appendChild(f),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(It(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(l){this._map&&l&&l.screenX>0&&l.screenY>0&&this._map.getContainer().focus()}}),Us=function(l){return new xn(l)};Qe.include({addControl:function(l){return l.addTo(this),this},removeControl:function(l){return l.remove(),this},_initControlPos:function(){var l=this._controlCorners={},f="leaflet-",y=this._controlContainer=tt("div",f+"control-container",this._container);function S(P,$){var Z=f+P+" "+f+$;l[P+$]=tt("div",Z,y)}S("top","left"),S("top","right"),S("bottom","left"),S("bottom","right")},_clearControlPos:function(){for(var l in this._controlCorners)It(this._controlCorners[l]);It(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var S1=xn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(l,f,y,S){return y<S?-1:S<y?1:0}},initialize:function(l,f,y){g(this,y),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var S in l)this._addLayer(l[S],S);for(S in f)this._addLayer(f[S],S,!0)},onAdd:function(l){this._initLayout(),this._update(),this._map=l,l.on("zoomend",this._checkDisabledLayers,this);for(var f=0;f<this._layers.length;f++)this._layers[f].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(l){return xn.prototype.addTo.call(this,l),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(l,f){return this._addLayer(l,f),this._map?this._update():this},addOverlay:function(l,f){return this._addLayer(l,f,!0),this._map?this._update():this},removeLayer:function(l){l.off("add remove",this._onLayerChange,this);var f=this._getLayer(u(l));return f&&this._layers.splice(this._layers.indexOf(f),1),this._map?this._update():this},expand:function(){Ge(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var l=this._map.getSize().y-(this._container.offsetTop+50);return l<this._section.clientHeight?(Ge(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=l+"px"):Ut(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ut(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var l="leaflet-control-layers",f=this._container=tt("div",l),y=this.options.collapsed;f.setAttribute("aria-haspopup",!0),Ws(f),_p(f);var S=this._section=tt("section",l+"-list");y&&(this._map.on("click",this.collapse,this),ze(f,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var P=this._layersLink=tt("a",l+"-toggle",f);P.href="#",P.title="Layers",P.setAttribute("role","button"),ze(P,{keydown:function($){$.keyCode===13&&this._expandSafely()},click:function($){dr($),this._expandSafely()}},this),y||this.expand(),this._baseLayersList=tt("div",l+"-base",S),this._separator=tt("div",l+"-separator",S),this._overlaysList=tt("div",l+"-overlays",S),f.appendChild(S)},_getLayer:function(l){for(var f=0;f<this._layers.length;f++)if(this._layers[f]&&u(this._layers[f].layer)===l)return this._layers[f]},_addLayer:function(l,f,y){this._map&&l.on("add remove",this._onLayerChange,this),this._layers.push({layer:l,name:f,overlay:y}),this.options.sortLayers&&this._layers.sort(o(function(S,P){return this.options.sortFunction(S.layer,P.layer,S.name,P.name)},this)),this.options.autoZIndex&&l.setZIndex&&(this._lastZIndex++,l.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;dc(this._baseLayersList),dc(this._overlaysList),this._layerControlInputs=[];var l,f,y,S,P=0;for(y=0;y<this._layers.length;y++)S=this._layers[y],this._addItem(S),f=f||S.overlay,l=l||!S.overlay,P+=S.overlay?0:1;return this.options.hideSingleBase&&(l=l&&P>1,this._baseLayersList.style.display=l?"":"none"),this._separator.style.display=f&&l?"":"none",this},_onLayerChange:function(l){this._handlingClick||this._update();var f=this._getLayer(u(l.target)),y=f.overlay?l.type==="add"?"overlayadd":"overlayremove":l.type==="add"?"baselayerchange":null;y&&this._map.fire(y,f)},_createRadioElement:function(l,f){var y='<input type="radio" class="leaflet-control-layers-selector" name="'+l+'"'+(f?' checked="checked"':"")+"/>",S=document.createElement("div");return S.innerHTML=y,S.firstChild},_addItem:function(l){var f=document.createElement("label"),y=this._map.hasLayer(l.layer),S;l.overlay?(S=document.createElement("input"),S.type="checkbox",S.className="leaflet-control-layers-selector",S.defaultChecked=y):S=this._createRadioElement("leaflet-base-layers_"+u(this),y),this._layerControlInputs.push(S),S.layerId=u(l.layer),ze(S,"click",this._onInputClick,this);var P=document.createElement("span");P.innerHTML=" "+l.name;var $=document.createElement("span");f.appendChild($),$.appendChild(S),$.appendChild(P);var Z=l.overlay?this._overlaysList:this._baseLayersList;return Z.appendChild(f),this._checkDisabledLayers(),f},_onInputClick:function(){if(!this._preventClick){var l=this._layerControlInputs,f,y,S=[],P=[];this._handlingClick=!0;for(var $=l.length-1;$>=0;$--)f=l[$],y=this._getLayer(f.layerId).layer,f.checked?S.push(y):f.checked||P.push(y);for($=0;$<P.length;$++)this._map.hasLayer(P[$])&&this._map.removeLayer(P[$]);for($=0;$<S.length;$++)this._map.hasLayer(S[$])||this._map.addLayer(S[$]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var l=this._layerControlInputs,f,y,S=this._map.getZoom(),P=l.length-1;P>=0;P--)f=l[P],y=this._getLayer(f.layerId).layer,f.disabled=y.options.minZoom!==void 0&&S<y.options.minZoom||y.options.maxZoom!==void 0&&S>y.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var l=this._section;this._preventClick=!0,ze(l,"click",dr),this.expand();var f=this;setTimeout(function(){wt(l,"click",dr),f._preventClick=!1})}}),$k=function(l,f,y){return new S1(l,f,y)},Cp=xn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(l){var f="leaflet-control-zoom",y=tt("div",f+" leaflet-bar"),S=this.options;return this._zoomInButton=this._createButton(S.zoomInText,S.zoomInTitle,f+"-in",y,this._zoomIn),this._zoomOutButton=this._createButton(S.zoomOutText,S.zoomOutTitle,f+"-out",y,this._zoomOut),this._updateDisabled(),l.on("zoomend zoomlevelschange",this._updateDisabled,this),y},onRemove:function(l){l.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(l){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(l.shiftKey?3:1))},_zoomOut:function(l){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(l.shiftKey?3:1))},_createButton:function(l,f,y,S,P){var $=tt("a",y,S);return $.innerHTML=l,$.href="#",$.title=f,$.setAttribute("role","button"),$.setAttribute("aria-label",f),Ws($),ze($,"click",fa),ze($,"click",P,this),ze($,"click",this._refocusOnMap,this),$},_updateDisabled:function(){var l=this._map,f="leaflet-disabled";Ut(this._zoomInButton,f),Ut(this._zoomOutButton,f),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||l._zoom===l.getMinZoom())&&(Ge(this._zoomOutButton,f),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||l._zoom===l.getMaxZoom())&&(Ge(this._zoomInButton,f),this._zoomInButton.setAttribute("aria-disabled","true"))}});Qe.mergeOptions({zoomControl:!0}),Qe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Cp,this.addControl(this.zoomControl))});var Bk=function(l){return new Cp(l)},E1=xn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(l){var f="leaflet-control-scale",y=tt("div",f),S=this.options;return this._addScales(S,f+"-line",y),l.on(S.updateWhenIdle?"moveend":"move",this._update,this),l.whenReady(this._update,this),y},onRemove:function(l){l.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(l,f,y){l.metric&&(this._mScale=tt("div",f,y)),l.imperial&&(this._iScale=tt("div",f,y))},_update:function(){var l=this._map,f=l.getSize().y/2,y=l.distance(l.containerPointToLatLng([0,f]),l.containerPointToLatLng([this.options.maxWidth,f]));this._updateScales(y)},_updateScales:function(l){this.options.metric&&l&&this._updateMetric(l),this.options.imperial&&l&&this._updateImperial(l)},_updateMetric:function(l){var f=this._getRoundNum(l),y=f<1e3?f+" m":f/1e3+" km";this._updateScale(this._mScale,y,f/l)},_updateImperial:function(l){var f=l*3.2808399,y,S,P;f>5280?(y=f/5280,S=this._getRoundNum(y),this._updateScale(this._iScale,S+" mi",S/y)):(P=this._getRoundNum(f),this._updateScale(this._iScale,P+" ft",P/f))},_updateScale:function(l,f,y){l.style.width=Math.round(this.options.maxWidth*y)+"px",l.innerHTML=f},_getRoundNum:function(l){var f=Math.pow(10,(Math.floor(l)+"").length-1),y=l/f;return y=y>=10?10:y>=5?5:y>=3?3:y>=2?2:1,f*y}}),Hk=function(l){return new E1(l)},zk='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',xp=xn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Pe.inlineSvg?zk+" ":"")+"Leaflet</a>"},initialize:function(l){g(this,l),this._attributions={}},onAdd:function(l){l.attributionControl=this,this._container=tt("div","leaflet-control-attribution"),Ws(this._container);for(var f in l._layers)l._layers[f].getAttribution&&this.addAttribution(l._layers[f].getAttribution());return this._update(),l.on("layeradd",this._addAttribution,this),this._container},onRemove:function(l){l.off("layeradd",this._addAttribution,this)},_addAttribution:function(l){l.layer.getAttribution&&(this.addAttribution(l.layer.getAttribution()),l.layer.once("remove",function(){this.removeAttribution(l.layer.getAttribution())},this))},setPrefix:function(l){return this.options.prefix=l,this._update(),this},addAttribution:function(l){return l?(this._attributions[l]||(this._attributions[l]=0),this._attributions[l]++,this._update(),this):this},removeAttribution:function(l){return l?(this._attributions[l]&&(this._attributions[l]--,this._update()),this):this},_update:function(){if(this._map){var l=[];for(var f in this._attributions)this._attributions[f]&&l.push(f);var y=[];this.options.prefix&&y.push(this.options.prefix),l.length&&y.push(l.join(", ")),this._container.innerHTML=y.join(' <span aria-hidden="true">|</span> ')}}});Qe.mergeOptions({attributionControl:!0}),Qe.addInitHook(function(){this.options.attributionControl&&new xp().addTo(this)});var jk=function(l){return new xp(l)};xn.Layers=S1,xn.Zoom=Cp,xn.Scale=E1,xn.Attribution=xp,Us.layers=$k,Us.zoom=Bk,Us.scale=Hk,Us.attribution=jk;var Fn=X.extend({initialize:function(l){this._map=l},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Fn.addTo=function(l,f){return l.addHandler(f,this),this};var Wk={Events:V},M1=Pe.touch?"touchstart mousedown":"mousedown",Ii=z.extend({options:{clickTolerance:3},initialize:function(l,f,y,S){g(this,S),this._element=l,this._dragStartTarget=f||l,this._preventOutline=y},enable:function(){this._enabled||(ze(this._dragStartTarget,M1,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ii._dragging===this&&this.finishDrag(!0),wt(this._dragStartTarget,M1,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(l){if(this._enabled&&(this._moved=!1,!up(this._element,"leaflet-zoom-anim"))){if(l.touches&&l.touches.length!==1){Ii._dragging===this&&this.finishDrag();return}if(!(Ii._dragging||l.shiftKey||l.which!==1&&l.button!==1&&!l.touches)&&(Ii._dragging=this,this._preventOutline&&mp(this._element),hp(),Hs(),!this._moving)){this.fire("down");var f=l.touches?l.touches[0]:l,y=b1(this._element);this._startPoint=new q(f.clientX,f.clientY),this._startPos=da(this._element),this._parentScale=gp(y);var S=l.type==="mousedown";ze(document,S?"mousemove":"touchmove",this._onMove,this),ze(document,S?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(l){if(this._enabled){if(l.touches&&l.touches.length>1){this._moved=!0;return}var f=l.touches&&l.touches.length===1?l.touches[0]:l,y=new q(f.clientX,f.clientY)._subtract(this._startPoint);!y.x&&!y.y||Math.abs(y.x)+Math.abs(y.y)<this.options.clickTolerance||(y.x/=this._parentScale.x,y.y/=this._parentScale.y,dr(l),this._moved||(this.fire("dragstart"),this._moved=!0,Ge(document.body,"leaflet-dragging"),this._lastTarget=l.target||l.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Ge(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(y),this._moving=!0,this._lastEvent=l,this._updatePosition())}},_updatePosition:function(){var l={originalEvent:this._lastEvent};this.fire("predrag",l),Kt(this._element,this._newPos),this.fire("drag",l)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(l){Ut(document.body,"leaflet-dragging"),this._lastTarget&&(Ut(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),wt(document,"mousemove touchmove",this._onMove,this),wt(document,"mouseup touchend touchcancel",this._onUp,this),fp(),zs();var f=this._moved&&this._moving;this._moving=!1,Ii._dragging=!1,f&&this.fire("dragend",{noInertia:l,distance:this._newPos.distanceTo(this._startPos)})}});function A1(l,f,y){var S,P=[1,4,2,8],$,Z,te,ae,he,Ce,Oe,qe;for($=0,Ce=l.length;$<Ce;$++)l[$]._code=pa(l[$],f);for(te=0;te<4;te++){for(Oe=P[te],S=[],$=0,Ce=l.length,Z=Ce-1;$<Ce;Z=$++)ae=l[$],he=l[Z],ae._code&Oe?he._code&Oe||(qe=gc(he,ae,Oe,f,y),qe._code=pa(qe,f),S.push(qe)):(he._code&Oe&&(qe=gc(he,ae,Oe,f,y),qe._code=pa(qe,f),S.push(qe)),S.push(ae));l=S}return l}function P1(l,f){var y,S,P,$,Z,te,ae,he,Ce;if(!l||l.length===0)throw new Error("latlngs not passed");un(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var Oe=se([0,0]),qe=re(l),Sr=qe.getNorthWest().distanceTo(qe.getSouthWest())*qe.getNorthEast().distanceTo(qe.getNorthWest());Sr<1700&&(Oe=Tp(l));var or=l.length,cn=[];for(y=0;y<or;y++){var Lr=se(l[y]);cn.push(f.project(se([Lr.lat-Oe.lat,Lr.lng-Oe.lng])))}for(te=ae=he=0,y=0,S=or-1;y<or;S=y++)P=cn[y],$=cn[S],Z=P.y*$.x-$.y*P.x,ae+=(P.x+$.x)*Z,he+=(P.y+$.y)*Z,te+=Z*3;te===0?Ce=cn[0]:Ce=[ae/te,he/te];var lo=f.unproject(j(Ce));return se([lo.lat+Oe.lat,lo.lng+Oe.lng])}function Tp(l){for(var f=0,y=0,S=0,P=0;P<l.length;P++){var $=se(l[P]);f+=$.lat,y+=$.lng,S++}return se([f/S,y/S])}var Uk={__proto__:null,clipPolygon:A1,polygonCenter:P1,centroid:Tp};function R1(l,f){if(!f||!l.length)return l.slice();var y=f*f;return l=qk(l,y),l=Gk(l,y),l}function O1(l,f,y){return Math.sqrt(Vs(l,f,y,!0))}function Vk(l,f,y){return Vs(l,f,y)}function Gk(l,f){var y=l.length,S=typeof Uint8Array!="undefined"?Uint8Array:Array,P=new S(y);P[0]=P[y-1]=1,Sp(l,P,f,0,y-1);var $,Z=[];for($=0;$<y;$++)P[$]&&Z.push(l[$]);return Z}function Sp(l,f,y,S,P){var $=0,Z,te,ae;for(te=S+1;te<=P-1;te++)ae=Vs(l[te],l[S],l[P],!0),ae>$&&(Z=te,$=ae);$>y&&(f[Z]=1,Sp(l,f,y,S,Z),Sp(l,f,y,Z,P))}function qk(l,f){for(var y=[l[0]],S=1,P=0,$=l.length;S<$;S++)Yk(l[S],l[P])>f&&(y.push(l[S]),P=S);return P<$-1&&y.push(l[$-1]),y}var k1;function D1(l,f,y,S,P){var $=S?k1:pa(l,y),Z=pa(f,y),te,ae,he;for(k1=Z;;){if(!($|Z))return[l,f];if($&Z)return!1;te=$||Z,ae=gc(l,f,te,y,P),he=pa(ae,y),te===$?(l=ae,$=he):(f=ae,Z=he)}}function gc(l,f,y,S,P){var $=f.x-l.x,Z=f.y-l.y,te=S.min,ae=S.max,he,Ce;return y&8?(he=l.x+$*(ae.y-l.y)/Z,Ce=ae.y):y&4?(he=l.x+$*(te.y-l.y)/Z,Ce=te.y):y&2?(he=ae.x,Ce=l.y+Z*(ae.x-l.x)/$):y&1&&(he=te.x,Ce=l.y+Z*(te.x-l.x)/$),new q(he,Ce,P)}function pa(l,f){var y=0;return l.x<f.min.x?y|=1:l.x>f.max.x&&(y|=2),l.y<f.min.y?y|=4:l.y>f.max.y&&(y|=8),y}function Yk(l,f){var y=f.x-l.x,S=f.y-l.y;return y*y+S*S}function Vs(l,f,y,S){var P=f.x,$=f.y,Z=y.x-P,te=y.y-$,ae=Z*Z+te*te,he;return ae>0&&(he=((l.x-P)*Z+(l.y-$)*te)/ae,he>1?(P=y.x,$=y.y):he>0&&(P+=Z*he,$+=te*he)),Z=l.x-P,te=l.y-$,S?Z*Z+te*te:new q(P,$)}function un(l){return!E(l[0])||typeof l[0][0]!="object"&&typeof l[0][0]!="undefined"}function N1(l){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),un(l)}function I1(l,f){var y,S,P,$,Z,te,ae,he;if(!l||l.length===0)throw new Error("latlngs not passed");un(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var Ce=se([0,0]),Oe=re(l),qe=Oe.getNorthWest().distanceTo(Oe.getSouthWest())*Oe.getNorthEast().distanceTo(Oe.getNorthWest());qe<1700&&(Ce=Tp(l));var Sr=l.length,or=[];for(y=0;y<Sr;y++){var cn=se(l[y]);or.push(f.project(se([cn.lat-Ce.lat,cn.lng-Ce.lng])))}for(y=0,S=0;y<Sr-1;y++)S+=or[y].distanceTo(or[y+1])/2;if(S===0)he=or[0];else for(y=0,$=0;y<Sr-1;y++)if(Z=or[y],te=or[y+1],P=Z.distanceTo(te),$+=P,$>S){ae=($-S)/P,he=[te.x-ae*(te.x-Z.x),te.y-ae*(te.y-Z.y)];break}var Lr=f.unproject(j(he));return se([Lr.lat+Ce.lat,Lr.lng+Ce.lng])}var Xk={__proto__:null,simplify:R1,pointToSegmentDistance:O1,closestPointOnSegment:Vk,clipSegment:D1,_getEdgeIntersection:gc,_getBitCode:pa,_sqClosestPointOnSegment:Vs,isFlat:un,_flat:N1,polylineCenter:I1},Ep={project:function(l){return new q(l.lng,l.lat)},unproject:function(l){return new oe(l.y,l.x)},bounds:new K([-180,-90],[180,90])},Mp={R:6378137,R_MINOR:6356752314245179e-9,bounds:new K([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(l){var f=Math.PI/180,y=this.R,S=l.lat*f,P=this.R_MINOR/y,$=Math.sqrt(1-P*P),Z=$*Math.sin(S),te=Math.tan(Math.PI/4-S/2)/Math.pow((1-Z)/(1+Z),$/2);return S=-y*Math.log(Math.max(te,1e-10)),new q(l.lng*f*y,S)},unproject:function(l){for(var f=180/Math.PI,y=this.R,S=this.R_MINOR/y,P=Math.sqrt(1-S*S),$=Math.exp(-l.y/y),Z=Math.PI/2-2*Math.atan($),te=0,ae=.1,he;te<15&&Math.abs(ae)>1e-7;te++)he=P*Math.sin(Z),he=Math.pow((1-he)/(1+he),P/2),ae=Math.PI/2-2*Math.atan($*he)-Z,Z+=ae;return new oe(Z*f,l.x*f/y)}},Kk={__proto__:null,LonLat:Ep,Mercator:Mp,SphericalMercator:Se},Zk=i({},ce,{code:"EPSG:3395",projection:Mp,transformation:function(){var l=.5/(Math.PI*Mp.R);return J(l,.5,-l,.5)}()}),L1=i({},ce,{code:"EPSG:4326",projection:Ep,transformation:J(1/180,1,-1/180,.5)}),Qk=i({},de,{projection:Ep,transformation:J(1,0,-1,0),scale:function(l){return Math.pow(2,l)},zoom:function(l){return Math.log(l)/Math.LN2},distance:function(l,f){var y=f.lng-l.lng,S=f.lat-l.lat;return Math.sqrt(y*y+S*S)},infinite:!0});de.Earth=ce,de.EPSG3395=Zk,de.EPSG3857=_e,de.EPSG900913=ve,de.EPSG4326=L1,de.Simple=Qk;var Tn=z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(l){return l.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(l){return l&&l.removeLayer(this),this},getPane:function(l){return this._map.getPane(l?this.options[l]||l:this.options.pane)},addInteractiveTarget:function(l){return this._map._targets[u(l)]=this,this},removeInteractiveTarget:function(l){return delete this._map._targets[u(l)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(l){var f=l.target;if(f.hasLayer(this)){if(this._map=f,this._zoomAnimated=f._zoomAnimated,this.getEvents){var y=this.getEvents();f.on(y,this),this.once("remove",function(){f.off(y,this)},this)}this.onAdd(f),this.fire("add"),f.fire("layeradd",{layer:this})}}});Qe.include({addLayer:function(l){if(!l._layerAdd)throw new Error("The provided object is not a Layer.");var f=u(l);return this._layers[f]?this:(this._layers[f]=l,l._mapToAdd=this,l.beforeAdd&&l.beforeAdd(this),this.whenReady(l._layerAdd,l),this)},removeLayer:function(l){var f=u(l);return this._layers[f]?(this._loaded&&l.onRemove(this),delete this._layers[f],this._loaded&&(this.fire("layerremove",{layer:l}),l.fire("remove")),l._map=l._mapToAdd=null,this):this},hasLayer:function(l){return u(l)in this._layers},eachLayer:function(l,f){for(var y in this._layers)l.call(f,this._layers[y]);return this},_addLayers:function(l){l=l?E(l)?l:[l]:[];for(var f=0,y=l.length;f<y;f++)this.addLayer(l[f])},_addZoomLimit:function(l){(!isNaN(l.options.maxZoom)||!isNaN(l.options.minZoom))&&(this._zoomBoundLayers[u(l)]=l,this._updateZoomLevels())},_removeZoomLimit:function(l){var f=u(l);this._zoomBoundLayers[f]&&(delete this._zoomBoundLayers[f],this._updateZoomLevels())},_updateZoomLevels:function(){var l=1/0,f=-1/0,y=this._getZoomSpan();for(var S in this._zoomBoundLayers){var P=this._zoomBoundLayers[S].options;l=P.minZoom===void 0?l:Math.min(l,P.minZoom),f=P.maxZoom===void 0?f:Math.max(f,P.maxZoom)}this._layersMaxZoom=f===-1/0?void 0:f,this._layersMinZoom=l===1/0?void 0:l,y!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var no=Tn.extend({initialize:function(l,f){g(this,f),this._layers={};var y,S;if(l)for(y=0,S=l.length;y<S;y++)this.addLayer(l[y])},addLayer:function(l){var f=this.getLayerId(l);return this._layers[f]=l,this._map&&this._map.addLayer(l),this},removeLayer:function(l){var f=l in this._layers?l:this.getLayerId(l);return this._map&&this._layers[f]&&this._map.removeLayer(this._layers[f]),delete this._layers[f],this},hasLayer:function(l){var f=typeof l=="number"?l:this.getLayerId(l);return f in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(l){var f=Array.prototype.slice.call(arguments,1),y,S;for(y in this._layers)S=this._layers[y],S[l]&&S[l].apply(S,f);return this},onAdd:function(l){this.eachLayer(l.addLayer,l)},onRemove:function(l){this.eachLayer(l.removeLayer,l)},eachLayer:function(l,f){for(var y in this._layers)l.call(f,this._layers[y]);return this},getLayer:function(l){return this._layers[l]},getLayers:function(){var l=[];return this.eachLayer(l.push,l),l},setZIndex:function(l){return this.invoke("setZIndex",l)},getLayerId:function(l){return u(l)}}),Jk=function(l,f){return new no(l,f)},hi=no.extend({addLayer:function(l){return this.hasLayer(l)?this:(l.addEventParent(this),no.prototype.addLayer.call(this,l),this.fire("layeradd",{layer:l}))},removeLayer:function(l){return this.hasLayer(l)?(l in this._layers&&(l=this._layers[l]),l.removeEventParent(this),no.prototype.removeLayer.call(this,l),this.fire("layerremove",{layer:l})):this},setStyle:function(l){return this.invoke("setStyle",l)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var l=new ne;for(var f in this._layers){var y=this._layers[f];l.extend(y.getBounds?y.getBounds():y.getLatLng())}return l}}),eD=function(l,f){return new hi(l,f)},io=X.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(l){g(this,l)},createIcon:function(l){return this._createIcon("icon",l)},createShadow:function(l){return this._createIcon("shadow",l)},_createIcon:function(l,f){var y=this._getIconUrl(l);if(!y){if(l==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var S=this._createImg(y,f&&f.tagName==="IMG"?f:null);return this._setIconStyles(S,l),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),S},_setIconStyles:function(l,f){var y=this.options,S=y[f+"Size"];typeof S=="number"&&(S=[S,S]);var P=j(S),$=j(f==="shadow"&&y.shadowAnchor||y.iconAnchor||P&&P.divideBy(2,!0));l.className="leaflet-marker-"+f+" "+(y.className||""),$&&(l.style.marginLeft=-$.x+"px",l.style.marginTop=-$.y+"px"),P&&(l.style.width=P.x+"px",l.style.height=P.y+"px")},_createImg:function(l,f){return f=f||document.createElement("img"),f.src=l,f},_getIconUrl:function(l){return Pe.retina&&this.options[l+"RetinaUrl"]||this.options[l+"Url"]}});function tD(l){return new io(l)}var Gs=io.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(l){return typeof Gs.imagePath!="string"&&(Gs.imagePath=this._detectIconPath()),(this.options.imagePath||Gs.imagePath)+io.prototype._getIconUrl.call(this,l)},_stripUrl:function(l){var f=function(y,S,P){var $=S.exec(y);return $&&$[P]};return l=f(l,/^url\((['"])?(.+)\1\)$/,2),l&&f(l,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var l=tt("div","leaflet-default-icon-path",document.body),f=Bs(l,"background-image")||Bs(l,"backgroundImage");if(document.body.removeChild(l),f=this._stripUrl(f),f)return f;var y=document.querySelector('link[href$="leaflet.css"]');return y?y.href.substring(0,y.href.length-11-1):""}}),F1=Fn.extend({initialize:function(l){this._marker=l},addHooks:function(){var l=this._marker._icon;this._draggable||(this._draggable=new Ii(l,l,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Ge(l,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ut(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(l){var f=this._marker,y=f._map,S=this._marker.options.autoPanSpeed,P=this._marker.options.autoPanPadding,$=da(f._icon),Z=y.getPixelBounds(),te=y.getPixelOrigin(),ae=ie(Z.min._subtract(te).add(P),Z.max._subtract(te).subtract(P));if(!ae.contains($)){var he=j((Math.max(ae.max.x,$.x)-ae.max.x)/(Z.max.x-ae.max.x)-(Math.min(ae.min.x,$.x)-ae.min.x)/(Z.min.x-ae.min.x),(Math.max(ae.max.y,$.y)-ae.max.y)/(Z.max.y-ae.max.y)-(Math.min(ae.min.y,$.y)-ae.min.y)/(Z.min.y-ae.min.y)).multiplyBy(S);y.panBy(he,{animate:!1}),this._draggable._newPos._add(he),this._draggable._startPos._add(he),Kt(f._icon,this._draggable._newPos),this._onDrag(l),this._panRequest=Y(this._adjustPan.bind(this,l))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(l){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=Y(this._adjustPan.bind(this,l)))},_onDrag:function(l){var f=this._marker,y=f._shadow,S=da(f._icon),P=f._map.layerPointToLatLng(S);y&&Kt(y,S),f._latlng=P,l.latlng=P,l.oldLatLng=this._oldLatLng,f.fire("move",l).fire("drag",l)},_onDragEnd:function(l){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",l)}}),vc=Tn.extend({options:{icon:new Gs,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(l,f){g(this,f),this._latlng=se(l)},onAdd:function(l){this._zoomAnimated=this._zoomAnimated&&l.options.markerZoomAnimation,this._zoomAnimated&&l.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(l){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&l.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(l){var f=this._latlng;return this._latlng=se(l),this.update(),this.fire("move",{oldLatLng:f,latlng:this._latlng})},setZIndexOffset:function(l){return this.options.zIndexOffset=l,this.update()},getIcon:function(){return this.options.icon},setIcon:function(l){return this.options.icon=l,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var l=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(l)}return this},_initIcon:function(){var l=this.options,f="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),y=l.icon.createIcon(this._icon),S=!1;y!==this._icon&&(this._icon&&this._removeIcon(),S=!0,l.title&&(y.title=l.title),y.tagName==="IMG"&&(y.alt=l.alt||"")),Ge(y,f),l.keyboard&&(y.tabIndex="0",y.setAttribute("role","button")),this._icon=y,l.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ze(y,"focus",this._panOnFocus,this);var P=l.icon.createShadow(this._shadow),$=!1;P!==this._shadow&&(this._removeShadow(),$=!0),P&&(Ge(P,f),P.alt=""),this._shadow=P,l.opacity<1&&this._updateOpacity(),S&&this.getPane().appendChild(this._icon),this._initInteraction(),P&&$&&this.getPane(l.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&wt(this._icon,"focus",this._panOnFocus,this),It(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&It(this._shadow),this._shadow=null},_setPos:function(l){this._icon&&Kt(this._icon,l),this._shadow&&Kt(this._shadow,l),this._zIndex=l.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(l){this._icon&&(this._icon.style.zIndex=this._zIndex+l)},_animateZoom:function(l){var f=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center).round();this._setPos(f)},_initInteraction:function(){if(this.options.interactive&&(Ge(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),F1)){var l=this.options.draggable;this.dragging&&(l=this.dragging.enabled(),this.dragging.disable()),this.dragging=new F1(this),l&&this.dragging.enable()}},setOpacity:function(l){return this.options.opacity=l,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var l=this.options.opacity;this._icon&&ln(this._icon,l),this._shadow&&ln(this._shadow,l)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var l=this._map;if(l){var f=this.options.icon.options,y=f.iconSize?j(f.iconSize):j(0,0),S=f.iconAnchor?j(f.iconAnchor):j(0,0);l.panInside(this._latlng,{paddingTopLeft:S,paddingBottomRight:y.subtract(S)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function rD(l,f){return new vc(l,f)}var Li=Tn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(l){this._renderer=l.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(l){return g(this,l),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&l&&Object.prototype.hasOwnProperty.call(l,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),yc=Li.extend({options:{fill:!0,radius:10},initialize:function(l,f){g(this,f),this._latlng=se(l),this._radius=this.options.radius},setLatLng:function(l){var f=this._latlng;return this._latlng=se(l),this.redraw(),this.fire("move",{oldLatLng:f,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(l){return this.options.radius=this._radius=l,this.redraw()},getRadius:function(){return this._radius},setStyle:function(l){var f=l&&l.radius||this._radius;return Li.prototype.setStyle.call(this,l),this.setRadius(f),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var l=this._radius,f=this._radiusY||l,y=this._clickTolerance(),S=[l+y,f+y];this._pxBounds=new K(this._point.subtract(S),this._point.add(S))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(l){return l.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function nD(l,f){return new yc(l,f)}var Ap=yc.extend({initialize:function(l,f,y){if(typeof f=="number"&&(f=i({},y,{radius:f})),g(this,f),this._latlng=se(l),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(l){return this._mRadius=l,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var l=[this._radius,this._radiusY||this._radius];return new ne(this._map.layerPointToLatLng(this._point.subtract(l)),this._map.layerPointToLatLng(this._point.add(l)))},setStyle:Li.prototype.setStyle,_project:function(){var l=this._latlng.lng,f=this._latlng.lat,y=this._map,S=y.options.crs;if(S.distance===ce.distance){var P=Math.PI/180,$=this._mRadius/ce.R/P,Z=y.project([f+$,l]),te=y.project([f-$,l]),ae=Z.add(te).divideBy(2),he=y.unproject(ae).lat,Ce=Math.acos((Math.cos($*P)-Math.sin(f*P)*Math.sin(he*P))/(Math.cos(f*P)*Math.cos(he*P)))/P;(isNaN(Ce)||Ce===0)&&(Ce=$/Math.cos(Math.PI/180*f)),this._point=ae.subtract(y.getPixelOrigin()),this._radius=isNaN(Ce)?0:ae.x-y.project([he,l-Ce]).x,this._radiusY=ae.y-Z.y}else{var Oe=S.unproject(S.project(this._latlng).subtract([this._mRadius,0]));this._point=y.latLngToLayerPoint(this._latlng),this._radius=this._point.x-y.latLngToLayerPoint(Oe).x}this._updateBounds()}});function iD(l,f,y){return new Ap(l,f,y)}var fi=Li.extend({options:{smoothFactor:1,noClip:!1},initialize:function(l,f){g(this,f),this._setLatLngs(l)},getLatLngs:function(){return this._latlngs},setLatLngs:function(l){return this._setLatLngs(l),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(l){for(var f=1/0,y=null,S=Vs,P,$,Z=0,te=this._parts.length;Z<te;Z++)for(var ae=this._parts[Z],he=1,Ce=ae.length;he<Ce;he++){P=ae[he-1],$=ae[he];var Oe=S(l,P,$,!0);Oe<f&&(f=Oe,y=S(l,P,$))}return y&&(y.distance=Math.sqrt(f)),y},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return I1(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(l,f){return f=f||this._defaultShape(),l=se(l),f.push(l),this._bounds.extend(l),this.redraw()},_setLatLngs:function(l){this._bounds=new ne,this._latlngs=this._convertLatLngs(l)},_defaultShape:function(){return un(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(l){for(var f=[],y=un(l),S=0,P=l.length;S<P;S++)y?(f[S]=se(l[S]),this._bounds.extend(f[S])):f[S]=this._convertLatLngs(l[S]);return f},_project:function(){var l=new K;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,l),this._bounds.isValid()&&l.isValid()&&(this._rawPxBounds=l,this._updateBounds())},_updateBounds:function(){var l=this._clickTolerance(),f=new q(l,l);this._rawPxBounds&&(this._pxBounds=new K([this._rawPxBounds.min.subtract(f),this._rawPxBounds.max.add(f)]))},_projectLatlngs:function(l,f,y){var S=l[0]instanceof oe,P=l.length,$,Z;if(S){for(Z=[],$=0;$<P;$++)Z[$]=this._map.latLngToLayerPoint(l[$]),y.extend(Z[$]);f.push(Z)}else for($=0;$<P;$++)this._projectLatlngs(l[$],f,y)},_clipPoints:function(){var l=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}var f=this._parts,y,S,P,$,Z,te,ae;for(y=0,P=0,$=this._rings.length;y<$;y++)for(ae=this._rings[y],S=0,Z=ae.length;S<Z-1;S++)te=D1(ae[S],ae[S+1],l,S,!0),te&&(f[P]=f[P]||[],f[P].push(te[0]),(te[1]!==ae[S+1]||S===Z-2)&&(f[P].push(te[1]),P++))}},_simplifyPoints:function(){for(var l=this._parts,f=this.options.smoothFactor,y=0,S=l.length;y<S;y++)l[y]=R1(l[y],f)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(l,f){var y,S,P,$,Z,te,ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(y=0,$=this._parts.length;y<$;y++)for(te=this._parts[y],S=0,Z=te.length,P=Z-1;S<Z;P=S++)if(!(!f&&S===0)&&O1(l,te[P],te[S])<=ae)return!0;return!1}});function aD(l,f){return new fi(l,f)}fi._flat=N1;var ao=fi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return P1(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(l){var f=fi.prototype._convertLatLngs.call(this,l),y=f.length;return y>=2&&f[0]instanceof oe&&f[0].equals(f[y-1])&&f.pop(),f},_setLatLngs:function(l){fi.prototype._setLatLngs.call(this,l),un(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return un(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var l=this._renderer._bounds,f=this.options.weight,y=new q(f,f);if(l=new K(l.min.subtract(y),l.max.add(y)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}for(var S=0,P=this._rings.length,$;S<P;S++)$=A1(this._rings[S],l,!0),$.length&&this._parts.push($)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(l){var f=!1,y,S,P,$,Z,te,ae,he;if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for($=0,ae=this._parts.length;$<ae;$++)for(y=this._parts[$],Z=0,he=y.length,te=he-1;Z<he;te=Z++)S=y[Z],P=y[te],S.y>l.y!=P.y>l.y&&l.x<(P.x-S.x)*(l.y-S.y)/(P.y-S.y)+S.x&&(f=!f);return f||fi.prototype._containsPoint.call(this,l,!0)}});function oD(l,f){return new ao(l,f)}var pi=hi.extend({initialize:function(l,f){g(this,f),this._layers={},l&&this.addData(l)},addData:function(l){var f=E(l)?l:l.features,y,S,P;if(f){for(y=0,S=f.length;y<S;y++)P=f[y],(P.geometries||P.geometry||P.features||P.coordinates)&&this.addData(P);return this}var $=this.options;if($.filter&&!$.filter(l))return this;var Z=bc(l,$);return Z?(Z.feature=Cc(l),Z.defaultOptions=Z.options,this.resetStyle(Z),$.onEachFeature&&$.onEachFeature(l,Z),this.addLayer(Z)):this},resetStyle:function(l){return l===void 0?this.eachLayer(this.resetStyle,this):(l.options=i({},l.defaultOptions),this._setLayerStyle(l,this.options.style),this)},setStyle:function(l){return this.eachLayer(function(f){this._setLayerStyle(f,l)},this)},_setLayerStyle:function(l,f){l.setStyle&&(typeof f=="function"&&(f=f(l.feature)),l.setStyle(f))}});function bc(l,f){var y=l.type==="Feature"?l.geometry:l,S=y?y.coordinates:null,P=[],$=f&&f.pointToLayer,Z=f&&f.coordsToLatLng||Pp,te,ae,he,Ce;if(!S&&!y)return null;switch(y.type){case"Point":return te=Z(S),$1($,l,te,f);case"MultiPoint":for(he=0,Ce=S.length;he<Ce;he++)te=Z(S[he]),P.push($1($,l,te,f));return new hi(P);case"LineString":case"MultiLineString":return ae=_c(S,y.type==="LineString"?0:1,Z),new fi(ae,f);case"Polygon":case"MultiPolygon":return ae=_c(S,y.type==="Polygon"?1:2,Z),new ao(ae,f);case"GeometryCollection":for(he=0,Ce=y.geometries.length;he<Ce;he++){var Oe=bc({geometry:y.geometries[he],type:"Feature",properties:l.properties},f);Oe&&P.push(Oe)}return new hi(P);case"FeatureCollection":for(he=0,Ce=y.features.length;he<Ce;he++){var qe=bc(y.features[he],f);qe&&P.push(qe)}return new hi(P);default:throw new Error("Invalid GeoJSON object.")}}function $1(l,f,y,S){return l?l(f,y):new vc(y,S&&S.markersInheritOptions&&S)}function Pp(l){return new oe(l[1],l[0],l[2])}function _c(l,f,y){for(var S=[],P=0,$=l.length,Z;P<$;P++)Z=f?_c(l[P],f-1,y):(y||Pp)(l[P]),S.push(Z);return S}function Rp(l,f){return l=se(l),l.alt!==void 0?[p(l.lng,f),p(l.lat,f),p(l.alt,f)]:[p(l.lng,f),p(l.lat,f)]}function wc(l,f,y,S){for(var P=[],$=0,Z=l.length;$<Z;$++)P.push(f?wc(l[$],un(l[$])?0:f-1,y,S):Rp(l[$],S));return!f&&y&&P.length>0&&P.push(P[0].slice()),P}function oo(l,f){return l.feature?i({},l.feature,{geometry:f}):Cc(f)}function Cc(l){return l.type==="Feature"||l.type==="FeatureCollection"?l:{type:"Feature",properties:{},geometry:l}}var Op={toGeoJSON:function(l){return oo(this,{type:"Point",coordinates:Rp(this.getLatLng(),l)})}};vc.include(Op),Ap.include(Op),yc.include(Op),fi.include({toGeoJSON:function(l){var f=!un(this._latlngs),y=wc(this._latlngs,f?1:0,!1,l);return oo(this,{type:(f?"Multi":"")+"LineString",coordinates:y})}}),ao.include({toGeoJSON:function(l){var f=!un(this._latlngs),y=f&&!un(this._latlngs[0]),S=wc(this._latlngs,y?2:f?1:0,!0,l);return f||(S=[S]),oo(this,{type:(y?"Multi":"")+"Polygon",coordinates:S})}}),no.include({toMultiPoint:function(l){var f=[];return this.eachLayer(function(y){f.push(y.toGeoJSON(l).geometry.coordinates)}),oo(this,{type:"MultiPoint",coordinates:f})},toGeoJSON:function(l){var f=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(f==="MultiPoint")return this.toMultiPoint(l);var y=f==="GeometryCollection",S=[];return this.eachLayer(function(P){if(P.toGeoJSON){var $=P.toGeoJSON(l);if(y)S.push($.geometry);else{var Z=Cc($);Z.type==="FeatureCollection"?S.push.apply(S,Z.features):S.push(Z)}}}),y?oo(this,{geometries:S,type:"GeometryCollection"}):{type:"FeatureCollection",features:S}}});function B1(l,f){return new pi(l,f)}var sD=B1,xc=Tn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(l,f,y){this._url=l,this._bounds=re(f),g(this,y)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ge(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){It(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(l){return this.options.opacity=l,this._image&&this._updateOpacity(),this},setStyle:function(l){return l.opacity&&this.setOpacity(l.opacity),this},bringToFront:function(){return this._map&&to(this._image),this},bringToBack:function(){return this._map&&ro(this._image),this},setUrl:function(l){return this._url=l,this._image&&(this._image.src=l),this},setBounds:function(l){return this._bounds=re(l),this._map&&this._reset(),this},getEvents:function(){var l={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var l=this._url.tagName==="IMG",f=this._image=l?this._url:tt("img");if(Ge(f,"leaflet-image-layer"),this._zoomAnimated&&Ge(f,"leaflet-zoom-animated"),this.options.className&&Ge(f,this.options.className),f.onselectstart=h,f.onmousemove=h,f.onload=o(this.fire,this,"load"),f.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),l){this._url=f.src;return}f.src=this._url,f.alt=this.options.alt},_animateZoom:function(l){var f=this._map.getZoomScale(l.zoom),y=this._map._latLngBoundsToNewLayerBounds(this._bounds,l.zoom,l.center).min;ca(this._image,y,f)},_reset:function(){var l=this._image,f=new K(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),y=f.getSize();Kt(l,f.min),l.style.width=y.x+"px",l.style.height=y.y+"px"},_updateOpacity:function(){ln(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var l=this.options.errorOverlayUrl;l&&this._url!==l&&(this._url=l,this._image.src=l)},getCenter:function(){return this._bounds.getCenter()}}),lD=function(l,f,y){return new xc(l,f,y)},H1=xc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var l=this._url.tagName==="VIDEO",f=this._image=l?this._url:tt("video");if(Ge(f,"leaflet-image-layer"),this._zoomAnimated&&Ge(f,"leaflet-zoom-animated"),this.options.className&&Ge(f,this.options.className),f.onselectstart=h,f.onmousemove=h,f.onloadeddata=o(this.fire,this,"load"),l){for(var y=f.getElementsByTagName("source"),S=[],P=0;P<y.length;P++)S.push(y[P].src);this._url=y.length>0?S:[f.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(f.style,"objectFit")&&(f.style.objectFit="fill"),f.autoplay=!!this.options.autoplay,f.loop=!!this.options.loop,f.muted=!!this.options.muted,f.playsInline=!!this.options.playsInline;for(var $=0;$<this._url.length;$++){var Z=tt("source");Z.src=this._url[$],f.appendChild(Z)}}});function uD(l,f,y){return new H1(l,f,y)}var z1=xc.extend({_initImage:function(){var l=this._image=this._url;Ge(l,"leaflet-image-layer"),this._zoomAnimated&&Ge(l,"leaflet-zoom-animated"),this.options.className&&Ge(l,this.options.className),l.onselectstart=h,l.onmousemove=h}});function cD(l,f,y){return new z1(l,f,y)}var $n=Tn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(l,f){l&&(l instanceof oe||E(l))?(this._latlng=se(l),g(this,f)):(g(this,l),this._source=f),this.options.content&&(this._content=this.options.content)},openOn:function(l){return l=arguments.length?l:this._source._map,l.hasLayer(this)||l.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(l){return this._map?this.close():(arguments.length?this._source=l:l=this._source,this._prepareOpen(),this.openOn(l._map)),this},onAdd:function(l){this._zoomAnimated=l._zoomAnimated,this._container||this._initLayout(),l._fadeAnimated&&ln(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),l._fadeAnimated&&ln(this._container,1),this.bringToFront(),this.options.interactive&&(Ge(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(l){l._fadeAnimated?(ln(this._container,0),this._removeTimeout=setTimeout(o(It,void 0,this._container),200)):It(this._container),this.options.interactive&&(Ut(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(l){return this._latlng=se(l),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(l){return this._content=l,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var l={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&to(this._container),this},bringToBack:function(){return this._map&&ro(this._container),this},_prepareOpen:function(l){var f=this._source;if(!f._map)return!1;if(f instanceof hi){f=null;var y=this._source._layers;for(var S in y)if(y[S]._map){f=y[S];break}if(!f)return!1;this._source=f}if(!l)if(f.getCenter)l=f.getCenter();else if(f.getLatLng)l=f.getLatLng();else if(f.getBounds)l=f.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(l),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var l=this._contentNode,f=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof f=="string")l.innerHTML=f;else{for(;l.hasChildNodes();)l.removeChild(l.firstChild);l.appendChild(f)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var l=this._map.latLngToLayerPoint(this._latlng),f=j(this.options.offset),y=this._getAnchor();this._zoomAnimated?Kt(this._container,l.add(y)):f=f.add(l).add(y);var S=this._containerBottom=-f.y,P=this._containerLeft=-Math.round(this._containerWidth/2)+f.x;this._container.style.bottom=S+"px",this._container.style.left=P+"px"}},_getAnchor:function(){return[0,0]}});Qe.include({_initOverlay:function(l,f,y,S){var P=f;return P instanceof l||(P=new l(S).setContent(f)),y&&P.setLatLng(y),P}}),Tn.include({_initOverlay:function(l,f,y,S){var P=y;return P instanceof l?(g(P,S),P._source=this):(P=f&&!S?f:new l(S,this),P.setContent(y)),P}});var Tc=$n.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(l){return l=arguments.length?l:this._source._map,!l.hasLayer(this)&&l._popup&&l._popup.options.autoClose&&l.removeLayer(l._popup),l._popup=this,$n.prototype.openOn.call(this,l)},onAdd:function(l){$n.prototype.onAdd.call(this,l),l.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Li||this._source.on("preclick",ha))},onRemove:function(l){$n.prototype.onRemove.call(this,l),l.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Li||this._source.off("preclick",ha))},getEvents:function(){var l=$n.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(l.preclick=this.close),this.options.keepInView&&(l.moveend=this._adjustPan),l},_initLayout:function(){var l="leaflet-popup",f=this._container=tt("div",l+" "+(this.options.className||"")+" leaflet-zoom-animated"),y=this._wrapper=tt("div",l+"-content-wrapper",f);if(this._contentNode=tt("div",l+"-content",y),Ws(f),_p(this._contentNode),ze(f,"contextmenu",ha),this._tipContainer=tt("div",l+"-tip-container",f),this._tip=tt("div",l+"-tip",this._tipContainer),this.options.closeButton){var S=this._closeButton=tt("a",l+"-close-button",f);S.setAttribute("role","button"),S.setAttribute("aria-label","Close popup"),S.href="#close",S.innerHTML='<span aria-hidden="true">&#215;</span>',ze(S,"click",function(P){dr(P),this.close()},this)}},_updateLayout:function(){var l=this._contentNode,f=l.style;f.width="",f.whiteSpace="nowrap";var y=l.offsetWidth;y=Math.min(y,this.options.maxWidth),y=Math.max(y,this.options.minWidth),f.width=y+1+"px",f.whiteSpace="",f.height="";var S=l.offsetHeight,P=this.options.maxHeight,$="leaflet-popup-scrolled";P&&S>P?(f.height=P+"px",Ge(l,$)):Ut(l,$),this._containerWidth=this._container.offsetWidth},_animateZoom:function(l){var f=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center),y=this._getAnchor();Kt(this._container,f.add(y))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var l=this._map,f=parseInt(Bs(this._container,"marginBottom"),10)||0,y=this._container.offsetHeight+f,S=this._containerWidth,P=new q(this._containerLeft,-y-this._containerBottom);P._add(da(this._container));var $=l.layerPointToContainerPoint(P),Z=j(this.options.autoPanPadding),te=j(this.options.autoPanPaddingTopLeft||Z),ae=j(this.options.autoPanPaddingBottomRight||Z),he=l.getSize(),Ce=0,Oe=0;$.x+S+ae.x>he.x&&(Ce=$.x+S-he.x+ae.x),$.x-Ce-te.x<0&&(Ce=$.x-te.x),$.y+y+ae.y>he.y&&(Oe=$.y+y-he.y+ae.y),$.y-Oe-te.y<0&&(Oe=$.y-te.y),(Ce||Oe)&&(this.options.keepInView&&(this._autopanning=!0),l.fire("autopanstart").panBy([Ce,Oe]))}},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),dD=function(l,f){return new Tc(l,f)};Qe.mergeOptions({closePopupOnClick:!0}),Qe.include({openPopup:function(l,f,y){return this._initOverlay(Tc,l,f,y).openOn(this),this},closePopup:function(l){return l=arguments.length?l:this._popup,l&&l.close(),this}}),Tn.include({bindPopup:function(l,f){return this._popup=this._initOverlay(Tc,this._popup,l,f),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(l){return this._popup&&(this instanceof hi||(this._popup._source=this),this._popup._prepareOpen(l||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(l){return this._popup&&this._popup.setContent(l),this},getPopup:function(){return this._popup},_openPopup:function(l){if(!(!this._popup||!this._map)){fa(l);var f=l.layer||l.target;if(this._popup._source===f&&!(f instanceof Li)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(l.latlng);return}this._popup._source=f,this.openPopup(l.latlng)}},_movePopup:function(l){this._popup.setLatLng(l.latlng)},_onKeyPress:function(l){l.originalEvent.keyCode===13&&this._openPopup(l)}});var Sc=$n.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(l){$n.prototype.onAdd.call(this,l),this.setOpacity(this.options.opacity),l.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(l){$n.prototype.onRemove.call(this,l),l.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var l=$n.prototype.getEvents.call(this);return this.options.permanent||(l.preclick=this.close),l},_initLayout:function(){var l="leaflet-tooltip",f=l+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=tt("div",f),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(l){var f,y,S=this._map,P=this._container,$=S.latLngToContainerPoint(S.getCenter()),Z=S.layerPointToContainerPoint(l),te=this.options.direction,ae=P.offsetWidth,he=P.offsetHeight,Ce=j(this.options.offset),Oe=this._getAnchor();te==="top"?(f=ae/2,y=he):te==="bottom"?(f=ae/2,y=0):te==="center"?(f=ae/2,y=he/2):te==="right"?(f=0,y=he/2):te==="left"?(f=ae,y=he/2):Z.x<$.x?(te="right",f=0,y=he/2):(te="left",f=ae+(Ce.x+Oe.x)*2,y=he/2),l=l.subtract(j(f,y,!0)).add(Ce).add(Oe),Ut(P,"leaflet-tooltip-right"),Ut(P,"leaflet-tooltip-left"),Ut(P,"leaflet-tooltip-top"),Ut(P,"leaflet-tooltip-bottom"),Ge(P,"leaflet-tooltip-"+te),Kt(P,l)},_updatePosition:function(){var l=this._map.latLngToLayerPoint(this._latlng);this._setPosition(l)},setOpacity:function(l){this.options.opacity=l,this._container&&ln(this._container,l)},_animateZoom:function(l){var f=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center);this._setPosition(f)},_getAnchor:function(){return j(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),hD=function(l,f){return new Sc(l,f)};Qe.include({openTooltip:function(l,f,y){return this._initOverlay(Sc,l,f,y).openOn(this),this},closeTooltip:function(l){return l.close(),this}}),Tn.include({bindTooltip:function(l,f){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Sc,this._tooltip,l,f),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(l){if(!(!l&&this._tooltipHandlersAdded)){var f=l?"off":"on",y={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?y.add=this._openTooltip:(y.mouseover=this._openTooltip,y.mouseout=this.closeTooltip,y.click=this._openTooltip,this._map?this._addFocusListeners():y.add=this._addFocusListeners),this._tooltip.options.sticky&&(y.mousemove=this._moveTooltip),this[f](y),this._tooltipHandlersAdded=!l}},openTooltip:function(l){return this._tooltip&&(this instanceof hi||(this._tooltip._source=this),this._tooltip._prepareOpen(l)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(l){return this._tooltip&&this._tooltip.setContent(l),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(l){var f=typeof l.getElement=="function"&&l.getElement();f&&(ze(f,"focus",function(){this._tooltip._source=l,this.openTooltip()},this),ze(f,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(l){var f=typeof l.getElement=="function"&&l.getElement();f&&f.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(l){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var f=this;this._map.once("moveend",function(){f._openOnceFlag=!1,f._openTooltip(l)});return}this._tooltip._source=l.layer||l.target,this.openTooltip(this._tooltip.options.sticky?l.latlng:void 0)}},_moveTooltip:function(l){var f=l.latlng,y,S;this._tooltip.options.sticky&&l.originalEvent&&(y=this._map.mouseEventToContainerPoint(l.originalEvent),S=this._map.containerPointToLayerPoint(y),f=this._map.layerPointToLatLng(S)),this._tooltip.setLatLng(f)}});var j1=io.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(l){var f=l&&l.tagName==="DIV"?l:document.createElement("div"),y=this.options;if(y.html instanceof Element?(dc(f),f.appendChild(y.html)):f.innerHTML=y.html!==!1?y.html:"",y.bgPos){var S=j(y.bgPos);f.style.backgroundPosition=-S.x+"px "+-S.y+"px"}return this._setIconStyles(f,"icon"),f},createShadow:function(){return null}});function fD(l){return new j1(l)}io.Default=Gs;var qs=Tn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Pe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(l){g(this,l)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(l){l._addZoomLimit(this)},onRemove:function(l){this._removeAllTiles(),It(this._container),l._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(to(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ro(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(l){return this.options.opacity=l,this._updateOpacity(),this},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var l=this._clampZoom(this._map.getZoom());l!==this._tileZoom&&(this._tileZoom=l,this._updateLevels()),this._update()}return this},getEvents:function(){var l={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),l.move=this._onMove),this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},createTile:function(){return document.createElement("div")},getTileSize:function(){var l=this.options.tileSize;return l instanceof q?l:new q(l,l)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(l){for(var f=this.getPane().children,y=-l(-1/0,1/0),S=0,P=f.length,$;S<P;S++)$=f[S].style.zIndex,f[S]!==this._container&&$&&(y=l(y,+$));isFinite(y)&&(this.options.zIndex=y+l(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Pe.ielt9){ln(this._container,this.options.opacity);var l=+new Date,f=!1,y=!1;for(var S in this._tiles){var P=this._tiles[S];if(!(!P.current||!P.loaded)){var $=Math.min(1,(l-P.loaded)/200);ln(P.el,$),$<1?f=!0:(P.active?y=!0:this._onOpaqueTile(P),P.active=!0)}}y&&!this._noPrune&&this._pruneTiles(),f&&(O(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=tt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var l=this._tileZoom,f=this.options.maxZoom;if(l!==void 0){for(var y in this._levels)y=Number(y),this._levels[y].el.children.length||y===l?(this._levels[y].el.style.zIndex=f-Math.abs(l-y),this._onUpdateLevel(y)):(It(this._levels[y].el),this._removeTilesAtZoom(y),this._onRemoveLevel(y),delete this._levels[y]);var S=this._levels[l],P=this._map;return S||(S=this._levels[l]={},S.el=tt("div","leaflet-tile-container leaflet-zoom-animated",this._container),S.el.style.zIndex=f,S.origin=P.project(P.unproject(P.getPixelOrigin()),l).round(),S.zoom=l,this._setZoomTransform(S,P.getCenter(),P.getZoom()),this._onCreateLevel(S)),this._level=S,S}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var l,f,y=this._map.getZoom();if(y>this.options.maxZoom||y<this.options.minZoom){this._removeAllTiles();return}for(l in this._tiles)f=this._tiles[l],f.retain=f.current;for(l in this._tiles)if(f=this._tiles[l],f.current&&!f.active){var S=f.coords;this._retainParent(S.x,S.y,S.z,S.z-5)||this._retainChildren(S.x,S.y,S.z,S.z+2)}for(l in this._tiles)this._tiles[l].retain||this._removeTile(l)}},_removeTilesAtZoom:function(l){for(var f in this._tiles)this._tiles[f].coords.z===l&&this._removeTile(f)},_removeAllTiles:function(){for(var l in this._tiles)this._removeTile(l)},_invalidateAll:function(){for(var l in this._levels)It(this._levels[l].el),this._onRemoveLevel(Number(l)),delete this._levels[l];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(l,f,y,S){var P=Math.floor(l/2),$=Math.floor(f/2),Z=y-1,te=new q(+P,+$);te.z=+Z;var ae=this._tileCoordsToKey(te),he=this._tiles[ae];return he&&he.active?(he.retain=!0,!0):(he&&he.loaded&&(he.retain=!0),Z>S?this._retainParent(P,$,Z,S):!1)},_retainChildren:function(l,f,y,S){for(var P=2*l;P<2*l+2;P++)for(var $=2*f;$<2*f+2;$++){var Z=new q(P,$);Z.z=y+1;var te=this._tileCoordsToKey(Z),ae=this._tiles[te];if(ae&&ae.active){ae.retain=!0;continue}else ae&&ae.loaded&&(ae.retain=!0);y+1<S&&this._retainChildren(P,$,y+1,S)}},_resetView:function(l){var f=l&&(l.pinch||l.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),f,f)},_animateZoom:function(l){this._setView(l.center,l.zoom,!0,l.noUpdate)},_clampZoom:function(l){var f=this.options;return f.minNativeZoom!==void 0&&l<f.minNativeZoom?f.minNativeZoom:f.maxNativeZoom!==void 0&&f.maxNativeZoom<l?f.maxNativeZoom:l},_setView:function(l,f,y,S){var P=Math.round(f);this.options.maxZoom!==void 0&&P>this.options.maxZoom||this.options.minZoom!==void 0&&P<this.options.minZoom?P=void 0:P=this._clampZoom(P);var $=this.options.updateWhenZooming&&P!==this._tileZoom;(!S||$)&&(this._tileZoom=P,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),P!==void 0&&this._update(l),y||this._pruneTiles(),this._noPrune=!!y),this._setZoomTransforms(l,f)},_setZoomTransforms:function(l,f){for(var y in this._levels)this._setZoomTransform(this._levels[y],l,f)},_setZoomTransform:function(l,f,y){var S=this._map.getZoomScale(y,l.zoom),P=l.origin.multiplyBy(S).subtract(this._map._getNewPixelOrigin(f,y)).round();Pe.any3d?ca(l.el,P,S):Kt(l.el,P)},_resetGrid:function(){var l=this._map,f=l.options.crs,y=this._tileSize=this.getTileSize(),S=this._tileZoom,P=this._map.getPixelWorldBounds(this._tileZoom);P&&(this._globalTileRange=this._pxBoundsToTileRange(P)),this._wrapX=f.wrapLng&&!this.options.noWrap&&[Math.floor(l.project([0,f.wrapLng[0]],S).x/y.x),Math.ceil(l.project([0,f.wrapLng[1]],S).x/y.y)],this._wrapY=f.wrapLat&&!this.options.noWrap&&[Math.floor(l.project([f.wrapLat[0],0],S).y/y.x),Math.ceil(l.project([f.wrapLat[1],0],S).y/y.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(l){var f=this._map,y=f._animatingZoom?Math.max(f._animateToZoom,f.getZoom()):f.getZoom(),S=f.getZoomScale(y,this._tileZoom),P=f.project(l,this._tileZoom).floor(),$=f.getSize().divideBy(S*2);return new K(P.subtract($),P.add($))},_update:function(l){var f=this._map;if(f){var y=this._clampZoom(f.getZoom());if(l===void 0&&(l=f.getCenter()),this._tileZoom!==void 0){var S=this._getTiledPixelBounds(l),P=this._pxBoundsToTileRange(S),$=P.getCenter(),Z=[],te=this.options.keepBuffer,ae=new K(P.getBottomLeft().subtract([te,-te]),P.getTopRight().add([te,-te]));if(!(isFinite(P.min.x)&&isFinite(P.min.y)&&isFinite(P.max.x)&&isFinite(P.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var he in this._tiles){var Ce=this._tiles[he].coords;(Ce.z!==this._tileZoom||!ae.contains(new q(Ce.x,Ce.y)))&&(this._tiles[he].current=!1)}if(Math.abs(y-this._tileZoom)>1){this._setView(l,y);return}for(var Oe=P.min.y;Oe<=P.max.y;Oe++)for(var qe=P.min.x;qe<=P.max.x;qe++){var Sr=new q(qe,Oe);if(Sr.z=this._tileZoom,!!this._isValidTile(Sr)){var or=this._tiles[this._tileCoordsToKey(Sr)];or?or.current=!0:Z.push(Sr)}}if(Z.sort(function(Lr,lo){return Lr.distanceTo($)-lo.distanceTo($)}),Z.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var cn=document.createDocumentFragment();for(qe=0;qe<Z.length;qe++)this._addTile(Z[qe],cn);this._level.el.appendChild(cn)}}}},_isValidTile:function(l){var f=this._map.options.crs;if(!f.infinite){var y=this._globalTileRange;if(!f.wrapLng&&(l.x<y.min.x||l.x>y.max.x)||!f.wrapLat&&(l.y<y.min.y||l.y>y.max.y))return!1}if(!this.options.bounds)return!0;var S=this._tileCoordsToBounds(l);return re(this.options.bounds).overlaps(S)},_keyToBounds:function(l){return this._tileCoordsToBounds(this._keyToTileCoords(l))},_tileCoordsToNwSe:function(l){var f=this._map,y=this.getTileSize(),S=l.scaleBy(y),P=S.add(y),$=f.unproject(S,l.z),Z=f.unproject(P,l.z);return[$,Z]},_tileCoordsToBounds:function(l){var f=this._tileCoordsToNwSe(l),y=new ne(f[0],f[1]);return this.options.noWrap||(y=this._map.wrapLatLngBounds(y)),y},_tileCoordsToKey:function(l){return l.x+":"+l.y+":"+l.z},_keyToTileCoords:function(l){var f=l.split(":"),y=new q(+f[0],+f[1]);return y.z=+f[2],y},_removeTile:function(l){var f=this._tiles[l];f&&(It(f.el),delete this._tiles[l],this.fire("tileunload",{tile:f.el,coords:this._keyToTileCoords(l)}))},_initTile:function(l){Ge(l,"leaflet-tile");var f=this.getTileSize();l.style.width=f.x+"px",l.style.height=f.y+"px",l.onselectstart=h,l.onmousemove=h,Pe.ielt9&&this.options.opacity<1&&ln(l,this.options.opacity)},_addTile:function(l,f){var y=this._getTilePos(l),S=this._tileCoordsToKey(l),P=this.createTile(this._wrapCoords(l),o(this._tileReady,this,l));this._initTile(P),this.createTile.length<2&&Y(o(this._tileReady,this,l,null,P)),Kt(P,y),this._tiles[S]={el:P,coords:l,current:!0},f.appendChild(P),this.fire("tileloadstart",{tile:P,coords:l})},_tileReady:function(l,f,y){f&&this.fire("tileerror",{error:f,tile:y,coords:l});var S=this._tileCoordsToKey(l);y=this._tiles[S],y&&(y.loaded=+new Date,this._map._fadeAnimated?(ln(y.el,0),O(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this)):(y.active=!0,this._pruneTiles()),f||(Ge(y.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:y.el,coords:l})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Pe.ielt9||!this._map._fadeAnimated?Y(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(l){return l.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(l){var f=new q(this._wrapX?d(l.x,this._wrapX):l.x,this._wrapY?d(l.y,this._wrapY):l.y);return f.z=l.z,f},_pxBoundsToTileRange:function(l){var f=this.getTileSize();return new K(l.min.unscaleBy(f).floor(),l.max.unscaleBy(f).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var l in this._tiles)if(!this._tiles[l].loaded)return!1;return!0}});function pD(l){return new qs(l)}var so=qs.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(l,f){this._url=l,f=g(this,f),f.detectRetina&&Pe.retina&&f.maxZoom>0?(f.tileSize=Math.floor(f.tileSize/2),f.zoomReverse?(f.zoomOffset--,f.minZoom=Math.min(f.maxZoom,f.minZoom+1)):(f.zoomOffset++,f.maxZoom=Math.max(f.minZoom,f.maxZoom-1)),f.minZoom=Math.max(0,f.minZoom)):f.zoomReverse?f.minZoom=Math.min(f.maxZoom,f.minZoom):f.maxZoom=Math.max(f.minZoom,f.maxZoom),typeof f.subdomains=="string"&&(f.subdomains=f.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(l,f){return this._url===l&&f===void 0&&(f=!0),this._url=l,f||this.redraw(),this},createTile:function(l,f){var y=document.createElement("img");return ze(y,"load",o(this._tileOnLoad,this,f,y)),ze(y,"error",o(this._tileOnError,this,f,y)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(y.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(y.referrerPolicy=this.options.referrerPolicy),y.alt="",y.src=this.getTileUrl(l),y},getTileUrl:function(l){var f={r:Pe.retina?"@2x":"",s:this._getSubdomain(l),x:l.x,y:l.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var y=this._globalTileRange.max.y-l.y;this.options.tms&&(f.y=y),f["-y"]=y}return x(this._url,i(f,this.options))},_tileOnLoad:function(l,f){Pe.ielt9?setTimeout(o(l,this,null,f),0):l(null,f)},_tileOnError:function(l,f,y){var S=this.options.errorTileUrl;S&&f.getAttribute("src")!==S&&(f.src=S),l(y,f)},_onTileRemove:function(l){l.tile.onload=null},_getZoomForUrl:function(){var l=this._tileZoom,f=this.options.maxZoom,y=this.options.zoomReverse,S=this.options.zoomOffset;return y&&(l=f-l),l+S},_getSubdomain:function(l){var f=Math.abs(l.x+l.y)%this.options.subdomains.length;return this.options.subdomains[f]},_abortLoading:function(){var l,f;for(l in this._tiles)if(this._tiles[l].coords.z!==this._tileZoom&&(f=this._tiles[l].el,f.onload=h,f.onerror=h,!f.complete)){f.src=A;var y=this._tiles[l].coords;It(f),delete this._tiles[l],this.fire("tileabort",{tile:f,coords:y})}},_removeTile:function(l){var f=this._tiles[l];if(f)return f.el.setAttribute("src",A),qs.prototype._removeTile.call(this,l)},_tileReady:function(l,f,y){if(!(!this._map||y&&y.getAttribute("src")===A))return qs.prototype._tileReady.call(this,l,f,y)}});function W1(l,f){return new so(l,f)}var U1=so.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(l,f){this._url=l;var y=i({},this.defaultWmsParams);for(var S in f)S in this.options||(y[S]=f[S]);f=g(this,f);var P=f.detectRetina&&Pe.retina?2:1,$=this.getTileSize();y.width=$.x*P,y.height=$.y*P,this.wmsParams=y},onAdd:function(l){this._crs=this.options.crs||l.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var f=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[f]=this._crs.code,so.prototype.onAdd.call(this,l)},getTileUrl:function(l){var f=this._tileCoordsToNwSe(l),y=this._crs,S=ie(y.project(f[0]),y.project(f[1])),P=S.min,$=S.max,Z=(this._wmsVersion>=1.3&&this._crs===L1?[P.y,P.x,$.y,$.x]:[P.x,P.y,$.x,$.y]).join(","),te=so.prototype.getTileUrl.call(this,l);return te+b(this.wmsParams,te,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Z},setParams:function(l,f){return i(this.wmsParams,l),f||this.redraw(),this}});function mD(l,f){return new U1(l,f)}so.WMS=U1,W1.wms=mD;var mi=Tn.extend({options:{padding:.1},initialize:function(l){g(this,l),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Ge(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var l={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(l.zoomanim=this._onAnimZoom),l},_onAnimZoom:function(l){this._updateTransform(l.center,l.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(l,f){var y=this._map.getZoomScale(f,this._zoom),S=this._map.getSize().multiplyBy(.5+this.options.padding),P=this._map.project(this._center,f),$=S.multiplyBy(-y).add(P).subtract(this._map._getNewPixelOrigin(l,f));Pe.any3d?ca(this._container,$,y):Kt(this._container,$)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var l in this._layers)this._layers[l]._reset()},_onZoomEnd:function(){for(var l in this._layers)this._layers[l]._project()},_updatePaths:function(){for(var l in this._layers)this._layers[l]._update()},_update:function(){var l=this.options.padding,f=this._map.getSize(),y=this._map.containerPointToLayerPoint(f.multiplyBy(-l)).round();this._bounds=new K(y,y.add(f.multiplyBy(1+l*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),V1=mi.extend({options:{tolerance:0},getEvents:function(){var l=mi.prototype.getEvents.call(this);return l.viewprereset=this._onViewPreReset,l},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){mi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var l=this._container=document.createElement("canvas");ze(l,"mousemove",this._onMouseMove,this),ze(l,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ze(l,"mouseout",this._handleMouseOut,this),l._leaflet_disable_events=!0,this._ctx=l.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,It(this._container),wt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var l;this._redrawBounds=null;for(var f in this._layers)l=this._layers[f],l._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){mi.prototype._update.call(this);var l=this._bounds,f=this._container,y=l.getSize(),S=Pe.retina?2:1;Kt(f,l.min),f.width=S*y.x,f.height=S*y.y,f.style.width=y.x+"px",f.style.height=y.y+"px",Pe.retina&&this._ctx.scale(2,2),this._ctx.translate(-l.min.x,-l.min.y),this.fire("update")}},_reset:function(){mi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(l){this._updateDashArray(l),this._layers[u(l)]=l;var f=l._order={layer:l,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=f),this._drawLast=f,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(l){this._requestRedraw(l)},_removePath:function(l){var f=l._order,y=f.next,S=f.prev;y?y.prev=S:this._drawLast=S,S?S.next=y:this._drawFirst=y,delete l._order,delete this._layers[u(l)],this._requestRedraw(l)},_updatePath:function(l){this._extendRedrawBounds(l),l._project(),l._update(),this._requestRedraw(l)},_updateStyle:function(l){this._updateDashArray(l),this._requestRedraw(l)},_updateDashArray:function(l){if(typeof l.options.dashArray=="string"){var f=l.options.dashArray.split(/[, ]+/),y=[],S,P;for(P=0;P<f.length;P++){if(S=Number(f[P]),isNaN(S))return;y.push(S)}l.options._dashArray=y}else l.options._dashArray=l.options.dashArray},_requestRedraw:function(l){this._map&&(this._extendRedrawBounds(l),this._redrawRequest=this._redrawRequest||Y(this._redraw,this))},_extendRedrawBounds:function(l){if(l._pxBounds){var f=(l.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new K,this._redrawBounds.extend(l._pxBounds.min.subtract([f,f])),this._redrawBounds.extend(l._pxBounds.max.add([f,f]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var l=this._redrawBounds;if(l){var f=l.getSize();this._ctx.clearRect(l.min.x,l.min.y,f.x,f.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var l,f=this._redrawBounds;if(this._ctx.save(),f){var y=f.getSize();this._ctx.beginPath(),this._ctx.rect(f.min.x,f.min.y,y.x,y.y),this._ctx.clip()}this._drawing=!0;for(var S=this._drawFirst;S;S=S.next)l=S.layer,(!f||l._pxBounds&&l._pxBounds.intersects(f))&&l._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(l,f){if(this._drawing){var y,S,P,$,Z=l._parts,te=Z.length,ae=this._ctx;if(te){for(ae.beginPath(),y=0;y<te;y++){for(S=0,P=Z[y].length;S<P;S++)$=Z[y][S],ae[S?"lineTo":"moveTo"]($.x,$.y);f&&ae.closePath()}this._fillStroke(ae,l)}}},_updateCircle:function(l){if(!(!this._drawing||l._empty())){var f=l._point,y=this._ctx,S=Math.max(Math.round(l._radius),1),P=(Math.max(Math.round(l._radiusY),1)||S)/S;P!==1&&(y.save(),y.scale(1,P)),y.beginPath(),y.arc(f.x,f.y/P,S,0,Math.PI*2,!1),P!==1&&y.restore(),this._fillStroke(y,l)}},_fillStroke:function(l,f){var y=f.options;y.fill&&(l.globalAlpha=y.fillOpacity,l.fillStyle=y.fillColor||y.color,l.fill(y.fillRule||"evenodd")),y.stroke&&y.weight!==0&&(l.setLineDash&&l.setLineDash(f.options&&f.options._dashArray||[]),l.globalAlpha=y.opacity,l.lineWidth=y.weight,l.strokeStyle=y.color,l.lineCap=y.lineCap,l.lineJoin=y.lineJoin,l.stroke())},_onClick:function(l){for(var f=this._map.mouseEventToLayerPoint(l),y,S,P=this._drawFirst;P;P=P.next)y=P.layer,y.options.interactive&&y._containsPoint(f)&&(!(l.type==="click"||l.type==="preclick")||!this._map._draggableMoved(y))&&(S=y);this._fireEvent(S?[S]:!1,l)},_onMouseMove:function(l){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var f=this._map.mouseEventToLayerPoint(l);this._handleMouseHover(l,f)}},_handleMouseOut:function(l){var f=this._hoveredLayer;f&&(Ut(this._container,"leaflet-interactive"),this._fireEvent([f],l,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(l,f){if(!this._mouseHoverThrottled){for(var y,S,P=this._drawFirst;P;P=P.next)y=P.layer,y.options.interactive&&y._containsPoint(f)&&(S=y);S!==this._hoveredLayer&&(this._handleMouseOut(l),S&&(Ge(this._container,"leaflet-interactive"),this._fireEvent([S],l,"mouseover"),this._hoveredLayer=S)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,l),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(l,f,y){this._map._fireDOMEvent(f,y||f.type,l)},_bringToFront:function(l){var f=l._order;if(f){var y=f.next,S=f.prev;if(y)y.prev=S;else return;S?S.next=y:y&&(this._drawFirst=y),f.prev=this._drawLast,this._drawLast.next=f,f.next=null,this._drawLast=f,this._requestRedraw(l)}},_bringToBack:function(l){var f=l._order;if(f){var y=f.next,S=f.prev;if(S)S.next=y;else return;y?y.prev=S:S&&(this._drawLast=S),f.prev=null,f.next=this._drawFirst,this._drawFirst.prev=f,this._drawFirst=f,this._requestRedraw(l)}}});function G1(l){return Pe.canvas?new V1(l):null}var Ys=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(l){return document.createElement("<lvml:"+l+' class="lvml">')}}catch(l){}return function(l){return document.createElement("<"+l+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),gD={_initContainer:function(){this._container=tt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(mi.prototype._update.call(this),this.fire("update"))},_initPath:function(l){var f=l._container=Ys("shape");Ge(f,"leaflet-vml-shape "+(this.options.className||"")),f.coordsize="1 1",l._path=Ys("path"),f.appendChild(l._path),this._updateStyle(l),this._layers[u(l)]=l},_addPath:function(l){var f=l._container;this._container.appendChild(f),l.options.interactive&&l.addInteractiveTarget(f)},_removePath:function(l){var f=l._container;It(f),l.removeInteractiveTarget(f),delete this._layers[u(l)]},_updateStyle:function(l){var f=l._stroke,y=l._fill,S=l.options,P=l._container;P.stroked=!!S.stroke,P.filled=!!S.fill,S.stroke?(f||(f=l._stroke=Ys("stroke")),P.appendChild(f),f.weight=S.weight+"px",f.color=S.color,f.opacity=S.opacity,S.dashArray?f.dashStyle=E(S.dashArray)?S.dashArray.join(" "):S.dashArray.replace(/( *, *)/g," "):f.dashStyle="",f.endcap=S.lineCap.replace("butt","flat"),f.joinstyle=S.lineJoin):f&&(P.removeChild(f),l._stroke=null),S.fill?(y||(y=l._fill=Ys("fill")),P.appendChild(y),y.color=S.fillColor||S.color,y.opacity=S.fillOpacity):y&&(P.removeChild(y),l._fill=null)},_updateCircle:function(l){var f=l._point.round(),y=Math.round(l._radius),S=Math.round(l._radiusY||y);this._setPath(l,l._empty()?"M0 0":"AL "+f.x+","+f.y+" "+y+","+S+" 0,"+65535*360)},_setPath:function(l,f){l._path.v=f},_bringToFront:function(l){to(l._container)},_bringToBack:function(l){ro(l._container)}},Ec=Pe.vml?Ys:Ae,Xs=mi.extend({_initContainer:function(){this._container=Ec("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ec("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){It(this._container),wt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){mi.prototype._update.call(this);var l=this._bounds,f=l.getSize(),y=this._container;(!this._svgSize||!this._svgSize.equals(f))&&(this._svgSize=f,y.setAttribute("width",f.x),y.setAttribute("height",f.y)),Kt(y,l.min),y.setAttribute("viewBox",[l.min.x,l.min.y,f.x,f.y].join(" ")),this.fire("update")}},_initPath:function(l){var f=l._path=Ec("path");l.options.className&&Ge(f,l.options.className),l.options.interactive&&Ge(f,"leaflet-interactive"),this._updateStyle(l),this._layers[u(l)]=l},_addPath:function(l){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(l._path),l.addInteractiveTarget(l._path)},_removePath:function(l){It(l._path),l.removeInteractiveTarget(l._path),delete this._layers[u(l)]},_updatePath:function(l){l._project(),l._update()},_updateStyle:function(l){var f=l._path,y=l.options;f&&(y.stroke?(f.setAttribute("stroke",y.color),f.setAttribute("stroke-opacity",y.opacity),f.setAttribute("stroke-width",y.weight),f.setAttribute("stroke-linecap",y.lineCap),f.setAttribute("stroke-linejoin",y.lineJoin),y.dashArray?f.setAttribute("stroke-dasharray",y.dashArray):f.removeAttribute("stroke-dasharray"),y.dashOffset?f.setAttribute("stroke-dashoffset",y.dashOffset):f.removeAttribute("stroke-dashoffset")):f.setAttribute("stroke","none"),y.fill?(f.setAttribute("fill",y.fillColor||y.color),f.setAttribute("fill-opacity",y.fillOpacity),f.setAttribute("fill-rule",y.fillRule||"evenodd")):f.setAttribute("fill","none"))},_updatePoly:function(l,f){this._setPath(l,Ie(l._parts,f))},_updateCircle:function(l){var f=l._point,y=Math.max(Math.round(l._radius),1),S=Math.max(Math.round(l._radiusY),1)||y,P="a"+y+","+S+" 0 1,0 ",$=l._empty()?"M0 0":"M"+(f.x-y)+","+f.y+P+y*2+",0 "+P+-y*2+",0 ";this._setPath(l,$)},_setPath:function(l,f){l._path.setAttribute("d",f)},_bringToFront:function(l){to(l._path)},_bringToBack:function(l){ro(l._path)}});Pe.vml&&Xs.include(gD);function q1(l){return Pe.svg||Pe.vml?new Xs(l):null}Qe.include({getRenderer:function(l){var f=l.options.renderer||this._getPaneRenderer(l.options.pane)||this.options.renderer||this._renderer;return f||(f=this._renderer=this._createRenderer()),this.hasLayer(f)||this.addLayer(f),f},_getPaneRenderer:function(l){if(l==="overlayPane"||l===void 0)return!1;var f=this._paneRenderers[l];return f===void 0&&(f=this._createRenderer({pane:l}),this._paneRenderers[l]=f),f},_createRenderer:function(l){return this.options.preferCanvas&&G1(l)||q1(l)}});var Y1=ao.extend({initialize:function(l,f){ao.prototype.initialize.call(this,this._boundsToLatLngs(l),f)},setBounds:function(l){return this.setLatLngs(this._boundsToLatLngs(l))},_boundsToLatLngs:function(l){return l=re(l),[l.getSouthWest(),l.getNorthWest(),l.getNorthEast(),l.getSouthEast()]}});function vD(l,f){return new Y1(l,f)}Xs.create=Ec,Xs.pointsToPath=Ie,pi.geometryToLayer=bc,pi.coordsToLatLng=Pp,pi.coordsToLatLngs=_c,pi.latLngToCoords=Rp,pi.latLngsToCoords=wc,pi.getFeature=oo,pi.asFeature=Cc,Qe.mergeOptions({boxZoom:!0});var X1=Fn.extend({initialize:function(l){this._map=l,this._container=l._container,this._pane=l._panes.overlayPane,this._resetStateTimeout=0,l.on("unload",this._destroy,this)},addHooks:function(){ze(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){wt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){It(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(l){if(!l.shiftKey||l.which!==1&&l.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Hs(),hp(),this._startPoint=this._map.mouseEventToContainerPoint(l),ze(document,{contextmenu:fa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(l){this._moved||(this._moved=!0,this._box=tt("div","leaflet-zoom-box",this._container),Ge(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(l);var f=new K(this._point,this._startPoint),y=f.getSize();Kt(this._box,f.min),this._box.style.width=y.x+"px",this._box.style.height=y.y+"px"},_finish:function(){this._moved&&(It(this._box),Ut(this._container,"leaflet-crosshair")),zs(),fp(),wt(document,{contextmenu:fa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(l){if(!(l.which!==1&&l.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var f=new ne(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(f).fire("boxzoomend",{boxZoomBounds:f})}},_onKeyDown:function(l){l.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Qe.addInitHook("addHandler","boxZoom",X1),Qe.mergeOptions({doubleClickZoom:!0});var K1=Fn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(l){var f=this._map,y=f.getZoom(),S=f.options.zoomDelta,P=l.originalEvent.shiftKey?y-S:y+S;f.options.doubleClickZoom==="center"?f.setZoom(P):f.setZoomAround(l.containerPoint,P)}});Qe.addInitHook("addHandler","doubleClickZoom",K1),Qe.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Z1=Fn.extend({addHooks:function(){if(!this._draggable){var l=this._map;this._draggable=new Ii(l._mapPane,l._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),l.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),l.on("zoomend",this._onZoomEnd,this),l.whenReady(this._onZoomEnd,this))}Ge(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ut(this._map._container,"leaflet-grab"),Ut(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var l=this._map;if(l._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var f=re(this._map.options.maxBounds);this._offsetLimit=ie(this._map.latLngToContainerPoint(f.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(f.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;l.fire("movestart").fire("dragstart"),l.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(l){if(this._map.options.inertia){var f=this._lastTime=+new Date,y=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(y),this._times.push(f),this._prunePositions(f)}this._map.fire("move",l).fire("drag",l)},_prunePositions:function(l){for(;this._positions.length>1&&l-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var l=this._map.getSize().divideBy(2),f=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=f.subtract(l).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(l,f){return l-(l-f)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var l=this._draggable._newPos.subtract(this._draggable._startPos),f=this._offsetLimit;l.x<f.min.x&&(l.x=this._viscousLimit(l.x,f.min.x)),l.y<f.min.y&&(l.y=this._viscousLimit(l.y,f.min.y)),l.x>f.max.x&&(l.x=this._viscousLimit(l.x,f.max.x)),l.y>f.max.y&&(l.y=this._viscousLimit(l.y,f.max.y)),this._draggable._newPos=this._draggable._startPos.add(l)}},_onPreDragWrap:function(){var l=this._worldWidth,f=Math.round(l/2),y=this._initialWorldOffset,S=this._draggable._newPos.x,P=(S-f+y)%l+f-y,$=(S+f+y)%l-f-y,Z=Math.abs(P+y)<Math.abs($+y)?P:$;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Z},_onDragEnd:function(l){var f=this._map,y=f.options,S=!y.inertia||l.noInertia||this._times.length<2;if(f.fire("dragend",l),S)f.fire("moveend");else{this._prunePositions(+new Date);var P=this._lastPos.subtract(this._positions[0]),$=(this._lastTime-this._times[0])/1e3,Z=y.easeLinearity,te=P.multiplyBy(Z/$),ae=te.distanceTo([0,0]),he=Math.min(y.inertiaMaxSpeed,ae),Ce=te.multiplyBy(he/ae),Oe=he/(y.inertiaDeceleration*Z),qe=Ce.multiplyBy(-Oe/2).round();!qe.x&&!qe.y?f.fire("moveend"):(qe=f._limitOffset(qe,f.options.maxBounds),Y(function(){f.panBy(qe,{duration:Oe,easeLinearity:Z,noMoveStart:!0,animate:!0})}))}}});Qe.addInitHook("addHandler","dragging",Z1),Qe.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Q1=Fn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(l){this._map=l,this._setPanDelta(l.options.keyboardPanDelta),this._setZoomDelta(l.options.zoomDelta)},addHooks:function(){var l=this._map._container;l.tabIndex<=0&&(l.tabIndex="0"),ze(l,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),wt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var l=document.body,f=document.documentElement,y=l.scrollTop||f.scrollTop,S=l.scrollLeft||f.scrollLeft;this._map._container.focus(),window.scrollTo(S,y)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(l){var f=this._panKeys={},y=this.keyCodes,S,P;for(S=0,P=y.left.length;S<P;S++)f[y.left[S]]=[-1*l,0];for(S=0,P=y.right.length;S<P;S++)f[y.right[S]]=[l,0];for(S=0,P=y.down.length;S<P;S++)f[y.down[S]]=[0,l];for(S=0,P=y.up.length;S<P;S++)f[y.up[S]]=[0,-1*l]},_setZoomDelta:function(l){var f=this._zoomKeys={},y=this.keyCodes,S,P;for(S=0,P=y.zoomIn.length;S<P;S++)f[y.zoomIn[S]]=l;for(S=0,P=y.zoomOut.length;S<P;S++)f[y.zoomOut[S]]=-l},_addHooks:function(){ze(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){wt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(l){if(!(l.altKey||l.ctrlKey||l.metaKey)){var f=l.keyCode,y=this._map,S;if(f in this._panKeys){if(!y._panAnim||!y._panAnim._inProgress)if(S=this._panKeys[f],l.shiftKey&&(S=j(S).multiplyBy(3)),y.options.maxBounds&&(S=y._limitOffset(j(S),y.options.maxBounds)),y.options.worldCopyJump){var P=y.wrapLatLng(y.unproject(y.project(y.getCenter()).add(S)));y.panTo(P)}else y.panBy(S)}else if(f in this._zoomKeys)y.setZoom(y.getZoom()+(l.shiftKey?3:1)*this._zoomKeys[f]);else if(f===27&&y._popup&&y._popup.options.closeOnEscapeKey)y.closePopup();else return;fa(l)}}});Qe.addInitHook("addHandler","keyboard",Q1),Qe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var J1=Fn.extend({addHooks:function(){ze(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){wt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(l){var f=x1(l),y=this._map.options.wheelDebounceTime;this._delta+=f,this._lastMousePos=this._map.mouseEventToContainerPoint(l),this._startTime||(this._startTime=+new Date);var S=Math.max(y-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),S),fa(l)},_performZoom:function(){var l=this._map,f=l.getZoom(),y=this._map.options.zoomSnap||0;l._stop();var S=this._delta/(this._map.options.wheelPxPerZoomLevel*4),P=4*Math.log(2/(1+Math.exp(-Math.abs(S))))/Math.LN2,$=y?Math.ceil(P/y)*y:P,Z=l._limitZoom(f+(this._delta>0?$:-$))-f;this._delta=0,this._startTime=null,Z&&(l.options.scrollWheelZoom==="center"?l.setZoom(f+Z):l.setZoomAround(this._lastMousePos,f+Z))}});Qe.addInitHook("addHandler","scrollWheelZoom",J1);var yD=600;Qe.mergeOptions({tapHold:Pe.touchNative&&Pe.safari&&Pe.mobile,tapTolerance:15});var e_=Fn.extend({addHooks:function(){ze(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){wt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(l){if(clearTimeout(this._holdTimeout),l.touches.length===1){var f=l.touches[0];this._startPos=this._newPos=new q(f.clientX,f.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(ze(document,"touchend",dr),ze(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",f))},this),yD),ze(document,"touchend touchcancel contextmenu",this._cancel,this),ze(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function l(){wt(document,"touchend",dr),wt(document,"touchend touchcancel",l)},_cancel:function(){clearTimeout(this._holdTimeout),wt(document,"touchend touchcancel contextmenu",this._cancel,this),wt(document,"touchmove",this._onMove,this)},_onMove:function(l){var f=l.touches[0];this._newPos=new q(f.clientX,f.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(l,f){var y=new MouseEvent(l,{bubbles:!0,cancelable:!0,view:window,screenX:f.screenX,screenY:f.screenY,clientX:f.clientX,clientY:f.clientY});y._simulated=!0,f.target.dispatchEvent(y)}});Qe.addInitHook("addHandler","tapHold",e_),Qe.mergeOptions({touchZoom:Pe.touch,bounceAtZoomLimits:!0});var t_=Fn.extend({addHooks:function(){Ge(this._map._container,"leaflet-touch-zoom"),ze(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ut(this._map._container,"leaflet-touch-zoom"),wt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(l){var f=this._map;if(!(!l.touches||l.touches.length!==2||f._animatingZoom||this._zooming)){var y=f.mouseEventToContainerPoint(l.touches[0]),S=f.mouseEventToContainerPoint(l.touches[1]);this._centerPoint=f.getSize()._divideBy(2),this._startLatLng=f.containerPointToLatLng(this._centerPoint),f.options.touchZoom!=="center"&&(this._pinchStartLatLng=f.containerPointToLatLng(y.add(S)._divideBy(2))),this._startDist=y.distanceTo(S),this._startZoom=f.getZoom(),this._moved=!1,this._zooming=!0,f._stop(),ze(document,"touchmove",this._onTouchMove,this),ze(document,"touchend touchcancel",this._onTouchEnd,this),dr(l)}},_onTouchMove:function(l){if(!(!l.touches||l.touches.length!==2||!this._zooming)){var f=this._map,y=f.mouseEventToContainerPoint(l.touches[0]),S=f.mouseEventToContainerPoint(l.touches[1]),P=y.distanceTo(S)/this._startDist;if(this._zoom=f.getScaleZoom(P,this._startZoom),!f.options.bounceAtZoomLimits&&(this._zoom<f.getMinZoom()&&P<1||this._zoom>f.getMaxZoom()&&P>1)&&(this._zoom=f._limitZoom(this._zoom)),f.options.touchZoom==="center"){if(this._center=this._startLatLng,P===1)return}else{var $=y._add(S)._divideBy(2)._subtract(this._centerPoint);if(P===1&&$.x===0&&$.y===0)return;this._center=f.unproject(f.project(this._pinchStartLatLng,this._zoom).subtract($),this._zoom)}this._moved||(f._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var Z=o(f._move,f,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Y(Z,this,!0),dr(l)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,O(this._animRequest),wt(document,"touchmove",this._onTouchMove,this),wt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Qe.addInitHook("addHandler","touchZoom",t_),Qe.BoxZoom=X1,Qe.DoubleClickZoom=K1,Qe.Drag=Z1,Qe.Keyboard=Q1,Qe.ScrollWheelZoom=J1,Qe.TapHold=e_,Qe.TouchZoom=t_,r.Bounds=K,r.Browser=Pe,r.CRS=de,r.Canvas=V1,r.Circle=Ap,r.CircleMarker=yc,r.Class=X,r.Control=xn,r.DivIcon=j1,r.DivOverlay=$n,r.DomEvent=Lk,r.DomUtil=Nk,r.Draggable=Ii,r.Evented=z,r.FeatureGroup=hi,r.GeoJSON=pi,r.GridLayer=qs,r.Handler=Fn,r.Icon=io,r.ImageOverlay=xc,r.LatLng=oe,r.LatLngBounds=ne,r.Layer=Tn,r.LayerGroup=no,r.LineUtil=Xk,r.Map=Qe,r.Marker=vc,r.Mixin=Wk,r.Path=Li,r.Point=q,r.PolyUtil=Uk,r.Polygon=ao,r.Polyline=fi,r.Popup=Tc,r.PosAnimation=T1,r.Projection=Kk,r.Rectangle=Y1,r.Renderer=mi,r.SVG=Xs,r.SVGOverlay=z1,r.TileLayer=so,r.Tooltip=Sc,r.Transformation=ye,r.Util=F,r.VideoOverlay=H1,r.bind=o,r.bounds=ie,r.canvas=G1,r.circle=iD,r.circleMarker=nD,r.control=Us,r.divIcon=fD,r.extend=i,r.featureGroup=eD,r.geoJSON=B1,r.geoJson=sD,r.gridLayer=pD,r.icon=tD,r.imageOverlay=lD,r.latLng=se,r.latLngBounds=re,r.layerGroup=Jk,r.map=Fk,r.marker=rD,r.point=j,r.polygon=oD,r.polyline=aD,r.popup=dD,r.rectangle=vD,r.setOptions=g,r.stamp=u,r.svg=q1,r.svgOverlay=cD,r.tileLayer=W1,r.tooltip=hD,r.transformation=J,r.version=n,r.videoOverlay=uD;var bD=window.L;r.noConflict=function(){return window.L=bD,this},window.L=r})})(S0,S0.exports);var hM=S0.exports;const wi=w.getDefaultExportFromCjs(hM);var fM={exports:{}};function sB(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}var ka=1,Da=2,Go=3,lB=4,E0=5,Bw=6378137,uB=6356752314e-3,Hw=.0066943799901413165,Pl=484813681109536e-20,me=Math.PI/2,cB=.16666666666666666,dB=.04722222222222222,hB=.022156084656084655,be=1e-10,pr=.017453292519943295,Yn=57.29577951308232,at=Math.PI/4,nu=Math.PI*2,Gt=3.14159265359,Wr={};Wr.greenwich=0;Wr.lisbon=-9.131906111111;Wr.paris=2.337229166667;Wr.bogota=-74.080916666667;Wr.madrid=-3.687938888889;Wr.rome=12.452333333333;Wr.bern=7.439583333333;Wr.jakarta=106.807719444444;Wr.ferro=-17.666666666667;Wr.brussels=4.367975;Wr.stockholm=18.058277777778;Wr.athens=23.7163375;Wr.oslo=10.722916666667;const fB={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var zw=/[\s_\-\/\(\)]/g;function ta(e,t){if(e[t])return e[t];for(var r=Object.keys(e),n=t.toLowerCase().replace(zw,""),i=-1,a,o;++i<r.length;)if(a=r[i],o=a.toLowerCase().replace(zw,""),o===n)return e[a]}function M0(e){var t={},r=e.split("+").map(function(s){return s.trim()}).filter(function(s){return s}).reduce(function(s,u){var c=u.split("=");return c.push(!0),s[c[0].toLowerCase()]=c[1],s},{}),n,i,a,o={proj:"projName",datum:"datumCode",rf:function(s){t.rf=parseFloat(s)},lat_0:function(s){t.lat0=s*pr},lat_1:function(s){t.lat1=s*pr},lat_2:function(s){t.lat2=s*pr},lat_ts:function(s){t.lat_ts=s*pr},lon_0:function(s){t.long0=s*pr},lon_1:function(s){t.long1=s*pr},lon_2:function(s){t.long2=s*pr},alpha:function(s){t.alpha=parseFloat(s)*pr},gamma:function(s){t.rectified_grid_angle=parseFloat(s)},lonc:function(s){t.longc=s*pr},x_0:function(s){t.x0=parseFloat(s)},y_0:function(s){t.y0=parseFloat(s)},k_0:function(s){t.k0=parseFloat(s)},k:function(s){t.k0=parseFloat(s)},a:function(s){t.a=parseFloat(s)},b:function(s){t.b=parseFloat(s)},r:function(s){t.a=t.b=parseFloat(s)},r_a:function(){t.R_A=!0},zone:function(s){t.zone=parseInt(s,10)},south:function(){t.utmSouth=!0},towgs84:function(s){t.datum_params=s.split(",").map(function(u){return parseFloat(u)})},to_meter:function(s){t.to_meter=parseFloat(s)},units:function(s){t.units=s;var u=ta(fB,s);u&&(t.to_meter=u.to_meter)},from_greenwich:function(s){t.from_greenwich=s*pr},pm:function(s){var u=ta(Wr,s);t.from_greenwich=(u||parseFloat(s))*pr},nadgrids:function(s){s==="@null"?t.datumCode="none":t.nadgrids=s},axis:function(s){var u="ewnsud";s.length===3&&u.indexOf(s.substr(0,1))!==-1&&u.indexOf(s.substr(1,1))!==-1&&u.indexOf(s.substr(2,1))!==-1&&(t.axis=s)},approx:function(){t.approx=!0}};for(n in r)i=r[n],n in o?(a=o[n],typeof a=="function"?a(i):t[a]=i):t[n]=i;return typeof t.datumCode=="string"&&t.datumCode!=="WGS84"&&(t.datumCode=t.datumCode.toLowerCase()),t}var iu=1,pM=2,mM=3,Ud=4,gM=5,Oy=-1,pB=/\s/,mB=/[A-Za-z]/,gB=/[A-Za-z84_]/,sf=/[,\]]/,vM=/[\d\.E\-\+]/;function Oi(e){if(typeof e!="string")throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=iu}Oi.prototype.readCharicter=function(){var e=this.text[this.place++];if(this.state!==Ud)for(;pB.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case iu:return this.neutral(e);case pM:return this.keyword(e);case Ud:return this.quoted(e);case gM:return this.afterquote(e);case mM:return this.number(e);case Oy:return}};Oi.prototype.afterquote=function(e){if(e==='"'){this.word+='"',this.state=Ud;return}if(sf.test(e)){this.word=this.word.trim(),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in afterquote yet, index '+this.place)};Oi.prototype.afterItem=function(e){if(e===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=iu;return}if(e==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=iu,this.currentObject=this.stack.pop(),this.currentObject||(this.state=Oy);return}};Oi.prototype.number=function(e){if(vM.test(e)){this.word+=e;return}if(sf.test(e)){this.word=parseFloat(this.word),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in number yet, index '+this.place)};Oi.prototype.quoted=function(e){if(e==='"'){this.state=gM;return}this.word+=e};Oi.prototype.keyword=function(e){if(gB.test(e)){this.word+=e;return}if(e==="["){var t=[];t.push(this.word),this.level++,this.root===null?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,this.state=iu;return}if(sf.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in keyword yet, index '+this.place)};Oi.prototype.neutral=function(e){if(mB.test(e)){this.word=e,this.state=pM;return}if(e==='"'){this.word="",this.state=Ud;return}if(vM.test(e)){this.word=e,this.state=mM;return}if(sf.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in neutral yet, index '+this.place)};Oi.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===Oy)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function vB(e){var t=new Oi(e);return t.output()}function jw(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(a,o){return Io(o,a),a},n);t&&(e[t]=i)}function Io(e,t){if(!Array.isArray(e)){t[e]=!0;return}var r=e.shift();if(r==="PARAMETER"&&(r=e.shift()),e.length===1){if(Array.isArray(e[0])){t[r]={},Io(e[0],t[r]);return}t[r]=e[0];return}if(!e.length){t[r]=!0;return}if(r==="TOWGS84"){t[r]=e;return}if(r==="AXIS"){r in t||(t[r]=[]),t[r].push(e);return}Array.isArray(r)||(t[r]={});var n;switch(r){case"UNIT":case"PRIMEM":case"VERT_DATUM":t[r]={name:e[0].toLowerCase(),convert:e[1]},e.length===3&&Io(e[2],t[r]);return;case"SPHEROID":case"ELLIPSOID":t[r]={name:e[0],a:e[1],rf:e[2]},e.length===4&&Io(e[3],t[r]);return;case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":e[0]=["name",e[0]],jw(t,r,e);return;default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return Io(e,t[r]);return jw(t,r,e)}}var yB=.017453292519943295;function bB(e,t){var r=t[0],n=t[1];!(r in e)&&n in e&&(e[r]=e[n],t.length===3&&(e[r]=t[2](e[r])))}function jn(e){return e*yB}function _B(e){if(e.type==="GEOGCS"?e.projName="longlat":e.type==="LOCAL_CS"?(e.projName="identity",e.local=!0):typeof e.PROJECTION=="object"?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",r=0,n=e.AXIS.length;r<n;++r){var i=[e.AXIS[r][0].toLowerCase(),e.AXIS[r][1].toLowerCase()];i[0].indexOf("north")!==-1||(i[0]==="y"||i[0]==="lat")&&i[1]==="north"?t+="n":i[0].indexOf("south")!==-1||(i[0]==="y"||i[0]==="lat")&&i[1]==="south"?t+="s":i[0].indexOf("east")!==-1||(i[0]==="x"||i[0]==="lon")&&i[1]==="east"?t+="e":(i[0].indexOf("west")!==-1||(i[0]==="x"||i[0]==="lon")&&i[1]==="west")&&(t+="w")}t.length===2&&(t+="u"),t.length===3&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),e.units==="metre"&&(e.units="meter"),e.UNIT.convert&&(e.type==="GEOGCS"?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var a=e.GEOGCS;e.type==="GEOGCS"&&(a=e),a&&(a.DATUM?e.datumCode=a.DATUM.name.toLowerCase():e.datumCode=a.name.toLowerCase(),e.datumCode.slice(0,2)==="d_"&&(e.datumCode=e.datumCode.slice(2)),(e.datumCode==="new_zealand_geodetic_datum_1949"||e.datumCode==="new_zealand_1949")&&(e.datumCode="nzgd49"),(e.datumCode==="wgs_1984"||e.datumCode==="world_geodetic_system_1984")&&(e.PROJECTION==="Mercator_Auxiliary_Sphere"&&(e.sphere=!0),e.datumCode="wgs84"),e.datumCode.slice(-6)==="_ferro"&&(e.datumCode=e.datumCode.slice(0,-6)),e.datumCode.slice(-8)==="_jakarta"&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(e.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),e.ellps.toLowerCase().slice(0,13)==="international"&&(e.ellps="intl"),e.a=a.DATUM.SPHEROID.a,e.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(e.datum_params=a.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),e.datumCode==="ch1903+"&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a);function o(c){var d=e.to_meter||1;return c*d}var s=function(c){return bB(e,c)},u=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",jn],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",jn],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",jn],["lat0","latitude_of_origin",jn],["lat0","standard_parallel_1",jn],["lat1","standard_parallel_1",jn],["lat2","standard_parallel_2",jn],["azimuth","Azimuth"],["alpha","azimuth",jn],["srsCode","name"]];u.forEach(s),!e.long0&&e.longc&&(e.projName==="Albers_Conic_Equal_Area"||e.projName==="Lambert_Azimuthal_Equal_Area")&&(e.long0=e.longc),!e.lat_ts&&e.lat1&&(e.projName==="Stereographic_South_Pole"||e.projName==="Polar Stereographic (variant B)")?(e.lat0=jn(e.lat1>0?90:-90),e.lat_ts=e.lat1):!e.lat_ts&&e.lat0&&e.projName==="Polar_Stereographic"&&(e.lat_ts=e.lat0,e.lat0=jn(e.lat0>0?90:-90))}function yM(e){var t=vB(e),r=t.shift(),n=t.shift();t.unshift(["name",n]),t.unshift(["type",r]);var i={};return Io(t,i),_B(i),i}function Pr(e){var t=this;if(arguments.length===2){var r=arguments[1];typeof r=="string"?r.charAt(0)==="+"?Pr[e]=M0(arguments[1]):Pr[e]=yM(arguments[1]):Pr[e]=r}else if(arguments.length===1){if(Array.isArray(e))return e.map(function(n){Array.isArray(n)?Pr.apply(t,n):Pr(n)});if(typeof e=="string"){if(e in Pr)return Pr[e]}else"EPSG"in e?Pr["EPSG:"+e.EPSG]=e:"ESRI"in e?Pr["ESRI:"+e.ESRI]=e:"IAU2000"in e?Pr["IAU2000:"+e.IAU2000]=e:console.log(e);return}}sB(Pr);function wB(e){return typeof e=="string"}function CB(e){return e in Pr}var xB=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function TB(e){return xB.some(function(t){return e.indexOf(t)>-1})}var SB=["3857","900913","3785","102113"];function EB(e){var t=ta(e,"authority");if(t){var r=ta(t,"epsg");return r&&SB.indexOf(r)>-1}}function MB(e){var t=ta(e,"extension");if(t)return ta(t,"proj4")}function AB(e){return e[0]==="+"}function PB(e){if(wB(e)){if(CB(e))return Pr[e];if(TB(e)){var t=yM(e);if(EB(t))return Pr["EPSG:3857"];var r=MB(t);return r?M0(r):t}if(AB(e))return M0(e)}else return e}function Ww(e,t){e=e||{};var r,n;if(!t)return e;for(n in t)r=t[n],r!==void 0&&(e[n]=r);return e}function ri(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)}function ku(e){return e<0?-1:1}function Te(e){return Math.abs(e)<=Gt?e:e-ku(e)*nu}function En(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(me-t))/n}function au(e,t){for(var r=.5*e,n,i,a=me-2*Math.atan(t),o=0;o<=15;o++)if(n=e*Math.sin(a),i=me-2*Math.atan(t*Math.pow((1-n)/(1+n),r))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function RB(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=ri(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function OB(e){var t=e.x,r=e.y;if(r*Yn>90&&r*Yn<-90&&t*Yn>180&&t*Yn<-180)return null;var n,i;if(Math.abs(Math.abs(r)-me)<=be)return null;if(this.sphere)n=this.x0+this.a*this.k0*Te(t-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(at+.5*r));else{var a=Math.sin(r),o=En(this.e,r,a);n=this.x0+this.a*this.k0*Te(t-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return e.x=n,e.y=i,e}function kB(e){var t=e.x-this.x0,r=e.y-this.y0,n,i;if(this.sphere)i=me-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var a=Math.exp(-r/(this.a*this.k0));if(i=au(this.e,a),i===-9999)return null}return n=Te(this.long0+t/(this.a*this.k0)),e.x=n,e.y=i,e}var DB=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const NB={init:RB,forward:OB,inverse:kB,names:DB};function IB(){}function Uw(e){return e}var LB=["longlat","identity"];const FB={init:IB,forward:Uw,inverse:Uw,names:LB};var $B=[NB,FB],pd={},Vd=[];function bM(e,t){var r=Vd.length;return e.names?(Vd[r]=e,e.names.forEach(function(n){pd[n.toLowerCase()]=r}),this):(console.log(t),!0)}function BB(e){if(!e)return!1;var t=e.toLowerCase();if(typeof pd[t]!="undefined"&&Vd[pd[t]])return Vd[pd[t]]}function HB(){$B.forEach(bM)}const zB={start:HB,add:bM,get:BB};var Fe={};Fe.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Fe.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Fe.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Fe.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Fe.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Fe.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Fe.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Fe.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Fe.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Fe.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Fe.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Fe.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Fe.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Fe.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Fe.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Fe.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};Fe.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Fe.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Fe.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Fe.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Fe.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Fe.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Fe.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Fe.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Fe.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Fe.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Fe.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Fe.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Fe.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Fe.hough={a:6378270,rf:297,ellipseName:"Hough"};Fe.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Fe.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Fe.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Fe.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Fe.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Fe.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Fe.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Fe.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Fe.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Fe.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Fe.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Fe.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var jB=Fe.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Fe.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function WB(e,t,r,n){var i=e*e,a=t*t,o=(i-a)/i,s=0;n?(e*=1-o*(cB+o*(dB+o*hB)),i=e*e,o=0):s=Math.sqrt(o);var u=(i-a)/a;return{es:o,e:s,ep2:u}}function UB(e,t,r,n,i){if(!e){var a=ta(Fe,n);a||(a=jB),e=a.a,t=a.b,r=a.rf}return r&&!t&&(t=(1-1/r)*e),(r===0||Math.abs(e-t)<be)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}var nr={};nr.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"};nr.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"};nr.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"};nr.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"};nr.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"};nr.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"};nr.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"};nr.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"};nr.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"};nr.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"};nr.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"};nr.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"};nr.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"};nr.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"};nr.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"};nr.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"};nr.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"};nr.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};function VB(e,t,r,n,i,a,o){var s={};return e===void 0||e==="none"?s.datum_type=E0:s.datum_type=lB,t&&(s.datum_params=t.map(parseFloat),(s.datum_params[0]!==0||s.datum_params[1]!==0||s.datum_params[2]!==0)&&(s.datum_type=ka),s.datum_params.length>3&&(s.datum_params[3]!==0||s.datum_params[4]!==0||s.datum_params[5]!==0||s.datum_params[6]!==0)&&(s.datum_type=Da,s.datum_params[3]*=Pl,s.datum_params[4]*=Pl,s.datum_params[5]*=Pl,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=Go,s.grids=o),s.a=r,s.b=n,s.es=i,s.ep2=a,s}var _M={};function GB(e,t){var r=new DataView(t),n=XB(r),i=KB(r,n),a=ZB(r,i,n),o={header:i,subgrids:a};return _M[e]=o,o}function qB(e){if(e===void 0)return null;var t=e.split(",");return t.map(YB)}function YB(e){if(e.length===0)return null;var t=e[0]==="@";return t&&(e=e.slice(1)),e==="null"?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:_M[e]||null,isNull:!1}}function Lo(e){return e/3600*Math.PI/180}function XB(e){var t=e.getInt32(8,!1);return t===11?!1:(t=e.getInt32(8,!0),t!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function KB(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:A0(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}function A0(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function ZB(e,t,r){for(var n=176,i=[],a=0;a<t.nSubgrids;a++){var o=JB(e,n,r),s=e9(e,n,o,r),u=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),c=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);i.push({ll:[Lo(o.lowerLongitude),Lo(o.lowerLatitude)],del:[Lo(o.longitudeInterval),Lo(o.latitudeInterval)],lim:[u,c],count:o.gridNodeCount,cvs:QB(s)}),n+=176+o.gridNodeCount*16}return i}function QB(e){return e.map(function(t){return[Lo(t.longitudeShift),Lo(t.latitudeShift)]})}function JB(e,t,r){return{name:A0(e,t+8,t+16).trim(),parent:A0(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,r),upperLatitude:e.getFloat64(t+88,r),lowerLongitude:e.getFloat64(t+104,r),upperLongitude:e.getFloat64(t+120,r),latitudeInterval:e.getFloat64(t+136,r),longitudeInterval:e.getFloat64(t+152,r),gridNodeCount:e.getInt32(t+168,r)}}function e9(e,t,r,n){for(var i=t+176,a=16,o=[],s=0;s<r.gridNodeCount;s++){var u={latitudeShift:e.getFloat32(i+s*a,n),longitudeShift:e.getFloat32(i+s*a+4,n),latitudeAccuracy:e.getFloat32(i+s*a+8,n),longitudeAccuracy:e.getFloat32(i+s*a+12,n)};o.push(u)}return o}function Qn(e,t){if(!(this instanceof Qn))return new Qn(e);t=t||function(c){if(c)throw c};var r=PB(e);if(typeof r!="object"){t(e);return}var n=Qn.projections.get(r.projName);if(!n){t(e);return}if(r.datumCode&&r.datumCode!=="none"){var i=ta(nr,r.datumCode);i&&(r.datum_params=r.datum_params||(i.towgs84?i.towgs84.split(","):null),r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84",r.lat1=r.lat1||r.lat0;var a=UB(r.a,r.b,r.rf,r.ellps,r.sphere),o=WB(a.a,a.b,a.rf,r.R_A),s=qB(r.nadgrids),u=r.datum||VB(r.datumCode,r.datum_params,a.a,a.b,o.es,o.ep2,s);Ww(this,r),Ww(this,n),this.a=a.a,this.b=a.b,this.rf=a.rf,this.sphere=a.sphere,this.es=o.es,this.e=o.e,this.ep2=o.ep2,this.datum=u,this.init(),t(null,this)}Qn.projections=zB;Qn.projections.start();function t9(e,t){return e.datum_type!==t.datum_type||e.a!==t.a||Math.abs(e.es-t.es)>5e-11?!1:e.datum_type===ka?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type===Da?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]:!0}function wM(e,t,r){var n=e.x,i=e.y,a=e.z?e.z:0,o,s,u,c;if(i<-me&&i>-1.001*me)i=-me;else if(i>me&&i<1.001*me)i=me;else{if(i<-me)return{x:-1/0,y:-1/0,z:e.z};if(i>me)return{x:1/0,y:1/0,z:e.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(i),c=Math.cos(i),u=s*s,o=r/Math.sqrt(1-t*u),{x:(o+a)*c*Math.cos(n),y:(o+a)*c*Math.sin(n),z:(o*(1-t)+a)*s}}function CM(e,t,r,n){var i=1e-12,a=i*i,o=30,s,u,c,d,h,p,m,v,g,b,C,x,E,T=e.x,A=e.y,R=e.z?e.z:0,N,I,H;if(s=Math.sqrt(T*T+A*A),u=Math.sqrt(T*T+A*A+R*R),s/r<i){if(N=0,u/r<i)return I=me,H=-n,{x:e.x,y:e.y,z:e.z}}else N=Math.atan2(A,T);c=R/u,d=s/u,h=1/Math.sqrt(1-t*(2-t)*d*d),v=d*(1-t)*h,g=c*h,E=0;do E++,m=r/Math.sqrt(1-t*g*g),H=s*v+R*g-m*(1-t*g*g),p=t*m/(m+H),h=1/Math.sqrt(1-p*(2-p)*d*d),b=d*(1-p)*h,C=c*h,x=C*v-b*g,v=b,g=C;while(x*x>a&&E<o);return I=Math.atan(C/Math.abs(b)),{x:N,y:I,z:H}}function r9(e,t,r){if(t===ka)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===Da){var n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],c=r[6];return{x:c*(e.x-u*e.y+s*e.z)+n,y:c*(u*e.x+e.y-o*e.z)+i,z:c*(-s*e.x+o*e.y+e.z)+a}}}function n9(e,t,r){if(t===ka)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===Da){var n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],c=r[6],d=(e.x-n)/c,h=(e.y-i)/c,p=(e.z-a)/c;return{x:d+u*h-s*p,y:-u*d+h+o*p,z:s*d-o*h+p}}}function zc(e){return e===ka||e===Da}function i9(e,t,r){if(t9(e,t)||e.datum_type===E0||t.datum_type===E0)return r;var n=e.a,i=e.es;if(e.datum_type===Go){var a=Vw(e,!1,r);if(a!==0)return;n=Bw,i=Hw}var o=t.a,s=t.b,u=t.es;if(t.datum_type===Go&&(o=Bw,s=uB,u=Hw),i===u&&n===o&&!zc(e.datum_type)&&!zc(t.datum_type))return r;if(r=wM(r,i,n),zc(e.datum_type)&&(r=r9(r,e.datum_type,e.datum_params)),zc(t.datum_type)&&(r=n9(r,t.datum_type,t.datum_params)),r=CM(r,u,o,s),t.datum_type===Go){var c=Vw(t,!0,r);if(c!==0)return}return r}function Vw(e,t,r){if(e.grids===null||e.grids.length===0)return console.log("Grid shift grids not found"),-1;var n={x:-r.x,y:r.y},i={x:Number.NaN,y:Number.NaN},a=[];e:for(var o=0;o<e.grids.length;o++){var s=e.grids[o];if(a.push(s.name),s.isNull){i=n;break}if(s.grid===null){if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1;continue}for(var u=s.grid.subgrids,c=0,d=u.length;c<d;c++){var h=u[c],p=(Math.abs(h.del[1])+Math.abs(h.del[0]))/1e4,m=h.ll[0]-p,v=h.ll[1]-p,g=h.ll[0]+(h.lim[0]-1)*h.del[0]+p,b=h.ll[1]+(h.lim[1]-1)*h.del[1]+p;if(!(v>n.y||m>n.x||b<n.y||g<n.x)&&(i=a9(n,t,h),!isNaN(i.x)))break e}}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*Yn+" "+n.y*Yn+" tried: '"+a+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function a9(e,t,r){var n={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return n;var i={x:e.x,y:e.y};i.x-=r.ll[0],i.y-=r.ll[1],i.x=Te(i.x-Math.PI)+Math.PI;var a=Gw(i,r);if(t){if(isNaN(a.x))return n;a.x=i.x-a.x,a.y=i.y-a.y;var o=9,s=1e-12,u,c;do{if(c=Gw(a,r),isNaN(c.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}u={x:i.x-(c.x+a.x),y:i.y-(c.y+a.y)},a.x+=u.x,a.y+=u.y}while(o--&&Math.abs(u.x)>s&&Math.abs(u.y)>s);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=Te(a.x+r.ll[0]),n.y=a.y+r.ll[1]}else isNaN(a.x)||(n.x=e.x+a.x,n.y=e.y+a.y);return n}function Gw(e,t){var r={x:e.x/t.del[0],y:e.y/t.del[1]},n={x:Math.floor(r.x),y:Math.floor(r.y)},i={x:r.x-1*n.x,y:r.y-1*n.y},a={x:Number.NaN,y:Number.NaN},o;if(n.x<0||n.x>=t.lim[0]||n.y<0||n.y>=t.lim[1])return a;o=n.y*t.lim[0]+n.x;var s={x:t.cvs[o][0],y:t.cvs[o][1]};o++;var u={x:t.cvs[o][0],y:t.cvs[o][1]};o+=t.lim[0];var c={x:t.cvs[o][0],y:t.cvs[o][1]};o--;var d={x:t.cvs[o][0],y:t.cvs[o][1]},h=i.x*i.y,p=i.x*(1-i.y),m=(1-i.x)*(1-i.y),v=(1-i.x)*i.y;return a.x=m*s.x+p*u.x+v*d.x+h*c.x,a.y=m*s.y+p*u.y+v*d.y+h*c.y,a}function qw(e,t,r){var n=r.x,i=r.y,a=r.z||0,o,s,u,c={};for(u=0;u<3;u++)if(!(t&&u===2&&r.z===void 0))switch(u===0?(o=n,"ew".indexOf(e.axis[u])!==-1?s="x":s="y"):u===1?(o=i,"ns".indexOf(e.axis[u])!==-1?s="y":s="x"):(o=a,s="z"),e.axis[u]){case"e":c[s]=o;break;case"w":c[s]=-o;break;case"n":c[s]=o;break;case"s":c[s]=-o;break;case"u":r[s]!==void 0&&(c.z=o);break;case"d":r[s]!==void 0&&(c.z=-o);break;default:return null}return c}function xM(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function o9(e){Yw(e.x),Yw(e.y)}function Yw(e){if(typeof Number.isFinite=="function"){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if(typeof e!="number"||e!==e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function s9(e,t){return(e.datum.datum_type===ka||e.datum.datum_type===Da||e.datum.datum_type===Go)&&t.datumCode!=="WGS84"||(t.datum.datum_type===ka||t.datum.datum_type===Da||t.datum.datum_type===Go)&&e.datumCode!=="WGS84"}function Gd(e,t,r,n){var i;Array.isArray(r)?r=xM(r):r={x:r.x,y:r.y,z:r.z,m:r.m};var a=r.z!==void 0;if(o9(r),e.datum&&t.datum&&s9(e,t)&&(i=new Qn("WGS84"),r=Gd(e,i,r,n),e=i),n&&e.axis!=="enu"&&(r=qw(e,!1,r)),e.projName==="longlat")r={x:r.x*pr,y:r.y*pr,z:r.z||0};else if(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),r=e.inverse(r),!r)return;if(e.from_greenwich&&(r.x+=e.from_greenwich),r=i9(e.datum,t.datum,r),!!r)return t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}),t.projName==="longlat"?r={x:r.x*Yn,y:r.y*Yn,z:r.z||0}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0})),n&&t.axis!=="enu"?qw(t,!0,r):(r&&!a&&delete r.z,r)}var Xw=Qn("WGS84");function lm(e,t,r,n){var i,a,o;return Array.isArray(r)?(i=Gd(e,t,r,n)||{x:NaN,y:NaN},r.length>2?typeof e.name!="undefined"&&e.name==="geocent"||typeof t.name!="undefined"&&t.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(r.splice(3)):[i.x,i.y,r[2]].concat(r.splice(3)):[i.x,i.y].concat(r.splice(2)):[i.x,i.y]):(a=Gd(e,t,r,n),o=Object.keys(r),o.length===2||o.forEach(function(s){if(typeof e.name!="undefined"&&e.name==="geocent"||typeof t.name!="undefined"&&t.name==="geocent"){if(s==="x"||s==="y"||s==="z")return}else if(s==="x"||s==="y")return;a[s]=r[s]}),a)}function Kw(e){return e instanceof Qn?e:e.oProj?e.oProj:Qn(e)}function Jr(e,t,r){e=Kw(e);var n=!1,i;return typeof t=="undefined"?(t=e,e=Xw,n=!0):(typeof t.x!="undefined"||Array.isArray(t))&&(r=t,t=e,e=Xw,n=!0),t=Kw(t),r?lm(e,t,r):(i={forward:function(a,o){return lm(e,t,a,o)},inverse:function(a,o){return lm(t,e,a,o)}},n&&(i.oProj=t),i)}var Zw=6,TM="AJSAJS",SM="AFAFAF",Fo=65,$r=73,dn=79,bl=86,_l=90;const l9={forward:EM,inverse:u9,toPoint:MM};function EM(e,t){return t=t||5,h9(c9({lat:e[1],lon:e[0]}),t)}function u9(e){var t=ky(PM(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function MM(e){var t=ky(PM(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function um(e){return e*(Math.PI/180)}function Qw(e){return 180*(e/Math.PI)}function c9(e){var t=e.lat,r=e.lon,n=6378137,i=.00669438,a=.9996,o,s,u,c,d,h,p,m=um(t),v=um(r),g,b;b=Math.floor((r+180)/6)+1,r===180&&(b=60),t>=56&&t<64&&r>=3&&r<12&&(b=32),t>=72&&t<84&&(r>=0&&r<9?b=31:r>=9&&r<21?b=33:r>=21&&r<33?b=35:r>=33&&r<42&&(b=37)),o=(b-1)*6-180+3,g=um(o),s=i/(1-i),u=n/Math.sqrt(1-i*Math.sin(m)*Math.sin(m)),c=Math.tan(m)*Math.tan(m),d=s*Math.cos(m)*Math.cos(m),h=Math.cos(m)*(v-g),p=n*((1-i/4-3*i*i/64-5*i*i*i/256)*m-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*m)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*m)-35*i*i*i/3072*Math.sin(6*m));var C=a*u*(h+(1-c+d)*h*h*h/6+(5-18*c+c*c+72*d-58*s)*h*h*h*h*h/120)+5e5,x=a*(p+u*Math.tan(m)*(h*h/2+(5-c+9*d+4*d*d)*h*h*h*h/24+(61-58*c+c*c+600*d-330*s)*h*h*h*h*h*h/720));return t<0&&(x+=1e7),{northing:Math.round(x),easting:Math.round(C),zoneNumber:b,zoneLetter:d9(t)}}function ky(e){var t=e.northing,r=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var a=.9996,o=6378137,s=.00669438,u,c=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s)),d,h,p,m,v,g,b,C,x,E=r-5e5,T=t;n<"N"&&(T-=1e7),b=(i-1)*6-180+3,u=s/(1-s),g=T/a,C=g/(o*(1-s/4-3*s*s/64-5*s*s*s/256)),x=C+(3*c/2-27*c*c*c/32)*Math.sin(2*C)+(21*c*c/16-55*c*c*c*c/32)*Math.sin(4*C)+151*c*c*c/96*Math.sin(6*C),d=o/Math.sqrt(1-s*Math.sin(x)*Math.sin(x)),h=Math.tan(x)*Math.tan(x),p=u*Math.cos(x)*Math.cos(x),m=o*(1-s)/Math.pow(1-s*Math.sin(x)*Math.sin(x),1.5),v=E/(d*a);var A=x-d*Math.tan(x)/m*(v*v/2-(5+3*h+10*p-4*p*p-9*u)*v*v*v*v/24+(61+90*h+298*p+45*h*h-252*u-3*p*p)*v*v*v*v*v*v/720);A=Qw(A);var R=(v-(1+2*h+p)*v*v*v/6+(5-2*p+28*h-3*p*p+8*u+24*h*h)*v*v*v*v*v/120)/Math.cos(x);R=b+Qw(R);var N;if(e.accuracy){var I=ky({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});N={top:I.lat,right:I.lon,bottom:A,left:R}}else N={lat:A,lon:R};return N}function d9(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function h9(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+f9(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}function f9(e,t,r){var n=AM(r),i=Math.floor(e/1e5),a=Math.floor(t/1e5)%20;return p9(i,a,n)}function AM(e){var t=e%Zw;return t===0&&(t=Zw),t}function p9(e,t,r){var n=r-1,i=TM.charCodeAt(n),a=SM.charCodeAt(n),o=i+e-1,s=a+t,u=!1;o>_l&&(o=o-_l+Fo-1,u=!0),(o===$r||i<$r&&o>$r||(o>$r||i<$r)&&u)&&o++,(o===dn||i<dn&&o>dn||(o>dn||i<dn)&&u)&&(o++,o===$r&&o++),o>_l&&(o=o-_l+Fo-1),s>bl?(s=s-bl+Fo-1,u=!0):u=!1,(s===$r||a<$r&&s>$r||(s>$r||a<$r)&&u)&&s++,(s===dn||a<dn&&s>dn||(s>dn||a<dn)&&u)&&(s++,s===$r&&s++),s>bl&&(s=s-bl+Fo-1);var c=String.fromCharCode(o)+String.fromCharCode(s);return c}function PM(e){if(e&&e.length===0)throw"MGRSPoint coverting from nothing";for(var t=e.length,r=null,n="",i,a=0;!/[A-Z]/.test(i=e.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+e;n+=i,a++}var o=parseInt(n,10);if(a===0||a+3>t)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(a++);if(s<="A"||s==="B"||s==="Y"||s>="Z"||s==="I"||s==="O")throw"MGRSPoint zone letter "+s+" not handled: "+e;r=e.substring(a,a+=2);for(var u=AM(o),c=m9(r.charAt(0),u),d=g9(r.charAt(1),u);d<v9(s);)d+=2e6;var h=t-a;if(h%2!==0)throw`MGRSPoint has to have an even number
215
- of digits after the zone letter and two 100km letters - front
216
- half for easting meters, second half for
217
- northing meters`+e;var p=h/2,m=0,v=0,g,b,C,x,E;return p>0&&(g=1e5/Math.pow(10,p),b=e.substring(a,a+p),m=parseFloat(b)*g,C=e.substring(a+p),v=parseFloat(C)*g),x=m+c,E=v+d,{easting:x,northing:E,zoneLetter:s,zoneNumber:o,accuracy:g}}function m9(e,t){for(var r=TM.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(r++,r===$r&&r++,r===dn&&r++,r>_l){if(i)throw"Bad character: "+e;r=Fo,i=!0}n+=1e5}return n}function g9(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=SM.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(r++,r===$r&&r++,r===dn&&r++,r>bl){if(i)throw"Bad character: "+e;r=Fo,i=!0}n+=1e5}return n}function v9(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function Qo(e,t,r){if(!(this instanceof Qo))return new Qo(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if(typeof e=="object")this.x=e.x,this.y=e.y,this.z=e.z||0;else if(typeof e=="string"&&typeof t=="undefined"){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Qo.fromMGRS=function(e){return new Qo(MM(e))};Qo.prototype.toMGRS=function(e){return EM([this.x,this.y],e)};var y9=1,b9=.25,Jw=.046875,e2=.01953125,t2=.01068115234375,_9=.75,w9=.46875,C9=.013020833333333334,x9=.007120768229166667,T9=.3645833333333333,S9=.005696614583333333,E9=.3076171875;function RM(e){var t=[];t[0]=y9-e*(b9+e*(Jw+e*(e2+e*t2))),t[1]=e*(_9-e*(Jw+e*(e2+e*t2)));var r=e*e;return t[2]=r*(w9-e*(C9+e*x9)),r*=e,t[3]=r*(T9-e*S9),t[4]=r*e*E9,t}function lf(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))}var M9=20;function OM(e,t,r){for(var n=1/(1-t),i=e,a=M9;a;--a){var o=Math.sin(i),s=1-t*o*o;if(s=(lf(i,o,Math.cos(i),r)-e)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)<be)return i}return i}function A9(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=RM(this.es),this.ml0=lf(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function P9(e){var t=e.x,r=e.y,n=Te(t-this.long0),i,a,o,s=Math.sin(r),u=Math.cos(r);if(this.es){var d=u*n,h=Math.pow(d,2),p=this.ep2*Math.pow(u,2),m=Math.pow(p,2),v=Math.abs(u)>be?Math.tan(r):0,g=Math.pow(v,2),b=Math.pow(g,2);i=1-this.es*Math.pow(s,2),d=d/Math.sqrt(i);var C=lf(r,s,u,this.en);a=this.a*(this.k0*d*(1+h/6*(1-g+p+h/20*(5-18*g+b+14*p-58*g*p+h/42*(61+179*b-b*g-479*g)))))+this.x0,o=this.a*(this.k0*(C-this.ml0+s*n*d/2*(1+h/12*(5-g+9*p+4*m+h/30*(61+b-58*g+270*p-330*g*p+h/56*(1385+543*b-b*g-3111*g))))))+this.y0}else{var c=u*Math.sin(n);if(Math.abs(Math.abs(c)-1)<be)return 93;if(a=.5*this.a*this.k0*Math.log((1+c)/(1-c))+this.x0,o=u*Math.cos(n)/Math.sqrt(1-Math.pow(c,2)),c=Math.abs(o),c>=1){if(c-1>be)return 93;o=0}else o=Math.acos(o);r<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return e.x=a,e.y=o,e}function R9(e){var t,r,n,i,a=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+o/this.k0,r=OM(t,this.es,this.en),Math.abs(r)<me){var h=Math.sin(r),p=Math.cos(r),m=Math.abs(p)>be?Math.tan(r):0,v=this.ep2*Math.pow(p,2),g=Math.pow(v,2),b=Math.pow(m,2),C=Math.pow(b,2);t=1-this.es*Math.pow(h,2);var x=a*Math.sqrt(t)/this.k0,E=Math.pow(x,2);t=t*m,n=r-t*E/(1-this.es)*.5*(1-E/12*(5+3*b-9*v*b+v-4*g-E/30*(61+90*b-252*v*b+45*C+46*v-E/56*(1385+3633*b+4095*C+1574*C*b)))),i=Te(this.long0+x*(1-E/6*(1+2*b+v-E/20*(5+28*b+24*C+8*v*b+6*v-E/42*(61+662*b+1320*C+720*C*b))))/p)}else n=me*ku(o),i=0;else{var s=Math.exp(a/this.k0),u=.5*(s-1/s),c=this.lat0+o/this.k0,d=Math.cos(c);t=Math.sqrt((1-Math.pow(d,2))/(1+Math.pow(u,2))),n=Math.asin(t),o<0&&(n=-n),u===0&&d===0?i=0:i=Te(Math.atan2(u,d)+this.long0)}return e.x=i,e.y=n,e}var O9=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const md={init:A9,forward:P9,inverse:R9,names:O9};function kM(e){var t=Math.exp(e);return t=(t-1/t)/2,t}function mn(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))}function k9(e){var t=1+e,r=t-1;return r===0?e:e*Math.log(t)/r}function D9(e){var t=Math.abs(e);return t=k9(t*(1+t/(mn(1,t)+1))),e<0?-t:t}function Dy(e,t){for(var r=2*Math.cos(2*t),n=e.length-1,i=e[n],a=0,o;--n>=0;)o=-a+r*i+e[n],a=i,i=o;return t+o*Math.sin(2*t)}function N9(e,t){for(var r=2*Math.cos(t),n=e.length-1,i=e[n],a=0,o;--n>=0;)o=-a+r*i+e[n],a=i,i=o;return Math.sin(t)*o}function I9(e){var t=Math.exp(e);return t=(t+1/t)/2,t}function DM(e,t,r){for(var n=Math.sin(t),i=Math.cos(t),a=kM(r),o=I9(r),s=2*i*o,u=-2*n*a,c=e.length-1,d=e[c],h=0,p=0,m=0,v,g;--c>=0;)v=p,g=h,p=d,h=m,d=-v+s*p-u*h+e[c],m=-g+u*p+s*h;return s=n*o,u=i*a,[s*d-u*m,s*m+u*d]}function L9(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(md.init.apply(this),this.forward=md.forward,this.inverse=md.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(-2+t*(116/45+t*(26/45+t*(-2854/675)))))),this.cbg[0]=t*(-2+t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))),r=r*t,this.cgb[1]=r*(7/3+t*(-8/5+t*(-227/45+t*(2704/315+t*(2323/945))))),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r=r*t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(8/5+t*(-12686/2835)))),r=r*t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(-12/5+t*(-24832/14175))),r=r*t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r=r*t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(1/4+r*(1/64+r/256))),this.utg[0]=t*(-.5+t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(-3/5+t*(557/1440+t*(281/630+t*(-1983433/1935360))))),r=r*t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r=r*t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r=r*t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r=r*t,this.utg[5]=r*(-20648693/638668800),this.gtu[5]=r*(212378941/319334400);var n=Dy(this.cbg,this.lat0);this.Zb=-this.Qn*(n+N9(this.gtu,2*n))}function F9(e){var t=Te(e.x-this.long0),r=e.y;r=Dy(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),a=Math.sin(t),o=Math.cos(t);r=Math.atan2(n,o*i),t=Math.atan2(a*i,mn(n,i*o)),t=D9(Math.tan(t));var s=DM(this.gtu,2*r,2*t);r=r+s[0],t=t+s[1];var u,c;return Math.abs(t)<=2.623395162778?(u=this.a*(this.Qn*t)+this.x0,c=this.a*(this.Qn*r+this.Zb)+this.y0):(u=1/0,c=1/0),e.x=u,e.y=c,e}function $9(e){var t=(e.x-this.x0)*(1/this.a),r=(e.y-this.y0)*(1/this.a);r=(r-this.Zb)/this.Qn,t=t/this.Qn;var n,i;if(Math.abs(t)<=2.623395162778){var a=DM(this.utg,2*r,2*t);r=r+a[0],t=t+a[1],t=Math.atan(kM(t));var o=Math.sin(r),s=Math.cos(r),u=Math.sin(t),c=Math.cos(t);r=Math.atan2(o*c,mn(u,c*s)),t=Math.atan2(u,c*s),n=Te(t+this.long0),i=Dy(this.cgb,r)}else n=1/0,i=1/0;return e.x=n,e.y=i,e}var B9=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const gd={init:L9,forward:F9,inverse:$9,names:B9};function H9(e,t){if(e===void 0){if(e=Math.floor((Te(t)+Math.PI)*30/Math.PI)+1,e<0)return 0;if(e>60)return 60}return e}var z9="etmerc";function j9(){var e=H9(this.zone,this.long0);if(e===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*pr,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,gd.init.apply(this),this.forward=gd.forward,this.inverse=gd.inverse}var W9=["Universal Transverse Mercator System","utm"];const U9={init:j9,names:W9,dependsOn:z9};function Ny(e,t){return Math.pow((1-e)/(1+e),t)}var V9=20;function G9(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+at)/(Math.pow(Math.tan(.5*this.lat0+at),this.C)*Ny(this.e*e,this.ratexp))}function q9(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+at),this.C)*Ny(this.e*Math.sin(r),this.ratexp))-me,e.x=this.C*t,e}function Y9(e){for(var t=1e-14,r=e.x/this.C,n=e.y,i=Math.pow(Math.tan(.5*n+at)/this.K,1/this.C),a=V9;a>0&&(n=2*Math.atan(i*Ny(this.e*Math.sin(e.y),-.5*this.e))-me,!(Math.abs(n-e.y)<t));--a)e.y=n;return a?(e.x=r,e.y=n,e):null}var X9=["gauss"];const Iy={init:G9,forward:q9,inverse:Y9,names:X9};function K9(){Iy.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function Z9(e){var t,r,n,i;return e.x=Te(e.x-this.long0),Iy.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=i*r*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function Q9(e){var t,r,n,i,a;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,a=mn(e.x,e.y)){var o=2*Math.atan2(a,this.R2);t=Math.sin(o),r=Math.cos(o),i=Math.asin(r*this.sinc0+e.y*t*this.cosc0/a),n=Math.atan2(e.x*t,a*this.cosc0*r-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,Iy.inverse.apply(this,[e]),e.x=Te(e.x+this.long0),e}var J9=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];const eH={init:K9,forward:Z9,inverse:Q9,names:J9};function tH(e,t,r){return t*=r,Math.tan(.5*(me+e))*Math.pow((1-t)/(1+t),.5*r)}function rH(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=be&&(this.k0=.5*(1+ku(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=be&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=be&&Math.abs(Math.cos(this.lat_ts))>be&&(this.k0=.5*this.cons*ri(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/En(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=ri(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-me,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function nH(e){var t=e.x,r=e.y,n=Math.sin(r),i=Math.cos(r),a,o,s,u,c,d,h=Te(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=be&&Math.abs(r+this.lat0)<=be?(e.x=NaN,e.y=NaN,e):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(h)),e.x=this.a*a*i*Math.sin(h)+this.x0,e.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(h))+this.y0,e):(o=2*Math.atan(this.ssfn_(r,n,this.e))-me,u=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=be?(c=En(this.e,r*this.con,this.con*n),d=2*this.a*this.k0*c/this.cons,e.x=this.x0+d*Math.sin(t-this.long0),e.y=this.y0-this.con*d*Math.cos(t-this.long0),e):(Math.abs(this.sinlat0)<be?(a=2*this.a*this.k0/(1+u*Math.cos(h)),e.y=a*s):(a=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*s+this.cosX0*u*Math.cos(h))),e.y=a*(this.cosX0*s-this.sinX0*u*Math.cos(h))+this.y0),e.x=a*u*Math.sin(h)+this.x0,e))}function iH(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,a,o=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var s=2*Math.atan(o/(2*this.a*this.k0));return t=this.long0,r=this.lat0,o<=be?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(s)*this.sinlat0+e.y*Math.sin(s)*this.coslat0/o),Math.abs(this.coslat0)<be?this.lat0>0?t=Te(this.long0+Math.atan2(e.x,-1*e.y)):t=Te(this.long0+Math.atan2(e.x,e.y)):t=Te(this.long0+Math.atan2(e.x*Math.sin(s),o*this.coslat0*Math.cos(s)-e.y*this.sinlat0*Math.sin(s))),e.x=t,e.y=r,e)}else if(Math.abs(this.coslat0)<=be){if(o<=be)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=o*this.cons/(2*this.a*this.k0),r=this.con*au(this.e,n),t=this.con*Te(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,o<=be?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/o),t=Te(this.long0+Math.atan2(e.x*Math.sin(i),o*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),r=-1*au(this.e,Math.tan(.5*(me+a)));return e.x=t,e.y=r,e}var aH=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const oH={init:rH,forward:nH,inverse:iH,names:aH,ssfn_:tH};function sH(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=this.rf,i=1/n,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*r*Math.sqrt(1-a)/(1-a*Math.pow(t,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),u=Math.log(Math.tan(Math.PI/4+e/2)),c=Math.log((1+o*t)/(1-o*t));this.K=s-this.alpha*u+this.alpha*o/2*c}function lH(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(e.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*o+this.x0,e}function uH(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+o/this.alpha,u=0,c=a,d=-1e3,h=0;Math.abs(c-d)>1e-7;){if(++h>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),d=c,c=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=s,e.y=c,e}var cH=["somerc"];const dH={init:sH,forward:lH,inverse:uH,names:cH};var Po=1e-7;function hH(e){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],r=typeof e.PROJECTION=="object"?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||t.indexOf(r)!==-1}function fH(){var e,t,r,n,i,a,o,s,u,c,d=0,h,p=0,m=0,v=0,g=0,b=0,C=0;this.no_off=hH(this),this.no_rot="no_rot"in this;var x=!1;"alpha"in this&&(x=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),x&&(C=this.alpha),E&&(d=this.rectified_grid_angle*pr),x||E)p=this.longc;else if(m=this.long1,g=this.lat1,v=this.long2,b=this.lat2,Math.abs(g-b)<=Po||(e=Math.abs(g))<=Po||Math.abs(e-me)<=Po||Math.abs(Math.abs(this.lat0)-me)<=Po||Math.abs(Math.abs(b)-me)<=Po)throw new Error;var T=1-this.es;t=Math.sqrt(T),Math.abs(this.lat0)>be?(s=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*s*s,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/T),this.A=this.B*this.k0*t/e,n=this.B*t/(r*Math.sqrt(e)),i=n*n-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(En(this.e,this.lat0,s),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),x||E?(x?(h=Math.asin(Math.sin(C)/n),E||(d=C)):(h=d,C=Math.asin(n*Math.sin(h))),this.lam0=p-Math.asin(.5*(i-1/i)*Math.tan(h))/this.B):(a=Math.pow(En(this.e,g,Math.sin(g)),this.B),o=Math.pow(En(this.e,b,Math.sin(b)),this.B),i=this.E/a,u=(o-a)/(o+a),c=this.E*this.E,c=(c-o*a)/(c+o*a),e=m-v,e<-Math.pi?v-=nu:e>Math.pi&&(v+=nu),this.lam0=Te(.5*(m+v)-Math.atan(c*Math.tan(.5*this.B*(m-v))/u)/this.B),h=Math.atan(2*Math.sin(this.B*Te(m-this.lam0))/(i-1/i)),d=C=Math.asin(n*Math.sin(h))),this.singam=Math.sin(h),this.cosgam=Math.cos(h),this.sinrot=Math.sin(d),this.cosrot=Math.cos(d),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(C))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*h,this.v_pole_n=this.ArB*Math.log(Math.tan(at-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(at+i))}function pH(e){var t={},r,n,i,a,o,s,u,c;if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-me)>be){if(o=this.E/Math.pow(En(this.e,e.y,Math.sin(e.y)),this.B),s=1/o,r=.5*(o-s),n=.5*(o+s),a=Math.sin(this.B*e.x),i=(r*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)<be)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),s=Math.cos(this.B*e.x),Math.abs(s)<Po?u=this.A*e.x:u=this.ArB*Math.atan2(r*this.cosgam+a*this.singam,s)}else c=e.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*e.y;return this.no_rot?(t.x=u,t.y=c):(u-=this.u_0,t.x=c*this.cosrot+u*this.sinrot,t.y=u*this.cosrot-c*this.sinrot),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function mH(e){var t,r,n,i,a,o,s,u={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(r=e.y,t=e.x):(r=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*r),i=.5*(n-1/n),a=.5*(n+1/n),o=Math.sin(this.BrA*t),s=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(s)-1)<be)u.x=0,u.y=s<0?-me:me;else{if(u.y=this.E/Math.sqrt((1+s)/(1-s)),u.y=au(this.e,Math.pow(u.y,1/this.B)),u.y===1/0)throw new Error;u.x=-this.rB*Math.atan2(i*this.cosgam-o*this.singam,Math.cos(this.BrA*t))}return u.x+=this.lam0,u}var gH=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"];const vH={init:fH,forward:pH,inverse:mH,names:gH};function yH(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<be)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=ri(this.e,t,r),i=En(this.e,this.lat1,t),a=Math.sin(this.lat2),o=Math.cos(this.lat2),s=ri(this.e,a,o),u=En(this.e,this.lat2,a),c=En(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>be?this.ns=Math.log(n/s)/Math.log(i/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function bH(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=be&&(r=ku(r)*(me-2*be));var n=Math.abs(Math.abs(r)-me),i,a;if(n>be)i=En(this.e,r,Math.sin(r)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(n=r*this.ns,n<=0)return null;a=0}var o=this.ns*Te(t-this.long0);return e.x=this.k0*(a*Math.sin(o))+this.x0,e.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,e}function _H(e){var t,r,n,i,a,o=(e.x-this.x0)/this.k0,s=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(o*o+s*s),r=1):(t=-Math.sqrt(o*o+s*s),r=-1);var u=0;if(t!==0&&(u=Math.atan2(r*o,r*s)),t!==0||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),i=au(this.e,n),i===-9999)return null}else i=-me;return a=Te(u/this.ns+this.long0),e.x=a,e.y=i,e}var wH=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const CH={init:yH,forward:bH,inverse:_H,names:wH};function xH(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function TH(e){var t,r,n,i,a,o,s,u=e.x,c=e.y,d=Te(u-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),n=-d*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),a=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),o=this.n*a,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(o)/1,e.x=s*Math.sin(o)/1,this.czech||(e.y*=-1,e.x*=-1),e}function SH(e){var t,r,n,i,a,o,s,u,c=e.x;e.x=e.y,e.y=c,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),a=Math.atan2(e.y,e.x),i=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-r/this.alfa,s=t,u=0;var d=0;do e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-e.y)<1e-10&&(u=1),s=e.y,d+=1;while(u===0&&d<15);return d>=15?null:e}var EH=["Krovak","krovak"];const MH={init:xH,forward:TH,inverse:SH,names:EH};function kr(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}function Du(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function Nu(e){return .375*e*(1+.25*e*(1+.46875*e))}function Iu(e){return .05859375*e*e*(1+.75*e)}function Lu(e){return e*e*e*(35/3072)}function Jo(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)}function vs(e){return Math.abs(e)<me?e:e-ku(e)*Math.PI}function qd(e,t,r,n,i){var a,o;a=e/t;for(var s=0;s<15;s++)if(o=(e-(t*a-r*Math.sin(2*a)+n*Math.sin(4*a)-i*Math.sin(6*a)))/(t-2*r*Math.cos(2*a)+4*n*Math.cos(4*a)-6*i*Math.cos(6*a)),a+=o,Math.abs(o)<=1e-10)return a;return NaN}function AH(){this.sphere||(this.e0=Du(this.es),this.e1=Nu(this.es),this.e2=Iu(this.es),this.e3=Lu(this.es),this.ml0=this.a*kr(this.e0,this.e1,this.e2,this.e3,this.lat0))}function PH(e){var t,r,n=e.x,i=e.y;if(n=Te(n-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var a=Math.sin(i),o=Math.cos(i),s=Jo(this.a,this.e,a),u=Math.tan(i)*Math.tan(i),c=n*Math.cos(i),d=c*c,h=this.es*o*o/(1-this.es),p=this.a*kr(this.e0,this.e1,this.e2,this.e3,i);t=s*c*(1-d*u*(1/6-(8-u+8*h)*d/120)),r=p-this.ml0+s*a/o*d*(.5+(5-u+6*h)*d/24)}return e.x=t+this.x0,e.y=r+this.y0,e}function RH(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,r=e.y/this.a,n,i;if(this.sphere){var a=r+this.lat0;n=Math.asin(Math.sin(a)*Math.cos(t)),i=Math.atan2(Math.tan(t),Math.cos(a))}else{var o=this.ml0/this.a+r,s=qd(o,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-me)<=be)return e.x=this.long0,e.y=me,r<0&&(e.y*=-1),e;var u=Jo(this.a,this.e,Math.sin(s)),c=u*u*u/this.a/this.a*(1-this.es),d=Math.pow(Math.tan(s),2),h=t*this.a/u,p=h*h;n=s-u*Math.tan(s)/c*h*h*(.5-(1+3*d)*h*h/24),i=h*(1-p*(d/3+(1+3*d)*d*p/15))/Math.cos(s)}return e.x=Te(i+this.long0),e.y=vs(n),e}var OH=["Cassini","Cassini_Soldner","cass"];const kH={init:AH,forward:PH,inverse:RH,names:OH};function Zi(e,t){var r;return e>1e-7?(r=e*t,(1-e*e)*(t/(1-r*r)-.5/e*Math.log((1-r)/(1+r)))):2*t}var DH=1,NH=2,IH=3,LH=4;function FH(){var e=Math.abs(this.lat0);if(Math.abs(e-me)<be?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<be?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0){var t;switch(this.qp=Zi(this.e,1),this.mmf=.5/(1-this.es),this.apa=GH(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Zi(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function $H(e){var t,r,n,i,a,o,s,u,c,d,h=e.x,p=e.y;if(h=Te(h-this.long0),this.sphere){if(a=Math.sin(p),d=Math.cos(p),n=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(r=this.mode===this.EQUIT?1+d*n:1+this.sinph0*a+this.cosph0*d*n,r<=be)return null;r=Math.sqrt(2/r),t=r*d*Math.sin(h),r*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*d*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(p+this.lat0)<be)return null;r=at-p*.5,r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)),t=r*Math.sin(h),r*=n}}else{switch(s=0,u=0,c=0,n=Math.cos(h),i=Math.sin(h),a=Math.sin(p),o=Zi(this.e,a),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(s=o/this.qp,u=Math.sqrt(1-s*s)),this.mode){case this.OBLIQ:c=1+this.sinb1*s+this.cosb1*u*n;break;case this.EQUIT:c=1+u*n;break;case this.N_POLE:c=me+p,o=this.qp-o;break;case this.S_POLE:c=p-me,o=this.qp+o;break}if(Math.abs(c)<be)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),this.mode===this.OBLIQ?r=this.ymf*c*(this.cosb1*s-this.sinb1*u*n):r=(c=Math.sqrt(2/(1+u*n)))*s*this.ymf,t=this.xmf*c*u*i;break;case this.N_POLE:case this.S_POLE:o>=0?(t=(c=Math.sqrt(o))*i,r=n*(this.mode===this.S_POLE?c:-c)):t=r=0;break}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e}function BH(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,r=e.y/this.a,n,i,a,o,s,u,c;if(this.sphere){var d=0,h,p=0;if(h=Math.sqrt(t*t+r*r),i=h*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(p=Math.sin(i),d=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(h)<=be?0:Math.asin(r*p/h),t*=p,r=d*h;break;case this.OBLIQ:i=Math.abs(h)<=be?this.lat0:Math.asin(d*this.sinph0+r*p*this.cosph0/h),t*=p*this.cosph0,r=(d-Math.sin(i)*this.sinph0)*h;break;case this.N_POLE:r=-r,i=me-i;break;case this.S_POLE:i-=me;break}n=r===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(t,r)}else{if(c=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t/=this.dd,r*=this.dd,u=Math.sqrt(t*t+r*r),u<be)return e.x=this.long0,e.y=this.lat0,e;o=2*Math.asin(.5*u/this.rq),a=Math.cos(o),t*=o=Math.sin(o),this.mode===this.OBLIQ?(c=a*this.sinb1+r*o*this.cosb1/u,s=this.qp*c,r=u*this.cosb1*a-r*this.sinb1*o):(c=r*o/u,s=this.qp*c,r=u*a)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),s=t*t+r*r,!s)return e.x=this.long0,e.y=this.lat0,e;c=1-s/this.qp,this.mode===this.S_POLE&&(c=-c)}n=Math.atan2(t,r),i=qH(Math.asin(c),this.apa)}return e.x=Te(this.long0+n),e.y=i,e}var HH=.3333333333333333,zH=.17222222222222222,jH=.10257936507936508,WH=.06388888888888888,UH=.0664021164021164,VH=.016415012942191543;function GH(e){var t,r=[];return r[0]=e*HH,t=e*e,r[0]+=t*zH,r[1]=t*WH,t*=e,r[0]+=t*jH,r[1]+=t*UH,r[2]=t*VH,r}function qH(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)}var YH=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];const XH={init:FH,forward:$H,inverse:BH,names:YH,S_POLE:DH,N_POLE:NH,EQUIT:IH,OBLIQ:LH};function ra(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}function KH(){Math.abs(this.lat1+this.lat2)<be||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=ri(this.e3,this.sin_po,this.cos_po),this.qs1=Zi(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=ri(this.e3,this.sin_po,this.cos_po),this.qs2=Zi(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Zi(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>be?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function ZH(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=Zi(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*Te(t-this.long0),o=i*Math.sin(a)+this.x0,s=this.rh-i*Math.cos(a)+this.y0;return e.x=o,e.y=s,e}function QH(e){var t,r,n,i,a,o;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,t!==0&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,r)),a=Te(i/this.ns0+this.long0),e.x=a,e.y=o,e}function JH(e,t){var r,n,i,a,o,s=ra(.5*t);if(e<be)return s;for(var u=e*e,c=1;c<=25;c++)if(r=Math.sin(s),n=Math.cos(s),i=e*r,a=1-i*i,o=.5*a*a/n*(t/(1-u)-r/a+.5/e*Math.log((1-i)/(1+i))),s=s+o,Math.abs(o)<=1e-7)return s;return null}var ez=["Albers_Conic_Equal_Area","Albers","aea"];const tz={init:KH,forward:ZH,inverse:QH,names:ez,phi1z:JH};function rz(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function nz(e){var t,r,n,i,a,o,s,u,c=e.x,d=e.y;return n=Te(c-this.long0),t=Math.sin(d),r=Math.cos(d),i=Math.cos(n),o=this.sin_p14*t+this.cos_p14*r*i,a=1,o>0||Math.abs(o)<=be?(s=this.x0+this.a*a*r*Math.sin(n)/o,u=this.y0+this.a*a*(this.cos_p14*t-this.sin_p14*r*i)/o):(s=this.x0+this.infinity_dist*r*Math.sin(n),u=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*i)),e.x=s,e.y=u,e}function iz(e){var t,r,n,i,a,o;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),r=Math.sin(i),n=Math.cos(i),o=ra(n*this.sin_p14+e.y*r*this.cos_p14/t),a=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),a=Te(this.long0+a)):(o=this.phic0,a=0),e.x=a,e.y=o,e}var az=["gnom"];const oz={init:rz,forward:nz,inverse:iz,names:az};function sz(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*me:me;for(var n=Math.asin(.5*t),i,a,o,s,u=0;u<30;u++)if(a=Math.sin(n),o=Math.cos(n),s=e*a,i=Math.pow(1-s*s,2)/(2*o)*(t/(1-e*e)-a/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function lz(){this.sphere||(this.k0=ri(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function uz(e){var t=e.x,r=e.y,n,i,a=Te(t-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var o=Zi(this.e,Math.sin(r));n=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return e.x=n,e.y=i,e}function cz(e){e.x-=this.x0,e.y-=this.y0;var t,r;return this.sphere?(t=Te(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=sz(this.e,2*e.y*this.k0/this.a),t=Te(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e}var dz=["cea"];const hz={init:lz,forward:uz,inverse:cz,names:dz};function fz(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function pz(e){var t=e.x,r=e.y,n=Te(t-this.long0),i=vs(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e}function mz(e){var t=e.x,r=e.y;return e.x=Te(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=vs(this.lat0+(r-this.y0)/this.a),e}var gz=["Equirectangular","Equidistant_Cylindrical","eqc"];const vz={init:fz,forward:pz,inverse:mz,names:gz};var r2=20;function yz(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Du(this.es),this.e1=Nu(this.es),this.e2=Iu(this.es),this.e3=Lu(this.es),this.ml0=this.a*kr(this.e0,this.e1,this.e2,this.e3,this.lat0)}function bz(e){var t=e.x,r=e.y,n,i,a,o=Te(t-this.long0);if(a=o*Math.sin(r),this.sphere)Math.abs(r)<=be?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(r),i=this.a*(vs(r-this.lat0)+(1-Math.cos(a))/Math.tan(r)));else if(Math.abs(r)<=be)n=this.a*o,i=-1*this.ml0;else{var s=Jo(this.a,this.e,Math.sin(r))/Math.tan(r);n=s*Math.sin(a),i=this.a*kr(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+s*(1-Math.cos(a))}return e.x=n+this.x0,e.y=i+this.y0,e}function _z(e){var t,r,n,i,a,o,s,u,c;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=be)t=Te(n/this.a+this.long0),r=0;else{o=this.lat0+i/this.a,s=n*n/this.a/this.a+o*o,u=o;var d;for(a=r2;a;--a)if(d=Math.tan(u),c=-1*(o*(u*d+1)-u-.5*(u*u+s)*d)/((u-o)/d-1),u+=c,Math.abs(c)<=be){r=u;break}t=Te(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=be)r=0,t=Te(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,s=n*n/this.a/this.a+o*o,u=o;var h,p,m,v,g;for(a=r2;a;--a)if(g=this.e*Math.sin(u),h=Math.sqrt(1-g*g)*Math.tan(u),p=this.a*kr(this.e0,this.e1,this.e2,this.e3,u),m=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),v=p/this.a,c=(o*(h*v+1)-v-.5*h*(v*v+s))/(this.es*Math.sin(2*u)*(v*v+s-2*o*v)/(4*h)+(o-v)*(h*m-2/Math.sin(2*u))-m),u-=c,Math.abs(c)<=be){r=u;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=Te(this.long0+Math.asin(n*h/this.a)/Math.sin(r))}return e.x=t,e.y=r,e}var wz=["Polyconic","poly"];const Cz={init:yz,forward:bz,inverse:_z,names:wz};function xz(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function Tz(e){var t,r=e.x,n=e.y,i=n-this.lat0,a=r-this.long0,o=i/Pl*1e-5,s=a,u=1,c=0;for(t=1;t<=10;t++)u=u*o,c=c+this.A[t]*u;var d=c,h=s,p=1,m=0,v,g,b=0,C=0;for(t=1;t<=6;t++)v=p*d-m*h,g=m*d+p*h,p=v,m=g,b=b+this.B_re[t]*p-this.B_im[t]*m,C=C+this.B_im[t]*p+this.B_re[t]*m;return e.x=C*this.a+this.x0,e.y=b*this.a+this.y0,e}function Sz(e){var t,r=e.x,n=e.y,i=r-this.x0,a=n-this.y0,o=a/this.a,s=i/this.a,u=1,c=0,d,h,p=0,m=0;for(t=1;t<=6;t++)d=u*o-c*s,h=c*o+u*s,u=d,c=h,p=p+this.C_re[t]*u-this.C_im[t]*c,m=m+this.C_im[t]*u+this.C_re[t]*c;for(var v=0;v<this.iterations;v++){var g=p,b=m,C,x,E=o,T=s;for(t=2;t<=6;t++)C=g*p-b*m,x=b*p+g*m,g=C,b=x,E=E+(t-1)*(this.B_re[t]*g-this.B_im[t]*b),T=T+(t-1)*(this.B_im[t]*g+this.B_re[t]*b);g=1,b=0;var A=this.B_re[1],R=this.B_im[1];for(t=2;t<=6;t++)C=g*p-b*m,x=b*p+g*m,g=C,b=x,A=A+t*(this.B_re[t]*g-this.B_im[t]*b),R=R+t*(this.B_im[t]*g+this.B_re[t]*b);var N=A*A+R*R;p=(E*A+T*R)/N,m=(T*A-E*R)/N}var I=p,H=m,G=1,Y=0;for(t=1;t<=9;t++)G=G*I,Y=Y+this.D[t]*G;var O=this.lat0+Y*Pl*1e5,F=this.long0+H;return e.x=F,e.y=O,e}var Ez=["New_Zealand_Map_Grid","nzmg"];const Mz={init:xz,forward:Tz,inverse:Sz,names:Ez};function Az(){}function Pz(e){var t=e.x,r=e.y,n=Te(t-this.long0),i=this.x0+this.a*n,a=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=i,e.y=a,e}function Rz(e){e.x-=this.x0,e.y-=this.y0;var t=Te(this.long0+e.x/this.a),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e}var Oz=["Miller_Cylindrical","mill"];const kz={init:Az,forward:Pz,inverse:Rz,names:Oz};var Dz=20;function Nz(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=RM(this.es)}function Iz(e){var t,r,n=e.x,i=e.y;if(n=Te(n-this.long0),this.sphere){if(!this.m)i=this.n!==1?Math.asin(this.n*Math.sin(i)):i;else for(var a=this.n*Math.sin(i),o=Dz;o;--o){var s=(this.m*i+Math.sin(i)-a)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<be)break}t=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var u=Math.sin(i),c=Math.cos(i);r=this.a*lf(i,u,c,this.en),t=this.a*n*c/Math.sqrt(1-this.es*u*u)}return e.x=t,e.y=r,e}function Lz(e){var t,r,n,i;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n=n/(this.C_x*(this.m+Math.cos(t))),this.m?t=ra((this.m*t+Math.sin(t))/this.n):this.n!==1&&(t=ra(Math.sin(t)/this.n)),n=Te(n+this.long0),t=vs(t)):(t=OM(e.y/this.a,this.es,this.en),i=Math.abs(t),i<me?(i=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),n=Te(r)):i-be<me&&(n=this.long0)),e.x=n,e.y=t,e}var Fz=["Sinusoidal","sinu"];const $z={init:Nz,forward:Iz,inverse:Lz,names:Fz};function Bz(){}function Hz(e){for(var t=e.x,r=e.y,n=Te(t-this.long0),i=r,a=Math.PI*Math.sin(r);;){var o=-(i+Math.sin(i)-a)/(1+Math.cos(i));if(i+=o,Math.abs(o)<be)break}i/=2,Math.PI/2-Math.abs(r)<be&&(n=0);var s=.900316316158*this.a*n*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=s,e.y=u,e}function zz(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=Te(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return e.x=n,e.y=i,e}var jz=["Mollweide","moll"];const Wz={init:Bz,forward:Hz,inverse:zz,names:jz};function Uz(){Math.abs(this.lat1+this.lat2)<be||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Du(this.es),this.e1=Nu(this.es),this.e2=Iu(this.es),this.e3=Lu(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=ri(this.e,this.sinphi,this.cosphi),this.ml1=kr(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<be?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=ri(this.e,this.sinphi,this.cosphi),this.ml2=kr(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=kr(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function Vz(e){var t=e.x,r=e.y,n;if(this.sphere)n=this.a*(this.g-r);else{var i=kr(this.e0,this.e1,this.e2,this.e3,r);n=this.a*(this.g-i)}var a=this.ns*Te(t-this.long0),o=this.x0+n*Math.sin(a),s=this.y0+this.rh-n*Math.cos(a);return e.x=o,e.y=s,e}function Gz(e){e.x-=this.x0,e.y=this.rh-e.y+this.y0;var t,r,n,i;this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var a=0;if(r!==0&&(a=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=Te(this.long0+a/this.ns),n=vs(this.g-r/this.a),e.x=i,e.y=n,e;var o=this.g-r/this.a;return n=qd(o,this.e0,this.e1,this.e2,this.e3),i=Te(this.long0+a/this.ns),e.x=i,e.y=n,e}var qz=["Equidistant_Conic","eqdc"];const Yz={init:Uz,forward:Vz,inverse:Gz,names:qz};function Xz(){this.R=this.a}function Kz(e){var t=e.x,r=e.y,n=Te(t-this.long0),i,a;Math.abs(r)<=be&&(i=this.x0+this.R*n,a=this.y0);var o=ra(2*Math.abs(r/Math.PI));(Math.abs(n)<=be||Math.abs(Math.abs(r)-me)<=be)&&(i=this.x0,r>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var s=.5*Math.abs(Math.PI/n-n/Math.PI),u=s*s,c=Math.sin(o),d=Math.cos(o),h=d/(c+d-1),p=h*h,m=h*(2/c-1),v=m*m,g=Math.PI*this.R*(s*(h-v)+Math.sqrt(u*(h-v)*(h-v)-(v+u)*(p-v)))/(v+u);n<0&&(g=-g),i=this.x0+g;var b=u+h;return g=Math.PI*this.R*(m*b-s*Math.sqrt((v+u)*(u+1)-b*b))/(v+u),r>=0?a=this.y0+g:a=this.y0-g,e.x=i,e.y=a,e}function Zz(e){var t,r,n,i,a,o,s,u,c,d,h,p,m;return e.x-=this.x0,e.y-=this.y0,h=Math.PI*this.R,n=e.x/h,i=e.y/h,a=n*n+i*i,o=-Math.abs(i)*(1+a),s=o-2*i*i+n*n,u=-2*o+1+2*i*i+a*a,m=i*i/u+(2*s*s*s/u/u/u-9*o*s/u/u)/27,c=(o-s*s/3/u)/u,d=2*Math.sqrt(-c/3),h=3*m/c/d,Math.abs(h)>1&&(h>=0?h=1:h=-1),p=Math.acos(h)/3,e.y>=0?r=(-d*Math.cos(p+Math.PI/3)-s/3/u)*Math.PI:r=-(-d*Math.cos(p+Math.PI/3)-s/3/u)*Math.PI,Math.abs(n)<be?t=this.long0:t=Te(this.long0+Math.PI*(a-1+Math.sqrt(1+2*(n*n-i*i)+a*a))/2/n),e.x=t,e.y=r,e}var Qz=["Van_der_Grinten_I","VanDerGrinten","vandg"];const Jz={init:Xz,forward:Kz,inverse:Zz,names:Qz};function ej(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function tj(e){var t=e.x,r=e.y,n=Math.sin(e.y),i=Math.cos(e.y),a=Te(t-this.long0),o,s,u,c,d,h,p,m,v,g,b,C,x,E,T,A,R,N,I,H,G,Y,O;return this.sphere?Math.abs(this.sin_p12-1)<=be?(e.x=this.x0+this.a*(me-r)*Math.sin(a),e.y=this.y0-this.a*(me-r)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=be?(e.x=this.x0+this.a*(me+r)*Math.sin(a),e.y=this.y0+this.a*(me+r)*Math.cos(a),e):(N=this.sin_p12*n+this.cos_p12*i*Math.cos(a),A=Math.acos(N),R=A?A/Math.sin(A):1,e.x=this.x0+this.a*R*i*Math.sin(a),e.y=this.y0+this.a*R*(this.cos_p12*n-this.sin_p12*i*Math.cos(a)),e):(o=Du(this.es),s=Nu(this.es),u=Iu(this.es),c=Lu(this.es),Math.abs(this.sin_p12-1)<=be?(d=this.a*kr(o,s,u,c,me),h=this.a*kr(o,s,u,c,r),e.x=this.x0+(d-h)*Math.sin(a),e.y=this.y0-(d-h)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=be?(d=this.a*kr(o,s,u,c,me),h=this.a*kr(o,s,u,c,r),e.x=this.x0+(d+h)*Math.sin(a),e.y=this.y0+(d+h)*Math.cos(a),e):(p=n/i,m=Jo(this.a,this.e,this.sin_p12),v=Jo(this.a,this.e,n),g=Math.atan((1-this.es)*p+this.es*m*this.sin_p12/(v*i)),b=Math.atan2(Math.sin(a),this.cos_p12*Math.tan(g)-this.sin_p12*Math.cos(a)),b===0?I=Math.asin(this.cos_p12*Math.sin(g)-this.sin_p12*Math.cos(g)):Math.abs(Math.abs(b)-Math.PI)<=be?I=-Math.asin(this.cos_p12*Math.sin(g)-this.sin_p12*Math.cos(g)):I=Math.asin(Math.sin(a)*Math.cos(g)/Math.sin(b)),C=this.e*this.sin_p12/Math.sqrt(1-this.es),x=this.e*this.cos_p12*Math.cos(b)/Math.sqrt(1-this.es),E=C*x,T=x*x,H=I*I,G=H*I,Y=G*I,O=Y*I,A=m*I*(1-H*T*(1-T)/6+G/8*E*(1-2*T)+Y/120*(T*(4-7*T)-3*C*C*(1-7*T))-O/48*E),e.x=this.x0+A*Math.sin(b),e.y=this.y0+A*Math.cos(b),e))}function rj(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,a,o,s,u,c,d,h,p,m,v,g,b,C,x,E,T,A,R,N,I;return this.sphere?(t=Math.sqrt(e.x*e.x+e.y*e.y),t>2*me*this.a?void 0:(r=t/this.a,n=Math.sin(r),i=Math.cos(r),a=this.long0,Math.abs(t)<=be?o=this.lat0:(o=ra(i*this.sin_p12+e.y*n*this.cos_p12/t),s=Math.abs(this.lat0)-me,Math.abs(s)<=be?this.lat0>=0?a=Te(this.long0+Math.atan2(e.x,-e.y)):a=Te(this.long0-Math.atan2(-e.x,e.y)):a=Te(this.long0+Math.atan2(e.x*n,t*this.cos_p12*i-e.y*this.sin_p12*n))),e.x=a,e.y=o,e)):(u=Du(this.es),c=Nu(this.es),d=Iu(this.es),h=Lu(this.es),Math.abs(this.sin_p12-1)<=be?(p=this.a*kr(u,c,d,h,me),t=Math.sqrt(e.x*e.x+e.y*e.y),m=p-t,o=qd(m/this.a,u,c,d,h),a=Te(this.long0+Math.atan2(e.x,-1*e.y)),e.x=a,e.y=o,e):Math.abs(this.sin_p12+1)<=be?(p=this.a*kr(u,c,d,h,me),t=Math.sqrt(e.x*e.x+e.y*e.y),m=t-p,o=qd(m/this.a,u,c,d,h),a=Te(this.long0+Math.atan2(e.x,e.y)),e.x=a,e.y=o,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),b=Math.atan2(e.x,e.y),v=Jo(this.a,this.e,this.sin_p12),C=Math.cos(b),x=this.e*this.cos_p12*C,E=-x*x/(1-this.es),T=3*this.es*(1-E)*this.sin_p12*this.cos_p12*C/(1-this.es),A=t/v,R=A-E*(1+E)*Math.pow(A,3)/6-T*(1+3*E)*Math.pow(A,4)/24,N=1-E*R*R/2-A*R*R*R/6,g=Math.asin(this.sin_p12*Math.cos(R)+this.cos_p12*Math.sin(R)*C),a=Te(this.long0+Math.asin(Math.sin(b)*Math.sin(R)/Math.cos(g))),I=Math.sin(g),o=Math.atan2((I-this.es*N*this.sin_p12)*Math.tan(g),I*(1-this.es)),e.x=a,e.y=o,e))}var nj=["Azimuthal_Equidistant","aeqd"];const ij={init:ej,forward:tj,inverse:rj,names:nj};function aj(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function oj(e){var t,r,n,i,a,o,s,u,c=e.x,d=e.y;return n=Te(c-this.long0),t=Math.sin(d),r=Math.cos(d),i=Math.cos(n),o=this.sin_p14*t+this.cos_p14*r*i,a=1,(o>0||Math.abs(o)<=be)&&(s=this.a*a*r*Math.sin(n),u=this.y0+this.a*a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=s,e.y=u,e}function sj(e){var t,r,n,i,a,o,s;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=ra(t/this.a),n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=be?(s=this.lat0,e.x=o,e.y=s,e):(s=ra(i*this.sin_p14+e.y*n*this.cos_p14/t),a=Math.abs(this.lat0)-me,Math.abs(a)<=be?(this.lat0>=0?o=Te(this.long0+Math.atan2(e.x,-e.y)):o=Te(this.long0-Math.atan2(-e.x,e.y)),e.x=o,e.y=s,e):(o=Te(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n)),e.x=o,e.y=s,e))}var lj=["ortho"];const uj={init:aj,forward:oj,inverse:sj,names:lj};var Ft={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},ot={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function cj(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=me-at/2?this.face=Ft.TOP:this.lat0<=-(me-at/2)?this.face=Ft.BOTTOM:Math.abs(this.long0)<=at?this.face=Ft.FRONT:Math.abs(this.long0)<=me+at?this.face=this.long0>0?Ft.RIGHT:Ft.LEFT:this.face=Ft.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function dj(e){var t={x:0,y:0},r,n,i,a,o,s,u={value:0};if(e.x-=this.long0,this.es!==0?r=Math.atan(this.one_minus_f_squared*Math.tan(e.y)):r=e.y,n=e.x,this.face===Ft.TOP)a=me-r,n>=at&&n<=me+at?(u.value=ot.AREA_0,i=n-me):n>me+at||n<=-(me+at)?(u.value=ot.AREA_1,i=n>0?n-Gt:n+Gt):n>-(me+at)&&n<=-at?(u.value=ot.AREA_2,i=n+me):(u.value=ot.AREA_3,i=n);else if(this.face===Ft.BOTTOM)a=me+r,n>=at&&n<=me+at?(u.value=ot.AREA_0,i=-n+me):n<at&&n>=-at?(u.value=ot.AREA_1,i=-n):n<-at&&n>=-(me+at)?(u.value=ot.AREA_2,i=-n-me):(u.value=ot.AREA_3,i=n>0?-n+Gt:-n-Gt);else{var c,d,h,p,m,v,g;this.face===Ft.RIGHT?n=qo(n,+me):this.face===Ft.BACK?n=qo(n,+Gt):this.face===Ft.LEFT&&(n=qo(n,-me)),p=Math.sin(r),m=Math.cos(r),v=Math.sin(n),g=Math.cos(n),c=m*g,d=m*v,h=p,this.face===Ft.FRONT?(a=Math.acos(c),i=jc(a,h,d,u)):this.face===Ft.RIGHT?(a=Math.acos(d),i=jc(a,h,-c,u)):this.face===Ft.BACK?(a=Math.acos(-c),i=jc(a,h,-d,u)):this.face===Ft.LEFT?(a=Math.acos(-d),i=jc(a,h,c,u)):(a=i=0,u.value=ot.AREA_0)}return s=Math.atan(12/Gt*(i+Math.acos(Math.sin(i)*Math.cos(at))-me)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),u.value===ot.AREA_1?s+=me:u.value===ot.AREA_2?s+=Gt:u.value===ot.AREA_3&&(s+=1.5*Gt),t.x=o*Math.cos(s),t.y=o*Math.sin(s),t.x=t.x*this.a+this.x0,t.y=t.y*this.a+this.y0,e.x=t.x,e.y=t.y,e}function hj(e){var t={lam:0,phi:0},r,n,i,a,o,s,u,c,d,h={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),r=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?h.value=ot.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(h.value=ot.AREA_1,r-=me):e.x<0&&-e.x>=Math.abs(e.y)?(h.value=ot.AREA_2,r=r<0?r+Gt:r-Gt):(h.value=ot.AREA_3,r+=me),d=Gt/12*Math.tan(r),o=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(r),a=Math.tan(n),u=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(s)))),u<-1?u=-1:u>1&&(u=1),this.face===Ft.TOP)c=Math.acos(u),t.phi=me-c,h.value===ot.AREA_0?t.lam=s+me:h.value===ot.AREA_1?t.lam=s<0?s+Gt:s-Gt:h.value===ot.AREA_2?t.lam=s-me:t.lam=s;else if(this.face===Ft.BOTTOM)c=Math.acos(u),t.phi=c-me,h.value===ot.AREA_0?t.lam=-s+me:h.value===ot.AREA_1?t.lam=-s:h.value===ot.AREA_2?t.lam=-s-me:t.lam=s<0?-s-Gt:-s+Gt;else{var p,m,v;p=u,d=p*p,d>=1?v=0:v=Math.sqrt(1-d)*Math.sin(s),d+=v*v,d>=1?m=0:m=Math.sqrt(1-d),h.value===ot.AREA_1?(d=m,m=-v,v=d):h.value===ot.AREA_2?(m=-m,v=-v):h.value===ot.AREA_3&&(d=m,m=v,v=-d),this.face===Ft.RIGHT?(d=p,p=-m,m=d):this.face===Ft.BACK?(p=-p,m=-m):this.face===Ft.LEFT&&(d=p,p=m,m=-d),t.phi=Math.acos(-v)-me,t.lam=Math.atan2(m,p),this.face===Ft.RIGHT?t.lam=qo(t.lam,-me):this.face===Ft.BACK?t.lam=qo(t.lam,-Gt):this.face===Ft.LEFT&&(t.lam=qo(t.lam,+me))}if(this.es!==0){var g,b,C;g=t.phi<0?1:0,b=Math.tan(t.phi),C=this.b/Math.sqrt(b*b+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-C*C)/(this.one_minus_f*C)),g&&(t.phi=-t.phi)}return t.lam+=this.long0,e.x=t.lam,e.y=t.phi,e}function jc(e,t,r,n){var i;return e<be?(n.value=ot.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=at?n.value=ot.AREA_0:i>at&&i<=me+at?(n.value=ot.AREA_1,i-=me):i>me+at||i<=-(me+at)?(n.value=ot.AREA_2,i=i>=0?i-Gt:i+Gt):(n.value=ot.AREA_3,i+=me)),i}function qo(e,t){var r=e+t;return r<-Gt?r+=nu:r>+Gt&&(r-=nu),r}var fj=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const pj={init:cj,forward:dj,inverse:hj,names:fj};var P0=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],wl=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],NM=.8487,IM=1.3523,LM=Yn/5,mj=1/LM,$o=18,Yd=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},gj=function(e,t){return e[1]+t*(2*e[2]+t*3*e[3])};function vj(e,t,r,n){for(var i=t;n;--n){var a=e(i);if(i-=a,Math.abs(a)<r)break}return i}function yj(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function bj(e){var t=Te(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*LM);n<0?n=0:n>=$o&&(n=$o-1),r=Yn*(r-mj*n);var i={x:Yd(P0[n],r)*t,y:Yd(wl[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*NM+this.x0,i.y=i.y*this.a*IM+this.y0,i}function _j(e){var t={x:(e.x-this.x0)/(this.a*NM),y:Math.abs(e.y-this.y0)/(this.a*IM)};if(t.y>=1)t.x/=P0[$o][0],t.y=e.y<0?-me:me;else{var r=Math.floor(t.y*$o);for(r<0?r=0:r>=$o&&(r=$o-1);;)if(wl[r][0]>t.y)--r;else if(wl[r+1][0]<=t.y)++r;else break;var n=wl[r],i=5*(t.y-n[0])/(wl[r+1][0]-n[0]);i=vj(function(a){return(Yd(n,a)-t.y)/gj(n,a)},i,be,100),t.x/=Yd(P0[r],i),t.y=(5*r+i)*pr,e.y<0&&(t.y=-t.y)}return t.x=Te(t.x+this.long0),t}var wj=["Robinson","robin"];const Cj={init:yj,forward:bj,inverse:_j,names:wj};function xj(){this.name="geocent"}function Tj(e){var t=wM(e,this.es,this.a);return t}function Sj(e){var t=CM(e,this.es,this.a,this.b);return t}var Ej=["Geocentric","geocentric","geocent","Geocent"];const Mj={init:xj,forward:Tj,inverse:Sj,names:Ej};var Cr={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},tl={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Aj(){if(Object.keys(tl).forEach(function(r){if(typeof this[r]=="undefined")this[r]=tl[r].def;else{if(tl[r].num&&isNaN(this[r]))throw new Error("Invalid parameter value, must be numeric "+r+" = "+this[r]);tl[r].num&&(this[r]=parseFloat(this[r]))}tl[r].degrees&&(this[r]=this[r]*pr)}.bind(this)),Math.abs(Math.abs(this.lat0)-me)<be?this.mode=this.lat0<0?Cr.S_POLE:Cr.N_POLE:Math.abs(this.lat0)<be?this.mode=Cr.EQUIT:(this.mode=Cr.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)}function Pj(e){e.x-=this.long0;var t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i,a;switch(this.mode){case Cr.OBLIQ:a=this.sinph0*t+this.cosph0*r*n;break;case Cr.EQUIT:a=r*n;break;case Cr.S_POLE:a=-t;break;case Cr.N_POLE:a=t;break}switch(a=this.pn1/(this.p-a),i=a*r*Math.sin(e.x),this.mode){case Cr.OBLIQ:a*=this.cosph0*t-this.sinph0*r*n;break;case Cr.EQUIT:a*=t;break;case Cr.N_POLE:a*=-(r*n);break;case Cr.S_POLE:a*=r*n;break}var o,s;return o=a*this.cg+i*this.sg,s=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*s,a=o*s,e.x=i*this.a,e.y=a*this.a,e}function Rj(e){e.x/=this.a,e.y/=this.a;var t={x:e.x,y:e.y},r,n,i;i=1/(this.pn1-e.y*this.sw),r=this.pn1*e.x*i,n=this.pn1*e.y*this.cw*i,e.x=r*this.cg+n*this.sg,e.y=n*this.cg-r*this.sg;var a=mn(e.x,e.y);if(Math.abs(a)<be)t.x=0,t.y=e.y;else{var o,s;switch(s=1-a*a*this.pfact,s=(this.p-Math.sqrt(s))/(this.pn1/a+a/this.pn1),o=Math.sqrt(1-s*s),this.mode){case Cr.OBLIQ:t.y=Math.asin(o*this.sinph0+e.y*s*this.cosph0/a),e.y=(o-this.sinph0*Math.sin(t.y))*a,e.x*=s*this.cosph0;break;case Cr.EQUIT:t.y=Math.asin(e.y*s/a),e.y=o*a,e.x*=s;break;case Cr.N_POLE:t.y=Math.asin(o),e.y=-e.y;break;case Cr.S_POLE:t.y=-Math.asin(o);break}t.x=Math.atan2(e.x,e.y)}return e.x=t.x+this.long0,e.y=t.y,e}var Oj=["Tilted_Perspective","tpers"];const kj={init:Aj,forward:Pj,inverse:Rj,names:Oj};function Dj(){if(this.flip_axis=this.sweep==="x"?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function Nj(e){var t=e.x,r=e.y,n,i,a,o;if(t=t-this.long0,this.shape==="ellipse"){r=Math.atan(this.radius_p2*Math.tan(r));var s=this.radius_p/mn(this.radius_p*Math.cos(r),Math.sin(r));if(i=s*Math.cos(t)*Math.cos(r),a=s*Math.sin(t)*Math.cos(r),o=s*Math.sin(r),(this.radius_g-i)*i-a*a-o*o*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;n=this.radius_g-i,this.flip_axis?(e.x=this.radius_g_1*Math.atan(a/mn(o,n)),e.y=this.radius_g_1*Math.atan(o/n)):(e.x=this.radius_g_1*Math.atan(a/n),e.y=this.radius_g_1*Math.atan(o/mn(a,n)))}else this.shape==="sphere"&&(n=Math.cos(r),i=Math.cos(t)*n,a=Math.sin(t)*n,o=Math.sin(r),n=this.radius_g-i,this.flip_axis?(e.x=this.radius_g_1*Math.atan(a/mn(o,n)),e.y=this.radius_g_1*Math.atan(o/n)):(e.x=this.radius_g_1*Math.atan(a/n),e.y=this.radius_g_1*Math.atan(o/mn(a,n))));return e.x=e.x*this.a,e.y=e.y*this.a,e}function Ij(e){var t=-1,r=0,n=0,i,a,o,s;if(e.x=e.x/this.a,e.y=e.y/this.a,this.shape==="ellipse"){this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),r=Math.tan(e.x/this.radius_g_1)*mn(1,n)):(r=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*mn(1,r));var u=n/this.radius_p;if(i=r*r+u*u+t*t,a=2*this.radius_g*t,o=a*a-4*i*this.C,o<0)return e.x=Number.NaN,e.y=Number.NaN,e;s=(-a-Math.sqrt(o))/(2*i),t=this.radius_g+s*t,r*=s,n*=s,e.x=Math.atan2(r,t),e.y=Math.atan(n*Math.cos(e.x)/t),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if(this.shape==="sphere"){if(this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),r=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+n*n)):(r=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+r*r)),i=r*r+n*n+t*t,a=2*this.radius_g*t,o=a*a-4*i*this.C,o<0)return e.x=Number.NaN,e.y=Number.NaN,e;s=(-a-Math.sqrt(o))/(2*i),t=this.radius_g+s*t,r*=s,n*=s,e.x=Math.atan2(r,t),e.y=Math.atan(n*Math.cos(e.x)/t)}return e.x=e.x+this.long0,e}var Lj=["Geostationary Satellite View","Geostationary_Satellite","geos"];const Fj={init:Dj,forward:Nj,inverse:Ij,names:Lj};var Rl=1.340264,Ol=-.081106,kl=893e-6,Dl=.003796,Xd=Math.sqrt(3)/2;function $j(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function Bj(e){var t=Te(e.x-this.long0),r=e.y,n=Math.asin(Xd*Math.sin(r)),i=n*n,a=i*i*i;return e.x=t*Math.cos(n)/(Xd*(Rl+3*Ol*i+a*(7*kl+9*Dl*i))),e.y=n*(Rl+Ol*i+a*(kl+Dl*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function Hj(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t=1e-9,r=12,n=e.y,i,a,o,s,u,c;for(c=0;c<r&&(i=n*n,a=i*i*i,o=n*(Rl+Ol*i+a*(kl+Dl*i))-e.y,s=Rl+3*Ol*i+a*(7*kl+9*Dl*i),n-=u=o/s,!(Math.abs(u)<t));++c);return i=n*n,a=i*i*i,e.x=Xd*e.x*(Rl+3*Ol*i+a*(7*kl+9*Dl*i))/Math.cos(n),e.y=Math.asin(Math.sin(n)/Xd),e.x=Te(e.x+this.long0),e}var zj=["eqearth","Equal Earth","Equal_Earth"];const jj={init:$j,forward:Bj,inverse:Hj,names:zj};function Wj(e){e.Proj.projections.add(md),e.Proj.projections.add(gd),e.Proj.projections.add(U9),e.Proj.projections.add(eH),e.Proj.projections.add(oH),e.Proj.projections.add(dH),e.Proj.projections.add(vH),e.Proj.projections.add(CH),e.Proj.projections.add(MH),e.Proj.projections.add(kH),e.Proj.projections.add(XH),e.Proj.projections.add(tz),e.Proj.projections.add(oz),e.Proj.projections.add(hz),e.Proj.projections.add(vz),e.Proj.projections.add(Cz),e.Proj.projections.add(Mz),e.Proj.projections.add(kz),e.Proj.projections.add($z),e.Proj.projections.add(Wz),e.Proj.projections.add(Yz),e.Proj.projections.add(Jz),e.Proj.projections.add(ij),e.Proj.projections.add(uj),e.Proj.projections.add(pj),e.Proj.projections.add(Cj),e.Proj.projections.add(Mj),e.Proj.projections.add(kj),e.Proj.projections.add(Fj),e.Proj.projections.add(jj)}Jr.defaultDatum="WGS84";Jr.Proj=Qn;Jr.WGS84=new Jr.Proj("WGS84");Jr.Point=Qo;Jr.toPoint=xM;Jr.defs=Pr;Jr.nadgrid=GB;Jr.transform=Gd;Jr.mgrs=l9;Jr.version="__VERSION__";Wj(Jr);const Uj=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),Vj=w.getAugmentedNamespace(Uj);(function(e){(function(t){var r,n;r=hM,n=Vj,e.exports=t(r,n)})(function(t,r){return r.__esModule&&r.default&&(r=r.default),t.Proj={},t.Proj._isProj4Obj=function(n){return typeof n.inverse!="undefined"&&typeof n.forward!="undefined"},t.Proj.Projection=t.Class.extend({initialize:function(n,i,a){var o=t.Proj._isProj4Obj(n);this._proj=o?n:this._projFromCodeDef(n,i),this.bounds=o?i:a},project:function(n){var i=this._proj.forward([n.lng,n.lat]);return new t.Point(i[0],i[1])},unproject:function(n,i){var a=this._proj.inverse([n.x,n.y]);return new t.LatLng(a[1],a[0],i)},_projFromCodeDef:function(n,i){if(i)r.defs(n,i);else if(r.defs[n]===void 0){var a=n.split(":");if(a.length>3&&(n=a[a.length-3]+":"+a[a.length-1]),r.defs[n]===void 0)throw"No projection definition for code "+n}return r(n)}}),t.Proj.CRS=t.Class.extend({includes:t.CRS,options:{transformation:new t.Transformation(1,0,-1,0)},initialize:function(n,i,a){var o,s,u,c;if(t.Proj._isProj4Obj(n)?(s=n,o=s.srsCode,c=i||{},this.projection=new t.Proj.Projection(s,c.bounds)):(o=n,u=i,c=a||{},this.projection=new t.Proj.Projection(o,u,c.bounds)),t.Util.setOptions(this,c),this.code=o,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new t.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var d=this.options.resolutions.length-1;d>=0;d--)this.options.resolutions[d]&&(this._scales[d]=1/this.options.resolutions[d])}this.infinite=!this.options.bounds},scale:function(n){var i=Math.floor(n),a,o,s,u;return n===i?this._scales[n]:(a=this._scales[i],o=this._scales[i+1],s=o-a,u=n-i,a+s*u)},zoom:function(n){var i=this._closestElement(this._scales,n),a=this._scales.indexOf(i),o,s,u;return n===i?a:i===void 0?-1/0:(s=a+1,o=this._scales[s],o===void 0?1/0:(u=o-i,(n-i)/u+a))},distance:t.CRS.Earth.distance,R:t.CRS.Earth.R,_closestElement:function(n,i){for(var a,o=n.length;o--;)n[o]<=i&&(a===void 0||a<n[o])&&(a=n[o]);return a}}),t.Proj.GeoJSON=t.GeoJSON.extend({initialize:function(n,i){this._callLevel=0,t.GeoJSON.prototype.initialize.call(this,n,i)},addData:function(n){var i;n&&(n.crs&&n.crs.type==="name"?i=new t.Proj.CRS(n.crs.properties.name):n.crs&&n.crs.type&&(i=new t.Proj.CRS(n.crs.type+":"+n.crs.properties.code)),i!==void 0&&(this.options.coordsToLatLng=function(a){var o=t.point(a[0],a[1]);return i.projection.unproject(o)})),this._callLevel++;try{t.GeoJSON.prototype.addData.call(this,n)}finally{this._callLevel--,this._callLevel===0&&delete this.options.coordsToLatLng}}}),t.Proj.geoJson=function(n,i){return new t.Proj.GeoJSON(n,i)},t.Proj.ImageOverlay=t.ImageOverlay.extend({initialize:function(n,i,a){t.ImageOverlay.prototype.initialize.call(this,n,null,a),this._projectedBounds=i},_animateZoom:function(n){var i=this._map.getZoomScale(n.zoom),a=t.point(this._projectedBounds.min.x,this._projectedBounds.max.y),o=this._projectedToNewLayerPoint(a,n.zoom,n.center);t.DomUtil.setTransform(this._image,o,i)},_reset:function(){var n=this._map.getZoom(),i=this._map.getPixelOrigin(),a=t.bounds(this._transform(this._projectedBounds.min,n)._subtract(i),this._transform(this._projectedBounds.max,n)._subtract(i)),o=a.getSize();t.DomUtil.setPosition(this._image,a.min),this._image.style.width=o.x+"px",this._image.style.height=o.y+"px"},_projectedToNewLayerPoint:function(n,i,a){var o=this._map.getSize()._divideBy(2),s=this._map.project(a,i)._subtract(o)._round(),u=s.add(this._map._getMapPanePos());return this._transform(n,i)._subtract(u)},_transform:function(n,i){var a=this._map.options.crs,o=a.transformation,s=a.scale(i);return o.transform(n,s)}}),t.Proj.imageOverlay=function(n,i,a){return new t.Proj.ImageOverlay(n,i,a)},t.Proj})})(fM);var Gj=fM.exports;const qj=250;function FM(e){const t=e.chart.animation.init.duration==="auto"?qj:e.chart.animation.init.duration;return{animate:t!==0,duration:t/1e3}}function Yj(e,t,r={}){t.length&&e.fitBounds(t.map(n=>[n.getLatLng().lat,n.getLatLng().lng]),M({maxZoom:4},r))}const Xj=[{officialName:"Afghanistan",allNames:["af","afġānistān","afghanistan","afg"],id:"AFG"},{id:"ALA",officialName:"Åland Islands",allNames:["ax","ala","åland islands","aland islands"]},{officialName:"Albania",allNames:["al","shqipëri","shqipëria","shqipnia","albania","alb"],id:"ALB"},{officialName:"Algeria",allNames:["dz","dzayer","algérie","algeria","dza"],id:"DZA"},{officialName:"American Samoa",allNames:["as","amerika sāmoa","amelika sāmoa","sāmoa amelika","american samoa","asm"],id:"ASM"},{id:"AND",officialName:"Andorra",allNames:["ad","and","andorra"]},{officialName:"Angola",allNames:["ao","república de angola","ʁɛpublika de an'ɡɔla","angola","ago"],id:"AGO"},{officialName:"Anguilla",allNames:["ai","anguilla","aia"],id:"AIA"},{id:"ATA",officialName:"Antarctica",allNames:["aq","ata","antarctica"]},{officialName:"Antigua and Barbuda",allNames:["ag","antigua and barbuda","atg"],id:"ATG"},{officialName:"Argentina",allNames:["ar","argentine republic","república argentina","argentina","arg"],id:"ARG"},{officialName:"Armenia",allNames:["am","hayastan","republic of armenia","հայաստանի հանրապետություն","armenia","arm"],id:"ARM"},{officialName:"Aruba",allNames:["aw","aruba","abw"],id:"ABW"},{officialName:"Australia",allNames:["au","australia","aus"],id:"AUS"},{officialName:"Austria",allNames:["at","österreich","osterreich","oesterreich","austria","aut"],id:"AUT"},{officialName:"Azerbaijan",allNames:["az","republic of azerbaijan","azərbaycan respublikası","azerbaijan","aze","azerbaijan republic"],id:"AZE"},{officialName:"Bahrain",allNames:["bh","kingdom of bahrain","mamlakat al-baḥrayn","bahrain","bhr"],id:"BHR"},{officialName:"Bangladesh",allNames:["bd","people's republic of bangladesh","gônôprôjatôntri bangladesh","bangladesh","bgd"],id:"BGD"},{officialName:"Barbados",allNames:["bb","barbados","brb"],id:"BRB"},{officialName:"Belarus",allNames:["by","bielaruś","republic of belarus","белоруссия","республика беларусь","belorussiya","respublika belarus’","belarus","blr"],id:"BLR"},{officialName:"Belgium",allNames:["be","belgië","belgie","belgien","belgique","kingdom of belgium","koninkrijk belgië","royaume de belgique","königreich belgien","belgium","bel"],id:"BEL"},{officialName:"Belize",allNames:["bz","belize","blz"],id:"BLZ"},{officialName:"Benin",allNames:["bj","republic of benin","république du bénin","benin","ben"],id:"BEN"},{officialName:"Bermuda",allNames:["bm","the islands ofbermuda","the bermudas","somers isles","bermuda","bmu"],id:"BMU"},{officialName:"Bhutan",allNames:["bt","kingdom of bhutan","bhutan","btn"],id:"BTN"},{officialName:"Bolivia",allNames:["bo","buliwya","wuliwya","plurinational state of bolivia","estado plurinacional de bolivia","buliwya mamallaqta","wuliwya suyu","tetã volívia","bolivia","bol","plurinational state of"],id:"BOL"},{id:"BES",officialName:"Bonaire",allNames:["bq","bes","bonaire","sint eustatius and saba","caribbean netherlands"]},{officialName:"Bosnia and Herzegovina",allNames:["ba","bosnia-herzegovina","босна и херцеговина","bosnia and herzegovina","bih"],id:"BIH"},{officialName:"Botswana",allNames:["bw","republic of botswana","lefatshe la botswana","botswana","bwa"],id:"BWA"},{id:"BVT",officialName:"Bouvet Island",allNames:["bv","bvt","bouvet island"]},{officialName:"Brazil",allNames:["br","brasil","federative republic of brazil","república federativa do brasil","brazil","bra"],id:"BRA"},{officialName:"British Indian Ocean Territory",allNames:["io","british indian ocean territory","iot"],id:"IOT"},{officialName:"Brunei",allNames:["bn","nation of brunei","the abode of peace","brunei","brn","brunei darussalam"],id:"BRN"},{officialName:"Bulgaria",allNames:["bg","republic of bulgaria","република българия","bulgaria","bgr"],id:"BGR"},{officialName:"Burkina Faso",allNames:["bf","burkina faso","bfa"],id:"BFA"},{officialName:"Burundi",allNames:["bi","republic of burundi","republika y'uburundi","république du burundi","burundi","bdi"],id:"BDI"},{officialName:"Cambodia",allNames:["kh","kingdom of cambodia","cambodia","khm"],id:"KHM"},{officialName:"Cameroon",allNames:["cm","republic of cameroon","république du cameroun","cameroon","cmr"],id:"CMR"},{officialName:"Canada",allNames:["ca","canada","can"],id:"CAN"},{officialName:"Cape Verde",allNames:["cv","republic of cabo verde","república de cabo verde","cape verde","cpv"],id:"CPV"},{officialName:"Cayman Islands",allNames:["ky","cayman islands","cym"],id:"CYM"},{officialName:"Central African Republic",allNames:["cf","central african republic","république centrafricaine","central african republic","caf"],id:"CAF"},{officialName:"Chad",allNames:["td","tchad","republic of chad","république du tchad","chad","tcd"],id:"TCD"},{officialName:"Chile",allNames:["cl","republic of chile","república de chile","chile","chl"],id:"CHL"},{officialName:"China",allNames:["cn","zhōngguó","zhongguo","zhonghua","people's republic of china","中华人民共和国","zhōnghuá rénmín gònghéguó","china","chn"],id:"CHN"},{officialName:"Christmas Island",allNames:["cx","territory of christmas island","christmas island","cxr"],id:"CXR"},{officialName:"Cocos (Keeling) Islands",allNames:["cc","territoryof the cocos (keeling) islands","keeling islands","cocos (keeling) islands","cck","cocos islands","cocos [keeling] islands"],id:"CCK"},{officialName:"Colombia",allNames:["co","republic of colombia","república de colombia","colombia","col"],id:"COL"},{officialName:"Comoros",allNames:["km","union of the comoros","union des comores","udzima wa komori","al-ittiḥād al-qumurī","comoros","com"],id:"COM"},{officialName:"Cook Islands",allNames:["ck","kūki 'āirani","cook islands","cok"],id:"COK"},{officialName:"Costa Rica",allNames:["cr","republic of costa rica","república de costa rica","costa rica","cri"],id:"CRI"},{officialName:"Croatia",allNames:["hr","hrvatska","republic of croatia","republika hrvatska","croatia","hrv","croatia, republic of","croatia democratic republic of the"],id:"HRV"},{officialName:"Cuba",allNames:["cu","republic of cuba","república de cuba","cuba","cub"],id:"CUB"},{id:"CUW",officialName:"Curaçao",allNames:["cw","cuw","curaçao","curacao"]},{officialName:"Cyprus",allNames:["cy","kýpros","kıbrıs","republic of cyprus","κυπριακή δημοκρατία","kıbrıs cumhuriyeti","cyprus","cyp"],id:"CYP"},{officialName:"Czech Republic",allNames:["cz","česká republika","česko","czech republic","cze"],id:"CZE"},{officialName:"Democratic Republic of the Congo",allNames:["cd","dr congo","congo-kinshasa","drc","democratic republic of the congo","cod","congo (kinshasa)","the democratic republic of the congo","congo, the democratic republic of the","congo [drc]","congo, dem. rep."],id:"COD"},{officialName:"Denmark",allNames:["dk","danmark","kingdom of denmark","kongeriget danmark","denmark","dnk"],id:"DNK"},{officialName:"Djibouti",allNames:["dj","jabuuti","gabuuti","republic of djibouti","république de djibouti","gabuutih ummuuno","jamhuuriyadda jabuuti","djibouti","dji"],id:"DJI"},{officialName:"Dominica",allNames:["dm","dominique","wai‘tu kubuli","commonwealth of dominica","dominica","dma"],id:"DMA"},{officialName:"Dominican Republic",allNames:["do","dominican republic","dom"],id:"DOM"},{officialName:"East Timor",allNames:["tl","east timor","democratic republic of timor-leste","república democrática de timor-leste","repúblika demokrátika timór-leste","east timor","tls","timor-leste"],id:"TLS"},{officialName:"Ecuador",allNames:["ec","republic of ecuador","república del ecuador","ecuador","ecu"],id:"ECU"},{officialName:"Egypt",allNames:["eg","arab republic of egypt","egypt","egy"],id:"EGY"},{officialName:"El Salvador",allNames:["sv","republic of el salvador","república de el salvador","el salvador","slv"],id:"SLV"},{officialName:"Equatorial Guinea",allNames:["gq","republic of equatorial guinea","república de guinea ecuatorial","république de guinée équatoriale","república da guiné equatorial","equatorial guinea","gnq"],id:"GNQ"},{officialName:"Eritrea",allNames:["er","state of eritrea","ሃገረ ኤርትራ","dawlatiritriyá","ʾertrā","iritriyā","eritrea","eri"],id:"ERI"},{officialName:"Estonia",allNames:["ee","eesti","republic of estonia","eesti vabariik","estonia","est"],id:"EST"},{officialName:"Ethiopia",allNames:["et","ʾītyōṗṗyā","federal democratic republic of ethiopia","የኢትዮጵያ ፌዴራላዊ ዲሞክራሲያዊ ሪፐብሊክ","ethiopia","eth"],id:"ETH"},{officialName:"Falkland Islands",allNames:["fk","islas malvinas","falkland islands","flk","falkland islands (malvinas)","falkland islands (islas malvinas)","falkland islands [malvinas]","falkland islands [islas malvinas]"],id:"FLK"},{officialName:"Faroe Islands",allNames:["fo","føroyar","færøerne","faroe islands","fro"],id:"FRO"},{officialName:"Federated States of Micronesia",allNames:["fm","federated states of micronesia","federated states of micronesia","fsm","micronesia","federated states of"],id:"FSM"},{officialName:"Fiji",allNames:["fj","viti","republic of fiji","matanitu ko viti","fijī gaṇarājya","fiji","fji"],id:"FJI"},{officialName:"Finland",allNames:["fi","suomi","republic of finland","suomen tasavalta","republiken finland","finland","fin"],id:"FIN"},{officialName:"France",allNames:["fr","french republic","république française","france","fra"],id:"FRA"},{officialName:"French Guiana",allNames:["gf","guiana","guyane","french guiana","guf"],id:"GUF"},{officialName:"French Polynesia",allNames:["pf","polynésie française","french polynesia","pōrīnetia farāni","french polynesia","pyf"],id:"PYF"},{officialName:"French Southern and Antarctic Lands",allNames:["tf","french southern andantarctic lands","atf","french southern territories"],id:"ATF"},{officialName:"Gabon",allNames:["ga","gabonese republic","république gabonaise","gabon","gab","gabon republic"],id:"GAB"},{officialName:"Georgia",allNames:["ge","sakartvelo","georgia","geo"],id:"GEO"},{officialName:"Germany",allNames:["de","federal republic of germany","bundesrepublik deutschland","germany","deu"],id:"DEU"},{officialName:"Ghana",allNames:["gh","ghana","gha"],id:"GHA"},{officialName:"Gibraltar",allNames:["gi","gibraltar","gib"],id:"GIB"},{officialName:"Greece",allNames:["gr","elláda","hellenic republic","ελληνική δημοκρατία","greece","grc"],id:"GRC"},{officialName:"Greenland",allNames:["gl","grønland","greenland","grl"],id:"GRL"},{officialName:"Grenada",allNames:["gd","grenada","grd"],id:"GRD"},{officialName:"Guadeloupe",allNames:["gp","gwadloup","guadeloupe","glp"],id:"GLP"},{officialName:"Guam",allNames:["gu","guåhån","guam","gum"],id:"GUM"},{officialName:"Guatemala",allNames:["gt","guatemala","gtm"],id:"GTM"},{officialName:"Guernsey",allNames:["gg","bailiwick of guernsey","bailliage de guernesey","guernsey","ggy"],id:"GGY"},{officialName:"Guinea",allNames:["gn","republic of guinea","république de guinée","guinea","gin"],id:"GIN"},{officialName:"Guinea-Bissau",allNames:["gw","republic of guinea-bissau","república da guiné-bissau","guinea-bissau","gnb"],id:"GNB"},{officialName:"Guyana",allNames:["gy","co-operative republic of guyana","guyana","guy"],id:"GUY"},{officialName:"Haiti",allNames:["ht","republic of haiti","république d'haïti","repiblik ayiti","haiti","hti"],id:"HTI"},{officialName:"Heard Island and McDonald Islands",allNames:["hm","heard island and mcdonald islands","hmd","heard and mcdonald islands"],id:"HMD"},{officialName:"Honduras",allNames:["hn","republic of honduras","república de honduras","honduras","hnd"],id:"HND"},{officialName:"Hong Kong",allNames:["hk","香港","hongkong","hkg","hong kong","hong kong, china"],id:"HKG"},{officialName:"Hungary",allNames:["hu","hungary","hun"],id:"HUN"},{officialName:"Iceland",allNames:["is","island","republic of iceland","lýðveldið ísland","iceland","isl"],id:"ISL"},{officialName:"India",allNames:["in","bhārat","republic of india","bharat ganrajya","india","ind"],id:"IND"},{officialName:"Indonesia",allNames:["id","republic of indonesia","republik indonesia","indonesia","idn"],id:"IDN"},{officialName:"Iran",allNames:["ir","islamic republic of iran","jomhuri-ye eslāmi-ye irān","iran","irn","islamic republic of"],id:"IRN"},{officialName:"Iraq",allNames:["iq","republic of iraq","jumhūriyyat al-‘irāq","iraq","irq"],id:"IRQ"},{officialName:"Ireland",allNames:["ie","éire","republic of ireland","poblacht na héireann","ireland","irl"],id:"IRL"},{officialName:"Isle of Man",allNames:["im","ellan vannin","mann","mannin","isle of man","imn"],id:"IMN"},{officialName:"Israel",allNames:["il","state of israel","medīnat yisrā'el","israel","isr"],id:"ISR"},{officialName:"Italy",allNames:["it","italian republic","repubblica italiana","italy","ita"],id:"ITA"},{officialName:"Ivory Coast",allNames:["ci","ivory coast","republic of côte d'ivoire","république de côte d'ivoire","ivory coast","civ","côte d'ivoire","cote d'ivoire","cote divoire","cã´te d'ivoire","cote d'lvoire"],id:"CIV"},{officialName:"Jamaica",allNames:["jm","jamaica","jam"],id:"JAM"},{officialName:"Japan",allNames:["jp","nippon","nihon","japan","jpn"],id:"JPN"},{officialName:"Jersey",allNames:["je","bailiwick of jersey","bailliage de jersey","bailliage dé jèrri","jersey","jey"],id:"JEY"},{officialName:"Jordan",allNames:["jo","hashemite kingdomof jordan","al-mamlakah al-urdunīyah al-hāshimīyah","jordan","jor"],id:"JOR"},{officialName:"Kazakhstan",allNames:["kz","qazaqstan","казахстан","republic of kazakhstan","қазақстан республикасы","qazaqstan respublïkası","республика казахстан","respublika kazakhstan","kazakhstan","kaz"],id:"KAZ"},{officialName:"Kenya",allNames:["ke","republic of kenya","jamhuri ya kenya","kenya","ken"],id:"KEN"},{officialName:"Kiribati",allNames:["ki","republic of kiribati","ribaberiki kiribati","kiribati","kir"],id:"KIR"},{officialName:"Kuwait",allNames:["kw","state of kuwait","dawlat al-kuwait","kuwait","kwt"],id:"KWT"},{officialName:"Kyrgyzstan",allNames:["kg","киргизия","kyrgyz republic","кыргыз республикасы","kyrgyz respublikasy","kyrgyzstan","kgz"],id:"KGZ"},{officialName:"Laos",allNames:["la","lao","lao people's democratic republic","sathalanalat paxathipatai paxaxon lao","laos","lao"],id:"LAO"},{officialName:"Latvia",allNames:["lv","republic of latvia","latvijas republika","latvia","lva"],id:"LVA"},{officialName:"Lebanon",allNames:["lb","lebanese republic","al-jumhūrīyah al-libnānīyah","lebanon","lbn"],id:"LBN"},{officialName:"Lesotho",allNames:["ls","kingdom of lesotho","muso oa lesotho","lesotho","lso"],id:"LSO"},{officialName:"Liberia",allNames:["lr","republic of liberia","liberia","lbr"],id:"LBR"},{officialName:"Libya",allNames:["ly","state of libya","dawlat libya","libya","lby"],id:"LBY"},{officialName:"Liechtenstein",allNames:["li","principality of liechtenstein","fürstentum liechtenstein","liechtenstein","lie"],id:"LIE"},{officialName:"Lithuania",allNames:["lt","republic of lithuania","lietuvos respublika","lithuania","ltu"],id:"LTU"},{officialName:"Luxembourg",allNames:["lu","grand duchy of luxembourg","grand-duché de luxembourg","großherzogtum luxemburg","groussherzogtum lëtzebuerg","luxembourg","lux"],id:"LUX"},{officialName:"Macau",allNames:["mo","澳门","macao special administrative region of the people's republic of china","中華人民共和國澳門特別行政區","região administrativa especial de macau da república popular da china","macau","mac","macao","macao, china","macau, china"],id:"MAC"},{officialName:"Madagascar",allNames:["mg","republic of madagascar","repoblikan'i madagasikara","république de madagascar","madagascar","mdg"],id:"MDG"},{officialName:"Malawi",allNames:["mw","republic of malawi","malawi","mwi"],id:"MWI"},{officialName:"Malaysia",allNames:["my","malaysia","mys"],id:"MYS"},{officialName:"Maldives",allNames:["mv","maldive islands","republic of the maldives","dhivehi raajjeyge jumhooriyya","maldives","mdv"],id:"MDV"},{officialName:"Mali",allNames:["ml","republic of mali","république du mali","mali","mli"],id:"MLI"},{officialName:"Malta",allNames:["mt","republic of malta","repubblika ta' malta","malta","mlt"],id:"MLT"},{officialName:"Marshall Islands",allNames:["mh","republic of the marshall islands","aolepān aorōkin m̧ajeļ","marshall islands","mhl"],id:"MHL"},{officialName:"Martinique",allNames:["mq","martinique","mtq"],id:"MTQ"},{officialName:"Mauritania",allNames:["mr","islamic republic of mauritania","al-jumhūriyyah al-ʾislāmiyyah al-mūrītāniyyah","mauritania","mrt"],id:"MRT"},{officialName:"Mauritius",allNames:["mu","republic of mauritius","république de maurice","mauritius","mus"],id:"MUS"},{officialName:"Mayotte",allNames:["yt","department of mayotte","département de mayotte","mayotte","myt"],id:"MYT"},{officialName:"Mexico",allNames:["mx","mexicanos","united mexican states","estados unidos mexicanos","mexico","mex"],id:"MEX"},{officialName:"Moldova",allNames:["md","republic of moldova","republica moldova","moldova","mda","republic of"],id:"MDA"},{officialName:"Monaco",allNames:["mc","principality of monaco","principauté de monaco","monaco","mco"],id:"MCO"},{officialName:"Mongolia",allNames:["mn","mongolia","mng"],id:"MNG"},{id:"MNE",officialName:"Montenegro",allNames:["me","mne","montenegro"]},{officialName:"Montserrat",allNames:["ms","montserrat","msr"],id:"MSR"},{officialName:"Morocco",allNames:["ma","kingdom of morocco","al-mamlakah al-maġribiyah","morocco","mar","morroco"],id:"MAR"},{officialName:"Mozambique",allNames:["mz","republic of mozambique","república de moçambique","mozambique","moz"],id:"MOZ"},{id:"MMR",officialName:"Myanmar",allNames:["mm","mmr","myanmar","myanmar (burma)","myanmar [burma]","burma"]},{officialName:"Namibia",allNames:["na","namibië","republic of namibia","namibia","nam"],id:"NAM"},{officialName:"Nauru",allNames:["nr","naoero","pleasant island","republic of nauru","ripublik naoero","nauru","nru"],id:"NRU"},{officialName:"Nepal",allNames:["np","federal democratic republic of nepal","loktāntrik ganatantra nepāl","nepal","npl"],id:"NPL"},{officialName:"Netherlands",allNames:["nl","holland","nederland","netherlands","nld","the netherlands"],id:"NLD"},{officialName:"New Caledonia",allNames:["nc","new caledonia","ncl"],id:"NCL"},{officialName:"New Zealand",allNames:["nz","aotearoa","new zealand","nzl"],id:"NZL"},{officialName:"Nicaragua",allNames:["ni","republic of nicaragua","república de nicaragua","nicaragua","nic"],id:"NIC"},{officialName:"Niger",allNames:["ne","nijar","republic of niger","république du niger","niger","ner"],id:"NER"},{officialName:"Nigeria",allNames:["ng","nijeriya","naíjíríà","federal republic of nigeria","nigeria","nga"],id:"NGA"},{officialName:"Niue",allNames:["nu","niue","niu"],id:"NIU"},{officialName:"Norfolk Island",allNames:["nf","territory of norfolk island","teratri of norf'k ailen","norfolk island","nfk"],id:"NFK"},{officialName:"North Korea",allNames:["kp","democratic people's republic of korea","조선민주주의인민공화국","chosŏn minjujuŭi inmin konghwaguk","north korea","prk","korea, democratic people's republic of","korea, north"],id:"PRK"},{officialName:"Northern Mariana Islands",allNames:["mp","commonwealth of the northern mariana islands","sankattan siha na islas mariånas","northern mariana islands","mnp"],id:"MNP"},{officialName:"Norway",allNames:["no","norge","noreg","kingdom of norway","kongeriket norge","kongeriket noreg","norway","nor"],id:"NOR"},{officialName:"Oman",allNames:["om","sultanate of oman","salṭanat ʻumān","oman","omn"],id:"OMN"},{officialName:"Pakistan",allNames:["pk","pākistān","islamic republic of pakistan","islāmī jumhūriya'eh pākistān","pakistan","pak"],id:"PAK"},{officialName:"Palau",allNames:["pw","republic of palau","beluuer a belau","palau","plw"],id:"PLW"},{id:"PSE",officialName:"Palestinian Authority",allNames:["ps","pse","palestinian authority","palestinian territory"]},{officialName:"Panama",allNames:["pa","republic of panama","república de panamá","panama","pan"],id:"PAN"},{officialName:"Papua New Guinea",allNames:["pg","independent state of papua new guinea","independen stet bilong papua niugini","papua new guinea","png"],id:"PNG"},{officialName:"Paraguay",allNames:["py","republic of paraguay","república del paraguay","tetã paraguái","paraguay","pry"],id:"PRY"},{officialName:"Peru",allNames:["pe","republic of peru","república del perú","peru","per"],id:"PER"},{officialName:"Philippines",allNames:["ph","republic of the philippines","repúblika ng pilipinas","philippines","phl"],id:"PHL"},{officialName:"Pitcairn Islands",allNames:["pn","pitcairn henderson ducie and oeno islands","pitcairn islands","pcn","pitcairn"],id:"PCN"},{officialName:"Poland",allNames:["pl","republic of poland","rzeczpospolita polska","poland","pol"],id:"POL"},{officialName:"Portugal",allNames:["pt","portuguesa","portuguese republic","república portuguesa","portugal","prt"],id:"PRT"},{officialName:"Puerto Rico",allNames:["pr","commonwealth of puerto rico","estado libre asociado de puerto rico","puerto rico","pri"],id:"PRI"},{officialName:"Qatar",allNames:["qa","state of qatar","dawlat qaṭar","qatar","qat"],id:"QAT"},{officialName:"Republic of Macedonia",allNames:["mk","republic of macedonia","република македонија","republic of macedonia","mkd","macedonia","macedonia (fyrom)","macedonia [fyrom]","the former yugoslav republic of","the former yugoslav republic of macedonia"],id:"MKD"},{officialName:"Republic of the Congo",allNames:["cg","congo-brazzaville","republic of the congo","cog","congo (brazzaville)","congo [republic]","congo","congo, rep."],id:"COG"},{officialName:"Réunion",allNames:["re","reunion","réunion","reu","rã©union"],id:"REU"},{officialName:"Romania",allNames:["ro","rumania","roumania","românia","romania","rou"],id:"ROU"},{officialName:"Russia",allNames:["ru","rossiya","russian federation","российская федерация","rossiyskaya federatsiya","russia","rus"],id:"RUS"},{officialName:"Rwanda",allNames:["rw","republic of rwanda","repubulika y'u rwanda","république du rwanda","rwanda","rwa"],id:"RWA"},{id:"BLM",officialName:"Saint Barthélemy",allNames:["bl","blm","saint barthélemy","saint barthelemy","st barthelemy"]},{officialName:"Saint Helena",allNames:["sh","saint helena","shn","st helena","ascension and tristan da cunha"],id:"SHN"},{officialName:"Saint Kitts and Nevis",allNames:["kn","federation of saint christopher and nevis","saint kitts and nevis","kna","st kitts and nevis","saint kitts-nevis","st kitts-nevis"],id:"KNA"},{officialName:"Saint Lucia",allNames:["lc","saint lucia","lca","st lucia"],id:"LCA"},{officialName:"Saint Pierre and Miquelon",allNames:["pm","collectivité territoriale de saint-pierre-et-miquelon","saint pierre andmiquelon","spm","st pierre and miquelon","saint pierre and miquelon","st. pierre and miquelon"],id:"SPM"},{officialName:"Saint Vincent and the Grenadines",allNames:["vc","saint vincent and the grenadines","vct","st vincent and the grenadines"],id:"VCT"},{officialName:"Samoa",allNames:["ws","independent state of samoa","malo saʻoloto tutoʻatasi o sāmoa","samoa","wsm","western samoa"],id:"WSM"},{officialName:"San Marino",allNames:["sm","republic of san marino","repubblica di san marino","san marino","smr"],id:"SMR"},{officialName:"São Tomé and Príncipe",allNames:["st","democratic republic of são tomé and príncipe","república democrática de são tomé e príncipe","são tomé and príncipe","stp","sao tome and principe","sã£o tomã© and prã­ncipe"],id:"STP"},{officialName:"Saudi Arabia",allNames:["sa","kingdom of saudi arabia","al-mamlakah al-‘arabiyyah as-su‘ūdiyyah","saudi arabia","sau"],id:"SAU"},{officialName:"Senegal",allNames:["sn","republic of senegal","république du sénégal","senegal","sen"],id:"SEN"},{id:"SRB",officialName:"Serbia",allNames:["rs","srb","serbia"]},{officialName:"Seychelles",allNames:["sc","republic of seychelles","repiblik sesel","république des seychelles","seychelles","syc"],id:"SYC"},{officialName:"Sierra Leone",allNames:["sl","republic of sierra leone","sierra leone","sle"],id:"SLE"},{officialName:"Singapore",allNames:["sg","singapura","republik singapura","新加坡共和国","singapore","sgp"],id:"SGP"},{officialName:"Slovakia",allNames:["sk","slovak republic","slovenská republika","slovakia","svk","slovakia (slovak republic)"],id:"SVK"},{officialName:"Slovenia",allNames:["si","republic of slovenia","republika slovenija","slovenia","svn"],id:"SVN"},{officialName:"Solomon Islands",allNames:["sb","solomon islands","slb"],id:"SLB"},{officialName:"Somalia",allNames:["so","aṣ-ṣūmāl","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jumhūriyyat aṣ-ṣūmāl al-fiderāliyya","somalia","som"],id:"SOM"},{officialName:"South Africa",allNames:["za","rsa","suid-afrika","republic of south africa","south africa","zaf"],id:"ZAF"},{officialName:"South Georgia",allNames:["gs","south georgia and the south sandwich islands","south georgia","sgs"],id:"SGS"},{officialName:"South Korea",allNames:["kr","republic of korea","south korea","kor","korea, republic of","korea, south"],id:"KOR"},{officialName:"South Sudan",allNames:["ss","south sudan","ssd"],id:"SSD"},{officialName:"Spain",allNames:["es","kingdom of spain","reino deespaña","spain","esp"],id:"ESP"},{officialName:"Sri Lanka",allNames:["lk","ilaṅkai","democraticsocialist republic of sri lanka","sri lanka","lka"],id:"LKA"},{id:"SXM",officialName:"St Maarten",allNames:["sx","sxm","st maarten","sint maarten","sint maarten (dutch part)","saint-martin (pays-bas)"]},{id:"MAF",officialName:"St Martin (French part)",allNames:["mf","maf","st martin (french part)","saint martin (french part)","saint-martin (france)"]},{officialName:"Sudan",allNames:["sd","republic of the sudan","jumhūrīyat as-sūdān","sudan","sdn"],id:"SDN"},{officialName:"Suriname",allNames:["sr","sarnam","sranangron","republic of suriname","republiek suriname","suriname","sur"],id:"SUR"},{officialName:"Svalbard and Jan Mayen",allNames:["sj","svalbard and jan mayen islands","svalbard and jan mayen","sjm"],id:"SJM"},{officialName:"Swaziland",allNames:["sz","weswatini","swatini","ngwane","kingdom of swaziland","umbuso waseswatini","swaziland","swz"],id:"SWZ"},{officialName:"Sweden",allNames:["se","kingdom of sweden","konungariket sverige","sweden","swe"],id:"SWE"},{officialName:"Switzerland",allNames:["ch","swiss confederation","schweiz","suisse","svizzera","svizra","switzerland","che"],id:"CHE"},{officialName:"Syria",allNames:["sy","syrian arab republic","al-jumhūrīyah al-ʻarabīyah as-sūrīyah","syria","syr"],id:"SYR"},{officialName:"Taiwan",allNames:["tw","táiwān","republic of china","中華民國","zhōnghuá mínguó","taiwan","twn","taiwan, province of china"],id:"TWN"},{officialName:"Tajikistan",allNames:["tj","toçikiston","republic of tajikistan","ҷумҳурии тоҷикистон","çumhuriyi toçikiston","tajikistan","tjk"],id:"TJK"},{officialName:"Tanzania",allNames:["tz","united republic of tanzania","jamhuri ya muungano wa tanzania","tanzania","tza","united republic of"],id:"TZA"},{officialName:"Thailand",allNames:["th","prathet","thai","kingdom of thailand","ราชอาณาจักรไทย","ratcha anachak thai","thailand","tha"],id:"THA"},{officialName:"The Bahamas",allNames:["bs","commonwealth of the bahamas","the bahamas","bhs","bahamas"],id:"BHS"},{officialName:"The Gambia",allNames:["gm","republic of the gambia","the gambia","gmb","gambia"],id:"GMB"},{officialName:"Togo",allNames:["tg","togolese","togolese republic","république togolaise","togo","tgo"],id:"TGO"},{officialName:"Tokelau",allNames:["tk","tokelau","tkl"],id:"TKL"},{officialName:"Tonga",allNames:["to","tonga","ton"],id:"TON"},{officialName:"Trinidad and Tobago",allNames:["tt","republic of trinidad and tobago","trinidad and tobago","tto"],id:"TTO"},{officialName:"Tunisia",allNames:["tn","republic of tunisia","al-jumhūriyyah at-tūnisiyyah","tunisia","tun"],id:"TUN"},{officialName:"Turkey",allNames:["tr","turkiye","republic of turkey","türkiye cumhuriyeti","turkey","tur"],id:"TUR"},{officialName:"Turkmenistan",allNames:["tm","turkmenistan","tkm"],id:"TKM"},{id:"TCA",officialName:"Turks and Caicos Islands",allNames:["tc","tca","turks and caicos islands"]},{officialName:"Tuvalu",allNames:["tv","tuvalu","tuv"],id:"TUV"},{officialName:"Uganda",allNames:["ug","republic of uganda","jamhuri ya uganda","uganda","uga"],id:"UGA"},{officialName:"Ukraine",allNames:["ua","ukrayina","ukraine","ukr"],id:"UKR"},{officialName:"United Arab Emirates",allNames:["ae","uae","united arab emirates","are"],id:"ARE"},{officialName:"United Kingdom",allNames:["gb","uk","great britain","united kingdom","gbr","britain","england"],id:"GBR"},{officialName:"United States",allNames:["us","usa","united states of america","united states","usa"],id:"USA"},{id:"UMI",officialName:"United States Minor Outlying Islands",allNames:["um","umi","united states minor outlying islands"]},{officialName:"Uruguay",allNames:["uy","oriental republic of uruguay","república oriental del uruguay","uruguay","ury"],id:"URY"},{officialName:"Uzbekistan",allNames:["uz","republic of uzbekistan","o‘zbekiston respublikasi","ўзбекистон республикаси","uzbekistan","uzb"],id:"UZB"},{officialName:"Vanuatu",allNames:["vu","republic of vanuatu","ripablik blong vanuatu","république de vanuatu","vanuatu","vut"],id:"VUT"},{id:"VAT",officialName:"Vatican",allNames:["va","vat","vatican","vatican city","vatican city state","holy see (vatican city state)","holy see [vatican city state]"]},{officialName:"Venezuela",allNames:["ve","bolivarian republic of venezuela","república bolivariana de venezuela","venezuela","ven","bolivarian republic of"],id:"VEN"},{officialName:"Vietnam",allNames:["vn","socialist republic of vietnam","cộng hòa xã hội chủ nghĩa việt nam","vietnam","vnm","viet nam"],id:"VNM"},{id:"VGB",officialName:"Virgin Islands",allNames:["vg","vgb","virgin islands","british","british virgin islands","virgin islands (british)"]},{id:"VIR",officialName:"Virgin Islands",allNames:["vi","vir","virgin islands","u.s.","us virgin islands","u.s. virgin islands","virgin islands (u.s.)"]},{officialName:"Wallis and Futuna",allNames:["wf","territory of the wallis and futuna islands","territoire des îles wallis et futuna","wallis and futuna","wlf","wallis and futuna islands"],id:"WLF"},{officialName:"Western Sahara",allNames:["eh","taneẓroft tutrimt","western sahara","esh"],id:"ESH"},{officialName:"Yemen",allNames:["ye","yemeni republic","al-jumhūriyyah al-yamaniyyah","yemen","yem"],id:"YEM"},{officialName:"Zambia",allNames:["zm","republic of zambia","zambia","zmb"],id:"ZMB"},{officialName:"Zimbabwe",allNames:["zw","republic of zimbabwe","zimbabwe","zwe"],id:"ZWE"}],Kj="#d6d9dc",Zj="#FBFAFA";function Qj(e,t,r){return e.reduce((i,a)=>{const o=a.id;let s;if(r==="world"){const u=Xj.find(c=>c.id===o);u?s=t.find(c=>u.allNames.includes(c.geoName.trim().toLowerCase())):s=t.find(c=>c.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase())}else s=t.find(u=>u.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase());return i[o]={geoDataElement:s,style:{color:Kj,weight:1,opacity:1,fillColor:s&&s.color||Zj,fillOpacity:1},displayName:(s==null?void 0:s.geoName)||a.properties.name},i},{})}const Jj=Gj.CRS,eW=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const{themeSettings:i}=gt(),a=k.useRef(null),o=k.useRef(null),[s]=k.useState(wi.layerGroup()),u=k.useMemo(()=>Qj(e.features,t,n),[e,t,n]);return k.useEffect(()=>{a.current&&!o.current&&(o.current=iW(a.current,n),s.addTo(o.current))},[s,n]),k.useEffect(()=>{const c=wi.geoJSON(aW(e,u),{style:d=>u[d.id].style,onEachFeature:(d,h)=>{h.bindTooltip(nW(d,u,r.originalValueTitle),{sticky:!0}),h.on({mouseover:p=>{const m=p.target;tW(m,d.id,u)},mouseout:p=>{const m=p.target;rW(m,d.id,u)}}),r.onAreaClick&&h.on({click:p=>{const m=u[d.id].geoDataElement;m&&r.onAreaClick(m,p.originalEvent)}})}});o.current&&(s.clearLayers(),s.addLayer(c),o.current.fitBounds(c.getBounds(),FM(i)))},[r,u,e,s,i]),w.jsx("div",{ref:a,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function tW(e,t,r){if(r[t]){const i=r[t].style.fillColor;e.setStyle({weight:2,color:w.scaleBrightness(i,-.2),fillColor:w.scaleBrightness(i,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function rW(e,t,r){e.setStyle(r[t].style)}function nW(e,t,r){const n=t[e.id],{formattedOriginalValue:i}=n.geoDataElement||{};return`
218
- <div>
219
- <span>${n.displayName}<span>
220
- ${n.geoDataElement&&i!==void 0?`<br/>${r}: <span>${i}<span>`:""}
221
- </div>`}function iW(e,t){return t==="world"?wi.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):wi.map(e,{crs:new Jj("EPSG:5070","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",{resolutions:[16384,10240,8192,4096]}),center:[35.96852047262865,-96.96520768859223],zoom:.4,maxZoom:3,attributionControl:!1})}function aW(e,t){if(t.ATA&&t.ATA.geoDataElement)return e;{const r=e.features.filter(n=>n.id!=="ATA");return B(M({},e),{features:r})}}var oW="[object Date]";function sW(e){return D.isObjectLike(e)&&D.baseGetTag(e)==oW}var n2=D.nodeUtil&&D.nodeUtil.isDate,lW=n2?D.baseUnary(n2):sW,R0={exports:{}},$M={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($M);var Bt=$M.exports,O0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a]);return n}e.exports=t.default})(O0,O0.exports);var uW=O0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(uW);function i(a){return(0,n.default)({},a)}e.exports=t.default})(R0,R0.exports);var cW=R0.exports;const dW=w.getDefaultExportFromCjs(cW);var k0={exports:{}},D0={exports:{}},N0={exports:{}},BM={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(BM);var HM=BM.exports,I0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(i.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+i.length+" present")}e.exports=t.default})(I0,I0.exports);var Ir=I0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(HM),i=r(Ir);function a(o){return(0,i.default)(1,arguments),o instanceof Date||(0,n.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}e.exports=t.default})(N0,N0.exports);var hW=N0.exports,L0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(HM),i=r(Ir);function a(o){(0,i.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,n.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(L0,L0.exports);var oi=L0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(hW),i=r(oi),a=r(Ir);function o(s){if((0,a.default)(1,arguments),!(0,n.default)(s)&&typeof s!="number")return!1;var u=(0,i.default)(s);return!isNaN(Number(u))}e.exports=t.default})(D0,D0.exports);var fW=D0.exports,F0={exports:{}},$0={exports:{}},B0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var i=Number(n);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(B0,B0.exports);var Ga=B0.exports;const pW=w.getDefaultExportFromCjs(Ga);(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ga),i=r(oi),a=r(Ir);function o(s,u){(0,a.default)(2,arguments);var c=(0,i.default)(s).getTime(),d=(0,n.default)(u);return new Date(c+d)}e.exports=t.default})($0,$0.exports);var mW=$0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(mW),i=r(Ir),a=r(Ga);function o(s,u){(0,i.default)(2,arguments);var c=(0,a.default)(u);return(0,n.default)(s,-c)}e.exports=t.default})(F0,F0.exports);var gW=F0.exports,H0={exports:{}},z0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(oi),i=r(Ir),a=864e5;function o(s){(0,i.default)(1,arguments);var u=(0,n.default)(s),c=u.getTime();u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0);var d=u.getTime(),h=c-d;return Math.floor(h/a)+1}e.exports=t.default})(z0,z0.exports);var vW=z0.exports,j0={exports:{}},W0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(oi),i=r(Ir);function a(o){(0,i.default)(1,arguments);var s=1,u=(0,n.default)(o),c=u.getUTCDay(),d=(c<s?7:0)+c-s;return u.setUTCDate(u.getUTCDate()-d),u.setUTCHours(0,0,0,0),u}e.exports=t.default})(W0,W0.exports);var Ly=W0.exports,U0={exports:{}},V0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(oi),i=r(Ir),a=r(Ly);function o(s){(0,i.default)(1,arguments);var u=(0,n.default)(s),c=u.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(c+1,0,4),d.setUTCHours(0,0,0,0);var h=(0,a.default)(d),p=new Date(0);p.setUTCFullYear(c,0,4),p.setUTCHours(0,0,0,0);var m=(0,a.default)(p);return u.getTime()>=h.getTime()?c+1:u.getTime()>=m.getTime()?c:c-1}e.exports=t.default})(V0,V0.exports);var zM=V0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(zM),i=r(Ly),a=r(Ir);function o(s){(0,a.default)(1,arguments);var u=(0,n.default)(s),c=new Date(0);c.setUTCFullYear(u,0,4),c.setUTCHours(0,0,0,0);var d=(0,i.default)(c);return d}e.exports=t.default})(U0,U0.exports);var yW=U0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(oi),i=r(Ly),a=r(yW),o=r(Ir),s=6048e5;function u(c){(0,o.default)(1,arguments);var d=(0,n.default)(c),h=(0,i.default)(d).getTime()-(0,a.default)(d).getTime();return Math.round(h/s)+1}e.exports=t.default})(j0,j0.exports);var bW=j0.exports,G0={exports:{}},q0={exports:{}},qa={};Object.defineProperty(qa,"__esModule",{value:!0});qa.getDefaultOptions=_W;qa.setDefaultOptions=wW;var jM={};function _W(){return jM}function wW(e){jM=e}(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(oi),i=r(Ir),a=r(Ga),o=qa;function s(u,c){var d,h,p,m,v,g,b,C;(0,i.default)(1,arguments);var x=(0,o.getDefaultOptions)(),E=(0,a.default)((d=(h=(p=(m=c==null?void 0:c.weekStartsOn)!==null&&m!==void 0?m:c==null||(v=c.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&p!==void 0?p:x.weekStartsOn)!==null&&h!==void 0?h:(b=x.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&d!==void 0?d:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=(0,n.default)(u),A=T.getUTCDay(),R=(A<E?7:0)+A-E;return T.setUTCDate(T.getUTCDate()-R),T.setUTCHours(0,0,0,0),T}e.exports=t.default})(q0,q0.exports);var Fy=q0.exports,Y0={exports:{}},X0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(oi),i=r(Ir),a=r(Fy),o=r(Ga),s=qa;function u(c,d){var h,p,m,v,g,b,C,x;(0,i.default)(1,arguments);var E=(0,n.default)(c),T=E.getUTCFullYear(),A=(0,s.getDefaultOptions)(),R=(0,o.default)((h=(p=(m=(v=d==null?void 0:d.firstWeekContainsDate)!==null&&v!==void 0?v:d==null||(g=d.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&m!==void 0?m:A.firstWeekContainsDate)!==null&&p!==void 0?p:(C=A.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&h!==void 0?h:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=new Date(0);N.setUTCFullYear(T+1,0,R),N.setUTCHours(0,0,0,0);var I=(0,a.default)(N,d),H=new Date(0);H.setUTCFullYear(T,0,R),H.setUTCHours(0,0,0,0);var G=(0,a.default)(H,d);return E.getTime()>=I.getTime()?T+1:E.getTime()>=G.getTime()?T:T-1}e.exports=t.default})(X0,X0.exports);var WM=X0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(WM),i=r(Ir),a=r(Fy),o=r(Ga),s=qa;function u(c,d){var h,p,m,v,g,b,C,x;(0,i.default)(1,arguments);var E=(0,s.getDefaultOptions)(),T=(0,o.default)((h=(p=(m=(v=d==null?void 0:d.firstWeekContainsDate)!==null&&v!==void 0?v:d==null||(g=d.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&m!==void 0?m:E.firstWeekContainsDate)!==null&&p!==void 0?p:(C=E.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&h!==void 0?h:1),A=(0,n.default)(c,d),R=new Date(0);R.setUTCFullYear(A,0,T),R.setUTCHours(0,0,0,0);var N=(0,a.default)(R,d);return N}e.exports=t.default})(Y0,Y0.exports);var CW=Y0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(oi),i=r(Fy),a=r(CW),o=r(Ir),s=6048e5;function u(c,d){(0,o.default)(1,arguments);var h=(0,n.default)(c),p=(0,i.default)(h,d).getTime()-(0,a.default)(h,d).getTime();return Math.round(p/s)+1}e.exports=t.default})(G0,G0.exports);var xW=G0.exports,K0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){for(var a=n<0?"-":"",o=Math.abs(n).toString();o.length<i;)o="0"+o;return a+o}e.exports=t.default})(K0,K0.exports);var UM=K0.exports,Z0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(UM),i={y:function(s,u){var c=s.getUTCFullYear(),d=c>0?c:1-c;return(0,n.default)(u==="yy"?d%100:d,u.length)},M:function(s,u){var c=s.getUTCMonth();return u==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(s,u){return(0,n.default)(s.getUTCDate(),u.length)},a:function(s,u){var c=s.getUTCHours()/12>=1?"pm":"am";switch(u){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(s,u){return(0,n.default)(s.getUTCHours()%12||12,u.length)},H:function(s,u){return(0,n.default)(s.getUTCHours(),u.length)},m:function(s,u){return(0,n.default)(s.getUTCMinutes(),u.length)},s:function(s,u){return(0,n.default)(s.getUTCSeconds(),u.length)},S:function(s,u){var c=u.length,d=s.getUTCMilliseconds(),h=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(h,u.length)}},a=i;t.default=a,e.exports=t.default})(Z0,Z0.exports);var TW=Z0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(vW),i=r(bW),a=r(zM),o=r(xW),s=r(WM),u=r(UM),c=r(TW),d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h={G:function(C,x,E){var T=C.getUTCFullYear()>0?1:0;switch(x){case"G":case"GG":case"GGG":return E.era(T,{width:"abbreviated"});case"GGGGG":return E.era(T,{width:"narrow"});case"GGGG":default:return E.era(T,{width:"wide"})}},y:function(C,x,E){if(x==="yo"){var T=C.getUTCFullYear(),A=T>0?T:1-T;return E.ordinalNumber(A,{unit:"year"})}return c.default.y(C,x)},Y:function(C,x,E,T){var A=(0,s.default)(C,T),R=A>0?A:1-A;if(x==="YY"){var N=R%100;return(0,u.default)(N,2)}return x==="Yo"?E.ordinalNumber(R,{unit:"year"}):(0,u.default)(R,x.length)},R:function(C,x){var E=(0,a.default)(C);return(0,u.default)(E,x.length)},u:function(C,x){var E=C.getUTCFullYear();return(0,u.default)(E,x.length)},Q:function(C,x,E){var T=Math.ceil((C.getUTCMonth()+1)/3);switch(x){case"Q":return String(T);case"QQ":return(0,u.default)(T,2);case"Qo":return E.ordinalNumber(T,{unit:"quarter"});case"QQQ":return E.quarter(T,{width:"abbreviated",context:"formatting"});case"QQQQQ":return E.quarter(T,{width:"narrow",context:"formatting"});case"QQQQ":default:return E.quarter(T,{width:"wide",context:"formatting"})}},q:function(C,x,E){var T=Math.ceil((C.getUTCMonth()+1)/3);switch(x){case"q":return String(T);case"qq":return(0,u.default)(T,2);case"qo":return E.ordinalNumber(T,{unit:"quarter"});case"qqq":return E.quarter(T,{width:"abbreviated",context:"standalone"});case"qqqqq":return E.quarter(T,{width:"narrow",context:"standalone"});case"qqqq":default:return E.quarter(T,{width:"wide",context:"standalone"})}},M:function(C,x,E){var T=C.getUTCMonth();switch(x){case"M":case"MM":return c.default.M(C,x);case"Mo":return E.ordinalNumber(T+1,{unit:"month"});case"MMM":return E.month(T,{width:"abbreviated",context:"formatting"});case"MMMMM":return E.month(T,{width:"narrow",context:"formatting"});case"MMMM":default:return E.month(T,{width:"wide",context:"formatting"})}},L:function(C,x,E){var T=C.getUTCMonth();switch(x){case"L":return String(T+1);case"LL":return(0,u.default)(T+1,2);case"Lo":return E.ordinalNumber(T+1,{unit:"month"});case"LLL":return E.month(T,{width:"abbreviated",context:"standalone"});case"LLLLL":return E.month(T,{width:"narrow",context:"standalone"});case"LLLL":default:return E.month(T,{width:"wide",context:"standalone"})}},w:function(C,x,E,T){var A=(0,o.default)(C,T);return x==="wo"?E.ordinalNumber(A,{unit:"week"}):(0,u.default)(A,x.length)},I:function(C,x,E){var T=(0,i.default)(C);return x==="Io"?E.ordinalNumber(T,{unit:"week"}):(0,u.default)(T,x.length)},d:function(C,x,E){return x==="do"?E.ordinalNumber(C.getUTCDate(),{unit:"date"}):c.default.d(C,x)},D:function(C,x,E){var T=(0,n.default)(C);return x==="Do"?E.ordinalNumber(T,{unit:"dayOfYear"}):(0,u.default)(T,x.length)},E:function(C,x,E){var T=C.getUTCDay();switch(x){case"E":case"EE":case"EEE":return E.day(T,{width:"abbreviated",context:"formatting"});case"EEEEE":return E.day(T,{width:"narrow",context:"formatting"});case"EEEEEE":return E.day(T,{width:"short",context:"formatting"});case"EEEE":default:return E.day(T,{width:"wide",context:"formatting"})}},e:function(C,x,E,T){var A=C.getUTCDay(),R=(A-T.weekStartsOn+8)%7||7;switch(x){case"e":return String(R);case"ee":return(0,u.default)(R,2);case"eo":return E.ordinalNumber(R,{unit:"day"});case"eee":return E.day(A,{width:"abbreviated",context:"formatting"});case"eeeee":return E.day(A,{width:"narrow",context:"formatting"});case"eeeeee":return E.day(A,{width:"short",context:"formatting"});case"eeee":default:return E.day(A,{width:"wide",context:"formatting"})}},c:function(C,x,E,T){var A=C.getUTCDay(),R=(A-T.weekStartsOn+8)%7||7;switch(x){case"c":return String(R);case"cc":return(0,u.default)(R,x.length);case"co":return E.ordinalNumber(R,{unit:"day"});case"ccc":return E.day(A,{width:"abbreviated",context:"standalone"});case"ccccc":return E.day(A,{width:"narrow",context:"standalone"});case"cccccc":return E.day(A,{width:"short",context:"standalone"});case"cccc":default:return E.day(A,{width:"wide",context:"standalone"})}},i:function(C,x,E){var T=C.getUTCDay(),A=T===0?7:T;switch(x){case"i":return String(A);case"ii":return(0,u.default)(A,x.length);case"io":return E.ordinalNumber(A,{unit:"day"});case"iii":return E.day(T,{width:"abbreviated",context:"formatting"});case"iiiii":return E.day(T,{width:"narrow",context:"formatting"});case"iiiiii":return E.day(T,{width:"short",context:"formatting"});case"iiii":default:return E.day(T,{width:"wide",context:"formatting"})}},a:function(C,x,E){var T=C.getUTCHours(),A=T/12>=1?"pm":"am";switch(x){case"a":case"aa":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"aaa":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return E.dayPeriod(A,{width:"narrow",context:"formatting"});case"aaaa":default:return E.dayPeriod(A,{width:"wide",context:"formatting"})}},b:function(C,x,E){var T=C.getUTCHours(),A;switch(T===12?A=d.noon:T===0?A=d.midnight:A=T/12>=1?"pm":"am",x){case"b":case"bb":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"bbb":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return E.dayPeriod(A,{width:"narrow",context:"formatting"});case"bbbb":default:return E.dayPeriod(A,{width:"wide",context:"formatting"})}},B:function(C,x,E){var T=C.getUTCHours(),A;switch(T>=17?A=d.evening:T>=12?A=d.afternoon:T>=4?A=d.morning:A=d.night,x){case"B":case"BB":case"BBB":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"BBBBB":return E.dayPeriod(A,{width:"narrow",context:"formatting"});case"BBBB":default:return E.dayPeriod(A,{width:"wide",context:"formatting"})}},h:function(C,x,E){if(x==="ho"){var T=C.getUTCHours()%12;return T===0&&(T=12),E.ordinalNumber(T,{unit:"hour"})}return c.default.h(C,x)},H:function(C,x,E){return x==="Ho"?E.ordinalNumber(C.getUTCHours(),{unit:"hour"}):c.default.H(C,x)},K:function(C,x,E){var T=C.getUTCHours()%12;return x==="Ko"?E.ordinalNumber(T,{unit:"hour"}):(0,u.default)(T,x.length)},k:function(C,x,E){var T=C.getUTCHours();return T===0&&(T=24),x==="ko"?E.ordinalNumber(T,{unit:"hour"}):(0,u.default)(T,x.length)},m:function(C,x,E){return x==="mo"?E.ordinalNumber(C.getUTCMinutes(),{unit:"minute"}):c.default.m(C,x)},s:function(C,x,E){return x==="so"?E.ordinalNumber(C.getUTCSeconds(),{unit:"second"}):c.default.s(C,x)},S:function(C,x){return c.default.S(C,x)},X:function(C,x,E,T){var A=T._originalDate||C,R=A.getTimezoneOffset();if(R===0)return"Z";switch(x){case"X":return m(R);case"XXXX":case"XX":return v(R);case"XXXXX":case"XXX":default:return v(R,":")}},x:function(C,x,E,T){var A=T._originalDate||C,R=A.getTimezoneOffset();switch(x){case"x":return m(R);case"xxxx":case"xx":return v(R);case"xxxxx":case"xxx":default:return v(R,":")}},O:function(C,x,E,T){var A=T._originalDate||C,R=A.getTimezoneOffset();switch(x){case"O":case"OO":case"OOO":return"GMT"+p(R,":");case"OOOO":default:return"GMT"+v(R,":")}},z:function(C,x,E,T){var A=T._originalDate||C,R=A.getTimezoneOffset();switch(x){case"z":case"zz":case"zzz":return"GMT"+p(R,":");case"zzzz":default:return"GMT"+v(R,":")}},t:function(C,x,E,T){var A=T._originalDate||C,R=Math.floor(A.getTime()/1e3);return(0,u.default)(R,x.length)},T:function(C,x,E,T){var A=T._originalDate||C,R=A.getTime();return(0,u.default)(R,x.length)}};function p(b,C){var x=b>0?"-":"+",E=Math.abs(b),T=Math.floor(E/60),A=E%60;if(A===0)return x+String(T);var R=C;return x+String(T)+R+(0,u.default)(A,2)}function m(b,C){if(b%60===0){var x=b>0?"-":"+";return x+(0,u.default)(Math.abs(b)/60,2)}return v(b,C)}function v(b,C){var x=C||"",E=b>0?"-":"+",T=Math.abs(b),A=(0,u.default)(Math.floor(T/60),2),R=(0,u.default)(T%60,2);return E+A+x+R}var g=h;t.default=g,e.exports=t.default})(H0,H0.exports);var SW=H0.exports,Q0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,c){switch(u){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},n=function(u,c){switch(u){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},i=function(u,c){var d=u.match(/(P+)(p+)?/)||[],h=d[1],p=d[2];if(!p)return r(u,c);var m;switch(h){case"P":m=c.dateTime({width:"short"});break;case"PP":m=c.dateTime({width:"medium"});break;case"PPP":m=c.dateTime({width:"long"});break;case"PPPP":default:m=c.dateTime({width:"full"});break}return m.replace("{{date}}",r(h,c)).replace("{{time}}",n(p,c))},a={p:n,P:i},o=a;t.default=o,e.exports=t.default})(Q0,Q0.exports);var EW=Q0.exports,J0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var i=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return i.setUTCFullYear(n.getFullYear()),n.getTime()-i.getTime()}e.exports=t.default})(J0,J0.exports);var VM=J0.exports;const i2=w.getDefaultExportFromCjs(VM);var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.isProtectedDayOfYearToken=PW;Fu.isProtectedWeekYearToken=RW;Fu.throwProtectedError=OW;var MW=["D","DD"],AW=["YY","YYYY"];function PW(e){return MW.indexOf(e)!==-1}function RW(e){return AW.indexOf(e)!==-1}function OW(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var eg={exports:{}},tg={exports:{}},rg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(o,s,u){var c,d=r[o];return typeof d=="string"?c=d:s===1?c=d.one:c=d.other.replace("{{count}}",s.toString()),u!=null&&u.addSuffix?u.comparison&&u.comparison>0?"in "+c:c+" ago":c},i=n;t.default=i,e.exports=t.default})(rg,rg.exports);var kW=rg.exports,ng={exports:{}},ig={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.width?String(i.width):n.defaultWidth,o=n.formats[a]||n.formats[n.defaultWidth];return o}}e.exports=t.default})(ig,ig.exports);var DW=ig.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(DW),i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,n.default)({formats:i,defaultWidth:"full"}),time:(0,n.default)({formats:a,defaultWidth:"full"}),dateTime:(0,n.default)({formats:o,defaultWidth:"full"})},u=s;t.default=u,e.exports=t.default})(ng,ng.exports);var NW=ng.exports,ag={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(o,s,u,c){return r[o]},i=n;t.default=i,e.exports=t.default})(ag,ag.exports);var IW=ag.exports,og={exports:{}},sg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(i,a){var o=a!=null&&a.context?String(a.context):"standalone",s;if(o==="formatting"&&n.formattingValues){var u=n.defaultFormattingWidth||n.defaultWidth,c=a!=null&&a.width?String(a.width):u;s=n.formattingValues[c]||n.formattingValues[u]}else{var d=n.defaultWidth,h=a!=null&&a.width?String(a.width):n.defaultWidth;s=n.values[h]||n.values[d]}var p=n.argumentCallback?n.argumentCallback(i):i;return s[p]}}e.exports=t.default})(sg,sg.exports);var LW=sg.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(LW),i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(v,g){var b=Number(v),C=b%100;if(C>20||C<10)switch(C%10){case 1:return b+"st";case 2:return b+"nd";case 3:return b+"rd"}return b+"th"},h={ordinalNumber:d,era:(0,n.default)({values:i,defaultWidth:"wide"}),quarter:(0,n.default)({values:a,defaultWidth:"wide",argumentCallback:function(v){return v-1}}),month:(0,n.default)({values:o,defaultWidth:"wide"}),day:(0,n.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:u,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},p=h;t.default=p,e.exports=t.default})(og,og.exports);var FW=og.exports,lg={exports:{}},ug={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.width,c=u&&a.matchPatterns[u]||a.matchPatterns[a.defaultMatchWidth],d=o.match(c);if(!d)return null;var h=d[0],p=u&&a.parsePatterns[u]||a.parsePatterns[a.defaultParseWidth],m=Array.isArray(p)?i(p,function(b){return b.test(h)}):n(p,function(b){return b.test(h)}),v;v=a.valueCallback?a.valueCallback(m):m,v=s.valueCallback?s.valueCallback(v):v;var g=o.slice(h.length);return{value:v,rest:g}}}function n(a,o){for(var s in a)if(a.hasOwnProperty(s)&&o(a[s]))return s}function i(a,o){for(var s=0;s<a.length;s++)if(o(a[s]))return s}e.exports=t.default})(ug,ug.exports);var $W=ug.exports,cg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.match(n.matchPattern);if(!o)return null;var s=o[0],u=i.match(n.parsePattern);if(!u)return null;var c=n.valueCallback?n.valueCallback(u[0]):u[0];c=a.valueCallback?a.valueCallback(c):c;var d=i.slice(s.length);return{value:c,rest:d}}}e.exports=t.default})(cg,cg.exports);var BW=cg.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r($W),i=r(BW),a=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},u={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},h={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},m={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},b={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},C={ordinalNumber:(0,i.default)({matchPattern:a,parsePattern:o,valueCallback:function(T){return parseInt(T,10)}}),era:(0,n.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(T){return T+1}}),month:(0,n.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:b,defaultParseWidth:"any"})},x=C;t.default=x,e.exports=t.default})(lg,lg.exports);var HW=lg.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(kW),i=r(NW),a=r(IW),o=r(FW),s=r(HW),u={code:"en-US",formatDistance:n.default,formatLong:i.default,formatRelative:a.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=u;t.default=c,e.exports=t.default})(tg,tg.exports);var zW=tg.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(zW),i=n.default;t.default=i,e.exports=t.default})(eg,eg.exports);var jW=eg.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=E;var n=r(fW),i=r(gW),a=r(oi),o=r(SW),s=r(EW),u=r(VM),c=Fu,d=r(Ga),h=r(Ir),p=qa,m=r(jW),v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b=/^'([^]*?)'?$/,C=/''/g,x=/[a-zA-Z]/;function E(A,R,N){var I,H,G,Y,O,F,X,W,V,z,q,ee,j,K,ie,ne,re,oe;(0,h.default)(2,arguments);var se=String(R),de=(0,p.getDefaultOptions)(),ce=(I=(H=N==null?void 0:N.locale)!==null&&H!==void 0?H:de.locale)!==null&&I!==void 0?I:m.default,ge=(0,d.default)((G=(Y=(O=(F=N==null?void 0:N.firstWeekContainsDate)!==null&&F!==void 0?F:N==null||(X=N.locale)===null||X===void 0||(W=X.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&O!==void 0?O:de.firstWeekContainsDate)!==null&&Y!==void 0?Y:(V=de.locale)===null||V===void 0||(z=V.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&G!==void 0?G:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Se=(0,d.default)((q=(ee=(j=(K=N==null?void 0:N.weekStartsOn)!==null&&K!==void 0?K:N==null||(ie=N.locale)===null||ie===void 0||(ne=ie.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&j!==void 0?j:de.weekStartsOn)!==null&&ee!==void 0?ee:(re=de.locale)===null||re===void 0||(oe=re.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&q!==void 0?q:0);if(!(Se>=0&&Se<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ce.localize)throw new RangeError("locale must contain localize property");if(!ce.formatLong)throw new RangeError("locale must contain formatLong property");var ye=(0,a.default)(A);if(!(0,n.default)(ye))throw new RangeError("Invalid time value");var J=(0,u.default)(ye),_e=(0,i.default)(ye,J),ve={firstWeekContainsDate:ge,weekStartsOn:Se,locale:ce,_originalDate:ye},Ae=se.match(g).map(function(Ie){var Ue=Ie[0];if(Ue==="p"||Ue==="P"){var Ve=s.default[Ue];return Ve(Ie,ce.formatLong)}return Ie}).join("").match(v).map(function(Ie){if(Ie==="''")return"'";var Ue=Ie[0];if(Ue==="'")return T(Ie);var Ve=o.default[Ue];if(Ve)return!(N!=null&&N.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(Ie)&&(0,c.throwProtectedError)(Ie,R,String(A)),!(N!=null&&N.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(Ie)&&(0,c.throwProtectedError)(Ie,R,String(A)),Ve(_e,Ie,ce.localize,ve);if(Ue.match(x))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ue+"`");return Ie}).join("");return Ae}function T(A){var R=A.match(b);return R?R[1].replace(C,"'"):A}e.exports=t.default})(k0,k0.exports);var WW=k0.exports;const UW=w.getDefaultExportFromCjs(WW);function a2(e,t,r){var n=qW(e,r.timeZone,r.locale);return n.formatToParts?VW(n,t):GW(n,t)}function VW(e,t){for(var r=e.formatToParts(t),n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function GW(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function qW(e,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function YW(e,t){var r=QW(t);return r.formatToParts?KW(r,e):ZW(r,e)}var XW={year:0,month:1,day:2,hour:3,minute:4,second:5};function KW(e,t){try{for(var r=e.formatToParts(t),n=[],i=0;i<r.length;i++){var a=XW[r[i].type];a>=0&&(n[a]=parseInt(r[i].value,10))}return n}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function ZW(e,t){var r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var cm={};function QW(e){if(!cm[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";cm[e]=r?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return cm[e]}function GM(e,t,r,n,i,a,o){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,i,a,o),s}var o2=36e5,JW=6e4,dm={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function $y(e,t,r){var n,i;if(!e||(n=dm.timezoneZ.exec(e),n))return 0;var a;if(n=dm.timezoneHH.exec(e),n)return a=parseInt(n[1],10),s2(a)?-(a*o2):NaN;if(n=dm.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return s2(a,o)?(i=Math.abs(a)*o2+o*JW,n[1]==="+"?-i:i):NaN}if(rU(e)){t=new Date(t||Date.now());var s=r?t:eU(t),u=dg(s,e),c=r?u:tU(t,u,e);return-c}return NaN}function eU(e){return GM(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function dg(e,t){var r=YW(e,t),n=GM(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),i=e.getTime(),a=i%1e3;return i-=a>=0?a:1e3+a,n-i}function tU(e,t,r){var n=e.getTime(),i=n-t,a=dg(new Date(i),r);if(t===a)return t;i-=a-t;var o=dg(new Date(i),r);return a===o?a:Math.max(a,o)}function s2(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var l2={};function rU(e){if(l2[e])return!0;try{return l2[e]=!0,!0}catch(t){return!1}}var nU=60*1e3,iU={X:function(e,t,r,n){var i=hm(n.timeZone,e);if(i===0)return"Z";switch(t){case"X":return u2(i);case"XXXX":case"XX":return Ro(i);case"XXXXX":case"XXX":default:return Ro(i,":")}},x:function(e,t,r,n){var i=hm(n.timeZone,e);switch(t){case"x":return u2(i);case"xxxx":case"xx":return Ro(i);case"xxxxx":case"xxx":default:return Ro(i,":")}},O:function(e,t,r,n){var i=hm(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+aU(i,":");case"OOOO":default:return"GMT"+Ro(i,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return a2("short",e,n);case"zzzz":default:return a2("long",e,n)}}};function hm(e,t){var r=e?$y(e,t,!0)/nU:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function Kd(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function Ro(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),a=Kd(Math.floor(i/60),2),o=Kd(Math.floor(i%60),2);return n+a+r+o}function u2(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Kd(Math.abs(e)/60,2)}return Ro(e,t)}function aU(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var o=t;return r+String(i)+o+Kd(a,2)}var oU=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,fm=36e5,c2=6e4,sU=2,Or={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:oU};function qM(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?sU:pW(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=lU(e),a=uU(i.date,n),o=a.year,s=a.restDateString,u=cU(s,o);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),d=0,h;if(i.time&&(d=dU(i.time),isNaN(d)))return new Date(NaN);if(i.timeZone||r.timeZone){if(h=$y(i.timeZone||r.timeZone,new Date(c+d)),isNaN(h))return new Date(NaN)}else h=i2(new Date(c+d)),h=i2(new Date(c+d+h));return new Date(c+d+h)}else return new Date(NaN)}function lU(e){var t={},r=Or.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=Or.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var i=Or.timeZone.exec(n);i?(t.time=n.replace(i[1],""),t.timeZone=i[1].trim()):t.time=n}return t}function uU(e,t){var r=Or.YYY[t],n=Or.YYYYY[t],i;if(i=Or.YYYY.exec(e)||n.exec(e),i){var a=i[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(i=Or.YY.exec(e)||r.exec(e),i){var o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function cU(e,t){if(t===null)return null;var r,n,i,a;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=Or.MM.exec(e),r)return n=new Date(0),i=parseInt(r[1],10)-1,h2(t,i)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(r=Or.DDD.exec(e),r){n=new Date(0);var o=parseInt(r[1],10);return pU(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(r=Or.MMDD.exec(e),r){n=new Date(0),i=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return h2(t,i,s)?(n.setUTCFullYear(t,i,s),n):new Date(NaN)}if(r=Or.Www.exec(e),r)return a=parseInt(r[1],10)-1,f2(t,a)?d2(t,a):new Date(NaN);if(r=Or.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return f2(t,a,u)?d2(t,a,u):new Date(NaN)}return null}function dU(e){var t,r,n;if(t=Or.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),pm(r)?r%24*fm:NaN;if(t=Or.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),pm(r,n)?r%24*fm+n*c2:NaN;if(t=Or.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return pm(r,n,i)?r%24*fm+n*c2+i*1e3:NaN}return null}function d2(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=t*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var hU=[31,28,31,30,31,30,31,31,30,31,30,31],fU=[31,29,31,30,31,30,31,31,30,31,30,31];function YM(e){return e%400===0||e%4===0&&e%100!==0}function h2(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=YM(e);if(n&&r>fU[t]||!n&&r>hU[t])return!1}return!0}function pU(e,t){if(t<1)return!1;var r=YM(e);return!(r&&t>366||!r&&t>365)}function f2(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function pm(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var mU=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function gU(e,t,r){var n=String(t),i=r||{},a=n.match(mU);if(a){var o=qM(i.originalDate||e,i);n=a.reduce(function(s,u){if(u[0]==="'")return s;var c=s.indexOf(u),d=s[c-1]==="'",h=s.replace(u,"'"+iU[u[0]](o,u,null,i)+"'");return d?h.substring(0,c-1)+h.substring(c+1):h},n)}return UW(e,n,i)}function vU(e,t,r){var n=qM(e,r),i=$y(t,n,!0),a=new Date(n.getTime()-i),o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}function Na(e,t,r,n){var i=dW(n);return i.timeZone=t,i.originalDate=e,gU(vU(e,t),r,i)}function Zd(e){"@babel/helpers - typeof";return Zd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zd(e)}function rn(e){w.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Zd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function p2(e,t){w.requiredArgs(2,arguments);var r=rn(e),n=w.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function yU(e,t){w.requiredArgs(2,arguments);var r=rn(e),n=w.toInteger(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function XM(e,t){w.requiredArgs(2,arguments);var r=w.toInteger(t);return yU(e,r*12)}var bU={};function By(){return bU}function hg(e,t){var r,n,i,a,o,s,u,c;w.requiredArgs(1,arguments);var d=By(),h=w.toInteger((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=rn(e),m=p.getUTCDay(),v=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}var _U={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},KM=function(t,r,n){var i,a=_U[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function We(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var wU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},CU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},TU={date:We({formats:wU,defaultWidth:"full"}),time:We({formats:CU,defaultWidth:"full"}),dateTime:We({formats:xU,defaultWidth:"full"})},SU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZM=function(t,r,n,i){return SU[t]};function Ee(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var EU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AU={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},PU={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},RU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},OU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},kU=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},QM={ordinalNumber:kU,era:Ee({values:EU,defaultWidth:"wide"}),quarter:Ee({values:MU,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:AU,defaultWidth:"wide"}),day:Ee({values:PU,defaultWidth:"wide"}),dayPeriod:Ee({values:RU,defaultWidth:"wide",formattingValues:OU,defaultFormattingWidth:"wide"})};function Me(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?NU(s,function(h){return h.test(o)}):DU(s,function(h){return h.test(o)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var d=t.slice(o.length);return{value:c,rest:d}}}function DU(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function NU(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function nn(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var IU=/^(\d+)(th|st|nd|rd)?/i,LU=/\d+/i,FU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$U={any:[/^b/i,/^(a|c)/i]},BU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},HU={any:[/1/i,/2/i,/3/i,/4/i]},zU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},WU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},UU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},VU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},GU={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},JM={ordinalNumber:nn({matchPattern:IU,parsePattern:LU,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:FU,defaultMatchWidth:"wide",parsePatterns:$U,defaultParseWidth:"any"}),quarter:Me({matchPatterns:BU,defaultMatchWidth:"wide",parsePatterns:HU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:zU,defaultMatchWidth:"wide",parsePatterns:jU,defaultParseWidth:"any"}),day:Me({matchPatterns:WU,defaultMatchWidth:"wide",parsePatterns:UU,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:VU,defaultMatchWidth:"any",parsePatterns:GU,defaultParseWidth:"any"})},fg={code:"en-US",formatDistance:KM,formatLong:TU,formatRelative:ZM,localize:QM,match:JM,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qU(e,t){var r,n,i,a,o,s,u,c;w.requiredArgs(1,arguments);var d=By(),h=w.toInteger((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=rn(e),m=p.getDay(),v=(m<h?7:0)+m-h;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function YU(e){w.requiredArgs(1,arguments);var t=rn(e);return t.setHours(0,0,0,0),t}function XU(e){w.requiredArgs(1,arguments);var t=rn(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function KU(e){w.requiredArgs(1,arguments);var t=rn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ZU(e){w.requiredArgs(1,arguments);var t=rn(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function QU(e){w.requiredArgs(1,arguments);var t=rn(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function JU(e,t){w.requiredArgs(2,arguments);var r=rn(e),n=w.toInteger(t),i=r.getFullYear(),a=r.getDate(),o=new Date(0);o.setFullYear(i,n,15),o.setHours(0,0,0,0);var s=QU(o);return r.setMonth(n,Math.min(a,s)),r}function e3(e,t){w.requiredArgs(2,arguments);var r=w.toInteger(t);return XM(e,-r)}function Ia(e,t,r){w.requiredArgs(2,arguments);var n=hg(e,r),i=hg(t,r);return n.getTime()===i.getTime()}var m2={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},eV=function(t,r,n){var i,a=n!=null&&n.addSuffix?m2[t].withPreposition:m2[t].standalone;return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:"vor "+i:i},tV={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},rV={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},nV={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},iV={date:We({formats:tV,defaultWidth:"full"}),time:We({formats:rV,defaultWidth:"full"}),dateTime:We({formats:nV,defaultWidth:"full"})},aV={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},oV=function(t,r,n,i){return aV[t]},sV={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},lV={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},pg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},uV={narrow:pg.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:pg.wide},cV={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},dV={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},hV={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},fV=function(t){var r=Number(t);return r+"."},pV={ordinalNumber:fV,era:Ee({values:sV,defaultWidth:"wide"}),quarter:Ee({values:lV,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:pg,formattingValues:uV,defaultWidth:"wide"}),day:Ee({values:cV,defaultWidth:"wide"}),dayPeriod:Ee({values:dV,defaultWidth:"wide",formattingValues:hV,defaultFormattingWidth:"wide"})},mV=/^(\d+)(\.)?/i,gV=/\d+/i,vV={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},yV={any:[/^v/i,/^n/i]},bV={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},_V={any:[/1/i,/2/i,/3/i,/4/i]},wV={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},CV={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},xV={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},TV={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},SV={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},EV={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},MV={ordinalNumber:nn({matchPattern:mV,parsePattern:gV,valueCallback:function(t){return parseInt(t)}}),era:Me({matchPatterns:vV,defaultMatchWidth:"wide",parsePatterns:yV,defaultParseWidth:"any"}),quarter:Me({matchPatterns:bV,defaultMatchWidth:"wide",parsePatterns:_V,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:wV,defaultMatchWidth:"wide",parsePatterns:CV,defaultParseWidth:"any"}),day:Me({matchPatterns:xV,defaultMatchWidth:"wide",parsePatterns:TV,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:SV,defaultMatchWidth:"wide",parsePatterns:EV,defaultParseWidth:"any"})},AV={code:"de",formatDistance:eV,formatLong:iV,formatRelative:oV,localize:pV,match:MV,options:{weekStartsOn:1,firstWeekContainsDate:4}},PV={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},RV={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},OV={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kV={date:We({formats:PV,defaultWidth:"full"}),time:We({formats:RV,defaultWidth:"full"}),dateTime:We({formats:OV,defaultWidth:"full"})},DV={code:"en-GB",formatDistance:KM,formatLong:kV,formatRelative:ZM,localize:QM,match:JM,options:{weekStartsOn:1,firstWeekContainsDate:4}},NV={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},IV=function(t,r,n){var i,a=NV[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"hace "+i:i},LV={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},FV={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$V={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BV={date:We({formats:LV,defaultWidth:"full"}),time:We({formats:FV,defaultWidth:"full"}),dateTime:We({formats:$V,defaultWidth:"full"})},HV={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},zV={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},jV=function(t,r,n,i){return r.getUTCHours()!==1?zV[t]:HV[t]},WV={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},UV={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},VV={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},GV={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},qV={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},YV={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},XV=function(t,r){var n=Number(t);return n+"º"},KV={ordinalNumber:XV,era:Ee({values:WV,defaultWidth:"wide"}),quarter:Ee({values:UV,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Ee({values:VV,defaultWidth:"wide"}),day:Ee({values:GV,defaultWidth:"wide"}),dayPeriod:Ee({values:qV,defaultWidth:"wide",formattingValues:YV,defaultFormattingWidth:"wide"})},ZV=/^(\d+)(º)?/i,QV=/\d+/i,JV={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},eG={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},tG={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},rG={any:[/1/i,/2/i,/3/i,/4/i]},nG={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},iG={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},aG={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},oG={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},sG={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},lG={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},uG={ordinalNumber:nn({matchPattern:ZV,parsePattern:QV,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:JV,defaultMatchWidth:"wide",parsePatterns:eG,defaultParseWidth:"any"}),quarter:Me({matchPatterns:tG,defaultMatchWidth:"wide",parsePatterns:rG,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:nG,defaultMatchWidth:"wide",parsePatterns:iG,defaultParseWidth:"any"}),day:Me({matchPatterns:aG,defaultMatchWidth:"wide",parsePatterns:oG,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:sG,defaultMatchWidth:"any",parsePatterns:lG,defaultParseWidth:"any"})},cG={code:"es",formatDistance:IV,formatLong:BV,formatRelative:jV,localize:KV,match:uG,options:{weekStartsOn:1,firstWeekContainsDate:1}},dG={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},hG=function(t,r,n){var i,a=dG[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+i:"il y a "+i:i},fG={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},pG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},mG={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gG={date:We({formats:fG,defaultWidth:"full"}),time:We({formats:pG,defaultWidth:"full"}),dateTime:We({formats:mG,defaultWidth:"full"})},vG={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},yG=function(t,r,n,i){return vG[t]},bG={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},_G={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},wG={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},CG={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},xG={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},TG=function(t,r){var n=Number(t),i=r==null?void 0:r.unit;if(n===0)return"0";var a=["year","week","hour","minute","second"],o;return n===1?o=i&&a.includes(i)?"ère":"er":o="ème",n+o},SG={ordinalNumber:TG,era:Ee({values:bG,defaultWidth:"wide"}),quarter:Ee({values:_G,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:wG,defaultWidth:"wide"}),day:Ee({values:CG,defaultWidth:"wide"}),dayPeriod:Ee({values:xG,defaultWidth:"wide"})},EG=/^(\d+)(ième|ère|ème|er|e)?/i,MG=/\d+/i,AG={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},PG={any:[/^av/i,/^ap/i]},RG={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},OG={any:[/1/i,/2/i,/3/i,/4/i]},kG={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},DG={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},NG={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},IG={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},LG={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},FG={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},$G={ordinalNumber:nn({matchPattern:EG,parsePattern:MG,valueCallback:function(t){return parseInt(t)}}),era:Me({matchPatterns:AG,defaultMatchWidth:"wide",parsePatterns:PG,defaultParseWidth:"any"}),quarter:Me({matchPatterns:RG,defaultMatchWidth:"wide",parsePatterns:OG,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:kG,defaultMatchWidth:"wide",parsePatterns:DG,defaultParseWidth:"any"}),day:Me({matchPatterns:NG,defaultMatchWidth:"wide",parsePatterns:IG,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:LG,defaultMatchWidth:"any",parsePatterns:FG,defaultParseWidth:"any"})},BG={code:"fr",formatDistance:hG,formatLong:gG,formatRelative:yG,localize:SG,match:$G,options:{weekStartsOn:1,firstWeekContainsDate:4}},HG={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},zG=function(t,r,n){var i,a=HG[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+i:i+" fa":i},jG={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},WG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},UG={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},VG={date:We({formats:jG,defaultWidth:"full"}),time:We({formats:WG,defaultWidth:"full"}),dateTime:We({formats:UG,defaultWidth:"full"})},Hy=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function GG(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+Hy[e]+" scorso alle' p"}}function g2(e){return"'"+Hy[e]+" alle' p"}function qG(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+Hy[e]+" prossimo alle' p"}}var YG={lastWeek:function(t,r,n){var i=t.getUTCDay();return Ia(t,r,n)?g2(i):GG(i)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return Ia(t,r,n)?g2(i):qG(i)},other:"P"},XG=function(t,r,n,i){var a=YG[t];return typeof a=="function"?a(r,n,i):a},KG={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},ZG={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},QG={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},JG={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eq={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},tq={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},rq=function(t,r){var n=Number(t);return String(n)},nq={ordinalNumber:rq,era:Ee({values:KG,defaultWidth:"wide"}),quarter:Ee({values:ZG,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:QG,defaultWidth:"wide"}),day:Ee({values:JG,defaultWidth:"wide"}),dayPeriod:Ee({values:eq,defaultWidth:"wide",formattingValues:tq,defaultFormattingWidth:"wide"})},iq=/^(\d+)(º)?/i,aq=/\d+/i,oq={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},sq={any:[/^a/i,/^(d|e)/i]},lq={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},uq={any:[/1/i,/2/i,/3/i,/4/i]},cq={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},dq={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},hq={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},fq={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},pq={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},mq={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},gq={ordinalNumber:nn({matchPattern:iq,parsePattern:aq,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:oq,defaultMatchWidth:"wide",parsePatterns:sq,defaultParseWidth:"any"}),quarter:Me({matchPatterns:lq,defaultMatchWidth:"wide",parsePatterns:uq,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:cq,defaultMatchWidth:"wide",parsePatterns:dq,defaultParseWidth:"any"}),day:Me({matchPatterns:hq,defaultMatchWidth:"wide",parsePatterns:fq,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:pq,defaultMatchWidth:"any",parsePatterns:mq,defaultParseWidth:"any"})},vq={code:"it",formatDistance:zG,formatLong:VG,formatRelative:XG,localize:nq,match:gq,options:{weekStartsOn:1,firstWeekContainsDate:4}},yq={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},bq=function(t,r,n){n=n||{};var i,a=yq[t];return typeof a=="string"?i=a:r===1?n.addSuffix&&a.oneWithSuffix?i=a.oneWithSuffix:i=a.one:n.addSuffix&&a.otherWithSuffix?i=a.otherWithSuffix.replace("{{count}}",String(r)):i=a.other.replace("{{count}}",String(r)),n.addSuffix?n.comparison&&n.comparison>0?i+"後":i+"前":i},_q={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},wq={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Cq={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},xq={date:We({formats:_q,defaultWidth:"full"}),time:We({formats:wq,defaultWidth:"full"}),dateTime:We({formats:Cq,defaultWidth:"full"})},Tq={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Sq=function(t,r,n,i){return Tq[t]},Eq={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},Mq={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},Aq={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},Pq={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Rq={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Oq={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},kq=function(t,r){var n=Number(t),i=String(r==null?void 0:r.unit);switch(i){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},Dq={ordinalNumber:kq,era:Ee({values:Eq,defaultWidth:"wide"}),quarter:Ee({values:Mq,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Ee({values:Aq,defaultWidth:"wide"}),day:Ee({values:Pq,defaultWidth:"wide"}),dayPeriod:Ee({values:Rq,defaultWidth:"wide",formattingValues:Oq,defaultFormattingWidth:"wide"})},Nq=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,Iq=/\d+/i,Lq={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},Fq={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},$q={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},Bq={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},Hq={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},zq={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},jq={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},Wq={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},Uq={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},Vq={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},Gq={ordinalNumber:nn({matchPattern:Nq,parsePattern:Iq,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:Lq,defaultMatchWidth:"wide",parsePatterns:Fq,defaultParseWidth:"any"}),quarter:Me({matchPatterns:$q,defaultMatchWidth:"wide",parsePatterns:Bq,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:Hq,defaultMatchWidth:"wide",parsePatterns:zq,defaultParseWidth:"any"}),day:Me({matchPatterns:jq,defaultMatchWidth:"wide",parsePatterns:Wq,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:Uq,defaultMatchWidth:"any",parsePatterns:Vq,defaultParseWidth:"any"})},qq={code:"ja",formatDistance:bq,formatLong:xq,formatRelative:Sq,localize:Dq,match:Gq,options:{weekStartsOn:0,firstWeekContainsDate:1}},Yq={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Xq=function(t,r,n){var i,a=Yq[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" 후":i+" 전":i},Kq={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Zq={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Qq={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Jq={date:We({formats:Kq,defaultWidth:"full"}),time:We({formats:Zq,defaultWidth:"full"}),dateTime:We({formats:Qq,defaultWidth:"full"})},eY={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},tY=function(t,r,n,i){return eY[t]},rY={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},nY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},iY={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},aY={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},oY={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},sY={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},lY=function(t,r){var n=Number(t),i=String(r==null?void 0:r.unit);switch(i){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},uY={ordinalNumber:lY,era:Ee({values:rY,defaultWidth:"wide"}),quarter:Ee({values:nY,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:iY,defaultWidth:"wide"}),day:Ee({values:aY,defaultWidth:"wide"}),dayPeriod:Ee({values:oY,defaultWidth:"wide",formattingValues:sY,defaultFormattingWidth:"wide"})},cY=/^(\d+)(일|번째)?/i,dY=/\d+/i,hY={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},fY={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},pY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},mY={any:[/1/i,/2/i,/3/i,/4/i]},gY={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},vY={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},yY={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},bY={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},_Y={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},wY={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},CY={ordinalNumber:nn({matchPattern:cY,parsePattern:dY,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:hY,defaultMatchWidth:"wide",parsePatterns:fY,defaultParseWidth:"any"}),quarter:Me({matchPatterns:pY,defaultMatchWidth:"wide",parsePatterns:mY,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:gY,defaultMatchWidth:"wide",parsePatterns:vY,defaultParseWidth:"any"}),day:Me({matchPatterns:yY,defaultMatchWidth:"wide",parsePatterns:bY,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:_Y,defaultMatchWidth:"any",parsePatterns:wY,defaultParseWidth:"any"})},xY={code:"ko",formatDistance:Xq,formatLong:Jq,formatRelative:tY,localize:uY,match:CY,options:{weekStartsOn:0,firstWeekContainsDate:1}},TY={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},SY=function(t,r,n){var i,a=TY[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+i:i+" geleden":i},EY={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},MY={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},AY={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},PY={date:We({formats:EY,defaultWidth:"full"}),time:We({formats:MY,defaultWidth:"full"}),dateTime:We({formats:AY,defaultWidth:"full"})},RY={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},OY=function(t,r,n,i){return RY[t]},kY={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},DY={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},NY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},IY={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},LY={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},FY=function(t,r){var n=Number(t);return n+"e"},$Y={ordinalNumber:FY,era:Ee({values:kY,defaultWidth:"wide"}),quarter:Ee({values:DY,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:NY,defaultWidth:"wide"}),day:Ee({values:IY,defaultWidth:"wide"}),dayPeriod:Ee({values:LY,defaultWidth:"wide"})},BY=/^(\d+)e?/i,HY=/\d+/i,zY={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},jY={any:[/^v/,/^n/]},WY={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},UY={any:[/1/i,/2/i,/3/i,/4/i]},VY={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},GY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},qY={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},YY={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},XY={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},KY={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},ZY={ordinalNumber:nn({matchPattern:BY,parsePattern:HY,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:zY,defaultMatchWidth:"wide",parsePatterns:jY,defaultParseWidth:"any"}),quarter:Me({matchPatterns:WY,defaultMatchWidth:"wide",parsePatterns:UY,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:VY,defaultMatchWidth:"wide",parsePatterns:GY,defaultParseWidth:"any"}),day:Me({matchPatterns:qY,defaultMatchWidth:"wide",parsePatterns:YY,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:XY,defaultMatchWidth:"any",parsePatterns:KY,defaultParseWidth:"any"})},QY={code:"nl",formatDistance:SY,formatLong:PY,formatRelative:OY,localize:$Y,match:ZY,options:{weekStartsOn:1,firstWeekContainsDate:4}},JY={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},eX=function(t,r,n){var i,a=JY[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+i:"há "+i:i},tX={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},rX={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},nX={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iX={date:We({formats:tX,defaultWidth:"full"}),time:We({formats:rX,defaultWidth:"full"}),dateTime:We({formats:nX,defaultWidth:"full"})},aX={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},oX=function(t,r,n,i){var a=aX[t];return typeof a=="function"?a(r):a},sX={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},lX={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},uX={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},cX={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},dX={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},hX={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},fX=function(t,r){var n=Number(t);return n+"º"},pX={ordinalNumber:fX,era:Ee({values:sX,defaultWidth:"wide"}),quarter:Ee({values:lX,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:uX,defaultWidth:"wide"}),day:Ee({values:cX,defaultWidth:"wide"}),dayPeriod:Ee({values:dX,defaultWidth:"wide",formattingValues:hX,defaultFormattingWidth:"wide"})},mX=/^(\d+)(º|ª)?/i,gX=/\d+/i,vX={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},yX={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},bX={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},_X={any:[/1/i,/2/i,/3/i,/4/i]},wX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},CX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},xX={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},TX={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},SX={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},EX={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},MX={ordinalNumber:nn({matchPattern:mX,parsePattern:gX,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:vX,defaultMatchWidth:"wide",parsePatterns:yX,defaultParseWidth:"any"}),quarter:Me({matchPatterns:bX,defaultMatchWidth:"wide",parsePatterns:_X,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:wX,defaultMatchWidth:"wide",parsePatterns:CX,defaultParseWidth:"any"}),day:Me({matchPatterns:xX,defaultMatchWidth:"wide",parsePatterns:TX,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:SX,defaultMatchWidth:"any",parsePatterns:EX,defaultParseWidth:"any"})},AX={code:"pt",formatDistance:eX,formatLong:iX,formatRelative:oX,localize:pX,match:MX,options:{weekStartsOn:1,firstWeekContainsDate:4}};function rl(e,t){if(e.one!==void 0&&t===1)return e.one;var r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Er(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?rl(e.future,t):"через "+rl(e.regular,t):e.past?rl(e.past,t):rl(e.regular,t)+" назад":rl(e.regular,t)}}var PX={lessThanXSeconds:Er({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:Er({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:Er({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:Er({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:Er({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:Er({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:Er({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:Er({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:Er({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:Er({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:Er({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:Er({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:Er({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:Er({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:Er({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},RX=function(t,r,n){return PX[t](r,n)},OX={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},kX={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},DX={any:"{{date}}, {{time}}"},NX={date:We({formats:OX,defaultWidth:"full"}),time:We({formats:kX,defaultWidth:"full"}),dateTime:We({formats:DX,defaultWidth:"any"})},zy=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function IX(e){var t=zy[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function v2(e){var t=zy[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function LX(e){var t=zy[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var FX={lastWeek:function(t,r,n){var i=t.getUTCDay();return Ia(t,r,n)?v2(i):IX(i)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return Ia(t,r,n)?v2(i):LX(i)},other:"P"},$X=function(t,r,n,i){var a=FX[t];return typeof a=="function"?a(r,n,i):a},BX={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},HX={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},zX={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},jX={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},WX={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},UX={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},VX={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},GX=function(t,r){var n=Number(t),i=r==null?void 0:r.unit,a;return i==="date"?a="-е":i==="week"||i==="minute"||i==="second"?a="-я":a="-й",n+a},qX={ordinalNumber:GX,era:Ee({values:BX,defaultWidth:"wide"}),quarter:Ee({values:HX,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:zX,defaultWidth:"wide",formattingValues:jX,defaultFormattingWidth:"wide"}),day:Ee({values:WX,defaultWidth:"wide"}),dayPeriod:Ee({values:UX,defaultWidth:"any",formattingValues:VX,defaultFormattingWidth:"wide"})},YX=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,XX=/\d+/i,KX={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},ZX={any:[/^д/i,/^н/i]},QX={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},JX={any:[/1/i,/2/i,/3/i,/4/i]},eK={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},tK={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},rK={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},nK={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},iK={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},aK={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},oK={ordinalNumber:nn({matchPattern:YX,parsePattern:XX,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:KX,defaultMatchWidth:"wide",parsePatterns:ZX,defaultParseWidth:"any"}),quarter:Me({matchPatterns:QX,defaultMatchWidth:"wide",parsePatterns:JX,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:eK,defaultMatchWidth:"wide",parsePatterns:tK,defaultParseWidth:"any"}),day:Me({matchPatterns:rK,defaultMatchWidth:"wide",parsePatterns:nK,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:iK,defaultMatchWidth:"wide",parsePatterns:aK,defaultParseWidth:"any"})},sK={code:"ru",formatDistance:RX,formatLong:NX,formatRelative:$X,localize:qX,match:oK,options:{weekStartsOn:1,firstWeekContainsDate:1}},lK={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},uK=function(t,r,n){var i,a=lK[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" sonra":i+" önce":i},cK={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},dK={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},hK={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fK={date:We({formats:cK,defaultWidth:"full"}),time:We({formats:dK,defaultWidth:"full"}),dateTime:We({formats:hK,defaultWidth:"full"})},pK={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},mK=function(t,r,n,i){return pK[t]},gK={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},vK={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},yK={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},bK={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},_K={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},wK={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},CK=function(t,r){var n=Number(t);return n+"."},xK={ordinalNumber:CK,era:Ee({values:gK,defaultWidth:"wide"}),quarter:Ee({values:vK,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Ee({values:yK,defaultWidth:"wide"}),day:Ee({values:bK,defaultWidth:"wide"}),dayPeriod:Ee({values:_K,defaultWidth:"wide",formattingValues:wK,defaultFormattingWidth:"wide"})},TK=/^(\d+)(\.)?/i,SK=/\d+/i,EK={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},MK={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},AK={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},PK={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},RK={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},OK={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},kK={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},DK={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},NK={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},IK={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},LK={ordinalNumber:nn({matchPattern:TK,parsePattern:SK,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:EK,defaultMatchWidth:"wide",parsePatterns:MK,defaultParseWidth:"any"}),quarter:Me({matchPatterns:AK,defaultMatchWidth:"wide",parsePatterns:PK,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:RK,defaultMatchWidth:"wide",parsePatterns:OK,defaultParseWidth:"any"}),day:Me({matchPatterns:kK,defaultMatchWidth:"wide",parsePatterns:DK,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:NK,defaultMatchWidth:"any",parsePatterns:IK,defaultParseWidth:"any"})},FK={code:"tr",formatDistance:uK,formatLong:fK,formatRelative:mK,localize:xK,match:LK,options:{weekStartsOn:1,firstWeekContainsDate:1}};function nl(e,t){if(e.one!==void 0&&t===1)return e.one;var r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Mr(e){return function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?e.future?nl(e.future,t):"за "+nl(e.regular,t):e.past?nl(e.past,t):nl(e.regular,t)+" тому":nl(e.regular,t)}}var $K=function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},BK={lessThanXSeconds:Mr({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:Mr({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:$K,lessThanXMinutes:Mr({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:Mr({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:Mr({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:Mr({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:Mr({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:Mr({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:Mr({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:Mr({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:Mr({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:Mr({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:Mr({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:Mr({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:Mr({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},HK=function(t,r,n){return n=n||{},BK[t](r,n)},zK={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},jK={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},WK={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},UK={date:We({formats:zK,defaultWidth:"full"}),time:We({formats:jK,defaultWidth:"full"}),dateTime:We({formats:WK,defaultWidth:"full"})},jy=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function VK(e){var t=jy[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function t3(e){var t=jy[e];return"'у "+t+" о' p"}function GK(e){var t=jy[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var qK=function(t,r,n){var i=rn(t),a=i.getUTCDay();return Ia(i,r,n)?t3(a):VK(a)},YK=function(t,r,n){var i=rn(t),a=i.getUTCDay();return Ia(i,r,n)?t3(a):GK(a)},XK={lastWeek:qK,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:YK,other:"P"},KK=function(t,r,n,i){var a=XK[t];return typeof a=="function"?a(r,n,i):a},ZK={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},QK={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},JK={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},eZ={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},tZ={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},rZ={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},nZ={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},iZ=function(t,r){var n=String(r==null?void 0:r.unit),i=Number(t),a;return n==="date"?i===3||i===23?a="-є":a="-е":n==="minute"||n==="second"||n==="hour"?a="-а":a="-й",i+a},aZ={ordinalNumber:iZ,era:Ee({values:ZK,defaultWidth:"wide"}),quarter:Ee({values:QK,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:JK,defaultWidth:"wide",formattingValues:eZ,defaultFormattingWidth:"wide"}),day:Ee({values:tZ,defaultWidth:"wide"}),dayPeriod:Ee({values:rZ,defaultWidth:"any",formattingValues:nZ,defaultFormattingWidth:"wide"})},oZ=/^(\d+)(-?(е|й|є|а|я))?/i,sZ=/\d+/i,lZ={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},uZ={any:[/^д/i,/^н/i]},cZ={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},dZ={any:[/1/i,/2/i,/3/i,/4/i]},hZ={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},fZ={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},pZ={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},mZ={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},gZ={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},vZ={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},yZ={ordinalNumber:nn({matchPattern:oZ,parsePattern:sZ,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:lZ,defaultMatchWidth:"wide",parsePatterns:uZ,defaultParseWidth:"any"}),quarter:Me({matchPatterns:cZ,defaultMatchWidth:"wide",parsePatterns:dZ,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:hZ,defaultMatchWidth:"wide",parsePatterns:fZ,defaultParseWidth:"any"}),day:Me({matchPatterns:pZ,defaultMatchWidth:"wide",parsePatterns:mZ,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:gZ,defaultMatchWidth:"wide",parsePatterns:vZ,defaultParseWidth:"any"})},bZ={code:"uk",formatDistance:HK,formatLong:UK,formatRelative:KK,localize:aZ,match:yZ,options:{weekStartsOn:1,firstWeekContainsDate:1}},_Z={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},wZ=function(t,r,n){var i,a=_Z[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+"内":i+"前":i},CZ={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},xZ={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},TZ={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},SZ={date:We({formats:CZ,defaultWidth:"full"}),time:We({formats:xZ,defaultWidth:"full"}),dateTime:We({formats:TZ,defaultWidth:"full"})};function y2(e,t,r){var n="eeee p";return Ia(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var EZ={lastWeek:y2,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:y2,other:"PP p"},MZ=function(t,r,n,i){var a=EZ[t];return typeof a=="function"?a(r,n,i):a},AZ={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},PZ={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},RZ={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},OZ={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},kZ={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},DZ={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},NZ=function(t,r){var n=Number(t);switch(r==null?void 0:r.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},IZ={ordinalNumber:NZ,era:Ee({values:AZ,defaultWidth:"wide"}),quarter:Ee({values:PZ,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:RZ,defaultWidth:"wide"}),day:Ee({values:OZ,defaultWidth:"wide"}),dayPeriod:Ee({values:kZ,defaultWidth:"wide",formattingValues:DZ,defaultFormattingWidth:"wide"})},LZ=/^(第\s*)?\d+(日|时|分|秒)?/i,FZ=/\d+/i,$Z={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},BZ={any:[/^(前)/i,/^(公元)/i]},HZ={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},zZ={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},jZ={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},WZ={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},UZ={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},VZ={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},GZ={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},qZ={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},YZ={ordinalNumber:nn({matchPattern:LZ,parsePattern:FZ,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:$Z,defaultMatchWidth:"wide",parsePatterns:BZ,defaultParseWidth:"any"}),quarter:Me({matchPatterns:HZ,defaultMatchWidth:"wide",parsePatterns:zZ,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:jZ,defaultMatchWidth:"wide",parsePatterns:WZ,defaultParseWidth:"any"}),day:Me({matchPatterns:UZ,defaultMatchWidth:"wide",parsePatterns:VZ,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:GZ,defaultMatchWidth:"any",parsePatterns:qZ,defaultParseWidth:"any"})},XZ={code:"zh-CN",formatDistance:wZ,formatLong:SZ,formatRelative:MZ,localize:IZ,match:YZ,options:{weekStartsOn:1,firstWeekContainsDate:4}},KZ=Math.ceil,ZZ=Math.max;function QZ(e,t,r,n){for(var i=-1,a=ZZ(KZ((t-e)/(r||1)),0),o=Array(a);a--;)o[++i]=e,e+=r;return o}function JZ(e){return function(t,r,n){return n&&typeof n!="number"&&D.isIterateeCall(t,r,n)&&(r=n=void 0),t=w.toFinite(t),r===void 0?(r=t,t=0):r=w.toFinite(r),n=n===void 0?t<r?1:-1:w.toFinite(n),QZ(t,r,n)}}var Wc=JZ();const $u=e=>{switch(e){case"de":case"de-DE":return AV;case"en":case"en-US":return fg;case"gb":case"en-GB":return DV;case"es":case"es-ES":case"es-AR":return cG;case"fr":case"fr-FR":return BG;case"it":case"it-IT":return vq;case"ja":case"ja-JP":return qq;case"ko":case"ko-KR":return xY;case"nl":case"nl-NL":return QY;case"pt":case"pt-BR":return AX;case"ru":case"ru-RU":return sK;case"tr":case"tr-TR":return FK;case"zh":case"zh-CN":return XZ;case"uk":return bZ;default:return fg}};var r3=(e=>(e.YEAR="years",e.QUARTER="quarters",e.MONTH="months",e.WEEK="weeks",e.DATE="dates",e))(r3||{});const eQ={dates:e=>YU(e),months:e=>KU(e),quarters:e=>XU(e),weeks:(e,t)=>qU(e,{locale:t}),years:e=>ZU(e)},tQ=(e,t,r)=>eQ[e](t,r),rQ=e=>w.parseISOWithTimezoneCheck(e);Wc(4),Wc(12),Wc(7),Wc(24);function na(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(a,o){return o?r(a):a})}const nQ=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],iQ=Object.freeze({fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"});function aQ(e,t){if(!t.formatLong)return console.warn("Locale does not have formatLong property. Using default date formats."),iQ[e];switch(e){case"fullDate":return t.formatLong.date({width:"full"});case"longDate":return t.formatLong.date({width:"long"});case"mediumDate":return t.formatLong.date({width:"medium"});case"shortDate":return t.formatLong.date({width:"short"});case"mediumTime":return t.formatLong.time({width:"medium"});case"shortTime":return t.formatLong.time({width:"short"});case"medium":return t.formatLong.dateTime({width:"medium"}).replace("{{date}}",t.formatLong.date({width:"medium"})).replace("{{time}}",t.formatLong.time({width:"medium"}));case"short":return t.formatLong.dateTime({width:"short"}).replace("{{date}}",t.formatLong.date({width:"short"})).replace("{{time}}",t.formatLong.time({width:"short"}))}}function oQ(e,t){if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e;return nQ.forEach(n=>{const i=aQ(n,t);r=na(r,n,function(){return i})}),r}const n3="Etc/GMT-14";function sQ(e,t,r){return i3(e,t,r)?e3(e,1):e}function lQ(e,t){return t<=e.getMonth()}function i3(e,t,r){const n=![bQ,Wy].includes(t);return r>l3&&n&&lQ(e,r)}function uQ(e,t,r,n){return!n&&i3(e,t,r)?XM(e,1):e}function cQ(e,t){if(t>0){const r=(e.getMonth()+t)%12;return JU(e,r)}return e}function dQ(e,t,r,n,i,a){if(!e.includes("y"))return e;const o=uQ(t,n,a,i);let s=e;if(["yyyy","yy","y","yp","yyyp"].some(c=>e.includes(c))&&(r=n3),e.includes("yp")){const c=e3(o,1);s=na(e,"yp|yyyp",function(h){const p="y".repeat(h.length);return Na(c,r,p)})}return na(s,"yyyy|yy|y",function(d){return Na(o,r,d)})}function hQ(e,t,r,n){if(!e.includes("Q"))return e;const i=Na(t,n3,"M");let a=parseInt(i,10)-1;n&&[Wy,_Q,wQ,s3].includes(r)&&(a-=n>a?n-12:n);const o=parseInt(String(a/3))+1;return na(e,"QQ|Q",function(c){return`${c.length===2?"'Quarter '":"'Q'"}${o}`})}function fQ(e){return e.includes("sss")?na(e,"sss",function(){return"SSS"}):e}function pQ(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=na(e,"a",function(){return`\0${Na(t,r,"a").toLowerCase()}\0`});return n=na(n,"A",function(){return`\0${Na(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}const a3=new Set(["y","yy","yyy","yyyy","M","MM","MMM","MMMM","d","dd","EEE","EEEE","H","HH","h","hh","k","kk","m","mm","s","ss","S","SS","SSS","w","ww","o"]),mQ=/^([a-zA-Z])\1*/;function o3(e){var t;return(t=e.match(mQ))==null?void 0:t[0]}function gQ(e,t){let r="",n=t;for(;n<e.length&&e[n]!=="'";){const i=o3(e.slice(n));if(i){if(a3.has(i))break;r+=i,n+=i.length}else r+=e[n],n++}return{literal:r,endIndex:n}}function vQ(e){const t=[];let r=0;for(;r<e.length;){if(e[r]==="'"){const i=e.indexOf("'",r+1);if(i===-1){t.push(e.slice(r));break}t.push(e.slice(r,i+1)),r=i+1;continue}const n=o3(e.slice(r));if(n&&a3.has(n)){t.push(n),r+=n.length;continue}if(n){const{literal:i,endIndex:a}=gQ(e,r);t.push(`'${i.replace(/'/g,"''")}'`),r=a;continue}t.push(e[r]),r++}return t.join("")}function yQ(e,t,r,n){return e.includes("Z")?na(e,"Z",function(){return Na(t,r,"xx",{locale:n})}):e}const bQ="years",Wy="quarters",_Q="months",wQ="weeks",s3="days",l3=0,CQ=1,Bu=Object.freeze({weekFirstDay:CQ,isFiscalOn:!1,fiscalMonth:l3,selectedDateLevel:s3,timeZone:"UTC"});function Hu(e,t,r=$u(),n=Bu){if(e===w.NOT_AVAILABLE_DATA_VALUE)return e;const i=e instanceof Date?e:w.parseISOWithTimezoneCheck(e);return xQ(i,t,r,n)}function xQ(e,t,r=$u(),n=Bu){return e.getFullYear()<100?e=p2(e,1900+e.getFullYear()):e.getFullYear()===1111&&(e=p2(e,1970)),n.isFiscalOn||(e=sQ(e,n.selectedDateLevel,n.fiscalMonth)),t=oQ(t,r),t=fQ(t),t=pQ(t,e,n.timeZone),t=yQ(t,e,n.timeZone,r),t=dQ(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===Wy&&(e=cQ(e,n.fiscalMonth)),t=hQ(t,e,n.selectedDateLevel,n.fiscalMonth),t=vQ(t),Na(e,n.timeZone,t,{locale:r,weekStartsOn:n.weekFirstDay})}function TQ(e){switch(e){case D.DateLevels.Years:return"yyyy";case D.DateLevels.Quarters:return"Q yyyy";case D.DateLevels.Months:return"MM/yyyy";case D.DateLevels.Weeks:return"ww yyyy";case D.DateLevels.Days:return"shortDate";case D.DateLevels.Hours:case D.DateLevels.Minutes:case D.DateLevels.MinutesRoundTo15:case D.DateLevels.MinutesRoundTo30:case D.DateLevels.AggMinutesRoundTo1:case D.DateLevels.AggMinutesRoundTo15:case D.DateLevels.AggMinutesRoundTo30:case D.DateLevels.AggHours:return"HH:mm";case D.DateLevels.Seconds:return"HH:mm:ss";default:return"fullDate"}}const u3=(e,t=-1)=>{var n,i,a;return[...(n=e.rows)!=null?n:[],...(i=e.columns)!=null?i:[],...(a=e.values)!=null?a:[]][t]},SQ=(e,t=-1)=>{const{rows:r=[],columns:n=[],values:i=[]}=e,a=Number(r.length)||0,o=Number(n.length)||0,s=Number(i.length)||0;if(t!==-1){if(t<a)return`rows.${t}`;if(t<a+o)return`columns.${t-a}`;if(t<a+o+s)return`values.${t-a-o}`}},c3=e=>{const t=e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0;return w.getCompleteNumberFormatConfig(t)},EQ=e=>{const t=w.normalizeColumn(e),r=w.getDataOptionGranularity(t);return(t==null?void 0:t.dateFormat)||w.getDefaultDateFormat(r)},MQ=(e,t)=>(r,n)=>{var c,d;const i=(n==null?void 0:n.panel)==="measures",a=r.userType===tr.CORNER,o=u3(e,(c=n==null?void 0:n.field)==null?void 0:c.index);if(i||a||!o){r.content=r.value;return}const u="type"in o||"column"in o&&"type"in o.column?EQ(o):void 0;switch((d=n==null?void 0:n.jaql)==null?void 0:d.datatype){case"numeric":r.content=w.applyFormatPlainText(c3(o),parseFloat(`${r.value}`));break;case"datetime":r.content=Uy(r.value,t,u);break;default:r.content=r.value}o&&"isHtml"in o&&o.isHtml&&(r.contentType="html"),r.content===""&&(r.content=w.NOT_AVAILABLE_DATA_VALUE)};function Uy(e,t,r){if(e===w.NOT_AVAILABLE_DATA_VALUE)return e;if(!r)return typeof e=="string"?e:e.toISOString();const n=typeof e=="string"?w.parseISOWithTimezoneCheck(e):e;return AQ(n)?typeof e=="string"?e:e.toISOString():t(n,r)}function AQ(e){return e.toString()==="Invalid Date"}function mr(e){const t="type"in e.column?e.column.type:"numeric";let r=n=>`${n}`;if(D.isNumber(t)){const n=w.getCompleteNumberFormatConfig(e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0);r=i=>w.applyFormatPlainText(n,parseFloat(`${i}`))}if(D.isDatetime(t)){const n=e.dateFormat||w.getDefaultDateFormat(w.getDataOptionGranularity(e)),i=(a,o)=>Hu(a,o);r=a=>Uy(lW(a)?a.toISOString():a,i,n)}return n=>n===void 0?"":r(n)}function et(e,t){return M(M(M({dataOption:e},t&&{dataOptionLocation:t}),D.MetadataTypes.isAttribute(e.column)&&{attribute:e.column}),D.MetadataTypes.isMeasure(e.column)&&{measure:e.column})}const uf=e=>{var t,r,n,i,a,o,s,u;return{value:(t=e.custom)==null?void 0:t.rawValue,categoryValue:(n=(r=e.custom)==null?void 0:r.xValue)==null?void 0:n[0],seriesValue:(s=(o=(a=(i=e.series)==null?void 0:i.options)==null?void 0:a.custom)==null?void 0:o.rawValue)==null?void 0:s[0],categoryDisplayValue:(u=e.name)!=null?u:e.category}},PQ=(e,t)=>{const r=t.x.map((s,u)=>{var d,h;const c=(h=(d=e.custom)==null?void 0:d.xValue)==null?void 0:h[u];return B(M({},et(s)),{value:c,displayValue:mr(s)(c)})}),n=t.y.length>=2,i=t.y.filter((s,u)=>!n||e.series.index===u).flatMap(s=>{const u=e.custom.rawValue;return B(M({},et(s)),{value:u,displayValue:mr(s)(u)})}),a=t.breakBy.map(s=>{var c,d,h;const u=(h=(d=(c=e.series)==null?void 0:c.options.custom)==null?void 0:d.rawValue)==null?void 0:h[0];return B(M({},et(s)),{value:u,displayValue:mr(s)(u)})}),o={category:r,value:i,breakBy:a};return B(M({},uf(e)),{entries:o})},RQ=(e,t)=>{const r=t.x.map((s,u)=>{var d,h;const c=(h=(d=e.custom)==null?void 0:d.xValue)==null?void 0:h[u];return B(M({},et(s)),{value:c,displayValue:mr(s)(c)})}),n=t.rangeValues.length>=2,i=t.rangeValues.filter((s,u)=>!n||e.series.index===u).flatMap(s=>s.map((u,c)=>{var p,m;const h=c===0?(p=e.options)==null?void 0:p.low:(m=e.options)==null?void 0:m.high;return B(M({},et(u)),{value:h,displayValue:mr(u)(h)})})),a=t.breakBy.map(s=>{var c,d,h;const u=(h=(d=(c=e.series)==null?void 0:c.options.custom)==null?void 0:d.rawValue)==null?void 0:h[0];return B(M({},et(s)),{value:u,displayValue:mr(s)(u)})}),o={category:r,value:i,breakBy:a};return B(M({},uf(e)),{entries:o})},OQ=(e,t)=>{var n,i,a,o,s;const r={};if(t.x){const u=e.custom.maskedX;r.x=B(M({},et(t.x)),{value:u,displayValue:u})}if(t.y){const u=e.custom.maskedY;r.y=B(M({},et(t.y)),{value:u,displayValue:u})}if(t.breakByPoint){const u=(n=e.custom)==null?void 0:n.maskedBreakByPoint;r.breakByPoint=B(M({},et(t.breakByPoint)),{value:(i=e.custom)==null?void 0:i.maskedBreakByPoint,displayValue:u})}if(t.breakByColor){const u=(a=e.custom)==null?void 0:a.maskedBreakByColor;r.breakByColor=B(M({},et(t.breakByColor)),{value:u,displayValue:u})}if(t.size){const u=e.custom.maskedSize;r.size=B(M({},et(t.size)),{value:u,displayValue:u})}return{x:e.x,y:e.y,size:e.z,breakByPoint:(o=e.custom)==null?void 0:o.maskedBreakByPoint,breakByColor:(s=e.custom)==null?void 0:s.maskedBreakByColor,entries:r}},kQ=(e,t)=>{const r=t.breakBy.map((a,o)=>{var u,c;const s=(c=(u=e.custom)==null?void 0:u.xValue)==null?void 0:c[o];return B(M({},et(a)),{value:s,displayValue:mr(a)(s)})}),n=t.y.map(a=>{var s;const o=(s=e.custom)==null?void 0:s.rawValue;return B(M({},et(a)),{value:o,displayValue:mr(a)(o)})}),i={category:r,value:n};return{value:e.options.custom.number1,categoryValue:e.options.name,categoryDisplayValue:e.name,entries:i}},DQ=(e,t)=>{const r=t.breakBy.map((o,s)=>{var c,d;const u=(d=(c=e.custom)==null?void 0:c.xValue)==null?void 0:d[s];return B(M({},et(o)),{value:u,displayValue:mr(o)(u)})}),n=t.y.length>=2,i=t.y.filter((o,s)=>!n||e.series.index===s).map(o=>{var u;const s=(u=e.custom)==null?void 0:u.rawValue;return B(M({},et(o)),{value:s,displayValue:mr(o)(s)})}),a={category:r,value:i};return B(M({},uf(e)),{entries:a})},NQ=(e,t)=>{const r=e.options.custom.level,n=r!==e.options.custom.levelsCount,i=t.breakBy.slice(0,r).map((u,c)=>{var h,p,m,v;const d=n?(p=(h=e.custom)==null?void 0:h.rawValues)==null?void 0:p[c]:(v=(m=e.custom)==null?void 0:m.xValue)==null?void 0:v[c];return B(M({},et(u)),{value:d,displayValue:d})}),a=t.y.length>=2,o=t.y.filter((u,c)=>!a||e.series.index===c).map(u=>{var d;const c=n?e.value:(d=e.custom)==null?void 0:d.rawValue;return B(M({},et(u)),{value:c,displayValue:mr(u)(c)})}),s={category:i,value:o};return B(M({},uf(e)),{entries:s})},IQ=(e,t)=>{var i;const r=e.series.type==="scatter",n={};if(r){const a=e.options.y;n.value=[B(M({},et(t.outliers)),{value:a,displayValue:mr(t.outliers)(a)})]}else{const a=(o,s)=>o?B(M({},et(o)),{value:s,displayValue:mr(o)(s)}):void 0;n.value=[a(t.boxMin,e.options.q1),a(t.boxMedian,e.options.median),a(t.boxMax,e.options.q3),a(t.whiskerMin,e.options.low),a(t.whiskerMax,e.options.high)].filter(o=>o!==void 0)}if(t.category){const a=(i=e.custom.xValue)==null?void 0:i[0];n.category=[B(M({},et(t.category)),{value:a,displayValue:mr(t.category)(a)})]}return{boxMin:e.options.q1,boxMedian:e.options.median,boxMax:e.options.q3,whiskerMin:e.options.low,whiskerMax:e.options.high,outlier:e.options.y,categoryValue:e.category,categoryDisplayValue:e.category,entries:n}},LQ=(e,t)=>{const r=new Date(e.options.date),n=e.options.dateString,i=e.options.value,a=B(M({},et(t.date)),{value:n,displayValue:mr(t.date)(r)}),o=typeof i=="number",s=t.value&&o?B(M({},et(t.value)),{value:typeof i=="number"?i:0,displayValue:mr(t.value)(i)}):void 0;return{entries:{date:a,value:s}}};function mm(e,t){switch(e.series.chart.options.chart.type){case"bubble":case"scatter":return OQ(e,t);case"funnel":return kQ(e,t);case"pie":return DQ(e,t);case"treemap":case"sunburst":return NQ(e,t);case"boxplot":return IQ(e,t);case"arearange":return RQ(e,t);case"heatmap":return LQ(e,t);default:return PQ(e,t)}}function FQ(e,t){const r={};return t.geo&&(r.geo=[B(M({},et(t.geo)),{value:e.geoName})]),t.color&&(r.color=[B(M({},et(t.color)),{value:e.originalValue})]),B(M({},e),{entries:r})}class cf{constructor(t,r){Je(this,"httpClient");Je(this,"defaultDataSource");Je(this,"getDashboards",(...r)=>Vt(this,[...r],function*(t={}){const{fields:n,expand:i,searchByTitle:a}=t,o=new URLSearchParams(M(M(M({},a&&{name:a}),(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")}),(i==null?void 0:i.length)&&{expand:i==null?void 0:i.join(",")})).toString(),s=yield this.httpClient.get(`api/v1/dashboards?${o}`);if(!s)return[];const u=s.map(c=>Vt(this,null,function*(){if(c.oid&&!c.datasource){const d=yield this.getDashboard(c.oid,{fields:["datasource"]});return d!=null&&d.datasource?B(M({},c),{datasource:d.datasource}):c}return c}));return Promise.all(u)}));Je(this,"getDashboard",(t,r={})=>{const{fields:n,sharedMode:i}=r,a=new URLSearchParams(M(M({},(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")}),i&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${t}?${a}`).catch(()=>{throw new D.TranslatableError("errors.dashboardInvalidIdentifier",{dashboardOid:t})})});Je(this,"getDashboardLegacy",t=>this.httpClient.get(`api/dashboards/${t}`).catch(()=>{throw new D.TranslatableError("errors.dashboardInvalidIdentifier",{dashboardOid:t})}));Je(this,"getDashboardWidgets",(t,r)=>{const n=new URLSearchParams(M({},r&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${t}/widgets?${n}`).catch(()=>{throw new D.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers",{dashboardOid:t})})});Je(this,"getWidget",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${r}/widgets/${t}?${i}`).catch(()=>{throw new D.TranslatableError("errors.widgetByIdInvalidIdentifier",{dashboardOid:r,widgetOid:t})})});Je(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));Je(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));Je(this,"getPalettes",()=>this.httpClient.get("api/palettes"));Je(this,"getHierarchies",({dataSource:t=this.defaultDataSource,dimension:r,ids:n,alwaysIncluded:i})=>{const a="granularity"in r;let o="";if(!t)throw new D.TranslatableError("errors.missingDataSource");if(a){const{level:u,dateTimeLevel:c}=r.translateGranularityToJaql();o=u!=null?u:c}const s=new URLSearchParams(M(M(M({elasticube:D.getDataSourceName(t),table:D.getTableNameFromAttribute(r),column:D.getColumnNameFromAttribute(r)},o&&{dateLevel:o}),i&&{alwaysIncluded:`${i}`}),(n==null?void 0:n.length)&&{ids:n.join(",")})).toString();return this.httpClient.get(`api/elasticubes/hierarchies?${s}`).then((u=[])=>w.isUndefined(i)&&(n==null?void 0:n.length)?u.filter(({_id:d})=>n.includes(d)):u)});Je(this,"patchDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.patch(`api/v1/dashboards/${t}?${i}`,r)});Je(this,"addWidgetToDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.post(`api/v1/dashboards/${t}/widgets?${i}`,r)});Je(this,"deleteWidgetFromDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.delete(`api/v1/dashboards/${t}/widgets/${r}?${i}`)});Je(this,"patchWidgetInDashboard",(t,r,n,i)=>{const a=new URLSearchParams(M({},i&&{sharedMode:"true"})).toString();return this.httpClient.patch(`api/v1/dashboards/${t}/widgets/${r}?${a}`,n)});Je(this,"getSharedFormulas",t=>Vt(this,null,function*(){return(yield Promise.all(t.map(this.getSharedFormula))).filter($Q).reduce((n,i)=>(n[i.oid]=i,n),{})}));Je(this,"getSharedFormula",t=>Vt(this,null,function*(){return this.httpClient.get(`api/v1/formulas/${t}?flat=true`)}));Je(this,"getDataSourceFields",(t,r)=>{const{offset:n=0,count:i=9999}=r||{};return this.httpClient.post(`api/datasources/${encodeURIComponent(t)}/fields/search`,{offset:n,count:i,term:r==null?void 0:r.searchValue})});Je(this,"exportJaqlToXlsx",t=>this.httpClient.post("api/v1/export/jaql/xlsx",t,{},void 0,{returnBlob:!0}));if(!t)throw new D.TranslatableError("errors.httpClientNotFound");this.httpClient=t,this.defaultDataSource=r}}function $Q(e){return!!e}const d3=()=>{const{app:e}=ut();return{restApi:k.useMemo(()=>e&&new cf(e.httpClient,e.defaultDataSource),[e]),isReady:!!e}};class BQ extends D.TranslatableError{constructor(){super("errors.restApiNotReady")}}const HQ=e=>{const{isReady:t,restApi:r}=d3(),[n,i]=k.useState(),[a,o]=k.useState(),s=UQ();return k.useEffect(()=>{if(!s||!t||!r)return;Vt(exports,null,function*(){try{const c=VQ(e,s),d=zQ(c);if(d)i(d);else{GQ(e);let h;switch(e){case"world":h=r.getCountriesGeoJson;break;case"usa":h=r.getUsaStatesGeoJson;break;default:throw new D.TranslatableError("errors.unsupportedMapType",{mapType:e})}const p=yield h();if(!p)throw new D.TranslatableError("errors.mapLoadingFailed");const m=e==="world"?WQ(p):p;jQ(m,c),i(m)}}catch(c){o(c)}})},[r,t,e,s]),{geoJson:n,error:a}};function zQ(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function jQ(e,t){localStorage.setItem(t,JSON.stringify(e))}function WQ(e){const t=D.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function UQ(){const{app:e}=ut();return e==null?void 0:e.settings.serverVersion}function VQ(e,t){return`geoJson_${e}_${t}`}function GQ(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}const qQ=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{const{themeSettings:i}=gt(),{geoJson:a}=HQ(r.mapType),o=k.useMemo(()=>t.color?e.geoData:e.geoData.map(u=>B(M({},u),{color:w.getPaletteColor(i.palette.variantColors,0)})),[e.geoData,t,i]),s=k.useCallback((u,c)=>{if(!n)return;const d=FQ(u,t);n(d,c)},[t,n]);return w.jsx(w.Fragment,{children:a&&w.jsx(eW,{geoJson:a,geoData:o,dataOptions:{originalValueTitle:t.color?w.getDataOptionTitle(t.color):"",onAreaClick:s},mapType:r.mapType})})},h3=e=>e.type==="areamap"&&"geoData"in e,YQ=e=>"geo"in e,XQ=e=>"mapType"in e,KQ=e=>!!e.chartData&&h3(e.chartData)&&YQ(e.dataOptions)&&XQ(e.designOptions),ZQ={dataOptions:E6,data:nB,designOptions:oB,renderer:{ChartRendererComponent:qQ,isCorrectRendererProps:KQ}},QQ={[D.DateLevels.Years]:"attribute.datetimeName.years",[D.DateLevels.Quarters]:"attribute.datetimeName.quarters",[D.DateLevels.Months]:"attribute.datetimeName.months",[D.DateLevels.Weeks]:"attribute.datetimeName.weeks",[D.DateLevels.Days]:"attribute.datetimeName.days",[D.DateLevels.AggHours]:"attribute.datetimeName.hours",[D.DateLevels.AggMinutesRoundTo15]:"attribute.datetimeName.minutes"};function f3(e,t,r){return r?e(QQ[r],{columnName:t}):t}function p3(e,t,r){const n=D.getColumnNameFromAttribute(e),i=r?f3(r,n,t):n;return new D.DimensionalLevelAttribute(i,e.expression,t,D.DimensionalLevelAttribute.getDefaultFormatForGranularity(t),void 0,void 0,e.dataSource)}const Ya=e=>{var t;return{x:e.category.map(r=>w.normalizeColumn(r)),y:e.value.map(r=>w.normalizeMeasureColumn(r)),breakBy:((t=e.breakBy)==null?void 0:t.map(r=>w.normalizeColumn(r)))||[],seriesToColorMap:e.seriesToColorMap}};function ys(e){return[...e.x.map(mg),...e.breakBy.map(mg)].filter(m3)}function bs(e){return e.y.map(mg).filter(w.isMeasureColumn)}function _s(e){return"category"in e&&D.isArray(e.category)&&"value"in e&&D.isArray(e.value)&&"breakBy"in e&&D.isArray(e.breakBy)}function ws(e){return"x"in e&&D.isArray(e.x)&&e.x.every(w.isStyledColumn)&&"y"in e&&D.isArray(e.y)&&e.y.every(w.isStyledColumn)&&"breakBy"in e&&D.isArray(e.breakBy)&&e.breakBy.every(w.isStyledColumn)}function mg(e){return e.column}function m3(e){return!w.isMeasureColumn(e)}function df(e){return e.y.some(t=>t.showOnRightAxis)}function JQ(e){const t=w.normalizeColumn(e.date),r=w.normalizeMeasureColumn(e.value),n=t.column;return D.isDimensionalLevelAttribute(n)&&n.granularity!==D.DateLevels.Days&&(console.warn('The calendar heatmap chart’s "date" data option supports only day level granularity. Converted to day level.'),t.column=p3(n,D.DateLevels.Days)),{date:t,value:r}}function eJ(e){const t=e.date.column;return m3(t)?[t]:[]}function tJ(e){const t=e.value.column;return w.isMeasureColumn(t)?[t]:[]}function rJ(e){if(!("date"in e&&e.date&&"value"in e&&e.value))return!1;const r=w.normalizeColumn(e.date);return D.isDatetime(r.column.type)}function g3(e){return"date"in e&&"value"in e&&typeof e.date=="object"&&typeof e.value=="object"}function nJ(e,t){const r=w.getColumnByName(t,e.date.column.name),n=w.getColumnByName(t,e.value.column.name);if(!r||!n)return{type:w.CALENDAR_HEATMAP_DATA_TYPE,values:[]};const i=t.rows.map(a=>{const o=w.getValue(a,r),s=w.getValue(a,n),{compareValue:u,color:c}=w.getValues(a,[n])[0],h=!(u!=null&&u.valueIsNaN)&&!(u!=null&&u.valueUndefined)?s:void 0,p=w.isBlurred(a,n);return{date:new Date(o),value:h,color:c,blur:p}});return{type:w.CALENDAR_HEATMAP_DATA_TYPE,values:i}}function v3(e){return e.type===w.CALENDAR_HEATMAP_DATA_TYPE}function iJ(e){var t,r,n,i,a,o,s,u,c,d,h,p,m,v,g,b,C,x,E,T,A,R,N,I;return B(M({},Hr),{width:e.width,height:e.height,subtype:e.subtype||w.CALENDAR_HEATMAP_DEFAULTS.SUBTYPE,viewType:e.viewType||w.CALENDAR_HEATMAP_DEFAULTS.VIEW_TYPE,startOfWeek:e.startOfWeek||w.CALENDAR_HEATMAP_DEFAULTS.START_OF_WEEK,cellLabels:{enabled:(r=(t=e.cellLabels)==null?void 0:t.enabled)!=null?r:w.CALENDAR_HEATMAP_DEFAULTS.SHOW_CELL_LABEL,style:((n=e.cellLabels)==null?void 0:n.textStyle)||((i=e.cellLabels)==null?void 0:i.style)},dayLabels:{enabled:(o=(a=e.dayLabels)==null?void 0:a.enabled)!=null?o:w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL,style:((s=e.dayLabels)==null?void 0:s.textStyle)||((u=e.dayLabels)==null?void 0:u.style)},monthLabels:{enabled:(d=(c=e.monthLabels)==null?void 0:c.enabled)!=null?d:w.CALENDAR_HEATMAP_DEFAULTS.SHOW_MONTH_LABEL,style:((h=e.monthLabels)==null?void 0:h.textStyle)||((p=e.monthLabels)==null?void 0:p.style)},weekends:{enabled:(v=(m=e.weekends)==null?void 0:m.enabled)!=null?v:w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_ENABLED,days:(b=(g=e.weekends)==null?void 0:g.days)!=null?b:[...w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_DAYS],cellColor:(x=(C=e.weekends)==null?void 0:C.cellColor)!=null?x:w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR,hideValues:(T=(E=e.weekends)==null?void 0:E.hideValues)!=null?T:w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_HIDE_VALUES},pagination:{enabled:(R=(A=e.pagination)==null?void 0:A.enabled)!=null?R:w.CALENDAR_HEATMAP_DEFAULTS.SHOW_PAGINATION,style:(N=e.pagination)==null?void 0:N.textStyle,startMonth:(I=e.pagination)==null?void 0:I.startMonth}})}function aJ(e){return typeof e=="object"&&e!==null}function oJ(e=$u(),t=Bu){return(r,n)=>Hu(r,n,e,t)}function y3(){const{app:e}=ut();return k.useCallback((t,r)=>oJ(e==null?void 0:e.settings.locale,e==null?void 0:e.settings.dateConfig)(t,r),[e==null?void 0:e.settings.locale,e==null?void 0:e.settings.dateConfig])}var b3={exports:{}};(function(e,t){(function(r,n){e.exports=n(k)})(typeof self!="undefined"?self:w.commonjsGlobal,function(r){return function(n){function i(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}var a={};return i.m=n,i.c=a,i.d=function(o,s,u){i.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:u})},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=0)}([function(n,i,a){function o(){return o=Object.assign?Object.assign.bind():function(x){for(var E=1;E<arguments.length;E++){var T=arguments[E];for(var A in T)Object.prototype.hasOwnProperty.call(T,A)&&(x[A]=T[A])}return x},o.apply(this,arguments)}function s(x){return h(x)||d(x)||c(x)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
222
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(x,E){if(x){if(typeof x=="string")return p(x,E);var T=Object.prototype.toString.call(x).slice(8,-1);return T==="Object"&&x.constructor&&(T=x.constructor.name),T==="Map"||T==="Set"?Array.from(x):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?p(x,E):void 0}}function d(x){if(typeof Symbol!="undefined"&&x[Symbol.iterator]!=null||x["@@iterator"]!=null)return Array.from(x)}function h(x){if(Array.isArray(x))return p(x)}function p(x,E){(E==null||E>x.length)&&(E=x.length);for(var T=0,A=new Array(E);T<E;T++)A[T]=x[T];return A}function m(x){"@babel/helpers - typeof";return(m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(x)}Object.defineProperty(i,"__esModule",{value:!0}),a.d(i,"HighchartsReact",function(){return C});var v=a(1),g=a.n(v),b=typeof window!="undefined"?v.useLayoutEffect:v.useEffect,C=Object(v.memo)(Object(v.forwardRef)(function(x,E){var T=Object(v.useRef)(),A=Object(v.useRef)(),R=Object(v.useRef)(x.constructorType),N=Object(v.useRef)(x.highcharts);return b(function(){function I(){var G=x.highcharts||(typeof window=="undefined"?"undefined":m(window))==="object"&&window.Highcharts,Y=x.constructorType||"chart";G?G[Y]?x.options?A.current=G[Y](T.current,x.options,x.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(A.current){if(x.allowChartUpdate!==!1)if(x.constructorType!==R.current||x.highcharts!==N.current)R.current=x.constructorType,N.current=x.highcharts,I();else if(!x.immutable&&A.current){var H;(H=A.current).update.apply(H,[x.options].concat(s(x.updateArgs||[!0,!0])))}else I()}else I()},[x.options,x.allowChartUpdate,x.updateArgs,x.containerProps,x.highcharts,x.constructorType]),b(function(){return function(){A.current&&(A.current.destroy(),A.current=null)}},[]),Object(v.useImperativeHandle)(E,function(){return{get chart(){return A.current},container:T}},[]),g.a.createElement("div",o({},x.containerProps,{ref:T}))}));i.default=C},function(n,i){n.exports=r}])})})(b3);var sJ=b3.exports;const lJ=w.getDefaultExportFromCjs(sJ);function hf(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e},[e]),t.current}var _3={exports:{}};(function(e){(function(t){e.exports?e.exports=t:t(Highcharts)})(function(t){var r=t.relativeLength;t.wrap(t.seriesTypes.column.prototype,"translate",function(n){var i=this.options,a=i.topMargin||0,o=i.bottomMargin||0;n.call(this),this.points.forEach(function(s){var u=s.shapeArgs,c=u.width,d=u.height,h=u.x,p=u.y,m=r(i.borderRadiusTopLeft||0,c),v=r(i.borderRadiusTopRight||0,c),g=r(i.borderRadiusBottomRight||0,c),b=r(i.borderRadiusBottomLeft||0,c);if(m||v||g||b){var C=Math.min(c,d)/2;m>C&&(m=C),v>C&&(v=C),g>C&&(g=C),b>C&&(b=C),s.dlBox=s.shapeArgs,s.shapeType="path",s.shapeArgs={d:[["M",h+m,p+a],["L",h+c-v,p+a],["C",h+c-v/2,p,h+c,p+v/2,h+c,p+v],["L",h+c,p+d-g],["C",h+c,p+d-g/2,h+c-g/2,p+d,h+c-g,p+d+o],["L",h+b,p+d+o],["C",h+b/2,p+d,h,p+d-b/2,h,p+d-b],["L",h,p+m],["C",h,p+m/2,h+m/2,p,h+m,p],["Z"]]}}})})})})(_3);var uJ=_3.exports;const cJ=w.getDefaultExportFromCjs(uJ);var w3={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts!="undefined"?Highcharts:void 0)})(function(t){function r(n,i,a,o){n.hasOwnProperty(i)||(n[i]=o.apply(null,a),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:n[i]}})))}t=t?t._modules:{},r(t,"Extensions/SeriesLabel/SeriesLabelDefaults.js",[],function(){return{enabled:!0,connectorAllowed:!1,connectorNeighbourDistance:24,format:void 0,formatter:void 0,minFontSize:null,maxFontSize:null,onArea:null,style:{fontWeight:"bold"},useHTML:!1,boxesToAvoid:[]}}),r(t,"Extensions/SeriesLabel/SeriesLabelUtilities.js",[],function(){function n(a,o,s,u,c,d){return a=(d-o)*(s-a)-(u-o)*(c-a),0<a?!0:!(0>a)}function i(a,o,s,u,c,d,h,p){return n(a,o,c,d,h,p)!==n(s,u,c,d,h,p)&&n(a,o,s,u,c,d)!==n(a,o,s,u,h,p)}return{boxIntersectLine:function(a,o,s,u,c,d,h,p){return i(a,o,a+s,o,c,d,h,p)||i(a+s,o,a+s,o+u,c,d,h,p)||i(a,o+u,a+s,o+u,c,d,h,p)||i(a,o,a,o+u,c,d,h,p)},intersectRect:function(a,o){return!(o.left>a.right||o.right<a.left||o.top>a.bottom||o.bottom<a.top)}}}),r(t,"Extensions/SeriesLabel/SeriesLabel.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Chart/Chart.js"],t["Core/FormatUtilities.js"],t["Core/Defaults.js"],t["Extensions/SeriesLabel/SeriesLabelDefaults.js"],t["Extensions/SeriesLabel/SeriesLabelUtilities.js"],t["Core/Utilities.js"]],function(n,i,a,o,s,u,c){function d(O,F,X,W,V){var z=O.chart,q=O.options.label||{},ee=H(q.onArea,!!O.area),j=ee||q.connectorAllowed,K=z.boxesToAvoid,ie=Number.MAX_VALUE,ne=Number.MAX_VALUE,re,oe,se;for(se=0;K&&se<K.length;se+=1)if(T(K[se],{left:F,right:F+W.width,top:X,bottom:X+W.height}))return!1;for(se=0;se<z.series.length;se+=1){var de=z.series[se];if(K=de.interpolatedPoints&&g([],de.interpolatedPoints,!0),de.visible&&K){var ce=z.plotHeight/10;for(oe=z.plotTop;oe<=z.plotTop+z.plotHeight;oe+=ce)K.unshift({chartX:z.plotLeft,chartY:oe}),K.push({chartX:z.plotLeft+z.plotWidth,chartY:oe});for(ce=1;ce<K.length;ce+=1){if(K[ce].chartX>=F-16&&K[ce-1].chartX<=F+W.width+16){if(E(F,X,W.width,W.height,K[ce-1].chartX,K[ce-1].chartY,K[ce].chartX,K[ce].chartY))return!1;O===de&&!re&&V&&(re=E(F-16,X-16,W.width+32,W.height+32,K[ce-1].chartX,K[ce-1].chartY,K[ce].chartX,K[ce].chartY))}if((j||re)&&(O!==de||ee)){oe=F+W.width/2-K[ce].chartX;var ge=X+W.height/2-K[ce].chartY;ie=Math.min(ie,oe*oe+ge*ge)}}if(!ee&&j&&O===de&&(V&&!re||ie<Math.pow(q.connectorNeighbourDistance||1,2))){for(ce=1;ce<K.length;ce+=1)if(re=Math.min(Math.pow(F+W.width/2-K[ce].chartX,2)+Math.pow(X+W.height/2-K[ce].chartY,2),Math.pow(F-K[ce].chartX,2)+Math.pow(X-K[ce].chartY,2),Math.pow(F+W.width-K[ce].chartX,2)+Math.pow(X-K[ce].chartY,2),Math.pow(F+W.width-K[ce].chartX,2)+Math.pow(X+W.height-K[ce].chartY,2),Math.pow(F-K[ce].chartX,2)+Math.pow(X+W.height-K[ce].chartY,2)),re<ne){ne=re;var Se=K[ce]}re=!0}}}return!V||re?{x:F,y:X,weight:ie-(Se?ne:0),connectorPoint:Se}:!1}function h(O){O.boxesToAvoid=[];var F=O.labelSeries||[],X=O.boxesToAvoid;O.series.forEach(function(W){return(W.points||[]).forEach(function(V){return(V.dataLabels||[]).forEach(function(z){var q=z.getBBox(),ee=z.translateX+(W.xAxis?W.xAxis.pos:W.chart.plotLeft);z=z.translateY+(W.yAxis?W.yAxis.pos:W.chart.plotTop),X.push({left:ee,top:z,right:ee+q.width,bottom:z+q.height})})})}),F.forEach(function(W){var V=W.options.label||{};W.interpolatedPoints=p(W),X.push.apply(X,V.boxesToAvoid||[])}),O.series.forEach(function(W){function V(Ae,Ie,Ue){var Ve=Math.max(ne,H(_e,-1/0)),ir=Math.min(ne+oe,H(ve,1/0));return Ae>Ve&&Ae<=ir-Ue.width&&Ie>=re&&Ie<=re+se-Ue.height}var z=W.options.label;if(z&&(W.xAxis||W.yAxis)){var q="highcharts-color-"+H(W.colorIndex,"none"),ee=!W.labelBySeries,j=z.minFontSize,K=z.maxFontSize,ie=O.inverted,ne=ie?W.yAxis.pos:W.xAxis.pos,re=ie?W.xAxis.pos:W.yAxis.pos,oe=O.inverted?W.yAxis.len:W.xAxis.len,se=O.inverted?W.xAxis.len:W.yAxis.len,de=W.interpolatedPoints,ce=H(z.onArea,!!W.area),ge=[],Se=W.xData||[],ye,J=W.labelBySeries;if(ce&&!ie){ie=[W.xAxis.toPixels(Se[0]),W.xAxis.toPixels(Se[Se.length-1])];var _e=Math.min.apply(Math,ie),ve=Math.max.apply(Math,ie)}if(W.visible&&!W.boosted&&de){for(J||(J=W.name,typeof z.format=="string"?J=C(z.format,W,O):z.formatter&&(J=z.formatter.call(W)),W.labelBySeries=J=O.renderer.label(J,0,0,"connector",0,0,z.useHTML).addClass("highcharts-series-label highcharts-series-label-"+W.index+" "+(W.options.className||"")+" "+q),O.renderer.styledMode||(q=typeof W.color=="string"?W.color:"#666666",J.css(R({color:ce?O.renderer.getContrast(q):q},z.style||{})),J.attr({opacity:O.renderer.forExport?1:0,stroke:W.color,"stroke-width":1})),j&&K&&J.css({fontSize:j+(W.sum||0)/(W.chart.labelSeriesMaxSum||0)*(K-j)+"px"}),J.attr({padding:0,zIndex:3}).add()),j=J.getBBox(),j.width=Math.round(j.width),ie=de.length-1;0<ie;--ie)ce?(K=de[ie].chartX-j.width/2,q=(de[ie].chartCenterY||0)-j.height/2,V(K,q,j)&&(ye=d(W,K,q,j))):(K=de[ie].chartX+3,q=de[ie].chartY-j.height-3,V(K,q,j)&&(ye=d(W,K,q,j,!0)),ye&&ge.push(ye),K=de[ie].chartX+3,q=de[ie].chartY+3,V(K,q,j)&&(ye=d(W,K,q,j,!0)),ye&&ge.push(ye),K=de[ie].chartX-j.width-3,q=de[ie].chartY+3,V(K,q,j)&&(ye=d(W,K,q,j,!0)),ye&&ge.push(ye),K=de[ie].chartX-j.width-3,q=de[ie].chartY-j.height-3,V(K,q,j)&&(ye=d(W,K,q,j,!0))),ye&&ge.push(ye);if(z.connectorAllowed&&!ge.length&&!ce)for(K=ne+oe-j.width;K>=ne;K-=16)for(q=re;q<re+se-j.height;q+=16)(ye=d(W,K,q,j,!0))&&ge.push(ye);ge.length?(ge.sort(function(Ae,Ie){return Ie.weight-Ae.weight}),ye=ge[0],(O.boxesToAvoid||[]).push({left:ye.x,right:ye.x+j.width,top:ye.y,bottom:ye.y+j.height}),(de=Math.sqrt(Math.pow(Math.abs(ye.x-(J.x||0)),2)+Math.pow(Math.abs(ye.y-(J.y||0)),2)))&&W.labelBySeries&&(ge={opacity:O.renderer.forExport?1:0,x:ye.x,y:ye.y},z={opacity:1},10>=de&&(z={x:ge.x,y:ge.y},ge={}),de=void 0,ee&&(de=b(W.options.animation),de.duration*=.2),W.labelBySeries.attr(R(ge,{anchorX:ye.connectorPoint&&(ye.connectorPoint.plotX||0)+ne,anchorY:ye.connectorPoint&&(ye.connectorPoint.plotY||0)+re})).animate(z,de),W.options.kdNow=!0,W.buildKDTree(),W=W.searchPoint({chartX:ye.x,chartY:ye.y},!0))&&(J.closest=[W,ye.x-(W.plotX||0),ye.y-(W.plotY||0)])):J&&(W.labelBySeries=J.destroy())}else J&&(W.labelBySeries=J.destroy())}}),N(O,"afterDrawSeriesLabels")}function p(O){function F(ce){var ge=Math.round((ce.plotX||0)/8)+","+Math.round((ce.plotY||0)/8);ne[ge]||(ne[ge]=1,W.push(ce))}if(O.xAxis||O.yAxis){var X=O.points,W=[],V=O.graph||O.area,z=V&&V.element,q=O.chart.inverted,ee=O.xAxis,j=O.yAxis,K=q?j.pos:ee.pos;q=q?ee.pos:j.pos,ee=H((O.options.label||{}).onArea,!!O.area);var ie=j.getThreshold(O.options.threshold),ne={};if(O.getPointSpline&&z&&z.getPointAtLength&&!ee&&X.length<(O.chart.plotSizeX||0)/16){for(ee=V.toD&&V.attr("d"),V.toD&&V.attr({d:V.toD}),j=z.getTotalLength(),O=0;O<j;O+=16)ie=z.getPointAtLength(O),F({chartX:K+ie.x,chartY:q+ie.y,plotX:ie.x,plotY:ie.y});ee&&V.attr({d:ee});var re=X[X.length-1];F({chartX:K+(re.plotX||0),chartY:q+(re.plotY||0)})}else for(j=X.length,V=void 0,O=0;O<j;O+=1){re=X[O],z=re.plotX;var oe=re.plotY;if(I(z)&&I(oe)){var se={plotX:z,plotY:oe,chartX:K+z,chartY:q+oe};if(ee&&(se.chartCenterY=q+(oe+H(re.yBottom,ie))/2),V){re=Math.abs(se.chartX-V.chartX);var de=Math.abs(se.chartY-V.chartY);if(re=Math.max(re,de),16<re)for(re=Math.ceil(re/16),de=1;de<re;de+=1)F({chartX:V.chartX+de/re*(se.chartX-V.chartX),chartY:V.chartY+de/re*(se.chartY-V.chartY),chartCenterY:(V.chartCenterY||0)+de/re*((se.chartCenterY||0)-(V.chartCenterY||0)),plotX:(V.plotX||0)+de/re*(z-(V.plotX||0)),plotY:(V.plotY||0)+de/re*(oe-(V.plotY||0))})}F(se),V=se}}return W}}function m(O){if(this.renderer){var F=this,X=b(F.renderer.globalAnimation).duration;F.labelSeries=[],F.labelSeriesMaxSum=0,F.seriesLabelTimer&&c.clearTimeout(F.seriesLabelTimer),F.series.forEach(function(W){var V=W.options.label||{},z=W.labelBySeries,q=z&&z.closest;V.enabled&&W.visible&&(W.graph||W.area)&&!W.boosted&&F.labelSeries&&(F.labelSeries.push(W),V.minFontSize&&V.maxFontSize&&W.yData&&(W.sum=W.yData.reduce(function(ee,j){return(ee||0)+(j||0)},0),F.labelSeriesMaxSum=Math.max(F.labelSeriesMaxSum||0,W.sum||0)),O.type==="load"&&(X=Math.max(X,b(W.options.animation).duration)),q&&(typeof q[0].plotX!="undefined"?z.animate({x:q[0].plotX+q[1],y:q[0].plotY+q[2]}):z.attr({opacity:0})))}),F.seriesLabelTimer=G(function(){F.series&&F.labelSeries&&h(F)},F.renderer.forExport||!X?0:X)}}function v(O,F,X,W,V){var z=V&&V.anchorX;V=V&&V.anchorY;var q=X/2;if(I(z)&&I(V)){var ee=[["M",z,V]],j=F-V;0>j&&(j=-W-j),j<X&&(q=z<O+X/2?j:X-j),V>F+W?ee.push(["L",O+q,F+W]):V<F?ee.push(["L",O+q,F]):z<O?ee.push(["L",O,F+W/2]):z>O+X&&ee.push(["L",O+X,F+W/2])}return ee||[]}var g=this&&this.__spreadArray||function(O,F,X){if(X||arguments.length===2)for(var W=0,V=F.length,z;W<V;W++)!z&&W in F||(z||(z=Array.prototype.slice.call(F,0,W)),z[W]=F[W]);return O.concat(z||Array.prototype.slice.call(F))},b=n.animObject,C=a.format,x=o.setOptions,E=u.boxIntersectLine,T=u.intersectRect,A=c.addEvent,R=c.extend,N=c.fireEvent,I=c.isNumber,H=c.pick,G=c.syncTimeout,Y=[];return{compose:function(O,F){Y.indexOf(O)===-1&&(Y.push(O),A(i,"load",m),A(i,"redraw",m)),Y.indexOf(F)===-1&&(Y.push(F),F.prototype.symbols.connector=v),Y.indexOf(x)===-1&&(Y.push(x),x({plotOptions:{series:{label:s}}}))}}}),r(t,"masters/modules/series-label.src.js",[t["Core/Globals.js"],t["Extensions/SeriesLabel/SeriesLabel.js"]],function(n,i){i.compose(n.Chart,n.SVGRenderer)})})})(w3);var dJ=w3.exports;const hJ=w.getDefaultExportFromCjs(dJ);var C3={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts!="undefined"?Highcharts:void 0)})(function(t){function r(n,i,a,o){n.hasOwnProperty(i)||(n[i]=o.apply(null,a),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:n[i]}})))}t=t?t._modules:{},r(t,"Series/Streamgraph/StreamgraphSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(n,i){var a=this&&this.__extends||function(){var c=function(d,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},c(d,h)};return function(d,h){function p(){this.constructor=d}c(d,h),d.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}(),o=n.seriesTypes.areaspline,s=i.merge;i=i.extend;var u=function(c){function d(){var h=c!==null&&c.apply(this,arguments)||this;return h.data=void 0,h.points=void 0,h.options=void 0,h}return a(d,c),d.prototype.streamStacker=function(h,p,m){h[0]-=p.total/2,h[1]-=p.total/2,this.stackedYData[m]=h},d.defaultOptions=s(o.defaultOptions,{fillOpacity:1,lineWidth:0,marker:{enabled:!1},stacking:"stream"}),d}(o);return i(u.prototype,{negStacks:!1}),n.registerSeriesType("streamgraph",u),u}),r(t,"masters/modules/streamgraph.src.js",[],function(){})})})(C3);var fJ=C3.exports;const pJ=w.getDefaultExportFromCjs(fJ),mJ=()=>{typeof w.Highcharts=="object"&&(hJ(w.Highcharts),pJ(w.Highcharts)),function(e){e.seriesTypes.line.prototype.drawLegendSymbol=e.seriesTypes.area.prototype.drawLegendSymbol,w.Highcharts.wrap(w.Highcharts.Series.types.treemap.prototype,"pointAttribs",function(t,...r){var a;const n=t.call(this,...r),i=r[0];return(a=i.options.custom)!=null&&a.blur&&(n.fill=w.Highcharts.color(i.color).setOpacity(.2).get("rgba"),n.stroke=w.Highcharts.color(n.stroke).setOpacity(.2).get("rgba")),n})}(w.Highcharts),function(e){e.Point.prototype.importEvents=function(){const t=this;this.importedEvents&&this.importedEvents.forEach(function(i){i()}),this.importedEvents=[];const r=e.merge(t.series.options.point,t.options),n=r.events;t.events=n,e.objectEach(n,function(i,a){e.isFunction(i)&&t.importedEvents.push(e.addEvent(t,a,i))})}}(w.Highcharts),cJ(w.Highcharts)};mJ();const gJ={style:{height:"100%",width:"100%"}},Vy=({options:e})=>{var m,v,g,b,C,x,E,T,A,R,N,I,H,G,Y,O,F,X,W;const t=hf(e),r=k.useCallback(V=>{var q,ee,j,K,ie,ne,re,oe;const z=e;!((K=(j=(ee=(q=z==null?void 0:z.plotOptions)==null?void 0:q.series)==null?void 0:ee.point)==null?void 0:j.events)!=null&&K.click)&&!((oe=(re=(ne=(ie=z==null?void 0:z.plotOptions)==null?void 0:ie.series)==null?void 0:ne.point)==null?void 0:re.events)!=null&&oe.contextmenu)&&(V.container.onclick=null)},[e]),n=V=>V==null?void 0:V.some(({data:z})=>z.some(q=>!!q.marker)),i=(t==null?void 0:t.xAxis)&&(e==null?void 0:e.xAxis)&&((m=t==null?void 0:t.xAxis[0])==null?void 0:m.type)!==((v=e==null?void 0:e.xAxis[0])==null?void 0:v.type),a=!!t&&((g=t==null?void 0:t.navigator)==null?void 0:g.enabled)!==((b=e==null?void 0:e.navigator)==null?void 0:b.enabled),o=n(t==null?void 0:t.series)&&!n(e==null?void 0:e.series),s=!!t&&((C=t==null?void 0:t.chart)==null?void 0:C.type)!==((x=e==null?void 0:e.chart)==null?void 0:x.type),u=!!t&&((R=(A=(T=(E=t==null?void 0:t.xAxis)==null?void 0:E[0])==null?void 0:T.categories)==null?void 0:A.length)!=null?R:0)!==((G=(H=(I=(N=e==null?void 0:e.xAxis)==null?void 0:N[0])==null?void 0:I.categories)==null?void 0:H.length)!=null?G:0),c=!!t&&((Y=t==null?void 0:t.series)!=null?Y:[]).some((V,z)=>{var q,ee,j,K,ie,ne;return((ee=(q=V==null?void 0:V.data)==null?void 0:q.length)!=null?ee:0)!==((ne=(ie=(K=(j=e==null?void 0:e.series)==null?void 0:j[z])==null?void 0:K.data)==null?void 0:ie.length)!=null?ne:0)}),d=!!t&&((F=(O=t==null?void 0:t.series)==null?void 0:O.length)!=null?F:0)!==((W=(X=e==null?void 0:e.series)==null?void 0:X.length)!=null?W:0),h=i||a||s||o||u||c||d,p=k.useMemo(()=>D.cloneDeep(e),[e]);return w.jsx(lJ,{highcharts:w.Highcharts,options:p,containerProps:gJ,immutable:h,callback:r})};function vJ(e,t,r,n){return D.baseForOwn(e,function(i,a,o){t(n,r(i),a,o)}),n}function yJ(e,t){return function(r,n){return vJ(r,e,t(n),{})}}var bJ=Object.prototype,_J=bJ.toString,wJ=yJ(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=_J.call(t)),e[t]=r},D.constant(D.identity)),Gy=(e=>(e.SUNDAY="sunday",e.MONDAY="monday",e.TUESDAY="tuesday",e.WEDNESDAY="wednesday",e.THURSDAY="thursday",e.FRIDAY="friday",e.SATURDAY="saturday",e))(Gy||{});const x3={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},CJ=wJ(x3);function zu(e){return x3[e]}function xJ(e){return CJ[e]}function qy(e,t,r=w.SINGLE_LETTER_DAY_DATE_FORMAT){const n=new Date(w.REFERENCE_SUNDAY_DATE),i=zu(e),a=[];for(let o=i;o<i+w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK;o++){const s=new Date(n);s.setDate(n.getDate()+o);const u=t(s,r);a.push(u)}return a}function TJ(e){const t=w.getPaletteColor(e.palette.variantColors,0),r=w.scaleBrightness(t,w.CALENDAR_HEATMAP_COLORS.MIN_COLOR_BRIGHTNESS_PERCENT),n=w.scaleBrightness(r,w.CALENDAR_HEATMAP_COLORS.MAX_COLOR_BRIGHTNESS_PERCENT);return{type:"range",minColor:r,maxColor:n}}function SJ(e){if(!e)return r=>r;const t=w.createDataColoringFunction({getValueFromDataStructure:r=>{var n;return(n=r.value)!=null?n:0},applyColorToDataStructure:(r,n)=>B(M({},r),{color:r.color||n})});return r=>B(M({},r),{values:t(r.values,e)})}function T3(e,t){if(e==="calendar-heatmap/continuous"){let r;switch(t){case w.ViewType.MONTH:r=1;break;case w.ViewType.QUARTER:r=3;break;case w.ViewType.HALF_YEAR:r=6;break;case w.ViewType.YEAR:r=6;break;default:r=1}const n=Math.ceil(r*5);return{rows:w.CALENDAR_HEATMAP_SIZING.ROWS,cols:n}}else return{rows:w.CALENDAR_HEATMAP_SIZING.ROWS,cols:w.CALENDAR_HEATMAP_SIZING.COLUMNS}}function S3(e,t,r){if(r==="calendar-heatmap/continuous")return e===w.ViewType.YEAR?{cols:1,rows:2}:{cols:1,rows:1};const n=t.height>t.width;switch(e){case w.ViewType.MONTH:return{cols:1,rows:1};case w.ViewType.QUARTER:return n?{cols:1,rows:3}:{cols:3,rows:1};case w.ViewType.HALF_YEAR:return n?{cols:2,rows:3}:{cols:3,rows:2};case w.ViewType.YEAR:return n?{cols:3,rows:4}:t.width/t.height>2.5?{cols:6,rows:2}:{cols:4,rows:3};default:return{cols:1,rows:1}}}function EJ(e,t,r){const n=S3(t,e,r),i=e.height-w.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT,a=(n.cols-1)*w.CALENDAR_HEATMAP_SIZING.GAP_WIDTH,o=(n.rows-1)*w.CALENDAR_HEATMAP_SIZING.GAP_HEIGHT,s=(e.width-a-w.CALENDAR_HEATMAP_SIZING.MARGINS.LEFT-w.CALENDAR_HEATMAP_SIZING.MARGINS.RIGHT)/n.cols,u=t!==w.ViewType.MONTH?w.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT:0,c=(i-o-w.CALENDAR_HEATMAP_SIZING.MARGINS.TOP-w.CALENDAR_HEATMAP_SIZING.MARGINS.BOTTOM)/n.rows-u;return{width:s,height:c}}function MJ(e,t,r,n){var d;if(!((d=e.values)!=null&&d.length)){const h=T3(r,n);return{rows:h.rows,cols:h.cols}}const i=e.values.map(h=>new Date(h.date)).sort((h,p)=>h.getTime()-p.getTime()),a=i[0],o=zu(t),u=(a.getDay()-o+w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=Math.ceil((i.length+u)/w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);return{rows:w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,cols:c}}function AJ(e,t){if(e==="calendar-heatmap/split")return{left:0,top:0,right:0};const r=t.width>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return{left:r?60:0,top:r?30:0,right:10}}function PJ(e,t,r,n){const i=e/r,a=t/n,o=Math.min(i,a);return Math.max(w.CALENDAR_HEATMAP_SIZING.MIN_CELL_SIZE,Math.min(w.CALENDAR_HEATMAP_SIZING.MAX_CELL_SIZE,o))}function RJ(e,t,r,n,i){const a=EJ(e,r,t),o=t==="calendar-heatmap/continuous"?MJ(n,i,t,r):T3(t,r),s=AJ(t,e),u=a.width-s.left-s.right,c=a.height-s.top,d=PJ(u,c,o.cols,o.rows),h=o.cols*d,p=o.rows*d,m=Math.min(u,h)+s.left+s.right,v=Math.min(c,p)+s.top;if(t==="calendar-heatmap/continuous")return{width:Math.floor(m),height:Math.floor(v),cellSize:Math.floor(d)};const g=Math.floor(Math.min(m,v));return{width:g,height:g,cellSize:Math.floor(d)}}function OJ(e){return new Date(e.year,e.month,2)}function gm(e){return{year:e.getFullYear(),month:e.getMonth()}}function Ei(e,t){return e.year!==t.year?e.year-t.year:e.month-t.month}function kJ(e,t,r){const n=Ei(e,t)>=0,i=Ei(e,r)<=0;return n&&i}function Nl(e,t){let{year:r,month:n}=e;for(n+=t;n>11;)n-=12,r++;for(;n<0;)n+=12,r--;return{year:r,month:n}}function vm(e,t,r){if(e.length>=t)return e;if(e.length===0){const s=new Date,u={year:s.getFullYear(),month:s.getMonth()},c=Nl(u,t-1);return La(u,c,r)}const n=e[e.length-1],i=t-e.length,a=Nl(n,i),o=La(Nl(n,1),a,r);return[...e,...o]}function La(e,t,r){const n=[],i={year:e.year,month:e.month};for(;Ei(i,t)<=0;){const a=OJ(i);n.push({year:i.year,month:i.month,monthName:r(a,w.FULL_MONTH_DATE_FORMAT),shortMonthName:r(a,w.SHORT_MONTH_DATE_FORMAT)}),i.month++,i.month>11&&(i.month=0,i.year++)}return n}function DJ(e,t,r){if(e.length===0)return La(t,t,r);const n=e[0];if(Ei(t,n)>=0)return e;const i={year:n.month===0?n.year-1:n.year,month:n.month===0?11:n.month-1};return[...La(t,i,r),...e]}function NJ(e,t,r){if(e.length===0)return La(t,t,r);const n=e[e.length-1];if(Ei(t,n)<=0)return e;const i={year:n.month===11?n.year+1:n.year,month:n.month===11?0:n.month+1},a=La(i,t,r);return[...e,...a]}function IJ(e){return e<=w.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD}function LJ(e,t){if(!e.values||e.values.length===0)return[];const r=new Set,n=[];return e.values.forEach(i=>{const a=i.date.getFullYear(),o=i.date.getMonth(),s=`${a}-${o}`;r.has(s)||(r.add(s),n.push({year:a,month:o,monthName:t(i.date,w.FULL_MONTH_DATE_FORMAT),shortMonthName:t(i.date,w.SHORT_MONTH_DATE_FORMAT)}))}),n.sort((i,a)=>Ei(i,a))}function FJ(e,t,r,n){const i=LJ(e,t),a=n?Yy(n):1;if(!r)return vm(i,a,t);if(i.length===0){const c=Nl(r,a-1);return La(r,c,t)}const o=i[0],s=i[i.length-1];if(kJ(r,o,s))return vm(i,a,t);let u;if(Ei(r,o)<0)u=DJ(i,r,t);else{const c=Nl(r,a-1);u=NJ(i,c,t)}return vm(u,a,t)}function Yy(e){switch(e){case w.ViewType.MONTH:return 1;case w.ViewType.QUARTER:return 3;case w.ViewType.HALF_YEAR:return 6;case w.ViewType.YEAR:return 12;default:return 1}}function Xy(e,t,r){const n=Yy(r),i=e.findIndex(u=>Ei(u,t)===0),a=i>=0?i:0;if(n===1)return e.slice(a,a+1);let o=a,s=Math.min(o+n,e.length);return s-o<n&&e.length>=n&&(o=Math.max(0,e.length-n),s=e.length),e.slice(o,s)}const $J=Ye.div`
223
- display: grid;
224
- column-gap: 30px;
225
- row-gap: 10px;
226
- grid-template-columns: repeat(${e=>e.gridCols}, 1fr);
227
- grid-template-rows: repeat(${e=>e.gridRows}, 1fr);
228
- background-color: transparent;
229
- place-items: center; /* Center each grid item horizontally and vertically */
230
- `,BJ=Ye.div`
231
- display: flex;
232
- flex-direction: column;
233
- align-items: center;
234
- `,HJ=Ye.h3`
235
- font-size: 13px;
236
- font-weight: 400;
237
- color: #333;
238
- text-align: center;
239
- text-transform: capitalize;
240
- margin: 0;
241
- height: ${w.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT}px;
242
- `,zJ=({monthCharts:e,availableMonths:t,currentMonth:r,subtype:n,viewType:i,monthLabels:a,size:o})=>{const{themeSettings:s}=gt(),u=k.useMemo(()=>S3(i,o,n),[i,n,o]);if(t.length===0)return null;const c=Xy(t,r,i);return w.jsx($J,{viewType:i,gridCols:u.cols,gridRows:u.rows,children:e.map((d,h)=>{var v,g,b;if(!d)return null;const p=c[h];if(!p)return null;const m=IJ((v=d.chart.width)!=null?v:0);return w.jsxs(BJ,{children:[(a==null?void 0:a.enabled)&&i!==w.ViewType.MONTH&&n==="calendar-heatmap/split"&&w.jsx(HJ,{style:B(M({},a.style),{color:((g=a.style)==null?void 0:g.color)||(s==null?void 0:s.chart.textColor),fontFamily:((b=a.style)==null?void 0:b.fontFamily)||(s==null?void 0:s.typography.fontFamily)}),children:m?p.shortMonthName:p.monthName}),w.jsx(Vy,{options:d})]},`${p.year}-${p.month}`)})})},gg=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return w.jsx("svg",B(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:w.jsx("path",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",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"})}))},vg=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return w.jsx("svg",B(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:w.jsx("path",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 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.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}))},b2=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return w.jsx("svg",B(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:w.jsxs("g",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",children:[w.jsx("path",{d:"M11.61 15.62l2.97-3.33-2.83-3.16a.39.39 0 1 1 .59-.5l3.05 3.42a.39.39 0 0 1 0 .5l-3.19 3.58a.39.39 0 1 1-.59-.5zm-3.87 0l2.97-3.33-2.83-3.16a.39.39 0 1 1 .59-.5l3.05 3.42a.39.39 0 0 1 0 .5l-3.19 3.58a.39.39 0 1 1-.59-.5z"}),w.jsx("path",{d:"M16.26 15.86a.39.39 0 0 1-.77 0v-6.97a.39.39 0 0 1 .77 0v6.97z"})]})}))};function jJ(e,t,r){const n=Xy(e,t,r);if(n.length===0)return"";if(r==="month"){const o=n[0];return o?`${o.monthName} ${o.year}`:""}const i=n[0].year,a=n[n.length-1].year;return i===a?`${i}`:`${i} - ${a}`}const WJ=Ye.div`
243
- display: flex;
244
- justify-content: center;
245
- align-items: center;
246
- padding: 10px 20px;
247
- background-color: transparent;
248
- height: ${w.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT}px;
249
- opacity: 1;
250
- transition: opacity 0.3s ease;
251
- box-sizing: border-box;
252
- `,Co=Ye.button`
253
- padding: 0;
254
- background-color: transparent;
255
- border: none;
256
- border-radius: 4px;
257
- cursor: ${e=>e.disabled?"not-allowed":"pointer"};
258
- display: flex;
259
- align-items: center;
260
- justify-content: center;
261
- transition: all 0.2s ease;
262
- opacity: ${e=>e.disabled?.3:1};
263
-
264
- &:hover {
265
- background-color: ${e=>e.disabled?"transparent":"rgba(0, 0, 0, 0.05)"};
266
- }
267
- `,UJ=Ye.div`
268
- font-size: 15px;
269
- font-weight: 400;
270
- color: ${({theme:e})=>e.chart.textColor};
271
- font-family: ${({theme:e})=>e.typography.fontFamily};
272
- min-width: 110px;
273
- text-align: center;
274
- margin: 0 10px;
275
- text-transform: capitalize;
276
- `,VJ=({value:e,availableMonths:t,viewType:r,onChange:n,labelStyle:i})=>{const{themeSettings:a}=gt(),{t:o}=w.useTranslation(),s=Yy(r),u=t.findIndex(Y=>Ei(Y,e)===0),c=()=>{const Y=t[0];Y&&n({year:Y.year,month:Y.month})},d=()=>{if(u>0){const Y=t[u-1];n({year:Y.year,month:Y.month})}},h=()=>{if(u<t.length-1){const Y=t[u+1];n({year:Y.year,month:Y.month})}},p=()=>{const Y=Math.max(0,t.length-s),O=t[Y];O&&n({year:O.year,month:O.month})},m=()=>{const Y=Math.max(0,u-s),O=t[Y];O&&n({year:O.year,month:O.month})},v=()=>{const Y=Math.min(t.length-s,u+s),O=t[Y];O&&n({year:O.year,month:O.month})},g=u===0,b=s===1?t.length-1:Math.max(0,t.length-s),C=u>=b,x=u>0,E=u<b,T=jJ(t,e,r),A=o("calendarHeatmap.navigation.firstMonth"),R=o("calendarHeatmap.navigation.lastMonth"),N=o("calendarHeatmap.navigation.previousMonth"),I=o("calendarHeatmap.navigation.nextMonth"),H=o("calendarHeatmap.navigation.previousGroup"),G=o("calendarHeatmap.navigation.nextGroup");return w.jsxs(WJ,{children:[w.jsx(Co,{disabled:g,onClick:c,title:A,"aria-label":A,theme:a,children:w.jsx(b2,{direction:"left",disabled:g,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==w.ViewType.MONTH&&w.jsx(Co,{disabled:g,onClick:m,title:H,"aria-label":H,children:w.jsx(vg,{direction:"left",disabled:g,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),w.jsx(Co,{disabled:r===w.ViewType.MONTH?g:!x,onClick:d,title:N,"aria-label":N,children:w.jsx(gg,{direction:"left",disabled:r===w.ViewType.MONTH?g:!x,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),w.jsx(UJ,{theme:a,style:i,children:T}),w.jsx(Co,{disabled:r===w.ViewType.MONTH?C:!E,onClick:h,title:I,"aria-label":I,children:w.jsx(gg,{direction:"right",disabled:r===w.ViewType.MONTH?C:!E,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==w.ViewType.MONTH&&w.jsx(Co,{disabled:C,onClick:v,title:G,"aria-label":G,children:w.jsx(vg,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),w.jsx(Co,{disabled:C,onClick:p,title:R,"aria-label":R,children:w.jsx(b2,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})})]})};function vd(e){return e===null}const GJ=e=>typeof e=="object"&&e!==null,_2=(e,t)=>{if(!GJ(e))return;const r=e[t];return typeof r=="string"?r:void 0},qJ=function(){const e=this.name,t=_2(this.options,"id"),r=!this.visible;this.chart.series.filter(i=>{if(i===this)return!1;const a=_2(i.options,"statisticalSeriesRelatesToSeries");return a===void 0?!1:a===e||t!==void 0&&a===t}).forEach(i=>i.setVisible(r,!1))},E3=(e,t,{onDataPointClick:r,onDataPointContextMenu:n,onDataPointsSelected:i}={})=>{var o,s;const a={chart:{events:{drilldown:function(){var u,c;((c=(u=this.options)==null?void 0:u.chart)==null?void 0:c.type)==="pie"&&(this.isDrillingDownAction=!0)},redraw:function(){var u,c;((c=(u=this.options)==null?void 0:u.chart)==null?void 0:c.type)==="pie"&&(this.isDrillingDownAction?delete this.isDrillingDownAction:this.drillUp())}}},plotOptions:{series:{events:{legendItemClick:qJ},point:{events:{click:()=>{}}}}}};return i&&(((o=e.chart)==null?void 0:o.type)!=="heatmap"&&(a.chart.zoomType="x"),["scatter","bubble"].includes((s=e.chart)==null?void 0:s.type)&&(a.chart.zoomType="xy"),a.chart.events.selection=u=>{u.preventDefault();const{xAxis:c,yAxis:d,originalEvent:h}=u,p=XJ(c[0],d[0]);p.forEach(m=>{m.state=""}),i(p.map(m=>mm(m,t)),h)}),r&&(a.plotOptions.series.point.events.click=u=>{!!u.point.options&&(u.point.state="hover",r(mm(u.point,t),u))}),n&&(a.plotOptions.series.point.events.contextmenu=u=>{u.preventDefault(),n(mm(u.point,t),u)}),w.merge$1(e,a)};function YJ(e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n}={}){return i=>E3(i,e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n})}const XJ=(e,t)=>{const r=e.axis.series.flatMap(i=>i.points).filter(({x:i,y:a})=>{const o=i>=e.min&&i<=e.max,s=!vd(a);return o&&s});if(!t)return r;const n=t.axis.series.flatMap(i=>i.points).filter(({y:i})=>i>=t.min&&i<=t.max);return r.filter(i=>n.includes(i))},KJ=600,ZJ=300,M3=(e,t,r)=>{const n={duration:t.chart.animation.init.duration==="auto"?KJ:t.chart.animation.init.duration},i={duration:t.chart.animation.redraw.duration==="auto"?ZJ:t.chart.animation.redraw.duration};return w.merge(e,{accessibility:{enabled:r},chart:{animation:i},plotOptions:{series:{animation:n}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})};function QJ(e,t){return r=>M3(r,e,t)}const A3=(e,t)=>{var p;if(!t)return e;const r={backgroundColor:t.chart.backgroundColor},n={style:{fontFamily:t.typography.fontFamily}},i={itemStyle:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},o={series:{dataLabels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}}},s={activeDataLabelStyle:{color:t.chart.textColor},breadcrumbs:{buttonTheme:{fill:t.general.brandColor,stroke:t.general.brandColor,style:{color:t.general.primaryButtonTextColor},states:{hover:{fill:t.general.primaryButtonHoverColor,stroke:t.general.primaryButtonHoverColor}}}}},u={chart:r,tooltip:n,legend:i,plotOptions:o,drilldown:s},c={labels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},title:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},d={color:t==null?void 0:t.chart.backgroundColor,label:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},h=w.merge(u,e);return h.xAxis=(p=h.xAxis)==null?void 0:p.map(m=>{var g;m.plotBands=(g=m.plotBands)==null?void 0:g.map(b=>w.merge(b,B(M({},d),{color:t==null?void 0:t.chart.backgroundColor})));const v=w.merge(m,c);return v.stackLabels&&(v.stackLabels.style=M({color:t.chart.textColor,fontFamily:t.typography.fontFamily},v.stackLabels.style)),v}),h.yAxis&&(h.yAxis=h.yAxis.map(m=>{var g;m.plotBands=(g=m.plotBands)==null?void 0:g.map(b=>w.merge(b,B(M({},d),{color:b.color||(t==null?void 0:t.chart.backgroundColor)})));const v=w.merge(m,c);return v.stackLabels&&(v.stackLabels.style=M({color:t.chart.textColor,fontFamily:t.typography.fontFamily},v.stackLabels.style)),v})),h};function JJ(e){return t=>A3(t,e)}const P3=({highchartsOptionsBuilder:e,chartData:t,dataOptions:r,designOptions:n,extraConfig:i,dataPointsEventHandlers:a,onBeforeRender:o})=>{const s={chartData:t,dataOptions:r,designOptions:n,extraConfig:i};return w.flow(QJ(i.themeSettings,i.accessibilityEnabled),YJ(r,a),JJ(i.themeSettings),eee(o))(M(B(M({chart:e.getChart(s),series:e.getSeries(s)},e.getAxes(s)),{legend:e.getLegend(s),plotOptions:e.getPlotOptions(s),tooltip:e.getTooltip(s)}),e.getExtras(s)))};function eee(e){return e||(t=>t)}function R3(){var i;const{app:e}=ut(),{t}=w.useTranslation(),{themeSettings:r}=gt(),n=y3();return k.useMemo(()=>{var a;return{translate:t,themeSettings:r,dateFormatter:n,accessibilityEnabled:((a=e==null?void 0:e.settings.accessibilityConfig)==null?void 0:a.enabled)||!1}},[t,r,n,(i=e==null?void 0:e.settings.accessibilityConfig)==null?void 0:i.enabled])}function yg(e){const t=e*w.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(w.CALENDAR_TYPOGRAPHY.MIN_AXIS_FONT_SIZE,Math.min(w.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function tee(e){return e<30?e*.5:0}function ree(e,t,r,n=0){if(!e.values||e.values.length===0)return[];const i=e.values.map(m=>new Date(m.date)).sort((m,v)=>m.getTime()-v.getTime()),a=i[0],o=zu(r),u=(a.getDay()-o+w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=new Map;i.forEach((m,v)=>{const g=`${m.getFullYear()}-${m.getMonth()}`,b=Math.floor((v+u)/w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);if(!c.has(g))c.set(g,{firstDate:m,lastDate:m,firstColumn:b,lastColumn:b});else{const C=c.get(g);C.lastDate=m,C.lastColumn=b}});const d=i.length,h=Math.ceil((d+u)/w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK),p=new Array(h).fill("");return Array.from(c.entries()).forEach(([m,v])=>{const{firstDate:g,firstColumn:b,lastColumn:C}=v,x=(C-b)*n,E=b+Math.floor((C-b)/2),T=t(g,x>w.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD?w.FULL_MONTH_DATE_FORMAT:w.SHORT_MONTH_DATE_FORMAT);E>=0&&E<p.length&&(p[E]=T)}),p}function nee(e){var v,g,b,C,x,E,T,A,R,N,I,H,G,Y,O,F,X,W,V,z,q;const t=(v=e.designOptions.cellSize)!=null?v:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=e.designOptions.monthLabels,a=e.designOptions.viewType,o=qy(r,e.extraConfig.dateFormatter,w.THREE_LETTER_DAY_DATE_FORMAT).reverse(),s=((g=n.style)==null?void 0:g.color)||((b=e.extraConfig.themeSettings)==null?void 0:b.chart.textColor),u=((C=n.style)==null?void 0:C.fontFamily)||((x=e.extraConfig.themeSettings)==null?void 0:x.typography.fontFamily),c=(T=(E=n.style)==null?void 0:E.fontSize)!=null?T:`${yg(t)}px`,d=((A=i.style)==null?void 0:A.color)||((R=e.extraConfig.themeSettings)==null?void 0:R.chart.textColor),h=((N=i.style)==null?void 0:N.fontFamily)||((I=e.extraConfig.themeSettings)==null?void 0:I.typography.fontFamily),p=(G=(H=i.style)==null?void 0:H.fontSize)!=null?G:`${yg(t)}px`;return{xAxis:[{categories:ree(e.chartData,e.extraConfig.dateFormatter,r,e.designOptions.cellSize),opposite:!0,lineWidth:0,gridLineWidth:0,offset:0,labels:{enabled:i.enabled&&a!==w.ViewType.MONTH,rotation:0,overflow:"justify",style:M(M({fontSize:p,color:d,fontFamily:h,textOverflow:"none"},((Y=i.style)==null?void 0:Y.fontWeight)&&{fontWeight:i.style.fontWeight}),((O=i.style)==null?void 0:O.fontStyle)&&{fontStyle:i.style.fontStyle})},accessibility:{description:"months",rangeDescription:"X Axis shows months in chronological order."}}],yAxis:[{categories:n.enabled?[...o]:[],opposite:!1,lineWidth:0,gridLineWidth:0,offset:15,title:{text:null},labels:{rotation:0,style:M(M(M(M(M({fontSize:c,color:s,fontFamily:u},((F=n.style)==null?void 0:F.fontWeight)&&{fontWeight:n.style.fontWeight}),((X=n.style)==null?void 0:X.fontStyle)&&{fontStyle:n.style.fontStyle}),((W=n.style)==null?void 0:W.textOutline)&&{textOutline:n.style.textOutline}),((V=n.style)==null?void 0:V.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((z=n.style)==null?void 0:z.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((q=e.designOptions.height)!=null?q:0)>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD},accessibility:{description:"days of week",rangeDescription:`Y Axis shows days of the week, starting with ${r===Gy.MONDAY?"Monday":"Sunday"}.`}}]}}function iee(e){var c,d,h,p,m,v,g,b,C,x,E,T,A;const t=(c=e.designOptions.cellSize)!=null?c:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=tee(t),a=qy(r,e.extraConfig.dateFormatter,w.SINGLE_LETTER_DAY_DATE_FORMAT),o=((d=n.style)==null?void 0:d.color)||((h=e.extraConfig.themeSettings)==null?void 0:h.chart.textColor),s=((p=n.style)==null?void 0:p.fontFamily)||((m=e.extraConfig.themeSettings)==null?void 0:m.typography.fontFamily),u=(g=(v=n.style)==null?void 0:v.fontSize)!=null?g:`${yg(t)}px`;return{xAxis:[{categories:n.enabled?[...a]:[],opposite:!0,lineWidth:0,offset:0,labels:{rotation:0,y:i,style:M(M(M(M(M({fontSize:u,color:o,fontFamily:s},((b=n.style)==null?void 0:b.fontWeight)&&{fontWeight:n.style.fontWeight}),((C=n.style)==null?void 0:C.fontStyle)&&{fontStyle:n.style.fontStyle}),((x=n.style)==null?void 0:x.textOutline)&&{textOutline:n.style.textOutline}),((E=n.style)==null?void 0:E.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((T=n.style)==null?void 0:T.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((A=e.designOptions.width)!=null?A:0)>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD},accessibility:{description:"weekdays",rangeDescription:`X Axis is showing all 7 days of the week, starting with ${r===Gy.MONDAY?"Monday":"Sunday"}.`}}],yAxis:[{categories:[],min:0,max:5,tickInterval:1,gridLineWidth:0,title:{text:null},accessibility:{description:"weeks"},visible:!1}]}}function O3(e){var n,i;const t=(n=e.designOptions.width)!=null?n:0,r=(i=e.designOptions.height)!=null?i:0;return{type:"heatmap",plotBorderWidth:w.CALENDAR_HEATMAP_DEFAULTS.BORDER_WIDTH,backgroundColor:"transparent",marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,spacing:[0,0,0,0],width:t,height:r,polar:!1}}function aee(e){var i,a;const t=(i=e.designOptions.cellSize)!=null?i:0,n=((a=e.designOptions.width)!=null?a:0)>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return B(M({},O3(e)),{marginTop:n?t:0})}function oee(e){var n;const r=((n=e.designOptions.width)!=null?n:0)>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return B(M({},O3(e)),{marginLeft:r?60:0,marginTop:r?30:0,marginRight:10})}function k3(){return{title:{text:null},accessibility:{landmarkVerbosity:"one"}}}function D3(){return{enabled:!1}}function see(e){const t=e*w.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(w.CALENDAR_TYPOGRAPHY.MIN_FONT_SIZE,Math.min(w.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function N3(e){var u,c,d,h,p,m,v,g,b,C,x,E,T,A,R,N,I;const t=e.designOptions.cellLabels,r=(c=(u=e.designOptions)==null?void 0:u.cellSize)!=null?c:0,n=((d=t==null?void 0:t.style)==null?void 0:d.fontSize)||`${see(r)}px`,i=(p=(h=t==null?void 0:t.style)==null?void 0:h.fontWeight)!=null?p:"normal",a=(v=(m=t==null?void 0:t.style)==null?void 0:m.textOutline)!=null?v:"none",o=(C=(g=t==null?void 0:t.style)==null?void 0:g.fontFamily)!=null?C:(b=e.extraConfig.themeSettings)==null?void 0:b.typography.fontFamily,s=((x=t==null?void 0:t.style)==null?void 0:x.color)||((E=e.extraConfig.themeSettings)==null?void 0:E.chart.textColor);return{series:{},heatmap:{dataLabels:{enabled:t.enabled&&((A=(T=e.designOptions)==null?void 0:T.cellSize)!=null?A:0)>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_CELL_LABEL_SIZE_THRESHOLD,style:M(M(M({color:s,fontSize:n,fontWeight:i,textOutline:a,fontFamily:o},((R=t.style)==null?void 0:R.fontStyle)&&{fontStyle:t.style.fontStyle}),((N=t.style)==null?void 0:N.pointerEvents)&&{pointerEvents:t.style.pointerEvents}),((I=t.style)==null?void 0:I.textOverflow)&&{textOverflow:t.style.textOverflow}),formatter:function(){const H=this.point;return H.custom&&H.custom.monthDay?H.custom.monthDay.toString():""}}}}}const lee="yyyy-MM-dd'T'HH:mm:ss";function uee(e,t){const r=xJ(e.getDay());return t.includes(r)}function I3(e,t,r,n){if(e.values.length===0)return[];const i=new Date(e.values[0].date),a=i.getFullYear(),o=i.getMonth(),u=new Date(a,o,1).getDay(),c=zu(r),d=(u-c+7)%7,h=qy(r,t),p=[];return e.values.forEach(m=>{var I;const v=new Date(m.date),g=v.getDate(),b=t(v,lee),C=(d+g-1)%h.length,x=Math.floor((d+g-1)/h.length),E=(I=m.value)!=null?I:null,T=m.value!==void 0,A=uee(v,n.days);let R;T?n.enabled&&n.days.length>0&&A?R=n.cellColor||w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR:m.color&&(R=m.color):R=w.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR;const N=n.enabled&&n.hideValues&&A;p.push({x:C,y:5-x,value:E,date:v.getTime(),dateString:b,color:R,custom:{monthDay:g,hasData:!N&&T,blur:m.blur},className:T&&m.blur?"csdk-highcharts-point-blured":""})}),p}function cee(e,t,r,n){if(e.values.length===0)return[];const i=e.values.map(b=>new Date(b.date)).sort((b,C)=>b.getTime()-C.getTime()),a=i[0],o=i[i.length-1],s=new Date(a.getFullYear(),a.getMonth(),1),u=new Date(o.getFullYear(),o.getMonth()+1,0),c=new Map;for(let b=new Date(s);b<=u;b.setMonth(b.getMonth()+1)){const C=`${b.getFullYear()}-${b.getMonth()}`;c.set(C,[])}e.values.forEach(b=>{const C=new Date(b.date),x=`${C.getFullYear()}-${C.getMonth()}`;c.has(x)&&c.get(x).push(b)});const d=[],h=zu(r),p=new Date(s),m=(s.getDay()-h+7)%7;p.setDate(s.getDate()-m);for(const[b,C]of c){const[x,E]=b.split("-"),T=parseInt(x,10),A=parseInt(E,10),R={type:"calendar-heatmap",values:C.length>0?C:[{date:new Date(T,A,1),value:void 0}]},N=I3(R,t,r,n);d.push(...N)}let v=w.CALENDAR_HEATMAP_SIZING.ROWS-1-d[0].x,g=0;for(let b=0;b<d.length;b++)d[b].y=v,d[b].x=g,v--,v<0&&(v=w.CALENDAR_HEATMAP_SIZING.ROWS-1,g++);return d}function dee(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=I3(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:w.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:w.CALENDAR_HEATMAP_DEFAULTS.BORDER_WIDTH,borderColor:"transparent",colsize:1,rowsize:1}]}function hee(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=cee(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:w.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:1,borderColor:"white",colsize:1,rowsize:1}]}function L3(e){const{dateFormatter:t}=e.extraConfig,r=e.dataOptions.value.column.title||e.dataOptions.value.column.name,n=e.designOptions.width&&e.designOptions.width<w.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH;return{animation:!1,backgroundColor:w.colorWhite,borderColor:w.colorChineseSilver,borderRadius:10,borderWidth:1,useHTML:!0,style:{width:n?w.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH:void 0},position:{relativeTo:"chart"},followPointer:!0,outside:!0,formatter:function(){var m;const i=this.point,a=i.date&&new Date(i.date);if(!(a&&!isNaN(a.getTime())))return!1;const s=e.dataOptions.date,u=w.getDataOptionGranularity(s),c=s.dateFormat||w.getDefaultDateFormat(u),d=t(a,c);let h="";if(i.value!==null&&i.value!==void 0&&((m=i.custom)!=null&&m.hasData)){const v=e.dataOptions.value.numberFormatConfig,g=w.getCompleteNumberFormatConfig(v);h=w.applyFormat(g,i.value)}else h="—";const p=i.color&&w.scaleBrightness(i.color,w.CALENDAR_HEATMAP_COLORS.TOOLTIP_COLOR_BRIGHTNESS_PERCENT);return w.tooltipWrapper(`
277
- ${r}
278
- <br />
279
- <span style="color: ${p!=null?p:"inherit"}">${h}</span>
280
- ${w.tooltipSeparator()}
281
- ${d}
282
- `)}}}const fee={getChart:aee,getSeries:dee,getAxes:iee,getLegend:D3,getPlotOptions:N3,getTooltip:L3,getExtras:k3},pee={getChart:oee,getSeries:hee,getAxes:nee,getLegend:D3,getPlotOptions:N3,getTooltip:L3,getExtras:k3};function mee(e){return e==="calendar-heatmap/continuous"?pee:fee}function w2(e,t){const r=new Map;e.values.forEach(a=>{if(a.date.getFullYear()===t.year&&a.date.getMonth()===t.month){const o=`${t.year}-${t.month}-${a.date.getDate()}`;r.set(o,a)}});const n=new Date(t.year,t.month+1,0).getDate(),i=[];for(let a=1;a<=n;a++){const o=`${t.year}-${t.month}-${a}`,s=r.get(o);s?i.push(s):i.push({date:new Date(Date.UTC(t.year,t.month,a))})}return B(M({},e),{values:i})}function C2(e,t){if(!e.values||e.values.length===0){const r=B(M({},e),{values:[]});return w2(r,t)}return w2(e,t)}function gee(e,t,r,n){if(e==="calendar-heatmap/continuous"){let i=[];switch(t){case"month":i=[r.slice(0,1)];break;case"quarter":i=[r.slice(0,3)];break;case"half-year":i=[r.slice(0,6)];break;case"year":i=[r.slice(0,6),r.slice(6,12)].filter(a=>a.length>0);break;default:i=[r]}return i.map(a=>a.reduce((o,s)=>{const u=C2(n,s);return B(M({},o),{values:[...o.values,...u.values]})},{type:"calendar-heatmap",values:[]}))}else return r.map(i=>C2(n,i))}const vee=()=>{const e=R3();return k.useMemo(()=>B(M({},e),{themeSettings:B(M({},e.themeSettings),{chart:B(M({},e.themeSettings.chart),{animation:B(M({},e.themeSettings.chart.animation),{redraw:B(M({},e.themeSettings.chart.animation.redraw),{duration:0})})})})}),[e])};function yee({chartData:e,dataOptions:t,designOptions:r,availableMonths:n,currentMonth:i,subtype:a,viewType:o,containerSize:s,eventHandlers:u,onBeforeRender:c}){const d=vee(),h=k.useMemo(()=>{var m;const p=(m=t.value.color)!=null?m:TJ(d.themeSettings);return SJ(p)(e)},[e,t.value.color,d.themeSettings]);return k.useMemo(()=>{if(n.length===0)return[];const p=Xy(n,i,o);return gee(a,o,p,h).map(v=>{const g=RJ(s,a,o,v,r.startOfWeek),b=mee(a);return P3({highchartsOptionsBuilder:b,chartData:v,dataOptions:t,designOptions:B(M({},r),{width:g.width,height:g.height,cellSize:g.cellSize}),dataPointsEventHandlers:{onDataPointClick:u.onDataPointClick,onDataPointContextMenu:u.onDataPointContextMenu,onDataPointsSelected:u.onDataPointsSelected},extraConfig:d,onBeforeRender:c})})},[n,i,o,a,h,t,r,s,u.onDataPointClick,u.onDataPointContextMenu,u.onDataPointsSelected,d,c])}const bee=e=>{const{chartData:t,startMonth:r}=e,n=hf(r),i=r?gm(r):t.values.length>0?gm(t.values[0].date):{year:new Date().getFullYear(),month:new Date().getMonth()},[a,o]=k.useState(i);return k.useEffect(()=>{r&&(!n||r.getTime()!==n.getTime())&&o(gm(r))},[r,n,o]),{currentMonth:a,setCurrentMonth:o}},_ee=Ye.div`
283
- display: flex;
284
- flex-direction: column;
285
- width: 100%;
286
- height: 100%;
287
- margin: 0 auto;
288
- background-color: ${({theme:e})=>e.chart.backgroundColor};
289
- `,wee=Ye.div`
290
- display: flex;
291
- flex-direction: column;
292
- align-items: center;
293
- justify-content: center;
294
- flex: 1;
295
- `;function Cee({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a,onBeforeRender:o,size:s}){var b,C,x;const{themeSettings:u}=gt(),c=y3(),d=r.subtype,h=r.viewType,{currentMonth:p,setCurrentMonth:m}=bee({chartData:e,startMonth:(b=r.pagination)==null?void 0:b.startMonth}),v=k.useMemo(()=>FJ(e,c,p,h),[e,c,p,h]),g=yee({chartData:e,dataOptions:t,designOptions:r,availableMonths:v,currentMonth:p,subtype:d,viewType:h,containerSize:s,eventHandlers:{onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a},onBeforeRender:o});return w.jsxs(_ee,{theme:u,children:[v.length>0&&((C=r.pagination)==null?void 0:C.enabled)&&w.jsx(VJ,{value:p,availableMonths:v,viewType:h,onChange:m,labelStyle:(x=r.pagination)==null?void 0:x.style}),w.jsx(wee,{children:w.jsx(zJ,{monthCharts:g,availableMonths:v,currentMonth:p,viewType:h,subtype:d,monthLabels:r.monthLabels,size:s})})]})}const xee=e=>!!e.chartData&&v3(e.chartData)&&g3(e.dataOptions),Tee={dataOptions:{translateDataOptionsToInternal:JQ,getAttributes:eJ,getMeasures:tJ,isCorrectDataOptions:rJ,isCorrectDataOptionsInternal:g3},data:{loadData:On,getChartData:nJ},designOptions:{translateStyleOptionsToDesignOptions:iJ,isCorrectStyleOptions:aJ},renderer:{ChartRendererComponent:Cee,isCorrectRendererProps:xee}};var F3=w.metaMap?function(e,t){return w.metaMap.set(e,t),e}:D.identity;function ou(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=D.baseCreate(e.prototype),n=e.apply(r,t);return D.isObject(n)?n:r}}var See=1;function Eee(e,t,r){var n=t&See,i=ou(e);function a(){var o=this&&this!==D.root&&this instanceof a?i:e;return o.apply(n?r:this,arguments)}return a}var Mee=Math.max;function $3(e,t,r,n){for(var i=-1,a=e.length,o=r.length,s=-1,u=t.length,c=Mee(a-o,0),d=Array(u+c),h=!n;++s<u;)d[s]=t[s];for(;++i<o;)(h||i<a)&&(d[r[i]]=e[i]);for(;c--;)d[s++]=e[i++];return d}var Aee=Math.max;function B3(e,t,r,n){for(var i=-1,a=e.length,o=-1,s=r.length,u=-1,c=t.length,d=Aee(a-s,0),h=Array(d+c),p=!n;++i<d;)h[i]=e[i];for(var m=i;++u<c;)h[m+u]=t[u];for(;++o<s;)(p||i<a)&&(h[m+r[o]]=e[i++]);return h}function Pee(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var H3=D.shortOut(F3),Ree=/\{\n\/\* \[wrapped with (.+)\] \*/,Oee=/,? & /;function kee(e){var t=e.match(Ree);return t?t[1].split(Oee):[]}var Dee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Nee(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Dee,`{
296
- /* [wrapped with `+t+`] */
297
- `)}function Iee(e,t,r,n){for(var i=e.length,a=r+-1;++a<i;)if(t(e[a],a,e))return a;return-1}function Lee(e){return e!==e}function Fee(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function Ky(e,t,r){return t===t?Fee(e,t,r):Iee(e,Lee,r)}function z3(e,t){var r=e==null?0:e.length;return!!r&&Ky(e,t,0)>-1}var $ee=1,Bee=2,Hee=8,zee=16,jee=32,Wee=64,Uee=128,Vee=256,Gee=512,qee=[["ary",Uee],["bind",$ee],["bindKey",Bee],["curry",Hee],["curryRight",zee],["flip",Gee],["partial",jee],["partialRight",Wee],["rearg",Vee]];function Yee(e,t){return D.arrayEach(qee,function(r){var n="_."+r[0];t&r[1]&&!z3(e,n)&&e.push(n)}),e.sort()}function j3(e,t,r){var n=t+"";return D.setToString(e,Nee(n,Yee(kee(n),r)))}var Xee=1,Kee=2,Zee=4,Qee=8,x2=32,T2=64;function W3(e,t,r,n,i,a,o,s,u,c){var d=t&Qee,h=d?o:void 0,p=d?void 0:o,m=d?a:void 0,v=d?void 0:a;t|=d?x2:T2,t&=~(d?T2:x2),t&Zee||(t&=~(Xee|Kee));var g=[e,t,i,m,h,v,p,s,u,c],b=r.apply(void 0,g);return w.isLaziable(e)&&H3(b,g),b.placeholder=n,j3(b,e,t)}function U3(e){var t=e;return t.placeholder}var Jee=Math.min;function ete(e,t){for(var r=e.length,n=Jee(t.length,r),i=D.copyArray(e);n--;){var a=t[n];e[n]=D.isIndex(a,r)?i[a]:void 0}return e}var S2="__lodash_placeholder__";function Qd(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];(o===t||o===S2)&&(e[r]=S2,a[i++]=r)}return a}var tte=1,rte=2,nte=8,ite=16,ate=128,ote=512;function Zy(e,t,r,n,i,a,o,s,u,c){var d=t&ate,h=t&tte,p=t&rte,m=t&(nte|ite),v=t&ote,g=p?void 0:ou(e);function b(){for(var C=arguments.length,x=Array(C),E=C;E--;)x[E]=arguments[E];if(m)var T=U3(b),A=Pee(x,T);if(n&&(x=$3(x,n,i,m)),a&&(x=B3(x,a,o,m)),C-=A,m&&C<c){var R=Qd(x,T);return W3(e,t,Zy,b.placeholder,r,x,R,s,u,c-C)}var N=h?r:this,I=p?N[e]:e;return C=x.length,s?x=ete(x,s):v&&C>1&&x.reverse(),d&&u<C&&(x.length=u),this&&this!==D.root&&this instanceof b&&(I=g||ou(I)),I.apply(N,x)}return b}function ste(e,t,r){var n=ou(e);function i(){for(var a=arguments.length,o=Array(a),s=a,u=U3(i);s--;)o[s]=arguments[s];var c=a<3&&o[0]!==u&&o[a-1]!==u?[]:Qd(o,u);if(a-=c.length,a<r)return W3(e,t,Zy,i.placeholder,void 0,o,c,void 0,void 0,r-a);var d=this&&this!==D.root&&this instanceof i?n:e;return D.apply(d,this,o)}return i}var lte=1;function ute(e,t,r,n){var i=t&lte,a=ou(e);function o(){for(var s=-1,u=arguments.length,c=-1,d=n.length,h=Array(d+u),p=this&&this!==D.root&&this instanceof o?a:e;++c<d;)h[c]=n[c];for(;u--;)h[c++]=arguments[++s];return D.apply(p,i?r:this,h)}return o}var E2="__lodash_placeholder__",ym=1,cte=2,dte=4,M2=8,il=128,A2=256,hte=Math.min;function fte(e,t){var r=e[1],n=t[1],i=r|n,a=i<(ym|cte|il),o=n==il&&r==M2||n==il&&r==A2&&e[7].length<=t[8]||n==(il|A2)&&t[7].length<=t[8]&&r==M2;if(!(a||o))return e;n&ym&&(e[2]=t[2],i|=r&ym?0:dte);var s=t[3];if(s){var u=e[3];e[3]=u?$3(u,s,t[4]):s,e[4]=u?Qd(e[3],E2):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?B3(u,s,t[6]):s,e[6]=u?Qd(e[5],E2):t[6]),s=t[7],s&&(e[7]=s),n&il&&(e[8]=e[8]==null?t[8]:hte(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var pte="Expected a function",P2=1,mte=2,bm=8,_m=16,wm=32,R2=64,O2=Math.max;function gte(e,t,r,n,i,a,o,s){var u=t&mte;if(!u&&typeof e!="function")throw new TypeError(pte);var c=n?n.length:0;if(c||(t&=~(wm|R2),n=i=void 0),o=o===void 0?o:O2(w.toInteger$1(o),0),s=s===void 0?s:w.toInteger$1(s),c-=i?i.length:0,t&R2){var d=n,h=i;n=i=void 0}var p=u?void 0:w.getData(e),m=[e,t,r,n,i,d,h,a,o,s];if(p&&fte(m,p),e=m[0],t=m[1],r=m[2],n=m[3],i=m[4],s=m[9]=m[9]===void 0?u?0:e.length:O2(m[9]-c,0),!s&&t&(bm|_m)&&(t&=~(bm|_m)),!t||t==P2)var v=Eee(e,t,r);else t==bm||t==_m?v=ste(e,t,s):(t==wm||t==(P2|wm))&&!i.length?v=ute(e,t,r,n):v=Zy.apply(void 0,m);var g=p?F3:H3;return j3(g(v,m),e,t)}var vte=8;function ju(e,t,r){t=r?void 0:t;var n=gte(e,vte,void 0,void 0,void 0,void 0,void 0,t);return n.placeholder=ju.placeholder,n}ju.placeholder={};const yte="_alert_box_10ttx_1",bte="_content_10ttx_8",_te="_alert_10ttx_1",Cm={alert_box:yte,content:bte,alert:_te},V3=({alerts:e=[]})=>w.jsx("div",{className:Cm.alert_box,children:w.jsx("div",{className:Cm.content,children:[...new Set(e)].map((t,r)=>w.jsx("div",{className:Cm.alert,children:t},`alert-${r}`))})}),wte=e=>["column","bar","line","area","polar","pie","funnel","treemap","calendar-heatmap","sunburst","streamgraph"].includes(e);function si({highchartsOptionsBuilder:e,getAlerts:t}){return function({chartData:n,dataOptions:i,designOptions:a,onDataPointClick:o,onDataPointContextMenu:s,onDataPointsSelected:u,onBeforeRender:c,size:d}){const{t:h}=w.useTranslation(),p=R3(),m=k.useMemo(()=>P3({highchartsOptionsBuilder:e,chartData:n,dataOptions:i,designOptions:a,dataPointsEventHandlers:{onDataPointClick:o,onDataPointContextMenu:s,onDataPointsSelected:u},extraConfig:p,onBeforeRender:c}),[n,i,a,o,s,u,p,c]),v=k.useMemo(()=>m?B(M({},m),{chart:M(M(M({},m.chart),(d==null?void 0:d.width)&&{width:d.width}),(d==null?void 0:d.height)&&{height:d.height})}):null,[m,d]),g=t({chartData:n,dataOptions:i,designOptions:a,extraConfig:p});return v&&w.jsxs("div",{"data-testid":"chart-root",role:"img","aria-label":h("chart.visualization.label"),style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!g.length&&w.jsx(V3,{alerts:g}),w.jsx(Vy,{options:v})]})}}function li(e){return!!e.chartData&&!!e.chartType&&wte(e.chartType)}var Cte="[object String]";function ff(e){return typeof e=="string"||!D.isArray(e)&&D.isObjectLike(e)&&D.baseGetTag(e)==Cte}const Cs=e=>{const{chartData:t,designOptions:r}=e,{seriesCapacity:n,categoriesCapacity:i}=r.dataLimits,a=t.xValues.length>i?w.categoriesSliceWarning("x",t.xValues.length,i):null,o=t.series.length>n?w.seriesSliceWarning(t.series.length,n):null;return[a,o].filter(ff)};function xs(e,t){return w.cartesianData(e,t)}const pf=Object.freeze({"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"},"arearange/basic":{lineType:"straight",stackType:"classic"},"arearange/spline":{lineType:"smooth",stackType:"classic"},"bar/classic":{stackType:"classic"},"bar/stacked":{stackType:"stacked"},"bar/stacked100":{stackType:"stack100"},"column/classic":{stackType:"classic"},"column/stackedcolumn":{stackType:"stacked"},"column/stackedcolumn100":{stackType:"stack100"},"line/basic":{lineType:"straight"},"line/spline":{lineType:"smooth"},"line/step":{lineType:"straight"},"pie/classic":{pieType:"classic"},"pie/donut":{pieType:"donut"},"pie/ring":{pieType:"ring"},"polar/column":{polarType:"column"},"polar/area":{polarType:"area"},"polar/line":{polarType:"line"},"indicator/numeric":{indicatorType:"numeric"},"indicator/gauge":{indicatorType:"gauge"},treemap:{},sunburst:{},"boxplot/full":{boxplotType:"full"},"boxplot/hollow":{boxplotType:"hollow"},scattermap:{},"areamap/world":{mapType:"world"},"areamap/usa":{mapType:"usa"}}),bg=(e,t)=>{var r,n,i,a,o;return e?{enabled:e.enabled,gridLine:e.gridLines,labels:(r=e.labels)==null?void 0:r.enabled,type:e.logarithmic?"logarithmic":"linear",titleEnabled:(n=e.title)==null?void 0:n.enabled,title:((i=e==null?void 0:e.title)==null?void 0:i.text)||null,min:(a=e.min)!=null?a:null,max:(o=e.max)!=null?o:null,tickInterval:e.isIntervalEnabled&&(e!=null&&e.intervalJumps)?e==null?void 0:e.intervalJumps:null}:t},xte=e=>e!=null&&e.enabled?{enabled:!0,scrollerLocation:e==null?void 0:e.scrollerLocation,onScrollerChange:e==null?void 0:e.onScrollerChange}:{enabled:!1},Tte=e=>{const t=bg(e,Hr.yAxis);return t.gridLine=e.templateMainYHasGridLines||!1,t},Qy=e=>{let t=1;switch(e.width){case"thin":t=1;break;case"bold":t=3;break;case"thick":t=5;break}return t},G3="classic",kn=(e,t)=>{var u,c,d,h;const r=Pte(),n=bg(e.xAxis,Hr.xAxis);let i=null;(c=(u=e==null?void 0:e.xAxis)==null?void 0:u.x2Title)!=null&&c.enabled&&((h=(d=e==null?void 0:e.xAxis)==null?void 0:d.x2Title)!=null&&h.text)&&(i=B(M({},Hr.xAxis),{title:e.xAxis.x2Title.text}));const a=bg(e.yAxis,Hr.yAxis),o=t&&e.y2Axis?M({type:"linear",enabled:!0,titleEnabled:!0,title:"Y2 Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},Tte(e.y2Axis)):void 0,s=xte(e.navigator);return B(M(M(B(M(B(M({},Hr),{legend:e.legend,autoZoom:s}),e.seriesLabels&&{seriesLabels:e.seriesLabels}),{xAxis:n,yAxis:a}),o&&{y2Axis:o}),i&&{x2Axis:i}),{dataLimits:r})},mf=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),Ste=(e,t,r,n)=>{const i=kn(e,r),a=ni(e!=null?e:{},w.getDefaultStyleOptions()),o=oa(t,n,a);return B(M({},i),{designPerSeries:o,stackType:G3,totalLabels:e.totalLabels})},Ete=(e,t)=>{var n,i,a,o,s,u,c;const r=kn(t,!1);if(e==="line"){const d=t;d.line&&(r.line={width:(a=(n=d.line)==null?void 0:n.width)!=null?a:Qy((i=d.lineWidth)!=null?i:{width:"bold"}),dashStyle:(o=d.line)==null?void 0:o.dashStyle,endCap:(s=d.line)==null?void 0:s.endCap,shadow:(u=d.line)==null?void 0:u.shadow}),r.marker=mf((c=d==null?void 0:d.markers)!=null?c:{enabled:!0,fill:"filled",size:"small"}),d.subtype==="line/step"&&(r.step=d.stepPosition||"left")}return r},Mte=(e,t,r)=>{var s,u,c,d,h,p,m;const n=kn(e,r);n.marker=mf((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"});const i=ni(e!=null?e:{},w.getDefaultStyleOptions()),a=oa(t,"line",i),o=B(M({},n),{designPerSeries:a,line:{width:(d=(u=e.line)==null?void 0:u.width)!=null?d:Qy((c=e.lineWidth)!=null?c:{width:"bold"}),dashStyle:(h=e.line)==null?void 0:h.dashStyle,endCap:(p=e.line)==null?void 0:p.endCap,shadow:(m=e.line)==null?void 0:m.shadow}});return e.subtype==="line/step"&&(o.step=e.stepPosition||"left"),o},Ate=(e,t,r)=>{var n,i,a,o,s,u,c;return B(M({},Ste(e,t,r,"area")),{marker:mf((n=e==null?void 0:e.markers)!=null?n:{enabled:!0,fill:"filled",size:"small"}),line:{width:(o=(i=e.line)==null?void 0:i.width)!=null?o:Qy((a=e.lineWidth)!=null?a:{width:"thin"}),dashStyle:(s=e.line)==null?void 0:s.dashStyle,endCap:(u=e.line)==null?void 0:u.endCap,shadow:(c=e.line)==null?void 0:c.shadow}})},Jy=(e,t)=>{var i;const r={seriesCapacity:t==="categorical"?Wd:t==="pie"?iB:Ry,categoriesCapacity:t==="scatter"?aB:Wd},n=(i=e==null?void 0:e.dataLimits)!=null?i:{};return"categoriesCapacity"in n&&(n==null?void 0:n.categoriesCapacity)!==void 0&&(r.categoriesCapacity=n==null?void 0:n.categoriesCapacity),(n==null?void 0:n.seriesCapacity)!==void 0&&(r.seriesCapacity=n==null?void 0:n.seriesCapacity),r};function Pte(){return{seriesCapacity:Ry,categoriesCapacity:Wd}}const xo={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},Rte="classic",Ote=e=>{var d,h,p,m,v,g,b,C,x,E,T,A,R,N,I,H;const{legend:t,labels:r,subtype:n,seriesLabels:i}=e;let a=xo;(i||r)&&(a=B(M({},i),{enabled:(h=(d=i==null?void 0:i.enabled)!=null?d:r==null?void 0:r.enabled)!=null?h:xo.enabled,showCategory:(m=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?m:xo.showCategory,showValue:(g=(v=i==null?void 0:i.showValue)!=null?v:r==null?void 0:r.value)!=null?g:xo.showValue,percentageLabels:B(M({},i==null?void 0:i.percentageLabels),{enabled:(T=(E=(C=(b=i==null?void 0:i.percentageLabels)==null?void 0:b.enabled)!=null?C:r==null?void 0:r.percent)!=null?E:(x=xo.percentageLabels)==null?void 0:x.enabled)!=null?T:!1,showDecimals:(H=(I=(R=(A=i==null?void 0:i.percentageLabels)==null?void 0:A.showDecimals)!=null?R:r==null?void 0:r.decimals)!=null?I:(N=xo.percentageLabels)==null?void 0:N.showDecimals)!=null?H:!1})}));const o=n?pf[n]:void 0,s=(o==null?void 0:o.pieType)||Rte,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=Jy(e,"pie");return B(M({},Hr),{seriesLabels:a,pieType:s,convolution:u,legend:t,dataLimits:c})},kte=e=>{var u,c,d,h,p,m,v,g,b,C;const{funnelType:t=w.DefaultFunnelType,funnelSize:r=w.DefaultFunnelSize,funnelDirection:n=w.DefaultFunnelDirection,legend:i,labels:a,seriesLabels:o}=e,s=Jy(e,"categorical");return B(M({},Hr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:s,seriesLabels:B(M({},o!=null?o:{}),{enabled:(c=(u=o==null?void 0:o.enabled)!=null?u:a==null?void 0:a.enabled)!=null?c:w.DefaultFunnelSeriesLabels.enabled,showCategory:(h=(d=o==null?void 0:o.showCategory)!=null?d:a==null?void 0:a.categories)!=null?h:w.DefaultFunnelSeriesLabels.showCategory,showValue:(m=(p=o==null?void 0:o.showValue)!=null?p:a==null?void 0:a.value)!=null?m:w.DefaultFunnelSeriesLabels.showValue,showPercentage:(g=(v=o==null?void 0:o.showPercentage)!=null?v:a==null?void 0:a.percent)!=null?g:w.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(C=(b=o==null?void 0:o.showPercentDecimals)!=null?b:a==null?void 0:a.decimals)!=null?C:w.DefaultFunnelSeriesLabels.showPercentDecimals})})},q3=e=>e,Y3=e=>e,Dte="column",Nte=(e,t)=>{const r=kn(e,!1),n=ni(e!=null?e:{},w.getDefaultStyleOptions()),i=oa(t,"polar",n),a=B(M({},r),{polarType:Dte,designPerSeries:i});return w.withYAxisNormalizationForPolar(a)},Ite=e=>M(M({},w.defaultScatterMarkerSize),e),Lte=e=>{var t;return B(M({},kn(e,!1)),{lineWidth:0,marker:mf((t=e==null?void 0:e.markers)!=null?t:{enabled:!0,fill:"filled",size:"small"}),dataLimits:Jy(e,"scatter"),markerSize:Ite(e.markerSize),legend:e.legend})},Fte=e=>B(M({},kn(e,!1)),{boxplotType:e.subtype==="boxplot/hollow"?"hollow":"full"}),$te={fill:"filled",size:{defaultSize:4,minSize:4,maxSize:24}},Bte=e=>B(M({},Hr),{markers:w.merge($te,e.markers||{})}),Hte={"line/basic":"straight","line/spline":"smooth","line/step":"straight"},zte=e=>({thin:1,bold:3,thick:5})[e.width],jte=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),Wte=(e,t)=>kn(e,df(t)),Ute=e=>t=>{var r,n,i,a,o,s;return B(M({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:zte(e.lineWidth||{width:"bold"}),dashStyle:(i=e.line)==null?void 0:i.dashStyle,endCap:(a=e.line)==null?void 0:a.endCap,shadow:(o=e.line)==null?void 0:o.shadow},marker:jte((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"})})},Vte=(e,t)=>r=>{const n=ni(e!=null?e:{},w.getDefaultStyleOptions()),i=oa(t,"line",n);return B(M({},r),{designPerSeries:i})},Gte=e=>t=>{const r=e.subtype||"line/basic",n=Hte[r];return n?B(M({},t),{lineType:n}):t},qte=e=>t=>{const r=e.subtype==="line/step"?{step:e.stepPosition||"left"}:{};return M(M({},t),r)};function Yte(e,t){const r=Wte(e,t);return w.flow(Ute(e),Vte(e,t),Gte(e),qte(e))(r)}const Xte=["line/basic","line/spline","line/step"];function Kte(e){return"subtype"in e&&e.subtype?Xte.includes(e.subtype):!0}const kt=(e,t)=>w.getCartesianChartOptions(e.chartData,t,e.designOptions,e.dataOptions,e.extraConfig.translate,e.extraConfig.themeSettings,e.extraConfig.dateFormatter).options,Zte={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},Qte=e=>{switch(e){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},Jte=e=>{if((e==null?void 0:e.enabled)===!1||!e)return;const{text:t,textStyle:r}=e;return{title:{text:t,style:r}}},ere=e=>{if(!e)return;const{layout:t,textStyle:r,marginBottom:n,marginTop:i,distance:a,width:o,hoverTextStyle:s,hiddenTextStyle:u}=e||{};return{layout:t,itemStyle:r,itemMarginBottom:n,itemMarginTop:i,itemDistance:a,itemWidth:o,itemHoverStyle:s,itemHiddenStyle:u}},tre=e=>{if(!e)return;const{radius:t,height:r,width:n,padding:i,squared:a}=e;return{symbolRadius:t,symbolHeight:r,symbolWidth:n,symbolPadding:i,squareSymbol:a}},rre=e=>{const c=e,{title:t,items:r,symbols:n,xOffset:i,yOffset:a,backgroundColor:o,borderColor:s}=c,u=xe(c,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return w.omitUndefinedAndEmpty(B(M(M(M(M({},u),Jte(t)),ere(r)),tre(n)),{x:i,y:a,backgroundColor:w.withGradientConversion(o),borderColor:w.withGradientConversion(s)}))},Ts=e=>{const t={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!e)return t;const o=e,{position:r}=o,n=xe(o,["position"]),i=Qte(r||null),a=rre(n);return w.omitUndefinedAndEmpty(B(M(M(M({},t),i),a),{itemStyle:M(M({},Zte),a.itemStyle)}))},Ss=e=>w.getCartesianTooltipSettings(e.dataOptions,e.extraConfig.translate),Es=(e,t)=>{var i;const r=w.buildCategoriesMeta(e.chartData,e.dataOptions,e.designOptions,w.isContinuousDatetimeXAxis(e.dataOptions.x),e.extraConfig.dateFormatter),n=w.buildXAxisSettings({designOptions:e.designOptions,dataOptions:e.dataOptions,chartData:e.chartData,categoriesMeta:r,orientation:t,isContinuous:w.isContinuousDatetimeXAxis(e.dataOptions.x),dateFormatter:e.extraConfig.dateFormatter});return w.withScrollerEvent((i=e.designOptions.autoZoom)==null?void 0:i.onScrollerChange)(n)},Ms=(e,t)=>{const r=w.buildYAxisMeta(e.chartData,e.dataOptions),n=w.buildYAxisMinMax(0,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero),i=w.hasSecondaryYAxis(r.side)?w.buildYAxisMinMax(1,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero):void 0;return w.getYAxisSettings(e.designOptions.yAxis,e.designOptions.y2Axis,n,i,e.dataOptions,e.extraConfig.themeSettings)},nre=e=>{const t=Es(e,"horizontal"),r=Ms(e,"line");return{xAxis:t,yAxis:r}},ire={getChart:function(e){return kt(e,"line").chart},getSeries:function(e){return kt(e,"line").series},getAxes:nre,getLegend:function(e){return Ts(e.designOptions.legend)},getPlotOptions:function(e){return kt(e,"line").plotOptions},getTooltip:Ss,getExtras:function(e){const t=kt(e,"line");return D.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},are={dataOptions:{translateDataOptionsToInternal:Ya,getAttributes:ys,getMeasures:bs,isCorrectDataOptions:_s,isCorrectDataOptionsInternal:ws},data:{loadData:On,getChartData:xs},designOptions:{translateStyleOptionsToDesignOptions:ju(Yte),isCorrectStyleOptions:Kte},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:ire,getAlerts:Cs}),isCorrectRendererProps:li}},ore={translateDataOptionsToInternal:Ya,getAttributes:ys,getMeasures:bs,isCorrectDataOptions:_s,isCorrectDataOptionsInternal:ws},sre={loadData:On,getChartData:xs};function lre(e,t){const r=kn(e,!1),n=ni(e,w.getDefaultStyleOptions()),i=oa(t,"polar",n),a=e.subtype||"polar/column",o=pf[a],s=(o==null?void 0:o.polarType)||"column",u=B(M({},r),{polarType:s,designPerSeries:i});return w.withYAxisNormalizationForPolar(u)}function ure(e){return typeof e=="object"&&e!==null&&(!("subtype"in e)||!e.subtype||e.subtype.startsWith("polar/"))}const cre={translateStyleOptionsToDesignOptions:lre,isCorrectStyleOptions:ure};function dre(e){const t=Es(e,"horizontal"),r=Ms(e,"polar");return{xAxis:w.withPolarSpecificAxisSettings(t),yAxis:r}}const hre={getChart:function(e){const t=kt(e,"polar");return B(M({},t.chart),{polar:!0})},getSeries:function(e){return kt(e,"polar").series},getAxes:dre,getLegend:function(e){return Ts(e.designOptions.legend)},getPlotOptions:function(e){return kt(e,"polar").plotOptions},getTooltip:Ss,getExtras:function(e){const t=kt(e,"polar");return D.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},fre={dataOptions:ore,data:sre,designOptions:cre,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:hre,getAlerts:Cs}),isCorrectRendererProps:li}},pre={"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"}},mre=e=>({thin:1,bold:3,thick:5})[e.width],gre=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),vre=(e,t)=>kn(e,df(t)),yre=e=>t=>{var r,n,i,a,o,s;return B(M({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:mre(e.lineWidth||{width:"thin"}),dashStyle:(i=e.line)==null?void 0:i.dashStyle,endCap:(a=e.line)==null?void 0:a.endCap,shadow:(o=e.line)==null?void 0:o.shadow},marker:gre((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"})})},bre=(e,t)=>r=>{const n=ni(e!=null?e:{},w.getDefaultStyleOptions()),i=oa(t,"area",n);return B(M({},r),{designPerSeries:i})},_re=e=>t=>{const r=e.subtype||"area/basic",n=pre[r];return n?B(M({},t),{lineType:n.lineType,stackType:n.stackType}):t},wre=e=>t=>{var r;return B(M({},t),{totalLabels:(r=e.totalLabels)!=null?r:{enabled:!1,rotation:0}})};function Cre(e,t){const r=vre(e,t);return w.flow(yre(e),bre(e,t),_re(e),wre(e))(r)}const xre=["area/basic","area/stacked","area/stacked100","area/spline","area/stackedspline","area/stackedspline100"];function Tre(e){return"subtype"in e&&e.subtype?xre.includes(e.subtype):!0}const Sre=e=>{var r,n;const t={enabled:!1};switch(e.stackType){case"stacked":return{stacking:"normal",totalLabels:(r=e.totalLabels)!=null?r:t};case"stack100":return{stacking:"percent",totalLabels:(n=e.totalLabels)!=null?n:t};default:return{totalLabels:t}}},eb=e=>t=>{var d,h;const r=e.designOptions,n=Sre(r),{stacking:i,totalLabels:a}=n;if(!(a!=null&&a.enabled)&&!i)return t;const o=e.dataOptions,s=w.getCompleteNumberFormatConfig((d=o.y.find(({showOnRightAxis:p})=>!p))==null?void 0:d.numberFormatConfig),u=w.getCompleteNumberFormatConfig((h=o.y.find(({showOnRightAxis:p})=>p))==null?void 0:h.numberFormatConfig);function c(p,m,v=!1){return function(){var E,T;const g=typeof this.value=="number"?this.value:parseFloat(this.value),b=v&&this.total||g,C=w.applyFormatPlainText(p,b),x=m==="percent"?`${C}%`:C;return v?`${(E=a==null?void 0:a.prefix)!=null?E:""}${x}${(T=a==null?void 0:a.suffix)!=null?T:""}`:x}}return t.map((p,m)=>{const g=m===1?u:s;return B(M({},p),{labels:i?B(M({},p.labels),{formatter:c(g,i)}):p.labels,stackLabels:a!=null&&a.enabled?B(M(M({},p.stackLabels),w.prepareStackLabels(a)),{formatter:c(g,"normal",!0),style:M(M(M({},w.stackTotalFontStyleDefault),e.extraConfig.themeSettings?{color:e.extraConfig.themeSettings.typography.primaryTextColor}:null),w.prepareStackLabels(a).style),crop:!0,allowOverlap:!1,labelrank:99999}):p.stackLabels})})},Uc={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},Ere={FULL_ROTATION:180};function X3(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%Ere.FULL_ROTATION;i<Uc.HORIZONTAL?r=10:i<Uc.DIAGONAL?r=30:i<Uc.VERTICAL?r=40:i<Uc.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const Mre=e=>{const t=Es(e,"horizontal"),r=Ms(e,"area");return{xAxis:Are(e)(t),yAxis:w.flow(eb(e),Pre(e))(r)}};function Are(e){const{rightSpacing:t,topSpacing:r}=X3(e.designOptions);return w.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function Pre(e){const t=Rre(e);return w.withYAxisLabelPositioning({rightShift:0,topShift:t})}function Rre(e){var i;const t=e.designOptions;if(!(((i=t.totalLabels)==null?void 0:i.enabled)&&t.stackType==="stack100"))return 0;const{topSpacing:n}=X3(e.designOptions);return-1*(n/2)}const Ore={getChart:function(e){return kt(e,"area").chart},getSeries:function(e){return kt(e,"area").series},getAxes:Mre,getLegend:function(e){return Ts(e.designOptions.legend)},getPlotOptions:function(e){return kt(e,"area").plotOptions},getTooltip:Ss,getExtras:function(e){const t=kt(e,"area");return D.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},kre={dataOptions:{translateDataOptionsToInternal:Ya,getAttributes:ys,getMeasures:bs,isCorrectDataOptions:_s,isCorrectDataOptionsInternal:ws},data:{loadData:On,getChartData:xs},designOptions:{translateStyleOptionsToDesignOptions:Cre,isCorrectStyleOptions:Tre},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Ore,getAlerts:Cs}),isCorrectRendererProps:li}};function K3(e,t,r){var o,s,u,c,d,h;const n=kn(t,df(r)),i=ni(t!=null?t:{},w.getDefaultStyleOptions()),a=oa(r,e,i);return B(M({},n),{designPerSeries:a,stackType:t.subtype?Z3[t.subtype]:G3,totalLabels:t.totalLabels,itemPadding:(s=(o=t.series)==null?void 0:o.padding)!=null?s:.01,groupPadding:(c=(u=t.series)==null?void 0:u.groupPadding)!=null?c:.1,borderRadius:(h=(d=t.series)==null?void 0:d.borderRadius)!=null?h:0})}const Z3={"bar/classic":"classic","bar/stacked":"stacked","bar/stacked100":"stack100","column/classic":"classic","column/stackedcolumn":"stacked","column/stackedcolumn100":"stack100"};function Q3(e){return"subtype"in e&&e.subtype?Object.keys(Z3).includes(e.subtype):!0}const Vc={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},Dre={FULL_ROTATION:180};function Nre(e){var n;let t=0;const r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%Dre.FULL_ROTATION;i<Vc.HORIZONTAL?t=40:i<Vc.DIAGONAL?t=25:i<Vc.VERTICAL?t=15:i<Vc.INVERTED_DIAGONAL?t=25:t=40}return{rightSpacing:t,topSpacing:r}}const Ire=e=>{const t=Es(e,"vertical"),r=Ms(e,"bar");return{xAxis:Lre(e)(t),yAxis:w.flow(eb(e),Fre(e))(r)}};function Lre(e){const{rightSpacing:t,topSpacing:r}=Nre(e.designOptions);return w.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function Fre(e){var a;const t=e.designOptions,n=((a=t.totalLabels)==null?void 0:a.enabled)&&t.stackType==="stack100"?.1:0;return w.withYAxisLabelPositioning({rightShift:n,topShift:0})}const $re=e=>Bre(e)(Ts(e.designOptions.legend));function Bre(e){return r=>{var n,i;return e.dataOptions.x.length>1&&w.isLegendOnRight(e.designOptions.legend)?B(M({},r),{margin:(i=(n=e.designOptions.legend)==null?void 0:n.margin)!=null?i:80}):r}}const Hre={getChart:function(e){return kt(e,"bar").chart},getSeries:function(e){return kt(e,"bar").series},getAxes:Ire,getLegend:$re,getPlotOptions:function(e){return kt(e,"bar").plotOptions},getTooltip:Ss,getExtras:function(e){const t=kt(e,"bar");return D.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},zre={dataOptions:{translateDataOptionsToInternal:Ya,getAttributes:ys,getMeasures:bs,isCorrectDataOptions:_s,isCorrectDataOptionsInternal:ws},data:{loadData:On,getChartData:xs},designOptions:{translateStyleOptionsToDesignOptions:ju(K3)("bar"),isCorrectStyleOptions:Q3},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Hre,getAlerts:Cs}),isCorrectRendererProps:li}},Gc={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},jre={FULL_ROTATION:180};function J3(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%jre.FULL_ROTATION;i<Gc.HORIZONTAL?r=10:i<Gc.DIAGONAL?r=30:i<Gc.VERTICAL?r=40:i<Gc.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const Wre=e=>{const t=Es(e,"horizontal"),r=Ms(e,"column");return{xAxis:Ure(e)(t),yAxis:w.flow(eb(e),Vre(e))(r)}};function Ure(e){const{rightSpacing:t,topSpacing:r}=J3(e.designOptions);return w.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function Vre(e){var a;const t=e.designOptions,r=((a=t.totalLabels)==null?void 0:a.enabled)&&t.stackType==="stack100";let n=0;if(r){const{topSpacing:o}=J3(e.designOptions);n=-1*(o/2)}return w.withYAxisLabelPositioning({rightShift:0,topShift:n})}const Gre={getChart:function(e){return kt(e,"column").chart},getSeries:function(e){return kt(e,"column").series},getAxes:Wre,getLegend:function(e){return Ts(e.designOptions.legend)},getPlotOptions:function(e){return kt(e,"column").plotOptions},getTooltip:Ss,getExtras:function(e){const t=kt(e,"column");return D.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},qre={dataOptions:{translateDataOptionsToInternal:Ya,getAttributes:ys,getMeasures:bs,isCorrectDataOptions:_s,isCorrectDataOptionsInternal:ws},data:{loadData:On,getChartData:xs},designOptions:{translateStyleOptionsToDesignOptions:ju(K3)("column"),isCorrectStyleOptions:Q3},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Gre,getAlerts:Cs}),isCorrectRendererProps:li}},Yre=e=>{const t=n=>typeof n=="number"&&Number.isNaN(n)||n==null?0:n,r=n=>{const i=t(n.value);return B(M({},n),{value:i})};return B(M({},e),{series:e.series.map(n=>B(M({},n),{data:n.data.map(r)}))})},Xre=w.flow(xs,Yre),Kre=e=>({thin:1,bold:3,thick:5})[e.width],Zre=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),Qre=(e,t)=>kn(e,df(t)),Jre=e=>t=>{var r,n,i,a,o,s,u,c,d;return B(M({},t),{seriesTitles:{enabled:(n=(r=e.seriesTitles)==null?void 0:r.enabled)!=null?n:!0,textStyle:(i=e.seriesTitles)==null?void 0:i.textStyle},line:{width:(o=(a=e.line)==null?void 0:a.width)!=null?o:Kre(e.lineWidth||{width:"thin"}),dashStyle:(s=e.line)==null?void 0:s.dashStyle,endCap:(u=e.line)==null?void 0:u.endCap,shadow:(c=e.line)==null?void 0:c.shadow},marker:Zre((d=e==null?void 0:e.markers)!=null?d:{enabled:!1,fill:"filled",size:"small"})})},ene=(e,t)=>r=>{const n=oa(t,"area",e);return B(M({},r),{designPerSeries:n})},tne=e=>t=>{var r,n,i,a,o,s,u,c,d,h,p,m;return B(M({},t),{seriesLabels:B(M({},e.seriesLabels),{enabled:(n=(r=e.seriesLabels)==null?void 0:r.enabled)!=null?n:!1,rotation:(a=(i=e.seriesLabels)==null?void 0:i.rotation)!=null?a:0,showValue:(c=(u=(o=e.seriesLabels)==null?void 0:o.showValue)!=null?u:(s=e.seriesLabels)==null?void 0:s.enabled)!=null?c:!1,textStyle:B(M({},(d=e.seriesLabels)==null?void 0:d.textStyle),{color:(m=(p=(h=e.seriesLabels)==null?void 0:h.textStyle)==null?void 0:p.color)!=null?m:"#000000"})})})};function rne(e,t){const r=Qre(e,t);return w.flow(Jre(e),ene(e,t),tne(e))(r)}function nne(e){return!0}function ine(){const e=w.getDefaultStyleOptions();return w.merge(e,{yAxis:{enabled:!0,gridLines:!0,labels:{enabled:!1},title:{enabled:!1,text:""}},xAxis:{gridLines:!1},legend:{enabled:!1}})}const ane=e=>{const t=Es(e,"horizontal"),r=Ms(e,"area"),n=t.map(a=>{var o;return B(M({},a),{gridLineWidth:e.designOptions.xAxis.gridLine?1:0,labels:B(M({},a.labels),{enabled:(o=e.designOptions.xAxis.labels)!=null?o:!0})})}),i=r.map(a=>B(M({},a),{visible:e.designOptions.yAxis.enabled,gridLineWidth:e.designOptions.yAxis.gridLine?1:0,labels:B(M({},a.labels),{enabled:e.designOptions.yAxis.labels}),startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.15,min:void 0,max:void 0}));return{xAxis:n,yAxis:i}},one=e=>{var n,i,a,o,s;const t=kt(e,"area").plotOptions,r=(i=(n=e.designOptions.line)==null?void 0:n.width)!=null?i:1;return B(M({},t),{series:B(M({},t.series),{stacking:"stream",lineWidth:r,fillOpacity:1,label:{enabled:(o=(a=e.designOptions.seriesTitles)==null?void 0:a.enabled)!=null?o:!0,minFontSize:5,maxFontSize:15,style:(s=e.designOptions.seriesTitles)==null?void 0:s.textStyle}})})},sne={getChart:function(e){const t=kt(e,"area");return B(M({},t.chart),{type:"streamgraph"})},getSeries:function(e){return kt(e,"area").series},getAxes:ane,getLegend:function(e){return Ts(e.designOptions.legend)},getPlotOptions:one,getTooltip:Ss,getExtras:function(e){const t=kt(e,"area");return D.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},lne={dataOptions:{translateDataOptionsToInternal:Ya,getAttributes:ys,getMeasures:bs,isCorrectDataOptions:_s,isCorrectDataOptionsInternal:ws},data:{loadData:On,getChartData:Xre},designOptions:{translateStyleOptionsToDesignOptions:rne,isCorrectStyleOptions:nne,getDefaultStyleOptions:ine},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:sne,getAlerts:Cs}),isCorrectRendererProps:li}},une=e=>w.getAlerts(e.chartData,e.designOptions);function cne(e,t){const r=dne[e],n=e!=="pie"||t.category.length>0,i=[eA(r.category),n?tA(r.value):a=>a];return w.flow(...i)(t)}const dne={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function eA(e){return t=>(t.category.length>e&&console.warn(`Maximum 'category' length is limited to ${e}. Taken first ${e} categories`),B(M({},t),{category:t.category.slice(0,e)}))}function tA(e){return t=>(t.value.length>e&&console.warn(`Maximum 'value' length is limited to ${e}. Taken first ${e} values`),B(M({},t),{value:t.value.slice(0,e)}))}function rA(e){return{y:e.value.map(t=>w.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>w.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}}function gf(e){return[...e.breakBy.map(nA)].filter(hne)}function vf(e){return e.y.map(nA).filter(w.isMeasureColumn)}function yf(e){return"category"in e&&"value"in e&&Array.isArray(e.category)&&Array.isArray(e.value)}function bf(e){return e&&"y"in e&&Array.isArray(e.y)&&e.y.every(w.isMeasureColumn)&&"breakBy"in e&&Array.isArray(e.breakBy)&&e.breakBy.every(w.isStyledColumn)}function nA(e){return e.column}function hne(e){return!w.isMeasureColumn(e)}function _f({maxCategories:e,maxValues:t}){return w.flow(eA(e),tA(t))}const fne={translateDataOptionsToInternal:e=>{const t=e.category.length>0?_f({maxCategories:1,maxValues:1})(e):e;return rA(t)},getAttributes:e=>gf(e),getMeasures:e=>vf(e),isCorrectDataOptions:e=>yf(e),isCorrectDataOptionsInternal:e=>bf(e)},wf=(e,t)=>{const r=B(M({},e),{x:e.breakBy,breakBy:[]});let n=w.cartesianData(r,t);if(e.breakBy.some(({column:{type:a},numberFormatConfig:o})=>D.isNumber(a)&&o)){const a=n.xValues.map(o=>{const s=[];return e.breakBy.forEach(({column:{type:u},numberFormatConfig:c},d)=>{const h=w.getCompleteNumberFormatConfig(c),p=o.xValues[d];D.isNumber(u)?s.push(w.applyFormatPlainText(h,parseFloat(p))):s.push(o.xValues[d])}),B(M({},o),{xValues:s})});n=B(M({},n),{xValues:a})}return B(M({},n),{type:"categorical"})},iA=On;function aA(e,t){return wf(e,t)}const k2=50,pne=e=>(...t)=>{var s;const[r,...n]=t,i=(s=r.queryDescription)==null?void 0:s.count,a=Math.min(i!=null?i:k2,k2),o=B(M({},r),{queryDescription:B(M({},r.queryDescription),{count:a})});return e(o,...n)},mne={loadData:pne(iA),getChartData:(e,t)=>aA(e,t)},gne=e=>{var r,n;const{dataLimits:t}=e;return{categoriesCapacity:(r=t==null?void 0:t.categoriesCapacity)!=null?r:5e4,seriesCapacity:(n=t==null?void 0:t.seriesCapacity)!=null?n:5e4}};function vne(e){var s,u,c,d,h;const{funnelType:t=w.DefaultFunnelType,funnelSize:r=w.DefaultFunnelSize,funnelDirection:n=w.DefaultFunnelDirection,legend:i,seriesLabels:a}=e,o=gne(e);return B(M({},Hr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:o,seriesLabels:B(M({},a!=null?a:{}),{enabled:(s=a==null?void 0:a.enabled)!=null?s:w.DefaultFunnelSeriesLabels.enabled,showCategory:(u=a==null?void 0:a.showCategory)!=null?u:w.DefaultFunnelSeriesLabels.showCategory,showValue:(c=a==null?void 0:a.showValue)!=null?c:w.DefaultFunnelSeriesLabels.showValue,showPercentage:(d=a==null?void 0:a.showPercentage)!=null?d:w.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(h=a==null?void 0:a.showPercentDecimals)!=null?h:w.DefaultFunnelSeriesLabels.showPercentDecimals})})}function yne(e){return!e||typeof e=="object"}function bne(){return{legend:{enabled:!0,position:"bottom"},funnelType:w.DefaultFunnelType,funnelSize:w.DefaultFunnelSize,funnelDirection:w.DefaultFunnelDirection,seriesLabels:w.DefaultFunnelSeriesLabels}}function _ne(e={}){var a,o,s,u,c;const i=e,{labels:t,seriesLabels:r}=i,n=xe(i,["labels","seriesLabels"]);return w.omitUndefinedAndEmpty(B(M({},n),{seriesLabels:B(M({},r!=null?r:{}),{enabled:(a=r==null?void 0:r.enabled)!=null?a:t==null?void 0:t.enabled,showCategory:(o=r==null?void 0:r.showCategory)!=null?o:t==null?void 0:t.categories,showValue:(s=r==null?void 0:r.showValue)!=null?s:t==null?void 0:t.value,showPercentage:(u=r==null?void 0:r.showPercentage)!=null?u:t==null?void 0:t.percent,showPercentDecimals:(c=r==null?void 0:r.showPercentDecimals)!=null?c:t==null?void 0:t.decimals})}))}const wne={translateStyleOptionsToDesignOptions:vne,isCorrectStyleOptions:yne,getDefaultStyleOptions:bne,translateLegacyStyleOptionsToModern:_ne},Cne={getChart:function(e){return{type:w.determineHighchartsChartType("funnel",e.designOptions),spacing:[30,30,30,30],alignTicks:!1,polar:!1}},getSeries:function(e){const{series:t}=w.formatFunnelChartData(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings);return t},getAxes:function(){return{xAxis:[],yAxis:[]}},getLegend:function(e){return w.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return w.getFunnelPlotOptions(e.designOptions,e.dataOptions)},getTooltip:function(e){var t;return w.getCategoryTooltipSettings((t=e.designOptions.seriesLabels)==null?void 0:t.showPercentDecimals,e.dataOptions)},getExtras:function(){return{title:{text:null}}}},xne={dataOptions:fne,data:mne,designOptions:wne,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Cne,getAlerts:une}),isCorrectRendererProps:li}},Tne=e=>{const{seriesCapacity:t}=e.designOptions.dataLimits;return w.getPieAlerts(e.chartData,t)},Sne={translateDataOptionsToInternal:e=>{const t=e.category.length>0?_f({maxCategories:1,maxValues:1})(e):e;return rA(t)},getAttributes:e=>gf(e),getMeasures:e=>vf(e),isCorrectDataOptions:e=>yf(e),isCorrectDataOptionsInternal:e=>bf(e)},Ene={loadData:iA,getChartData:(e,t)=>aA(e,t)},Mne="classic",al={enabled:!0,showCategory:!0,showValue:!1,percentageLabels:{enabled:!0,showDecimals:!1}},Ane=e=>{var r,n;const{dataLimits:t}=e;return{categoriesCapacity:(r=t==null?void 0:t.categoriesCapacity)!=null?r:5e4,seriesCapacity:(n=t==null?void 0:t.seriesCapacity)!=null?n:5e4}};function Pne(e){var d,h,p,m,v,g,b,C,x,E,T,A;const{legend:t,labels:r,subtype:n,seriesLabels:i,semiCircle:a}=e,o=n?pf[n]:void 0,s=(o==null?void 0:o.pieType)||Mne,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=Ane(e);return B(M({},Hr),{seriesLabels:B(M({},i),{enabled:(h=(d=i==null?void 0:i.enabled)!=null?d:r==null?void 0:r.enabled)!=null?h:al.enabled,showCategory:(m=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?m:al.showCategory,showValue:(g=(v=i==null?void 0:i.showValue)!=null?v:r==null?void 0:r.value)!=null?g:al.showValue,percentageLabels:B(M({},i==null?void 0:i.percentageLabels),{enabled:(x=(C=(b=i==null?void 0:i.percentageLabels)==null?void 0:b.enabled)!=null?C:r==null?void 0:r.percent)!=null?x:al.percentageLabels.enabled,showDecimals:(A=(T=(E=i==null?void 0:i.percentageLabels)==null?void 0:E.showDecimals)!=null?T:r==null?void 0:r.decimals)!=null?A:al.percentageLabels.showDecimals})}),pieType:s,convolution:u,legend:t,dataLimits:c,semiCircle:a})}function Rne(e){return!e||typeof e=="object"}function One(){return{legend:{enabled:!0,position:"bottom"},labels:{enabled:!0,categories:!0,percent:!0,decimals:!1,value:!1}}}const kne={translateStyleOptionsToDesignOptions:Pne,isCorrectStyleOptions:Rne,getDefaultStyleOptions:One},Dne={getChart:function(e){return{type:w.determineHighchartsChartType("pie",e.designOptions),spacing:[20,20,20,20],alignTicks:!1,polar:!1}},getSeries:function(e){return w.getPieSeries({chartData:e.chartData,dataOptions:e.dataOptions,seriesCapacity:e.designOptions.dataLimits.seriesCapacity,convolution:e.designOptions.convolution,themeSettings:e.extraConfig.themeSettings})},getAxes:function(){return{xAxis:[],yAxis:[]}},getLegend:function(e){return w.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return w.getPiePlotOptions({pieType:e.designOptions.pieType,seriesLabels:e.designOptions.seriesLabels,chartDataOptions:e.dataOptions,themeSettings:e.extraConfig.themeSettings,semiCircle:e.designOptions.semiCircle})},getTooltip:function(e){var t,r;return w.getCategoryTooltipSettings((r=(t=e.designOptions.seriesLabels)==null?void 0:t.percentageLabels)==null?void 0:r.showDecimals,e.dataOptions)},getExtras:function(e){const t=w.getPieConvolutionSeries({chartData:e.chartData,dataOptions:e.dataOptions,seriesCapacity:e.designOptions.dataLimits.seriesCapacity,convolution:e.designOptions.convolution,themeSettings:e.extraConfig.themeSettings});return{title:{text:null},drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:t}}}},Nne={dataOptions:Sne,data:Ene,designOptions:kne,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Dne,getAlerts:Tne}),isCorrectRendererProps:li}};function Ine(){return[]}const Lne=(e,t)=>{if(w.emptyTable(t))return{rows:[],columns:[]};const r=w.getColumnsByName(t,e);return w.selectColumns(t,r)},_g=({column:e,sortType:t})=>{switch("getSort"in e?e.getSort():t){case"sortAsc":case D.Sort.Ascending:return 1;case"sortDesc":case D.Sort.Descending:return-1;default:return 0}},Fne=(e,t)=>{const r=e.columns.find(n=>_g(n)!==0);if(r){const n=w.getColumnByName(t,r.column.name);n&&(n.direction=_g(r))}return t},oA=e=>{if(!("sortType"in e))return e;const t=e.sortType,r=D.convertSortDirectionToSort(t);return B(M({},e),{sortType:t,column:$ne(e.column,r)})};function $ne(e,t){return Hne(e)?Bne(e,t):e}function Bne(e,t){const r=e.sort(t);return w.isMeasureColumn(r)&&w.isMeasureColumn(e)&&(r.title=e.title),r}function Hne(e){return"sort"in e&&typeof e.sort=="function"}const zne=(e,t)=>({columns:e.columns.map(r=>{const n=r.column.name===t.name,i=_g(r),a=n?i===1?"sortDesc":"sortAsc":"sortNone";return r.sortType=a,oA(r)})}),jne=(e,t)=>{const r=Lne(e.columns.map(({column:{name:n}})=>n),t);return Fne(e,r)},Wne=(e,t)=>{switch(t){case"iqr":return r4(e);case"extremums":return n4(e);case"standardDeviation":return i4(e)}},Une=(e,t)=>{switch(t){case"iqr":return a4(e);case"standardDeviation":return o4(e)}},Vne=(e,t,r)=>{const{column:n,style:i}=w.splitColumn(e);let a=Wne(n,t),o;return i&&(a=a.map(s=>M({column:s},i))),r&&(o=Une(n,t),o&&i&&(o=M({column:o},i))),{values:a,outliers:o}},Gne=e=>e.value.length>1,qne=()=>({valueTitle:""}),sA=e=>{var h;const{category:t}=e;if(e.value.length===0)return qne();let r,n,i;if(Gne(e))r=e.value,i=e.valueTitle,n=(h=e.outliers)==null?void 0:h[0];else{const{outliersEnabled:p,boxType:m}=e,v=w.normalizeColumn(e.value[0]),{values:g,outliers:b}=Vne(v,m,!!p);r=g,n=b,i=w.getDataOptionTitle(v)}const[a,o,s,u,c,d]=r;return{category:t[0]&&w.normalizeColumn(t[0]),boxMin:a&&w.normalizeMeasureColumn(a),boxMedian:o&&w.normalizeMeasureColumn(o),boxMax:s&&w.normalizeMeasureColumn(s),whiskerMin:u&&w.normalizeMeasureColumn(u),whiskerMax:c&&w.normalizeMeasureColumn(c),outliersCount:d&&w.normalizeMeasureColumn(d),outliers:n&&w.normalizeColumn(n),valueTitle:i}};function Yne(e){var a;const t=e.value.map(o=>{if(o!=null&&o.chartType)return[w.normalizeMeasureColumn(o)];const h=o,{lowerBound:s,upperBound:u,title:c}=h,d=xe(h,["lowerBound","upperBound","title"]);return[w.normalizeMeasureColumn(M({column:w.safeMerge(s,{title:c})},d)),w.normalizeMeasureColumn(M({column:w.safeMerge(u,{title:c})},d))]}),r=t.flat(),n=t.filter(o=>o.length===2),i=t.filter(o=>o.length===1).flat();return{x:e.category.map(o=>w.normalizeColumn(o)),breakBy:((a=e.breakBy)==null?void 0:a.map(o=>w.normalizeColumn(o)))||[],y:r,rangeValues:n,seriesValues:i,seriesToColorMap:e.seriesToColorMap}}const D2={city:4,state:3,country:2,auto:1};function Xne(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>D2[n]>D2[r]?n:r,"auto")}function Kne(e){const{geo:t,size:r,colorBy:n,details:i}=e;return{locations:t.map(a=>w.normalizeColumn(a)),size:r&&w.normalizeMeasureColumn(r),colorBy:n&&w.normalizeMeasureColumn(n),details:i&&w.normalizeAnyColumn(i),locationLevel:Xne(t)}}const lA=e=>`$measure${e}_`,uA=e=>{const t={};return e.forEach((r,n)=>{const i=r.name,a=`${lA(n)}${i}`;r.name=a,t[a]=i}),t},Zne=e=>{const t={};return{measures:e.map((n,i)=>{const a=n.name,o=`${lA(i)}${a}`;return t[o]=a,Object.assign(Object.create(n),{name:o})}),mapping:t}},cA=(e,t)=>{if(t==="funnel"){const r=w.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},dA=(e,t,r,n,i,a)=>{if(!e)return!0;if(t.length+r.length===0)throw new D.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.name)===-1)throw new D.TranslatableError("errors.dataOptions.attributeNotFound",{attributeName:o.name})}),r.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.name||u.name===n[o.name])===-1)throw new D.TranslatableError("errors.dataOptions.measureNotFound",{measureName:n[o.name]})}),i&&i.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.attribute.name)===-1)throw new D.TranslatableError("errors.dataOptions.filterAttributeNotFound",{attributeName:o.attribute.name})}),a&&a.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.attribute.name)===-1)throw new D.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:o.attribute.name})}),!0};function hA(e,t){switch(e){case"pie":case"funnel":case"treemap":return cne(e,t);default:return t}}function fA(e,t){if(D.isCartesian(e))return Ya(t);if(D.isCategorical(e))return tb(t);if(D.isIndicator(e))return Qne(t);if(D.isScatter(e))return Jne(t);if(D.isBoxplot(e))return sA(t);if(D.isScattermap(e))return Kne(t);if(D.isRange(e))return Yne(t);throw new D.TranslatableError("errors.unexpectedChartType",{chartType:e})}const tb=e=>({y:e.value.map(t=>w.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>w.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}),Qne=e=>{var t,r,n,i,a,o;return{value:(t=e.value)==null?void 0:t.map(s=>w.normalizeMeasureColumn(s)),secondary:(r=e.secondary)==null?void 0:r.map(s=>w.normalizeMeasureColumn(s)),min:(i=(n=e.min)==null?void 0:n.map(s=>w.normalizeMeasureColumn(s)))==null?void 0:i.map(N2("min")),max:(o=(a=e.max)==null?void 0:a.map(s=>w.normalizeMeasureColumn(s)))==null?void 0:o.map(N2("max"))}},N2=e=>t=>{const{column:r}=t,n="aggregation"in r&&r.aggregation||e;return B(M({},t),{column:w.safeMerge(r,{aggregation:n})})},Jne=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:i,size:a,seriesToColorMap:o}=e;return{x:t&&w.normalizeAnyColumn(t),y:r&&w.normalizeAnyColumn(r),breakByPoint:n&&w.normalizeColumn(n),breakByColor:i&&w.normalizeAnyColumn(i),size:a&&w.normalizeMeasureColumn(a),seriesToColorMap:o}};function pA(e,t){const r=e[t];return r==null?[]:Array.isArray(r)?r:[r]}function mA(e,t){let r=[];return D.isScatter(t)?r=["x","y","breakByPoint","breakByColor"]:D.isCartesian(t)||D.isCategorical(t)||D.isRange(t)?r=["x","breakBy"]:D.isBoxplot(t)?r=["category","outliers"]:D.isScattermap(t)&&(r=["locations"]),r.flatMap(n=>pA(e,n)).filter(n=>!w.isMeasureColumn(n))}function gA(e,t){let r=[];return D.isIndicator(t)?r=["value","secondary","min","max"]:D.isScatter(t)?r=["x","y","breakByColor","size"]:D.isCartesian(t)||D.isCategorical(t)||D.isRange(t)?r=["y"]:D.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"]:D.isScattermap(t)&&(r=["size","colorBy","details"]),r.flatMap(n=>pA(e,n)).filter(w.isMeasureColumn)}function eie(e,t){return mA(e,t).map(({column:r})=>r)}function tie(e,t){return gA(e,t).map(({column:r})=>r)}function Wu(e){return{columns:e.columns.map(t=>w.normalizeAnyColumn(t)).map(oA)}}function rie(e){const t=e.columns.filter(w.isMeasureColumn),{measures:r,mapping:n}=Zne(t.map(w.translateColumnToMeasure));let i=0;const a=e.columns.map(o=>w.isMeasureColumn(o)?B(M({},o),{column:r[i++]}):o);return{dataOptions:B(M({},e),{columns:a}),mapping:n}}function vA(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(i=>w.normalizeColumn(i)),columns:(r=e.columns)==null?void 0:r.map(i=>w.normalizeColumn(i)),values:(n=e.values)==null?void 0:n.map(i=>w.normalizeMeasureColumn(i)),grandTotals:e.grandTotals}}const nie={translateDataOptionsToInternal:e=>tb(_f({maxCategories:6,maxValues:1})(e)),getAttributes:gf,getMeasures:vf,isCorrectDataOptions:e=>yf(e),isCorrectDataOptionsInternal:e=>bf(e)},iie={loadData:On,getChartData:(e,t)=>wf(e,t)},aie={translateStyleOptionsToDesignOptions:e=>Y3(e),getDefaultStyleOptions:()=>({seriesLabels:{enabled:!1},legend:{enabled:!0}}),translateLegacyStyleOptionsToModern:e=>{var r;const t=e!=null?e:{};return t!=null&&t.labels&&!(t!=null&&t.seriesLabels)?B(M({},t),{seriesLabels:(r=t.labels.category)==null?void 0:r.map(n=>{var i;return{enabled:(i=n==null?void 0:n.enabled)!=null?i:!0}})}):t},isCorrectStyleOptions:e=>!(!e||typeof e!="object")},oie={getChart:()=>({type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}}),getSeries:e=>w.prepareSunburstSeries(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings),getAxes:()=>({xAxis:void 0,yAxis:void 0}),getLegend:e=>w.getLegendSettings(e.designOptions.legend),getPlotOptions:()=>({series:{},sunburst:{events:{legendItemClick:function(e){e.preventDefault()}}}}),getTooltip:e=>w.prepareSunburstTooltip(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},sie={dataOptions:nie,data:iie,designOptions:aie,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:oie,getAlerts:Ine}),isCorrectRendererProps:li}};function lie(){return[]}const uie={translateDataOptionsToInternal:e=>tb(_f({maxCategories:3,maxValues:1})(e)),getAttributes:gf,getMeasures:vf,isCorrectDataOptions:e=>yf(e),isCorrectDataOptionsInternal:e=>bf(e)},cie={loadData:On,getChartData:(e,t)=>wf(e,t)},die={translateStyleOptionsToDesignOptions:e=>q3(e),getDefaultStyleOptions:()=>({seriesLabels:{enabled:!0},tooltip:{mode:"value"}}),translateLegacyStyleOptionsToModern:e=>{var r;const t=e!=null?e:{};return t!=null&&t.labels&&!(t!=null&&t.seriesLabels)?B(M({},t),{seriesLabels:(r=t.labels.category)==null?void 0:r.map(n=>{var i;return{enabled:(i=n==null?void 0:n.enabled)!=null?i:!0}})}):t},isCorrectStyleOptions:e=>!(!e||typeof e!="object")},hie="rgb(0, 206, 230)",fie={getChart:()=>({type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}}),getSeries:e=>[{type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:hie,name:e.dataOptions.y[0]?w.getDataOptionTitle(e.dataOptions.y[0]):"",data:w.prepareTreemapDataItems(e.chartData,e.dataOptions,e.extraConfig.themeSettings),levels:w.prepareTreemapLevels(e.dataOptions,e.designOptions,e.extraConfig.themeSettings),dataLabels:{style:{textOutline:"none"}}}],getAxes:()=>({xAxis:void 0,yAxis:void 0}),getLegend:()=>({enabled:!1}),getPlotOptions:()=>({series:{}}),getTooltip:e=>w.getTreemapTooltipSettings(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},pie={dataOptions:uie,data:cie,designOptions:die,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:fie,getAlerts:lie}),isCorrectRendererProps:li}},mie={areamap:ZQ,area:kre,column:qre,bar:zre,line:are,polar:fre,streamgraph:lne,pie:Nne,funnel:xne,treemap:pie,sunburst:sie,"calendar-heatmap":Tee};function Uu(e){const t=mie[e];if(t)return t;throw new Error(`Unsupported chart type: ${e}`)}function gie(e,t){return D.isCartesian(t)?e.value.some(n=>(n==null?void 0:n.forecast)!==void 0||(n==null?void 0:n.trend)!==void 0):!1}function Vu(e){return["areamap","area","column","bar","line","polar","pie","funnel","calendar-heatmap","treemap","sunburst","streamgraph"].includes(e)}function vie(e){let t;switch(e.subtype){case"indicator/numeric":t=M({indicatorType:"numeric",numericSubtype:e.numericSubtype},e.numericSubtype==="numericSimple"?{skin:e.skin}:null);break;case"indicator/gauge":t=M({indicatorType:"gauge",skin:e.skin},e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null);break}return B(M(M({},Hr),t),{indicatorComponents:e.indicatorComponents||Hr.indicatorComponents,forceTickerView:!!e.forceTickerView})}const yie=(e,t,r)=>{const n="y"in r&&Array.isArray(r.y)?r.y.some(s=>s.showOnRightAxis):!1;let i;switch(e){case"area":i=Ate(t,r,n);break;case"arearange":case"line":i=Mte(t,r,n);break;case"pie":i=Ote(t);break;case"funnel":i=kte(t);break;case"treemap":i=q3(t);break;case"sunburst":i=Y3(t);break;case"polar":i=Nte(t,r);break;case"indicator":i=vie(t);break;case"scatter":i=Lte(t);break;case"boxplot":i=Fte(t);break;case"scattermap":i=Bte(t);break;default:throw new D.TranslatableError("errors.chartTypeNotSupported",{chartType:e})}const a="subtype"in t&&t.subtype?t.subtype:"line/basic",o=pf[a];return M(M({},i),o)};function bie(e,t,r){var n,i,a,o,s,u,c;if(Vu(e)){const d=Uu(e),h=ni((o=(a=(i=(n=d.designOptions).translateLegacyStyleOptionsToModern)==null?void 0:i.call(n,r))!=null?a:r)!=null?o:{},(c=(u=(s=d.designOptions).getDefaultStyleOptions)==null?void 0:u.call(s))!=null?c:w.getDefaultStyleOptions());if(!d.designOptions.isCorrectStyleOptions(h))throw new D.TranslatableError("errors.optionsTranslation.invalidStyleOptions",{chartType:e});if(!d.dataOptions.isCorrectDataOptionsInternal(t))throw new D.TranslatableError("errors.optionsTranslation.invalidInternalDataOptions",{chartType:e});return d.designOptions.translateStyleOptionsToDesignOptions(h,t)}else{const d=ni(r!=null?r:{},w.getDefaultStyleOptions());return yie(e,d,t)}}function ni(e,t){return w.merge.withOptions({mergeArrays:!1},t,e)}function oa(e,t,r){return _ie(e).map(i=>{const a=i.seriesId,o=i.seriesStyleOptions,s=Ete(t,ni(o,r));return{seriesId:a,designOptions:S6(s,["line","marker"])}}).reduce((i,{seriesId:a,designOptions:o})=>B(M({},i),{[a]:o}),{})}function _ie(e){return e.y.filter(wie).map(({column:{name:t},seriesStyleOptions:r})=>({seriesId:t,seriesStyleOptions:r}))}function wie(e){return e.seriesStyleOptions!==void 0}const Cie=2e4;function ol(e,t){if(e&&t){const r=t.column.name,n=e.findIndex(i=>i.name===r);return n===-1?null:n}return null}const yA=(e,t,r)=>{if(!e)return{columns:[],rows:[]};let n=0,i=4,a=5,o=0,s=1;return r&&(n=ol(e.columns,r.category),i=ol(e.columns,r.whiskerMin),a=ol(e.columns,r.whiskerMax),o=ol(t.columns,r.category),s=ol(t.columns,r.outliers)),vd(s)?e:{columns:[...e.columns,t.columns[s]],rows:e.rows.map(c=>{const d=vd(n)?null:c[n].data,h=c[a].data,p=c[i].data,m=t.rows.filter(v=>{const g=vd(o)?null:v[o].data,b=v[s].data;return g===d&&(b<p||b>h)}).map(v=>v[s].data).join(",");return[...c,{data:m}]})}};function xie(e,t,r){const n=r&&sA(r);return yA(e,t,n)}const Tie=(c,d)=>Vt(exports,[c,d],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:i,filters:a,filterRelations:o,highlights:s},u){var g;const h={dataSource:r,dimensions:t.category?[n[0]]:[],measures:i,filters:a,filterRelations:o,highlights:s},p=yield u(h,e);let m=p;const v=t.outliersCount?Sie(p,t.outliersCount.column.name):0;if(t.outliers&&v<Cie){const b={dataSource:r,dimensions:n,measures:[],filters:a,filterRelations:o,highlights:s};try{const C=yield u(b,e);m=yA(p,C,t)}catch(C){if((g=C==null?void 0:C.message)!=null&&g.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw C}}return m}),Sie=(e,t)=>{if(!(e!=null&&e.columns))return 0;const r=e.columns.findIndex(({name:i})=>i===t);let n=0;return e.rows.forEach(i=>{n+=parseInt(i[r].data)}),n};function Eie(e,t){return Vu(e)&&!t?Uu(e).data.loadData:e==="boxplot"?Aie:Mie}const Mie=n=>Vt(exports,[n],function*({app:e,queryDescription:t,executionConfig:r}){var o,s;return(((s=(o=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?s:!1)?D.executeQueryWithCache:D.executeQuery)(t,e,r)}),Aie=n=>Vt(exports,[n],function*({app:e,chartDataOptionsInternal:t,queryDescription:r}){var o,s,u,c;const a=((s=(o=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?s:!1)?D.executeQueryWithCache:D.executeQuery;return Tie({app:e,chartDataOptions:t,dataSource:r.dataSource,attributes:(u=r.dimensions)!=null?u:[],measures:(c=r.measures)!=null?c:[],filters:r.filters,highlights:r.highlights,filterRelations:r.filterRelations},a)}),qc=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=w.getColumnByName(e,t[0].column.name);return r?[w.getValue(e.rows[0],r),t[0].column.name]:[void 0,void 0]},Pie=(e,t)=>{var s;const r={type:"indicator"};if(!((s=e.value)!=null&&s.length)||t.rows.length===0)return r;const[n]=qc(t,e.value);if(n===void 0)return r;const[i]=qc(t,e.secondary),[a]=qc(t,e.min),[o]=qc(t,e.max);return{type:"indicator",value:n,secondary:i,min:a,max:o}};function bA(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:D.baseSlice(e,t,r)}function Rie(e,t){for(var r=e.length;r--&&Ky(t,e[r],0)>-1;);return r}function Oie(e,t){for(var r=-1,n=e.length;++r<n&&Ky(t,e[r],0)>-1;);return r}function kie(e){return e.split("")}var Die="\\ud800-\\udfff",Nie="\\u0300-\\u036f",Iie="\\ufe20-\\ufe2f",Lie="\\u20d0-\\u20ff",Fie=Nie+Iie+Lie,$ie="\\ufe0e\\ufe0f",Bie="\\u200d",Hie=RegExp("["+Bie+Die+Fie+$ie+"]");function _A(e){return Hie.test(e)}var wA="\\ud800-\\udfff",zie="\\u0300-\\u036f",jie="\\ufe20-\\ufe2f",Wie="\\u20d0-\\u20ff",Uie=zie+jie+Wie,Vie="\\ufe0e\\ufe0f",Gie="["+wA+"]",wg="["+Uie+"]",Cg="\\ud83c[\\udffb-\\udfff]",qie="(?:"+wg+"|"+Cg+")",CA="[^"+wA+"]",xA="(?:\\ud83c[\\udde6-\\uddff]){2}",TA="[\\ud800-\\udbff][\\udc00-\\udfff]",Yie="\\u200d",SA=qie+"?",EA="["+Vie+"]?",Xie="(?:"+Yie+"(?:"+[CA,xA,TA].join("|")+")"+EA+SA+")*",Kie=EA+SA+Xie,Zie="(?:"+[CA+wg+"?",wg,xA,TA,Gie].join("|")+")",Qie=RegExp(Cg+"(?="+Cg+")|"+Zie+Kie,"g");function Jie(e){return e.match(Qie)||[]}function xg(e){return _A(e)?Jie(e):kie(e)}function eae(e,t,r){if(e=D.toString(e),e&&(r||t===void 0))return w.baseTrim(e);if(!e||!(t=D.baseToString(t)))return e;var n=xg(e),i=xg(t),a=Oie(n,i),o=Rie(n,i)+1;return bA(n,a,o).join("")}const MA=",";function tae(e){return e.join(`${MA} `)}function rae(e){return e.split(MA).map(eae)}function nae(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function iae(e,t){const{name:r,rawName:n,coordinates:i,value:a,colorValue:o,details:s}=e,c={geo:t.locations.map((d,h)=>B(M({},et(d)),{value:n[h]}))};if(t.size&&(c.size=B(M({},et(t.size)),{value:a})),t.colorBy&&(c.colorBy=B(M({},et(t.colorBy)),{value:o})),t.details){const d=et(t.details);d.measure&&(c.details=B(M({},d),{value:s}))}return{categories:n,displayName:r,coordinates:{lat:i.lat,lng:i.lng},value:a,entries:c}}const aae=1,oae=(e,t)=>{const r=sae(e),n=e.locations&&w.getColumnsByName(t,e.locations.map(({column:{name:u}})=>u)),i=e.size&&w.getColumnByName(t,e.size.column.name),a=e.colorBy&&w.getColumnByName(t,e.colorBy.column.name),o=e.details&&w.getColumnByName(t,e.details.column.name);return{type:"scattermap",locations:t.rows.filter(u=>n.some(c=>w.getValue(u,c)!==w.NOT_AVAILABLE_DATA_VALUE)).map(u=>{const c=n.map(m=>w.getValue(u,m)),d=tae(c);let h;r&&(h={lat:w.getValue(u,n[0]),lng:w.getValue(u,n[1])});const p=n[0]&&!!w.isBlurred(u,n[0]);return M(B(M(M({name:d,rawName:c,value:i?w.getValue(u,i):aae},a&&{colorValue:w.getValue(u,a)}),o&&{details:w.getValue(u,o)}),{blur:p}),h?{coordinates:h}:null)})}};function sae(e){return e.locations.length===2&&e.locations.filter(({column:{type:t}})=>D.isNumber(t)).length===2}const lae=(e,t,r)=>{if(D.isCartesian(e))return w.isForecastChart(t)?w.advancedAnalyticsData(t,r):w.cartesianData(t,r);if(D.isCategorical(e))return wf(t,r);if(D.isScatter(e))return w.scatterData(t,r);if(D.isScattermap(e))return oae(t,r);if(D.isIndicator(e))return Pie(t,r);if(D.isBoxplot(e))return l4(t,r);if(D.isRange(e))return w.rangeData(t,r);throw new D.TranslatableError("errors.unexpectedChartType",{chartType:e})};var uae=1/0,cae=D.Set&&1/D.setToArray(new D.Set([,-0]))[1]==uae?function(e){return new D.Set(e)}:w.noop,dae=200;function rb(e,t,r){var n=-1,i=z3,a=e.length,o=!0,s=[],u=s;if(a>=dae){var c=t?null:cae(e);if(c)return D.setToArray(c);o=!1,i=D.cacheHas,u=new D.SetCache}else u=t?[]:s;e:for(;++n<a;){var d=e[n],h=t?t(d):d;if(d=d!==0?d:0,o&&h===h){for(var p=u.length;p--;)if(u[p]===h)continue e;t&&u.push(h),s.push(d)}else i(u,h,r)||(u!==s&&u.push(h),s.push(d))}return s}var hae=D.baseRest(function(e){return rb(D.baseFlatten(e,1,D.isArrayLikeObject,!0))});const AA=(e,t,r,n={})=>{if(w.emptyTable(e))return{rows:[],columns:[]};const i=hae(w.getColumnsByName(e,t.map(d=>d.name))),a=e,s=[...r.map(d=>{var h,p;return{column:(h=n[d.name])!=null?h:d.name,title:d.name,agg:(p=d.aggregation)!=null?p:"sum"}}),{column:w.rownumColumnName,title:w.rownumColumnName,agg:"min"}],u=w.groupBy(a,i,s),c=w.getColumnByName(u,w.rownumColumnName);if(!c)throw new D.TranslatableError("errors.noRowNumColumn",{columnName:w.rownumColumnName});return w.orderBy(u,[c])};function fae({dataSet:e,data:t,chartDataOptions:r,chartType:n,isForecastOrTrendChart:i,attributes:a,measures:o,dataColumnNamesMapping:s,onDataReady:u}){return k.useMemo(()=>{if(!t||!r)return null;let c;if(u&&(c=u(t),!BA(c)))throw new D.TranslatableError("errors.incorrectOnDataReadyHandler");const d=c||t;let h=w.createDataTableFromData(d);return D.isDataSource(e)||(h=AA(h,a,o,s)),pae(n,r,h,i)},[t,n,i])}function pae(e,t,r,n=!1){if(Vu(e)&&!n){const i=Uu(e);if(i.dataOptions.isCorrectDataOptionsInternal(t))return i.data.getChartData(t,r);throw new Error("Incorrect internal data options for restructured chart")}return lae(e,t,r)}function mae(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:i,designOptions:a,onBeforeRender:o,onDataPointClick:s,onDataPointContextMenu:u,onDataPointsSelected:c}=e;return k.useMemo(()=>!i||!a?null:{dataSource:D.isDataSource(t)?t:null,chartType:r,chartData:n,dataOptions:i,designOptions:a,onBeforeRender:o,onDataPointClick:s,onDataPointContextMenu:u,onDataPointsSelected:c},[t,r,n,i,a,o,s,u,c])}const nb=()=>{const[e,t]=k.useState();if(e)throw e;return t};function Tg(e,t,r=$u(),n=Bu){const i=new Map;return[...t.breakBy?t.breakBy:[],...t.x?Array.isArray(t.x)?t.x:[t.x]:[],...t.columns?t.columns:[]].forEach(function(o){if(w.isMeasureColumn(o)||!o.dateFormat||!(e!=null&&e.columns))return;const s=e.columns.findIndex(function(c){return c.name===o.column.name&&D.isDatetime(o.column.type)&&D.isDatetime(c.type)});s!==-1&&i.set(s,o.dateFormat)}),i.size===0||(e.rows=e.rows.map(function(o){return o.map(function(u,c){const d=i.get(c);if(!d||u===w.NOT_AVAILABLE_DATA_VALUE)return u;let h,p;if(w.isCell(u)){if(u.data===w.NOT_AVAILABLE_DATA_VALUE)return u;h=M({},u)}else{const v=w.createCompareValue(`${u}`,"datetime");p=new Date(v.value),h={data:p.toISOString(),text:`${u}`}}if(!h.data)return u;let m=h.text;try{m=Hu(h.data,d,r,n)}catch(v){console.error(v)}return h.text=m,h})})),e}const gae=e=>e==="funnel"?e:w.deriveChartFamily(e),vae=({dataSet:e,chartDataOptions:t,chartType:r,attributes:n,measures:i,dataColumnNamesMapping:a,filters:o,highlights:s,refreshCounter:u,enabled:c=!0,loadData:d})=>{const h=nb(),[p,m]=k.useState(!1),v=k.useMemo(()=>gae(r),[r]),g=k.useMemo(()=>[void 0,t],[t]),[b,C]=k.useState({}),{app:x}=ut();k.useEffect(()=>{if(!c)return;let A=!1;const{filters:R,relations:N}=D.getFilterListAndRelationsJaql(o);if(D.isDataSource(e)){if(!x)return;m(!0),d({app:x,chartDataOptionsInternal:t,queryDescription:{dataSource:e,dimensions:n,measures:i,filters:R,filterRelations:N,highlights:s,count:x.settings.queryLimit}}).then(H=>{const G=Tg(H,t,x==null?void 0:x.settings.locale,x==null?void 0:x.settings.dateConfig);A||C({[v]:[G,t]})}).catch(H=>{h(H)}).finally(()=>{m(!1)})}else{dA(e,n,i,a,R,s);const I=Tg(e,t,x==null?void 0:x.settings.locale,x==null?void 0:x.settings.dateConfig);C({[v]:[I,t]})}return()=>{A=!0}},[r,t,e,o,s,x,u,c]);const[E,T]=b[v]||g;return{isLoading:p,data:E,dataOptions:T}};function PA(e,t){{const r=hA(t,e),n=fA(t,r),i=cA(n,t),a=eie(i,t),o=tie(i,t);return{dataOptions:i,attributes:a,measures:o}}}const yae=(e,t,r)=>k.useMemo(()=>ib(e,t,{isForecastOrTrendChart:r,shouldHaveUniqueDataColumnNames:!0}),[e,t,r]);function ib(e,t,r){if(Vu(t)&&!(r!=null&&r.isForecastOrTrendChart)){const n=Uu(t);if(!n.dataOptions.isCorrectDataOptions(e))throw new Error("Incorrect data options");return bae(n,e,r)}else return _ae(e,t,r)}function bae(e,t,r){const n=e.dataOptions.translateDataOptionsToInternal(t),i=e.dataOptions.getAttributes(n),a=e.dataOptions.getMeasures(n),o=r!=null&&r.shouldHaveUniqueDataColumnNames?uA(a):{};return{dataOptions:n,attributes:i,measures:a,dataColumnNamesMapping:o}}function _ae(e,t,r){const{dataOptions:n,attributes:i,measures:a}=PA(e,t),o=r!=null&&r.shouldHaveUniqueDataColumnNames?uA(a):{};return{dataOptions:n,attributes:i,measures:a,dataColumnNamesMapping:o}}const I2={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"}]},wae={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}]},Cae={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"]},xae={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 Tae(e,t){const r=D.cloneDeep(xae);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}class Gu{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,i){t.font=i;let a=this.getStringWidth(t,r);const o="…",s=this.getStringWidth(t,o);if(a<=n)return{string:r,width:a};if(s>=n)return{string:o,width:s};do r=r.slice(0,r.length-1),a=this.getStringWidth(t,r);while(a+s>n);return{string:r+o,width:a+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,i){const a=window.devicePixelRatio||1;t.width=n*a,t.height=i*a,t.style.width=n+"px",t.style.height=i+"px",r.scale(a,a)}}const Lt=new Gu,To=function(e,t){return Lt.floor(e*t.value,t.decimals)};function Sae(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function Eae(e,t,r){const{maxWidth:n,maxHeight:i,showTitle:a,showSecondary:o}=r;for(let s=0;s<t.length;s++){const u=t[s],c=u.value,d=To(c,e.valueSectionHeight),h=To(c,e.indicatorMargin),p=Math.ceil(h*1.5);let m=c+d+p;if(a){const v=To(c,e.titleSectionHeight);m+=v}if(o){const v=To(c,e.secSectionHeight);m+=v}if(m<=i){const v=To(c,e.gaugeWidth),g=To(c,e.bracketWidth),b=h*2;if(v+g*2+b<=n)return B(M({},u),{maxWidth:n-b,maxHeight:i-p})}}return null}class Mae{getBaseMeasure(t,r,n){const i=r,a="gaugeHeights"in i?i.gaugeHeights:void 0;if(!a)return null;const o=i.relativeSizes,s=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),d=Sae(s,o);return Eae(d,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,i){const a=t.getContext("2d");let o=0,s;n.gaugeHeight=i.value,n.size=i.size,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,n.offsetY=0,s=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),s+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),s+=n.secSectionHeight),o=this.getCanvasWidth(r,n),n.width=o,n.height=s,Lt.setCanvasSizes(t,a,o,s),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-i,o=Lt.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i,o.key="title",o}getFitValueMeasure(t,r,n){const i=n.bracketThickness*2,a=n.maxWidth-i,o=Lt.getFitStringMeasure(t,r.value.text,a,n.valueFont);return o.width+=i,o.key="value",o}getFitSecondaryMeasure(t,r,n){const i=n.bracketWidth*2+n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,s=Lt.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=Lt.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+s.width+i,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const i=r.fitTitleMeasure,a=r.fitValueMeasure;let s=i&&i.width>a.width?i:a;const u=r.fitSecondaryMeasure,c=u&&u.width>s.width;let d;return s=c?u:s,c?d=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:d=s.string!==t[s.key].text,d?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 i=r.showTitle?(n.titleSectionHeight-n.titleBottomMargin)/2:0;t.strokeStyle=n.bracketColor,t.beginPath(),t.moveTo(n.bracketWidth+.5,i+.5),t.lineTo(.5,i+.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),i+.5),t.lineTo(n.width-.5,i+.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,i=+t.max.data,a=+(t.value.data||0);return a<n?r.startAngle-r.overDegrees:a>i?r.endAngle+r.overDegrees:this.getAngle(r,a,n,i)}getAngle(t,r,n,i){const a=(t.endAngle-t.startAngle)/(i-n);return(r-n)*a+t.startAngle}drawConditionalDial(t,r,n){const i=r.conditions,a=+r.min.data,o=+r.max.data,s=Lt.degToRad(n.startAngle+180),u=Lt.degToRad(n.endAngle+180);let c;const d=h=>this.getAngle(n,h,a,o);for(this.drawArc(t,n,s,u,n.defaultDialColor),c=i.length-1;c>=0;c--){const h=i[c];let p=+h.data,m,v=NaN,g=NaN,b=NaN,C=NaN;const x=.25;switch(h.operator){case"<":if(p<=a)break;p=p>o?o:p,m=d(p),v=s,g=Lt.degToRad(m+180);break;case">":if(p>=o)break;p=p<a?a:p,m=d(p),v=Lt.degToRad(m+180),g=u;break;case"≤":if(p<a)break;p=p>o?o:p,m=d(p),v=s,g=Lt.degToRad(m+(m+x<=n.endAngle?x:0)+180);break;case"≥":if(p>o)break;p=p<a?a:p,m=d(p),v=Lt.degToRad(m-(m-x>=n.startAngle?x:0)+180),g=u;break;case"=":if(p<a||p>o)break;m=d(p),v=Lt.degToRad(m-(m-x>=n.startAngle?x:0)+180),g=Lt.degToRad(m+(m+x<=n.endAngle?x:0)+180);break;case"≠":if(p<a||p>o)v=s,g=u;else if(p===a||p===o){const E=p===a;v=Lt.degToRad(n.startAngle+(E?x:0)+180),g=Lt.degToRad(n.endAngle-(E?0:x)+180)}else m=d(p),v=s,g=Lt.degToRad(m-(m-x>=n.startAngle?x:0)+180),b=Lt.degToRad(m+(m+x<=n.endAngle?x:0)+180),C=u}!isNaN(v)&&!isNaN(g)&&this.drawArc(t,n,v,g,h.color),!isNaN(b)&&!isNaN(C)&&this.drawArc(t,n,b,C,h.color)}}drawSimpleDial(t,r,n){const i=Lt.degToRad(n.startAngle+180),a=Lt.degToRad(n.needleAngle+180),o=Lt.degToRad(n.endAngle+180);n.needleAngle>n.startAngle&&n.needleAngle<n.endAngle?(this.drawArc(t,n,i,a,n.valueColor),t.globalAlpha=n.gaugeOpacity,this.drawArc(t,n,a,o,n.valueColor)):(n.needleAngle<=n.startAngle&&(t.globalAlpha=n.gaugeOpacity),this.drawArc(t,n,i,o,n.valueColor)),t.globalAlpha=1}drawArc(t,r,n,i,a){t.fillStyle=a,t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.outerArcRadius,n,i),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.innerArcRadius,i,n,!0),t.fill()}drawTicks(t,r,n){const i=n.startAngle,a=n.endAngle,o=n.tickDegreesIncrement,s=n.needleAngle;let u;for(u=i;u<=a;u+=o){const c=Lt.degToRad(u),d=n.gaugeCenterX-n.lengthToTick*Math.cos(c),h=n.gaugeCenterY-n.lengthToTick*Math.sin(c),p=s<i,m=s>=u-o/2&&s<u+o/2,v=u===a&&s>=u;t.fillStyle=!p&&m||v?r.color:n.tickColor,t.beginPath(),t.arc(d,h,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Lt.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 Oo=new Gu,Yc=function(e,t){return Oo.floor(e*t.value,t.decimals)};function Aae(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function Pae(e,t,r){const{showTitle:n,showSecondary:i,maxHeight:a,maxWidth:o,bracketThickness:s}=r;for(let u=0;u<t.length;u++){const c=t[u],d=c.value,h=Yc(d,e.indicatorMargin);let p=d+h;if(n){const m=Yc(d,e.titleSectionHeight);p+=m}if(i){const m=Yc(d,e.secSectionHeight);p+=m}if(p<=a){const m=Yc(d,e.numericMinWidth),v=h*2;if(m+s*2+v<=o)return B(M({},c),{maxWidth:o-v,maxHeight:a-h})}}return null}class Rae{getBaseMeasure(t,r,n){const i=r,a="sizes"in i?i.sizes:[],o=i.relativeSizes,s=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),d=Aae(s,o);return Pae(d,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:i.bracketThickness})}render(t,r,n,i){const a=t.getContext("2d");let o;n.height=i.value,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,n.offsetY=0,o=n.height,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),o+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),o+=n.secSectionHeight);const s=this.getCanvasWidth(r,n);n.width=s,n.height=o,Oo.setCanvasSizes(t,a,s,o),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-i,o=Oo.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i,o.key="title",o}getFitValueMeasure(t,r,n){const i=n.bracketThickness*2,a=n.maxWidth-i,o=Oo.getFitStringMeasure(t,r.value.text,a,n.valueFont);return o.width+=i,o.key="value",o}getFitSecondaryMeasure(t,r,n){const i=n.bracketWidth*2+n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,s=Oo.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=Oo.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+s.width+i,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const i=r.fitTitleMeasure,a=r.fitValueMeasure;let s=i&&i.width>a.width?i:a;const u=r.fitSecondaryMeasure,c=u&&u.width>s.width;let d;return s=c?u:s,c?d=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:d=s.string!==t[s.key].text,d?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 i=n.offsetY;t.fillStyle=n.valueColor,t.fillRect(1,i,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,i+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 ko=new Gu,va=function(e,t){return ko.floor(e*t.value,t.decimals)};function Oae(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function kae(e,t,r){const{showTitle:n,showSecondary:i,skin:a,maxHeight:o,maxWidth:s,borderWidth:u}=r;for(let c=0;c<t.length;c++){const d=t[c],h=d.value,p=va(h,e.valueSectionMarginBottom),v=va(h,e.indicatorVerticalMargin)*2;let g=h+p+v;if(n&&a==="vertical"){const b=va(h,e.titleSectionHeight);g+=b}if(i){const b=va(h,e.secSectionHeight),C=va(h,e.secSectionMarginTop);g+=b+C+(u||0)}if(g<=o){const b=va(h,e.numericMinWidth),x=va(h,e.indicatorHorizontalMargin)*2;if(b+x<=s)return B(M({},d),{maxWidth:s-x,maxHeight:o-v})}}return null}class Dae{getBaseMeasure(t,r,n){const i=r,a="sizes"in i?i.sizes:[],o=i.relativeSizes,s=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),d=Oae(s,o);return kae(d,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in i?i.borderWidth:0})}render(t,r,n,i){const a=t.getContext("2d");let o;n.height=i.value,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,o=n.height,n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),o+=r.skin==="vertical"?n.titleSectionHeight:0),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),o+=n.valueSectionMarginBottom+n.secSectionHeight+n.secSectionMarginTop+n.borderWidth);const s=this.getCanvasWidth(r,n);n.width=s,n.height=o,ko.setCanvasSizes(t,a,s,o),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=r.skin==="horizontal",a=n.maxWidth-(i?n.fitValueMeasure.width+n.valueSectionMarginRight:0);if(i&&a+n.titleSectionMinWidth<=0)return;const o=ko.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i?n.valueSectionMarginRight:0,o.key="title",o}getFitValueMeasure(t,r,n){const i=ko.getFitStringMeasure(t,r.value.text,n.maxWidth,n.valueFont);return i.key="value",i}getFitSecondaryMeasure(t,r,n){const i=n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,s=ko.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=ko.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+s.width+i,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n;const i=r.fitTitleMeasure,a=r.fitValueMeasure,o=r.fitSecondaryMeasure;if(r.fitMeasures.some(u=>{const c=r[u.key],d=t[u.dataKey];return!!(c&&d&&c[u.prop]!==d.text)}))return r.maxWidth;if(t.skin==="vertical"){let c=i&&i.width>a.width?i:a;c=o&&o.width>c.width?o:c,n=c.width}else n=a.width,i&&(n+=i.width),o&&o.width>n&&(n=o.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 i=r.skin==="vertical";t.fillStyle=n.valueColor||r.color,t.font=n.valueFont,t.textAlign=i?"center":"left",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,i?n.width/2:0,(r.showTitle&&i?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 Wn=new Gu;class Nae{render(t,r,n,i){const a=t.getContext("2d"),o=Math.floor(i.clientWidth)-n.horizontalMargin*2,s=n.sectionMinWidth;let u=0,c=0,d=0,h=0,p=0,m=0,v=0,g=0,b;if(a.font=n.valueFont,b=Wn.getStringWidth(a,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(a.font=n.titleFont,m=Wn.getStringWidth(a,r.value.text),p=Wn.getStringWidth(a,r.title.text),c=p<s?p:s,b+=c+n.textPadding),r.showSecondary&&(a.font=n.secondaryValueFont,g=Wn.getStringWidth(a,r.secondary.text),h=g<s?g:s,b+=h,a.font=n.secondaryTitleFont||"",v=Wn.getStringWidth(a,r.secondaryTitle.text),d=v<s?v:s,b+=d+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const x=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const T=m+p+v+g+n.textPadding*4+x,A=o-x-T;n.barWidth=Math.max(A,n.barWidth)}const E=n.barWidth+x;b+=E,n.showTickerBar=b<=o||!0,u+=n.showTickerBar?E:0}u+=r.showTitle?n.textPadding:0,u+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const C=o-u-c-d-h;if(n.fitValueMeasure=Wn.getFitStringMeasure(a,r.value.text,C,n.valueFont),u+=n.fitValueMeasure.width,r.showSecondary){const x=o-u-c-d;let E;n.fitSecValueMeasure=Wn.getFitStringMeasure(a,r.secondary.text,x,n.secondaryValueFont),u+=n.fitSecValueMeasure.width;const T=o-u,A=T/2;r.showTitle?p+v>T?p>A&&v>A?E=A:v>A&&p<=A?E=T-p:E=v:E=v:E=T,n.fitSecTitleMeasure=Wn.getFitStringMeasure(a,r.secondaryTitle.text,E,n.secondaryTitleFont),u+=n.fitSecTitleMeasure.width}if(r.showTitle){const x=o-u;n.fitTitleMeasure=Wn.getFitStringMeasure(a,r.title.text,x,n.titleFont),u+=n.fitTitleMeasure.width}n.width=u,Wn.setCanvasSizes(t,a,u,n.height),this.draw(a,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 i=+r.min.data,a=+r.max.data,o=+(((c=r.value)==null?void 0:c.data)||0),s=Math.round((n.height-n.barHeight)/2);let u;if(t.fillStyle=n.valueColor,o<=i)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,s,n.barWidth,n.barHeight),u=0;else if(o>=a)t.fillRect(n.offsetX,s,n.barWidth,n.barHeight),u=n.barWidth-n.tickerBarWidth;else{const d=(o-Math.abs(i))/(a-i),h=n.barWidth*d;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?u=n.barWidth-n.tickerBarWidth:h<n.tickerBarWidth?u=0:u=h-1}t.globalAlpha=1,t.fillStyle=n.barHandleColor,t.fillRect(n.offsetX+u,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 Iae=new Gu,Lae=new Dae,Fae=new Rae,$ae=new Mae,Bae=new Nae;class Hae{getService(t){switch(t){case"numericSimple":return Lae;case"numericBar":return Fae;case"gauge":return $ae;case"ticker":return Bae}}render(t,r,n,i){let a=this.getService(r.type);const o="getBaseMeasure"in a?a.getBaseMeasure(r,n,i):void 0;if(!o||n.forceTickerView){a=this.getService("ticker");const s=Tae(t,n);this.setTextOptions(s),a.render(t,r,s,i);return}this.calculateRelativeSizes(r,n,o.value),this.setTextOptions(n,o.size),a.render(t,r,n,o)}calculateRelativeSizes(t,r,n){const{relativeSizes:i}=r;i.forEach(function(a){let o;if("dataKey"in a&&"values"in a&&a.dataKey in t)o=a.values[t[a.dataKey]];else if("value"in a)o=a.value;else throw new D.TranslatableError("errors.indicatorInvalidRelativeSize");const s=o*n;r[a.key]=Iae.floor(s,a.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const i=t[n],a=i.fontStyle?`${i.fontStyle} `:"",o=i.fontVariant?`${i.fontVariant} `:"",s=i.fontWeight?`${i.fontWeight} `:"",u=`${Number.parseFloat(i.fontSizes&&i.fontSizes[r]||i.fontSize||t.fontSize)}px `,c=i.fontFamily||t.fontFamily,{color:d}=i;t[`${n}Font`]=a+o+s+u+c,t[`${n}Color`]=d})}}function RA(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function zae(e,t,r){if(!jae(e))return r;const i=w.getColoringServiceByColorOptions(e).getColor(t);return i?B(M({},r),{value:B(M({},r.value),{color:i})}):r}function jae(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const Wae=(e,t)=>{const r=RA(t);return r&&e.value?w.getColoringServiceByColorOptions(r).getColor(w.isNumber(e.value)?e.value:0):null},Uae=(e,t,r)=>{var h,p,m,v,g,b,C,x,E,T,A,R;const n=w.isNumber(e.min)?e.min:0,i=w.isNumber(e.max)?e.max:100,a=Xc(r,"value"),o=Xc(r,"secondary"),s=Xc(r,"min"),u=Xc(r,"max"),c=Wae(e,r),d=t.indicatorType==="gauge"?1:"vertical";return B(M(M({},Gae),c?{color:c}:null),{type:Vae(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||d,title:{text:(m=(p=(h=t.indicatorComponents)==null?void 0:h.title)==null?void 0:p.text)!=null?m:""},min:{data:n,text:w.applyFormatPlainText(s,n)},max:{data:i,text:w.applyFormatPlainText(u,i)},value:{data:e.value,text:L2(e.value,a)},secondary:{data:e.secondary,text:L2(e.secondary,o)},secondaryTitle:{text:(b=(g=(v=t.indicatorComponents)==null?void 0:v.secondaryTitle)==null?void 0:g.text)!=null?b:""},showSecondary:e.secondary!==void 0,showTitle:!!((x=(C=t.indicatorComponents)==null?void 0:C.title)!=null&&x.shouldBeShown),showLabels:!!((T=(E=t.indicatorComponents)==null?void 0:E.labels)!=null&&T.shouldBeShown),showTicks:!!((R=(A=t.indicatorComponents)==null?void 0:A.ticks)!=null&&R.shouldBeShown)})};function Vae(e,t){return e==="numeric"?t:e}function Xc(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return w.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const Gae={color:"#00cee6",showSecondary:!1};function L2(e,t){return e===void 0?"":isNaN(e)?`#${w.NOT_AVAILABLE_TEXT}`:w.applyFormatPlainText(t,e)}const qae={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"};function Sg(e,t,r){const n=D.cloneDeep(r);for(const i in t){const a=t[i],o=Yae(e,a);o&&OA(n,i,o)}return n}function OA(e,t,r){const n=t.split(".");if(n.length===1)if(n[0]in e)e[n[0]]=r;else return;else{const[i,...a]=n;if(!(i in e))return;const o=e[i];if(!kA(o))return;OA(o,a.join("."),r)}}function Yae(e,t){const r=t.split(".");let n=e;for(const i of r){if(!kA(n)||!(i in n))return;n=n[i]}return n}function kA(e){return typeof e=="object"&&e!==null}function Xae(e,t,r){return Sg(e,t,r)}const Kae=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:i}=t,{type:a}=e;let o;switch(a){case"gauge":o=Cae;break;case"numeric":e.numericSubtype==="numericBar"?o=wae:o=I2;break;default:o=I2}i&&(o=Xae(i,qae,o));const s=RA(n);return s&&r.value&&w.isNumber(r.value)&&(o=zae(s,r.value,o)),M(B(M({},o),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};function Zae(e,t,r){return e==null?e:HS(e,t,r)}const DA={"value.data":"value.data","value.text":"value.text","secondary.data":"secondary.data","secondary.text":"secondary.text","title.text":"title.text","secondaryTitle.text":"secondaryTitle.text"},NA={"value.color":"value.color","secondaryValue.color":"secondary.color","secondaryValue.fontWeight":"secondary.fontWeight","title.color":"title.color","secondaryTitle.color":"secondaryTitle.color"};function Qae(e,t){const r={};return w.flow(F2(e,DA),F2(t,NA))(r)}function F2(e,t){return r=>{const n=M({},r);for(const[i,a]of Object.entries(t))Zae(n,a,D.get(e,i));return n}}const Jae=(e,t,r)=>{const n=Sg(e,DA,t),i=Sg(e,NA,r);return{legacyDataOptions:n,legacyChartOptions:i}},eoe=e=>e,toe=(e,t)=>{var i;const r={},n=(a,o)=>{if(a===void 0)return;const s=w.getCompleteNumberFormatConfig(o);return w.applyFormatPlainText(s,a)};return t.value&&t.value.length>0&&(r.value=B(M({},et(t.value[0])),{value:(i=e.value)!=null?i:0,displayValue:n(e.value,t.value[0])})),t.secondary&&t.secondary.length>0&&e.secondary!==void 0&&(r.secondary=B(M({},et(t.secondary[0])),{value:e.secondary,displayValue:n(e.secondary,t.secondary[0])})),t.min&&t.min.length>0&&e.min!==void 0&&(r.min=B(M({},et(t.min[0])),{value:e.min,displayValue:n(e.min,t.min[0])})),t.max&&t.max.length>0&&e.max!==void 0&&(r.max=B(M({},et(t.max[0])),{value:e.max,displayValue:n(e.max,t.max[0])})),{entries:r}},roe=({chartData:e,dataOptions:t,designOptions:r,onBeforeRender:n=eoe,onDataPointClick:i})=>{var d;const a=k.useRef(null),o=k.useRef(null),{t:s}=w.useTranslation(),{themeSettings:u}=gt();k.useEffect(()=>{if(!o.current||!a.current)return;const h=new Hae,p=Uae(e,r,t),m=Kae({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:u}),v=Qae(p,m),g=n(v),{legacyDataOptions:b,legacyChartOptions:C}=Jae(g,p,m);h.render(o.current,b,C,a.current)},[e,t,r,u,n]);const c=h=>{if(i){const p=toe(e,t);i(p,h.nativeEvent)}};return w.jsx("div",{ref:a,"data-testid":"indicator-root",role:"img","aria-label":s("chart.indicator.label"),style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(d=u==null?void 0:u.chart)==null?void 0:d.backgroundColor,cursor:i?"pointer":"default"},onClick:c,children:w.jsx("canvas",{ref:o})})},noe=e=>e.type==="indicator",ioe=e=>"min"in e,aoe=e=>"indicatorComponents"in e,ooe=e=>!!e.chartData&&noe(e.chartData)&&ioe(e.dataOptions)&&aoe(e.designOptions),soe=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function loe(e,t){const r=soe[e.toLowerCase()];return r&&(t[r]=e),r||e}function uoe(e,t){return t[e.toLowerCase()]||e}const coe=(e,t)=>{const{app:r}=ut(),[n,i]=k.useState([]),a=k.useRef(e),o=k.useCallback(()=>Vt(exports,null,function*(){if(!r||!e)return;const s={},u=nae(t),c=yield r.httpClient.post("api/v1/geo/locations",M({locations:e.map(v=>({name:loe(v.name,s)}))},u&&{geoLevel:u})),d=a.current!==e;if(!c||d)return;const h=c.reduce((v,g)=>{const b=B(M({},g),{name:uoe(g.name,s)});return v[b.name]=b,v},{}),p=[],m=e.map(v=>(h[v.name]||p.push(v.name),M(M({},v),h[v.name]?{coordinates:h[v.name].latLng}:null)));p.length&&console.warn(`Locations "${p.join(", ")}" coordinates not found`),i(m)}),[r,i,e,t]);return k.useEffect(()=>{e&&(a.current=e,e.some(u=>!!u.coordinates)?i(e):o())},[e,r,o,i]),n},doe=()=>{const{app:e}=ut(),[t,r]=k.useState(null),n=k.useCallback(()=>Vt(exports,null,function*(){if(!e)return;const i=yield e.httpClient.get("api/v1/settings/system");i&&r(i.geo)}),[r,e]);return k.useEffect(()=>{n()},[e,n]),t};var hoe="Expected a function";function foe(e,t,r){if(typeof e!="function")throw new TypeError(hoe);return setTimeout(function(){e.apply(void 0,r)},t)}var poe=D.baseRest(function(e,t,r){return foe(e,w.toNumber(t)||0,r)}),yd=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(yd||{});const xm=10,moe=`
298
- <svg
299
- xmlns="http://www.w3.org/2000/svg"
300
- width="24"
301
- height="24"
302
- viewBox="0 0 24 24"
303
- fill="green"
304
- class="csdk-animate-spin"
305
- >
306
- <path
307
- fillRule="evenodd"
308
- clipRule="evenodd"
309
- 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"
310
- fill="transparent"
311
- fillOpacity="0.3"
312
- />
313
- <path
314
- fillRule="evenodd"
315
- clipRule="evenodd"
316
- 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"
317
- fill="#22C3C3"
318
- />
319
- </svg>
320
- `,_i=e=>`<span class="csdk-scattermap-tooltip-label">${e}</span>`,goe=e=>{const t=`
321
- <div>
322
- <div>${_i("...")}</div>
323
- <div>${_i(`Showing first ${xm} results`)}</div>
324
- </div>
325
- `;return`
326
- <div>
327
- ${e.slice(0,xm).map(r=>`<div>${_i(r)}</div>`).join("")}
328
- ${e.length>xm?t:""}
329
- </div>
330
- `},Tm=e=>`
331
- <span class="csdk-scattermap-tooltip-category">
332
- ${_i(e)}
333
- </span>
334
- `,voe=()=>_i(moe),Kc=(e,t,r=1)=>{const n=w.formatTooltipValue(t.size,e.value,`${e.value}`),i=w.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),a=t.details&&w.formatTooltipValue(t.details,e.details,`${e.details}`);return`
335
- <div class="csdk-scattermap-tooltip-container">
336
- <div class="csdk-scattermap-tooltip-content">
337
- <div>${_i(e.name)}</div>
338
- <div class="csdk-scattermap-tooltip-row">
339
- ${t.size?Tm(w.getDataOptionTitle(t.size)):""}
340
- ${t.size?_i(n):""}
341
- </div>
342
- <div class="csdk-scattermap-tooltip-row">
343
- ${t.colorBy?Tm(w.getDataOptionTitle(t.colorBy)):""}
344
- ${t.colorBy?_i(i||w.NOT_AVAILABLE_TEXT):""}
345
- </div>
346
- <div class="csdk-scattermap-tooltip-row">
347
- ${(r===2||r===0)&&t.details?Tm(w.getDataOptionTitle(t.details)):""}
348
- ${r===2?voe():""}
349
- ${r===0&&t.details&&w.isMeasureColumn(t.details)?_i(a||w.NOT_AVAILABLE_TEXT):""}
350
- </div>
351
- <div>
352
- ${r===0&&t.details&&!w.isMeasureColumn(t.details)?goe(e.details):""}
353
- </div>
354
- </div>
355
- </div>
356
- `},yoe=600,boe=11,_oe=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=ut(),i=k.useCallback(o=>Vt(exports,null,function*(){if(!n||!e.details||w.isMeasureColumn(e.details))return[];const s=e.locations.map((d,h)=>{const p=w.translateColumnToAttribute(d),m=rae(o)[h];return D.members(p,[m])}),u={dataSource:t,dimensions:[w.translateColumnToAttribute(e.details)],filters:D.mergeFilters(r,s),count:boe};return(yield D.executeQuery(u,n)).rows.map(([d])=>d.text)}),[n,e,t,r]);return k.useCallback(o=>{if(!e.details||e.details&&!w.isMeasureColumn(e.details)&&!t)return{content:Kc(o,e)};if(w.isMeasureColumn(e.details))return{content:Kc(o,e,yd.YES)};const s=new Promise(c=>poe(c,yoe)),u=Promise.all([i(o.name),s]).then(([c])=>Kc(B(M({},o),{details:c}),e,yd.YES));return{content:Kc(o,e,yd.LOADING),postponedContent:u}},[e,t,i])},woe="#00cee6",Coe=w.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>B(M({},e),{color:t})});function xoe(e,t){return t?Coe(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>woe)}function Toe(e,t){const r=`
357
- © <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
358
- © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
359
- <strong>
360
- <a href='https://www.mapbox.com/map-feedback/' target='_blank' aria-label='Improve this map (opens in a new tab)'>
361
- Improve this map
362
- </a>
363
- </strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",i=wi.control.attribution();return t.indexOf("mapbox")>-1?i.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&i.addAttribution(n).addTo(e),i}function IA(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function LA(e){const{color:t,size:r,fill:n,blur:i}=e,{isFilled:a}=IA(n),u=i?{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:u,opacity:u,fillColor:a?t:"transparent",color:a?"transparent":t,stroke:!a,weight:a?0:2,customStyle:e}}function Soe({coordinates:e,style:t}){const r=new wi.CircleMarker({lat:e.lat,lng:e.lng},LA(t));return r.on("mouseover",Eoe),r.on("mouseout",Moe),r}function Eoe(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:i}=IA(r.fill);return t.setStyle(n?{stroke:!0,weight:2,opacity:i?.5:.7,fillOpacity:i?.5:.7}:{weight:3,opacity:i?.6:1}),t}function Moe(e){const t=e.target,r=t.options.customStyle;t.setStyle(LA(r))}function Aoe(e){e.forEach(t=>t.remove())}function Poe(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 Roe(e,t=4,r=24){let n=0;const{min:i,max:a}=Poe(e.map(({value:s})=>s)),o=r-t;return n=a-i,e.map(s=>n===0?t:(s.value-i)/n*o+t)}const Ooe=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:i,onDataPointClick:a})=>{const{locations:o}=e,s=doe(),{themeSettings:u}=gt(),c=coe(o,t.locationLevel),{filters:d}=D.getFilterListAndRelationsJaql(n),h=_oe({dataOptions:t,dataSource:r,filters:d}),p=k.useRef(null),m=k.useRef(null),v=k.useMemo(()=>Roe(c,t.size?i.markers.size.minSize:i.markers.size.defaultSize,t.size?i.markers.size.maxSize:i.markers.size.defaultSize),[c,t,i]),g=k.useMemo(()=>{var T;return xoe(c,(T=t.colorBy)==null?void 0:T.color)},[c,t]),b=k.useRef([]),C=k.useRef(wi.layerGroup([])),x=k.useRef(null),E=k.useRef(null);return k.useEffect(()=>{p.current&&!m.current&&(m.current=wi.map(p.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),C.current.addTo(m.current),m.current.fitWorld())},[]),k.useEffect(()=>{b.current&&(Aoe(b.current),b.current=[]),c&&(c.forEach((T,A)=>{if(!T.coordinates)return;const R=Soe({coordinates:T.coordinates,style:{color:g[A],size:v[A],fill:i.markers.fill,blur:!!T.blur}});b.current.push(R),R.addTo(C.current),a&&R.on("click",N=>{a(iae(T,t),N.originalEvent)}),R.bindTooltip(()=>{const{content:N,postponedContent:I}=h(T);return I==null||I.then(H=>R.setTooltipContent(H)),N})}),Yj(m.current,b.current,FM(u)))},[c,g,v,i,u,t,h,a]),k.useEffect(()=>{var T;s&&(x.current&&x.current.remove(),x.current=wi.tileLayer(s.maps_api_provider,{zoomOffset:-1,tileSize:512}),m.current&&(x.current.addTo(m.current),(T=E.current)==null||T.remove(),E.current=Toe(m.current,s.maps_api_provider)))},[s]),w.jsx("div",{className:"csdk-map-container",ref:p,style:{width:"100%",height:"100%"}})},FA=e=>e.type==="scattermap"&&"locations"in e,koe=e=>"locations"in e,Doe=e=>"markers"in e,Noe=e=>!!e.chartData&&FA(e.chartData)&&koe(e.dataOptions)&&Doe(e.designOptions),Ioe=e=>e,Loe=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o,onBeforeRender:s=Ioe,size:u})=>{const{app:c}=ut(),{t:d}=w.useTranslation(),h=[],p=k.useCallback((b,C)=>Hu(b,C,c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig),[c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig]),{themeSettings:m}=gt(),v=k.useMemo(()=>{var R;const{options:b,alerts:C}=w.highchartsOptionsService(t,e,n,r,d,m,p);h.push(...C);const x=((R=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:R.enabled)||!1,E=M3(b,m,x),T=E3(E,r,{onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o}),A=A3(T,m);return s(A)},[e,t,r,n,m,i,a,s,d]),g=k.useMemo(()=>v?B(M({},v),{chart:M(M(M({},v.chart),(u==null?void 0:u.width)&&{width:u.width}),(u==null?void 0:u.height)&&{height:u.height})}):null,[v,u]);return g&&w.jsxs("div",{"data-testid":"chart-root",role:"img","aria-label":d("chart.visualization.label"),style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!h.length&&w.jsx(V3,{alerts:h}),w.jsx(Vy,{options:g})]})},Foe=[...D.CARTESIAN_CHART_TYPES,...D.CATEGORICAL_CHART_TYPES,...D.SCATTER_CHART_TYPES,...D.BOXPLOT_CHART_TYPES,...D.RANGE_CHART_TYPES],$A=e=>Foe.includes(e),$oe=e=>!!e.chartType&&$A(e.chartType)&&!!e.chartData,Boe=e=>e==="indicator",Hoe=(e,t)=>e==="scatter"&&"scatterDataTable"in t?t.scatterDataTable.length===0:e==="areamap"&&h3(t)?t.geoData.length===0:e==="scattermap"&&FA(t)?t.locations.length===0:e==="boxplot"&&u4(t)?t.xValues.length===0:e==="calendar-heatmap"&&v3(t)?t.values.length===0:"series"in t&&t.series.length===0,bd=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:i,highlights:a,styleOptions:o,refreshCounter:s,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:d,onBeforeRender:h,onDataReady:p}=e,{width:m,height:v}=o||{},g=Lh(t),b=k.useMemo(()=>({width:m,height:v}),[m,v]),C=gie(n,t),{dataOptions:x,attributes:E,measures:T,dataColumnNamesMapping:A}=yae(n,t,C),R=E.length===0&&T.length===0,N=k.useMemo(()=>Eie(t,C),[t,C]),{data:I,dataOptions:H,isLoading:G}=vae({dataSet:r,chartDataOptions:x,chartType:t,attributes:E,measures:T,dataColumnNamesMapping:A,filters:i,highlights:a,refreshCounter:s,enabled:!R,loadData:N}),Y=k.useMemo(()=>n?bie(t,H,o):null,[n,t,H,o]),O=fae({dataSet:r,data:I,chartDataOptions:x,chartType:t,isForecastOrTrendChart:C,attributes:E,measures:T,dataColumnNamesMapping:A,onDataReady:p}),F=mae({dataSet:r,chartType:t,chartData:O,internalDataOptions:H,designOptions:Y,onBeforeRender:h,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:d,filters:i}),X=k.useCallback(W=>{if(!F)return null;if(!O&&G)return w.jsx(Wi,{});if(O&&Hoe(t,O)||R)return w.jsx(uy,{iconType:t});if(Vu(t)&&!C){const z=Uu(t);return z.renderer.isCorrectRendererProps(F)?w.jsx(Wi,{isVisible:G,children:w.jsx(z.renderer.ChartRendererComponent,B(M({},F),{size:W}))}):null}return t==="scattermap"&&Noe(F)?w.jsx(Wi,{isVisible:G,children:w.jsx(Ooe,M({},F))}):t==="indicator"&&ooe(F)?w.jsx(Wi,{isVisible:G,children:w.jsx(roe,M({},F))}):$A(t)&&$oe(F)?w.jsx(Wi,{isVisible:G,children:w.jsx(Loe,B(M({},F),{designOptions:M({},F.designOptions),size:W}))}):null},[O,G,t,R,C,F]);return F?w.jsx(Ih,{defaultSize:g,size:b,rerenderOnResize:Boe(t),children:X}):null};function BA(e){return e&&typeof e=="object"&&"columns"in e&&D.isArray(e.columns)&&"rows"in e&&D.isArray(e.rows)}const Cf=e=>{const t=[],r=[];for(const n of e.columns)w.isMeasureColumn(n)?r.push(w.translateColumnToMeasure(n)):t.push(w.translateColumnToAttribute(n));return{attributes:t,measures:r}},zoe=({dataSet:e,dataOptions:t,dataColumnNamesMapping:r,filters:n,filterRelations:i,count:a,offset:o})=>{const s=nb(),[u,c]=k.useState(D.isDataSource(e)?null:e),[d,h]=k.useState(!1),p=k.useRef(!0),{isInitialized:m,app:v}=ut(),[g,b]=k.useState(t),[C,x]=k.useState(r);return k.useEffect(()=>{var R;let E=!1;if(!t)return;const{attributes:T,measures:A}=Cf(t);if(D.isDataSource(e)){if(!m){s(new D.TranslatableError("errors.chartNoSisenseContext"));return}if(!v||!p.current&&o>0)return;h(!0),((R=v.settings.queryCacheConfig)!=null&&R.enabled?D.executeQueryWithCache:D.executeQuery)({dataSource:e,dimensions:T,measures:A,filters:n,filterRelations:i,count:a+1,offset:o,ungroup:!0},v).then(I=>{if(E)return;p.current=I.rows.length>a;const H=p.current?I.rows.slice(0,a):I.rows;o>0?c(G=>{const Y=G==null?void 0:G.rows.length,O=Y?Y>o?G.rows.slice(0,o):G.rows:null;return{columns:I.columns,rows:O?[...O,...H]:H}}):c({columns:I.columns,rows:H}),b(t),x(r)}).finally(()=>{h(!1)}).catch(I=>{E||s(I)})}else c(e),b(t),x(r);return()=>{E=!0}},[v,e,t,r,n,i,o,a,m,s]),[d?null:u,g,C]},joe=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:i}=ut();return k.useMemo(()=>{if(!e||!t)return null;let a=w.createDataTableFromData(Tg(e,t,i==null?void 0:i.settings.locale,i==null?void 0:i.settings.dateConfig));const o=t.columns.filter(u=>!w.isMeasureColumn(u)).map(w.translateColumnToAttribute),s=t.columns.filter(u=>w.isMeasureColumn(u)).map(w.translateColumnToMeasure);return dA(a,o,s,r),n&&(a=AA(a,o,s,r)),jne(t,a)},[e,t,n,r,i])};var zr="top",yn="bottom",bn="right",jr="left",ab="auto",qu=[zr,yn,bn,jr],es="start",su="end",Woe="clippingParents",HA="viewport",sl="popper",Uoe="reference",$2=qu.reduce(function(e,t){return e.concat([t+"-"+es,t+"-"+su])},[]),zA=[].concat(qu,[ab]).reduce(function(e,t){return e.concat([t,t+"-"+es,t+"-"+su])},[]),Voe="beforeRead",Goe="read",qoe="afterRead",Yoe="beforeMain",Xoe="main",Koe="afterMain",Zoe="beforeWrite",Qoe="write",Joe="afterWrite",ese=[Voe,Goe,qoe,Yoe,Xoe,Koe,Zoe,Qoe,Joe];function ii(e){return e?(e.nodeName||"").toLowerCase():null}function en(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fa(e){var t=en(e).Element;return e instanceof t||e instanceof Element}function gn(e){var t=en(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ob(e){if(typeof ShadowRoot=="undefined")return!1;var t=en(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tse(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!gn(a)||!ii(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function rse(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 i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(u,c){return u[c]="",u},{});!gn(i)||!ii(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const nse={name:"applyStyles",enabled:!0,phase:"write",fn:tse,effect:rse,requires:["computeStyles"]};function Jn(e){return e.split("-")[0]}var Aa=Math.max,Jd=Math.min,ts=Math.round;function Eg(){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 jA(){return!/^((?!chrome|android).)*safari/i.test(Eg())}function rs(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&gn(e)&&(i=e.offsetWidth>0&&ts(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ts(n.height)/e.offsetHeight||1);var o=Fa(e)?en(e):window,s=o.visualViewport,u=!jA()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/i,d=(n.top+(u&&s?s.offsetTop:0))/a,h=n.width/i,p=n.height/a;return{width:h,height:p,top:d,right:c+h,bottom:d+p,left:c,x:c,y:d}}function sb(e){var t=rs(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 WA(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ob(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Mi(e){return en(e).getComputedStyle(e)}function ise(e){return["table","td","th"].indexOf(ii(e))>=0}function sa(e){return((Fa(e)?e.ownerDocument:e.document)||window.document).documentElement}function xf(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(ob(e)?e.host:null)||sa(e)}function B2(e){return!gn(e)||Mi(e).position==="fixed"?null:e.offsetParent}function ase(e){var t=/firefox/i.test(Eg()),r=/Trident/i.test(Eg());if(r&&gn(e)){var n=Mi(e);if(n.position==="fixed")return null}var i=xf(e);for(ob(i)&&(i=i.host);gn(i)&&["html","body"].indexOf(ii(i))<0;){var a=Mi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Yu(e){for(var t=en(e),r=B2(e);r&&ise(r)&&Mi(r).position==="static";)r=B2(r);return r&&(ii(r)==="html"||ii(r)==="body"&&Mi(r).position==="static")?t:r||ase(e)||t}function lb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Il(e,t,r){return Aa(e,Jd(t,r))}function ose(e,t,r){var n=Il(e,t,r);return n>r?r:n}function UA(){return{top:0,right:0,bottom:0,left:0}}function VA(e){return Object.assign({},UA(),e)}function GA(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var sse=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,VA(typeof t!="number"?t:GA(t,qu))};function lse(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Jn(r.placement),u=lb(s),c=[jr,bn].indexOf(s)>=0,d=c?"height":"width";if(!(!a||!o)){var h=sse(i.padding,r),p=sb(a),m=u==="y"?zr:jr,v=u==="y"?yn:bn,g=r.rects.reference[d]+r.rects.reference[u]-o[u]-r.rects.popper[d],b=o[u]-r.rects.reference[u],C=Yu(a),x=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,E=g/2-b/2,T=h[m],A=x-p[d]-h[v],R=x/2-p[d]/2+E,N=Il(T,R,A),I=u;r.modifiersData[n]=(t={},t[I]=N,t.centerOffset=N-R,t)}}function use(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||WA(t.elements.popper,i)&&(t.elements.arrow=i))}const cse={name:"arrow",enabled:!0,phase:"main",fn:lse,effect:use,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(e){return e.split("-")[1]}var dse={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hse(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:ts(r*i)/i||0,y:ts(n*i)/i||0}}function H2(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=o.x,m=p===void 0?0:p,v=o.y,g=v===void 0?0:v,b=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=b.x,g=b.y;var C=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),E=jr,T=zr,A=window;if(c){var R=Yu(r),N="clientHeight",I="clientWidth";if(R===en(r)&&(R=sa(r),Mi(R).position!=="static"&&s==="absolute"&&(N="scrollHeight",I="scrollWidth")),R=R,i===zr||(i===jr||i===bn)&&a===su){T=yn;var H=h&&R===A&&A.visualViewport?A.visualViewport.height:R[N];g-=H-n.height,g*=u?1:-1}if(i===jr||(i===zr||i===yn)&&a===su){E=bn;var G=h&&R===A&&A.visualViewport?A.visualViewport.width:R[I];m-=G-n.width,m*=u?1:-1}}var Y=Object.assign({position:s},c&&dse),O=d===!0?hse({x:m,y:g},en(r)):{x:m,y:g};if(m=O.x,g=O.y,u){var F;return Object.assign({},Y,(F={},F[T]=x?"0":"",F[E]=C?"0":"",F.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",F))}return Object.assign({},Y,(t={},t[T]=x?g+"px":"",t[E]=C?m+"px":"",t.transform="",t))}function fse(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:Jn(t.placement),variation:ns(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,H2(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,H2(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const pse={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fse,data:{}};var Zc={passive:!0};function mse(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,u=en(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",r.update,Zc)}),s&&u.addEventListener("resize",r.update,Zc),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Zc)}),s&&u.removeEventListener("resize",r.update,Zc)}}const gse={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mse,data:{}};var vse={left:"right",right:"left",bottom:"top",top:"bottom"};function _d(e){return e.replace(/left|right|bottom|top/g,function(t){return vse[t]})}var yse={start:"end",end:"start"};function z2(e){return e.replace(/start|end/g,function(t){return yse[t]})}function ub(e){var t=en(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function cb(e){return rs(sa(e)).left+ub(e).scrollLeft}function bse(e,t){var r=en(e),n=sa(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var c=jA();(c||!c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s+cb(e),y:u}}function _se(e){var t,r=sa(e),n=ub(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Aa(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Aa(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+cb(e),u=-n.scrollTop;return Mi(i||r).direction==="rtl"&&(s+=Aa(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function db(e){var t=Mi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function qA(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:gn(e)&&db(e)?e:qA(xf(e))}function Ll(e,t){var r;t===void 0&&(t=[]);var n=qA(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=en(n),o=i?[a].concat(a.visualViewport||[],db(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Ll(xf(o)))}function Mg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wse(e,t){var r=rs(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 j2(e,t,r){return t===HA?Mg(bse(e,r)):Fa(t)?wse(t,r):Mg(_se(sa(e)))}function Cse(e){var t=Ll(xf(e)),r=["absolute","fixed"].indexOf(Mi(e).position)>=0,n=r&&gn(e)?Yu(e):e;return Fa(n)?t.filter(function(i){return Fa(i)&&WA(i,n)&&ii(i)!=="body"}):[]}function xse(e,t,r,n){var i=t==="clippingParents"?Cse(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(u,c){var d=j2(e,c,n);return u.top=Aa(d.top,u.top),u.right=Jd(d.right,u.right),u.bottom=Jd(d.bottom,u.bottom),u.left=Aa(d.left,u.left),u},j2(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function YA(e){var t=e.reference,r=e.element,n=e.placement,i=n?Jn(n):null,a=n?ns(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(i){case zr:u={x:o,y:t.y-r.height};break;case yn:u={x:o,y:t.y+t.height};break;case bn:u={x:t.x+t.width,y:s};break;case jr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=i?lb(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case es:u[c]=u[c]-(t[d]/2-r[d]/2);break;case su:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function lu(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,u=s===void 0?Woe:s,c=r.rootBoundary,d=c===void 0?HA:c,h=r.elementContext,p=h===void 0?sl:h,m=r.altBoundary,v=m===void 0?!1:m,g=r.padding,b=g===void 0?0:g,C=VA(typeof b!="number"?b:GA(b,qu)),x=p===sl?Uoe:sl,E=e.rects.popper,T=e.elements[v?x:p],A=xse(Fa(T)?T:T.contextElement||sa(e.elements.popper),u,d,o),R=rs(e.elements.reference),N=YA({reference:R,element:E,strategy:"absolute",placement:i}),I=Mg(Object.assign({},E,N)),H=p===sl?I:R,G={top:A.top-H.top+C.top,bottom:H.bottom-A.bottom+C.bottom,left:A.left-H.left+C.left,right:H.right-A.right+C.right},Y=e.modifiersData.offset;if(p===sl&&Y){var O=Y[i];Object.keys(G).forEach(function(F){var X=[bn,yn].indexOf(F)>=0?1:-1,W=[zr,yn].indexOf(F)>=0?"y":"x";G[F]+=O[W]*X})}return G}function Tse(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?zA:u,d=ns(n),h=d?s?$2:$2.filter(function(v){return ns(v)===d}):qu,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var m=p.reduce(function(v,g){return v[g]=lu(e,{placement:g,boundary:i,rootBoundary:a,padding:o})[Jn(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function Sse(e){if(Jn(e)===ab)return[];var t=_d(e);return[z2(e),t,z2(t)]}function Ese(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,c=r.padding,d=r.boundary,h=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,v=m===void 0?!0:m,g=r.allowedAutoPlacements,b=t.options.placement,C=Jn(b),x=C===b,E=u||(x||!v?[_d(b)]:Sse(b)),T=[b].concat(E).reduce(function(re,oe){return re.concat(Jn(oe)===ab?Tse(t,{placement:oe,boundary:d,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:g}):oe)},[]),A=t.rects.reference,R=t.rects.popper,N=new Map,I=!0,H=T[0],G=0;G<T.length;G++){var Y=T[G],O=Jn(Y),F=ns(Y)===es,X=[zr,yn].indexOf(O)>=0,W=X?"width":"height",V=lu(t,{placement:Y,boundary:d,rootBoundary:h,altBoundary:p,padding:c}),z=X?F?bn:jr:F?yn:zr;A[W]>R[W]&&(z=_d(z));var q=_d(z),ee=[];if(a&&ee.push(V[O]<=0),s&&ee.push(V[z]<=0,V[q]<=0),ee.every(function(re){return re})){H=Y,I=!1;break}N.set(Y,ee)}if(I)for(var j=v?3:1,K=function(oe){var se=T.find(function(de){var ce=N.get(de);if(ce)return ce.slice(0,oe).every(function(ge){return ge})});if(se)return H=se,"break"},ie=j;ie>0;ie--){var ne=K(ie);if(ne==="break")break}t.placement!==H&&(t.modifiersData[n]._skip=!0,t.placement=H,t.reset=!0)}}const Mse={name:"flip",enabled:!0,phase:"main",fn:Ese,requiresIfExists:["offset"],data:{_skip:!1}};function W2(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 U2(e){return[zr,bn,yn,jr].some(function(t){return e[t]>=0})}function Ase(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=lu(t,{elementContext:"reference"}),s=lu(t,{altBoundary:!0}),u=W2(o,n),c=W2(s,i,a),d=U2(u),h=U2(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const Pse={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ase};function Rse(e,t,r){var n=Jn(e),i=[jr,zr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[jr,bn].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function Ose(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=zA.reduce(function(d,h){return d[h]=Rse(h,t.rects,a),d},{}),s=o[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}const kse={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ose};function Dse(e){var t=e.state,r=e.name;t.modifiersData[r]=YA({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Nse={name:"popperOffsets",enabled:!0,phase:"read",fn:Dse,data:{}};function Ise(e){return e==="x"?"y":"x"}function Lse(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,h=r.padding,p=r.tether,m=p===void 0?!0:p,v=r.tetherOffset,g=v===void 0?0:v,b=lu(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:d}),C=Jn(t.placement),x=ns(t.placement),E=!x,T=lb(C),A=Ise(T),R=t.modifiersData.popperOffsets,N=t.rects.reference,I=t.rects.popper,H=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,G=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(R){if(a){var F,X=T==="y"?zr:jr,W=T==="y"?yn:bn,V=T==="y"?"height":"width",z=R[T],q=z+b[X],ee=z-b[W],j=m?-I[V]/2:0,K=x===es?N[V]:I[V],ie=x===es?-I[V]:-N[V],ne=t.elements.arrow,re=m&&ne?sb(ne):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:UA(),se=oe[X],de=oe[W],ce=Il(0,N[V],re[V]),ge=E?N[V]/2-j-ce-se-G.mainAxis:K-ce-se-G.mainAxis,Se=E?-N[V]/2+j+ce+de+G.mainAxis:ie+ce+de+G.mainAxis,ye=t.elements.arrow&&Yu(t.elements.arrow),J=ye?T==="y"?ye.clientTop||0:ye.clientLeft||0:0,_e=(F=Y==null?void 0:Y[T])!=null?F:0,ve=z+ge-_e-J,Ae=z+Se-_e,Ie=Il(m?Jd(q,ve):q,z,m?Aa(ee,Ae):ee);R[T]=Ie,O[T]=Ie-z}if(s){var Ue,Ve=T==="x"?zr:jr,ir=T==="x"?yn:bn,At=R[A],Wt=A==="y"?"height":"width",Nt=At+b[Ve],Re=At-b[ir],st=[zr,jr].indexOf(C)!==-1,Ni=(Ue=Y==null?void 0:Y[A])!=null?Ue:0,on=st?Nt:At-N[Wt]-I[Wt]-Ni+G.altAxis,sn=st?At+N[Wt]+I[Wt]-Ni-G.altAxis:Re,Dn=m&&st?ose(on,At,sn):Il(m?on:Nt,At,m?sn:Re);R[A]=Dn,O[A]=Dn-At}t.modifiersData[n]=O}}const Fse={name:"preventOverflow",enabled:!0,phase:"main",fn:Lse,requiresIfExists:["offset"]};function $se(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bse(e){return e===en(e)||!gn(e)?ub(e):$se(e)}function Hse(e){var t=e.getBoundingClientRect(),r=ts(t.width)/e.offsetWidth||1,n=ts(t.height)/e.offsetHeight||1;return r!==1||n!==1}function zse(e,t,r){r===void 0&&(r=!1);var n=gn(t),i=gn(t)&&Hse(t),a=sa(t),o=rs(e,i,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ii(t)!=="body"||db(a))&&(s=Bse(t)),gn(t)?(u=rs(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=cb(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function jse(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&i(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Wse(e){var t=jse(e);return ese.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Use(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Vse(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var V2={placement:"bottom",modifiers:[],strategy:"absolute"};function G2(){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 Gse(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?V2:i;return function(s,u,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},V2,a),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},h=[],p=!1,m={state:d,setOptions:function(C){var x=typeof C=="function"?C(d.options):C;g(),d.options=Object.assign({},a,d.options,x),d.scrollParents={reference:Fa(s)?Ll(s):s.contextElement?Ll(s.contextElement):[],popper:Ll(u)};var E=Wse(Vse([].concat(n,d.options.modifiers)));return d.orderedModifiers=E.filter(function(T){return T.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,x=C.reference,E=C.popper;if(G2(x,E)){d.rects={reference:zse(x,Yu(E),d.options.strategy==="fixed"),popper:sb(E)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(G){return d.modifiersData[G.name]=Object.assign({},G.data)});for(var T=0;T<d.orderedModifiers.length;T++){if(d.reset===!0){d.reset=!1,T=-1;continue}var A=d.orderedModifiers[T],R=A.fn,N=A.options,I=N===void 0?{}:N,H=A.name;typeof R=="function"&&(d=R({state:d,options:I,name:H,instance:m})||d)}}}},update:Use(function(){return new Promise(function(b){m.forceUpdate(),b(d)})}),destroy:function(){g(),p=!0}};if(!G2(s,u))return m;m.setOptions(c).then(function(b){!p&&c.onFirstUpdate&&c.onFirstUpdate(b)});function v(){d.orderedModifiers.forEach(function(b){var C=b.name,x=b.options,E=x===void 0?{}:x,T=b.effect;if(typeof T=="function"){var A=T({state:d,name:C,instance:m,options:E}),R=function(){};h.push(A||R)}})}function g(){h.forEach(function(b){return b()}),h=[]}return m}}var qse=[gse,Nse,pse,nse,kse,Mse,Fse,cse,Pse],Yse=Gse({defaultModifiers:qse});function Xse(e){return bt("MuiPopper",e)}_t("MuiPopper",["root"]);function Kse(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 eh(e){return typeof e=="function"?e():e}function Tf(e){return e.nodeType!==void 0}function Zse(e){return!Tf(e)}const Qse=e=>{const{classes:t}=e;return Dt({root:["root"]},Xse,t)},Jse={},ele=Q.forwardRef(function(t,r){var V;const W=t,{anchorEl:n,children:i,direction:a,disablePortal:o,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:h,slotProps:p={},slots:m={},TransitionProps:v,ownerState:g}=W,b=xe(W,["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"]),C=Q.useRef(null),x=gr(C,r),E=Q.useRef(null),T=gr(E,h),A=Q.useRef(T);Mn(()=>{A.current=T},[T]),Q.useImperativeHandle(h,()=>E.current,[]);const R=Kse(c,a),[N,I]=Q.useState(R),[H,G]=Q.useState(eh(n));Q.useEffect(()=>{E.current&&E.current.forceUpdate()}),Q.useEffect(()=>{n&&G(eh(n))},[n]),Mn(()=>{if(!H||!u)return;const z=j=>{I(j.placement)};if(process.env.NODE_ENV!=="production"&&H&&Tf(H)&&H.nodeType===1){const j=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&j.top===0&&j.left===0&&j.right===0&&j.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(`
364
- `))}let q=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{z(j)}}];s!=null&&(q=q.concat(s)),d&&d.modifiers!=null&&(q=q.concat(d.modifiers));const ee=Yse(H,C.current,B(M({placement:R},d),{modifiers:q}));return A.current(ee),()=>{ee.destroy(),A.current(null)}},[H,o,s,u,d,R]);const Y={placement:N};v!==null&&(Y.TransitionProps=v);const O=Qse(t),F=(V=m.root)!=null?V:"div",X=Rv({elementType:F,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:O.root});return fe.jsx(F,B(M({},X),{children:typeof i=="function"?i(Y):i}))}),XA=Q.forwardRef(function(t,r){const G=t,{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:p=Jse,popperRef:m,style:v,transition:g=!1,slotProps:b={},slots:C={}}=G,x=xe(G,["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"]),[E,T]=Q.useState(!0),A=()=>{T(!1)},R=()=>{T(!0)};if(!u&&!d&&(!g||E))return null;let N;if(a)N=a;else if(n){const Y=eh(n);N=Y&&Tf(Y)?Qr(Y).body:Qr(null).body}const I=!d&&u&&(!g||E)?"none":void 0,H=g?{in:d,onEnter:A,onExited:R}:void 0;return fe.jsx(Gl,{disablePortal:s,container:N,children:fe.jsx(ele,B(M({anchorEl:n,direction:o,disablePortal:s,modifiers:c,ref:r,open:g?!E:d,placement:h,popperOptions:p,popperRef:m,slotProps:b,slots:C},x),{style:M({position:"fixed",top:0,left:0,display:I},v),TransitionProps:H,children:i}))})});process.env.NODE_ENV!=="production"&&(XA.propTypes={anchorEl:Ri(_.oneOfType([Ti,_.object,_.func]),e=>{if(e.open){const t=eh(e.anchorEl);if(t&&Tf(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(`
365
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||Zse(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(`
366
- `))}return null}),children:_.oneOfType([_.node,_.func]),container:_.oneOfType([Ti,_.func]),direction:_.oneOf(["ltr","rtl"]),disablePortal:_.bool,keepMounted:_.bool,modifiers:_.arrayOf(_.shape({data:_.object,effect:_.func,enabled:_.bool,fn:_.func,name:_.any,options:_.object,phase:_.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:_.arrayOf(_.string),requiresIfExists:_.arrayOf(_.string)})),open:_.bool.isRequired,placement:_.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:_.shape({modifiers:_.array,onFirstUpdate:_.func,placement:_.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:_.oneOf(["absolute","fixed"])}),popperRef:us,slotProps:_.shape({root:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType}),transition:_.bool});const tle=Ne(XA,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xu=Q.forwardRef(function(t,r){var I;const n=bh(),N=Mt({props:t,name:"MuiPopper"}),{anchorEl:a,component:o,components:s,componentsProps:u,container:c,disablePortal:d,keepMounted:h,modifiers:p,open:m,placement:v,popperOptions:g,popperRef:b,transition:C,slots:x,slotProps:E}=N,T=xe(N,["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"]),A=(I=x==null?void 0:x.root)!=null?I:s==null?void 0:s.Root,R=M({anchorEl:a,container:c,disablePortal:d,keepMounted:h,modifiers:p,open:m,placement:v,popperOptions:g,popperRef:b,transition:C},T);return fe.jsx(tle,B(M({as:o,direction:n?"rtl":"ltr",slots:{root:A},slotProps:E!=null?E:u},R),{ref:r}))});process.env.NODE_ENV!=="production"&&(Xu.propTypes={anchorEl:_.oneOfType([Ti,_.object,_.func]),children:_.oneOfType([_.node,_.func]),component:_.elementType,components:_.shape({Root:_.elementType}),componentsProps:_.shape({root:_.oneOfType([_.func,_.object])}),container:_.oneOfType([Ti,_.func]),disablePortal:_.bool,keepMounted:_.bool,modifiers:_.arrayOf(_.shape({data:_.object,effect:_.func,enabled:_.bool,fn:_.func,name:_.any,options:_.object,phase:_.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:_.arrayOf(_.string),requiresIfExists:_.arrayOf(_.string)})),open:_.bool.isRequired,placement:_.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:_.shape({modifiers:_.array,onFirstUpdate:_.func,placement:_.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:_.oneOf(["absolute","fixed"])}),popperRef:us,slotProps:_.shape({root:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transition:_.bool});function rle(e){return bt("MuiTooltip",e)}const jt=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function nle(e){return Math.round(e*1e5)/1e5}const ile=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${Le(a.split("-")[0])}`],arrow:["arrow"]};return Dt(o,rle,t)},ale=Ne(Xu,{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]}})($t(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[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}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${jt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ole=Ne("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${Le(r.placement.split("-")[0])}`]]}})($t(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Rt(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,[`.${jt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${jt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${jt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${nle(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${jt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${jt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${jt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${jt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),sle=Ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})($t(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Rt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Qc=!1;const q2=new Nh;let ll={x:0,y:0};function Jc(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Sf=Q.forwardRef(function(t,r){var sc,Ja,lc;const n=Mt({props:t,name:"MuiTooltip"}),oc=n,{arrow:i=!1,children:a,classes:o,components:s={},componentsProps:u={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:h=!1,disableInteractive:p=!1,disableTouchListener:m=!1,enterDelay:v=100,enterNextDelay:g=0,enterTouchDelay:b=700,followCursor:C=!1,id:x,leaveDelay:E=0,leaveTouchDelay:T=1500,onClose:A,onOpen:R,open:N,placement:I="bottom",PopperComponent:H,PopperProps:G={},slotProps:Y={},slots:O={},title:F,TransitionComponent:X,TransitionProps:W}=oc,V=xe(oc,["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"]),z=Q.isValidElement(a)?a:fe.jsx("span",{children:a}),q=Su(),ee=bh(),[j,K]=Q.useState(),[ie,ne]=Q.useState(null),re=Q.useRef(!1),oe=p||C,se=xa(),de=xa(),ce=xa(),ge=xa(),[Se,ye]=Sv({controlled:N,default:!1,name:"Tooltip",state:"open"});let J=Se;if(process.env.NODE_ENV!=="production"){const{current:$e}=Q.useRef(N!==void 0);Q.useEffect(()=>{j&&j.disabled&&!$e&&F!==""&&j.tagName.toLowerCase()==="button"&&console.warn(["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(`
367
- `))},[F,j,$e])}const _e=Dh(x),ve=Q.useRef(),Ae=Kn(()=>{ve.current!==void 0&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),ge.clear()});Q.useEffect(()=>Ae,[Ae]);const Ie=$e=>{q2.clear(),Qc=!0,ye(!0),R&&!J&&R($e)},Ue=Kn($e=>{q2.start(800+E,()=>{Qc=!1}),ye(!1),A&&J&&A($e),se.start(q.transitions.duration.shortest,()=>{re.current=!1})}),Ve=$e=>{re.current&&$e.type!=="touchstart"||(j&&j.removeAttribute("title"),de.clear(),ce.clear(),v||Qc&&g?de.start(Qc?g:v,()=>{Ie($e)}):Ie($e))},ir=$e=>{de.clear(),ce.start(E,()=>{Ue($e)})},[,At]=Q.useState(!1),Wt=$e=>{Rd($e.target)||(At(!1),ir($e))},Nt=$e=>{j||K($e.currentTarget),Rd($e.target)&&(At(!0),Ve($e))},Re=$e=>{re.current=!0;const Ur=z.props;Ur.onTouchStart&&Ur.onTouchStart($e)},st=$e=>{Re($e),ce.clear(),se.clear(),Ae(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.start(b,()=>{document.body.style.WebkitUserSelect=ve.current,Ve($e)})},Ni=$e=>{z.props.onTouchEnd&&z.props.onTouchEnd($e),Ae(),ce.start(T,()=>{Ue($e)})};Q.useEffect(()=>{if(!J)return;function $e(Ur){Ur.key==="Escape"&&Ue(Ur)}return document.addEventListener("keydown",$e),()=>{document.removeEventListener("keydown",$e)}},[Ue,J]);const on=gr(ds(z),K,r);!F&&F!==0&&(J=!1);const sn=Q.useRef(),Dn=$e=>{const Ur=z.props;Ur.onMouseMove&&Ur.onMouseMove($e),ll={x:$e.clientX,y:$e.clientY},sn.current&&sn.current.update()},Cn={},ci=typeof F=="string";c?(Cn.title=!J&&ci&&!h?F:null,Cn["aria-describedby"]=J?_e:null):(Cn["aria-label"]=ci?F:null,Cn["aria-labelledby"]=J&&!ci?_e:null);const ar=M(B(M(M(M({},Cn),V),z.props),{className:je(V.className,z.props.className),onTouchStart:Re,ref:on}),C?{onMouseMove:Dn}:{});process.env.NODE_ENV!=="production"&&(ar["data-mui-internal-clone-element"]=!0,Q.useEffect(()=>{j&&!j.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(`
368
- `))},[j]));const Nn={};m||(ar.onTouchStart=st,ar.onTouchEnd=Ni),h||(ar.onMouseOver=Jc(Ve,ar.onMouseOver),ar.onMouseLeave=Jc(ir,ar.onMouseLeave),oe||(Nn.onMouseOver=Ve,Nn.onMouseLeave=ir)),d||(ar.onFocus=Jc(Nt,ar.onFocus),ar.onBlur=Jc(Wt,ar.onBlur),oe||(Nn.onFocus=Nt,Nn.onBlur=Wt)),process.env.NODE_ENV!=="production"&&z.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${z.props.title}\` or the Tooltip component.`].join(`
369
- `));const Ze=B(M({},n),{isRtl:ee,arrow:i,disableInteractive:oe,placement:I,PopperComponentProp:H,touch:re.current}),Xt=typeof Y.popper=="function"?Y.popper(Ze):Y.popper,ua=Q.useMemo(()=>{var Ur,uc;let $e=[{name:"arrow",enabled:!!ie,options:{element:ie,padding:4}}];return(Ur=G.popperOptions)!=null&&Ur.modifiers&&($e=$e.concat(G.popperOptions.modifiers)),(uc=Xt==null?void 0:Xt.popperOptions)!=null&&uc.modifiers&&($e=$e.concat(Xt.popperOptions.modifiers)),B(M(M({},G.popperOptions),Xt==null?void 0:Xt.popperOptions),{modifiers:$e})},[ie,G.popperOptions,Xt==null?void 0:Xt.popperOptions]),Fs=ile(Ze),di=typeof Y.transition=="function"?Y.transition(Ze):Y.transition,Qa={slots:M({popper:s.Popper,transition:(sc=s.Transition)!=null?sc:X,tooltip:s.Tooltip,arrow:s.Arrow},O),slotProps:{arrow:(Ja=Y.arrow)!=null?Ja:u.arrow,popper:M(M({},G),Xt!=null?Xt:u.popper),tooltip:(lc=Y.tooltip)!=null?lc:u.tooltip,transition:M(M({},W),di!=null?di:u.transition)}},[rp,nc]=lr("popper",{elementType:ale,externalForwardedProps:Qa,ownerState:Ze,className:je(Fs.popper,G==null?void 0:G.className)}),[ic,ac]=lr("transition",{elementType:Vl,externalForwardedProps:Qa,ownerState:Ze}),[np,ip]=lr("tooltip",{elementType:ole,className:Fs.tooltip,externalForwardedProps:Qa,ownerState:Ze}),[ap,op]=lr("arrow",{elementType:sle,className:Fs.arrow,externalForwardedProps:Qa,ownerState:Ze,ref:ne});return fe.jsxs(Q.Fragment,{children:[Q.cloneElement(z,ar),fe.jsx(rp,B(M(M({as:H!=null?H:Xu,placement:I,anchorEl:C?{getBoundingClientRect:()=>({top:ll.y,left:ll.x,right:ll.x,bottom:ll.y,width:0,height:0})}:j,popperRef:sn,open:j?J:!1,id:_e,transition:!0},Nn),nc),{popperOptions:ua,children:({TransitionProps:$e})=>fe.jsx(ic,B(M(M({timeout:q.transitions.duration.shorter},$e),ac),{children:fe.jsxs(np,B(M({},ip),{children:[F,i?fe.jsx(ap,M({},op)):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(Sf.propTypes={arrow:_.bool,children:ja.isRequired,classes:_.object,className:_.string,components:_.shape({Arrow:_.elementType,Popper:_.elementType,Tooltip:_.elementType,Transition:_.elementType}),componentsProps:_.shape({arrow:_.object,popper:_.object,tooltip:_.object,transition:_.object}),describeChild:_.bool,disableFocusListener:_.bool,disableHoverListener:_.bool,disableInteractive:_.bool,disableTouchListener:_.bool,enterDelay:_.number,enterNextDelay:_.number,enterTouchDelay:_.number,followCursor:_.bool,id:_.string,leaveDelay:_.number,leaveTouchDelay:_.number,onClose:_.func,onOpen:_.func,open:_.bool,placement:_.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"]),PopperComponent:_.elementType,PopperProps:_.object,slotProps:_.shape({arrow:_.oneOfType([_.func,_.object]),popper:_.oneOfType([_.func,_.object]),tooltip:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({arrow:_.elementType,popper:_.elementType,tooltip:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),title:_.node,TransitionComponent:_.elementType,TransitionProps:_.object});var KA={exports:{}};/*!
370
- Copyright (c) 2018 Jed Watson.
371
- Licensed under the MIT License (MIT), see
372
- http://jedwatson.github.io/classnames
373
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(KA);var lle=KA.exports;const uu=w.getDefaultExportFromCjs(lle);function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ot.apply(null,arguments)}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function ule(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZA(e){var t=ule(e,"string");return Ai(t)=="symbol"?t:t+""}function Y2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZA(n.key),n)}}function Tt(e,t,r){return t&&Y2(e.prototype,t),r&&Y2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ag(e,t){return Ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ag(e,t)}function Jt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ag(e,t)}function pe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vr(e,t){if(t&&(Ai(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xe(e)}function ue(e,t,r){return(t=ZA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qn=function(t,r,n,i,a,o,s,u){if(process.env.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,i,a,o,s,u],h=0;c=new Error("Invariant Violation: "+r.replace(/%s/g,function(){return d[h++]}))}throw c.framesToPop=1,c}},ed=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},cle=Array.isArray,wn=cle,dle=typeof ed=="object"&&ed&&ed.Object===Object&&ed,QA=dle,hle=QA,fle=typeof self=="object"&&self&&self.Object===Object&&self,ple=hle||fle||Function("return this")(),ui=ple,mle=ui,gle=mle.Symbol,Ku=gle,X2=Ku,JA=Object.prototype,vle=JA.hasOwnProperty,yle=JA.toString,ul=X2?X2.toStringTag:void 0;function ble(e){var t=vle.call(e,ul),r=e[ul];try{e[ul]=void 0;var n=!0}catch(a){}var i=yle.call(e);return n&&(t?e[ul]=r:delete e[ul]),i}var _le=ble,wle=Object.prototype,Cle=wle.toString;function xle(e){return Cle.call(e)}var Tle=xle,K2=Ku,Sle=_le,Ele=Tle,Mle="[object Null]",Ale="[object Undefined]",Z2=K2?K2.toStringTag:void 0;function Ple(e){return e==null?e===void 0?Ale:Mle:Z2&&Z2 in Object(e)?Sle(e):Ele(e)}var Xa=Ple;function Rle(e){return e!=null&&typeof e=="object"}var la=Rle,Ole=Xa,kle=la,Dle="[object Symbol]";function Nle(e){return typeof e=="symbol"||kle(e)&&Ole(e)==Dle}var Ef=Nle,Ile=wn,Lle=Ef,Fle=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$le=/^\w*$/;function Ble(e,t){if(Ile(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Lle(e)?!0:$le.test(e)||!Fle.test(e)||t!=null&&e in Object(t)}var Hle=Ble;function zle(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ka=zle,jle=Xa,Wle=Ka,Ule="[object AsyncFunction]",Vle="[object Function]",Gle="[object GeneratorFunction]",qle="[object Proxy]";function Yle(e){if(!Wle(e))return!1;var t=jle(e);return t==Vle||t==Gle||t==Ule||t==qle}var eP=Yle,Xle=ui,Kle=Xle["__core-js_shared__"],Zle=Kle,Sm=Zle,Q2=function(){var e=/[^.]+$/.exec(Sm&&Sm.keys&&Sm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Qle(e){return!!Q2&&Q2 in e}var Jle=Qle,eue=Function.prototype,tue=eue.toString;function rue(e){if(e!=null){try{return tue.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var tP=rue,nue=eP,iue=Jle,aue=Ka,oue=tP,sue=/[\\^$.*+?()[\]{}|]/g,lue=/^\[object .+?Constructor\]$/,uue=Function.prototype,cue=Object.prototype,due=uue.toString,hue=cue.hasOwnProperty,fue=RegExp("^"+due.call(hue).replace(sue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pue(e){if(!aue(e)||iue(e))return!1;var t=nue(e)?fue:lue;return t.test(oue(e))}var mue=pue;function gue(e,t){return e==null?void 0:e[t]}var vue=gue,yue=mue,bue=vue;function _ue(e,t){var r=bue(e,t);return yue(r)?r:void 0}var Za=_ue,wue=Za,Cue=wue(Object,"create"),Mf=Cue,J2=Mf;function xue(){this.__data__=J2?J2(null):{},this.size=0}var Tue=xue;function Sue(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Eue=Sue,Mue=Mf,Aue="__lodash_hash_undefined__",Pue=Object.prototype,Rue=Pue.hasOwnProperty;function Oue(e){var t=this.__data__;if(Mue){var r=t[e];return r===Aue?void 0:r}return Rue.call(t,e)?t[e]:void 0}var kue=Oue,Due=Mf,Nue=Object.prototype,Iue=Nue.hasOwnProperty;function Lue(e){var t=this.__data__;return Due?t[e]!==void 0:Iue.call(t,e)}var Fue=Lue,$ue=Mf,Bue="__lodash_hash_undefined__";function Hue(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$ue&&t===void 0?Bue:t,this}var zue=Hue,jue=Tue,Wue=Eue,Uue=kue,Vue=Fue,Gue=zue;function As(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])}}As.prototype.clear=jue;As.prototype.delete=Wue;As.prototype.get=Uue;As.prototype.has=Vue;As.prototype.set=Gue;var que=As;function Yue(){this.__data__=[],this.size=0}var Xue=Yue;function Kue(e,t){return e===t||e!==e&&t!==t}var rP=Kue,Zue=rP;function Que(e,t){for(var r=e.length;r--;)if(Zue(e[r][0],t))return r;return-1}var Af=Que,Jue=Af,ece=Array.prototype,tce=ece.splice;function rce(e){var t=this.__data__,r=Jue(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():tce.call(t,r,1),--this.size,!0}var nce=rce,ice=Af;function ace(e){var t=this.__data__,r=ice(t,e);return r<0?void 0:t[r][1]}var oce=ace,sce=Af;function lce(e){return sce(this.__data__,e)>-1}var uce=lce,cce=Af;function dce(e,t){var r=this.__data__,n=cce(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var hce=dce,fce=Xue,pce=nce,mce=oce,gce=uce,vce=hce;function Ps(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])}}Ps.prototype.clear=fce;Ps.prototype.delete=pce;Ps.prototype.get=mce;Ps.prototype.has=gce;Ps.prototype.set=vce;var Pf=Ps,yce=Za,bce=ui,_ce=yce(bce,"Map"),hb=_ce,eC=que,wce=Pf,Cce=hb;function xce(){this.size=0,this.__data__={hash:new eC,map:new(Cce||wce),string:new eC}}var Tce=xce;function Sce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ece=Sce,Mce=Ece;function Ace(e,t){var r=e.__data__;return Mce(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Rf=Ace,Pce=Rf;function Rce(e){var t=Pce(this,e).delete(e);return this.size-=t?1:0,t}var Oce=Rce,kce=Rf;function Dce(e){return kce(this,e).get(e)}var Nce=Dce,Ice=Rf;function Lce(e){return Ice(this,e).has(e)}var Fce=Lce,$ce=Rf;function Bce(e,t){var r=$ce(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Hce=Bce,zce=Tce,jce=Oce,Wce=Nce,Uce=Fce,Vce=Hce;function Rs(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])}}Rs.prototype.clear=zce;Rs.prototype.delete=jce;Rs.prototype.get=Wce;Rs.prototype.has=Uce;Rs.prototype.set=Vce;var nP=Rs,iP=nP,Gce="Expected a function";function fb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Gce);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(fb.Cache||iP),r}fb.Cache=iP;var qce=fb,Yce=qce,Xce=500;function Kce(e){var t=Yce(e,function(n){return r.size===Xce&&r.clear(),n}),r=t.cache;return t}var Zce=Kce,Qce=Zce,Jce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ede=/\\(\\)?/g,tde=Qce(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jce,function(r,n,i,a){t.push(i?a.replace(ede,"$1"):n||r)}),t}),rde=tde;function nde(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var ide=nde,tC=Ku,ade=ide,ode=wn,sde=Ef,lde=1/0,rC=tC?tC.prototype:void 0,nC=rC?rC.toString:void 0;function aP(e){if(typeof e=="string")return e;if(ode(e))return ade(e,aP)+"";if(sde(e))return nC?nC.call(e):"";var t=e+"";return t=="0"&&1/e==-lde?"-0":t}var ude=aP,cde=ude;function dde(e){return e==null?"":cde(e)}var oP=dde,hde=wn,fde=Hle,pde=rde,mde=oP;function gde(e,t){return hde(e)?e:fde(e,t)?[e]:pde(mde(e))}var Of=gde,vde=Ef,yde=1/0;function bde(e){if(typeof e=="string"||vde(e))return e;var t=e+"";return t=="0"&&1/e==-yde?"-0":t}var pb=bde,_de=Of,wde=pb;function Cde(e,t){t=_de(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[wde(t[r++])];return r&&r==n?e:void 0}var sP=Cde,xde=Za,Tde=function(){try{var e=xde(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),lP=Tde,iC=lP;function Sde(e,t,r){t=="__proto__"&&iC?iC(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var uP=Sde,Ede=uP,Mde=rP,Ade=Object.prototype,Pde=Ade.hasOwnProperty;function Rde(e,t,r){var n=e[t];(!(Pde.call(e,t)&&Mde(n,r))||r===void 0&&!(t in e))&&Ede(e,t,r)}var mb=Rde,Ode=9007199254740991,kde=/^(?:0|[1-9]\d*)$/;function Dde(e,t){var r=typeof e;return t=t==null?Ode:t,!!t&&(r=="number"||r!="symbol"&&kde.test(e))&&e>-1&&e%1==0&&e<t}var gb=Dde,Nde=mb,Ide=Of,Lde=gb,aC=Ka,Fde=pb;function $de(e,t,r,n){if(!aC(e))return e;t=Ide(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var u=Fde(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var d=s[u];c=n?n(d,u,s):void 0,c===void 0&&(c=aC(d)?d:Lde(t[i+1])?[]:{})}Nde(s,u,c),s=s[u]}return e}var Bde=$de,Hde=sP,zde=Bde,jde=Of;function Wde(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Hde(e,o);r(s,o)&&zde(a,jde(o,e),s)}return a}var Ude=Wde;function Vde(e,t){return e!=null&&t in Object(e)}var Gde=Vde,qde=Xa,Yde=la,Xde="[object Arguments]";function Kde(e){return Yde(e)&&qde(e)==Xde}var Zde=Kde,oC=Zde,Qde=la,cP=Object.prototype,Jde=cP.hasOwnProperty,ehe=cP.propertyIsEnumerable,the=oC(function(){return arguments}())?oC:function(e){return Qde(e)&&Jde.call(e,"callee")&&!ehe.call(e,"callee")},kf=the,rhe=9007199254740991;function nhe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rhe}var vb=nhe,ihe=Of,ahe=kf,ohe=wn,she=gb,lhe=vb,uhe=pb;function che(e,t,r){t=ihe(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=uhe(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&lhe(i)&&she(o,i)&&(ohe(e)||ahe(e)))}var dhe=che,hhe=Gde,fhe=dhe;function phe(e,t){return e!=null&&fhe(e,t,hhe)}var mhe=phe,ghe=Ude,vhe=mhe;function yhe(e,t){return ghe(e,t,function(r,n){return vhe(e,n)})}var bhe=yhe;function _he(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Df=_he,sC=Ku,whe=kf,Che=wn,lC=sC?sC.isConcatSpreadable:void 0;function xhe(e){return Che(e)||whe(e)||!!(lC&&e&&e[lC])}var The=xhe,She=Df,Ehe=The;function dP(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Ehe),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?dP(s,t-1,r,n,i):She(i,s):n||(i[i.length]=s)}return i}var hP=dP,Mhe=hP;function Ahe(e){var t=e==null?0:e.length;return t?Mhe(e,1):[]}var Phe=Ahe;function Rhe(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 Ohe=Rhe,khe=Ohe,uC=Math.max;function Dhe(e,t,r){return t=uC(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=uC(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),khe(e,this,s)}}var Nhe=Dhe;function Ihe(e){return function(){return e}}var Lhe=Ihe;function Fhe(e){return e}var fP=Fhe,$he=Lhe,cC=lP,Bhe=fP,Hhe=cC?function(e,t){return cC(e,"toString",{configurable:!0,enumerable:!1,value:$he(t),writable:!0})}:Bhe,zhe=Hhe,jhe=800,Whe=16,Uhe=Date.now;function Vhe(e){var t=0,r=0;return function(){var n=Uhe(),i=Whe-(n-r);if(r=n,i>0){if(++t>=jhe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ghe=Vhe,qhe=zhe,Yhe=Ghe,Xhe=Yhe(qhe),Khe=Xhe,Zhe=Phe,Qhe=Nhe,Jhe=Khe;function efe(e){return Jhe(Qhe(e,void 0,Zhe),e+"")}var tfe=efe,rfe=bhe,nfe=tfe,ife=nfe(function(e,t){return e==null?{}:rfe(e,t)}),Cl=ife;function dC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dC(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fr(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 fC=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Em=function(){return Math.random().toString(36).substring(7).split("").join(".")},Pa={INIT:"@@redux/INIT"+Em(),REPLACE:"@@redux/REPLACE"+Em(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Em()}};function pP(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 afe(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(lfe(e))return"date";if(sfe(e))return"error";var r=ofe(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 ofe(e){return typeof e.constructor=="function"?e.constructor.name:null}function sfe(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function lfe(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Hi(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=afe(e)),t}function mP(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"?fr(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"?fr(1):"Expected the enhancer to be a function. Instead, received: '"+Hi(r)+"'");return r(mP)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?fr(2):"Expected the root reducer to be a function. Instead, received: '"+Hi(e)+"'");var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function d(){if(u)throw new Error(process.env.NODE_ENV==="production"?fr(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 a}function h(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?fr(4):"Expected the listener to be a function. Instead, received: '"+Hi(g)+"'");if(u)throw new Error(process.env.NODE_ENV==="production"?fr(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 b=!0;return c(),s.push(g),function(){if(b){if(u)throw new Error(process.env.NODE_ENV==="production"?fr(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.");b=!1,c();var x=s.indexOf(g);s.splice(x,1),o=null}}}function p(g){if(!pP(g))throw new Error(process.env.NODE_ENV==="production"?fr(7):"Actions must be plain objects. Instead, the actual type was: '"+Hi(g)+"'. 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 g.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?fr(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(u)throw new Error(process.env.NODE_ENV==="production"?fr(9):"Reducers may not dispatch actions.");try{u=!0,a=i(a,g)}finally{u=!1}for(var b=o=s,C=0;C<b.length;C++){var x=b[C];x()}return g}function m(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?fr(10):"Expected the nextReducer to be a function. Instead, received: '"+Hi(g));i=g,p({type:Pa.REPLACE})}function v(){var g,b=h;return g={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?fr(11):"Expected the observer to be an object. Instead, received: '"+Hi(x)+"'");function E(){x.next&&x.next(d())}E();var T=b(E);return{unsubscribe:T}}},g[fC]=function(){return this},g}return p({type:Pa.INIT}),n={dispatch:p,subscribe:h,getState:d,replaceReducer:m},n[fC]=v,n}function Pg(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function ufe(e,t,r,n){var i=Object.keys(t),a=r&&r.type===Pa.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.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(!pP(e))return"The "+a+' has unexpected type of "'+Hi(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var o=Object.keys(e).filter(function(s){return!t.hasOwnProperty(s)&&!n[s]});if(o.forEach(function(s){n[s]=!0}),!(r&&r.type===Pa.REPLACE)&&o.length>0)return"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function cfe(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Pa.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?fr(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:Pa.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?fr(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Pa.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 dfe(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];process.env.NODE_ENV!=="production"&&typeof e[i]=="undefined"&&Pg('No reducer provided for key "'+i+'"'),typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;process.env.NODE_ENV!=="production"&&(o={});var s;try{cfe(r)}catch(u){s=u}return function(c,d){if(c===void 0&&(c={}),s)throw s;if(process.env.NODE_ENV!=="production"){var h=ufe(c,r,d,o);h&&Pg(h)}for(var p=!1,m={},v=0;v<a.length;v++){var g=a[v],b=r[g],C=c[g],x=b(C,d);if(typeof x=="undefined"){var E=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?fr(14):"When called with an action of type "+(E?'"'+String(E)+'"':"(unknown type)")+', the slice reducer for key "'+g+'" 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[g]=x,p=p||x!==C}return p=p||a.length!==Object.keys(c).length,p?m:c}}function pC(e,t){return function(){return t(e.apply(this,arguments))}}function gP(e,t){if(typeof e=="function")return pC(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?fr(16):"bindActionCreators expected an object or a function, but instead received: '"+Hi(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=pC(i,t))}return r}function th(){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,i){return function(){return n(i.apply(void 0,arguments))}})}function hfe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(process.env.NODE_ENV==="production"?fr(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=t.map(function(u){return u(o)});return a=th.apply(void 0,s)(i.dispatch),hC(hC({},i),{},{dispatch:a})}}}function mC(){}process.env.NODE_ENV!=="production"&&typeof mC.name=="string"&&mC.name!=="isCrushed"&&Pg('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var ffe=Pf;function pfe(){this.__data__=new ffe,this.size=0}var mfe=pfe;function gfe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var vfe=gfe;function yfe(e){return this.__data__.get(e)}var bfe=yfe;function _fe(e){return this.__data__.has(e)}var wfe=_fe,Cfe=Pf,xfe=hb,Tfe=nP,Sfe=200;function Efe(e,t){var r=this.__data__;if(r instanceof Cfe){var n=r.__data__;if(!xfe||n.length<Sfe-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Tfe(n)}return r.set(e,t),this.size=r.size,this}var Mfe=Efe,Afe=Pf,Pfe=mfe,Rfe=vfe,Ofe=bfe,kfe=wfe,Dfe=Mfe;function Os(e){var t=this.__data__=new Afe(e);this.size=t.size}Os.prototype.clear=Pfe;Os.prototype.delete=Rfe;Os.prototype.get=Ofe;Os.prototype.has=kfe;Os.prototype.set=Dfe;var Nfe=Os;function Ife(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var vP=Ife,Lfe=mb,Ffe=uP;function $fe(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?Ffe(r,s,u):Lfe(r,s,u)}return r}var Nf=$fe;function Bfe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hfe=Bfe,cu={exports:{}};function zfe(){return!1}var jfe=zfe;(function(e,t){var r=ui,n=jfe,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c})(cu,cu.exports);var Wfe=Xa,Ufe=vb,Vfe=la,Gfe="[object Arguments]",qfe="[object Array]",Yfe="[object Boolean]",Xfe="[object Date]",Kfe="[object Error]",Zfe="[object Function]",Qfe="[object Map]",Jfe="[object Number]",epe="[object Object]",tpe="[object RegExp]",rpe="[object Set]",npe="[object String]",ipe="[object WeakMap]",ape="[object ArrayBuffer]",ope="[object DataView]",spe="[object Float32Array]",lpe="[object Float64Array]",upe="[object Int8Array]",cpe="[object Int16Array]",dpe="[object Int32Array]",hpe="[object Uint8Array]",fpe="[object Uint8ClampedArray]",ppe="[object Uint16Array]",mpe="[object Uint32Array]",St={};St[spe]=St[lpe]=St[upe]=St[cpe]=St[dpe]=St[hpe]=St[fpe]=St[ppe]=St[mpe]=!0;St[Gfe]=St[qfe]=St[ape]=St[Yfe]=St[ope]=St[Xfe]=St[Kfe]=St[Zfe]=St[Qfe]=St[Jfe]=St[epe]=St[tpe]=St[rpe]=St[npe]=St[ipe]=!1;function gpe(e){return Vfe(e)&&Ufe(e.length)&&!!St[Wfe(e)]}var vpe=gpe;function ype(e){return function(t){return e(t)}}var yb=ype,du={exports:{}};(function(e,t){var r=QA,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch(c){}}();e.exports=s})(du,du.exports);var bpe=vpe,_pe=yb,gC=du.exports,vC=gC&&gC.isTypedArray,wpe=vC?_pe(vC):bpe,yP=wpe,Cpe=Hfe,xpe=kf,Tpe=wn,Spe=cu.exports,Epe=gb,Mpe=yP,Ape=Object.prototype,Ppe=Ape.hasOwnProperty;function Rpe(e,t){var r=Tpe(e),n=!r&&xpe(e),i=!r&&!n&&Spe(e),a=!r&&!n&&!i&&Mpe(e),o=r||n||i||a,s=o?Cpe(e.length,String):[],u=s.length;for(var c in e)(t||Ppe.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Epe(c,u)))&&s.push(c);return s}var bP=Rpe,Ope=Object.prototype;function kpe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ope;return e===r}var If=kpe;function Dpe(e,t){return function(r){return e(t(r))}}var _P=Dpe,Npe=_P,Ipe=Npe(Object.keys,Object),Lpe=Ipe,Fpe=If,$pe=Lpe,Bpe=Object.prototype,Hpe=Bpe.hasOwnProperty;function zpe(e){if(!Fpe(e))return $pe(e);var t=[];for(var r in Object(e))Hpe.call(e,r)&&r!="constructor"&&t.push(r);return t}var bb=zpe,jpe=eP,Wpe=vb;function Upe(e){return e!=null&&Wpe(e.length)&&!jpe(e)}var Zu=Upe,Vpe=bP,Gpe=bb,qpe=Zu;function Ype(e){return qpe(e)?Vpe(e):Gpe(e)}var Lf=Ype,Xpe=Nf,Kpe=Lf;function Zpe(e,t){return e&&Xpe(t,Kpe(t),e)}var Qpe=Zpe;function Jpe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var eme=Jpe,tme=Ka,rme=If,nme=eme,ime=Object.prototype,ame=ime.hasOwnProperty;function ome(e){if(!tme(e))return nme(e);var t=rme(e),r=[];for(var n in e)n=="constructor"&&(t||!ame.call(e,n))||r.push(n);return r}var sme=ome,lme=bP,ume=sme,cme=Zu;function dme(e){return cme(e)?lme(e,!0):ume(e)}var _b=dme,hme=Nf,fme=_b;function pme(e,t){return e&&hme(t,fme(t),e)}var mme=pme,Rg={exports:{}};(function(e,t){var r=ui,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(c,d){if(d)return c.slice();var h=c.length,p=s?s(h):new c.constructor(h);return c.copy(p),p}e.exports=u})(Rg,Rg.exports);function gme(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var wP=gme;function vme(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var yme=vme;function bme(){return[]}var CP=bme,_me=yme,wme=CP,Cme=Object.prototype,xme=Cme.propertyIsEnumerable,yC=Object.getOwnPropertySymbols,Tme=yC?function(e){return e==null?[]:(e=Object(e),_me(yC(e),function(t){return xme.call(e,t)}))}:wme,wb=Tme,Sme=Nf,Eme=wb;function Mme(e,t){return Sme(e,Eme(e),t)}var Ame=Mme,Pme=_P,Rme=Pme(Object.getPrototypeOf,Object),xP=Rme,Ome=Df,kme=xP,Dme=wb,Nme=CP,Ime=Object.getOwnPropertySymbols,Lme=Ime?function(e){for(var t=[];e;)Ome(t,Dme(e)),e=kme(e);return t}:Nme,TP=Lme,Fme=Nf,$me=TP;function Bme(e,t){return Fme(e,$me(e),t)}var Hme=Bme,zme=Df,jme=wn;function Wme(e,t,r){var n=t(e);return jme(e)?n:zme(n,r(e))}var SP=Wme,Ume=SP,Vme=wb,Gme=Lf;function qme(e){return Ume(e,Gme,Vme)}var Yme=qme,Xme=SP,Kme=TP,Zme=_b;function Qme(e){return Xme(e,Zme,Kme)}var Jme=Qme,e0e=Za,t0e=ui,r0e=e0e(t0e,"DataView"),n0e=r0e,i0e=Za,a0e=ui,o0e=i0e(a0e,"Promise"),s0e=o0e,l0e=Za,u0e=ui,c0e=l0e(u0e,"Set"),d0e=c0e,h0e=Za,f0e=ui,p0e=h0e(f0e,"WeakMap"),m0e=p0e,Og=n0e,kg=hb,Dg=s0e,Ng=d0e,Ig=m0e,EP=Xa,ks=tP,bC="[object Map]",g0e="[object Object]",_C="[object Promise]",wC="[object Set]",CC="[object WeakMap]",xC="[object DataView]",v0e=ks(Og),y0e=ks(kg),b0e=ks(Dg),_0e=ks(Ng),w0e=ks(Ig),wa=EP;(Og&&wa(new Og(new ArrayBuffer(1)))!=xC||kg&&wa(new kg)!=bC||Dg&&wa(Dg.resolve())!=_C||Ng&&wa(new Ng)!=wC||Ig&&wa(new Ig)!=CC)&&(wa=function(e){var t=EP(e),r=t==g0e?e.constructor:void 0,n=r?ks(r):"";if(n)switch(n){case v0e:return xC;case y0e:return bC;case b0e:return _C;case _0e:return wC;case w0e:return CC}return t});var Qu=wa,C0e=Object.prototype,x0e=C0e.hasOwnProperty;function T0e(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&x0e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var S0e=T0e,E0e=ui,M0e=E0e.Uint8Array,A0e=M0e,TC=A0e;function P0e(e){var t=new e.constructor(e.byteLength);return new TC(t).set(new TC(e)),t}var Cb=P0e,R0e=Cb;function O0e(e,t){var r=t?R0e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var k0e=O0e,D0e=/\w*$/;function N0e(e){var t=new e.constructor(e.source,D0e.exec(e));return t.lastIndex=e.lastIndex,t}var I0e=N0e,SC=Ku,EC=SC?SC.prototype:void 0,MC=EC?EC.valueOf:void 0;function L0e(e){return MC?Object(MC.call(e)):{}}var F0e=L0e,$0e=Cb;function B0e(e,t){var r=t?$0e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var H0e=B0e,z0e=Cb,j0e=k0e,W0e=I0e,U0e=F0e,V0e=H0e,G0e="[object Boolean]",q0e="[object Date]",Y0e="[object Map]",X0e="[object Number]",K0e="[object RegExp]",Z0e="[object Set]",Q0e="[object String]",J0e="[object Symbol]",ege="[object ArrayBuffer]",tge="[object DataView]",rge="[object Float32Array]",nge="[object Float64Array]",ige="[object Int8Array]",age="[object Int16Array]",oge="[object Int32Array]",sge="[object Uint8Array]",lge="[object Uint8ClampedArray]",uge="[object Uint16Array]",cge="[object Uint32Array]";function dge(e,t,r){var n=e.constructor;switch(t){case ege:return z0e(e);case G0e:case q0e:return new n(+e);case tge:return j0e(e,r);case rge:case nge:case ige:case age:case oge:case sge:case lge:case uge:case cge:return V0e(e,r);case Y0e:return new n;case X0e:case Q0e:return new n(e);case K0e:return W0e(e);case Z0e:return new n;case J0e:return U0e(e)}}var hge=dge,fge=Ka,AC=Object.create,pge=function(){function e(){}return function(t){if(!fge(t))return{};if(AC)return AC(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),mge=pge,gge=mge,vge=xP,yge=If;function bge(e){return typeof e.constructor=="function"&&!yge(e)?gge(vge(e)):{}}var _ge=bge,wge=Qu,Cge=la,xge="[object Map]";function Tge(e){return Cge(e)&&wge(e)==xge}var Sge=Tge,Ege=Sge,Mge=yb,PC=du.exports,RC=PC&&PC.isMap,Age=RC?Mge(RC):Ege,Pge=Age,Rge=Qu,Oge=la,kge="[object Set]";function Dge(e){return Oge(e)&&Rge(e)==kge}var Nge=Dge,Ige=Nge,Lge=yb,OC=du.exports,kC=OC&&OC.isSet,Fge=kC?Lge(kC):Ige,$ge=Fge,Bge=Nfe,Hge=vP,zge=mb,jge=Qpe,Wge=mme,Uge=Rg.exports,Vge=wP,Gge=Ame,qge=Hme,Yge=Yme,Xge=Jme,Kge=Qu,Zge=S0e,Qge=hge,Jge=_ge,eve=wn,tve=cu.exports,rve=Pge,nve=Ka,ive=$ge,ave=Lf,ove=_b,sve=1,lve=2,uve=4,MP="[object Arguments]",cve="[object Array]",dve="[object Boolean]",hve="[object Date]",fve="[object Error]",AP="[object Function]",pve="[object GeneratorFunction]",mve="[object Map]",gve="[object Number]",PP="[object Object]",vve="[object RegExp]",yve="[object Set]",bve="[object String]",_ve="[object Symbol]",wve="[object WeakMap]",Cve="[object ArrayBuffer]",xve="[object DataView]",Tve="[object Float32Array]",Sve="[object Float64Array]",Eve="[object Int8Array]",Mve="[object Int16Array]",Ave="[object Int32Array]",Pve="[object Uint8Array]",Rve="[object Uint8ClampedArray]",Ove="[object Uint16Array]",kve="[object Uint32Array]",Ct={};Ct[MP]=Ct[cve]=Ct[Cve]=Ct[xve]=Ct[dve]=Ct[hve]=Ct[Tve]=Ct[Sve]=Ct[Eve]=Ct[Mve]=Ct[Ave]=Ct[mve]=Ct[gve]=Ct[PP]=Ct[vve]=Ct[yve]=Ct[bve]=Ct[_ve]=Ct[Pve]=Ct[Rve]=Ct[Ove]=Ct[kve]=!0;Ct[fve]=Ct[AP]=Ct[wve]=!1;function wd(e,t,r,n,i,a){var o,s=t&sve,u=t&lve,c=t&uve;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!nve(e))return e;var d=eve(e);if(d){if(o=Zge(e),!s)return Vge(e,o)}else{var h=Kge(e),p=h==AP||h==pve;if(tve(e))return Uge(e,s);if(h==PP||h==MP||p&&!i){if(o=u||p?{}:Jge(e),!s)return u?qge(e,Wge(o,e)):Gge(e,jge(o,e))}else{if(!Ct[h])return i?e:{};o=Qge(e,h,s)}}a||(a=new Bge);var m=a.get(e);if(m)return m;a.set(e,o),ive(e)?e.forEach(function(b){o.add(wd(b,t,r,b,e,a))}):rve(e)&&e.forEach(function(b,C){o.set(C,wd(b,t,r,C,e,a))});var v=c?u?Xge:Yge:u?ove:ave,g=d?void 0:v(e);return Hge(g||e,function(b,C){g&&(C=b,b=e[C]),zge(o,C,wd(b,t,r,C,e,a))}),o}var Dve=wd,Nve=Dve,Ive=4;function Lve(e){return Nve(e,Ive)}var Fve=Lve;function $ve(e,t){return e<t}var td=function(){function e(t,r){xt(this,e),this._items=t||[],this._size=this._items.length,this._comparator=r||$ve,this._heapify()}return Tt(e,[{key:"empty",value:function(){return this._size===0}},{key:"pop",value:function(){if(this._size!==0){var r=this._items[0],n=this._items.pop();return this._size--,this._size>0&&(this._items[0]=n,this._sinkDown(0)),r}}},{key:"push",value:function(r){this._items[this._size++]=r,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 r=Math.floor((this._size+1)/2);r>=0;r--)this._sinkDown(r)}},{key:"_bubbleUp",value:function(r){for(var n=this._items[r];r>0;){var i=Math.floor((r+1)/2)-1,a=this._items[i];if(this._comparator(a,n))return;this._items[i]=n,this._items[r]=a,r=i}}},{key:"_sinkDown",value:function(r){for(var n=this._items[r];;){var i=2*(r+1)-1,a=2*(r+1),o=-1;if(i<this._size){var s=this._items[i];this._comparator(s,n)&&(o=i)}if(a<this._size){var u=this._items[a];this._comparator(u,n)&&(o===-1||this._comparator(u,this._items[o]))&&(o=a)}if(o===-1)return;this._items[r]=this._items[o],this._items[o]=n,r=o}}}]),e}(),RP=function(){function e(){xt(this,e),this._valueToPositionMap={},this._size=0,this._smallValues=new td([],this._smallerComparator),this._largeValues=new td([],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 Tt(e,[{key:"getSize",value:function(){return this._size}},{key:"getValuePosition",value:function(r){return this._valueToPositionMap[r]===void 0?null:this._valueToPositionMap[r]}},{key:"getNewPositionForValue",value:function(r){qn(this._valueToPositionMap[r]===void 0,"Shouldn't try to find new position for value already stored in BufferSet");var n=this._size;return this._size++,this._pushToHeaps(n,r),this._valueToPositionMap[r]=n,n}},{key:"replaceFurthestValuePosition",value:function(r,n,i){if(qn(this._valueToPositionMap[i]===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 a=this._smallValues.peek().value,o=this._largeValues.peek().value;if(a>=r&&o<=n)return null;var s;r-a>o-n?(s=a,this._smallValues.pop()):(s=o,this._largeValues.pop());var u=this._valueToPositionMap[s];return delete this._valueToPositionMap[s],this._valueToPositionMap[i]=u,this._pushToHeaps(u,i),u}},{key:"_pushToHeaps",value:function(r,n){var i={position:r,value:n};this._smallValues.push(i),this._largeValues.push(i)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var r=Math.min(this._smallValues.size(),this._largeValues.size()),n=Math.max(this._smallValues.size(),this._largeValues.size());n>10*r&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var r=this._smallValues.size()<this._largeValues.size()?this._smallValues:this._largeValues,n=new td([],this._smallerComparator),i=new td([],this._greaterComparator);!r.empty();){var a=r.pop();this._valueToPositionMap[a.value]!==void 0&&(n.push(a),i.push(a))}this._smallValues=n,this._largeValues=i}},{key:"_cleanHeap",value:function(r){for(;!r.empty()&&this._valueToPositionMap[r.peek().value]===void 0;)r.pop()}},{key:"_smallerComparator",value:function(r,n){return r.value<n.value}},{key:"_greaterComparator",value:function(r,n){return r.value>n.value}}]),e}(),Rr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Mm=function(t){return Math.floor(t/2)},Bve=Rr.Int32Array||function(e){for(var t=[],r=e-1;r>=0;--r)t[r]=0;return t};function Hve(e){for(var t=1;t<e;)t*=2;return t}var zve=function(){function e(t){xt(this,e),this._size=t.length,this._half=Hve(this._size),this._heap=new Bve(2*this._half);var r;for(r=0;r<this._size;++r)this._heap[this._half+r]=t[r];for(r=this._half-1;r>0;--r)this._heap[r]=this._heap[2*r]+this._heap[2*r+1]}return Tt(e,[{key:"set",value:function(r,n){qn(0<=r&&r<this._size,"Index out of range %s",r);var i=this._half+r;for(this._heap[i]=n,i=Mm(i);i!==0;i=Mm(i))this._heap[i]=this._heap[2*i]+this._heap[2*i+1]}},{key:"get",value:function(r){qn(0<=r&&r<this._size,"Index out of range %s",r);var n=this._half+r;return this._heap[n]}},{key:"getSize",value:function(){return this._size}},{key:"sumUntil",value:function(r){if(qn(0<=r&&r<this._size+1,"Index out of range %s",r),r===0)return 0;for(var n=this._half+r-1,i=this._heap[n];n!==1;n=Mm(n))n%2===1&&(i+=this._heap[n-1]);return i}},{key:"sumTo",value:function(r){return qn(0<=r&&r<this._size,"Index out of range %s",r),this.sumUntil(r+1)}},{key:"sum",value:function(r,n){return qn(r<=n,"Begin must precede end"),this.sumUntil(n)-this.sumUntil(r)}},{key:"greatestLowerBound",value:function(r){if(r<0)return-1;var n=1;if(this._heap[n]<=r)return this._size;for(;n<this._half;){var i=this._heap[2*n];r<i?n=2*n:(n=2*n+1,r-=i)}return n-this._half}},{key:"greatestStrictLowerBound",value:function(r){if(r<=0)return-1;var n=1;if(this._heap[n]<r)return this._size;for(;n<this._half;){var i=this._heap[2*n];r<=i?n=2*n:(n=2*n+1,r-=i)}return n-this._half}},{key:"leastUpperBound",value:function(r){return this.greatestStrictLowerBound(r)+1}},{key:"leastStrictUpperBound",value:function(r){return this.greatestLowerBound(r)+1}}],[{key:"uniform",value:function(r,n){for(var i=[],a=r-1;a>=0;--a)i[a]=n;return new e(i)}},{key:"empty",value:function(r){return e.uniform(r,0)}}]),e}();function hu(e,t){if(e===t)return!0;if(Ai(e)!=="object"||e===null||Ai(t)!=="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),a=0;a<r.length;a++)if(!i(r[a])||e[r[a]]!==t[r[a]])return!1;return!0}var De={FIXED:"fixed",FIXED_RIGHT:"fixedRight",SCROLLABLE:"scrollable"};function Lg(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=jve(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
374
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function jve(e,t){if(e){if(typeof e=="string")return DC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DC(e,t)}}function DC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Am(e){var t=e.props,r=t.align,n=t.allowCellsRecycling,i=t.cellClassName,a=t.columnKey,o=t.flexGrow,s=t.fixed,u=t.fixedRight,c=t.maxWidth,d=t.minWidth,h=t.isReorderable,p=t.isResizable,m=t.pureRendering,v=t.width;return{align:r,allowCellsRecycling:n,cellClassName:i,columnKey:a,flexGrow:o,fixed:s,fixedRight:u,maxWidth:c,minWidth:d,isReorderable:h,isResizable:p,pureRendering:m,width:v}}function NC(e,t){e.cell.push(t.props.cell),e.footer.push(t.props.footer),e.header.push(t.props.header)}function Fg(e){var t,r;return e!=null&&(t=e.props)!==null&&t!==void 0&&t.fixed?De.FIXED:e!=null&&(r=e.props)!==null&&r!==void 0&&r.fixedRight?De.FIXED_RIGHT:De.SCROLLABLE}function fu(){var e;return e={},ue(e,De.FIXED,[]),ue(e,De.SCROLLABLE,[]),ue(e,De.FIXED_RIGHT,[]),e}function Wve(){return{groupHeader:[],header:[],cell:[],footer:[]}}function IC(e){var t=fu(),r=Lg(e),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,a=Fg(i);t[a].push(i)}}catch(s){r.e(s)}finally{r.f()}var o=[];return o.push.apply(o,t[De.FIXED]),o.push.apply(o,t[De.SCROLLABLE]),o.push.apply(o,t[De.FIXED_RIGHT]),o}function LC(e,t){return t===De.FIXED?e[De.FIXED].length:t===De.SCROLLABLE?e[De.FIXED].length+e[De.SCROLLABLE].length:e[De.FIXED].length+e[De.SCROLLABLE].length+e[De.FIXED_RIGHT].length}function Uve(e){var t,r,n=[];k.Children.forEach(e,function(m,v){m!=null&&(qn(m.type.__TableColumnGroup__||m.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),n.push(m))});var i=fu(),a=fu(),o=Wve(),s=(t=(r=n[0])===null||r===void 0?void 0:r.type.__TableColumnGroup__)!==null&&t!==void 0?t:!1;if(s)(function(){var m=0,v=Lg(IC(n)),g;try{var b=function(){var x=g.value,E=Fg(x),T=Am(x);T.index=LC(a,E),a[E].push(T),o.groupHeader.push(x.props.header),k.Children.forEach(x.props.children,function(A){var R=Am(A);R.index=m++,R.groupIdx=T.index,i[E].push(R),NC(o,A)})};for(v.s();!(g=v.n()).done;)b()}catch(C){v.e(C)}finally{v.f()}})();else{var u=Lg(IC(n)),c;try{for(u.s();!(c=u.n()).done;){var d=c.value,h=Fg(d),p=Am(d);p.index=LC(i,h),i[h].push(p),NC(o,d)}}catch(m){u.e(m)}finally{u.f()}}return{columnGroupElements:a,columnElements:i,elementTemplates:o,useGroupHeader:s}}function Ff(e,t,r){return e<t?t:e>r?r:e}var rh="NOT_FOUND";function Vve(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:rh},put:function(n,i){t={key:n,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Gve(e,t){var r=[];function n(s){var u=r.findIndex(function(d){return t(s,d.key)});if(u>-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return rh}function i(s,u){n(s)===rh&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var qve=function(t,r){return t===r};function Yve(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a<i;a++)if(!e(r[a],n[a]))return!1;return!0}}function Xve(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,i=n===void 0?qve:n,a=r.maxSize,o=a===void 0?1:a,s=r.resultEqualityCheck,u=Yve(i),c=o===1?Vve(u):Gve(o,u);function d(){var h=c.get(arguments);if(h===rh){if(h=e.apply(null,arguments),s){var p=c.getEntries(),m=p.find(function(v){return s(v.value,h)});m&&(h=m.value)}c.put(arguments,h)}return h}return d.clearCache=function(){return c.clear()},d}function Kve(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 Zve(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 i=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=0,d,h={memoizeOptions:void 0},p=s.pop();if(typeof p=="object"&&(h=p,p=s.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var m=h,v=m.memoizeOptions,g=v===void 0?r:v,b=Array.isArray(g)?g:[g],C=Kve(s),x=e.apply(void 0,[function(){return c++,p.apply(null,arguments)}].concat(b)),E=e(function(){for(var A=[],R=C.length,N=0;N<R;N++)A.push(C[N].apply(null,arguments));return d=x.apply(null,A),d});return Object.assign(E,{resultFunc:p,memoizedResultFunc:x,dependencies:C,lastResult:function(){return d},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),E};return i}var $f=Zve(Xve),ki=$f;function Qve(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Jve(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
375
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Jve(e,t){if(e){if(typeof e=="string")return FC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FC(e,t)}}function FC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var OP=[],eye={},xb={memoizeOptions:{maxSize:12}},Cd=$f(function(e){return e||OP},function(e){return e.reduce(function(t,r){return t+r.props.width},0)},xb),Yo=$f(function(e){return e||OP},function(e){return e.reduce(function(t,r){return t+r.width},0)},xb);function kP(e){return Yo(e.fixed)+Yo(e.fixedRight)+Yo(e.scrollable)}var tye=$f(function(e){return e||eye},function(e){var t=Array.prototype.concat.call(e.fixed,e.scrollable,e.fixedRight),r=0,n=Qve(t),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;r+=a.flexGrow||0}}catch(o){n.e(o)}finally{n.f()}return r},xb),rye=1,nye=3,iye=6,Ki={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};function aye(e,t,r,n,i,a,o){var s=t.cellGroupWrapperHeight,u=t.footerHeight,c=t.headerHeight,d=t.groupHeaderHeight,h=s?0:2*rye,p=u+c+d+h,m=i.height,v=i.maxHeight,g=i.useMaxHeight,b=i.width,C=Math.round(g?v:m),x=C-p,E=oye(e,n,b,o),T=x,A=x;switch(E){case Ki.VISIBLE:{T-=a,A-=a;break}case Ki.JOINT_SCROLLBARS:{T-=a;break}}return{bufferRowCount:sye(A,r),minAvailableHeight:Math.max(T,0),maxAvailableHeight:Math.max(A,0),reservedHeight:p,scrollStateX:E}}function oye(e,t,r,n){var i=t.overflowX,a=t.showScrollbarX,o=kP(e);return i==="hidden"||a===!1?Ki.HIDDEN:o>r?Ki.VISIBLE:o>r-n?Ki.JOINT_SCROLLBARS:Ki.HIDDEN}function sye(e,t){var r=t.bufferRowCount,n=t.rowHeight,i=t.subRowHeight;if(r!==void 0)return r;var a=n+i,o=Math.ceil(e/a)+1;return Ff(Math.floor(o/2),nye,iye)}var Tb=ki([function(e){return e.columnElements},function(e){return e.elementHeights},function(e){return e.rowSettings},function(e){return e.scrollFlags},function(e){return e.tableSize},function(e){return e.scrollbarXHeight},function(e){return e.scrollbarYWidth}],aye);function lye(e,t,r){var n=r.overflowY,i=r.showScrollbarY,a=n!=="hidden"&&i!==!1,o=e.minAvailableHeight,s=e.maxAvailableHeight,u=e.scrollStateX,c=!1,d=!1;u===Ki.VISIBLE&&(d=!0),a&&t>s&&(c=!0),c&&u===Ki.JOINT_SCROLLBARS&&(d=!0);var h=s;return d&&(h=o),{availableHeight:h,scrollEnabledX:d,scrollEnabledY:c}}var $a=ki([Tb,function(e){return e.scrollContentHeight},function(e){return e.scrollFlags}],lye);function Sa(e,t){var r=e.rowSettings,n=e.getInternal(),i=n.storedHeights,a=n.rowOffsetIntervalTree,o=r.rowHeightGetter,s=r.subRowHeightGetter,u=o(t)+s(t),c=i[t];return u!==c&&(a.set(t,u),i[t]=u,e.scrollContentHeight+=u-c),i[t]}function $C(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?uye(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?$g(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function $g(e,t){var r=$a(e),n=r.availableHeight,i=e.rowSettings,a=e.scrollContentHeight,o=e.getInternal(),s=o.rowOffsetIntervalTree,u=i.rowsCount;if(e.rowSettings.rowHeightGetter!=null&&e.isVerticalScrollExact){for(var c=e.getInternal(),d=c.rowUntilOffsetsAreExact;d<u;)Sa(e,d++);e.getInternal().rowUntilOffsetsAreExact=u}if(u===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var h=0,p=0,m=void 0;if(!(t<=0))if(t>=a-n)h=void 0,m=u-1;else{var v=s.greatestLowerBound(t);h=Ff(v,0,Math.max(u-1,0));var g=s.sumUntil(h);p=g-t}return{firstIndex:h,firstOffset:p,lastIndex:m,changed:!0}}function uye(e,t){var r=$a(e),n=r.availableHeight,i=e.rowSettings,a=e.scrollY,o=e.getInternal(),s=o.rowOffsetIntervalTree,u=o.storedHeights,c=i.rowsCount;if(c===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};t=Ff(t,0,Math.max(c-1,0)),Sa(e,t);var d=s.sumUntil(t),h=d+u[t],p=t,m=void 0;if(!(d<a))if(a+n<h)p=void 0,m=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:p,firstOffset:0,lastIndex:m,changed:!0}}function cye(e){return e==null}var Fl=cye;function dye(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var hye=dye,fye=/\s/;function pye(e){for(var t=e.length;t--&&fye.test(e.charAt(t)););return t}var mye=pye,gye=mye,vye=/^\s+/;function yye(e){return e&&e.slice(0,gye(e)+1).replace(vye,"")}var bye=yye,_ye=bye,BC=Ka,wye=Ef,HC=NaN,Cye=/^[-+]0x[0-9a-f]+$/i,xye=/^0b[01]+$/i,Tye=/^0o[0-7]+$/i,Sye=parseInt;function Eye(e){if(typeof e=="number")return e;if(wye(e))return HC;if(BC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=BC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_ye(e);var r=xye.test(e);return r||Tye.test(e)?Sye(e.slice(2),r?2:8):Cye.test(e)?HC:+e}var Sb=Eye,Mye=hye,Pm=Sb;function Aye(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Pm(r),r=r===r?r:0),t!==void 0&&(t=Pm(t),t=t===t?t:0),Mye(Pm(e),t,r)}var Bf=Aye,Pye=Df,Rye=hP,Oye=wP,kye=wn;function Dye(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Pye(kye(r)?Oye(r):[r],Rye(t,1))}var zC=Dye;function jC(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Nye(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
376
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Nye(e,t){if(e){if(typeof e=="string")return WC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WC(e,t)}}function WC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Iye(e,t,r,n,i){var a=r?i:0,o=n-a,s=Lye(e,t,o),u=s.columnGroupElements,c=s.columnElements,d=UC(c),h=d.fixed,p=d.fixedRight,m=d.scrollable,v=UC(u),g=v.fixed,b=v.fixedRight,C=v.scrollable,x=Yo(h),E=Yo(p),T=Yo(m),A=o-x-E,R=Math.max(0,x+E+T-o);return{columnGroupProps:zC(g,C,b),columnProps:zC(h,m,p),availableScrollWidth:A,fixedColumns:h,fixedRightColumns:p,scrollableColumns:m,fixedColumnGroups:g,fixedRightColumnGroups:b,scrollableColumnGroups:C,maxScrollX:R}}function Lye(e,t,r){var n=fu(),i=fu(),a=kP(t),o=tye(t),s=Math.max(r-a,0),u=[];for(var c in t){var d=t[c],h=0,p=0,m=jC(d),v;try{for(m.s();!(v=m.n()).done;){var g=v.value,b=g.flexGrow||0,C=0;b&&(C=Math.floor(b*s/o));var x=g.width+C;o-=b,s-=C;var E=Ot({},g,{width:x,offset:h});h+=x,u[g.groupIdx]=x+(u[g.groupIdx]||0),i[c][p]=E,p++}}catch(F){m.e(F)}finally{m.f()}}for(var T in e){var A=e[T],R=0,N=0,I=jC(A),H;try{for(I.s();!(H=I.n()).done;){var G=H.value,Y=u[G.index],O=Ot({},G,{width:Y,offset:R});R+=Y,n[T][N]=O,N++}}catch(F){I.e(F)}finally{I.f()}}return{columnGroupElements:n,columnElements:i}}function UC(e){return{fixed:e.fixed,fixedRight:e.fixedRight,scrollable:e.scrollable}}var Ju=ki([function(e){return e.columnGroupElements},function(e){return e.columnElements},function(e){return $a(e).scrollEnabledY},function(e){return e.tableSize.width},function(e){return e.scrollbarYWidth}],Iye);function Fye(e,t,r){var n=t.scrollLeft,i=e.scrollX;n!==void 0&&(!r||n!==r.scrollLeft)&&(i=n),i=$ye(e,t,r.scrollToColumn,i);var a=Ju(e),o=a.maxScrollX;i=Bf(i,0,o),Ot(e,{maxScrollX:o,scrollX:i})}function $ye(e,t,r,n){var i=t.scrollToColumn;if(Fl(i))return n;var a=Ju(e),o=a.availableScrollWidth,s=a.fixedColumns,u=a.scrollableColumns,c=s.length,d=u.length,h=d===0,p=i===r,m=i<c,v=i>=c+d;if(p||m||v||h)return n;for(var g=Math.min(i-c,u.length-1),b=0,C=0;C<g;++C)b+=u[C].width;var x=u[g].width,E=b+x-o;return n<E?E:n>b?b:n}var VC={initialize:Fye};function Bye(e,t,r,n,i,a,o){var s=i.availableHeight,u=i.scrollEnabledX,c=r;u&&(c+=o);var d=Math.min(s,n),h=a?d:s,p=h+c,m=h;t<p&&(m=t-c);var v=a?n:Math.max(n,s),g=v+c;t&&(g=Math.max(t,g));var b=e.footerHeight,C=e.groupHeaderHeight,x=e.headerHeight,E=C+x,T=E+m,A=T+b,R=Math.max(0,T-E);return{bodyHeight:d,bodyOffsetTop:E,componentHeight:p,contentHeight:g,footOffsetTop:T,scrollbarXOffsetTop:A,scrollbarYHeight:R,visibleRowsHeight:m}}var Bo=ki([function(e){return e.elementHeights},function(e){return e.tableSize.ownerHeight},function(e){return Tb(e).reservedHeight},function(e){return e.scrollContentHeight},$a,function(e){return e.tableSize.useMaxHeight},function(e){return e.scrollbarXHeight}],Bye);function cl(e,t){var r=GC(e,t),n=e.rowSettings,i=e.scrollContentHeight,a=n.rowsCount,o=Bo(e),s=o.bodyHeight,u=i-s,c;u===0?(r.firstViewportIdx>0&&(r=GC(e,{firstOffset:0,lastIndex:a-1})),c=0):c=r.firstOffset;var d=r.firstViewportIdx,h=r.endViewportIdx;Hye(e,r,e.scrolling);var p=0;a>0&&(p=e.rowOffsets[r.firstViewportIdx]-c),p=Bf(p,0,u),Ot(e,{firstRowIndex:d,firstRowOffset:c,endRowIndex:h,maxScrollY:u,scrollY:p})}function GC(e,t){var r=Tb(e),n=r.bufferRowCount,i=r.maxAvailableHeight,a=e.rowSettings.rowsCount;if(a===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var o=t.firstIndex,s=t.firstOffset,u=t.lastIndex;(o>=a||u>=a)&&(u=a-1);var c=1,d=o,h=s;u!==void 0&&(c=-1,d=u,h=0);for(var p=d,m=p;p<a&&p>=0&&h<i;)h+=Sa(e,p),m=p,p+=c;var v=!1;if(h<i&&p===a&&u===void 0)for(v=!0,p=o-1;p>=0&&h<i;)h+=Sa(e,p),d=p,--p;var g=Math.min(d,m),b=Math.max(g-n,0);for(p=b;p<g;p++)Sa(e,p);var C=Math.max(d,m)+1,x=Math.min(C+n,a);for(p=C;p<x;p++)Sa(e,p);var E=$a(e),T=E.availableHeight;if(u!==void 0||v){s=s+Math.min(T-h,0);var A=e.getInternal(),R=A.storedHeights;-1*s>=R[g]&&(g+=1,s+=R[g])}return{endBufferIdx:x,endViewportIdx:C,firstBufferIdx:b,firstOffset:s,firstViewportIdx:g}}function Hye(e,t,r){var n=e.getInternal(),i=n.rowBufferSet,a=n.rowOffsetIntervalTree,o=n.storedHeights,s=t.endBufferIdx,u=t.endViewportIdx,c=t.firstBufferIdx,d=t.firstViewportIdx,h=s-c;if(h===0){e.rowOffsets={},e.rows=[];return}for(var p=r?d:c,m=r?u:s,v=[],g={},b=a.sumUntil(p),C=p;C<m;C++){g[C]=b,b+=o[C];var x=zye(C,i,p,m,h);v[x]=C}e.rows=v,e.rowOffsets=g}function zye(e,t,r,n,i){var a=t.getValuePosition(e);return a===null&&t.getSize()>=i&&(a=t.replaceFurthestValuePosition(r,n-1,e)),a===null&&(a=t.getNewPositionForValue(e)),a}var Bg={exports:{}},nh={exports:{}},ct={};/** @license React v16.13.1
377
- * react-is.production.min.js
378
- *
379
- * Copyright (c) Facebook, Inc. and its affiliates.
380
- *
381
- * This source code is licensed under the MIT license found in the
382
- * LICENSE file in the root directory of this source tree.
383
- */var cr=typeof Symbol=="function"&&Symbol.for,Eb=cr?Symbol.for("react.element"):60103,Mb=cr?Symbol.for("react.portal"):60106,Hf=cr?Symbol.for("react.fragment"):60107,zf=cr?Symbol.for("react.strict_mode"):60108,jf=cr?Symbol.for("react.profiler"):60114,Wf=cr?Symbol.for("react.provider"):60109,Uf=cr?Symbol.for("react.context"):60110,Ab=cr?Symbol.for("react.async_mode"):60111,Vf=cr?Symbol.for("react.concurrent_mode"):60111,Gf=cr?Symbol.for("react.forward_ref"):60112,qf=cr?Symbol.for("react.suspense"):60113,jye=cr?Symbol.for("react.suspense_list"):60120,Yf=cr?Symbol.for("react.memo"):60115,Xf=cr?Symbol.for("react.lazy"):60116,Wye=cr?Symbol.for("react.block"):60121,Uye=cr?Symbol.for("react.fundamental"):60117,Vye=cr?Symbol.for("react.responder"):60118,Gye=cr?Symbol.for("react.scope"):60119;function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Eb:switch(e=e.type,e){case Ab:case Vf:case Hf:case jf:case zf:case qf:return e;default:switch(e=e&&e.$$typeof,e){case Uf:case Gf:case Xf:case Yf:case Wf:return e;default:return t}}case Mb:return t}}}function DP(e){return an(e)===Vf}ct.AsyncMode=Ab;ct.ConcurrentMode=Vf;ct.ContextConsumer=Uf;ct.ContextProvider=Wf;ct.Element=Eb;ct.ForwardRef=Gf;ct.Fragment=Hf;ct.Lazy=Xf;ct.Memo=Yf;ct.Portal=Mb;ct.Profiler=jf;ct.StrictMode=zf;ct.Suspense=qf;ct.isAsyncMode=function(e){return DP(e)||an(e)===Ab};ct.isConcurrentMode=DP;ct.isContextConsumer=function(e){return an(e)===Uf};ct.isContextProvider=function(e){return an(e)===Wf};ct.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eb};ct.isForwardRef=function(e){return an(e)===Gf};ct.isFragment=function(e){return an(e)===Hf};ct.isLazy=function(e){return an(e)===Xf};ct.isMemo=function(e){return an(e)===Yf};ct.isPortal=function(e){return an(e)===Mb};ct.isProfiler=function(e){return an(e)===jf};ct.isStrictMode=function(e){return an(e)===zf};ct.isSuspense=function(e){return an(e)===qf};ct.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hf||e===Vf||e===jf||e===zf||e===qf||e===jye||typeof e=="object"&&e!==null&&(e.$$typeof===Xf||e.$$typeof===Yf||e.$$typeof===Wf||e.$$typeof===Uf||e.$$typeof===Gf||e.$$typeof===Uye||e.$$typeof===Vye||e.$$typeof===Gye||e.$$typeof===Wye)};ct.typeOf=an;var lt={};/** @license React v16.13.1
384
- * react-is.development.js
385
- *
386
- * Copyright (c) Facebook, Inc. and its affiliates.
387
- *
388
- * This source code is licensed under the MIT license found in the
389
- * LICENSE file in the root directory of this source tree.
390
- */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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function E(J){return typeof J=="string"||typeof J=="function"||J===n||J===c||J===a||J===i||J===h||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===v||J.$$typeof===m||J.$$typeof===o||J.$$typeof===s||J.$$typeof===d||J.$$typeof===b||J.$$typeof===C||J.$$typeof===x||J.$$typeof===g)}function T(J){if(typeof J=="object"&&J!==null){var _e=J.$$typeof;switch(_e){case t:var ve=J.type;switch(ve){case u:case c:case n:case a:case i:case h:return ve;default:var Ae=ve&&ve.$$typeof;switch(Ae){case s:case d:case v:case m:case o:return Ae;default:return _e}}case r:return _e}}}var A=u,R=c,N=s,I=o,H=t,G=d,Y=n,O=v,F=m,X=r,W=a,V=i,z=h,q=!1;function ee(J){return q||(q=!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.")),j(J)||T(J)===u}function j(J){return T(J)===c}function K(J){return T(J)===s}function ie(J){return T(J)===o}function ne(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function re(J){return T(J)===d}function oe(J){return T(J)===n}function se(J){return T(J)===v}function de(J){return T(J)===m}function ce(J){return T(J)===r}function ge(J){return T(J)===a}function Se(J){return T(J)===i}function ye(J){return T(J)===h}lt.AsyncMode=A,lt.ConcurrentMode=R,lt.ContextConsumer=N,lt.ContextProvider=I,lt.Element=H,lt.ForwardRef=G,lt.Fragment=Y,lt.Lazy=O,lt.Memo=F,lt.Portal=X,lt.Profiler=W,lt.StrictMode=V,lt.Suspense=z,lt.isAsyncMode=ee,lt.isConcurrentMode=j,lt.isContextConsumer=K,lt.isContextProvider=ie,lt.isElement=ne,lt.isForwardRef=re,lt.isFragment=oe,lt.isLazy=se,lt.isMemo=de,lt.isPortal=ce,lt.isProfiler=ge,lt.isStrictMode=Se,lt.isSuspense=ye,lt.isValidElementType=E,lt.typeOf=T}();process.env.NODE_ENV==="production"?nh.exports=ct:nh.exports=lt;/*
391
- object-assign
392
- (c) Sindre Sorhus
393
- @license MIT
394
- */var qC=Object.getOwnPropertySymbols,qye=Object.prototype.hasOwnProperty,Yye=Object.prototype.propertyIsEnumerable;function Xye(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Kye(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}var Zye=Kye()?Object.assign:function(e,t){for(var r,n=Xye(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)qye.call(r,o)&&(n[o]=r[o]);if(qC){i=qC(r);for(var s=0;s<i.length;s++)Yye.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n},Qye="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Pb=Qye,NP=Function.call.bind(Object.prototype.hasOwnProperty),Hg=function(){};if(process.env.NODE_ENV!=="production"){var Jye=Pb,zg={},ebe=NP;Hg=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}}}function IP(e,t,r,n,i){if(process.env.NODE_ENV!=="production"){for(var a in e)if(ebe(e,a)){var o;try{if(typeof e[a]!="function"){var s=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}o=e[a](t,a,n,r,null,Jye)}catch(c){o=c}if(o&&!(o instanceof Error)&&Hg((n||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in zg)){zg[o.message]=!0;var u=i?i():"";Hg("Failed "+r+" type: "+o.message+(u!=null?u:""))}}}}IP.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(zg={})};var tbe=IP,rbe=nh.exports,nbe=Zye,So=Pb,Rm=NP,YC=tbe,Do=function(){};process.env.NODE_ENV!=="production"&&(Do=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function rd(){return null}var ibe=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,n="@@iterator";function i(F){var X=F&&(r&&F[r]||F[n]);if(typeof X=="function")return X}var a="<<anonymous>>",o={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:h(),arrayOf:p,element:m(),elementType:v(),instanceOf:g,node:E(),objectOf:C,oneOf:b,oneOfType:x,shape:A,exact:R};function s(F,X){return F===X?F!==0||1/F===1/X:F!==F&&X!==X}function u(F,X){this.message=F,this.data=X&&typeof X=="object"?X:{},this.stack=""}u.prototype=Error.prototype;function c(F){if(process.env.NODE_ENV!=="production")var X={},W=0;function V(q,ee,j,K,ie,ne,re){if(K=K||a,ne=ne||j,re!==So){if(t){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var se=K+":"+j;!X[se]&&W<3&&(Do("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+K+"`. 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."),X[se]=!0,W++)}}return ee[j]==null?q?ee[j]===null?new u("The "+ie+" `"+ne+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new u("The "+ie+" `"+ne+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:F(ee,j,K,ie,ne)}var z=V.bind(null,!1);return z.isRequired=V.bind(null,!0),z}function d(F){function X(W,V,z,q,ee,j){var K=W[V],ie=H(K);if(ie!==F){var ne=G(K);return new u("Invalid "+q+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+z+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return c(X)}function h(){return c(rd)}function p(F){function X(W,V,z,q,ee){if(typeof F!="function")return new u("Property `"+ee+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var j=W[V];if(!Array.isArray(j)){var K=H(j);return new u("Invalid "+q+" `"+ee+"` of type "+("`"+K+"` supplied to `"+z+"`, expected an array."))}for(var ie=0;ie<j.length;ie++){var ne=F(j,ie,z,q,ee+"["+ie+"]",So);if(ne instanceof Error)return ne}return null}return c(X)}function m(){function F(X,W,V,z,q){var ee=X[W];if(!e(ee)){var j=H(ee);return new u("Invalid "+z+" `"+q+"` of type "+("`"+j+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return c(F)}function v(){function F(X,W,V,z,q){var ee=X[W];if(!rbe.isValidElementType(ee)){var j=H(ee);return new u("Invalid "+z+" `"+q+"` of type "+("`"+j+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return c(F)}function g(F){function X(W,V,z,q,ee){if(!(W[V]instanceof F)){var j=F.name||a,K=O(W[V]);return new u("Invalid "+q+" `"+ee+"` of type "+("`"+K+"` supplied to `"+z+"`, expected ")+("instance of `"+j+"`."))}return null}return c(X)}function b(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Do("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])."):Do("Invalid argument supplied to oneOf, expected an array.")),rd;function X(W,V,z,q,ee){for(var j=W[V],K=0;K<F.length;K++)if(s(j,F[K]))return null;var ie=JSON.stringify(F,function(re,oe){var se=G(oe);return se==="symbol"?String(oe):oe});return new u("Invalid "+q+" `"+ee+"` of value `"+String(j)+"` "+("supplied to `"+z+"`, expected one of "+ie+"."))}return c(X)}function C(F){function X(W,V,z,q,ee){if(typeof F!="function")return new u("Property `"+ee+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var j=W[V],K=H(j);if(K!=="object")return new u("Invalid "+q+" `"+ee+"` of type "+("`"+K+"` supplied to `"+z+"`, expected an object."));for(var ie in j)if(Rm(j,ie)){var ne=F(j,ie,z,q,ee+"."+ie,So);if(ne instanceof Error)return ne}return null}return c(X)}function x(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&Do("Invalid argument supplied to oneOfType, expected an instance of array."),rd;for(var X=0;X<F.length;X++){var W=F[X];if(typeof W!="function")return Do("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(W)+" at index "+X+"."),rd}function V(z,q,ee,j,K){for(var ie=[],ne=0;ne<F.length;ne++){var re=F[ne],oe=re(z,q,ee,j,K,So);if(oe==null)return null;oe.data&&Rm(oe.data,"expectedType")&&ie.push(oe.data.expectedType)}var se=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new u("Invalid "+j+" `"+K+"` supplied to "+("`"+ee+"`"+se+"."))}return c(V)}function E(){function F(X,W,V,z,q){return N(X[W])?null:new u("Invalid "+z+" `"+q+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return c(F)}function T(F,X,W,V,z){return new u((F||"React class")+": "+X+" type `"+W+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function A(F){function X(W,V,z,q,ee){var j=W[V],K=H(j);if(K!=="object")return new u("Invalid "+q+" `"+ee+"` of type `"+K+"` "+("supplied to `"+z+"`, expected `object`."));for(var ie in F){var ne=F[ie];if(typeof ne!="function")return T(z,q,ee,ie,G(ne));var re=ne(j,ie,z,q,ee+"."+ie,So);if(re)return re}return null}return c(X)}function R(F){function X(W,V,z,q,ee){var j=W[V],K=H(j);if(K!=="object")return new u("Invalid "+q+" `"+ee+"` of type `"+K+"` "+("supplied to `"+z+"`, expected `object`."));var ie=nbe({},W[V],F);for(var ne in ie){var re=F[ne];if(Rm(F,ne)&&typeof re!="function")return T(z,q,ee,ne,G(re));if(!re)return new u("Invalid "+q+" `"+ee+"` key `"+ne+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(W[V],null," ")+`
395
- Valid keys: `+JSON.stringify(Object.keys(F),null," "));var oe=re(j,ne,z,q,ee+"."+ne,So);if(oe)return oe}return null}return c(X)}function N(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(N);if(F===null||e(F))return!0;var X=i(F);if(X){var W=X.call(F),V;if(X!==F.entries){for(;!(V=W.next()).done;)if(!N(V.value))return!1}else for(;!(V=W.next()).done;){var z=V.value;if(z&&!N(z[1]))return!1}}else return!1;return!0;default:return!1}}function I(F,X){return F==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function H(F){var X=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":I(X,F)?"symbol":X}function G(F){if(typeof F=="undefined"||F===null)return""+F;var X=H(F);if(X==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return X}function Y(F){var X=G(F);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function O(F){return!F.constructor||!F.constructor.name?a:F.constructor.name}return o.checkPropTypes=YC,o.resetWarningCache=YC.resetWarningCache,o.PropTypes=o,o},abe=Pb;function LP(){}function FP(){}FP.resetWarningCache=LP;var obe=function(){function e(n,i,a,o,s,u){if(u!==abe){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:FP,resetWarningCache:LP};return r.PropTypes=r,r};if(process.env.NODE_ENV!=="production"){var sbe=nh.exports,lbe=!0;Bg.exports=ibe(sbe.isElement,lbe)}else Bg.exports=obe();var U=Bg.exports,ube=/\//g,nd={};function cbe(e){return nd[e]||(nd[e]=e.replace(ube,"_")),nd[e]}function ke(e){var t;return Ai(e)=="object"?t=Object.keys(e).filter(function(r){return e[r]}):t=Array.prototype.slice.call(arguments),t.map(cbe).join(" ")}function Kf(e){return function(){return e}}function ur(){}ur.thatReturns=Kf;ur.thatReturnsFalse=Kf(!1);ur.thatReturnsTrue=Kf(!0);ur.thatReturnsNull=Kf(null);ur.thatReturnsThis=function(){return this};ur.thatReturnsArgument=function(e){return e};var Un={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},XC=!1,Ca,jg,Wg,xd,Td,$P,Sd,Ug,Vg,Gg,BP,qg,Yg,HP,zP;function Fr(){if(!XC){XC=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(qg=/\b(iPhone|iP[ao]d)/.exec(e),Yg=/\b(iP[ao]d)/.exec(e),Gg=/Android/i.exec(e),HP=/FBAN\/\w+;/i.exec(e),zP=/Mobile/i.exec(e),BP=!!/Win64/.exec(e),t){Ca=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ca&&document&&document.documentMode&&(Ca=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);$P=n?parseFloat(n[1])+4:Ca,jg=t[2]?parseFloat(t[2]):NaN,Wg=t[3]?parseFloat(t[3]):NaN,xd=t[4]?parseFloat(t[4]):NaN,xd?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Td=t&&t[1]?parseFloat(t[1]):NaN):Td=NaN}else Ca=jg=Wg=Td=xd=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Sd=i?parseFloat(i[1].replace("_",".")):!0}else Sd=!1;Ug=!!r[2],Vg=!!r[3]}else Sd=Ug=Vg=!1}}var Xg={ie:function(){return Fr()||Ca},ieCompatibilityMode:function(){return Fr()||$P>Ca},ie64:function(){return Xg.ie()&&BP},firefox:function(){return Fr()||jg},opera:function(){return Fr()||Wg},webkit:function(){return Fr()||xd},safari:function(){return Xg.webkit()},chrome:function(){return Fr()||Td},windows:function(){return Fr()||Ug},osx:function(){return Fr()||Sd},linux:function(){return Fr()||Vg},iphone:function(){return Fr()||qg},mobile:function(){return Fr()||qg||Yg||Gg||zP},nativeApp:function(){return Fr()||HP},android:function(){return Fr()||Gg},ipad:function(){return Fr()||Yg}},id=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Rb={canUseDOM:id,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:id&&!!(window.addEventListener||window.attachEvent),canUseViewport:id&&!!window.screen,isInWorker:!id},jP;Rb.canUseDOM&&(jP=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
396
- * Checks if an event is supported in the current execution environment.
397
- *
398
- * NOTE: This will not work correctly for non-generic events such as `change`,
399
- * `reset`, `load`, `error`, and `select`.
400
- *
401
- * Borrows from Modernizr.
402
- *
403
- * @param {string} eventNameSuffix Event name, e.g. "click".
404
- * @param {?boolean} capture Check if the capture phase is supported.
405
- * @return {boolean} True if the event is supported.
406
- * @internal
407
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
408
- */function dbe(e,t){if(!Rb.canUseDOM||t)return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&jP&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var KC=10,ZC=40,QC=800;function WP(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*KC,i=r*KC,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=ZC,i*=ZC):(n*=QC,i*=QC)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}WP.getEventType=function(){return Xg.firefox()?"DOMMouseScroll":dbe("wheel")?"wheel":"mousewheel"};var hbe=Rr.requestAnimationFrame||Rr.webkitRequestAnimationFrame||Rr.mozRequestAnimationFrame||Rr.oRequestAnimationFrame||Rr.msRequestAnimationFrame,JC=0,Qi=hbe||function(e){var t=Date.now(),r=Math.max(0,16-(t-JC));return JC=t+r,Rr.setTimeout(function(){e(Date.now())},r)};Qi(ur);var UP=function(){function e(t,r,n,i,a,o){xt(this,e),this._animationFrameID=null,this._deltaX=0,this._deltaY=0,this._didWheel=this._didWheel.bind(this),this._rootRef=null,typeof r!="function"&&(r=r?ur.thatReturnsTrue:ur.thatReturnsFalse),typeof n!="function"&&(n=n?ur.thatReturnsTrue:ur.thatReturnsFalse),this._handleScrollX=r,this._handleScrollY=n,this._preventDefault=a,this._stopPropagation=o,this._onWheelCallback=t,this.onWheel=this.onWheel.bind(this),this._isRTL=i}return Tt(e,[{key:"onWheel",value:function(r){this._preventDefault&&r.preventDefault();var n=WP(r);r.shiftKey&&e._allowInternalAxesSwap()?n=e._swapNormalizedWheelAxis(n):r.shiftKey||(n.pixelX*=this._isRTL?-1:1);var i=this._deltaX+n.pixelX,a=this._deltaY+n.pixelY,o=this._handleScrollX(i,a),s=this._handleScrollY(a,i);if(!(!o&&!s)&&!(this._rootRef&&!this._contains(r.target))){this._deltaX+=o?n.pixelX:0,this._deltaY+=s?n.pixelY:0,r.defaultPrevented||r.preventDefault();var u;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&r.stopPropagation(),u=!0),u===!0&&this._animationFrameID===null&&(this._animationFrameID=Qi(this._didWheel))}}},{key:"setRoot",value:function(r){this._rootRef=r}},{key:"_didWheel",value:function(){this._animationFrameID=null,this._onWheelCallback(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_contains",value:function(r){for(var n=r;n!=document.body;){if(n===this._rootRef)return!0;n=n.parentNode}return!1}}],[{key:"_swapNormalizedWheelAxis",value:function(r){return{spinX:r.spinY,spinY:r.spinX,pixelX:r.pixelY,pixelY:r.pixelX}}},{key:"_allowInternalAxesSwap",value:function(){return navigator.platform!=="MacIntel"}}]),e}(),Eo={listen:function(t,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t.addEventListener)return t.addEventListener(r,n,i||!1),{remove:function(){t.removeEventListener(r,n,i||!1)}};if(t.attachEvent)return t.attachEvent("on"+r,n),{remove:function(){t.detachEvent("on"+r,n)}}},capture:function(t,r,n){return t.addEventListener?(t.addEventListener(r,n,!0),{remove:function(){t.removeEventListener(r,n,!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:ur})},registerDefault:function(){}},VP=Rr.cancelAnimationFrame||Rr.webkitCancelAnimationFrame||Rr.mozCancelAnimationFrame||Rr.oCancelAnimationFrame||Rr.msCancelAnimationFrame||Rr.clearTimeout;function fbe(e){var t=0,r=0;if(!e.clientX||!e.clientY){if(e.touches&&e.touches.length>0){var n=e.touches[0];t=n.clientX,r=n.clientY}}else t=e.clientX,r=e.clientY;return{x:t,y:r}}var Kg={getCoordinatesFromEvent:fbe},Ob=function(){function e(t,r,n,i){xt(this,e),this._isDragging=!1,this._isTouchEnabled=i,this._animationFrameID=null,this._domNode=n,this._onMove=t,this._onMoveEnd=r,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 Tt(e,[{key:"captureMouseMoves",value:function(r){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=Eo.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=Eo.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=Eo.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=Eo.listen(this._domNode,"touchstart",this._onMouseMove,{passive:!1}),this._eventTouchMoveToken=Eo.listen(r.target,"touchmove",this._onMouseMove,{passive:!1}),this._eventTouchEndToken=Eo.listen(r.target,"touchend",this._onMouseUp,{passive:!1})),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var n=Kg.getCoordinatesFromEvent(r),i=n.x,a=n.y;this._x=i,this._y=a}r.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&&(VP(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(r){var n=Kg.getCoordinatesFromEvent(r),i=n.x,a=n.y;this._deltaX+=i-this._x,this._deltaY+=a-this._y,this._animationFrameID===null&&(this._animationFrameID=Qi(this._didMouseMove)),this._x=i,this._y=a,r.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)}}]),e}(),Zg={"--scrollbar-face-active-color":"#7d7d7d","--scrollbar-face-color":"#c2c2c2","--scrollbar-face-margin":"4px","--scrollbar-face-radius":"6px","--scrollbar-size":"15px","--scrollbar-track-color":"#fff","--border-color":"#d3d3d3","--fbui-white":"#fff","--fbui-desktop-background-light":"#f6f7f8"};function Zf(e){if(Zg.hasOwnProperty(e))return Zg[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}Zf.CSS_VARS=Zg;var pbe=/-(.)/g;function mbe(e){return e.replace(pbe,function(t,r){return r.toUpperCase()})}var Om={},Qg=["Webkit","ms","Moz","O"],gbe=new RegExp("^("+Qg.join("|")+")"),GP=Rb.canUseDOM?document.createElement("div").style:{};function vbe(e){for(var t=0;t<Qg.length;t++){var r=Qg[t]+e;if(r in GP)return r}return null}function Ho(e){var t=mbe(e);if(Om[t]===void 0){var r=t.charAt(0).toUpperCase()+t.slice(1);gbe.test(r)&&qn(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",e),Om[t]=t in GP?t:vbe(r)}return Om[t]}var Jg={hasCSSAnimations:function(){return!!Ho("animationName")},hasCSSTransforms:function(){return!!Ho("transform")},hasCSS3DTransforms:function(){return!!Ho("perspective")},hasCSSTransitions:function(){return!!Ho("transition")}},ex=Ho("transform");Ho("backfaceVisibility");var ybe=function(){if(Jg.hasCSSTransforms()){var e=Rr.window?Rr.window.navigator.userAgent:"UNKNOWN",t=/Safari\//.test(e)&&!/Chrome\//.test(e);return!t&&Jg.hasCSS3DTransforms()?function(r,n,i){r[ex]="translate3d("+n+"px,"+i+"px,0)"}:function(r,n,i){r[ex]="translate("+n+"px,"+i+"px)"}}else return function(r,n,i){r.left=n+"px",r.top=i+"px"}}();function is(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;e.display!=="none"&&(n?(e.left=t+"px",e.top=r+"px"):(Jg.hasCSSTransforms()&&(t*=i?-1:1),e.left=0,ybe(e,t,r)),i&&(e.right=e.left,e.left="auto"))}function bbe(e){var t=_be();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function _be(){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}}var wbe={position:0,scrollable:!1},qP=parseInt(Zf("--scrollbar-face-margin"),10),tx=qP*2,km=30,YP=40,Kr=function(e){Jt(r,e);var t=bbe(r);function r(n){var i;return xt(this,r),i=t.call(this,n),ue(pe(i),"_onRefFace",function(a){return i._faceRef=a}),ue(pe(i),"_onRefRoot",function(a){return i._rootRef=a}),ue(pe(i),"scrollBy",function(a){i._onWheel(a)}),ue(pe(i),"_shouldHandleX",function(a){return i.props.orientation==="horizontal"?i._shouldHandleChange(a):!1}),ue(pe(i),"_shouldHandleY",function(a){return i.props.orientation!=="horizontal"?i._shouldHandleChange(a):!1}),ue(pe(i),"_shouldHandleChange",function(a){var o=i._calculateState(i.state.position+a,i.props.size,i.props.contentSize,i.props.orientation);return o.position!==i.state.position}),ue(pe(i),"_calculateState",function(a,o,s,u){var c=Math.max(1,o);if(s<=c)return wbe;var d="".concat(a,"_").concat(c,"_").concat(s,"_").concat(u);if(i._stateKey===d)return i._stateForKey;var h=u==="horizontal",p=c/s,m=c*p;m<km&&(p=(c-km)/(s-c),m=km);var v=!0,g=s-c;a<0?a=0:a>g&&(a=g);var b={faceSize:m,isHorizontal:h,position:a,scale:p,scrollable:v};return i._stateKey=d,i._stateForKey=b,b}),ue(pe(i),"_onWheelY",function(a,o){i._onWheel(o)}),ue(pe(i),"_onWheelX",function(a,o){i._onWheel(a)}),ue(pe(i),"_onWheel",function(a){var o=i.props;i._setNextState(i._calculateState(i.state.position+a,o.size,o.contentSize,o.orientation))}),ue(pe(i),"_onMouseDown",function(a){i.setState({isDragging:!0});var o;if(a.target!==i._faceRef){var s,u,c,d,h=a.nativeEvent,p=i.state.isHorizontal?(s=(u=h.offsetX)!==null&&u!==void 0?u:h.layerX)!==null&&s!==void 0?s:i.getTouchX(h):(c=(d=h.offsetY)!==null&&d!==void 0?d:h.layerY)!==null&&c!==void 0?c:i.getTouchY(h),m=i.props;p/=i.state.scale,o=i._calculateState(p-i.state.faceSize*.5/i.state.scale,m.size,m.contentSize,m.orientation)}else o={};i._setNextState(o),i._mouseMoveTracker.captureMouseMoves(a),i._rootRef.focus()}),ue(pe(i),"_onTouchCancel",function(a){a.stopPropagation()}),ue(pe(i),"_onTouchEnd",function(a){a.stopPropagation()}),ue(pe(i),"_onTouchMove",function(a){a.stopPropagation()}),ue(pe(i),"_onTouchStart",function(a){a.stopPropagation(),i._onMouseDown(a)}),ue(pe(i),"_onMouseMove",function(a,o){var s=i.props,u=i.state.isHorizontal?a*(i.props.isRTL?-1:1):o;u/=i.state.scale;var c=Xr.flushSync||function(d){return d()};c(function(){return i._setNextState(i._calculateState(i.state.position+u,s.size,s.contentSize,s.orientation))})}),ue(pe(i),"_onMouseMoveEnd",function(){i._nextState=null,i._mouseMoveTracker.releaseMouseMoves(),i.setState({isDragging:!1})}),ue(pe(i),"_onKeyDown",function(a){var o=a.keyCode;if(o!==Un.TAB){var s=YP,u=0;if(i.state.isHorizontal)switch(o){case Un.HOME:u=-1,s=i.props.contentSize;break;case Un.LEFT:u=-1;break;case Un.RIGHT:u=1;break;default:return}if(!i.state.isHorizontal)switch(o){case Un.SPACE:a.shiftKey?u=-1:u=1;break;case Un.HOME:u=-1,s=i.props.contentSize;break;case Un.UP:u=-1;break;case Un.DOWN:u=1;break;case Un.PAGE_UP:u=-1,s=i.props.size;break;case Un.PAGE_DOWN:u=1,s=i.props.size;break;default:return}a.preventDefault();var c=i.props;i._setNextState(i._calculateState(i.state.position+s*u,c.size,c.contentSize,c.orientation))}}),ue(pe(i),"getTouchX",function(a){return Math.round(a.targetTouches[0].clientX-a.target.getBoundingClientRect().x)}),ue(pe(i),"getTouchY",function(a){return Math.round(a.targetTouches[0].clientY-a.target.getBoundingClientRect().y)}),ue(pe(i),"_setNextState",function(a,o){o=o||i.props;var s=o.position,u=i.state.position!==a.position;if(s===void 0){var c=u?i._didScroll:void 0;i.setState(a,c)}else if(s===a.position)i.setState(a);else{a.position!==void 0&&a.position!==i.state.position&&i.props.onScroll(a.position);return}}),ue(pe(i),"_didScroll",function(){i.props.onScroll(i.state.position)}),i.state=i._calculateState(n.position||n.defaultPosition||0,n.size,n.contentSize,n.orientation),i._initialRender=!0,i}return Tt(r,[{key:"componentDidUpdate",value:function(){var i=this.props.position;i===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState(i,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var i=this.props.size,a,o,s=this.state.isHorizontal,u=!s,c=this.state.isDragging,d=this.state.faceSize,h=this.props.isOpaque,p=this.props.verticalTop||0,m=ke({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":u,"ScrollbarLayout/mainHorizontal":s,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":h,"public/Scrollbar/mainActive":c}),v=ke({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":s,"ScrollbarLayout/faceVertical":u,"public/Scrollbar/faceActive":c,"public/Scrollbar/face":!0}),g=this.state.position*this.state.scale+qP;return s?(a={width:i},o={width:d-tx,top:0,bottom:0},is(o,g,0,this._initialRender,this.props.isRTL)):(a={top:p,height:i},this.props.isRTL&&(a.left=a.right||0,a.right="auto"),o={height:d-tx},is(o,0,g,this._initialRender,this.props.isRTL),o.left=0,o.right=0),a.touchAction="none",a.zIndex=this.props.zIndex,this.props.trackColor==="gray"&&(a.backgroundColor=Zf("--fbui-desktop-background-light")),k.createElement("div",{onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onTouchCancel:this._onTouchCancel,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,className:m,style:a,ref:this._onRefRoot},k.createElement("div",{ref:this._onRefFace,className:v,style:o}))}},{key:"componentDidMount",value:function(){var i=this.props.orientation==="horizontal",a=i?this._onWheelX:this._onWheelY;this._wheelHandler=new UP(a,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new Ob(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)}}]),r}(k.PureComponent);ue(Kr,"propTypes",{contentSize:U.number.isRequired,defaultPosition:U.number,isOpaque:U.bool,orientation:U.oneOf(["vertical","horizontal"]),onScroll:U.func,position:U.number,size:U.number.isRequired,trackColor:U.oneOf(["gray"]),touchEnabled:U.bool,zIndex:U.number,verticalTop:U.number,isRTL:U.bool});ue(Kr,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:ur,orientation:"vertical",zIndex:99});Kr.KEYBOARD_SCROLL_AMOUNT=YP;Kr.SIZE=parseInt(Zf("--scrollbar-size"),10);Kr.OFFSET=1;function er(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=Obe[e],a=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Pi(e){return!!e&&!!e[Et]}function ia(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===kbe}(e)||Array.isArray(e)||!!e[lx]||!!e.constructor[lx]||kb(e)||Db(e))}function Cbe(e){return Pi(e)||er(23,e),e[Et].t}function Ba(e,t,r){r===void 0&&(r=!1),Ds(e)===0?(r?Object.keys:Ko)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Ds(e){var t=e[Et];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:kb(e)?2:Db(e)?3:0}function Xo(e,t){return Ds(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xbe(e,t){return Ds(e)===2?e.get(t):e[t]}function XP(e,t,r){var n=Ds(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function KP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function kb(e){return Pbe&&e instanceof Map}function Db(e){return Rbe&&e instanceof Set}function zi(e){return e.o||e.t}function Nb(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=QP(e);delete t[Et];for(var r=Ko(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ib(e,t){return t===void 0&&(t=!1),Lb(e)||Pi(e)||!ia(e)||(Ds(e)>1&&(e.set=e.add=e.clear=e.delete=Tbe),Object.freeze(e),t&&Ba(e,function(r,n){return Ib(n,!0)},!0)),e}function Tbe(){er(2)}function Lb(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ei(e){var t=nv[e];return t||er(18,e),t}function Sbe(e,t){nv[e]||(nv[e]=t)}function ev(){return process.env.NODE_ENV==="production"||as||er(0),as}function Dm(e,t){t&&(ei("Patches"),e.u=[],e.s=[],e.v=t)}function ih(e){tv(e),e.p.forEach(Ebe),e.p=null}function tv(e){e===as&&(as=e.l)}function rx(e){return as={p:[],l:as,h:e,m:!0,_:0}}function Ebe(e){var t=e[Et];t.i===0||t.i===1?t.j():t.O=!0}function Nm(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||ei("ES5").S(t,e,n),n?(r[Et].P&&(ih(t),er(4)),ia(e)&&(e=ah(t,e),t.l||oh(t,e)),t.u&&ei("Patches").M(r[Et].t,e,t.u,t.s)):e=ah(t,r,[]),ih(t),t.u&&t.v(t.u,t.s),e!==ZP?e:void 0}function ah(e,t,r){if(Lb(t))return t;var n=t[Et];if(!n)return Ba(t,function(a,o){return nx(e,n,t,a,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return oh(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Nb(n.k):n.o;Ba(n.i===3?new Set(i):i,function(a,o){return nx(e,n,i,a,o,r)}),oh(e,i,!1),r&&e.u&&ei("Patches").R(n,r,e.u,e.s)}return n.o}function nx(e,t,r,n,i,a){if(process.env.NODE_ENV!=="production"&&i===r&&er(5),Pi(i)){var o=ah(e,i,a&&t&&t.i!==3&&!Xo(t.D,n)?a.concat(n):void 0);if(XP(r,n,o),!Pi(o))return;e.m=!1}if(ia(i)&&!Lb(i)){if(!e.h.F&&e._<1)return;ah(e,i),t&&t.A.l||oh(e,i)}}function oh(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&Ib(t,r)}function Im(e,t){var r=e[Et];return(r?zi(r):e)[t]}function ix(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Vi(e){e.P||(e.P=!0,e.l&&Vi(e.l))}function Lm(e){e.o||(e.o=Nb(e.t))}function rv(e,t,r){var n=kb(t)?ei("MapSet").N(t,r):Db(t)?ei("MapSet").T(t,r):e.g?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:ev(),P:!1,I:!1,D:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=pu;o&&(u=[s],c=xl);var d=Proxy.revocable(u,c),h=d.revoke,p=d.proxy;return s.k=p,s.j=h,p}(t,r):ei("ES5").J(t,r);return(r?r.A:ev()).p.push(n),n}function Mbe(e){return Pi(e)||er(22,e),function t(r){if(!ia(r))return r;var n,i=r[Et],a=Ds(r);if(i){if(!i.P&&(i.i<4||!ei("ES5").K(i)))return i.t;i.I=!0,n=ax(r,a),i.I=!1}else n=ax(r,a);return Ba(n,function(o,s){i&&xbe(i.t,o)===s||XP(n,o,t(s))}),a===3?new Set(n):n}(e)}function ax(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nb(e)}function Abe(){function e(o,s){var u=a[o];return u?u.enumerable=s:a[o]=u={configurable:!0,enumerable:s,get:function(){var c=this[Et];return process.env.NODE_ENV!=="production"&&i(c),pu.get(c,o)},set:function(c){var d=this[Et];process.env.NODE_ENV!=="production"&&i(d),pu.set(d,o,c)}},u}function t(o){for(var s=o.length-1;s>=0;s--){var u=o[s][Et];if(!u.P)switch(u.i){case 5:n(u)&&Vi(u);break;case 4:r(u)&&Vi(u)}}}function r(o){for(var s=o.t,u=o.k,c=Ko(u),d=c.length-1;d>=0;d--){var h=c[d];if(h!==Et){var p=s[h];if(p===void 0&&!Xo(s,h))return!0;var m=u[h],v=m&&m[Et];if(v?v.t!==p:!KP(m,p))return!0}}var g=!!s[Et];return c.length!==Ko(s).length+(g?0:1)}function n(o){var s=o.k;if(s.length!==o.t.length)return!0;var u=Object.getOwnPropertyDescriptor(s,s.length-1);if(u&&!u.get)return!0;for(var c=0;c<s.length;c++)if(!s.hasOwnProperty(c))return!0;return!1}function i(o){o.O&&er(3,JSON.stringify(zi(o)))}var a={};Sbe("ES5",{J:function(o,s){var u=Array.isArray(o),c=function(h,p){if(h){for(var m=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(m,""+v,e(v,!0));return m}var g=QP(p);delete g[Et];for(var b=Ko(g),C=0;C<b.length;C++){var x=b[C];g[x]=e(x,h||!!g[x].enumerable)}return Object.create(Object.getPrototypeOf(p),g)}(u,o),d={i:u?5:4,A:s?s.A:ev(),P:!1,I:!1,D:{},l:s,t:o,k:c,o:null,O:!1,C:!1};return Object.defineProperty(c,Et,{value:d,writable:!0}),c},S:function(o,s,u){u?Pi(s)&&s[Et].A===o&&t(o.p):(o.u&&function c(d){if(d&&typeof d=="object"){var h=d[Et];if(h){var p=h.t,m=h.k,v=h.D,g=h.i;if(g===4)Ba(m,function(T){T!==Et&&(p[T]!==void 0||Xo(p,T)?v[T]||c(m[T]):(v[T]=!0,Vi(h)))}),Ba(p,function(T){m[T]!==void 0||Xo(m,T)||(v[T]=!1,Vi(h))});else if(g===5){if(n(h)&&(Vi(h),v.length=!0),m.length<p.length)for(var b=m.length;b<p.length;b++)v[b]=!1;else for(var C=p.length;C<m.length;C++)v[C]=!0;for(var x=Math.min(m.length,p.length),E=0;E<x;E++)m.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&c(m[E])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var ox,as,Fb=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Pbe=typeof Map!="undefined",Rbe=typeof Set!="undefined",sx=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",ZP=Fb?Symbol.for("immer-nothing"):((ox={})["immer-nothing"]=!0,ox),lx=Fb?Symbol.for("immer-draftable"):"__$immer_draftable",Et=Fb?Symbol.for("immer-state"):"__$immer_state",Obe={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},kbe=""+Object.prototype.constructor,Ko=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,QP=Object.getOwnPropertyDescriptors||function(e){var t={};return Ko(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},nv={},pu={get:function(e,t){if(t===Et)return e;var r=zi(e);if(!Xo(r,t))return function(i,a,o){var s,u=ix(a,o);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!ia(n)?n:n===Im(e.t,t)?(Lm(e),e.o[t]=rv(e.A.h,n,e)):n},has:function(e,t){return t in zi(e)},ownKeys:function(e){return Reflect.ownKeys(zi(e))},set:function(e,t,r){var n=ix(zi(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Im(zi(e),t),a=i==null?void 0:i[Et];if(a&&a.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(KP(r,i)&&(r!==void 0||Xo(e.t,t)))return!0;Lm(e),Vi(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Im(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Lm(e),Vi(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=zi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){er(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){er(12)}},xl={};Ba(pu,function(e,t){xl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),xl.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&er(13),xl.set.call(this,e,t,void 0)},xl.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&er(14),pu.set.call(this,e[0],t,r,e[0])};var Dbe=function(){function e(r){var n=this;this.g=sx,this.F=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var u=n;return function(g){var b=this;g===void 0&&(g=s);for(var C=arguments.length,x=Array(C>1?C-1:0),E=1;E<C;E++)x[E-1]=arguments[E];return u.produce(g,function(T){var A;return(A=a).call.apply(A,[b,T].concat(x))})}}var c;if(typeof a!="function"&&er(6),o!==void 0&&typeof o!="function"&&er(7),ia(i)){var d=rx(n),h=rv(n,i,void 0),p=!0;try{c=a(h),p=!1}finally{p?ih(d):tv(d)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(g){return Dm(d,o),Nm(g,d)},function(g){throw ih(d),g}):(Dm(d,o),Nm(c,d))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===ZP&&(c=void 0),n.F&&Ib(c,!0),o){var m=[],v=[];ei("Patches").M(i,c,m,v),o(m,v)}return c}er(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var d=arguments.length,h=Array(d>1?d-1:0),p=1;p<d;p++)h[p-1]=arguments[p];return n.produceWithPatches(c,function(m){return i.apply(void 0,[m].concat(h))})};var o,s,u=n.produce(i,a,function(c,d){o=c,s=d});return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(c){return[c,o,s]}):[u,o,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ia(r)||er(8),Pi(r)&&(r=Mbe(r));var n=rx(this),i=rv(this,r,void 0);return i[Et].C=!0,tv(n),i},t.finishDraft=function(r,n){var i=r&&r[Et];process.env.NODE_ENV!=="production"&&(i&&i.C||er(9),i.I&&er(10));var a=i.A;return Dm(a,n),Nm(void 0,a)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!sx&&er(20),this.g=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=ei("Patches").$;return Pi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),tn=new Dbe,Nbe=tn.produce;tn.produceWithPatches.bind(tn);tn.setAutoFreeze.bind(tn);tn.setUseProxies.bind(tn);tn.applyPatches.bind(tn);tn.createDraft.bind(tn);tn.finishDraft.bind(tn);var Ed=Nbe;function JP(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(o){return function(s){return typeof s=="function"?s(i,a,e):o(s)}}};return t}var eR=JP();eR.withExtraArgument=JP;var ux=eR,Ibe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),sh=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Lbe=Object.defineProperty,cx=Object.getOwnPropertySymbols,Fbe=Object.prototype.hasOwnProperty,$be=Object.prototype.propertyIsEnumerable,dx=function(e,t,r){return t in e?Lbe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},mu=function(e,t){for(var r in t||(t={}))Fbe.call(t,r)&&dx(e,r,t[r]);if(cx)for(var n=0,i=cx(t);n<i.length;n++){var r=i[n];$be.call(t,r)&&dx(e,r,t[r])}return e},Bbe=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?th:th.apply(null,arguments)};function tR(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function rR(e,t){var r=0;return{measureTime:function(n){var i=Date.now();try{return n()}finally{var a=Date.now();r+=a-i}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
409
- If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
410
- It is disabled in production builds, so you don't need to worry about that.`)}}}var Hbe=function(e){Ibe(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,sh([void 0],r[0].concat(this)))):new(t.bind.apply(t,sh([void 0],r.concat(this))))},t}(Array),zbe=process.env.NODE_ENV==="production",hx="Invariant failed";function fx(e,t){if(!e)throw zbe?new Error(hx):new Error(hx+": "+(t||""))}function jbe(e,t,r,n){return JSON.stringify(e,Wbe(t,n),r)}function Wbe(e,t){var r=[],n=[];return t||(t=function(i,a){return r[0]===a?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(a)).join(".")+"]"}),function(i,a){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,i):n.push(i),~r.indexOf(a)&&(a=t.call(this,i,a))}else r.push(a);return e==null?a:e.call(this,i,a)}}function Ube(e){return typeof e!="object"||e===null||typeof e=="undefined"||Object.isFrozen(e)}function Vbe(e,t,r){var n=nR(e,t,r);return{detectMutations:function(){return iR(e,t,n,r)}}}function nR(e,t,r,n){t===void 0&&(t=[]),n===void 0&&(n="");var i={value:r};if(!e(r)){i.children={};for(var a in r){var o=n?n+"."+a:a;t.length&&t.indexOf(o)!==-1||(i.children[a]=nR(e,t,r[a],o))}}return i}function iR(e,t,r,n,i,a){t===void 0&&(t=[]),i===void 0&&(i=!1),a===void 0&&(a="");var o=r?r.value:void 0,s=o===n;if(i&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};var u={};for(var c in r.children)u[c]=!0;for(var c in n)u[c]=!0;for(var c in u){var d=a?a+"."+c:c;if(!(t.length&&t.indexOf(d)!==-1)){var h=iR(e,t,r.children[c],n[c],s,d);if(h.wasMutated)return h}}return{wasMutated:!1}}function Gbe(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(u){return function(c){return u(c)}}};var t=e.isImmutable,r=t===void 0?Ube:t,n=e.ignoredPaths,i=e.warnAfter,a=i===void 0?32:i,o=e.ignore;n=n||o;var s=Vbe.bind(null,r,n);return function(u){var c=u.getState,d=c(),h=s(d),p;return function(m){return function(v){var g=rR(a,"ImmutableStateInvariantMiddleware");g.measureTime(function(){d=c(),p=h.detectMutations(),h=s(d),fx(!p.wasMutated,"A state mutation was detected between dispatches, in the path '"+(p.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var b=m(v);return g.measureTime(function(){d=c(),p=h.detectMutations(),h=s(d),p.wasMutated&&fx(!p.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(p.path||"")+". Take a look at the reducer(s) handling the action "+jbe(v)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),g.warnIfExceeded(),b}}}}function aR(e){var t=typeof e;return t==="undefined"||e===null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||tR(e)}function iv(e,t,r,n,i){t===void 0&&(t=""),r===void 0&&(r=aR),i===void 0&&(i=[]);var a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var o=n!=null?n(e):Object.entries(e),s=i.length>0,u=0,c=o;u<c.length;u++){var d=c[u],h=d[0],p=d[1],m=t?t+"."+h:h;if(!(s&&i.indexOf(m)>=0)){if(!r(p))return{keyPath:m,value:p};if(typeof p=="object"&&(a=iv(p,m,r,n,i),a))return a}}return!1}function qbe(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(b){return function(C){return b(C)}}};var t=e.isSerializable,r=t===void 0?aR:t,n=e.getEntries,i=e.ignoredActions,a=i===void 0?[]:i,o=e.ignoredActionPaths,s=o===void 0?["meta.arg","meta.baseQueryMeta"]:o,u=e.ignoredPaths,c=u===void 0?[]:u,d=e.warnAfter,h=d===void 0?32:d,p=e.ignoreState,m=p===void 0?!1:p,v=e.ignoreActions,g=v===void 0?!1:v;return function(b){return function(C){return function(x){var E=C(x),T=rR(h,"SerializableStateInvariantMiddleware");return!g&&!(a.length&&a.indexOf(x.type)!==-1)&&T.measureTime(function(){var A=iv(x,"",r,n,s);if(A){var R=A.keyPath,N=A.value;console.error("A non-serializable value was detected in an action, in the path: `"+R+"`. Value:",N,`
411
- Take a look at the logic that dispatched this action: `,x,`
412
- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
413
- (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),m||(T.measureTime(function(){var A=b.getState(),R=iv(A,"",r,n,c);if(R){var N=R.keyPath,I=R.value;console.error("A non-serializable value was detected in the state, in the path: `"+N+"`. Value:",I,`
414
- Take a look at the reducer(s) handling this action type: `+x.type+`.
415
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),T.warnIfExceeded()),E}}}}function Fm(e){return typeof e=="boolean"}function Ybe(){return function(t){return Xbe(t)}}function Xbe(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,o=a===void 0?!0:a,s=new Hbe;if(r&&(Fm(r)?s.push(ux):s.push(ux.withExtraArgument(r.extraArgument))),process.env.NODE_ENV!=="production"){if(i){var u={};Fm(i)||(u=i),s.unshift(Gbe(u))}if(o){var c={};Fm(o)||(c=o),s.push(qbe(c))}}return s}var $m=process.env.NODE_ENV==="production";function Kbe(e){var t=Ybe(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,o=a===void 0?t():a,s=r.devTools,u=s===void 0?!0:s,c=r.preloadedState,d=c===void 0?void 0:c,h=r.enhancers,p=h===void 0?void 0:h,m;if(typeof i=="function")m=i;else if(tR(i))m=dfe(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=o;if(typeof v=="function"&&(v=v(t),!$m&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!$m&&v.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=hfe.apply(void 0,v),b=th;u&&(b=Bbe(mu({trace:!$m},typeof u=="object"&&u)));var C=[g];Array.isArray(p)?C=sh([g],p):typeof p=="function"&&(C=p(C));var x=b.apply(void 0,C);return mP(m,d,x)}function gu(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return mu(mu({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function oR(e){var t={},r=[],n,i={addCase:function(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var s=typeof a=="string"?a:a.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=o,i},addMatcher:function(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase:function(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function Zbe(e){return typeof e=="function"}function Qbe(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?oR(t):[t,r,n],a=i[0],o=i[1],s=i[2],u;if(Zbe(e))u=function(){return Ed(e(),function(){})};else{var c=Ed(e,function(){});u=function(){return c}}function d(h,p){h===void 0&&(h=u());var m=sh([a[p.type]],o.filter(function(v){var g=v.matcher;return g(p)}).map(function(v){var g=v.reducer;return g}));return m.filter(function(v){return!!v}).length===0&&(m=[s]),m.reduce(function(v,g){if(g)if(Pi(v)){var b=v,C=g(b,p);return typeof C=="undefined"?v:C}else{if(ia(v))return Ed(v,function(x){return g(x,p)});var C=g(v,p);if(typeof C=="undefined"){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return v},h)}return d.getInitialState=u,d}function Jbe(e,t){return e+"/"+t}function e1e(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var r=typeof e.initialState=="function"?e.initialState:Ed(e.initialState,function(){}),n=e.reducers||{},i=Object.keys(n),a={},o={},s={};i.forEach(function(d){var h=n[d],p=Jbe(t,d),m,v;"reducer"in h?(m=h.reducer,v=h.prepare):m=h,a[d]=m,o[p]=m,s[d]=v?gu(p,v):gu(p)});function u(){var d=typeof e.extraReducers=="function"?oR(e.extraReducers):[e.extraReducers],h=d[0],p=h===void 0?{}:h,m=d[1],v=m===void 0?[]:m,g=d[2],b=g===void 0?void 0:g,C=mu(mu({},p),o);return Qbe(r,C,v,b)}var c;return{name:t,reducer:function(d,h){return c||(c=u()),c(d,h)},actions:s,caseReducers:a,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var $b="listenerMiddleware";gu($b+"/add");gu($b+"/removeAll");gu($b+"/remove");Abe();function t1e(){var e=r1e();return{columnElements:[],columnGroupElements:[],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},firstRowIndex:0,firstRowOffset:0,maxScrollX:0,maxScrollY:0,rowOffsets:{},rows:[],scrollContentHeight:0,scrollX:0,scrollbarXHeight:Kr.SIZE,scrollY:0,scrollbarYWidth:Kr.SIZE,scrolling:!1,getInternal:function(){return e}}}function r1e(){return{rowBufferSet:new RP,rowOffsetIntervalTree:null,storedHeights:[],rowUntilOffsetsAreExact:0}}var sR=e1e({name:"FDT",initialState:{},reducers:{initialize:function(t,r){var n=r.payload;Ot(t,t1e()),mx(t,n),px(t);var i=$C(t,n);cl(t,i),VC.initialize(t,n,{})},propChange:function(t,r){var n=r.payload,i=n.newProps,a=n.oldProps,o=Fve(Cbe(t));mx(t,i),(a.rowsCount!==i.rowsCount||a.rowHeight!==i.rowHeight||a.subRowHeight!==i.subRowHeight)&&px(t),a.rowsCount!==i.rowsCount&&(t.getInternal().rowBufferSet=new RP);var s=$C(t,i,a);(!hu(t,o)||s.changed)&&cl(t,s),VC.initialize(t,i,a),(t.scrollX!==o.scrollX||t.scrollY!==o.scrollY)&&(t.scrolling=t.scrolling||!0)},scrollEnd:function(t){t.scrolling=!1;var r={firstIndex:t.firstRowIndex,firstOffset:t.firstRowOffset,lastIndex:t.lastIndex};cl(t,r)},scrollToY:function(t,r){var n=r.payload;t.scrolling=!0;var i=$g(t,n);cl(t,i)},scrollToX:function(t,r){var n=r.payload;t.scrolling=!0,t.scrollX=n},updateRowHeights:function(t,r){var n=r.payload||0;if(!(n>=t.rowSettings.rowsCount)){for(;n<t.rowSettings.rowsCount;)Sa(t,n++);var i=t.getInternal().rowOffsetIntervalTree.sumUntil(t.firstRowIndex)-t.firstRowOffset,a=$g(t,i);cl(t,a)}}}});function px(e){for(var t=e.rowSettings,r=t.rowHeight,n=t.rowsCount,i=t.subRowHeight,a=t.rowHeightGetter,o=t.subRowHeightGetter,s=r+i,u=0,c=new Array(n),d=0;d<n;d++)e.isVerticalScrollExact?c[d]=a(d)+o(d):c[d]=s,u+=c[d];var h=new zve(c);e.scrollContentHeight=u,Ot(e.getInternal(),{rowOffsetIntervalTree:h,storedHeights:c})}function mx(e,t){var r=Uve(t.children),n=r.columnGroupElements,i=r.columnElements,a=r.elementTemplates,o=r.useGroupHeader;Ot(e,{columnGroupElements:n,columnElements:i,elementTemplates:a,propsRevision:e.propsRevision+1,isVerticalScrollExact:t.isVerticalScrollExact}),Object.freeze(e.columnElements),Object.freeze(e.columnGroupElements),Object.freeze(e.elementTemplates),e.elementHeights=Ot({},e.elementHeights,Cl(t,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),o||(e.elementHeights.groupHeaderHeight=0),e.rowSettings=Ot({},e.rowSettings,Cl(t,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var s=e.rowSettings,u=s.rowHeight,c=s.subRowHeight;e.rowSettings.rowHeightGetter=t.rowHeightGetter||function(){return u},e.rowSettings.subRowHeightGetter=t.subRowHeightGetter||function(){return c||0},e.rowSettings.rowAttributesGetter=t.rowAttributesGetter,e.scrollFlags=Ot({},e.scrollFlags,Cl(t,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),e.tableSize=Ot({},e.tableSize,Cl(t,["height","maxHeight","ownerHeight","width"])),e.tableSize.useMaxHeight=e.tableSize.height===void 0,e.scrollbarXHeight=t.scrollbarXHeight,e.scrollbarYWidth=t.scrollbarYWidth}var n1e=sR.reducer,Ns=sR.actions,i1e=Ns.initialize,a1e=Ns.propChange,o1e=Ns.scrollEnd,s1e=Ns.scrollToX,l1e=Ns.scrollToY,u1e=Ns.updateRowHeights,c1e=function(t,r){var n=gP({scrollToX:s1e,scrollToY:l1e,scrollEnd:o1e},t.dispatch),i=function(s){var u=t.getState(),c=u.scrollX;if(s!==c){var d=Math.round(s),h=r(),p=h.onHorizontalScroll;(!p||p(d))&&n.scrollToX(d)}},a=function(s){var u=t.getState(),c=u.scrollY;if(s!==c){var d=r(),h=d.onVerticalScroll;(!h||h(s))&&n.scrollToY(s)}};return{scrollToX:i,scrollToY:a,stopScroll:n.scrollEnd}},d1e=Xa,h1e=la,f1e="[object Number]";function p1e(e){return typeof e=="number"||h1e(e)&&d1e(e)==f1e}var m1e=p1e,g1e=m1e;function v1e(e){return g1e(e)&&e!=+e}var gx=v1e;function y1e(e,t,r,n,i){n=n||setTimeout,i=i||clearTimeout;var a;function o(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];o.reset();var d=function(){e.apply(r,u)};d.__SMmeta=e.__SMmeta,a=n(d,t)}return o.reset=function(){i(a)},o}function sr(e){e||(e="");var t,r=arguments.length;if(r>1)for(var n=1;n<r;n++)t=arguments[n],t&&(e=(e?e+" ":"")+t);return e}function b1e(e,t,r){var n=1,i=1,a=e+2,o=e+1,s=2;return t&&(i++,o++,a++,s++),r&&o++,{ariaGroupHeaderIndex:n,ariaHeaderIndex:i,ariaFooterIndex:a,ariaRowCount:o,ariaRowIndexOffset:s}}var _1e=ki([function(e){return e.rowsCount},function(e){return e.groupHeaderHeight>0},function(e){return e.footerHeight>0}],b1e);function w1e(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var C1e=w1e,x1e=C1e,T1e=x1e(),S1e=T1e,E1e=S1e,M1e=Lf;function A1e(e,t){return e&&E1e(e,t,M1e)}var P1e=A1e,R1e=Zu;function O1e(e,t){return function(r,n){if(r==null)return r;if(!R1e(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var k1e=O1e,D1e=P1e,N1e=k1e,I1e=N1e(D1e),L1e=I1e,F1e=fP;function $1e(e){return typeof e=="function"?e:F1e}var B1e=$1e,H1e=vP,z1e=L1e,j1e=B1e,W1e=wn;function U1e(e,t){var r=W1e(e)?H1e:z1e;return r(e,j1e(t))}var vx=U1e;function V1e(e,t){var r=e.columnGroupProps,n=e.columnProps,i=[],a=[],o=[];vx(r,function(d,h){var p={props:d,template:t.groupHeader[h]};d.fixed?i.push(p):d.fixedRight?a.push(p):o.push(p)});var s={cell:[],header:[],footer:[]},u={cell:[],header:[],footer:[]},c={cell:[],header:[],footer:[]};return vx(n,function(d,h){var p=c;d.fixed?p=s:d.fixedRight&&(p=u),p.cell.push({props:d,template:t.cell[h]}),p.header.push({props:d,template:t.header[h]}),p.footer.push({props:d,template:t.footer[h]})}),{fixedColumnGroups:i,fixedColumns:s,fixedRightColumnGroups:a,fixedRightColumns:u,scrollableColumnGroups:o,scrollableColumns:c}}var G1e=ki([function(e){return Ju(e)},function(e){return e.elementTemplates}],V1e);function q1e(e,t){return e==null||e!==e?t:e}var Y1e=q1e,X1e=Math.max,K1e=Math.min;function Z1e(e,t,r){return e>=K1e(t,r)&&e<X1e(t,r)}var Q1e=Z1e,J1e=Sb,yx=1/0,e_e=17976931348623157e292;function t_e(e){if(!e)return e===0?e:0;if(e=J1e(e),e===yx||e===-yx){var t=e<0?-1:1;return t*e_e}return e===e?e:0}var r_e=t_e,n_e=Q1e,bx=r_e,i_e=Sb;function a_e(e,t,r){return t=bx(t),r===void 0?(r=t,t=0):r=bx(r),e=i_e(e),n_e(e,t,r)}var Ra=a_e;function o_e(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ci(e,t){if(e==null)return{};var r,n,i=o_e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var s_e=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function _x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function l_e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_x(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u_e(e){var t=c_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function c_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(e){return!1}}var lh=function(e){Jt(r,e);var t=u_e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,s=i.style,u=i.className,c=i.children,d=Ci(i,s_e),h=l_e({height:a,width:o},s);return k.createElement("div",Ot({},d,{className:sr(ke("fixedDataTableCellLayout/wrap1"),ke("public/fixedDataTableCell/wrap1"),u),style:h}),k.createElement("div",{className:sr(ke("fixedDataTableCellLayout/wrap2"),ke("public/fixedDataTableCell/wrap2"))},k.createElement("div",{className:sr(ke("fixedDataTableCellLayout/wrap3"),ke("public/fixedDataTableCell/wrap3"))},k.createElement("div",{className:ke("public/fixedDataTableCell/cellContent")},c))))}}]),r}(k.Component);ue(lh,"propTypes",{height:U.number,width:U.number,columnKey:U.oneOfType([U.string,U.number]),rowIndex:U.number,isVisible:U.bool});function lR(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function uR(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function cR(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}}lR.__suppressDeprecationWarning=!0;uR.__suppressDeprecationWarning=!0;cR.__suppressDeprecationWarning=!0;function dR(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,i=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"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var a=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
416
-
417
- `+a+" uses "+o+" but also contains the following legacy lifecycles:"+(r!==null?`
418
- `+r:"")+(n!==null?`
419
- `+n:"")+(i!==null?`
420
- `+i:"")+`
421
-
422
- The above lifecycles should be removed. Learn more about this warning here:
423
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=lR,t.componentWillReceiveProps=uR),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=cR;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,d,h){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;s.call(this,c,d,p)}}return e}var d_e=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function wx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h_e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Bb=k.forwardRef(function(t,r){var n=t.height,i=t.width,a=t.style,o=t.className,s=t.children,u=Ci(t,d_e),c=h_e({height:n,width:i},a);return k.createElement("div",Ot({},u,{className:sr(ke("fixedDataTableCellLayout/wrap"),ke("public/fixedDataTableCell/wrap"),ke("public/fixedDataTableCell/cellContent"),o),style:c,ref:r}),s)});Bb.propTypes={height:U.number,width:U.number,columnKey:U.oneOfType([U.string,U.number]),rowIndex:U.number,isVisible:U.bool};var os=k.createContext({}),f_e=sP;function p_e(e,t,r){var n=e==null?void 0:f_e(e,t);return n===void 0?r:n}var av=p_e;function m_e(e){var t=g_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function g_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(e){return!1}}var Cx=15,xx=100,Hb=function(e){Jt(r,e);var t=m_e(r);function r(){var n;xt(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(pe(n),"state",{displacement:0}),ue(pe(n),"containerRef",k.createRef()),ue(pe(n),"onTouchEnd",function(s){n.props.touchEnabled&&s.stopPropagation()}),ue(pe(n),"onTouchMove",function(s){n.props.touchEnabled&&s.stopPropagation()}),ue(pe(n),"onMouseMove",function(s){n.cursorDeltaX+=s*(n.context.isRTL?-1:1)}),ue(pe(n),"onMouseUp",function(){VP(n.frameId),n.setState({displacement:0,isReordering:!1}),n.updateColumnOrder(),n.frameId=null,n.cursorDeltaX=0,n.mouseMoveTracker.releaseMouseMoves()}),ue(pe(n),"initializeDOMMouseMoveTracker",function(s){n.mouseMoveTracker=new Ob(n.onMouseMove,n.onMouseUp,document.body,n.props.touchEnabled),n.mouseMoveTracker.captureMouseMoves(s)}),ue(pe(n),"updateDisplacementPeriodically",function(){n.frameId=Qi(n.updateDisplacementPeriodically),n.updateDisplacementWithScroll()}),ue(pe(n),"getBoundedDeltaX",function(s){var u=0,c=0,d=n.props.cellGroupType,h=n.context.groupHeaderHeight>0;if(h&&!n.props.isGroupHeader){var p=n.context.getColumnGroupByChild(n.props.columnIndex);u=p.width,c=p.offset}else u=n.context.getCellGroupWidth(d);var m=u-n.props.width;return Bf(s,-n.originalLeft+c,-n.originalLeft+m+c)}),ue(pe(n),"updateDisplacementWithScroll",function(){var s=n.scrollStart,u=n.props.cellGroupType,c=n.context,d=c.scrollX,h=c.maxScrollX,p=c.availableScrollWidth,m=n.cursorDeltaX;if(u===De.SCROLLABLE){var v=n.originalLeft-s+m;m+=d-s,v>p-xx?d=Math.min(d+Cx,h):v<=xx&&(d=Math.max(d-Cx,0)),n.context.scrollToX(d)}m=n.getBoundedDeltaX(m),n.setState({displacement:m})}),ue(pe(n),"isColumnMovedToRight",function(s){return s>0}),ue(pe(n),"isColumnMovedToLeft",function(s){return s<0}),ue(pe(n),"updateColumnOrder",function(){var s=n.props.cellGroupType,u=n.getBoundedDeltaX(n.cursorDeltaX+n.context.scrollX-n.scrollStart),c=u>=0?n.props.width+u+n.props.left:u+n.props.left,d,h;if(n.props.isGroupHeader){var p=n.context.getColumnGroupAtOffset(c,s),m=p.columnGroup,v=p.distanceFromOffset;d=m,h=v}else{var g=n.context.getColumnAtOffset(c,s),b=g.column,C=g.distanceFromOffset;d=b,h=C}var x=null,E=null;d.index<n.props.columnIndex?h<=d.width/2?(x=d.index-1,E=d.index):(x=d.index,E=d.index+1):h>=d.width/2?(x=d.index,E=d.index+1):(x=d.index-1,E=d.index),x===n.props.columnIndex&&--x,E===n.props.columnIndex&&++E;var T=n.props.isGroupHeader?n.context.getColumnGroupCount():n.context.getColumnCount(),A,R;Ra(x,0,T)&&(A=n.props.isGroupHeader?n.context.getColumnGroup(x):n.context.getColumn(x)),Ra(E,0,T)&&(R=n.props.isGroupHeader?n.context.getColumnGroup(E):n.context.getColumn(E)),n.props.onColumnReorderEnd({columnBefore:av(A,"columnKey"),columnAfter:av(R,"columnKey"),reorderColumn:n.props.columnKey})}),n}return Tt(r,[{key:"componentDidMount",value:function(){var i=this.props.contents.parentNode.cloneNode(!0);i.firstChild.classList.add(ke("public/fixedDataTableCell/reordering")),this.containerRef.current.appendChild(i),this.startDrag()}},{key:"render",value:function(){var i={position:"absolute"};return is(i,this.state.displacement,0,!0,this.context.isRTL),k.createElement("div",{style:i,ref:this.containerRef})}},{key:"startDrag",value:function(){this.cursorDeltaX=0,this.scrollStart=this.context.scrollX,this.originalLeft=this.props.left,this.initializeDOMMouseMoveTracker(this.props.reorderStartEvent),this.setState({displacement:0,isReordering:!0}),this.frameId=Qi(this.updateDisplacementPeriodically)}}]),r}(k.PureComponent);Hb.contextType=os;Hb.propTypes={columnIndex:U.number.isRequired,columnKey:U.string.isRequired,contents:U.object.isRequired,cellGroupType:U.string,isGroupHeader:U.bool,isRTL:U.bool,left:U.number.isRequired,onColumnReorderStart:U.func.isRequired,reorderStartEvent:U.object.isRequired,touchEnabled:U.bool,width:U.number.isRequired};function v_e(e){var t=y_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function y_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(e){return!1}}var b_e=function(e){Jt(r,e);var t=v_e(r);function r(n){var i;xt(this,r),i=t.call(this,n);var a=n.value;return i.unsubscribe=a.subscribe(function(o){i.setState({FixedDataTableContextValue:o})}),i.state={FixedDataTableContextValue:a},i}return Tt(r,[{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){var i=this.state.FixedDataTableContextValue;return k.createElement(os.Provider,{value:i},this.props.children)}}]),r}(k.PureComponent);function __e(){}var w_e=__e,C_e=["onColumnReorderStart","onColumnReorderEnd","reorderStartEvent","children"];function x_e(e){var t=T_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function T_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(e){return!1}}var S_e=1,vu=function(e){Jt(r,e);var t=x_e(r);function r(){var n;xt(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(pe(n),"state",{isReordering:!1}),ue(pe(n),"dragContainer",null),ue(pe(n),"cellRef",k.createRef()),ue(pe(n),"isMounted",!1),ue(pe(n),"setReorderHandle",function(s){s&&(s.addEventListener("mousedown",n.onMouseDown,{passive:!1}),s.addEventListener("touchstart",n.onTouchStart,{passive:!1}))}),ue(pe(n),"onTouchStart",function(s){n.props.touchEnabled&&n.onMouseDown(s)}),ue(pe(n),"onMouseDown",function(s){n.onDragStart(s)}),ue(pe(n),"onDragStart",function(s){n.createDragContainer(),n.renderDragProxy(s),n.props.onColumnReorderStart(n.props.columnKey)}),ue(pe(n),"onColumnReorderEnd",function(s){n.isMounted&&n.setState({isReordering:!1}),n.removeDragContainer(),n.props.onColumnReorderEnd(s)}),ue(pe(n),"createDragContainer",function(){n.dragContainer=document.createElement("div"),n.dragContainer.dataset.columnKey=n.props.columnKey;var s=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");s.appendChild(n.dragContainer)}),ue(pe(n),"getDragContainer",function(){if(n.dragContainer)return n.dragContainer;var s=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");return n.dragContainer=s.querySelector('[data-column-key="'.concat(n.props.columnKey,'"]')),n.dragContainer}),ue(pe(n),"removeDragContainer",function(){n.props.__react19RootCreator?n.dragContainer.root.unmount():Xr.unmountComponentAtNode(n.dragContainer),n.dragContainer.remove(),n.dragContainer=null}),n}return Tt(r,[{key:"componentDidMount",value:function(){this.isMounted=!0;var i=av(this.getDragContainer(),"dataset.columnKey"),a=oP(this.props.columnKey)===i;a&&(this.renderDragProxy({}),this.setState({isReordering:!0}))}},{key:"componentWillUnmount",value:function(){this.isMounted=!1}},{key:"render",value:function(){if(this.state.isReordering)return null;var i=this.props,a=i.children,o=Ci(i,C_e),s=sr(ke({"public/fixedDataTableCell/resizeReorderCellContainer":!0}),o.className),u=sr(s,ke({"public/fixedDataTableCell/hasReorderHandle":!0})),c={height:o.height,width:o.width-S_e},d;return k.isValidElement(a)?d=k.cloneElement(a,o):typeof a=="function"?d=a(o):d=k.createElement(Bb,o,a),k.createElement("div",{className:u,style:c,ref:this.cellRef},this.renderReorderHandle(),d)}},{key:"renderReorderHandle",value:function(){var i={height:this.props.height};return k.createElement("div",{ref:this.setReorderHandle,className:ke({"fixedDataTableCellLayout/columnReorderContainer":!0,"fixedDataTableCellLayout/columnReorderContainer/active":!1}),style:i})}},{key:"renderDragProxy",value:function(i){var a=this,o={isDragProxy:!0,reorderStartEvent:i,onColumnReorderEnd:this.onColumnReorderEnd,contents:this.cellRef.current},s=k.createElement(b_e,{value:this.context},k.createElement(Hb,Ot({},this.props,o)));if(this.props.__react19RootCreator){var u=Xr.flushSync||function(c){return c()};u(function(){var c=a.props.__react19RootCreator(a.getDragContainer());a.dragContainer.root=c,c.render(s)}),this.setState({isReordering:!0});return}Xr.render(s,this.getDragContainer(),function(){return a.setState({isReordering:!0})})}}]),r}(k.PureComponent);vu.contextType=os;vu.defaultProps={onColumnReorderStart:w_e};vu.propTypes={height:U.number,width:U.number,columnKey:U.oneOfType([U.string,U.number]),rowIndex:U.number,left:U.number,touchEnabled:U.bool,minWidth:U.number,maxWidth:U.number,onColumnReorderStart:U.func,onColumnReorderEnd:U.func.isRequired,__react19RootCreator:U.func};var E_e=!!(typeof window!="undefined"&&window.document&&window.document.createElement),M_e=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function A_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P_e(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function R_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var hR=function(e){R_e(t,e);function t(){return A_e(this,t),P_e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return M_e(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return E_e?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Xr.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(k.Component);hR.propTypes={children:U.node.isRequired,node:U.any};var O_e=hR,k_e=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function D_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N_e(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function I_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fR=function(e){I_e(t,e);function t(){return D_e(this,t),N_e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k_e(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(n){this.renderPortal()}},{key:"componentWillUnmount",value:function(){Xr.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(n){!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var i=this.props.children;typeof this.props.children.type=="function"&&(i=k.cloneElement(this.props.children)),this.portal=Xr.unstable_renderSubtreeIntoContainer(this,i,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(k.Component),L_e=fR;fR.propTypes={children:U.node.isRequired,node:U.any};var ov=void 0;Xr.createPortal?ov=O_e:ov=L_e;var F_e=ov;function $_e(e){var t=B_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function B_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(e){return!1}}var pR=function(e){Jt(r,e);var t=$_e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){if(!this.props.visible)return null;var i=this.getTableRef();if(!i)return null;var a={height:this.props.height,top:0,left:this.props.left};return k.createElement(F_e,{node:i},k.createElement("div",{className:sr(ke("fixedDataTableColumnResizerLineLayout/main"),ke("public/fixedDataTableColumnResizerLine/main")),style:a},k.createElement("div",{className:ke("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}})))}},{key:"getTableRef",value:function(){var i=this.props.parentRef;return i?i.closest(ke(".fixedDataTableLayout/main")):null}}]),r}(k.PureComponent);ue(pR,"propTypes",{visible:U.bool.isRequired,height:U.number.isRequired,left:U.number.isRequired,parentRef:U.object});function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function H_e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z_e(e){var t=j_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function j_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(e){return!1}}var mR=function(e){Jt(r,e);var t=z_e(r);function r(n){var i;return xt(this,r),i=t.call(this,n),ue(pe(i),"initialState",{isColumnResizing:!1,currentMouseXCoordinate:0,totalDisplacement:0}),ue(pe(i),"state",H_e({},i.initialState)),ue(pe(i),"resizerKnobRef",null),ue(pe(i),"mouseMoveTracker",null),ue(pe(i),"setResizerKnobRef",function(a){i.resizerKnobRef=a}),ue(pe(i),"initializeDOMMouseMoveTracker",function(a){i.mouseMoveTracker=new Ob(i.onMouseMove,i.onMouseUp,document.body,i.props.touchEnabled),i.mouseMoveTracker.captureMouseMoves(a)}),ue(pe(i),"onTouchStart",function(a){i.props.touchEnabled&&i.onMouseDown(a)}),ue(pe(i),"onMouseDown",function(a){i.initializeDOMMouseMoveTracker(a);var o=Kg.getCoordinatesFromEvent(a).x-a.currentTarget.closest(ke(".fixedDataTableLayout/main")).getBoundingClientRect().left;i.setState({initialMouseXCoordinate:o,isColumnResizing:!0,totalDisplacement:0,currentMouseXCoordinate:o})}),ue(pe(i),"onMouseUp",function(){var a=i.getMinMaxWidth(),o=a.minWidth,s=a.maxWidth,u=Ff(i.props.width+i.state.totalDisplacement*(i.props.isRTL?-1:1),o,s);i.mouseMoveTracker.releaseMouseMoves(),i.setState({isColumnResizing:!1,totalDisplacement:0},function(){i.props.onColumnResizeEnd(u,i.props.columnKey)})}),ue(pe(i),"onMouseMove",function(a){var o=i.props,s=o.isRTL,u=o.width,c=i.state,d=c.initialMouseXCoordinate,h=c.totalDisplacement,p=h+a,m=d+p,v=i.getMinMaxWidth(),g=v.minWidth,b=v.maxWidth,C=u+p*(s?-1:1);(C<g||C>b)&&(m=i.state.currentMouseXCoordinate),i.setState({totalDisplacement:p,currentMouseXCoordinate:m})}),ue(pe(i),"getMinMaxWidth",function(){return{minWidth:i.props.minWidth||0,maxWidth:i.props.maxWidth||Number.MAX_SAFE_INTEGER}}),ue(pe(i),"suppressEventIfInTouchMode",function(a){i.props.touchEnabled&&(a.preventDefault(),a.stopPropagation())}),i}return Tt(r,[{key:"componentDidMount",value:function(){this.setupHandlers()}},{key:"componentWillUnmount",value:function(){this.cleanupHandlers()}},{key:"render",value:function(){var i={height:this.props.height},a=k.createElement(pR,{height:this.props.resizerLineHeight,visible:!!this.state.isColumnResizing,left:this.state.currentMouseXCoordinate,parentRef:this.resizerKnobRef});return k.createElement("div",{className:ke("fixedDataTableCellLayout/columnResizerContainer"),ref:this.setResizerKnobRef,style:i},a)}},{key:"setupHandlers",value:function(){this.resizerKnobRef.addEventListener("mousedown",this.onMouseDown,{passive:!1}),this.resizerKnobRef.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.resizerKnobRef.addEventListener("touchmove",this.suppressEventIfInTouchMode,{passive:!1}),this.resizerKnobRef.addEventListener("touchend",this.suppressEventIfInTouchMode,{passive:!1})}},{key:"cleanupHandlers",value:function(){this.resizerKnobRef.removeEventListener("mousedown",this.onMouseDown,{passive:!1}),this.resizerKnobRef.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.resizerKnobRef.removeEventListener("touchmove",this.suppressEventIfInTouchMode,{passive:!1}),this.resizerKnobRef.removeEventListener("touchend",this.suppressEventIfInTouchMode,{passive:!1})}}]),r}(k.PureComponent);mR.propTypes={columnKey:U.oneOfType([U.string,U.number]).isRequired,minWidth:U.number,maxWidth:U.number,width:U.number.isRequired,resizerLineHeight:U.number.isRequired,touchEnabled:U.bool,isRTL:U.bool,onColumnResizeEnd:U.func.isRequired,height:U.number.isRequired};var W_e=["children","minWidth","maxWidth","onColumnResizeEnd","onColumnReorderEnd","rowIndex","left","touchEnabled","cellGroupType","onColumnReorderStart"];function U_e(e){var t=V_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function V_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(e){return!1}}var uh=function(e){Jt(r,e);var t=U_e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){var i=this.props,a=i.children,o=Ci(i,W_e),s;return k.isValidElement(a)?s=k.cloneElement(a,o):typeof a=="function"?s=a(o):s=k.createElement(Bb,o,a),k.createElement(k.Fragment,null,k.createElement(mR,{height:this.props.height,resizerLineHeight:this.context.tableHeight,onColumnResizeEnd:this.props.onColumnResizeEnd,width:this.props.width,minWidth:this.props.minWidth,maxWidth:this.props.maxWidth,columnKey:this.props.columnKey,touchEnabled:this.props.touchEnabled,isRTL:this.context.isRTL}),s)}}]),r}(k.PureComponent);uh.contextType=os;uh.propTypes={columnKey:U.oneOfType([U.string,U.number]),minWidth:U.number,maxWidth:U.number,width:U.number,touchEnabled:U.bool,isRTL:U.bool,onColumnResizeEnd:U.func.isRequired,height:U.number};var G_e=["cell"],q_e=["cell"],Y_e=["height","width","columnIndex","isVisible","columnKey","isHeaderOrFooter","touchEnabled"];function Sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ad(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X_e(e){var t=K_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function K_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(e){return!1}}var zb=function(e){Jt(r,e);var t=X_e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"shouldComponentUpdate",value:function(i){if(i.isScrolling&&this.props.rowIndex===i.rowIndex&&this.props.isVisible===i.isVisible)return!1;if(!i.pureRendering)return!0;var a=this.props,o=a.cell,s=Ci(a,G_e),u=i.cell,c=Ci(i,q_e);return!hu(s,c)||!o||!u||o.type!==u.type||!hu(o.props,u.props)}},{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,s=i.isVisible,u=i.isHeaderOrFooter,c=i.touchEnabled,d=Ci(i,Y_e),h={height:a,width:o};this.props.isRTL?h.right=d.left:h.left=d.left;var p=sr(ke({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":d.lastChild,"fixedDataTableCellLayout/alignRight":d.align==="right","fixedDataTableCellLayout/alignCenter":d.align==="center","public/fixedDataTableCell/alignRight":d.align==="right","public/fixedDataTableCell/highlighted":d.highlighted,"public/fixedDataTableCell/main":!0}),d.className),m={touchEnabled:c,isVisible:s,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,cellGroupType:this.props.cellGroupType,columnIndex:this.props.columnIndex,columnKey:this.props.columnKey,height:this.props.height,width:this.props.width,left:this.props.left};d.rowIndex>=0&&(m.rowIndex=d.rowIndex);var v;this.props.isHeader&&(this.props.onColumnResizeEnd||this.props.onColumnReorderEnd)?this.props.onColumnResizeEnd&&this.props.onColumnReorderEnd?(m=ad(ad({},m),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),v=k.createElement(vu,Ot({},m,{onColumnReorderEnd:this.props.onColumnReorderEnd}),k.createElement(uh,{onColumnResizeEnd:this.props.onColumnResizeEnd},d.cell))):this.props.onColumnReorderEnd?v=k.createElement(vu,Ot({},m,{onColumnReorderEnd:this.props.onColumnReorderEnd}),d.cell):(m=ad(ad({},m),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),v=k.createElement(uh,Ot({},m,{onColumnResizeEnd:this.props.onColumnResizeEnd}),d.cell)):k.isValidElement(d.cell)?v=k.cloneElement(d.cell,m):typeof d.cell=="function"?v=d.cell(m):v=k.createElement(lh,m,d.cell);var g=u?"columnheader":"gridcell";return k.createElement("div",{className:p,style:h,role:g},v)}}]),r}(k.Component);ue(zb,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:U.bool,align:U.oneOf(["left","center","right"]),className:U.string,highlighted:U.bool,width:U.number.isRequired,minWidth:U.number,maxWidth:U.number,height:U.number.isRequired,cell:U.oneOfType([U.string,U.element,U.func]),columnKey:U.oneOfType([U.string,U.number]),rowIndex:U.number.isRequired,left:U.number,pureRendering:U.bool,touchEnabled:U.bool,isHeaderOrFooter:U.bool,isRTL:U.bool,isVisible:U.bool.isRequired,onColumnResizeEnd:U.func,onColumnReorderEnd:U.func,isHeader:U.bool,cellGroupType:U.oneOf([De.FIXED,De.FIXED_RIGHT,De.SCROLLABLE])});ue(zb,"defaultProps",{align:"left",highlighted:!1});var Z_e=dR(zb),Q_e=["offsetLeft"];function gR(e){var t=J_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function J_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(e){return!1}}var vR=function(e){Jt(r,e);var t=gR(r);function r(n){var i;return xt(this,r),i=t.call(this,n),ue(pe(i),"_renderCell",function(a,o,s,u,c,d,h){var p=s.cellClassName,m=s.pureRendering||!1,v=s.isReorderable?i.props.onColumnReorderEndCallback:null,g=s.isResizable?i.props.onColumnResizeEndCallback:null;return k.createElement(Z_e,{columnIndex:s.index,isScrolling:i.props.isScrolling,isHeaderOrFooter:i.props.isHeaderOrFooter,isHeader:i.props.isHeader,isGroupHeader:i.props.isGroupHeader,align:s.align,className:p,height:o,key:d,maxWidth:s.maxWidth,minWidth:s.minWidth,touchEnabled:i.props.touchEnabled,onColumnResizeEnd:g,onColumnReorderEnd:v,rowIndex:a,columnKey:s.columnKey,width:s.width,left:c,cell:u,pureRendering:m,isRTL:i.props.isRTL,cellGroupType:i.props.cellGroupType,isVisible:i.props.isVisible&&h})}),i._initialRender=!0,i}return Tt(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var i=this.props,a=i.columns,o=new Array(a.length),s=Cd(a),u=0,c=0,d=a.length;c<d;c++){var h=a[c].props,p=a[c].template,m=h.allowCellsRecycling,v=u-i.left<=i.width&&u-i.left+h.width>=0;if(!m||v){var g=h.columnKey||"cell_"+c;o[c]=this._renderCell(i.rowIndex,i.rowHeight,h,p,u,g,v)}u+=h.width}var b={height:i.height,position:"absolute",width:s,zIndex:i.zIndex};return is(b,-1*i.left,0,this._initialRender,this.props.isRTL),k.createElement("div",{className:ke("fixedDataTableCellGroupLayout/cellGroup"),style:b},o)}}]),r}(k.Component);ue(vR,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:U.array.isRequired,isScrolling:U.bool,left:U.number,height:U.number.isRequired,cellGroupWrapperHeight:U.number,rowHeight:U.number.isRequired,rowIndex:U.number.isRequired,width:U.number.isRequired,zIndex:U.number.isRequired,touchEnabled:U.bool,isHeaderOrFooter:U.bool,isRTL:U.bool,onColumnResizeEndCallback:U.func,onColumnReorderEndCallback:U.func,isHeader:U.bool,isVisible:U.bool.isRequired});var $l=function(e){Jt(r,e);var t=gR(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"shouldComponentUpdate",value:function(i){return!(i.isScrolling&&this.props.rowIndex===i.rowIndex&&this.props.left===i.left&&this.props.offsetLeft===i.offsetLeft&&this.props.isVisible===i.isVisible)}},{key:"render",value:function(){var i=this.props,a=i.offsetLeft,o=Ci(i,Q_e),s={height:o.cellGroupWrapperHeight||o.height,width:o.width};return this.props.isRTL?s.right=a:s.left=a,k.createElement("div",{style:s,className:ke("fixedDataTableCellGroupLayout/cellGroupWrapper")},k.createElement(vR,o))}}]),r}(k.Component);ue($l,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:U.bool,height:U.number.isRequired,offsetLeft:U.number,left:U.number,zIndex:U.number.isRequired});ue($l,"defaultProps",{left:0,offsetLeft:0});var ewe=["offsetTop","zIndex"];function yR(e){var t=twe();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function twe(){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}}var rwe=1,bR=function(e){Jt(r,e);var t=yR(r);function r(){var n;xt(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(pe(n),"mouseLeaveIndex",null),ue(pe(n),"_getRowExpanded",function(s){if(n.props.rowExpanded){var u={rowIndex:n.props.index,height:s,width:n.props.width},c;return k.isValidElement(n.props.rowExpanded)?c=k.cloneElement(n.props.rowExpanded,u):typeof n.props.rowExpanded=="function"&&(c=n.props.rowExpanded(u)),c}}),ue(pe(n),"_renderColumnsLeftShadow",function(s){var u=ke({"fixedDataTableRowLayout/fixedColumnsDivider":s>0,"fixedDataTableRowLayout/columnsShadow":n.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":s>0,"public/fixedDataTableRow/columnsShadow":n.props.scrollLeft>0}),c=n.props.cellGroupWrapperHeight?n.props.cellGroupWrapperHeight-rwe:n.props.height,d={left:s,height:c};return n.props.isRTL&&(d.right=s,d.left="auto"),k.createElement("div",{className:u,style:d})}),ue(pe(n),"_renderFixedRightColumnsShadow",function(s){var u=ke("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),c={height:n.props.height,left:s};return n.props.isRTL&&(c.right=s,c.left="auto"),k.createElement("div",{className:u,style:c})}),ue(pe(n),"_renderColumnsRightShadow",function(s){if(Math.ceil(n.props.scrollLeft+n.props.width)<Math.floor(s)){var u=ke("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),c={height:n.props.height};return k.createElement("div",{className:u,style:c})}}),ue(pe(n),"_onClick",function(s){n.props.onClick(s,n.props.index)}),ue(pe(n),"_onContextMenu",function(s){n.props.onContextMenu(s,n.props.index)}),ue(pe(n),"_onDoubleClick",function(s){n.props.onDoubleClick(s,n.props.index)}),ue(pe(n),"_onMouseUp",function(s){n.props.onMouseUp(s,n.props.index)}),ue(pe(n),"_onMouseDown",function(s){n.props.onMouseDown(s,n.props.index)}),ue(pe(n),"_onMouseEnter",function(s){n.mouseLeaveIndex=n.props.index,n.props.onMouseEnter&&n.props.onMouseEnter(s,n.props.index)}),ue(pe(n),"_onMouseLeave",function(s){n.mouseLeaveIndex===null&&(n.mouseLeaveIndex=n.props.index),n.props.onMouseLeave(s,n.mouseLeaveIndex),n.mouseLeaveIndex=null}),ue(pe(n),"_onTouchStart",function(s){n.props.onTouchStart(s,n.props.index)}),ue(pe(n),"_onTouchEnd",function(s){n.props.onTouchEnd(s,n.props.index)}),ue(pe(n),"_onTouchMove",function(s){n.props.onTouchMove(s,n.props.index)}),n}return Tt(r,[{key:"shouldComponentUpdate",value:function(i){return i.isScrolling?i.visible?this.props.visible!==i.visible?!0:!(this.props.index===i.index&&this.props.scrollLeft===i.scrollLeft):!1:!0}},{key:"render",value:function(){var i=this.props.subRowHeight||0,a={width:this.props.width,height:this.props.height+i},o=ke({"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}),s=Cd(this.props.fixedColumns),u=k.createElement($l,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:s,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:De.FIXED,isVisible:this.props.visible}),c=this._renderColumnsLeftShadow(s),d=Cd(this.props.fixedRightColumns),h=this.props.showScrollbarY?this.props.scrollbarYWidth:0,p=k.createElement($l,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-d-h,width:d,zIndex:2,columns:this.props.fixedRightColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:De.FIXED_RIGHT,isVisible:this.props.visible}),m=d?this._renderFixedRightColumnsShadow(this.props.width-d-h-5):null,v=k.createElement($l,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:s,width:this.props.width-s-d-h,zIndex:0,columns:this.props.scrollableColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:De.SCROLLABLE,isVisible:this.props.visible}),g=Cd(this.props.scrollableColumns),b=this._renderColumnsRightShadow(s+g),C=this._getRowExpanded(i),x={height:i,top:this.props.height,width:this.props.width},E=null;if(this.props.showScrollbarY){var T={width:h,height:this.props.height,left:this.props.isRTL?2:this.props.width-h-2};E=k.createElement("div",{style:T,className:ke("public/fixedDataTable/scrollbarSpacer")})}return k.createElement("div",Ot({className:sr(o,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:a}),k.createElement("div",{className:ke("fixedDataTableRowLayout/body")},u,v,c,p,m,E),C&&k.createElement("div",{className:ke("fixedDataTableRowLayout/rowExpanded"),style:x},C),b)}}]),r}(k.Component);ue(bR,"propTypes",{isScrolling:U.bool,fixedColumns:U.array.isRequired,fixedRightColumns:U.array.isRequired,height:U.number.isRequired,cellGroupWrapperHeight:U.number,subRowHeight:U.number,rowExpanded:U.oneOfType([U.element,U.func]),index:U.number.isRequired,scrollableColumns:U.array.isRequired,scrollLeft:U.number.isRequired,width:U.number.isRequired,onClick:U.func,onContextMenu:U.func,onDoubleClick:U.func,onColumnReorderEndCallback:U.func,touchEnabled:U.bool,isHeaderOrFooter:U.bool,ariaRowIndex:U.number,isRTL:U.bool,attributes:U.object,onColumnResizeEndCallback:U.func,isHeader:U.bool,isGroupHeader:U.bool,scrollToX:U.func});var Bl=function(e){Jt(r,e);var t=yR(r);function r(n){var i;return xt(this,r),i=t.call(this,n),i._initialRender=!0,i}return Tt(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(i){return!i.isScrolling||this.props.visible!==i.visible?!0:i.visible?!(i.isScrolling&&this.props.index===i.index&&this.props.offsetTop===i.offsetTop&&this.props.scrollLeft===i.scrollLeft):!1}},{key:"render",value:function(){var i=this.props,a=i.offsetTop,o=i.zIndex,s=Ci(i,ewe),u={width:this.props.width,height:this.props.height,zIndex:o||0,visibility:s.visible?"visible":"hidden"};return is(u,0,a,this._initialRender,this.props.isRTL),k.createElement("div",{style:u,className:ke("fixedDataTableRowLayout/rowWrapper")},k.createElement(bR,s))}}]),r}(k.Component);ue(Bl,"propTypes",{isScrolling:U.bool,height:U.number.isRequired,zIndex:U.number,offsetTop:U.number.isRequired,visible:U.bool.isRequired,width:U.number.isRequired});function nwe(e){var t=iwe();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function iwe(){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}}var _R=function(e){Jt(r,e);var t=nwe(r);function r(n){var i;return xt(this,r),i=t.call(this,n),i._staticRowArray=[],i._initialRender=!0,i}return Tt(r,[{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 i=this.props,a=i.offsetTop,o=i.rowOffsets,s=i.scrollTop,u=i.isScrolling,c=i.rowsToRender;c=c||[],u?this._staticRowArray.length=Math.max(this._staticRowArray.length,c.length):this._staticRowArray.length=c.length;for(var d=1e6,h=a-s%d,p=0;p<this._staticRowArray.length;p++){var m,v=Y1e(c[p],(m=this._staticRowArray[p])===null||m===void 0?void 0:m.props.index);if(Fl(v)||!Ra(v,0,this.props.rowSettings.rowsCount)){this._staticRowArray[p]=null;continue}var g=o[v]-Math.floor(s/d)*d;this._staticRowArray[p]=this.renderRow({rowIndex:v,key:p,rowOffsetTop:g})}var b={position:"relative"};is(b,0,h,!1);var C=this._staticRowArray.slice().sort(this.rowSortComparator);return k.createElement("div",{style:b},C)}},{key:"renderRow",value:function(i){var a=i.rowIndex,o=i.key,s=i.rowOffsetTop,u=this.props,c=u.rowClassNameGetter||ur,d={};d.height=this.props.rowSettings.rowHeightGetter(a),d.subRowHeight=this.props.rowSettings.subRowHeightGetter(a),d.offsetTop=s,d.key=u.rowKeyGetter?u.rowKeyGetter(a):o,d.attributes=u.rowSettings.rowAttributesGetter&&u.rowSettings.rowAttributesGetter(a);var h=a===u.rowSettings.rowsCount-1&&u.showLastRowBorder;d.className=sr(c(a),ke("public/fixedDataTable/bodyRow"),ke({"fixedDataTableLayout/hasBottomBorder":h,"public/fixedDataTable/hasBottomBorder":h}));var p=Ra(a,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return k.createElement(Bl,Ot({key:o,index:a,ariaRowIndex:a+u.ariaRowIndexOffset,isScrolling:u.isScrolling,width:u.width,rowExpanded:u.rowExpanded,scrollLeft:Math.round(u.scrollLeft),fixedColumns:u.fixedColumns,fixedRightColumns:u.fixedRightColumns,scrollableColumns:u.scrollableColumns,onClick:u.onRowClick,onContextMenu:u.onRowContextMenu,onDoubleClick:u.onRowDoubleClick,onMouseDown:u.onRowMouseDown,onMouseUp:u.onRowMouseUp,onMouseEnter:u.onRowMouseEnter,onMouseLeave:u.onRowMouseLeave,onTouchStart:u.onRowTouchStart,onTouchEnd:u.onRowTouchEnd,onTouchMove:u.onRowTouchMove,showScrollbarY:u.showScrollbarY,scrollbarYWidth:u.scrollbarYWidth,isRTL:u.isRTL,visible:p},d))}},{key:"rowSortComparator",value:function(i,a){var o,s;return((o=i==null?void 0:i.props.ariaRowIndex)!==null&&o!==void 0?o:-1)-((s=a==null?void 0:a.props.ariaRowIndex)!==null&&s!==void 0?s:-1)}}]),r}(k.Component);ue(_R,"propTypes",{ariaRowIndexOffset:U.number,isScrolling:U.bool,firstViewportRowIndex:U.number.isRequired,endViewportRowIndex:U.number.isRequired,fixedColumns:U.array.isRequired,fixedRightColumns:U.array.isRequired,height:U.number.isRequired,offsetTop:U.number.isRequired,onRowClick:U.func,onRowContextMenu:U.func,onRowDoubleClick:U.func,onRowMouseDown:U.func,onRowMouseUp:U.func,onRowMouseEnter:U.func,onRowMouseLeave:U.func,onRowTouchStart:U.func,onRowTouchEnd:U.func,onRowTouchMove:U.func,rowClassNameGetter:U.func,rowExpanded:U.oneOfType([U.element,U.func]),rowOffsets:U.object.isRequired,rowKeyGetter:U.func,rowSettings:U.shape({rowAttributesGetter:U.func,rowHeightGetter:U.func,rowsCount:U.number.isRequired,subRowHeightGetter:U.func}),rowsToRender:U.array.isRequired,scrollLeft:U.number.isRequired,scrollTop:U.number.isRequired,scrollableColumns:U.array.isRequired,showLastRowBorder:U.bool,showScrollbarY:U.bool,width:U.number.isRequired,isRTL:U.bool});var Ex=1.6,awe=1.6,owe=325,dl=100,swe=function(){function e(t,r,n,i,a){xt(this,e),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 r!="function"&&(r=r?ur.thatReturnsTrue:ur.thatReturnsFalse),typeof n!="function"&&(n=n?ur.thatReturnsTrue:ur.thatReturnsFalse),this._handleScrollX=r,this._handleScrollY=n,this._preventDefault=i,this._stopPropagation=a,this._onTouchScrollCallback=t,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 Tt(e,[{key:"onTouchStart",value:function(r){this._lastTouchX=r.touches[0].pageX,this._lastTouchY=r.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,dl),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchEnd",value:function(r){clearInterval(this._trackerId),this._trackerId=null,Qi(this._startAutoScroll),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchCancel",value:function(r){clearInterval(this._trackerId),this._trackerId=null,this._stopPropagation&&r.stopPropagation()}},{key:"onTouchMove",value:function(r){this._preventDefault&&r.preventDefault();var n=r.touches[0].pageX,i=r.touches[0].pageY;this._deltaX=Ex*(this._lastTouchX-n),this._deltaY=Ex*(this._lastTouchY-i);var a=this._handleScrollX(this._deltaX,this._deltaY),o=this._handleScrollY(this._deltaY,this._deltaX);if(!(!a&&!o)){a?this._lastTouchX=n:this._deltaX=0,o?this._lastTouchY=i:this._deltaY=0,r.defaultPrevented||r.preventDefault();var s=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&r.stopPropagation(),s=!0),s===!0&&this._dragAnimationId===null&&(this._dragAnimationId=Qi(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 r=Date.now(),n=r-this._lastFrameTimestamp,i=this._velocityX,a=this._velocityY,o=.8;n<dl&&(o*=n/dl),i===0&&a===0&&(o=1),this._velocityX=o*(dl*this._accumulatedDeltaX/(1+n)),o<1&&(this._velocityX+=(1-o)*i),this._velocityY=o*(dl*this._accumulatedDeltaY/(1+n)),o<1&&(this._velocityY+=(1-o)*a),this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=r}},{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 r=Date.now()-this._autoScrollTimestamp,n=awe*Math.exp(-r/owe),i=n*this._velocityX,a=n*this._velocityY;(Math.abs(i)<=5||!this._handleScrollX(i,a))&&(i=0),(Math.abs(a)<=5||!this._handleScrollY(a,i))&&(a=0),(i!==0||a!==0)&&(this._onTouchScrollCallback(i,a),Qi(this._autoScroll))}}]),e}();function lwe(e){var t=uwe();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function uwe(){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}}var od=25,jb=function(e){Jt(r,e);var t=lwe(r);function r(n){var i;return xt(this,r),i=t.call(this,n),ue(pe(i),"_shouldHandleTouchX",function(a){return i.props.touchScrollEnabled&&i._shouldHandleWheelX(a)}),ue(pe(i),"_shouldHandleTouchY",function(a){return i.props.touchScrollEnabled&&i._shouldHandleWheelY(a)}),ue(pe(i),"_shouldHandleWheelX",function(a){var o=i.props,s=o.maxScrollX,u=o.scrollFlags,c=o.scrollX,d=u.overflowX;return d==="hidden"||(a=Math.round(a),a===0)?!1:a<0&&c>0||a>=0&&c<s}),ue(pe(i),"_shouldHandleWheelY",function(a){var o=i.props,s=o.maxScrollY,u=o.scrollFlags,c=o.scrollY,d=u.overflowY;return d==="hidden"||a===0||(a=Math.round(a),a===0)?!1:a<0&&c>0||a>=0&&c<s}),ue(pe(i),"_reportContentHeight",function(){var a=Bo(i.props),o=a.contentHeight,s=i.props.onContentHeightChange;o!==i._contentHeight&&s&&s(o),i._contentHeight=o}),ue(pe(i),"_renderRows",function(a,o,s,u,c,d){var h=$a(i.props),p=h.scrollEnabledY,m=i.props;return k.createElement(_R,{ariaRowIndexOffset:d,isScrolling:m.scrolling,fixedColumns:o,fixedRightColumns:s,firstViewportRowIndex:m.firstRowIndex,endViewportRowIndex:m.endRowIndex,height:c,offsetTop:a,onRowClick:m.onRowClick,onRowContextMenu:m.onRowContextMenu,onRowDoubleClick:m.onRowDoubleClick,onRowMouseUp:m.onRowMouseUp,onRowMouseDown:m.onRowMouseDown,onRowMouseEnter:m.onRowMouseEnter,onRowMouseLeave:m.onRowMouseLeave,onRowTouchStart:m.touchScrollEnabled?m.onRowTouchStart:null,onRowTouchEnd:m.touchScrollEnabled?m.onRowTouchEnd:null,onRowTouchMove:m.touchScrollEnabled?m.onRowTouchMove:null,rowClassNameGetter:m.rowClassNameGetter,rowExpanded:m.rowExpanded,rowKeyGetter:m.rowKeyGetter,rowSettings:m.rowSettings,scrollLeft:m.scrollX,scrollTop:m.scrollY,scrollableColumns:u,showLastRowBorder:!0,width:m.tableSize.width,rowsToRender:m.rows,rowOffsets:m.rowOffsets,showScrollbarY:p,scrollbarYWidth:m.scrollbarYWidth,isRTL:m.isRTL})}),ue(pe(i),"_onRef",function(a){i._divRef=a,i._wheelHandler&&(i.props.stopReactWheelPropagation?i._wheelHandler.setRoot(a):i._wheelHandler.setRoot(null))}),ue(pe(i),"_onScroll",function(a,o){var s=i.props,u=s.maxScrollX,c=s.maxScrollY,d=s.onHorizontalScroll,h=s.onVerticalScroll,p=s.scrollActions,m=s.scrollFlags,v=s.scrollX,g=s.scrollY,b=m.overflowX,C=m.overflowY,x=v,E=g;if(Math.abs(o)>Math.abs(a)&&C!=="hidden")E+=o,E=E<0?0:E,E=E>c?c:E,(!h||h(E))&&p.scrollToY(E);else if(a&&b!=="hidden"){x+=a,x=x<0?0:x,x=x>u?u:x;var T=Math.round(x);(!d||d(T))&&p.scrollToX(T)}}),ue(pe(i),"_scrollTo",function(a,o){i.props.scrollActions.scrollToX(a),i.props.scrollActions.scrollToY(o)}),ue(pe(i),"_didScroll",function(a){var o=i.props,s=o.onScrollStart,u=o.scrollX,c=o.scrollY,d=o.onHorizontalScroll,h=o.onVerticalScroll,p=o.tableSize.ownerHeight,m=o.scrolling,v=a.endRowIndex,g=a.firstRowIndex,b=a.scrollX,C=a.scrollY,x=a.tableSize.ownerHeight,E=a.scrolling,T=p!==x&&!(gx(p)&&gx(x)),A=u!==b,R=c!==C;!T&&!A&&!R||(!E&&m&&s&&s(b,C,g,v),A&&d&&d(u),R&&h&&h(c),i._didScrollStop())}),ue(pe(i),"_didScrollStopSync",function(){var a=i.props,o=a.endRowIndex,s=a.firstRowIndex,u=a.onScrollEnd,c=a.scrollActions,d=a.scrollX,h=a.scrollY,p=a.scrolling;p&&(c.stopScroll(),u&&u(d,h,s,o))}),i._didScrollStop=y1e(i._didScrollStopSync,200,pe(i)),i._onKeyDown=i._onKeyDown.bind(pe(i)),i._setupHandlers(),i}return Tt(r,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new UP(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new swe(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(i){var a=Bo(this.props),o=a.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(i.key){case"PageDown":this._onScroll(0,o),i.preventDefault();break;case"PageUp":this._onScroll(0,o*-1),i.preventDefault();break}if(this.props.keyboardScrollEnabled)switch(i.key){case"ArrowDown":this._onScroll(0,od),i.preventDefault();break;case"ArrowUp":this._onScroll(0,od*-1),i.preventDefault();break;case"ArrowRight":this._onScroll(od,0),i.preventDefault();break;case"ArrowLeft":this._onScroll(od*-1,0),i.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(i){return!hu(this.props,i)}},{key:"componentDidMount",value:function(){this._setupHandlers(),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"componentDidUpdate",value:function(i){this._didScroll(i),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"_reportScrollBarsUpdates",value:function(){var i=Bo(this.props),a=i.bodyOffsetTop,o=i.scrollbarXOffsetTop,s=i.visibleRowsHeight,u=this.props,c=u.tableSize.width,d=u.scrollContentHeight,h=u.scrollY,p=u.scrollX,m={viewportHeight:s,contentHeight:d,scrollbarYOffsetTop:a,scrollY:h,viewportWidth:c,contentWidth:c+this.props.maxScrollX,scrollbarXOffsetTop:o,scrollX:p,scrollTo:this._scrollTo,scrollToX:this.props.scrollActions.scrollToX,scrollToY:this.props.scrollActions.scrollToY};hu(this.previousScrollState,m)||(this.props.onScrollBarsUpdate(m),this.previousScrollState=m)}},{key:"render",value:function(){var i=_1e(this.props),a=i.ariaGroupHeaderIndex,o=i.ariaHeaderIndex,s=i.ariaFooterIndex,u=i.ariaRowCount,c=i.ariaRowIndexOffset,d=G1e(this.props),h=d.fixedColumnGroups,p=d.fixedColumns,m=d.fixedRightColumnGroups,v=d.fixedRightColumns,g=d.scrollableColumnGroups,b=d.scrollableColumns,C=Bo(this.props),x=C.bodyHeight,E=C.bodyOffsetTop,T=C.componentHeight,A=C.footOffsetTop,R=C.scrollbarXOffsetTop,N=C.visibleRowsHeight,I=this.props,H=I.className,G=I.elementHeights,Y=I.gridAttributesGetter,O=I.maxScrollY,F=I.onColumnReorderEndCallback,X=I.onColumnResizeEndCallback,W=I.scrollContentHeight,V=I.scrollX,z=I.scrollY,q=I.scrolling,ee=I.tableSize,j=I.touchScrollEnabled,K=I.scrollbarYWidth,ie=ee.ownerHeight,ne=ee.width,re=G.cellGroupWrapperHeight,oe=G.footerHeight,se=G.groupHeaderHeight,de=G.headerHeight,ce=$a(this.props),ge=ce.scrollEnabledX,Se=ce.scrollEnabledY,ye=Y&&Y(),J;se>0&&(J=k.createElement(Bl,{key:"group_header",ariaRowIndex:a,isHeaderOrFooter:!0,isScrolling:q,className:sr(ke("fixedDataTableLayout/header"),ke("public/fixedDataTable/header")),width:ne,height:se,cellGroupWrapperHeight:re,index:0,zIndex:1,offsetTop:0,scrollLeft:V,fixedColumns:h,fixedRightColumns:m,scrollableColumns:g,visible:!0,touchEnabled:j,onColumnResizeEndCallback:X,onColumnReorderEndCallback:F,showScrollbarY:Se,scrollbarYWidth:K,isRTL:this.props.isRTL,isHeader:!0,isGroupHeader:!0}));var _e;Se&&(_e=this.props.scrollbarY);var ve;ge&&(ve=this.props.scrollbarX);var Ae=null;oe&&(Ae=k.createElement(Bl,{key:"footer",ariaRowIndex:s,isHeaderOrFooter:!0,isScrolling:q,className:sr(ke("fixedDataTableLayout/footer"),ke("public/fixedDataTable/footer")),width:ne,height:oe,index:-1,zIndex:1,offsetTop:A,visible:!0,fixedColumns:p.footer,fixedRightColumns:v.footer,scrollableColumns:b.footer,scrollLeft:V,showScrollbarY:Se,scrollbarYWidth:K,isRTL:this.props.isRTL}));var Ie=this._renderRows(E,p.cell,v.cell,b.cell,x,c),Ue=k.createElement(Bl,{key:"header",ariaRowIndex:o,isHeaderOrFooter:!0,isScrolling:q,className:sr(ke("fixedDataTableLayout/header"),ke("public/fixedDataTable/header")),width:ne,height:de,cellGroupWrapperHeight:re,index:-1,zIndex:1,offsetTop:se,scrollLeft:V,visible:!0,fixedColumns:p.header,fixedRightColumns:v.header,scrollableColumns:b.header,touchEnabled:j,onColumnResizeEndCallback:X,onColumnReorderEndCallback:F,showScrollbarY:Se,scrollbarYWidth:K,isRTL:this.props.isRTL,isHeader:!0}),Ve;z&&(Ve=k.createElement("div",{className:sr(ke("fixedDataTableLayout/topShadow"),ke("public/fixedDataTable/topShadow")),style:{top:E}}));var ir=ie&&ie<T&&W>N,At;(ir||z<O)&&(At=k.createElement("div",{className:sr(ke("fixedDataTableLayout/bottomShadow"),ke("public/fixedDataTable/bottomShadow")),style:{top:A}}));var Wt=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(Wt=0);var Nt=H;return this.props.isRTL&&(Nt=sr(Nt,"fixedDataTable_isRTL")),k.createElement("div",Ot({className:sr(Nt,ke("fixedDataTableLayout/main"),ke("public/fixedDataTable/main")),role:"grid","aria-rowcount":u},ye,{tabIndex:Wt,onKeyDown:this._onKeyDown,onTouchStart:j?this._touchHandler.onTouchStart:null,onTouchEnd:j?this._touchHandler.onTouchEnd:null,onTouchCancel:j?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:T,width:ne}}),k.createElement("div",{className:ke("fixedDataTableLayout/rowsContainer"),style:{height:R,width:ne}},J,Ue,Ie,Ae,Ve,At),_e,ve)}}]),r}(k.Component);ue(jb,"propTypes",{width:U.number.isRequired,height:U.number,className:U.string,maxHeight:U.number,ownerHeight:U.number,overflowX:U.oneOf(["hidden","auto"]),overflowY:U.oneOf(["hidden","auto"]),touchScrollEnabled:U.bool,keyboardScrollEnabled:U.bool,keyboardPageEnabled:U.bool,scrollbarX:U.node,scrollbarXHeight:U.number,scrollbarY:U.node,scrollbarYWidth:U.number,onScrollBarsUpdate:U.func,defaultScrollbars:U.bool,showScrollbarX:U.bool,showScrollbarY:U.bool,onHorizontalScroll:U.func,onVerticalScroll:U.func,rowsCount:U.number.isRequired,rowHeight:U.number.isRequired,rowHeightGetter:U.func,subRowHeight:U.number,subRowHeightGetter:U.func,rowExpanded:U.oneOfType([U.element,U.func]),rowClassNameGetter:U.func,rowKeyGetter:U.func,groupHeaderHeight:U.number,headerHeight:U.number.isRequired,cellGroupWrapperHeight:U.number,footerHeight:U.number,scrollLeft:U.number,scrollToColumn:U.number,scrollTop:U.number,isVerticalScrollExact:U.bool,scrollToRow:U.number,onScrollStart:U.func,onScrollEnd:U.func,stopReactWheelPropagation:U.bool,stopScrollDefaultHandling:U.bool,stopScrollPropagation:U.bool,onContentHeightChange:U.func,onRowClick:U.func,onRowContextMenu:U.func,onRowDoubleClick:U.func,onRowMouseDown:U.func,onRowMouseUp:U.func,onRowMouseEnter:U.func,onRowMouseLeave:U.func,onRowTouchStart:U.func,onRowTouchEnd:U.func,onRowTouchMove:U.func,onColumnResizeEndCallback:U.func,onColumnReorderEndCallback:U.func,isRTL:U.bool,bufferRowCount:U.number,elementHeights:U.shape({cellGroupWrapperHeight:U.number,footerHeight:U.number,groupHeaderHeight:U.number,headerHeight:U.number}),gridAttributesGetter:U.func,rowAttributesGetter:U.func});ue(jb,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var cwe={get:function(){return Kbe({reducer:n1e,devTools:process.env.NODE_ENV!=="production",middleware:function(r){return r({immutableCheck:!1,serializableCheck:!1})}})}},dwe=bb,hwe=Qu,fwe=kf,pwe=wn,mwe=Zu,gwe=cu.exports,vwe=If,ywe=yP,bwe="[object Map]",_we="[object Set]",wwe=Object.prototype,Cwe=wwe.hasOwnProperty;function xwe(e){if(e==null)return!0;if(mwe(e)&&(pwe(e)||typeof e=="string"||typeof e.splice=="function"||gwe(e)||ywe(e)||fwe(e)))return!e.length;var t=hwe(e);if(t==bwe||t==_we)return!e.size;if(vwe(e))return!dwe(e).length;for(var r in e)if(Cwe.call(e,r))return!1;return!0}var Mx=xwe;function wR(e){var t=Twe();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function Twe(){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}}var Swe=function(e){Jt(r,e);var t=wR(r);function r(){var n;xt(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(pe(n),"state",{}),ue(pe(n),"_onScrollBarsUpdate",function(s){n.setState(s)}),ue(pe(n),"_onVerticalScroll",function(s){n.state.scrollToY!==void 0&&n.state.scrollToY(s)}),ue(pe(n),"_onHorizontalScroll",function(s){n.state.scrollToX!==void 0&&n.state.scrollToX(s)}),n}return Tt(r,[{key:"render",value:function(){var i=!Mx(this.state)&&k.createElement(Kr,{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}),a=!Mx(this.state)&&k.createElement(CR,{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 k.cloneElement(this.props.children,{onScrollBarsUpdate:this._onScrollBarsUpdate,scrollbarX:a,scrollbarY:i})}}]),r}(k.Component),CR=function(e){Jt(r,e);var t=wR(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){var i=this.props,a=i.offset,o=i.size,s={height:Kr.SIZE,width:o},u={height:Kr.SIZE,overflow:"hidden",width:o,top:a};return k.createElement("div",{className:sr(ke("public/fixedDataTable/horizontalScrollbar")),style:s},k.createElement("div",{style:u},k.createElement(Kr,Ot({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),r}(k.PureComponent);ue(CR,"propTypes",{contentSize:U.number.isRequired,offset:U.number.isRequired,onScroll:U.func.isRequired,position:U.number.isRequired,size:U.number.isRequired,isRTL:U.bool});var Ewe=function(){return ki([function(t){return Bo(t).componentHeight},function(t){return t.elementHeights.groupHeaderHeight},function(t){return t.scrollX},function(t){return t.maxScrollX},function(t){return Ju(t).availableScrollWidth},function(t){return t.isRTL}],function(t,r,n,i,a,o){return{tableHeight:t,groupHeaderHeight:r,scrollX:n,maxScrollX:i,availableScrollWidth:a,isRTL:o}})},Mwe=Xa,Awe=wn,Pwe=la,Rwe="[object String]";function Owe(e){return typeof e=="string"||!Awe(e)&&Pwe(e)&&Mwe(e)==Rwe}var kwe=Owe;function Dwe(e){return function(t){return t==null?void 0:t[e]}}var Nwe=Dwe,Iwe=Nwe,Lwe=Iwe("length"),Fwe=Lwe,$we="\\ud800-\\udfff",Bwe="\\u0300-\\u036f",Hwe="\\ufe20-\\ufe2f",zwe="\\u20d0-\\u20ff",jwe=Bwe+Hwe+zwe,Wwe="\\ufe0e\\ufe0f",Uwe="\\u200d",Vwe=RegExp("["+Uwe+$we+jwe+Wwe+"]");function Gwe(e){return Vwe.test(e)}var qwe=Gwe,xR="\\ud800-\\udfff",Ywe="\\u0300-\\u036f",Xwe="\\ufe20-\\ufe2f",Kwe="\\u20d0-\\u20ff",Zwe=Ywe+Xwe+Kwe,Qwe="\\ufe0e\\ufe0f",Jwe="["+xR+"]",sv="["+Zwe+"]",lv="\\ud83c[\\udffb-\\udfff]",e2e="(?:"+sv+"|"+lv+")",TR="[^"+xR+"]",SR="(?:\\ud83c[\\udde6-\\uddff]){2}",ER="[\\ud800-\\udbff][\\udc00-\\udfff]",t2e="\\u200d",MR=e2e+"?",AR="["+Qwe+"]?",r2e="(?:"+t2e+"(?:"+[TR,SR,ER].join("|")+")"+AR+MR+")*",n2e=AR+MR+r2e,i2e="(?:"+[TR+sv+"?",sv,SR,ER,Jwe].join("|")+")",Ax=RegExp(lv+"(?="+lv+")|"+i2e+n2e,"g");function a2e(e){for(var t=Ax.lastIndex=0;Ax.test(e);)++t;return t}var o2e=a2e,s2e=Fwe,l2e=qwe,u2e=o2e;function c2e(e){return l2e(e)?u2e(e):s2e(e)}var d2e=c2e,h2e=bb,f2e=Qu,p2e=Zu,m2e=kwe,g2e=d2e,v2e="[object Map]",y2e="[object Set]";function b2e(e){if(e==null)return 0;if(p2e(e))return m2e(e)?g2e(e):e.length;var t=f2e(e);return t==v2e||t==y2e?e.size:h2e(e).length}var Bm=b2e,_2e=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},sd=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},w2e=function(){return ki([function(t){return Ju(t)},function(t,r){return r}],function(t,r){var n=t.fixedColumns,i=t.fixedRightColumns,a=t.scrollableColumns,o=t.fixedColumnGroups,s=t.fixedRightColumnGroups,u=t.scrollableColumnGroups,c=function(z){var q=n.length+a.length+i.length;if(z<0||z>=q||!Number.isInteger(z))throw"columnIndex must be an integer between 0 and ".concat(q-1," inclusive")},d=function(z){var q=o.length+u.length+s.length;if(z<0||z>=q||!Number.isInteger(z))throw"columnGroupIndex must be an integer between 0 and ".concat(q-1," inclusive")},h=function(z){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(q&&Fl(z))&&z!==De.FIXED&&z!==De.FIXED_RIGHT&&z!==De.SCROLLABLE)throw"Invalid CellGroupType"},p=function(z){return z<n.length?De.FIXED:z<n.length+a.length?De.SCROLLABLE:De.FIXED_RIGHT},m=function(z){return z<o.length?De.FIXED:z<o.length+u.length?De.SCROLLABLE:De.FIXED_RIGHT},v=function(z,q){if(q===De.FIXED)return z;if(q===De.SCROLLABLE)return z-n.length;if(q===De.FIXED_RIGHT)return z-n.length-a.length},g=function(z,q){if(q===De.FIXED)return z;if(q===De.SCROLLABLE)return z-o.length;if(q===De.FIXED_RIGHT)return z-o.length-u.length},b=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:De.SCROLLABLE;h(z);var q=I(z);return q.reduce(function(ee,j){return ee+j.width},0)},C=function(z,q){var ee=I(q),j=v(z,q);return ee[j]},x=function(z){c(z);var q=p(z),ee=C(z,q);return _2e(ee)},E=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(h(z,!0),Fl(z))return n.length+a.length+i.length;var q=I(z);return q.length},T=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(h(z,!0),Fl(z))return o.length+u.length+s.length;var q=H(z);return q.length},A=function(z,q){var ee=H(q),j=g(z,q);return sd(ee[j])},R=function(z){d(z);var q=m(z);return A(z,q)},N=function(z){c(z);var q=p(z),ee=C(z,q).groupIdx,j=G(ee);return sd(j)},I=function(z){if(z===De.FIXED)return n;if(z===De.FIXED_RIGHT)return i;if(z===De.SCROLLABLE)return a;throw"Invalid cell group type"},H=function(z){if(z===De.FIXED)return o;if(z===De.FIXED_RIGHT)return s;if(z===De.SCROLLABLE)return u;throw"Invalid cell group type"},G=function(z){var q=Bm(o),ee=Bm(u),j=Bm(s);if(Ra(z,0,q))return o[z];if(Ra(z,q,q+ee))return u[z-q];if(Ra(z,q+ee,q+ee+j))return s[z-q-ee];throw"Invalid absolute column group index"},Y=function(z,q){if(z.length===0)return{element:null,distanceFromOffset:null};for(var ee=0,j=0;j!==z.length&&!(ee>q);)ee+=z[j].width,j++;return j=Bf(j-1,0,z.length-1),{element:z[j],distanceFromOffset:z[j].width-(ee-q)}},O=function(z){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.SCROLLABLE;h(q);var ee=I(q),j=Y(ee,z),K=j.element,ie=j.distanceFromOffset;return K&&(K=sd(K)),{column:K,distanceFromOffset:ie}},F=function(z){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.SCROLLABLE;h(q);var ee=H(q),j=Y(ee,z),K=j.element,ie=j.distanceFromOffset;return K&&(K=sd(K)),{columnGroup:K,distanceFromOffset:ie}},X=r.scrollToX,W=r.updateRowHeights;return{getColumn:x,getColumnGroup:R,getColumnGroupByChild:N,getColumnAtOffset:O,getColumnGroupAtOffset:F,getCellGroupWidth:b,getColumnCount:E,getColumnGroupCount:T,scrollToX:X,updateRowHeights:W}})};function Px(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Px(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var C2e=function(){var t=[],r=null,n=function(s){return t=t.concat(s),function(){var u=t.indexOf(s);t.splice(u,1)}},i=Ewe(),a=w2e();return{getValue:ki([function(o){return i(o)},function(o,s){return a(o,s)}],function(o,s){return r=Hm(Hm(Hm({},o),s),{},{subscribe:n}),r}),notify:function(){t.forEach(function(s){return s(r)})}}};function Rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ld(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x2e(e){var t=T2e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function T2e(){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}}var PR=function(e){Jt(r,e);var t=x2e(r);function r(n){var i;return xt(this,r),i=t.call(this,n),i._initialize(n),i.fixedDataTableApi=C2e(),i.previousApiValue=null,i}return Tt(r,[{key:"componentDidMount",value:function(){this._initialize(this.props)}},{key:"componentWillUnmount",value:function(){this._cleanup()}},{key:"componentDidUpdate",value:function(){this.notifyApiValueChanges()}},{key:"_initialize",value:function(i){var a=this;if(!this.reduxStore){this.reduxStore=cwe.get(),this.reduxStore.dispatch(i1e(i)),this.scrollActions=c1e(this.reduxStore,function(){return a.props}),this.unsubscribe=this.reduxStore.subscribe(this.onStoreUpdate.bind(this));var o={boundState:r.getBoundState(this.reduxStore),reduxStore:this.reduxStore,props:i};this.state?this.setState(o):this.state=o}}},{key:"_cleanup",value:function(){this.reduxStore&&(this.unsubscribe(),this.unsubscribe=null,this.reduxStore=null)}},{key:"getApi",value:function(){var i=this;return this.fixedDataTableApi.getValue(ld(ld({},this.props),this.reduxStore.getState()),ld(ld({},this.scrollActions),{},{updateRowHeights:function(o){return gP({updateRowHeights:u1e},i.reduxStore.dispatch).updateRowHeights(o)}}))}},{key:"notifyApiValueChanges",value:function(){var i=this.getApi();this.previousApiValue!==i&&(this.fixedDataTableApi.notify(),this.previousApiValue=i)}},{key:"render",value:function(){var i=this.getApi(),a=k.createElement(jb,Ot({},this.props,this.state.boundState,{scrollActions:this.scrollActions}));return this.props.defaultScrollbars?k.createElement(os.Provider,{value:i},k.createElement(Swe,this.props,a)):k.createElement(os.Provider,{value:i},a)}},{key:"onStoreUpdate",value:function(){var i=r.getBoundState(this.reduxStore);this.state.boundState.propsRevision===i.propsRevision&&this.setState({boundState:i})}}],[{key:"getDerivedStateFromProps",value:function(i,a){return qn(i.height!==void 0||i.maxHeight!==void 0,"You must set either a height or a maxHeight"),i===a.props?null:(a.reduxStore.dispatch(a1e({newProps:i,oldProps:a.props})),{boundState:r.getBoundState(a.reduxStore),props:i})}},{key:"getBoundState",value:function(i){var a=i.getState(),o=Cl(a,["columnGroupElements","columnElements","elementHeights","elementTemplates","firstRowIndex","endRowIndex","maxScrollX","maxScrollY","propsRevision","rows","rowOffsets","rowSettings","scrollContentHeight","scrollFlags","scrollX","scrollY","scrolling","scrollJumpedX","scrollJumpedY","tableSize"]);return o}}]),r}(k.Component);ue(PR,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:Kr.SIZE,scrollbarYWidth:Kr.SIZE});var S2e=dR(PR);function E2e(e){var t=M2e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function M2e(){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}}var Qf=function(e){Jt(r,e);var t=E2e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),r}(k.Component);ue(Qf,"__TableColumn__",!0);ue(Qf,"propTypes",{align:U.oneOf(["left","center","right"]),fixed:U.bool,fixedRight:U.bool,header:U.oneOfType([U.node,U.func]),cell:U.oneOfType([U.node,U.func]),footer:U.oneOfType([U.node,U.func]),columnKey:U.oneOfType([U.string,U.number]),width:U.number.isRequired,minWidth:U.number,maxWidth:U.number,flexGrow:U.number,isResizable:U.bool,isReorderable:U.bool,allowCellsRecycling:U.bool,pureRendering:U.bool,cellClassName:U.string});ue(Qf,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});function A2e(e){var t=P2e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function P2e(){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}}var Wb=function(e){Jt(r,e);var t=A2e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),r}(k.Component);ue(Wb,"__TableColumnGroup__",!0);ue(Wb,"propTypes",{align:U.oneOf(["left","center","right"]),fixed:U.bool,header:U.oneOfType([U.node,U.func])});ue(Wb,"defaultProps",{fixed:!1});const R2e=()=>typeof window=="undefined"||typeof document=="undefined"||!document.body||typeof window.innerWidth!="number"||typeof document.body.clientWidth!="number"?0:Math.max(0,window.innerWidth-document.body.clientWidth),O2e="#f4f4f8",k2e="#edeef1",D2e="#e3e5ea",N2e="#f9f9fb",I2e="#ffcb05",L2e="#1faff3",F2e="#e5e5e5",$2e="#5b6372",B2e="#3a4356",H2e="#3c3c42",z2e="#a3a3a3",j2e="#d0d3db",W2e="_headerCell_2qf2w_16",U2e="_noSort_2qf2w_29",V2e="_standard_2qf2w_29",G2e="_caret_2qf2w_33",q2e="_headerLabel_2qf2w_38",Y2e="_icon_2qf2w_43",X2e="_numberIcon_2qf2w_50",K2e="_dateIcon_2qf2w_54",Z2e="_textIcon_2qf2w_58",Q2e="_booleanIcon_2qf2w_62",J2e="_sortIcon_2qf2w_66",eCe="_sortAscending_2qf2w_74",tCe="_sortDescending_2qf2w_78",Fi={athensGray:O2e,athensGrayDark:k2e,athensGrayDark2:D2e,athensGrayLight:N2e,defaultBrandColor:I2e,dodgerBlue:L2e,mercury:F2e,shuttleGrayDark:$2e,oxfordBlue:B2e,darkModeDefaultBackground:H2e,indicatorGrey:z2e,secondaryButtonHover:j2e,headerCell:W2e,noSort:U2e,standard:V2e,caret:G2e,headerLabel:q2e,icon:Y2e,numberIcon:X2e,dateIcon:K2e,textIcon:Z2e,booleanIcon:Q2e,sortIcon:J2e,sortAscending:eCe,sortDescending:tCe},rCe="_icon_t30x8_1",nCe="_numberIcon_t30x8_11",iCe="_dateIcon_t30x8_15",aCe="_textIcon_t30x8_19",oCe="_booleanIcon_t30x8_23",hl={icon:rCe,numberIcon:nCe,dateIcon:iCe,textIcon:aCe,booleanIcon:oCe},sCe=({columnType:e})=>w.jsx("div",{className:uu(hl.icon,{[hl.numberIcon]:D.isNumber(e),[hl.dateIcon]:D.isDatetime(e),[hl.textIcon]:D.isText(e),[hl.booleanIcon]:D.isBoolean(e)})}),lCe=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:i,sortIcon:a="standard"})=>w.jsxs("div",{className:Fi.headerCell,onClick:()=>{t(e)},children:[i&&w.jsx(sCe,{columnType:e.type}),w.jsx("div",{className:Fi.headerLabel,children:n}),w.jsx("div",{className:uu(Fi.sortIcon,{[Fi.caret]:a==="caret",[Fi.standard]:a==="standard",[Fi.noSort]:!r||e.direction===0,[Fi.sortAscending]:r&&e.direction===1,[Fi.sortDescending]:r&&e.direction===-1})})]}),uCe=26,cCe=26,Ox=8,RR=36,OR=29,kR=24,uv=350,dCe=126,hCe=38,fCe=55,pCe=(e,t,r,n)=>{const a=document.createElement("canvas").getContext("2d");if(!a)return[];a.font=`13px ${n||"Open Sans"}`;const o=e.columns.map(h=>a.measureText(h.name).width+RR+(t?OR:0)),s=a.measureText("0").width,u=e.columns.map(h=>({type:D.simpleColumnType(h.type),index:h.index})),{rows:c}=e,d=u.map(h=>{const p=c.reduce((m,v)=>{var x;const g=v[h.index].displayValue,b=(x=r[h.index])!=null&&x.isHtml?mCe(g):g,C=h.type==="number"?v[h.index].displayValue.length*s:a.measureText(b).width;return Math.max(m,C)},0);return kR+p});return o.map((h,p)=>{var m;return(m=r[p])!=null&&m.width?r[p].width:Math.ceil(Math.max(dCe,Math.min(uv,Math.max(h,d[p]))))})};function mCe(e){const t=document.createElement("div");return t.innerHTML=e,DR(t)}function DR(e){let t,r,n,i;for(r="",t=0;t<e.childNodes.length;t++)i=e.childNodes[t],n=null,i.nodeType===1?n=DR(i):i.nodeType===3&&(n=i.nodeValue),n&&(r+=n);return r}const kx=e=>e%2===1,Dx=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:i})=>{var c,d,h,p,m,v,g,b,C,x,E,T,A,R,N,I,H,G;let a=r.chart.textColor;const o=r.typography.fontFamily;let s=r.chart.backgroundColor;const u=w.getSlightlyDifferentColor(s);return i?(d=(c=n==null?void 0:n.header)==null?void 0:c.color)!=null&&d.enabled&&(s=((p=(h=n==null?void 0:n.header)==null?void 0:h.color)==null?void 0:p.backgroundColor)||u,a=((v=(m=n==null?void 0:n.header)==null?void 0:m.color)==null?void 0:v.textColor)||a):((b=(g=n==null?void 0:n.columns)==null?void 0:g.alternatingColor)!=null&&b.enabled&&kx(e)&&(s=((x=(C=n==null?void 0:n.columns)==null?void 0:C.alternatingColor)==null?void 0:x.backgroundColor)||u,a=((T=(E=n==null?void 0:n.columns)==null?void 0:E.alternatingColor)==null?void 0:T.textColor)||a),(R=(A=n==null?void 0:n.rows)==null?void 0:A.alternatingColor)!=null&&R.enabled&&kx(t)&&(s=((I=(N=n==null?void 0:n.rows)==null?void 0:N.alternatingColor)==null?void 0:I.backgroundColor)||u,a=((G=(H=n==null?void 0:n.rows)==null?void 0:H.alternatingColor)==null?void 0:G.textColor)||a)),{color:a,backgroundColor:s,fontFamily:o}},gCe="#f4f4f8",vCe="#edeef1",yCe="#e3e5ea",bCe="#f9f9fb",_Ce="#ffcb05",wCe="#1faff3",CCe="#e5e5e5",xCe="#5b6372",TCe="#3a4356",SCe="#3c3c42",ECe="#a3a3a3",MCe="#d0d3db",ACe="_tableWrapper_1ode4_16",PCe="_table_1ode4_16",RCe="_tableHeader_1ode4_78",OCe="_tableCell_1ode4_88",kCe="_tableCellContent_1ode4_99",DCe="_headerColor_1ode4_105",NCe="_rowColor_1ode4_109",Tl={athensGray:gCe,athensGrayDark:vCe,athensGrayDark2:yCe,athensGrayLight:bCe,defaultBrandColor:_Ce,dodgerBlue:wCe,mercury:CCe,shuttleGrayDark:xCe,oxfordBlue:TCe,darkModeDefaultBackground:SCe,indicatorGrey:ECe,secondaryButtonHover:MCe,tableWrapper:ACe,table:PCe,tableHeader:RCe,tableCell:OCe,tableCellContent:kCe,headerColor:DCe,rowColor:NCe},ICe=e=>D.isNumber(e)?"right":"left",LCe=new RegExp(`<\\/?[\\w\\s="/.':;#-\\/\\?]+>`),Nx=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:i})=>{var h,p,m,v,g,b,C,x;const{app:a}=ut(),o=(v=(m=(p=(h=a==null?void 0:a.settings)==null?void 0:h.chartConfig)==null?void 0:p.tabular)==null?void 0:m.htmlContent)==null?void 0:v.enabled,s=(x=(C=(b=(g=a==null?void 0:a.settings)==null?void 0:g.chartConfig)==null?void 0:b.tabular)==null?void 0:C.htmlContent)==null?void 0:x.sanitizeContents,{isHtmlValue:u,value:c}=k.useMemo(()=>{let E=i;o&&typeof E=="undefined"&&(E=LCe.test(e));const T=E&&s?w.purify.sanitize(e):e;return{isHtmlValue:E,value:T}},[o,i,e,s]),d=c.length>n;return w.jsx("div",{className:Tl.tableCellContent,style:{maxWidth:`${t-r}px`},children:u?w.jsx("div",{dangerouslySetInnerHTML:{__html:c}}):d?w.jsx(Sf,{title:c,children:w.jsx("div",{children:c})}):w.jsx("div",{children:c})})},FCe=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:i,themeSettings:a,onSortUpdate:o})=>{var x,E,T;const s=i&&i.showFieldTypeIcon!==void 0?i.showFieldTypeIcon:!0,u=RR+(s?OR:0),c=(i==null?void 0:i.paddingVertical)||Ox,d=(i==null?void 0:i.paddingHorizontal)||Ox,h=((x=i==null?void 0:i.columns)==null?void 0:x.width)==="auto"?(n-d*2-R2e())/t.columns.length:void 0,p=k.useMemo(()=>t.columns.map(A=>({isHtml:"isHtml"in A&&!!A.isHtml,width:h})),[t.columns,h]),[m,v]=k.useState(((E=document.fonts)==null?void 0:E.status)==="loaded"),g=(T=a.typography)==null?void 0:T.fontFamily,b=k.useMemo(()=>pCe(e,s,p,g),[e,s,p,g,m]);k.useEffect(()=>{var A;(A=document.fonts)==null||A.ready.then(()=>{v(!0)}).catch(R=>{console.warn("Failed to observe font loading",R)})},[]);const C=k.useMemo(()=>e.columns.map((A,R)=>{const N=b[R],I=t.columns[R],H=Dx({isHeaderCell:!0,themeSettings:a,customStyles:i});return N?w.jsx(Qf,{maxWidth:uv,minWidth:uv,allowCellsRecycling:!0,width:N,header:w.jsx(lh,{className:uu(Tl.tableHeader),style:H,children:w.jsx(lCe,{column:A,onClick:o,isSelected:!!Math.abs(A.direction),showFieldTypeIcon:s,sortIcon:(i==null?void 0:i.sortIcon)||"standard",children:w.jsx(Nx,{displayValue:w.getDataOptionTitle(I),width:N,padding:u,ellipsizedLength:hCe})})}),cell:O=>{var F=O,{rowIndex:G}=F,Y=xe(F,["rowIndex"]);return w.jsx(lh,B(M({className:uu(Tl.tableCell),style:Dx({colIndex:R,rowIndex:G,themeSettings:a,customStyles:i})},Y),{children:w.jsx(Nx,{displayValue:e.rows[G][R].displayValue,width:N,padding:kR,ellipsizedLength:fCe,isHtml:"isHtml"in I?I.isHtml:void 0})}))},align:ICe(A.type)},`col${R}`):null}),[e,b,a,i,o,s,t,u]);return k.useMemo(()=>w.jsx("div",{className:Tl.tableWrapper,style:{padding:`${c}px ${d}px`},children:w.jsx(S2e,{className:Tl.table,rowHeight:(i==null?void 0:i.rowHeight)||cCe,rowsCount:e.rows.length,width:n-d*2,height:r-c*2,headerHeight:(i==null?void 0:i.headerHeight)||uCe,children:C})}),[C,i,e,r,d,c,n])},$Ce=(e,t)=>{if(!e.columns.some(o=>D.isNumber(o.type)))return e;const r=e.columns,i=e.rows.map(o=>o.map((s,u)=>{const c=r[u].type,d=w.getCompleteNumberFormatConfig(t.columns[u].numberFormatConfig);if(D.isNumber(c)){const h=w.createCompareValue(s.displayValue,c);return{displayValue:w.applyFormatPlainText(d,h.value),compareValue:h}}else return s}));return{columns:r,rows:i}},BCe="_component_1rw9b_1",HCe={component:BCe},zCe=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:i,width:a=400,height:o=500})=>{const s=k.useRef(null),u=k.useRef(e),c=k.useMemo(()=>$Ce(e,t),[e,t]);k.useLayoutEffect(()=>{u.current=e},[e]);const d=k.useMemo(()=>M({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return w.jsx("div",{className:HCe.component,ref:s,children:w.jsx(FCe,{dataTable:c,dataOptions:t,onSortUpdate:n,height:o,width:a,customStyles:d,themeSettings:i})})},jCe=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}}),WCe=e=>({paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:e.header,rows:e.rows,columns:e.columns}),NR=25,IR=10,LR=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n,onDataReady:i})=>{const{rowsPerPage:a=NR,width:o,height:s}=r,{t:u}=w.useTranslation(),{themeSettings:c}=gt(),[d,h]=k.useState(0),{filters:p,relations:m}=k.useMemo(()=>D.getFilterListAndRelationsJaql(n),[n]),[v,g]=k.useState(1),b=k.useRef(null),{dataOptions:C,mapping:x}=k.useMemo(()=>rie(Wu(t)),[t]),E=k.useMemo(()=>WCe(r),[r]),[T,A]=k.useState(C),[R,N]=k.useState(x),[I,H]=k.useState(e),[G,Y,O]=zoe({dataSet:I,dataOptions:T,dataColumnNamesMapping:R,filters:p,filterRelations:m,count:a*IR,offset:d}),F=k.useMemo(()=>{if(G&&i){const ee=i(G);if(!BA(ee))throw new D.TranslatableError("errors.incorrectOnDataReadyHandler");return ee}return G},[G]),X=joe({data:F,innerDataOptions:Y,dataColumnNamesMapping:O,needToAggregate:!D.isDataSource(I)});k.useEffect(()=>{A(C),N(x),H(e),g(1),h(0)},[e,C,x]);const W=k.useCallback(ee=>{if(!G)return;Math.floor(G.rows.length/a)===ee&&h(G.rows.length),g(ee)},[G,a]),V=k.useCallback(ee=>{g(1),h(0),T&&A(zne(T,ee))},[T]),z=k.useMemo(()=>{if(!X||D.isDataSource(I))return X;const ee=X.columns.find(j=>j.direction!==0);return ee?w.orderBy(X,[ee]):X},[X,I]),q=k.useMemo(()=>z?{columns:z.columns,rows:z.rows.slice((v-1)*a,v*a)}:void 0,[z,v,a]);return Y?w.jsx(Ih,{defaultSize:Lh("table"),size:{width:o,height:s},children:ee=>{if(!X||!q)return w.jsx(Wi,{});if(w.isDataTableEmpty(X))return w.jsx(uy,{iconType:"table"});const j=Math.ceil(X.rows.length/a);return w.jsxs("div",{className:"csdk-table-root",style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:c.chart.backgroundColor},"data-testid":"table-root",role:"region","aria-label":u("chart.table.label"),children:[w.jsx(zCe,{dataTable:q,dataOptions:Y,designOptions:E,themeSettings:c,width:ee.width,height:ee.height-32,onSortUpdate:V}),w.jsx(hS,{ref:b,page:v,count:j,onChange:(ie,ne)=>W(ne),sx:jCe(c)})]})}}):null},UCe=k.createContext(null),zm={didCatch:!1,error:null};class cv extends k.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=zm}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(zm)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&VCe(t.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(zm)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=t;if(a){const u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(u);else if(n)s=k.createElement(n,u);else if(i===null||k.isValidElement(i))s=i;else throw o}return k.createElement(UCe.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function VCe(){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 FR=k.createContext(void 0),GCe=({children:e})=>{const[t,r]=k.useState([]),[n,i]=k.useState([]),a=()=>r([]),o=()=>i([]);return w.jsx(FR.Provider,{value:{errors:t,warnings:n,clearError:a,clearWarning:o,setErrors:r,setWarnings:i},children:e})},$R=()=>{const e=k.useContext(FR);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 Is(e,t,r){const n=hf(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(a=>!D.isEqual(n[a],e[a])):!D.isEqual(n,e))?!0:r?r(e,n):!1}const qCe="BE#081586",YCe="BE#733473",XCe=e=>{const[t,r]=k.useState(0),{setErrors:n,errors:i}=$R(),a=Is(e,["dataOptions","filters"]);if(k.useEffect(()=>{a&&i.length>0&&(r(t+1),n([]))},[e.dataOptions,e.filters]),!D.isDataSource(e.dataSet))throw new D.TranslatableError("errors.missingDataSource");const o=D.cloneDeep(e.dataOptions),s=w.extractTrendMeasures(o);o.value.push(...s);const u=w.extractForecastMeasures(o);o.value.push(...u);const c=k.useCallback(({error:p})=>{console.debug("Unexpected error occurred when rendering advanced chart:",p);const m=D.cloneDeep(o),v=h(p.toString());return m.value=m.value.filter(g=>{const b="column"in g?g.column.name:g.name;return!("column"in g&&"type"in g.column&&g.column.type==="calculatedmeasure"&&[w.TREND_PREFIX,w.FORECAST_PREFIX].some(E=>b.includes(E))&&v.some(E=>E.includes(b)))}),w.jsx(cv,{fallbackRender:d,onError:g=>{const b=h(g.toString());n(C=>[...new Set([...C,...b])])},children:w.jsx(bd,B(M({},e),{dataOptions:m}))},`errorboundary_${t}`)},[e,i]),d=k.useCallback(({error:p})=>(console.debug("Error occurred when rendering fallback chart:",p),p.toString().includes(qCe)?w.jsx(bd,M({},e)):w.jsx(Zv,{error:i[0]})),[e,i]),h=p=>{if(p.includes(YCe)){const m=/Error: BE#733473 More than 1 Function failed, aggregated failures:\s*/;if(m.test(p))return p.replace(m,"").split(";").map(g=>g.trim()).filter(Boolean)}return[p.trim()]};return w.jsx(cv,{fallbackRender:c,onError:p=>{const m=h(p.toString());n(v=>[...new Set([...v,...m])])},children:w.jsx(bd,B(M({},e),{dataOptions:o}))},`errorboundary_${t}`)},BR=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},HR=Mu({componentName:"Chart",shouldSkipSisenseContextWaiting:BR,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{var t;if(KCe(e))return w.jsx(LR,M({},e));if(ZCe(e))return w.jsx(XCe,M({},e));if(zR(e))return w.jsx(bd,M({},e));throw new D.TranslatableError("errors.chartInvalidProps",{chartType:(t=e.chartType)!=null?t:"unknown"})});function KCe(e){return e.chartType==="table"&&"columns"in e.dataOptions}function zR(e){return e.chartType!=="table"}function ZCe(e){return!zR(e)||!D.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)}function Ub(e,{onLocalStateChange:t,syncCompareFn:r=D.isEqual}={}){const[n,i]=k.useState(e),a=k.useRef(e);k.useEffect(()=>{r(a.current,e)||i(e),a.current=e},[e,r]);const o=k.useCallback(s=>{i(u=>{const c=D.isFunction(s)?s(u):s;return t==null||t(c),c})},[t]);return[n,o]}function QCe(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?D.baseIsEqual(e,t,void 0,r):!!n}const JCe=e=>{const t=jR(e);return t.config.disabled=!e.config.disabled,t},jR=e=>{const t=D.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function exe(e,t,r){const n=M({guid:t},r?{backgroundFilter:r}:{});return D.members(e,[],n)}function Jf(e){if(!D.isMembersFilter(e))throw new D.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return exe(t,r,n)}function Vb(e){return"members"in e&&e.members.length===0}function Zr(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function ss(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)=>!QCe(r,t[n],WR))}function Gb(e,t){return Zr(e.attribute,t.attribute)}function WR(e,t){const r=w.flow(txe,rxe);return D.isEqual(r(e),r(t))}function txe(e){return B(M({},e),{name:""})}function rxe(e){return B(M({},e),{config:B(M({},e.config),{guid:""})})}function nxe(e,t,r,n){if(r===void 0&&n===void 0)return!1;if([r,n].some(a=>a===void 0))return!0;function i(a,o){const s=a,u=a,c=o,d=o;return a===void 0&&o===void 0?!0:[a,o].some(h=>h===void 0)||s.operator!==c.operator?!1:u.instanceid&&d.instanceid?!ss(e==null?void 0:e.filter(h=>h.config.guid===u.instanceid),t==null?void 0:t.filter(h=>h.config.guid===d.instanceid)):i(s.left,c.left)&&i(s.right,c.right)||i(s.left,c.right)&&i(s.right,c.left)}return!i(r,n)}const UR="sdkHookInit",ixe=(e,t,r,n)=>{if(!r)return;RS(UR,{packageName:t,packageVersion:"2.28.0",hookName:e},r.httpClient).finally(n)};function axe(e){const{tracking:t,app:r}=ut(),{trackEvent:n}=ly(),i=k.useRef(!1);k.useEffect(()=>{if(!(!t||!r)&&!i.current){const a={packageName:t.packageName||"sdk-ui",packageVersion:"2.28.0",hookName:e};n(UR,a,!t.enabled).finally(()=>i.current=!0)}},[t,e,n,r])}const qb=e=>t=>(...r)=>(axe(e),t(...r));function Yb({enabled:e},t){const r=k.useRef(!1);return k.useCallback((n,i=!1)=>{const a=e===!1||!n,o=r.current;return r.current=a,!a&&(o||t||i)},[e,t])}function ep(e,t){switch(t.type){case"loading":return oxe(e);case"success":return sxe(t.data);case"error":return lxe(t.error)}}function oxe(e){return e.status==="loading"?e:B(M({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function sxe(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function lxe(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}function Ix(e,t){return ep(e,t)}const uxe=qb("useExecutePivotQuery")(Xb);function Xb(e){const t=dxe(e),r=Yb(e,t),[n,i]=k.useReducer(Ix,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:a,app:o}=ut();return k.useEffect(()=>{if(a||i({type:"error",error:new D.TranslatableError("errors.executeQueryNoSisenseContext")}),r(o)){i({type:"loading"});const{dataSource:s,rows:u,columns:c,values:d,grandTotals:h,filters:p,highlights:m,count:v,offset:g,onBeforeQuery:b}=e,{filters:C,relations:x}=D.getFilterListAndRelationsJaql(p);D.executePivotQuery({dataSource:s,rows:u,columns:c,values:d,grandTotals:h,filters:C,filterRelations:x,highlights:m,count:v,offset:g},o,{onBeforeQuery:b}).then(E=>{i({type:"success",data:E})}).catch(E=>{i({type:"error",error:E})})}},[o,a,e,r]),n.data&&t?Ix(n,{type:"loading"}):n}const cxe=["dataSource","rows","columns","values","grandTotals","count","offset","onBeforeQuery"];function dxe(e){return Is(e,cxe,(t,r)=>{const{filters:n}=D.getFilterListAndRelationsJaql(r.filters),{filters:i}=D.getFilterListAndRelationsJaql(t.filters);return ss(n,i)||ss(r.highlights,t.highlights)})}var jm=function(){return D.root.Date.now()},hxe="Expected a function",fxe=Math.max,pxe=Math.min;function VR(e,t,r){var n,i,a,o,s,u,c=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(hxe);t=w.toNumber(t)||0,D.isObject(r)&&(d=!!r.leading,h="maxWait"in r,a=h?fxe(w.toNumber(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function m(R){var N=n,I=i;return n=i=void 0,c=R,o=e.apply(I,N),o}function v(R){return c=R,s=setTimeout(C,t),d?m(R):o}function g(R){var N=R-u,I=R-c,H=t-N;return h?pxe(H,a-I):H}function b(R){var N=R-u,I=R-c;return u===void 0||N>=t||N<0||h&&I>=a}function C(){var R=jm();if(b(R))return x(R);s=setTimeout(C,g(R))}function x(R){return s=void 0,p&&n?m(R):(n=i=void 0,o)}function E(){s!==void 0&&clearTimeout(s),c=0,n=u=i=s=void 0}function T(){return s===void 0?o:x(jm())}function A(){var R=jm(),N=b(R);if(n=arguments,i=this,u=R,N){if(s===void 0)return v(u);if(h)return clearTimeout(s),s=setTimeout(C,t),m(u)}return s===void 0&&(s=setTimeout(C,t)),o}return A.cancel=E,A.flush=T,A}function GR(e,t){const[r,n]=k.useState(e),i=k.useMemo(()=>VR(a=>{n(a)},t),[t]);return k.useEffect(()=>{i(e)},[e,i]),k.useEffect(()=>()=>{i.cancel()},[i]),r}function qR(e){return ff(e)?{direction:e}:e}function mxe(e){return typeof e=="object"&&e!==null&&"direction"in e}function Lx(e,t){return{valuesIndex:e.field-(t.rows||[]).length-(t.columns||[]).length,columnsMembersPath:Object.values(e.measurePath||{})}}function gxe({type:e,settings:t,sortDetails:r},n){return e==="simple"?r.field>=(n.rows||[]).length?[{rowIndex:0,sort:{direction:D.getSortType(t[0].direction),by:Lx(r,n)}}]:[{rowIndex:r.field,sort:{direction:D.getSortType(t[0].direction)}}]:t.reduce((i,a,o)=>{var h;const s=(h=n.rows)==null?void 0:h[o],u=(s==null?void 0:s.sortType)&&qR(s==null?void 0:s.sortType),c={direction:D.getSortType(a.direction),by:Lx(r,n)};return!a.selected&&D.isEqual(u==null?void 0:u.by,c.by)&&i.push({rowIndex:o,sort:null}),a.selected&&i.push({rowIndex:o,sort:c}),i},[])}const vxe=200,Fx=e=>M(M({attribute:w.translateColumnToAttribute(e),includeSubTotals:e.includeSubTotals||!1},e.sortType&&{sort:qR(e.sortType)}),e.name&&{name:e.name}),yxe=e=>{var t;return{measure:w.translateColumnToMeasure(e),totalsCalculation:e.totalsCalculation,dataBars:e.dataBars||!1,shouldRequestMinMax:((t=e.color)==null?void 0:t.type)==="range"}},Kb=e=>{const{rows:t=[],columns:r=[],values:n=[],grandTotals:i}=e,a=t.flatMap(Fx),o=r.flatMap(Fx),s=n.flatMap(yxe);return{rows:a,columns:o,values:s,grandTotals:i}},bxe=({dataSet:e,dataOptionsInternal:t,filters:r,highlights:n})=>{const[i,a]=k.useState(),{rows:o,columns:s,values:u,grandTotals:c}=k.useMemo(()=>Kb(t),[t]),d=k.useCallback(m=>{a(v=>D.isEqual(v,m)?v:m)},[a]),h=GR(k.useMemo(()=>({dataSource:e,rows:o,columns:s,values:u,grandTotals:c,filters:r,highlights:n,onBeforeQuery:d}),[e,o,s,u,c,r,n,d]),vxe),{error:p}=Xb(h);return{jaql:i,error:p}},YR=e=>w.jsx("svg",B(M({width:"24",height:"24",viewBox:"0 0 24 24"},e),{children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",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"})}));var ec=(e=>(e.HIGHLIGHT="highlight",e.FILTER="filter",e))(ec||{});function XR(e){return function(t){t=D.toString(t);var r=_A(t)?xg(t):void 0,n=r?r[0]:t.charAt(0),i=r?bA(r,1).join(""):t.slice(1);return n[e]()+i}}var KR=XR("toUpperCase");function _xe(e){return KR(D.toString(e).toLowerCase())}function wxe(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;)r=t(r,e[i],i,e);return r}function Cxe(e){return function(t){return e==null?void 0:e[t]}}var xxe={À:"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"},Txe=Cxe(xxe),Sxe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Exe="\\u0300-\\u036f",Mxe="\\ufe20-\\ufe2f",Axe="\\u20d0-\\u20ff",Pxe=Exe+Mxe+Axe,Rxe="["+Pxe+"]",Oxe=RegExp(Rxe,"g");function kxe(e){return e=D.toString(e),e&&e.replace(Sxe,Txe).replace(Oxe,"")}var Dxe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Nxe(e){return e.match(Dxe)||[]}var Ixe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Lxe(e){return Ixe.test(e)}var ZR="\\ud800-\\udfff",Fxe="\\u0300-\\u036f",$xe="\\ufe20-\\ufe2f",Bxe="\\u20d0-\\u20ff",Hxe=Fxe+$xe+Bxe,QR="\\u2700-\\u27bf",JR="a-z\\xdf-\\xf6\\xf8-\\xff",zxe="\\xac\\xb1\\xd7\\xf7",jxe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wxe="\\u2000-\\u206f",Uxe=" \\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",eO="A-Z\\xc0-\\xd6\\xd8-\\xde",Vxe="\\ufe0e\\ufe0f",tO=zxe+jxe+Wxe+Uxe,rO="['’]",$x="["+tO+"]",Gxe="["+Hxe+"]",nO="\\d+",qxe="["+QR+"]",iO="["+JR+"]",aO="[^"+ZR+tO+nO+QR+JR+eO+"]",Yxe="\\ud83c[\\udffb-\\udfff]",Xxe="(?:"+Gxe+"|"+Yxe+")",Kxe="[^"+ZR+"]",oO="(?:\\ud83c[\\udde6-\\uddff]){2}",sO="[\\ud800-\\udbff][\\udc00-\\udfff]",No="["+eO+"]",Zxe="\\u200d",Bx="(?:"+iO+"|"+aO+")",Qxe="(?:"+No+"|"+aO+")",Hx="(?:"+rO+"(?:d|ll|m|re|s|t|ve))?",zx="(?:"+rO+"(?:D|LL|M|RE|S|T|VE))?",lO=Xxe+"?",uO="["+Vxe+"]?",Jxe="(?:"+Zxe+"(?:"+[Kxe,oO,sO].join("|")+")"+uO+lO+")*",eTe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tTe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rTe=uO+lO+Jxe,nTe="(?:"+[qxe,oO,sO].join("|")+")"+rTe,iTe=RegExp([No+"?"+iO+"+"+Hx+"(?="+[$x,No,"$"].join("|")+")",Qxe+"+"+zx+"(?="+[$x,No+Bx,"$"].join("|")+")",No+"?"+Bx+"+"+Hx,No+"+"+zx,tTe,eTe,nO,nTe].join("|"),"g");function aTe(e){return e.match(iTe)||[]}function oTe(e,t,r){return e=D.toString(e),t=t,t===void 0?Lxe(e)?aTe(e):Nxe(e):e.match(t)||[]}var sTe="['’]",lTe=RegExp(sTe,"g");function uTe(e){return function(t){return wxe(oTe(kxe(t).replace(lTe,"")),e,"")}}var cO=uTe(function(e,t,r){return t=t.toLowerCase(),e+(r?_xe(t):t)});function cTe(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function dTe(e,t){return function(r,n){if(r==null)return r;if(!D.isArrayLike(r))return e(r,n);for(var i=r.length,a=-1,o=Object(r);++a<i&&n(o[a],a,o)!==!1;);return r}}var hTe=dTe(D.baseForOwn);function fTe(e,t,r,n){return hTe(e,function(i,a,o){t(n,i,r(i),o)}),n}function dO(e,t){return function(r,n){var i=D.isArray(r)?cTe:fTe,a=t?t():{};return i(r,e,D.baseIteratee(n),a)}}var tc=dO(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Zb(e){return t=>{var r,n,i,a,o;return B(M({},t),{toolbar:B(M({},t.toolbar),{menu:B(M({},(n=(r=t.toolbar)==null?void 0:r.menu)!=null?n:{}),{items:[...(o=(a=(i=t.toolbar)==null?void 0:i.menu)==null?void 0:a.items)!=null?o:[],e]})})})}}function hO(e){return t=>{var r,n;return B(M({},t),{config:B(M({},t.config),{header:Zb(e)((n=(r=t.config)==null?void 0:r.header)!=null?n:{})})})}}const pTe=Object.freeze(Object.defineProperty({__proto__:null,withHeaderMenuItem:hO,withMenuItemInHeaderConfig:Zb},Symbol.toStringTag,{value:"Module"})),jx=(e,t)=>{var r;return D.isCartesian(e)&&((r=t.category)==null?void 0:r.length)===1||D.isScatter(e)};function mTe({chartType:e,dataOptions:t,enabled:r}){const[n,i]=k.useState([]),a=k.useRef(r&&jx(e,t));k.useEffect(()=>{a.current=r&&jx(e,t)},[e,t,r]);const o=k.useMemo(()=>{if(n.length===0)return h=>B(M({},h),{series:h.series.map(p=>B(M({},p),{data:p.data.map(m=>B(M({},m),{selected:!1}))}))});if(D.isScatter(e))return h=>B(M({},h),{series:h.series.map(p=>B(M({},p),{data:p.data.map(m=>B(M({},m),{selected:!n.some(v=>{var g,b;return v.x===m.x&&v.y===m.y&&v.size===m.z&&v.breakByPoint===((g=m.custom)==null?void 0:g.maskedBreakByPoint)&&v.breakByColor===((b=m.custom)==null?void 0:b.maskedBreakByColor)})}))}))});{const h=n.reduce((p,{categoryValue:m})=>(m&&(p[`${m}`]=!0),p),{});return p=>B(M({},p),{series:p.series.map(m=>B(M({},m),{data:m.data.map(v=>{var g,b;return h[(b=(g=v.custom)==null?void 0:g.xValue)==null?void 0:b[0]]?v:B(M({},v),{selected:!0})})}))})}},[n,e]),s=k.useMemo(()=>h=>{var p;return B(M({},h),{chart:B(M({},h.chart),{events:B(M({},(p=h.chart)==null?void 0:p.events),{click:()=>{i([])}})})})},[]),u=k.useCallback(h=>(a.current&&(h=o(h),h=s(h)),h),[o,s]),c=k.useCallback(h=>{a.current&&i(h)},[]),d=k.useCallback(h=>{a.current&&i([h])},[]);return{onBeforeRender:u,onDataPointsSelected:c,onDataPointClick:d}}function gTe(e){const{enabled:t,onChange:r}=e,{t:n}=w.useTranslation(),[i,a]=k.useState(!1),o=k.useCallback(()=>{a(!0)},[]),s=k.useCallback(()=>{a(!1)},[]),u=k.useCallback(h=>{a(!1),r==null||r({type:"title/changed",payload:{title:h}})},[r]),c=k.useMemo(()=>{if(t)return{id:"rename-widget",caption:n("widgetHeader.menu.renameWidget"),onClick:o}},[t,n,o]),d=k.useMemo(()=>{if(t)return{isEditing:i,onCommit:u,onCancel:s,onEditingChange:h=>{h?o():s()}}},[t,i,u,s,o]);return{renameMenuItem:c,titleEditorConfig:d}}function fO(e){var u,c,d;const{onChange:t,headerConfig:r}=e,n=(d=(c=(u=r==null?void 0:r.title)==null?void 0:u.editing)==null?void 0:c.enabled)!=null?d:!1,{renameMenuItem:i,titleEditorConfig:a}=gTe({enabled:n,onChange:t}),o=k.useMemo(()=>!n||!i?r!=null?r:{}:Zb(i)(r!=null?r:{}),[n,r,i]);return{headerConfig:n?o:r!=null?r:{},titleEditor:a}}function ud(e){return parseInt(e,10)||0}const vTe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function yTe(e){for(const t in e)return!1;return!0}function Wx(e){return yTe(e)||e.outerHeightStyle===0&&!e.overflowing}const pO=Q.forwardRef(function(t,r){const E=t,{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=E,u=xe(E,["onChange","maxRows","minRows","style","value"]),{current:c}=Q.useRef(s!=null),d=Q.useRef(null),h=gr(r,d),p=Q.useRef(null),m=Q.useRef(null),v=Q.useCallback(()=>{const T=d.current,A=m.current;if(!T||!A)return;const N=Si(T).getComputedStyle(T);if(N.width==="0px")return{outerHeightStyle:0,overflowing:!1};A.style.width=N.width,A.value=T.value||t.placeholder||"x",A.value.slice(-1)===`
424
- `&&(A.value+=" ");const I=N.boxSizing,H=ud(N.paddingBottom)+ud(N.paddingTop),G=ud(N.borderBottomWidth)+ud(N.borderTopWidth),Y=A.scrollHeight;A.value="x";const O=A.scrollHeight;let F=Y;a&&(F=Math.max(Number(a)*O,F)),i&&(F=Math.min(Number(i)*O,F)),F=Math.max(F,O);const X=F+(I==="border-box"?H+G:0),W=Math.abs(F-Y)<=1;return{outerHeightStyle:X,overflowing:W}},[i,a,t.placeholder]),g=Kn(()=>{const T=d.current,A=v();if(!T||!A||Wx(A))return!1;const R=A.outerHeightStyle;return p.current!=null&&p.current!==R}),b=Q.useCallback(()=>{const T=d.current,A=v();if(!T||!A||Wx(A))return;const R=A.outerHeightStyle;p.current!==R&&(p.current=R,T.style.height=`${R}px`),T.style.overflow=A.overflowing?"hidden":""},[v]),C=Q.useRef(-1);Mn(()=>{const T=GT(b),A=d==null?void 0:d.current;if(!A)return;const R=Si(A);R.addEventListener("resize",T);let N;return typeof ResizeObserver!="undefined"&&(N=new ResizeObserver(()=>{g()&&(N.unobserve(A),cancelAnimationFrame(C.current),b(),C.current=requestAnimationFrame(()=>{N.observe(A)}))}),N.observe(A)),()=>{T.clear(),cancelAnimationFrame(C.current),R.removeEventListener("resize",T),N&&N.disconnect()}},[v,b,g]),Mn(()=>{b()});const x=T=>{c||b(),n&&n(T)};return fe.jsxs(Q.Fragment,{children:[fe.jsx("textarea",M({value:s,onChange:x,ref:h,rows:a,style:o},u)),fe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:B(M(M({},vTe.shadow),o),{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(pO.propTypes={className:_.string,maxRows:_.oneOfType([_.number,_.string]),minRows:_.oneOfType([_.number,_.string]),onChange:_.func,placeholder:_.string,style:_.object,value:_.oneOfType([_.arrayOf(_.string),_.number,_.string])});function bTe({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]=="undefined"&&(n[i]=r[i]),n),{})}const Qb=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qb.displayName="FormControlContext");function mO(){return Q.useContext(Qb)}function Ux(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function _Te(e,t=!1){return e&&(Ux(e.value)&&e.value!==""||t&&Ux(e.defaultValue)&&e.defaultValue!=="")}function wTe(e){return bt("MuiInputBase",e)}const dv=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Vx;const CTe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Le(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},xTe=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},TTe=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:u,hiddenLabel:c,multiline:d,readOnly:h,size:p,startAdornment:m,type:v}=e,g={root:["root",`color${Le(r)}`,n&&"disabled",i&&"error",u&&"fullWidth",o&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Le(p)}`,d&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return Dt(g,wTe,t)},STe=Ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:CTe})($t(({theme:e})=>B(M({},e.typography.body1),{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${dv.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ETe=Ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xTe})($t(({theme:e})=>{const t=e.palette.mode==="light",r=B(M({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5}),{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${dv.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${dv.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Gx=yL({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),gO=Q.forwardRef(function(t,r){var Nn;const n=Mt({props:t,name:"MuiInputBase"}),ar=n,{"aria-describedby":i,autoComplete:a,autoFocus:o,className:s,color:u,components:c={},componentsProps:d={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:m,endAdornment:v,error:g,fullWidth:b=!1,id:C,inputComponent:x="input",inputProps:E={},inputRef:T,margin:A,maxRows:R,minRows:N,multiline:I=!1,name:H,onBlur:G,onChange:Y,onClick:O,onFocus:F,onKeyDown:X,onKeyUp:W,placeholder:V,readOnly:z,renderSuffix:q,rows:ee,size:j,slotProps:K={},slots:ie={},startAdornment:ne,type:re="text",value:oe}=ar,se=xe(ar,["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"]),de=E.value!=null?E.value:oe,{current:ce}=Q.useRef(de!=null),ge=Q.useRef(),Se=Q.useCallback(Ze=>{process.env.NODE_ENV!=="production"&&Ze&&Ze.nodeName!=="INPUT"&&!Ze.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
425
- `))},[]),ye=gr(ge,T,E.ref,Se),[J,_e]=Q.useState(!1),ve=mO();process.env.NODE_ENV!=="production"&&Q.useEffect(()=>{if(ve)return ve.registerEffect()},[ve]);const Ae=bTe({props:n,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ae.focused=ve?ve.focused:J,Q.useEffect(()=>{!ve&&p&&J&&(_e(!1),G&&G())},[ve,p,J,G]);const Ie=ve&&ve.onFilled,Ue=ve&&ve.onEmpty,Ve=Q.useCallback(Ze=>{_Te(Ze)?Ie&&Ie():Ue&&Ue()},[Ie,Ue]);Mn(()=>{ce&&Ve({value:de})},[de,Ve,ce]);const ir=Ze=>{F&&F(Ze),E.onFocus&&E.onFocus(Ze),ve&&ve.onFocus?ve.onFocus(Ze):_e(!0)},At=Ze=>{G&&G(Ze),E.onBlur&&E.onBlur(Ze),ve&&ve.onBlur?ve.onBlur(Ze):_e(!1)},Wt=(Ze,...Xt)=>{if(!ce){const ua=Ze.target||ge.current;if(ua==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":xi(1));Ve({value:ua.value})}E.onChange&&E.onChange(Ze,...Xt),Y&&Y(Ze,...Xt)};Q.useEffect(()=>{Ve(ge.current)},[]);const Nt=Ze=>{ge.current&&Ze.currentTarget===Ze.target&&ge.current.focus(),O&&O(Ze)};let Re=x,st=E;I&&Re==="input"&&(ee?(process.env.NODE_ENV!=="production"&&(N||R)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),st=M({type:void 0,minRows:ee,maxRows:ee},st)):st=M({type:void 0,maxRows:R,minRows:N},st),Re=pO);const Ni=Ze=>{Ve(Ze.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};Q.useEffect(()=>{ve&&ve.setAdornedStart(!!ne)},[ve,ne]);const on=B(M({},n),{color:Ae.color||"primary",disabled:Ae.disabled,endAdornment:v,error:Ae.error,focused:Ae.focused,formControl:ve,fullWidth:b,hiddenLabel:Ae.hiddenLabel,multiline:I,size:Ae.size,startAdornment:ne,type:re}),sn=TTe(on),Dn=ie.root||c.Root||STe,Cn=K.root||d.root||{},ci=ie.input||c.Input||ETe;return st=M(M({},st),(Nn=K.input)!=null?Nn:d.input),fe.jsxs(Q.Fragment,{children:[!m&&typeof Gx=="function"&&(Vx||(Vx=fe.jsx(Gx,{}))),fe.jsxs(Dn,B(M(M(B(M({},Cn),{ref:r,onClick:Nt}),se),!s0(Dn)&&{ownerState:M(M({},on),Cn.ownerState)}),{className:je(sn.root,Cn.className,s,z&&"MuiInputBase-readOnly"),children:[ne,fe.jsx(Qb.Provider,{value:null,children:fe.jsx(ci,B(M(M({"aria-invalid":Ae.error,"aria-describedby":i,autoComplete:a,autoFocus:o,defaultValue:h,disabled:Ae.disabled,id:C,onAnimationStart:Ni,name:H,placeholder:V,readOnly:z,required:Ae.required,rows:ee,value:de,onKeyDown:X,onKeyUp:W,type:re},st),!s0(ci)&&{as:Re,ownerState:M(M({},on),st.ownerState)}),{ref:ye,className:je(sn.input,st.className,z&&"MuiInputBase-readOnly"),onBlur:At,onChange:Wt,onFocus:ir}))}),v,q?q(B(M({},Ae),{startAdornment:ne})):null]}))]})});process.env.NODE_ENV!=="production"&&(gO.propTypes={"aria-describedby":_.string,autoComplete:_.string,autoFocus:_.bool,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","error","info","success","warning"]),_.string]),components:_.shape({Input:_.elementType,Root:_.elementType}),componentsProps:_.shape({input:_.object,root:_.object}),defaultValue:_.any,disabled:_.bool,disableInjectingGlobalStyles:_.bool,endAdornment:_.node,error:_.bool,fullWidth:_.bool,id:_.string,inputComponent:_h,inputProps:_.object,inputRef:us,margin:_.oneOf(["dense","none"]),maxRows:_.oneOfType([_.number,_.string]),minRows:_.oneOfType([_.number,_.string]),multiline:_.bool,name:_.string,onBlur:_.func,onChange:_.func,onClick:_.func,onFocus:_.func,onInvalid:_.func,onKeyDown:_.func,onKeyUp:_.func,placeholder:_.string,readOnly:_.bool,renderSuffix:_.func,required:_.bool,rows:_.oneOfType([_.number,_.string]),size:_.oneOfType([_.oneOf(["medium","small"]),_.string]),slotProps:_.shape({input:_.object,root:_.object}),slots:_.shape({input:_.elementType,root:_.elementType}),startAdornment:_.node,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),type:_.string,value:_.any});function MTe(e,t){k.useEffect(()=>{if(!t)return;const r=n=>{e.current&&!e.current.contains(n.target)&&e.current.blur()};return document.addEventListener("pointerdown",r),()=>{document.removeEventListener("pointerdown",r)}},[e,t])}const ATe=Ye.div`
426
- display: inline-grid;
427
- grid-template-columns: 1fr;
428
- align-items: baseline;
429
- width: auto;
430
- min-width: 50px;
431
- max-width: 100%;
432
- `,PTe=Ye.span`
433
- // Auto-growing input using a CSS Grid technique with sharing the same grid area as the hidden text
434
- grid-area: 1 / 1 / 2 / 2;
435
- visibility: hidden;
436
- white-space: pre;
437
- font: inherit;
438
- padding: 0;
439
- `,RTe=Ye(gO)`
440
- // Auto-growing input using a CSS Grid technique with sharing the same grid area as the hidden text
441
- grid-area: 1 / 1 / 2 / 2;
442
- width: 100%;
443
- font: inherit;
444
- color: inherit;
445
-
446
- & .MuiInputBase-input {
447
- padding: 0;
448
- font: inherit;
449
- color: inherit;
450
- width: 100%;
451
-
452
- &::placeholder {
453
- opacity: 0.5;
454
- }
455
-
456
- &:focus {
457
- outline: none;
458
- box-shadow: none;
459
- }
460
- }
461
- `,OTe=Ye.span`
462
- color: ${({isPlaceholder:e})=>e?"rgba(0, 0, 0, 0.38)":"inherit"};
463
- `;function kTe({value:e,isEditing:t,onCommit:r,onEditingChange:n,onCancel:i,placeholder:a}){const o=k.useRef(null),[s,u]=k.useState(e);k.useEffect(()=>{t&&u(e)},[t,e]);const c=k.useCallback(()=>{const b=s.trim(),C=w.purify.sanitize(b,{ALLOWED_TAGS:[]});C!==e&&r(C),n(!1)},[s,r,n,e]),d=k.useCallback(()=>{i==null||i(),n(!1)},[i,n]),h=k.useCallback(b=>{b.key==="Enter"?(b.preventDefault(),c()):b.key==="Escape"&&(b.preventDefault(),d())},[c,d]),p=k.useCallback(()=>{c()},[c]),m=k.useCallback(()=>{n(!0)},[n]),v=k.useCallback(b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())},[m]);if(k.useEffect(()=>{t&&o.current&&(o.current.focus(),o.current.select())},[t]),MTe(o,t),t)return w.jsxs(ATe,{children:[w.jsx(PTe,{children:s||a||""}),w.jsx(RTe,{inputRef:o,inputProps:{"data-component":"inline-text-editor-input"},value:s,placeholder:a,onChange:b=>u(b.target.value),onBlur:p,onKeyDown:h})]});const g=!e&&!!a;return w.jsx(OTe,{role:"button",tabIndex:0,"aria-label":"Editable text. Double-click or press Enter or Space to edit.","data-component":"inline-text-editor-text",onDoubleClick:m,onKeyDown:v,isPlaceholder:g,children:e||a||""})}function DTe(e){return bt("MuiCard",e)}_t("MuiCard",["root"]);const NTe=e=>{const{classes:t}=e;return Dt({root:["root"]},DTe,t)},ITe=Ne(Bh,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),vO=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiCard"}),c=n,{className:i,raised:a=!1}=c,o=xe(c,["className","raised"]),s=B(M({},n),{raised:a}),u=NTe(s);return fe.jsx(ITe,M({className:je(u.root,i),elevation:a?8:void 0,ref:r,ownerState:s},o))});process.env.NODE_ENV!=="production"&&(vO.propTypes={children:_.node,classes:_.object,className:_.string,raised:Ri(_.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function LTe(e){return bt("MuiCardContent",e)}_t("MuiCardContent",["root"]);const FTe=e=>{const{classes:t}=e;return Dt({root:["root"]},LTe,t)},$Te=Ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),yO=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiCardContent"}),c=n,{className:i,component:a="div"}=c,o=xe(c,["className","component"]),s=B(M({},n),{component:a}),u=FTe(s);return fe.jsx($Te,M({as:a,className:je(u.root,i),ownerState:s,ref:r},o))});process.env.NODE_ENV!=="production"&&(yO.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function BTe(e){return bt("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $i=44,hv=Tu`
464
- 0% {
465
- transform: rotate(0deg);
466
- }
467
-
468
- 100% {
469
- transform: rotate(360deg);
470
- }
471
- `,fv=Tu`
472
- 0% {
473
- stroke-dasharray: 1px, 200px;
474
- stroke-dashoffset: 0;
475
- }
476
-
477
- 50% {
478
- stroke-dasharray: 100px, 200px;
479
- stroke-dashoffset: -15px;
480
- }
481
-
482
- 100% {
483
- stroke-dasharray: 1px, 200px;
484
- stroke-dashoffset: -126px;
485
- }
486
- `,HTe=typeof hv!="string"?Oh`
487
- animation: ${hv} 1.4s linear infinite;
488
- `:null,zTe=typeof fv!="string"?Oh`
489
- animation: ${fv} 1.4s ease-in-out infinite;
490
- `:null,jTe=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${Le(n)}`],svg:["svg"],circle:["circle",`circle${Le(r)}`,i&&"circleDisableShrink"]};return Dt(a,BTe,t)},WTe=Ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Le(r.color)}`]]}})($t(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:HTe||{animation:`${hv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ea()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),UTe=Ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),VTe=Ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Le(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})($t(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:zTe||{animation:`${fv} 1.4s ease-in-out infinite`}}]}))),Jb=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiCircularProgress"}),x=n,{className:i,color:a="primary",disableShrink:o=!1,size:s=40,style:u,thickness:c=3.6,value:d=0,variant:h="indeterminate"}=x,p=xe(x,["className","color","disableShrink","size","style","thickness","value","variant"]),m=B(M({},n),{color:a,disableShrink:o,size:s,thickness:c,value:d,variant:h}),v=jTe(m),g={},b={},C={};if(h==="determinate"){const E=2*Math.PI*(($i-c)/2);g.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*E).toFixed(3)}px`,b.transform="rotate(-90deg)"}return fe.jsx(WTe,B(M(M({className:je(v.root,i),style:M(M({width:s,height:s},b),u),ownerState:m,ref:r,role:"progressbar"},C),p),{children:fe.jsx(UTe,{className:v.svg,ownerState:m,viewBox:`${$i/2} ${$i/2} ${$i} ${$i}`,children:fe.jsx(VTe,{className:v.circle,style:g,ownerState:m,cx:$i,cy:$i,r:($i-c)/2,fill:"none",strokeWidth:c})})}))});process.env.NODE_ENV!=="production"&&(Jb.propTypes={classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","primary","secondary","error","info","success","warning"]),_.string]),disableShrink:Ri(_.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:_.oneOfType([_.number,_.string]),style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),thickness:_.number,value:_.number,variant:_.oneOf(["determinate","indeterminate"])});function GTe(e){return bt("MuiIconButton",e)}const qx=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),qTe=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a,loading:o}=e,s={root:["root",o&&"loading",r&&"disabled",n!=="default"&&`color${Le(n)}`,i&&`edge${Le(i)}`,`size${Le(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Dt(s,GTe,t)},YTe=Ne(Wa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Le(r.color)}`],r.edge&&t[`edge${Le(r.edge)}`],t[`size${Le(r.size)}`]]}})($t(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),$t(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ea()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ea()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${qx.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${qx.loading}`]:{color:"transparent"}}))),XTe=Ne("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ha=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiIconButton"}),E=n,{edge:i=!1,children:a,className:o,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:d="medium",id:h,loading:p=null,loadingIndicator:m}=E,v=xe(E,["edge","children","className","color","disabled","disableFocusRipple","size","id","loading","loadingIndicator"]),g=Dh(h),b=m!=null?m:fe.jsx(Jb,{"aria-labelledby":g,color:"inherit",size:16}),C=B(M({},n),{edge:i,color:s,disabled:u,disableFocusRipple:c,loading:p,loadingIndicator:b,size:d}),x=qTe(C);return fe.jsxs(YTe,B(M({id:p?g:h,className:je(x.root,o),centerRipple:!0,focusRipple:!c,disabled:u||p,ref:r},v),{ownerState:C,children:[typeof p=="boolean"&&fe.jsx("span",{className:x.loadingWrapper,style:{display:"contents"},children:fe.jsx(XTe,{className:x.loadingIndicator,ownerState:C,children:p&&b})}),a]}))});process.env.NODE_ENV!=="production"&&(Ha.propTypes={children:Ri(_.node,e=>Q.Children.toArray(e.children).some(r=>Q.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(`
491
- `)):null),classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),_.string]),disabled:_.bool,disableFocusRipple:_.bool,disableRipple:_.bool,edge:_.oneOf(["end","start",!1]),id:_.string,loading:_.bool,loadingIndicator:_.node,size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function KTe({fill:e="rgba(38, 46, 61, 0.67)"}){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:w.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"})})}function ZTe({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:i}){var C,x,E;const[a,o]=k.useState(null),{themeSettings:s}=gt(),{typography:{primaryTextColor:u,secondaryTextColor:c,fontFamily:d}}=s,{t:h}=w.useTranslation(),p=T=>{o(T.currentTarget)},m=()=>{o(null)},v=k.useMemo(()=>e?w.jsx(qr,{variant:"body2",style:{color:u,fontFamily:d,fontSize:13},children:e}):null,[e,u,d]),g=k.useMemo(()=>r.length===0?null:r.map(T=>w.jsxs(w.Fragment,{children:[w.jsx(Ma,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),w.jsxs("div",{className:"csdk-flex",children:[w.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:w.jsx(KTe,{fill:"#fa5656"})}),w.jsx(qr,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:d,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:T})]})]})),[r,c,d]),b=k.useMemo(()=>t?w.jsxs(w.Fragment,{children:[w.jsx(Ma,{sx:{my:"8px",borderColor:c,opacity:.3}}),w.jsx(qr,{variant:"body2",style:{color:c,fontFamily:d,fontSize:13},children:t})]}):null,[t,c,d]);return w.jsxs(w.Fragment,{children:[w.jsx(Sf,{title:h("widgetHeader.info.tooltip"),style:{color:(C=s.chart)==null?void 0:C.textColor,fontFamily:(x=s.typography)==null?void 0:x.fontFamily},children:w.jsx(Ha,{onClick:p,sx:M({p:0},w.MIN_TOUCH_TARGET_SIZE),"data-testid":"widget-header-info-icon-button",children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:w.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"})})})}),w.jsx(sy,{open:!!a,position:a?{anchorEl:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:m,children:w.jsxs(vO,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[w.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:w.getSlightlyDifferentColor(s.general.backgroundColor)},children:[w.jsx(qr,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily},children:h("widgetHeader.info.details")}),w.jsx(Ha,{onClick:i,sx:M({p:0},w.MIN_TOUCH_TARGET_SIZE),"data-testid":"widget-header-refresh-icon-button",children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:w.jsx("path",{fill:(E=s.chart)==null?void 0:E.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"})})})]}),w.jsx(Ma,{sx:{borderColor:s.typography.secondaryTextColor,opacity:.3}}),w.jsxs(yO,{style:{backgroundColor:s.general.backgroundColor,padding:12},children:[v,g,b]})]})})]})}const e1=()=>{const e=Fh();if(!e)throw new D.TranslatableError("errors.missingMenuRoot");return e};function bO({fill:e="rgba(38, 46, 61, 0.67)"}){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 7C11 6.44772 11.4477 6 12 6C12.5523 6 13 6.44772 13 7C13 7.55228 12.5523 8 12 8C11.4477 8 11 7.55228 11 7ZM11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12ZM12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16Z",fill:e})})}const Yx=28,QTe=Ye(Ha,{shouldForwardProp:e=>e!=="iconSize"})`
492
- min-width: ${({iconSize:e})=>e!=null?e:Yx}px;
493
- min-height: ${({iconSize:e})=>e!=null?e:Yx}px;
494
- `,_O=a=>{var o=a,{color:e,onClick:t,ariaLabel:r,size:n}=o,i=xe(o,["color","onClick","ariaLabel","size"]);const s=k.useCallback(()=>w.getSlightlyDifferentColor(e!=null?e:"",void 0,.1),[e]);return w.jsx(QTe,B(M({iconSize:n,sx:{padding:0,"&:hover":{backgroundColor:s()}},onClick:t,"aria-label":r},i),{children:w.jsx(bO,{fill:e})}))};function wO(e){var t;return{key:e.id,caption:e.caption,onClick:e.onClick,subItems:(t=e.items)!=null&&t.length?[{items:e.items.map(wO)}]:void 0}}const CO=({menuItems:e})=>{const{themeSettings:t}=gt(),{openMenu:r}=e1(),n=k.useCallback(i=>{i.stopPropagation();const a=i.currentTarget.getBoundingClientRect();e.length&&r({position:{left:a.right,top:a.bottom},alignment:{horizontal:"right"},itemSections:[{items:e.map(wO)}]})},[e,r]);return w.jsx(_O,{onClick:n,ariaLabel:"widget header toolbar menu",color:t.widget.header.titleTextColor})};function JTe({infoButtonConfig:e,styleOptions:t,onRefresh:r,config:n}){var o,s,u,c;const i=k.useMemo(()=>{var d,h;return w.isUndefined((d=n==null?void 0:n.menu)==null?void 0:d.enabled)?!0:(h=n==null?void 0:n.menu)==null?void 0:h.enabled},[(o=n==null?void 0:n.menu)==null?void 0:o.enabled]),a=w.jsx(w.Fragment,{children:w.jsx(ZTe,{title:e.dataSetName,description:e.description,styleOptions:t,errorMessages:e.errorMessages,warningMessages:e.warningMessages,onRefresh:r})});return w.jsxs(w.Fragment,{children:[t!=null&&t.renderToolbar?t.renderToolbar(r,a):a,i&&((s=n==null?void 0:n.menu)==null?void 0:s.items)&&((u=n==null?void 0:n.menu)==null?void 0:u.items.length)>0&&w.jsx(CO,{menuItems:(c=n==null?void 0:n.menu)==null?void 0:c.items})]})}function eSe(e){return e.toLowerCase()}const tSe=({title:e,infoButtonConfig:t,styleOptions:r,onRefresh:n,config:i,titleEditor:a})=>{var d,h;const{themeSettings:o}=gt(),{t:s}=w.useTranslation(),u=D.get(r,"dividerLine",o.widget.header.dividerLine),c=a?w.jsx(kTe,{value:e!=null?e:"",isEditing:a.isEditing,onEditingChange:a.onEditingChange,onCommit:a.onCommit,onCancel:a.onCancel,placeholder:s("widgetHeader.addTitle")}):e;return w.jsxs("div",{"data-component":"widget-header",children:[w.jsxs(rSe,{styleOptions:r,theme:o,"data-component":"header-container",children:[w.jsx(nSe,{styleOptions:r,theme:o,"data-component":"title",children:(h=(d=r==null?void 0:r.renderTitle)==null?void 0:d.call(r,c))!=null?h:c}),w.jsx(iSe,{"data-component":"toolbar-container",children:w.jsx(JTe,{infoButtonConfig:t,styleOptions:r,onRefresh:n,config:i==null?void 0:i.toolbar})})]}),u&&w.jsx(aSe,{styleOptions:r,theme:o,"data-component":"widget-header-divider"})]})},rSe=Ye.div`
495
- display: flex;
496
- flex-direction: row;
497
- align-items: center;
498
- padding-left: 8px;
499
- padding-right: 8px;
500
- min-height: 32px;
501
- background-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.backgroundColor)||t.widget.header.backgroundColor};
502
- `,nSe=Ye.div`
503
- width: 100%;
504
- white-space: nowrap;
505
- overflow: hidden;
506
- text-align: ${({styleOptions:e,theme:t})=>eSe((e==null?void 0:e.titleAlignment)||t.widget.header.titleAlignment)};
507
- color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.titleTextColor)||t.widget.header.titleTextColor};
508
- font-family: ${({theme:e})=>{var t,r;return(r=(t=e.typography)==null?void 0:t.fontFamily)!=null?r:"inherit"}};
509
- font-size: ${({theme:e})=>{const t=e.widget.header.titleFontSize;return typeof t=="number"?`${t}px`:t}};
510
- `,iSe=Ye.div`
511
- margin-left: auto;
512
- display: flex;
513
- align-items: center;
514
- `,aSe=Ye(Ma)`
515
- background-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.dividerLineColor)||t.widget.header.dividerLineColor||"#e6e6e6"};
516
- `;var xO=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(xO||{}),pv=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(pv||{}),mv=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(mv||{}),t1=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(t1||{});const oSe=(e,t)=>{const r=D.get(e,"shadow",t.widget.shadow),n=D.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in pv&&n in mv){const i=pv[`${r}`];return`0px ${mv[`${n}`]} rgba(9, 9, 10, ${i})`}return"none"},TO=e=>w.jsx(GCe,{children:w.jsx(sSe,M({},e))}),sSe=({dataSetName:e,styleOptions:t,headerConfig:r,titleEditor:n,title:i,description:a,topSlot:o,bottomSlot:s,children:u,onRefresh:c=()=>{}})=>{var v,g;const{errors:d,warnings:h}=$R(),{themeSettings:p}=gt(),m=k.useMemo(()=>{var b;return{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((b=p.chart)==null?void 0:b.backgroundColor)}}},[t==null?void 0:t.backgroundColor,(v=p.chart)==null?void 0:v.backgroundColor]);return w.jsx(lSe,{className:"csdk-accessible","data-component":"widget-container-root",children:w.jsx(uSe,{styleOptions:t,theme:p,"data-component":"widget-container-layout",children:w.jsxs(cSe,{styleOptions:t,theme:p,"data-component":"widget-container-card",children:[!((g=t==null?void 0:t.header)!=null&&g.hidden)&&w.jsx(tSe,{title:i,infoButtonConfig:{dataSetName:e,description:a,errorMessages:d,warningMessages:h},styleOptions:t==null?void 0:t.header,config:r,titleEditor:n,onRefresh:c}),o,w.jsx(BS,{theme:m,children:w.jsx(dSe,{styleOptions:t,theme:p,"data-component":"widget-container-content",children:u})}),s]})})})},lSe=Ye.div`
517
- width: 100%;
518
- height: 100%;
519
- overflow: hidden;
520
- `,uSe=Ye.div`
521
- box-sizing: border-box;
522
- height: 100%;
523
- padding: ${({styleOptions:e,theme:t})=>t1[D.get(e,"spaceAround",t.widget.spaceAround)]||"0px"};
524
- `,cSe=Ye.div`
525
- box-sizing: border-box;
526
- height: 100%;
527
- overflow: hidden;
528
- display: flex;
529
- flex-direction: column;
530
- background-color: ${({styleOptions:e})=>(e==null?void 0:e.backgroundColor)||"unset"};
531
- border-width: ${({styleOptions:e,theme:t})=>D.get(e,"border",t.widget.border)?"1px":"0"};
532
- border-style: solid;
533
- border-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.borderColor)||t.widget.borderColor};
534
- border-radius: ${({styleOptions:e,theme:t})=>xO[(e==null?void 0:e.cornerRadius)||t.widget.cornerRadius]||"0"};
535
- box-shadow: ${({styleOptions:e,theme:t})=>oSe(e,t)};
536
- `,dSe=Ye.div`
537
- flex-grow: 1;
538
- min-width: 0;
539
- min-height: 0;
540
- background-color: ${({styleOptions:e,theme:t})=>{var r;return(e==null?void 0:e.backgroundColor)||((r=t.chart)==null?void 0:r.backgroundColor)}};
541
- `,hSe=(e,t)=>e===void 0&&t===void 0?!1:[e,t].some(n=>n===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.map((n,i)=>{const a=t[i];return!fSe(n,a)}).includes(!0);function ch(e){return"context"in e&&"expression"in e}function fSe(e,t){return ch(e)&&ch(t)?SO(e,t):D.isEqual(e,t)}function SO(e,t){const o=e,{context:r}=o,n=xe(o,["context"]),s=t,{context:i}=s,a=xe(s,["context"]);return mSe(r,i)&&D.isEqual(n,a)}const Xx=e=>pSe(e)&&e.type==="filter",pSe=e=>typeof e=="object"&&!!e&&"type"in e;function mSe(e,t){const r=Object.keys(e),n=Object.keys(t);return D.isEqual(r,n)?r.every(a=>{const o=e[a],s=t[a];return ch(o)&&ch(s)?SO(o,s):Xx(o)&&Xx(s)?WR(o,s):D.isEqual(o,s)}):!1}const gSe=["dataSource","dimensions","count","offset","onBeforeQuery"];function r1(e){return Is(e,gSe,(t,r)=>{const{filters:n,relations:i}=D.getFilterListAndRelationsJaql(r.filters),{filters:a,relations:o}=D.getFilterListAndRelationsJaql(t.filters);return hSe(r.measures,t.measures)||ss(n,a)||nxe(n,a,i,o)||ss(r.highlights,t.highlights)})}function Kx(e,t){return ep(e,t)}const vSe=qb("useExecuteCsvQuery")(n1);function n1(e){const t=r1(e),r=Yb(e,t),[n,i]=k.useReducer(Kx,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:a,app:o}=ut();return k.useEffect(()=>{if(a||i({type:"error",error:new D.TranslatableError("errors.executeQueryNoSisenseContext")}),r(o)){i({type:"loading"});const{dataSource:s,dimensions:u,measures:c,filters:d,highlights:h,count:p,offset:m,ungroup:v,config:g,onBeforeQuery:b}=e,{filters:C,relations:x}=D.getFilterListAndRelationsJaql(d);D.executeCsvQuery({dataSource:s,dimensions:u,measures:c,ungroup:v,filters:C,filterRelations:x,highlights:h,count:p,offset:m},o,{onBeforeQuery:b}).then(E=>g!=null&&g.asDataStream?(i({type:"success",data:E}),null):E.text()).then(E=>E&&i({type:"success",data:E})).catch(E=>{i({type:"error",error:E})})}},[o,a,e,r]),n.data&&t?Kx(n,{type:"loading"}):n}const ySe="file";function i1(e,t){const r=URL.createObjectURL(e),n=document.createElement("a");n.href=r,n.download=t;try{document.body.appendChild(n),n.click()}finally{URL.revokeObjectURL(r),n.remove()}}function a1(e){const t=e.lastIndexOf("."),r=t===-1?e:e.substring(0,t),n=t===-1?"":e.substring(t);return`${r.replace(/[^a-zA-Z0-9]/g,"")||ySe}${n}`}const bSe=Object.freeze(Object.defineProperty({__proto__:null,downloadBlobAsFile:i1,normalizeFileName:a1},Symbol.toStringTag,{value:"Module"})),_Se="data.csv";function EO(){const[e,t]=k.useState(null),r=n1(B(M({},e!=null?e:{dimensions:[],measures:[]}),{enabled:!!e,config:{asDataStream:!0}}));return k.useEffect(()=>{var i;e&&(r.isSuccess&&r.data?(i1(r.data,a1((i=e.filename)!=null?i:_Se)),t(null)):r.isError&&t(null))},[e,r.isSuccess,r.isError,r.data]),{execute:k.useCallback(i=>{t(i)},[])}}const Zx="widget-download",wSe="widget-download-csv-file";function MO({baseHeaderConfig:e,enabled:t,onClick:r}){const{t:n}=w.useTranslation();return k.useMemo(()=>{var u,c,d,h,p;if(!t)return e;const i={id:wSe,caption:n("widgetHeader.menu.csvFile"),onClick:r},a=(d=(c=(u=e.toolbar)==null?void 0:u.menu)==null?void 0:c.items)!=null?d:[],o=a.findIndex(m=>m.id===Zx),s=o>=0?a.map((m,v)=>{var g;return v===o?B(M({},m),{items:[...(g=m.items)!=null?g:[],i]}):m}):[...a,{id:Zx,caption:n("widgetHeader.menu.download"),items:[i]}];return B(M({},e),{toolbar:B(M({},e.toolbar),{menu:B(M({},(p=(h=e.toolbar)==null?void 0:h.menu)!=null?p:{}),{items:s})})})},[e,t,r,n])}const CSe="YYYY-MM-DD HH:mm:ss.S";function xSe(e){var v,g;const{chartType:t,dataOptions:r,dataSource:n,filters:i,highlights:a,title:o,config:s,baseHeaderConfig:u}=e,c=EO(),d=k.useMemo(()=>{const b=D.isTable(t),{attributes:C,measures:x}=b?Cf(Wu(r)):ib(r,t),E=C.map(T=>D.isDimensionalLevelAttribute(T)?T.format(CSe):T);return{dataSource:n,dimensions:E,measures:x,filters:i,highlights:a,ungroup:b,filename:o?`${o}.csv`:void 0}},[t,r,n,i,a,o]),h=d.dimensions.length>0||d.measures.length>0,p=!!((g=(v=s==null?void 0:s.actions)==null?void 0:v.downloadCsv)!=null&&g.enabled)&&h;return{headerConfig:MO({baseHeaderConfig:u,enabled:p,onClick:()=>h&&c.execute(d)})}}const TSe="0,0";function AO(e){return e.map(t=>{if(!D.isDimensionalLevelAttribute(t)||typeof t.format!="function"||t.getFormat())return t;const r=D.DimensionalLevelAttribute.getDefaultFormatForGranularity(t.granularity);return r?t.format(r):t})}function PO(e){return e.map(t=>typeof t.format!="function"||(typeof t.getFormat=="function"?t.getFormat():void 0)?t:t.format(TSe))}const SSe="export";function ESe(){return D.v4()}function MSe(e,t){return t&&e.panel==="columns"?"columns":"rows"}function ASe(e){return e.format?e.jaql.datatype==="numeric"?{mask:e.format}:e.jaql.datatype==="datetime"?e.format:{}:{}}function Qx({jaqlItem:e,formatItem:t,panel:r,merged:n,extraJaql:i={},id:a,index:o}){return{jaql:B(M({},i),{column:e.title,title:e.title,dim:e.dim,merged:n}),field:{id:a,index:o},format:ASe(t!=null?t:e),panel:r}}function PSe(e,t,r){var o,s;const n=(o=e==null?void 0:e.map((u,c)=>{const d=u.jaql(),h=d.jaql,{level:p,dateTimeLevel:m,bucket:v}=h,g=M(M(M({},p!==void 0&&{level:p}),m!==void 0&&{dateTimeLevel:m}),v!==void 0&&{bucket:v});return Qx({jaqlItem:h,formatItem:d,panel:MSe(u,r),merged:!!u.merged,extraJaql:g,id:u.id,index:c})}))!=null?o:[],i=n.length,a=(s=t==null?void 0:t.map((u,c)=>{const d=u.jaql(),h=d.jaql;return Qx({jaqlItem:h,formatItem:d,panel:"measures",merged:!!h.agg,extraJaql:{agg:h.agg},id:u.id,index:i+c})}))!=null?s:[];return[...n,...a]}function RSe(e,t){const{dimensions:r,measures:n}=e;return{datasource:D.convertJaqlDataSource(t.dataSource),widget:`${t.widgetOid};${t.widgetTitle}`,queryGuid:ESe(),metadata:PSe(r,n,t.mergeRows),mergeRows:t.mergeRows,count:-1,by:SSe,ungroup:!1}}function OSe(e,t,r){return{widgetId:e.widgetId,widgetType:e.widgetType,jaql:t,mergeRows:r,language:e.language}}function Jx(e,t){return ep(e,t)}function kSe(e){const t=Is(e,["mergeRows","exportRunId","widgetId","widgetTitle","widgetType"]),r=r1(e);return t||r}function DSe(e,t,r,n,i){var o;const a=RSe(e,{widgetOid:n,widgetTitle:(o=e.widgetTitle)!=null?o:"",dataSource:i,mergeRows:e.mergeRows});return OSe({widgetId:n,widgetType:r,language:t},a,e.mergeRows)}function NSe(e,t,r){var c,d;const n=r.widgetType;if(!n){e({type:"error",error:new Error("Excel export requires widgetType (e.g. ChartWidget `chartType`).")});return}const i=r.widgetId;if(!i){e({type:"error",error:new Error("Excel export requires widgetId (e.g. ChartWidget `id` when rendered via `Widget` / dashboard).")});return}e({type:"loading"});const a=t==null?void 0:t.httpClient;if(!a){e({type:"error",error:new D.TranslatableError("errors.executeQueryNoSisenseContext")});return}const o=(c=r.dataSource)!=null?c:t==null?void 0:t.defaultDataSource;if(!o){e({type:"error",error:new D.TranslatableError("errors.executeQueryNoDataSource")});return}const s=(d=t==null?void 0:t.settings.translationConfig.language)!=null?d:"en-US",u=DSe(r,s,n,i,o);new cf(a).exportJaqlToXlsx(u).then(h=>{if(!h||h.size===0){e({type:"error",error:new Error("Excel export returned an empty file.")});return}e({type:"success",data:h})}).catch(h=>{e({type:"error",error:h})})}function ISe(e){const t=kSe(e),[r,n]=k.useReducer(Jx,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=ut();return k.useEffect(()=>{let o=!1;const s=u=>{o||n(u)};return e.enabled?i?(NSe(s,a,e),()=>{o=!0}):(s({type:"error",error:new D.TranslatableError("errors.executeQueryNoSisenseContext")}),()=>{o=!0}):()=>{o=!0}},[a,i,e]),r.data&&t?Jx(r,{type:"loading"}):r}const LSe="data.xlsx",FSe={dimensions:[],measures:[],mergeRows:!1,enabled:!1};function RO(){const[e,t]=k.useState(null),r=k.useRef(0),n=k.useMemo(()=>{var o;return B(M(M({},FSe),e!=null?e:{}),{enabled:!!e,mergeRows:(o=e==null?void 0:e.mergeRows)!=null?o:!1})},[e]),i=ISe(n);return k.useEffect(()=>{var o;e&&(i.isSuccess&&i.data?(i1(i.data,a1((o=e.filename)!=null?o:LSe)),t(null)):i.isError&&t(null))},[e,i.isSuccess,i.isError,i.data]),{execute:k.useCallback(o=>{r.current+=1,t(B(M({},o),{exportRunId:r.current}))},[])}}const eT="widget-download",tT="excelFileMenuItem",$Se="downloadExcelRepeatRows",BSe="downloadExcelMergeRows";function OO({baseHeaderConfig:e,enabled:t,onDownloadExcel:r}){const{t:n}=w.useTranslation();return k.useMemo(()=>{var d,h,p,m,v;if(!t)return e;const i={id:$Se,caption:n("widgetHeader.menu.repeatRowsRecommended"),onClick:()=>r(!1)},a={id:BSe,caption:n("widgetHeader.menu.mergeRows"),onClick:()=>r(!0)},o={id:tT,caption:n("widgetHeader.menu.excelFile"),items:[i,a]},s=(p=(h=(d=e.toolbar)==null?void 0:d.menu)==null?void 0:h.items)!=null?p:[],u=s.findIndex(g=>g.id===eT),c=u>=0?s.map((g,b)=>{var C;return b===u?B(M({},g),{items:[...((C=g.items)!=null?C:[]).filter(x=>x.id!==tT),o]}):g}):[...s,{id:eT,caption:n("widgetHeader.menu.download"),items:[o]}];return B(M({},e),{toolbar:B(M({},e.toolbar),{menu:B(M({},(v=(m=e.toolbar)==null?void 0:m.menu)!=null?v:{}),{items:c})})})},[e,t,r,n])}const kO=()=>{const{app:e}=ut();return e==null?void 0:e.settings};function HSe(e){var C,x,E,T,A,R;const{chartType:t,dataOptions:r,dataSource:n,title:i,config:a,baseHeaderConfig:o,id:s}=e,u=RO(),c=kO(),d=((x=(C=c==null?void 0:c.serverFeatures)==null?void 0:C.exportingXlsxV2)==null?void 0:x.active)===!0,h=!!((T=(E=a==null?void 0:a.actions)==null?void 0:E.downloadExcel)!=null&&T.enabled),p=k.useMemo(()=>{if(!h||!d)return{dataSource:n,dimensions:[],measures:[],ungroup:!1,filename:i?`${i}.xlsx`:void 0,widgetType:t,widgetId:s,widgetTitle:i!=null?i:""};const N=D.isTable(t),{attributes:I,measures:H}=N?Cf(Wu(r)):ib(r,t);return{dataSource:n,dimensions:AO(I),measures:PO(H),ungroup:!1,filename:i?`${i}.xlsx`:void 0,widgetType:t,widgetId:s,widgetTitle:i!=null?i:""}},[t,r,n,h,s,d,i]),m=p.dimensions.length>0||p.measures.length>0,v=!!((R=(A=a==null?void 0:a.actions)==null?void 0:A.downloadExcel)!=null&&R.enabled)&&d&&m,g=k.useCallback(N=>{if(!v||!m)return;const I=B(M({},p),{mergeRows:N});u.execute(I)},[u,p,m,v]);return{headerConfig:OO({baseHeaderConfig:o,enabled:v,onDownloadExcel:g})}}var zSe=Object.prototype,jSe=zSe.hasOwnProperty,WSe=dO(function(e,t,r){jSe.call(e,r)?e[r].push(t):D.baseAssignValue(e,r,[t])});function gv(e){return e&&e.length?rb(e):[]}var yu=(e=>(e.WIDGET_POINTS_DRILLDOWN="widget-points-drilldown",e.WIDGET_POINTS_CROSSFILTERING="widget-points-crossfiltering",e))(yu||{}),ls=(e=>(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))(ls||{});const USe=["rows","columns","values","category","value","breakBy","x","y","breakByPoint","breakByColor","size","date","geo","color","colorBy","details","outliers","secondary","min","max"];function VSe(e){return USe.includes(e)}function GSe(e,t){const r=[];for(const[n,i]of Object.entries(e))!VSe(n)||i===null||i===void 0||(Array.isArray(i)?i.forEach((a,o)=>{rT(a)&&r.push({location:{dataOptionName:n,dataOptionIndex:o},column:a})}):typeof i=="object"&&!Array.isArray(i)&&rT(i)&&r.push({location:{dataOptionName:n,dataOptionIndex:0},column:i}));for(const{location:n,column:i}of r)if(DO(i,t))return n}function rT(e){if(!e||typeof e!="object")return!1;const t="column"in e?e.column:e;return typeof t=="object"&&t!==null&&"type"in t&&"expression"in t}function DO(e,t){return Zr(w.translateColumnToAttribute(e),w.translateColumnToAttribute(t))}function NO(e,t){const{dataOptionName:r,dataOptionIndex:n=0}=t,i=e[r];if(i!=null){if(D.isArray(i))return n>=0&&n<i.length?i[n]:void 0;if(D.isPlainObject(i))return n!==0&&t.dataOptionIndex!==void 0?void 0:i}}function qSe(e,t,r){const{dataOptionName:n,dataOptionIndex:i=0}=t,a=r[n];if(a==null)return r;if(D.isArray(a)){if(i>=0&&i<a.length){const o=[...a];return o[i]=e,B(M({},r),{[n]:o})}return r}return D.isPlainObject(a)?i!==0&&t.dataOptionIndex!==void 0?r:B(M({},r),{[n]:e}):r}function IO(e,t,r){return r.length===0||!t?void 0:"dataOptionName"in t?t:GSe(e,t)}function LO(e,t,r){const n=NO(e,t);return!n||DO(n,r)?e:qSe(r,t,e)}function YSe(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.config.guid))})}function FO(e,t){return e.find(r=>Zr(r.attribute,t))}function $O(e,t,r){var i;const n=FO(r,e);return D.members((i=n==null?void 0:n.attribute)!=null?i:e,t.map(a=>`${a}`),{guid:n==null?void 0:n.config.guid,backgroundFilter:n==null?void 0:n.config.backgroundFilter})}function BO(e,t){return Gb(e,t)&&"members"in e&&"members"in t&&D.isEqual(e.members,t.members)}function XSe({widgetType:e,chartType:t,dataOptions:r,drilldownOptions:n}){if(e==="pivot"){const i=n,a=r,o=i==null?void 0:i.drilldownSelections,s=i==null?void 0:i.drilldownTarget;if(o&&o.length&&s){const u=IO(a,s,o),c=D.last(o);if(u&&(c!=null&&c.nextDimension))return LO(a,u,c.nextDimension)}}if(t){const i=n,a=r,o=i==null?void 0:i.drilldownSelections;if(o&&o.length){const s=D.last(o);if(s!=null&&s.nextDimension)return zO(t,a,s.nextDimension)}}return r}const HO=2;function KSe(e,t){const r=e[t];return r?Array.isArray(r)?r:[r]:[]}function Di(e,t){if(!e.length||!t.length)return[];const r=e.flatMap(({entries:i={}})=>t.flatMap(a=>KSe(i,a)).filter(a=>"attribute"in a&&!!a.attribute)),n=WSe(r,({attribute:i})=>D.isLevelAttribute(i)&&D.isDatetime(i.type)?`${i.expression}.${i.granularity}`:i.expression);return Object.values(n).filter(i=>i.length>0&&!!i[0].attribute).map(i=>{const a=i[0].attribute,o=gv(i.map(({value:u})=>u).filter(u=>u!=null)),s=gv(i.map(({displayValue:u})=>u).filter(u=>u!==void 0));return{attribute:a,values:o,displayValues:s}})}function ZSe(e){return Di(e,["category"])}function QSe(e){return Di(e,["category"])}function JSe(e,t){const r=Di(e,["category"]),n=r.length-1;return t.category.map((i,a)=>n===a?r[a]:{attribute:w.translateColumnToAttribute(i),values:[],displayValues:[]})}function eEe(e){return Di(e,["x","y","breakByPoint","breakByColor"])}function tEe(e){return Di(e,["geo"])}function rEe(e){return Di(e,["geo"])}function nEe(e){return Di(e,["date"])}function iEe(e){const t=e.filter(r=>r.isDataCell&&!r.isTotalCell);return Di(t.map(r=>{var n,i,a,o,s,u;return(i=(n=r.entries)==null?void 0:n.values)!=null&&i.length?r:B(M({},r),{entries:{rows:(o=(a=r.entries.rows)==null?void 0:a.slice(-1))!=null?o:[],columns:(u=(s=r.entries.columns)==null?void 0:s.slice(-1))!=null?u:[],values:[]}})}),["rows","columns","values"])}function aEe(e,t){const r=Object.entries(t).filter(([,n])=>Array.isArray(n)&&n.some(i=>!w.isMeasureColumn(i))).map(([n])=>n);return Di(e,r)}function Md(e,t,r){return e==="custom"?aEe(r,t):e==="text"?[]:e==="pivot"?iEe(r):e==="treemap"||e==="sunburst"?JSe(r,t):D.isCartesian(e)||e==="pie"||e==="funnel"?ZSe(r):D.isBoxplot(e)?QSe(r):D.isScatter(e)?eEe(r):D.isScattermap(e)?tEe(r):D.isAreamap(e)?rEe(r):D.isCalendarHeatmap(e)?nEe(r):[]}function o1(e,t){let r=[];return e==="custom"?r=oEe(t):e==="text"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:D.isCartesian(e)||D.isCategorical(e)||D.isBoxplot(e)||D.isRange(e)?r=[...t.category]:D.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!w.isMeasureColumn(n))):D.isScattermap(e)||D.isAreamap(e)?r=[...t.geo]:D.isCalendarHeatmap(e)&&(r=[t.date]),r.map(w.translateColumnToAttribute)}function oEe(e){return Object.values(e).flatMap(t=>Array.isArray(t)?t.filter(r=>!w.isMeasureColumn(r)):[])}function sEe(e,t,r){const n=FO(t,e.attribute);if(!n||Vb(n))return null;if(BO(e,n))return Jf(e);if(D.isMembersFilter(n)&&r){const[i,a]=tc(n.members,s=>e.members.includes(s));if(i.length===e.members.length&&a.length)return $O(e.attribute,a,[n])}return null}function lEe(e,t,r){const n=t.filter(o=>!o.config.disabled),i=e.map(o=>sEe(o,n,r)).filter(o=>!!o),a=e.length!==i.length;return{filters:a?e:i,isSelection:a}}function Wm(e,t,r=!1){const n=e.map(({attribute:a,values:o})=>$O(a,o,t)),i=uEe(t,n);return lEe(i,t,r)}function uEe(e,t){const r=e.filter(n=>n.config.locked);return r.length?t.filter(n=>!r.some(i=>Gb(i,n))):t}function cEe(e,t,r){const n=Md(e,t,r).filter(({displayValues:s})=>s.length);if(n.length===0)return"";const[i]=n,a=r.length===1,o=i.displayValues.length>HO;return n.length>1?a?n.map(s=>s.displayValues[0]).join(", "):o?"":i.displayValues.join(", "):o?i.attribute.name:i.displayValues.join(", ")}function nT(e,t,r){const n=cEe(e,t,r);return n?{id:ls.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:n}:null}function iT(e,t){return{items:[{caption:e,onClick:t}]}}function dEe(e,t){return o1(e,t)[0]}function hEe(e){return[...D.CARTESIAN_CHART_TYPES,...D.CATEGORICAL_CHART_TYPES,...D.SCATTER_CHART_TYPES,...D.BOXPLOT_CHART_TYPES,...D.RANGE_CHART_TYPES].includes(e)}function fEe(e,t){return o1(e,t).length>=1}function pEe(e,t){return fEe(e,t)&&hEe(e)}function zO(e,t,r){const n=i=>!!i&&!Zr(r,w.translateColumnToAttribute(i));if(D.isCartesian(e)||D.isCategorical(e)||D.isBoxplot(e)||D.isRange(e)){const i=t.category[0];if(n(i))return B(M({},t),{category:[r]})}else if(D.isScatter(e)){const i=t,o=["x","y","breakByPoint","breakByColor"].find(s=>{const u=i[s];return u&&!w.isMeasureColumn(u)});if(o){const s=i[o];if(n(s))return B(M({},i),{[o]:r})}}return t}function aT(e,t,r){return e.map(n=>{const i=["x","y","breakByPoint","breakByColor"],a=[...i,"size"].some(s=>s in n),o=i.find(s=>r[s]&&!w.isMeasureColumn(r[s]));if(a){const s=t,u=s.type==="mouseup";u&&console.warn("No drilldown support for multi-selection in scatter chart");const c=u?n[o]:s.point.options.custom[cO(`{masked ${o}`)];return{categoryValue:c,categoryDisplayValue:c}}return n})}function dh(e,t){return e.filter(r=>{if(D.MetadataTypes.isAttribute(r)){const a=r;return t.every(o=>!Zr(o,a))}const i=r;return t.every((a,o)=>i.levels[o]&&Zr(a,i.levels[o]))})}function hh(e,t){return[w.translateColumnToAttribute(e),...t.map(({nextDimension:r})=>r)]}const mEe=hs(fe.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"),gEe=Ne(Wa)($t(({theme:e})=>B(M({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":M({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":M({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Zm(e.palette.grey[200],.12)}:{backgroundColor:Zm(e.palette.grey[600],.12)})}))),vEe=Ne(mEe)({width:24,height:16});function jO(e){const a=e,{slots:t={},slotProps:r={}}=a,n=xe(a,["slots","slotProps"]),i=e;return fe.jsx("li",{children:fe.jsx(gEe,B(M({focusRipple:!0},n),{ownerState:i,children:fe.jsx(vEe,M({as:t.CollapsedIcon,ownerState:i},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(jO.propTypes={slotProps:_.shape({collapsedIcon:_.oneOfType([_.func,_.object])}),slots:_.shape({CollapsedIcon:_.elementType}),sx:_.object});function yEe(e){return bt("MuiBreadcrumbs",e)}const bEe=_t("MuiBreadcrumbs",["root","ol","li","separator"]),_Ee=e=>{const{classes:t}=e;return Dt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},yEe,t)},wEe=Ne(qr,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${bEe.li}`]:t.li},t.root]})({}),CEe=Ne("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),xEe=Ne("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function TEe(e,t,r,n){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,fe.jsx(xEe,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${o}`)):i.push(a),i),[])}const WO=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiBreadcrumbs"}),N=n,{children:i,className:a,component:o="nav",slots:s={},slotProps:u={},expandText:c="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:h=1,maxItems:p=8,separator:m="/"}=N,v=xe(N,["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),[g,b]=Q.useState(!1),C=B(M({},n),{component:o,expanded:g,expandText:c,itemsAfterCollapse:d,itemsBeforeCollapse:h,maxItems:p,separator:m}),x=_Ee(C),E=Rv({elementType:s.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:C}),T=Q.useRef(null),A=I=>{const H=()=>{b(!0);const G=T.current.querySelector("a[href],button,[tabindex]");G&&G.focus()};return h+d>=I.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${h}} >= maxItems={${p}}`].join(`
542
- `)),I):[...I.slice(0,h),fe.jsx(jO,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:H},"ellipsis"),...I.slice(I.length-d,I.length)]},R=Q.Children.toArray(i).filter(I=>(process.env.NODE_ENV!=="production"&&Jv.isFragment(I)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
543
- `)),Q.isValidElement(I))).map((I,H)=>fe.jsx("li",{className:x.li,children:I},`child-${H}`));return fe.jsx(wEe,B(M({ref:r,component:o,color:"textSecondary",className:je(x.root,a),ownerState:C},v),{children:fe.jsx(CEe,{className:x.ol,ref:T,ownerState:C,children:TEe(g||p&&R.length<=p?R:A(R),x.separator,m,C)})}))});process.env.NODE_ENV!=="production"&&(WO.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,expandText:_.string,itemsAfterCollapse:Vn,itemsBeforeCollapse:Vn,maxItems:Vn,separator:_.node,slotProps:_.shape({collapsedIcon:_.oneOfType([_.func,_.object])}),slots:_.shape({CollapsedIcon:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function SEe(e){return bt("MuiButton",e)}const ya=_t("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),UO=Q.createContext({});process.env.NODE_ENV!=="production"&&(UO.displayName="ButtonGroupContext");const VO=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(VO.displayName="ButtonGroupButtonContext");const EEe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:o,loadingPosition:s,classes:u}=e,c={root:["root",o&&"loading",a,`${a}${Le(t)}`,`size${Le(i)}`,`${a}Size${Le(i)}`,`color${Le(t)}`,r&&"disableElevation",n&&"fullWidth",o&&`loadingPosition${Le(s)}`],startIcon:["icon","startIcon",`iconSize${Le(i)}`],endIcon:["icon","endIcon",`iconSize${Le(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Dt(c,SEe,u);return M(M({},u),d)},GO=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],MEe=Ne(Wa,{shouldForwardProp:e=>Eu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Le(r.color)}`],t[`size${Le(r.size)}`],t[`${r.variant}Size${Le(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})($t(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return B(M({},e.typography.button),{minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ya.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ya.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ya.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ya.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ea()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:Rt(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ya.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ya.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ya.loading}`]:{color:"transparent"}}}]})})),AEe=Ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Le(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...GO]})),PEe=Ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Le(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...GO]})),REe=Ne("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),oT=Ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),bu=Q.forwardRef(function(t,r){const n=Q.useContext(UO),i=Q.useContext(VO),a=zl(n,t),o=Mt({props:a,name:"MuiButton"}),q=o,{children:s,color:u="primary",component:c="button",className:d,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:g,fullWidth:b=!1,id:C,loading:x=null,loadingIndicator:E,loadingPosition:T="center",size:A="medium",startIcon:R,type:N,variant:I="text"}=q,H=xe(q,["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","id","loading","loadingIndicator","loadingPosition","size","startIcon","type","variant"]),G=Dh(C),Y=E!=null?E:fe.jsx(Jb,{"aria-labelledby":G,color:"inherit",size:16}),O=B(M({},o),{color:u,component:c,disabled:h,disableElevation:p,disableFocusRipple:m,fullWidth:b,loading:x,loadingIndicator:Y,loadingPosition:T,size:A,type:N,variant:I}),F=EEe(O),X=(R||x&&T==="start")&&fe.jsx(AEe,{className:F.startIcon,ownerState:O,children:R||fe.jsx(oT,{className:F.loadingIconPlaceholder,ownerState:O})}),W=(v||x&&T==="end")&&fe.jsx(PEe,{className:F.endIcon,ownerState:O,children:v||fe.jsx(oT,{className:F.loadingIconPlaceholder,ownerState:O})}),V=i||"",z=typeof x=="boolean"?fe.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:x&&fe.jsx(REe,{className:F.loadingIndicator,ownerState:O,children:Y})}):null;return fe.jsxs(MEe,B(M({ownerState:O,className:je(n.className,F.root,d,V),component:c,disabled:h||x,focusRipple:!m,focusVisibleClassName:je(F.focusVisible,g),ref:r,type:N,id:x?G:C},H),{classes:F,children:[X,T!=="end"&&z,s,T==="end"&&z,W]}))});process.env.NODE_ENV!=="production"&&(bu.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","primary","secondary","success","error","info","warning"]),_.string]),component:_.elementType,disabled:_.bool,disableElevation:_.bool,disableFocusRipple:_.bool,disableRipple:_.bool,endIcon:_.node,focusVisibleClassName:_.string,fullWidth:_.bool,href:_.string,id:_.string,loading:_.bool,loadingIndicator:_.node,loadingPosition:_.oneOf(["center","end","start"]),size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),startIcon:_.node,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),type:_.oneOfType([_.oneOf(["button","reset","submit"]),_.string]),variant:_.oneOfType([_.oneOf(["contained","outlined","text"]),_.string])});const OEe=Ye(Ha)`
544
- && {
545
- position: absolute;
546
- left: 0;
547
- right: auto;
548
- margin: auto;
549
- bottom: 0;
550
- top: 0;
551
- z-index: 10;
552
- background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0) 100%);
553
- display: inline-flex;
554
-
555
- span[aria-label='prev-item'] {
556
- width: 0;
557
- height: 0;
558
- border-top: 6px solid transparent;
559
- border-bottom: 6px solid transparent;
560
- border-right: 5px solid #000;
561
- color: transparent;
562
- opacity: 0.3;
563
-
564
- &:hover {
565
- opacity: 0.8;
566
- }
567
- }
568
- }
569
- `,kEe=Ye(Ha)`
570
- && {
571
- position: absolute;
572
- left: auto;
573
- right: 0;
574
- margin: auto;
575
- bottom: 0;
576
- top: 0;
577
- z-index: 10;
578
- background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, white 70%);
579
- display: inline-flex;
580
-
581
- span[aria-label='next-item'] {
582
- width: 0;
583
- height: 0;
584
- border-top: 6px solid transparent;
585
- border-bottom: 6px solid transparent;
586
- border-left: 5px solid #000;
587
- color: transparent;
588
- opacity: 0.3;
589
-
590
- &:hover {
591
- opacity: 0.8;
592
- }
593
- }
594
- }
595
- `,DEe=({currentDimension:e,children:t})=>{const{t:r}=w.useTranslation(),n=k.useRef(null),[i,a]=k.useState(0),[o,s]=k.useState(0),[u,c]=k.useState(0),d=()=>{var v;return(v=n.current)==null?void 0:v.querySelector("ol")};k.useEffect(()=>{const v=d();if(v){const g=v.clientWidth,b=v.scrollWidth,C=v.scrollLeft;a(g),s(b),c(C)}},[e]),k.useEffect(()=>{const v=d();function g(){if(v){const x=v.clientWidth;a(x)}}function b(){if(v){const x=v.scrollLeft;c(x)}}const C=new ResizeObserver(g);return v?(C.observe(v),v.addEventListener("scroll",b),()=>{C.disconnect(),v.removeEventListener("scroll",b)}):()=>{}},[]);const h=v=>{const b="smooth",C=d();C&&C.scrollBy({left:v==="right"?200:-200,behavior:b})},p=u!=0,m=Math.floor(o-u)>i;return w.jsxs("div",{style:{position:"relative"},children:[p&&w.jsx(OEe,{onClick:()=>h("left"),children:w.jsx("span",{"aria-label":"prev-item",children:r("drilldown.breadcrumbsPrev")})}),m&&w.jsx(kEe,{onClick:()=>h("right"),children:w.jsx("span",{"aria-label":"next-item",children:r("drilldown.breadcrumbsNext")})}),w.jsx("div",{ref:n,children:t})]})},NEe=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{const{t:i}=w.useTranslation(),a=t.name,o=Ye(bu)`
596
- && {
597
- background-color: ${n.activeDrillBackgroundColor};
598
- color: ${n.primaryButtonTextColor};
599
- border-radius: 100%;
600
- border: 2px solid white;
601
- min-width: 39px;
602
- width: 39px;
603
- height: 39px;
604
- z-index: 10;
605
- padding: 7px;
606
- cursor: pointer;
607
- text-transform: none;
608
- margin-right: -5px;
609
-
610
- &:hover {
611
- background-color: ${n.activeDrillHoverBackgroundColor};
612
- color: ${n.primaryTextColor};
613
- }
614
- }
615
- `,s=Ye.svg`
616
- width: 22px;
617
- height: 22px;
618
- fill: #9ea2ab;
619
- `,u=()=>w.jsx(o,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:w.jsx(s,{width:22,height:22,viewBox:"0 0 24 24",children:w.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=Ye(bu)`
620
- && {
621
- position: relative;
622
- font-family: ${h=>h.theme.fontFamily};
623
- border-radius: 0;
624
- border: 1px solid ${Xn};
625
- background-color: ${h=>h.theme.chartBackgroundColor};
626
- border-right: none;
627
- border-left: none;
628
- color: ${h=>h.theme.secondaryTextColor};
629
- padding-right: 1.25rem;
630
- padding-left: 1.875rem;
631
- height: 1.64rem;
632
- font-size: 13px;
633
- transition: background-color 0.2s, border-color 0.2s, color 0.2s;
634
- text-transform: none;
635
- cursor: auto;
636
- pointer-events: none;
637
- white-space: nowrap;
638
-
639
- &:hover {
640
- background-color: ${h=>h.theme.chartBackgroundColor};
641
- border: 1px solid ${Xn};
642
- border-right: none;
643
- border-left: none;
644
- }
645
- }
646
- `;return{CancelButton:u,CurrentDrillButton:()=>w.jsxs(c,{theme:n,children:[a," (",i("drilldown.breadcrumbsAllSuffix"),")",w.jsx("span",{className:"flex items-center justify-between",children:w.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 ${Xn}`,borderRight:`1px solid ${Xn}`}})})]})}},IEe={modifiers:[{name:"offset",options:{offset:[0,12]}}]},LEe=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>{const{t:i}=w.useTranslation();return w.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:[w.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.members")}),w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),w.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.table")}),w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),w.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.column")}),w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]})},FEe=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[i,a]=n?n[1].split("."):["",""],o=!!e;return w.jsx(Xu,{open:o,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:IEe,children:e&&w.jsx(LEe,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:i,currentColumn:a})})},$Ee=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:i,primaryButtonTextColor:a},chart:{backgroundColor:o}}}=gt(),s=w.scaleBrightness(o,-.02),u=w.scaleBrightness(s,-.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:i,primaryButtonTextColor:a,chartBackgroundColor:o,activeDrillBackgroundColor:s,activeDrillHoverBackgroundColor:u}},Xn="#F2F2F2",BEe=Ye(bu)`
647
- && {
648
- font-family: ${({theme:e})=>e.fontFamily};
649
- position: relative;
650
- border-radius: 0;
651
- border: 1px solid ${Xn};
652
- border-right: none;
653
- color: ${({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor};
654
- background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor};
655
- padding-right: 1.25rem;
656
- padding-left: 1.875rem;
657
- height: 1.64rem;
658
- font-size: 13px;
659
- text-transform: none;
660
- transition: background-color 0.2s, border-color 0.2s, color 0.2s;
661
- white-space: nowrap;
662
- cursor: ${({active:e})=>e==="true"?"pointer":"auto"};
663
- margin-right: ${({active:e})=>e==="true"?"5px":"0px"};
664
-
665
- &:hover {
666
- background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor};
667
- border: 1px solid ${Xn};
668
- border-right: none;
669
- }
670
-
671
- .MuiTouchRipple-root {
672
- display: none;
673
- }
674
- }
675
- `,HEe=Ye(WO)`
676
- .MuiBreadcrumbs-ol {
677
- flex-wrap: nowrap;
678
- overflow: hidden;
679
- }
680
- .MuiBreadcrumbs-separator {
681
- display: none;
682
- }
683
- `,zEe=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:i,themeProps:a,popperParams:o,index:s})=>w.jsx(BEe,{theme:a,active:e.toString(),index:s,onMouseEnter:r,onMouseLeave:n,onClick:i,children:w.jsxs("span",{className:"flex items-center justify-between",children:[w.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?w.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===(o==null?void 0:o.filterDisplayValues)?a.activeDrillHoverBackgroundColor:a.activeDrillBackgroundColor,borderTop:`1px solid ${Xn}`,borderRight:`1px solid ${Xn}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,w.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:a.chartBackgroundColor,borderTop:`1px solid ${Xn}`,borderRight:`1px solid ${Xn}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),qO=Mu({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[i,a]=k.useState(null),[o,s]=k.useState(!1),u=$Ee(),{CancelButton:c,CurrentDrillButton:d}=NEe({clearDrilldownSelections:r,currentDimension:t,isHovered:o,setIsHovered:s,themeProps:u}),h=g=>b=>{s(!0),a({filterDisplayValues:g,anchorEl:b.currentTarget})},p=()=>{s(!1),a(null)},m=g=>g<e.length-1,v=g=>g===e.length-2;return e.length?w.jsx("div",{"data-testid":"drilldown-breadcrumbs",children:w.jsx(DEe,{currentDimension:t,children:w.jsxs(HEe,{separator:null,sx:{backgroundColor:u.chartBackgroundColor,padding:"4px"},children:[w.jsx(c,{}),e.map((g,b)=>{const C=m(b),x=v(b);return w.jsx("div",{children:w.jsx(zEe,{isActive:C,isLastActive:x,filterDisplayValue:g,handleMouseEnter:h(g),handleMouseLeave:p,handleClick:()=>n(b+1),themeProps:u,popperParams:i,index:b})},b)}),w.jsx(d,{}),w.jsx(FEe,{popperParams:i,currentDimension:t,themeProps:u})]})})}):null}),YO=e=>{const{initialDimension:t,onDrilldownSelectionsChange:r}=e,n=k.useMemo(()=>e.drilldownPaths||[],[e.drilldownPaths]),i=k.useMemo(()=>e.initialDrilldownSelections||[],[e.initialDrilldownSelections]),{t:a}=w.useTranslation();if(!t)throw new D.TranslatableError("errors.drilldownNoInitialDimension");const[o,s]=Ub(i,{onLocalStateChange:r}),u=k.useMemo(()=>hh(t,o),[t,o]),c=k.useMemo(()=>dh(n,u),[n,u]),d=k.useCallback((b,C,x)=>{s(E=>XO(E,b,C,x))},[s]),h=k.useCallback(b=>{s(C=>C.slice(0,b))},[s]),p=k.useCallback(()=>{s([])},[s]),{drilldownFilters:m,drilldownFiltersDisplayValues:v,drilldownDimension:g}=k.useMemo(()=>KO(o,t,a),[o,t,a]);return{drilldownSelections:o,availableDrilldownPaths:c,drilldownFilters:m,drilldownFiltersDisplayValues:v,drilldownDimension:g,selectDrilldown:d,sliceDrilldownSelections:h,clearDrilldownSelections:p}},XO=(e,t,r,n)=>{var p,m;if(!(n!=null&&n.levels))return[...e,{points:t,nextDimension:r}];if(Zr(n.levels[0],r))return[];const a=(p=e==null?void 0:e.findIndex(v=>Zr(v.nextDimension,r)))!=null?p:-1;if(a!==-1)return e.slice(0,a+1);const s=(m=D.last(e))==null?void 0:m.nextDimension,u=e.length?n.levels.findIndex(v=>s&&Zr(v,s)):0,c=n.levels.indexOf(r),h=n.levels.slice(u+1,c+1).map((v,g)=>({points:g===0?t:[],nextDimension:v}));return[...e,...h]},KO=(e,t,r)=>{let n=t&&w.translateColumnToAttribute(t);const i=[],a=[];return e.forEach(({points:o,nextDimension:s})=>{i.push(D.members(n,o.map(jEe)));const u=o.length?o.map(ZO):[`${n.name} (${r("drilldown.breadcrumbsAllSuffix")})`];a.push(u),n=s}),{drilldownFilters:i,drilldownFiltersDisplayValues:a,drilldownDimension:n}};function ZO(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function jEe(e){return"categoryValue"in e?`${e.categoryValue}`:""}const QO=({initialDimension:e,initialDrilldownSelections:t,openMenu:r,onDrilldownSelectionsChange:n})=>{const{t:i}=w.useTranslation(),{drilldownFilters:a,drilldownFiltersDisplayValues:o,drilldownDimension:s,drilldownSelections:u,selectDrilldown:c,sliceDrilldownSelections:d,clearDrilldownSelections:h}=YO({initialDimension:e,initialDrilldownSelections:t,onDrilldownSelectionsChange:n}),p=k.useCallback((v,g,b=[],C)=>{const x=ek(b,s,(T,A)=>{C==null||C(T,A),c(g,T,A)},i),E=[JO(g,s),...x?[x]:[]];r({id:yu.WIDGET_POINTS_DRILLDOWN,position:v,itemSections:E})},[s,i,c,r]),m=k.useMemo(()=>s&&w.jsx(qO,{filtersDisplayValues:o,currentDimension:s,clearDrilldownSelections:h,sliceDrilldownSelections:d}),[h,s,o,d]);return{drilldownDimension:s,drilldownSelections:u,drilldownFilters:a,breadcrumbs:m,openDrilldownMenu:p}};function JO(e,t){const r=gv(e.map(ZO).filter(n=>!!n));return r.length>HO?{id:ls.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:t.name}:{id:ls.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:r.join(", ")}}function WEe(e){return 30+12*e}function ek(e,t,r,n){const[i,a]=tc(e,D.MetadataTypes.isAttribute.bind(D.MetadataTypes)),o=i.map(c=>({caption:c.name,onClick:()=>r(c)})),u=[...a.map(c=>({caption:c.title,subItems:[{items:c.levels.map((d,h)=>({caption:d.name,class:h===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${WEe(h)}px`},disabled:Zr(d,t),onClick:()=>r(d,c)}))}]})),...o];return u.length===0?null:{id:ls.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:n("drilldown.drillMenuItem"),items:u}}function UEe(e){const{_id:t,title:r,levels:n}=e;return{id:t,title:r,levels:n.map(i=>D.createDimensionalElementFromJaql(i))}}function tk(e,t,r){return Vt(this,null,function*(){const i=yield new cf(e,r).getHierarchies(t);return i==null?void 0:i.map(a=>UEe(a))})}function rk(){const{isInitialized:e,app:t}=ut();return{getHierarchies:k.useCallback(n=>Vt(this,null,function*(){const{attribute:i,dataSource:a,ids:o}=n;if(!e||!t)throw new D.TranslatableError("errors.noSisenseContext");return tk(t.httpClient,{dimension:i,dataSource:a,ids:o,alwaysIncluded:!0},t.defaultDataSource)}),[e,t])}}function VEe(e){const t=Is(e,["attribute","dataSource","drilldownPaths","enabled"]),{attribute:r,dataSource:n,drilldownPaths:i,enabled:a}=e,[o,s]=k.useMemo(()=>tc(i,ff),[i]),{getHierarchies:u}=rk(),[c,d]=k.useState([]);return k.useEffect(()=>{(a||a===void 0)&&t&&u({attribute:r,dataSource:n,ids:o}).then(p=>{d(m=>p.length>0||m.length!==p.length?p:m)}).catch(p=>{console.error("Failed to load hierarchies",p)})},[t,a,r,n,o,u]),k.useMemo(()=>c.length?[...c,...s]:s,[c,s])}const GEe=({propsToExtend:e,onDrilldownSelectionsChange:t})=>{const{chartType:r,dataOptions:n,dataSource:i,drilldownOptions:a}=e,{drilldownSelections:o}=a||{},{openMenu:s}=e1(),u=k.useMemo(()=>pEe(r,n),[r,n]),c=k.useMemo(()=>(a==null?void 0:a.drilldownPaths)||[],[a==null?void 0:a.drilldownPaths]),d=k.useMemo(()=>{const H=D.createAttribute({name:"dummy drilldown initial attribute"});return dEe(r,n)||H},[r,n]),h=VEe({attribute:d,dataSource:i,drilldownPaths:c,enabled:u}),p=k.useRef(h);k.useEffect(()=>{p.current=h},[h]);const m=k.useMemo(()=>{var G;return(!!((G=a==null?void 0:a.drilldownSelections)!=null&&G.length)||!!(h!=null&&h.length))&&u},[a,u,h]),{drilldownDimension:v,drilldownFilters:g,breadcrumbs:b,openDrilldownMenu:C}=QO({initialDimension:d,initialDrilldownSelections:o,openMenu:s,onDrilldownSelectionsChange:t}),x=k.useCallback((H,G)=>{const Y=aT(H,G,n),O=hh(d,o||[]),F=dh(p.current,O);C({left:G.clientX,top:G.clientY},Y,F)},[n,d,o,C]),E=k.useCallback((H,G)=>{const Y=aT([H],G,n),O=hh(d,o||[]),F=dh(p.current,O);C({left:G.clientX,top:G.clientY},Y,F)},[n,d,o,C]),T=k.useMemo(()=>zO(r,n,v),[r,n,v]),A=k.useMemo(()=>g.length?D.mergeFiltersOrFilterRelations(e.filters||[],g):e.filters,[e.filters,g]),R=k.useMemo(()=>w.combineHandlers([x,e.onDataPointsSelected]),[x,e.onDataPointsSelected]),N=k.useMemo(()=>w.combineHandlers([E,e.onDataPointContextMenu]),[E,e.onDataPointContextMenu]);return{propsWithDrilldown:B(M({},e),{dataOptions:T,filters:A,onDataPointsSelected:R,onDataPointContextMenu:N}),isDrilldownEnabled:m,breadcrumbs:b}},qEe=Mu({componentName:"ChartWidget"})(e=>{var F,X,W;const{app:t}=ut(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:i,styleOptions:a,highlightSelectionDisabled:o=!1,highlights:s,description:u,onChange:c}=e,{width:d,height:h}=a||{},p=k.useMemo(()=>{var V;return mS(r,{hasHeader:!((V=a==null?void 0:a.header)!=null&&V.hidden)})},[r,(F=a==null?void 0:a.header)==null?void 0:F.hidden]),m=k.useMemo(()=>({width:d,height:h}),[d,h]),[v,g]=k.useState(0),b=k.useMemo(()=>D.omit(a,["width","height"]),[a]),C=k.useCallback(V=>{c==null||c({type:"drilldownSelections/changed",payload:V})},[c]),{headerConfig:x,titleEditor:E}=fO({title:e.title,onChange:e.onChange,headerConfig:(X=e.config)==null?void 0:X.header}),{headerConfig:T}=xSe({baseHeaderConfig:x,title:e.title,chartType:r,dataOptions:i,dataSource:n,filters:e.filters,highlights:e.highlights,config:e.config}),{headerConfig:A}=HSe({baseHeaderConfig:T,title:e.title,chartType:r,dataOptions:i,dataSource:n,config:e.config,id:e.id}),{propsWithDrilldown:R,isDrilldownEnabled:N,breadcrumbs:I}=GEe({propsToExtend:e,onDrilldownSelectionsChange:C}),H=mTe({chartType:r,dataOptions:i,enabled:!o&&!N&&!(s!=null&&s.length)}),G=(W=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:W.enabled,Y=k.useCallback(V=>{var z;return G?B(M({},V),{accessibility:B(M({},V.accessibility),{description:u!=null?u:(z=V.accessibility)==null?void 0:z.description})}):V},[u,G]);if(!r||!i)return null;const O=B(M({},R),{dataSet:n,styleOptions:b,refreshCounter:v,onDataPointClick:k.useMemo(()=>w.combineHandlers([H.onDataPointClick,e.onDataPointClick]),[H.onDataPointClick,e.onDataPointClick]),onDataPointContextMenu:R.onDataPointContextMenu,onDataPointsSelected:k.useMemo(()=>w.combineHandlers([H.onDataPointsSelected,R.onDataPointsSelected]),[H.onDataPointsSelected,R.onDataPointsSelected]),onBeforeRender:k.useMemo(()=>w.combineHandlers([Y,H.onBeforeRender,e.onBeforeRender],!0),[Y,H.onBeforeRender,e.onBeforeRender])});return w.jsx(Ih,{defaultSize:p,size:m,children:w.jsx(TO,B(M({},e),{headerConfig:A,titleEditor:E,topSlot:w.jsxs(w.Fragment,{children:[e.topSlot,I]}),dataSetName:n&&D.getDataSourceName(n),onRefresh:()=>g(v+1),children:w.jsx(HR,M({},O))}))})});class Ls{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 _u=typeof window=="undefined"||"Deno"in window;function hn(){}function YEe(e,t){return typeof e=="function"?e(t):e}function vv(e){return typeof e=="number"&&e>=0&&e!==1/0}function nk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sl(e,t,r){return rc(e)?typeof t=="function"?B(M({},r),{queryKey:e,queryFn:t}):B(M({},t),{queryKey:e}):e}function XEe(e,t,r){return rc(e)?B(M({},t),{mutationKey:e}):typeof e=="function"?B(M({},t),{mutationFn:e}):M({},e)}function ji(e,t,r){return rc(e)?[B(M({},t),{queryKey:e}),r]:[e||{},t]}function sT(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(rc(o)){if(n){if(t.queryHash!==s1(o,t.options))return!1}else if(!zo(t.queryKey,o))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i!="undefined"&&i!==t.state.fetchStatus||a&&!a(t))}function lT(e,t){const{exact:r,fetching:n,predicate:i,mutationKey:a}=e;if(rc(a)){if(!t.options.mutationKey)return!1;if(r){if(Ea(t.options.mutationKey)!==Ea(a))return!1}else if(!zo(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function s1(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ea)(e)}function Ea(e){return JSON.stringify(e,(t,r)=>yv(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function zo(e,t){return ik(e,t)}function ik(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!ik(e[r],t[r])):!1}function ak(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=uT(e)&&uT(t);if(n||yv(e)&&yv(t)){const i=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let u=0;for(let c=0;c<o;c++){const d=n?c:a[c];s[d]=ak(e[d],t[d],r+1),s[d]===e[d]&&u++}return i===o&&u===i?e:s}return t}function fh(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function uT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yv(e){if(!cT(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!cT(r)||!r.hasOwnProperty("isPrototypeOf"))}function cT(e){return Object.prototype.toString.call(e)==="[object Object]"}function rc(e){return Array.isArray(e)}function ok(e){return new Promise(t=>{setTimeout(t,e)})}function dT(e){ok(0).then(e)}function KEe(){if(typeof AbortController=="function")return new AbortController}function bv(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?ak(e,t):t}class ZEe extends Ls{constructor(){super(),this.setup=t=>{if(!_u&&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 ph=new ZEe,hT=["online","offline"];class QEe extends Ls{constructor(){super(),this.setup=t=>{if(!_u&&window.addEventListener){const r=()=>t();return hT.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{hT.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 mh=new QEe;function JEe(e){return Math.min(1e3*Bn(2,e),3e4)}function tp(e){return(e!=null?e:"online")==="online"?mh.isOnline():!0}class sk{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ad(e){return e instanceof sk}function lk(e){let t=!1,r=0,n=!1,i,a,o;const s=new Promise((b,C)=>{a=b,o=C}),u=b=>{n||(m(new sk(b)),e.abort==null||e.abort())},c=()=>{t=!0},d=()=>{t=!1},h=()=>!ph.isFocused()||e.networkMode!=="always"&&!mh.isOnline(),p=b=>{n||(n=!0,e.onSuccess==null||e.onSuccess(b),i==null||i(),a(b))},m=b=>{n||(n=!0,e.onError==null||e.onError(b),i==null||i(),o(b))},v=()=>new Promise(b=>{i=C=>{const x=n||!h();return x&&b(C),x},e.onPause==null||e.onPause()}).then(()=>{i=void 0,n||e.onContinue==null||e.onContinue()}),g=()=>{if(n)return;let b;try{b=e.fn()}catch(C){b=Promise.reject(C)}Promise.resolve(b).then(p).catch(C=>{var x,E;if(n)return;const T=(x=e.retry)!=null?x:3,A=(E=e.retryDelay)!=null?E:JEe,R=typeof A=="function"?A(r,C):A,N=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,C);if(t||!N){m(C);return}r++,e.onFail==null||e.onFail(r,C),ok(R).then(()=>{if(h())return v()}).then(()=>{t?m(C):g()})})};return tp(e.networkMode)?g():v().then(g),{promise:s,cancel:u,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:c,continueRetry:d}}const l1=console;function eMe(){let e=[],t=0,r=d=>{d()},n=d=>{d()};const i=d=>{let h;t++;try{h=d()}finally{t--,t||s()}return h},a=d=>{t?e.push(d):dT(()=>{r(d)})},o=d=>(...h)=>{a(()=>{d(...h)})},s=()=>{const d=e;e=[],d.length&&dT(()=>{n(()=>{d.forEach(h=>{r(h)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d}}}const qt=eMe();class uk{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vv(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:_u?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class tMe extends uk{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||l1,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||rMe(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=M(M({},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=bv(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(hn).catch(hn):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||!nk(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,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(v=>v.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 o=KEe(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};u(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),d={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(u(d),(n=this.options.behavior)==null||n.onFetch(d),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=d.fetchOptions)==null?void 0:i.meta)){var h;this.dispatch({type:"fetch",meta:(h=d.fetchOptions)==null?void 0:h.meta})}const p=m=>{if(Ad(m)&&m.silent||this.dispatch({type:"error",error:m}),!Ad(m)){var v,g,b,C;(v=(g=this.cache.config).onError)==null||v.call(g,m,this),(b=(C=this.cache.config).onSettled)==null||b.call(C,this.state.data,m,this),process.env.NODE_ENV!=="production"&&this.logger.error(m)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=lk({fn:d.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:m=>{var v,g,b,C;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),p(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(v=(g=this.cache.config).onSuccess)==null||v.call(g,m,this),(b=(C=this.cache.config).onSettled)==null||b.call(C,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(m,v)=>{this.dispatch({type:"failed",failureCount:m,error:v})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var i,a;switch(t.type){case"failed":return B(M({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return B(M({},n),{fetchStatus:"paused"});case"continue":return B(M({},n),{fetchStatus:"fetching"});case"fetch":return M(B(M({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:tp(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return M(B(M({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const o=t.error;return Ad(o)&&o.revert&&this.revertState?B(M({},this.revertState),{fetchStatus:"idle"}):B(M({},n),{error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return B(M({},n),{isInvalidated:!0});case"setState":return M(M({},n),t.state)}};this.state=r(this.state),qt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function rMe(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 nMe extends Ls{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var i;const a=r.queryKey,o=(i=r.queryHash)!=null?i:s1(a,r);let s=this.get(o);return s||(s=new tMe({cache:this,logger:t.getLogger(),queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),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(){qt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=ji(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(i=>sT(n,i))}findAll(t,r){const[n]=ji(t,r);return Object.keys(n).length>0?this.queries.filter(i=>sT(n,i)):this.queries}notify(t){qt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){qt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){qt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class iMe extends uk{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||l1,this.observers=[],this.state=t.state||ck(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=M(M({},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 Vt(this,null,function*(){const t=()=>{var N;return this.retryer=lk({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(I,H)=>{this.dispatch({type:"failed",failureCount:I,error:H})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(N=this.options.retry)!=null?N:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,i,a,o,s,u,c,d;if(!r){var h,p,m,v;this.dispatch({type:"loading",variables:this.options.variables}),yield(h=(p=this.mutationCache.config).onMutate)==null?void 0:h.call(p,this.state.variables,this);const I=yield(m=(v=this.options).onMutate)==null?void 0:m.call(v,this.state.variables);I!==this.state.context&&this.dispatch({type:"loading",context:I,variables:this.state.variables})}const N=yield t();return yield(n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,N,this.state.variables,this.state.context,this),yield(a=(o=this.options).onSuccess)==null?void 0:a.call(o,N,this.state.variables,this.state.context),yield(s=(u=this.mutationCache.config).onSettled)==null?void 0:s.call(u,N,null,this.state.variables,this.state.context,this),yield(c=(d=this.options).onSettled)==null?void 0:c.call(d,N,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:N}),N}catch(N){try{var g,b,C,x,E,T,A,R;throw yield(g=(b=this.mutationCache.config).onError)==null?void 0:g.call(b,N,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(N),yield(C=(x=this.options).onError)==null?void 0:C.call(x,N,this.state.variables,this.state.context),yield(E=(T=this.mutationCache.config).onSettled)==null?void 0:E.call(T,void 0,N,this.state.variables,this.state.context,this),yield(A=(R=this.options).onSettled)==null?void 0:A.call(R,void 0,N,this.state.variables,this.state.context),N}finally{this.dispatch({type:"error",error:N})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return B(M({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return B(M({},n),{isPaused:!0});case"continue":return B(M({},n),{isPaused:!1});case"loading":return B(M({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!tp(this.options.networkMode),status:"loading",variables:t.variables});case"success":return B(M({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return B(M({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return M(M({},n),t.state)}};this.state=r(this.state),qt.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function ck(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class aMe extends Ls{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const i=new iMe({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(i),i}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(){qt.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=>lT(t,r))}findAll(t){return this.mutations.filter(r=>lT(t,r))}notify(t){qt.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 qt.batch(()=>r.reduce((n,i)=>n.then(()=>i.continue().catch(hn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function oMe(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,a,o;const s=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,u=(n=e.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,c=u==null?void 0:u.pageParam,d=(u==null?void 0:u.direction)==="forward",h=(u==null?void 0:u.direction)==="backward",p=((a=e.state.data)==null?void 0:a.pages)||[],m=((o=e.state.data)==null?void 0:o.pageParams)||[];let v=m,g=!1;const b=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var N;if((N=e.signal)!=null&&N.aborted)g=!0;else{var I;(I=e.signal)==null||I.addEventListener("abort",()=>{g=!0})}return e.signal}})},C=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),x=(R,N,I,H)=>(v=H?[N,...v]:[...v,N],H?[I,...R]:[...R,I]),E=(R,N,I,H)=>{if(g)return Promise.reject("Cancelled");if(typeof I=="undefined"&&!N&&R.length)return Promise.resolve(R);const G={queryKey:e.queryKey,pageParam:I,meta:e.options.meta};b(G);const Y=C(G);return Promise.resolve(Y).then(F=>x(R,I,F,H))};let T;if(!p.length)T=E([]);else if(d){const R=typeof c!="undefined",N=R?c:fT(e.options,p);T=E(p,R,N)}else if(h){const R=typeof c!="undefined",N=R?c:sMe(e.options,p);T=E(p,R,N,!0)}else{v=[];const R=typeof e.options.getNextPageParam=="undefined";T=(s&&p[0]?s(p[0],0,p):!0)?E([],R,m[0]):Promise.resolve(x([],m[0],p[0]));for(let I=1;I<p.length;I++)T=T.then(H=>{if(s&&p[I]?s(p[I],I,p):!0){const Y=R?m[I]:fT(e.options,H);return E(H,R,Y)}return Promise.resolve(x(H,m[I],p[I]))})}return T.then(R=>({pages:R,pageParams:v}))}}}}function fT(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function sMe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class lMe{constructor(t={}){this.queryCache=t.queryCache||new nMe,this.mutationCache=t.mutationCache||new aMe,this.logger=t.logger||l1,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=ph.subscribe(()=>{ph.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=mh.subscribe(()=>{mh.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]=ji(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(B(M({},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 i=Sl(t,r,n),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(t,r,n){const i=this.queryCache.find(t),a=i==null?void 0:i.state.data,o=YEe(r,a);if(typeof o=="undefined")return;const s=Sl(t),u=this.defaultQueryOptions(s);return this.queryCache.build(this,u).setData(o,B(M({},n),{manual:!0}))}setQueriesData(t,r,n){return qt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=ji(t,r),i=this.queryCache;qt.batch(()=>{i.findAll(n).forEach(a=>{i.remove(a)})})}resetQueries(t,r,n){const[i,a]=ji(t,r,n),o=this.queryCache,s=M({type:"active"},i);return qt.batch(()=>(o.findAll(i).forEach(u=>{u.reset()}),this.refetchQueries(s,a)))}cancelQueries(t,r,n){const[i,a={}]=ji(t,r,n);typeof a.revert=="undefined"&&(a.revert=!0);const o=qt.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(a)));return Promise.all(o).then(hn).catch(hn)}invalidateQueries(t,r,n){const[i,a]=ji(t,r,n);return qt.batch(()=>{var o,s;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const u=B(M({},i),{type:(o=(s=i.refetchType)!=null?s:i.type)!=null?o:"active"});return this.refetchQueries(u,a)})}refetchQueries(t,r,n){const[i,a]=ji(t,r,n),o=qt.batch(()=>this.queryCache.findAll(i).filter(u=>!u.isDisabled()).map(u=>{var c;return u.fetch(void 0,B(M({},a),{cancelRefetch:(c=a==null?void 0:a.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}}))}));let s=Promise.all(o).then(hn);return a!=null&&a.throwOnError||(s=s.catch(hn)),s}fetchQuery(t,r,n){const i=Sl(t,r,n),a=this.defaultQueryOptions(i);typeof a.retry=="undefined"&&(a.retry=!1);const o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(hn).catch(hn)}fetchInfiniteQuery(t,r,n){const i=Sl(t,r,n);return i.behavior=oMe(),this.fetchQuery(i)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(hn).catch(hn)}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(i=>Ea(t)===Ea(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>zo(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(i=>zo(t,i.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(i=>Ea(t)===Ea(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>zo(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(i=>zo(t,i.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=B(M(M(M({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=s1(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:B(M(M(M({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class uMe extends Ls{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),pT(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _v(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _v(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,i=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"),fh(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 a=this.hasListeners();a&&mT(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(r),a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return dMe(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 i=n,{refetchPage:t}=i,r=xe(i,["refetchPage"]);return this.fetch(B(M({},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(B(M({},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(hn)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),_u||this.currentResult.isStale||!vv(this.options.staleTime))return;const r=nk(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,!(_u||this.options.enabled===!1||!vv(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||ph.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,i=this.options,a=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,u=t!==n,c=u?t.state:this.currentQueryInitialState,d=u?this.currentResult:this.previousQueryResult,{state:h}=t;let{dataUpdatedAt:p,error:m,errorUpdatedAt:v,fetchStatus:g,status:b}=h,C=!1,x=!1,E;if(r._optimisticResults){const I=this.hasListeners(),H=!I&&pT(t,r),G=I&&mT(t,n,r,i);(H||G)&&(g=tp(t.options.networkMode)?"fetching":"paused",p||(b="loading")),r._optimisticResults==="isRestoring"&&(g="idle")}if(r.keepPreviousData&&!h.dataUpdatedAt&&d!=null&&d.isSuccess&&b!=="error")E=d.data,p=d.dataUpdatedAt,b=d.status,C=!0;else if(r.select&&typeof h.data!="undefined")if(a&&h.data===(o==null?void 0:o.data)&&r.select===this.selectFn)E=this.selectResult;else try{this.selectFn=r.select,E=r.select(h.data),E=bv(a==null?void 0:a.data,E,r),this.selectResult=E,this.selectError=null}catch(I){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(I),this.selectError=I}else E=h.data;if(typeof r.placeholderData!="undefined"&&typeof E=="undefined"&&b==="loading"){let I;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))I=a.data;else if(I=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof I!="undefined")try{I=r.select(I),this.selectError=null}catch(H){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(H),this.selectError=H}typeof I!="undefined"&&(b="success",E=bv(a==null?void 0:a.data,I,r),x=!0)}this.selectError&&(m=this.selectError,E=this.selectResult,v=Date.now(),b="error");const T=g==="fetching",A=b==="loading",R=b==="error";return{status:b,fetchStatus:g,isLoading:A,isSuccess:b==="success",isError:R,isInitialLoading:A&&T,data:E,dataUpdatedAt:p,error:m,errorUpdatedAt:v,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:T,isRefetching:T&&!A,isLoadingError:R&&h.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:x,isPreviousData:C,isRefetchError:R&&h.dataUpdatedAt!==0,isStale:u1(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,fh(n,r))return;this.currentResult=n;const i={cache:!0},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.trackedProps.size)return!0;const u=new Set(s!=null?s:this.trackedProps);return this.options.useErrorBoundary&&u.add("error"),Object.keys(this.currentResult).some(c=>{const d=c;return this.currentResult[d]!==r[d]&&u.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),this.notify(M(M({},i),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"&&!Ad(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){qt.batch(()=>{if(t.onSuccess){var r,n,i,a;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(i=(a=this.options).onSettled)==null||i.call(a,this.currentResult.data,null)}else if(t.onError){var o,s,u,c;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(u=(c=this.options).onSettled)==null||u.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:d})=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function cMe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function pT(e,t){return cMe(e,t)||e.state.dataUpdatedAt>0&&_v(e,t,t.refetchOnMount)}function _v(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&u1(e,t)}return!1}function mT(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&u1(e,r)}function u1(e,t){return e.isStaleByTime(t.staleTime)}function dMe(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!fh(e.getCurrentResult(),t)}var wv={exports:{}},Um={};/**
684
- * @license React
685
- * use-sync-external-store-shim.production.js
686
- *
687
- * Copyright (c) Meta Platforms, Inc. and affiliates.
688
- *
689
- * This source code is licensed under the MIT license found in the
690
- * LICENSE file in the root directory of this source tree.
691
- */var gT;function hMe(){if(gT)return Um;gT=1;var e=k;function t(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(h,p){var m=p(),v=n({inst:{value:m,getSnapshot:p}}),g=v[0].inst,b=v[1];return a(function(){g.value=m,g.getSnapshot=p,u(g)&&b({inst:g})},[h,m,p]),i(function(){return u(g)&&b({inst:g}),h(function(){u(g)&&b({inst:g})})},[h]),o(m),m}function u(h){var p=h.getSnapshot;h=h.value;try{var m=p();return!r(h,m)}catch(v){return!0}}function c(h,p){return p()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c:s;return Um.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Um}var Vm={};/**
692
- * @license React
693
- * use-sync-external-store-shim.development.js
694
- *
695
- * Copyright (c) Meta Platforms, Inc. and affiliates.
696
- *
697
- * This source code is licensed under the MIT license found in the
698
- * LICENSE file in the root directory of this source tree.
699
- */var vT;function fMe(){return vT||(vT=1,process.env.NODE_ENV!=="production"&&function(){function e(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}function t(m,v){d||i.startTransition===void 0||(d=!0,console.error("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 g=v();if(!h){var b=v();a(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}b=o({inst:{value:g,getSnapshot:v}});var C=b[0].inst,x=b[1];return u(function(){C.value=g,C.getSnapshot=v,r(C)&&x({inst:C})},[m,g,v]),s(function(){return r(C)&&x({inst:C}),m(function(){r(C)&&x({inst:C})})},[m]),c(g),g}function r(m){var v=m.getSnapshot;m=m.value;try{var g=v();return!a(m,g)}catch(b){return!0}}function n(m,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=k,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,u=i.useLayoutEffect,c=i.useDebugValue,d=!1,h=!1,p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?n:t;Vm.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Vm}process.env.NODE_ENV==="production"?wv.exports=hMe():wv.exports=fMe();var pMe=wv.exports;const dk=pMe.useSyncExternalStore,yT=Q.createContext(void 0),hk=Q.createContext(!1);function fk(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=yT),window.ReactQueryClientContext):yT)}const pk=({context:e}={})=>{const t=Q.useContext(fk(e,Q.useContext(hk)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},mMe=({client:e,children:t,context:r,contextSharing:n=!1})=>{Q.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 i=fk(r,n);return Q.createElement(hk.Provider,{value:!r&&n},Q.createElement(i.Provider,{value:e},t))},gMe=Q.createContext(!1),vMe=()=>Q.useContext(gMe);function yMe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const bMe=Q.createContext(yMe()),_Me=()=>Q.useContext(bMe);function mk(e,t){return typeof e=="function"?e(...t):!!e}const wMe=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},CMe=e=>{Q.useEffect(()=>{e.clearReset()},[e])},xMe=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&mk(r,[e.error,n]),TMe=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},SMe=(e,t)=>e.isLoading&&e.isFetching&&!t,EMe=(e,t,r)=>(e==null?void 0:e.suspense)&&SMe(t,r),MMe=(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 AMe(e,t){const r=pk({context:e.context}),n=vMe(),i=_Me(),a=r.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=qt.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=qt.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=qt.batchCalls(a.onSettled)),TMe(a),wMe(a,i),CMe(i);const[o]=Q.useState(()=>new t(r,a)),s=o.getOptimisticResult(a);if(dk(Q.useCallback(u=>{const c=n?()=>{}:o.subscribe(qt.batchCalls(u));return o.updateResult(),c},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),Q.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),EMe(a,s,n))throw MMe(a,o,i);if(xMe({result:s,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return a.notifyOnChangeProps?s:o.trackResult(s)}function gk(e,t,r){const n=Sl(e,t,r);return AMe(n,uMe)}const Cv=()=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4309 12L6.28445 6.85355C6.08918 6.65829 6.08918 6.34171 6.28445 6.14645C6.47971 5.95118 6.79629 5.95118 6.99155 6.14645L12.138 11.2929L17.2844 6.14645C17.4797 5.95118 17.7963 5.95118 17.9916 6.14645C18.1868 6.34171 18.1868 6.65829 17.9916 6.85355L12.8451 12L17.9916 17.1464C18.1868 17.3417 18.1868 17.6583 17.9916 17.8536C17.7963 18.0488 17.4797 18.0488 17.2844 17.8536L12.138 12.7071L6.99155 17.8536C6.79629 18.0488 6.47971 18.0488 6.28445 17.8536C6.08918 17.6583 6.08918 17.3417 6.28445 17.1464L11.4309 12Z",fill:"#262E3D",fillOpacity:"0.67"})});function PMe(e){const t={};return{flatFilters:e.reduce((n,i)=>(D.isCascadingFilter(i)?(t[i.config.guid]||(t[i.config.guid]=[]),i.filters.forEach(a=>{t[i.config.guid].push(a),n.push(a)})):n.push(i),n),[]),cascadingToPureFiltersMap:t}}function vk(e,t,r){const n=t.filter(D.isCascadingFilter);return OMe(e,n).map(a=>{if(RMe(a)){const o=n.find(u=>u.config.guid===a.groupId);if(!o)throw new D.TranslatableError("errors.cascadingFilterOriginalNotFound");const s=r==null?void 0:r.shouldResetFiltersDeeperThanModified;return kMe(a,o,{shouldResetFiltersDeeperThanModified:s})}return a})}function RMe(e){return"groupId"in e}function OMe(e,t){const r=[];return e.forEach(n=>{const i=t.find(a=>a.filters.some(o=>D.getFilterCompareId(o)===D.getFilterCompareId(n)));if(i){const a=i.config.guid,o=r.find(s=>"groupId"in s&&s.groupId===a);o?o.filters.push(n):r.push({groupId:a,filters:[n],previousFilters:i.filters})}else r.push(n)}),r}function kMe(e,t,r){const n=r!=null&&r.shouldResetFiltersDeeperThanModified?IMe(e.filters,e.previousFilters):e.filters,i=DMe(n,t.config.disabled);return D.cascading(n,{guid:t.config.guid,disabled:i})}function DMe(e,t){return e.some(n=>n.config.disabled!==t)?!t:t}function NMe(e,t,r){const{flatFilters:n,cascadingToPureFiltersMap:i}=PMe(e);return{pureFilters:n,updateFilters:o=>{const s=vk(o,e,{shouldResetFiltersDeeperThanModified:!0});t(s)},pureFiltersIgnoringRules:LMe(r,i)}}function IMe(e,t){const r=e.reduce((n,i,a)=>{const o=t.find(s=>Gb(s,i));return o&&!BO(i,o)?a:n},-1);return r===-1?e:e.map((n,i)=>i>r?Jf(n):n)}function LMe(e,t){var r;return{all:e.all,ids:((r=e.ids)==null?void 0:r.reduce((n,i)=>{const a=t[i];return a?n.concat(a.map(o=>o.config.guid)):n.concat(i)},[]))||[]}}const FMe=Ye.button`
700
- color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
701
- background: none;
702
- font-size: 13px;
703
- border: none;
704
- height: 26px;
705
- padding: 0 6px 0 2px;
706
- margin: 0 4px 0 4px;
707
- border-radius: 4px;
708
- cursor: pointer;
709
- display: flex;
710
- align-items: center;
711
- justify-content: center;
712
- &:hover {
713
- background-color: rgba(247, 247, 247, 1);
714
- }
715
- `,$Me=Ye.span`
716
- color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
717
- display: inline-block;
718
- padding-top: 3px;
719
- white-space: nowrap;
720
- `,BMe=({onClick:e})=>{var n;const{themeSettings:t}=gt(),{t:r}=w.useTranslation();return w.jsxs(FMe,{onClick:e,theme:t,children:[w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:w.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"})}),w.jsx($Me,{theme:t,children:r("commonFilter.clearSelectionButton")})]})},bT={applyMode:ec.HIGHLIGHT,shouldAffectFilters:!0,ignoreFilters:{all:!1,ids:[]},forceApplyBackgroundFilters:!0};function HMe(e,t){return e==="table"?{applyMode:ec.FILTER,shouldAffectFilters:!1,ignoreFilters:w.merge(bT.ignoreFilters,t.ignoreFilters||{})}:w.merge(bT,t)}function zMe(e,t,r,n,i,a,o){const s={},u=HMe(r,i),{pureFilters:c,updateFilters:d,pureFiltersIgnoringRules:h}=NMe(e,t,u.ignoreFilters||{}),p=c.filter(E=>!E.config.disabled),m=YSe(p,h),v=o1(r,n),g=u.shouldAffectFilters&&v.length,[b,C]=WMe(m,v,u.applyMode),x=u.forceApplyBackgroundFilters?D.mergeFilters(jMe(c),b):b;if(s.filters=x,s.highlights=C,s.onDataPointsSelected=(E,T)=>{const A=[];if(g){const R=nT(r,n,E);R&&A.push(R);const N=Md(r,n,E),{filters:I,isSelection:H}=Wm(N,c,!0),G=a(H?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),Y=iT(G,()=>{d(D.mergeFilters(c,I))});A.push(Y)}A.length&&(o==null||o({id:yu.WIDGET_POINTS_CROSSFILTERING,position:{left:T.clientX,top:T.clientY},itemSections:A}))},s.onDataPointContextMenu=(E,T)=>{const A=[];if(g){const R=nT(r,n,[E]);R&&A.push(R);const N=Md(r,n,[E]);if(!N.length)return;const{filters:I,isSelection:H}=Wm(N,c,!0),G=a(H?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),Y=iT(G,()=>{d(D.mergeFilters(c,I))});A.push(Y)}A.length&&(o==null||o({id:yu.WIDGET_POINTS_CROSSFILTERING,position:{left:T.clientX,top:T.clientY},itemSections:A}))},g){s.onDataPointClick=R=>{const N=Md(r,n,[R]),{filters:I}=Wm(N,c);d(D.mergeFilters(c,I))};const E=p.filter(R=>v==null?void 0:v.some(N=>D.isMembersFilter(R)&&Zr(R.attribute,N)&&!Vb(R)&&!R.config.locked)),T=!!E.length,A=()=>{const R=E.map(Jf);d(D.mergeFilters(c,R))};T&&(s.renderToolbar=(R,N)=>{const I=v.map(({expression:H})=>H).join(";");return w.jsxs("div",{style:{display:"flex"},children:[w.jsx(BMe,{onClick:A}),N]},I)})}return s}function jMe(e){return e.map(t=>{var r;return(r=t.config)==null?void 0:r.backgroundFilter}).filter(t=>!!t)}function WMe(e,t,r){if(r===ec.HIGHLIGHT){const[n,i]=tc(e,o=>t.every(s=>!Zr(s,o.attribute))),a=i.filter(o=>!Vb(o));return[n,a]}return[e,[]]}function UMe(e,t){const r=k.useRef(void 0),[n,i]=Ub(k.useMemo(()=>D.splitFiltersAndRelations(e),[e]),{onLocalStateChange:k.useCallback(m=>{const{filters:v,relations:g}=m;if(t){const b=D.combineFiltersAndRelations(v,g);D.isEqual(r.current,b)||(r.current=b,t(b))}},[t])}),{filters:a,relations:o}=n,s=k.useMemo(()=>D.combineFiltersAndRelations(a,o),[a,o]),u=k.useCallback(m=>{if(D.isFilterRelations(m)){const{filters:v,relations:g}=D.splitFiltersAndRelations(m);i({filters:v||[],relations:g||null})}else i({filters:m,relations:null})},[i]),c=k.useCallback(m=>{const v=D.mergeFilters(a,[m]);i({filters:v,relations:D.calculateNewRelations(a,o,v)})},[a,o,i]),d=k.useCallback(m=>{i({filters:m,relations:D.calculateNewRelations(a,o,m)})},[a,o,i]),h=k.useMemo(()=>a.some(m=>D.isCascadingFilter(m)),[a]),p=k.useCallback(m=>{if(!o)return m;const v=h?vk(m,a):m,g=D.calculateNewRelations(a,o,v,{shouldReplaceSameAttributeFilters:!0});return D.combineFiltersAndRelations(v,g)},[h,a,o]);return{regularFilters:a,addFilter:c,filtersOrFilterRelations:s,setFiltersOrFilterRelations:u,setFilters:d,applyRelationsToOtherFilters:p}}const VMe=({initialFilters:e=[],openMenu:t,onBeforeMenuOpen:r,onFiltersChange:n}={})=>{const{t:i}=w.useTranslation(),{filtersOrFilterRelations:a,regularFilters:o,addFilter:s,setFiltersOrFilterRelations:u,setFilters:c,applyRelationsToOtherFilters:d}=UMe(e,n),h=k.useCallback((p,m={})=>{if(w.isTextWidgetProps(p))return p;const v=w.getInternalWidgetType(p),g=p,b=D.cloneDeep(p),C=XSe(p),x=zMe(o,c,v,C,m,i,t);return b.highlights=D.mergeFilters(x.highlights,g.highlights),b.onBeforeMenuOpen=r,b.filters=d(D.mergeFilters(x.filters,D.getFiltersArray(g.filters))),x.onDataPointClick&&w.registerDataPointClickHandler(b,x.onDataPointClick),x.onDataPointsSelected&&w.registerDataPointsSelectedHandler(b,x.onDataPointsSelected),x.onDataPointContextMenu&&w.registerDataPointContextMenuHandler(b,x.onDataPointContextMenu),x.renderToolbar&&w.registerRenderToolbarHandler(b,x.renderToolbar),b},[o,c,i,t,r,d]);return{filters:a,setFilters:u,addFilter:s,connectToWidgetProps:h}},GMe=e=>w.jsx("svg",B(M({width:"24",height:"24",viewBox:"15 15 18 18",fill:"none"},e),{children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.5 15C28.1944 15 32 18.8056 32 23.5C32 28.1944 28.1944 32 23.5 32C18.8056 32 15 28.1944 15 23.5C15 18.8056 18.8056 15 23.5 15ZM23.5 27C22.9477 27 22.5 27.4477 22.5 28C22.5 28.5523 22.9477 29 23.5 29C24.0523 29 24.5 28.5523 24.5 28C24.5 27.4477 24.0523 27 23.5 27ZM23.5049 18C22.5019 18.0299 22 18.6804 22 19.9502C22 20.6869 22.1705 21.5976 22.5107 22.6816C22.6419 23.0885 22.7476 23.4147 22.8281 23.6602C22.9087 23.9057 22.9671 24.0742 23.0029 24.1641C23.1998 24.6966 23.379 24.9748 23.54 24.999C23.6893 25.017 23.8541 24.7503 24.0332 24.1992C24.1167 23.9418 24.194 23.687 24.2656 23.4355C24.3372 23.1842 24.4117 22.9329 24.4893 22.6816C24.8296 21.5616 25 20.6266 25 19.8779C25 18.6084 24.5016 17.9822 23.5049 18Z",fill:"currentColor"})})),qMe=e=>w.jsx("svg",B(M({width:"24",height:"24",viewBox:"15 20 18 18",fill:"none"},e),{children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.5 20.5C28.1944 20.5 32 24.3056 32 29C32 33.6944 28.1944 37.5 23.5 37.5C18.8056 37.5 15 33.6944 15 29C15 24.3056 18.8056 20.5 23.5 20.5ZM26.707 25.793C26.3165 25.4024 25.6835 25.4024 25.293 25.793L23.5 27.5859L21.707 25.793C21.3165 25.4024 20.6835 25.4024 20.293 25.793C19.9024 26.1835 19.9024 26.8165 20.293 27.207L22.0859 29L20.293 30.793C19.9024 31.1835 19.9024 31.8165 20.293 32.207C20.6835 32.5976 21.3165 32.5976 21.707 32.207L23.5 30.4141L25.293 32.207C25.6835 32.5976 26.3165 32.5976 26.707 32.207C27.0976 31.8165 27.0976 31.1835 26.707 30.793L24.9141 29L26.707 27.207C27.0976 26.8165 27.0976 26.1835 26.707 25.793Z",fill:"currentColor"})})),YMe=6e4,XMe=85,KMe=100,ZMe=(e,t)=>e===!0&&t==="sisense_managed";function QMe(e,t,r){const{initialBalance:n,balance:i}=e;if(n===0)return{initialBalance:n,currentBalance:i,usagePercentage:0,isWarning:!1,isExceeded:!0};const a=(n-i)/n*100,o=Math.min(Math.max(a,0),100);return{initialBalance:n,currentBalance:i,usagePercentage:o,isWarning:o>=t&&o<r,isExceeded:o>=r}}const yk=(e={})=>{var m,v;const{enabled:t,warningThreshold:r=XMe,exceededThreshold:n=KMe}=e,{app:i}=ut(),a=i==null?void 0:i.httpClient,o=(v=(m=i==null?void 0:i.settings)==null?void 0:m.serverFeatures)==null?void 0:v.aiAssistant,u=ZMe(o==null?void 0:o.quotaNotification,o==null?void 0:o.featureModelType)&&(t!=null?t:!0),{data:c,isLoading:d,error:h}=gk({queryKey:["creditBalance"],queryFn:()=>Vt(exports,null,function*(){if(!a)throw new D.TranslatableError("errors.httpClientNotFound");const g=yield a.call(a.url+"api/v1/credits/get-balance",{method:"GET"});if(!g)throw new D.TranslatableError("ai.errors.failedToFetchCreditBalance");return g}),enabled:!!a&&u,refetchInterval:YMe}),p=k.useMemo(()=>c?QMe(c,r,n):null,[c,r,n]);return{enabled:u,quotaState:p,isLoading:d,error:h}},Gm="csdk-quota-warning-dismissed";function JMe(){const[e,t]=k.useState(()=>{if(typeof window=="undefined")return!1;try{return sessionStorage.getItem(Gm)==="true"}catch(n){return console.debug("[useQuotaWarningDismissed] sessionStorage.getItem failed:",n),!1}}),r=k.useCallback(n=>{if(t(n),typeof window!="undefined")try{n?sessionStorage.setItem(Gm,"true"):sessionStorage.removeItem(Gm)}catch(i){console.debug("[useQuotaWarningDismissed] sessionStorage setItem/removeItem failed:",i)}},[]);return[e,r]}const e3e="_alert_31zyt_1",t3e="_hasIcon_31zyt_18",r3e="_error_31zyt_22",n3e="_icon_31zyt_27",i3e="_warning_31zyt_38",a3e="_info_31zyt_54",o3e="_content_31zyt_77",s3e="_title_31zyt_83",l3e="_description_31zyt_89",u3e="_dismissButton_31zyt_95",yi={alert:e3e,hasIcon:t3e,error:r3e,icon:n3e,warning:i3e,info:a3e,content:o3e,title:s3e,description:l3e,dismissButton:u3e},_T=({variant:e="info",title:t,description:r,icon:n,dismissible:i=!1,onDismiss:a,dismissOnClick:o=!1,className:s=""})=>{const u=n||w.jsx(YR,{width:"16",height:"16"}),{themeSettings:c}=gt(),d=c.general.backgroundColor,h=w.getDarkFactor(w.toColor(d))>.5,p=()=>{a==null||a()},m=C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),p())},v=o&&i&&a,g=w.jsxs(w.Fragment,{children:[w.jsx("div",{className:yi.icon,children:u}),w.jsxs("div",B(M({className:yi.content},v&&{role:"alert"}),{children:[t&&w.jsx("div",{className:yi.title,children:t}),r&&w.jsx("div",{className:yi.description,children:r})]})),i&&a&&(v?w.jsx("span",{className:yi.dismissButton,"aria-hidden":!0,children:w.jsx(Cv,{})}):w.jsx("button",{type:"button",className:yi.dismissButton,onClick:C=>{C.stopPropagation(),p()},onKeyDown:m,"aria-label":"Dismiss alert",children:w.jsx(Cv,{})}))]}),b={"data-dark-mode":h,"data-dismiss-on-click":v?"true":void 0,className:`${yi.alert} ${yi[e]} ${yi.hasIcon} ${s}`};return v?w.jsx("button",B(M({type:"button"},b),{onClick:p,onKeyDown:m,"aria-label":"Dismiss alert",children:g})):w.jsx("div",B(M({role:"alert"},b),{children:g}))},c3e="_container_1cvt1_1",d3e="_containerClickable_1cvt1_8",h3e="_bannerWrapper_1cvt1_12",fl={container:c3e,containerClickable:d3e,bannerWrapper:h3e};function f3e({className:e="",warningDismissed:t,onDismissWarning:r,enabled:n=!0,warningThreshold:i,exceededThreshold:a}={}){const{t:o}=w.useTranslation(),{enabled:s,quotaState:u,isLoading:c}=yk({enabled:n,warningThreshold:i,exceededThreshold:a}),[d,h]=JMe(),p=t!==void 0?t:d,m=()=>{r?(r(),t===void 0&&h(!0)):h(!0)};return!s||c||!u?null:u.isExceeded?w.jsx("div",{className:`${fl.container} ${e}`,children:w.jsx("div",{className:fl.bannerWrapper,"data-variant":"error",children:w.jsx(_T,{variant:"error",icon:w.jsx(qMe,{width:"16",height:"16"}),title:o("ai.quota.exceededErrorTitle"),description:o("ai.quota.exceededErrorDescription"),dismissible:!1})})}):u.isWarning&&!p?w.jsx("div",{className:`${fl.container} ${fl.containerClickable} ${e}`,children:w.jsx("div",{className:fl.bannerWrapper,"data-variant":"warning",children:w.jsx(_T,{variant:"warning",icon:w.jsx(GMe,{width:"16",height:"16"}),description:o("ai.quota.warningDescription",{usagePercentage:Math.round(u.usagePercentage)}),dismissible:!0,dismissOnClick:!0,onDismiss:m})})}):null}const xv="ComposeSDK";function bk(e){return B(M({},e),{jaql:B(M({},e.jaql),{by:xv})})}const p3e="api/v2/ai/narrative",_k="api/v2/ai/nlg/queryResult";function wk(e){return"status"in e}function m3e(e){return typeof e!="object"||e===null?!1:wk(e)&&e.status==="404"}function g3e(e){return typeof e!="object"||e===null?!1:wk(e)&&e.status==="400"}function v3e(e,t){return Vt(this,null,function*(){const r=bk(t);try{return yield e.post(p3e,r)}catch(n){if(!m3e(n))throw n;return yield e.post(_k,r)}})}function y3e(e,t,r){return Vt(this,null,function*(){const{canGenerateNarrativeViaAI:n,fallbackRequestOn400:i}=r!=null?r:{},a=o=>n?v3e(e,o):e.post(_k,bk(o));if(!i)return a(t);try{return yield a(t)}catch(o){if(!g3e(o))throw o;return a(i)}})}function wu(e){var s,u;if("jaql"in e)return B(M({},e),{jaql:B(M({},e.jaql),{by:xv})});const t=D.convertJaqlDataSource(e.dataSource),{filters:r=[],relations:n}=D.getFilterListAndRelationsJaql(e.filters),{metadata:i,filterRelations:a}=D.getJaqlQueryPayload({dataSource:e.dataSource,attributes:(s=e.dimensions)!=null?s:[],measures:(u=e.measures)!=null?u:[],filters:r,filterRelations:n,highlights:[]},!0),o={jaql:{datasource:t,metadata:i,filterRelations:a,by:xv}};return e.verbosity&&(o.verbosity=e.verbosity),o}const b3e=wu;function Ck(e,t,r){const n=e.map(D.toDimensionQueryAdaptItem),i=t.map(D.toMeasureQueryAdaptItem);return{dimensions:D.adaptDimensionsForQuery(n),measures:D.adaptMeasuresForQuery(i,r)}}function _3e(e){const t=[],r=[];for(const n of e)w.isMeasureColumn(n)?r.push(n):t.push(n);return{dimensionColumns:t,measureColumns:r}}function w3e(e,t,r){const n=hA(t,e),i=fA(t,n),a=cA(i,t);return Ck(mA(a,t),gA(a,t),r)}function C3e(e,t){const r=Wu(e),{dimensionColumns:n,measureColumns:i}=_3e(r.columns);return Ck(n,i,t)}function wT(e,t,r,n=!1){const{dataSource:i,dataOptions:a,chartType:o,filters:s}=e,u=i!=null?i:t;if(!u)throw new Error("dataSource is required. Provide it in ChartWidgetProps or as defaultDataSource parameter.");const c={ignoreTrendAndForecast:n},{dimensions:d,measures:h}=D.isTable(o)?C3e(a,c):w3e(a,o,c);return{dataSource:u,dimensions:d,measures:h,filters:s,verbosity:r}}function CT(e,t,r,n=!1){var C,x,E;const i=(C=e.dataSource)!=null?C:t;if(!i)throw new Error("dataSource is required. Provide it in pivot widget props or as defaultDataSource parameter.");const a=n&&e.dataOptions.values?B(M({},e.dataOptions),{values:e.dataOptions.values.map(T=>w.isMeasureColumn(T)&&("trend"in T||"forecast"in T)?D.omit(T,["trend","forecast"]):T)}):e.dataOptions,o=vA(a),{rows:s,columns:u,values:c,grandTotals:d}=Kb(o),{filters:h=[],relations:p}=D.getFilterListAndRelationsJaql((x=e.filters)!=null?x:[]),m=h.map(T=>w.safeCombine(T,{isScope:!0})),v=((E=e.highlights)!=null?E:[]).map(T=>w.safeCombine(T,{isScope:!0})),g={dataSource:i,rowsAttributes:s!=null?s:[],columnsAttributes:u!=null?u:[],measures:c!=null?c:[],grandTotals:M(M({},D.DEFAULT_PIVOT_GRAND_TOTALS),d!=null?d:{}),filters:m,filterRelations:p,highlights:v};uM(g);const b=D.getPivotJaqlQueryPayload(g,!1);return wu({jaql:b,verbosity:r})}const x3e="dataSource is required. Provide it on the widget props or as defaultDataSource parameter.";function Pd(){return{supported:!1,narrativeRequest:void 0,narrativeFallbackRequest:void 0}}function xT(){return B(M({},Pd()),{missingDataSource:!0})}function T3e(e,t,r,n=!1){var i,a;if(w.isPivotTableWidgetProps(e)){if(!((i=e.dataSource)!=null?i:t))return xT();let o;try{o=CT(e,t,r,n)}catch(u){return Pd()}let s;if(!n)try{s=CT(e,t,r,!0)}catch(u){}return{supported:!0,narrativeRequest:o,narrativeFallbackRequest:s}}if(w.isChartWidgetProps(e)){if(!((a=e.dataSource)!=null?a:t))return xT();let o;try{o=wu(wT(e,t,r,n))}catch(u){return Pd()}let s;if(!n)try{s=wu(wT(e,t,r,!0))}catch(u){}return{supported:!0,narrativeRequest:o,narrativeFallbackRequest:s}}return Pd()}const S3e=()=>{const[e,t]=k.useState(!1),r=k.useRef(null),n=k.useCallback(()=>{t(!0)},[]),i=k.useCallback(()=>{t(!1)},[]);return[k.useCallback(o=>{var s;((s=r.current)==null?void 0:s.nodeType)===Node.ELEMENT_NODE&&(r.current.removeEventListener("mouseenter",n),r.current.removeEventListener("mouseleave",i)),(o==null?void 0:o.nodeType)===Node.ELEMENT_NODE&&(o.addEventListener("mouseenter",n),o.addEventListener("mouseleave",i)),r.current=o},[n,i]),e]};exports.AlertIcon=YR;exports.ArrowIcon=gg;exports.Backdrop=ny;exports.BaseAuthenticator=Ru;exports.BearerAuthenticator=$8;exports.Button=bu;exports.ButtonBase=Wa;exports.CONTEXT_MENU_SELECTED_WITH_DOT_CLASS=I5;exports.Chart=HR;exports.ChartWidget=qEe;exports.CloseIcon=Cv;exports.CommonFiltersApplyMode=ec;exports.ContextMenu=xS;exports.DEFAULT_HYPERLINK_COLOR=Xv;exports.DEFAULT_PIVOT_TABLE_SIZE=pS;exports.DEFAULT_TABLE_ROWS_PER_PAGE=NR;exports.DEFAULT_WIDGET_HEADER_HEIGHT=fS;exports.DatePeriod=r3;exports.DimensionalQueryClient=Y7;exports.DoubleArrowIcon=vg;exports.DrilldownBreadcrumbs=qO;exports.DynamicSizeContainer=Ih;exports.EVENT_DATA_CELL_FORMAT=xE;exports.EVENT_HEADER_CELL_FORMAT=f0;exports.ElementStates=$S;exports.EmotionCacheProvider=AS;exports.ErrorBoundary=cv;exports.ErrorBoundary$1=bS;exports.ErrorBoundaryBox=Zv;exports.ExclamationMarkIcon=yS;exports.Fade=ry;exports.I18nProvider=gS;exports.IconButton=Ha;exports.LEGACY_DESIGN_TYPES=yl;exports.List=ey;exports.ListContext=Wl;exports.LoadingDots=PS;exports.LoadingOverlay=Wi;exports.MISSING_DATASOURCE_NLG_ERROR=x3e;exports.Menu=Hh;exports.MenuButton=_O;exports.MenuIds=yu;exports.MenuItem=$h;exports.MenuList=ty;exports.MenuProvider=TS;exports.MenuSectionIds=ls;exports.Modal=iy;exports.ModalProvider=SS;exports.NoResultsOverlay=uy;exports.PAGES_BATCH_SIZE=IR;exports.PanelType=He;exports.Paper=Bh;exports.PasswordAuthenticator=Q8;exports.PivotQueryClient=tM;exports.Popover=sy;exports.Popper=Xu;exports.PropTypes=_;exports.QueryClient=lMe;exports.QueryClientProvider=mMe;exports.QuotaNotification=f3e;exports.RestApi=cf;exports.RestApiNotReadyError=BQ;exports.SisenseContext=Fv;exports.SsoAuthenticator=W8;exports.Subscribable=Ls;exports.TableComponent=LR;exports.ThemeContext=Kv;exports.ThemeProvider=BS;exports.ThreeDotsIcon=bO;exports.Tooltip=Sf;exports.Transition=Rn;exports.Typography=qr;exports.UserType=tr;exports.WatAuthenticator=V8;exports.WidgetContainer=TO;exports.WidgetMenuButton=CO;exports.WidgetSpaceAround=t1;exports._extends=Hl;exports._typeof=Zd;exports.addQueryParamsToUrl=ZE;exports.alpha=Rt;exports.appendHeaders=Zh;exports.applyDrilldownDimensionToPivot=LO;exports.asSisenseComponent=Mu;exports.basePickBy=zS;exports.baseUniq=rb;exports.boxWhiskerProcessResult=xie;exports.buildWidgetNarrativeRequests=T3e;exports.camelCase=cO;exports.capitalize=Le;exports.classNames=uu;exports.clearMembersFilter=Jf;exports.cloneFilter=jR;exports.cloneFilterAndToggleDisabled=JCe;exports.clsx=je;exports.composeClasses=Dt;exports.convertToThemeSettings=NS;exports.createCaseFirst=XR;exports.createChainedFunction=Jm;exports.createFormatter=mr;exports.createHeaderCellValueFormatter=MQ;exports.createLevelAttribute=p3;exports.createPanelColorFormat=Q7;exports.createSimplePaletteValueFilter=ea;exports.createStyled=WT;exports.createSvgIcon=hs;exports.createTheme=kh;exports.createUnarySpacing=Sh;exports.createValueColorOptions=cM;exports.createValueToColorMap=dM;exports.createValueToColorMultiColumnsMap=J7;exports.css=Oh;exports.darken=vh;exports.dataLoadStateReducer=ep;exports.debounce=VR;exports.deepmerge=Dr;exports.defaultDateConfig=Bu;exports.downloadBlobAsFile=bSe;exports.duration=tS;exports.elementAcceptingRef=ja;exports.elementTypeAcceptingRef=_h;exports.errorInterceptor=Qh;exports.exactProp=Pv;exports.extendSxProp=IT;exports.formatDateValue=Hu;exports.formatDatetimeString=Uy;exports.generateAttributeName=f3;exports.generateUtilityClass=bt;exports.generateUtilityClasses=_t;exports.getAvailableDrilldownPaths=dh;exports.getBaseDateFnsLocale=$u;exports.getChartDefaultSize=Lh;exports.getDataOptionByLocation=NO;exports.getDataPointMetadata=et;exports.getDefaultDateMask=TQ;exports.getDefaultOptions=By;exports.getDefaultState=ck;exports.getDefaultThemeSettings=Ld;exports.getDrilldownMenuItems=ek;exports.getHierarchyModels=tk;exports.getInitialDimensionLocation=IO;exports.getLegacyPalette=FS;exports.getListItemTextUtilityClass=k4;exports.getNarrative=y3e;exports.getNumberFormatConfig=c3;exports.getPaletteName=IS;exports.getPivotDataOptionByJaqlIndex=u3;exports.getPivotDataOptionIdByJaqlIndex=SQ;exports.getPivotQueryOptions=Kb;exports.getReactElementRef=ds;exports.getResponseInterceptor=K8;exports.getSelectedDrilldownAttributes=hh;exports.getSelectionTitleMenuItem=JO;exports.getTableAttributesAndMeasures=Cf;exports.getThemeSettingsByOid=LS;exports.getTransitionProps=Ul;exports.getTranslatedDataOptions=PA;exports.getValue=cs;exports.getWidgetDefaultSize=mS;exports.handleBreakpoints=ti;exports.headerMenuUtils=pTe;exports.isAuthTokenPending=L8;exports.isFiltersChanged=ss;exports.isPivotRowsSort=mxe;exports.isPropValid=LT;exports.isSameAttribute=Zr;exports.isSsoAuthenticator=Ay;exports.isString=ff;exports.lighten=yh;exports.listItemTextClasses=a0;exports.locale=fg;exports.mapAttributesForExcelExport=AO;exports.mapMeasuresForExcelExport=PO;exports.memoTheme=$t;exports.mergeBreakpointsInOrder=lN;exports.newStyled=Ye;exports.normalizeUrl=za;exports.notifyManager=qt;exports.ownerDocument=Qr;exports.parseDataTableDateValue=rQ;exports.parseMutationArgs=XEe;exports.partition=tc;exports.prepareGetNlgInsightsPayload=b3e;exports.prepareNarrativeRequest=wu;exports.preparePivotRowsSortCriteriaList=gxe;exports.processDrilldownSelections=KO;exports.refType=us;exports.resolveBreakpointValues=cN;exports.resolveProps=zl;exports.rootShouldForwardProp=Eu;exports.shallowEqualObjects=fh;exports.shouldSkipSisenseContextWaiting=BR;exports.shouldThrowError=mk;exports.startOfPeriod=tQ;exports.startOfUTCWeek=hg;exports.styled=Ne;exports.toDate=rn;exports.trackHook=ixe;exports.translatePivotTableDataOptions=vA;exports.translateTableDataOptions=Wu;exports.typographyClasses=M4;exports.updateDrilldownSelections=XO;exports.upperFirst=KR;exports.useAppSettings=kO;exports.useCommonFilters=VMe;exports.useControlled=Sv;exports.useCsvQueryFileLoader=EO;exports.useDebouncedValue=GR;exports.useDefaultProps=Mt;exports.useDrilldown=QO;exports.useDrilldownCore=YO;exports.useEnhancedEffect=Mn;exports.useEventCallback=Kn;exports.useExcelQueryFileLoader=RO;exports.useExecuteCsvQuery=vSe;exports.useExecuteCsvQueryInternal=n1;exports.useExecutePivotQuery=uxe;exports.useExecutePivotQueryInternal=Xb;exports.useForkRef=gr;exports.useFormControl=mO;exports.useHasChanged=Is;exports.useHierarchiesLoader=rk;exports.useHover=S3e;exports.useId=Dh;exports.useMenu=e1;exports.useModalContext=zh;exports.usePivotTableQuery=bxe;exports.usePrevious=hf;exports.useQuery=gk;exports.useQueryClient=pk;exports.useQueryParamsChanged=r1;exports.useQuotaNotification=yk;exports.useRestApi=d3;exports.useSetError=nb;exports.useShouldLoad=Yb;exports.useSisenseContext=ut;exports.useSlot=lr;exports.useSyncExternalStore=dk;exports.useSyncedState=Ub;exports.useTheme=Su;exports.useTheme$1=Av;exports.useThemeContext=gt;exports.useTimeout=xa;exports.useWidgetHeaderManagement=fO;exports.useWithCsvDownloadMenuItem=MO;exports.useWithExcelDownloadMenuItem=OO;exports.validateUrl=F8;exports.withErrorBoundary=_S;exports.withHeaderMenuItem=hO;exports.withTracking=qb;exports.withTracking$1=DS;