@sisense/sdk-ui 2.21.0 → 2.23.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 (234) hide show
  1. package/dist/ai.cjs +58 -58
  2. package/dist/ai.js +861 -844
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +2240 -1230
  5. package/dist/analytics-composer.cjs +47 -47
  6. package/dist/analytics-composer.js +135 -131
  7. package/dist/dimensions-2t18RSZC.cjs +1 -0
  8. package/dist/dimensions-C0BmtTH2.js +204 -0
  9. package/dist/execute-query-CHYTupEo.js +5866 -0
  10. package/dist/execute-query-DmAyVFF5.cjs +1 -0
  11. package/dist/{index-Ck90GjPy.js → index-DCAC0mJe.js} +33 -2
  12. package/dist/{index-0brX9D6q.cjs → index-Dx6wvLd3.cjs} +1 -1
  13. package/dist/index.cjs +423 -410
  14. package/dist/index.js +24905 -23677
  15. package/dist/index.umd.js +728 -675
  16. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/const.d.ts +1 -0
  17. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/smart-pointer-sensor.d.ts +17 -0
  18. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/index.d.ts +1 -1
  20. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +8 -1
  21. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +9 -2
  22. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/index.d.ts +4 -0
  23. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +13 -0
  24. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/{use-dashboard-model-reducer.d.ts → dashboard-model-reducer/types.d.ts} +43 -38
  25. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/use-dashboard-model-reducer.d.ts +9 -0
  26. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +29 -0
  27. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +6 -5
  28. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/duplicate-widget-utils.d.ts +34 -0
  29. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/index.d.ts +2 -0
  30. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +57 -0
  31. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
  32. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +34 -0
  33. package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +65 -2
  34. package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +15 -3
  35. package/dist/packages/sdk-ui/src/domains/dashboarding/use-dashboard-theme.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/domains/data-browser/add-filter-popover/add-filter-data-browser.d.ts +2 -1
  37. package/dist/packages/sdk-ui/src/domains/data-browser/data-schema-browser/data-schema-browser.d.ts +2 -1
  38. package/dist/packages/sdk-ui/src/domains/data-browser/dimensions-browser/types.d.ts +9 -1
  39. package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +7 -0
  40. package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +4 -1
  41. package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/use-cascadding-filter-tile-menu-items/use-cascadding-filter-tile-lock-menu-item.d.ts +13 -0
  42. package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/use-cascadding-filter-tile-menu-items/use-cascadding-filter-tile-menu-items.d.ts +14 -0
  43. package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +7 -0
  44. package/dist/packages/sdk-ui/src/domains/filters/components/custom-filter-tile.d.ts +7 -0
  45. package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +7 -0
  46. package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +7 -0
  47. package/dist/packages/sdk-ui/src/domains/filters/components/{filter-tile.d.ts → filter-tile/filter-tile.d.ts} +7 -0
  48. package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile/index.d.ts +1 -0
  49. package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile/types.d.ts +36 -0
  50. package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile-container.d.ts +6 -0
  51. package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/types.d.ts +13 -0
  52. package/dist/packages/sdk-ui/src/domains/filters/components/index.d.ts +1 -1
  53. package/dist/packages/sdk-ui/src/domains/filters/components/member-filter-tile/member-filter-tile.d.ts +7 -0
  54. package/dist/packages/sdk-ui/src/domains/filters/components/unsupported-filter-tile.d.ts +10 -1
  55. package/dist/packages/sdk-ui/src/domains/filters/shared/clone-filter-and-toggle-locked.d.ts +7 -0
  56. package/dist/packages/sdk-ui/src/domains/filters/shared/filter-tile-menu-button.d.ts +10 -0
  57. package/dist/packages/sdk-ui/src/domains/filters/shared/use-filter-tile-menu-items/use-filter-tile-lock-menu-item.d.ts +15 -0
  58. package/dist/packages/sdk-ui/src/domains/filters/shared/use-filter-tile-menu-items/use-filter-tile-menu-items.d.ts +14 -0
  59. package/dist/packages/sdk-ui/src/domains/formulas/fetch-formula.d.ts +1 -1
  60. package/dist/packages/sdk-ui/src/domains/formulas/index.d.ts +0 -1
  61. package/dist/packages/sdk-ui/src/domains/formulas/use-get-shared-formula.d.ts +20 -7
  62. package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +1 -1
  63. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +1 -1
  64. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-query-cache/use-query-cache.d.ts +2 -1
  65. package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-utils.d.ts +1 -1
  66. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/get-load-data-function.d.ts +1 -1
  67. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/helpers/data-loading.d.ts +1 -1
  68. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +1 -1
  69. package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +73 -0
  70. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +12 -2
  71. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +12 -2
  72. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +3 -1
  73. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-data-options.d.ts +1 -1
  74. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
  75. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +63 -0
  76. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +1 -1
  77. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +3 -2
  78. package/dist/packages/sdk-ui/src/domains/widgets/event-to-delta.d.ts +17 -0
  79. package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +14 -4
  80. package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +2 -1
  81. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-title-renaming.d.ts +27 -0
  82. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-widget-header-management.d.ts +28 -0
  83. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +3 -1
  84. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +32 -17
  85. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +3 -1
  86. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-menu-button.d.ts +1 -1
  87. package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +4 -0
  88. package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +3 -2
  89. package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +6 -215
  90. package/dist/packages/sdk-ui/src/infra/app/helpers.d.ts +16 -0
  91. package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +3 -0
  92. package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +4 -1
  93. package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +19 -1
  94. package/dist/packages/sdk-ui/src/infra/app/types.d.ts +236 -0
  95. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/index.d.ts +5 -0
  96. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-context.d.ts +15 -0
  97. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-provider.d.ts +21 -0
  98. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/types.d.ts +50 -0
  99. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/validate-plugins.d.ts +9 -0
  100. package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context.d.ts +1 -1
  101. package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/theme-context.d.ts +2 -1
  102. package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/with-tracking.d.ts +1 -1
  103. package/dist/packages/sdk-ui/src/infra/decorators/hook-decorators/with-tracking.d.ts +1 -1
  104. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +31 -0
  105. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +31 -0
  106. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +31 -0
  107. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +31 -0
  108. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +31 -0
  109. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +31 -0
  110. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +31 -0
  111. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +31 -0
  112. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +31 -0
  113. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +31 -0
  114. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +31 -0
  115. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +31 -0
  116. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +31 -0
  117. package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +31 -0
  118. package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +62 -0
  119. package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +2 -1
  120. package/dist/packages/sdk-ui/src/modules/ai/api/narration-endpoints.d.ts +2 -1
  121. package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +1 -0
  122. package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -0
  123. package/dist/packages/sdk-ui/src/modules/ai/use-get-query-recommendations.d.ts +1 -0
  124. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/axis-type-detection.d.ts +17 -0
  125. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/chart-type-schemas.d.ts +37 -0
  126. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/index.d.ts +9 -0
  127. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/translate-data-options.d.ts +9 -0
  128. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/validate-chart-json.d.ts +19 -0
  129. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-from-json.d.ts +42 -0
  130. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-to-json.d.ts +41 -0
  131. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-from-json.d.ts +11 -0
  132. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +22 -0
  133. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-from-json.d.ts → constructs/filters/translate-filters-from-json.d.ts} +2 -2
  134. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-to-json.d.ts → constructs/filters/translate-filters-to-json.d.ts} +1 -1
  135. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-measures-from-json.d.ts → constructs/measures/translate-measures-from-json.d.ts} +4 -4
  136. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +22 -0
  137. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +8 -3
  138. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/index.d.ts +7 -0
  139. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/translate-data-options.d.ts +14 -0
  140. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/validate-pivot-table-json.d.ts +19 -0
  141. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-from-json.d.ts +12 -0
  142. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-to-json.d.ts +12 -0
  143. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +8 -0
  144. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-from-json.d.ts → query/translate-query-from-json.d.ts} +3 -3
  145. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-jaql.d.ts → query/translate-query-to-jaql.d.ts} +1 -1
  146. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-json.d.ts → query/translate-query-to-json.d.ts} +2 -2
  147. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +19 -0
  148. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +9 -0
  149. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-from-json.d.ts +24 -0
  150. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-to-json.d.ts +18 -0
  151. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/process-custom-formula.d.ts +1 -1
  152. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/validate-custom-formula.d.ts +13 -0
  153. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/execute-function.d.ts +1 -1
  154. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-processors.d.ts +1 -1
  155. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-schemas.d.ts +1 -1
  156. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/filter-processors.d.ts +1 -1
  157. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +25 -0
  158. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-arg.d.ts +1 -1
  159. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-node.d.ts +1 -1
  160. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/attribute-helpers.d.ts +50 -0
  161. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/fuzzy-match.d.ts +16 -0
  162. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{parse-compose-code.d.ts → shared/utils/parse-compose-code.d.ts} +1 -1
  163. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +49 -0
  164. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/translation-helpers.d.ts +31 -0
  165. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +115 -4
  166. package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +6 -6
  167. package/dist/packages/sdk-ui/src/props.d.ts +14 -21
  168. package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +1 -1
  169. package/dist/packages/sdk-ui/src/public-api/beta.d.ts +1 -1
  170. package/dist/packages/sdk-ui/src/public-api/internal.d.ts +9 -6
  171. package/dist/packages/sdk-ui/src/public-api/public.d.ts +2 -2
  172. package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +18 -5
  173. package/dist/packages/sdk-ui/src/shared/components/alert/alert.d.ts +91 -0
  174. package/dist/packages/sdk-ui/src/shared/components/alert/index.d.ts +2 -0
  175. package/dist/packages/sdk-ui/src/shared/components/grouped-items-browser/types.d.ts +7 -1
  176. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/inline-text-editor.d.ts +26 -0
  177. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/use-blur-on-pointer-down-outside.d.ts +11 -0
  178. package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -1
  179. package/dist/packages/sdk-ui/src/shared/components/menu/menu-button.d.ts +2 -1
  180. package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +32 -0
  181. package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +12 -0
  182. package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +54 -0
  183. package/dist/packages/sdk-ui/src/shared/hooks/use-quota-warning-dismissed.d.ts +8 -0
  184. package/dist/packages/sdk-ui/src/shared/hooks/use-should-load.d.ts +1 -1
  185. package/dist/packages/sdk-ui/src/shared/hooks/use-with-change-detection.d.ts +5 -5
  186. package/dist/packages/sdk-ui/src/shared/icons/warning-icon.d.ts +6 -0
  187. package/dist/packages/sdk-ui/src/shared/icons/x-circle-icon.d.ts +6 -0
  188. package/dist/packages/sdk-ui/src/shared/types/menu-item.d.ts +17 -0
  189. package/dist/packages/sdk-ui/src/types.d.ts +3 -3
  190. package/dist/{use-common-filters-DBqRT0et.js → quota-notification-CVl0isIV.js} +18254 -16897
  191. package/dist/quota-notification-RAaHp-eO.cjs +713 -0
  192. package/dist/translations/de-de.cjs +1 -1
  193. package/dist/translations/de-de.js +34 -3
  194. package/dist/translations/en-us.cjs +1 -1
  195. package/dist/translations/en-us.js +1 -1
  196. package/dist/translations/es-ar.cjs +1 -1
  197. package/dist/translations/es-ar.js +34 -3
  198. package/dist/translations/es-es.cjs +1 -1
  199. package/dist/translations/es-es.js +34 -3
  200. package/dist/translations/fr-fr.cjs +1 -1
  201. package/dist/translations/fr-fr.js +34 -3
  202. package/dist/translations/it-it.cjs +1 -1
  203. package/dist/translations/it-it.js +34 -3
  204. package/dist/translations/ja-jp.cjs +1 -1
  205. package/dist/translations/ja-jp.js +34 -3
  206. package/dist/translations/ko-kr.cjs +1 -1
  207. package/dist/translations/ko-kr.js +34 -3
  208. package/dist/translations/nl-nl.cjs +1 -1
  209. package/dist/translations/nl-nl.js +34 -3
  210. package/dist/translations/pt-br.cjs +1 -1
  211. package/dist/translations/pt-br.js +34 -3
  212. package/dist/translations/ru-ru.cjs +1 -1
  213. package/dist/translations/ru-ru.js +34 -3
  214. package/dist/translations/tr-tr.cjs +1 -1
  215. package/dist/translations/tr-tr.js +34 -3
  216. package/dist/translations/zh-cn.cjs +1 -1
  217. package/dist/translations/zh-cn.js +34 -3
  218. package/dist/{types-Ockb-LJ0.js → types-B96nVbgX.js} +1 -1
  219. package/dist/{types-Ch9J6ycn.cjs → types-DZ4vWh8j.cjs} +1 -1
  220. package/dist/{utils-DH69_bUK.cjs → utils-CgV-jWWQ.cjs} +44 -44
  221. package/dist/{utils-BXDqo_yg.js → utils-ChqSLRbz.js} +2073 -2081
  222. package/dist/{widget-composer-DgCWcMJ1.cjs → widget-composer-Blul90Zb.cjs} +3 -3
  223. package/dist/{widget-composer-DfVCQL2G.js → widget-composer-Cf_CN3Ux.js} +8 -8
  224. package/package.json +12 -9
  225. package/dist/dimensions-DVGn8ORR.cjs +0 -1
  226. package/dist/dimensions-DuUqQgpi.js +0 -202
  227. package/dist/execute-query-B21bnb05.js +0 -5802
  228. package/dist/execute-query-BIkhszY1.cjs +0 -1
  229. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/common.d.ts +0 -84
  230. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +0 -12
  231. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +0 -13
  232. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +0 -13
  233. package/dist/use-common-filters-CXJN3RSs.cjs +0 -672
  234. /package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/{use-dasboard-model-utils.d.ts → use-dashboard-model-utils.d.ts} +0 -0
@@ -1,672 +0,0 @@
1
- "use strict";var m3=Object.defineProperty,g3=Object.defineProperties;var v3=Object.getOwnPropertyDescriptors;var lu=Object.getOwnPropertySymbols;var Vv=Object.prototype.hasOwnProperty,Gv=Object.prototype.propertyIsEnumerable;var cn=Math.pow,Ph=(e,t,r)=>t in e?m3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))Vv.call(t,r)&&Ph(e,r,t[r]);if(lu)for(var r of lu(t))Gv.call(t,r)&&Ph(e,r,t[r]);return e},$=(e,t)=>g3(e,v3(t));var uu=e=>typeof e=="symbol"?e:e+"",xe=(e,t)=>{var r={};for(var n in e)Vv.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lu)for(var n of lu(e))t.indexOf(n)<0&&Gv.call(e,n)&&(r[n]=e[n]);return r};var Xe=(e,t,r)=>Ph(e,typeof t!="symbol"?t+"":t,r);var qt=(e,t,r)=>new Promise((n,i)=>{var a=u=>{try{l(r.next(u))}catch(c){i(c)}},o=u=>{try{l(r.throw(u))}catch(c){i(c)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,o);l((r=r.apply(e,t)).next())});const k=require("react"),H=require("./execute-query-BIkhszY1.cjs"),y=require("./utils-DH69_bUK.cjs"),me=require("react/jsx-runtime"),Ar=require("react-dom");function f2(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=f2(k),y3=f2(Ar);function Ns(){return Ns=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},Ns.apply(this,arguments)}function b3(e){let{i18n:t,defaultNS:r,children:n}=e;const i=k.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return k.createElement(y.I18nContext.Provider,{value:i},n)}var Pf={exports:{}},Ze={};/** @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 Uv;function _3(){if(Uv)return Ze;Uv=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,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E(P){if(typeof P=="object"&&P!==null){var O=P.$$typeof;switch(O){case t:switch(P=P.type,P){case u:case c:case n:case a:case i:case f:return P;default:switch(P=P&&P.$$typeof,P){case l:case h:case b:case g:case o:return P;default:return O}}case r:return O}}}function S(P){return E(P)===c}return Ze.AsyncMode=u,Ze.ConcurrentMode=c,Ze.ContextConsumer=l,Ze.ContextProvider=o,Ze.Element=t,Ze.ForwardRef=h,Ze.Fragment=n,Ze.Lazy=b,Ze.Memo=g,Ze.Portal=r,Ze.Profiler=a,Ze.StrictMode=i,Ze.Suspense=f,Ze.isAsyncMode=function(P){return S(P)||E(P)===u},Ze.isConcurrentMode=S,Ze.isContextConsumer=function(P){return E(P)===l},Ze.isContextProvider=function(P){return E(P)===o},Ze.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Ze.isForwardRef=function(P){return E(P)===h},Ze.isFragment=function(P){return E(P)===n},Ze.isLazy=function(P){return E(P)===b},Ze.isMemo=function(P){return E(P)===g},Ze.isPortal=function(P){return E(P)===r},Ze.isProfiler=function(P){return E(P)===a},Ze.isStrictMode=function(P){return E(P)===i},Ze.isSuspense=function(P){return E(P)===f},Ze.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===n||P===c||P===a||P===i||P===f||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===g||P.$$typeof===o||P.$$typeof===l||P.$$typeof===h||P.$$typeof===w||P.$$typeof===C||P.$$typeof===T||P.$$typeof===v)},Ze.typeOf=E,Ze}var Ke={};/** @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 Yv;function w3(){return Yv||(Yv=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,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,T=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===f||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===g||J.$$typeof===o||J.$$typeof===l||J.$$typeof===h||J.$$typeof===w||J.$$typeof===C||J.$$typeof===T||J.$$typeof===v)}function S(J){if(typeof J=="object"&&J!==null){var we=J.$$typeof;switch(we){case t:var Ee=J.type;switch(Ee){case u:case c:case n:case a:case i:case f:return Ee;default:var ke=Ee&&Ee.$$typeof;switch(ke){case l:case h:case b:case g:case o:return ke;default:return we}}case r:return we}}}var P=u,O=c,N=l,z=o,U=t,Z=h,K=n,R=b,I=g,X=r,j=a,V=i,W=f,G=!1;function re(J){return G||(G=!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.")),F(J)||S(J)===u}function F(J){return S(J)===c}function Y(J){return S(J)===l}function ne(J){return S(J)===o}function ie(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function te(J){return S(J)===h}function oe(J){return S(J)===n}function le(J){return S(J)===b}function de(J){return S(J)===g}function ce(J){return S(J)===r}function ve(J){return S(J)===a}function Ce(J){return S(J)===i}function ye(J){return S(J)===f}Ke.AsyncMode=P,Ke.ConcurrentMode=O,Ke.ContextConsumer=N,Ke.ContextProvider=z,Ke.Element=U,Ke.ForwardRef=Z,Ke.Fragment=K,Ke.Lazy=R,Ke.Memo=I,Ke.Portal=X,Ke.Profiler=j,Ke.StrictMode=V,Ke.Suspense=W,Ke.isAsyncMode=re,Ke.isConcurrentMode=F,Ke.isContextConsumer=Y,Ke.isContextProvider=ne,Ke.isElement=ie,Ke.isForwardRef=te,Ke.isFragment=oe,Ke.isLazy=le,Ke.isMemo=de,Ke.isPortal=ce,Ke.isProfiler=ve,Ke.isStrictMode=Ce,Ke.isSuspense=ye,Ke.isValidElementType=E,Ke.typeOf=S}()),Ke}process.env.NODE_ENV==="production"?Pf.exports=_3():Pf.exports=w3();var p2=Pf.exports,Af={exports:{}};/*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var Ah,qv;function x3(){if(qv)return Ah;qv=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={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(h){c[h]=h}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch(h){return!1}}return Ah=i()?Object.assign:function(a,o){for(var l,u=n(a),c,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var f in l)t.call(l,f)&&(u[f]=l[f]);if(e){c=e(l);for(var p=0;p<c.length;p++)r.call(l,c[p])&&(u[c[p]]=l[c[p]])}}return u},Ah}var Rh,Xv;function zm(){if(Xv)return Rh;Xv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rh=e,Rh}var Oh,Zv;function m2(){return Zv||(Zv=1,Oh=Function.call.bind(Object.prototype.hasOwnProperty)),Oh}var kh,Kv;function C3(){if(Kv)return kh;Kv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zm(),r={},n=m2();e=function(a){var o="Warning: "+a;typeof console!="undefined"&&console.error(o);try{throw new Error(o)}catch(l){}}}function i(a,o,l,u,c){if(process.env.NODE_ENV!=="production"){for(var h in a)if(n(a,h)){var f;try{if(typeof a[h]!="function"){var p=Error((u||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=a[h](o,h,u,l,null,t)}catch(b){f=b}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var g=c?c():"";e("Failed "+l+" type: "+f.message+(g!=null?g:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},kh=i,kh}var Dh,Qv;function T3(){if(Qv)return Dh;Qv=1;var e=p2,t=x3(),r=zm(),n=m2(),i=C3(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var u="Warning: "+l;typeof console!="undefined"&&console.error(u);try{throw new Error(u)}catch(c){}});function o(){return null}return Dh=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(F){var Y=F&&(c&&F[c]||F[h]);if(typeof Y=="function")return Y}var p="<<anonymous>>",g={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:T(),arrayOf:E,element:S(),elementType:P(),instanceOf:O,node:Z(),objectOf:z,oneOf:N,oneOfType:U,shape:R,exact:I};function b(F,Y){return F===Y?F!==0||1/F===1/Y:F!==F&&Y!==Y}function v(F,Y){this.message=F,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}v.prototype=Error.prototype;function w(F){if(process.env.NODE_ENV!=="production")var Y={},ne=0;function ie(oe,le,de,ce,ve,Ce,ye){if(ce=ce||p,Ce=Ce||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 we=ce+":"+de;!Y[we]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ce+"` 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."),Y[we]=!0,ne++)}}return le[de]==null?oe?le[de]===null?new v("The "+ve+" `"+Ce+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+ve+" `"+Ce+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:F(le,de,ce,ve,Ce)}var te=ie.bind(null,!1);return te.isRequired=ie.bind(null,!0),te}function C(F){function Y(ne,ie,te,oe,le,de){var ce=ne[ie],ve=V(ce);if(ve!==F){var Ce=W(ce);return new v("Invalid "+oe+" `"+le+"` of type "+("`"+Ce+"` supplied to `"+te+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return w(Y)}function T(){return w(o)}function E(F){function Y(ne,ie,te,oe,le){if(typeof F!="function")return new v("Property `"+le+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var de=ne[ie];if(!Array.isArray(de)){var ce=V(de);return new v("Invalid "+oe+" `"+le+"` of type "+("`"+ce+"` supplied to `"+te+"`, expected an array."))}for(var ve=0;ve<de.length;ve++){var Ce=F(de,ve,te,oe,le+"["+ve+"]",r);if(Ce instanceof Error)return Ce}return null}return w(Y)}function S(){function F(Y,ne,ie,te,oe){var le=Y[ne];if(!l(le)){var de=V(le);return new v("Invalid "+te+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return w(F)}function P(){function F(Y,ne,ie,te,oe){var le=Y[ne];if(!e.isValidElementType(le)){var de=V(le);return new v("Invalid "+te+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return w(F)}function O(F){function Y(ne,ie,te,oe,le){if(!(ne[ie]instanceof F)){var de=F.name||p,ce=re(ne[ie]);return new v("Invalid "+oe+" `"+le+"` of type "+("`"+ce+"` supplied to `"+te+"`, expected ")+("instance of `"+de+"`."))}return null}return w(Y)}function N(F){if(!Array.isArray(F))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 Y(ne,ie,te,oe,le){for(var de=ne[ie],ce=0;ce<F.length;ce++)if(b(de,F[ce]))return null;var ve=JSON.stringify(F,function(ye,J){var we=W(J);return we==="symbol"?String(J):J});return new v("Invalid "+oe+" `"+le+"` of value `"+String(de)+"` "+("supplied to `"+te+"`, expected one of "+ve+"."))}return w(Y)}function z(F){function Y(ne,ie,te,oe,le){if(typeof F!="function")return new v("Property `"+le+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var de=ne[ie],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+le+"` of type "+("`"+ce+"` supplied to `"+te+"`, expected an object."));for(var ve in de)if(n(de,ve)){var Ce=F(de,ve,te,oe,le+"."+ve,r);if(Ce instanceof Error)return Ce}return null}return w(Y)}function U(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var Y=0;Y<F.length;Y++){var ne=F[Y];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(ne)+" at index "+Y+"."),o}function ie(te,oe,le,de,ce){for(var ve=[],Ce=0;Ce<F.length;Ce++){var ye=F[Ce],J=ye(te,oe,le,de,ce,r);if(J==null)return null;J.data&&n(J.data,"expectedType")&&ve.push(J.data.expectedType)}var we=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new v("Invalid "+de+" `"+ce+"` supplied to "+("`"+le+"`"+we+"."))}return w(ie)}function Z(){function F(Y,ne,ie,te,oe){return X(Y[ne])?null:new v("Invalid "+te+" `"+oe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return w(F)}function K(F,Y,ne,ie,te){return new v((F||"React class")+": "+Y+" type `"+ne+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function R(F){function Y(ne,ie,te,oe,le){var de=ne[ie],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+le+"` of type `"+ce+"` "+("supplied to `"+te+"`, expected `object`."));for(var ve in F){var Ce=F[ve];if(typeof Ce!="function")return K(te,oe,le,ve,W(Ce));var ye=Ce(de,ve,te,oe,le+"."+ve,r);if(ye)return ye}return null}return w(Y)}function I(F){function Y(ne,ie,te,oe,le){var de=ne[ie],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+le+"` of type `"+ce+"` "+("supplied to `"+te+"`, expected `object`."));var ve=t({},ne[ie],F);for(var Ce in ve){var ye=F[Ce];if(n(F,Ce)&&typeof ye!="function")return K(te,oe,le,Ce,W(ye));if(!ye)return new v("Invalid "+oe+" `"+le+"` key `"+Ce+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(ne[ie],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(F),null," "));var J=ye(de,Ce,te,oe,le+"."+Ce,r);if(J)return J}return null}return w(Y)}function X(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(X);if(F===null||l(F))return!0;var Y=f(F);if(Y){var ne=Y.call(F),ie;if(Y!==F.entries){for(;!(ie=ne.next()).done;)if(!X(ie.value))return!1}else for(;!(ie=ne.next()).done;){var te=ie.value;if(te&&!X(te[1]))return!1}}else return!1;return!0;default:return!1}}function j(F,Y){return F==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function V(F){var Y=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":j(Y,F)?"symbol":Y}function W(F){if(typeof F=="undefined"||F===null)return""+F;var Y=V(F);if(Y==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return Y}function G(F){var Y=W(F);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function re(F){return!F.constructor||!F.constructor.name?p:F.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},Dh}var Nh,Jv;function M3(){if(Jv)return Nh;Jv=1;var e=zm();function t(){}function r(){}return r.resetWarningCache=t,Nh=function(){function n(o,l,u,c,h,f){if(f!==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},Nh}if(process.env.NODE_ENV!=="production"){var S3=p2,E3=!0;Af.exports=T3()(S3.isElement,E3)}else Af.exports=M3()();var P3=Af.exports;const _=y.getDefaultExportFromCjs(P3);function g2(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=g2(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function We(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=g2(e))&&(n&&(n+=" "),n+=t);return n}function Et(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let o="",l=!0;for(let u=0;u<a.length;u+=1){const c=a[u];c&&(o+=(l===!0?"":" ")+t(c),l=!1,r&&r[c]&&(o+=" "+r[c]))}n[i]=o}return n}function A3(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 v2(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=A3(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function y2(e,t,...r){return e[t]===void 0?null:v2(e,t,...r)}function Rf(){return null}y2.isRequired=v2;Rf.isRequired=Rf;const mn=process.env.NODE_ENV==="production"?Rf:y2,ey=e=>e,R3=()=>{let e=ey;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ey}}},O3=R3(),k3={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 ht(e,t,r="Mui"){const n=k3[t];return n?`${r}-${n}`:`${O3.generate(e)}-${t}`}function ft(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=ht(e,i,r)}),n}function D3(e){return ht("MuiPagination",e)}ft("MuiPagination",["root","ul","outlined","text"]);function Bm({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=Q.useRef(e!==void 0),[a,o]=Q.useState(t),l=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[l,u]}function N3(e={}){const U=e,{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:i=1,disabled:a=!1,hideNextButton:o=!1,hidePrevButton:l=!1,onChange:u,page:c,showFirstButton:h=!1,showLastButton:f=!1,siblingCount:p=1}=U,g=xe(U,["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"]),[b,v]=Bm({controlled:c,default:i,name:r,state:"page"}),w=(Z,K)=>{c||v(K),u&&u(Z,K)},C=(Z,K)=>{const R=K-Z+1;return Array.from({length:R},(I,X)=>Z+X)},T=C(1,Math.min(t,n)),E=C(Math.max(n-t+1,t+1),n),S=Math.max(Math.min(b-p,n-t-p*2-1),t+2),P=Math.min(Math.max(b+p,t+p*2+2),n-t-1),O=[...h?["first"]:[],...l?[]:["previous"],...T,...S>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...C(S,P),...P<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...E,...o?[]:["next"],...f?["last"]:[]],N=Z=>{switch(Z){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return n;default:return null}},z=O.map(Z=>typeof Z=="number"?{onClick:K=>{w(K,Z)},type:"page",page:Z,selected:Z===b,disabled:a,"aria-current":Z===b?"page":void 0}:{onClick:K=>{w(K,N(Z))},type:Z,page:N(Z),selected:!1,disabled:a||!Z.includes("ellipsis")&&(Z==="next"||Z==="last"?b>=n:b<=1)});return M({items:z},g)}function di(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 L3(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Wm(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}].`),L3(e,t,r)}function I3(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 hi(e){if(e.type)return e;if(e.charAt(0)==="#")return hi(I3(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().`:di(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.`:di(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const $3=e=>{const t=hi(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},us=(e,t)=>{try{return $3(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Nc(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 b2(e){e=hi(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,h=(c+r/30)%12)=>i-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),Nc({type:l,values:u})}function Of(e){e=hi(e);let t=e.type==="hsl"||e.type==="hsla"?hi(b2(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:cn((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ty(e,t){const r=Of(e),n=Of(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function bt(e,t){return e=hi(e),t=Wm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Nc(e)}function cu(e,t,r){try{return bt(e,t)}catch(n){return e}}function Lc(e,t){if(e=hi(e),t=Wm(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 Nc(e)}function lt(e,t,r){try{return Lc(e,t)}catch(n){return e}}function Ic(e,t){if(e=hi(e),t=Wm(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 Nc(e)}function ut(e,t,r){try{return Ic(e,t)}catch(n){return e}}function kf(e,t=.15){return Of(e)>.5?Lc(e,t):Ic(e,t)}function du(e,t,r){try{return kf(e,t)}catch(n){return e}}const F3=Q.createContext(),$c=()=>{const e=Q.useContext(F3);return e!=null?e:!1};function z3(e){return ht("MuiPaginationItem",e)}const cr=ft("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),al=_.oneOfType([_.func,_.object]);function qn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function B3(e){const{prototype:t={}}=e;return!!t.isReactComponent}function W3(e,t,r,n,i){const a=e[t],o=i||t;if(a==null||typeof window=="undefined")return null;let l;return typeof a=="function"&&!B3(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Hm=qn(_.elementType,W3);function Qu(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 Ie(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":di(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Df={exports:{}},nt={};/**
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 ry;function H3(){if(ry)return nt;ry=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"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case i:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case o:case l:case f:case h:return v;case a:return v;default:return w}}case t:return w}}}return nt.ContextConsumer=a,nt.ContextProvider=o,nt.Element=e,nt.ForwardRef=l,nt.Fragment=r,nt.Lazy=f,nt.Memo=h,nt.Portal=t,nt.Profiler=i,nt.StrictMode=n,nt.Suspense=u,nt.SuspenseList=c,nt.isContextConsumer=function(v){return b(v)===a},nt.isContextProvider=function(v){return b(v)===o},nt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},nt.isForwardRef=function(v){return b(v)===l},nt.isFragment=function(v){return b(v)===r},nt.isLazy=function(v){return b(v)===f},nt.isMemo=function(v){return b(v)===h},nt.isPortal=function(v){return b(v)===t},nt.isProfiler=function(v){return b(v)===i},nt.isStrictMode=function(v){return b(v)===n},nt.isSuspense=function(v){return b(v)===u},nt.isSuspenseList=function(v){return b(v)===c},nt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===c||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===h||v.$$typeof===o||v.$$typeof===a||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},nt.typeOf=b,nt}var it={};/**
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 ny;function j3(){return ny||(ny=1,process.env.NODE_ENV!=="production"&&function(){function e(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case n:case a:case i:case c:case h:return v;default:switch(v=v&&v.$$typeof,v){case l:case u:case p:case f:return v;case o:return v;default:return w}}case r:return w}}}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"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");it.ContextConsumer=o,it.ContextProvider=l,it.Element=t,it.ForwardRef=u,it.Fragment=n,it.Lazy=p,it.Memo=f,it.Portal=r,it.Profiler=a,it.StrictMode=i,it.Suspense=c,it.SuspenseList=h,it.isContextConsumer=function(v){return e(v)===o},it.isContextProvider=function(v){return e(v)===l},it.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},it.isForwardRef=function(v){return e(v)===u},it.isFragment=function(v){return e(v)===n},it.isLazy=function(v){return e(v)===p},it.isMemo=function(v){return e(v)===f},it.isPortal=function(v){return e(v)===r},it.isProfiler=function(v){return e(v)===a},it.isStrictMode=function(v){return e(v)===i},it.isSuspense=function(v){return e(v)===c},it.isSuspenseList=function(v){return e(v)===h},it.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===a||v===i||v===c||v===h||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===l||v.$$typeof===o||v.$$typeof===u||v.$$typeof===b||v.getModuleId!==void 0)},it.typeOf=e}()),it}process.env.NODE_ENV==="production"?Df.exports=H3():Df.exports=j3();var Ju=Df.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 _2(e){if(Q.isValidElement(e)||Ju.isValidElementType(e)||!gn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=_2(e[r])}),t}function mr(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])||Ju.isValidElementType(t[i])?n[i]=t[i]:gn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&gn(e[i])?n[i]=mr(e[i],t[i],r):r.clone?n[i]=gn(t[i])?_2(t[i]):t[i]:n[i]=t[i]}),n}function ws(e,t){return t?mr(e,t,{clone:!1}):e}const _i=process.env.NODE_ENV!=="production"?_.oneOfType([_.number,_.string,_.object,_.array]):{};function V3(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var o,l;const a=/min-width:\s*([0-9.]+)/;return+(((o=n.match(a))==null?void 0:o[1])||0)-+(((l=i.match(a))==null?void 0:l[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 G3(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function U3(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\`.`:di(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function Y3(e){const t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function r(a,o){a.up=(...l)=>t(e.breakpoints.up(...l),o),a.down=(...l)=>t(e.breakpoints.down(...l),o),a.between=(...l)=>t(e.breakpoints.between(...l),o),a.only=(...l)=>t(e.breakpoints.only(...l),o),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),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),$(M({},e),{containerQueries:i})}const Fc={xs:0,sm:600,md:900,lg:1200,xl:1536},iy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fc[e]}px)`},q3={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Fc[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Cn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||iy;return t.reduce((o,l,u)=>(o[a.up(a.keys[u])]=r(t[u]),o),{})}if(typeof t=="object"){const a=n.breakpoints||iy;return Object.keys(t).reduce((o,l)=>{if(G3(a.keys,l)){const u=U3(n.containerQueries?n:q3,l);u&&(o[u]=r(t[l],l))}else if(Object.keys(a.values||Fc).includes(l)){const u=a.up(l);o[u]=r(t[l],l)}else{const u=l;o[u]=t[u]}return o},{})}return r(t)}function w2(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function x2(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function X3(e,...t){const r=w2(e),n=[r,...t].reduce((i,a)=>mr(i,a),{});return x2(Object.keys(r),n)}function Z3(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 K3({values:e,breakpoints:t,base:r}){const n=r||Z3(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,l,u)=>(Array.isArray(e)?(o[l]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(o[l]=e[l]!=null?e[l]:e[a],a=l):o[l]=e,o),{})}function zc(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 ec(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=zc(e,r)||n,t&&(i=t(i,n,e)),i}function zt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const l=o[t],u=o.theme,c=zc(u,n)||{};return Cn(o,l,f=>{let p=ec(c,i,f);return f===p&&typeof f=="string"&&(p=ec(c,i,`${t}${f==="default"?"":Ie(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:_i}:{},a.filterProps=[t],a}function Q3(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const J3={m:"margin",p:"padding"},eP={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ay={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tP=Q3(e=>{if(e.length>2)if(ay[e])e=ay[e];else return[e];const[t,r]=e.split(""),n=J3[t],i=eP[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Bc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rP=[...Bc,...Wc];function ol(e,t,r,n){var a;const i=(a=zc(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 l=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>i.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${l} > ${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[l];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 Hc(e){return ol(e,"spacing",8,"spacing")}function fo(e,t){return typeof t=="string"||t==null?t:e(t)}function nP(e,t){return r=>e.reduce((n,i)=>(n[i]=fo(t,r),n),{})}function iP(e,t,r,n){if(!t.includes(r))return null;const i=tP(r),a=nP(i,n),o=e[r];return Cn(e,o,a)}function C2(e,t){const r=Hc(e.theme);return Object.keys(e).map(n=>iP(e,t,n,r)).reduce(ws,{})}function Rt(e){return C2(e,Bc)}Rt.propTypes=process.env.NODE_ENV!=="production"?Bc.reduce((e,t)=>(e[t]=_i,e),{}):{};Rt.filterProps=Bc;function Ot(e){return C2(e,Wc)}Ot.propTypes=process.env.NODE_ENV!=="production"?Wc.reduce((e,t)=>(e[t]=_i,e),{}):{};Ot.filterProps=Wc;process.env.NODE_ENV!=="production"&&rP.reduce((e,t)=>(e[t]=_i,e),{});function jc(...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]?ws(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 Gr(e){return typeof e!="number"?e:`${e}px solid`}function Zr(e,t){return zt({prop:e,themeKey:"borders",transform:t})}const aP=Zr("border",Gr),oP=Zr("borderTop",Gr),sP=Zr("borderRight",Gr),lP=Zr("borderBottom",Gr),uP=Zr("borderLeft",Gr),cP=Zr("borderColor"),dP=Zr("borderTopColor"),hP=Zr("borderRightColor"),fP=Zr("borderBottomColor"),pP=Zr("borderLeftColor"),mP=Zr("outline",Gr),gP=Zr("outlineColor"),Vc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ol(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:fo(t,n)});return Cn(e,e.borderRadius,r)}return null};Vc.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:_i}:{};Vc.filterProps=["borderRadius"];jc(aP,oP,sP,lP,uP,cP,dP,hP,fP,pP,Vc,mP,gP);const Gc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ol(e.theme,"spacing",8,"gap"),r=n=>({gap:fo(t,n)});return Cn(e,e.gap,r)}return null};Gc.propTypes=process.env.NODE_ENV!=="production"?{gap:_i}:{};Gc.filterProps=["gap"];const Uc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ol(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:fo(t,n)});return Cn(e,e.columnGap,r)}return null};Uc.propTypes=process.env.NODE_ENV!=="production"?{columnGap:_i}:{};Uc.filterProps=["columnGap"];const Yc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ol(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:fo(t,n)});return Cn(e,e.rowGap,r)}return null};Yc.propTypes=process.env.NODE_ENV!=="production"?{rowGap:_i}:{};Yc.filterProps=["rowGap"];const vP=zt({prop:"gridColumn"}),yP=zt({prop:"gridRow"}),bP=zt({prop:"gridAutoFlow"}),_P=zt({prop:"gridAutoColumns"}),wP=zt({prop:"gridAutoRows"}),xP=zt({prop:"gridTemplateColumns"}),CP=zt({prop:"gridTemplateRows"}),TP=zt({prop:"gridTemplateAreas"}),MP=zt({prop:"gridArea"});jc(Gc,Uc,Yc,vP,yP,bP,_P,wP,xP,CP,TP,MP);function Xa(e,t){return t==="grey"?t:e}const SP=zt({prop:"color",themeKey:"palette",transform:Xa}),EP=zt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xa}),PP=zt({prop:"backgroundColor",themeKey:"palette",transform:Xa});jc(SP,EP,PP);function Pr(e){return e<=1&&e!==0?`${e*100}%`:e}const AP=zt({prop:"width",transform:Pr}),jm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,o,l,u;const n=((o=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:o[r])||Fc[r];return n?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Pr(r)}};return Cn(e,e.maxWidth,t)}return null};jm.filterProps=["maxWidth"];const RP=zt({prop:"minWidth",transform:Pr}),OP=zt({prop:"height",transform:Pr}),kP=zt({prop:"maxHeight",transform:Pr}),DP=zt({prop:"minHeight",transform:Pr});zt({prop:"size",cssProperty:"width",transform:Pr});zt({prop:"size",cssProperty:"height",transform:Pr});const NP=zt({prop:"boxSizing"});jc(AP,jm,RP,OP,kP,DP,NP);const sl={border:{themeKey:"borders",transform:Gr},borderTop:{themeKey:"borders",transform:Gr},borderRight:{themeKey:"borders",transform:Gr},borderBottom:{themeKey:"borders",transform:Gr},borderLeft:{themeKey:"borders",transform:Gr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vc},color:{themeKey:"palette",transform:Xa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xa},backgroundColor:{themeKey:"palette",transform:Xa},p:{style:Ot},pt:{style:Ot},pr:{style:Ot},pb:{style:Ot},pl:{style:Ot},px:{style:Ot},py:{style:Ot},padding:{style:Ot},paddingTop:{style:Ot},paddingRight:{style:Ot},paddingBottom:{style:Ot},paddingLeft:{style:Ot},paddingX:{style:Ot},paddingY:{style:Ot},paddingInline:{style:Ot},paddingInlineStart:{style:Ot},paddingInlineEnd:{style:Ot},paddingBlock:{style:Ot},paddingBlockStart:{style:Ot},paddingBlockEnd:{style:Ot},m:{style:Rt},mt:{style:Rt},mr:{style:Rt},mb:{style:Rt},ml:{style:Rt},mx:{style:Rt},my:{style:Rt},margin:{style:Rt},marginTop:{style:Rt},marginRight:{style:Rt},marginBottom:{style:Rt},marginLeft:{style:Rt},marginX:{style:Rt},marginY:{style:Rt},marginInline:{style:Rt},marginInlineStart:{style:Rt},marginInlineEnd:{style:Rt},marginBlock:{style:Rt},marginBlockStart:{style:Rt},marginBlockEnd:{style:Rt},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:Gc},rowGap:{style:Yc},columnGap:{style:Uc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pr},maxWidth:{style:jm},minWidth:{transform:Pr},height:{transform:Pr},maxHeight:{transform:Pr},minHeight:{transform:Pr},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 LP(...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 IP(e,t){return typeof e=="function"?e(t):e}function $P(){function e(r,n,i,a){const o={[r]:n,theme:i},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:h,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=zc(i,c)||{};return f?f(o):Cn(o,n,b=>{let v=ec(p,h,b);return b===v&&typeof b=="string"&&(v=ec(p,h,`${r}${b==="default"?"":Ie(b)}`,b)),u===!1?v:{[u]:v}})}function t(r){var l;const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=(l=i.unstable_sxConfig)!=null?l:sl;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 h=w2(i.breakpoints),f=Object.keys(h);let p=h;return Object.keys(c).forEach(g=>{const b=IP(c[g],i);if(b!=null)if(typeof b=="object")if(a[g])p=ws(p,e(g,b,i,a));else{const v=Cn({theme:i},b,w=>({[g]:w}));LP(v,b)?p[g]=t({sx:b,theme:i}):p=ws(p,v)}else p=ws(p,e(g,b,i,a))}),V3(i,x2(f,p))}return Array.isArray(n)?n.map(o):o(n)}return t}const to=$P();to.filterProps=["sx"];const FP=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:sl;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function T2(e){const o=e,{sx:t}=o,r=xe(o,["sx"]),{systemProps:n,otherProps:i}=FP(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const u=t(...l);return gn(u)?M(M({},n),u):n}:a=M(M({},n),t),$(M({},i),{sx:a})}exports.jsx=function(t,r){var n=arguments;if(r==null||!y.hasOwn.call(r,"css"))return Q.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=y.Emotion$1,a[1]=y.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={}));function qc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return y.serializeStyles(t)}function ll(){var e=qc.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 zP=/^((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)-.*))$/,M2=y.memoize(function(e){return zP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),BP=!1,WP=M2,HP=function(t){return t!=="theme"},oy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?WP:HP},sy=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},jP=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return y.registerStyles(r,n,i),y.useInsertionEffectAlwaysWithSyncFallback(function(){return y.insertStyles(r,n,i)}),null},VP=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 l=sy(t,r,n),u=l||oy(i),c=!u("as");return function(){var h=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)f.push.apply(f,h);else{var p=h[0];f.push(p[0]);for(var g=h.length,b=1;b<g;b++)f.push(h[b],p[b])}var v=y.withEmotionCache(function(w,C,T){var E=c&&w.as||i,S="",P=[],O=w;if(w.theme==null){O={};for(var N in w)O[N]=w[N];O.theme=Q.useContext(y.ThemeContext)}typeof w.className=="string"?S=y.getRegisteredStyles(C.registered,P,w.className):w.className!=null&&(S=w.className+" ");var z=y.serializeStyles(f.concat(P),C.registered,O);S+=C.key+"-"+z.name,o!==void 0&&(S+=" "+o);var U=c&&l===void 0?oy(E):u,Z={};for(var K in w)c&&K==="as"||U(K)&&(Z[K]=w[K]);return Z.className=S,T&&(Z.ref=T),Q.createElement(Q.Fragment,null,Q.createElement(jP,{cache:C,serialized:z,isStringTag:typeof E=="string"}),Q.createElement(E,Z))});return v.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=f,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return o===void 0&&BP?"NO_COMPONENT_SELECTOR":"."+o}}),v.withComponent=function(w,C){var T=e(w,Ns({},r,C,{shouldForwardProp:sy(v,C,!0)}));return T.apply(void 0,f)},v}},GP=["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"],tc=VP.bind(null);GP.forEach(function(e){tc[e]=tc(e)});/**
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 UP(e,t){const r=tc(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 YP(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ly=[];function uy(e){return ly[0]=e,y.serializeStyles(ly)}const qP=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)=>$(M({},r),{[n.key]:n.val}),{})};function XP(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=qP(t),o=Object.keys(a);function l(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-n/100}${r})`}function c(g,b){const v=o.indexOf(b);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:b)-n/100}${r})`}function h(g){return o.indexOf(g)+1<o.length?c(g,o[o.indexOf(g)+1]):l(g)}function f(g){const b=o.indexOf(g);return b===0?l(o[1]):b===o.length-1?u(o[b]):c(g,o[o.indexOf(g)+1]).replace("@media","@media not all and")}return M({keys:o,values:a,up:l,down:u,between:c,only:h,not:f,unit:r},i)}const ZP={borderRadius:4};function S2(e=8,t=Hc({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 KP(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 Xc(e={},...t){const h=e,{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=h,o=xe(h,["breakpoints","palette","spacing","shape"]),l=XP(r),u=S2(i);let c=mr({breakpoints:l,direction:"ltr",components:{},palette:M({mode:"light"},n),spacing:u,shape:M(M({},ZP),a)},o);return c=Y3(c),c.applyStyles=KP,c=t.reduce((f,p)=>mr(f,p),c),c.unstable_sxConfig=M(M({},sl),o==null?void 0:o.unstable_sxConfig),c.unstable_sx=function(p){return to({sx:p,theme:this})},c}function QP(e){return Object.keys(e).length===0}function JP(e=null){const t=Q.useContext(y.ThemeContext);return!t||QP(t)?e:t}const eA=Xc();function E2(e=eA){return JP(e)}function P2(e,t=""){return e.displayName||e.name||t}function cy(e,t,r){const n=P2(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function tA(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return P2(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ju.ForwardRef:return cy(e,e.render,"ForwardRef");case Ju.Memo:return cy(e,e.type,"memo");default:return}}}function A2(e){const i=e,{variants:t}=i,r=xe(i,["variants"]),n={variants:t,style:uy(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=uy(a.style))}),n}const rA=Xc();function Lh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function nA(e){return e?(t,r)=>r[e]:null}function iA(e,t,r){e.theme=sA(e.theme)?r:e.theme[t]||e.theme}function Lu(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Lu(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 R2(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function R2(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=$(M(M({},e),e.ownerState),{ownerState:e.ownerState})),!o.props(n))continue}else for(const l in o.props)if(e[l]!==o.props[l]&&((i=e.ownerState)==null?void 0:i[l])!==o.props[l])continue e;typeof o.style=="function"?(n!=null||(n=$(M(M({},e),e.ownerState),{ownerState:e.ownerState})),r.push(o.style(n))):r.push(o.style)}return r}function O2(e={}){const{themeId:t,defaultTheme:r=rA,rootShouldForwardProp:n=Lh,slotShouldForwardProp:i=Lh}=e;function a(l){iA(l,t,r)}return(l,u={})=>{YP(l,O=>O.filter(N=>N!==to));const P=u,{name:c,slot:h,skipVariantsResolver:f,skipSx:p,overridesResolver:g=nA(k2(h))}=P,b=xe(P,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),v=f!==void 0?f:h&&h!=="Root"&&h!=="root"||!1,w=p||!1;let C=Lh;h==="Root"||h==="root"?C=n:h?C=i:lA(l)&&(C=void 0);const T=UP(l,M({shouldForwardProp:C,label:oA(c,h)},b)),E=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(z){return Lu(z,O)};if(gn(O)){const N=A2(O);return N.variants?function(U){return Lu(U,N)}:N.style}return O},S=(...O)=>{const N=[],z=O.map(E),U=[];if(N.push(a),c&&g&&U.push(function(I){var W,G;const j=(G=(W=I.theme.components)==null?void 0:W[c])==null?void 0:G.styleOverrides;if(!j)return null;const V={};for(const re in j)V[re]=Lu(I,j[re]);return g(I,V)}),c&&!v&&U.push(function(I){var V,W;const X=I.theme,j=(W=(V=X==null?void 0:X.components)==null?void 0:V[c])==null?void 0:W.variants;return j?R2(I,j):null}),w||U.push(to),Array.isArray(z[0])){const R=z.shift(),I=new Array(N.length).fill(""),X=new Array(U.length).fill("");let j;j=[...I,...R,...X],j.raw=[...I,...R.raw,...X],N.unshift(j)}const Z=[...N,...z,...U],K=T(...Z);return l.muiName&&(K.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(K.displayName=aA(c,h,l)),K};return T.withConfig&&(S.withConfig=T.withConfig),S}}function aA(e,t,r){return e?`${e}${Ie(t||"")}`:`Styled(${tA(r)})`}function oA(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${k2(t||"Root")}`),r}function sA(e){for(const t in e)return!1;return!0}function lA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function k2(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ls(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 l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;r[i][u]=Ls(a[u],o[u])}}}else r[i]===void 0&&(r[i]=e[i])}return r}const fi=typeof window!="undefined"?Q.useLayoutEffect:Q.useEffect;function uA(e){const{prototype:t={}}=e;return!!t.isReactComponent}function D2(e,t,r,n,i){const a=e[t],o=i||t;if(a==null||typeof window=="undefined")return null;let l;const u=a.type;return typeof u=="function"&&!uA(u)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ra=qn(_.element,D2);ra.isRequired=qn(_.element.isRequired,D2);const cA="exact-prop: ​";function Vm(e){return process.env.NODE_ENV==="production"?e:$(M({},e),{[cA]: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 jn(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 Nf(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function dA(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 kr(e){return e&&e.ownerDocument||document}function Ui(e){return kr(e).defaultView||window}function dy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let hy=0;function hA(e){const[t,r]=Q.useState(e),n=e||t;return Q.useEffect(()=>{t==null&&(hy+=1,r(`mui-${hy}`))},[t]),n}const fA=M({},Q),fy=fA.useId;function Zc(e){if(fy!==void 0){const t=fy();return e!=null?e:t}return hA(e)}function Bn(e){const t=Q.useRef(e);return fi(()=>{t.current=e}),Q.useRef((...r)=>(0,t.current)(...r)).current}function vr(...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,l=o(n);return typeof l=="function"?l:()=>{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 py={};function N2(e,t){const r=Q.useRef(py);return r.current===py&&(r.current=e(t)),r}const pA=[];function mA(e){Q.useEffect(e,pA)}class Kc{constructor(){Xe(this,"currentId",null);Xe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Xe(this,"disposeEffect",()=>this.clear)}static create(){return new Kc}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Fi(){const e=N2(Kc.create).current;return mA(e.disposeEffect),e}function L2(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function gA(e){return typeof e=="string"}function I2(e,t,r){return e===void 0||gA(e)?t:$(M({},t),{ownerState:M(M({},t.ownerState),r)})}function $2(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 my(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 F2(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const g=We(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),b=M(M(M({},r==null?void 0:r.style),i==null?void 0:i.style),n==null?void 0:n.style),v=M(M(M({},r),i),n);return g.length>0&&(v.className=g),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const o=$2(M(M({},i),n)),l=my(n),u=my(i),c=t(o),h=We(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),f=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),l);return h.length>0&&(p.className=h),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function z2(e,t,r){return typeof e=="function"?e(t,r):e}function Gm(e){var p;const f=e,{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1}=f,a=xe(f,["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"]),o=i?{}:z2(r,n),{props:l,internalRef:u}=F2($(M({},a),{externalSlotProps:o})),c=vr(u,o==null?void 0:o.ref,(p=e.additionalProps)==null?void 0:p.ref);return I2(t,$(M({},l),{ref:c}),n)}function po(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 vA=Q.createContext(void 0);function yA(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?Ls(i.defaultProps,n):!i.styleOverrides&&!i.variants?Ls(i,n):n}function bA({props:e,name:t}){const r=Q.useContext(vA);return yA({props:e,name:t,theme:{components:r}})}const gy={theme:void 0};function _A(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(gy.theme=i.theme,a=A2(e(gy)),t=a,r=i.theme),a}}function wA(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 vy=(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])})},xA=(e,t,r)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([l,u])=>{(!r||r&&!r([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,l],Array.isArray(u)?[...o,l]:o):t([...a,l],u,o))})}n(e)},CA=(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 Ih(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},o={};return xA(e,(l,u,c)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const h=`--${r?`${r}-`:""}${l.join("-")}`,f=CA(l,u);Object.assign(i,{[h]:f}),vy(a,l,`var(${h})`,c),vy(o,l,`var(${h}, ${f})`,c)}},l=>l[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function TA(e,t={}){const{getSelector:r=w,disableCssColorScheme:n,colorSchemeSelector:i}=t,E=e,{colorSchemes:a={},components:o,defaultColorScheme:l="light"}=E,u=xe(E,["colorSchemes","components","defaultColorScheme"]),{vars:c,css:h,varsWithDefaults:f}=Ih(u,t);let p=f;const g={},S=a,{[l]:b}=S,v=xe(S,[uu(l)]);if(Object.entries(v||{}).forEach(([P,O])=>{const{vars:N,css:z,varsWithDefaults:U}=Ih(O,t);p=mr(p,U),g[P]={css:z,vars:N}}),b){const{css:P,vars:O,varsWithDefaults:N}=Ih(b,t);p=mr(p,N),g[l]={css:P,vars:O}}function w(P,O){var z,U;let N=i;if(i==="class"&&(N=".%s"),i==="data"&&(N="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(N=`[${i}="%s"]`),P){if(N==="media")return e.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${((U=(z=a[P])==null?void 0:z.palette)==null?void 0:U.mode)||P})`]:{":root":O}};if(N)return e.defaultColorScheme===P?`:root, ${N.replace("%s",String(P))}`:N.replace("%s",String(P))}return":root"}return{vars:p,generateThemeVars:()=>{let P=M({},c);return Object.entries(g).forEach(([,{vars:O}])=>{P=mr(P,O)}),P},generateStyleSheets:()=>{var K,R;const P=[],O=e.defaultColorScheme||"light";function N(I,X){Object.keys(X).length&&P.push(typeof I=="string"?{[I]:M({},X)}:I)}N(r(void 0,M({},h)),h);const Z=g,{[O]:z}=Z,U=xe(Z,[uu(O)]);if(z){const{css:I}=z,X=(R=(K=a[O])==null?void 0:K.palette)==null?void 0:R.mode,j=M(!n&&X?{colorScheme:X}:{},I);N(r(O,M({},j)),j)}return Object.entries(U).forEach(([I,{css:X}])=>{var W,G;const j=(G=(W=a[I])==null?void 0:W.palette)==null?void 0:G.mode,V=M(!n&&j?{colorScheme:j}:{},X);N(r(I,M({},V)),V)}),P}}}function MA(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 Is={black:"#000",white:"#fff"},SA={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"},Ca={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"},Ta={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"},qo={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"},Ma={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"},Sa={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"},Ea={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 B2(){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:Is.white,default:Is.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 EA=B2();function W2(){return{text:{primary:Is.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:Is.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 yy=W2();function by(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=Ic(e.main,i):t==="dark"&&(e.dark=Lc(e.main,a)))}function PA(e="light"){return e==="dark"?{main:Ma[200],light:Ma[50],dark:Ma[400]}:{main:Ma[700],light:Ma[400],dark:Ma[800]}}function AA(e="light"){return e==="dark"?{main:Ca[200],light:Ca[50],dark:Ca[400]}:{main:Ca[500],light:Ca[300],dark:Ca[700]}}function RA(e="light"){return e==="dark"?{main:Ta[500],light:Ta[300],dark:Ta[700]}:{main:Ta[700],light:Ta[400],dark:Ta[800]}}function OA(e="light"){return e==="dark"?{main:Sa[400],light:Sa[300],dark:Sa[700]}:{main:Sa[700],light:Sa[500],dark:Sa[900]}}function kA(e="light"){return e==="dark"?{main:Ea[400],light:Ea[300],dark:Ea[700]}:{main:Ea[800],light:Ea[500],dark:Ea[900]}}function DA(e="light"){return e==="dark"?{main:qo[400],light:qo[300],dark:qo[700]}:{main:"#ed6c02",light:qo[500],dark:qo[900]}}function Um(e){const v=e,{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=v,i=xe(v,["mode","contrastThreshold","tonalOffset"]),a=e.primary||PA(t),o=e.secondary||AA(t),l=e.error||RA(t),u=e.info||OA(t),c=e.success||kA(t),h=e.warning||DA(t);function f(w){const C=ty(w,yy.text.primary)>=r?yy.text.primary:EA.text.primary;if(process.env.NODE_ENV!=="production"){const T=ty(w,C);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${C} on ${w}`,"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:w,name:C,mainShade:T=500,lightShade:E=300,darkShade:S=700})=>{if(w=M({},w),!w.main&&w[T]&&(w.main=w[T]),!w.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 \`${T}\` property.`:di(11,C?` (${C})`:"",T));if(typeof w.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(w.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
- } });`:di(12,C?` (${C})`:"",JSON.stringify(w.main)));return by(w,"light",E,n),by(w,"dark",S,n),w.contrastText||(w.contrastText=f(w.main)),w};let g;return t==="light"?g=B2():t==="dark"&&(g=W2()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),mr(M({common:M({},Is),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:h,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:SA,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},g),i)}function NA(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 LA(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}function IA(e){return Math.round(e*1e5)/1e5}const _y={textTransform:"uppercase"},wy='"Roboto", "Helvetica", "Arial", sans-serif';function $A(e,t){const w=typeof t=="function"?t(e):t,{fontFamily:r=wy,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:h}=w,f=xe(w,["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,g=h||(C=>`${C/u*p}rem`),b=(C,T,E,S,P)=>M(M(M({fontFamily:r,fontWeight:C,fontSize:g(T),lineHeight:E},r===wy?{letterSpacing:`${IA(S/T)}em`}:{}),P),c),v={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(o,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(o,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(o,14,1.75,.4,_y),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,_y),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mr(M({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:l},v),f,{clone:!1})}const FA=.2,zA=.14,BA=.12;function yt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${FA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${zA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${BA})`].join(",")}const WA=["none",yt(0,2,1,-1,0,1,1,0,0,1,3,0),yt(0,3,1,-2,0,2,2,0,0,1,5,0),yt(0,3,3,-2,0,3,4,0,0,1,8,0),yt(0,2,4,-1,0,4,5,0,0,1,10,0),yt(0,3,5,-1,0,5,8,0,0,1,14,0),yt(0,3,5,-1,0,6,10,0,0,1,18,0),yt(0,4,5,-2,0,7,10,1,0,2,16,1),yt(0,5,5,-3,0,8,10,1,0,3,14,2),yt(0,5,6,-3,0,9,12,1,0,3,16,2),yt(0,6,6,-3,0,10,14,1,0,4,18,3),yt(0,6,7,-4,0,11,15,1,0,4,20,3),yt(0,7,8,-4,0,12,17,2,0,5,22,4),yt(0,7,8,-4,0,13,19,2,0,5,24,4),yt(0,7,9,-4,0,14,21,2,0,5,26,4),yt(0,8,9,-5,0,15,22,2,0,6,28,5),yt(0,8,10,-5,0,16,24,2,0,6,30,5),yt(0,8,11,-5,0,17,26,2,0,6,32,5),yt(0,9,11,-5,0,18,28,2,0,7,34,6),yt(0,9,12,-6,0,19,29,2,0,7,36,6),yt(0,10,13,-6,0,20,31,3,0,8,38,7),yt(0,10,13,-6,0,21,33,3,0,8,40,7),yt(0,10,14,-6,0,22,35,3,0,8,42,7),yt(0,11,14,-7,0,23,36,3,0,9,44,8),yt(0,11,15,-7,0,24,38,3,0,9,46,8)],HA={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)"},H2={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xy(e){return`${Math.round(e)}ms`}function jA(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*cn(t,.25)+t/5)*10),3e3)}function VA(e){const t=M(M({},HA),e.easing),r=M(M({},H2),e.duration);return $(M({getAutoHeightDuration:jA,create:(i=["all"],a={})=>{const h=a,{duration:o=r.standard,easing:l=t.easeInOut,delay:u=0}=h,c=xe(h,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){const f=g=>typeof g=="string",p=g=>!Number.isNaN(parseFloat(g));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(o)&&!f(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),f(l)||console.error('MUI: Argument "easing" must be a string.'),!p(u)&&!f(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(f=>`${f} ${typeof o=="string"?o:xy(o)} ${l} ${typeof u=="string"?u:xy(u)}`).join(",")}},e),{easing:t,duration:r})}const GA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function UA(e){return gn(e)||typeof e=="undefined"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function j2(e={}){const t=M({},e);function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[o,l]=i[a];!UA(l)||o.startsWith("unstable_")?delete n[o]:gn(l)&&(n[o]=M({},l),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 Lf(e={},...t){const g=e,{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:o={},typography:l={},shape:u}=g,c=xe(g,["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.":di(20));const h=Um(a),f=Xc(e);let p=mr(f,{mixins:LA(f.breakpoints,n),palette:h,shadows:WA.slice(),typography:$A(h,l),transitions:VA(o),zIndex:M({},GA)});if(p=mr(p,c),p=t.reduce((b,v)=>mr(b,v),p),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(w,C)=>{let T;for(T in w){const E=w[T];if(b.includes(T)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const S=ht("",T);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
76
- `))}w[T]={}}}};Object.keys(p.components).forEach(w=>{const C=p.components[w].styleOverrides;C&&w.startsWith("Mui")&&v(C,w)})}return p.unstable_sxConfig=M(M({},sl),c==null?void 0:c.unstable_sxConfig),p.unstable_sx=function(v){return to({sx:v,theme:this})},p.toRuntimeSource=j2,p}function If(e){let t;return e<1?t=5.11916*cn(e,2):t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const YA=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=If(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function V2(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function G2(e){return e==="dark"?YA:[]}function qA(e){const o=e,{palette:t={mode:"light"},opacity:r,overlays:n}=o,i=xe(o,["palette","opacity","overlays"]),a=Um(t);return M({palette:a,opacity:M(M({},V2(a.mode)),r),overlays:n||G2(a.mode)},i)}function XA(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 ZA=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],KA=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 ZA(e.cssVarPrefix).forEach(l=>{o[l]=r[l],delete r[l]}),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 QA(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function se(e,t,r){!e[t]&&r&&(e[t]=r)}function cs(e){return typeof e!="string"||!e.startsWith("hsl")?e:b2(e)}function $n(e,t){`${t}Channel`in e||(e[`${t}Channel`]=us(cs(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 JA(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const dn=e=>{try{return e()}catch(t){}},eR=(e="mui")=>wA(e);function $h(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=qA($(M({},t),{palette:M({mode:i},t==null?void 0:t.palette)}));return}const l=Lf($(M({},r),{palette:M({mode:i},t==null?void 0:t.palette)})),{palette:a}=l,o=xe(l,["palette"]);return e[n]=$(M({},t),{palette:a,opacity:M(M({},V2(i)),t==null?void 0:t.opacity),overlays:(t==null?void 0:t.overlays)||G2(i)}),o}function tR(e={},...t){const U=e,{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:o=XA,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root"}=U,c=xe(U,["colorSchemes","defaultColorScheme","disableCssColorScheme","cssVarPrefix","shouldSkipGeneratingVar","colorSchemeSelector","rootSelector"]),h=Object.keys(r)[0],f=n||(r.light&&h!=="light"?"light":h),p=eR(a),Z=r,{[f]:g,light:b,dark:v}=Z,w=xe(Z,[uu(f),"light","dark"]),C=M({},w);let T=g;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:di(21,f));const E=$h(C,T,c,f);b&&!C.light&&$h(C,b,void 0,"light"),v&&!C.dark&&$h(C,v,void 0,"dark");let S=$(M({defaultColorScheme:f},E),{cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:C,font:M(M({},NA(E.typography)),E.font),spacing:JA(c.spacing)});Object.keys(S.colorSchemes).forEach(K=>{const R=S.colorSchemes[K].palette,I=X=>{const j=X.split("-"),V=j[1],W=j[2];return p(X,R[V][W])};if(R.mode==="light"&&(se(R.common,"background","#fff"),se(R.common,"onBackground","#000")),R.mode==="dark"&&(se(R.common,"background","#000"),se(R.common,"onBackground","#fff")),QA(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){se(R.Alert,"errorColor",lt(R.error.light,.6)),se(R.Alert,"infoColor",lt(R.info.light,.6)),se(R.Alert,"successColor",lt(R.success.light,.6)),se(R.Alert,"warningColor",lt(R.warning.light,.6)),se(R.Alert,"errorFilledBg",I("palette-error-main")),se(R.Alert,"infoFilledBg",I("palette-info-main")),se(R.Alert,"successFilledBg",I("palette-success-main")),se(R.Alert,"warningFilledBg",I("palette-warning-main")),se(R.Alert,"errorFilledColor",dn(()=>R.getContrastText(R.error.main))),se(R.Alert,"infoFilledColor",dn(()=>R.getContrastText(R.info.main))),se(R.Alert,"successFilledColor",dn(()=>R.getContrastText(R.success.main))),se(R.Alert,"warningFilledColor",dn(()=>R.getContrastText(R.warning.main))),se(R.Alert,"errorStandardBg",ut(R.error.light,.9)),se(R.Alert,"infoStandardBg",ut(R.info.light,.9)),se(R.Alert,"successStandardBg",ut(R.success.light,.9)),se(R.Alert,"warningStandardBg",ut(R.warning.light,.9)),se(R.Alert,"errorIconColor",I("palette-error-main")),se(R.Alert,"infoIconColor",I("palette-info-main")),se(R.Alert,"successIconColor",I("palette-success-main")),se(R.Alert,"warningIconColor",I("palette-warning-main")),se(R.AppBar,"defaultBg",I("palette-grey-100")),se(R.Avatar,"defaultBg",I("palette-grey-400")),se(R.Button,"inheritContainedBg",I("palette-grey-300")),se(R.Button,"inheritContainedHoverBg",I("palette-grey-A100")),se(R.Chip,"defaultBorder",I("palette-grey-400")),se(R.Chip,"defaultAvatarColor",I("palette-grey-700")),se(R.Chip,"defaultIconColor",I("palette-grey-700")),se(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),se(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),se(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),se(R.LinearProgress,"primaryBg",ut(R.primary.main,.62)),se(R.LinearProgress,"secondaryBg",ut(R.secondary.main,.62)),se(R.LinearProgress,"errorBg",ut(R.error.main,.62)),se(R.LinearProgress,"infoBg",ut(R.info.main,.62)),se(R.LinearProgress,"successBg",ut(R.success.main,.62)),se(R.LinearProgress,"warningBg",ut(R.warning.main,.62)),se(R.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.11)`),se(R.Slider,"primaryTrack",ut(R.primary.main,.62)),se(R.Slider,"secondaryTrack",ut(R.secondary.main,.62)),se(R.Slider,"errorTrack",ut(R.error.main,.62)),se(R.Slider,"infoTrack",ut(R.info.main,.62)),se(R.Slider,"successTrack",ut(R.success.main,.62)),se(R.Slider,"warningTrack",ut(R.warning.main,.62));const X=du(R.background.default,.8);se(R.SnackbarContent,"bg",X),se(R.SnackbarContent,"color",dn(()=>R.getContrastText(X))),se(R.SpeedDialAction,"fabHoverBg",du(R.background.paper,.15)),se(R.StepConnector,"border",I("palette-grey-400")),se(R.StepContent,"border",I("palette-grey-400")),se(R.Switch,"defaultColor",I("palette-common-white")),se(R.Switch,"defaultDisabledColor",I("palette-grey-100")),se(R.Switch,"primaryDisabledColor",ut(R.primary.main,.62)),se(R.Switch,"secondaryDisabledColor",ut(R.secondary.main,.62)),se(R.Switch,"errorDisabledColor",ut(R.error.main,.62)),se(R.Switch,"infoDisabledColor",ut(R.info.main,.62)),se(R.Switch,"successDisabledColor",ut(R.success.main,.62)),se(R.Switch,"warningDisabledColor",ut(R.warning.main,.62)),se(R.TableCell,"border",ut(cu(R.divider,1),.88)),se(R.Tooltip,"bg",cu(R.grey[700],.92))}if(R.mode==="dark"){se(R.Alert,"errorColor",ut(R.error.light,.6)),se(R.Alert,"infoColor",ut(R.info.light,.6)),se(R.Alert,"successColor",ut(R.success.light,.6)),se(R.Alert,"warningColor",ut(R.warning.light,.6)),se(R.Alert,"errorFilledBg",I("palette-error-dark")),se(R.Alert,"infoFilledBg",I("palette-info-dark")),se(R.Alert,"successFilledBg",I("palette-success-dark")),se(R.Alert,"warningFilledBg",I("palette-warning-dark")),se(R.Alert,"errorFilledColor",dn(()=>R.getContrastText(R.error.dark))),se(R.Alert,"infoFilledColor",dn(()=>R.getContrastText(R.info.dark))),se(R.Alert,"successFilledColor",dn(()=>R.getContrastText(R.success.dark))),se(R.Alert,"warningFilledColor",dn(()=>R.getContrastText(R.warning.dark))),se(R.Alert,"errorStandardBg",lt(R.error.light,.9)),se(R.Alert,"infoStandardBg",lt(R.info.light,.9)),se(R.Alert,"successStandardBg",lt(R.success.light,.9)),se(R.Alert,"warningStandardBg",lt(R.warning.light,.9)),se(R.Alert,"errorIconColor",I("palette-error-main")),se(R.Alert,"infoIconColor",I("palette-info-main")),se(R.Alert,"successIconColor",I("palette-success-main")),se(R.Alert,"warningIconColor",I("palette-warning-main")),se(R.AppBar,"defaultBg",I("palette-grey-900")),se(R.AppBar,"darkBg",I("palette-background-paper")),se(R.AppBar,"darkColor",I("palette-text-primary")),se(R.Avatar,"defaultBg",I("palette-grey-600")),se(R.Button,"inheritContainedBg",I("palette-grey-800")),se(R.Button,"inheritContainedHoverBg",I("palette-grey-700")),se(R.Chip,"defaultBorder",I("palette-grey-700")),se(R.Chip,"defaultAvatarColor",I("palette-grey-300")),se(R.Chip,"defaultIconColor",I("palette-grey-300")),se(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),se(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),se(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),se(R.LinearProgress,"primaryBg",lt(R.primary.main,.5)),se(R.LinearProgress,"secondaryBg",lt(R.secondary.main,.5)),se(R.LinearProgress,"errorBg",lt(R.error.main,.5)),se(R.LinearProgress,"infoBg",lt(R.info.main,.5)),se(R.LinearProgress,"successBg",lt(R.success.main,.5)),se(R.LinearProgress,"warningBg",lt(R.warning.main,.5)),se(R.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.13)`),se(R.Slider,"primaryTrack",lt(R.primary.main,.5)),se(R.Slider,"secondaryTrack",lt(R.secondary.main,.5)),se(R.Slider,"errorTrack",lt(R.error.main,.5)),se(R.Slider,"infoTrack",lt(R.info.main,.5)),se(R.Slider,"successTrack",lt(R.success.main,.5)),se(R.Slider,"warningTrack",lt(R.warning.main,.5));const X=du(R.background.default,.98);se(R.SnackbarContent,"bg",X),se(R.SnackbarContent,"color",dn(()=>R.getContrastText(X))),se(R.SpeedDialAction,"fabHoverBg",du(R.background.paper,.15)),se(R.StepConnector,"border",I("palette-grey-600")),se(R.StepContent,"border",I("palette-grey-600")),se(R.Switch,"defaultColor",I("palette-grey-300")),se(R.Switch,"defaultDisabledColor",I("palette-grey-600")),se(R.Switch,"primaryDisabledColor",lt(R.primary.main,.55)),se(R.Switch,"secondaryDisabledColor",lt(R.secondary.main,.55)),se(R.Switch,"errorDisabledColor",lt(R.error.main,.55)),se(R.Switch,"infoDisabledColor",lt(R.info.main,.55)),se(R.Switch,"successDisabledColor",lt(R.success.main,.55)),se(R.Switch,"warningDisabledColor",lt(R.warning.main,.55)),se(R.TableCell,"border",lt(cu(R.divider,1),.68)),se(R.Tooltip,"bg",cu(R.grey[700],.92))}$n(R.background,"default"),$n(R.background,"paper"),$n(R.common,"background"),$n(R.common,"onBackground"),$n(R,"divider"),Object.keys(R).forEach(X=>{const j=R[X];X!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&se(R[X],"mainChannel",us(cs(j.main))),j.light&&se(R[X],"lightChannel",us(cs(j.light))),j.dark&&se(R[X],"darkChannel",us(cs(j.dark))),j.contrastText&&se(R[X],"contrastTextChannel",us(cs(j.contrastText))),X==="text"&&($n(R[X],"primary"),$n(R[X],"secondary")),X==="action"&&(j.active&&$n(R[X],"active"),j.selected&&$n(R[X],"selected")))})}),S=t.reduce((K,R)=>mr(K,R),S);const P={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:KA(S)},{vars:O,generateThemeVars:N,generateStyleSheets:z}=TA(S,P);return S.vars=O,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([K,R])=>{S[K]=R}),S.generateThemeVars=N,S.generateStyleSheets=z,S.generateSpacing=function(){return S2(c.spacing,Hc(this))},S.getColorSchemeSelector=MA(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=o,S.unstable_sxConfig=M(M({},sl),c==null?void 0:c.unstable_sxConfig),S.unstable_sx=function(R){return to({sx:R,theme:this})},S.toRuntimeSource=j2,S}function Cy(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]=$(M({},r!==!0&&r),{palette:Um($(M({},r===!0?{}:r.palette),{mode:t}))}))}function rR(e={},...t){const h=e,{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode}=h,o=xe(h,["palette","cssVariables","colorSchemes","defaultColorScheme"]),l=a||"light",u=i==null?void 0:i[l],c=M(M({},i),r?{[l]:$(M({},typeof u!="boolean"&&u),{palette:r})}:void 0);if(n===!1){if(!("colorSchemes"in e))return Lf(e,...t);let f=r;"palette"in e||c[l]&&(c[l]!==!0?f=c[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Lf($(M({},e),{palette:f}),...t);return p.defaultColorScheme=l,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light=$(M({},c.light!==!0&&c.light),{palette:p.palette}),Cy(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark=$(M({},c.dark!==!0&&c.dark),{palette:p.palette}),Cy(p,"light",c.light)),p}return!r&&!("light"in c)&&l==="light"&&(c.light=!0),tR(M($(M({},o),{colorSchemes:c,defaultColorScheme:l}),typeof n!="boolean"&&n),...t)}const U2=rR(),Y2="$$material";function ul(){const e=E2(U2);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(e),e[Y2]||e}function nR(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cl=e=>nR(e)&&e!=="classes",De=O2({themeId:Y2,defaultTheme:U2,rootShouldForwardProp:cl});function iR(){return T2}function xt(e){return bA(e)}class rc{constructor(){Xe(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 rc}static use(){const t=N2(rc.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=oR(),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 aR(){return rc.use()}function oR(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function q2(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 $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$f(e,t)}function X2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$f(e,t)}const Ty={disabled:!1};var sR=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 nc=k.createContext(null);var ds="unmounted",Ni="exited",Li="entering",La="entered",Ff="exiting",tn=function(e){X2(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?l?(u=Ni,a.appearStatus=Li):u=La:n.unmountOnExit||n.mountOnEnter?u=ds:u=Ni,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===ds?{status:Ni}: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!==Li&&o!==La&&(a=Li):(o===Li||o===La)&&(a=Ff)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){i===void 0&&(i=!1),a!==null?(this.cancelNextCallback(),a===Li?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this)),this.performEnter(i)):this.performExit()):this.props.unmountOnExit&&this.state.status===Ni&&this.setState({status:ds})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,u=this.props.nodeRef?[l]:[Ar.findDOMNode(this),l],c=u[0],h=u[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!i&&!o||Ty.disabled){this.safeSetState({status:La},function(){a.props.onEntered(c)});return}this.props.onEnter(c,h),this.safeSetState({status:Li},function(){a.props.onEntering(c,h),a.onTransitionEnd(p,function(){a.safeSetState({status:La},function(){a.props.onEntered(c,h)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:Ar.findDOMNode(this);if(!a||Ty.disabled){this.safeSetState({status:Ni},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ff},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Ni},function(){i.props.onExited(l)})})})},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(l){o&&(o=!1,a.nextCallback=null,i(l))},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:Ar.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=u[0],h=u[1];this.props.addEndListener(c,h)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ds)return null;var a=this.props,o=a.children,l=q2(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(nc.Provider,{value:null},typeof o=="function"?o(i,l):k.cloneElement(k.Children.only(o),l))},t}(k.Component);tn.contextType=nc;tn.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=sR;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 Pa(){}tn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pa,onEntering:Pa,onEntered:Pa,onExit:Pa,onExiting:Pa,onExited:Pa};tn.UNMOUNTED=ds;tn.EXITED=Ni;tn.ENTERING=Li;tn.ENTERED=La;tn.EXITING=Ff;function lR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ym(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 uR(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}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,l={};for(var u in t){if(n[u])for(o=0;o<n[u].length;o++){var c=n[u][o];l[n[u][o]]=r(c)}l[u]=r(u)}for(o=0;o<i.length;o++)l[i[o]]=r(i[o]);return l}function zi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function cR(e,t){return Ym(e.children,function(r){return k.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:zi(r,"appear",e),enter:zi(r,"enter",e),exit:zi(r,"exit",e)})})}function dR(e,t,r){var n=Ym(e.children),i=uR(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(k.isValidElement(o)){var l=a in t,u=a in n,c=t[a],h=k.isValidElement(c)&&!c.props.in;u&&(!l||h)?i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:zi(o,"exit",e),enter:zi(o,"enter",e)}):!u&&l&&!h?i[a]=k.cloneElement(o,{in:!1}):u&&l&&k.isValidElement(c)&&(i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:c.props.in,exit:zi(o,"exit",e),enter:zi(o,"enter",e)}))}}),i}var hR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},fR={component:"div",childFactory:function(t){return t}},qm=function(e){X2(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(lR(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,l=a.handleExited,u=a.firstRender;return{children:u?cR(i,l):dR(i,o,l),firstRender:!1}},r.handleExited=function(i,a){var o=Ym(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var u=Ns({},l.children);return delete u[i.key],{children:u}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,l=q2(i,["component","childFactory"]),u=this.state.contextValue,c=hR(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?k.createElement(nc.Provider,{value:u},c):k.createElement(nc.Provider,{value:u},k.createElement(a,l,c))},t}(k.Component);qm.propTypes=process.env.NODE_ENV!=="production"?{component:_.any,children:_.node,appear:_.bool,enter:_.bool,exit:_.bool,childFactory:_.func}:{};qm.defaultProps=fR;function Z2(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:l,onExited:u,timeout:c}=e,[h,f]=Q.useState(!1),p=We(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},b=We(r.child,h&&r.childLeaving,n&&r.childPulsate);return!l&&!h&&f(!0),Q.useEffect(()=>{if(!l&&u!=null){const v=setTimeout(u,c);return()=>{clearTimeout(v)}}},[u,l,c]),me.jsx("span",{className:p,style:g,children:me.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(Z2.propTypes={classes:_.object.isRequired,className:_.string,in:_.bool,onExited:_.func,pulsate:_.bool,rippleSize:_.number,rippleX:_.number,rippleY:_.number,timeout:_.number.isRequired});const Vr=ft("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zf=550,pR=80,mR=ll`
78
- 0% {
79
- transform: scale(0);
80
- opacity: 0.1;
81
- }
82
-
83
- 100% {
84
- transform: scale(1);
85
- opacity: 0.3;
86
- }
87
- `,gR=ll`
88
- 0% {
89
- opacity: 1;
90
- }
91
-
92
- 100% {
93
- opacity: 0;
94
- }
95
- `,vR=ll`
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
- `,yR=De("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),bR=De(Z2,{name:"MuiTouchRipple",slot:"Ripple"})`
108
- opacity: 0;
109
- position: absolute;
110
-
111
- &.${Vr.rippleVisible} {
112
- opacity: 0.3;
113
- transform: scale(1);
114
- animation-name: ${mR};
115
- animation-duration: ${zf}ms;
116
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
117
- }
118
-
119
- &.${Vr.ripplePulsate} {
120
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
121
- }
122
-
123
- & .${Vr.child} {
124
- opacity: 1;
125
- display: block;
126
- width: 100%;
127
- height: 100%;
128
- border-radius: 50%;
129
- background-color: currentColor;
130
- }
131
-
132
- & .${Vr.childLeaving} {
133
- opacity: 0;
134
- animation-name: ${gR};
135
- animation-duration: ${zf}ms;
136
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
137
- }
138
-
139
- & .${Vr.childPulsate} {
140
- position: absolute;
141
- /* @noflip */
142
- left: 0px;
143
- top: 0;
144
- animation-name: ${vR};
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
- `,K2=Q.forwardRef(function(t,r){const S=xt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=S,l=xe(S,["center","classes","className"]),[u,c]=Q.useState([]),h=Q.useRef(0),f=Q.useRef(null);Q.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=Q.useRef(!1),g=Fi(),b=Q.useRef(null),v=Q.useRef(null),w=Q.useCallback(P=>{const{pulsate:O,rippleX:N,rippleY:z,rippleSize:U,cb:Z}=P;c(K=>[...K,me.jsx(bR,{classes:{ripple:We(a.ripple,Vr.ripple),rippleVisible:We(a.rippleVisible,Vr.rippleVisible),ripplePulsate:We(a.ripplePulsate,Vr.ripplePulsate),child:We(a.child,Vr.child),childLeaving:We(a.childLeaving,Vr.childLeaving),childPulsate:We(a.childPulsate,Vr.childPulsate)},timeout:zf,pulsate:O,rippleX:N,rippleY:z,rippleSize:U},h.current)]),h.current+=1,f.current=Z},[a]),C=Q.useCallback((P={},O={},N=()=>{})=>{const{pulsate:z=!1,center:U=i||O.pulsate,fakeElement:Z=!1}=O;if((P==null?void 0:P.type)==="mousedown"&&p.current){p.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(p.current=!0);const K=Z?null:v.current,R=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,X,j;if(U||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)I=Math.round(R.width/2),X=Math.round(R.height/2);else{const{clientX:V,clientY:W}=P.touches&&P.touches.length>0?P.touches[0]:P;I=Math.round(V-R.left),X=Math.round(W-R.top)}if(U)j=Math.sqrt((2*cn(R.width,2)+cn(R.height,2))/3),j%2===0&&(j+=1);else{const V=Math.max(Math.abs((K?K.clientWidth:0)-I),I)*2+2,W=Math.max(Math.abs((K?K.clientHeight:0)-X),X)*2+2;j=Math.sqrt(cn(V,2)+cn(W,2))}P!=null&&P.touches?b.current===null&&(b.current=()=>{w({pulsate:z,rippleX:I,rippleY:X,rippleSize:j,cb:N})},g.start(pR,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:z,rippleX:I,rippleY:X,rippleSize:j,cb:N})},[i,w,g]),T=Q.useCallback(()=>{C({},{pulsate:!0})},[C]),E=Q.useCallback((P,O)=>{if(g.clear(),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{E(P,O)});return}b.current=null,c(N=>N.length>0?N.slice(1):N),f.current=O},[g]);return Q.useImperativeHandle(r,()=>({pulsate:T,start:C,stop:E}),[T,C,E]),me.jsx(yR,$(M({className:We(Vr.root,a.root,o),ref:v},l),{children:me.jsx(qm,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(K2.propTypes={center:_.bool,classes:_.object,className:_.string});function _R(e){return ht("MuiButtonBase",e)}const wR=ft("MuiButtonBase",["root","disabled","focusVisible"]),xR=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Et({root:["root",t&&"disabled",r&&"focusVisible"]},_R,i);return r&&n&&(o.root+=` ${n}`),o},CR=De("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"},[`&.${wR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),na=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiButtonBase"}),Dt=n,{action:i,centerRipple:a=!1,children:o,className:l,component:u="button",disabled:c=!1,disableRipple:h=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:v,onClick:w,onContextMenu:C,onDragLeave:T,onFocus:E,onFocusVisible:S,onKeyDown:P,onKeyUp:O,onMouseDown:N,onMouseLeave:z,onMouseUp:U,onTouchEnd:Z,onTouchMove:K,onTouchStart:R,tabIndex:I=0,TouchRippleProps:X,touchRippleRef:j,type:V}=Dt,W=xe(Dt,["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"]),G=Q.useRef(null),re=aR(),F=vr(re.ref,j),[Y,ne]=Q.useState(!1);c&&Y&&ne(!1),Q.useImperativeHandle(i,()=>({focusVisible:()=>{ne(!0),G.current.focus()}}),[]);const ie=re.shouldMount&&!h&&!c;Q.useEffect(()=>{Y&&p&&!h&&re.pulsate()},[h,p,Y,re]);const te=Fn(re,"start",N,f),oe=Fn(re,"stop",C,f),le=Fn(re,"stop",T,f),de=Fn(re,"stop",U,f),ce=Fn(re,"stop",Pe=>{Y&&Pe.preventDefault(),z&&z(Pe)},f),ve=Fn(re,"start",R,f),Ce=Fn(re,"stop",Z,f),ye=Fn(re,"stop",K,f),J=Fn(re,"stop",Pe=>{Qu(Pe.target)||ne(!1),v&&v(Pe)},!1),we=Bn(Pe=>{G.current||(G.current=Pe.currentTarget),Qu(Pe.target)&&(ne(!0),S&&S(Pe)),E&&E(Pe)}),Ee=()=>{const Pe=G.current;return u&&u!=="button"&&!(Pe.tagName==="A"&&Pe.href)},ke=Bn(Pe=>{p&&!Pe.repeat&&Y&&Pe.key===" "&&re.stop(Pe,()=>{re.start(Pe)}),Pe.target===Pe.currentTarget&&Ee()&&Pe.key===" "&&Pe.preventDefault(),P&&P(Pe),Pe.target===Pe.currentTarget&&Ee()&&Pe.key==="Enter"&&!c&&(Pe.preventDefault(),w&&w(Pe))}),$e=Bn(Pe=>{p&&Pe.key===" "&&Y&&!Pe.defaultPrevented&&re.stop(Pe,()=>{re.pulsate(Pe)}),O&&O(Pe),w&&Pe.target===Pe.currentTarget&&Ee()&&Pe.key===" "&&!Pe.defaultPrevented&&w(Pe)});let je=u;je==="button"&&(W.href||W.to)&&(je=b);const Ue={};je==="button"?(Ue.type=V===void 0?"button":V,Ue.disabled=c):(!W.href&&!W.to&&(Ue.role="button"),c&&(Ue["aria-disabled"]=c));const ir=vr(r,G),At=$(M({},n),{centerRipple:a,component:u,disabled:c,disableRipple:h,disableTouchRipple:f,focusRipple:p,tabIndex:I,focusVisible:Y}),jt=xR(At);return me.jsxs(CR,$(M(M({as:je,className:We(jt.root,l),ownerState:At,onBlur:J,onClick:w,onContextMenu:oe,onFocus:we,onKeyDown:ke,onKeyUp:$e,onMouseDown:te,onMouseLeave:ce,onMouseUp:de,onDragLeave:le,onTouchEnd:Ce,onTouchMove:ye,onTouchStart:ve,ref:ir,tabIndex:c?-1:I,type:V},Ue),W),{children:[o,ie?me.jsx(K2,M({ref:F,center:a},X)):null]}))});function Fn(e,t,r,n=!1){return Bn(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(na.propTypes={action:al,centerRipple:_.bool,children:_.node,classes:_.object,className:_.string,component:Hm,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 TR(e){return typeof e.main=="string"}function MR(e,t=[]){if(!TR(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function pi(e=[]){return([,t])=>t&&MR(t,e)}const Ft=_A;function SR(e){return ht("MuiSvgIcon",e)}ft("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ER=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Ie(t)}`,`fontSize${Ie(r)}`]};return Et(i,SR,n)},PR=De("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ie(r.color)}`],t[`fontSize${Ie(r.fontSize)}`]]}})(Ft(({theme:e})=>{var t,r,n,i,a,o,l,u,c,h,f,p,g,b,v,w,C,T;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:((l=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:l.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:((f=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:f.call(h,35))||"2.1875rem"}},...Object.entries(((p=e.vars)!=null?p:e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var S,P,O;return{props:{color:E},style:{color:(O=(P=((S=e.vars)!=null?S:e).palette)==null?void 0:P[E])==null?void 0:O.main}}}),{props:{color:"action"},style:{color:(v=(b=((g=e.vars)!=null?g:e).palette)==null?void 0:b.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(T=(C=((w=e.vars)!=null?w:e).palette)==null?void 0:C.action)==null?void 0:T.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ic=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiSvgIcon"}),T=n,{children:i,className:a,color:o="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:h=!1,titleAccess:f,viewBox:p="0 0 24 24"}=T,g=xe(T,["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"]),b=Q.isValidElement(i)&&i.type==="svg",v=$(M({},n),{color:o,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:p,hasSvgAsChild:b}),w={};h||(w.viewBox=p);const C=ER(v);return me.jsxs(PR,$(M(M(M({as:l,className:We(C.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},w),g),b&&i.props),{ownerState:v,children:[b?i.props.children:i,f?me.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(ic.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});ic.muiName="SvgIcon";function mo(e,t){function r(n,i){return me.jsx(ic,$(M({"data-testid":`${t}Icon`,ref:i},n),{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=ic.muiName,Q.memo(Q.forwardRef(r))}const AR=mo(me.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),RR=mo(me.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),OR=mo(me.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),kR=mo(me.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function Zt(e,t){const P=t,{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:l=!1}=P,u=xe(P,["className","elementType","ownerState","externalForwardedProps","internalForwardedProps","shouldForwardComponentProp"]),O=a,{component:c,slots:h={[e]:void 0},slotProps:f={[e]:void 0}}=O,p=xe(O,["component","slots","slotProps"]),g=h[e]||n,b=z2(f[e],i),N=F2($(M({className:r},u),{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:b})),{props:z}=N,U=z,{component:v}=U,w=xe(U,["component"]),{internalRef:C}=N,T=vr(C,b==null?void 0:b.ref,t.ref),E=e==="root"?v||c:v,S=I2(g,$(M(M(M(M(M({},e==="root"&&!c&&!h[e]&&o),e!=="root"&&!h[e]&&o),w),E&&!l&&{as:E}),E&&l&&{component:E}),{ref:T}),i);return[g,S]}const Q2=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ie(r.size)}`],r.variant==="text"&&t[`text${Ie(r.color)}`],r.variant==="outlined"&&t[`outlined${Ie(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]},DR=e=>{const{classes:t,color:r,disabled:n,selected:i,size:a,shape:o,type:l,variant:u}=e,c={root:["root",`size${Ie(a)}`,u,o,r!=="standard"&&`color${Ie(r)}`,r!=="standard"&&`${u}${Ie(r)}`,n&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return Et(c,z3,t)},NR=De("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Q2})(Ft(({theme:e})=>$(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",[`&.${cr.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)}}]}))),LR=De(na,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Q2})(Ft(({theme:e})=>$(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,[`&.${cr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cr.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"}},[`&.${cr.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}))`:bt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${cr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${cr.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)"}`,[`&.${cr.selected}`]:{[`&.${cr.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${cr.selected}`]:{[`&.${cr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(pi(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${cr.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}},[`&.${cr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${cr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(pi(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${cr.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:bt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:bt(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}))`:bt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),IR=De("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(Ft(({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)}}]}))),J2=Q.forwardRef(function(t,r){var G,re,F,Y;const n=xt({props:t,name:"MuiPaginationItem"}),W=n,{className:i,color:a="standard",component:o,components:l={},disabled:u=!1,page:c,selected:h=!1,shape:f="circular",size:p="medium",slots:g={},slotProps:b={},type:v="page",variant:w="text"}=W,C=xe(W,["className","color","component","components","disabled","page","selected","shape","size","slots","slotProps","type","variant"]),T=$(M({},n),{color:a,disabled:u,selected:h,shape:f,size:p,type:v,variant:w}),E=$c(),S=DR(T),P={slots:{previous:(G=g.previous)!=null?G:l.previous,next:(re=g.next)!=null?re:l.next,first:(F=g.first)!=null?F:l.first,last:(Y=g.last)!=null?Y:l.last},slotProps:b},[O,N]=Zt("previous",{elementType:OR,externalForwardedProps:P,ownerState:T}),[z,U]=Zt("next",{elementType:kR,externalForwardedProps:P,ownerState:T}),[Z,K]=Zt("first",{elementType:AR,externalForwardedProps:P,ownerState:T}),[R,I]=Zt("last",{elementType:RR,externalForwardedProps:P,ownerState:T}),X=E?{previous:"next",next:"previous",first:"last",last:"first"}[v]:v,j={previous:O,next:z,first:Z,last:R}[X],V={previous:N,next:U,first:K,last:I}[X];return v==="start-ellipsis"||v==="end-ellipsis"?me.jsx(NR,{ref:r,ownerState:T,className:We(S.root,i),children:"…"}):me.jsxs(LR,$(M({ref:r,ownerState:T,component:o,disabled:u,className:We(S.root,i)},C),{children:[v==="page"&&c,j?me.jsx(IR,$(M({},V),{className:S.icon,as:j})):null]}))});process.env.NODE_ENV!=="production"&&(J2.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 $R=e=>{const{classes:t,variant:r}=e;return Et({root:["root",r],ul:["ul"]},D3,t)},FR=De("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),zR=De("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function BR(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const ew=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiPagination"}),Z=n,{boundaryCount:i=1,className:a,color:o="standard",count:l=1,defaultPage:u=1,disabled:c=!1,getItemAriaLabel:h=BR,hideNextButton:f=!1,hidePrevButton:p=!1,onChange:g,page:b,renderItem:v=K=>me.jsx(J2,M({},K)),shape:w="circular",showFirstButton:C=!1,showLastButton:T=!1,siblingCount:E=1,size:S="medium",variant:P="text"}=Z,O=xe(Z,["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"]),{items:N}=N3($(M({},n),{componentName:"Pagination"})),z=$(M({},n),{boundaryCount:i,color:o,count:l,defaultPage:u,disabled:c,getItemAriaLabel:h,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:w,showFirstButton:C,showLastButton:T,siblingCount:E,size:S,variant:P}),U=$R(z);return me.jsx(FR,$(M({"aria-label":"pagination navigation",className:We(U.root,a),ownerState:z,ref:r},O),{children:me.jsx(zR,{className:U.ul,ownerState:z,children:N.map((K,R)=>me.jsx("li",{children:v($(M({},K),{color:o,"aria-label":h(K.type,K.page,K.selected),shape:w,size:S,variant:P}))},R))})}))});process.env.NODE_ENV!=="production"&&(ew.propTypes={boundaryCount:mn,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","standard"]),_.string]),count:mn,defaultPage:mn,disabled:_.bool,getItemAriaLabel:_.func,hideNextButton:_.bool,hidePrevButton:_.bool,onChange:_.func,page:mn,renderItem:_.func,shape:_.oneOf(["circular","rounded"]),showFirstButton:_.bool,showLastButton:_.bool,siblingCount:mn,size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["outlined","text"]),_.string])});const WR={table:{columns:[],rows:[]}};function mi(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}const gr={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 Xm(e){return[H.customFormula(gr.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),H.customFormula(gr.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),H.customFormula(gr.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function HR(e){return[...Xm(e),H.customFormula(gr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),H.customFormula(gr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),H.customFormula(gr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function jR(e){return[...Xm(e),H.customFormula(gr.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),H.customFormula(gr.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function VR(e){return[...Xm(e),H.customFormula(gr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),H.customFormula(gr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),H.customFormula(gr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const GR=H.withComposeCodeForAnalytics(e=>{const t=H.cloneDeep(e),r=H.customFormula(gr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=H.customFormula(gr.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"),UR=H.withComposeCodeForAnalytics(e=>{const t=H.cloneDeep(e),r=H.customFormula(gr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=H.customFormula(gr.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"),YR=(e,t)=>{const r=e.category&&y.getColumnByName(t,e.category.column.name);r&&(r.direction=y.sortDirection(e.category.sortType));const n=y.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?y.rownumColumnName:void 0),i=y.getIndexedRows(t.rows,r?[r]:[]),a=y.getColumnByName(t,e.boxMin.column.name),o=y.getColumnByName(t,e.boxMedian.column.name),l=y.getColumnByName(t,e.boxMax.column.name),u=y.getColumnByName(t,e.whiskerMin.column.name),c=y.getColumnByName(t,e.whiskerMax.column.name),h=e.outliers&&y.getColumnByName(t,e.outliers.column.name),f=[],p=[];n.forEach((b,v)=>{const w=i[b.key],C=w?w[0]:[],T=r&&!!y.isBlurred(C,r);f.push({q1:a?y.getValue(C,a):0,median:o?y.getValue(C,o):0,q3:l?y.getValue(C,l):0,low:u?y.getValue(C,u):0,high:c?y.getValue(C,c):0,blur:T});const E=h?C[h.index].rawValue.split(",").map(S=>parseFloat(S)):[];p.push(...E.map(S=>({x:v,y:S,blur:T})))});const g=[{name:e.valueTitle,title:e.valueTitle,data:f}];return p.length>0&&g.push({name:e.valueTitle,title:e.valueTitle,data:p}),{type:"boxplot",xValues:n,series:g}};function qR(e){return e.type==="boxplot"}const XR=(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}),Qc=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:i,onSizeChange:a,debounceMs:o=300})=>{const l=k.useRef(null),[u,c]=k.useState(),h=k.useRef(null),f=k.useCallback(()=>{var O,N;const P={width:(O=l.current)==null?void 0:O.offsetWidth,height:(N=l.current)==null?void 0:N.offsetHeight};c(z=>{const U=(z==null?void 0:z.width)===0&&P.width===t.width,Z=(z==null?void 0:z.height)===0&&P.height===t.height,K={width:U?z.width:P.width,height:Z?z.height:P.height};return H.isEqual(z,K)?z:K})},[t]),p=k.useCallback(()=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{f()},o)},[f,o]);k.useLayoutEffect(()=>{f()},[f]),k.useEffect(()=>{const P=l.current;if(!P)return;const O=new ResizeObserver(()=>{p()});return O.observe(P),()=>{O.disconnect(),h.current&&clearTimeout(h.current)}},[p]);const g=k.useMemo(()=>XR(u,r,t),[u,t,r]),b=!!u;k.useEffect(()=>{b&&a&&a(g)},[g,b,a]);const v={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%"},w=(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,T={width:w||i!=null&&i.width?"100%":`${g.width}px`,height:C||i!=null&&i.height?"100%":`${g.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},S=n?`${g==null?void 0:g.width}${g==null?void 0:g.height}`:"";return y.jsx("div",{style:v,ref:l,children:y.jsx("div",{style:T,children:y.jsx("div",{style:E,children:typeof e=="function"?e(g):e})},S)})},tw=32,rw={width:400,height:500},ZR={width:400,height:400},KR={width:400,height:500},QR={width:200,height:200},Jc=e=>y.isTable(e)?KR:y.isIndicator(e)?QR:ZR,nw=(e,{hasHeader:t}={})=>{const r=e==="pivot"?rw:Jc(e);return t?{width:r.width,height:r.height+tw}:r},Zm=k.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"},errorBoundary:{showErrorBox:!0}}),Ct=()=>k.useContext(Zm);function JR(){const[e,t]=k.useState(null);return k.useEffect(()=>{H.initializeI18n().initPromise.then(r=>t(r))},[]),e}const iw=({children:e,userLanguage:t,customTranslations:r=[]})=>{const n=JR();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&&y.jsx(b3,{i18n:n,children:e})},eO=()=>e=>function(r){const{isInitialized:n}=Ct();return n?y.jsx(e,M({},r)):y.jsx(iw,{children:y.jsx(e,M({},r))})},Km="#F2F2F2",Qm=4,Jm="#D5D5D5",e0=1,t0="#D5D5D5",r0=1,n0="#DADADA",i0=1,a0="#DADADA",o0=1,s0=15,l0="#1FAFF3",aw="#1FCCF3",tO={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:"#9EA2AB",hyperlinkColor:l0,hyperlinkHoverColor:aw},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:s0,titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#5B6372",backgroundColor:"#FFFFFF"}},dashboard:{backgroundColor:"#FFFFFF",dividerLineWidth:Qm,dividerLineColor:Km,borderColor:Jm,borderWidth:e0,toolbar:{primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB",backgroundColor:"#FFFFFF",dividerLineColor:t0,dividerLineWidth:r0}},filter:{panel:{titleColor:"#5B6372",backgroundColor:"#F6F6F6",dividerLineColor:n0,dividerLineWidth:i0,borderColor:a0,borderWidth:o0}},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)"}}},rO={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:l0,hyperlinkHoverColor:aw},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:s0,dividerLine:!1,dividerLineColor:"#FFFFFF",backgroundColor:"#313138"}},dashboard:{backgroundColor:"#313138",dividerLineWidth:Qm,dividerLineColor:Km,borderColor:Jm,borderWidth:e0,toolbar:{primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",backgroundColor:"#313138",dividerLineColor:t0,dividerLineWidth:r0}},filter:{panel:{titleColor:"#FFFFFF",backgroundColor:"#313138",dividerLineColor:n0,dividerLineWidth:i0,borderColor:a0,borderWidth:o0}},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)"}}},ac=(e=!1)=>e?H.cloneDeep(rO):H.cloneDeep(tO),u0=k.createContext({themeSettings:ac()}),st=()=>k.useContext(u0);function ow({color:e="#FFCB05"}){return y.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:y.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:y.jsxs("g",{children:[y.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),y.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 nO="_container_1wquj_1",iO="_card_1wquj_11",aO="_text_1wquj_19",Fh={container:nO,card:iO,text:aO},c0=({error:e=new H.TranslatableError("errors.componentRenderError")})=>{var p,g,b,v,w,C;const{themeSettings:t}=st(),{app:r}=Ct(),{t:n}=y.useTranslation(),[i,a]=k.useState(!1),o=()=>{a(!0)},l=()=>{a(!1)},u=y.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:y.jsx(ow,{color:(p=t==null?void 0:t.general)==null?void 0:p.brandColor})}),c=e instanceof H.AbstractTranslatableError?n(e.key,M({},e.interpolationOptions)):n(e instanceof Error?e.message:e),h=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),f=(b=(g=r==null?void 0:r.settings)==null?void 0:g.errorBoundaryConfig)==null?void 0:b.alwaysShowErrorText;return y.jsx("div",{onMouseEnter:f?void 0:o,onMouseLeave:f?void 0:l,className:Fh.container,"aria-label":"error-box",children:y.jsxs("div",{className:Fh.card,style:{backgroundColor:((v=t==null?void 0:t.general)==null?void 0:v.backgroundColor)||"rgba(255,255,255,0.5)"},children:[u,(f||i)&&y.jsx("div",{className:Fh.text,style:{color:((w=t==null?void 0:t.typography)==null?void 0:w.primaryTextColor)||y.DEFAULT_TEXT_COLOR,fontFamily:((C=t==null?void 0:t.typography)==null?void 0:C.fontFamily)||"inherit"},children:h})]})})};let sw=class extends k.Component{constructor(r){super(r);Xe(this,"showErrorBox",!0);Xe(this,"onError");Xe(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&&oO(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:l}=this.props,u=r||o;return!u||o&&!r&&i?l:a?n||y.jsx(c0,{error:u}):null}};function oO(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!H.isEqual(r,t[n]))}const lw=({componentName:e})=>t=>function(n){const i=Ct(),a=o=>{var l,u;return(u=(l=i.errorBoundary).onError)==null?void 0:u.call(l,o,{componentName:e,componentProps:n})};return y.jsx(sw,{resetKeys:Object.values(n),showErrorBox:i.errorBoundary.showErrorBox,onError:a,isContainerComponent:!!(n!=null&&n.children),children:y.jsx(t,M({},n))})},d0=k.createContext(null),ed=()=>k.useContext(d0),$s=Q.createContext({});process.env.NODE_ENV!=="production"&&($s.displayName="ListContext");function sO(e){return ht("MuiDivider",e)}const My=ft("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),lO=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:l,variant:u}=e;return Et({root:["root",t&&"absolute",u,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",l==="right"&&o!=="vertical"&&"textAlignRight",l==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},sO,n)},uO=De("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]}})(Ft(({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)`:bt(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%"}}}]}))),cO=De("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Ft(({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)`}}]}))),Hi=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiDivider"}),C=n,{absolute:i=!1,children:a,className:o,orientation:l="horizontal",component:u=a||l==="vertical"?"div":"hr",flexItem:c=!1,light:h=!1,role:f=u!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=C,b=xe(C,["absolute","children","className","orientation","component","flexItem","light","role","textAlign","variant"]),v=$(M({},n),{absolute:i,component:u,flexItem:c,light:h,orientation:l,role:f,textAlign:p,variant:g}),w=lO(v);return me.jsx(uO,$(M({as:u,className:We(w.root,o),role:f,ref:r,ownerState:v,"aria-orientation":f==="separator"&&(u!=="hr"||l==="vertical")?l:void 0},b),{children:a?me.jsx(cO,{className:w.wrapper,ownerState:v,children:a}):null}))});Hi&&(Hi.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Hi.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 Sy=ft("MuiListItemIcon",["root","alignItemsFlexStart"]);function dO(e){return ht("MuiTypography",e)}const hO=ft("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),fO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},pO=iR(),mO=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,l={root:["root",a,e.align!=="inherit"&&`align${Ie(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Et(l,dO,o)},gO=De("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${Ie(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ft(({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(pi()).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${Ie(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}}]}})),Ey={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Er=Q.forwardRef(function(t,r){const E=xt({props:t,name:"MuiTypography"}),{color:n}=E,i=xe(E,["color"]),a=!fO[n],o=pO(M(M({},i),a&&{color:n})),S=o,{align:l="inherit",className:u,component:c,gutterBottom:h=!1,noWrap:f=!1,paragraph:p=!1,variant:g="body1",variantMapping:b=Ey}=S,v=xe(S,["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=$(M({},o),{align:l,color:n,className:u,component:c,gutterBottom:h,noWrap:f,paragraph:p,variant:g,variantMapping:b}),C=c||(p?"p":b[g]||Ey[g])||"span",T=mO(w);return me.jsx(gO,$(M({as:C,ref:r,className:We(T.root,u)},v),{ownerState:w,style:M(M({},l!=="inherit"&&{"--Typography-textAlign":l}),v.style)}))});process.env.NODE_ENV!=="production"&&(Er.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 vO(e){return ht("MuiListItemText",e)}const Bf=ft("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function yO(e){return ht("MuiMenuItem",e)}const Xo=ft("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),bO=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},_O=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:o}=e,u=Et({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},yO,o);return M(M({},o),u)},wO=De(na,{shouldForwardProp:e=>cl(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:bO})(Ft(({theme:e})=>$(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"}},[`&.${Xo.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xo.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:bt(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})`:bt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${My.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${My.inset}`]:{marginLeft:52},[`& .${Bf.root}`]:{marginTop:0,marginBottom:0},[`& .${Bf.inset}`]:{paddingLeft:36},[`& .${Sy.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:$(M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2),{[`& .${Sy.root} svg`]:{fontSize:"1.25rem"}})}]}))),td=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiMenuItem"}),P=n,{autoFocus:i=!1,component:a="li",dense:o=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:c,role:h="menuitem",tabIndex:f,className:p}=P,g=xe(P,["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"]),b=Q.useContext($s),v=Q.useMemo(()=>({dense:o||b.dense||!1,disableGutters:u}),[b.dense,o,u]),w=Q.useRef(null);fi(()=>{i&&(w.current?w.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=$(M({},n),{dense:v.dense,divider:l,disableGutters:u}),T=_O(n),E=vr(w,r);let S;return n.disabled||(S=f!==void 0?f:-1),me.jsx($s.Provider,{value:v,children:me.jsx(wO,$(M({ref:E,role:h,tabIndex:S,component:a,focusVisibleClassName:We(T.focusVisible,c),className:We(T.root,p)},g),{ownerState:C,classes:T}))})});process.env.NODE_ENV!=="production"&&(td.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 xO=({children:e,disabled:t,style:r,className:n="",onClick:i})=>{const{themeSettings:a}=st();return y.jsx("div",{className:`csdk-menu-item ${n}`,children:y.jsx(td,{disabled:t,sx:M({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:a.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"15px",color:y.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:y.DEFAULT_BACKGROUND_COLOR}},r),onClick:i,children:y.jsx("div",{className:"csdk-menu-item-content",children:e})})})};function CO(e){return ht("MuiListSubheader",e)}ft("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const TO=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,o={root:["root",r!=="default"&&`color${Ie(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Et(o,CO,t)},MO=De("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ie(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Ft(({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}}]}))),oc=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiListSubheader"}),g=n,{className:i,color:a="default",component:o="li",disableGutters:l=!1,disableSticky:u=!1,inset:c=!1}=g,h=xe(g,["className","color","component","disableGutters","disableSticky","inset"]),f=$(M({},n),{color:a,component:o,disableGutters:l,disableSticky:u,inset:c}),p=TO(f);return me.jsx(MO,M({as:o,className:We(p.root,i),ref:r,ownerState:f},h))});oc&&(oc.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(oc.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 SO=({children:e})=>{const{themeSettings:t}=st();return y.jsx(oc,{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:y.DEFAULT_TEXT_COLOR},children:e})};var Wf={exports:{}},at={};/**
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 Py;function EO(){if(Py)return at;Py=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"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case i:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case o:case l:case f:case h:return v;case a:return v;default:return w}}case t:return w}}}return at.ContextConsumer=a,at.ContextProvider=o,at.Element=e,at.ForwardRef=l,at.Fragment=r,at.Lazy=f,at.Memo=h,at.Portal=t,at.Profiler=i,at.StrictMode=n,at.Suspense=u,at.SuspenseList=c,at.isContextConsumer=function(v){return b(v)===a},at.isContextProvider=function(v){return b(v)===o},at.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},at.isForwardRef=function(v){return b(v)===l},at.isFragment=function(v){return b(v)===r},at.isLazy=function(v){return b(v)===f},at.isMemo=function(v){return b(v)===h},at.isPortal=function(v){return b(v)===t},at.isProfiler=function(v){return b(v)===i},at.isStrictMode=function(v){return b(v)===n},at.isSuspense=function(v){return b(v)===u},at.isSuspenseList=function(v){return b(v)===c},at.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===c||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===h||v.$$typeof===o||v.$$typeof===a||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},at.typeOf=b,at}var ot={};/**
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 Ay;function PO(){return Ay||(Ay=1,process.env.NODE_ENV!=="production"&&function(){function e(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case n:case a:case i:case c:case h:return v;default:switch(v=v&&v.$$typeof,v){case l:case u:case p:case f:return v;case o:return v;default:return w}}case r:return w}}}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"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");ot.ContextConsumer=o,ot.ContextProvider=l,ot.Element=t,ot.ForwardRef=u,ot.Fragment=n,ot.Lazy=p,ot.Memo=f,ot.Portal=r,ot.Profiler=a,ot.StrictMode=i,ot.Suspense=c,ot.SuspenseList=h,ot.isContextConsumer=function(v){return e(v)===o},ot.isContextProvider=function(v){return e(v)===l},ot.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},ot.isForwardRef=function(v){return e(v)===u},ot.isFragment=function(v){return e(v)===n},ot.isLazy=function(v){return e(v)===p},ot.isMemo=function(v){return e(v)===f},ot.isPortal=function(v){return e(v)===r},ot.isProfiler=function(v){return e(v)===a},ot.isStrictMode=function(v){return e(v)===i},ot.isSuspense=function(v){return e(v)===c},ot.isSuspenseList=function(v){return e(v)===h},ot.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===a||v===i||v===c||v===h||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===l||v.$$typeof===o||v.$$typeof===u||v.$$typeof===b||v.getModuleId!==void 0)},ot.typeOf=e}()),ot}process.env.NODE_ENV==="production"?Wf.exports=EO():Wf.exports=PO();var h0=Wf.exports;function AO(e){return ht("MuiList",e)}ft("MuiList",["root","padding","dense","subheader"]);const RO=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Et({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},AO,t)},OO=De("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}}]}),f0=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiList"}),b=n,{children:i,className:a,component:o="ul",dense:l=!1,disablePadding:u=!1,subheader:c}=b,h=xe(b,["children","className","component","dense","disablePadding","subheader"]),f=Q.useMemo(()=>({dense:l}),[l]),p=$(M({},n),{component:o,dense:l,disablePadding:u}),g=RO(p);return me.jsx($s.Provider,{value:f,children:me.jsxs(OO,$(M({as:o,className:We(g.root,a),ref:r,ownerState:p},h),{children:[c,i]}))})});process.env.NODE_ENV!=="production"&&(f0.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 kO(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,l=We(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),!!l&&{className:l}),(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=We(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 zh(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ry(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function uw(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 Zo(e,t,r,n,i,a){let o=!1,l=i(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(o)return!1;o=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!uw(l,a)||u)l=i(e,l,r);else return l.focus(),!0}return!1}const p0=Q.forwardRef(function(t,r){const E=t,{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:l,disabledItemsFocusable:u=!1,disableListWrap:c=!1,onKeyDown:h,variant:f="selectedMenu"}=E,p=xe(E,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),g=Q.useRef(null),b=Q.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fi(()=>{i&&g.current.focus()},[i]),Q.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:P})=>{const O=!g.current.style.width;if(S.clientHeight<g.current.clientHeight&&O){const N=`${L2(Ui(S))}px`;g.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=N,g.current.style.width=`calc(100% + ${N})`}return g.current}}),[]);const v=S=>{const P=g.current,O=S.key;if(S.ctrlKey||S.metaKey||S.altKey){h&&h(S);return}const z=kr(P).activeElement;if(O==="ArrowDown")S.preventDefault(),Zo(P,z,c,u,zh);else if(O==="ArrowUp")S.preventDefault(),Zo(P,z,c,u,Ry);else if(O==="Home")S.preventDefault(),Zo(P,null,c,u,zh);else if(O==="End")S.preventDefault(),Zo(P,null,c,u,Ry);else if(O.length===1){const U=b.current,Z=O.toLowerCase(),K=performance.now();U.keys.length>0&&(K-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&Z!==U.keys[0]&&(U.repeating=!1)),U.lastTime=K,U.keys.push(Z);const R=z&&!U.repeating&&uw(z,U);U.previousKeyMatched&&(R||Zo(P,z,!1,u,zh,U))?S.preventDefault():U.previousKeyMatched=!1}h&&h(S)},w=vr(g,r);let C=-1;Q.Children.forEach(o,(S,P)=>{if(!Q.isValidElement(S)){C===P&&(C+=1,C>=o.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&h0.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
167
- `)),S.props.disabled||(f==="selectedMenu"&&S.props.selected||C===-1)&&(C=P),C===P&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=o.length&&(C=-1))});const T=Q.Children.map(o,(S,P)=>{if(P===C){const O={};return a&&(O.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(O.tabIndex=0),Q.cloneElement(S,O)}return S});return me.jsx(f0,$(M({role:"menu",ref:w,className:l,onKeyDown:v,tabIndex:i?0:-1},p),{children:T}))});process.env.NODE_ENV!=="production"&&(p0.propTypes={autoFocus:_.bool,autoFocusItem:_.bool,children:_.node,className:_.string,disabledItemsFocusable:_.bool,disableListWrap:_.bool,onKeyDown:_.func,variant:_.oneOf(["menu","selectedMenu"])});function DO(e){return typeof e=="string"}function Fs(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 Hf(e){return`scale(${e}, ${cn(e,2)})`}const NO={entering:{opacity:1,transform:Hf(1)},entered:{opacity:1,transform:"none"}},Bh=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zs=Q.forwardRef(function(t,r){const j=t,{addEndListener:n,appear:i=!0,children:a,easing:o,in:l,onEnter:u,onEntered:c,onEntering:h,onExit:f,onExited:p,onExiting:g,style:b,timeout:v="auto",TransitionComponent:w=tn}=j,C=xe(j,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=Fi(),E=Q.useRef(),S=ul(),P=Q.useRef(null),O=vr(P,po(a),r),N=V=>W=>{if(V){const G=P.current;W===void 0?V(G):V(G,W)}},z=N(h),U=N((V,W)=>{const{duration:G,delay:re,easing:F}=Fs({style:b,timeout:v,easing:o},{mode:"enter"});let Y;v==="auto"?(Y=S.transitions.getAutoHeightDuration(V.clientHeight),E.current=Y):Y=G,V.style.transition=[S.transitions.create("opacity",{duration:Y,delay:re}),S.transitions.create("transform",{duration:Bh?Y:Y*.666,delay:re,easing:F})].join(","),u&&u(V,W)}),Z=N(c),K=N(g),R=N(V=>{const{duration:W,delay:G,easing:re}=Fs({style:b,timeout:v,easing:o},{mode:"exit"});let F;v==="auto"?(F=S.transitions.getAutoHeightDuration(V.clientHeight),E.current=F):F=W,V.style.transition=[S.transitions.create("opacity",{duration:F,delay:G}),S.transitions.create("transform",{duration:Bh?F:F*.666,delay:Bh?G:G||F*.333,easing:re})].join(","),V.style.opacity=0,V.style.transform=Hf(.75),f&&f(V)}),I=N(p),X=V=>{v==="auto"&&T.start(E.current||0,V),n&&n(P.current,V)};return me.jsx(w,$(M({appear:i,in:l,nodeRef:P,onEnter:U,onEntered:Z,onEntering:z,onExit:R,onExited:I,onExiting:K,addEndListener:X,timeout:v==="auto"?null:v},C),{children:(V,re)=>{var F=re,{ownerState:W}=F,G=xe(F,["ownerState"]);return Q.cloneElement(a,M({style:M(M(M({opacity:0,transform:Hf(.75),visibility:V==="exited"&&!l?"hidden":void 0},NO[V]),b),a.props.style),ref:O},G))}}))});process.env.NODE_ENV!=="production"&&(zs.propTypes={addEndListener:_.func,appear:_.bool,children:ra.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})])});zs&&(zs.muiSupportAuto=!0);function LO(e){const t=kr(e);return t.body===e?Ui(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Oy(e){return parseInt(Ui(e).getComputedStyle(e).paddingRight,10)||0}function IO(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 ky(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const l=!a.includes(o),u=!IO(o);l&&u&&xs(o,i)})}function Wh(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function $O(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(LO(n)){const o=L2(Ui(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Oy(n)+o}px`;const l=kr(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Oy(u)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=kr(n).body;else{const o=n.parentElement,l=Ui(n);a=(o==null?void 0:o.nodeName)==="HTML"&&l.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:l})=>{a?o.style.setProperty(l,a):o.style.removeProperty(l)})}}function FO(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class zO{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&&xs(t.modalRef,!1);const i=FO(r);ky(r,t.mount,t.modalRef,i,!0);const a=Wh(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=Wh(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=$O(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Wh(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&&xs(t.modalRef,r),ky(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&&xs(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const BO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function WO(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 HO(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 jO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||HO(e))}function VO(e){const t=[],r=[];return Array.from(e.querySelectorAll(BO)).forEach((n,i)=>{const a=WO(n);a===-1||!jO(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 GO(){return!0}function sc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=VO,isEnabled:o=GO,open:l}=e,u=Q.useRef(!1),c=Q.useRef(null),h=Q.useRef(null),f=Q.useRef(null),p=Q.useRef(null),g=Q.useRef(!1),b=Q.useRef(null),v=vr(po(t),b),w=Q.useRef(null);Q.useEffect(()=>{!l||!b.current||(g.current=!r)},[r,l]),Q.useEffect(()=>{if(!l||!b.current)return;const E=kr(b.current);return b.current.contains(E.activeElement)||(b.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
- `)),b.current.setAttribute("tabIndex","-1")),g.current&&b.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[l]),Q.useEffect(()=>{if(!l||!b.current)return;const E=kr(b.current),S=N=>{w.current=N,!(n||!o()||N.key!=="Tab")&&E.activeElement===b.current&&N.shiftKey&&(u.current=!0,h.current&&h.current.focus())},P=()=>{var U,Z;const N=b.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!==h.current)return;if(E.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let z=[];if((E.activeElement===c.current||E.activeElement===h.current)&&(z=a(b.current)),z.length>0){const K=!!((U=w.current)!=null&&U.shiftKey&&((Z=w.current)==null?void 0:Z.key)==="Tab"),R=z[0],I=z[z.length-1];typeof R!="string"&&typeof I!="string"&&(K?I.focus():R.focus())}else N.focus()};E.addEventListener("focusin",P),E.addEventListener("keydown",S,!0);const O=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(O),E.removeEventListener("focusin",P),E.removeEventListener("keydown",S,!0)}},[r,n,i,o,l,a]);const C=E=>{f.current===null&&(f.current=E.relatedTarget),g.current=!0,p.current=E.target;const S=t.props.onFocus;S&&S(E)},T=E=>{f.current===null&&(f.current=E.relatedTarget),g.current=!0};return me.jsxs(Q.Fragment,{children:[me.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:c,"data-testid":"sentinelStart"}),Q.cloneElement(t,{ref:v,onFocus:C}),me.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:h,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(sc.propTypes={children:ra,disableAutoFocus:_.bool,disableEnforceFocus:_.bool,disableRestoreFocus:_.bool,getTabbable:_.func,isEnabled:_.func,open:_.bool.isRequired});process.env.NODE_ENV!=="production"&&(sc.propTypes=Vm(sc.propTypes));function UO(e){return typeof e=="function"?e():e}const Bs=Q.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,l]=Q.useState(null),u=vr(Q.isValidElement(n)?po(n):null,r);if(fi(()=>{a||l(UO(i)||document.body)},[i,a]),fi(()=>{if(o&&!a)return dy(r,o),()=>{dy(r,null)}},[r,o,a]),a){if(Q.isValidElement(n)){const c={ref:u};return Q.cloneElement(n,c)}return n}return o&&y3.createPortal(n,o)});process.env.NODE_ENV!=="production"&&(Bs.propTypes={children:_.node,container:_.oneOfType([jn,_.func]),disablePortal:_.bool});process.env.NODE_ENV!=="production"&&(Bs.propTypes=Vm(Bs.propTypes));const YO={entering:{opacity:1},entered:{opacity:1}},m0=Q.forwardRef(function(t,r){const n=ul(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},X=t,{addEndListener:a,appear:o=!0,children:l,easing:u,in:c,onEnter:h,onEntered:f,onEntering:p,onExit:g,onExited:b,onExiting:v,style:w,timeout:C=i,TransitionComponent:T=tn}=X,E=xe(X,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),S=Q.useRef(null),P=vr(S,po(l),r),O=j=>V=>{if(j){const W=S.current;V===void 0?j(W):j(W,V)}},N=O(p),z=O((j,V)=>{const W=Fs({style:w,timeout:C,easing:u},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",W),j.style.transition=n.transitions.create("opacity",W),h&&h(j,V)}),U=O(f),Z=O(v),K=O(j=>{const V=Fs({style:w,timeout:C,easing:u},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",V),j.style.transition=n.transitions.create("opacity",V),g&&g(j)}),R=O(b),I=j=>{a&&a(S.current,j)};return me.jsx(T,$(M({appear:o,in:c,nodeRef:S,onEnter:z,onEntered:U,onEntering:N,onExit:K,onExited:R,onExiting:Z,addEndListener:I,timeout:C},E),{children:(j,G)=>{var re=G,{ownerState:V}=re,W=xe(re,["ownerState"]);return Q.cloneElement(l,M({style:M(M(M({opacity:0,visibility:j==="exited"&&!c?"hidden":void 0},YO[j]),w),l.props.style),ref:P},W))}}))});process.env.NODE_ENV!=="production"&&(m0.propTypes={addEndListener:_.func,appear:_.bool,children:ra.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 qO(e){return ht("MuiBackdrop",e)}ft("MuiBackdrop",["root","invisible"]);const XO=e=>{const{classes:t,invisible:r}=e;return Et({root:["root",r&&"invisible"]},qO,t)},ZO=De("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"}}]}),g0=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiBackdrop"}),U=n,{children:i,className:a,component:o="div",invisible:l=!1,open:u,components:c={},componentsProps:h={},slotProps:f={},slots:p={},TransitionComponent:g,transitionDuration:b}=U,v=xe(U,["children","className","component","invisible","open","components","componentsProps","slotProps","slots","TransitionComponent","transitionDuration"]),w=$(M({},n),{component:o,invisible:l}),C=XO(w),T=M({transition:g,root:c.Root},p),E=M(M({},h),f),S={slots:T,slotProps:E},[P,O]=Zt("root",{elementType:ZO,externalForwardedProps:S,className:We(C.root,a),ownerState:w}),[N,z]=Zt("transition",{elementType:m0,externalForwardedProps:S,ownerState:w});return me.jsx(N,$(M(M({in:u,timeout:b},v),z),{children:me.jsx(P,$(M({"aria-hidden":!0},O),{classes:C,ref:r,children:i}))}))});process.env.NODE_ENV!=="production"&&(g0.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 KO(e){return typeof e=="function"?e():e}function QO(e){return e?e.props.hasOwnProperty("in"):!1}const Dy=()=>{},hu=new zO;function JO(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:l,onClose:u,open:c,rootRef:h}=e,f=Q.useRef({}),p=Q.useRef(null),g=Q.useRef(null),b=vr(g,h),[v,w]=Q.useState(!c),C=QO(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const E=()=>kr(p.current),S=()=>(f.current.modalRef=g.current,f.current.mount=p.current,f.current),P=()=>{hu.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},O=Bn(()=>{const j=KO(t)||E().body;hu.add(S(),j),g.current&&P()}),N=()=>hu.isTopModal(S()),z=Bn(j=>{p.current=j,j&&(c&&N()?P():g.current&&xs(g.current,T))}),U=Q.useCallback(()=>{hu.remove(S(),T)},[T]);Q.useEffect(()=>()=>{U()},[U]),Q.useEffect(()=>{c?O():(!C||!i)&&U()},[c,U,C,i,O]);const Z=j=>V=>{var W;(W=j.onKeyDown)==null||W.call(j,V),!(V.key!=="Escape"||V.which===229||!N())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},K=j=>V=>{var W;(W=j.onClick)==null||W.call(j,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(j={})=>{const V=$2(e);delete V.onTransitionEnter,delete V.onTransitionExited;const W=M(M({},V),j);return $(M({role:"presentation"},W),{onKeyDown:Z(W),ref:b})},getBackdropProps:(j={})=>{const V=j;return $(M({"aria-hidden":!0},V),{onClick:K(V),open:c})},getTransitionProps:()=>{var W,G;const j=()=>{w(!1),a&&a()},V=()=>{w(!0),o&&o(),i&&U()};return{onEnter:Nf(j,(W=l==null?void 0:l.props.onEnter)!=null?W:Dy),onExited:Nf(V,(G=l==null?void 0:l.props.onExited)!=null?G:Dy)}},rootRef:b,portalRef:z,isTopModal:N,exited:v,hasTransition:C}}function ek(e){return ht("MuiModal",e)}ft("MuiModal",["root","hidden","backdrop"]);const tk=e=>{const{open:t,exited:r,classes:n}=e;return Et({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ek,n)},rk=De("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ft(({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"}}]}))),nk=De(g0,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),v0=Q.forwardRef(function(t,r){const n=xt({name:"MuiModal",props:t}),ye=n,{BackdropComponent:i=nk,BackdropProps:a,classes:o,className:l,closeAfterTransition:u=!1,children:c,container:h,component:f,components:p={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:w=!1,disablePortal:C=!1,disableRestoreFocus:T=!1,disableScrollLock:E=!1,hideBackdrop:S=!1,keepMounted:P=!1,onBackdropClick:O,onClose:N,onTransitionEnter:z,onTransitionExited:U,open:Z,slotProps:K={},slots:R={},theme:I}=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"]),j=$(M({},n),{closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:v,disableEscapeKeyDown:w,disablePortal:C,disableRestoreFocus:T,disableScrollLock:E,hideBackdrop:S,keepMounted:P}),{getRootProps:V,getBackdropProps:W,getTransitionProps:G,portalRef:re,isTopModal:F,exited:Y,hasTransition:ne}=JO($(M({},j),{rootRef:r})),ie=$(M({},j),{exited:Y}),te=tk(ie),oe={};if(c.props.tabIndex===void 0&&(oe.tabIndex="-1"),ne){const{onEnter:J,onExited:we}=G();oe.onEnter=J,oe.onExited=we}const le={slots:M({root:p.Root,backdrop:p.Backdrop},R),slotProps:M(M({},g),K)},[de,ce]=Zt("root",{ref:r,elementType:rk,externalForwardedProps:$(M(M({},le),X),{component:f}),getSlotProps:V,ownerState:ie,className:We(l,te==null?void 0:te.root,!ie.open&&ie.exited&&(te==null?void 0:te.hidden))}),[ve,Ce]=Zt("backdrop",{ref:a==null?void 0:a.ref,elementType:i,externalForwardedProps:le,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:J=>W($(M({},J),{onClick:we=>{O&&O(we),J!=null&&J.onClick&&J.onClick(we)}})),className:We(a==null?void 0:a.className,te==null?void 0:te.backdrop),ownerState:ie});return!P&&!Z&&(!ne||Y)?null:me.jsx(Bs,{ref:re,container:h,disablePortal:C,children:me.jsxs(de,$(M({},ce),{children:[!S&&i?me.jsx(ve,M({},Ce)):null,me.jsx(sc,{disableEnforceFocus:v,disableAutoFocus:b,disableRestoreFocus:T,isEnabled:F,open:Z,children:Q.cloneElement(c,oe)})]}))})});process.env.NODE_ENV!=="production"&&(v0.propTypes={BackdropComponent:_.elementType,BackdropProps:_.object,children:ra.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([jn,_.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 ik(e){return ht("MuiPaper",e)}ft("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 ak=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Et(a,ik,i)},ok=De("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}`]]}})(Ft(({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)"}}]}))),rd=Q.forwardRef(function(t,r){var b;const n=xt({props:t,name:"MuiPaper"}),i=ul(),g=n,{className:a,component:o="div",elevation:l=1,square:u=!1,variant:c="elevation"}=g,h=xe(g,["className","component","elevation","square","variant"]),f=$(M({},n),{component:o,elevation:l,square:u,variant:c}),p=ak(f);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
169
- `)),me.jsx(ok,$(M({as:o,ownerState:f,className:We(p.root,a),ref:r},h),{style:M(M({},c==="elevation"&&M(M({"--Paper-shadow":(i.vars||i).shadows[l]},i.vars&&{"--Paper-overlay":(b=i.vars.overlays)==null?void 0:b[l]}),!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${bt("#fff",If(l))}, ${bt("#fff",If(l))})`})),h.style)}))});process.env.NODE_ENV!=="production"&&(rd.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,elevation:qn(mn,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 sk(e){return ht("MuiPopover",e)}ft("MuiPopover",["root","paper"]);function Ny(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ly(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Iy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function hs(e){return typeof e=="function"?e():e}const lk=e=>{const{classes:t}=e;return Et({root:["root"],paper:["paper"]},sk,t)},uk=De(v0,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cw=De(rd,{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}),y0=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiPopover"}),Ce=n,{action:i,anchorEl:a,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:c,className:h,container:f,elevation:p=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:w={},slotProps:C={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:S="auto",TransitionProps:P={},disableScrollLock:O=!1}=Ce,N=xe(Ce,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"]),z=Q.useRef(),U=$(M({},n),{anchorOrigin:o,anchorReference:u,elevation:p,marginThreshold:g,transformOrigin:T,TransitionComponent:E,transitionDuration:S,TransitionProps:P}),Z=lk(U),K=Q.useCallback(()=>{if(u==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const we=hs(a),Ee=we&&we.nodeType===1?we:kr(z.current).body,ke=Ee.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const $e=Ee.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$e.top===0&&$e.left===0&&$e.right===0&&$e.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:ke.top+Ny(ke,o.vertical),left:ke.left+Ly(ke,o.horizontal)}},[a,o.horizontal,o.vertical,l,u]),R=Q.useCallback(we=>({vertical:Ny(we,T.vertical),horizontal:Ly(we,T.horizontal)}),[T.horizontal,T.vertical]),I=Q.useCallback(we=>{const Ee={width:we.offsetWidth,height:we.offsetHeight},ke=R(Ee);if(u==="none")return{top:null,left:null,transformOrigin:Iy(ke)};const $e=K();let je=$e.top-ke.vertical,Ue=$e.left-ke.horizontal;const ir=je+Ee.height,At=Ue+Ee.width,jt=Ui(hs(a)),Dt=jt.innerHeight-g,Pe=jt.innerWidth-g;if(g!==null&&je<g){const Vt=je-g;je-=Vt,ke.vertical+=Vt}else if(g!==null&&ir>Dt){const Vt=ir-Dt;je-=Vt,ke.vertical+=Vt}if(process.env.NODE_ENV!=="production"&&Ee.height>Dt&&Ee.height&&Dt&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${Ee.height-Dt}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
171
- `)),g!==null&&Ue<g){const Vt=Ue-g;Ue-=Vt,ke.horizontal+=Vt}else if(At>Pe){const Vt=At-Pe;Ue-=Vt,ke.horizontal+=Vt}return{top:`${Math.round(je)}px`,left:`${Math.round(Ue)}px`,transformOrigin:Iy(ke)}},[a,u,K,R,g]),[X,j]=Q.useState(b),V=Q.useCallback(()=>{const we=z.current;if(!we)return;const Ee=I(we);Ee.top!==null&&we.style.setProperty("top",Ee.top),Ee.left!==null&&(we.style.left=Ee.left),we.style.transformOrigin=Ee.transformOrigin,j(!0)},[I]);Q.useEffect(()=>(O&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[a,O,V]);const W=()=>{V()},G=()=>{j(!1)};Q.useEffect(()=>{b&&V()}),Q.useImperativeHandle(i,()=>b?{updatePosition:()=>{V()}}:null,[b,V]),Q.useEffect(()=>{if(!b)return;const we=dA(()=>{V()}),Ee=Ui(hs(a));return Ee.addEventListener("resize",we),()=>{we.clear(),Ee.removeEventListener("resize",we)}},[a,b,V]);let re=S;const F={slots:M({transition:E},w),slotProps:M({transition:P,paper:v},C)},[Y,ne]=Zt("transition",{elementType:zs,externalForwardedProps:F,ownerState:U,getSlotProps:we=>$(M({},we),{onEntering:(Ee,ke)=>{var $e;($e=we.onEntering)==null||$e.call(we,Ee,ke),W()},onExited:Ee=>{var ke;(ke=we.onExited)==null||ke.call(we,Ee),G()}}),additionalProps:{appear:!0,in:b}});S==="auto"&&!Y.muiSupportAuto&&(re=void 0);const ie=f||(a?kr(hs(a)).body:void 0),[te,ye]=Zt("root",{ref:r,elementType:uk,externalForwardedProps:M(M({},F),N),shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:kO(typeof C.backdrop=="function"?C.backdrop(U):C.backdrop,{invisible:!0})},container:ie,open:b},ownerState:U,className:We(Z.root,h)}),J=ye,{slots:oe,slotProps:le}=J,de=xe(J,["slots","slotProps"]),[ce,ve]=Zt("paper",{ref:z,className:Z.paper,elementType:cw,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:X?void 0:{opacity:0}},ownerState:U});return me.jsx(te,$(M(M({},de),!DO(te)&&{slots:oe,slotProps:le,disableScrollLock:O}),{children:me.jsx(Y,$(M({},ne),{timeout:re,children:me.jsx(ce,$(M({},ve),{children:c}))}))}))});process.env.NODE_ENV!=="production"&&(y0.propTypes={action:al,anchorEl:qn(_.oneOfType([jn,_.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=hs(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([jn,_.func]),disableScrollLock:_.bool,elevation:mn,marginThreshold:_.number,onClose:_.func,open:_.bool.isRequired,PaperProps:_.shape({component:Hm}),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 ck(e){return ht("MuiMenu",e)}ft("MuiMenu",["root","paper","list"]);const dk={vertical:"top",horizontal:"right"},hk={vertical:"top",horizontal:"left"},fk=e=>{const{classes:t}=e;return Et({root:["root"],paper:["paper"],list:["list"]},ck,t)},pk=De(y0,{shouldForwardProp:e=>cl(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mk=De(cw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gk=De(p0,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nd=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiMenu"}),re=n,{autoFocus:i=!0,children:a,className:o,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:h,PaperProps:f={},PopoverClasses:p,transitionDuration:g="auto",TransitionProps:F={}}=re,Y=F,{onEntering:b}=Y,v=xe(Y,["onEntering"]),ne=re,{variant:w="selectedMenu",slots:C={},slotProps:T={}}=ne,E=xe(ne,["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"]),S=$c(),P=$(M({},n),{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:f,transitionDuration:g,TransitionProps:v,variant:w}),O=fk(P),N=i&&!l&&h,z=Q.useRef(null),U=(ie,te)=>{z.current&&z.current.adjustStyleForScrollbar(ie,{direction:S?"rtl":"ltr"}),b&&b(ie,te)},Z=ie=>{ie.key==="Tab"&&(ie.preventDefault(),c&&c(ie,"tabKeyDown"))};let K=-1;Q.Children.map(a,(ie,te)=>{Q.isValidElement(ie)&&(process.env.NODE_ENV!=="production"&&h0.isFragment(ie)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
174
- `)),ie.props.disabled||(w==="selectedMenu"&&ie.props.selected||K===-1)&&(K=te))});const R={slots:C,slotProps:M({list:u,transition:v,paper:f},T)},I=Gm({elementType:C.root,externalSlotProps:T.root,ownerState:P,className:[O.root,o]}),[X,j]=Zt("paper",{className:O.paper,elementType:mk,externalForwardedProps:R,shouldForwardComponentProp:!0,ownerState:P}),[V,W]=Zt("list",{className:We(O.list,u.className),elementType:gk,shouldForwardComponentProp:!0,externalForwardedProps:R,getSlotProps:ie=>$(M({},ie),{onKeyDown:te=>{var oe;Z(te),(oe=ie.onKeyDown)==null||oe.call(ie,te)}}),ownerState:P}),G=typeof R.slotProps.transition=="function"?R.slotProps.transition(P):R.slotProps.transition;return me.jsx(pk,$(M({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?dk:hk,slots:M({root:C.root,paper:X,backdrop:C.backdrop},C.transition&&{transition:C.transition}),slotProps:{root:I,paper:j,backdrop:typeof T.backdrop=="function"?T.backdrop(P):T.backdrop,transition:$(M({},G),{onEntering:(...ie)=>{var te;U(...ie),(te=G==null?void 0:G.onEntering)==null||te.call(G,...ie)}})},open:h,ref:r,transitionDuration:g,ownerState:P},E),{classes:p,children:me.jsx(V,$(M({actions:z,autoFocus:i&&(K===-1||l),autoFocusItem:N,variant:w},W),{children:a}))}))});process.env.NODE_ENV!=="production"&&(nd.propTypes={anchorEl:_.oneOfType([jn,_.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 vk=({children:e,open:t,position:r,onClose:n,alignment:i})=>{const{themeSettings:a}=st();return y.jsx(nd,{MenuListProps:{dense:!0,sx:{paddingTop:0,paddingBottom:0,fontFamily:a.typography.fontFamily}},anchorReference:"anchorPosition",anchorPosition:r!=null?r:{left:0,top:0},disableEnforceFocus:!0,disableRestoreFocus:!0,open:t,onClose:n,slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:a.typography.fontFamily,transform:t?`translate3d(${(i==null?void 0:i.horizontal)==="right"?"-100%":"0%"}, ${(i==null?void 0:i.vertical)==="bottom"?"-100%":"0%"}, 0) !important`:"none"}}},children:e})};function yk({color:e=y.DEFAULT_TEXT_COLOR}){return y.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",children:y.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 bk=({children:e,label:t,allowOpen:r,disabled:n,style:i,className:a=""})=>{const{themeSettings:o}=st(),l=k.useRef(null),u=k.useRef(null),[c,h]=k.useState(!1),f=k.useCallback(()=>{n||h(!0)},[n]),p=k.useCallback(()=>h(!1),[]),g=k.useCallback(()=>h(!0),[]),b=k.useCallback(()=>h(!1),[]),v=c&&r;return y.jsxs("div",{ref:l,className:`csdk-menu-item ${a}`,children:[y.jsx(td,{disabled:n,sx:M({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:o.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"0px",color:y.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:y.DEFAULT_BACKGROUND_COLOR}},i),onMouseEnter:f,onMouseLeave:p,children:y.jsxs("div",{className:"csdk-menu-item-content",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t,y.jsx(yk,{})]})}),y.jsx(nd,{ref:u,style:{pointerEvents:"none"},anchorEl:l.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:v,autoFocus:!1,disableAutoFocus:!0,disableEnforceFocus:!0,MenuListProps:{sx:{paddingTop:0,paddingBottom:0}},slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:o.typography.fontFamily}}},onClose:()=>{h(!1)},onMouseEnter:g,onMouseLeave:b,children:y.jsx("div",{style:{pointerEvents:"auto"},children:e})})]})},_k="csdk-context-menu-selected-with-dot",dw=({position:e,itemSections:t,children:r,closeContextMenu:n,alignment:i})=>{const[a,o]=k.useState(t),l=!!e;k.useEffect(()=>{t&&o(t)},[t]);const u=k.useCallback((c,h)=>{const{sectionTitle:f,items:p=[]}=c;return y.jsxs("div",{className:"csdk-menu-section",children:[f&&y.jsx(SO,{children:f}),p.map((g,b)=>{const{subItems:v}=g;return v&&v.length?y.jsx(bk,{label:g.caption,allowOpen:l,style:g.style,className:g.class,children:v.map(u)},b):y.jsx(xO,{disabled:g.disabled,style:g.style,className:g.class,onClick:()=>{var C;n(),(C=g.onClick)==null||C.call(g)},children:g.caption},b)})]},h!=null?h:f)},[n,l]);return y.jsx(y.Fragment,{children:y.jsxs(vk,{position:e!=null?e:null,open:l,onClose:n,alignment:i,children:[a==null?void 0:a.map(u),r]})})},wk=({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]),l=k.useMemo(()=>({openMenu:i,closeMenu:a}),[i,a]);return y.jsxs(d0.Provider,{value:l,children:[y.jsx(dw,{position:r==null?void 0:r.position,itemSections:r==null?void 0:r.itemSections,closeContextMenu:o,alignment:r==null?void 0:r.alignment}),e]})},xk=({children:e,onBeforeMenuOpen:t})=>{const r=ed(),n=k.useCallback(o=>{const l=t?t(o):o;l&&(r==null||r.openMenu(l))},[t,r]),i=k.useCallback(()=>{r==null||r.closeMenu()},[r]),a={openMenu:n,closeMenu:i};return y.jsx(d0.Provider,{value:a,children:e})},hw=({children:e,onBeforeMenuOpen:t})=>ed()?t?y.jsx(xk,{onBeforeMenuOpen:t,children:e}):y.jsx(y.Fragment,{children:e}):y.jsx(wk,{onBeforeMenuOpen:t,children:e}),Ck=({shouldHaveOwnMenuRoot:e}={})=>t=>function(n){const a=!!ed();return e&&!a?y.jsx(hw,{children:y.jsx(t,M({},n))}):y.jsx(t,M({},n))},b0=k.createContext(null),id=()=>k.useContext(b0);function Tk(e,t){if(!Array.isArray(e))return e;const r=[`${t} & { ${e[0]}`,...e.slice(1,-1),`${e[e.length-1]} }`],n=r;return n.raw=r,n}function $y(e,t){return function(r,...n){const i=k.forwardRef((a,o)=>{var h,f;const{config:l}=st(),u=(h=l==null?void 0:l.cssSelectorPrefix)!=null&&h.enabled?(f=l==null?void 0:l.cssSelectorPrefix)==null?void 0:f.value:"",c=k.useMemo(()=>{const p=u?Tk(r,u):r;return e(t)(p,...n)},[u]);return y.jsx(c,M({ref:o},a))});return e(i,{shouldForwardProp:()=>!0})``}}function Mk(e){const t=a=>$y(e,a),n=Object.keys(e).reduce((a,o)=>(a[o]=$y(e,o),a),{});return Object.assign(t,n)}const tt=Mk(tc),Sk=tt(y0)`
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
- `,_0=e=>{var f;const h=e,{children:t,open:r,id:n,position:i,onClose:a,BackdropProps:o,style:l,slotProps:u}=h,c=xe(h,["children","open","id","position","onClose","BackdropProps","style","slotProps"]);return y.jsx(Sk,$(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:l,slotProps:{paper:{sx:M({display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"},(f=u==null?void 0:u.paper)==null?void 0:f.sx)}},onClose:a},c),{children:t}))};let Ek=0;const Pk=()=>`modal-${++Ek}`,Aa=new Set,Ak=({children:e})=>{const[t,r]=k.useState([]),n=k.useRef([]);k.useEffect(()=>()=>{Aa.forEach(f=>{try{f&&f.parentNode&&f.parentNode===document.body&&document.body.contains(f)&&document.body.removeChild(f)}catch(p){}}),Aa.clear()},[]);const i=k.useCallback(f=>new Promise(p=>{const g=Pk();let b;try{b=document.createElement("div"),b.style.position="fixed",b.style.top="50%",b.style.left="50%",b.style.transform="translate(-50%, -50%)",b.style.width="1px",b.style.height="1px",b.style.pointerEvents="none",b.style.visibility="hidden",b.setAttribute("data-modal-anchor",g),document.body&&typeof document.body.appendChild=="function"?(document.body.appendChild(b),Aa.add(b)):console.warn("Modal: Unable to append anchor element to document body")}catch(w){console.warn("Modal: Failed to create anchor element:",w),b=document.createElement("div"),b.setAttribute("data-modal-anchor",g)}const v={id:g,options:f,anchorEl:b,resolve:()=>p(g)};r(w=>{const C=[...w,v];return n.current=C,C}),p(g)}),[]),a=k.useCallback(f=>{r(p=>{if(!f){const v=p.slice(0,-1);n.current=v;const w=p[p.length-1];return w!=null&&w.anchorEl&&setTimeout(()=>{try{w.anchorEl&&w.anchorEl.parentNode&&w.anchorEl.parentNode===document.body&&document.body.contains(w.anchorEl)&&(document.body.removeChild(w.anchorEl),Aa.delete(w.anchorEl))}catch(C){}},0),w&&w.resolve(),v}const g=p.find(v=>v.id===f);g!=null&&g.anchorEl&&setTimeout(()=>{try{g.anchorEl&&g.anchorEl.parentNode&&g.anchorEl.parentNode===document.body&&document.body.contains(g.anchorEl)&&(document.body.removeChild(g.anchorEl),Aa.delete(g.anchorEl))}catch(v){}},0),g&&g.resolve();const b=p.filter(v=>v.id!==f);return n.current=b,b})},[]),o=k.useCallback(()=>{r(f=>(f.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),Aa.delete(p.anchorEl))}catch(g){}},0),p.resolve()}),n.current=[],[]))},[]),l=k.useCallback(()=>n.current,[]),u=k.useCallback(f=>t.some(p=>p.id===f),[t]),c=k.useCallback(f=>{a(f)},[a]),h=k.useMemo(()=>({openModal:i,closeModal:a,closeAllModals:o,getModalStack:l,isModalOpen:u}),[i,a,o,l,u]);return y.jsxs(b0.Provider,{value:h,children:[t.map((f,p)=>{const{options:g}=f,b=g.measurement==="%"?`${g.width||80}%`:`${g.width||1200}px`,v=g.measurement==="%"?`${g.height||80}%`:`${g.height||800}px`;return y.jsx("div",{children:y.jsx("div",{"data-testid":"modal-backdrop",onClick:w=>{w.target.closest(".MuiPaper-root")||c(f.id)},style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1200+p},children:y.jsx(_0,{open:!0,position:{anchorEl:f.anchorEl,anchorOrigin:{vertical:"center",horizontal:"center"},contentOrigin:{vertical:"center",horizontal:"center"}},onClose:()=>a(f.id),BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},style:{zIndex:1200+p+10},slotProps:{paper:{sx:{display:"flex",width:b,height:v,maxWidth:"95vw",maxHeight:"95vh",position:"relative",zIndex:1200+p+10}}},children:y.jsx("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:w=>w.stopPropagation(),children:y.jsx("div",{style:{flex:1,overflow:"hidden"},children:g.content})})})})},f.id)}),e]})},Rk=({children:e})=>{const t=id(),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]),l={openModal:r,closeModal:n,closeAllModals:i,getModalStack:a,isModalOpen:o};return y.jsx(b0.Provider,{value:l,children:e})},fw=({children:e})=>id()?y.jsx(Rk,{children:e}):y.jsx(Ak,{children:e}),Ok=({shouldHaveOwnModalRoot:e}={})=>t=>function(n){const a=!!id();return e&&!a?y.jsx(fw,{children:y.jsx(t,M({},n))}):y.jsx(t,M({},n))};var kk="[object Boolean]";function pw(e){return e===!0||e===!1||H.isObjectLike(e)&&H.baseGetTag(e)==kk}function mw(){var e,t;return(t=(e=document.head.querySelector('meta[property="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?t:void 0}const Fy=mw(),gw=({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=$(M({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=$(M({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),i=$(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 y.jsxs("div",{children:[y.jsx("style",$(M({},Fy&&{nonce:Fy}),{children:`
182
- @keyframes loading-dots-animation {
183
- ${Object.entries(a).map(([o,l])=>`${o} { ${Object.entries(l).map(([u,c])=>`${u}: ${c};`).join("")} }`).join("")}
184
- }
185
- `})),y.jsx("div",{style:r}),y.jsx("div",{style:n}),y.jsx("div",{style:i})]})},Dk=tt.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
- `,oi=({isVisible:e=!0,children:t})=>{var l,u,c,h,f,p;const{app:r}=Ct(),i=((c=(u=(l=r==null?void 0:r.settings)==null?void 0:l.loadingIndicatorConfig)==null?void 0:u.enabled)!=null?c:!0)&&e,a=(p=(f=(h=r==null?void 0:r.settings)==null?void 0:h.loadingIndicatorConfig)==null?void 0:f.delay)!=null?p:0,{themeSettings:o}=st();return y.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[i&&y.jsx(Dk,{delay:a,"aria-label":"csdk-loading-overlay",children:y.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:y.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:y.jsx("div",{style:{backgroundColor:o.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:y.jsx(gw,{color:o==null?void 0:o.chart.textColor})})})})}),t]})},Nk=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(i){const{app:a,isInitialized:o}=Ct();if(Lk(e,i))return y.jsx(r,M({},i));if(!o){const l=t||"errors.noSisenseContext";throw new H.TranslatableError(l)}return a?y.jsx(r,M({},i)):y.jsx(oi,{isVisible:!0})};function Lk(e,t){return pw(e)&&e||H.isFunction(e)&&e(t)}const Ik={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}},zy="composesdk",vw=(e,t,r,n=!1)=>{const i=Object.assign({action:e,cat:zy,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=${zy}`,a)})},By=(e,t,r,n,i)=>{const a=Ik[`${e}`];return a.internal&&vw(e,t,r,i),a.external&&n&&n(M({action:e},t)),Promise.resolve()},w0=()=>{var a,o;const{tracking:e,app:t}=Ct(),r=(o=(a=t==null?void 0:t.httpClient)==null?void 0:a.auth)==null?void 0:o.type,n=k.useCallback((l,u={},c=!1)=>t?By(l,$(M({},u),{authType:r}),t.httpClient,e.onTrackingEvent,c):Promise.resolve(),[e,t,r]),i=k.useCallback((l,u=!1)=>{if(!t)return Promise.resolve();const{packageName:c,packageVersion:h,component:f,error:p}=l;let g="";return typeof p=="string"?g=p:p instanceof Error&&(g=p.message||p.toString()),By("sdkError",$(M({},{packageName:c,packageVersion:h,component:f,error:g}),{authType:r}),t.httpClient,e.onTrackingEvent,u)},[e,t,r]);return{trackEvent:n,trackError:i}};class yw extends k.Component{constructor(r){super(r);Xe(this,"componentName");Xe(this,"context");Xe(this,"handler");Xe(this,"httpClient");Xe(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.21.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}}Xe(yw,"contextType",Zm);const $k="sdkComponentInit",bw=k.createContext(!1),Fk=({skipNested:e=!0,children:t})=>y.jsx(bw.Provider,{value:e,children:t}),zk=(e,t)=>{const{componentName:r,config:n}=e,{tracking:i,app:a}=Ct(),{trackEvent:o}=w0(),l=k.useContext(bw),u=k.useRef(!1);k.useEffect(()=>{if(!i||!a)return;if(!u.current&&!l){const h={packageName:n.packageName||i.packageName,packageVersion:n.packageVersion||"2.21.0",componentName:r,attributesUsed:Object.entries(t).filter(([,f])=>!!f).map(([f])=>f).join(", ")};o($k,h,!i.enabled).finally(()=>u.current=!0)}},[r,t,i,l,o,a,n])},_w=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return i=>function(o){const{trackError:l}=w0();return pw(r)&&r||H.isFunction(r)&&r(o)?y.jsx(i,M({},o)):(zk({componentName:e,config:t},o),y.jsx(Fk,{skipNested:!n,children:y.jsx(yw,{componentName:e,handler:l,children:y.jsx(i,M({},o))})}))}},Bk=e=>t=>(t.displayName=e,t),dl=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:i,shouldHaveOwnMenuRoot:a,shouldHaveOwnModalRoot:o}=e;return l=>y.flow(Bk(t),Nk({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:i}),_w({componentName:t,config:n}),lw({componentName:t}),eO(),Ck({shouldHaveOwnMenuRoot:a}),Ok({shouldHaveOwnModalRoot:o}))(l)};function Wy(e){return`${e.fontFamily}|${e.fontWeight}|${e.fontStyle}`}function Wk(e,t){const[r,n]=k.useState([]),[i,a]=k.useState(!1),o=k.useMemo(()=>e.filter(l=>!t.includes(Wy(l))),[e,t]);return k.useEffect(()=>{if(o.length===0){a(!0);return}let l=!1;const u=o.map(c=>{const h=c.src.map(p=>Object.entries(p).map(([b,v])=>`${b}('${v}')`).join(" ")).join(", ");return new FontFace(c.fontFamily,h,{style:c.fontStyle,weight:c.fontWeight.toString()}).load().then(p=>(l||document.fonts.add(p),Wy(c)))});return Promise.all(u).then(c=>{l||(n(h=>[...h,...c]),a(!0))}).catch(c=>{console.error("Failed to load fonts:",c),a(!0)}),()=>{l=!0}},[o]),{loadedFonts:r,areAllFontsLoaded:i}}const Hy=k.createContext({loadedFonts:[]}),Hk=({fonts:e,children:t})=>{var o;const{loadedFonts:r}=k.useContext(Hy),{themeSettings:n}=st(),{loadedFonts:i,areAllFontsLoaded:a}=Wk(e||((o=n.typography.fontsLoader)==null?void 0:o.fonts)||[],r);return y.jsx(Hy.Provider,{value:{loadedFonts:[...r,...i]},children:a&&t})},fs={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function ww(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:jk(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:ac().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:fs[e.dashboards.widgetSpacing],cornerRadius:fs[e.dashboards.widgetCornerRadius],shadow:fs[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:fs[e.dashboards.widgetTitleAlignment],titleFontSize:s0,dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:Qm,dividerLineColor:Km,borderWidth:e0,borderColor:Jm,toolbar:{primaryTextColor:e.dashboards.toolbarTextColor,secondaryTextColor:e.dashboards.toolbarSecondaryTextColor,backgroundColor:e.dashboards.toolbarBackgroundColor,dividerLineColor:t0,dividerLineWidth:r0}},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor,dividerLineColor:n0,dividerLineWidth:i0,borderColor:a0,borderWidth:o0}}};return H.merge$1.withOptions({mergeArrays:!1},ac(),n)}function xw(e){return e.dashboards.colorPaletteName}function jk(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 Cw(e,t){return qt(this,null,function*(){const r=yield Vk(e,t);if(!r)throw new H.TranslatableError("errors.themeNotFound",{themeOid:e});const n=xw(r),i=yield Tw(n,t);return ww(r,i,t.url)})}function Vk(e,t){return qt(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new H.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function Tw(e,t){return qt(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new H.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}var Mw=(e=>(e.DEFAULT="default",e.HOVER="hover",e.FOCUS="focus",e))(Mw||{});function Iu(e){return typeof e=="string"}function Gk(e){var u;const t=st().themeSettings,[r,n]=k.useState(null),[i,a]=k.useState(null),o=(u=Ct().app)==null?void 0:u.httpClient;k.useEffect(()=>{e&&Iu(e)&&o&&Cw(e,o).then(c=>{n(c)}).catch(a)},[o,e]),k.useEffect(()=>{(!e||!Iu(e))&&(n(null),a(null))},[e]);const l=k.useMemo(()=>r?jy(t,r):e&&!Iu(e)?jy(t,e):t,[r,t,e]);return i?[null,i]:[l,null]}function jy(e,t){return H.merge$1.withOptions({mergeArrays:!1},e,t)}const Sw=dl({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r,config:n}=e,[i,a]=Gk(t),o=st().config,l=k.useMemo(()=>n&&o?H.merge$1.withOptions({mergeArrays:!1},o,n):n||o,[o,n]);if(a)throw a;return y.jsx(y.Fragment,{children:i&&y.jsx(u0.Provider,{value:{themeSettings:i,config:l},children:y.jsx(Hk,{children:r})})})}),Vy="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",Uk="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",Yk="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",qk="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",Xk="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",Zk="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",Kk="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",Qk="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",Jk="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",eD="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",tD="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",rD="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",nD="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",iD="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",Gy="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",Uy={area:Vy,arearange:Vy,line:Qk,bar:Uk,column:Xk,polar:eD,funnel:Zk,pie:Jk,scatter:tD,indicator:Kk,table:nD,treemap:iD,areamap:Gy,scattermap:Gy,boxplot:Yk,sunburst:rD,"calendar-heatmap":qk};function aD(e){var r;return(r=Uy[e])!=null?r:Uy["bar"]}const oD="_wrapper_g0ngm_1",sD="_title_g0ngm_7",lD="_image_g0ngm_18",Hh={wrapper:oD,title:sD,image:lD},x0=({iconType:e})=>{var l;const{themeSettings:t}=st(),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=aD(e),{t:o}=y.useTranslation();return y.jsxs("div",{ref:r,className:Hh.wrapper,children:[y.jsx("div",{className:Hh.title,style:{fontFamily:(l=t.typography)==null?void 0:l.fontFamily,fontSize:uD(n.width,n.height)},children:o("chartNoData")}),a?y.jsx("img",{className:Hh.image,src:a}):null]})};function uD(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 Ew(e,t,r,n){if(!H.isObject(e))return e;t=H.castPath(t,e);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var u=H.toKey(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var h=l[u];c=void 0,c===void 0&&(c=H.isObject(h)?h:H.isIndex(t[i+1])?[]:{})}H.assignValue(l,u,c),l=l[u]}return e}function Pw(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],l=H.baseGet(e,o);r(l,o)&&Ew(a,H.castPath(o,e),l)}return a}function cD(e,t){return Pw(e,t,function(r,n){return H.hasIn(e,n)})}var dD=H.flatRest(function(e,t){return e==null?{}:cD(e,t)});const hD={translateDataOptionsToInternal:function(e){return{geo:e.geo&&y.normalizeColumn(e.geo[0]),color:e.color&&y.normalizeMeasureColumn(e.color[0])}},getAttributes:function(e){return[e.geo.column].filter(t=>!y.isMeasureColumn(t))},getMeasures:function(e){var r;const t=(r=e.color)==null?void 0:r.column;return t&&y.isMeasureColumn(t)?[t]:[]},isCorrectDataOptions:function(e){return"geo"in e&&H.isArray(e.geo)},isCorrectDataOptionsInternal:function(e){return"geo"in e&&!!e.geo.column}},fD={ROWS:"rows",COLUMNS:"columns",MEASURES:"measures",SCOPE:"scope"},pD={ASC:"asc",DESC:"desc"},Aw={SUB_TOTAL:"subTotal",GRAND_TOTAL:"grandTotal",MEASURE_TOP:"measureTop",MEASURE_BOTTOM:"measureBottom",CORNER:"corner"},mD={COLOR:"color",CONDITION:"condition"},gD={DATETIME:"datetime",TEXT:"text",NUMERIC:"numeric"},vD={MEMBER:"member",VALUE:"value",SUB_TOTAL:"subtotal",GRAND_TOTAL:"grandtotal"},yD={MEMBER:"member",INDEX:"index",TITLE:"title",NAME:"name",AGG:"agg",DIM:"dim"};function rn(e){var o,l;const{app:t,queryDescription:r,executionConfig:n}=e;return(((l=(o=t==null?void 0:t.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?l:!1)?H.executeQueryWithCache:H.executeQuery)(r,t,n)}const bD=(e,t)=>{const r=y.getPaletteColor(t,0),n=y.toGray(r),i=y.scaleBrightness(r,-.2),a=e.minColor===y.DEFAULT_COLOR||e.minColor===n,o=e.maxColor===y.DEFAULT_COLOR||e.maxColor===i;return a&&o?"auto":a?"max":o?"min":"both"},_D=(e,t)=>{let r={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const o=parseFloat(`${e.minvalue}`),l=parseFloat(`${e.midvalue}`),u=parseFloat(`${e.maxvalue}`);r=M(M(M(M({},r),o&&{minValue:o}),l&&{midValue:l}),u&&{maxValue:u})}const n=y.getPaletteColor(t,0),i=y.scaleBrightness(n,.2),a=y.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return $(M({},r),{minColor:y.toGray(n),maxColor:a});case"both":return $(M({},r),{minColor:e.min||i,maxColor:e.max||a});case"min":return $(M({},r),{minColor:e.min||i,maxColor:y.DEFAULT_COLOR});case"max":return $(M({},r),{minColor:y.DEFAULT_COLOR,maxColor:e.max||a})}},Rw=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return M({type:"uniform",color:e.color||y.getPaletteColor(t,e.colorIndex||0)},e.colorIndex!==void 0&&{colorIndex:e.colorIndex});case"range":return _D(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:y.getPaletteColor(t,0)};default:return y.getUniformColorOptionsFromString(y.getPaletteColor(t,0))}},Ow=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),wD=(e,t)=>{if(e===void 0)return;const r=y.getPaletteColor(t,0);if(typeof e=="string")return{type:"color",color:e};switch(e.type){case"uniform":return $(M({type:"color",color:e.color},e.colorIndex!==void 0&&{colorIndex:e.colorIndex}),{isHandPickedColor:e.colorIndex===void 0});case"range":{const n=y.getPaletteColor(t,0),i=y.toGray(n),a=y.scaleBrightness(n,-.2),o=bD(e,t),l={type:"range",steps:e.steps||5,rangeMode:o,min:o==="max"?i:e.minColor,max:o==="min"?a:e.maxColor};return l.rangeMode!=="auto"&&(e.minValue!==void 0&&(l.minvalue=e.minValue.toString()),e.midValue!==void 0&&(l.midvalue=e.midValue.toString()),e.maxValue!==void 0&&(l.maxvalue=e.maxValue.toString())),l}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}}},xD=e=>e.reduce((t,r)=>{var n,i;return(n=r.format)!=null&&n.members&&(t[H.normalizeName(r.jaql.title)]=Ow((i=r.format)==null?void 0:i.members)),t},{}),CD=y.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>$(M({},e),{color:t})}),TD=Rw({type:"range",steps:5,rangeMode:"auto"}),MD=(e,t)=>{var o,l;const r=y.getColumnByName(t,e.geo.column.name),n=y.getColumnByName(t,(l=(o=e.color)==null?void 0:o.column.name)!=null?l:e.geo.column.name);if(!r||!n)throw new H.TranslatableError("errors.requiredColumnMissing",{hint:"geo or color column is missing for Areamap"});const i=t.rows.map(u=>{var p;const c=y.getValue(u,n),h=y.getCompleteNumberFormatConfig((p=e.color)==null?void 0:p.numberFormatConfig),f=y.applyFormatPlainText(h,c);return{geoName:y.getValue(u,r),originalValue:c,formattedOriginalValue:f}});let a;return e.color&&(a=CD(i,e.color.color||TD)),{type:"areamap",geoData:a||i}},SD={loadData:rn,getChartData:MD},C0=50,ED=1e3,PD=500,lc=1e5,xr={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:y.DefaultPieType,funnelType:y.DefaultFunnelType,funnelSize:y.DefaultFunnelSize,funnelDirection:y.DefaultFunnelDirection,indicatorType:"numeric",numericSubtype:"numericSimple",skin:"vertical",indicatorComponents:{title:{shouldBeShown:!1,text:""},secondaryTitle:{text:""},ticks:{shouldBeShown:!0},labels:{shouldBeShown:!0}},dataLimits:{seriesCapacity:C0,categoriesCapacity:lc}},AD={translateStyleOptionsToDesignOptions:function(e){return $(M({},xr),{mapType:e.mapType||"world"})},isCorrectStyleOptions:function(e){return typeof e=="object"&&e!==null}};var jf={exports:{}};/* @preserve
204
- * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
205
- * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
206
- */(function(e,t){(function(r,n){n(t)})(y.commonjsGlobal,function(r){var n="1.9.4";function i(s){var d,m,x,A;for(m=1,x=arguments.length;m<x;m++){A=arguments[m];for(d in A)s[d]=A[d]}return s}var a=Object.create||function(){function s(){}return function(d){return s.prototype=d,new s}}();function o(s,d){var m=Array.prototype.slice;if(s.bind)return s.bind.apply(s,m.call(arguments,1));var x=m.call(arguments,2);return function(){return s.apply(d,x.length?x.concat(m.call(arguments)):arguments)}}var l=0;function u(s){return"_leaflet_id"in s||(s._leaflet_id=++l),s._leaflet_id}function c(s,d,m){var x,A,D,q;return q=function(){x=!1,A&&(D.apply(m,A),A=!1)},D=function(){x?A=arguments:(s.apply(m,arguments),setTimeout(q,d),x=!0)},D}function h(s,d,m){var x=d[1],A=d[0],D=x-A;return s===x&&m?s:((s-A)%D+D)%D+A}function f(){return!1}function p(s,d){if(d===!1)return s;var m=Math.pow(10,d===void 0?6:d);return Math.round(s*m)/m}function g(s){return s.trim?s.trim():s.replace(/^\s+|\s+$/g,"")}function b(s){return g(s).split(/\s+/)}function v(s,d){Object.prototype.hasOwnProperty.call(s,"options")||(s.options=s.options?a(s.options):{});for(var m in d)s.options[m]=d[m];return s.options}function w(s,d,m){var x=[];for(var A in s)x.push(encodeURIComponent(m?A.toUpperCase():A)+"="+encodeURIComponent(s[A]));return(!d||d.indexOf("?")===-1?"?":"&")+x.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function T(s,d){return s.replace(C,function(m,x){var A=d[x];if(A===void 0)throw new Error("No value provided for variable "+m);return typeof A=="function"&&(A=A(d)),A})}var E=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function S(s,d){for(var m=0;m<s.length;m++)if(s[m]===d)return m;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function O(s){return window["webkit"+s]||window["moz"+s]||window["ms"+s]}var N=0;function z(s){var d=+new Date,m=Math.max(0,16-(d-N));return N=d+m,window.setTimeout(s,m)}var U=window.requestAnimationFrame||O("RequestAnimationFrame")||z,Z=window.cancelAnimationFrame||O("CancelAnimationFrame")||O("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function K(s,d,m){if(m&&U===z)s.call(d);else return U.call(window,o(s,d))}function R(s){s&&Z.call(window,s)}var I={__proto__:null,extend:i,create:a,bind:o,get lastId(){return l},stamp:u,throttle:c,wrapNum:h,falseFn:f,formatNum:p,trim:g,splitWords:b,setOptions:v,getParamString:w,template:T,isArray:E,indexOf:S,emptyImageUrl:P,requestFn:U,cancelFn:Z,requestAnimFrame:K,cancelAnimFrame:R};function X(){}X.extend=function(s){var d=function(){v(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},m=d.__super__=this.prototype,x=a(m);x.constructor=d,d.prototype=x;for(var A in this)Object.prototype.hasOwnProperty.call(this,A)&&A!=="prototype"&&A!=="__super__"&&(d[A]=this[A]);return s.statics&&i(d,s.statics),s.includes&&(j(s.includes),i.apply(null,[x].concat(s.includes))),i(x,s),delete x.statics,delete x.includes,x.options&&(x.options=m.options?a(m.options):{},i(x.options,s.options)),x._initHooks=[],x.callInitHooks=function(){if(!this._initHooksCalled){m.callInitHooks&&m.callInitHooks.call(this),this._initHooksCalled=!0;for(var D=0,q=x._initHooks.length;D<q;D++)x._initHooks[D].call(this)}},d},X.include=function(s){var d=this.prototype.options;return i(this.prototype,s),s.options&&(this.prototype.options=d,this.mergeOptions(s.options)),this},X.mergeOptions=function(s){return i(this.prototype.options,s),this},X.addInitHook=function(s){var d=Array.prototype.slice.call(arguments,1),m=typeof s=="function"?s:function(){this[s].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(m),this};function j(s){if(!(typeof L=="undefined"||!L||!L.Mixin)){s=E(s)?s:[s];for(var d=0;d<s.length;d++)s[d]===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(s,d,m){if(typeof s=="object")for(var x in s)this._on(x,s[x],d);else{s=b(s);for(var A=0,D=s.length;A<D;A++)this._on(s[A],d,m)}return this},off:function(s,d,m){if(!arguments.length)delete this._events;else if(typeof s=="object")for(var x in s)this._off(x,s[x],d);else{s=b(s);for(var A=arguments.length===1,D=0,q=s.length;D<q;D++)A?this._off(s[D]):this._off(s[D],d,m)}return this},_on:function(s,d,m,x){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(s,d,m)===!1){m===this&&(m=void 0);var A={fn:d,ctx:m};x&&(A.once=!0),this._events=this._events||{},this._events[s]=this._events[s]||[],this._events[s].push(A)}},_off:function(s,d,m){var x,A,D;if(this._events&&(x=this._events[s],!!x)){if(arguments.length===1){if(this._firingCount)for(A=0,D=x.length;A<D;A++)x[A].fn=f;delete this._events[s];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var q=this._listens(s,d,m);if(q!==!1){var ee=x[q];this._firingCount&&(ee.fn=f,this._events[s]=x=x.slice()),x.splice(q,1)}}},fire:function(s,d,m){if(!this.listens(s,m))return this;var x=i({},d,{type:s,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var A=this._events[s];if(A){this._firingCount=this._firingCount+1||1;for(var D=0,q=A.length;D<q;D++){var ee=A[D],ae=ee.fn;ee.once&&this.off(s,ae,ee.ctx),ae.call(ee.ctx||this,x)}this._firingCount--}}return m&&this._propagateEvent(x),this},listens:function(s,d,m,x){typeof s!="string"&&console.warn('"string" type argument expected');var A=d;typeof d!="function"&&(x=!!d,A=void 0,m=void 0);var D=this._events&&this._events[s];if(D&&D.length&&this._listens(s,A,m)!==!1)return!0;if(x){for(var q in this._eventParents)if(this._eventParents[q].listens(s,d,m,x))return!0}return!1},_listens:function(s,d,m){if(!this._events)return!1;var x=this._events[s]||[];if(!d)return!!x.length;m===this&&(m=void 0);for(var A=0,D=x.length;A<D;A++)if(x[A].fn===d&&x[A].ctx===m)return A;return!1},once:function(s,d,m){if(typeof s=="object")for(var x in s)this._on(x,s[x],d,!0);else{s=b(s);for(var A=0,D=s.length;A<D;A++)this._on(s[A],d,m,!0)}return this},addEventParent:function(s){return this._eventParents=this._eventParents||{},this._eventParents[u(s)]=s,this},removeEventParent:function(s){return this._eventParents&&delete this._eventParents[u(s)],this},_propagateEvent:function(s){for(var d in this._eventParents)this._eventParents[d].fire(s.type,i({layer:s.target,propagatedFrom:s.target},s),!0)}};V.addEventListener=V.on,V.removeEventListener=V.clearAllEventListeners=V.off,V.addOneTimeEventListener=V.once,V.fireEvent=V.fire,V.hasEventListeners=V.listens;var W=X.extend(V);function G(s,d,m){this.x=m?Math.round(s):s,this.y=m?Math.round(d):d}var re=Math.trunc||function(s){return s>0?Math.floor(s):Math.ceil(s)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(s){return this.clone()._add(F(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(F(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new G(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new G(this.x/s.x,this.y/s.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=re(this.x),this.y=re(this.y),this},distanceTo:function(s){s=F(s);var d=s.x-this.x,m=s.y-this.y;return Math.sqrt(d*d+m*m)},equals:function(s){return s=F(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=F(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function F(s,d,m){return s instanceof G?s:E(s)?new G(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new G(s.x,s.y):new G(s,d,m)}function Y(s,d){if(s)for(var m=d?[s,d]:s,x=0,A=m.length;x<A;x++)this.extend(m[x])}Y.prototype={extend:function(s){var d,m;if(!s)return this;if(s instanceof G||typeof s[0]=="number"||"x"in s)d=m=F(s);else if(s=ne(s),d=s.min,m=s.max,!d||!m)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=m.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(m.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(m.y,this.max.y)),this},getCenter:function(s){return F((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,s)},getBottomLeft:function(){return F(this.min.x,this.max.y)},getTopRight:function(){return F(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(s){var d,m;return typeof s[0]=="number"||s instanceof G?s=F(s):s=ne(s),s instanceof Y?(d=s.min,m=s.max):d=m=s,d.x>=this.min.x&&m.x<=this.max.x&&d.y>=this.min.y&&m.y<=this.max.y},intersects:function(s){s=ne(s);var d=this.min,m=this.max,x=s.min,A=s.max,D=A.x>=d.x&&x.x<=m.x,q=A.y>=d.y&&x.y<=m.y;return D&&q},overlaps:function(s){s=ne(s);var d=this.min,m=this.max,x=s.min,A=s.max,D=A.x>d.x&&x.x<m.x,q=A.y>d.y&&x.y<m.y;return D&&q},isValid:function(){return!!(this.min&&this.max)},pad:function(s){var d=this.min,m=this.max,x=Math.abs(d.x-m.x)*s,A=Math.abs(d.y-m.y)*s;return ne(F(d.x-x,d.y-A),F(m.x+x,m.y+A))},equals:function(s){return s?(s=ne(s),this.min.equals(s.getTopLeft())&&this.max.equals(s.getBottomRight())):!1}};function ne(s,d){return!s||s instanceof Y?s:new Y(s,d)}function ie(s,d){if(s)for(var m=d?[s,d]:s,x=0,A=m.length;x<A;x++)this.extend(m[x])}ie.prototype={extend:function(s){var d=this._southWest,m=this._northEast,x,A;if(s instanceof oe)x=s,A=s;else if(s instanceof ie){if(x=s._southWest,A=s._northEast,!x||!A)return this}else return s?this.extend(le(s)||te(s)):this;return!d&&!m?(this._southWest=new oe(x.lat,x.lng),this._northEast=new oe(A.lat,A.lng)):(d.lat=Math.min(x.lat,d.lat),d.lng=Math.min(x.lng,d.lng),m.lat=Math.max(A.lat,m.lat),m.lng=Math.max(A.lng,m.lng)),this},pad:function(s){var d=this._southWest,m=this._northEast,x=Math.abs(d.lat-m.lat)*s,A=Math.abs(d.lng-m.lng)*s;return new ie(new oe(d.lat-x,d.lng-A),new oe(m.lat+x,m.lng+A))},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(s){typeof s[0]=="number"||s instanceof oe||"lat"in s?s=le(s):s=te(s);var d=this._southWest,m=this._northEast,x,A;return s instanceof ie?(x=s.getSouthWest(),A=s.getNorthEast()):x=A=s,x.lat>=d.lat&&A.lat<=m.lat&&x.lng>=d.lng&&A.lng<=m.lng},intersects:function(s){s=te(s);var d=this._southWest,m=this._northEast,x=s.getSouthWest(),A=s.getNorthEast(),D=A.lat>=d.lat&&x.lat<=m.lat,q=A.lng>=d.lng&&x.lng<=m.lng;return D&&q},overlaps:function(s){s=te(s);var d=this._southWest,m=this._northEast,x=s.getSouthWest(),A=s.getNorthEast(),D=A.lat>d.lat&&x.lat<m.lat,q=A.lng>d.lng&&x.lng<m.lng;return D&&q},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(s,d){return s?(s=te(s),this._southWest.equals(s.getSouthWest(),d)&&this._northEast.equals(s.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function te(s,d){return s instanceof ie?s:new ie(s,d)}function oe(s,d,m){if(isNaN(s)||isNaN(d))throw new Error("Invalid LatLng object: ("+s+", "+d+")");this.lat=+s,this.lng=+d,m!==void 0&&(this.alt=+m)}oe.prototype={equals:function(s,d){if(!s)return!1;s=le(s);var m=Math.max(Math.abs(this.lat-s.lat),Math.abs(this.lng-s.lng));return m<=(d===void 0?1e-9:d)},toString:function(s){return"LatLng("+p(this.lat,s)+", "+p(this.lng,s)+")"},distanceTo:function(s){return ce.distance(this,le(s))},wrap:function(){return ce.wrapLatLng(this)},toBounds:function(s){var d=180*s/40075017,m=d/Math.cos(Math.PI/180*this.lat);return te([this.lat-d,this.lng-m],[this.lat+d,this.lng+m])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function le(s,d,m){return s instanceof oe?s:E(s)&&typeof s[0]!="object"?s.length===3?new oe(s[0],s[1],s[2]):s.length===2?new oe(s[0],s[1]):null:s==null?s:typeof s=="object"&&"lat"in s?new oe(s.lat,"lng"in s?s.lng:s.lon,s.alt):d===void 0?null:new oe(s,d,m)}var de={latLngToPoint:function(s,d){var m=this.projection.project(s),x=this.scale(d);return this.transformation._transform(m,x)},pointToLatLng:function(s,d){var m=this.scale(d),x=this.transformation.untransform(s,m);return this.projection.unproject(x)},project:function(s){return this.projection.project(s)},unproject:function(s){return this.projection.unproject(s)},scale:function(s){return 256*Math.pow(2,s)},zoom:function(s){return Math.log(s/256)/Math.LN2},getProjectedBounds:function(s){if(this.infinite)return null;var d=this.projection.bounds,m=this.scale(s),x=this.transformation.transform(d.min,m),A=this.transformation.transform(d.max,m);return new Y(x,A)},infinite:!1,wrapLatLng:function(s){var d=this.wrapLng?h(s.lng,this.wrapLng,!0):s.lng,m=this.wrapLat?h(s.lat,this.wrapLat,!0):s.lat,x=s.alt;return new oe(m,d,x)},wrapLatLngBounds:function(s){var d=s.getCenter(),m=this.wrapLatLng(d),x=d.lat-m.lat,A=d.lng-m.lng;if(x===0&&A===0)return s;var D=s.getSouthWest(),q=s.getNorthEast(),ee=new oe(D.lat-x,D.lng-A),ae=new oe(q.lat-x,q.lng-A);return new ie(ee,ae)}},ce=i({},de,{wrapLng:[-180,180],R:6371e3,distance:function(s,d){var m=Math.PI/180,x=s.lat*m,A=d.lat*m,D=Math.sin((d.lat-s.lat)*m/2),q=Math.sin((d.lng-s.lng)*m/2),ee=D*D+Math.cos(x)*Math.cos(A)*q*q,ae=2*Math.atan2(Math.sqrt(ee),Math.sqrt(1-ee));return this.R*ae}}),ve=6378137,Ce={R:ve,MAX_LATITUDE:85.0511287798,project:function(s){var d=Math.PI/180,m=this.MAX_LATITUDE,x=Math.max(Math.min(m,s.lat),-m),A=Math.sin(x*d);return new G(this.R*s.lng*d,this.R*Math.log((1+A)/(1-A))/2)},unproject:function(s){var d=180/Math.PI;return new oe((2*Math.atan(Math.exp(s.y/this.R))-Math.PI/2)*d,s.x*d/this.R)},bounds:function(){var s=ve*Math.PI;return new Y([-s,-s],[s,s])}()};function ye(s,d,m,x){if(E(s)){this._a=s[0],this._b=s[1],this._c=s[2],this._d=s[3];return}this._a=s,this._b=d,this._c=m,this._d=x}ye.prototype={transform:function(s,d){return this._transform(s.clone(),d)},_transform:function(s,d){return d=d||1,s.x=d*(this._a*s.x+this._b),s.y=d*(this._c*s.y+this._d),s},untransform:function(s,d){return d=d||1,new G((s.x/d-this._b)/this._a,(s.y/d-this._d)/this._c)}};function J(s,d,m,x){return new ye(s,d,m,x)}var we=i({},ce,{code:"EPSG:3857",projection:Ce,transformation:function(){var s=.5/(Math.PI*Ce.R);return J(s,.5,-s,.5)}()}),Ee=i({},we,{code:"EPSG:900913"});function ke(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function $e(s,d){var m="",x,A,D,q,ee,ae;for(x=0,D=s.length;x<D;x++){for(ee=s[x],A=0,q=ee.length;A<q;A++)ae=ee[A],m+=(A?"L":"M")+ae.x+" "+ae.y;m+=d?Se.svg?"z":"x":""}return m||"M0 0"}var je=document.documentElement.style,Ue="ActiveXObject"in window,ir=Ue&&!document.addEventListener,At="msLaunchUri"in navigator&&!("documentMode"in document),jt=on("webkit"),Dt=on("android"),Pe=on("android 2")||on("android 3"),Vt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ca=Dt&&on("Google")&&Vt<537&&!("AudioNode"in window),Qn=!!window.opera,On=!At&&on("chrome"),Ti=on("gecko")&&!jt&&!Qn&&!Ue,Mi=!On&&on("safari"),da=on("phantom"),or="OTransition"in je,Si=navigator.platform.indexOf("Win")===0,an=Ue&&"transition"in je,Jt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Pe,Il="MozPerspective"in je,Lo=!window.L_DISABLE_3D&&(an||Jt||Il)&&!or&&!da,kn=typeof orientation!="undefined"||on("mobile"),ha=kn&&jt,Kd=kn&&Jt,$l=!window.PointerEvent&&window.MSPointerEvent,Fl=!!(window.PointerEvent||$l),zl="ontouchstart"in window||!!window.TouchEvent,Qd=!window.L_NO_TOUCH&&(zl||Fl),Jd=kn&&Qn,eh=kn&&Ti,th=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Bl=function(){var s=!1;try{var d=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",f,d),window.removeEventListener("testPassiveEventSupport",f,d)}catch(m){}return s}(),Wl=function(){return!!document.createElement("canvas").getContext}(),fa=!!(document.createElementNS&&ke("svg").createSVGRect),Hl=!!fa&&function(){var s=document.createElement("div");return s.innerHTML="<svg/>",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Le=!fa&&function(){try{var s=document.createElement("div");s.innerHTML='<v:shape adj="1"/>';var d=s.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch(m){return!1}}(),Sr=navigator.platform.indexOf("Mac")===0,jl=navigator.platform.indexOf("Linux")===0;function on(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var Se={ie:Ue,ielt9:ir,edge:At,webkit:jt,android:Dt,android23:Pe,androidStock:ca,opera:Qn,chrome:On,gecko:Ti,safari:Mi,phantom:da,opera12:or,win:Si,ie3d:an,webkit3d:Jt,gecko3d:Il,any3d:Lo,mobile:kn,mobileWebkit:ha,mobileWebkit3d:Kd,msPointer:$l,pointer:Fl,touch:Qd,touchNative:zl,mobileOpera:Jd,mobileGecko:eh,retina:th,passiveEvents:Bl,canvas:Wl,svg:fa,vml:Le,inlineSvg:Hl,mac:Sr,linux:jl},Xg=Se.msPointer?"MSPointerDown":"pointerdown",Zg=Se.msPointer?"MSPointerMove":"pointermove",Kg=Se.msPointer?"MSPointerUp":"pointerup",Qg=Se.msPointer?"MSPointerCancel":"pointercancel",rh={touchstart:Xg,touchmove:Zg,touchend:Kg,touchcancel:Qg},Jg={touchstart:mE,touchmove:Vl,touchend:Vl,touchcancel:Vl},pa={},ev=!1;function cE(s,d,m){return d==="touchstart"&&pE(),Jg[d]?(m=Jg[d].bind(this,m),s.addEventListener(rh[d],m,!1),m):(console.warn("wrong event specified:",d),f)}function dE(s,d,m){if(!rh[d]){console.warn("wrong event specified:",d);return}s.removeEventListener(rh[d],m,!1)}function hE(s){pa[s.pointerId]=s}function fE(s){pa[s.pointerId]&&(pa[s.pointerId]=s)}function tv(s){delete pa[s.pointerId]}function pE(){ev||(document.addEventListener(Xg,hE,!0),document.addEventListener(Zg,fE,!0),document.addEventListener(Kg,tv,!0),document.addEventListener(Qg,tv,!0),ev=!0)}function Vl(s,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var m in pa)d.touches.push(pa[m]);d.changedTouches=[d],s(d)}}function mE(s,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&er(d),Vl(s,d)}function gE(s){var d={},m,x;for(x in s)m=s[x],d[x]=m&&m.bind?m.bind(s):m;return s=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var vE=200;function yE(s,d){s.addEventListener("dblclick",d);var m=0,x;function A(D){if(D.detail!==1){x=D.detail;return}if(!(D.pointerType==="mouse"||D.sourceCapabilities&&!D.sourceCapabilities.firesTouchEvents)){var q=ov(D);if(!(q.some(function(ae){return ae instanceof HTMLLabelElement&&ae.attributes.for})&&!q.some(function(ae){return ae instanceof HTMLInputElement||ae instanceof HTMLSelectElement}))){var ee=Date.now();ee-m<=vE?(x++,x===2&&d(gE(D))):x=1,m=ee}}}return s.addEventListener("click",A),{dblclick:d,simDblclick:A}}function bE(s,d){s.removeEventListener("dblclick",d.dblclick),s.removeEventListener("click",d.simDblclick)}var nh=Yl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Io=Yl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),rv=Io==="webkitTransition"||Io==="OTransition"?Io+"End":"transitionend";function nv(s){return typeof s=="string"?document.getElementById(s):s}function $o(s,d){var m=s.style[d]||s.currentStyle&&s.currentStyle[d];if((!m||m==="auto")&&document.defaultView){var x=document.defaultView.getComputedStyle(s,null);m=x?x[d]:null}return m==="auto"?null:m}function qe(s,d,m){var x=document.createElement(s);return x.className=d||"",m&&m.appendChild(x),x}function Tt(s){var d=s.parentNode;d&&d.removeChild(s)}function Gl(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function ma(s){var d=s.parentNode;d&&d.lastChild!==s&&d.appendChild(s)}function ga(s){var d=s.parentNode;d&&d.firstChild!==s&&d.insertBefore(s,d.firstChild)}function ih(s,d){if(s.classList!==void 0)return s.classList.contains(d);var m=Ul(s);return m.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(m)}function Be(s,d){if(s.classList!==void 0)for(var m=b(d),x=0,A=m.length;x<A;x++)s.classList.add(m[x]);else if(!ih(s,d)){var D=Ul(s);ah(s,(D?D+" ":"")+d)}}function Nt(s,d){s.classList!==void 0?s.classList.remove(d):ah(s,g((" "+Ul(s)+" ").replace(" "+d+" "," ")))}function ah(s,d){s.className.baseVal===void 0?s.className=d:s.className.baseVal=d}function Ul(s){return s.correspondingElement&&(s=s.correspondingElement),s.className.baseVal===void 0?s.className:s.className.baseVal}function zr(s,d){"opacity"in s.style?s.style.opacity=d:"filter"in s.style&&_E(s,d)}function _E(s,d){var m=!1,x="DXImageTransform.Microsoft.Alpha";try{m=s.filters.item(x)}catch(A){if(d===1)return}d=Math.round(d*100),m?(m.Enabled=d!==100,m.Opacity=d):s.style.filter+=" progid:"+x+"(opacity="+d+")"}function Yl(s){for(var d=document.documentElement.style,m=0;m<s.length;m++)if(s[m]in d)return s[m];return!1}function Ei(s,d,m){var x=d||new G(0,0);s.style[nh]=(Se.ie3d?"translate("+x.x+"px,"+x.y+"px)":"translate3d("+x.x+"px,"+x.y+"px,0)")+(m?" scale("+m+")":"")}function Bt(s,d){s._leaflet_pos=d,Se.any3d?Ei(s,d):(s.style.left=d.x+"px",s.style.top=d.y+"px")}function Pi(s){return s._leaflet_pos||new G(0,0)}var Fo,zo,oh;if("onselectstart"in document)Fo=function(){Fe(window,"selectstart",er)},zo=function(){ct(window,"selectstart",er)};else{var Bo=Yl(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Fo=function(){if(Bo){var s=document.documentElement.style;oh=s[Bo],s[Bo]="none"}},zo=function(){Bo&&(document.documentElement.style[Bo]=oh,oh=void 0)}}function sh(){Fe(window,"dragstart",er)}function lh(){ct(window,"dragstart",er)}var ql,uh;function ch(s){for(;s.tabIndex===-1;)s=s.parentNode;s.style&&(Xl(),ql=s,uh=s.style.outlineStyle,s.style.outlineStyle="none",Fe(window,"keydown",Xl))}function Xl(){ql&&(ql.style.outlineStyle=uh,ql=void 0,uh=void 0,ct(window,"keydown",Xl))}function iv(s){do s=s.parentNode;while((!s.offsetWidth||!s.offsetHeight)&&s!==document.body);return s}function dh(s){var d=s.getBoundingClientRect();return{x:d.width/s.offsetWidth||1,y:d.height/s.offsetHeight||1,boundingClientRect:d}}var wE={__proto__:null,TRANSFORM:nh,TRANSITION:Io,TRANSITION_END:rv,get:nv,getStyle:$o,create:qe,remove:Tt,empty:Gl,toFront:ma,toBack:ga,hasClass:ih,addClass:Be,removeClass:Nt,setClass:ah,getClass:Ul,setOpacity:zr,testProp:Yl,setTransform:Ei,setPosition:Bt,getPosition:Pi,get disableTextSelection(){return Fo},get enableTextSelection(){return zo},disableImageDrag:sh,enableImageDrag:lh,preventOutline:ch,restoreOutline:Xl,getSizedParentNode:iv,getScale:dh};function Fe(s,d,m,x){if(d&&typeof d=="object")for(var A in d)fh(s,A,d[A],m);else{d=b(d);for(var D=0,q=d.length;D<q;D++)fh(s,d[D],m,x)}return this}var sn="_leaflet_events";function ct(s,d,m,x){if(arguments.length===1)av(s),delete s[sn];else if(d&&typeof d=="object")for(var A in d)ph(s,A,d[A],m);else if(d=b(d),arguments.length===2)av(s,function(ee){return S(d,ee)!==-1});else for(var D=0,q=d.length;D<q;D++)ph(s,d[D],m,x);return this}function av(s,d){for(var m in s[sn]){var x=m.split(/\d/)[0];(!d||d(x))&&ph(s,x,null,null,m)}}var hh={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function fh(s,d,m,x){var A=d+u(m)+(x?"_"+u(x):"");if(s[sn]&&s[sn][A])return this;var D=function(ee){return m.call(x||s,ee||window.event)},q=D;!Se.touchNative&&Se.pointer&&d.indexOf("touch")===0?D=cE(s,d,D):Se.touch&&d==="dblclick"?D=yE(s,D):"addEventListener"in s?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?s.addEventListener(hh[d]||d,D,Se.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(D=function(ee){ee=ee||window.event,gh(s,ee)&&q(ee)},s.addEventListener(hh[d],D,!1)):s.addEventListener(d,q,!1):s.attachEvent("on"+d,D),s[sn]=s[sn]||{},s[sn][A]=D}function ph(s,d,m,x,A){A=A||d+u(m)+(x?"_"+u(x):"");var D=s[sn]&&s[sn][A];if(!D)return this;!Se.touchNative&&Se.pointer&&d.indexOf("touch")===0?dE(s,d,D):Se.touch&&d==="dblclick"?bE(s,D):"removeEventListener"in s?s.removeEventListener(hh[d]||d,D,!1):s.detachEvent("on"+d,D),s[sn][A]=null}function Ai(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function mh(s){return fh(s,"wheel",Ai),this}function Wo(s){return Fe(s,"mousedown touchstart dblclick contextmenu",Ai),s._leaflet_disable_click=!0,this}function er(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function Ri(s){return er(s),Ai(s),this}function ov(s){if(s.composedPath)return s.composedPath();for(var d=[],m=s.target;m;)d.push(m),m=m.parentNode;return d}function sv(s,d){if(!d)return new G(s.clientX,s.clientY);var m=dh(d),x=m.boundingClientRect;return new G((s.clientX-x.left)/m.x-d.clientLeft,(s.clientY-x.top)/m.y-d.clientTop)}var xE=Se.linux&&Se.chrome?window.devicePixelRatio:Se.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function lv(s){return Se.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/xE:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function gh(s,d){var m=d.relatedTarget;if(!m)return!0;try{for(;m&&m!==s;)m=m.parentNode}catch(x){return!1}return m!==s}var CE={__proto__:null,on:Fe,off:ct,stopPropagation:Ai,disableScrollPropagation:mh,disableClickPropagation:Wo,preventDefault:er,stop:Ri,getPropagationPath:ov,getMousePosition:sv,getWheelDelta:lv,isExternalTarget:gh,addListener:Fe,removeListener:ct},uv=W.extend({run:function(s,d,m,x){this.stop(),this._el=s,this._inProgress=!0,this._duration=m||.25,this._easeOutPower=1/Math.max(x||.5,.2),this._startPos=Pi(s),this._offset=d.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=K(this._animate,this),this._step()},_step:function(s){var d=+new Date-this._startTime,m=this._duration*1e3;d<m?this._runFrame(this._easeOut(d/m),s):(this._runFrame(1),this._complete())},_runFrame:function(s,d){var m=this._startPos.add(this._offset.multiplyBy(s));d&&m._round(),Bt(this._el,m),this.fire("step")},_complete:function(){R(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(s){return 1-Math.pow(1-s,this._easeOutPower)}}),Ye=W.extend({options:{crs:we,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(s,d){d=v(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(s),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(le(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Io&&Se.any3d&&!Se.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Fe(this._proxy,rv,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(s,d,m){if(d=d===void 0?this._zoom:this._limitZoom(d),s=this._limitCenter(le(s),d,this.options.maxBounds),m=m||{},this._stop(),this._loaded&&!m.reset&&m!==!0){m.animate!==void 0&&(m.zoom=i({animate:m.animate},m.zoom),m.pan=i({animate:m.animate,duration:m.duration},m.pan));var x=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(s,d,m.zoom):this._tryAnimatedPan(s,m.pan);if(x)return clearTimeout(this._sizeTimer),this}return this._resetView(s,d,m.pan&&m.pan.noMoveStart),this},setZoom:function(s,d){return this._loaded?this.setView(this.getCenter(),s,{zoom:d}):(this._zoom=s,this)},zoomIn:function(s,d){return s=s||(Se.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+s,d)},zoomOut:function(s,d){return s=s||(Se.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-s,d)},setZoomAround:function(s,d,m){var x=this.getZoomScale(d),A=this.getSize().divideBy(2),D=s instanceof G?s:this.latLngToContainerPoint(s),q=D.subtract(A).multiplyBy(1-1/x),ee=this.containerPointToLatLng(A.add(q));return this.setView(ee,d,{zoom:m})},_getBoundsCenterZoom:function(s,d){d=d||{},s=s.getBounds?s.getBounds():te(s);var m=F(d.paddingTopLeft||d.padding||[0,0]),x=F(d.paddingBottomRight||d.padding||[0,0]),A=this.getBoundsZoom(s,!1,m.add(x));if(A=typeof d.maxZoom=="number"?Math.min(d.maxZoom,A):A,A===1/0)return{center:s.getCenter(),zoom:A};var D=x.subtract(m).divideBy(2),q=this.project(s.getSouthWest(),A),ee=this.project(s.getNorthEast(),A),ae=this.unproject(q.add(ee).divideBy(2).add(D),A);return{center:ae,zoom:A}},fitBounds:function(s,d){if(s=te(s),!s.isValid())throw new Error("Bounds are not valid.");var m=this._getBoundsCenterZoom(s,d);return this.setView(m.center,m.zoom,d)},fitWorld:function(s){return this.fitBounds([[-90,-180],[90,180]],s)},panTo:function(s,d){return this.setView(s,this._zoom,{pan:d})},panBy:function(s,d){if(s=F(s).round(),d=d||{},!s.x&&!s.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(s))return this._resetView(this.unproject(this.project(this.getCenter()).add(s)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new uv,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){Be(this._mapPane,"leaflet-pan-anim");var m=this._getMapPanePos().subtract(s).round();this._panAnim.run(this._mapPane,m,d.duration||.25,d.easeLinearity)}else this._rawPanBy(s),this.fire("move").fire("moveend");return this},flyTo:function(s,d,m){if(m=m||{},m.animate===!1||!Se.any3d)return this.setView(s,d,m);this._stop();var x=this.project(this.getCenter()),A=this.project(s),D=this.getSize(),q=this._zoom;s=le(s),d=d===void 0?q:d;var ee=Math.max(D.x,D.y),ae=ee*this.getZoomScale(q,d),he=A.distanceTo(x)||1,be=1.42,Ae=be*be;function He(Wt){var su=Wt?-1:1,d3=Wt?ae:ee,h3=ae*ae-ee*ee+su*Ae*Ae*he*he,f3=2*d3*Ae*he,Eh=h3/f3,jv=Math.sqrt(Eh*Eh+1)-Eh,p3=jv<1e-9?-18:Math.log(jv);return p3}function sr(Wt){return(Math.exp(Wt)-Math.exp(-Wt))/2}function Yt(Wt){return(Math.exp(Wt)+Math.exp(-Wt))/2}function Wr(Wt){return sr(Wt)/Yt(Wt)}var br=He(0);function xa(Wt){return ee*(Yt(br)/Yt(br+be*Wt))}function s3(Wt){return ee*(Yt(br)*Wr(br+be*Wt)-sr(br))/Ae}function l3(Wt){return 1-Math.pow(1-Wt,1.5)}var u3=Date.now(),Wv=(He(1)-br)/be,c3=m.duration?1e3*m.duration:1e3*Wv*.8;function Hv(){var Wt=(Date.now()-u3)/c3,su=l3(Wt)*Wv;Wt<=1?(this._flyToFrame=K(Hv,this),this._move(this.unproject(x.add(A.subtract(x).multiplyBy(s3(su)/he)),q),this.getScaleZoom(ee/xa(su),q),{flyTo:!0})):this._move(s,d)._moveEnd(!0)}return this._moveStart(!0,m.noMoveStart),Hv.call(this),this},flyToBounds:function(s,d){var m=this._getBoundsCenterZoom(s,d);return this.flyTo(m.center,m.zoom,d)},setMaxBounds:function(s){return s=te(s),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),s.isValid()?(this.options.maxBounds=s,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(s){var d=this.options.minZoom;return this.options.minZoom=s,this._loaded&&d!==s&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(s):this},setMaxZoom:function(s){var d=this.options.maxZoom;return this.options.maxZoom=s,this._loaded&&d!==s&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,d){this._enforcingBounds=!0;var m=this.getCenter(),x=this._limitCenter(m,this._zoom,te(s));return m.equals(x)||this.panTo(x,d),this._enforcingBounds=!1,this},panInside:function(s,d){d=d||{};var m=F(d.paddingTopLeft||d.padding||[0,0]),x=F(d.paddingBottomRight||d.padding||[0,0]),A=this.project(this.getCenter()),D=this.project(s),q=this.getPixelBounds(),ee=ne([q.min.add(m),q.max.subtract(x)]),ae=ee.getSize();if(!ee.contains(D)){this._enforcingBounds=!0;var he=D.subtract(ee.getCenter()),be=ee.extend(D).getSize().subtract(ae);A.x+=he.x<0?-be.x:be.x,A.y+=he.y<0?-be.y:be.y,this.panTo(this.unproject(A),d),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=i({animate:!1,pan:!0},s===!0?{animate:!0}:s);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var m=this.getSize(),x=d.divideBy(2).round(),A=m.divideBy(2).round(),D=x.subtract(A);return!D.x&&!D.y?this:(s.animate&&s.pan?this.panBy(D):(s.pan&&this._rawPanBy(D),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:m}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=i({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=o(this._handleGeolocationResponse,this),m=o(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,m,s):navigator.geolocation.getCurrentPosition(d,m,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var d=s.code,m=s.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+m+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var d=s.coords.latitude,m=s.coords.longitude,x=new oe(d,m),A=x.toBounds(s.coords.accuracy*2),D=this._locateOptions;if(D.setView){var q=this.getBoundsZoom(A);this.setView(x,D.maxZoom?Math.min(q,D.maxZoom):q)}var ee={latlng:x,bounds:A,timestamp:s.timestamp};for(var ae in s.coords)typeof s.coords[ae]=="number"&&(ee[ae]=s.coords[ae]);this.fire("locationfound",ee)}},addHandler:function(s,d){if(!d)return this;var m=this[s]=new d(this);return this._handlers.push(m),this.options[s]&&m.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(d){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Tt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(R(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)Tt(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,d){var m="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),x=qe("div",m,d||this._mapPane);return s&&(this._panes[s]=x),x},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),d=this.unproject(s.getBottomLeft()),m=this.unproject(s.getTopRight());return new ie(d,m)},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(s,d,m){s=te(s),m=F(m||[0,0]);var x=this.getZoom()||0,A=this.getMinZoom(),D=this.getMaxZoom(),q=s.getNorthWest(),ee=s.getSouthEast(),ae=this.getSize().subtract(m),he=ne(this.project(ee,x),this.project(q,x)).getSize(),be=Se.any3d?this.options.zoomSnap:1,Ae=ae.x/he.x,He=ae.y/he.y,sr=d?Math.max(Ae,He):Math.min(Ae,He);return x=this.getScaleZoom(sr,x),be&&(x=Math.round(x/(be/100))*(be/100),x=d?Math.ceil(x/be)*be:Math.floor(x/be)*be),Math.max(A,Math.min(D,x))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,d){var m=this._getTopLeftPoint(s,d);return new Y(m,m.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,d){var m=this.options.crs;return d=d===void 0?this._zoom:d,m.scale(s)/m.scale(d)},getScaleZoom:function(s,d){var m=this.options.crs;d=d===void 0?this._zoom:d;var x=m.zoom(s*m.scale(d));return isNaN(x)?1/0:x},project:function(s,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(le(s),d)},unproject:function(s,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(F(s),d)},layerPointToLatLng:function(s){var d=F(s).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(s){var d=this.project(le(s))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(le(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(te(s))},distance:function(s,d){return this.options.crs.distance(le(s),le(d))},containerPointToLayerPoint:function(s){return F(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return F(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var d=this.containerPointToLayerPoint(F(s));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(le(s)))},mouseEventToContainerPoint:function(s){return sv(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var d=this._container=nv(s);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Fe(d,"scroll",this._onScroll,this),this._containerId=u(d)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&Se.any3d,Be(s,"leaflet-container"+(Se.touch?" leaflet-touch":"")+(Se.retina?" leaflet-retina":"")+(Se.ielt9?" leaflet-oldie":"")+(Se.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=$o(s,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Bt(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Be(s.markerPane,"leaflet-zoom-hide"),Be(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,d,m){Bt(this._mapPane,new G(0,0));var x=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var A=this._zoom!==d;this._moveStart(A,m)._move(s,d)._moveEnd(A),this.fire("viewreset"),x&&this.fire("load")},_moveStart:function(s,d){return s&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(s,d,m,x){d===void 0&&(d=this._zoom);var A=this._zoom!==d;return this._zoom=d,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),x?m&&m.pinch&&this.fire("zoom",m):((A||m&&m.pinch)&&this.fire("zoom",m),this.fire("move",m)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return R(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){Bt(this._mapPane,this._getMapPanePos().subtract(s))},_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(s){this._targets={},this._targets[u(this._container)]=this;var d=s?ct:Fe;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),Se.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){R(this._resizeRequest),this._resizeRequest=K(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,d){for(var m=[],x,A=d==="mouseout"||d==="mouseover",D=s.target||s.srcElement,q=!1;D;){if(x=this._targets[u(D)],x&&(d==="click"||d==="preclick")&&this._draggableMoved(x)){q=!0;break}if(x&&x.listens(d,!0)&&(A&&!gh(D,s)||(m.push(x),A))||D===this._container)break;D=D.parentNode}return!m.length&&!q&&!A&&this.listens(d,!0)&&(m=[this]),m},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var d=s.target||s.srcElement;if(!(!this._loaded||d._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(d))){var m=s.type;m==="mousedown"&&ch(d),this._fireDOMEvent(s,m)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,d,m){if(s.type==="click"){var x=i({},s);x.type="preclick",this._fireDOMEvent(x,x.type,m)}var A=this._findEventTargets(s,d);if(m){for(var D=[],q=0;q<m.length;q++)m[q].listens(d,!0)&&D.push(m[q]);A=D.concat(A)}if(A.length){d==="contextmenu"&&er(s);var ee=A[0],ae={originalEvent:s};if(s.type!=="keypress"&&s.type!=="keydown"&&s.type!=="keyup"){var he=ee.getLatLng&&(!ee._radius||ee._radius<=10);ae.containerPoint=he?this.latLngToContainerPoint(ee.getLatLng()):this.mouseEventToContainerPoint(s),ae.layerPoint=this.containerPointToLayerPoint(ae.containerPoint),ae.latlng=he?ee.getLatLng():this.layerPointToLatLng(ae.layerPoint)}for(q=0;q<A.length;q++)if(A[q].fire(d,ae,!0),ae.originalEvent._stopped||A[q].options.bubblingMouseEvents===!1&&S(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(s){return s=s.dragging&&s.dragging.enabled()?s:this,s.dragging&&s.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var s=0,d=this._handlers.length;s<d;s++)this._handlers[s].disable()},whenReady:function(s,d){return this._loaded?s.call(d||this,{target:this}):this.on("load",s,d),this},_getMapPanePos:function(){return Pi(this._mapPane)||new G(0,0)},_moved:function(){var s=this._getMapPanePos();return s&&!s.equals([0,0])},_getTopLeftPoint:function(s,d){var m=s&&d!==void 0?this._getNewPixelOrigin(s,d):this.getPixelOrigin();return m.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(s,d){var m=this.getSize()._divideBy(2);return this.project(s,d)._subtract(m)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(s,d,m){var x=this._getNewPixelOrigin(m,d);return this.project(s,d)._subtract(x)},_latLngBoundsToNewLayerBounds:function(s,d,m){var x=this._getNewPixelOrigin(m,d);return ne([this.project(s.getSouthWest(),d)._subtract(x),this.project(s.getNorthWest(),d)._subtract(x),this.project(s.getSouthEast(),d)._subtract(x),this.project(s.getNorthEast(),d)._subtract(x)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(s){return this.latLngToLayerPoint(s).subtract(this._getCenterLayerPoint())},_limitCenter:function(s,d,m){if(!m)return s;var x=this.project(s,d),A=this.getSize().divideBy(2),D=new Y(x.subtract(A),x.add(A)),q=this._getBoundsOffset(D,m,d);return Math.abs(q.x)<=1&&Math.abs(q.y)<=1?s:this.unproject(x.add(q),d)},_limitOffset:function(s,d){if(!d)return s;var m=this.getPixelBounds(),x=new Y(m.min.add(s),m.max.add(s));return s.add(this._getBoundsOffset(x,d))},_getBoundsOffset:function(s,d,m){var x=ne(this.project(d.getNorthEast(),m),this.project(d.getSouthWest(),m)),A=x.min.subtract(s.min),D=x.max.subtract(s.max),q=this._rebound(A.x,-D.x),ee=this._rebound(A.y,-D.y);return new G(q,ee)},_rebound:function(s,d){return s+d>0?Math.round(s-d)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(d))},_limitZoom:function(s){var d=this.getMinZoom(),m=this.getMaxZoom(),x=Se.any3d?this.options.zoomSnap:1;return x&&(s=Math.round(s/x)*x),Math.max(d,Math.min(m,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Nt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,d){var m=this._getCenterOffset(s)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(m)?!1:(this.panBy(m,d),!0)},_createAnimProxy:function(){var s=this._proxy=qe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(d){var m=nh,x=this._proxy.style[m];Ei(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),x===this._proxy.style[m]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Tt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),d=this.getZoom();Ei(this._proxy,this.project(s,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,d,m){if(this._animatingZoom)return!0;if(m=m||{},!this._zoomAnimated||m.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var x=this.getZoomScale(d),A=this._getCenterOffset(s)._divideBy(1-1/x);return m.animate!==!0&&!this.getSize().contains(A)?!1:(K(function(){this._moveStart(!0,m.noMoveStart||!1)._animateZoom(s,d,!0)},this),!0)},_animateZoom:function(s,d,m,x){this._mapPane&&(m&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=d,Be(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:d,noUpdate:x}),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&&Nt(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 TE(s,d){return new Ye(s,d)}var Qr=X.extend({options:{position:"topright"},initialize:function(s){v(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var d=this._map;return d&&d.removeControl(this),this.options.position=s,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var d=this._container=this.onAdd(s),m=this.getPosition(),x=s._controlCorners[m];return Be(d,"leaflet-control"),m.indexOf("bottom")!==-1?x.insertBefore(d,x.firstChild):x.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Tt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),Ho=function(s){return new Qr(s)};Ye.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},d="leaflet-",m=this._controlContainer=qe("div",d+"control-container",this._container);function x(A,D){var q=d+A+" "+d+D;s[A+D]=qe("div",q,m)}x("top","left"),x("top","right"),x("bottom","left"),x("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)Tt(this._controlCorners[s]);Tt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var cv=Qr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,d,m,x){return m<x?-1:x<m?1:0}},initialize:function(s,d,m){v(this,m),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var x in s)this._addLayer(s[x],x);for(x in d)this._addLayer(d[x],x,!0)},onAdd:function(s){this._initLayout(),this._update(),this._map=s,s.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(s){return Qr.prototype.addTo.call(this,s),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(s,d){return this._addLayer(s,d),this._map?this._update():this},addOverlay:function(s,d){return this._addLayer(s,d,!0),this._map?this._update():this},removeLayer:function(s){s.off("add remove",this._onLayerChange,this);var d=this._getLayer(u(s));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){Be(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var s=this._map.getSize().y-(this._container.offsetTop+50);return s<this._section.clientHeight?(Be(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=s+"px"):Nt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Nt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var s="leaflet-control-layers",d=this._container=qe("div",s),m=this.options.collapsed;d.setAttribute("aria-haspopup",!0),Wo(d),mh(d);var x=this._section=qe("section",s+"-list");m&&(this._map.on("click",this.collapse,this),Fe(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var A=this._layersLink=qe("a",s+"-toggle",d);A.href="#",A.title="Layers",A.setAttribute("role","button"),Fe(A,{keydown:function(D){D.keyCode===13&&this._expandSafely()},click:function(D){er(D),this._expandSafely()}},this),m||this.expand(),this._baseLayersList=qe("div",s+"-base",x),this._separator=qe("div",s+"-separator",x),this._overlaysList=qe("div",s+"-overlays",x),d.appendChild(x)},_getLayer:function(s){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&u(this._layers[d].layer)===s)return this._layers[d]},_addLayer:function(s,d,m){this._map&&s.on("add remove",this._onLayerChange,this),this._layers.push({layer:s,name:d,overlay:m}),this.options.sortLayers&&this._layers.sort(o(function(x,A){return this.options.sortFunction(x.layer,A.layer,x.name,A.name)},this)),this.options.autoZIndex&&s.setZIndex&&(this._lastZIndex++,s.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Gl(this._baseLayersList),Gl(this._overlaysList),this._layerControlInputs=[];var s,d,m,x,A=0;for(m=0;m<this._layers.length;m++)x=this._layers[m],this._addItem(x),d=d||x.overlay,s=s||!x.overlay,A+=x.overlay?0:1;return this.options.hideSingleBase&&(s=s&&A>1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=d&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var d=this._getLayer(u(s.target)),m=d.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;m&&this._map.fire(m,d)},_createRadioElement:function(s,d){var m='<input type="radio" class="leaflet-control-layers-selector" name="'+s+'"'+(d?' checked="checked"':"")+"/>",x=document.createElement("div");return x.innerHTML=m,x.firstChild},_addItem:function(s){var d=document.createElement("label"),m=this._map.hasLayer(s.layer),x;s.overlay?(x=document.createElement("input"),x.type="checkbox",x.className="leaflet-control-layers-selector",x.defaultChecked=m):x=this._createRadioElement("leaflet-base-layers_"+u(this),m),this._layerControlInputs.push(x),x.layerId=u(s.layer),Fe(x,"click",this._onInputClick,this);var A=document.createElement("span");A.innerHTML=" "+s.name;var D=document.createElement("span");d.appendChild(D),D.appendChild(x),D.appendChild(A);var q=s.overlay?this._overlaysList:this._baseLayersList;return q.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,d,m,x=[],A=[];this._handlingClick=!0;for(var D=s.length-1;D>=0;D--)d=s[D],m=this._getLayer(d.layerId).layer,d.checked?x.push(m):d.checked||A.push(m);for(D=0;D<A.length;D++)this._map.hasLayer(A[D])&&this._map.removeLayer(A[D]);for(D=0;D<x.length;D++)this._map.hasLayer(x[D])||this._map.addLayer(x[D]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var s=this._layerControlInputs,d,m,x=this._map.getZoom(),A=s.length-1;A>=0;A--)d=s[A],m=this._getLayer(d.layerId).layer,d.disabled=m.options.minZoom!==void 0&&x<m.options.minZoom||m.options.maxZoom!==void 0&&x>m.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,Fe(s,"click",er),this.expand();var d=this;setTimeout(function(){ct(s,"click",er),d._preventClick=!1})}}),ME=function(s,d,m){return new cv(s,d,m)},vh=Qr.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(s){var d="leaflet-control-zoom",m=qe("div",d+" leaflet-bar"),x=this.options;return this._zoomInButton=this._createButton(x.zoomInText,x.zoomInTitle,d+"-in",m,this._zoomIn),this._zoomOutButton=this._createButton(x.zoomOutText,x.zoomOutTitle,d+"-out",m,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),m},onRemove:function(s){s.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(s){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(s.shiftKey?3:1))},_zoomOut:function(s){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,d,m,x,A){var D=qe("a",m,x);return D.innerHTML=s,D.href="#",D.title=d,D.setAttribute("role","button"),D.setAttribute("aria-label",d),Wo(D),Fe(D,"click",Ri),Fe(D,"click",A,this),Fe(D,"click",this._refocusOnMap,this),D},_updateDisabled:function(){var s=this._map,d="leaflet-disabled";Nt(this._zoomInButton,d),Nt(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(Be(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(Be(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ye.mergeOptions({zoomControl:!0}),Ye.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new vh,this.addControl(this.zoomControl))});var SE=function(s){return new vh(s)},dv=Qr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var d="leaflet-control-scale",m=qe("div",d),x=this.options;return this._addScales(x,d+"-line",m),s.on(x.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),m},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,d,m){s.metric&&(this._mScale=qe("div",d,m)),s.imperial&&(this._iScale=qe("div",d,m))},_update:function(){var s=this._map,d=s.getSize().y/2,m=s.distance(s.containerPointToLatLng([0,d]),s.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(m)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var d=this._getRoundNum(s),m=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,m,d/s)},_updateImperial:function(s){var d=s*3.2808399,m,x,A;d>5280?(m=d/5280,x=this._getRoundNum(m),this._updateScale(this._iScale,x+" mi",x/m)):(A=this._getRoundNum(d),this._updateScale(this._iScale,A+" ft",A/d))},_updateScale:function(s,d,m){s.style.width=Math.round(this.options.maxWidth*m)+"px",s.innerHTML=d},_getRoundNum:function(s){var d=Math.pow(10,(Math.floor(s)+"").length-1),m=s/d;return m=m>=10?10:m>=5?5:m>=3?3:m>=2?2:1,d*m}}),EE=function(s){return new dv(s)},PE='<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>',yh=Qr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Se.inlineSvg?PE+" ":"")+"Leaflet</a>"},initialize:function(s){v(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=qe("div","leaflet-control-attribution"),Wo(this._container);for(var d in s._layers)s._layers[d].getAttribution&&this.addAttribution(s._layers[d].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var d in this._attributions)this._attributions[d]&&s.push(d);var m=[];this.options.prefix&&m.push(this.options.prefix),s.length&&m.push(s.join(", ")),this._container.innerHTML=m.join(' <span aria-hidden="true">|</span> ')}}});Ye.mergeOptions({attributionControl:!0}),Ye.addInitHook(function(){this.options.attributionControl&&new yh().addTo(this)});var AE=function(s){return new yh(s)};Qr.Layers=cv,Qr.Zoom=vh,Qr.Scale=dv,Qr.Attribution=yh,Ho.layers=ME,Ho.zoom=SE,Ho.scale=EE,Ho.attribution=AE;var ln=X.extend({initialize:function(s){this._map=s},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}});ln.addTo=function(s,d){return s.addHandler(d,this),this};var RE={Events:V},hv=Se.touch?"touchstart mousedown":"mousedown",Jn=W.extend({options:{clickTolerance:3},initialize:function(s,d,m,x){v(this,x),this._element=s,this._dragStartTarget=d||s,this._preventOutline=m},enable:function(){this._enabled||(Fe(this._dragStartTarget,hv,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Jn._dragging===this&&this.finishDrag(!0),ct(this._dragStartTarget,hv,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!ih(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){Jn._dragging===this&&this.finishDrag();return}if(!(Jn._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(Jn._dragging=this,this._preventOutline&&ch(this._element),sh(),Fo(),!this._moving)){this.fire("down");var d=s.touches?s.touches[0]:s,m=iv(this._element);this._startPoint=new G(d.clientX,d.clientY),this._startPos=Pi(this._element),this._parentScale=dh(m);var x=s.type==="mousedown";Fe(document,x?"mousemove":"touchmove",this._onMove,this),Fe(document,x?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var d=s.touches&&s.touches.length===1?s.touches[0]:s,m=new G(d.clientX,d.clientY)._subtract(this._startPoint);!m.x&&!m.y||Math.abs(m.x)+Math.abs(m.y)<this.options.clickTolerance||(m.x/=this._parentScale.x,m.y/=this._parentScale.y,er(s),this._moved||(this.fire("dragstart"),this._moved=!0,Be(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Be(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(m),this._moving=!0,this._lastEvent=s,this._updatePosition())}},_updatePosition:function(){var s={originalEvent:this._lastEvent};this.fire("predrag",s),Bt(this._element,this._newPos),this.fire("drag",s)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(s){Nt(document.body,"leaflet-dragging"),this._lastTarget&&(Nt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ct(document,"mousemove touchmove",this._onMove,this),ct(document,"mouseup touchend touchcancel",this._onUp,this),lh(),zo();var d=this._moved&&this._moving;this._moving=!1,Jn._dragging=!1,d&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function fv(s,d,m){var x,A=[1,4,2,8],D,q,ee,ae,he,be,Ae,He;for(D=0,be=s.length;D<be;D++)s[D]._code=Oi(s[D],d);for(ee=0;ee<4;ee++){for(Ae=A[ee],x=[],D=0,be=s.length,q=be-1;D<be;q=D++)ae=s[D],he=s[q],ae._code&Ae?he._code&Ae||(He=Zl(he,ae,Ae,d,m),He._code=Oi(He,d),x.push(He)):(he._code&Ae&&(He=Zl(he,ae,Ae,d,m),He._code=Oi(He,d),x.push(He)),x.push(ae));s=x}return s}function pv(s,d){var m,x,A,D,q,ee,ae,he,be;if(!s||s.length===0)throw new Error("latlngs not passed");Br(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Ae=le([0,0]),He=te(s),sr=He.getNorthWest().distanceTo(He.getSouthWest())*He.getNorthEast().distanceTo(He.getNorthWest());sr<1700&&(Ae=bh(s));var Yt=s.length,Wr=[];for(m=0;m<Yt;m++){var br=le(s[m]);Wr.push(d.project(le([br.lat-Ae.lat,br.lng-Ae.lng])))}for(ee=ae=he=0,m=0,x=Yt-1;m<Yt;x=m++)A=Wr[m],D=Wr[x],q=A.y*D.x-D.y*A.x,ae+=(A.x+D.x)*q,he+=(A.y+D.y)*q,ee+=q*3;ee===0?be=Wr[0]:be=[ae/ee,he/ee];var xa=d.unproject(F(be));return le([xa.lat+Ae.lat,xa.lng+Ae.lng])}function bh(s){for(var d=0,m=0,x=0,A=0;A<s.length;A++){var D=le(s[A]);d+=D.lat,m+=D.lng,x++}return le([d/x,m/x])}var OE={__proto__:null,clipPolygon:fv,polygonCenter:pv,centroid:bh};function mv(s,d){if(!d||!s.length)return s.slice();var m=d*d;return s=NE(s,m),s=DE(s,m),s}function gv(s,d,m){return Math.sqrt(jo(s,d,m,!0))}function kE(s,d,m){return jo(s,d,m)}function DE(s,d){var m=s.length,x=typeof Uint8Array!="undefined"?Uint8Array:Array,A=new x(m);A[0]=A[m-1]=1,_h(s,A,d,0,m-1);var D,q=[];for(D=0;D<m;D++)A[D]&&q.push(s[D]);return q}function _h(s,d,m,x,A){var D=0,q,ee,ae;for(ee=x+1;ee<=A-1;ee++)ae=jo(s[ee],s[x],s[A],!0),ae>D&&(q=ee,D=ae);D>m&&(d[q]=1,_h(s,d,m,x,q),_h(s,d,m,q,A))}function NE(s,d){for(var m=[s[0]],x=1,A=0,D=s.length;x<D;x++)LE(s[x],s[A])>d&&(m.push(s[x]),A=x);return A<D-1&&m.push(s[D-1]),m}var vv;function yv(s,d,m,x,A){var D=x?vv:Oi(s,m),q=Oi(d,m),ee,ae,he;for(vv=q;;){if(!(D|q))return[s,d];if(D&q)return!1;ee=D||q,ae=Zl(s,d,ee,m,A),he=Oi(ae,m),ee===D?(s=ae,D=he):(d=ae,q=he)}}function Zl(s,d,m,x,A){var D=d.x-s.x,q=d.y-s.y,ee=x.min,ae=x.max,he,be;return m&8?(he=s.x+D*(ae.y-s.y)/q,be=ae.y):m&4?(he=s.x+D*(ee.y-s.y)/q,be=ee.y):m&2?(he=ae.x,be=s.y+q*(ae.x-s.x)/D):m&1&&(he=ee.x,be=s.y+q*(ee.x-s.x)/D),new G(he,be,A)}function Oi(s,d){var m=0;return s.x<d.min.x?m|=1:s.x>d.max.x&&(m|=2),s.y<d.min.y?m|=4:s.y>d.max.y&&(m|=8),m}function LE(s,d){var m=d.x-s.x,x=d.y-s.y;return m*m+x*x}function jo(s,d,m,x){var A=d.x,D=d.y,q=m.x-A,ee=m.y-D,ae=q*q+ee*ee,he;return ae>0&&(he=((s.x-A)*q+(s.y-D)*ee)/ae,he>1?(A=m.x,D=m.y):he>0&&(A+=q*he,D+=ee*he)),q=s.x-A,ee=s.y-D,x?q*q+ee*ee:new G(A,D)}function Br(s){return!E(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]!="undefined"}function bv(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Br(s)}function _v(s,d){var m,x,A,D,q,ee,ae,he;if(!s||s.length===0)throw new Error("latlngs not passed");Br(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var be=le([0,0]),Ae=te(s),He=Ae.getNorthWest().distanceTo(Ae.getSouthWest())*Ae.getNorthEast().distanceTo(Ae.getNorthWest());He<1700&&(be=bh(s));var sr=s.length,Yt=[];for(m=0;m<sr;m++){var Wr=le(s[m]);Yt.push(d.project(le([Wr.lat-be.lat,Wr.lng-be.lng])))}for(m=0,x=0;m<sr-1;m++)x+=Yt[m].distanceTo(Yt[m+1])/2;if(x===0)he=Yt[0];else for(m=0,D=0;m<sr-1;m++)if(q=Yt[m],ee=Yt[m+1],A=q.distanceTo(ee),D+=A,D>x){ae=(D-x)/A,he=[ee.x-ae*(ee.x-q.x),ee.y-ae*(ee.y-q.y)];break}var br=d.unproject(F(he));return le([br.lat+be.lat,br.lng+be.lng])}var IE={__proto__:null,simplify:mv,pointToSegmentDistance:gv,closestPointOnSegment:kE,clipSegment:yv,_getEdgeIntersection:Zl,_getBitCode:Oi,_sqClosestPointOnSegment:jo,isFlat:Br,_flat:bv,polylineCenter:_v},wh={project:function(s){return new G(s.lng,s.lat)},unproject:function(s){return new oe(s.y,s.x)},bounds:new Y([-180,-90],[180,90])},xh={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Y([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var d=Math.PI/180,m=this.R,x=s.lat*d,A=this.R_MINOR/m,D=Math.sqrt(1-A*A),q=D*Math.sin(x),ee=Math.tan(Math.PI/4-x/2)/Math.pow((1-q)/(1+q),D/2);return x=-m*Math.log(Math.max(ee,1e-10)),new G(s.lng*d*m,x)},unproject:function(s){for(var d=180/Math.PI,m=this.R,x=this.R_MINOR/m,A=Math.sqrt(1-x*x),D=Math.exp(-s.y/m),q=Math.PI/2-2*Math.atan(D),ee=0,ae=.1,he;ee<15&&Math.abs(ae)>1e-7;ee++)he=A*Math.sin(q),he=Math.pow((1-he)/(1+he),A/2),ae=Math.PI/2-2*Math.atan(D*he)-q,q+=ae;return new oe(q*d,s.x*d/m)}},$E={__proto__:null,LonLat:wh,Mercator:xh,SphericalMercator:Ce},FE=i({},ce,{code:"EPSG:3395",projection:xh,transformation:function(){var s=.5/(Math.PI*xh.R);return J(s,.5,-s,.5)}()}),wv=i({},ce,{code:"EPSG:4326",projection:wh,transformation:J(1/180,1,-1/180,.5)}),zE=i({},de,{projection:wh,transformation:J(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,d){var m=d.lng-s.lng,x=d.lat-s.lat;return Math.sqrt(m*m+x*x)},infinite:!0});de.Earth=ce,de.EPSG3395=FE,de.EPSG3857=we,de.EPSG900913=Ee,de.EPSG4326=wv,de.Simple=zE;var Jr=W.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[u(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[u(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var d=s.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var m=this.getEvents();d.on(m,this),this.once("remove",function(){d.off(m,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});Ye.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var d=u(s);return this._layers[d]?this:(this._layers[d]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var d=u(s);return this._layers[d]?(this._loaded&&s.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return u(s)in this._layers},eachLayer:function(s,d){for(var m in this._layers)s.call(d,this._layers[m]);return this},_addLayers:function(s){s=s?E(s)?s:[s]:[];for(var d=0,m=s.length;d<m;d++)this.addLayer(s[d])},_addZoomLimit:function(s){(!isNaN(s.options.maxZoom)||!isNaN(s.options.minZoom))&&(this._zoomBoundLayers[u(s)]=s,this._updateZoomLevels())},_removeZoomLimit:function(s){var d=u(s);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var s=1/0,d=-1/0,m=this._getZoomSpan();for(var x in this._zoomBoundLayers){var A=this._zoomBoundLayers[x].options;s=A.minZoom===void 0?s:Math.min(s,A.minZoom),d=A.maxZoom===void 0?d:Math.max(d,A.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=s===1/0?void 0:s,m!==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 va=Jr.extend({initialize:function(s,d){v(this,d),this._layers={};var m,x;if(s)for(m=0,x=s.length;m<x;m++)this.addLayer(s[m])},addLayer:function(s){var d=this.getLayerId(s);return this._layers[d]=s,this._map&&this._map.addLayer(s),this},removeLayer:function(s){var d=s in this._layers?s:this.getLayerId(s);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(s){var d=typeof s=="number"?s:this.getLayerId(s);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(s){var d=Array.prototype.slice.call(arguments,1),m,x;for(m in this._layers)x=this._layers[m],x[s]&&x[s].apply(x,d);return this},onAdd:function(s){this.eachLayer(s.addLayer,s)},onRemove:function(s){this.eachLayer(s.removeLayer,s)},eachLayer:function(s,d){for(var m in this._layers)s.call(d,this._layers[m]);return this},getLayer:function(s){return this._layers[s]},getLayers:function(){var s=[];return this.eachLayer(s.push,s),s},setZIndex:function(s){return this.invoke("setZIndex",s)},getLayerId:function(s){return u(s)}}),BE=function(s,d){return new va(s,d)},Dn=va.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),va.prototype.addLayer.call(this,s),this.fire("layeradd",{layer:s}))},removeLayer:function(s){return this.hasLayer(s)?(s in this._layers&&(s=this._layers[s]),s.removeEventParent(this),va.prototype.removeLayer.call(this,s),this.fire("layerremove",{layer:s})):this},setStyle:function(s){return this.invoke("setStyle",s)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var s=new ie;for(var d in this._layers){var m=this._layers[d];s.extend(m.getBounds?m.getBounds():m.getLatLng())}return s}}),WE=function(s,d){return new Dn(s,d)},ya=X.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(s){v(this,s)},createIcon:function(s){return this._createIcon("icon",s)},createShadow:function(s){return this._createIcon("shadow",s)},_createIcon:function(s,d){var m=this._getIconUrl(s);if(!m){if(s==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var x=this._createImg(m,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(x,s),(this.options.crossOrigin||this.options.crossOrigin==="")&&(x.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),x},_setIconStyles:function(s,d){var m=this.options,x=m[d+"Size"];typeof x=="number"&&(x=[x,x]);var A=F(x),D=F(d==="shadow"&&m.shadowAnchor||m.iconAnchor||A&&A.divideBy(2,!0));s.className="leaflet-marker-"+d+" "+(m.className||""),D&&(s.style.marginLeft=-D.x+"px",s.style.marginTop=-D.y+"px"),A&&(s.style.width=A.x+"px",s.style.height=A.y+"px")},_createImg:function(s,d){return d=d||document.createElement("img"),d.src=s,d},_getIconUrl:function(s){return Se.retina&&this.options[s+"RetinaUrl"]||this.options[s+"Url"]}});function HE(s){return new ya(s)}var Vo=ya.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(s){return typeof Vo.imagePath!="string"&&(Vo.imagePath=this._detectIconPath()),(this.options.imagePath||Vo.imagePath)+ya.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var d=function(m,x,A){var D=x.exec(m);return D&&D[A]};return s=d(s,/^url\((['"])?(.+)\1\)$/,2),s&&d(s,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var s=qe("div","leaflet-default-icon-path",document.body),d=$o(s,"background-image")||$o(s,"backgroundImage");if(document.body.removeChild(s),d=this._stripUrl(d),d)return d;var m=document.querySelector('link[href$="leaflet.css"]');return m?m.href.substring(0,m.href.length-11-1):""}}),xv=ln.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new Jn(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Be(s,"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&&Nt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(s){var d=this._marker,m=d._map,x=this._marker.options.autoPanSpeed,A=this._marker.options.autoPanPadding,D=Pi(d._icon),q=m.getPixelBounds(),ee=m.getPixelOrigin(),ae=ne(q.min._subtract(ee).add(A),q.max._subtract(ee).subtract(A));if(!ae.contains(D)){var he=F((Math.max(ae.max.x,D.x)-ae.max.x)/(q.max.x-ae.max.x)-(Math.min(ae.min.x,D.x)-ae.min.x)/(q.min.x-ae.min.x),(Math.max(ae.max.y,D.y)-ae.max.y)/(q.max.y-ae.max.y)-(Math.min(ae.min.y,D.y)-ae.min.y)/(q.min.y-ae.min.y)).multiplyBy(x);m.panBy(he,{animate:!1}),this._draggable._newPos._add(he),this._draggable._startPos._add(he),Bt(d._icon,this._draggable._newPos),this._onDrag(s),this._panRequest=K(this._adjustPan.bind(this,s))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(s){this._marker.options.autoPan&&(R(this._panRequest),this._panRequest=K(this._adjustPan.bind(this,s)))},_onDrag:function(s){var d=this._marker,m=d._shadow,x=Pi(d._icon),A=d._map.layerPointToLatLng(x);m&&Bt(m,x),d._latlng=A,s.latlng=A,s.oldLatLng=this._oldLatLng,d.fire("move",s).fire("drag",s)},_onDragEnd:function(s){R(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),Kl=Jr.extend({options:{icon:new Vo,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(s,d){v(this,d),this._latlng=le(s)},onAdd:function(s){this._zoomAnimated=this._zoomAnimated&&s.options.markerZoomAnimation,this._zoomAnimated&&s.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(s){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&s.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(s){var d=this._latlng;return this._latlng=le(s),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(s){return this.options.zIndexOffset=s,this.update()},getIcon:function(){return this.options.icon},setIcon:function(s){return this.options.icon=s,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 s=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(s)}return this},_initIcon:function(){var s=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),m=s.icon.createIcon(this._icon),x=!1;m!==this._icon&&(this._icon&&this._removeIcon(),x=!0,s.title&&(m.title=s.title),m.tagName==="IMG"&&(m.alt=s.alt||"")),Be(m,d),s.keyboard&&(m.tabIndex="0",m.setAttribute("role","button")),this._icon=m,s.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Fe(m,"focus",this._panOnFocus,this);var A=s.icon.createShadow(this._shadow),D=!1;A!==this._shadow&&(this._removeShadow(),D=!0),A&&(Be(A,d),A.alt=""),this._shadow=A,s.opacity<1&&this._updateOpacity(),x&&this.getPane().appendChild(this._icon),this._initInteraction(),A&&D&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ct(this._icon,"focus",this._panOnFocus,this),Tt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Tt(this._shadow),this._shadow=null},_setPos:function(s){this._icon&&Bt(this._icon,s),this._shadow&&Bt(this._shadow,s),this._zIndex=s.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(s){this._icon&&(this._icon.style.zIndex=this._zIndex+s)},_animateZoom:function(s){var d=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(Be(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),xv)){var s=this.options.draggable;this.dragging&&(s=this.dragging.enabled(),this.dragging.disable()),this.dragging=new xv(this),s&&this.dragging.enable()}},setOpacity:function(s){return this.options.opacity=s,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var s=this.options.opacity;this._icon&&zr(this._icon,s),this._shadow&&zr(this._shadow,s)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var s=this._map;if(s){var d=this.options.icon.options,m=d.iconSize?F(d.iconSize):F(0,0),x=d.iconAnchor?F(d.iconAnchor):F(0,0);s.panInside(this._latlng,{paddingTopLeft:x,paddingBottomRight:m.subtract(x)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function jE(s,d){return new Kl(s,d)}var ei=Jr.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(s){this._renderer=s.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(s){return v(this,s),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&s&&Object.prototype.hasOwnProperty.call(s,"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)}}),Ql=ei.extend({options:{fill:!0,radius:10},initialize:function(s,d){v(this,d),this._latlng=le(s),this._radius=this.options.radius},setLatLng:function(s){var d=this._latlng;return this._latlng=le(s),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(s){return this.options.radius=this._radius=s,this.redraw()},getRadius:function(){return this._radius},setStyle:function(s){var d=s&&s.radius||this._radius;return ei.prototype.setStyle.call(this,s),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var s=this._radius,d=this._radiusY||s,m=this._clickTolerance(),x=[s+m,d+m];this._pxBounds=new Y(this._point.subtract(x),this._point.add(x))},_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(s){return s.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function VE(s,d){return new Ql(s,d)}var Ch=Ql.extend({initialize:function(s,d,m){if(typeof d=="number"&&(d=i({},m,{radius:d})),v(this,d),this._latlng=le(s),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(s){return this._mRadius=s,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var s=[this._radius,this._radiusY||this._radius];return new ie(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:ei.prototype.setStyle,_project:function(){var s=this._latlng.lng,d=this._latlng.lat,m=this._map,x=m.options.crs;if(x.distance===ce.distance){var A=Math.PI/180,D=this._mRadius/ce.R/A,q=m.project([d+D,s]),ee=m.project([d-D,s]),ae=q.add(ee).divideBy(2),he=m.unproject(ae).lat,be=Math.acos((Math.cos(D*A)-Math.sin(d*A)*Math.sin(he*A))/(Math.cos(d*A)*Math.cos(he*A)))/A;(isNaN(be)||be===0)&&(be=D/Math.cos(Math.PI/180*d)),this._point=ae.subtract(m.getPixelOrigin()),this._radius=isNaN(be)?0:ae.x-m.project([he,s-be]).x,this._radiusY=ae.y-q.y}else{var Ae=x.unproject(x.project(this._latlng).subtract([this._mRadius,0]));this._point=m.latLngToLayerPoint(this._latlng),this._radius=this._point.x-m.latLngToLayerPoint(Ae).x}this._updateBounds()}});function GE(s,d,m){return new Ch(s,d,m)}var Nn=ei.extend({options:{smoothFactor:1,noClip:!1},initialize:function(s,d){v(this,d),this._setLatLngs(s)},getLatLngs:function(){return this._latlngs},setLatLngs:function(s){return this._setLatLngs(s),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(s){for(var d=1/0,m=null,x=jo,A,D,q=0,ee=this._parts.length;q<ee;q++)for(var ae=this._parts[q],he=1,be=ae.length;he<be;he++){A=ae[he-1],D=ae[he];var Ae=x(s,A,D,!0);Ae<d&&(d=Ae,m=x(s,A,D))}return m&&(m.distance=Math.sqrt(d)),m},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _v(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(s,d){return d=d||this._defaultShape(),s=le(s),d.push(s),this._bounds.extend(s),this.redraw()},_setLatLngs:function(s){this._bounds=new ie,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return Br(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var d=[],m=Br(s),x=0,A=s.length;x<A;x++)m?(d[x]=le(s[x]),this._bounds.extend(d[x])):d[x]=this._convertLatLngs(s[x]);return d},_project:function(){var s=new Y;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,s),this._bounds.isValid()&&s.isValid()&&(this._rawPxBounds=s,this._updateBounds())},_updateBounds:function(){var s=this._clickTolerance(),d=new G(s,s);this._rawPxBounds&&(this._pxBounds=new Y([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(s,d,m){var x=s[0]instanceof oe,A=s.length,D,q;if(x){for(q=[],D=0;D<A;D++)q[D]=this._map.latLngToLayerPoint(s[D]),m.extend(q[D]);d.push(q)}else for(D=0;D<A;D++)this._projectLatlngs(s[D],d,m)},_clipPoints:function(){var s=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,m,x,A,D,q,ee,ae;for(m=0,A=0,D=this._rings.length;m<D;m++)for(ae=this._rings[m],x=0,q=ae.length;x<q-1;x++)ee=yv(ae[x],ae[x+1],s,x,!0),ee&&(d[A]=d[A]||[],d[A].push(ee[0]),(ee[1]!==ae[x+1]||x===q-2)&&(d[A].push(ee[1]),A++))}},_simplifyPoints:function(){for(var s=this._parts,d=this.options.smoothFactor,m=0,x=s.length;m<x;m++)s[m]=mv(s[m],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(s,d){var m,x,A,D,q,ee,ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(m=0,D=this._parts.length;m<D;m++)for(ee=this._parts[m],x=0,q=ee.length,A=q-1;x<q;A=x++)if(!(!d&&x===0)&&gv(s,ee[A],ee[x])<=ae)return!0;return!1}});function UE(s,d){return new Nn(s,d)}Nn._flat=bv;var ba=Nn.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 pv(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var d=Nn.prototype._convertLatLngs.call(this,s),m=d.length;return m>=2&&d[0]instanceof oe&&d[0].equals(d[m-1])&&d.pop(),d},_setLatLngs:function(s){Nn.prototype._setLatLngs.call(this,s),Br(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Br(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,d=this.options.weight,m=new G(d,d);if(s=new Y(s.min.subtract(m),s.max.add(m)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var x=0,A=this._rings.length,D;x<A;x++)D=fv(this._rings[x],s,!0),D.length&&this._parts.push(D)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var d=!1,m,x,A,D,q,ee,ae,he;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(D=0,ae=this._parts.length;D<ae;D++)for(m=this._parts[D],q=0,he=m.length,ee=he-1;q<he;ee=q++)x=m[q],A=m[ee],x.y>s.y!=A.y>s.y&&s.x<(A.x-x.x)*(s.y-x.y)/(A.y-x.y)+x.x&&(d=!d);return d||Nn.prototype._containsPoint.call(this,s,!0)}});function YE(s,d){return new ba(s,d)}var Ln=Dn.extend({initialize:function(s,d){v(this,d),this._layers={},s&&this.addData(s)},addData:function(s){var d=E(s)?s:s.features,m,x,A;if(d){for(m=0,x=d.length;m<x;m++)A=d[m],(A.geometries||A.geometry||A.features||A.coordinates)&&this.addData(A);return this}var D=this.options;if(D.filter&&!D.filter(s))return this;var q=Jl(s,D);return q?(q.feature=ru(s),q.defaultOptions=q.options,this.resetStyle(q),D.onEachFeature&&D.onEachFeature(s,q),this.addLayer(q)):this},resetStyle:function(s){return s===void 0?this.eachLayer(this.resetStyle,this):(s.options=i({},s.defaultOptions),this._setLayerStyle(s,this.options.style),this)},setStyle:function(s){return this.eachLayer(function(d){this._setLayerStyle(d,s)},this)},_setLayerStyle:function(s,d){s.setStyle&&(typeof d=="function"&&(d=d(s.feature)),s.setStyle(d))}});function Jl(s,d){var m=s.type==="Feature"?s.geometry:s,x=m?m.coordinates:null,A=[],D=d&&d.pointToLayer,q=d&&d.coordsToLatLng||Th,ee,ae,he,be;if(!x&&!m)return null;switch(m.type){case"Point":return ee=q(x),Cv(D,s,ee,d);case"MultiPoint":for(he=0,be=x.length;he<be;he++)ee=q(x[he]),A.push(Cv(D,s,ee,d));return new Dn(A);case"LineString":case"MultiLineString":return ae=eu(x,m.type==="LineString"?0:1,q),new Nn(ae,d);case"Polygon":case"MultiPolygon":return ae=eu(x,m.type==="Polygon"?1:2,q),new ba(ae,d);case"GeometryCollection":for(he=0,be=m.geometries.length;he<be;he++){var Ae=Jl({geometry:m.geometries[he],type:"Feature",properties:s.properties},d);Ae&&A.push(Ae)}return new Dn(A);case"FeatureCollection":for(he=0,be=m.features.length;he<be;he++){var He=Jl(m.features[he],d);He&&A.push(He)}return new Dn(A);default:throw new Error("Invalid GeoJSON object.")}}function Cv(s,d,m,x){return s?s(d,m):new Kl(m,x&&x.markersInheritOptions&&x)}function Th(s){return new oe(s[1],s[0],s[2])}function eu(s,d,m){for(var x=[],A=0,D=s.length,q;A<D;A++)q=d?eu(s[A],d-1,m):(m||Th)(s[A]),x.push(q);return x}function Mh(s,d){return s=le(s),s.alt!==void 0?[p(s.lng,d),p(s.lat,d),p(s.alt,d)]:[p(s.lng,d),p(s.lat,d)]}function tu(s,d,m,x){for(var A=[],D=0,q=s.length;D<q;D++)A.push(d?tu(s[D],Br(s[D])?0:d-1,m,x):Mh(s[D],x));return!d&&m&&A.length>0&&A.push(A[0].slice()),A}function _a(s,d){return s.feature?i({},s.feature,{geometry:d}):ru(d)}function ru(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var Sh={toGeoJSON:function(s){return _a(this,{type:"Point",coordinates:Mh(this.getLatLng(),s)})}};Kl.include(Sh),Ch.include(Sh),Ql.include(Sh),Nn.include({toGeoJSON:function(s){var d=!Br(this._latlngs),m=tu(this._latlngs,d?1:0,!1,s);return _a(this,{type:(d?"Multi":"")+"LineString",coordinates:m})}}),ba.include({toGeoJSON:function(s){var d=!Br(this._latlngs),m=d&&!Br(this._latlngs[0]),x=tu(this._latlngs,m?2:d?1:0,!0,s);return d||(x=[x]),_a(this,{type:(m?"Multi":"")+"Polygon",coordinates:x})}}),va.include({toMultiPoint:function(s){var d=[];return this.eachLayer(function(m){d.push(m.toGeoJSON(s).geometry.coordinates)}),_a(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(s){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(s);var m=d==="GeometryCollection",x=[];return this.eachLayer(function(A){if(A.toGeoJSON){var D=A.toGeoJSON(s);if(m)x.push(D.geometry);else{var q=ru(D);q.type==="FeatureCollection"?x.push.apply(x,q.features):x.push(q)}}}),m?_a(this,{geometries:x,type:"GeometryCollection"}):{type:"FeatureCollection",features:x}}});function Tv(s,d){return new Ln(s,d)}var qE=Tv,nu=Jr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,d,m){this._url=s,this._bounds=te(d),v(this,m)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Be(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Tt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&ma(this._image),this},bringToBack:function(){return this._map&&ga(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=te(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",d=this._image=s?this._url:qe("img");if(Be(d,"leaflet-image-layer"),this._zoomAnimated&&Be(d,"leaflet-zoom-animated"),this.options.className&&Be(d,this.options.className),d.onselectstart=f,d.onmousemove=f,d.onload=o(this.fire,this,"load"),d.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(s){var d=this._map.getZoomScale(s.zoom),m=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;Ei(this._image,m,d)},_reset:function(){var s=this._image,d=new Y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),m=d.getSize();Bt(s,d.min),s.style.width=m.x+"px",s.style.height=m.y+"px"},_updateOpacity:function(){zr(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 s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),XE=function(s,d,m){return new nu(s,d,m)},Mv=nu.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",d=this._image=s?this._url:qe("video");if(Be(d,"leaflet-image-layer"),this._zoomAnimated&&Be(d,"leaflet-zoom-animated"),this.options.className&&Be(d,this.options.className),d.onselectstart=f,d.onmousemove=f,d.onloadeddata=o(this.fire,this,"load"),s){for(var m=d.getElementsByTagName("source"),x=[],A=0;A<m.length;A++)x.push(m[A].src);this._url=m.length>0?x:[d.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var D=0;D<this._url.length;D++){var q=qe("source");q.src=this._url[D],d.appendChild(q)}}});function ZE(s,d,m){return new Mv(s,d,m)}var Sv=nu.extend({_initImage:function(){var s=this._image=this._url;Be(s,"leaflet-image-layer"),this._zoomAnimated&&Be(s,"leaflet-zoom-animated"),this.options.className&&Be(s,this.options.className),s.onselectstart=f,s.onmousemove=f}});function KE(s,d,m){return new Sv(s,d,m)}var un=Jr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(s,d){s&&(s instanceof oe||E(s))?(this._latlng=le(s),v(this,d)):(v(this,s),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(s){return s=arguments.length?s:this._source._map,s.hasLayer(this)||s.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(s){return this._map?this.close():(arguments.length?this._source=s:s=this._source,this._prepareOpen(),this.openOn(s._map)),this},onAdd:function(s){this._zoomAnimated=s._zoomAnimated,this._container||this._initLayout(),s._fadeAnimated&&zr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&zr(this._container,1),this.bringToFront(),this.options.interactive&&(Be(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(zr(this._container,0),this._removeTimeout=setTimeout(o(Tt,void 0,this._container),200)):Tt(this._container),this.options.interactive&&(Nt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(s){return this._latlng=le(s),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(s){return this._content=s,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 s={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ma(this._container),this},bringToBack:function(){return this._map&&ga(this._container),this},_prepareOpen:function(s){var d=this._source;if(!d._map)return!1;if(d instanceof Dn){d=null;var m=this._source._layers;for(var x in m)if(m[x]._map){d=m[x];break}if(!d)return!1;this._source=d}if(!s)if(d.getCenter)s=d.getCenter();else if(d.getLatLng)s=d.getLatLng();else if(d.getBounds)s=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(s),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var s=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")s.innerHTML=d;else{for(;s.hasChildNodes();)s.removeChild(s.firstChild);s.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var s=this._map.latLngToLayerPoint(this._latlng),d=F(this.options.offset),m=this._getAnchor();this._zoomAnimated?Bt(this._container,s.add(m)):d=d.add(s).add(m);var x=this._containerBottom=-d.y,A=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=x+"px",this._container.style.left=A+"px"}},_getAnchor:function(){return[0,0]}});Ye.include({_initOverlay:function(s,d,m,x){var A=d;return A instanceof s||(A=new s(x).setContent(d)),m&&A.setLatLng(m),A}}),Jr.include({_initOverlay:function(s,d,m,x){var A=m;return A instanceof s?(v(A,x),A._source=this):(A=d&&!x?d:new s(x,this),A.setContent(m)),A}});var iu=un.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(s){return s=arguments.length?s:this._source._map,!s.hasLayer(this)&&s._popup&&s._popup.options.autoClose&&s.removeLayer(s._popup),s._popup=this,un.prototype.openOn.call(this,s)},onAdd:function(s){un.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ei||this._source.on("preclick",Ai))},onRemove:function(s){un.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ei||this._source.off("preclick",Ai))},getEvents:function(){var s=un.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(s.preclick=this.close),this.options.keepInView&&(s.moveend=this._adjustPan),s},_initLayout:function(){var s="leaflet-popup",d=this._container=qe("div",s+" "+(this.options.className||"")+" leaflet-zoom-animated"),m=this._wrapper=qe("div",s+"-content-wrapper",d);if(this._contentNode=qe("div",s+"-content",m),Wo(d),mh(this._contentNode),Fe(d,"contextmenu",Ai),this._tipContainer=qe("div",s+"-tip-container",d),this._tip=qe("div",s+"-tip",this._tipContainer),this.options.closeButton){var x=this._closeButton=qe("a",s+"-close-button",d);x.setAttribute("role","button"),x.setAttribute("aria-label","Close popup"),x.href="#close",x.innerHTML='<span aria-hidden="true">&#215;</span>',Fe(x,"click",function(A){er(A),this.close()},this)}},_updateLayout:function(){var s=this._contentNode,d=s.style;d.width="",d.whiteSpace="nowrap";var m=s.offsetWidth;m=Math.min(m,this.options.maxWidth),m=Math.max(m,this.options.minWidth),d.width=m+1+"px",d.whiteSpace="",d.height="";var x=s.offsetHeight,A=this.options.maxHeight,D="leaflet-popup-scrolled";A&&x>A?(d.height=A+"px",Be(s,D)):Nt(s,D),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var d=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),m=this._getAnchor();Bt(this._container,d.add(m))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,d=parseInt($o(this._container,"marginBottom"),10)||0,m=this._container.offsetHeight+d,x=this._containerWidth,A=new G(this._containerLeft,-m-this._containerBottom);A._add(Pi(this._container));var D=s.layerPointToContainerPoint(A),q=F(this.options.autoPanPadding),ee=F(this.options.autoPanPaddingTopLeft||q),ae=F(this.options.autoPanPaddingBottomRight||q),he=s.getSize(),be=0,Ae=0;D.x+x+ae.x>he.x&&(be=D.x+x-he.x+ae.x),D.x-be-ee.x<0&&(be=D.x-ee.x),D.y+m+ae.y>he.y&&(Ae=D.y+m-he.y+ae.y),D.y-Ae-ee.y<0&&(Ae=D.y-ee.y),(be||Ae)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([be,Ae]))}},_getAnchor:function(){return F(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),QE=function(s,d){return new iu(s,d)};Ye.mergeOptions({closePopupOnClick:!0}),Ye.include({openPopup:function(s,d,m){return this._initOverlay(iu,s,d,m).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Jr.include({bindPopup:function(s,d){return this._popup=this._initOverlay(iu,this._popup,s,d),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(s){return this._popup&&(this instanceof Dn||(this._popup._source=this),this._popup._prepareOpen(s||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(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){Ri(s);var d=s.layer||s.target;if(this._popup._source===d&&!(d instanceof ei)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=d,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var au=un.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){un.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){un.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=un.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",d=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=qe("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var d,m,x=this._map,A=this._container,D=x.latLngToContainerPoint(x.getCenter()),q=x.layerPointToContainerPoint(s),ee=this.options.direction,ae=A.offsetWidth,he=A.offsetHeight,be=F(this.options.offset),Ae=this._getAnchor();ee==="top"?(d=ae/2,m=he):ee==="bottom"?(d=ae/2,m=0):ee==="center"?(d=ae/2,m=he/2):ee==="right"?(d=0,m=he/2):ee==="left"?(d=ae,m=he/2):q.x<D.x?(ee="right",d=0,m=he/2):(ee="left",d=ae+(be.x+Ae.x)*2,m=he/2),s=s.subtract(F(d,m,!0)).add(be).add(Ae),Nt(A,"leaflet-tooltip-right"),Nt(A,"leaflet-tooltip-left"),Nt(A,"leaflet-tooltip-top"),Nt(A,"leaflet-tooltip-bottom"),Be(A,"leaflet-tooltip-"+ee),Bt(A,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&zr(this._container,s)},_animateZoom:function(s){var d=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center);this._setPosition(d)},_getAnchor:function(){return F(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),JE=function(s,d){return new au(s,d)};Ye.include({openTooltip:function(s,d,m){return this._initOverlay(au,s,d,m).openOn(this),this},closeTooltip:function(s){return s.close(),this}}),Jr.include({bindTooltip:function(s,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(au,this._tooltip,s,d),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(s){if(!(!s&&this._tooltipHandlersAdded)){var d=s?"off":"on",m={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?m.add=this._openTooltip:(m.mouseover=this._openTooltip,m.mouseout=this.closeTooltip,m.click=this._openTooltip,this._map?this._addFocusListeners():m.add=this._addFocusListeners),this._tooltip.options.sticky&&(m.mousemove=this._moveTooltip),this[d](m),this._tooltipHandlersAdded=!s}},openTooltip:function(s){return this._tooltip&&(this instanceof Dn||(this._tooltip._source=this),this._tooltip._prepareOpen(s)&&(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(s){return this._tooltip&&this._tooltip.setContent(s),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(s){var d=typeof s.getElement=="function"&&s.getElement();d&&(Fe(d,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),Fe(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(s){var d=typeof s.getElement=="function"&&s.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(s){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var d=this;this._map.once("moveend",function(){d._openOnceFlag=!1,d._openTooltip(s)});return}this._tooltip._source=s.layer||s.target,this.openTooltip(this._tooltip.options.sticky?s.latlng:void 0)}},_moveTooltip:function(s){var d=s.latlng,m,x;this._tooltip.options.sticky&&s.originalEvent&&(m=this._map.mouseEventToContainerPoint(s.originalEvent),x=this._map.containerPointToLayerPoint(m),d=this._map.layerPointToLatLng(x)),this._tooltip.setLatLng(d)}});var Ev=ya.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(s){var d=s&&s.tagName==="DIV"?s:document.createElement("div"),m=this.options;if(m.html instanceof Element?(Gl(d),d.appendChild(m.html)):d.innerHTML=m.html!==!1?m.html:"",m.bgPos){var x=F(m.bgPos);d.style.backgroundPosition=-x.x+"px "+-x.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function e3(s){return new Ev(s)}ya.Default=Vo;var Go=Jr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Se.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(s){v(this,s)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(s){s._addZoomLimit(this)},onRemove:function(s){this._removeAllTiles(),Tt(this._container),s._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ma(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ga(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(s){return this.options.opacity=s,this._updateOpacity(),this},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var s=this._clampZoom(this._map.getZoom());s!==this._tileZoom&&(this._tileZoom=s,this._updateLevels()),this._update()}return this},getEvents:function(){var s={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)),s.move=this._onMove),this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},createTile:function(){return document.createElement("div")},getTileSize:function(){var s=this.options.tileSize;return s instanceof G?s:new G(s,s)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(s){for(var d=this.getPane().children,m=-s(-1/0,1/0),x=0,A=d.length,D;x<A;x++)D=d[x].style.zIndex,d[x]!==this._container&&D&&(m=s(m,+D));isFinite(m)&&(this.options.zIndex=m+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Se.ielt9){zr(this._container,this.options.opacity);var s=+new Date,d=!1,m=!1;for(var x in this._tiles){var A=this._tiles[x];if(!(!A.current||!A.loaded)){var D=Math.min(1,(s-A.loaded)/200);zr(A.el,D),D<1?d=!0:(A.active?m=!0:this._onOpaqueTile(A),A.active=!0)}}m&&!this._noPrune&&this._pruneTiles(),d&&(R(this._fadeFrame),this._fadeFrame=K(this._updateOpacity,this))}},_onOpaqueTile:f,_initContainer:function(){this._container||(this._container=qe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var s=this._tileZoom,d=this.options.maxZoom;if(s!==void 0){for(var m in this._levels)m=Number(m),this._levels[m].el.children.length||m===s?(this._levels[m].el.style.zIndex=d-Math.abs(s-m),this._onUpdateLevel(m)):(Tt(this._levels[m].el),this._removeTilesAtZoom(m),this._onRemoveLevel(m),delete this._levels[m]);var x=this._levels[s],A=this._map;return x||(x=this._levels[s]={},x.el=qe("div","leaflet-tile-container leaflet-zoom-animated",this._container),x.el.style.zIndex=d,x.origin=A.project(A.unproject(A.getPixelOrigin()),s).round(),x.zoom=s,this._setZoomTransform(x,A.getCenter(),A.getZoom()),this._onCreateLevel(x)),this._level=x,x}},_onUpdateLevel:f,_onRemoveLevel:f,_onCreateLevel:f,_pruneTiles:function(){if(this._map){var s,d,m=this._map.getZoom();if(m>this.options.maxZoom||m<this.options.minZoom){this._removeAllTiles();return}for(s in this._tiles)d=this._tiles[s],d.retain=d.current;for(s in this._tiles)if(d=this._tiles[s],d.current&&!d.active){var x=d.coords;this._retainParent(x.x,x.y,x.z,x.z-5)||this._retainChildren(x.x,x.y,x.z,x.z+2)}for(s in this._tiles)this._tiles[s].retain||this._removeTile(s)}},_removeTilesAtZoom:function(s){for(var d in this._tiles)this._tiles[d].coords.z===s&&this._removeTile(d)},_removeAllTiles:function(){for(var s in this._tiles)this._removeTile(s)},_invalidateAll:function(){for(var s in this._levels)Tt(this._levels[s].el),this._onRemoveLevel(Number(s)),delete this._levels[s];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(s,d,m,x){var A=Math.floor(s/2),D=Math.floor(d/2),q=m-1,ee=new G(+A,+D);ee.z=+q;var ae=this._tileCoordsToKey(ee),he=this._tiles[ae];return he&&he.active?(he.retain=!0,!0):(he&&he.loaded&&(he.retain=!0),q>x?this._retainParent(A,D,q,x):!1)},_retainChildren:function(s,d,m,x){for(var A=2*s;A<2*s+2;A++)for(var D=2*d;D<2*d+2;D++){var q=new G(A,D);q.z=m+1;var ee=this._tileCoordsToKey(q),ae=this._tiles[ee];if(ae&&ae.active){ae.retain=!0;continue}else ae&&ae.loaded&&(ae.retain=!0);m+1<x&&this._retainChildren(A,D,m+1,x)}},_resetView:function(s){var d=s&&(s.pinch||s.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(s){this._setView(s.center,s.zoom,!0,s.noUpdate)},_clampZoom:function(s){var d=this.options;return d.minNativeZoom!==void 0&&s<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<s?d.maxNativeZoom:s},_setView:function(s,d,m,x){var A=Math.round(d);this.options.maxZoom!==void 0&&A>this.options.maxZoom||this.options.minZoom!==void 0&&A<this.options.minZoom?A=void 0:A=this._clampZoom(A);var D=this.options.updateWhenZooming&&A!==this._tileZoom;(!x||D)&&(this._tileZoom=A,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),A!==void 0&&this._update(s),m||this._pruneTiles(),this._noPrune=!!m),this._setZoomTransforms(s,d)},_setZoomTransforms:function(s,d){for(var m in this._levels)this._setZoomTransform(this._levels[m],s,d)},_setZoomTransform:function(s,d,m){var x=this._map.getZoomScale(m,s.zoom),A=s.origin.multiplyBy(x).subtract(this._map._getNewPixelOrigin(d,m)).round();Se.any3d?Ei(s.el,A,x):Bt(s.el,A)},_resetGrid:function(){var s=this._map,d=s.options.crs,m=this._tileSize=this.getTileSize(),x=this._tileZoom,A=this._map.getPixelWorldBounds(this._tileZoom);A&&(this._globalTileRange=this._pxBoundsToTileRange(A)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(s.project([0,d.wrapLng[0]],x).x/m.x),Math.ceil(s.project([0,d.wrapLng[1]],x).x/m.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(s.project([d.wrapLat[0],0],x).y/m.x),Math.ceil(s.project([d.wrapLat[1],0],x).y/m.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(s){var d=this._map,m=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),x=d.getZoomScale(m,this._tileZoom),A=d.project(s,this._tileZoom).floor(),D=d.getSize().divideBy(x*2);return new Y(A.subtract(D),A.add(D))},_update:function(s){var d=this._map;if(d){var m=this._clampZoom(d.getZoom());if(s===void 0&&(s=d.getCenter()),this._tileZoom!==void 0){var x=this._getTiledPixelBounds(s),A=this._pxBoundsToTileRange(x),D=A.getCenter(),q=[],ee=this.options.keepBuffer,ae=new Y(A.getBottomLeft().subtract([ee,-ee]),A.getTopRight().add([ee,-ee]));if(!(isFinite(A.min.x)&&isFinite(A.min.y)&&isFinite(A.max.x)&&isFinite(A.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var he in this._tiles){var be=this._tiles[he].coords;(be.z!==this._tileZoom||!ae.contains(new G(be.x,be.y)))&&(this._tiles[he].current=!1)}if(Math.abs(m-this._tileZoom)>1){this._setView(s,m);return}for(var Ae=A.min.y;Ae<=A.max.y;Ae++)for(var He=A.min.x;He<=A.max.x;He++){var sr=new G(He,Ae);if(sr.z=this._tileZoom,!!this._isValidTile(sr)){var Yt=this._tiles[this._tileCoordsToKey(sr)];Yt?Yt.current=!0:q.push(sr)}}if(q.sort(function(br,xa){return br.distanceTo(D)-xa.distanceTo(D)}),q.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Wr=document.createDocumentFragment();for(He=0;He<q.length;He++)this._addTile(q[He],Wr);this._level.el.appendChild(Wr)}}}},_isValidTile:function(s){var d=this._map.options.crs;if(!d.infinite){var m=this._globalTileRange;if(!d.wrapLng&&(s.x<m.min.x||s.x>m.max.x)||!d.wrapLat&&(s.y<m.min.y||s.y>m.max.y))return!1}if(!this.options.bounds)return!0;var x=this._tileCoordsToBounds(s);return te(this.options.bounds).overlaps(x)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var d=this._map,m=this.getTileSize(),x=s.scaleBy(m),A=x.add(m),D=d.unproject(x,s.z),q=d.unproject(A,s.z);return[D,q]},_tileCoordsToBounds:function(s){var d=this._tileCoordsToNwSe(s),m=new ie(d[0],d[1]);return this.options.noWrap||(m=this._map.wrapLatLngBounds(m)),m},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var d=s.split(":"),m=new G(+d[0],+d[1]);return m.z=+d[2],m},_removeTile:function(s){var d=this._tiles[s];d&&(Tt(d.el),delete this._tiles[s],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){Be(s,"leaflet-tile");var d=this.getTileSize();s.style.width=d.x+"px",s.style.height=d.y+"px",s.onselectstart=f,s.onmousemove=f,Se.ielt9&&this.options.opacity<1&&zr(s,this.options.opacity)},_addTile:function(s,d){var m=this._getTilePos(s),x=this._tileCoordsToKey(s),A=this.createTile(this._wrapCoords(s),o(this._tileReady,this,s));this._initTile(A),this.createTile.length<2&&K(o(this._tileReady,this,s,null,A)),Bt(A,m),this._tiles[x]={el:A,coords:s,current:!0},d.appendChild(A),this.fire("tileloadstart",{tile:A,coords:s})},_tileReady:function(s,d,m){d&&this.fire("tileerror",{error:d,tile:m,coords:s});var x=this._tileCoordsToKey(s);m=this._tiles[x],m&&(m.loaded=+new Date,this._map._fadeAnimated?(zr(m.el,0),R(this._fadeFrame),this._fadeFrame=K(this._updateOpacity,this)):(m.active=!0,this._pruneTiles()),d||(Be(m.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:m.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Se.ielt9||!this._map._fadeAnimated?K(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var d=new G(this._wrapX?h(s.x,this._wrapX):s.x,this._wrapY?h(s.y,this._wrapY):s.y);return d.z=s.z,d},_pxBoundsToTileRange:function(s){var d=this.getTileSize();return new Y(s.min.unscaleBy(d).floor(),s.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function t3(s){return new Go(s)}var wa=Go.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,d){this._url=s,d=v(this,d),d.detectRetina&&Se.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,d){return this._url===s&&d===void 0&&(d=!0),this._url=s,d||this.redraw(),this},createTile:function(s,d){var m=document.createElement("img");return Fe(m,"load",o(this._tileOnLoad,this,d,m)),Fe(m,"error",o(this._tileOnError,this,d,m)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(m.referrerPolicy=this.options.referrerPolicy),m.alt="",m.src=this.getTileUrl(s),m},getTileUrl:function(s){var d={r:Se.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var m=this._globalTileRange.max.y-s.y;this.options.tms&&(d.y=m),d["-y"]=m}return T(this._url,i(d,this.options))},_tileOnLoad:function(s,d){Se.ielt9?setTimeout(o(s,this,null,d),0):s(null,d)},_tileOnError:function(s,d,m){var x=this.options.errorTileUrl;x&&d.getAttribute("src")!==x&&(d.src=x),s(m,d)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,d=this.options.maxZoom,m=this.options.zoomReverse,x=this.options.zoomOffset;return m&&(s=d-s),s+x},_getSubdomain:function(s){var d=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var s,d;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(d=this._tiles[s].el,d.onload=f,d.onerror=f,!d.complete)){d.src=P;var m=this._tiles[s].coords;Tt(d),delete this._tiles[s],this.fire("tileabort",{tile:d,coords:m})}},_removeTile:function(s){var d=this._tiles[s];if(d)return d.el.setAttribute("src",P),Go.prototype._removeTile.call(this,s)},_tileReady:function(s,d,m){if(!(!this._map||m&&m.getAttribute("src")===P))return Go.prototype._tileReady.call(this,s,d,m)}});function Pv(s,d){return new wa(s,d)}var Av=wa.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,d){this._url=s;var m=i({},this.defaultWmsParams);for(var x in d)x in this.options||(m[x]=d[x]);d=v(this,d);var A=d.detectRetina&&Se.retina?2:1,D=this.getTileSize();m.width=D.x*A,m.height=D.y*A,this.wmsParams=m},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,wa.prototype.onAdd.call(this,s)},getTileUrl:function(s){var d=this._tileCoordsToNwSe(s),m=this._crs,x=ne(m.project(d[0]),m.project(d[1])),A=x.min,D=x.max,q=(this._wmsVersion>=1.3&&this._crs===wv?[A.y,A.x,D.y,D.x]:[A.x,A.y,D.x,D.y]).join(","),ee=wa.prototype.getTileUrl.call(this,s);return ee+w(this.wmsParams,ee,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+q},setParams:function(s,d){return i(this.wmsParams,s),d||this.redraw(),this}});function r3(s,d){return new Av(s,d)}wa.WMS=Av,Pv.wms=r3;var In=Jr.extend({options:{padding:.1},initialize:function(s){v(this,s),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Be(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 s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,d){var m=this._map.getZoomScale(d,this._zoom),x=this._map.getSize().multiplyBy(.5+this.options.padding),A=this._map.project(this._center,d),D=x.multiplyBy(-m).add(A).subtract(this._map._getNewPixelOrigin(s,d));Se.any3d?Ei(this._container,D,m):Bt(this._container,D)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,d=this._map.getSize(),m=this._map.containerPointToLayerPoint(d.multiplyBy(-s)).round();this._bounds=new Y(m,m.add(d.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Rv=In.extend({options:{tolerance:0},getEvents:function(){var s=In.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){In.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Fe(s,"mousemove",this._onMouseMove,this),Fe(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Fe(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){R(this._redrawRequest),delete this._ctx,Tt(this._container),ct(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var d in this._layers)s=this._layers[d],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){In.prototype._update.call(this);var s=this._bounds,d=this._container,m=s.getSize(),x=Se.retina?2:1;Bt(d,s.min),d.width=x*m.x,d.height=x*m.y,d.style.width=m.x+"px",d.style.height=m.y+"px",Se.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){In.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[u(s)]=s;var d=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var d=s._order,m=d.next,x=d.prev;m?m.prev=x:this._drawLast=x,x?x.next=m:this._drawFirst=m,delete s._order,delete this._layers[u(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var d=s.options.dashArray.split(/[, ]+/),m=[],x,A;for(A=0;A<d.length;A++){if(x=Number(d[A]),isNaN(x))return;m.push(x)}s.options._dashArray=m}else s.options._dashArray=s.options.dashArray},_requestRedraw:function(s){this._map&&(this._extendRedrawBounds(s),this._redrawRequest=this._redrawRequest||K(this._redraw,this))},_extendRedrawBounds:function(s){if(s._pxBounds){var d=(s.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Y,this._redrawBounds.extend(s._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(s._pxBounds.max.add([d,d]))}},_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 s=this._redrawBounds;if(s){var d=s.getSize();this._ctx.clearRect(s.min.x,s.min.y,d.x,d.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 s,d=this._redrawBounds;if(this._ctx.save(),d){var m=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,m.x,m.y),this._ctx.clip()}this._drawing=!0;for(var x=this._drawFirst;x;x=x.next)s=x.layer,(!d||s._pxBounds&&s._pxBounds.intersects(d))&&s._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(s,d){if(this._drawing){var m,x,A,D,q=s._parts,ee=q.length,ae=this._ctx;if(ee){for(ae.beginPath(),m=0;m<ee;m++){for(x=0,A=q[m].length;x<A;x++)D=q[m][x],ae[x?"lineTo":"moveTo"](D.x,D.y);d&&ae.closePath()}this._fillStroke(ae,s)}}},_updateCircle:function(s){if(!(!this._drawing||s._empty())){var d=s._point,m=this._ctx,x=Math.max(Math.round(s._radius),1),A=(Math.max(Math.round(s._radiusY),1)||x)/x;A!==1&&(m.save(),m.scale(1,A)),m.beginPath(),m.arc(d.x,d.y/A,x,0,Math.PI*2,!1),A!==1&&m.restore(),this._fillStroke(m,s)}},_fillStroke:function(s,d){var m=d.options;m.fill&&(s.globalAlpha=m.fillOpacity,s.fillStyle=m.fillColor||m.color,s.fill(m.fillRule||"evenodd")),m.stroke&&m.weight!==0&&(s.setLineDash&&s.setLineDash(d.options&&d.options._dashArray||[]),s.globalAlpha=m.opacity,s.lineWidth=m.weight,s.strokeStyle=m.color,s.lineCap=m.lineCap,s.lineJoin=m.lineJoin,s.stroke())},_onClick:function(s){for(var d=this._map.mouseEventToLayerPoint(s),m,x,A=this._drawFirst;A;A=A.next)m=A.layer,m.options.interactive&&m._containsPoint(d)&&(!(s.type==="click"||s.type==="preclick")||!this._map._draggableMoved(m))&&(x=m);this._fireEvent(x?[x]:!1,s)},_onMouseMove:function(s){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(s);this._handleMouseHover(s,d)}},_handleMouseOut:function(s){var d=this._hoveredLayer;d&&(Nt(this._container,"leaflet-interactive"),this._fireEvent([d],s,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(s,d){if(!this._mouseHoverThrottled){for(var m,x,A=this._drawFirst;A;A=A.next)m=A.layer,m.options.interactive&&m._containsPoint(d)&&(x=m);x!==this._hoveredLayer&&(this._handleMouseOut(s),x&&(Be(this._container,"leaflet-interactive"),this._fireEvent([x],s,"mouseover"),this._hoveredLayer=x)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,s),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(s,d,m){this._map._fireDOMEvent(d,m||d.type,s)},_bringToFront:function(s){var d=s._order;if(d){var m=d.next,x=d.prev;if(m)m.prev=x;else return;x?x.next=m:m&&(this._drawFirst=m),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(s)}},_bringToBack:function(s){var d=s._order;if(d){var m=d.next,x=d.prev;if(x)x.next=m;else return;m?m.prev=x:x&&(this._drawLast=x),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(s)}}});function Ov(s){return Se.canvas?new Rv(s):null}var Uo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(s){return document.createElement("<lvml:"+s+' class="lvml">')}}catch(s){}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),n3={_initContainer:function(){this._container=qe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(In.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var d=s._container=Uo("shape");Be(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",s._path=Uo("path"),d.appendChild(s._path),this._updateStyle(s),this._layers[u(s)]=s},_addPath:function(s){var d=s._container;this._container.appendChild(d),s.options.interactive&&s.addInteractiveTarget(d)},_removePath:function(s){var d=s._container;Tt(d),s.removeInteractiveTarget(d),delete this._layers[u(s)]},_updateStyle:function(s){var d=s._stroke,m=s._fill,x=s.options,A=s._container;A.stroked=!!x.stroke,A.filled=!!x.fill,x.stroke?(d||(d=s._stroke=Uo("stroke")),A.appendChild(d),d.weight=x.weight+"px",d.color=x.color,d.opacity=x.opacity,x.dashArray?d.dashStyle=E(x.dashArray)?x.dashArray.join(" "):x.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=x.lineCap.replace("butt","flat"),d.joinstyle=x.lineJoin):d&&(A.removeChild(d),s._stroke=null),x.fill?(m||(m=s._fill=Uo("fill")),A.appendChild(m),m.color=x.fillColor||x.color,m.opacity=x.fillOpacity):m&&(A.removeChild(m),s._fill=null)},_updateCircle:function(s){var d=s._point.round(),m=Math.round(s._radius),x=Math.round(s._radiusY||m);this._setPath(s,s._empty()?"M0 0":"AL "+d.x+","+d.y+" "+m+","+x+" 0,"+65535*360)},_setPath:function(s,d){s._path.v=d},_bringToFront:function(s){ma(s._container)},_bringToBack:function(s){ga(s._container)}},ou=Se.vml?Uo:ke,Yo=In.extend({_initContainer:function(){this._container=ou("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ou("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Tt(this._container),ct(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){In.prototype._update.call(this);var s=this._bounds,d=s.getSize(),m=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,m.setAttribute("width",d.x),m.setAttribute("height",d.y)),Bt(m,s.min),m.setAttribute("viewBox",[s.min.x,s.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(s){var d=s._path=ou("path");s.options.className&&Be(d,s.options.className),s.options.interactive&&Be(d,"leaflet-interactive"),this._updateStyle(s),this._layers[u(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){Tt(s._path),s.removeInteractiveTarget(s._path),delete this._layers[u(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var d=s._path,m=s.options;d&&(m.stroke?(d.setAttribute("stroke",m.color),d.setAttribute("stroke-opacity",m.opacity),d.setAttribute("stroke-width",m.weight),d.setAttribute("stroke-linecap",m.lineCap),d.setAttribute("stroke-linejoin",m.lineJoin),m.dashArray?d.setAttribute("stroke-dasharray",m.dashArray):d.removeAttribute("stroke-dasharray"),m.dashOffset?d.setAttribute("stroke-dashoffset",m.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),m.fill?(d.setAttribute("fill",m.fillColor||m.color),d.setAttribute("fill-opacity",m.fillOpacity),d.setAttribute("fill-rule",m.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(s,d){this._setPath(s,$e(s._parts,d))},_updateCircle:function(s){var d=s._point,m=Math.max(Math.round(s._radius),1),x=Math.max(Math.round(s._radiusY),1)||m,A="a"+m+","+x+" 0 1,0 ",D=s._empty()?"M0 0":"M"+(d.x-m)+","+d.y+A+m*2+",0 "+A+-m*2+",0 ";this._setPath(s,D)},_setPath:function(s,d){s._path.setAttribute("d",d)},_bringToFront:function(s){ma(s._path)},_bringToBack:function(s){ga(s._path)}});Se.vml&&Yo.include(n3);function kv(s){return Se.svg||Se.vml?new Yo(s):null}Ye.include({getRenderer:function(s){var d=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var d=this._paneRenderers[s];return d===void 0&&(d=this._createRenderer({pane:s}),this._paneRenderers[s]=d),d},_createRenderer:function(s){return this.options.preferCanvas&&Ov(s)||kv(s)}});var Dv=ba.extend({initialize:function(s,d){ba.prototype.initialize.call(this,this._boundsToLatLngs(s),d)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=te(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function i3(s,d){return new Dv(s,d)}Yo.create=ou,Yo.pointsToPath=$e,Ln.geometryToLayer=Jl,Ln.coordsToLatLng=Th,Ln.coordsToLatLngs=eu,Ln.latLngToCoords=Mh,Ln.latLngsToCoords=tu,Ln.getFeature=_a,Ln.asFeature=ru,Ye.mergeOptions({boxZoom:!0});var Nv=ln.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ct(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Tt(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(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Fo(),sh(),this._startPoint=this._map.mouseEventToContainerPoint(s),Fe(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=qe("div","leaflet-zoom-box",this._container),Be(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var d=new Y(this._point,this._startPoint),m=d.getSize();Bt(this._box,d.min),this._box.style.width=m.x+"px",this._box.style.height=m.y+"px"},_finish:function(){this._moved&&(Tt(this._box),Nt(this._container,"leaflet-crosshair")),zo(),lh(),ct(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var d=new ie(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ye.addInitHook("addHandler","boxZoom",Nv),Ye.mergeOptions({doubleClickZoom:!0});var Lv=ln.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var d=this._map,m=d.getZoom(),x=d.options.zoomDelta,A=s.originalEvent.shiftKey?m-x:m+x;d.options.doubleClickZoom==="center"?d.setZoom(A):d.setZoomAround(s.containerPoint,A)}});Ye.addInitHook("addHandler","doubleClickZoom",Lv),Ye.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Iv=ln.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new Jn(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}Be(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Nt(this._map._container,"leaflet-grab"),Nt(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 s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=te(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var d=this._lastTime=+new Date,m=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(m),this._times.push(d),this._prunePositions(d)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,d){return s-(s-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;s.x<d.min.x&&(s.x=this._viscousLimit(s.x,d.min.x)),s.y<d.min.y&&(s.y=this._viscousLimit(s.y,d.min.y)),s.x>d.max.x&&(s.x=this._viscousLimit(s.x,d.max.x)),s.y>d.max.y&&(s.y=this._viscousLimit(s.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,d=Math.round(s/2),m=this._initialWorldOffset,x=this._draggable._newPos.x,A=(x-d+m)%s+d-m,D=(x+d+m)%s-d-m,q=Math.abs(A+m)<Math.abs(D+m)?A:D;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=q},_onDragEnd:function(s){var d=this._map,m=d.options,x=!m.inertia||s.noInertia||this._times.length<2;if(d.fire("dragend",s),x)d.fire("moveend");else{this._prunePositions(+new Date);var A=this._lastPos.subtract(this._positions[0]),D=(this._lastTime-this._times[0])/1e3,q=m.easeLinearity,ee=A.multiplyBy(q/D),ae=ee.distanceTo([0,0]),he=Math.min(m.inertiaMaxSpeed,ae),be=ee.multiplyBy(he/ae),Ae=he/(m.inertiaDeceleration*q),He=be.multiplyBy(-Ae/2).round();!He.x&&!He.y?d.fire("moveend"):(He=d._limitOffset(He,d.options.maxBounds),K(function(){d.panBy(He,{duration:Ae,easeLinearity:q,noMoveStart:!0,animate:!0})}))}}});Ye.addInitHook("addHandler","dragging",Iv),Ye.mergeOptions({keyboard:!0,keyboardPanDelta:80});var $v=ln.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(s){this._map=s,this._setPanDelta(s.options.keyboardPanDelta),this._setZoomDelta(s.options.zoomDelta)},addHooks:function(){var s=this._map._container;s.tabIndex<=0&&(s.tabIndex="0"),Fe(s,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),ct(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 s=document.body,d=document.documentElement,m=s.scrollTop||d.scrollTop,x=s.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(x,m)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(s){var d=this._panKeys={},m=this.keyCodes,x,A;for(x=0,A=m.left.length;x<A;x++)d[m.left[x]]=[-1*s,0];for(x=0,A=m.right.length;x<A;x++)d[m.right[x]]=[s,0];for(x=0,A=m.down.length;x<A;x++)d[m.down[x]]=[0,s];for(x=0,A=m.up.length;x<A;x++)d[m.up[x]]=[0,-1*s]},_setZoomDelta:function(s){var d=this._zoomKeys={},m=this.keyCodes,x,A;for(x=0,A=m.zoomIn.length;x<A;x++)d[m.zoomIn[x]]=s;for(x=0,A=m.zoomOut.length;x<A;x++)d[m.zoomOut[x]]=-s},_addHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ct(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(s){if(!(s.altKey||s.ctrlKey||s.metaKey)){var d=s.keyCode,m=this._map,x;if(d in this._panKeys){if(!m._panAnim||!m._panAnim._inProgress)if(x=this._panKeys[d],s.shiftKey&&(x=F(x).multiplyBy(3)),m.options.maxBounds&&(x=m._limitOffset(F(x),m.options.maxBounds)),m.options.worldCopyJump){var A=m.wrapLatLng(m.unproject(m.project(m.getCenter()).add(x)));m.panTo(A)}else m.panBy(x)}else if(d in this._zoomKeys)m.setZoom(m.getZoom()+(s.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&m._popup&&m._popup.options.closeOnEscapeKey)m.closePopup();else return;Ri(s)}}});Ye.addInitHook("addHandler","keyboard",$v),Ye.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Fv=ln.extend({addHooks:function(){Fe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ct(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var d=lv(s),m=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(s),this._startTime||(this._startTime=+new Date);var x=Math.max(m-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),x),Ri(s)},_performZoom:function(){var s=this._map,d=s.getZoom(),m=this._map.options.zoomSnap||0;s._stop();var x=this._delta/(this._map.options.wheelPxPerZoomLevel*4),A=4*Math.log(2/(1+Math.exp(-Math.abs(x))))/Math.LN2,D=m?Math.ceil(A/m)*m:A,q=s._limitZoom(d+(this._delta>0?D:-D))-d;this._delta=0,this._startTime=null,q&&(s.options.scrollWheelZoom==="center"?s.setZoom(d+q):s.setZoomAround(this._lastMousePos,d+q))}});Ye.addInitHook("addHandler","scrollWheelZoom",Fv);var a3=600;Ye.mergeOptions({tapHold:Se.touchNative&&Se.safari&&Se.mobile,tapTolerance:15});var zv=ln.extend({addHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ct(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var d=s.touches[0];this._startPos=this._newPos=new G(d.clientX,d.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(Fe(document,"touchend",er),Fe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),a3),Fe(document,"touchend touchcancel contextmenu",this._cancel,this),Fe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){ct(document,"touchend",er),ct(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),ct(document,"touchend touchcancel contextmenu",this._cancel,this),ct(document,"touchmove",this._onMove,this)},_onMove:function(s){var d=s.touches[0];this._newPos=new G(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,d){var m=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});m._simulated=!0,d.target.dispatchEvent(m)}});Ye.addInitHook("addHandler","tapHold",zv),Ye.mergeOptions({touchZoom:Se.touch,bounceAtZoomLimits:!0});var Bv=ln.extend({addHooks:function(){Be(this._map._container,"leaflet-touch-zoom"),Fe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Nt(this._map._container,"leaflet-touch-zoom"),ct(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var d=this._map;if(!(!s.touches||s.touches.length!==2||d._animatingZoom||this._zooming)){var m=d.mouseEventToContainerPoint(s.touches[0]),x=d.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(m.add(x)._divideBy(2))),this._startDist=m.distanceTo(x),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Fe(document,"touchmove",this._onTouchMove,this),Fe(document,"touchend touchcancel",this._onTouchEnd,this),er(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var d=this._map,m=d.mouseEventToContainerPoint(s.touches[0]),x=d.mouseEventToContainerPoint(s.touches[1]),A=m.distanceTo(x)/this._startDist;if(this._zoom=d.getScaleZoom(A,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&A<1||this._zoom>d.getMaxZoom()&&A>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,A===1)return}else{var D=m._add(x)._divideBy(2)._subtract(this._centerPoint);if(A===1&&D.x===0&&D.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(D),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),R(this._animRequest);var q=o(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=K(q,this,!0),er(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,R(this._animRequest),ct(document,"touchmove",this._onTouchMove,this),ct(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))}});Ye.addInitHook("addHandler","touchZoom",Bv),Ye.BoxZoom=Nv,Ye.DoubleClickZoom=Lv,Ye.Drag=Iv,Ye.Keyboard=$v,Ye.ScrollWheelZoom=Fv,Ye.TapHold=zv,Ye.TouchZoom=Bv,r.Bounds=Y,r.Browser=Se,r.CRS=de,r.Canvas=Rv,r.Circle=Ch,r.CircleMarker=Ql,r.Class=X,r.Control=Qr,r.DivIcon=Ev,r.DivOverlay=un,r.DomEvent=CE,r.DomUtil=wE,r.Draggable=Jn,r.Evented=W,r.FeatureGroup=Dn,r.GeoJSON=Ln,r.GridLayer=Go,r.Handler=ln,r.Icon=ya,r.ImageOverlay=nu,r.LatLng=oe,r.LatLngBounds=ie,r.Layer=Jr,r.LayerGroup=va,r.LineUtil=IE,r.Map=Ye,r.Marker=Kl,r.Mixin=RE,r.Path=ei,r.Point=G,r.PolyUtil=OE,r.Polygon=ba,r.Polyline=Nn,r.Popup=iu,r.PosAnimation=uv,r.Projection=$E,r.Rectangle=Dv,r.Renderer=In,r.SVG=Yo,r.SVGOverlay=Sv,r.TileLayer=wa,r.Tooltip=au,r.Transformation=ye,r.Util=I,r.VideoOverlay=Mv,r.bind=o,r.bounds=ne,r.canvas=Ov,r.circle=GE,r.circleMarker=VE,r.control=Ho,r.divIcon=e3,r.extend=i,r.featureGroup=WE,r.geoJSON=Tv,r.geoJson=qE,r.gridLayer=t3,r.icon=HE,r.imageOverlay=XE,r.latLng=le,r.latLngBounds=te,r.layerGroup=BE,r.map=TE,r.marker=jE,r.point=F,r.polygon=YE,r.polyline=UE,r.popup=QE,r.rectangle=i3,r.setOptions=v,r.stamp=u,r.svg=kv,r.svgOverlay=KE,r.tileLayer=Pv,r.tooltip=JE,r.transformation=J,r.version=n,r.videoOverlay=ZE;var o3=window.L;r.noConflict=function(){return window.L=o3,this},window.L=r})})(jf,jf.exports);var kw=jf.exports;const Wn=y.getDefaultExportFromCjs(kw);var Dw={exports:{}};function RD(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 Yi=1,qi=2,Za=3,OD=4,Vf=5,Yy=6378137,kD=6356752314e-3,qy=.0066943799901413165,Cs=484813681109536e-20,pe=Math.PI/2,DD=.16666666666666666,ND=.04722222222222222,LD=.022156084656084655,ge=1e-10,rr=.017453292519943295,yn=57.29577951308232,Qe=Math.PI/4,Ws=Math.PI*2,Lt=3.14159265359,Mr={};Mr.greenwich=0;Mr.lisbon=-9.131906111111;Mr.paris=2.337229166667;Mr.bogota=-74.080916666667;Mr.madrid=-3.687938888889;Mr.rome=12.452333333333;Mr.bern=7.439583333333;Mr.jakarta=106.807719444444;Mr.ferro=-17.666666666667;Mr.brussels=4.367975;Mr.stockholm=18.058277777778;Mr.athens=23.7163375;Mr.oslo=10.722916666667;const ID={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var Xy=/[\s_\-\/\(\)]/g;function gi(e,t){if(e[t])return e[t];for(var r=Object.keys(e),n=t.toLowerCase().replace(Xy,""),i=-1,a,o;++i<r.length;)if(a=r[i],o=a.toLowerCase().replace(Xy,""),o===n)return e[a]}function Gf(e){var t={},r=e.split("+").map(function(l){return l.trim()}).filter(function(l){return l}).reduce(function(l,u){var c=u.split("=");return c.push(!0),l[c[0].toLowerCase()]=c[1],l},{}),n,i,a,o={proj:"projName",datum:"datumCode",rf:function(l){t.rf=parseFloat(l)},lat_0:function(l){t.lat0=l*rr},lat_1:function(l){t.lat1=l*rr},lat_2:function(l){t.lat2=l*rr},lat_ts:function(l){t.lat_ts=l*rr},lon_0:function(l){t.long0=l*rr},lon_1:function(l){t.long1=l*rr},lon_2:function(l){t.long2=l*rr},alpha:function(l){t.alpha=parseFloat(l)*rr},gamma:function(l){t.rectified_grid_angle=parseFloat(l)},lonc:function(l){t.longc=l*rr},x_0:function(l){t.x0=parseFloat(l)},y_0:function(l){t.y0=parseFloat(l)},k_0:function(l){t.k0=parseFloat(l)},k:function(l){t.k0=parseFloat(l)},a:function(l){t.a=parseFloat(l)},b:function(l){t.b=parseFloat(l)},r:function(l){t.a=t.b=parseFloat(l)},r_a:function(){t.R_A=!0},zone:function(l){t.zone=parseInt(l,10)},south:function(){t.utmSouth=!0},towgs84:function(l){t.datum_params=l.split(",").map(function(u){return parseFloat(u)})},to_meter:function(l){t.to_meter=parseFloat(l)},units:function(l){t.units=l;var u=gi(ID,l);u&&(t.to_meter=u.to_meter)},from_greenwich:function(l){t.from_greenwich=l*rr},pm:function(l){var u=gi(Mr,l);t.from_greenwich=(u||parseFloat(l))*rr},nadgrids:function(l){l==="@null"?t.datumCode="none":t.nadgrids=l},axis:function(l){var u="ewnsud";l.length===3&&u.indexOf(l.substr(0,1))!==-1&&u.indexOf(l.substr(1,1))!==-1&&u.indexOf(l.substr(2,1))!==-1&&(t.axis=l)},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 Hs=1,Nw=2,Lw=3,uc=4,Iw=5,T0=-1,$D=/\s/,FD=/[A-Za-z]/,zD=/[A-Za-z84_]/,ad=/[,\]]/,$w=/[\d\.E\-\+]/;function Xn(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=Hs}Xn.prototype.readCharicter=function(){var e=this.text[this.place++];if(this.state!==uc)for(;$D.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case Hs:return this.neutral(e);case Nw:return this.keyword(e);case uc:return this.quoted(e);case Iw:return this.afterquote(e);case Lw:return this.number(e);case T0:return}};Xn.prototype.afterquote=function(e){if(e==='"'){this.word+='"',this.state=uc;return}if(ad.test(e)){this.word=this.word.trim(),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in afterquote yet, index '+this.place)};Xn.prototype.afterItem=function(e){if(e===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Hs;return}if(e==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Hs,this.currentObject=this.stack.pop(),this.currentObject||(this.state=T0);return}};Xn.prototype.number=function(e){if($w.test(e)){this.word+=e;return}if(ad.test(e)){this.word=parseFloat(this.word),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in number yet, index '+this.place)};Xn.prototype.quoted=function(e){if(e==='"'){this.state=Iw;return}this.word+=e};Xn.prototype.keyword=function(e){if(zD.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=Hs;return}if(ad.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in keyword yet, index '+this.place)};Xn.prototype.neutral=function(e){if(FD.test(e)){this.word=e,this.state=Nw;return}if(e==='"'){this.word="",this.state=uc;return}if($w.test(e)){this.word=e,this.state=Lw;return}if(ad.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in neutral yet, index '+this.place)};Xn.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===T0)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function BD(e){var t=new Xn(e);return t.output()}function Zy(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(a,o){return Ha(o,a),a},n);t&&(e[t]=i)}function Ha(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]={},Ha(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&&Ha(e[2],t[r]);return;case"SPHEROID":case"ELLIPSOID":t[r]={name:e[0],a:e[1],rf:e[2]},e.length===4&&Ha(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]],Zy(t,r,e);return;default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return Ha(e,t[r]);return Zy(t,r,e)}}var WD=.017453292519943295;function HD(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 hn(e){return e*WD}function jD(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 h=e.to_meter||1;return c*h}var l=function(c){return HD(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",hn],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",hn],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",hn],["lat0","latitude_of_origin",hn],["lat0","standard_parallel_1",hn],["lat1","standard_parallel_1",hn],["lat2","standard_parallel_2",hn],["azimuth","Azimuth"],["alpha","azimuth",hn],["srsCode","name"]];u.forEach(l),!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=hn(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=hn(e.lat0>0?90:-90))}function Fw(e){var t=BD(e),r=t.shift(),n=t.shift();t.unshift(["name",n]),t.unshift(["type",r]);var i={};return Ha(t,i),jD(i),i}function dr(e){var t=this;if(arguments.length===2){var r=arguments[1];typeof r=="string"?r.charAt(0)==="+"?dr[e]=Gf(arguments[1]):dr[e]=Fw(arguments[1]):dr[e]=r}else if(arguments.length===1){if(Array.isArray(e))return e.map(function(n){Array.isArray(n)?dr.apply(t,n):dr(n)});if(typeof e=="string"){if(e in dr)return dr[e]}else"EPSG"in e?dr["EPSG:"+e.EPSG]=e:"ESRI"in e?dr["ESRI:"+e.ESRI]=e:"IAU2000"in e?dr["IAU2000:"+e.IAU2000]=e:console.log(e);return}}RD(dr);function VD(e){return typeof e=="string"}function GD(e){return e in dr}var UD=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function YD(e){return UD.some(function(t){return e.indexOf(t)>-1})}var qD=["3857","900913","3785","102113"];function XD(e){var t=gi(e,"authority");if(t){var r=gi(t,"epsg");return r&&qD.indexOf(r)>-1}}function ZD(e){var t=gi(e,"extension");if(t)return gi(t,"proj4")}function KD(e){return e[0]==="+"}function QD(e){if(VD(e)){if(GD(e))return dr[e];if(YD(e)){var t=Fw(e);if(XD(t))return dr["EPSG:3857"];var r=ZD(t);return r?Gf(r):t}if(KD(e))return Gf(e)}else return e}function Ky(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 Tn(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)}function hl(e){return e<0?-1:1}function _e(e){return Math.abs(e)<=Lt?e:e-hl(e)*Ws}function en(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(pe-t))/n}function js(e,t){for(var r=.5*e,n,i,a=pe-2*Math.atan(t),o=0;o<=15;o++)if(n=e*Math.sin(a),i=pe-2*Math.atan(t*Math.pow((1-n)/(1+n),r))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function JD(){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=Tn(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function eN(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)-pe)<=ge)return null;if(this.sphere)n=this.x0+this.a*this.k0*_e(t-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(Qe+.5*r));else{var a=Math.sin(r),o=en(this.e,r,a);n=this.x0+this.a*this.k0*_e(t-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return e.x=n,e.y=i,e}function tN(e){var t=e.x-this.x0,r=e.y-this.y0,n,i;if(this.sphere)i=pe-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var a=Math.exp(-r/(this.a*this.k0));if(i=js(this.e,a),i===-9999)return null}return n=_e(this.long0+t/(this.a*this.k0)),e.x=n,e.y=i,e}var rN=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const nN={init:JD,forward:eN,inverse:tN,names:rN};function iN(){}function Qy(e){return e}var aN=["longlat","identity"];const oN={init:iN,forward:Qy,inverse:Qy,names:aN};var sN=[nN,oN],$u={},cc=[];function zw(e,t){var r=cc.length;return e.names?(cc[r]=e,e.names.forEach(function(n){$u[n.toLowerCase()]=r}),this):(console.log(t),!0)}function lN(e){if(!e)return!1;var t=e.toLowerCase();if(typeof $u[t]!="undefined"&&cc[$u[t]])return cc[$u[t]]}function uN(){sN.forEach(zw)}const cN={start:uN,add:zw,get:lN};var Ne={};Ne.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Ne.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Ne.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Ne.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Ne.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Ne.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Ne.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Ne.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Ne.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Ne.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Ne.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Ne.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Ne.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Ne.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Ne.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Ne.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};Ne.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Ne.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Ne.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Ne.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Ne.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Ne.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Ne.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Ne.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Ne.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Ne.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Ne.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Ne.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Ne.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Ne.hough={a:6378270,rf:297,ellipseName:"Hough"};Ne.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Ne.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Ne.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Ne.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Ne.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Ne.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Ne.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Ne.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Ne.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Ne.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Ne.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Ne.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var dN=Ne.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ne.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function hN(e,t,r,n){var i=e*e,a=t*t,o=(i-a)/i,l=0;n?(e*=1-o*(DD+o*(ND+o*LD)),i=e*e,o=0):l=Math.sqrt(o);var u=(i-a)/a;return{es:o,e:l,ep2:u}}function fN(e,t,r,n,i){if(!e){var a=gi(Ne,n);a||(a=dN),e=a.a,t=a.b,r=a.rf}return r&&!t&&(t=(1-1/r)*e),(r===0||Math.abs(e-t)<ge)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}var Ut={};Ut.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"};Ut.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"};Ut.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"};Ut.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"};Ut.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"};Ut.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"};Ut.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"};Ut.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"};Ut.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"};Ut.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"};Ut.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"};Ut.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"};Ut.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"};Ut.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"};Ut.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"};Ut.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"};Ut.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"};Ut.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};function pN(e,t,r,n,i,a,o){var l={};return e===void 0||e==="none"?l.datum_type=Vf:l.datum_type=OD,t&&(l.datum_params=t.map(parseFloat),(l.datum_params[0]!==0||l.datum_params[1]!==0||l.datum_params[2]!==0)&&(l.datum_type=Yi),l.datum_params.length>3&&(l.datum_params[3]!==0||l.datum_params[4]!==0||l.datum_params[5]!==0||l.datum_params[6]!==0)&&(l.datum_type=qi,l.datum_params[3]*=Cs,l.datum_params[4]*=Cs,l.datum_params[5]*=Cs,l.datum_params[6]=l.datum_params[6]/1e6+1)),o&&(l.datum_type=Za,l.grids=o),l.a=r,l.b=n,l.es=i,l.ep2=a,l}var Bw={};function mN(e,t){var r=new DataView(t),n=yN(r),i=bN(r,n),a=_N(r,i,n),o={header:i,subgrids:a};return Bw[e]=o,o}function gN(e){if(e===void 0)return null;var t=e.split(",");return t.map(vN)}function vN(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:Bw[e]||null,isNull:!1}}function ja(e){return e/3600*Math.PI/180}function yN(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 bN(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:Uf(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 Uf(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function _N(e,t,r){for(var n=176,i=[],a=0;a<t.nSubgrids;a++){var o=xN(e,n,r),l=CN(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:[ja(o.lowerLongitude),ja(o.lowerLatitude)],del:[ja(o.longitudeInterval),ja(o.latitudeInterval)],lim:[u,c],count:o.gridNodeCount,cvs:wN(l)}),n+=176+o.gridNodeCount*16}return i}function wN(e){return e.map(function(t){return[ja(t.longitudeShift),ja(t.latitudeShift)]})}function xN(e,t,r){return{name:Uf(e,t+8,t+16).trim(),parent:Uf(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 CN(e,t,r,n){for(var i=t+176,a=16,o=[],l=0;l<r.gridNodeCount;l++){var u={latitudeShift:e.getFloat32(i+l*a,n),longitudeShift:e.getFloat32(i+l*a+4,n),latitudeAccuracy:e.getFloat32(i+l*a+8,n),longitudeAccuracy:e.getFloat32(i+l*a+12,n)};o.push(u)}return o}function _n(e,t){if(!(this instanceof _n))return new _n(e);t=t||function(c){if(c)throw c};var r=QD(e);if(typeof r!="object"){t(e);return}var n=_n.projections.get(r.projName);if(!n){t(e);return}if(r.datumCode&&r.datumCode!=="none"){var i=gi(Ut,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=fN(r.a,r.b,r.rf,r.ellps,r.sphere),o=hN(a.a,a.b,a.rf,r.R_A),l=gN(r.nadgrids),u=r.datum||pN(r.datumCode,r.datum_params,a.a,a.b,o.es,o.ep2,l);Ky(this,r),Ky(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)}_n.projections=cN;_n.projections.start();function TN(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===Yi?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===qi?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 Ww(e,t,r){var n=e.x,i=e.y,a=e.z?e.z:0,o,l,u,c;if(i<-pe&&i>-1.001*pe)i=-pe;else if(i>pe&&i<1.001*pe)i=pe;else{if(i<-pe)return{x:-1/0,y:-1/0,z:e.z};if(i>pe)return{x:1/0,y:1/0,z:e.z}}return n>Math.PI&&(n-=2*Math.PI),l=Math.sin(i),c=Math.cos(i),u=l*l,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)*l}}function Hw(e,t,r,n){var i=1e-12,a=i*i,o=30,l,u,c,h,f,p,g,b,v,w,C,T,E,S=e.x,P=e.y,O=e.z?e.z:0,N,z,U;if(l=Math.sqrt(S*S+P*P),u=Math.sqrt(S*S+P*P+O*O),l/r<i){if(N=0,u/r<i)return z=pe,U=-n,{x:e.x,y:e.y,z:e.z}}else N=Math.atan2(P,S);c=O/u,h=l/u,f=1/Math.sqrt(1-t*(2-t)*h*h),b=h*(1-t)*f,v=c*f,E=0;do E++,g=r/Math.sqrt(1-t*v*v),U=l*b+O*v-g*(1-t*v*v),p=t*g/(g+U),f=1/Math.sqrt(1-p*(2-p)*h*h),w=h*(1-p)*f,C=c*f,T=C*b-w*v,b=w,v=C;while(T*T>a&&E<o);return z=Math.atan(C/Math.abs(w)),{x:N,y:z,z:U}}function MN(e,t,r){if(t===Yi)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===qi){var n=r[0],i=r[1],a=r[2],o=r[3],l=r[4],u=r[5],c=r[6];return{x:c*(e.x-u*e.y+l*e.z)+n,y:c*(u*e.x+e.y-o*e.z)+i,z:c*(-l*e.x+o*e.y+e.z)+a}}}function SN(e,t,r){if(t===Yi)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===qi){var n=r[0],i=r[1],a=r[2],o=r[3],l=r[4],u=r[5],c=r[6],h=(e.x-n)/c,f=(e.y-i)/c,p=(e.z-a)/c;return{x:h+u*f-l*p,y:-u*h+f+o*p,z:l*h-o*f+p}}}function fu(e){return e===Yi||e===qi}function EN(e,t,r){if(TN(e,t)||e.datum_type===Vf||t.datum_type===Vf)return r;var n=e.a,i=e.es;if(e.datum_type===Za){var a=Jy(e,!1,r);if(a!==0)return;n=Yy,i=qy}var o=t.a,l=t.b,u=t.es;if(t.datum_type===Za&&(o=Yy,l=kD,u=qy),i===u&&n===o&&!fu(e.datum_type)&&!fu(t.datum_type))return r;if(r=Ww(r,i,n),fu(e.datum_type)&&(r=MN(r,e.datum_type,e.datum_params)),fu(t.datum_type)&&(r=SN(r,t.datum_type,t.datum_params)),r=Hw(r,u,o,l),t.datum_type===Za){var c=Jy(t,!0,r);if(c!==0)return}return r}function Jy(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 l=e.grids[o];if(a.push(l.name),l.isNull){i=n;break}if(l.grid===null){if(l.mandatory)return console.log("Unable to find mandatory grid '"+l.name+"'"),-1;continue}for(var u=l.grid.subgrids,c=0,h=u.length;c<h;c++){var f=u[c],p=(Math.abs(f.del[1])+Math.abs(f.del[0]))/1e4,g=f.ll[0]-p,b=f.ll[1]-p,v=f.ll[0]+(f.lim[0]-1)*f.del[0]+p,w=f.ll[1]+(f.lim[1]-1)*f.del[1]+p;if(!(b>n.y||g>n.x||w<n.y||v<n.x)&&(i=PN(n,t,f),!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 PN(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=_e(i.x-Math.PI)+Math.PI;var a=e1(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,l=1e-12,u,c;do{if(c=e1(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)>l&&Math.abs(u.y)>l);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=_e(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 e1(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 l={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 h={x:t.cvs[o][0],y:t.cvs[o][1]},f=i.x*i.y,p=i.x*(1-i.y),g=(1-i.x)*(1-i.y),b=(1-i.x)*i.y;return a.x=g*l.x+p*u.x+b*h.x+f*c.x,a.y=g*l.y+p*u.y+b*h.y+f*c.y,a}function t1(e,t,r){var n=r.x,i=r.y,a=r.z||0,o,l,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?l="x":l="y"):u===1?(o=i,"ns".indexOf(e.axis[u])!==-1?l="y":l="x"):(o=a,l="z"),e.axis[u]){case"e":c[l]=o;break;case"w":c[l]=-o;break;case"n":c[l]=o;break;case"s":c[l]=-o;break;case"u":r[l]!==void 0&&(c.z=o);break;case"d":r[l]!==void 0&&(c.z=-o);break;default:return null}return c}function jw(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 AN(e){r1(e.x),r1(e.y)}function r1(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 RN(e,t){return(e.datum.datum_type===Yi||e.datum.datum_type===qi||e.datum.datum_type===Za)&&t.datumCode!=="WGS84"||(t.datum.datum_type===Yi||t.datum.datum_type===qi||t.datum.datum_type===Za)&&e.datumCode!=="WGS84"}function dc(e,t,r,n){var i;Array.isArray(r)?r=jw(r):r={x:r.x,y:r.y,z:r.z,m:r.m};var a=r.z!==void 0;if(AN(r),e.datum&&t.datum&&RN(e,t)&&(i=new _n("WGS84"),r=dc(e,i,r,n),e=i),n&&e.axis!=="enu"&&(r=t1(e,!1,r)),e.projName==="longlat")r={x:r.x*rr,y:r.y*rr,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=EN(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"?t1(t,!0,r):(r&&!a&&delete r.z,r)}var n1=_n("WGS84");function jh(e,t,r,n){var i,a,o;return Array.isArray(r)?(i=dc(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=dc(e,t,r,n),o=Object.keys(r),o.length===2||o.forEach(function(l){if(typeof e.name!="undefined"&&e.name==="geocent"||typeof t.name!="undefined"&&t.name==="geocent"){if(l==="x"||l==="y"||l==="z")return}else if(l==="x"||l==="y")return;a[l]=r[l]}),a)}function i1(e){return e instanceof _n?e:e.oProj?e.oProj:_n(e)}function Dr(e,t,r){e=i1(e);var n=!1,i;return typeof t=="undefined"?(t=e,e=n1,n=!0):(typeof t.x!="undefined"||Array.isArray(t))&&(r=t,t=e,e=n1,n=!0),t=i1(t),r?jh(e,t,r):(i={forward:function(a,o){return jh(e,t,a,o)},inverse:function(a,o){return jh(t,e,a,o)}},n&&(i.oProj=t),i)}var a1=6,Vw="AJSAJS",Gw="AFAFAF",Va=65,wr=73,Hr=79,ps=86,ms=90;const ON={forward:Uw,inverse:kN,toPoint:Yw};function Uw(e,t){return t=t||5,LN(DN({lat:e[1],lon:e[0]}),t)}function kN(e){var t=M0(Xw(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function Yw(e){var t=M0(Xw(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Vh(e){return e*(Math.PI/180)}function o1(e){return 180*(e/Math.PI)}function DN(e){var t=e.lat,r=e.lon,n=6378137,i=.00669438,a=.9996,o,l,u,c,h,f,p,g=Vh(t),b=Vh(r),v,w;w=Math.floor((r+180)/6)+1,r===180&&(w=60),t>=56&&t<64&&r>=3&&r<12&&(w=32),t>=72&&t<84&&(r>=0&&r<9?w=31:r>=9&&r<21?w=33:r>=21&&r<33?w=35:r>=33&&r<42&&(w=37)),o=(w-1)*6-180+3,v=Vh(o),l=i/(1-i),u=n/Math.sqrt(1-i*Math.sin(g)*Math.sin(g)),c=Math.tan(g)*Math.tan(g),h=l*Math.cos(g)*Math.cos(g),f=Math.cos(g)*(b-v),p=n*((1-i/4-3*i*i/64-5*i*i*i/256)*g-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*g)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*g)-35*i*i*i/3072*Math.sin(6*g));var C=a*u*(f+(1-c+h)*f*f*f/6+(5-18*c+c*c+72*h-58*l)*f*f*f*f*f/120)+5e5,T=a*(p+u*Math.tan(g)*(f*f/2+(5-c+9*h+4*h*h)*f*f*f*f/24+(61-58*c+c*c+600*h-330*l)*f*f*f*f*f*f/720));return t<0&&(T+=1e7),{northing:Math.round(T),easting:Math.round(C),zoneNumber:w,zoneLetter:NN(t)}}function M0(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,l=.00669438,u,c=(1-Math.sqrt(1-l))/(1+Math.sqrt(1-l)),h,f,p,g,b,v,w,C,T,E=r-5e5,S=t;n<"N"&&(S-=1e7),w=(i-1)*6-180+3,u=l/(1-l),v=S/a,C=v/(o*(1-l/4-3*l*l/64-5*l*l*l/256)),T=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),h=o/Math.sqrt(1-l*Math.sin(T)*Math.sin(T)),f=Math.tan(T)*Math.tan(T),p=u*Math.cos(T)*Math.cos(T),g=o*(1-l)/Math.pow(1-l*Math.sin(T)*Math.sin(T),1.5),b=E/(h*a);var P=T-h*Math.tan(T)/g*(b*b/2-(5+3*f+10*p-4*p*p-9*u)*b*b*b*b/24+(61+90*f+298*p+45*f*f-252*u-3*p*p)*b*b*b*b*b*b/720);P=o1(P);var O=(b-(1+2*f+p)*b*b*b/6+(5-2*p+28*f-3*p*p+8*u+24*f*f)*b*b*b*b*b/120)/Math.cos(T);O=w+o1(O);var N;if(e.accuracy){var z=M0({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});N={top:z.lat,right:z.lon,bottom:P,left:O}}else N={lat:P,lon:O};return N}function NN(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 LN(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+IN(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}function IN(e,t,r){var n=qw(r),i=Math.floor(e/1e5),a=Math.floor(t/1e5)%20;return $N(i,a,n)}function qw(e){var t=e%a1;return t===0&&(t=a1),t}function $N(e,t,r){var n=r-1,i=Vw.charCodeAt(n),a=Gw.charCodeAt(n),o=i+e-1,l=a+t,u=!1;o>ms&&(o=o-ms+Va-1,u=!0),(o===wr||i<wr&&o>wr||(o>wr||i<wr)&&u)&&o++,(o===Hr||i<Hr&&o>Hr||(o>Hr||i<Hr)&&u)&&(o++,o===wr&&o++),o>ms&&(o=o-ms+Va-1),l>ps?(l=l-ps+Va-1,u=!0):u=!1,(l===wr||a<wr&&l>wr||(l>wr||a<wr)&&u)&&l++,(l===Hr||a<Hr&&l>Hr||(l>Hr||a<Hr)&&u)&&(l++,l===wr&&l++),l>ps&&(l=l-ps+Va-1);var c=String.fromCharCode(o)+String.fromCharCode(l);return c}function Xw(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 l=e.charAt(a++);if(l<="A"||l==="B"||l==="Y"||l>="Z"||l==="I"||l==="O")throw"MGRSPoint zone letter "+l+" not handled: "+e;r=e.substring(a,a+=2);for(var u=qw(o),c=FN(r.charAt(0),u),h=zN(r.charAt(1),u);h<BN(l);)h+=2e6;var f=t-a;if(f%2!==0)throw`MGRSPoint has to have an even number
207
- of digits after the zone letter and two 100km letters - front
208
- half for easting meters, second half for
209
- northing meters`+e;var p=f/2,g=0,b=0,v,w,C,T,E;return p>0&&(v=1e5/Math.pow(10,p),w=e.substring(a,a+p),g=parseFloat(w)*v,C=e.substring(a+p),b=parseFloat(C)*v),T=g+c,E=b+h,{easting:T,northing:E,zoneLetter:l,zoneNumber:o,accuracy:v}}function FN(e,t){for(var r=Vw.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(r++,r===wr&&r++,r===Hr&&r++,r>ms){if(i)throw"Bad character: "+e;r=Va,i=!0}n+=1e5}return n}function zN(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=Gw.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(r++,r===wr&&r++,r===Hr&&r++,r>ps){if(i)throw"Bad character: "+e;r=Va,i=!0}n+=1e5}return n}function BN(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 ro(e,t,r){if(!(this instanceof ro))return new ro(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")}ro.fromMGRS=function(e){return new ro(Yw(e))};ro.prototype.toMGRS=function(e){return Uw([this.x,this.y],e)};var WN=1,HN=.25,s1=.046875,l1=.01953125,u1=.01068115234375,jN=.75,VN=.46875,GN=.013020833333333334,UN=.007120768229166667,YN=.3645833333333333,qN=.005696614583333333,XN=.3076171875;function Zw(e){var t=[];t[0]=WN-e*(HN+e*(s1+e*(l1+e*u1))),t[1]=e*(jN-e*(s1+e*(l1+e*u1)));var r=e*e;return t[2]=r*(VN-e*(GN+e*UN)),r*=e,t[3]=r*(YN-e*qN),t[4]=r*e*XN,t}function od(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 ZN=20;function Kw(e,t,r){for(var n=1/(1-t),i=e,a=ZN;a;--a){var o=Math.sin(i),l=1-t*o*o;if(l=(od(i,o,Math.cos(i),r)-e)*(l*Math.sqrt(l))*n,i-=l,Math.abs(l)<ge)return i}return i}function KN(){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=Zw(this.es),this.ml0=od(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function QN(e){var t=e.x,r=e.y,n=_e(t-this.long0),i,a,o,l=Math.sin(r),u=Math.cos(r);if(this.es){var h=u*n,f=Math.pow(h,2),p=this.ep2*Math.pow(u,2),g=Math.pow(p,2),b=Math.abs(u)>ge?Math.tan(r):0,v=Math.pow(b,2),w=Math.pow(v,2);i=1-this.es*Math.pow(l,2),h=h/Math.sqrt(i);var C=od(r,l,u,this.en);a=this.a*(this.k0*h*(1+f/6*(1-v+p+f/20*(5-18*v+w+14*p-58*v*p+f/42*(61+179*w-w*v-479*v)))))+this.x0,o=this.a*(this.k0*(C-this.ml0+l*n*h/2*(1+f/12*(5-v+9*p+4*g+f/30*(61+w-58*v+270*p-330*v*p+f/56*(1385+543*w-w*v-3111*v))))))+this.y0}else{var c=u*Math.sin(n);if(Math.abs(Math.abs(c)-1)<ge)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>ge)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 JN(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=Kw(t,this.es,this.en),Math.abs(r)<pe){var f=Math.sin(r),p=Math.cos(r),g=Math.abs(p)>ge?Math.tan(r):0,b=this.ep2*Math.pow(p,2),v=Math.pow(b,2),w=Math.pow(g,2),C=Math.pow(w,2);t=1-this.es*Math.pow(f,2);var T=a*Math.sqrt(t)/this.k0,E=Math.pow(T,2);t=t*g,n=r-t*E/(1-this.es)*.5*(1-E/12*(5+3*w-9*b*w+b-4*v-E/30*(61+90*w-252*b*w+45*C+46*b-E/56*(1385+3633*w+4095*C+1574*C*w)))),i=_e(this.long0+T*(1-E/6*(1+2*w+b-E/20*(5+28*w+24*C+8*b*w+6*b-E/42*(61+662*w+1320*C+720*C*w))))/p)}else n=pe*hl(o),i=0;else{var l=Math.exp(a/this.k0),u=.5*(l-1/l),c=this.lat0+o/this.k0,h=Math.cos(c);t=Math.sqrt((1-Math.pow(h,2))/(1+Math.pow(u,2))),n=Math.asin(t),o<0&&(n=-n),u===0&&h===0?i=0:i=_e(Math.atan2(u,h)+this.long0)}return e.x=i,e.y=n,e}var e4=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const Fu={init:KN,forward:QN,inverse:JN,names:e4};function Qw(e){var t=Math.exp(e);return t=(t-1/t)/2,t}function Ur(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 t4(e){var t=1+e,r=t-1;return r===0?e:e*Math.log(t)/r}function r4(e){var t=Math.abs(e);return t=t4(t*(1+t/(Ur(1,t)+1))),e<0?-t:t}function S0(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 n4(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 i4(e){var t=Math.exp(e);return t=(t+1/t)/2,t}function Jw(e,t,r){for(var n=Math.sin(t),i=Math.cos(t),a=Qw(r),o=i4(r),l=2*i*o,u=-2*n*a,c=e.length-1,h=e[c],f=0,p=0,g=0,b,v;--c>=0;)b=p,v=f,p=h,f=g,h=-b+l*p-u*f+e[c],g=-v+u*p+l*f;return l=n*o,u=i*a,[l*h-u*g,l*g+u*h]}function a4(){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&&(Fu.init.apply(this),this.forward=Fu.forward,this.inverse=Fu.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=S0(this.cbg,this.lat0);this.Zb=-this.Qn*(n+n4(this.gtu,2*n))}function o4(e){var t=_e(e.x-this.long0),r=e.y;r=S0(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,Ur(n,i*o)),t=r4(Math.tan(t));var l=Jw(this.gtu,2*r,2*t);r=r+l[0],t=t+l[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 s4(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=Jw(this.utg,2*r,2*t);r=r+a[0],t=t+a[1],t=Math.atan(Qw(t));var o=Math.sin(r),l=Math.cos(r),u=Math.sin(t),c=Math.cos(t);r=Math.atan2(o*c,Ur(u,c*l)),t=Math.atan2(u,c*l),n=_e(t+this.long0),i=S0(this.cgb,r)}else n=1/0,i=1/0;return e.x=n,e.y=i,e}var l4=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const zu={init:a4,forward:o4,inverse:s4,names:l4};function u4(e,t){if(e===void 0){if(e=Math.floor((_e(t)+Math.PI)*30/Math.PI)+1,e<0)return 0;if(e>60)return 60}return e}var c4="etmerc";function d4(){var e=u4(this.zone,this.long0);if(e===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*rr,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,zu.init.apply(this),this.forward=zu.forward,this.inverse=zu.inverse}var h4=["Universal Transverse Mercator System","utm"];const f4={init:d4,names:h4,dependsOn:c4};function E0(e,t){return Math.pow((1-e)/(1+e),t)}var p4=20;function m4(){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+Qe)/(Math.pow(Math.tan(.5*this.lat0+Qe),this.C)*E0(this.e*e,this.ratexp))}function g4(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+Qe),this.C)*E0(this.e*Math.sin(r),this.ratexp))-pe,e.x=this.C*t,e}function v4(e){for(var t=1e-14,r=e.x/this.C,n=e.y,i=Math.pow(Math.tan(.5*n+Qe)/this.K,1/this.C),a=p4;a>0&&(n=2*Math.atan(i*E0(this.e*Math.sin(e.y),-.5*this.e))-pe,!(Math.abs(n-e.y)<t));--a)e.y=n;return a?(e.x=r,e.y=n,e):null}var y4=["gauss"];const P0={init:m4,forward:g4,inverse:v4,names:y4};function b4(){P0.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 _4(e){var t,r,n,i;return e.x=_e(e.x-this.long0),P0.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 w4(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=Ur(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,P0.inverse.apply(this,[e]),e.x=_e(e.x+this.long0),e}var x4=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];const C4={init:b4,forward:_4,inverse:w4,names:x4};function T4(e,t,r){return t*=r,Math.tan(.5*(pe+e))*Math.pow((1-t)/(1+t),.5*r)}function M4(){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)<=ge&&(this.k0=.5*(1+hl(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=ge&&(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)<=ge&&Math.abs(Math.cos(this.lat_ts))>ge&&(this.k0=.5*this.cons*Tn(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=Tn(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-pe,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function S4(e){var t=e.x,r=e.y,n=Math.sin(r),i=Math.cos(r),a,o,l,u,c,h,f=_e(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=ge&&Math.abs(r+this.lat0)<=ge?(e.x=NaN,e.y=NaN,e):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(f)),e.x=this.a*a*i*Math.sin(f)+this.x0,e.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(f))+this.y0,e):(o=2*Math.atan(this.ssfn_(r,n,this.e))-pe,u=Math.cos(o),l=Math.sin(o),Math.abs(this.coslat0)<=ge?(c=en(this.e,r*this.con,this.con*n),h=2*this.a*this.k0*c/this.cons,e.x=this.x0+h*Math.sin(t-this.long0),e.y=this.y0-this.con*h*Math.cos(t-this.long0),e):(Math.abs(this.sinlat0)<ge?(a=2*this.a*this.k0/(1+u*Math.cos(f)),e.y=a*l):(a=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*l+this.cosX0*u*Math.cos(f))),e.y=a*(this.cosX0*l-this.sinX0*u*Math.cos(f))+this.y0),e.x=a*u*Math.sin(f)+this.x0,e))}function E4(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 l=2*Math.atan(o/(2*this.a*this.k0));return t=this.long0,r=this.lat0,o<=ge?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(l)*this.sinlat0+e.y*Math.sin(l)*this.coslat0/o),Math.abs(this.coslat0)<ge?this.lat0>0?t=_e(this.long0+Math.atan2(e.x,-1*e.y)):t=_e(this.long0+Math.atan2(e.x,e.y)):t=_e(this.long0+Math.atan2(e.x*Math.sin(l),o*this.coslat0*Math.cos(l)-e.y*this.sinlat0*Math.sin(l))),e.x=t,e.y=r,e)}else if(Math.abs(this.coslat0)<=ge){if(o<=ge)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*js(this.e,n),t=this.con*_e(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<=ge?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/o),t=_e(this.long0+Math.atan2(e.x*Math.sin(i),o*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),r=-1*js(this.e,Math.tan(.5*(pe+a)));return e.x=t,e.y=r,e}var P4=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const A4={init:M4,forward:S4,inverse:E4,names:P4,ssfn_:T4};function R4(){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 l=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=l-this.alpha*u+this.alpha*o/2*c}function O4(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))),l=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(l))/(1-Math.sin(l)))+this.y0,e.x=this.R*o+this.x0,e}function k4(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))),l=this.lambda0+o/this.alpha,u=0,c=a,h=-1e3,f=0;Math.abs(c-h)>1e-7;){if(++f>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)),h=c,c=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=l,e.y=c,e}var D4=["somerc"];const N4={init:R4,forward:O4,inverse:k4,names:D4};var Ia=1e-7;function L4(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 I4(){var e,t,r,n,i,a,o,l,u,c,h=0,f,p=0,g=0,b=0,v=0,w=0,C=0;this.no_off=L4(this),this.no_rot="no_rot"in this;var T=!1;"alpha"in this&&(T=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),T&&(C=this.alpha),E&&(h=this.rectified_grid_angle*rr),T||E)p=this.longc;else if(g=this.long1,v=this.lat1,b=this.long2,w=this.lat2,Math.abs(v-w)<=Ia||(e=Math.abs(v))<=Ia||Math.abs(e-pe)<=Ia||Math.abs(Math.abs(this.lat0)-pe)<=Ia||Math.abs(Math.abs(w)-pe)<=Ia)throw new Error;var S=1-this.es;t=Math.sqrt(S),Math.abs(this.lat0)>ge?(l=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*l*l,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/S),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,l),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),T||E?(T?(f=Math.asin(Math.sin(C)/n),E||(h=C)):(f=h,C=Math.asin(n*Math.sin(f))),this.lam0=p-Math.asin(.5*(i-1/i)*Math.tan(f))/this.B):(a=Math.pow(en(this.e,v,Math.sin(v)),this.B),o=Math.pow(en(this.e,w,Math.sin(w)),this.B),i=this.E/a,u=(o-a)/(o+a),c=this.E*this.E,c=(c-o*a)/(c+o*a),e=g-b,e<-Math.pi?b-=Ws:e>Math.pi&&(b+=Ws),this.lam0=_e(.5*(g+b)-Math.atan(c*Math.tan(.5*this.B*(g-b))/u)/this.B),f=Math.atan(2*Math.sin(this.B*_e(g-this.lam0))/(i-1/i)),h=C=Math.asin(n*Math.sin(f))),this.singam=Math.sin(f),this.cosgam=Math.cos(f),this.sinrot=Math.sin(h),this.cosrot=Math.cos(h),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*f,this.v_pole_n=this.ArB*Math.log(Math.tan(Qe-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(Qe+i))}function $4(e){var t={},r,n,i,a,o,l,u,c;if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-pe)>ge){if(o=this.E/Math.pow(en(this.e,e.y,Math.sin(e.y)),this.B),l=1/o,r=.5*(o-l),n=.5*(o+l),a=Math.sin(this.B*e.x),i=(r*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)<ge)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),l=Math.cos(this.B*e.x),Math.abs(l)<Ia?u=this.A*e.x:u=this.ArB*Math.atan2(r*this.cosgam+a*this.singam,l)}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 F4(e){var t,r,n,i,a,o,l,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),l=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(l)-1)<ge)u.x=0,u.y=l<0?-pe:pe;else{if(u.y=this.E/Math.sqrt((1+l)/(1-l)),u.y=js(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 z4=["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 B4={init:I4,forward:$4,inverse:F4,names:z4};function W4(){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)<ge)){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=Tn(this.e,t,r),i=en(this.e,this.lat1,t),a=Math.sin(this.lat2),o=Math.cos(this.lat2),l=Tn(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)>ge?this.ns=Math.log(n/l)/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 H4(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=ge&&(r=hl(r)*(pe-2*ge));var n=Math.abs(Math.abs(r)-pe),i,a;if(n>ge)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*_e(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 j4(e){var t,r,n,i,a,o=(e.x-this.x0)/this.k0,l=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(o*o+l*l),r=1):(t=-Math.sqrt(o*o+l*l),r=-1);var u=0;if(t!==0&&(u=Math.atan2(r*o,r*l)),t!==0||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),i=js(this.e,n),i===-9999)return null}else i=-pe;return a=_e(u/this.ns+this.long0),e.x=a,e.y=i,e}var V4=["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 G4={init:W4,forward:H4,inverse:j4,names:V4};function U4(){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 Y4(e){var t,r,n,i,a,o,l,u=e.x,c=e.y,h=_e(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=-h*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,l=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=l*Math.cos(o)/1,e.x=l*Math.sin(o)/1,this.czech||(e.y*=-1,e.x*=-1),e}function q4(e){var t,r,n,i,a,o,l,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,l=t,u=0;var h=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(l))/(1-this.e*Math.sin(l)),this.e/2))-this.s45),Math.abs(l-e.y)<1e-10&&(u=1),l=e.y,h+=1;while(u===0&&h<15);return h>=15?null:e}var X4=["Krovak","krovak"];const Z4={init:U4,forward:Y4,inverse:q4,names:X4};function pr(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}function fl(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function pl(e){return .375*e*(1+.25*e*(1+.46875*e))}function ml(e){return .05859375*e*e*(1+.75*e)}function gl(e){return e*e*e*(35/3072)}function no(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)}function go(e){return Math.abs(e)<pe?e:e-hl(e)*Math.PI}function hc(e,t,r,n,i){var a,o;a=e/t;for(var l=0;l<15;l++)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 K4(){this.sphere||(this.e0=fl(this.es),this.e1=pl(this.es),this.e2=ml(this.es),this.e3=gl(this.es),this.ml0=this.a*pr(this.e0,this.e1,this.e2,this.e3,this.lat0))}function Q4(e){var t,r,n=e.x,i=e.y;if(n=_e(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),l=no(this.a,this.e,a),u=Math.tan(i)*Math.tan(i),c=n*Math.cos(i),h=c*c,f=this.es*o*o/(1-this.es),p=this.a*pr(this.e0,this.e1,this.e2,this.e3,i);t=l*c*(1-h*u*(1/6-(8-u+8*f)*h/120)),r=p-this.ml0+l*a/o*h*(.5+(5-u+6*f)*h/24)}return e.x=t+this.x0,e.y=r+this.y0,e}function J4(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,l=hc(o,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-pe)<=ge)return e.x=this.long0,e.y=pe,r<0&&(e.y*=-1),e;var u=no(this.a,this.e,Math.sin(l)),c=u*u*u/this.a/this.a*(1-this.es),h=Math.pow(Math.tan(l),2),f=t*this.a/u,p=f*f;n=l-u*Math.tan(l)/c*f*f*(.5-(1+3*h)*f*f/24),i=f*(1-p*(h/3+(1+3*h)*h*p/15))/Math.cos(l)}return e.x=_e(i+this.long0),e.y=go(n),e}var e5=["Cassini","Cassini_Soldner","cass"];const t5={init:K4,forward:Q4,inverse:J4,names:e5};function ui(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 r5=1,n5=2,i5=3,a5=4;function o5(){var e=Math.abs(this.lat0);if(Math.abs(e-pe)<ge?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<ge?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0){var t;switch(this.qp=ui(this.e,1),this.mmf=.5/(1-this.es),this.apa=m5(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=ui(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 s5(e){var t,r,n,i,a,o,l,u,c,h,f=e.x,p=e.y;if(f=_e(f-this.long0),this.sphere){if(a=Math.sin(p),h=Math.cos(p),n=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(r=this.mode===this.EQUIT?1+h*n:1+this.sinph0*a+this.cosph0*h*n,r<=ge)return null;r=Math.sqrt(2/r),t=r*h*Math.sin(f),r*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*h*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)<ge)return null;r=Qe-p*.5,r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)),t=r*Math.sin(f),r*=n}}else{switch(l=0,u=0,c=0,n=Math.cos(f),i=Math.sin(f),a=Math.sin(p),o=ui(this.e,a),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(l=o/this.qp,u=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:c=1+this.sinb1*l+this.cosb1*u*n;break;case this.EQUIT:c=1+u*n;break;case this.N_POLE:c=pe+p,o=this.qp-o;break;case this.S_POLE:c=p-pe,o=this.qp+o;break}if(Math.abs(c)<ge)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*l-this.sinb1*u*n):r=(c=Math.sqrt(2/(1+u*n)))*l*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 l5(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,r=e.y/this.a,n,i,a,o,l,u,c;if(this.sphere){var h=0,f,p=0;if(f=Math.sqrt(t*t+r*r),i=f*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(p=Math.sin(i),h=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(f)<=ge?0:Math.asin(r*p/f),t*=p,r=h*f;break;case this.OBLIQ:i=Math.abs(f)<=ge?this.lat0:Math.asin(h*this.sinph0+r*p*this.cosph0/f),t*=p*this.cosph0,r=(h-Math.sin(i)*this.sinph0)*f;break;case this.N_POLE:r=-r,i=pe-i;break;case this.S_POLE:i-=pe;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<ge)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,l=this.qp*c,r=u*this.cosb1*a-r*this.sinb1*o):(c=r*o/u,l=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),l=t*t+r*r,!l)return e.x=this.long0,e.y=this.lat0,e;c=1-l/this.qp,this.mode===this.S_POLE&&(c=-c)}n=Math.atan2(t,r),i=g5(Math.asin(c),this.apa)}return e.x=_e(this.long0+n),e.y=i,e}var u5=.3333333333333333,c5=.17222222222222222,d5=.10257936507936508,h5=.06388888888888888,f5=.0664021164021164,p5=.016415012942191543;function m5(e){var t,r=[];return r[0]=e*u5,t=e*e,r[0]+=t*c5,r[1]=t*h5,t*=e,r[0]+=t*d5,r[1]+=t*f5,r[2]=t*p5,r}function g5(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 v5=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];const y5={init:o5,forward:s5,inverse:l5,names:v5,S_POLE:r5,N_POLE:n5,EQUIT:i5,OBLIQ:a5};function vi(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}function b5(){Math.abs(this.lat1+this.lat2)<ge||(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=Tn(this.e3,this.sin_po,this.cos_po),this.qs1=ui(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=Tn(this.e3,this.sin_po,this.cos_po),this.qs2=ui(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=ui(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>ge?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 _5(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=ui(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*_e(t-this.long0),o=i*Math.sin(a)+this.x0,l=this.rh-i*Math.cos(a)+this.y0;return e.x=o,e.y=l,e}function w5(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=_e(i/this.ns0+this.long0),e.x=a,e.y=o,e}function x5(e,t){var r,n,i,a,o,l=vi(.5*t);if(e<ge)return l;for(var u=e*e,c=1;c<=25;c++)if(r=Math.sin(l),n=Math.cos(l),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))),l=l+o,Math.abs(o)<=1e-7)return l;return null}var C5=["Albers_Conic_Equal_Area","Albers","aea"];const T5={init:b5,forward:_5,inverse:w5,names:C5,phi1z:x5};function M5(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function S5(e){var t,r,n,i,a,o,l,u,c=e.x,h=e.y;return n=_e(c-this.long0),t=Math.sin(h),r=Math.cos(h),i=Math.cos(n),o=this.sin_p14*t+this.cos_p14*r*i,a=1,o>0||Math.abs(o)<=ge?(l=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):(l=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=l,e.y=u,e}function E5(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=vi(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=_e(this.long0+a)):(o=this.phic0,a=0),e.x=a,e.y=o,e}var P5=["gnom"];const A5={init:M5,forward:S5,inverse:E5,names:P5};function R5(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*pe:pe;for(var n=Math.asin(.5*t),i,a,o,l,u=0;u<30;u++)if(a=Math.sin(n),o=Math.cos(n),l=e*a,i=Math.pow(1-l*l,2)/(2*o)*(t/(1-e*e)-a/(1-l*l)+.5/e*Math.log((1-l)/(1+l))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function O5(){this.sphere||(this.k0=Tn(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function k5(e){var t=e.x,r=e.y,n,i,a=_e(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=ui(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 D5(e){e.x-=this.x0,e.y-=this.y0;var t,r;return this.sphere?(t=_e(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=R5(this.e,2*e.y*this.k0/this.a),t=_e(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e}var N5=["cea"];const L5={init:O5,forward:k5,inverse:D5,names:N5};function I5(){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 $5(e){var t=e.x,r=e.y,n=_e(t-this.long0),i=go(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e}function F5(e){var t=e.x,r=e.y;return e.x=_e(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=go(this.lat0+(r-this.y0)/this.a),e}var z5=["Equirectangular","Equidistant_Cylindrical","eqc"];const B5={init:I5,forward:$5,inverse:F5,names:z5};var c1=20;function W5(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=fl(this.es),this.e1=pl(this.es),this.e2=ml(this.es),this.e3=gl(this.es),this.ml0=this.a*pr(this.e0,this.e1,this.e2,this.e3,this.lat0)}function H5(e){var t=e.x,r=e.y,n,i,a,o=_e(t-this.long0);if(a=o*Math.sin(r),this.sphere)Math.abs(r)<=ge?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(r),i=this.a*(go(r-this.lat0)+(1-Math.cos(a))/Math.tan(r)));else if(Math.abs(r)<=ge)n=this.a*o,i=-1*this.ml0;else{var l=no(this.a,this.e,Math.sin(r))/Math.tan(r);n=l*Math.sin(a),i=this.a*pr(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+l*(1-Math.cos(a))}return e.x=n+this.x0,e.y=i+this.y0,e}function j5(e){var t,r,n,i,a,o,l,u,c;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=ge)t=_e(n/this.a+this.long0),r=0;else{o=this.lat0+i/this.a,l=n*n/this.a/this.a+o*o,u=o;var h;for(a=c1;a;--a)if(h=Math.tan(u),c=-1*(o*(u*h+1)-u-.5*(u*u+l)*h)/((u-o)/h-1),u+=c,Math.abs(c)<=ge){r=u;break}t=_e(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=ge)r=0,t=_e(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,l=n*n/this.a/this.a+o*o,u=o;var f,p,g,b,v;for(a=c1;a;--a)if(v=this.e*Math.sin(u),f=Math.sqrt(1-v*v)*Math.tan(u),p=this.a*pr(this.e0,this.e1,this.e2,this.e3,u),g=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=p/this.a,c=(o*(f*b+1)-b-.5*f*(b*b+l))/(this.es*Math.sin(2*u)*(b*b+l-2*o*b)/(4*f)+(o-b)*(f*g-2/Math.sin(2*u))-g),u-=c,Math.abs(c)<=ge){r=u;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=_e(this.long0+Math.asin(n*f/this.a)/Math.sin(r))}return e.x=t,e.y=r,e}var V5=["Polyconic","poly"];const G5={init:W5,forward:H5,inverse:j5,names:V5};function U5(){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 Y5(e){var t,r=e.x,n=e.y,i=n-this.lat0,a=r-this.long0,o=i/Cs*1e-5,l=a,u=1,c=0;for(t=1;t<=10;t++)u=u*o,c=c+this.A[t]*u;var h=c,f=l,p=1,g=0,b,v,w=0,C=0;for(t=1;t<=6;t++)b=p*h-g*f,v=g*h+p*f,p=b,g=v,w=w+this.B_re[t]*p-this.B_im[t]*g,C=C+this.B_im[t]*p+this.B_re[t]*g;return e.x=C*this.a+this.x0,e.y=w*this.a+this.y0,e}function q5(e){var t,r=e.x,n=e.y,i=r-this.x0,a=n-this.y0,o=a/this.a,l=i/this.a,u=1,c=0,h,f,p=0,g=0;for(t=1;t<=6;t++)h=u*o-c*l,f=c*o+u*l,u=h,c=f,p=p+this.C_re[t]*u-this.C_im[t]*c,g=g+this.C_im[t]*u+this.C_re[t]*c;for(var b=0;b<this.iterations;b++){var v=p,w=g,C,T,E=o,S=l;for(t=2;t<=6;t++)C=v*p-w*g,T=w*p+v*g,v=C,w=T,E=E+(t-1)*(this.B_re[t]*v-this.B_im[t]*w),S=S+(t-1)*(this.B_im[t]*v+this.B_re[t]*w);v=1,w=0;var P=this.B_re[1],O=this.B_im[1];for(t=2;t<=6;t++)C=v*p-w*g,T=w*p+v*g,v=C,w=T,P=P+t*(this.B_re[t]*v-this.B_im[t]*w),O=O+t*(this.B_im[t]*v+this.B_re[t]*w);var N=P*P+O*O;p=(E*P+S*O)/N,g=(S*P-E*O)/N}var z=p,U=g,Z=1,K=0;for(t=1;t<=9;t++)Z=Z*z,K=K+this.D[t]*Z;var R=this.lat0+K*Cs*1e5,I=this.long0+U;return e.x=I,e.y=R,e}var X5=["New_Zealand_Map_Grid","nzmg"];const Z5={init:U5,forward:Y5,inverse:q5,names:X5};function K5(){}function Q5(e){var t=e.x,r=e.y,n=_e(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 J5(e){e.x-=this.x0,e.y-=this.y0;var t=_e(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 eL=["Miller_Cylindrical","mill"];const tL={init:K5,forward:Q5,inverse:J5,names:eL};var rL=20;function nL(){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=Zw(this.es)}function iL(e){var t,r,n=e.x,i=e.y;if(n=_e(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=rL;o;--o){var l=(this.m*i+Math.sin(i)-a)/(this.m+Math.cos(i));if(i-=l,Math.abs(l)<ge)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*od(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 aL(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=vi((this.m*t+Math.sin(t))/this.n):this.n!==1&&(t=vi(Math.sin(t)/this.n)),n=_e(n+this.long0),t=go(t)):(t=Kw(e.y/this.a,this.es,this.en),i=Math.abs(t),i<pe?(i=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),n=_e(r)):i-ge<pe&&(n=this.long0)),e.x=n,e.y=t,e}var oL=["Sinusoidal","sinu"];const sL={init:nL,forward:iL,inverse:aL,names:oL};function lL(){}function uL(e){for(var t=e.x,r=e.y,n=_e(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)<ge)break}i/=2,Math.PI/2-Math.abs(r)<ge&&(n=0);var l=.900316316158*this.a*n*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=l,e.y=u,e}function cL(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=_e(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 dL=["Mollweide","moll"];const hL={init:lL,forward:uL,inverse:cL,names:dL};function fL(){Math.abs(this.lat1+this.lat2)<ge||(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=fl(this.es),this.e1=pl(this.es),this.e2=ml(this.es),this.e3=gl(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Tn(this.e,this.sinphi,this.cosphi),this.ml1=pr(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<ge?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Tn(this.e,this.sinphi,this.cosphi),this.ml2=pr(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=pr(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function pL(e){var t=e.x,r=e.y,n;if(this.sphere)n=this.a*(this.g-r);else{var i=pr(this.e0,this.e1,this.e2,this.e3,r);n=this.a*(this.g-i)}var a=this.ns*_e(t-this.long0),o=this.x0+n*Math.sin(a),l=this.y0+this.rh-n*Math.cos(a);return e.x=o,e.y=l,e}function mL(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=_e(this.long0+a/this.ns),n=go(this.g-r/this.a),e.x=i,e.y=n,e;var o=this.g-r/this.a;return n=hc(o,this.e0,this.e1,this.e2,this.e3),i=_e(this.long0+a/this.ns),e.x=i,e.y=n,e}var gL=["Equidistant_Conic","eqdc"];const vL={init:fL,forward:pL,inverse:mL,names:gL};function yL(){this.R=this.a}function bL(e){var t=e.x,r=e.y,n=_e(t-this.long0),i,a;Math.abs(r)<=ge&&(i=this.x0+this.R*n,a=this.y0);var o=vi(2*Math.abs(r/Math.PI));(Math.abs(n)<=ge||Math.abs(Math.abs(r)-pe)<=ge)&&(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 l=.5*Math.abs(Math.PI/n-n/Math.PI),u=l*l,c=Math.sin(o),h=Math.cos(o),f=h/(c+h-1),p=f*f,g=f*(2/c-1),b=g*g,v=Math.PI*this.R*(l*(f-b)+Math.sqrt(u*(f-b)*(f-b)-(b+u)*(p-b)))/(b+u);n<0&&(v=-v),i=this.x0+v;var w=u+f;return v=Math.PI*this.R*(g*w-l*Math.sqrt((b+u)*(u+1)-w*w))/(b+u),r>=0?a=this.y0+v:a=this.y0-v,e.x=i,e.y=a,e}function _L(e){var t,r,n,i,a,o,l,u,c,h,f,p,g;return e.x-=this.x0,e.y-=this.y0,f=Math.PI*this.R,n=e.x/f,i=e.y/f,a=n*n+i*i,o=-Math.abs(i)*(1+a),l=o-2*i*i+n*n,u=-2*o+1+2*i*i+a*a,g=i*i/u+(2*l*l*l/u/u/u-9*o*l/u/u)/27,c=(o-l*l/3/u)/u,h=2*Math.sqrt(-c/3),f=3*g/c/h,Math.abs(f)>1&&(f>=0?f=1:f=-1),p=Math.acos(f)/3,e.y>=0?r=(-h*Math.cos(p+Math.PI/3)-l/3/u)*Math.PI:r=-(-h*Math.cos(p+Math.PI/3)-l/3/u)*Math.PI,Math.abs(n)<ge?t=this.long0:t=_e(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 wL=["Van_der_Grinten_I","VanDerGrinten","vandg"];const xL={init:yL,forward:bL,inverse:_L,names:wL};function CL(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function TL(e){var t=e.x,r=e.y,n=Math.sin(e.y),i=Math.cos(e.y),a=_e(t-this.long0),o,l,u,c,h,f,p,g,b,v,w,C,T,E,S,P,O,N,z,U,Z,K,R;return this.sphere?Math.abs(this.sin_p12-1)<=ge?(e.x=this.x0+this.a*(pe-r)*Math.sin(a),e.y=this.y0-this.a*(pe-r)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=ge?(e.x=this.x0+this.a*(pe+r)*Math.sin(a),e.y=this.y0+this.a*(pe+r)*Math.cos(a),e):(N=this.sin_p12*n+this.cos_p12*i*Math.cos(a),P=Math.acos(N),O=P?P/Math.sin(P):1,e.x=this.x0+this.a*O*i*Math.sin(a),e.y=this.y0+this.a*O*(this.cos_p12*n-this.sin_p12*i*Math.cos(a)),e):(o=fl(this.es),l=pl(this.es),u=ml(this.es),c=gl(this.es),Math.abs(this.sin_p12-1)<=ge?(h=this.a*pr(o,l,u,c,pe),f=this.a*pr(o,l,u,c,r),e.x=this.x0+(h-f)*Math.sin(a),e.y=this.y0-(h-f)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=ge?(h=this.a*pr(o,l,u,c,pe),f=this.a*pr(o,l,u,c,r),e.x=this.x0+(h+f)*Math.sin(a),e.y=this.y0+(h+f)*Math.cos(a),e):(p=n/i,g=no(this.a,this.e,this.sin_p12),b=no(this.a,this.e,n),v=Math.atan((1-this.es)*p+this.es*g*this.sin_p12/(b*i)),w=Math.atan2(Math.sin(a),this.cos_p12*Math.tan(v)-this.sin_p12*Math.cos(a)),w===0?z=Math.asin(this.cos_p12*Math.sin(v)-this.sin_p12*Math.cos(v)):Math.abs(Math.abs(w)-Math.PI)<=ge?z=-Math.asin(this.cos_p12*Math.sin(v)-this.sin_p12*Math.cos(v)):z=Math.asin(Math.sin(a)*Math.cos(v)/Math.sin(w)),C=this.e*this.sin_p12/Math.sqrt(1-this.es),T=this.e*this.cos_p12*Math.cos(w)/Math.sqrt(1-this.es),E=C*T,S=T*T,U=z*z,Z=U*z,K=Z*z,R=K*z,P=g*z*(1-U*S*(1-S)/6+Z/8*E*(1-2*S)+K/120*(S*(4-7*S)-3*C*C*(1-7*S))-R/48*E),e.x=this.x0+P*Math.sin(w),e.y=this.y0+P*Math.cos(w),e))}function ML(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,a,o,l,u,c,h,f,p,g,b,v,w,C,T,E,S,P,O,N,z;return this.sphere?(t=Math.sqrt(e.x*e.x+e.y*e.y),t>2*pe*this.a?void 0:(r=t/this.a,n=Math.sin(r),i=Math.cos(r),a=this.long0,Math.abs(t)<=ge?o=this.lat0:(o=vi(i*this.sin_p12+e.y*n*this.cos_p12/t),l=Math.abs(this.lat0)-pe,Math.abs(l)<=ge?this.lat0>=0?a=_e(this.long0+Math.atan2(e.x,-e.y)):a=_e(this.long0-Math.atan2(-e.x,e.y)):a=_e(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=fl(this.es),c=pl(this.es),h=ml(this.es),f=gl(this.es),Math.abs(this.sin_p12-1)<=ge?(p=this.a*pr(u,c,h,f,pe),t=Math.sqrt(e.x*e.x+e.y*e.y),g=p-t,o=hc(g/this.a,u,c,h,f),a=_e(this.long0+Math.atan2(e.x,-1*e.y)),e.x=a,e.y=o,e):Math.abs(this.sin_p12+1)<=ge?(p=this.a*pr(u,c,h,f,pe),t=Math.sqrt(e.x*e.x+e.y*e.y),g=t-p,o=hc(g/this.a,u,c,h,f),a=_e(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),w=Math.atan2(e.x,e.y),b=no(this.a,this.e,this.sin_p12),C=Math.cos(w),T=this.e*this.cos_p12*C,E=-T*T/(1-this.es),S=3*this.es*(1-E)*this.sin_p12*this.cos_p12*C/(1-this.es),P=t/b,O=P-E*(1+E)*Math.pow(P,3)/6-S*(1+3*E)*Math.pow(P,4)/24,N=1-E*O*O/2-P*O*O*O/6,v=Math.asin(this.sin_p12*Math.cos(O)+this.cos_p12*Math.sin(O)*C),a=_e(this.long0+Math.asin(Math.sin(w)*Math.sin(O)/Math.cos(v))),z=Math.sin(v),o=Math.atan2((z-this.es*N*this.sin_p12)*Math.tan(v),z*(1-this.es)),e.x=a,e.y=o,e))}var SL=["Azimuthal_Equidistant","aeqd"];const EL={init:CL,forward:TL,inverse:ML,names:SL};function PL(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function AL(e){var t,r,n,i,a,o,l,u,c=e.x,h=e.y;return n=_e(c-this.long0),t=Math.sin(h),r=Math.cos(h),i=Math.cos(n),o=this.sin_p14*t+this.cos_p14*r*i,a=1,(o>0||Math.abs(o)<=ge)&&(l=this.a*a*r*Math.sin(n),u=this.y0+this.a*a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=l,e.y=u,e}function RL(e){var t,r,n,i,a,o,l;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=vi(t/this.a),n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=ge?(l=this.lat0,e.x=o,e.y=l,e):(l=vi(i*this.sin_p14+e.y*n*this.cos_p14/t),a=Math.abs(this.lat0)-pe,Math.abs(a)<=ge?(this.lat0>=0?o=_e(this.long0+Math.atan2(e.x,-e.y)):o=_e(this.long0-Math.atan2(-e.x,e.y)),e.x=o,e.y=l,e):(o=_e(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n)),e.x=o,e.y=l,e))}var OL=["ortho"];const kL={init:PL,forward:AL,inverse:RL,names:OL};var St={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Je={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function DL(){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>=pe-Qe/2?this.face=St.TOP:this.lat0<=-(pe-Qe/2)?this.face=St.BOTTOM:Math.abs(this.long0)<=Qe?this.face=St.FRONT:Math.abs(this.long0)<=pe+Qe?this.face=this.long0>0?St.RIGHT:St.LEFT:this.face=St.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 NL(e){var t={x:0,y:0},r,n,i,a,o,l,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===St.TOP)a=pe-r,n>=Qe&&n<=pe+Qe?(u.value=Je.AREA_0,i=n-pe):n>pe+Qe||n<=-(pe+Qe)?(u.value=Je.AREA_1,i=n>0?n-Lt:n+Lt):n>-(pe+Qe)&&n<=-Qe?(u.value=Je.AREA_2,i=n+pe):(u.value=Je.AREA_3,i=n);else if(this.face===St.BOTTOM)a=pe+r,n>=Qe&&n<=pe+Qe?(u.value=Je.AREA_0,i=-n+pe):n<Qe&&n>=-Qe?(u.value=Je.AREA_1,i=-n):n<-Qe&&n>=-(pe+Qe)?(u.value=Je.AREA_2,i=-n-pe):(u.value=Je.AREA_3,i=n>0?-n+Lt:-n-Lt);else{var c,h,f,p,g,b,v;this.face===St.RIGHT?n=Ka(n,+pe):this.face===St.BACK?n=Ka(n,+Lt):this.face===St.LEFT&&(n=Ka(n,-pe)),p=Math.sin(r),g=Math.cos(r),b=Math.sin(n),v=Math.cos(n),c=g*v,h=g*b,f=p,this.face===St.FRONT?(a=Math.acos(c),i=pu(a,f,h,u)):this.face===St.RIGHT?(a=Math.acos(h),i=pu(a,f,-c,u)):this.face===St.BACK?(a=Math.acos(-c),i=pu(a,f,-h,u)):this.face===St.LEFT?(a=Math.acos(-h),i=pu(a,f,c,u)):(a=i=0,u.value=Je.AREA_0)}return l=Math.atan(12/Lt*(i+Math.acos(Math.sin(i)*Math.cos(Qe))-pe)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(l)*Math.cos(l))/(1-Math.cos(Math.atan(1/Math.cos(i))))),u.value===Je.AREA_1?l+=pe:u.value===Je.AREA_2?l+=Lt:u.value===Je.AREA_3&&(l+=1.5*Lt),t.x=o*Math.cos(l),t.y=o*Math.sin(l),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 LL(e){var t={lam:0,phi:0},r,n,i,a,o,l,u,c,h,f={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)?f.value=Je.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(f.value=Je.AREA_1,r-=pe):e.x<0&&-e.x>=Math.abs(e.y)?(f.value=Je.AREA_2,r=r<0?r+Lt:r-Lt):(f.value=Je.AREA_3,r+=pe),h=Lt/12*Math.tan(r),o=Math.sin(h)/(Math.cos(h)-1/Math.sqrt(2)),l=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(l)))),u<-1?u=-1:u>1&&(u=1),this.face===St.TOP)c=Math.acos(u),t.phi=pe-c,f.value===Je.AREA_0?t.lam=l+pe:f.value===Je.AREA_1?t.lam=l<0?l+Lt:l-Lt:f.value===Je.AREA_2?t.lam=l-pe:t.lam=l;else if(this.face===St.BOTTOM)c=Math.acos(u),t.phi=c-pe,f.value===Je.AREA_0?t.lam=-l+pe:f.value===Je.AREA_1?t.lam=-l:f.value===Je.AREA_2?t.lam=-l-pe:t.lam=l<0?-l-Lt:-l+Lt;else{var p,g,b;p=u,h=p*p,h>=1?b=0:b=Math.sqrt(1-h)*Math.sin(l),h+=b*b,h>=1?g=0:g=Math.sqrt(1-h),f.value===Je.AREA_1?(h=g,g=-b,b=h):f.value===Je.AREA_2?(g=-g,b=-b):f.value===Je.AREA_3&&(h=g,g=b,b=-h),this.face===St.RIGHT?(h=p,p=-g,g=h):this.face===St.BACK?(p=-p,g=-g):this.face===St.LEFT&&(h=p,p=g,g=-h),t.phi=Math.acos(-b)-pe,t.lam=Math.atan2(g,p),this.face===St.RIGHT?t.lam=Ka(t.lam,-pe):this.face===St.BACK?t.lam=Ka(t.lam,-Lt):this.face===St.LEFT&&(t.lam=Ka(t.lam,+pe))}if(this.es!==0){var v,w,C;v=t.phi<0?1:0,w=Math.tan(t.phi),C=this.b/Math.sqrt(w*w+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-C*C)/(this.one_minus_f*C)),v&&(t.phi=-t.phi)}return t.lam+=this.long0,e.x=t.lam,e.y=t.phi,e}function pu(e,t,r,n){var i;return e<ge?(n.value=Je.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=Qe?n.value=Je.AREA_0:i>Qe&&i<=pe+Qe?(n.value=Je.AREA_1,i-=pe):i>pe+Qe||i<=-(pe+Qe)?(n.value=Je.AREA_2,i=i>=0?i-Lt:i+Lt):(n.value=Je.AREA_3,i+=pe)),i}function Ka(e,t){var r=e+t;return r<-Lt?r+=Ws:r>+Lt&&(r-=Ws),r}var IL=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const $L={init:DL,forward:NL,inverse:LL,names:IL};var Yf=[[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]],gs=[[-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]],ex=.8487,tx=1.3523,rx=yn/5,FL=1/rx,Ga=18,fc=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},zL=function(e,t){return e[1]+t*(2*e[2]+t*3*e[3])};function BL(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 WL(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function HL(e){var t=_e(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*rx);n<0?n=0:n>=Ga&&(n=Ga-1),r=yn*(r-FL*n);var i={x:fc(Yf[n],r)*t,y:fc(gs[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*ex+this.x0,i.y=i.y*this.a*tx+this.y0,i}function jL(e){var t={x:(e.x-this.x0)/(this.a*ex),y:Math.abs(e.y-this.y0)/(this.a*tx)};if(t.y>=1)t.x/=Yf[Ga][0],t.y=e.y<0?-pe:pe;else{var r=Math.floor(t.y*Ga);for(r<0?r=0:r>=Ga&&(r=Ga-1);;)if(gs[r][0]>t.y)--r;else if(gs[r+1][0]<=t.y)++r;else break;var n=gs[r],i=5*(t.y-n[0])/(gs[r+1][0]-n[0]);i=BL(function(a){return(fc(n,a)-t.y)/zL(n,a)},i,ge,100),t.x/=fc(Yf[r],i),t.y=(5*r+i)*rr,e.y<0&&(t.y=-t.y)}return t.x=_e(t.x+this.long0),t}var VL=["Robinson","robin"];const GL={init:WL,forward:HL,inverse:jL,names:VL};function UL(){this.name="geocent"}function YL(e){var t=Ww(e,this.es,this.a);return t}function qL(e){var t=Hw(e,this.es,this.a,this.b);return t}var XL=["Geocentric","geocentric","geocent","Geocent"];const ZL={init:UL,forward:YL,inverse:qL,names:XL};var ar={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Ko={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 KL(){if(Object.keys(Ko).forEach(function(r){if(typeof this[r]=="undefined")this[r]=Ko[r].def;else{if(Ko[r].num&&isNaN(this[r]))throw new Error("Invalid parameter value, must be numeric "+r+" = "+this[r]);Ko[r].num&&(this[r]=parseFloat(this[r]))}Ko[r].degrees&&(this[r]=this[r]*rr)}.bind(this)),Math.abs(Math.abs(this.lat0)-pe)<ge?this.mode=this.lat0<0?ar.S_POLE:ar.N_POLE:Math.abs(this.lat0)<ge?this.mode=ar.EQUIT:(this.mode=ar.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 QL(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 ar.OBLIQ:a=this.sinph0*t+this.cosph0*r*n;break;case ar.EQUIT:a=r*n;break;case ar.S_POLE:a=-t;break;case ar.N_POLE:a=t;break}switch(a=this.pn1/(this.p-a),i=a*r*Math.sin(e.x),this.mode){case ar.OBLIQ:a*=this.cosph0*t-this.sinph0*r*n;break;case ar.EQUIT:a*=t;break;case ar.N_POLE:a*=-(r*n);break;case ar.S_POLE:a*=r*n;break}var o,l;return o=a*this.cg+i*this.sg,l=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*l,a=o*l,e.x=i*this.a,e.y=a*this.a,e}function JL(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=Ur(e.x,e.y);if(Math.abs(a)<ge)t.x=0,t.y=e.y;else{var o,l;switch(l=1-a*a*this.pfact,l=(this.p-Math.sqrt(l))/(this.pn1/a+a/this.pn1),o=Math.sqrt(1-l*l),this.mode){case ar.OBLIQ:t.y=Math.asin(o*this.sinph0+e.y*l*this.cosph0/a),e.y=(o-this.sinph0*Math.sin(t.y))*a,e.x*=l*this.cosph0;break;case ar.EQUIT:t.y=Math.asin(e.y*l/a),e.y=o*a,e.x*=l;break;case ar.N_POLE:t.y=Math.asin(o),e.y=-e.y;break;case ar.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 eI=["Tilted_Perspective","tpers"];const tI={init:KL,forward:QL,inverse:JL,names:eI};function rI(){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 nI(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 l=this.radius_p/Ur(this.radius_p*Math.cos(r),Math.sin(r));if(i=l*Math.cos(t)*Math.cos(r),a=l*Math.sin(t)*Math.cos(r),o=l*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/Ur(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/Ur(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/Ur(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/Ur(a,n))));return e.x=e.x*this.a,e.y=e.y*this.a,e}function iI(e){var t=-1,r=0,n=0,i,a,o,l;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)*Ur(1,n)):(r=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*Ur(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;l=(-a-Math.sqrt(o))/(2*i),t=this.radius_g+l*t,r*=l,n*=l,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;l=(-a-Math.sqrt(o))/(2*i),t=this.radius_g+l*t,r*=l,n*=l,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 aI=["Geostationary Satellite View","Geostationary_Satellite","geos"];const oI={init:rI,forward:nI,inverse:iI,names:aI};var Ts=1.340264,Ms=-.081106,Ss=893e-6,Es=.003796,pc=Math.sqrt(3)/2;function sI(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function lI(e){var t=_e(e.x-this.long0),r=e.y,n=Math.asin(pc*Math.sin(r)),i=n*n,a=i*i*i;return e.x=t*Math.cos(n)/(pc*(Ts+3*Ms*i+a*(7*Ss+9*Es*i))),e.y=n*(Ts+Ms*i+a*(Ss+Es*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function uI(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,l,u,c;for(c=0;c<r&&(i=n*n,a=i*i*i,o=n*(Ts+Ms*i+a*(Ss+Es*i))-e.y,l=Ts+3*Ms*i+a*(7*Ss+9*Es*i),n-=u=o/l,!(Math.abs(u)<t));++c);return i=n*n,a=i*i*i,e.x=pc*e.x*(Ts+3*Ms*i+a*(7*Ss+9*Es*i))/Math.cos(n),e.y=Math.asin(Math.sin(n)/pc),e.x=_e(e.x+this.long0),e}var cI=["eqearth","Equal Earth","Equal_Earth"];const dI={init:sI,forward:lI,inverse:uI,names:cI};function hI(e){e.Proj.projections.add(Fu),e.Proj.projections.add(zu),e.Proj.projections.add(f4),e.Proj.projections.add(C4),e.Proj.projections.add(A4),e.Proj.projections.add(N4),e.Proj.projections.add(B4),e.Proj.projections.add(G4),e.Proj.projections.add(Z4),e.Proj.projections.add(t5),e.Proj.projections.add(y5),e.Proj.projections.add(T5),e.Proj.projections.add(A5),e.Proj.projections.add(L5),e.Proj.projections.add(B5),e.Proj.projections.add(G5),e.Proj.projections.add(Z5),e.Proj.projections.add(tL),e.Proj.projections.add(sL),e.Proj.projections.add(hL),e.Proj.projections.add(vL),e.Proj.projections.add(xL),e.Proj.projections.add(EL),e.Proj.projections.add(kL),e.Proj.projections.add($L),e.Proj.projections.add(GL),e.Proj.projections.add(ZL),e.Proj.projections.add(tI),e.Proj.projections.add(oI),e.Proj.projections.add(dI)}Dr.defaultDatum="WGS84";Dr.Proj=_n;Dr.WGS84=new Dr.Proj("WGS84");Dr.Point=ro;Dr.toPoint=jw;Dr.defs=dr;Dr.nadgrid=mN;Dr.transform=dc;Dr.mgrs=ON;Dr.version="__VERSION__";hI(Dr);const fI=Object.freeze(Object.defineProperty({__proto__:null,default:Dr},Symbol.toStringTag,{value:"Module"})),pI=y.getAugmentedNamespace(fI);(function(e){(function(t){var r,n;r=kw,n=pI,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,l,u,c;if(t.Proj._isProj4Obj(n)?(l=n,o=l.srsCode,c=i||{},this.projection=new t.Proj.Projection(l,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 h=this.options.resolutions.length-1;h>=0;h--)this.options.resolutions[h]&&(this._scales[h]=1/this.options.resolutions[h])}this.infinite=!this.options.bounds},scale:function(n){var i=Math.floor(n),a,o,l,u;return n===i?this._scales[n]:(a=this._scales[i],o=this._scales[i+1],l=o-a,u=n-i,a+l*u)},zoom:function(n){var i=this._closestElement(this._scales,n),a=this._scales.indexOf(i),o,l,u;return n===i?a:i===void 0?-1/0:(l=a+1,o=this._scales[l],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),l=this._map.project(a,i)._subtract(o)._round(),u=l.add(this._map._getMapPanePos());return this._transform(n,i)._subtract(u)},_transform:function(n,i){var a=this._map.options.crs,o=a.transformation,l=a.scale(i);return o.transform(n,l)}}),t.Proj.imageOverlay=function(n,i,a){return new t.Proj.ImageOverlay(n,i,a)},t.Proj})})(Dw);var mI=Dw.exports;const gI=250;function nx(e){const t=e.chart.animation.init.duration==="auto"?gI:e.chart.animation.init.duration;return{animate:t!==0,duration:t/1e3}}function vI(e,t,r={}){t.length&&e.fitBounds(t.map(n=>[n.getLatLng().lat,n.getLatLng().lng]),M({maxZoom:4},r))}const yI=[{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"}],bI="#d6d9dc",_I="#FBFAFA";function wI(e,t,r){return e.reduce((i,a)=>{const o=a.id;let l;if(r==="world"){const u=yI.find(c=>c.id===o);u?l=t.find(c=>u.allNames.includes(c.geoName.trim().toLowerCase())):l=t.find(c=>c.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase())}else l=t.find(u=>u.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase());return i[o]={geoDataElement:l,style:{color:bI,weight:1,opacity:1,fillColor:l&&l.color||_I,fillOpacity:1},displayName:(l==null?void 0:l.geoName)||a.properties.name},i},{})}const xI=mI.CRS,CI=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const{themeSettings:i}=st(),a=k.useRef(null),o=k.useRef(null),[l]=k.useState(Wn.layerGroup()),u=k.useMemo(()=>wI(e.features,t,n),[e,t,n]);return k.useEffect(()=>{a.current&&!o.current&&(o.current=EI(a.current,n),l.addTo(o.current))},[l,n]),k.useEffect(()=>{const c=Wn.geoJSON(PI(e,u),{style:h=>u[h.id].style,onEachFeature:(h,f)=>{f.bindTooltip(SI(h,u,r.originalValueTitle),{sticky:!0}),f.on({mouseover:p=>{const g=p.target;TI(g,h.id,u)},mouseout:p=>{const g=p.target;MI(g,h.id,u)}}),r.onAreaClick&&f.on({click:p=>{const g=u[h.id].geoDataElement;g&&r.onAreaClick(g,p.originalEvent)}})}});o.current&&(l.clearLayers(),l.addLayer(c),o.current.fitBounds(c.getBounds(),nx(i)))},[r,u,e,l,i]),y.jsx("div",{ref:a,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function TI(e,t,r){if(r[t]){const i=r[t].style.fillColor;e.setStyle({weight:2,color:y.scaleBrightness(i,-.2),fillColor:y.scaleBrightness(i,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function MI(e,t,r){e.setStyle(r[t].style)}function SI(e,t,r){const n=t[e.id],{formattedOriginalValue:i}=n.geoDataElement||{};return`
210
- <div>
211
- <span>${n.displayName}<span>
212
- ${n.geoDataElement&&i!==void 0?`<br/>${r}: <span>${i}<span>`:""}
213
- </div>`}function EI(e,t){return t==="world"?Wn.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):Wn.map(e,{crs:new xI("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 PI(e,t){if(t.ATA&&t.ATA.geoDataElement)return e;{const r=e.features.filter(n=>n.id!=="ATA");return $(M({},e),{features:r})}}var AI="[object Date]";function RI(e){return H.isObjectLike(e)&&H.baseGetTag(e)==AI}var d1=H.nodeUtil&&H.nodeUtil.isDate,OI=d1?H.baseUnary(d1):RI,qf={exports:{}},ix={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})(ix);var Pt=ix.exports,Xf={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})(Xf,Xf.exports);var kI=Xf.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(kI);function i(a){return(0,n.default)({},a)}e.exports=t.default})(qf,qf.exports);var DI=qf.exports;const NI=y.getDefaultExportFromCjs(DI);var Zf={exports:{}},Kf={exports:{}},Qf={exports:{}},ax={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})(ax);var ox=ax.exports,Jf={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})(Jf,Jf.exports);var yr=Jf.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ox),i=r(yr);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})(Qf,Qf.exports);var LI=Qf.exports,ep={exports:{}};(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ox),i=r(yr);function a(o){(0,i.default)(1,arguments);var l=Object.prototype.toString.call(o);return o instanceof Date||(0,n.default)(o)==="object"&&l==="[object Date]"?new Date(o.getTime()):typeof o=="number"||l==="[object Number]"?new Date(o):((typeof o=="string"||l==="[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})(ep,ep.exports);var En=ep.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(LI),i=r(En),a=r(yr);function o(l){if((0,a.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var u=(0,i.default)(l);return!isNaN(Number(u))}e.exports=t.default})(Kf,Kf.exports);var II=Kf.exports,tp={exports:{}},rp={exports:{}},np={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})(np,np.exports);var ia=np.exports;const $I=y.getDefaultExportFromCjs(ia);(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ia),i=r(En),a=r(yr);function o(l,u){(0,a.default)(2,arguments);var c=(0,i.default)(l).getTime(),h=(0,n.default)(u);return new Date(c+h)}e.exports=t.default})(rp,rp.exports);var FI=rp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(FI),i=r(yr),a=r(ia);function o(l,u){(0,i.default)(2,arguments);var c=(0,a.default)(u);return(0,n.default)(l,-c)}e.exports=t.default})(tp,tp.exports);var zI=tp.exports,ip={exports:{}},ap={exports:{}};(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(En),i=r(yr),a=864e5;function o(l){(0,i.default)(1,arguments);var u=(0,n.default)(l),c=u.getTime();u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0);var h=u.getTime(),f=c-h;return Math.floor(f/a)+1}e.exports=t.default})(ap,ap.exports);var BI=ap.exports,op={exports:{}},sp={exports:{}};(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(En),i=r(yr);function a(o){(0,i.default)(1,arguments);var l=1,u=(0,n.default)(o),c=u.getUTCDay(),h=(c<l?7:0)+c-l;return u.setUTCDate(u.getUTCDate()-h),u.setUTCHours(0,0,0,0),u}e.exports=t.default})(sp,sp.exports);var A0=sp.exports,lp={exports:{}},up={exports:{}};(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(En),i=r(yr),a=r(A0);function o(l){(0,i.default)(1,arguments);var u=(0,n.default)(l),c=u.getUTCFullYear(),h=new Date(0);h.setUTCFullYear(c+1,0,4),h.setUTCHours(0,0,0,0);var f=(0,a.default)(h),p=new Date(0);p.setUTCFullYear(c,0,4),p.setUTCHours(0,0,0,0);var g=(0,a.default)(p);return u.getTime()>=f.getTime()?c+1:u.getTime()>=g.getTime()?c:c-1}e.exports=t.default})(up,up.exports);var sx=up.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(sx),i=r(A0),a=r(yr);function o(l){(0,a.default)(1,arguments);var u=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(u,0,4),c.setUTCHours(0,0,0,0);var h=(0,i.default)(c);return h}e.exports=t.default})(lp,lp.exports);var WI=lp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(En),i=r(A0),a=r(WI),o=r(yr),l=6048e5;function u(c){(0,o.default)(1,arguments);var h=(0,n.default)(c),f=(0,i.default)(h).getTime()-(0,a.default)(h).getTime();return Math.round(f/l)+1}e.exports=t.default})(op,op.exports);var HI=op.exports,cp={exports:{}},dp={exports:{}},aa={};Object.defineProperty(aa,"__esModule",{value:!0});aa.getDefaultOptions=jI;aa.setDefaultOptions=VI;var lx={};function jI(){return lx}function VI(e){lx=e}(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(En),i=r(yr),a=r(ia),o=aa;function l(u,c){var h,f,p,g,b,v,w,C;(0,i.default)(1,arguments);var T=(0,o.getDefaultOptions)(),E=(0,a.default)((h=(f=(p=(g=c==null?void 0:c.weekStartsOn)!==null&&g!==void 0?g:c==null||(b=c.locale)===null||b===void 0||(v=b.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&p!==void 0?p:T.weekStartsOn)!==null&&f!==void 0?f:(w=T.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&h!==void 0?h:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,n.default)(u),P=S.getUTCDay(),O=(P<E?7:0)+P-E;return S.setUTCDate(S.getUTCDate()-O),S.setUTCHours(0,0,0,0),S}e.exports=t.default})(dp,dp.exports);var R0=dp.exports,hp={exports:{}},fp={exports:{}};(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(En),i=r(yr),a=r(R0),o=r(ia),l=aa;function u(c,h){var f,p,g,b,v,w,C,T;(0,i.default)(1,arguments);var E=(0,n.default)(c),S=E.getUTCFullYear(),P=(0,l.getDefaultOptions)(),O=(0,o.default)((f=(p=(g=(b=h==null?void 0:h.firstWeekContainsDate)!==null&&b!==void 0?b:h==null||(v=h.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:P.firstWeekContainsDate)!==null&&p!==void 0?p:(C=P.locale)===null||C===void 0||(T=C.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&f!==void 0?f:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=new Date(0);N.setUTCFullYear(S+1,0,O),N.setUTCHours(0,0,0,0);var z=(0,a.default)(N,h),U=new Date(0);U.setUTCFullYear(S,0,O),U.setUTCHours(0,0,0,0);var Z=(0,a.default)(U,h);return E.getTime()>=z.getTime()?S+1:E.getTime()>=Z.getTime()?S:S-1}e.exports=t.default})(fp,fp.exports);var ux=fp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(ux),i=r(yr),a=r(R0),o=r(ia),l=aa;function u(c,h){var f,p,g,b,v,w,C,T;(0,i.default)(1,arguments);var E=(0,l.getDefaultOptions)(),S=(0,o.default)((f=(p=(g=(b=h==null?void 0:h.firstWeekContainsDate)!==null&&b!==void 0?b:h==null||(v=h.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:E.firstWeekContainsDate)!==null&&p!==void 0?p:(C=E.locale)===null||C===void 0||(T=C.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&f!==void 0?f:1),P=(0,n.default)(c,h),O=new Date(0);O.setUTCFullYear(P,0,S),O.setUTCHours(0,0,0,0);var N=(0,a.default)(O,h);return N}e.exports=t.default})(hp,hp.exports);var GI=hp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(En),i=r(R0),a=r(GI),o=r(yr),l=6048e5;function u(c,h){(0,o.default)(1,arguments);var f=(0,n.default)(c),p=(0,i.default)(f,h).getTime()-(0,a.default)(f,h).getTime();return Math.round(p/l)+1}e.exports=t.default})(cp,cp.exports);var UI=cp.exports,pp={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})(pp,pp.exports);var cx=pp.exports,mp={exports:{}};(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(cx),i={y:function(l,u){var c=l.getUTCFullYear(),h=c>0?c:1-c;return(0,n.default)(u==="yy"?h%100:h,u.length)},M:function(l,u){var c=l.getUTCMonth();return u==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,u){return(0,n.default)(l.getUTCDate(),u.length)},a:function(l,u){var c=l.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(l,u){return(0,n.default)(l.getUTCHours()%12||12,u.length)},H:function(l,u){return(0,n.default)(l.getUTCHours(),u.length)},m:function(l,u){return(0,n.default)(l.getUTCMinutes(),u.length)},s:function(l,u){return(0,n.default)(l.getUTCSeconds(),u.length)},S:function(l,u){var c=u.length,h=l.getUTCMilliseconds(),f=Math.floor(h*Math.pow(10,c-3));return(0,n.default)(f,u.length)}},a=i;t.default=a,e.exports=t.default})(mp,mp.exports);var YI=mp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(BI),i=r(HI),a=r(sx),o=r(UI),l=r(ux),u=r(cx),c=r(YI),h={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(C,T,E){var S=C.getUTCFullYear()>0?1:0;switch(T){case"G":case"GG":case"GGG":return E.era(S,{width:"abbreviated"});case"GGGGG":return E.era(S,{width:"narrow"});case"GGGG":default:return E.era(S,{width:"wide"})}},y:function(C,T,E){if(T==="yo"){var S=C.getUTCFullYear(),P=S>0?S:1-S;return E.ordinalNumber(P,{unit:"year"})}return c.default.y(C,T)},Y:function(C,T,E,S){var P=(0,l.default)(C,S),O=P>0?P:1-P;if(T==="YY"){var N=O%100;return(0,u.default)(N,2)}return T==="Yo"?E.ordinalNumber(O,{unit:"year"}):(0,u.default)(O,T.length)},R:function(C,T){var E=(0,a.default)(C);return(0,u.default)(E,T.length)},u:function(C,T){var E=C.getUTCFullYear();return(0,u.default)(E,T.length)},Q:function(C,T,E){var S=Math.ceil((C.getUTCMonth()+1)/3);switch(T){case"Q":return String(S);case"QQ":return(0,u.default)(S,2);case"Qo":return E.ordinalNumber(S,{unit:"quarter"});case"QQQ":return E.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return E.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return E.quarter(S,{width:"wide",context:"formatting"})}},q:function(C,T,E){var S=Math.ceil((C.getUTCMonth()+1)/3);switch(T){case"q":return String(S);case"qq":return(0,u.default)(S,2);case"qo":return E.ordinalNumber(S,{unit:"quarter"});case"qqq":return E.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return E.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return E.quarter(S,{width:"wide",context:"standalone"})}},M:function(C,T,E){var S=C.getUTCMonth();switch(T){case"M":case"MM":return c.default.M(C,T);case"Mo":return E.ordinalNumber(S+1,{unit:"month"});case"MMM":return E.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return E.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return E.month(S,{width:"wide",context:"formatting"})}},L:function(C,T,E){var S=C.getUTCMonth();switch(T){case"L":return String(S+1);case"LL":return(0,u.default)(S+1,2);case"Lo":return E.ordinalNumber(S+1,{unit:"month"});case"LLL":return E.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return E.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return E.month(S,{width:"wide",context:"standalone"})}},w:function(C,T,E,S){var P=(0,o.default)(C,S);return T==="wo"?E.ordinalNumber(P,{unit:"week"}):(0,u.default)(P,T.length)},I:function(C,T,E){var S=(0,i.default)(C);return T==="Io"?E.ordinalNumber(S,{unit:"week"}):(0,u.default)(S,T.length)},d:function(C,T,E){return T==="do"?E.ordinalNumber(C.getUTCDate(),{unit:"date"}):c.default.d(C,T)},D:function(C,T,E){var S=(0,n.default)(C);return T==="Do"?E.ordinalNumber(S,{unit:"dayOfYear"}):(0,u.default)(S,T.length)},E:function(C,T,E){var S=C.getUTCDay();switch(T){case"E":case"EE":case"EEE":return E.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return E.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return E.day(S,{width:"short",context:"formatting"});case"EEEE":default:return E.day(S,{width:"wide",context:"formatting"})}},e:function(C,T,E,S){var P=C.getUTCDay(),O=(P-S.weekStartsOn+8)%7||7;switch(T){case"e":return String(O);case"ee":return(0,u.default)(O,2);case"eo":return E.ordinalNumber(O,{unit:"day"});case"eee":return E.day(P,{width:"abbreviated",context:"formatting"});case"eeeee":return E.day(P,{width:"narrow",context:"formatting"});case"eeeeee":return E.day(P,{width:"short",context:"formatting"});case"eeee":default:return E.day(P,{width:"wide",context:"formatting"})}},c:function(C,T,E,S){var P=C.getUTCDay(),O=(P-S.weekStartsOn+8)%7||7;switch(T){case"c":return String(O);case"cc":return(0,u.default)(O,T.length);case"co":return E.ordinalNumber(O,{unit:"day"});case"ccc":return E.day(P,{width:"abbreviated",context:"standalone"});case"ccccc":return E.day(P,{width:"narrow",context:"standalone"});case"cccccc":return E.day(P,{width:"short",context:"standalone"});case"cccc":default:return E.day(P,{width:"wide",context:"standalone"})}},i:function(C,T,E){var S=C.getUTCDay(),P=S===0?7:S;switch(T){case"i":return String(P);case"ii":return(0,u.default)(P,T.length);case"io":return E.ordinalNumber(P,{unit:"day"});case"iii":return E.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return E.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return E.day(S,{width:"short",context:"formatting"});case"iiii":default:return E.day(S,{width:"wide",context:"formatting"})}},a:function(C,T,E){var S=C.getUTCHours(),P=S/12>=1?"pm":"am";switch(T){case"a":case"aa":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"aaa":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"aaaa":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},b:function(C,T,E){var S=C.getUTCHours(),P;switch(S===12?P=h.noon:S===0?P=h.midnight:P=S/12>=1?"pm":"am",T){case"b":case"bb":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"bbb":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"bbbb":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},B:function(C,T,E){var S=C.getUTCHours(),P;switch(S>=17?P=h.evening:S>=12?P=h.afternoon:S>=4?P=h.morning:P=h.night,T){case"B":case"BB":case"BBB":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"BBBBB":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"BBBB":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},h:function(C,T,E){if(T==="ho"){var S=C.getUTCHours()%12;return S===0&&(S=12),E.ordinalNumber(S,{unit:"hour"})}return c.default.h(C,T)},H:function(C,T,E){return T==="Ho"?E.ordinalNumber(C.getUTCHours(),{unit:"hour"}):c.default.H(C,T)},K:function(C,T,E){var S=C.getUTCHours()%12;return T==="Ko"?E.ordinalNumber(S,{unit:"hour"}):(0,u.default)(S,T.length)},k:function(C,T,E){var S=C.getUTCHours();return S===0&&(S=24),T==="ko"?E.ordinalNumber(S,{unit:"hour"}):(0,u.default)(S,T.length)},m:function(C,T,E){return T==="mo"?E.ordinalNumber(C.getUTCMinutes(),{unit:"minute"}):c.default.m(C,T)},s:function(C,T,E){return T==="so"?E.ordinalNumber(C.getUTCSeconds(),{unit:"second"}):c.default.s(C,T)},S:function(C,T){return c.default.S(C,T)},X:function(C,T,E,S){var P=S._originalDate||C,O=P.getTimezoneOffset();if(O===0)return"Z";switch(T){case"X":return g(O);case"XXXX":case"XX":return b(O);case"XXXXX":case"XXX":default:return b(O,":")}},x:function(C,T,E,S){var P=S._originalDate||C,O=P.getTimezoneOffset();switch(T){case"x":return g(O);case"xxxx":case"xx":return b(O);case"xxxxx":case"xxx":default:return b(O,":")}},O:function(C,T,E,S){var P=S._originalDate||C,O=P.getTimezoneOffset();switch(T){case"O":case"OO":case"OOO":return"GMT"+p(O,":");case"OOOO":default:return"GMT"+b(O,":")}},z:function(C,T,E,S){var P=S._originalDate||C,O=P.getTimezoneOffset();switch(T){case"z":case"zz":case"zzz":return"GMT"+p(O,":");case"zzzz":default:return"GMT"+b(O,":")}},t:function(C,T,E,S){var P=S._originalDate||C,O=Math.floor(P.getTime()/1e3);return(0,u.default)(O,T.length)},T:function(C,T,E,S){var P=S._originalDate||C,O=P.getTime();return(0,u.default)(O,T.length)}};function p(w,C){var T=w>0?"-":"+",E=Math.abs(w),S=Math.floor(E/60),P=E%60;if(P===0)return T+String(S);var O=C;return T+String(S)+O+(0,u.default)(P,2)}function g(w,C){if(w%60===0){var T=w>0?"-":"+";return T+(0,u.default)(Math.abs(w)/60,2)}return b(w,C)}function b(w,C){var T=C||"",E=w>0?"-":"+",S=Math.abs(w),P=(0,u.default)(Math.floor(S/60),2),O=(0,u.default)(S%60,2);return E+P+T+O}var v=f;t.default=v,e.exports=t.default})(ip,ip.exports);var qI=ip.exports,gp={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 h=u.match(/(P+)(p+)?/)||[],f=h[1],p=h[2];if(!p)return r(u,c);var g;switch(f){case"P":g=c.dateTime({width:"short"});break;case"PP":g=c.dateTime({width:"medium"});break;case"PPP":g=c.dateTime({width:"long"});break;case"PPPP":default:g=c.dateTime({width:"full"});break}return g.replace("{{date}}",r(f,c)).replace("{{time}}",n(p,c))},a={p:n,P:i},o=a;t.default=o,e.exports=t.default})(gp,gp.exports);var XI=gp.exports,vp={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})(vp,vp.exports);var dx=vp.exports;const h1=y.getDefaultExportFromCjs(dx);var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.isProtectedDayOfYearToken=QI;vl.isProtectedWeekYearToken=JI;vl.throwProtectedError=e6;var ZI=["D","DD"],KI=["YY","YYYY"];function QI(e){return ZI.indexOf(e)!==-1}function JI(e){return KI.indexOf(e)!==-1}function e6(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 yp={exports:{}},bp={exports:{}},_p={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,l,u){var c,h=r[o];return typeof h=="string"?c=h:l===1?c=h.one:c=h.other.replace("{{count}}",l.toString()),u!=null&&u.addSuffix?u.comparison&&u.comparison>0?"in "+c:c+" ago":c},i=n;t.default=i,e.exports=t.default})(_p,_p.exports);var t6=_p.exports,wp={exports:{}},xp={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})(xp,xp.exports);var r6=xp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(r6),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}}"},l={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=l;t.default=u,e.exports=t.default})(wp,wp.exports);var n6=wp.exports,Cp={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,l,u,c){return r[o]},i=n;t.default=i,e.exports=t.default})(Cp,Cp.exports);var i6=Cp.exports,Tp={exports:{}},Mp={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",l;if(o==="formatting"&&n.formattingValues){var u=n.defaultFormattingWidth||n.defaultWidth,c=a!=null&&a.width?String(a.width):u;l=n.formattingValues[c]||n.formattingValues[u]}else{var h=n.defaultWidth,f=a!=null&&a.width?String(a.width):n.defaultWidth;l=n.values[f]||n.values[h]}var p=n.argumentCallback?n.argumentCallback(i):i;return l[p]}}e.exports=t.default})(Mp,Mp.exports);var a6=Mp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a6),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"]},l={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"}},h=function(b,v){var w=Number(b),C=w%100;if(C>20||C<10)switch(C%10){case 1:return w+"st";case 2:return w+"nd";case 3:return w+"rd"}return w+"th"},f={ordinalNumber:h,era:(0,n.default)({values:i,defaultWidth:"wide"}),quarter:(0,n.default)({values:a,defaultWidth:"wide",argumentCallback:function(b){return b-1}}),month:(0,n.default)({values:o,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:u,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},p=f;t.default=p,e.exports=t.default})(Tp,Tp.exports);var o6=Tp.exports,Sp={exports:{}},Ep={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=l.width,c=u&&a.matchPatterns[u]||a.matchPatterns[a.defaultMatchWidth],h=o.match(c);if(!h)return null;var f=h[0],p=u&&a.parsePatterns[u]||a.parsePatterns[a.defaultParseWidth],g=Array.isArray(p)?i(p,function(w){return w.test(f)}):n(p,function(w){return w.test(f)}),b;b=a.valueCallback?a.valueCallback(g):g,b=l.valueCallback?l.valueCallback(b):b;var v=o.slice(f.length);return{value:b,rest:v}}}function n(a,o){for(var l in a)if(a.hasOwnProperty(l)&&o(a[l]))return l}function i(a,o){for(var l=0;l<a.length;l++)if(o(a[l]))return l}e.exports=t.default})(Ep,Ep.exports);var s6=Ep.exports,Pp={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 l=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 h=i.slice(l.length);return{value:c,rest:h}}}e.exports=t.default})(Pp,Pp.exports);var l6=Pp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(s6),i=r(l6),a=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,l={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},h={any:[/1/i,/2/i,/3/i,/4/i]},f={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]},g={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},b={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]},v={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},w={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(S){return parseInt(S,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:b,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:v,defaultMatchWidth:"any",parsePatterns:w,defaultParseWidth:"any"})},T=C;t.default=T,e.exports=t.default})(Sp,Sp.exports);var u6=Sp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(t6),i=r(n6),a=r(i6),o=r(o6),l=r(u6),u={code:"en-US",formatDistance:n.default,formatLong:i.default,formatRelative:a.default,localize:o.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=u;t.default=c,e.exports=t.default})(bp,bp.exports);var c6=bp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(c6),i=n.default;t.default=i,e.exports=t.default})(yp,yp.exports);var d6=yp.exports;(function(e,t){var r=Pt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=E;var n=r(II),i=r(zI),a=r(En),o=r(qI),l=r(XI),u=r(dx),c=vl,h=r(ia),f=r(yr),p=aa,g=r(d6),b=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w=/^'([^]*?)'?$/,C=/''/g,T=/[a-zA-Z]/;function E(P,O,N){var z,U,Z,K,R,I,X,j,V,W,G,re,F,Y,ne,ie,te,oe;(0,f.default)(2,arguments);var le=String(O),de=(0,p.getDefaultOptions)(),ce=(z=(U=N==null?void 0:N.locale)!==null&&U!==void 0?U:de.locale)!==null&&z!==void 0?z:g.default,ve=(0,h.default)((Z=(K=(R=(I=N==null?void 0:N.firstWeekContainsDate)!==null&&I!==void 0?I:N==null||(X=N.locale)===null||X===void 0||(j=X.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&R!==void 0?R:de.firstWeekContainsDate)!==null&&K!==void 0?K:(V=de.locale)===null||V===void 0||(W=V.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&Z!==void 0?Z:1);if(!(ve>=1&&ve<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ce=(0,h.default)((G=(re=(F=(Y=N==null?void 0:N.weekStartsOn)!==null&&Y!==void 0?Y:N==null||(ne=N.locale)===null||ne===void 0||(ie=ne.options)===null||ie===void 0?void 0:ie.weekStartsOn)!==null&&F!==void 0?F:de.weekStartsOn)!==null&&re!==void 0?re:(te=de.locale)===null||te===void 0||(oe=te.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&G!==void 0?G:0);if(!(Ce>=0&&Ce<=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)(P);if(!(0,n.default)(ye))throw new RangeError("Invalid time value");var J=(0,u.default)(ye),we=(0,i.default)(ye,J),Ee={firstWeekContainsDate:ve,weekStartsOn:Ce,locale:ce,_originalDate:ye},ke=le.match(v).map(function($e){var je=$e[0];if(je==="p"||je==="P"){var Ue=l.default[je];return Ue($e,ce.formatLong)}return $e}).join("").match(b).map(function($e){if($e==="''")return"'";var je=$e[0];if(je==="'")return S($e);var Ue=o.default[je];if(Ue)return!(N!=null&&N.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)($e)&&(0,c.throwProtectedError)($e,O,String(P)),!(N!=null&&N.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)($e)&&(0,c.throwProtectedError)($e,O,String(P)),Ue(we,$e,ce.localize,Ee);if(je.match(T))throw new RangeError("Format string contains an unescaped latin alphabet character `"+je+"`");return $e}).join("");return ke}function S(P){var O=P.match(w);return O?O[1].replace(C,"'"):P}e.exports=t.default})(Zf,Zf.exports);var h6=Zf.exports;const f6=y.getDefaultExportFromCjs(h6);function f1(e,t,r){var n=g6(e,r.timeZone,r.locale);return n.formatToParts?p6(n,t):m6(n,t)}function p6(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 m6(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function g6(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 v6(e,t){var r=w6(t);return r.formatToParts?b6(r,e):_6(r,e)}var y6={year:0,month:1,day:2,hour:3,minute:4,second:5};function b6(e,t){try{for(var r=e.formatToParts(t),n=[],i=0;i<r.length;i++){var a=y6[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 _6(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 Gh={};function w6(e){if(!Gh[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";Gh[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 Gh[e]}function hx(e,t,r,n,i,a,o){var l=new Date(0);return l.setUTCFullYear(e,t,r),l.setUTCHours(n,i,a,o),l}var p1=36e5,x6=6e4,Uh={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function O0(e,t,r){var n,i;if(!e||(n=Uh.timezoneZ.exec(e),n))return 0;var a;if(n=Uh.timezoneHH.exec(e),n)return a=parseInt(n[1],10),m1(a)?-(a*p1):NaN;if(n=Uh.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return m1(a,o)?(i=Math.abs(a)*p1+o*x6,n[1]==="+"?-i:i):NaN}if(M6(e)){t=new Date(t||Date.now());var l=r?t:C6(t),u=Ap(l,e),c=r?u:T6(t,u,e);return-c}return NaN}function C6(e){return hx(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Ap(e,t){var r=v6(e,t),n=hx(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 T6(e,t,r){var n=e.getTime(),i=n-t,a=Ap(new Date(i),r);if(t===a)return t;i-=a-t;var o=Ap(new Date(i),r);return a===o?a:Math.max(a,o)}function m1(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var g1={};function M6(e){if(g1[e])return!0;try{return g1[e]=!0,!0}catch(t){return!1}}var S6=60*1e3,E6={X:function(e,t,r,n){var i=Yh(n.timeZone,e);if(i===0)return"Z";switch(t){case"X":return v1(i);case"XXXX":case"XX":return $a(i);case"XXXXX":case"XXX":default:return $a(i,":")}},x:function(e,t,r,n){var i=Yh(n.timeZone,e);switch(t){case"x":return v1(i);case"xxxx":case"xx":return $a(i);case"xxxxx":case"xxx":default:return $a(i,":")}},O:function(e,t,r,n){var i=Yh(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+P6(i,":");case"OOOO":default:return"GMT"+$a(i,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return f1("short",e,n);case"zzzz":default:return f1("long",e,n)}}};function Yh(e,t){var r=e?O0(e,t,!0)/S6:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function mc(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function $a(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),a=mc(Math.floor(i/60),2),o=mc(Math.floor(i%60),2);return n+a+r+o}function v1(e,t){if(e%60===0){var r=e>0?"-":"+";return r+mc(Math.abs(e)/60,2)}return $a(e,t)}function P6(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+mc(a,2)}var A6=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,qh=36e5,y1=6e4,R6=2,fr={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:A6};function fx(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?R6:$I(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=O6(e),a=k6(i.date,n),o=a.year,l=a.restDateString,u=D6(l,o);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),h=0,f;if(i.time&&(h=N6(i.time),isNaN(h)))return new Date(NaN);if(i.timeZone||r.timeZone){if(f=O0(i.timeZone||r.timeZone,new Date(c+h)),isNaN(f))return new Date(NaN)}else f=h1(new Date(c+h)),f=h1(new Date(c+h+f));return new Date(c+h+f)}else return new Date(NaN)}function O6(e){var t={},r=fr.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=fr.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var i=fr.timeZone.exec(n);i?(t.time=n.replace(i[1],""),t.timeZone=i[1].trim()):t.time=n}return t}function k6(e,t){var r=fr.YYY[t],n=fr.YYYYY[t],i;if(i=fr.YYYY.exec(e)||n.exec(e),i){var a=i[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(i=fr.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 D6(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=fr.MM.exec(e),r)return n=new Date(0),i=parseInt(r[1],10)-1,_1(t,i)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(r=fr.DDD.exec(e),r){n=new Date(0);var o=parseInt(r[1],10);return $6(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(r=fr.MMDD.exec(e),r){n=new Date(0),i=parseInt(r[1],10)-1;var l=parseInt(r[2],10);return _1(t,i,l)?(n.setUTCFullYear(t,i,l),n):new Date(NaN)}if(r=fr.Www.exec(e),r)return a=parseInt(r[1],10)-1,w1(t,a)?b1(t,a):new Date(NaN);if(r=fr.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return w1(t,a,u)?b1(t,a,u):new Date(NaN)}return null}function N6(e){var t,r,n;if(t=fr.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),Xh(r)?r%24*qh:NaN;if(t=fr.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),Xh(r,n)?r%24*qh+n*y1:NaN;if(t=fr.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return Xh(r,n,i)?r%24*qh+n*y1+i*1e3:NaN}return null}function b1(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 L6=[31,28,31,30,31,30,31,31,30,31,30,31],I6=[31,29,31,30,31,30,31,31,30,31,30,31];function px(e){return e%400===0||e%4===0&&e%100!==0}function _1(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=px(e);if(n&&r>I6[t]||!n&&r>L6[t])return!1}return!0}function $6(e,t){if(t<1)return!1;var r=px(e);return!(r&&t>366||!r&&t>365)}function w1(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function Xh(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var F6=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function z6(e,t,r){var n=String(t),i=r||{},a=n.match(F6);if(a){var o=fx(i.originalDate||e,i);n=a.reduce(function(l,u){if(u[0]==="'")return l;var c=l.indexOf(u),h=l[c-1]==="'",f=l.replace(u,"'"+E6[u[0]](o,u,null,i)+"'");return h?f.substring(0,c-1)+f.substring(c+1):f},n)}return f6(e,n,i)}function B6(e,t,r){var n=fx(e,r),i=O0(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 Xi(e,t,r,n){var i=NI(n);return i.timeZone=t,i.originalDate=e,z6(B6(e,t),r,i)}function gc(e){"@babel/helpers - typeof";return gc=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},gc(e)}function Ir(e){y.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||gc(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 x1(e,t){y.requiredArgs(2,arguments);var r=Ir(e),n=y.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function W6(e,t){y.requiredArgs(2,arguments);var r=Ir(e),n=y.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 mx(e,t){y.requiredArgs(2,arguments);var r=y.toInteger(t);return W6(e,r*12)}var H6={};function k0(){return H6}function Rp(e,t){var r,n,i,a,o,l,u,c;y.requiredArgs(1,arguments);var h=k0(),f=y.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||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&n!==void 0?n:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ir(e),g=p.getUTCDay(),b=(g<f?7:0)+g-f;return p.setUTCDate(p.getUTCDate()-b),p.setUTCHours(0,0,0,0),p}var j6={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"}},gx=function(t,r,n){var i,a=j6[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 ze(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 V6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},G6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},U6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Y6={date:ze({formats:V6,defaultWidth:"full"}),time:ze({formats:G6,defaultWidth:"full"}),dateTime:ze({formats:U6,defaultWidth:"full"})},q6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vx=function(t,r,n,i){return q6[t]};function Te(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 l=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var X6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Z6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},K6={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"]},Q6={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"]},J6={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"}},e$={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"}},t$=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"},yx={ordinalNumber:t$,era:Te({values:X6,defaultWidth:"wide"}),quarter:Te({values:Z6,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:K6,defaultWidth:"wide"}),day:Te({values:Q6,defaultWidth:"wide"}),dayPeriod:Te({values:J6,defaultWidth:"wide",formattingValues:e$,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],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?n$(l,function(f){return f.test(o)}):r$(l,function(f){return f.test(o)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var h=t.slice(o.length);return{value:c,rest:h}}}function r$(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function n$(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function $r(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 l=t.slice(i.length);return{value:o,rest:l}}}var i$=/^(\d+)(th|st|nd|rd)?/i,a$=/\d+/i,o$={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},s$={any:[/^b/i,/^(a|c)/i]},l$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},u$={any:[/1/i,/2/i,/3/i,/4/i]},c$={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},d$={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]},h$={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},f$={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]},p$={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},m$={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}},bx={ordinalNumber:$r({matchPattern:i$,parsePattern:a$,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:o$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),quarter:Me({matchPatterns:l$,defaultMatchWidth:"wide",parsePatterns:u$,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:c$,defaultMatchWidth:"wide",parsePatterns:d$,defaultParseWidth:"any"}),day:Me({matchPatterns:h$,defaultMatchWidth:"wide",parsePatterns:f$,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:p$,defaultMatchWidth:"any",parsePatterns:m$,defaultParseWidth:"any"})},Op={code:"en-US",formatDistance:gx,formatLong:Y6,formatRelative:vx,localize:yx,match:bx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function g$(e,t){var r,n,i,a,o,l,u,c;y.requiredArgs(1,arguments);var h=k0(),f=y.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||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&n!==void 0?n:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ir(e),g=p.getDay(),b=(g<f?7:0)+g-f;return p.setDate(p.getDate()-b),p.setHours(0,0,0,0),p}function v$(e){y.requiredArgs(1,arguments);var t=Ir(e);return t.setHours(0,0,0,0),t}function y$(e){y.requiredArgs(1,arguments);var t=Ir(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function b$(e){y.requiredArgs(1,arguments);var t=Ir(e);return t.setDate(1),t.setHours(0,0,0,0),t}function _$(e){y.requiredArgs(1,arguments);var t=Ir(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function w$(e){y.requiredArgs(1,arguments);var t=Ir(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 x$(e,t){y.requiredArgs(2,arguments);var r=Ir(e),n=y.toInteger(t),i=r.getFullYear(),a=r.getDate(),o=new Date(0);o.setFullYear(i,n,15),o.setHours(0,0,0,0);var l=w$(o);return r.setMonth(n,Math.min(a,l)),r}function _x(e,t){y.requiredArgs(2,arguments);var r=y.toInteger(t);return mx(e,-r)}function Zi(e,t,r){y.requiredArgs(2,arguments);var n=Rp(e,r),i=Rp(t,r);return n.getTime()===i.getTime()}var C1={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"}}},C$=function(t,r,n){var i,a=n!=null&&n.addSuffix?C1[t].withPreposition:C1[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},T$={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},M$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},S$={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},E$={date:ze({formats:T$,defaultWidth:"full"}),time:ze({formats:M$,defaultWidth:"full"}),dateTime:ze({formats:S$,defaultWidth:"full"})},P$={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},A$=function(t,r,n,i){return P$[t]},R$={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},O$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},kp={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"]},k$={narrow:kp.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:kp.wide},D$={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"]},N$={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"}},L$={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"}},I$=function(t){var r=Number(t);return r+"."},$$={ordinalNumber:I$,era:Te({values:R$,defaultWidth:"wide"}),quarter:Te({values:O$,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:kp,formattingValues:k$,defaultWidth:"wide"}),day:Te({values:D$,defaultWidth:"wide"}),dayPeriod:Te({values:N$,defaultWidth:"wide",formattingValues:L$,defaultFormattingWidth:"wide"})},F$=/^(\d+)(\.)?/i,z$=/\d+/i,B$={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},W$={any:[/^v/i,/^n/i]},H$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},j$={any:[/1/i,/2/i,/3/i,/4/i]},V$={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},G$={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]},U$={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},Y$={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},q$={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},X$={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}},Z$={ordinalNumber:$r({matchPattern:F$,parsePattern:z$,valueCallback:function(t){return parseInt(t)}}),era:Me({matchPatterns:B$,defaultMatchWidth:"wide",parsePatterns:W$,defaultParseWidth:"any"}),quarter:Me({matchPatterns:H$,defaultMatchWidth:"wide",parsePatterns:j$,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:V$,defaultMatchWidth:"wide",parsePatterns:G$,defaultParseWidth:"any"}),day:Me({matchPatterns:U$,defaultMatchWidth:"wide",parsePatterns:Y$,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:q$,defaultMatchWidth:"wide",parsePatterns:X$,defaultParseWidth:"any"})},K$={code:"de",formatDistance:C$,formatLong:E$,formatRelative:A$,localize:$$,match:Z$,options:{weekStartsOn:1,firstWeekContainsDate:4}},Q$={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},J$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},e8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},t8={date:ze({formats:Q$,defaultWidth:"full"}),time:ze({formats:J$,defaultWidth:"full"}),dateTime:ze({formats:e8,defaultWidth:"full"})},r8={code:"en-GB",formatDistance:gx,formatLong:t8,formatRelative:vx,localize:yx,match:bx,options:{weekStartsOn:1,firstWeekContainsDate:4}},n8={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"}},i8=function(t,r,n){var i,a=n8[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},a8={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},o8={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},s8={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l8={date:ze({formats:a8,defaultWidth:"full"}),time:ze({formats:o8,defaultWidth:"full"}),dateTime:ze({formats:s8,defaultWidth:"full"})},u8={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"},c8={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"},d8=function(t,r,n,i){return r.getUTCHours()!==1?c8[t]:u8[t]},h8={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},f8={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},p8={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"]},m8={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"]},g8={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"}},v8={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"}},y8=function(t,r){var n=Number(t);return n+"º"},b8={ordinalNumber:y8,era:Te({values:h8,defaultWidth:"wide"}),quarter:Te({values:f8,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Te({values:p8,defaultWidth:"wide"}),day:Te({values:m8,defaultWidth:"wide"}),dayPeriod:Te({values:g8,defaultWidth:"wide",formattingValues:v8,defaultFormattingWidth:"wide"})},_8=/^(\d+)(º)?/i,w8=/\d+/i,x8={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},C8={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]},T8={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},M8={any:[/1/i,/2/i,/3/i,/4/i]},S8={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},E8={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]},P8={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},A8={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]},R8={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},O8={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}},k8={ordinalNumber:$r({matchPattern:_8,parsePattern:w8,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:x8,defaultMatchWidth:"wide",parsePatterns:C8,defaultParseWidth:"any"}),quarter:Me({matchPatterns:T8,defaultMatchWidth:"wide",parsePatterns:M8,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:S8,defaultMatchWidth:"wide",parsePatterns:E8,defaultParseWidth:"any"}),day:Me({matchPatterns:P8,defaultMatchWidth:"wide",parsePatterns:A8,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:R8,defaultMatchWidth:"any",parsePatterns:O8,defaultParseWidth:"any"})},D8={code:"es",formatDistance:i8,formatLong:l8,formatRelative:d8,localize:b8,match:k8,options:{weekStartsOn:1,firstWeekContainsDate:1}},N8={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"}},L8=function(t,r,n){var i,a=N8[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},I8={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},$8={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},F8={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},z8={date:ze({formats:I8,defaultWidth:"full"}),time:ze({formats:$8,defaultWidth:"full"}),dateTime:ze({formats:F8,defaultWidth:"full"})},B8={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},W8=function(t,r,n,i){return B8[t]},H8={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},j8={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"]},V8={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"]},G8={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"]},U8={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"}},Y8=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},q8={ordinalNumber:Y8,era:Te({values:H8,defaultWidth:"wide"}),quarter:Te({values:j8,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:V8,defaultWidth:"wide"}),day:Te({values:G8,defaultWidth:"wide"}),dayPeriod:Te({values:U8,defaultWidth:"wide"})},X8=/^(\d+)(ième|ère|ème|er|e)?/i,Z8=/\d+/i,K8={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},Q8={any:[/^av/i,/^ap/i]},J8={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},eF={any:[/1/i,/2/i,/3/i,/4/i]},tF={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},rF={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]},nF={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},iF={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]},aF={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},oF={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}},sF={ordinalNumber:$r({matchPattern:X8,parsePattern:Z8,valueCallback:function(t){return parseInt(t)}}),era:Me({matchPatterns:K8,defaultMatchWidth:"wide",parsePatterns:Q8,defaultParseWidth:"any"}),quarter:Me({matchPatterns:J8,defaultMatchWidth:"wide",parsePatterns:eF,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:tF,defaultMatchWidth:"wide",parsePatterns:rF,defaultParseWidth:"any"}),day:Me({matchPatterns:nF,defaultMatchWidth:"wide",parsePatterns:iF,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:aF,defaultMatchWidth:"any",parsePatterns:oF,defaultParseWidth:"any"})},lF={code:"fr",formatDistance:L8,formatLong:z8,formatRelative:W8,localize:q8,match:sF,options:{weekStartsOn:1,firstWeekContainsDate:4}},uF={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"}},cF=function(t,r,n){var i,a=uF[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},dF={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},hF={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fF={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pF={date:ze({formats:dF,defaultWidth:"full"}),time:ze({formats:hF,defaultWidth:"full"}),dateTime:ze({formats:fF,defaultWidth:"full"})},D0=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function mF(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+D0[e]+" scorso alle' p"}}function T1(e){return"'"+D0[e]+" alle' p"}function gF(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+D0[e]+" prossimo alle' p"}}var vF={lastWeek:function(t,r,n){var i=t.getUTCDay();return Zi(t,r,n)?T1(i):mF(i)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return Zi(t,r,n)?T1(i):gF(i)},other:"P"},yF=function(t,r,n,i){var a=vF[t];return typeof a=="function"?a(r,n,i):a},bF={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},_F={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},wF={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"]},xF={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"]},CF={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"}},TF={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"}},MF=function(t,r){var n=Number(t);return String(n)},SF={ordinalNumber:MF,era:Te({values:bF,defaultWidth:"wide"}),quarter:Te({values:_F,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:wF,defaultWidth:"wide"}),day:Te({values:xF,defaultWidth:"wide"}),dayPeriod:Te({values:CF,defaultWidth:"wide",formattingValues:TF,defaultFormattingWidth:"wide"})},EF=/^(\d+)(º)?/i,PF=/\d+/i,AF={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},RF={any:[/^a/i,/^(d|e)/i]},OF={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},kF={any:[/1/i,/2/i,/3/i,/4/i]},DF={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},NF={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]},LF={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},IF={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]},$F={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},FF={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}},zF={ordinalNumber:$r({matchPattern:EF,parsePattern:PF,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:AF,defaultMatchWidth:"wide",parsePatterns:RF,defaultParseWidth:"any"}),quarter:Me({matchPatterns:OF,defaultMatchWidth:"wide",parsePatterns:kF,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:DF,defaultMatchWidth:"wide",parsePatterns:NF,defaultParseWidth:"any"}),day:Me({matchPatterns:LF,defaultMatchWidth:"wide",parsePatterns:IF,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:$F,defaultMatchWidth:"any",parsePatterns:FF,defaultParseWidth:"any"})},BF={code:"it",formatDistance:cF,formatLong:pF,formatRelative:yF,localize:SF,match:zF,options:{weekStartsOn:1,firstWeekContainsDate:4}},WF={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}}年近く"}},HF=function(t,r,n){n=n||{};var i,a=WF[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},jF={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},VF={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},GF={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},UF={date:ze({formats:jF,defaultWidth:"full"}),time:ze({formats:VF,defaultWidth:"full"}),dateTime:ze({formats:GF,defaultWidth:"full"})},YF={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},qF=function(t,r,n,i){return YF[t]},XF={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},ZF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},KF={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月"]},QF={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},JF={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:"深夜"}},e7={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:"深夜"}},t7=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)}},r7={ordinalNumber:t7,era:Te({values:XF,defaultWidth:"wide"}),quarter:Te({values:ZF,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Te({values:KF,defaultWidth:"wide"}),day:Te({values:QF,defaultWidth:"wide"}),dayPeriod:Te({values:JF,defaultWidth:"wide",formattingValues:e7,defaultFormattingWidth:"wide"})},n7=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,i7=/\d+/i,a7={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},o7={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},s7={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},l7={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},u7={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},c7={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},d7={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},h7={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},f7={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},p7={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},m7={ordinalNumber:$r({matchPattern:n7,parsePattern:i7,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:a7,defaultMatchWidth:"wide",parsePatterns:o7,defaultParseWidth:"any"}),quarter:Me({matchPatterns:s7,defaultMatchWidth:"wide",parsePatterns:l7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:u7,defaultMatchWidth:"wide",parsePatterns:c7,defaultParseWidth:"any"}),day:Me({matchPatterns:d7,defaultMatchWidth:"wide",parsePatterns:h7,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:f7,defaultMatchWidth:"any",parsePatterns:p7,defaultParseWidth:"any"})},g7={code:"ja",formatDistance:HF,formatLong:UF,formatRelative:qF,localize:r7,match:m7,options:{weekStartsOn:0,firstWeekContainsDate:1}},v7={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}}년"}},y7=function(t,r,n){var i,a=v7[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},b7={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},_7={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},w7={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},x7={date:ze({formats:b7,defaultWidth:"full"}),time:ze({formats:_7,defaultWidth:"full"}),dateTime:ze({formats:w7,defaultWidth:"full"})},C7={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},T7=function(t,r,n,i){return C7[t]},M7={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},S7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},E7={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월"]},P7={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},A7={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:"밤"}},R7={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:"밤"}},O7=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+"번째"}},k7={ordinalNumber:O7,era:Te({values:M7,defaultWidth:"wide"}),quarter:Te({values:S7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:E7,defaultWidth:"wide"}),day:Te({values:P7,defaultWidth:"wide"}),dayPeriod:Te({values:A7,defaultWidth:"wide",formattingValues:R7,defaultFormattingWidth:"wide"})},D7=/^(\d+)(일|번째)?/i,N7=/\d+/i,L7={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},I7={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},$7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},F7={any:[/1/i,/2/i,/3/i,/4/i]},z7={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},B7={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},W7={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},H7={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},j7={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},V7={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},G7={ordinalNumber:$r({matchPattern:D7,parsePattern:N7,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:L7,defaultMatchWidth:"wide",parsePatterns:I7,defaultParseWidth:"any"}),quarter:Me({matchPatterns:$7,defaultMatchWidth:"wide",parsePatterns:F7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:z7,defaultMatchWidth:"wide",parsePatterns:B7,defaultParseWidth:"any"}),day:Me({matchPatterns:W7,defaultMatchWidth:"wide",parsePatterns:H7,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:j7,defaultMatchWidth:"any",parsePatterns:V7,defaultParseWidth:"any"})},U7={code:"ko",formatDistance:y7,formatLong:x7,formatRelative:T7,localize:k7,match:G7,options:{weekStartsOn:0,firstWeekContainsDate:1}},Y7={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"}},q7=function(t,r,n){var i,a=Y7[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},X7={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Z7={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},K7={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Q7={date:ze({formats:X7,defaultWidth:"full"}),time:ze({formats:Z7,defaultWidth:"full"}),dateTime:ze({formats:K7,defaultWidth:"full"})},J7={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},e9=function(t,r,n,i){return J7[t]},t9={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},r9={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},n9={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"]},i9={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"]},a9={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"}},o9=function(t,r){var n=Number(t);return n+"e"},s9={ordinalNumber:o9,era:Te({values:t9,defaultWidth:"wide"}),quarter:Te({values:r9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:n9,defaultWidth:"wide"}),day:Te({values:i9,defaultWidth:"wide"}),dayPeriod:Te({values:a9,defaultWidth:"wide"})},l9=/^(\d+)e?/i,u9=/\d+/i,c9={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},d9={any:[/^v/,/^n/]},h9={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},f9={any:[/1/i,/2/i,/3/i,/4/i]},p9={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},m9={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]},g9={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},v9={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]},y9={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},b9={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}},_9={ordinalNumber:$r({matchPattern:l9,parsePattern:u9,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:c9,defaultMatchWidth:"wide",parsePatterns:d9,defaultParseWidth:"any"}),quarter:Me({matchPatterns:h9,defaultMatchWidth:"wide",parsePatterns:f9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:p9,defaultMatchWidth:"wide",parsePatterns:m9,defaultParseWidth:"any"}),day:Me({matchPatterns:g9,defaultMatchWidth:"wide",parsePatterns:v9,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:y9,defaultMatchWidth:"any",parsePatterns:b9,defaultParseWidth:"any"})},w9={code:"nl",formatDistance:q7,formatLong:Q7,formatRelative:e9,localize:s9,match:_9,options:{weekStartsOn:1,firstWeekContainsDate:4}},x9={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"}},C9=function(t,r,n){var i,a=x9[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},T9={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},M9={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},S9={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},E9={date:ze({formats:T9,defaultWidth:"full"}),time:ze({formats:M9,defaultWidth:"full"}),dateTime:ze({formats:S9,defaultWidth:"full"})},P9={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"},A9=function(t,r,n,i){var a=P9[t];return typeof a=="function"?a(r):a},R9={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},O9={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},k9={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"]},D9={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"]},N9={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"}},L9={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"}},I9=function(t,r){var n=Number(t);return n+"º"},$9={ordinalNumber:I9,era:Te({values:R9,defaultWidth:"wide"}),quarter:Te({values:O9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:k9,defaultWidth:"wide"}),day:Te({values:D9,defaultWidth:"wide"}),dayPeriod:Te({values:N9,defaultWidth:"wide",formattingValues:L9,defaultFormattingWidth:"wide"})},F9=/^(\d+)(º|ª)?/i,z9=/\d+/i,B9={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},W9={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},H9={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},j9={any:[/1/i,/2/i,/3/i,/4/i]},V9={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},G9={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]},U9={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},Y9={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]},q9={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},X9={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}},Z9={ordinalNumber:$r({matchPattern:F9,parsePattern:z9,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:B9,defaultMatchWidth:"wide",parsePatterns:W9,defaultParseWidth:"any"}),quarter:Me({matchPatterns:H9,defaultMatchWidth:"wide",parsePatterns:j9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:V9,defaultMatchWidth:"wide",parsePatterns:G9,defaultParseWidth:"any"}),day:Me({matchPatterns:U9,defaultMatchWidth:"wide",parsePatterns:Y9,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:q9,defaultMatchWidth:"any",parsePatterns:X9,defaultParseWidth:"any"})},K9={code:"pt",formatDistance:C9,formatLong:E9,formatRelative:A9,localize:$9,match:Z9,options:{weekStartsOn:1,firstWeekContainsDate:4}};function Qo(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 lr(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?Qo(e.future,t):"через "+Qo(e.regular,t):e.past?Qo(e.past,t):Qo(e.regular,t)+" назад":Qo(e.regular,t)}}var Q9={lessThanXSeconds:lr({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:lr({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:lr({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:lr({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:lr({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:lr({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:lr({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:lr({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:lr({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:lr({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:lr({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:lr({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:lr({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:lr({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:lr({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},J9=function(t,r,n){return Q9[t](r,n)},ez={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},tz={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},rz={any:"{{date}}, {{time}}"},nz={date:ze({formats:ez,defaultWidth:"full"}),time:ze({formats:tz,defaultWidth:"full"}),dateTime:ze({formats:rz,defaultWidth:"any"})},N0=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function iz(e){var t=N0[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 M1(e){var t=N0[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function az(e){var t=N0[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 oz={lastWeek:function(t,r,n){var i=t.getUTCDay();return Zi(t,r,n)?M1(i):iz(i)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return Zi(t,r,n)?M1(i):az(i)},other:"P"},sz=function(t,r,n,i){var a=oz[t];return typeof a=="function"?a(r,n,i):a},lz={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},uz={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},cz={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},dz={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},hz={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},fz={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:"ночь"}},pz={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:"ночи"}},mz=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},gz={ordinalNumber:mz,era:Te({values:lz,defaultWidth:"wide"}),quarter:Te({values:uz,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:cz,defaultWidth:"wide",formattingValues:dz,defaultFormattingWidth:"wide"}),day:Te({values:hz,defaultWidth:"wide"}),dayPeriod:Te({values:fz,defaultWidth:"any",formattingValues:pz,defaultFormattingWidth:"wide"})},vz=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,yz=/\d+/i,bz={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},_z={any:[/^д/i,/^н/i]},wz={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},xz={any:[/1/i,/2/i,/3/i,/4/i]},Cz={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},Tz={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]},Mz={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Sz={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Ez={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},Pz={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},Az={ordinalNumber:$r({matchPattern:vz,parsePattern:yz,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:bz,defaultMatchWidth:"wide",parsePatterns:_z,defaultParseWidth:"any"}),quarter:Me({matchPatterns:wz,defaultMatchWidth:"wide",parsePatterns:xz,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:Cz,defaultMatchWidth:"wide",parsePatterns:Tz,defaultParseWidth:"any"}),day:Me({matchPatterns:Mz,defaultMatchWidth:"wide",parsePatterns:Sz,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:Ez,defaultMatchWidth:"wide",parsePatterns:Pz,defaultParseWidth:"any"})},Rz={code:"ru",formatDistance:J9,formatLong:nz,formatRelative:sz,localize:gz,match:Az,options:{weekStartsOn:1,firstWeekContainsDate:1}},Oz={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"}},kz=function(t,r,n){var i,a=Oz[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},Dz={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},Nz={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Lz={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Iz={date:ze({formats:Dz,defaultWidth:"full"}),time:ze({formats:Nz,defaultWidth:"full"}),dateTime:ze({formats:Lz,defaultWidth:"full"})},$z={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"},Fz=function(t,r,n,i){return $z[t]},zz={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},Bz={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},Wz={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"]},Hz={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"]},jz={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"}},Vz={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"}},Gz=function(t,r){var n=Number(t);return n+"."},Uz={ordinalNumber:Gz,era:Te({values:zz,defaultWidth:"wide"}),quarter:Te({values:Bz,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Te({values:Wz,defaultWidth:"wide"}),day:Te({values:Hz,defaultWidth:"wide"}),dayPeriod:Te({values:jz,defaultWidth:"wide",formattingValues:Vz,defaultFormattingWidth:"wide"})},Yz=/^(\d+)(\.)?/i,qz=/\d+/i,Xz={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},Zz={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},Kz={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},Qz={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]},Jz={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},eB={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]},tB={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},rB={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]},nB={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},iB={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}},aB={ordinalNumber:$r({matchPattern:Yz,parsePattern:qz,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:Xz,defaultMatchWidth:"wide",parsePatterns:Zz,defaultParseWidth:"any"}),quarter:Me({matchPatterns:Kz,defaultMatchWidth:"wide",parsePatterns:Qz,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:Jz,defaultMatchWidth:"wide",parsePatterns:eB,defaultParseWidth:"any"}),day:Me({matchPatterns:tB,defaultMatchWidth:"wide",parsePatterns:rB,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:nB,defaultMatchWidth:"any",parsePatterns:iB,defaultParseWidth:"any"})},oB={code:"tr",formatDistance:kz,formatLong:Iz,formatRelative:Fz,localize:Uz,match:aB,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Jo(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 ur(e){return function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?e.future?Jo(e.future,t):"за "+Jo(e.regular,t):e.past?Jo(e.past,t):Jo(e.regular,t)+" тому":Jo(e.regular,t)}}var sB=function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},lB={lessThanXSeconds:ur({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:ur({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:sB,lessThanXMinutes:ur({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:ur({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:ur({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:ur({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:ur({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:ur({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:ur({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:ur({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:ur({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:ur({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:ur({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:ur({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:ur({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},uB=function(t,r,n){return n=n||{},lB[t](r,n)},cB={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},dB={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},hB={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fB={date:ze({formats:cB,defaultWidth:"full"}),time:ze({formats:dB,defaultWidth:"full"}),dateTime:ze({formats:hB,defaultWidth:"full"})},L0=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function pB(e){var t=L0[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function wx(e){var t=L0[e];return"'у "+t+" о' p"}function mB(e){var t=L0[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var gB=function(t,r,n){var i=Ir(t),a=i.getUTCDay();return Zi(i,r,n)?wx(a):pB(a)},vB=function(t,r,n){var i=Ir(t),a=i.getUTCDay();return Zi(i,r,n)?wx(a):mB(a)},yB={lastWeek:gB,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:vB,other:"P"},bB=function(t,r,n,i){var a=yB[t];return typeof a=="function"?a(r,n,i):a},_B={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},wB={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},xB={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},CB={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},TB={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},MB={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:"ніч"}},SB={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:"ночі"}},EB=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},PB={ordinalNumber:EB,era:Te({values:_B,defaultWidth:"wide"}),quarter:Te({values:wB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:xB,defaultWidth:"wide",formattingValues:CB,defaultFormattingWidth:"wide"}),day:Te({values:TB,defaultWidth:"wide"}),dayPeriod:Te({values:MB,defaultWidth:"any",formattingValues:SB,defaultFormattingWidth:"wide"})},AB=/^(\d+)(-?(е|й|є|а|я))?/i,RB=/\d+/i,OB={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},kB={any:[/^д/i,/^н/i]},DB={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},NB={any:[/1/i,/2/i,/3/i,/4/i]},LB={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},IB={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]},$B={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},FB={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},zB={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},BB={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},WB={ordinalNumber:$r({matchPattern:AB,parsePattern:RB,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:OB,defaultMatchWidth:"wide",parsePatterns:kB,defaultParseWidth:"any"}),quarter:Me({matchPatterns:DB,defaultMatchWidth:"wide",parsePatterns:NB,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:LB,defaultMatchWidth:"wide",parsePatterns:IB,defaultParseWidth:"any"}),day:Me({matchPatterns:$B,defaultMatchWidth:"wide",parsePatterns:FB,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:zB,defaultMatchWidth:"wide",parsePatterns:BB,defaultParseWidth:"any"})},HB={code:"uk",formatDistance:uB,formatLong:fB,formatRelative:bB,localize:PB,match:WB,options:{weekStartsOn:1,firstWeekContainsDate:1}},jB={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}} 年"}},VB=function(t,r,n){var i,a=jB[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},GB={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},UB={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},YB={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},qB={date:ze({formats:GB,defaultWidth:"full"}),time:ze({formats:UB,defaultWidth:"full"}),dateTime:ze({formats:YB,defaultWidth:"full"})};function S1(e,t,r){var n="eeee p";return Zi(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var XB={lastWeek:S1,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:S1,other:"PP p"},ZB=function(t,r,n,i){var a=XB[t];return typeof a=="function"?a(r,n,i):a},KB={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},QB={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},JB={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},eW={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},tW={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:"夜间"}},rW={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:"夜间"}},nW=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()}},iW={ordinalNumber:nW,era:Te({values:KB,defaultWidth:"wide"}),quarter:Te({values:QB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Te({values:JB,defaultWidth:"wide"}),day:Te({values:eW,defaultWidth:"wide"}),dayPeriod:Te({values:tW,defaultWidth:"wide",formattingValues:rW,defaultFormattingWidth:"wide"})},aW=/^(第\s*)?\d+(日|时|分|秒)?/i,oW=/\d+/i,sW={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},lW={any:[/^(前)/i,/^(公元)/i]},uW={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},cW={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},dW={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},hW={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]},fW={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},pW={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},mW={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},gW={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},vW={ordinalNumber:$r({matchPattern:aW,parsePattern:oW,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:sW,defaultMatchWidth:"wide",parsePatterns:lW,defaultParseWidth:"any"}),quarter:Me({matchPatterns:uW,defaultMatchWidth:"wide",parsePatterns:cW,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:dW,defaultMatchWidth:"wide",parsePatterns:hW,defaultParseWidth:"any"}),day:Me({matchPatterns:fW,defaultMatchWidth:"wide",parsePatterns:pW,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:mW,defaultMatchWidth:"any",parsePatterns:gW,defaultParseWidth:"any"})},yW={code:"zh-CN",formatDistance:VB,formatLong:qB,formatRelative:ZB,localize:iW,match:vW,options:{weekStartsOn:1,firstWeekContainsDate:4}},bW=Math.ceil,_W=Math.max;function wW(e,t,r,n){for(var i=-1,a=_W(bW((t-e)/(r||1)),0),o=Array(a);a--;)o[++i]=e,e+=r;return o}function xW(e){return function(t,r,n){return n&&typeof n!="number"&&H.isIterateeCall(t,r,n)&&(r=n=void 0),t=y.toFinite(t),r===void 0?(r=t,t=0):r=y.toFinite(r),n=n===void 0?t<r?1:-1:y.toFinite(n),wW(t,r,n)}}var mu=xW();const yl=e=>{switch(e){case"de":case"de-DE":return K$;case"en":case"en-US":return Op;case"gb":case"en-GB":return r8;case"es":case"es-ES":case"es-AR":return D8;case"fr":case"fr-FR":return lF;case"it":case"it-IT":return BF;case"ja":case"ja-JP":return g7;case"ko":case"ko-KR":return U7;case"nl":case"nl-NL":return w9;case"pt":case"pt-BR":return K9;case"ru":case"ru-RU":return Rz;case"tr":case"tr-TR":return oB;case"zh":case"zh-CN":return yW;case"uk":return HB;default:return Op}};var xx=(e=>(e.YEAR="years",e.QUARTER="quarters",e.MONTH="months",e.WEEK="weeks",e.DATE="dates",e))(xx||{});const CW={dates:e=>v$(e),months:e=>b$(e),quarters:e=>y$(e),weeks:(e,t)=>g$(e,{locale:t}),years:e=>_$(e)},TW=(e,t,r)=>CW[e](t,r),MW=e=>y.parseISOWithTimezoneCheck(e);mu(4),mu(12),mu(7),mu(24);function yi(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(a,o){return o?r(a):a})}const SW=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],EW=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 PW(e,t){if(!t.formatLong)return console.warn("Locale does not have formatLong property. Using default date formats."),EW[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 AW(e,t){if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e;return SW.forEach(n=>{const i=PW(n,t);r=yi(r,n,function(){return i})}),r}const Cx="Etc/GMT-14";function RW(e,t,r){return Tx(e,t,r)?_x(e,1):e}function OW(e,t){return t<=e.getMonth()}function Tx(e,t,r){const n=![zW,I0].includes(t);return r>Sx&&n&&OW(e,r)}function kW(e,t,r,n){return!n&&Tx(e,t,r)?mx(e,1):e}function DW(e,t){if(t>0){const r=(e.getMonth()+t)%12;return x$(e,r)}return e}function NW(e,t,r,n,i,a){if(!e.includes("y"))return e;const o=kW(t,n,a,i);let l=e;if(["yyyy","yy","y","yp","yyyp"].some(c=>e.includes(c))&&(r=Cx),e.includes("yp")){const c=_x(o,1);l=yi(e,"yp|yyyp",function(f){const p="y".repeat(f.length);return Xi(c,r,p)})}return yi(l,"yyyy|yy|y",function(h){return Xi(o,r,h)})}function LW(e,t,r,n){if(!e.includes("Q"))return e;const i=Xi(t,Cx,"M");let a=parseInt(i,10)-1;n&&[I0,BW,WW,Mx].includes(r)&&(a-=n>a?n-12:n);const o=parseInt(String(a/3))+1;return yi(e,"QQ|Q",function(c){return`${c.length===2?"'Quarter '":"'Q'"}${o}`})}function IW(e){return e.includes("sss")?yi(e,"sss",function(){return"SSS"}):e}function $W(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=yi(e,"a",function(){return`\0${Xi(t,r,"a").toLowerCase()}\0`});return n=yi(n,"A",function(){return`\0${Xi(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}function FW(e,t,r,n){return e.includes("Z")?yi(e,"Z",function(){return Xi(t,r,"xx",{locale:n})}):e}const zW="years",I0="quarters",BW="months",WW="weeks",Mx="days",Sx=0,HW=1,bl=Object.freeze({weekFirstDay:HW,isFiscalOn:!1,fiscalMonth:Sx,selectedDateLevel:Mx,timeZone:"UTC"});function _l(e,t,r=yl(),n=bl){if(e===y.NOT_AVAILABLE_DATA_VALUE)return e;const i=e instanceof Date?e:y.parseISOWithTimezoneCheck(e);return jW(i,t,r,n)}function jW(e,t,r=yl(),n=bl){return e.getFullYear()<100?e=x1(e,1900+e.getFullYear()):e.getFullYear()===1111&&(e=x1(e,1970)),n.isFiscalOn||(e=RW(e,n.selectedDateLevel,n.fiscalMonth)),t=AW(t,r),t=IW(t),t=$W(t,e,n.timeZone),t=FW(t,e,n.timeZone,r),t=NW(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===I0&&(e=DW(e,n.fiscalMonth)),t=LW(t,e,n.selectedDateLevel,n.fiscalMonth),Xi(e,n.timeZone,t,{locale:r,weekStartsOn:n.weekFirstDay})}function VW(e){switch(e){case H.DateLevels.Years:return"yyyy";case H.DateLevels.Quarters:return"Q yyyy";case H.DateLevels.Months:return"MM/yyyy";case H.DateLevels.Weeks:return"ww yyyy";case H.DateLevels.Days:return"shortDate";case H.DateLevels.Hours:case H.DateLevels.Minutes:case H.DateLevels.MinutesRoundTo15:case H.DateLevels.MinutesRoundTo30:case H.DateLevels.AggMinutesRoundTo1:case H.DateLevels.AggMinutesRoundTo15:case H.DateLevels.AggMinutesRoundTo30:case H.DateLevels.AggHours:return"HH:mm";case H.DateLevels.Seconds:return"HH:mm:ss";default:return"fullDate"}}const Ex=(e,t=-1)=>{var n,i,a;return[...(n=e.rows)!=null?n:[],...(i=e.columns)!=null?i:[],...(a=e.values)!=null?a:[]][t]},GW=(e,t=-1)=>{const{rows:r=[],columns:n=[],values:i=[]}=e,a=Number(r.length)||0,o=Number(n.length)||0,l=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+l)return`values.${t-a-o}`}},Px=e=>{const t=e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0;return y.getCompleteNumberFormatConfig(t)},UW=e=>{const t=y.normalizeColumn(e),r=y.getDataOptionGranularity(t);return(t==null?void 0:t.dateFormat)||y.getDefaultDateFormat(r)},YW=(e,t)=>(r,n)=>{var c,h;const i=(n==null?void 0:n.panel)==="measures",a=r.userType===Aw.CORNER,o=Ex(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?UW(o):void 0;switch((h=n==null?void 0:n.jaql)==null?void 0:h.datatype){case"numeric":r.content=y.applyFormatPlainText(Px(o),parseFloat(`${r.value}`));break;case"datetime":r.content=$0(r.value,t,u);break;default:r.content=r.value}o&&"isHtml"in o&&o.isHtml&&(r.contentType="html"),r.content===""&&(r.content=y.NOT_AVAILABLE_DATA_VALUE)};function $0(e,t,r){if(e===y.NOT_AVAILABLE_DATA_VALUE)return e;if(!r)return typeof e=="string"?e:e.toISOString();const n=typeof e=="string"?y.parseISOWithTimezoneCheck(e):e;return qW(n)?typeof e=="string"?e:e.toISOString():t(n,r)}function qW(e){return e.toString()==="Invalid Date"}function It(e){const t="type"in e.column?e.column.type:"numeric";let r=n=>`${n}`;if(H.isNumber(t)){const n=y.getCompleteNumberFormatConfig(e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0);r=i=>y.applyFormatPlainText(n,parseFloat(`${i}`))}if(H.isDatetime(t)){const n=e.dateFormat||y.getDefaultDateFormat(y.getDataOptionGranularity(e)),i=(a,o)=>_l(a,o);r=a=>$0(OI(a)?a.toISOString():a,i,n)}return n=>n===void 0?"":r(n)}function Ve(e,t){return M(M(M({dataOption:e},t&&{dataOptionLocation:t}),H.MetadataTypes.isAttribute(e.column)&&{attribute:e.column}),H.MetadataTypes.isMeasure(e.column)&&{measure:e.column})}const sd=e=>{var t,r,n,i,a,o,l,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:(l=(o=(a=(i=e.series)==null?void 0:i.options)==null?void 0:a.custom)==null?void 0:o.rawValue)==null?void 0:l[0],categoryDisplayValue:(u=e.name)!=null?u:e.category}},XW=(e,t)=>{const r=t.x.map((l,u)=>{var h,f;const c=(f=(h=e.custom)==null?void 0:h.xValue)==null?void 0:f[u];return $(M({},Ve(l)),{value:c,displayValue:It(l)(c)})}),n=t.y.length>=2,i=t.y.filter((l,u)=>!n||e.series.index===u).flatMap(l=>{const u=e.custom.rawValue;return $(M({},Ve(l)),{value:u,displayValue:It(l)(u)})}),a=t.breakBy.map(l=>{var c,h,f;const u=(f=(h=(c=e.series)==null?void 0:c.options.custom)==null?void 0:h.rawValue)==null?void 0:f[0];return $(M({},Ve(l)),{value:u,displayValue:It(l)(u)})}),o={category:r,value:i,breakBy:a};return $(M({},sd(e)),{entries:o})},ZW=(e,t)=>{const r=t.x.map((l,u)=>{var h,f;const c=(f=(h=e.custom)==null?void 0:h.xValue)==null?void 0:f[u];return $(M({},Ve(l)),{value:c,displayValue:It(l)(c)})}),n=t.rangeValues.length>=2,i=t.rangeValues.filter((l,u)=>!n||e.series.index===u).flatMap(l=>l.map((u,c)=>{var p,g;const f=c===0?(p=e.options)==null?void 0:p.low:(g=e.options)==null?void 0:g.high;return $(M({},Ve(u)),{value:f,displayValue:It(u)(f)})})),a=t.breakBy.map(l=>{var c,h,f;const u=(f=(h=(c=e.series)==null?void 0:c.options.custom)==null?void 0:h.rawValue)==null?void 0:f[0];return $(M({},Ve(l)),{value:u,displayValue:It(l)(u)})}),o={category:r,value:i,breakBy:a};return $(M({},sd(e)),{entries:o})},KW=(e,t)=>{var n,i,a,o,l;const r={};if(t.x){const u=e.custom.maskedX;r.x=$(M({},Ve(t.x)),{value:u,displayValue:u})}if(t.y){const u=e.custom.maskedY;r.y=$(M({},Ve(t.y)),{value:u,displayValue:u})}if(t.breakByPoint){const u=(n=e.custom)==null?void 0:n.maskedBreakByPoint;r.breakByPoint=$(M({},Ve(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=$(M({},Ve(t.breakByColor)),{value:u,displayValue:u})}if(t.size){const u=e.custom.maskedSize;r.size=$(M({},Ve(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:(l=e.custom)==null?void 0:l.maskedBreakByColor,entries:r}},QW=(e,t)=>{const r=t.breakBy.map((a,o)=>{var u,c;const l=(c=(u=e.custom)==null?void 0:u.xValue)==null?void 0:c[o];return $(M({},Ve(a)),{value:l,displayValue:It(a)(l)})}),n=t.y.map(a=>{var l;const o=(l=e.custom)==null?void 0:l.rawValue;return $(M({},Ve(a)),{value:o,displayValue:It(a)(o)})}),i={category:r,value:n};return{value:e.options.custom.number1,categoryValue:e.options.name,categoryDisplayValue:e.name,entries:i}},JW=(e,t)=>{const r=t.breakBy.map((o,l)=>{var c,h;const u=(h=(c=e.custom)==null?void 0:c.xValue)==null?void 0:h[l];return $(M({},Ve(o)),{value:u,displayValue:It(o)(u)})}),n=t.y.length>=2,i=t.y.filter((o,l)=>!n||e.series.index===l).map(o=>{var u;const l=(u=e.custom)==null?void 0:u.rawValue;return $(M({},Ve(o)),{value:l,displayValue:It(o)(l)})}),a={category:r,value:i};return $(M({},sd(e)),{entries:a})},eH=(e,t)=>{const r=e.options.custom.level,n=r!==e.options.custom.levelsCount,i=t.breakBy.slice(0,r).map((u,c)=>{var f,p,g,b;const h=n?(p=(f=e.custom)==null?void 0:f.rawValues)==null?void 0:p[c]:(b=(g=e.custom)==null?void 0:g.xValue)==null?void 0:b[c];return $(M({},Ve(u)),{value:h,displayValue:h})}),a=t.y.length>=2,o=t.y.filter((u,c)=>!a||e.series.index===c).map(u=>{var h;const c=n?e.value:(h=e.custom)==null?void 0:h.rawValue;return $(M({},Ve(u)),{value:c,displayValue:It(u)(c)})}),l={category:i,value:o};return $(M({},sd(e)),{entries:l})},tH=(e,t)=>{var i;const r=e.series.type==="scatter",n={};if(r){const a=e.options.y;n.value=[$(M({},Ve(t.outliers)),{value:a,displayValue:It(t.outliers)(a)})]}else n.value=[$(M({},Ve(t.boxMin)),{value:e.options.q1,displayValue:It(t.boxMin)(e.options.q1)}),$(M({},Ve(t.boxMedian)),{value:e.options.median,displayValue:It(t.boxMedian)(e.options.median)}),$(M({},Ve(t.boxMax)),{value:e.options.q3,displayValue:It(t.boxMax)(e.options.q3)}),$(M({},Ve(t.whiskerMin)),{value:e.options.low,displayValue:It(t.whiskerMin)(e.options.low)}),$(M({},Ve(t.whiskerMax)),{value:e.options.high,displayValue:It(t.whiskerMax)(e.options.high)})];if(t.category){const a=(i=e.custom.xValue)==null?void 0:i[0];n.category=[$(M({},Ve(t.category)),{value:a,displayValue:It(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}},rH=(e,t)=>{const r=new Date(e.options.date),n=e.options.dateString,i=e.options.value,a=$(M({},Ve(t.date)),{value:n,displayValue:It(t.date)(r)}),o=typeof i=="number",l=t.value&&o?$(M({},Ve(t.value)),{value:typeof i=="number"?i:0,displayValue:It(t.value)(i)}):void 0;return{entries:{date:a,value:l}}};function Zh(e,t){switch(e.series.chart.options.chart.type){case"bubble":case"scatter":return KW(e,t);case"funnel":return QW(e,t);case"pie":return JW(e,t);case"treemap":case"sunburst":return eH(e,t);case"boxplot":return tH(e,t);case"arearange":return ZW(e,t);case"heatmap":return rH(e,t);default:return XW(e,t)}}function nH(e,t){const r={};return t.geo&&(r.geo=[$(M({},Ve(t.geo)),{value:e.geoName})]),t.color&&(r.color=[$(M({},Ve(t.color)),{value:e.originalValue})]),$(M({},e),{entries:r})}class F0{constructor(t,r){Xe(this,"httpClient");Xe(this,"defaultDataSource");Xe(this,"getDashboards",(...r)=>qt(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(),l=yield this.httpClient.get(`api/v1/dashboards?${o}`);if(!l)return[];const u=l.map(c=>qt(this,null,function*(){if(c.oid&&!c.datasource){const h=yield this.getDashboard(c.oid,{fields:["datasource"]});return h!=null&&h.datasource?$(M({},c),{datasource:h.datasource}):c}return c}));return Promise.all(u)}));Xe(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 H.TranslatableError("errors.dashboardInvalidIdentifier",{dashboardOid:t})})});Xe(this,"getDashboardLegacy",t=>this.httpClient.get(`api/dashboards/${t}`).catch(()=>{throw new H.TranslatableError("errors.dashboardInvalidIdentifier",{dashboardOid:t})}));Xe(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 H.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers",{dashboardOid:t})})});Xe(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 H.TranslatableError("errors.widgetByIdInvalidIdentifier",{dashboardOid:r,widgetOid:t})})});Xe(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));Xe(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));Xe(this,"getPalettes",()=>this.httpClient.get("api/palettes"));Xe(this,"getHierarchies",({dataSource:t=this.defaultDataSource,dimension:r,ids:n,alwaysIncluded:i})=>{const a="granularity"in r;let o="";if(!t)throw new H.TranslatableError("errors.missingDataSource");if(a){const{level:u,dateTimeLevel:c}=r.translateGranularityToJaql();o=u!=null?u:c}const l=new URLSearchParams(M(M(M({elasticube:H.getDataSourceName(t),table:H.getTableNameFromAttribute(r),column:H.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?${l}`).then((u=[])=>y.isUndefined(i)&&(n==null?void 0:n.length)?u.filter(({_id:h})=>n.includes(h)):u)});Xe(this,"patchDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.patch(`api/v1/dashboards/${t}?${i}`,r)});Xe(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)});Xe(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}`)});Xe(this,"getSharedFormulas",t=>qt(this,null,function*(){return(yield Promise.all(t.map(this.getSharedFormula))).filter(iH).reduce((n,i)=>(n[i.oid]=i,n),{})}));Xe(this,"getSharedFormula",t=>qt(this,null,function*(){return this.httpClient.get(`api/v1/formulas/${t}?flat=true`)}));Xe(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})});if(!t)throw new H.TranslatableError("errors.httpClientNotFound");this.httpClient=t,this.defaultDataSource=r}}function iH(e){return!!e}const Ax=()=>{const{app:e}=Ct();return{restApi:k.useMemo(()=>e&&new F0(e.httpClient,e.defaultDataSource),[e]),isReady:!!e}};class aH extends H.TranslatableError{constructor(){super("errors.restApiNotReady")}}const oH=e=>{const{isReady:t,restApi:r}=Ax(),[n,i]=k.useState(),[a,o]=k.useState(),l=cH();return k.useEffect(()=>{if(!l||!t||!r)return;qt(exports,null,function*(){try{const c=dH(e,l),h=sH(c);if(h)i(h);else{hH(e);let f;switch(e){case"world":f=r.getCountriesGeoJson;break;case"usa":f=r.getUsaStatesGeoJson;break;default:throw new H.TranslatableError("errors.unsupportedMapType",{mapType:e})}const p=yield f();if(!p)throw new H.TranslatableError("errors.mapLoadingFailed");const g=e==="world"?uH(p):p;lH(g,c),i(g)}}catch(c){o(c)}})},[r,t,e,l]),{geoJson:n,error:a}};function sH(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function lH(e,t){localStorage.setItem(t,JSON.stringify(e))}function uH(e){const t=H.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function cH(){const{app:e}=Ct();return e==null?void 0:e.settings.serverVersion}function dH(e,t){return`geoJson_${e}_${t}`}function hH(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}const fH=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{const{themeSettings:i}=st(),{geoJson:a}=oH(r.mapType),o=k.useMemo(()=>t.color?e.geoData:e.geoData.map(u=>$(M({},u),{color:y.getPaletteColor(i.palette.variantColors,0)})),[e.geoData,t,i]),l=k.useCallback((u,c)=>{if(!n)return;const h=nH(u,t);n(h,c)},[t,n]);return y.jsx(y.Fragment,{children:a&&y.jsx(CI,{geoJson:a,geoData:o,dataOptions:{originalValueTitle:t.color?y.getDataOptionTitle(t.color):"",onAreaClick:l},mapType:r.mapType})})},Rx=e=>e.type==="areamap"&&"geoData"in e,pH=e=>"geo"in e,mH=e=>"mapType"in e,gH=e=>!!e.chartData&&Rx(e.chartData)&&pH(e.dataOptions)&&mH(e.designOptions),vH={dataOptions:hD,data:SD,designOptions:AD,renderer:{ChartRendererComponent:fH,isCorrectRendererProps:gH}},yH={[H.DateLevels.Years]:"attribute.datetimeName.years",[H.DateLevels.Quarters]:"attribute.datetimeName.quarters",[H.DateLevels.Months]:"attribute.datetimeName.months",[H.DateLevels.Weeks]:"attribute.datetimeName.weeks",[H.DateLevels.Days]:"attribute.datetimeName.days",[H.DateLevels.AggHours]:"attribute.datetimeName.hours",[H.DateLevels.AggMinutesRoundTo15]:"attribute.datetimeName.minutes"};function bH(e,t,r){return r?e(yH[r],{columnName:t}):t}function Ox(e,t,r){const n=H.getColumnNameFromAttribute(e),i=r?bH(r,n,t):n;return new H.DimensionalLevelAttribute(i,e.expression,t,H.DimensionalLevelAttribute.getDefaultFormatForGranularity(t),void 0,void 0,e.dataSource)}const oa=e=>{var t;return{x:e.category.map(r=>y.normalizeColumn(r)),y:e.value.map(r=>y.normalizeMeasureColumn(r)),breakBy:((t=e.breakBy)==null?void 0:t.map(r=>y.normalizeColumn(r)))||[],seriesToColorMap:e.seriesToColorMap}};function vo(e){return[...e.x.map(Dp),...e.breakBy.map(Dp)].filter(kx)}function yo(e){return e.y.map(Dp).filter(y.isMeasureColumn)}function bo(e){return"category"in e&&H.isArray(e.category)&&"value"in e&&H.isArray(e.value)&&"breakBy"in e&&H.isArray(e.breakBy)}function _o(e){return"x"in e&&H.isArray(e.x)&&e.x.every(y.isStyledColumn)&&"y"in e&&H.isArray(e.y)&&e.y.every(y.isStyledColumn)&&"breakBy"in e&&H.isArray(e.breakBy)&&e.breakBy.every(y.isStyledColumn)}function Dp(e){return e.column}function kx(e){return!y.isMeasureColumn(e)}function ld(e){return e.y.some(t=>t.showOnRightAxis)}function _H(e){const t=y.normalizeColumn(e.date),r=y.normalizeMeasureColumn(e.value),n=t.column;return H.isDimensionalLevelAttribute(n)&&n.granularity!==H.DateLevels.Days&&(console.warn('The calendar heatmap chart’s "date" data option supports only day level granularity. Converted to day level.'),t.column=Ox(n,H.DateLevels.Days)),{date:t,value:r}}function wH(e){const t=e.date.column;return kx(t)?[t]:[]}function xH(e){const t=e.value.column;return y.isMeasureColumn(t)?[t]:[]}function CH(e){if(!("date"in e&&e.date&&"value"in e&&e.value))return!1;const r=y.normalizeColumn(e.date);return H.isDatetime(r.column.type)}function Dx(e){return"date"in e&&"value"in e&&typeof e.date=="object"&&typeof e.value=="object"}function TH(e,t){const r=y.getColumnByName(t,e.date.column.name),n=y.getColumnByName(t,e.value.column.name);if(!r||!n)return{type:y.CALENDAR_HEATMAP_DATA_TYPE,values:[]};const i=t.rows.map(a=>{const o=y.getValue(a,r),l=y.getValue(a,n),{compareValue:u,color:c}=y.getValues(a,[n])[0],f=!(u!=null&&u.valueIsNaN)&&!(u!=null&&u.valueUndefined)?l:void 0,p=y.isBlurred(a,n);return{date:new Date(o),value:f,color:c,blur:p}});return{type:y.CALENDAR_HEATMAP_DATA_TYPE,values:i}}function Nx(e){return e.type===y.CALENDAR_HEATMAP_DATA_TYPE}function MH(e){var t,r,n,i,a,o,l,u,c,h,f,p,g,b,v,w,C,T,E,S,P,O,N,z;return $(M({},xr),{width:e.width,height:e.height,subtype:e.subtype||y.CALENDAR_HEATMAP_DEFAULTS.SUBTYPE,viewType:e.viewType||y.CALENDAR_HEATMAP_DEFAULTS.VIEW_TYPE,startOfWeek:e.startOfWeek||y.CALENDAR_HEATMAP_DEFAULTS.START_OF_WEEK,cellLabels:{enabled:(r=(t=e.cellLabels)==null?void 0:t.enabled)!=null?r:y.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:y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL,style:((l=e.dayLabels)==null?void 0:l.textStyle)||((u=e.dayLabels)==null?void 0:u.style)},monthLabels:{enabled:(h=(c=e.monthLabels)==null?void 0:c.enabled)!=null?h:y.CALENDAR_HEATMAP_DEFAULTS.SHOW_MONTH_LABEL,style:((f=e.monthLabels)==null?void 0:f.textStyle)||((p=e.monthLabels)==null?void 0:p.style)},weekends:{enabled:(b=(g=e.weekends)==null?void 0:g.enabled)!=null?b:y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_ENABLED,days:(w=(v=e.weekends)==null?void 0:v.days)!=null?w:[...y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_DAYS],cellColor:(T=(C=e.weekends)==null?void 0:C.cellColor)!=null?T:y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR,hideValues:(S=(E=e.weekends)==null?void 0:E.hideValues)!=null?S:y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_HIDE_VALUES},pagination:{enabled:(O=(P=e.pagination)==null?void 0:P.enabled)!=null?O:y.CALENDAR_HEATMAP_DEFAULTS.SHOW_PAGINATION,style:(N=e.pagination)==null?void 0:N.textStyle,startMonth:(z=e.pagination)==null?void 0:z.startMonth}})}function SH(e){return typeof e=="object"&&e!==null}function EH(e=yl(),t=bl){return(r,n)=>_l(r,n,e,t)}function Lx(){const{app:e}=Ct();return k.useCallback((t,r)=>EH(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 Ix={exports:{}};(function(e,t){(function(r,n){e.exports=n(k)})(typeof self!="undefined"?self:y.commonjsGlobal,function(r){return function(n){function i(o){if(a[o])return a[o].exports;var l=a[o]={i:o,l:!1,exports:{}};return n[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}var a={};return i.m=n,i.c=a,i.d=function(o,l,u){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:u})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=0)}([function(n,i,a){function o(){return o=Object.assign?Object.assign.bind():function(T){for(var E=1;E<arguments.length;E++){var S=arguments[E];for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(T[P]=S[P])}return T},o.apply(this,arguments)}function l(T){return f(T)||h(T)||c(T)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
214
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(T,E){if(T){if(typeof T=="string")return p(T,E);var S=Object.prototype.toString.call(T).slice(8,-1);return S==="Object"&&T.constructor&&(S=T.constructor.name),S==="Map"||S==="Set"?Array.from(T):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?p(T,E):void 0}}function h(T){if(typeof Symbol!="undefined"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}function f(T){if(Array.isArray(T))return p(T)}function p(T,E){(E==null||E>T.length)&&(E=T.length);for(var S=0,P=new Array(E);S<E;S++)P[S]=T[S];return P}function g(T){"@babel/helpers - typeof";return(g=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})(T)}Object.defineProperty(i,"__esModule",{value:!0}),a.d(i,"HighchartsReact",function(){return C});var b=a(1),v=a.n(b),w=typeof window!="undefined"?b.useLayoutEffect:b.useEffect,C=Object(b.memo)(Object(b.forwardRef)(function(T,E){var S=Object(b.useRef)(),P=Object(b.useRef)(),O=Object(b.useRef)(T.constructorType),N=Object(b.useRef)(T.highcharts);return w(function(){function z(){var Z=T.highcharts||(typeof window=="undefined"?"undefined":g(window))==="object"&&window.Highcharts,K=T.constructorType||"chart";Z?Z[K]?T.options?P.current=Z[K](S.current,T.options,T.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(P.current){if(T.allowChartUpdate!==!1)if(T.constructorType!==O.current||T.highcharts!==N.current)O.current=T.constructorType,N.current=T.highcharts,z();else if(!T.immutable&&P.current){var U;(U=P.current).update.apply(U,[T.options].concat(l(T.updateArgs||[!0,!0])))}else z()}else z()},[T.options,T.allowChartUpdate,T.updateArgs,T.containerProps,T.highcharts,T.constructorType]),w(function(){return function(){P.current&&(P.current.destroy(),P.current=null)}},[]),Object(b.useImperativeHandle)(E,function(){return{get chart(){return P.current},container:S}},[]),v.a.createElement("div",o({},T.containerProps,{ref:S}))}));i.default=C},function(n,i){n.exports=r}])})})(Ix);var PH=Ix.exports;const AH=y.getDefaultExportFromCjs(PH);function ud(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e},[e]),t.current}var $x={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(l){var u=l.shapeArgs,c=u.width,h=u.height,f=u.x,p=u.y,g=r(i.borderRadiusTopLeft||0,c),b=r(i.borderRadiusTopRight||0,c),v=r(i.borderRadiusBottomRight||0,c),w=r(i.borderRadiusBottomLeft||0,c);if(g||b||v||w){var C=Math.min(c,h)/2;g>C&&(g=C),b>C&&(b=C),v>C&&(v=C),w>C&&(w=C),l.dlBox=l.shapeArgs,l.shapeType="path",l.shapeArgs={d:[["M",f+g,p+a],["L",f+c-b,p+a],["C",f+c-b/2,p,f+c,p+b/2,f+c,p+b],["L",f+c,p+h-v],["C",f+c,p+h-v/2,f+c-v/2,p+h,f+c-v,p+h+o],["L",f+w,p+h+o],["C",f+w/2,p+h,f,p+h-w/2,f,p+h-w],["L",f,p+g],["C",f,p+g/2,f+g/2,p,f+g,p],["Z"]]}}})})})})($x);var RH=$x.exports;const OH=y.getDefaultExportFromCjs(RH);var Fx={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,l,u,c,h){return a=(h-o)*(l-a)-(u-o)*(c-a),0<a?!0:!(0>a)}function i(a,o,l,u,c,h,f,p){return n(a,o,c,h,f,p)!==n(l,u,c,h,f,p)&&n(a,o,l,u,c,h)!==n(a,o,l,u,f,p)}return{boxIntersectLine:function(a,o,l,u,c,h,f,p){return i(a,o,a+l,o,c,h,f,p)||i(a+l,o,a+l,o+u,c,h,f,p)||i(a,o+u,a+l,o+u,c,h,f,p)||i(a,o,a,o+u,c,h,f,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,l,u,c){function h(R,I,X,j,V){var W=R.chart,G=R.options.label||{},re=U(G.onArea,!!R.area),F=re||G.connectorAllowed,Y=W.boxesToAvoid,ne=Number.MAX_VALUE,ie=Number.MAX_VALUE,te,oe,le;for(le=0;Y&&le<Y.length;le+=1)if(S(Y[le],{left:I,right:I+j.width,top:X,bottom:X+j.height}))return!1;for(le=0;le<W.series.length;le+=1){var de=W.series[le];if(Y=de.interpolatedPoints&&v([],de.interpolatedPoints,!0),de.visible&&Y){var ce=W.plotHeight/10;for(oe=W.plotTop;oe<=W.plotTop+W.plotHeight;oe+=ce)Y.unshift({chartX:W.plotLeft,chartY:oe}),Y.push({chartX:W.plotLeft+W.plotWidth,chartY:oe});for(ce=1;ce<Y.length;ce+=1){if(Y[ce].chartX>=I-16&&Y[ce-1].chartX<=I+j.width+16){if(E(I,X,j.width,j.height,Y[ce-1].chartX,Y[ce-1].chartY,Y[ce].chartX,Y[ce].chartY))return!1;R===de&&!te&&V&&(te=E(I-16,X-16,j.width+32,j.height+32,Y[ce-1].chartX,Y[ce-1].chartY,Y[ce].chartX,Y[ce].chartY))}if((F||te)&&(R!==de||re)){oe=I+j.width/2-Y[ce].chartX;var ve=X+j.height/2-Y[ce].chartY;ne=Math.min(ne,oe*oe+ve*ve)}}if(!re&&F&&R===de&&(V&&!te||ne<Math.pow(G.connectorNeighbourDistance||1,2))){for(ce=1;ce<Y.length;ce+=1)if(te=Math.min(Math.pow(I+j.width/2-Y[ce].chartX,2)+Math.pow(X+j.height/2-Y[ce].chartY,2),Math.pow(I-Y[ce].chartX,2)+Math.pow(X-Y[ce].chartY,2),Math.pow(I+j.width-Y[ce].chartX,2)+Math.pow(X-Y[ce].chartY,2),Math.pow(I+j.width-Y[ce].chartX,2)+Math.pow(X+j.height-Y[ce].chartY,2),Math.pow(I-Y[ce].chartX,2)+Math.pow(X+j.height-Y[ce].chartY,2)),te<ie){ie=te;var Ce=Y[ce]}te=!0}}}return!V||te?{x:I,y:X,weight:ne-(Ce?ie:0),connectorPoint:Ce}:!1}function f(R){R.boxesToAvoid=[];var I=R.labelSeries||[],X=R.boxesToAvoid;R.series.forEach(function(j){return(j.points||[]).forEach(function(V){return(V.dataLabels||[]).forEach(function(W){var G=W.getBBox(),re=W.translateX+(j.xAxis?j.xAxis.pos:j.chart.plotLeft);W=W.translateY+(j.yAxis?j.yAxis.pos:j.chart.plotTop),X.push({left:re,top:W,right:re+G.width,bottom:W+G.height})})})}),I.forEach(function(j){var V=j.options.label||{};j.interpolatedPoints=p(j),X.push.apply(X,V.boxesToAvoid||[])}),R.series.forEach(function(j){function V(ke,$e,je){var Ue=Math.max(ie,U(we,-1/0)),ir=Math.min(ie+oe,U(Ee,1/0));return ke>Ue&&ke<=ir-je.width&&$e>=te&&$e<=te+le-je.height}var W=j.options.label;if(W&&(j.xAxis||j.yAxis)){var G="highcharts-color-"+U(j.colorIndex,"none"),re=!j.labelBySeries,F=W.minFontSize,Y=W.maxFontSize,ne=R.inverted,ie=ne?j.yAxis.pos:j.xAxis.pos,te=ne?j.xAxis.pos:j.yAxis.pos,oe=R.inverted?j.yAxis.len:j.xAxis.len,le=R.inverted?j.xAxis.len:j.yAxis.len,de=j.interpolatedPoints,ce=U(W.onArea,!!j.area),ve=[],Ce=j.xData||[],ye,J=j.labelBySeries;if(ce&&!ne){ne=[j.xAxis.toPixels(Ce[0]),j.xAxis.toPixels(Ce[Ce.length-1])];var we=Math.min.apply(Math,ne),Ee=Math.max.apply(Math,ne)}if(j.visible&&!j.boosted&&de){for(J||(J=j.name,typeof W.format=="string"?J=C(W.format,j,R):W.formatter&&(J=W.formatter.call(j)),j.labelBySeries=J=R.renderer.label(J,0,0,"connector",0,0,W.useHTML).addClass("highcharts-series-label highcharts-series-label-"+j.index+" "+(j.options.className||"")+" "+G),R.renderer.styledMode||(G=typeof j.color=="string"?j.color:"#666666",J.css(O({color:ce?R.renderer.getContrast(G):G},W.style||{})),J.attr({opacity:R.renderer.forExport?1:0,stroke:j.color,"stroke-width":1})),F&&Y&&J.css({fontSize:F+(j.sum||0)/(j.chart.labelSeriesMaxSum||0)*(Y-F)+"px"}),J.attr({padding:0,zIndex:3}).add()),F=J.getBBox(),F.width=Math.round(F.width),ne=de.length-1;0<ne;--ne)ce?(Y=de[ne].chartX-F.width/2,G=(de[ne].chartCenterY||0)-F.height/2,V(Y,G,F)&&(ye=h(j,Y,G,F))):(Y=de[ne].chartX+3,G=de[ne].chartY-F.height-3,V(Y,G,F)&&(ye=h(j,Y,G,F,!0)),ye&&ve.push(ye),Y=de[ne].chartX+3,G=de[ne].chartY+3,V(Y,G,F)&&(ye=h(j,Y,G,F,!0)),ye&&ve.push(ye),Y=de[ne].chartX-F.width-3,G=de[ne].chartY+3,V(Y,G,F)&&(ye=h(j,Y,G,F,!0)),ye&&ve.push(ye),Y=de[ne].chartX-F.width-3,G=de[ne].chartY-F.height-3,V(Y,G,F)&&(ye=h(j,Y,G,F,!0))),ye&&ve.push(ye);if(W.connectorAllowed&&!ve.length&&!ce)for(Y=ie+oe-F.width;Y>=ie;Y-=16)for(G=te;G<te+le-F.height;G+=16)(ye=h(j,Y,G,F,!0))&&ve.push(ye);ve.length?(ve.sort(function(ke,$e){return $e.weight-ke.weight}),ye=ve[0],(R.boxesToAvoid||[]).push({left:ye.x,right:ye.x+F.width,top:ye.y,bottom:ye.y+F.height}),(de=Math.sqrt(Math.pow(Math.abs(ye.x-(J.x||0)),2)+Math.pow(Math.abs(ye.y-(J.y||0)),2)))&&j.labelBySeries&&(ve={opacity:R.renderer.forExport?1:0,x:ye.x,y:ye.y},W={opacity:1},10>=de&&(W={x:ve.x,y:ve.y},ve={}),de=void 0,re&&(de=w(j.options.animation),de.duration*=.2),j.labelBySeries.attr(O(ve,{anchorX:ye.connectorPoint&&(ye.connectorPoint.plotX||0)+ie,anchorY:ye.connectorPoint&&(ye.connectorPoint.plotY||0)+te})).animate(W,de),j.options.kdNow=!0,j.buildKDTree(),j=j.searchPoint({chartX:ye.x,chartY:ye.y},!0))&&(J.closest=[j,ye.x-(j.plotX||0),ye.y-(j.plotY||0)])):J&&(j.labelBySeries=J.destroy())}else J&&(j.labelBySeries=J.destroy())}}),N(R,"afterDrawSeriesLabels")}function p(R){function I(ce){var ve=Math.round((ce.plotX||0)/8)+","+Math.round((ce.plotY||0)/8);ie[ve]||(ie[ve]=1,j.push(ce))}if(R.xAxis||R.yAxis){var X=R.points,j=[],V=R.graph||R.area,W=V&&V.element,G=R.chart.inverted,re=R.xAxis,F=R.yAxis,Y=G?F.pos:re.pos;G=G?re.pos:F.pos,re=U((R.options.label||{}).onArea,!!R.area);var ne=F.getThreshold(R.options.threshold),ie={};if(R.getPointSpline&&W&&W.getPointAtLength&&!re&&X.length<(R.chart.plotSizeX||0)/16){for(re=V.toD&&V.attr("d"),V.toD&&V.attr({d:V.toD}),F=W.getTotalLength(),R=0;R<F;R+=16)ne=W.getPointAtLength(R),I({chartX:Y+ne.x,chartY:G+ne.y,plotX:ne.x,plotY:ne.y});re&&V.attr({d:re});var te=X[X.length-1];I({chartX:Y+(te.plotX||0),chartY:G+(te.plotY||0)})}else for(F=X.length,V=void 0,R=0;R<F;R+=1){te=X[R],W=te.plotX;var oe=te.plotY;if(z(W)&&z(oe)){var le={plotX:W,plotY:oe,chartX:Y+W,chartY:G+oe};if(re&&(le.chartCenterY=G+(oe+U(te.yBottom,ne))/2),V){te=Math.abs(le.chartX-V.chartX);var de=Math.abs(le.chartY-V.chartY);if(te=Math.max(te,de),16<te)for(te=Math.ceil(te/16),de=1;de<te;de+=1)I({chartX:V.chartX+de/te*(le.chartX-V.chartX),chartY:V.chartY+de/te*(le.chartY-V.chartY),chartCenterY:(V.chartCenterY||0)+de/te*((le.chartCenterY||0)-(V.chartCenterY||0)),plotX:(V.plotX||0)+de/te*(W-(V.plotX||0)),plotY:(V.plotY||0)+de/te*(oe-(V.plotY||0))})}I(le),V=le}}return j}}function g(R){if(this.renderer){var I=this,X=w(I.renderer.globalAnimation).duration;I.labelSeries=[],I.labelSeriesMaxSum=0,I.seriesLabelTimer&&c.clearTimeout(I.seriesLabelTimer),I.series.forEach(function(j){var V=j.options.label||{},W=j.labelBySeries,G=W&&W.closest;V.enabled&&j.visible&&(j.graph||j.area)&&!j.boosted&&I.labelSeries&&(I.labelSeries.push(j),V.minFontSize&&V.maxFontSize&&j.yData&&(j.sum=j.yData.reduce(function(re,F){return(re||0)+(F||0)},0),I.labelSeriesMaxSum=Math.max(I.labelSeriesMaxSum||0,j.sum||0)),R.type==="load"&&(X=Math.max(X,w(j.options.animation).duration)),G&&(typeof G[0].plotX!="undefined"?W.animate({x:G[0].plotX+G[1],y:G[0].plotY+G[2]}):W.attr({opacity:0})))}),I.seriesLabelTimer=Z(function(){I.series&&I.labelSeries&&f(I)},I.renderer.forExport||!X?0:X)}}function b(R,I,X,j,V){var W=V&&V.anchorX;V=V&&V.anchorY;var G=X/2;if(z(W)&&z(V)){var re=[["M",W,V]],F=I-V;0>F&&(F=-j-F),F<X&&(G=W<R+X/2?F:X-F),V>I+j?re.push(["L",R+G,I+j]):V<I?re.push(["L",R+G,I]):W<R?re.push(["L",R,I+j/2]):W>R+X&&re.push(["L",R+X,I+j/2])}return re||[]}var v=this&&this.__spreadArray||function(R,I,X){if(X||arguments.length===2)for(var j=0,V=I.length,W;j<V;j++)!W&&j in I||(W||(W=Array.prototype.slice.call(I,0,j)),W[j]=I[j]);return R.concat(W||Array.prototype.slice.call(I))},w=n.animObject,C=a.format,T=o.setOptions,E=u.boxIntersectLine,S=u.intersectRect,P=c.addEvent,O=c.extend,N=c.fireEvent,z=c.isNumber,U=c.pick,Z=c.syncTimeout,K=[];return{compose:function(R,I){K.indexOf(R)===-1&&(K.push(R),P(i,"load",g),P(i,"redraw",g)),K.indexOf(I)===-1&&(K.push(I),I.prototype.symbols.connector=b),K.indexOf(T)===-1&&(K.push(T),T({plotOptions:{series:{label:l}}}))}}}),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)})})})(Fx);var kH=Fx.exports;const DH=y.getDefaultExportFromCjs(kH);var zx={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(h,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])},c(h,f)};return function(h,f){function p(){this.constructor=h}c(h,f),h.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),o=n.seriesTypes.areaspline,l=i.merge;i=i.extend;var u=function(c){function h(){var f=c!==null&&c.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return a(h,c),h.prototype.streamStacker=function(f,p,g){f[0]-=p.total/2,f[1]-=p.total/2,this.stackedYData[g]=f},h.defaultOptions=l(o.defaultOptions,{fillOpacity:1,lineWidth:0,marker:{enabled:!1},stacking:"stream"}),h}(o);return i(u.prototype,{negStacks:!1}),n.registerSeriesType("streamgraph",u),u}),r(t,"masters/modules/streamgraph.src.js",[],function(){})})})(zx);var NH=zx.exports;const LH=y.getDefaultExportFromCjs(NH),IH=()=>{typeof y.Highcharts=="object"&&(DH(y.Highcharts),LH(y.Highcharts)),function(e){e.seriesTypes.line.prototype.drawLegendSymbol=e.seriesTypes.area.prototype.drawLegendSymbol,y.Highcharts.wrap(y.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=y.Highcharts.color(i.color).setOpacity(.2).get("rgba"),n.stroke=y.Highcharts.color(n.stroke).setOpacity(.2).get("rgba")),n})}(y.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))})}}(y.Highcharts),OH(y.Highcharts)};IH();const $H={style:{height:"100%",width:"100%"}},z0=({options:e})=>{var h,f,p,g,b,v;const t=ud(e),r=k.useCallback(w=>{var T,E,S,P,O,N,z,U;const C=e;!((P=(S=(E=(T=C==null?void 0:C.plotOptions)==null?void 0:T.series)==null?void 0:E.point)==null?void 0:S.events)!=null&&P.click)&&!((U=(z=(N=(O=C==null?void 0:C.plotOptions)==null?void 0:O.series)==null?void 0:N.point)==null?void 0:z.events)!=null&&U.contextmenu)&&(w.container.onclick=null)},[e]),n=w=>w==null?void 0:w.some(({data:C})=>C.some(T=>!!T.marker)),i=(t==null?void 0:t.xAxis)&&(e==null?void 0:e.xAxis)&&((h=t==null?void 0:t.xAxis[0])==null?void 0:h.type)!==((f=e==null?void 0:e.xAxis[0])==null?void 0:f.type),a=!!t&&((p=t==null?void 0:t.navigator)==null?void 0:p.enabled)!==((g=e==null?void 0:e.navigator)==null?void 0:g.enabled),o=n(t==null?void 0:t.series)&&!n(e==null?void 0:e.series),l=!!t&&((b=t==null?void 0:t.chart)==null?void 0:b.type)!==((v=e==null?void 0:e.chart)==null?void 0:v.type),u=i||a||l||o,c=k.useMemo(()=>H.cloneDeep(e),[e]);return y.jsx(AH,{highcharts:y.Highcharts,options:c,containerProps:$H,immutable:u,callback:r})};function FH(e,t,r,n){return H.baseForOwn(e,function(i,a,o){t(n,r(i),a,o)}),n}function zH(e,t){return function(r,n){return FH(r,e,t(n),{})}}var BH=Object.prototype,WH=BH.toString,HH=zH(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=WH.call(t)),e[t]=r},H.constant(H.identity)),B0=(e=>(e.SUNDAY="sunday",e.MONDAY="monday",e.TUESDAY="tuesday",e.WEDNESDAY="wednesday",e.THURSDAY="thursday",e.FRIDAY="friday",e.SATURDAY="saturday",e))(B0||{});const Bx={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},jH=HH(Bx);function wl(e){return Bx[e]}function VH(e){return jH[e]}function W0(e,t,r=y.SINGLE_LETTER_DAY_DATE_FORMAT){const n=new Date(y.REFERENCE_SUNDAY_DATE),i=wl(e),a=[];for(let o=i;o<i+y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK;o++){const l=new Date(n);l.setDate(n.getDate()+o);const u=t(l,r);a.push(u)}return a}function GH(e){const t=y.getPaletteColor(e.palette.variantColors,0),r=y.scaleBrightness(t,y.CALENDAR_HEATMAP_COLORS.MIN_COLOR_BRIGHTNESS_PERCENT),n=y.scaleBrightness(r,y.CALENDAR_HEATMAP_COLORS.MAX_COLOR_BRIGHTNESS_PERCENT);return{type:"range",minColor:r,maxColor:n}}function UH(e){if(!e)return r=>r;const t=y.createDataColoringFunction({getValueFromDataStructure:r=>{var n;return(n=r.value)!=null?n:0},applyColorToDataStructure:(r,n)=>$(M({},r),{color:r.color||n})});return r=>$(M({},r),{values:t(r.values,e)})}function Wx(e,t){if(e==="calendar-heatmap/continuous"){let r;switch(t){case y.ViewType.MONTH:r=1;break;case y.ViewType.QUARTER:r=3;break;case y.ViewType.HALF_YEAR:r=6;break;case y.ViewType.YEAR:r=6;break;default:r=1}const n=Math.ceil(r*5);return{rows:y.CALENDAR_HEATMAP_SIZING.ROWS,cols:n}}else return{rows:y.CALENDAR_HEATMAP_SIZING.ROWS,cols:y.CALENDAR_HEATMAP_SIZING.COLUMNS}}function Hx(e,t,r){if(r==="calendar-heatmap/continuous")return e===y.ViewType.YEAR?{cols:1,rows:2}:{cols:1,rows:1};const n=t.height>t.width;switch(e){case y.ViewType.MONTH:return{cols:1,rows:1};case y.ViewType.QUARTER:return n?{cols:1,rows:3}:{cols:3,rows:1};case y.ViewType.HALF_YEAR:return n?{cols:2,rows:3}:{cols:3,rows:2};case y.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 YH(e,t,r){const n=Hx(t,e,r),i=e.height-y.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT,a=(n.cols-1)*y.CALENDAR_HEATMAP_SIZING.GAP_WIDTH,o=(n.rows-1)*y.CALENDAR_HEATMAP_SIZING.GAP_HEIGHT,l=(e.width-a-y.CALENDAR_HEATMAP_SIZING.MARGINS.LEFT-y.CALENDAR_HEATMAP_SIZING.MARGINS.RIGHT)/n.cols,u=t!==y.ViewType.MONTH?y.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT:0,c=(i-o-y.CALENDAR_HEATMAP_SIZING.MARGINS.TOP-y.CALENDAR_HEATMAP_SIZING.MARGINS.BOTTOM)/n.rows-u;return{width:l,height:c}}function qH(e,t,r,n){var h;if(!((h=e.values)!=null&&h.length)){const f=Wx(r,n);return{rows:f.rows,cols:f.cols}}const i=e.values.map(f=>new Date(f.date)).sort((f,p)=>f.getTime()-p.getTime()),a=i[0],o=wl(t),u=(a.getDay()-o+y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=Math.ceil((i.length+u)/y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);return{rows:y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,cols:c}}function XH(e,t){if(e==="calendar-heatmap/split")return{left:0,top:0,right:0};const r=t.width>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return{left:r?60:0,top:r?30:0,right:10}}function ZH(e,t,r,n){const i=e/r,a=t/n,o=Math.min(i,a);return Math.max(y.CALENDAR_HEATMAP_SIZING.MIN_CELL_SIZE,Math.min(y.CALENDAR_HEATMAP_SIZING.MAX_CELL_SIZE,o))}function KH(e,t,r,n,i){const a=YH(e,r,t),o=t==="calendar-heatmap/continuous"?qH(n,i,t,r):Wx(t,r),l=XH(t,e),u=a.width-l.left-l.right,c=a.height-l.top,h=ZH(u,c,o.cols,o.rows),f=o.cols*h,p=o.rows*h,g=Math.min(u,f)+l.left+l.right,b=Math.min(c,p)+l.top;if(t==="calendar-heatmap/continuous")return{width:Math.floor(g),height:Math.floor(b),cellSize:Math.floor(h)};const v=Math.floor(Math.min(g,b));return{width:v,height:v,cellSize:Math.floor(h)}}function QH(e){return new Date(e.year,e.month,2)}function Kh(e){return{year:e.getFullYear(),month:e.getMonth()}}function Vn(e,t){return e.year!==t.year?e.year-t.year:e.month-t.month}function JH(e,t,r){const n=Vn(e,t)>=0,i=Vn(e,r)<=0;return n&&i}function Ps(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 Qh(e,t,r){if(e.length>=t)return e;if(e.length===0){const l=new Date,u={year:l.getFullYear(),month:l.getMonth()},c=Ps(u,t-1);return Ki(u,c,r)}const n=e[e.length-1],i=t-e.length,a=Ps(n,i),o=Ki(Ps(n,1),a,r);return[...e,...o]}function Ki(e,t,r){const n=[],i={year:e.year,month:e.month};for(;Vn(i,t)<=0;){const a=QH(i);n.push({year:i.year,month:i.month,monthName:r(a,y.FULL_MONTH_DATE_FORMAT),shortMonthName:r(a,y.SHORT_MONTH_DATE_FORMAT)}),i.month++,i.month>11&&(i.month=0,i.year++)}return n}function ej(e,t,r){if(e.length===0)return Ki(t,t,r);const n=e[0];if(Vn(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[...Ki(t,i,r),...e]}function tj(e,t,r){if(e.length===0)return Ki(t,t,r);const n=e[e.length-1];if(Vn(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=Ki(i,t,r);return[...e,...a]}function rj(e){return e<=y.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD}function nj(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(),l=`${a}-${o}`;r.has(l)||(r.add(l),n.push({year:a,month:o,monthName:t(i.date,y.FULL_MONTH_DATE_FORMAT),shortMonthName:t(i.date,y.SHORT_MONTH_DATE_FORMAT)}))}),n.sort((i,a)=>Vn(i,a))}function ij(e,t,r,n){const i=nj(e,t),a=n?H0(n):1;if(!r)return Qh(i,a,t);if(i.length===0){const c=Ps(r,a-1);return Ki(r,c,t)}const o=i[0],l=i[i.length-1];if(JH(r,o,l))return Qh(i,a,t);let u;if(Vn(r,o)<0)u=ej(i,r,t);else{const c=Ps(r,a-1);u=tj(i,c,t)}return Qh(u,a,t)}function H0(e){switch(e){case y.ViewType.MONTH:return 1;case y.ViewType.QUARTER:return 3;case y.ViewType.HALF_YEAR:return 6;case y.ViewType.YEAR:return 12;default:return 1}}function j0(e,t,r){const n=H0(r),i=e.findIndex(u=>Vn(u,t)===0),a=i>=0?i:0;if(n===1)return e.slice(a,a+1);let o=a,l=Math.min(o+n,e.length);return l-o<n&&e.length>=n&&(o=Math.max(0,e.length-n),l=e.length),e.slice(o,l)}const aj=tt.div`
215
- display: grid;
216
- column-gap: 30px;
217
- row-gap: 10px;
218
- grid-template-columns: repeat(${e=>e.gridCols}, 1fr);
219
- grid-template-rows: repeat(${e=>e.gridRows}, 1fr);
220
- background-color: transparent;
221
- place-items: center; /* Center each grid item horizontally and vertically */
222
- `,oj=tt.div`
223
- display: flex;
224
- flex-direction: column;
225
- align-items: center;
226
- `,sj=tt.h3`
227
- font-size: 13px;
228
- font-weight: 400;
229
- color: #333;
230
- text-align: center;
231
- text-transform: capitalize;
232
- margin: 0;
233
- height: ${y.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT}px;
234
- `,lj=({monthCharts:e,availableMonths:t,currentMonth:r,subtype:n,viewType:i,monthLabels:a,size:o})=>{const{themeSettings:l}=st(),u=k.useMemo(()=>Hx(i,o,n),[i,n,o]);if(t.length===0)return null;const c=j0(t,r,i);return y.jsx(aj,{viewType:i,gridCols:u.cols,gridRows:u.rows,children:e.map((h,f)=>{var b,v,w;if(!h)return null;const p=c[f];if(!p)return null;const g=rj((b=h.chart.width)!=null?b:0);return y.jsxs(oj,{children:[(a==null?void 0:a.enabled)&&i!==y.ViewType.MONTH&&n==="calendar-heatmap/split"&&y.jsx(sj,{style:$(M({},a.style),{color:((v=a.style)==null?void 0:v.color)||(l==null?void 0:l.chart.textColor),fontFamily:((w=a.style)==null?void 0:w.fontFamily)||(l==null?void 0:l.typography.fontFamily)}),children:g?p.shortMonthName:p.monthName}),y.jsx(z0,{options:h})]},`${p.year}-${p.month}`)})})},Np=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return y.jsx("svg",$(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:y.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"})}))},Lp=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return y.jsx("svg",$(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:y.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"})}))},E1=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return y.jsx("svg",$(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:y.jsxs("g",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",children:[y.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"}),y.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 uj(e,t,r){const n=j0(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 cj=tt.div`
235
- display: flex;
236
- justify-content: center;
237
- align-items: center;
238
- padding: 10px 20px;
239
- background-color: transparent;
240
- height: ${y.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT}px;
241
- opacity: 1;
242
- transition: opacity 0.3s ease;
243
- box-sizing: border-box;
244
- `,Ra=tt.button`
245
- padding: 0;
246
- background-color: transparent;
247
- border: none;
248
- border-radius: 4px;
249
- cursor: ${e=>e.disabled?"not-allowed":"pointer"};
250
- display: flex;
251
- align-items: center;
252
- justify-content: center;
253
- transition: all 0.2s ease;
254
- opacity: ${e=>e.disabled?.3:1};
255
-
256
- &:hover {
257
- background-color: ${e=>e.disabled?"transparent":"rgba(0, 0, 0, 0.05)"};
258
- }
259
- `,dj=tt.div`
260
- font-size: 15px;
261
- font-weight: 400;
262
- color: ${({theme:e})=>e.chart.textColor};
263
- font-family: ${({theme:e})=>e.typography.fontFamily};
264
- min-width: 110px;
265
- text-align: center;
266
- margin: 0 10px;
267
- text-transform: capitalize;
268
- `,hj=({value:e,availableMonths:t,viewType:r,onChange:n,labelStyle:i})=>{const{themeSettings:a}=st(),{t:o}=y.useTranslation(),l=H0(r),u=t.findIndex(K=>Vn(K,e)===0),c=()=>{const K=t[0];K&&n({year:K.year,month:K.month})},h=()=>{if(u>0){const K=t[u-1];n({year:K.year,month:K.month})}},f=()=>{if(u<t.length-1){const K=t[u+1];n({year:K.year,month:K.month})}},p=()=>{const K=Math.max(0,t.length-l),R=t[K];R&&n({year:R.year,month:R.month})},g=()=>{const K=Math.max(0,u-l),R=t[K];R&&n({year:R.year,month:R.month})},b=()=>{const K=Math.min(t.length-l,u+l),R=t[K];R&&n({year:R.year,month:R.month})},v=u===0,w=l===1?t.length-1:Math.max(0,t.length-l),C=u>=w,T=u>0,E=u<w,S=uj(t,e,r),P=o("calendarHeatmap.navigation.firstMonth"),O=o("calendarHeatmap.navigation.lastMonth"),N=o("calendarHeatmap.navigation.previousMonth"),z=o("calendarHeatmap.navigation.nextMonth"),U=o("calendarHeatmap.navigation.previousGroup"),Z=o("calendarHeatmap.navigation.nextGroup");return y.jsxs(cj,{children:[y.jsx(Ra,{disabled:v,onClick:c,title:P,"aria-label":P,theme:a,children:y.jsx(E1,{direction:"left",disabled:v,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==y.ViewType.MONTH&&y.jsx(Ra,{disabled:v,onClick:g,title:U,"aria-label":U,children:y.jsx(Lp,{direction:"left",disabled:v,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),y.jsx(Ra,{disabled:r===y.ViewType.MONTH?v:!T,onClick:h,title:N,"aria-label":N,children:y.jsx(Np,{direction:"left",disabled:r===y.ViewType.MONTH?v:!T,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),y.jsx(dj,{theme:a,style:i,children:S}),y.jsx(Ra,{disabled:r===y.ViewType.MONTH?C:!E,onClick:f,title:z,"aria-label":z,children:y.jsx(Np,{direction:"right",disabled:r===y.ViewType.MONTH?C:!E,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==y.ViewType.MONTH&&y.jsx(Ra,{disabled:C,onClick:b,title:Z,"aria-label":Z,children:y.jsx(Lp,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),y.jsx(Ra,{disabled:C,onClick:p,title:O,"aria-label":O,children:y.jsx(E1,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:y.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})})]})};function Bu(e){return e===null}const fj=e=>typeof e=="object"&&e!==null,P1=(e,t)=>{if(!fj(e))return;const r=e[t];return typeof r=="string"?r:void 0},pj=function(){const e=this.name,t=P1(this.options,"id"),r=!this.visible;this.chart.series.filter(i=>{if(i===this)return!1;const a=P1(i.options,"statisticalSeriesRelatesToSeries");return a===void 0?!1:a===e||t!==void 0&&a===t}).forEach(i=>i.setVisible(r,!1))},jx=(e,t,{onDataPointClick:r,onDataPointContextMenu:n,onDataPointsSelected:i}={})=>{var o,l;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:pj},point:{events:{click:()=>{}}}}}};return i&&(((o=e.chart)==null?void 0:o.type)!=="heatmap"&&(a.chart.zoomType="x"),["scatter","bubble"].includes((l=e.chart)==null?void 0:l.type)&&(a.chart.zoomType="xy"),a.chart.events.selection=u=>{u.preventDefault();const{xAxis:c,yAxis:h,originalEvent:f}=u,p=gj(c[0],h[0]);p.forEach(g=>{g.state=""}),i(p.map(g=>Zh(g,t)),f)}),r&&(a.plotOptions.series.point.events.click=u=>{!!u.point.options&&(u.point.state="hover",r(Zh(u.point,t),u))}),n&&(a.plotOptions.series.point.events.contextmenu=u=>{u.preventDefault(),n(Zh(u.point,t),u)}),y.merge(e,a)};function mj(e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n}={}){return i=>jx(i,e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n})}const gj=(e,t)=>{const r=e.axis.series.flatMap(i=>i.points).filter(({x:i,y:a})=>{const o=i>=e.min&&i<=e.max,l=!Bu(a);return o&&l});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))},vj=600,yj=300,Vx=(e,t,r)=>{const n={duration:t.chart.animation.init.duration==="auto"?vj:t.chart.animation.init.duration},i={duration:t.chart.animation.redraw.duration==="auto"?yj:t.chart.animation.redraw.duration};return H.merge$1(e,{accessibility:{enabled:r},chart:{animation:i},plotOptions:{series:{animation:n}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})};function bj(e,t){return r=>Vx(r,e,t)}const Gx=(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}}}},l={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:l},c={labels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},title:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},h={color:t==null?void 0:t.chart.backgroundColor,label:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},f=H.merge$1(u,e);return f.xAxis=(p=f.xAxis)==null?void 0:p.map(g=>{var v;g.plotBands=(v=g.plotBands)==null?void 0:v.map(w=>H.merge$1(w,$(M({},h),{color:t==null?void 0:t.chart.backgroundColor})));const b=H.merge$1(g,c);return b.stackLabels&&(b.stackLabels.style=M({color:t.chart.textColor,fontFamily:t.typography.fontFamily},b.stackLabels.style)),b}),f.yAxis&&(f.yAxis=f.yAxis.map(g=>{var v;g.plotBands=(v=g.plotBands)==null?void 0:v.map(w=>H.merge$1(w,$(M({},h),{color:w.color||(t==null?void 0:t.chart.backgroundColor)})));const b=H.merge$1(g,c);return b.stackLabels&&(b.stackLabels.style=M({color:t.chart.textColor,fontFamily:t.typography.fontFamily},b.stackLabels.style)),b})),f};function _j(e){return t=>Gx(t,e)}const Ux=({highchartsOptionsBuilder:e,chartData:t,dataOptions:r,designOptions:n,extraConfig:i,dataPointsEventHandlers:a,onBeforeRender:o})=>{const l={chartData:t,dataOptions:r,designOptions:n,extraConfig:i};return y.flow(bj(i.themeSettings,i.accessibilityEnabled),mj(r,a),_j(i.themeSettings),wj(o))(M($(M({chart:e.getChart(l),series:e.getSeries(l)},e.getAxes(l)),{legend:e.getLegend(l),plotOptions:e.getPlotOptions(l),tooltip:e.getTooltip(l)}),e.getExtras(l)))};function wj(e){return e||(t=>t)}function Yx(){var i;const{app:e}=Ct(),{t}=y.useTranslation(),{themeSettings:r}=st(),n=Lx();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 Ip(e){const t=e*y.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(y.CALENDAR_TYPOGRAPHY.MIN_AXIS_FONT_SIZE,Math.min(y.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function xj(e){return e<30?e*.5:0}function Cj(e,t,r,n=0){if(!e.values||e.values.length===0)return[];const i=e.values.map(g=>new Date(g.date)).sort((g,b)=>g.getTime()-b.getTime()),a=i[0],o=wl(r),u=(a.getDay()-o+y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=new Map;i.forEach((g,b)=>{const v=`${g.getFullYear()}-${g.getMonth()}`,w=Math.floor((b+u)/y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);if(!c.has(v))c.set(v,{firstDate:g,lastDate:g,firstColumn:w,lastColumn:w});else{const C=c.get(v);C.lastDate=g,C.lastColumn=w}});const h=i.length,f=Math.ceil((h+u)/y.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK),p=new Array(f).fill("");return Array.from(c.entries()).forEach(([g,b])=>{const{firstDate:v,firstColumn:w,lastColumn:C}=b,T=(C-w)*n,E=w+Math.floor((C-w)/2),S=t(v,T>y.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD?y.FULL_MONTH_DATE_FORMAT:y.SHORT_MONTH_DATE_FORMAT);E>=0&&E<p.length&&(p[E]=S)}),p}function Tj(e){var b,v,w,C,T,E,S,P,O,N,z,U,Z,K,R,I,X,j,V,W,G;const t=(b=e.designOptions.cellSize)!=null?b:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=e.designOptions.monthLabels,a=e.designOptions.viewType,o=W0(r,e.extraConfig.dateFormatter,y.THREE_LETTER_DAY_DATE_FORMAT).reverse(),l=((v=n.style)==null?void 0:v.color)||((w=e.extraConfig.themeSettings)==null?void 0:w.chart.textColor),u=((C=n.style)==null?void 0:C.fontFamily)||((T=e.extraConfig.themeSettings)==null?void 0:T.typography.fontFamily),c=(S=(E=n.style)==null?void 0:E.fontSize)!=null?S:`${Ip(t)}px`,h=((P=i.style)==null?void 0:P.color)||((O=e.extraConfig.themeSettings)==null?void 0:O.chart.textColor),f=((N=i.style)==null?void 0:N.fontFamily)||((z=e.extraConfig.themeSettings)==null?void 0:z.typography.fontFamily),p=(Z=(U=i.style)==null?void 0:U.fontSize)!=null?Z:`${Ip(t)}px`;return{xAxis:[{categories:Cj(e.chartData,e.extraConfig.dateFormatter,r,e.designOptions.cellSize),opposite:!0,lineWidth:0,gridLineWidth:0,offset:0,labels:{enabled:i.enabled&&a!==y.ViewType.MONTH,rotation:0,overflow:"justify",style:M(M({fontSize:p,color:h,fontFamily:f,textOverflow:"none"},((K=i.style)==null?void 0:K.fontWeight)&&{fontWeight:i.style.fontWeight}),((R=i.style)==null?void 0:R.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:l,fontFamily:u},((I=n.style)==null?void 0:I.fontWeight)&&{fontWeight:n.style.fontWeight}),((X=n.style)==null?void 0:X.fontStyle)&&{fontStyle:n.style.fontStyle}),((j=n.style)==null?void 0:j.textOutline)&&{textOutline:n.style.textOutline}),((V=n.style)==null?void 0:V.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((W=n.style)==null?void 0:W.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((G=e.designOptions.height)!=null?G:0)>=y.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===B0.MONDAY?"Monday":"Sunday"}.`}}]}}function Mj(e){var c,h,f,p,g,b,v,w,C,T,E,S,P;const t=(c=e.designOptions.cellSize)!=null?c:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=xj(t),a=W0(r,e.extraConfig.dateFormatter,y.SINGLE_LETTER_DAY_DATE_FORMAT),o=((h=n.style)==null?void 0:h.color)||((f=e.extraConfig.themeSettings)==null?void 0:f.chart.textColor),l=((p=n.style)==null?void 0:p.fontFamily)||((g=e.extraConfig.themeSettings)==null?void 0:g.typography.fontFamily),u=(v=(b=n.style)==null?void 0:b.fontSize)!=null?v:`${Ip(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:l},((w=n.style)==null?void 0:w.fontWeight)&&{fontWeight:n.style.fontWeight}),((C=n.style)==null?void 0:C.fontStyle)&&{fontStyle:n.style.fontStyle}),((T=n.style)==null?void 0:T.textOutline)&&{textOutline:n.style.textOutline}),((E=n.style)==null?void 0:E.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((S=n.style)==null?void 0:S.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((P=e.designOptions.width)!=null?P:0)>=y.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===B0.MONDAY?"Monday":"Sunday"}.`}}],yAxis:[{categories:[],min:0,max:5,tickInterval:1,gridLineWidth:0,title:{text:null},accessibility:{description:"weeks"},visible:!1}]}}function qx(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:y.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 Sj(e){var i,a;const t=(i=e.designOptions.cellSize)!=null?i:0,n=((a=e.designOptions.width)!=null?a:0)>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return $(M({},qx(e)),{marginTop:n?t:0})}function Ej(e){var n;const r=((n=e.designOptions.width)!=null?n:0)>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return $(M({},qx(e)),{marginLeft:r?60:0,marginTop:r?30:0,marginRight:10})}function Xx(){return{title:{text:null},accessibility:{landmarkVerbosity:"one"}}}function Zx(){return{enabled:!1}}function Pj(e){const t=e*y.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(y.CALENDAR_TYPOGRAPHY.MIN_FONT_SIZE,Math.min(y.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function Kx(e){var u,c,h,f,p,g,b,v,w,C,T,E,S,P,O,N,z;const t=e.designOptions.cellLabels,r=(c=(u=e.designOptions)==null?void 0:u.cellSize)!=null?c:0,n=((h=t==null?void 0:t.style)==null?void 0:h.fontSize)||`${Pj(r)}px`,i=(p=(f=t==null?void 0:t.style)==null?void 0:f.fontWeight)!=null?p:"normal",a=(b=(g=t==null?void 0:t.style)==null?void 0:g.textOutline)!=null?b:"none",o=(C=(v=t==null?void 0:t.style)==null?void 0:v.fontFamily)!=null?C:(w=e.extraConfig.themeSettings)==null?void 0:w.typography.fontFamily,l=((T=t==null?void 0:t.style)==null?void 0:T.color)||((E=e.extraConfig.themeSettings)==null?void 0:E.chart.textColor);return{series:{},heatmap:{dataLabels:{enabled:t.enabled&&((P=(S=e.designOptions)==null?void 0:S.cellSize)!=null?P:0)>=y.CALENDAR_HEATMAP_DEFAULTS.SHOW_CELL_LABEL_SIZE_THRESHOLD,style:M(M(M({color:l,fontSize:n,fontWeight:i,textOutline:a,fontFamily:o},((O=t.style)==null?void 0:O.fontStyle)&&{fontStyle:t.style.fontStyle}),((N=t.style)==null?void 0:N.pointerEvents)&&{pointerEvents:t.style.pointerEvents}),((z=t.style)==null?void 0:z.textOverflow)&&{textOverflow:t.style.textOverflow}),formatter:function(){const U=this.point;return U.custom&&U.custom.monthDay?U.custom.monthDay.toString():""}}}}}const Aj="yyyy-MM-dd'T'HH:mm:ss";function Rj(e,t){const r=VH(e.getDay());return t.includes(r)}function Qx(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=wl(r),h=(u-c+7)%7,f=W0(r,t),p=[];return e.values.forEach(g=>{var z;const b=new Date(g.date),v=b.getDate(),w=t(b,Aj),C=(h+v-1)%f.length,T=Math.floor((h+v-1)/f.length),E=(z=g.value)!=null?z:null,S=g.value!==void 0,P=Rj(b,n.days);let O;S?n.enabled&&n.days.length>0&&P?O=n.cellColor||y.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR:g.color&&(O=g.color):O=y.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR;const N=n.enabled&&n.hideValues&&P;p.push({x:C,y:5-T,value:E,date:b.getTime(),dateString:w,color:O,custom:{monthDay:v,hasData:!N&&S,blur:g.blur},className:S&&g.blur?"csdk-highcharts-point-blured":""})}),p}function Oj(e,t,r,n){if(e.values.length===0)return[];const i=e.values.map(w=>new Date(w.date)).sort((w,C)=>w.getTime()-C.getTime()),a=i[0],o=i[i.length-1],l=new Date(a.getFullYear(),a.getMonth(),1),u=new Date(o.getFullYear(),o.getMonth()+1,0),c=new Map;for(let w=new Date(l);w<=u;w.setMonth(w.getMonth()+1)){const C=`${w.getFullYear()}-${w.getMonth()}`;c.set(C,[])}e.values.forEach(w=>{const C=new Date(w.date),T=`${C.getFullYear()}-${C.getMonth()}`;c.has(T)&&c.get(T).push(w)});const h=[],f=wl(r),p=new Date(l),g=(l.getDay()-f+7)%7;p.setDate(l.getDate()-g);for(const[w,C]of c){const[T,E]=w.split("-"),S=parseInt(T,10),P=parseInt(E,10),O={type:"calendar-heatmap",values:C.length>0?C:[{date:new Date(S,P,1),value:void 0}]},N=Qx(O,t,r,n);h.push(...N)}let b=y.CALENDAR_HEATMAP_SIZING.ROWS-1-h[0].x,v=0;for(let w=0;w<h.length;w++)h[w].y=b,h[w].x=v,b--,b<0&&(b=y.CALENDAR_HEATMAP_SIZING.ROWS-1,v++);return h}function kj(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=Qx(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:y.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:y.CALENDAR_HEATMAP_DEFAULTS.BORDER_WIDTH,borderColor:"transparent",colsize:1,rowsize:1}]}function Dj(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=Oj(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:y.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:1,borderColor:"white",colsize:1,rowsize:1}]}function Jx(e){const{dateFormatter:t}=e.extraConfig,r=e.dataOptions.value.column.title||e.dataOptions.value.column.name,n=e.designOptions.width&&e.designOptions.width<y.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH;return{animation:!1,backgroundColor:y.colorWhite,borderColor:y.colorChineseSilver,borderRadius:10,borderWidth:1,useHTML:!0,style:{width:n?y.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH:void 0},position:{relativeTo:"chart"},followPointer:!0,outside:!0,formatter:function(){var g;const i=this.point,a=i.date&&new Date(i.date);if(!(a&&!isNaN(a.getTime())))return!1;const l=e.dataOptions.date,u=y.getDataOptionGranularity(l),c=l.dateFormat||y.getDefaultDateFormat(u),h=t(a,c);let f="";if(i.value!==null&&i.value!==void 0&&((g=i.custom)!=null&&g.hasData)){const b=e.dataOptions.value.numberFormatConfig,v=y.getCompleteNumberFormatConfig(b);f=y.applyFormat(v,i.value)}else f="—";const p=i.color&&y.scaleBrightness(i.color,y.CALENDAR_HEATMAP_COLORS.TOOLTIP_COLOR_BRIGHTNESS_PERCENT);return y.tooltipWrapper(`
269
- ${r}
270
- <br />
271
- <span style="color: ${p!=null?p:"inherit"}">${f}</span>
272
- ${y.tooltipSeparator()}
273
- ${h}
274
- `)}}}const Nj={getChart:Sj,getSeries:kj,getAxes:Mj,getLegend:Zx,getPlotOptions:Kx,getTooltip:Jx,getExtras:Xx},Lj={getChart:Ej,getSeries:Dj,getAxes:Tj,getLegend:Zx,getPlotOptions:Kx,getTooltip:Jx,getExtras:Xx};function Ij(e){return e==="calendar-heatmap/continuous"?Lj:Nj}function A1(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}`,l=r.get(o);l?i.push(l):i.push({date:new Date(Date.UTC(t.year,t.month,a))})}return $(M({},e),{values:i})}function R1(e,t){if(!e.values||e.values.length===0){const r=$(M({},e),{values:[]});return A1(r,t)}return A1(e,t)}function $j(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,l)=>{const u=R1(n,l);return $(M({},o),{values:[...o.values,...u.values]})},{type:"calendar-heatmap",values:[]}))}else return r.map(i=>R1(n,i))}const Fj=()=>{const e=Yx();return k.useMemo(()=>$(M({},e),{themeSettings:$(M({},e.themeSettings),{chart:$(M({},e.themeSettings.chart),{animation:$(M({},e.themeSettings.chart.animation),{redraw:$(M({},e.themeSettings.chart.animation.redraw),{duration:0})})})})}),[e])};function zj({chartData:e,dataOptions:t,designOptions:r,availableMonths:n,currentMonth:i,subtype:a,viewType:o,containerSize:l,eventHandlers:u,onBeforeRender:c}){const h=Fj(),f=k.useMemo(()=>{var g;const p=(g=t.value.color)!=null?g:GH(h.themeSettings);return UH(p)(e)},[e,t.value.color,h.themeSettings]);return k.useMemo(()=>{if(n.length===0)return[];const p=j0(n,i,o);return $j(a,o,p,f).map(b=>{const v=KH(l,a,o,b,r.startOfWeek),w=Ij(a);return Ux({highchartsOptionsBuilder:w,chartData:b,dataOptions:t,designOptions:$(M({},r),{width:v.width,height:v.height,cellSize:v.cellSize}),dataPointsEventHandlers:{onDataPointClick:u.onDataPointClick,onDataPointContextMenu:u.onDataPointContextMenu,onDataPointsSelected:u.onDataPointsSelected},extraConfig:h,onBeforeRender:c})})},[n,i,o,a,f,t,r,l,u.onDataPointClick,u.onDataPointContextMenu,u.onDataPointsSelected,h,c])}const Bj=e=>{const{chartData:t,startMonth:r}=e,n=ud(r),i=r?Kh(r):t.values.length>0?Kh(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(Kh(r))},[r,n,o]),{currentMonth:a,setCurrentMonth:o}},Wj=tt.div`
275
- display: flex;
276
- flex-direction: column;
277
- width: 100%;
278
- height: 100%;
279
- margin: 0 auto;
280
- background-color: ${({theme:e})=>e.chart.backgroundColor};
281
- `,Hj=tt.div`
282
- display: flex;
283
- flex-direction: column;
284
- align-items: center;
285
- justify-content: center;
286
- flex: 1;
287
- `;function jj({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a,onBeforeRender:o,size:l}){var w,C,T;const{themeSettings:u}=st(),c=Lx(),h=r.subtype,f=r.viewType,{currentMonth:p,setCurrentMonth:g}=Bj({chartData:e,startMonth:(w=r.pagination)==null?void 0:w.startMonth}),b=k.useMemo(()=>ij(e,c,p,f),[e,c,p,f]),v=zj({chartData:e,dataOptions:t,designOptions:r,availableMonths:b,currentMonth:p,subtype:h,viewType:f,containerSize:l,eventHandlers:{onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a},onBeforeRender:o});return y.jsxs(Wj,{theme:u,children:[b.length>0&&((C=r.pagination)==null?void 0:C.enabled)&&y.jsx(hj,{value:p,availableMonths:b,viewType:f,onChange:g,labelStyle:(T=r.pagination)==null?void 0:T.style}),y.jsx(Hj,{children:y.jsx(lj,{monthCharts:v,availableMonths:b,currentMonth:p,viewType:f,subtype:h,monthLabels:r.monthLabels,size:l})})]})}const Vj=e=>!!e.chartData&&Nx(e.chartData)&&Dx(e.dataOptions),Gj={dataOptions:{translateDataOptionsToInternal:_H,getAttributes:wH,getMeasures:xH,isCorrectDataOptions:CH,isCorrectDataOptionsInternal:Dx},data:{loadData:rn,getChartData:TH},designOptions:{translateStyleOptionsToDesignOptions:MH,isCorrectStyleOptions:SH},renderer:{ChartRendererComponent:jj,isCorrectRendererProps:Vj}};var eC=y.metaMap?function(e,t){return y.metaMap.set(e,t),e}:H.identity;function Vs(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=H.baseCreate(e.prototype),n=e.apply(r,t);return H.isObject(n)?n:r}}var Uj=1;function Yj(e,t,r){var n=t&Uj,i=Vs(e);function a(){var o=this&&this!==H.root&&this instanceof a?i:e;return o.apply(n?r:this,arguments)}return a}var qj=Math.max;function tC(e,t,r,n){for(var i=-1,a=e.length,o=r.length,l=-1,u=t.length,c=qj(a-o,0),h=Array(u+c),f=!n;++l<u;)h[l]=t[l];for(;++i<o;)(f||i<a)&&(h[r[i]]=e[i]);for(;c--;)h[l++]=e[i++];return h}var Xj=Math.max;function rC(e,t,r,n){for(var i=-1,a=e.length,o=-1,l=r.length,u=-1,c=t.length,h=Xj(a-l,0),f=Array(h+c),p=!n;++i<h;)f[i]=e[i];for(var g=i;++u<c;)f[g+u]=t[u];for(;++o<l;)(p||i<a)&&(f[g+r[o]]=e[i++]);return f}function Zj(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var nC=H.shortOut(eC),Kj=/\{\n\/\* \[wrapped with (.+)\] \*/,Qj=/,? & /;function Jj(e){var t=e.match(Kj);return t?t[1].split(Qj):[]}var eV=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function tV(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(eV,`{
288
- /* [wrapped with `+t+`] */
289
- `)}function rV(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 nV(e){return e!==e}function iV(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function V0(e,t,r){return t===t?iV(e,t,r):rV(e,nV,r)}function iC(e,t){var r=e==null?0:e.length;return!!r&&V0(e,t,0)>-1}var aV=1,oV=2,sV=8,lV=16,uV=32,cV=64,dV=128,hV=256,fV=512,pV=[["ary",dV],["bind",aV],["bindKey",oV],["curry",sV],["curryRight",lV],["flip",fV],["partial",uV],["partialRight",cV],["rearg",hV]];function mV(e,t){return H.arrayEach(pV,function(r){var n="_."+r[0];t&r[1]&&!iC(e,n)&&e.push(n)}),e.sort()}function aC(e,t,r){var n=t+"";return H.setToString(e,tV(n,mV(Jj(n),r)))}var gV=1,vV=2,yV=4,bV=8,O1=32,k1=64;function oC(e,t,r,n,i,a,o,l,u,c){var h=t&bV,f=h?o:void 0,p=h?void 0:o,g=h?a:void 0,b=h?void 0:a;t|=h?O1:k1,t&=~(h?k1:O1),t&yV||(t&=~(gV|vV));var v=[e,t,i,g,f,b,p,l,u,c],w=r.apply(void 0,v);return y.isLaziable(e)&&nC(w,v),w.placeholder=n,aC(w,e,t)}function sC(e){var t=e;return t.placeholder}var _V=Math.min;function wV(e,t){for(var r=e.length,n=_V(t.length,r),i=H.copyArray(e);n--;){var a=t[n];e[n]=H.isIndex(a,r)?i[a]:void 0}return e}var D1="__lodash_placeholder__";function vc(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];(o===t||o===D1)&&(e[r]=D1,a[i++]=r)}return a}var xV=1,CV=2,TV=8,MV=16,SV=128,EV=512;function G0(e,t,r,n,i,a,o,l,u,c){var h=t&SV,f=t&xV,p=t&CV,g=t&(TV|MV),b=t&EV,v=p?void 0:Vs(e);function w(){for(var C=arguments.length,T=Array(C),E=C;E--;)T[E]=arguments[E];if(g)var S=sC(w),P=Zj(T,S);if(n&&(T=tC(T,n,i,g)),a&&(T=rC(T,a,o,g)),C-=P,g&&C<c){var O=vc(T,S);return oC(e,t,G0,w.placeholder,r,T,O,l,u,c-C)}var N=f?r:this,z=p?N[e]:e;return C=T.length,l?T=wV(T,l):b&&C>1&&T.reverse(),h&&u<C&&(T.length=u),this&&this!==H.root&&this instanceof w&&(z=v||Vs(z)),z.apply(N,T)}return w}function PV(e,t,r){var n=Vs(e);function i(){for(var a=arguments.length,o=Array(a),l=a,u=sC(i);l--;)o[l]=arguments[l];var c=a<3&&o[0]!==u&&o[a-1]!==u?[]:vc(o,u);if(a-=c.length,a<r)return oC(e,t,G0,i.placeholder,void 0,o,c,void 0,void 0,r-a);var h=this&&this!==H.root&&this instanceof i?n:e;return H.apply(h,this,o)}return i}var AV=1;function RV(e,t,r,n){var i=t&AV,a=Vs(e);function o(){for(var l=-1,u=arguments.length,c=-1,h=n.length,f=Array(h+u),p=this&&this!==H.root&&this instanceof o?a:e;++c<h;)f[c]=n[c];for(;u--;)f[c++]=arguments[++l];return H.apply(p,i?r:this,f)}return o}var N1="__lodash_placeholder__",Jh=1,OV=2,kV=4,L1=8,es=128,I1=256,DV=Math.min;function NV(e,t){var r=e[1],n=t[1],i=r|n,a=i<(Jh|OV|es),o=n==es&&r==L1||n==es&&r==I1&&e[7].length<=t[8]||n==(es|I1)&&t[7].length<=t[8]&&r==L1;if(!(a||o))return e;n&Jh&&(e[2]=t[2],i|=r&Jh?0:kV);var l=t[3];if(l){var u=e[3];e[3]=u?tC(u,l,t[4]):l,e[4]=u?vc(e[3],N1):t[4]}return l=t[5],l&&(u=e[5],e[5]=u?rC(u,l,t[6]):l,e[6]=u?vc(e[5],N1):t[6]),l=t[7],l&&(e[7]=l),n&es&&(e[8]=e[8]==null?t[8]:DV(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var LV="Expected a function",$1=1,IV=2,ef=8,tf=16,rf=32,F1=64,z1=Math.max;function $V(e,t,r,n,i,a,o,l){var u=t&IV;if(!u&&typeof e!="function")throw new TypeError(LV);var c=n?n.length:0;if(c||(t&=~(rf|F1),n=i=void 0),o=o===void 0?o:z1(y.toInteger$1(o),0),l=l===void 0?l:y.toInteger$1(l),c-=i?i.length:0,t&F1){var h=n,f=i;n=i=void 0}var p=u?void 0:y.getData(e),g=[e,t,r,n,i,h,f,a,o,l];if(p&&NV(g,p),e=g[0],t=g[1],r=g[2],n=g[3],i=g[4],l=g[9]=g[9]===void 0?u?0:e.length:z1(g[9]-c,0),!l&&t&(ef|tf)&&(t&=~(ef|tf)),!t||t==$1)var b=Yj(e,t,r);else t==ef||t==tf?b=PV(e,t,l):(t==rf||t==($1|rf))&&!i.length?b=RV(e,t,r,n):b=G0.apply(void 0,g);var v=p?eC:nC;return aC(v(b,g),e,t)}var FV=8;function xl(e,t,r){t=r?void 0:t;var n=$V(e,FV,void 0,void 0,void 0,void 0,void 0,t);return n.placeholder=xl.placeholder,n}xl.placeholder={};const zV="_alert_box_10ttx_1",BV="_content_10ttx_8",WV="_alert_10ttx_1",nf={alert_box:zV,content:BV,alert:WV},lC=({alerts:e=[]})=>y.jsx("div",{className:nf.alert_box,children:y.jsx("div",{className:nf.content,children:[...new Set(e)].map((t,r)=>y.jsx("div",{className:nf.alert,children:t},`alert-${r}`))})}),HV=e=>["column","bar","line","area","polar","pie","funnel","treemap","calendar-heatmap","sunburst","streamgraph"].includes(e);function Pn({highchartsOptionsBuilder:e,getAlerts:t}){return function({chartData:n,dataOptions:i,designOptions:a,onDataPointClick:o,onDataPointContextMenu:l,onDataPointsSelected:u,onBeforeRender:c,size:h}){const f=Yx(),p=k.useMemo(()=>Ux({highchartsOptionsBuilder:e,chartData:n,dataOptions:i,designOptions:a,dataPointsEventHandlers:{onDataPointClick:o,onDataPointContextMenu:l,onDataPointsSelected:u},extraConfig:f,onBeforeRender:c}),[n,i,a,o,l,u,f,c]),g=k.useMemo(()=>p?$(M({},p),{chart:M(M(M({},p.chart),(h==null?void 0:h.width)&&{width:h.width}),(h==null?void 0:h.height)&&{height:h.height})}):null,[p,h]),b=t({chartData:n,dataOptions:i,designOptions:a,extraConfig:f});return g&&y.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!b.length&&y.jsx(lC,{alerts:b}),y.jsx(z0,{options:g})]})}}function An(e){return!!e.chartData&&!!e.chartType&&HV(e.chartType)}var jV="[object String]";function U0(e){return typeof e=="string"||!H.isArray(e)&&H.isObjectLike(e)&&H.baseGetTag(e)==jV}const wo=e=>{const{chartData:t,designOptions:r}=e,{seriesCapacity:n,categoriesCapacity:i}=r.dataLimits,a=t.xValues.length>i?y.categoriesSliceWarning("x",t.xValues.length,i):null,o=t.series.length>n?y.seriesSliceWarning(t.series.length,n):null;return[a,o].filter(U0)};function xo(e,t){return y.cartesianData(e,t)}const cd=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"}}),$p=(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},VV=e=>e!=null&&e.enabled?{enabled:!0,scrollerLocation:e==null?void 0:e.scrollerLocation}:{enabled:!1},GV=e=>{const t=$p(e,xr.yAxis);return t.gridLine=e.templateMainYHasGridLines||!1,t},Y0=e=>{let t=1;switch(e.width){case"thin":t=1;break;case"bold":t=3;break;case"thick":t=5;break}return t},uC="classic",nn=(e,t)=>{var u,c,h,f;const r=ZV(),n=$p(e.xAxis,xr.xAxis);let i=null;(c=(u=e==null?void 0:e.xAxis)==null?void 0:u.x2Title)!=null&&c.enabled&&((f=(h=e==null?void 0:e.xAxis)==null?void 0:h.x2Title)!=null&&f.text)&&(i=$(M({},xr.xAxis),{title:e.xAxis.x2Title.text}));const a=$p(e.yAxis,xr.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},GV(e.y2Axis)):void 0,l=VV(e.navigator);return $(M(M($(M($(M({},xr),{legend:e.legend,autoZoom:l}),e.seriesLabels&&{seriesLabels:e.seriesLabels}),{xAxis:n,yAxis:a}),o&&{y2Axis:o}),i&&{x2Axis:i}),{dataLimits:r})},dd=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),UV=(e,t,r,n)=>{const i=nn(e,r),a=Mn(e!=null?e:{},y.getDefaultStyleOptions()),o=wi(t,n,a);return $(M({},i),{designPerSeries:o,stackType:uC,totalLabels:e.totalLabels})},YV=(e,t)=>{var n,i,a,o,l,u,c;const r=nn(t,!1);if(e==="line"){const h=t;h.line&&(r.line={width:(a=(n=h.line)==null?void 0:n.width)!=null?a:Y0((i=h.lineWidth)!=null?i:{width:"bold"}),dashStyle:(o=h.line)==null?void 0:o.dashStyle,endCap:(l=h.line)==null?void 0:l.endCap,shadow:(u=h.line)==null?void 0:u.shadow}),r.marker=dd((c=h==null?void 0:h.markers)!=null?c:{enabled:!0,fill:"filled",size:"small"}),h.subtype==="line/step"&&(r.step=h.stepPosition||"left")}return r},qV=(e,t,r)=>{var l,u,c,h,f,p,g;const n=nn(e,r);n.marker=dd((l=e==null?void 0:e.markers)!=null?l:{enabled:!0,fill:"filled",size:"small"});const i=Mn(e!=null?e:{},y.getDefaultStyleOptions()),a=wi(t,"line",i),o=$(M({},n),{designPerSeries:a,line:{width:(h=(u=e.line)==null?void 0:u.width)!=null?h:Y0((c=e.lineWidth)!=null?c:{width:"bold"}),dashStyle:(f=e.line)==null?void 0:f.dashStyle,endCap:(p=e.line)==null?void 0:p.endCap,shadow:(g=e.line)==null?void 0:g.shadow}});return e.subtype==="line/step"&&(o.step=e.stepPosition||"left"),o},XV=(e,t,r)=>{var n,i,a,o,l,u,c;return $(M({},UV(e,t,r,"area")),{marker:dd((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:Y0((a=e.lineWidth)!=null?a:{width:"thin"}),dashStyle:(l=e.line)==null?void 0:l.dashStyle,endCap:(u=e.line)==null?void 0:u.endCap,shadow:(c=e.line)==null?void 0:c.shadow}})},q0=(e,t)=>{var i;const r={seriesCapacity:t==="categorical"?lc:t==="pie"?ED:C0,categoriesCapacity:t==="scatter"?PD:lc},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 ZV(){return{seriesCapacity:C0,categoriesCapacity:lc}}const Oa={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},KV="classic",QV=e=>{var h,f,p,g,b,v,w,C,T,E,S,P,O,N,z,U;const{legend:t,labels:r,subtype:n,seriesLabels:i}=e;let a=Oa;(i||r)&&(a=$(M({},i),{enabled:(f=(h=i==null?void 0:i.enabled)!=null?h:r==null?void 0:r.enabled)!=null?f:Oa.enabled,showCategory:(g=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?g:Oa.showCategory,showValue:(v=(b=i==null?void 0:i.showValue)!=null?b:r==null?void 0:r.value)!=null?v:Oa.showValue,percentageLabels:$(M({},i==null?void 0:i.percentageLabels),{enabled:(S=(E=(C=(w=i==null?void 0:i.percentageLabels)==null?void 0:w.enabled)!=null?C:r==null?void 0:r.percent)!=null?E:(T=Oa.percentageLabels)==null?void 0:T.enabled)!=null?S:!1,showDecimals:(U=(z=(O=(P=i==null?void 0:i.percentageLabels)==null?void 0:P.showDecimals)!=null?O:r==null?void 0:r.decimals)!=null?z:(N=Oa.percentageLabels)==null?void 0:N.showDecimals)!=null?U:!1})}));const o=n?cd[n]:void 0,l=(o==null?void 0:o.pieType)||KV,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=q0(e,"pie");return $(M({},xr),{seriesLabels:a,pieType:l,convolution:u,legend:t,dataLimits:c})},JV=e=>{var u,c,h,f,p,g,b,v,w,C;const{funnelType:t=y.DefaultFunnelType,funnelSize:r=y.DefaultFunnelSize,funnelDirection:n=y.DefaultFunnelDirection,legend:i,labels:a,seriesLabels:o}=e,l=q0(e,"categorical");return $(M({},xr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:l,seriesLabels:$(M({},o!=null?o:{}),{enabled:(c=(u=o==null?void 0:o.enabled)!=null?u:a==null?void 0:a.enabled)!=null?c:y.DefaultFunnelSeriesLabels.enabled,showCategory:(f=(h=o==null?void 0:o.showCategory)!=null?h:a==null?void 0:a.categories)!=null?f:y.DefaultFunnelSeriesLabels.showCategory,showValue:(g=(p=o==null?void 0:o.showValue)!=null?p:a==null?void 0:a.value)!=null?g:y.DefaultFunnelSeriesLabels.showValue,showPercentage:(v=(b=o==null?void 0:o.showPercentage)!=null?b:a==null?void 0:a.percent)!=null?v:y.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(C=(w=o==null?void 0:o.showPercentDecimals)!=null?w:a==null?void 0:a.decimals)!=null?C:y.DefaultFunnelSeriesLabels.showPercentDecimals})})},cC=e=>e,dC=e=>e,eG="column",tG=(e,t)=>{const r=nn(e,!1),n=Mn(e!=null?e:{},y.getDefaultStyleOptions()),i=wi(t,"polar",n),a=$(M({},r),{polarType:eG,designPerSeries:i});return y.withYAxisNormalizationForPolar(a)},rG=e=>M(M({},y.defaultScatterMarkerSize),e),nG=e=>{var t;return $(M({},nn(e,!1)),{lineWidth:0,marker:dd((t=e==null?void 0:e.markers)!=null?t:{enabled:!0,fill:"filled",size:"small"}),dataLimits:q0(e,"scatter"),markerSize:rG(e.markerSize),legend:e.legend})},iG=e=>$(M({},nn(e,!1)),{boxplotType:e.subtype==="boxplot/hollow"?"hollow":"full"}),aG={fill:"filled",size:{defaultSize:4,minSize:4,maxSize:24}},oG=e=>$(M({},xr),{markers:H.merge$1(aG,e.markers||{})}),sG={"line/basic":"straight","line/spline":"smooth","line/step":"straight"},lG=e=>({thin:1,bold:3,thick:5})[e.width],uG=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),cG=(e,t)=>nn(e,ld(t)),dG=e=>t=>{var r,n,i,a,o,l;return $(M({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:lG(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:uG((l=e==null?void 0:e.markers)!=null?l:{enabled:!0,fill:"filled",size:"small"})})},hG=(e,t)=>r=>{const n=Mn(e!=null?e:{},y.getDefaultStyleOptions()),i=wi(t,"line",n);return $(M({},r),{designPerSeries:i})},fG=e=>t=>{const r=e.subtype||"line/basic",n=sG[r];return n?$(M({},t),{lineType:n}):t},pG=e=>t=>{const r=e.subtype==="line/step"?{step:e.stepPosition||"left"}:{};return M(M({},t),r)};function mG(e,t){const r=cG(e,t);return y.flow(dG(e),hG(e,t),fG(e),pG(e))(r)}const gG=["line/basic","line/spline","line/step"];function vG(e){return"subtype"in e&&e.subtype?gG.includes(e.subtype):!0}const wt=(e,t)=>y.getCartesianChartOptions(e.chartData,t,e.designOptions,e.dataOptions,e.extraConfig.translate,e.extraConfig.themeSettings,e.extraConfig.dateFormatter).options,yG={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},bG=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"}}},_G=e=>{if((e==null?void 0:e.enabled)===!1||!e)return;const{text:t,textStyle:r}=e;return{title:{text:t,style:r}}},wG=e=>{if(!e)return;const{layout:t,textStyle:r,marginBottom:n,marginTop:i,distance:a,width:o,hoverTextStyle:l,hiddenTextStyle:u}=e||{};return{layout:t,itemStyle:r,itemMarginBottom:n,itemMarginTop:i,itemDistance:a,itemWidth:o,itemHoverStyle:l,itemHiddenStyle:u}},xG=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}},CG=e=>{const c=e,{title:t,items:r,symbols:n,xOffset:i,yOffset:a,backgroundColor:o,borderColor:l}=c,u=xe(c,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return y.omitUndefinedAndEmpty($(M(M(M(M({},u),_G(t)),wG(r)),xG(n)),{x:i,y:a,backgroundColor:y.withGradientConversion(o),borderColor:y.withGradientConversion(l)}))},Co=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=bG(r||null),a=CG(n);return y.omitUndefinedAndEmpty($(M(M(M({},t),i),a),{itemStyle:M(M({},yG),a.itemStyle)}))},To=e=>y.getCartesianTooltipSettings(e.dataOptions,e.extraConfig.translate),Mo=(e,t)=>{const r=y.buildCategoriesMeta(e.chartData,e.dataOptions,e.designOptions,y.isContinuousDatetimeXAxis(e.dataOptions.x));return y.buildXAxisSettings({designOptions:e.designOptions,dataOptions:e.dataOptions,chartData:e.chartData,categoriesMeta:r,orientation:t,isContinuous:y.isContinuousDatetimeXAxis(e.dataOptions.x),dateFormatter:e.extraConfig.dateFormatter})},So=(e,t)=>{const r=y.buildYAxisMeta(e.chartData,e.dataOptions),n=y.buildYAxisMinMax(0,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero),i=y.hasSecondaryYAxis(r.side)?y.buildYAxisMinMax(1,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero):void 0;return y.getYAxisSettings(e.designOptions.yAxis,e.designOptions.y2Axis,n,i,e.dataOptions,e.extraConfig.themeSettings)},TG=e=>{const t=Mo(e,"horizontal"),r=So(e,"line");return{xAxis:t,yAxis:r}},MG={getChart:function(e){return wt(e,"line").chart},getSeries:function(e){return wt(e,"line").series},getAxes:TG,getLegend:function(e){return Co(e.designOptions.legend)},getPlotOptions:function(e){return wt(e,"line").plotOptions},getTooltip:To,getExtras:function(e){const t=wt(e,"line");return H.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},SG={dataOptions:{translateDataOptionsToInternal:oa,getAttributes:vo,getMeasures:yo,isCorrectDataOptions:bo,isCorrectDataOptionsInternal:_o},data:{loadData:rn,getChartData:xo},designOptions:{translateStyleOptionsToDesignOptions:xl(mG),isCorrectStyleOptions:vG},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:MG,getAlerts:wo}),isCorrectRendererProps:An}},EG={translateDataOptionsToInternal:oa,getAttributes:vo,getMeasures:yo,isCorrectDataOptions:bo,isCorrectDataOptionsInternal:_o},PG={loadData:rn,getChartData:xo};function AG(e,t){const r=nn(e,!1),n=Mn(e,y.getDefaultStyleOptions()),i=wi(t,"polar",n),a=e.subtype||"polar/column",o=cd[a],l=(o==null?void 0:o.polarType)||"column",u=$(M({},r),{polarType:l,designPerSeries:i});return y.withYAxisNormalizationForPolar(u)}function RG(e){return typeof e=="object"&&e!==null&&(!("subtype"in e)||!e.subtype||e.subtype.startsWith("polar/"))}const OG={translateStyleOptionsToDesignOptions:AG,isCorrectStyleOptions:RG};function kG(e){const t=Mo(e,"horizontal"),r=So(e,"polar");return{xAxis:y.withPolarSpecificAxisSettings(t),yAxis:r}}const DG={getChart:function(e){const t=wt(e,"polar");return $(M({},t.chart),{polar:!0})},getSeries:function(e){return wt(e,"polar").series},getAxes:kG,getLegend:function(e){return Co(e.designOptions.legend)},getPlotOptions:function(e){return wt(e,"polar").plotOptions},getTooltip:To,getExtras:function(e){const t=wt(e,"polar");return H.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},NG={dataOptions:EG,data:PG,designOptions:OG,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:DG,getAlerts:wo}),isCorrectRendererProps:An}},LG={"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"}},IG=e=>({thin:1,bold:3,thick:5})[e.width],$G=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),FG=(e,t)=>nn(e,ld(t)),zG=e=>t=>{var r,n,i,a,o,l;return $(M({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:IG(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:$G((l=e==null?void 0:e.markers)!=null?l:{enabled:!0,fill:"filled",size:"small"})})},BG=(e,t)=>r=>{const n=Mn(e!=null?e:{},y.getDefaultStyleOptions()),i=wi(t,"area",n);return $(M({},r),{designPerSeries:i})},WG=e=>t=>{const r=e.subtype||"area/basic",n=LG[r];return n?$(M({},t),{lineType:n.lineType,stackType:n.stackType}):t},HG=e=>t=>{var r;return $(M({},t),{totalLabels:(r=e.totalLabels)!=null?r:{enabled:!1,rotation:0}})};function jG(e,t){const r=FG(e,t);return y.flow(zG(e),BG(e,t),WG(e),HG(e))(r)}const VG=["area/basic","area/stacked","area/stacked100","area/spline","area/stackedspline","area/stackedspline100"];function GG(e){return"subtype"in e&&e.subtype?VG.includes(e.subtype):!0}const UG=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}}},X0=e=>t=>{var h,f;const r=e.designOptions,n=UG(r),{stacking:i,totalLabels:a}=n;if(!(a!=null&&a.enabled)&&!i)return t;const o=e.dataOptions,l=y.getCompleteNumberFormatConfig((h=o.y.find(({showOnRightAxis:p})=>!p))==null?void 0:h.numberFormatConfig),u=y.getCompleteNumberFormatConfig((f=o.y.find(({showOnRightAxis:p})=>p))==null?void 0:f.numberFormatConfig);function c(p,g,b=!1){return function(){var E,S;const v=typeof this.value=="number"?this.value:parseFloat(this.value),w=b&&this.total||v,C=y.applyFormatPlainText(p,w),T=g==="percent"?`${C}%`:C;return b?`${(E=a==null?void 0:a.prefix)!=null?E:""}${T}${(S=a==null?void 0:a.suffix)!=null?S:""}`:T}}return t.map((p,g)=>{const v=g===1?u:l;return $(M({},p),{labels:i?$(M({},p.labels),{formatter:c(v,i)}):p.labels,stackLabels:a!=null&&a.enabled?$(M(M({},p.stackLabels),y.prepareStackLabels(a)),{formatter:c(v,"normal",!0),style:M(M(M({},y.stackTotalFontStyleDefault),e.extraConfig.themeSettings?{color:e.extraConfig.themeSettings.typography.primaryTextColor}:null),y.prepareStackLabels(a).style),crop:!0,allowOverlap:!1,labelrank:99999}):p.stackLabels})})},gu={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},YG={FULL_ROTATION:180};function hC(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%YG.FULL_ROTATION;i<gu.HORIZONTAL?r=10:i<gu.DIAGONAL?r=30:i<gu.VERTICAL?r=40:i<gu.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const qG=e=>{const t=Mo(e,"horizontal"),r=So(e,"area");return{xAxis:XG(e)(t),yAxis:y.flow(X0(e),ZG(e))(r)}};function XG(e){const{rightSpacing:t,topSpacing:r}=hC(e.designOptions);return y.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function ZG(e){const t=KG(e);return y.withYAxisLabelPositioning({rightShift:0,topShift:t})}function KG(e){var i;const t=e.designOptions;if(!(((i=t.totalLabels)==null?void 0:i.enabled)&&t.stackType==="stack100"))return 0;const{topSpacing:n}=hC(e.designOptions);return-1*(n/2)}const QG={getChart:function(e){return wt(e,"area").chart},getSeries:function(e){return wt(e,"area").series},getAxes:qG,getLegend:function(e){return Co(e.designOptions.legend)},getPlotOptions:function(e){return wt(e,"area").plotOptions},getTooltip:To,getExtras:function(e){const t=wt(e,"area");return H.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},JG={dataOptions:{translateDataOptionsToInternal:oa,getAttributes:vo,getMeasures:yo,isCorrectDataOptions:bo,isCorrectDataOptionsInternal:_o},data:{loadData:rn,getChartData:xo},designOptions:{translateStyleOptionsToDesignOptions:jG,isCorrectStyleOptions:GG},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:QG,getAlerts:wo}),isCorrectRendererProps:An}};function fC(e,t,r){var o,l,u,c,h,f;const n=nn(t,ld(r)),i=Mn(t!=null?t:{},y.getDefaultStyleOptions()),a=wi(r,e,i);return $(M({},n),{designPerSeries:a,stackType:t.subtype?pC[t.subtype]:uC,totalLabels:t.totalLabels,itemPadding:(l=(o=t.series)==null?void 0:o.padding)!=null?l:.01,groupPadding:(c=(u=t.series)==null?void 0:u.groupPadding)!=null?c:.1,borderRadius:(f=(h=t.series)==null?void 0:h.borderRadius)!=null?f:0})}const pC={"bar/classic":"classic","bar/stacked":"stacked","bar/stacked100":"stack100","column/classic":"classic","column/stackedcolumn":"stacked","column/stackedcolumn100":"stack100"};function mC(e){return"subtype"in e&&e.subtype?Object.keys(pC).includes(e.subtype):!0}const vu={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},eU={FULL_ROTATION:180};function tU(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)%eU.FULL_ROTATION;i<vu.HORIZONTAL?t=40:i<vu.DIAGONAL?t=25:i<vu.VERTICAL?t=15:i<vu.INVERTED_DIAGONAL?t=25:t=40}return{rightSpacing:t,topSpacing:r}}const rU=e=>{const t=Mo(e,"vertical"),r=So(e,"bar");return{xAxis:nU(e)(t),yAxis:y.flow(X0(e),iU(e))(r)}};function nU(e){const{rightSpacing:t,topSpacing:r}=tU(e.designOptions);return y.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function iU(e){var a;const t=e.designOptions,n=((a=t.totalLabels)==null?void 0:a.enabled)&&t.stackType==="stack100"?.1:0;return y.withYAxisLabelPositioning({rightShift:n,topShift:0})}const aU=e=>oU(e)(Co(e.designOptions.legend));function oU(e){return r=>{var n,i;return e.dataOptions.x.length>1&&y.isLegendOnRight(e.designOptions.legend)?$(M({},r),{margin:(i=(n=e.designOptions.legend)==null?void 0:n.margin)!=null?i:80}):r}}const sU={getChart:function(e){return wt(e,"bar").chart},getSeries:function(e){return wt(e,"bar").series},getAxes:rU,getLegend:aU,getPlotOptions:function(e){return wt(e,"bar").plotOptions},getTooltip:To,getExtras:function(e){const t=wt(e,"bar");return H.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},lU={dataOptions:{translateDataOptionsToInternal:oa,getAttributes:vo,getMeasures:yo,isCorrectDataOptions:bo,isCorrectDataOptionsInternal:_o},data:{loadData:rn,getChartData:xo},designOptions:{translateStyleOptionsToDesignOptions:xl(fC)("bar"),isCorrectStyleOptions:mC},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:sU,getAlerts:wo}),isCorrectRendererProps:An}},yu={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},uU={FULL_ROTATION:180};function gC(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%uU.FULL_ROTATION;i<yu.HORIZONTAL?r=10:i<yu.DIAGONAL?r=30:i<yu.VERTICAL?r=40:i<yu.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const cU=e=>{const t=Mo(e,"horizontal"),r=So(e,"column");return{xAxis:dU(e)(t),yAxis:y.flow(X0(e),hU(e))(r)}};function dU(e){const{rightSpacing:t,topSpacing:r}=gC(e.designOptions);return y.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function hU(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}=gC(e.designOptions);n=-1*(o/2)}return y.withYAxisLabelPositioning({rightShift:0,topShift:n})}const fU={getChart:function(e){return wt(e,"column").chart},getSeries:function(e){return wt(e,"column").series},getAxes:cU,getLegend:function(e){return Co(e.designOptions.legend)},getPlotOptions:function(e){return wt(e,"column").plotOptions},getTooltip:To,getExtras:function(e){const t=wt(e,"column");return H.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},pU={dataOptions:{translateDataOptionsToInternal:oa,getAttributes:vo,getMeasures:yo,isCorrectDataOptions:bo,isCorrectDataOptionsInternal:_o},data:{loadData:rn,getChartData:xo},designOptions:{translateStyleOptionsToDesignOptions:xl(fC)("column"),isCorrectStyleOptions:mC},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:fU,getAlerts:wo}),isCorrectRendererProps:An}},mU=e=>{const t=n=>typeof n=="number"&&Number.isNaN(n)||n==null?0:n,r=n=>{const i=t(n.value);return $(M({},n),{value:i})};return $(M({},e),{series:e.series.map(n=>$(M({},n),{data:n.data.map(r)}))})},gU=y.flow(xo,mU),vU=e=>({thin:1,bold:3,thick:5})[e.width],yU=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),bU=(e,t)=>nn(e,ld(t)),_U=e=>t=>{var r,n,i,a,o,l,u,c,h;return $(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:vU(e.lineWidth||{width:"thin"}),dashStyle:(l=e.line)==null?void 0:l.dashStyle,endCap:(u=e.line)==null?void 0:u.endCap,shadow:(c=e.line)==null?void 0:c.shadow},marker:yU((h=e==null?void 0:e.markers)!=null?h:{enabled:!1,fill:"filled",size:"small"})})},wU=(e,t)=>r=>{const n=wi(t,"area",e);return $(M({},r),{designPerSeries:n})},xU=e=>t=>{var r,n,i,a,o,l,u,c,h,f,p,g;return $(M({},t),{seriesLabels:$(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:(l=e.seriesLabels)==null?void 0:l.enabled)!=null?c:!1,textStyle:$(M({},(h=e.seriesLabels)==null?void 0:h.textStyle),{color:(g=(p=(f=e.seriesLabels)==null?void 0:f.textStyle)==null?void 0:p.color)!=null?g:"#000000"})})})};function CU(e,t){const r=bU(e,t);return y.flow(_U(e),wU(e,t),xU(e))(r)}function TU(e){return!0}function MU(){const e=y.getDefaultStyleOptions();return H.merge$1(e,{yAxis:{enabled:!0,gridLines:!0,labels:{enabled:!1},title:{enabled:!1,text:""}},xAxis:{gridLines:!1},legend:{enabled:!1}})}const SU=e=>{const t=Mo(e,"horizontal"),r=So(e,"area"),n=t.map(a=>{var o;return $(M({},a),{gridLineWidth:e.designOptions.xAxis.gridLine?1:0,labels:$(M({},a.labels),{enabled:(o=e.designOptions.xAxis.labels)!=null?o:!0})})}),i=r.map(a=>$(M({},a),{visible:e.designOptions.yAxis.enabled,gridLineWidth:e.designOptions.yAxis.gridLine?1:0,labels:$(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}},EU=e=>{var n,i,a,o,l;const t=wt(e,"area").plotOptions,r=(i=(n=e.designOptions.line)==null?void 0:n.width)!=null?i:1;return $(M({},t),{series:$(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:(l=e.designOptions.seriesTitles)==null?void 0:l.textStyle}})})},PU={getChart:function(e){const t=wt(e,"area");return $(M({},t.chart),{type:"streamgraph"})},getSeries:function(e){return wt(e,"area").series},getAxes:SU,getLegend:function(e){return Co(e.designOptions.legend)},getPlotOptions:EU,getTooltip:To,getExtras:function(e){const t=wt(e,"area");return H.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},AU={dataOptions:{translateDataOptionsToInternal:oa,getAttributes:vo,getMeasures:yo,isCorrectDataOptions:bo,isCorrectDataOptionsInternal:_o},data:{loadData:rn,getChartData:gU},designOptions:{translateStyleOptionsToDesignOptions:CU,isCorrectStyleOptions:TU,getDefaultStyleOptions:MU},renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:PU,getAlerts:wo}),isCorrectRendererProps:An}},RU=e=>y.getAlerts(e.chartData,e.designOptions);function OU(e,t){const r=kU[e],n=e!=="pie"||t.category.length>0,i=[vC(r.category),n?yC(r.value):a=>a];return y.flow(...i)(t)}const kU={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function vC(e){return t=>(t.category.length>e&&console.warn(`Maximum 'category' length is limited to ${e}. Taken first ${e} categories`),$(M({},t),{category:t.category.slice(0,e)}))}function yC(e){return t=>(t.value.length>e&&console.warn(`Maximum 'value' length is limited to ${e}. Taken first ${e} values`),$(M({},t),{value:t.value.slice(0,e)}))}function bC(e){return{y:e.value.map(t=>y.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>y.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}}function hd(e){return[...e.breakBy.map(_C)].filter(DU)}function fd(e){return e.y.map(_C).filter(y.isMeasureColumn)}function pd(e){return"category"in e&&"value"in e&&Array.isArray(e.category)&&Array.isArray(e.value)}function md(e){return e&&"y"in e&&Array.isArray(e.y)&&e.y.every(y.isMeasureColumn)&&"breakBy"in e&&Array.isArray(e.breakBy)&&e.breakBy.every(y.isStyledColumn)}function _C(e){return e.column}function DU(e){return!y.isMeasureColumn(e)}function gd({maxCategories:e,maxValues:t}){return y.flow(vC(e),yC(t))}const NU={translateDataOptionsToInternal:e=>{const t=e.category.length>0?gd({maxCategories:1,maxValues:1})(e):e;return bC(t)},getAttributes:e=>hd(e),getMeasures:e=>fd(e),isCorrectDataOptions:e=>pd(e),isCorrectDataOptionsInternal:e=>md(e)},vd=(e,t)=>{const r=$(M({},e),{x:e.breakBy,breakBy:[]});let n=y.cartesianData(r,t);if(e.breakBy.some(({column:{type:a},numberFormatConfig:o})=>H.isNumber(a)&&o)){const a=n.xValues.map(o=>{const l=[];return e.breakBy.forEach(({column:{type:u},numberFormatConfig:c},h)=>{const f=y.getCompleteNumberFormatConfig(c),p=o.xValues[h];H.isNumber(u)?l.push(y.applyFormatPlainText(f,parseFloat(p))):l.push(o.xValues[h])}),$(M({},o),{xValues:l})});n=$(M({},n),{xValues:a})}return $(M({},n),{type:"categorical"})},wC=rn;function xC(e,t){return vd(e,t)}const B1=50,LU=e=>(...t)=>{var l;const[r,...n]=t,i=(l=r.queryDescription)==null?void 0:l.count,a=Math.min(i!=null?i:B1,B1),o=$(M({},r),{queryDescription:$(M({},r.queryDescription),{count:a})});return e(o,...n)},IU={loadData:LU(wC),getChartData:(e,t)=>xC(e,t)},$U=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 FU(e){var l,u,c,h,f;const{funnelType:t=y.DefaultFunnelType,funnelSize:r=y.DefaultFunnelSize,funnelDirection:n=y.DefaultFunnelDirection,legend:i,seriesLabels:a}=e,o=$U(e);return $(M({},xr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:o,seriesLabels:$(M({},a!=null?a:{}),{enabled:(l=a==null?void 0:a.enabled)!=null?l:y.DefaultFunnelSeriesLabels.enabled,showCategory:(u=a==null?void 0:a.showCategory)!=null?u:y.DefaultFunnelSeriesLabels.showCategory,showValue:(c=a==null?void 0:a.showValue)!=null?c:y.DefaultFunnelSeriesLabels.showValue,showPercentage:(h=a==null?void 0:a.showPercentage)!=null?h:y.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(f=a==null?void 0:a.showPercentDecimals)!=null?f:y.DefaultFunnelSeriesLabels.showPercentDecimals})})}function zU(e){return!e||typeof e=="object"}function BU(){return{legend:{enabled:!0,position:"bottom"},funnelType:y.DefaultFunnelType,funnelSize:y.DefaultFunnelSize,funnelDirection:y.DefaultFunnelDirection,seriesLabels:y.DefaultFunnelSeriesLabels}}function WU(e={}){var a,o,l,u,c;const i=e,{labels:t,seriesLabels:r}=i,n=xe(i,["labels","seriesLabels"]);return y.omitUndefinedAndEmpty($(M({},n),{seriesLabels:$(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:(l=r==null?void 0:r.showValue)!=null?l: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 HU={translateStyleOptionsToDesignOptions:FU,isCorrectStyleOptions:zU,getDefaultStyleOptions:BU,translateLegacyStyleOptionsToModern:WU},jU={getChart:function(e){return{type:y.determineHighchartsChartType("funnel",e.designOptions),spacing:[30,30,30,30],alignTicks:!1,polar:!1}},getSeries:function(e){const{series:t}=y.formatFunnelChartData(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings);return t},getAxes:function(){return{xAxis:[],yAxis:[]}},getLegend:function(e){return y.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return y.getFunnelPlotOptions(e.designOptions,e.dataOptions)},getTooltip:function(e){var t;return y.getCategoryTooltipSettings((t=e.designOptions.seriesLabels)==null?void 0:t.showPercentDecimals,e.dataOptions)},getExtras:function(){return{title:{text:null}}}},VU={dataOptions:NU,data:IU,designOptions:HU,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:jU,getAlerts:RU}),isCorrectRendererProps:An}},GU=e=>{const{seriesCapacity:t}=e.designOptions.dataLimits;return y.getPieAlerts(e.chartData,t)},UU={translateDataOptionsToInternal:e=>{const t=e.category.length>0?gd({maxCategories:1,maxValues:1})(e):e;return bC(t)},getAttributes:e=>hd(e),getMeasures:e=>fd(e),isCorrectDataOptions:e=>pd(e),isCorrectDataOptionsInternal:e=>md(e)},YU={loadData:wC,getChartData:(e,t)=>xC(e,t)},qU="classic",ts={enabled:!0,showCategory:!0,showValue:!1,percentageLabels:{enabled:!0,showDecimals:!1}},XU=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 ZU(e){var h,f,p,g,b,v,w,C,T,E,S,P;const{legend:t,labels:r,subtype:n,seriesLabels:i,semiCircle:a}=e,o=n?cd[n]:void 0,l=(o==null?void 0:o.pieType)||qU,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=XU(e);return $(M({},xr),{seriesLabels:$(M({},i),{enabled:(f=(h=i==null?void 0:i.enabled)!=null?h:r==null?void 0:r.enabled)!=null?f:ts.enabled,showCategory:(g=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?g:ts.showCategory,showValue:(v=(b=i==null?void 0:i.showValue)!=null?b:r==null?void 0:r.value)!=null?v:ts.showValue,percentageLabels:$(M({},i==null?void 0:i.percentageLabels),{enabled:(T=(C=(w=i==null?void 0:i.percentageLabels)==null?void 0:w.enabled)!=null?C:r==null?void 0:r.percent)!=null?T:ts.percentageLabels.enabled,showDecimals:(P=(S=(E=i==null?void 0:i.percentageLabels)==null?void 0:E.showDecimals)!=null?S:r==null?void 0:r.decimals)!=null?P:ts.percentageLabels.showDecimals})}),pieType:l,convolution:u,legend:t,dataLimits:c,semiCircle:a})}function KU(e){return!e||typeof e=="object"}function QU(){return{legend:{enabled:!0,position:"bottom"},labels:{enabled:!0,categories:!0,percent:!0,decimals:!1,value:!1}}}const JU={translateStyleOptionsToDesignOptions:ZU,isCorrectStyleOptions:KU,getDefaultStyleOptions:QU},eY={getChart:function(e){return{type:y.determineHighchartsChartType("pie",e.designOptions),spacing:[20,20,20,20],alignTicks:!1,polar:!1}},getSeries:function(e){return y.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 y.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return y.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 y.getCategoryTooltipSettings((r=(t=e.designOptions.seriesLabels)==null?void 0:t.percentageLabels)==null?void 0:r.showDecimals,e.dataOptions)},getExtras:function(e){const t=y.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}}}},tY={dataOptions:UU,data:YU,designOptions:JU,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:eY,getAlerts:GU}),isCorrectRendererProps:An}};function rY(){return[]}const nY=(e,t)=>{if(y.emptyTable(t))return{rows:[],columns:[]};const r=y.getColumnsByName(t,e);return y.selectColumns(t,r)},Fp=({column:e,sortType:t})=>{switch("getSort"in e?e.getSort():t){case"sortAsc":case H.Sort.Ascending:return 1;case"sortDesc":case H.Sort.Descending:return-1;default:return 0}},iY=(e,t)=>{const r=e.columns.find(n=>Fp(n)!==0);if(r){const n=y.getColumnByName(t,r.column.name);n&&(n.direction=Fp(r))}return t},CC=e=>{if(!("sortType"in e))return e;const t=e.sortType,r=H.convertSortDirectionToSort(t);return $(M({},e),{sortType:t,column:aY(e.column,r)})};function aY(e,t){return sY(e)?oY(e,t):e}function oY(e,t){const r=e.sort(t);return y.isMeasureColumn(r)&&y.isMeasureColumn(e)&&(r.title=e.title),r}function sY(e){return"sort"in e&&typeof e.sort=="function"}const lY=(e,t)=>({columns:e.columns.map(r=>{const n=r.column.name===t.name,i=Fp(r),a=n?i===1?"sortDesc":"sortAsc":"sortNone";return r.sortType=a,CC(r)})}),uY=(e,t)=>{const r=nY(e.columns.map(({column:{name:n}})=>n),t);return iY(e,r)},cY=(e,t)=>{switch(t){case"iqr":return HR(e);case"extremums":return jR(e);case"standardDeviation":return VR(e)}},dY=(e,t)=>{switch(t){case"iqr":return GR(e);case"standardDeviation":return UR(e)}},hY=(e,t,r)=>{const{column:n,style:i}=y.splitColumn(e);let a=cY(n,t),o;return i&&(a=a.map(l=>M({column:l},i))),r&&(o=dY(n,t),o&&i&&(o=M({column:o},i))),{values:a,outliers:o}},fY=e=>e.value.length>1,TC=e=>{var f;const{category:t}=e;let r,n,i;if(fY(e))r=e.value,i=e.valueTitle,n=(f=e.outliers)==null?void 0:f[0];else{const{outliersEnabled:p,boxType:g}=e,b=y.normalizeColumn(e.value[0]),{values:v,outliers:w}=hY(b,g,!!p);r=v,n=w,i=y.getDataOptionTitle(b)}const[a,o,l,u,c,h]=r;return{category:t[0]&&y.normalizeColumn(t[0]),boxMin:a&&y.normalizeMeasureColumn(a),boxMedian:o&&y.normalizeMeasureColumn(o),boxMax:l&&y.normalizeMeasureColumn(l),whiskerMin:u&&y.normalizeMeasureColumn(u),whiskerMax:c&&y.normalizeMeasureColumn(c),outliersCount:h&&y.normalizeMeasureColumn(h),outliers:n&&y.normalizeColumn(n),valueTitle:i}};function pY(e){var a;const t=e.value.map(o=>{if(o!=null&&o.chartType)return[y.normalizeMeasureColumn(o)];const f=o,{lowerBound:l,upperBound:u,title:c}=f,h=xe(f,["lowerBound","upperBound","title"]);return[y.normalizeMeasureColumn(M({column:y.safeMerge(l,{title:c})},h)),y.normalizeMeasureColumn(M({column:y.safeMerge(u,{title:c})},h))]}),r=t.flat(),n=t.filter(o=>o.length===2),i=t.filter(o=>o.length===1).flat();return{x:e.category.map(o=>y.normalizeColumn(o)),breakBy:((a=e.breakBy)==null?void 0:a.map(o=>y.normalizeColumn(o)))||[],y:r,rangeValues:n,seriesValues:i,seriesToColorMap:e.seriesToColorMap}}const W1={city:4,state:3,country:2,auto:1};function mY(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>W1[n]>W1[r]?n:r,"auto")}function gY(e){const{geo:t,size:r,colorBy:n,details:i}=e;return{locations:t.map(a=>y.normalizeColumn(a)),size:r&&y.normalizeMeasureColumn(r),colorBy:n&&y.normalizeMeasureColumn(n),details:i&&y.normalizeAnyColumn(i),locationLevel:mY(t)}}function vY(e,t){if(y.isCartesian(e))return oa(t);if(y.isCategorical(e))return Z0(t);if(y.isIndicator(e))return yY(t);if(y.isScatter(e))return bY(t);if(y.isBoxplot(e))return TC(t);if(y.isScattermap(e))return gY(t);if(y.isRange(e))return pY(t);throw new H.TranslatableError("errors.unexpectedChartType",{chartType:e})}const Z0=e=>({y:e.value.map(t=>y.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>y.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}),yY=e=>{var t,r,n,i,a,o;return{value:(t=e.value)==null?void 0:t.map(l=>y.normalizeMeasureColumn(l)),secondary:(r=e.secondary)==null?void 0:r.map(l=>y.normalizeMeasureColumn(l)),min:(i=(n=e.min)==null?void 0:n.map(l=>y.normalizeMeasureColumn(l)))==null?void 0:i.map(H1("min")),max:(o=(a=e.max)==null?void 0:a.map(l=>y.normalizeMeasureColumn(l)))==null?void 0:o.map(H1("max"))}},H1=e=>t=>{const{column:r}=t,n="aggregation"in r&&r.aggregation||e;return $(M({},t),{column:y.safeMerge(r,{aggregation:n})})},bY=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:i,size:a,seriesToColorMap:o}=e;return{x:t&&y.normalizeAnyColumn(t),y:r&&y.normalizeAnyColumn(r),breakByPoint:n&&y.normalizeColumn(n),breakByColor:i&&y.normalizeAnyColumn(i),size:a&&y.normalizeMeasureColumn(a),seriesToColorMap:o}};function _Y(e,t){let r=[];return y.isScatter(t)?r=["x","y","breakByPoint","breakByColor"]:y.isCartesian(t)||y.isCategorical(t)||y.isRange(t)?r=["x","breakBy"]:y.isBoxplot(t)?r=["category","outliers"]:y.isScattermap(t)&&(r=["locations"]),r.flatMap(i=>{var a;return(a=e[i])!=null?a:[]}).filter(i=>!y.isMeasureColumn(i)).map(({column:i})=>i)}function wY(e,t){let r=[];return y.isIndicator(t)?r=["value","secondary","min","max"]:y.isScatter(t)?r=["x","y","breakByColor","size"]:y.isCartesian(t)||y.isCategorical(t)||y.isRange(t)?r=["y"]:y.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"]:y.isScattermap(t)&&(r=["size","colorBy","details"]),r.flatMap(i=>{var a;return(a=e[i])!=null?a:[]}).filter(y.isMeasureColumn).map(({column:i})=>i)}function MC(e){return{columns:e.columns.map(t=>y.normalizeAnyColumn(t)).map(CC)}}function xY(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(i=>y.normalizeColumn(i)),columns:(r=e.columns)==null?void 0:r.map(i=>y.normalizeColumn(i)),values:(n=e.values)==null?void 0:n.map(i=>y.normalizeMeasureColumn(i)),grandTotals:e.grandTotals}}const CY={translateDataOptionsToInternal:e=>Z0(gd({maxCategories:6,maxValues:1})(e)),getAttributes:hd,getMeasures:fd,isCorrectDataOptions:e=>pd(e),isCorrectDataOptionsInternal:e=>md(e)},TY={loadData:rn,getChartData:(e,t)=>vd(e,t)},MY={translateStyleOptionsToDesignOptions:e=>dC(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)?$(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")},SY={getChart:()=>({type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}}),getSeries:e=>y.prepareSunburstSeries(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings),getAxes:()=>({xAxis:void 0,yAxis:void 0}),getLegend:e=>y.getLegendSettings(e.designOptions.legend),getPlotOptions:()=>({series:{},sunburst:{events:{legendItemClick:function(e){e.preventDefault()}}}}),getTooltip:e=>y.prepareSunburstTooltip(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},EY={dataOptions:CY,data:TY,designOptions:MY,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:SY,getAlerts:rY}),isCorrectRendererProps:An}};function PY(){return[]}const AY={translateDataOptionsToInternal:e=>Z0(gd({maxCategories:3,maxValues:1})(e)),getAttributes:hd,getMeasures:fd,isCorrectDataOptions:e=>pd(e),isCorrectDataOptionsInternal:e=>md(e)},RY={loadData:rn,getChartData:(e,t)=>vd(e,t)},OY={translateStyleOptionsToDesignOptions:e=>cC(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)?$(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")},kY="rgb(0, 206, 230)",DY={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:kY,name:e.dataOptions.y[0]?y.getDataOptionTitle(e.dataOptions.y[0]):"",data:y.prepareTreemapDataItems(e.chartData,e.dataOptions,e.extraConfig.themeSettings),levels:y.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=>y.getTreemapTooltipSettings(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},NY={dataOptions:AY,data:RY,designOptions:OY,renderer:{ChartRendererComponent:Pn({highchartsOptionsBuilder:DY,getAlerts:PY}),isCorrectRendererProps:An}},LY={areamap:vH,area:JG,column:pU,bar:lU,line:SG,polar:NG,streamgraph:AU,pie:tY,funnel:VU,treemap:NY,sunburst:EY,"calendar-heatmap":Gj};function Cl(e){const t=LY[e];if(t)return t;throw new Error(`Unsupported chart type: ${e}`)}function IY(e,t){return y.isCartesian(t)?e.value.some(n=>(n==null?void 0:n.forecast)!==void 0||(n==null?void 0:n.trend)!==void 0):!1}function Tl(e){return["areamap","area","column","bar","line","polar","pie","funnel","calendar-heatmap","treemap","sunburst","streamgraph"].includes(e)}function $Y(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 $(M(M({},xr),t),{indicatorComponents:e.indicatorComponents||xr.indicatorComponents,forceTickerView:!!e.forceTickerView})}const FY=(e,t,r)=>{const n="y"in r&&Array.isArray(r.y)?r.y.some(l=>l.showOnRightAxis):!1;let i;switch(e){case"area":i=XV(t,r,n);break;case"arearange":case"line":i=qV(t,r,n);break;case"pie":i=QV(t);break;case"funnel":i=JV(t);break;case"treemap":i=cC(t);break;case"sunburst":i=dC(t);break;case"polar":i=tG(t,r);break;case"indicator":i=$Y(t);break;case"scatter":i=nG(t);break;case"boxplot":i=iG(t);break;case"scattermap":i=oG(t);break;default:throw new H.TranslatableError("errors.chartTypeNotSupported",{chartType:e})}const a="subtype"in t&&t.subtype?t.subtype:"line/basic",o=cd[a];return M(M({},i),o)};function zY(e,t,r){var n,i,a,o,l,u,c;if(Tl(e)){const h=Cl(e),f=Mn((o=(a=(i=(n=h.designOptions).translateLegacyStyleOptionsToModern)==null?void 0:i.call(n,r))!=null?a:r)!=null?o:{},(c=(u=(l=h.designOptions).getDefaultStyleOptions)==null?void 0:u.call(l))!=null?c:y.getDefaultStyleOptions());if(!h.designOptions.isCorrectStyleOptions(f))throw new H.TranslatableError("errors.optionsTranslation.invalidStyleOptions",{chartType:e});if(!h.dataOptions.isCorrectDataOptionsInternal(t))throw new H.TranslatableError("errors.optionsTranslation.invalidInternalDataOptions",{chartType:e});return h.designOptions.translateStyleOptionsToDesignOptions(f,t)}else{const h=Mn(r!=null?r:{},y.getDefaultStyleOptions());return FY(e,h,t)}}function Mn(e,t){return H.merge$1.withOptions({mergeArrays:!1},t,e)}function wi(e,t,r){return BY(e).map(i=>{const a=i.seriesId,o=i.seriesStyleOptions,l=YV(t,Mn(o,r));return{seriesId:a,designOptions:dD(l,["line","marker"])}}).reduce((i,{seriesId:a,designOptions:o})=>$(M({},i),{[a]:o}),{})}function BY(e){return e.y.filter(WY).map(({column:{name:t},seriesStyleOptions:r})=>({seriesId:t,seriesStyleOptions:r}))}function WY(e){return e.seriesStyleOptions!==void 0}const HY=2e4;function rs(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 SC=(e,t,r)=>{if(!e)return{columns:[],rows:[]};let n=0,i=4,a=5,o=0,l=1;return r&&(n=rs(e.columns,r.category),i=rs(e.columns,r.whiskerMin),a=rs(e.columns,r.whiskerMax),o=rs(t.columns,r.category),l=rs(t.columns,r.outliers)),Bu(l)?e:{columns:[...e.columns,t.columns[l]],rows:e.rows.map(c=>{const h=Bu(n)?null:c[n].data,f=c[a].data,p=c[i].data,g=t.rows.filter(b=>{const v=Bu(o)?null:b[o].data,w=b[l].data;return v===h&&(w<p||w>f)}).map(b=>b[l].data).join(",");return[...c,{data:g}]})}};function jY(e,t,r){const n=r&&TC(r);return SC(e,t,n)}const VY=(c,h)=>qt(exports,[c,h],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:i,filters:a,filterRelations:o,highlights:l},u){var v;const f={dataSource:r,dimensions:t.category?[n[0]]:[],measures:i,filters:a,filterRelations:o,highlights:l},p=yield u(f,e);let g=p;const b=t.outliersCount?GY(p,t.outliersCount.column.name):0;if(t.outliers&&b<HY){const w={dataSource:r,dimensions:n,measures:[],filters:a,filterRelations:o,highlights:l};try{const C=yield u(w,e);g=SC(p,C,t)}catch(C){if((v=C==null?void 0:C.message)!=null&&v.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw C}}return g}),GY=(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 UY(e,t){return Tl(e)&&!t?Cl(e).data.loadData:e==="boxplot"?qY:YY}const YY=n=>qt(exports,[n],function*({app:e,queryDescription:t,executionConfig:r}){var o,l;return(((l=(o=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?l:!1)?H.executeQueryWithCache:H.executeQuery)(t,e,r)}),qY=n=>qt(exports,[n],function*({app:e,chartDataOptionsInternal:t,queryDescription:r}){var o,l,u,c;const a=((l=(o=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?l:!1)?H.executeQueryWithCache:H.executeQuery;return VY({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)}),bu=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=y.getColumnByName(e,t[0].column.name);return r?[y.getValue(e.rows[0],r),t[0].column.name]:[void 0,void 0]},XY=(e,t)=>{var l;const r={type:"indicator"};if(!((l=e.value)!=null&&l.length)||t.rows.length===0)return r;const[n]=bu(t,e.value);if(n===void 0)return r;const[i]=bu(t,e.secondary),[a]=bu(t,e.min),[o]=bu(t,e.max);return{type:"indicator",value:n,secondary:i,min:a,max:o}};function EC(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:H.baseSlice(e,t,r)}function ZY(e,t){for(var r=e.length;r--&&V0(t,e[r],0)>-1;);return r}function KY(e,t){for(var r=-1,n=e.length;++r<n&&V0(t,e[r],0)>-1;);return r}function QY(e){return e.split("")}var JY="\\ud800-\\udfff",eq="\\u0300-\\u036f",tq="\\ufe20-\\ufe2f",rq="\\u20d0-\\u20ff",nq=eq+tq+rq,iq="\\ufe0e\\ufe0f",aq="\\u200d",oq=RegExp("["+aq+JY+nq+iq+"]");function PC(e){return oq.test(e)}var AC="\\ud800-\\udfff",sq="\\u0300-\\u036f",lq="\\ufe20-\\ufe2f",uq="\\u20d0-\\u20ff",cq=sq+lq+uq,dq="\\ufe0e\\ufe0f",hq="["+AC+"]",zp="["+cq+"]",Bp="\\ud83c[\\udffb-\\udfff]",fq="(?:"+zp+"|"+Bp+")",RC="[^"+AC+"]",OC="(?:\\ud83c[\\udde6-\\uddff]){2}",kC="[\\ud800-\\udbff][\\udc00-\\udfff]",pq="\\u200d",DC=fq+"?",NC="["+dq+"]?",mq="(?:"+pq+"(?:"+[RC,OC,kC].join("|")+")"+NC+DC+")*",gq=NC+DC+mq,vq="(?:"+[RC+zp+"?",zp,OC,kC,hq].join("|")+")",yq=RegExp(Bp+"(?="+Bp+")|"+vq+gq,"g");function bq(e){return e.match(yq)||[]}function Wp(e){return PC(e)?bq(e):QY(e)}function _q(e,t,r){if(e=H.toString(e),e&&(r||t===void 0))return y.baseTrim(e);if(!e||!(t=H.baseToString(t)))return e;var n=Wp(e),i=Wp(t),a=KY(n,i),o=ZY(n,i)+1;return EC(n,a,o).join("")}const LC=",";function wq(e){return e.join(`${LC} `)}function xq(e){return e.split(LC).map(_q)}function Cq(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function Tq(e,t){const{name:r,rawName:n,coordinates:i,value:a,colorValue:o,details:l}=e,c={geo:t.locations.map((h,f)=>$(M({},Ve(h)),{value:n[f]}))};if(t.size&&(c.size=$(M({},Ve(t.size)),{value:a})),t.colorBy&&(c.colorBy=$(M({},Ve(t.colorBy)),{value:o})),t.details){const h=Ve(t.details);h.measure&&(c.details=$(M({},h),{value:l}))}return{categories:n,displayName:r,coordinates:{lat:i.lat,lng:i.lng},value:a,entries:c}}const Mq=1,Sq=(e,t)=>{const r=Eq(e),n=e.locations&&y.getColumnsByName(t,e.locations.map(({column:{name:u}})=>u)),i=e.size&&y.getColumnByName(t,e.size.column.name),a=e.colorBy&&y.getColumnByName(t,e.colorBy.column.name),o=e.details&&y.getColumnByName(t,e.details.column.name);return{type:"scattermap",locations:t.rows.filter(u=>n.some(c=>y.getValue(u,c)!==y.NOT_AVAILABLE_DATA_VALUE)).map(u=>{const c=n.map(g=>y.getValue(u,g)),h=wq(c);let f;r&&(f={lat:y.getValue(u,n[0]),lng:y.getValue(u,n[1])});const p=n[0]&&!!y.isBlurred(u,n[0]);return M($(M(M({name:h,rawName:c,value:i?y.getValue(u,i):Mq},a&&{colorValue:y.getValue(u,a)}),o&&{details:y.getValue(u,o)}),{blur:p}),f?{coordinates:f}:null)})}};function Eq(e){return e.locations.length===2&&e.locations.filter(({column:{type:t}})=>H.isNumber(t)).length===2}const Pq=(e,t,r)=>{if(y.isCartesian(e))return y.isForecastChart(t)?y.advancedAnalyticsData(t,r):y.cartesianData(t,r);if(y.isCategorical(e))return vd(t,r);if(y.isScatter(e))return y.scatterData(t,r);if(y.isScattermap(e))return Sq(t,r);if(y.isIndicator(e))return XY(t,r);if(y.isBoxplot(e))return YR(t,r);if(y.isRange(e))return y.rangeData(t,r);throw new H.TranslatableError("errors.unexpectedChartType",{chartType:e})};var Aq=1/0,Rq=H.Set&&1/H.setToArray(new H.Set([,-0]))[1]==Aq?function(e){return new H.Set(e)}:y.noop,Oq=200;function K0(e,t,r){var n=-1,i=iC,a=e.length,o=!0,l=[],u=l;if(a>=Oq){var c=t?null:Rq(e);if(c)return H.setToArray(c);o=!1,i=H.cacheHas,u=new H.SetCache}else u=t?[]:l;e:for(;++n<a;){var h=e[n],f=t?t(h):h;if(h=h!==0?h:0,o&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),l.push(h)}else i(u,f,r)||(u!==l&&u.push(f),l.push(h))}return l}var kq=H.baseRest(function(e){return K0(H.baseFlatten(e,1,H.isArrayLikeObject,!0))});const IC=(e,t,r,n={})=>{if(y.emptyTable(e))return{rows:[],columns:[]};const i=kq(y.getColumnsByName(e,t.map(h=>h.name))),a=e,l=[...r.map(h=>{var f,p;return{column:(f=n[h.name])!=null?f:h.name,title:h.name,agg:(p=h.aggregation)!=null?p:"sum"}}),{column:y.rownumColumnName,title:y.rownumColumnName,agg:"min"}],u=y.groupBy(a,i,l),c=y.getColumnByName(u,y.rownumColumnName);if(!c)throw new H.TranslatableError("errors.noRowNumColumn",{columnName:y.rownumColumnName});return y.orderBy(u,[c])};function Dq({dataSet:e,data:t,chartDataOptions:r,chartType:n,isForecastOrTrendChart:i,attributes:a,measures:o,dataColumnNamesMapping:l,onDataReady:u}){return k.useMemo(()=>{if(!t||!r)return null;let c;if(u&&(c=u(t),!qC(c)))throw new H.TranslatableError("errors.incorrectOnDataReadyHandler");const h=c||t;let f=y.createDataTableFromData(h);return mi(e)||(f=IC(f,a,o,l)),Nq(n,r,f,i)},[t,n,i])}function Nq(e,t,r,n=!1){if(Tl(e)&&!n){const i=Cl(e);if(i.dataOptions.isCorrectDataOptionsInternal(t))return i.data.getChartData(t,r);throw new Error("Incorrect internal data options for restructured chart")}return Pq(e,t,r)}function Lq(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:i,designOptions:a,onBeforeRender:o,onDataPointClick:l,onDataPointContextMenu:u,onDataPointsSelected:c}=e;return k.useMemo(()=>!i||!a?null:{dataSource:mi(t)?t:null,chartType:r,chartData:n,dataOptions:i,designOptions:a,onBeforeRender:o,onDataPointClick:l,onDataPointContextMenu:u,onDataPointsSelected:c},[t,r,n,i,a,o,l,u,c])}const Q0=()=>{const[e,t]=k.useState();if(e)throw e;return t};function Hp(e,t,r=yl(),n=bl){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(y.isMeasureColumn(o)||!o.dateFormat||!(e!=null&&e.columns))return;const l=e.columns.findIndex(function(c){return c.name===o.column.name&&H.isDatetime(o.column.type)&&H.isDatetime(c.type)});l!==-1&&i.set(l,o.dateFormat)}),i.size===0||(e.rows=e.rows.map(function(o){return o.map(function(u,c){const h=i.get(c);if(!h||u===y.NOT_AVAILABLE_DATA_VALUE)return u;let f,p;if(y.isCell(u)){if(u.data===y.NOT_AVAILABLE_DATA_VALUE)return u;f=M({},u)}else{const b=y.createCompareValue(`${u}`,"datetime");p=new Date(b.value),f={data:p.toISOString(),text:`${u}`}}if(!f.data)return u;let g=f.text;try{g=_l(f.data,h,r,n)}catch(b){console.error(b)}return f.text=g,f})})),e}const J0=e=>{const t={},r=n=>`$measure${n}_`;return e.forEach((n,i)=>{const a=n.name,l=`${r(i)}${a}`;n.name=l,t[l]=a}),t},Iq=(e,t)=>{if(t==="funnel"){const r=H.merge$1(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},$C=(e,t,r,n,i,a)=>{if(!e)return!0;if(t.length+r.length===0)throw new H.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.name)===-1)throw new H.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 H.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 H.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 H.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:o.attribute.name})}),!0};function $q(e,t){switch(e){case"pie":case"funnel":case"treemap":return OU(e,t);default:return t}}const Fq=e=>e==="funnel"?e:y.deriveChartFamily(e),zq=({dataSet:e,chartDataOptions:t,chartType:r,attributes:n,measures:i,dataColumnNamesMapping:a,filters:o,highlights:l,refreshCounter:u,enabled:c=!0,loadData:h})=>{const f=Q0(),[p,g]=k.useState(!1),b=k.useMemo(()=>Fq(r),[r]),v=k.useMemo(()=>[void 0,t],[t]),[w,C]=k.useState({}),{app:T}=Ct();k.useEffect(()=>{if(!c)return;let P=!1;const{filters:O,relations:N}=H.getFilterListAndRelationsJaql(o);if(mi(e)){if(!T)return;g(!0),h({app:T,chartDataOptionsInternal:t,queryDescription:{dataSource:e,dimensions:n,measures:i,filters:O,filterRelations:N,highlights:l,count:T.settings.queryLimit}}).then(U=>{const Z=Hp(U,t,T==null?void 0:T.settings.locale,T==null?void 0:T.settings.dateConfig);P||C({[b]:[Z,t]})}).catch(U=>{f(U)}).finally(()=>{g(!1)})}else{$C(e,n,i,a,O,l);const z=Hp(e,t,T==null?void 0:T.settings.locale,T==null?void 0:T.settings.dateConfig);C({[b]:[z,t]})}return()=>{P=!0}},[r,t,e,o,l,T,u,c]);const[E,S]=w[b]||v;return{isLoading:p,data:E,dataOptions:S}};function FC(e,t){{const r=$q(t,e),n=vY(t,r),i=Iq(n,t),a=_Y(i,t),o=wY(i,t);return{dataOptions:i,attributes:a,measures:o}}}const Bq=(e,t,r)=>k.useMemo(()=>{if(Tl(t)&&!r){const n=Cl(t);if(!n.dataOptions.isCorrectDataOptions(e))throw new Error("Incorrect data options");return Wq(n,e)}else return Hq(e,t)},[e,t,r]);function Wq(e,t){const r=e.dataOptions.translateDataOptionsToInternal(t),n=e.dataOptions.getAttributes(r),i=e.dataOptions.getMeasures(r),a=J0(i);return{dataOptions:r,attributes:n,measures:i,dataColumnNamesMapping:a}}function Hq(e,t){const{dataOptions:r,attributes:n,measures:i}=FC(e,t),a=J0(i);return{dataOptions:r,attributes:n,measures:i,dataColumnNamesMapping:a}}const j1={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"}]},jq={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}]},Vq={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"]},Gq={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 Uq(e,t){const r=H.cloneDeep(Gq);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 Ml{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,i){t.font=i;let a=this.getStringWidth(t,r);const o="…",l=this.getStringWidth(t,o);if(a<=n)return{string:r,width:a};if(l>=n)return{string:o,width:l};do r=r.slice(0,r.length-1),a=this.getStringWidth(t,r);while(a+l>n);return{string:r+o,width:a+l}}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 Mt=new Ml,ka=function(e,t){return Mt.floor(e*t.value,t.decimals)};function Yq(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function qq(e,t,r){const{maxWidth:n,maxHeight:i,showTitle:a,showSecondary:o}=r;for(let l=0;l<t.length;l++){const u=t[l],c=u.value,h=ka(c,e.valueSectionHeight),f=ka(c,e.indicatorMargin),p=Math.ceil(f*1.5);let g=c+h+p;if(a){const b=ka(c,e.titleSectionHeight);g+=b}if(o){const b=ka(c,e.secSectionHeight);g+=b}if(g<=i){const b=ka(c,e.gaugeWidth),v=ka(c,e.bracketWidth),w=f*2;if(b+v*2+w<=n)return $(M({},u),{maxWidth:n-w,maxHeight:i-p})}}return null}class Xq{getBaseMeasure(t,r,n){const i=r,a="gaugeHeights"in i?i.gaugeHeights:void 0;if(!a)return null;const o=i.relativeSizes,l=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=Yq(l,o);return qq(h,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,i){const a=t.getContext("2d");let o=0,l;n.gaugeHeight=i.value,n.size=i.size,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,n.offsetY=0,l=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),l+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),l+=n.secSectionHeight),o=this.getCanvasWidth(r,n),n.width=o,n.height=l,Mt.setCanvasSizes(t,a,o,l),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-i,o=Mt.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=Mt.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,l=Mt.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-l.width,c=Mt.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+l.width+i,titleString:c.string,valueString:l.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const i=r.fitTitleMeasure,a=r.fitValueMeasure;let l=i&&i.width>a.width?i:a;const u=r.fitSecondaryMeasure,c=u&&u.width>l.width;let h;return l=c?u:l,c?h=l.titleString!==t.secondaryTitle.text||l.valueString!==t.secondary.text:h=l.string!==t[l.key].text,h?n=r.maxWidth:l.width>n&&(n=l.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,l=Mt.degToRad(n.startAngle+180),u=Mt.degToRad(n.endAngle+180);let c;const h=f=>this.getAngle(n,f,a,o);for(this.drawArc(t,n,l,u,n.defaultDialColor),c=i.length-1;c>=0;c--){const f=i[c];let p=+f.data,g,b=NaN,v=NaN,w=NaN,C=NaN;const T=.25;switch(f.operator){case"<":if(p<=a)break;p=p>o?o:p,g=h(p),b=l,v=Mt.degToRad(g+180);break;case">":if(p>=o)break;p=p<a?a:p,g=h(p),b=Mt.degToRad(g+180),v=u;break;case"≤":if(p<a)break;p=p>o?o:p,g=h(p),b=l,v=Mt.degToRad(g+(g+T<=n.endAngle?T:0)+180);break;case"≥":if(p>o)break;p=p<a?a:p,g=h(p),b=Mt.degToRad(g-(g-T>=n.startAngle?T:0)+180),v=u;break;case"=":if(p<a||p>o)break;g=h(p),b=Mt.degToRad(g-(g-T>=n.startAngle?T:0)+180),v=Mt.degToRad(g+(g+T<=n.endAngle?T:0)+180);break;case"≠":if(p<a||p>o)b=l,v=u;else if(p===a||p===o){const E=p===a;b=Mt.degToRad(n.startAngle+(E?T:0)+180),v=Mt.degToRad(n.endAngle-(E?0:T)+180)}else g=h(p),b=l,v=Mt.degToRad(g-(g-T>=n.startAngle?T:0)+180),w=Mt.degToRad(g+(g+T<=n.endAngle?T:0)+180),C=u}!isNaN(b)&&!isNaN(v)&&this.drawArc(t,n,b,v,f.color),!isNaN(w)&&!isNaN(C)&&this.drawArc(t,n,w,C,f.color)}}drawSimpleDial(t,r,n){const i=Mt.degToRad(n.startAngle+180),a=Mt.degToRad(n.needleAngle+180),o=Mt.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,l=n.needleAngle;let u;for(u=i;u<=a;u+=o){const c=Mt.degToRad(u),h=n.gaugeCenterX-n.lengthToTick*Math.cos(c),f=n.gaugeCenterY-n.lengthToTick*Math.sin(c),p=l<i,g=l>=u-o/2&&l<u+o/2,b=u===a&&l>=u;t.fillStyle=!p&&g||b?r.color:n.tickColor,t.beginPath(),t.arc(h,f,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Mt.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 Fa=new Ml,_u=function(e,t){return Fa.floor(e*t.value,t.decimals)};function Zq(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function Kq(e,t,r){const{showTitle:n,showSecondary:i,maxHeight:a,maxWidth:o,bracketThickness:l}=r;for(let u=0;u<t.length;u++){const c=t[u],h=c.value,f=_u(h,e.indicatorMargin);let p=h+f;if(n){const g=_u(h,e.titleSectionHeight);p+=g}if(i){const g=_u(h,e.secSectionHeight);p+=g}if(p<=a){const g=_u(h,e.numericMinWidth),b=f*2;if(g+l*2+b<=o)return $(M({},c),{maxWidth:o-b,maxHeight:a-f})}}return null}class Qq{getBaseMeasure(t,r,n){const i=r,a="sizes"in i?i.sizes:[],o=i.relativeSizes,l=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=Zq(l,o);return Kq(h,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 l=this.getCanvasWidth(r,n);n.width=l,n.height=o,Fa.setCanvasSizes(t,a,l,o),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-i,o=Fa.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=Fa.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,l=Fa.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-l.width,c=Fa.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+l.width+i,titleString:c.string,valueString:l.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const i=r.fitTitleMeasure,a=r.fitValueMeasure;let l=i&&i.width>a.width?i:a;const u=r.fitSecondaryMeasure,c=u&&u.width>l.width;let h;return l=c?u:l,c?h=l.titleString!==t.secondaryTitle.text||l.valueString!==t.secondary.text:h=l.string!==t[l.key].text,h?n=r.maxWidth:l.width>n&&(n=l.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 za=new Ml,ki=function(e,t){return za.floor(e*t.value,t.decimals)};function Jq(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function eX(e,t,r){const{showTitle:n,showSecondary:i,skin:a,maxHeight:o,maxWidth:l,borderWidth:u}=r;for(let c=0;c<t.length;c++){const h=t[c],f=h.value,p=ki(f,e.valueSectionMarginBottom),b=ki(f,e.indicatorVerticalMargin)*2;let v=f+p+b;if(n&&a==="vertical"){const w=ki(f,e.titleSectionHeight);v+=w}if(i){const w=ki(f,e.secSectionHeight),C=ki(f,e.secSectionMarginTop);v+=w+C+(u||0)}if(v<=o){const w=ki(f,e.numericMinWidth),T=ki(f,e.indicatorHorizontalMargin)*2;if(w+T<=l)return $(M({},h),{maxWidth:l-T,maxHeight:o-b})}}return null}class tX{getBaseMeasure(t,r,n){const i=r,a="sizes"in i?i.sizes:[],o=i.relativeSizes,l=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=Jq(l,o);return eX(h,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 l=this.getCanvasWidth(r,n);n.width=l,n.height=o,za.setCanvasSizes(t,a,l,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=za.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=za.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,l=za.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-l.width,c=za.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+l.width+i,titleString:c.string,valueString:l.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],h=t[u.dataKey];return!!(c&&h&&c[u.prop]!==h.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 fn=new Ml;class rX{render(t,r,n,i){const a=t.getContext("2d"),o=Math.floor(i.clientWidth)-n.horizontalMargin*2,l=n.sectionMinWidth;let u=0,c=0,h=0,f=0,p=0,g=0,b=0,v=0,w;if(a.font=n.valueFont,w=fn.getStringWidth(a,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(a.font=n.titleFont,g=fn.getStringWidth(a,r.value.text),p=fn.getStringWidth(a,r.title.text),c=p<l?p:l,w+=c+n.textPadding),r.showSecondary&&(a.font=n.secondaryValueFont,v=fn.getStringWidth(a,r.secondary.text),f=v<l?v:l,w+=f,a.font=n.secondaryTitleFont||"",b=fn.getStringWidth(a,r.secondaryTitle.text),h=b<l?b:l,w+=h+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const T=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const S=g+p+b+v+n.textPadding*4+T,P=o-T-S;n.barWidth=Math.max(P,n.barWidth)}const E=n.barWidth+T;w+=E,n.showTickerBar=w<=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-h-f;if(n.fitValueMeasure=fn.getFitStringMeasure(a,r.value.text,C,n.valueFont),u+=n.fitValueMeasure.width,r.showSecondary){const T=o-u-c-h;let E;n.fitSecValueMeasure=fn.getFitStringMeasure(a,r.secondary.text,T,n.secondaryValueFont),u+=n.fitSecValueMeasure.width;const S=o-u,P=S/2;r.showTitle?p+b>S?p>P&&b>P?E=P:b>P&&p<=P?E=S-p:E=b:E=b:E=S,n.fitSecTitleMeasure=fn.getFitStringMeasure(a,r.secondaryTitle.text,E,n.secondaryTitleFont),u+=n.fitSecTitleMeasure.width}if(r.showTitle){const T=o-u;n.fitTitleMeasure=fn.getFitStringMeasure(a,r.title.text,T,n.titleFont),u+=n.fitTitleMeasure.width}n.width=u,fn.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),l=Math.round((n.height-n.barHeight)/2);let u;if(t.fillStyle=n.valueColor,o<=i)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,l,n.barWidth,n.barHeight),u=0;else if(o>=a)t.fillRect(n.offsetX,l,n.barWidth,n.barHeight),u=n.barWidth-n.tickerBarWidth;else{const h=(o-Math.abs(i))/(a-i),f=n.barWidth*h;t.fillRect(n.offsetX,l,f,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+f,l,n.barWidth-f,n.barHeight),f>n.barWidth-n.tickerBarWidth?u=n.barWidth-n.tickerBarWidth:f<n.tickerBarWidth?u=0:u=f-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 nX=new Ml,iX=new tX,aX=new Qq,oX=new Xq,sX=new rX;class lX{getService(t){switch(t){case"numericSimple":return iX;case"numericBar":return aX;case"gauge":return oX;case"ticker":return sX}}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 l=Uq(t,n);this.setTextOptions(l),a.render(t,r,l,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 H.TranslatableError("errors.indicatorInvalidRelativeSize");const l=o*n;r[a.key]=nX.floor(l,a.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const i=t[n],a=i.fontStyle?`${i.fontStyle} `:"",o=i.fontVariant?`${i.fontVariant} `:"",l=i.fontWeight?`${i.fontWeight} `:"",u=`${Number.parseFloat(i.fontSizes&&i.fontSizes[r]||i.fontSize||t.fontSize)}px `,c=i.fontFamily||t.fontFamily,{color:h}=i;t[`${n}Font`]=a+o+l+u+c,t[`${n}Color`]=h})}}function zC(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function uX(e,t,r){if(!cX(e))return r;const i=y.getColoringServiceByColorOptions(e).getColor(t);return i?$(M({},r),{value:$(M({},r.value),{color:i})}):r}function cX(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const dX=(e,t)=>{const r=zC(t);return r&&e.value?y.getColoringServiceByColorOptions(r).getColor(y.isNumber(e.value)?e.value:0):null},hX=(e,t,r)=>{var f,p,g,b,v,w,C,T,E,S,P,O;const n=y.isNumber(e.min)?e.min:0,i=y.isNumber(e.max)?e.max:100,a=wu(r,"value"),o=wu(r,"secondary"),l=wu(r,"min"),u=wu(r,"max"),c=dX(e,r),h=t.indicatorType==="gauge"?1:"vertical";return $(M(M({},pX),c?{color:c}:null),{type:fX(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||h,title:{text:(g=(p=(f=t.indicatorComponents)==null?void 0:f.title)==null?void 0:p.text)!=null?g:""},min:{data:n,text:y.applyFormatPlainText(l,n)},max:{data:i,text:y.applyFormatPlainText(u,i)},value:{data:e.value,text:V1(e.value,a)},secondary:{data:e.secondary,text:V1(e.secondary,o)},secondaryTitle:{text:(w=(v=(b=t.indicatorComponents)==null?void 0:b.secondaryTitle)==null?void 0:v.text)!=null?w:""},showSecondary:e.secondary!==void 0,showTitle:!!((T=(C=t.indicatorComponents)==null?void 0:C.title)!=null&&T.shouldBeShown),showLabels:!!((S=(E=t.indicatorComponents)==null?void 0:E.labels)!=null&&S.shouldBeShown),showTicks:!!((O=(P=t.indicatorComponents)==null?void 0:P.ticks)!=null&&O.shouldBeShown)})};function fX(e,t){return e==="numeric"?t:e}function wu(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return y.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const pX={color:"#00cee6",showSecondary:!1};function V1(e,t){return e===void 0?"":isNaN(e)?`#${y.NOT_AVAILABLE_TEXT}`:y.applyFormatPlainText(t,e)}const mX={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 jp(e,t,r){const n=H.cloneDeep(r);for(const i in t){const a=t[i],o=gX(e,a);o&&BC(n,i,o)}return n}function BC(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(!WC(o))return;BC(o,a.join("."),r)}}function gX(e,t){const r=t.split(".");let n=e;for(const i of r){if(!WC(n)||!(i in n))return;n=n[i]}return n}function WC(e){return typeof e=="object"&&e!==null}function vX(e,t,r){return jp(e,t,r)}const yX=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:i}=t,{type:a}=e;let o;switch(a){case"gauge":o=Vq;break;case"numeric":e.numericSubtype==="numericBar"?o=jq:o=j1;break;default:o=j1}i&&(o=vX(i,mX,o));const l=zC(n);return l&&r.value&&y.isNumber(r.value)&&(o=uX(l,r.value,o)),M($(M({},o),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};function bX(e,t,r){return e==null?e:Ew(e,t,r)}const HC={"value.data":"value.data","value.text":"value.text","secondary.data":"secondary.data","secondary.text":"secondary.text","title.text":"title.text","secondaryTitle.text":"secondaryTitle.text"},jC={"value.color":"value.color","secondaryValue.color":"secondary.color","secondaryValue.fontWeight":"secondary.fontWeight","title.color":"title.color","secondaryTitle.color":"secondaryTitle.color"};function _X(e,t){const r={};return y.flow(G1(e,HC),G1(t,jC))(r)}function G1(e,t){return r=>{const n=M({},r);for(const[i,a]of Object.entries(t))bX(n,a,H.get(e,i));return n}}const wX=(e,t,r)=>{const n=jp(e,HC,t),i=jp(e,jC,r);return{legacyDataOptions:n,legacyChartOptions:i}},xX=e=>e,CX=(e,t)=>{var i;const r={},n=(a,o)=>{if(a===void 0)return;const l=y.getCompleteNumberFormatConfig(o);return y.applyFormatPlainText(l,a)};return t.value&&t.value.length>0&&(r.value=$(M({},Ve(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=$(M({},Ve(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=$(M({},Ve(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=$(M({},Ve(t.max[0])),{value:e.max,displayValue:n(e.max,t.max[0])})),{entries:r}},TX=({chartData:e,dataOptions:t,designOptions:r,onBeforeRender:n=xX,onDataPointClick:i})=>{var c;const a=k.useRef(null),o=k.useRef(null),{themeSettings:l}=st();k.useEffect(()=>{if(!o.current||!a.current)return;const h=new lX,f=hX(e,r,t),p=yX({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:l}),g=_X(f,p),b=n(g),{legacyDataOptions:v,legacyChartOptions:w}=wX(b,f,p);h.render(o.current,v,w,a.current)},[e,t,r,l,n]);const u=h=>{if(i){const f=CX(e,t);i(f,h.nativeEvent)}};return y.jsx("div",{ref:a,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(c=l==null?void 0:l.chart)==null?void 0:c.backgroundColor,cursor:i?"pointer":"default"},"aria-label":"indicator-root",onClick:u,children:y.jsx("canvas",{ref:o})})},MX=e=>e.type==="indicator",SX=e=>"min"in e,EX=e=>"indicatorComponents"in e,PX=e=>!!e.chartData&&MX(e.chartData)&&SX(e.dataOptions)&&EX(e.designOptions),AX=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function RX(e,t){const r=AX[e.toLowerCase()];return r&&(t[r]=e),r||e}function OX(e,t){return t[e.toLowerCase()]||e}const kX=(e,t)=>{const{app:r}=Ct(),[n,i]=k.useState([]),a=k.useRef(e),o=k.useCallback(()=>qt(exports,null,function*(){if(!r||!e)return;const l={},u=Cq(t),c=yield r.httpClient.post("api/v1/geo/locations",M({locations:e.map(b=>({name:RX(b.name,l)}))},u&&{geoLevel:u})),h=a.current!==e;if(!c||h)return;const f=c.reduce((b,v)=>{const w=$(M({},v),{name:OX(v.name,l)});return b[w.name]=w,b},{}),p=[],g=e.map(b=>(f[b.name]||p.push(b.name),M(M({},b),f[b.name]?{coordinates:f[b.name].latLng}:null)));p.length&&console.warn(`Locations "${p.join(", ")}" coordinates not found`),i(g)}),[r,i,e,t]);return k.useEffect(()=>{e&&(a.current=e,e.some(u=>!!u.coordinates)?i(e):o())},[e,r,o,i]),n},DX=()=>{const{app:e}=Ct(),[t,r]=k.useState(null),n=k.useCallback(()=>qt(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 NX="Expected a function";function LX(e,t,r){if(typeof e!="function")throw new TypeError(NX);return setTimeout(function(){e.apply(void 0,r)},t)}var IX=H.baseRest(function(e,t,r){return LX(e,y.toNumber(t)||0,r)}),Wu=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(Wu||{});const af=10,$X=`
290
- <svg
291
- xmlns="http://www.w3.org/2000/svg"
292
- width="24"
293
- height="24"
294
- viewBox="0 0 24 24"
295
- fill="green"
296
- class="csdk-animate-spin"
297
- >
298
- <path
299
- fillRule="evenodd"
300
- clipRule="evenodd"
301
- 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"
302
- fill="transparent"
303
- fillOpacity="0.3"
304
- />
305
- <path
306
- fillRule="evenodd"
307
- clipRule="evenodd"
308
- 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"
309
- fill="#22C3C3"
310
- />
311
- </svg>
312
- `,zn=e=>`<span class="csdk-scattermap-tooltip-label">${e}</span>`,FX=e=>{const t=`
313
- <div>
314
- <div>${zn("...")}</div>
315
- <div>${zn(`Showing first ${af} results`)}</div>
316
- </div>
317
- `;return`
318
- <div>
319
- ${e.slice(0,af).map(r=>`<div>${zn(r)}</div>`).join("")}
320
- ${e.length>af?t:""}
321
- </div>
322
- `},of=e=>`
323
- <span class="csdk-scattermap-tooltip-category">
324
- ${zn(e)}
325
- </span>
326
- `,zX=()=>zn($X),xu=(e,t,r=1)=>{const n=y.formatTooltipValue(t.size,e.value,`${e.value}`),i=y.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),a=t.details&&y.formatTooltipValue(t.details,e.details,`${e.details}`);return`
327
- <div class="csdk-scattermap-tooltip-container">
328
- <div class="csdk-scattermap-tooltip-content">
329
- <div>${zn(e.name)}</div>
330
- <div class="csdk-scattermap-tooltip-row">
331
- ${t.size?of(y.getDataOptionTitle(t.size)):""}
332
- ${t.size?zn(n):""}
333
- </div>
334
- <div class="csdk-scattermap-tooltip-row">
335
- ${t.colorBy?of(y.getDataOptionTitle(t.colorBy)):""}
336
- ${t.colorBy?zn(i||y.NOT_AVAILABLE_TEXT):""}
337
- </div>
338
- <div class="csdk-scattermap-tooltip-row">
339
- ${(r===2||r===0)&&t.details?of(y.getDataOptionTitle(t.details)):""}
340
- ${r===2?zX():""}
341
- ${r===0&&t.details&&y.isMeasureColumn(t.details)?zn(a||y.NOT_AVAILABLE_TEXT):""}
342
- </div>
343
- <div>
344
- ${r===0&&t.details&&!y.isMeasureColumn(t.details)?FX(e.details):""}
345
- </div>
346
- </div>
347
- </div>
348
- `},BX=600,WX=11,HX=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=Ct(),i=k.useCallback(o=>qt(exports,null,function*(){if(!n||!e.details||y.isMeasureColumn(e.details))return[];const l=e.locations.map((h,f)=>{const p=y.translateColumnToAttribute(h),g=xq(o)[f];return H.members(p,[g])}),u={dataSource:t,dimensions:[y.translateColumnToAttribute(e.details)],filters:H.mergeFilters(r,l),count:WX};return(yield H.executeQuery(u,n)).rows.map(([h])=>h.text)}),[n,e,t,r]);return k.useCallback(o=>{if(!e.details||e.details&&!y.isMeasureColumn(e.details)&&!t)return{content:xu(o,e)};if(y.isMeasureColumn(e.details))return{content:xu(o,e,Wu.YES)};const l=new Promise(c=>IX(c,BX)),u=Promise.all([i(o.name),l]).then(([c])=>xu($(M({},o),{details:c}),e,Wu.YES));return{content:xu(o,e,Wu.LOADING),postponedContent:u}},[e,t,i])},jX="#00cee6",VX=y.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>$(M({},e),{color:t})});function GX(e,t){return t?VX(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>jX)}function UX(e,t){const r=`
349
- © <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
350
- © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
351
- <strong>
352
- <a href='https://www.mapbox.com/map-feedback/' target='_blank' aria-label='Improve this map (opens in a new tab)'>
353
- Improve this map
354
- </a>
355
- </strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",i=Wn.control.attribution();return t.indexOf("mapbox")>-1?i.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&i.addAttribution(n).addTo(e),i}function VC(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function GC(e){const{color:t,size:r,fill:n,blur:i}=e,{isFilled:a}=VC(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 YX({coordinates:e,style:t}){const r=new Wn.CircleMarker({lat:e.lat,lng:e.lng},GC(t));return r.on("mouseover",qX),r.on("mouseout",XX),r}function qX(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:i}=VC(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 XX(e){const t=e.target,r=t.options.customStyle;t.setStyle(GC(r))}function ZX(e){e.forEach(t=>t.remove())}function KX(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 QX(e,t=4,r=24){let n=0;const{min:i,max:a}=KX(e.map(({value:l})=>l)),o=r-t;return n=a-i,e.map(l=>n===0?t:(l.value-i)/n*o+t)}const JX=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:i,onDataPointClick:a})=>{const{locations:o}=e,l=DX(),{themeSettings:u}=st(),c=kX(o,t.locationLevel),{filters:h}=H.getFilterListAndRelationsJaql(n),f=HX({dataOptions:t,dataSource:r,filters:h}),p=k.useRef(null),g=k.useRef(null),b=k.useMemo(()=>QX(c,t.size?i.markers.size.minSize:i.markers.size.defaultSize,t.size?i.markers.size.maxSize:i.markers.size.defaultSize),[c,t,i]),v=k.useMemo(()=>{var S;return GX(c,(S=t.colorBy)==null?void 0:S.color)},[c,t]),w=k.useRef([]),C=k.useRef(Wn.layerGroup([])),T=k.useRef(null),E=k.useRef(null);return k.useEffect(()=>{p.current&&!g.current&&(g.current=Wn.map(p.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),C.current.addTo(g.current),g.current.fitWorld())},[]),k.useEffect(()=>{w.current&&(ZX(w.current),w.current=[]),c&&(c.forEach((S,P)=>{if(!S.coordinates)return;const O=YX({coordinates:S.coordinates,style:{color:v[P],size:b[P],fill:i.markers.fill,blur:!!S.blur}});w.current.push(O),O.addTo(C.current),a&&O.on("click",N=>{a(Tq(S,t),N.originalEvent)}),O.bindTooltip(()=>{const{content:N,postponedContent:z}=f(S);return z==null||z.then(U=>O.setTooltipContent(U)),N})}),vI(g.current,w.current,nx(u)))},[c,v,b,i,u,t,f,a]),k.useEffect(()=>{var S;l&&(T.current&&T.current.remove(),T.current=Wn.tileLayer(l.maps_api_provider,{zoomOffset:-1,tileSize:512}),g.current&&(T.current.addTo(g.current),(S=E.current)==null||S.remove(),E.current=UX(g.current,l.maps_api_provider)))},[l]),y.jsx("div",{className:"csdk-map-container",ref:p,style:{width:"100%",height:"100%"}})},UC=e=>e.type==="scattermap"&&"locations"in e,eZ=e=>"locations"in e,tZ=e=>"markers"in e,rZ=e=>!!e.chartData&&UC(e.chartData)&&eZ(e.dataOptions)&&tZ(e.designOptions),nZ=e=>e,iZ=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o,onBeforeRender:l=nZ,size:u})=>{const{app:c}=Ct(),{t:h}=y.useTranslation(),f=[],p=k.useCallback((w,C)=>_l(w,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:g}=st(),b=k.useMemo(()=>{var O;const{options:w,alerts:C}=y.highchartsOptionsService(t,e,n,r,h,g,p);f.push(...C);const T=((O=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:O.enabled)||!1,E=Vx(w,g,T),S=jx(E,r,{onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o}),P=Gx(S,g);return l(P)},[e,t,r,n,g,i,a,l,h]),v=k.useMemo(()=>b?$(M({},b),{chart:M(M(M({},b.chart),(u==null?void 0:u.width)&&{width:u.width}),(u==null?void 0:u.height)&&{height:u.height})}):null,[b,u]);return v&&y.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!f.length&&y.jsx(lC,{alerts:f}),y.jsx(z0,{options:v})]})},aZ=[...y.CARTESIAN_CHART_TYPES,...y.CATEGORICAL_CHART_TYPES,...y.SCATTER_CHART_TYPES,...y.BOXPLOT_CHART_TYPES,...y.RANGE_CHART_TYPES],YC=e=>aZ.includes(e),oZ=e=>!!e.chartType&&YC(e.chartType)&&!!e.chartData,sZ=e=>e==="indicator",lZ=(e,t)=>e==="scatter"&&"scatterDataTable"in t?t.scatterDataTable.length===0:e==="areamap"&&Rx(t)?t.geoData.length===0:e==="scattermap"&&UC(t)?t.locations.length===0:e==="boxplot"&&qR(t)?t.xValues.length===0:e==="calendar-heatmap"&&Nx(t)?t.values.length===0:"series"in t&&t.series.length===0,Hu=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:i,highlights:a,styleOptions:o,refreshCounter:l,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:h,onBeforeRender:f,onDataReady:p}=e,{width:g,height:b}=o||{},v=Jc(t),w=k.useMemo(()=>({width:g,height:b}),[g,b]),C=IY(n,t),{dataOptions:T,attributes:E,measures:S,dataColumnNamesMapping:P}=Bq(n,t,C),O=E.length===0&&S.length===0,N=k.useMemo(()=>UY(t,C),[t,C]),{data:z,dataOptions:U,isLoading:Z}=zq({dataSet:r,chartDataOptions:T,chartType:t,attributes:E,measures:S,dataColumnNamesMapping:P,filters:i,highlights:a,refreshCounter:l,enabled:!O,loadData:N}),K=k.useMemo(()=>n?zY(t,U,o):null,[n,t,U,o]),R=Dq({dataSet:r,data:z,chartDataOptions:T,chartType:t,isForecastOrTrendChart:C,attributes:E,measures:S,dataColumnNamesMapping:P,onDataReady:p}),I=Lq({dataSet:r,chartType:t,chartData:R,internalDataOptions:U,designOptions:K,onBeforeRender:f,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:h,filters:i}),X=k.useCallback(j=>{if(!I)return null;if(!R&&Z)return y.jsx(oi,{});if(R&&lZ(t,R)||O)return y.jsx(x0,{iconType:t});if(Tl(t)&&!C){const W=Cl(t);return W.renderer.isCorrectRendererProps(I)?y.jsx(oi,{isVisible:Z,children:y.jsx(W.renderer.ChartRendererComponent,$(M({},I),{size:j}))}):null}return t==="scattermap"&&rZ(I)?y.jsx(oi,{isVisible:Z,children:y.jsx(JX,M({},I))}):t==="indicator"&&PX(I)?y.jsx(oi,{isVisible:Z,children:y.jsx(TX,M({},I))}):YC(t)&&oZ(I)?y.jsx(oi,{isVisible:Z,children:y.jsx(iZ,$(M({},I),{designOptions:M({},I.designOptions),size:j}))}):null},[R,Z,t,O,C,I]);return I?y.jsx(Qc,{defaultSize:v,size:w,rerenderOnResize:sZ(t),children:X}):null};function qC(e){return e&&typeof e=="object"&&"columns"in e&&H.isArray(e.columns)&&"rows"in e&&H.isArray(e.rows)}const XC=e=>{const t=[],r=[];for(const n of e.columns)y.isMeasureColumn(n)?r.push(y.translateColumnToMeasure(n)):t.push(y.translateColumnToAttribute(n));return{attributes:t,measures:r}},uZ=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:i,offset:a})=>{const o=Q0(),[l,u]=k.useState(mi(e)?null:e),[c,h]=k.useState(!1),f=k.useRef(!0),{isInitialized:p,app:g}=Ct(),[b,v]=k.useState(t);return k.useEffect(()=>{var E;let w=!1;if(!t)return;const{attributes:C,measures:T}=XC(t);if(mi(e)){if(!p){o(new H.TranslatableError("errors.chartNoSisenseContext"));return}if(!g||!f.current&&a>0)return;h(!0),((E=g.settings.queryCacheConfig)!=null&&E.enabled?H.executeQueryWithCache:H.executeQuery)({dataSource:e,dimensions:C,measures:T,filters:r,filterRelations:n,count:i+1,offset:a,ungroup:!0},g).then(P=>{if(w)return;f.current=P.rows.length>i;const O=f.current?P.rows.slice(0,i):P.rows;a>0?u(N=>{const z=N==null?void 0:N.rows.length,U=z?z>a?N.rows.slice(0,a):N.rows:null;return{columns:P.columns,rows:U?[...U,...O]:O}}):u({columns:P.columns,rows:O}),v(t)}).finally(()=>{h(!1)}).catch(P=>{w||o(P)})}else u(e),v(t);return()=>{w=!0}},[g,e,t,r,n,a,i,p,o]),[c?null:l,b]},cZ=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:i}=Ct();return k.useMemo(()=>{if(!e||!t)return null;let a=y.createDataTableFromData(Hp(e,t,i==null?void 0:i.settings.locale,i==null?void 0:i.settings.dateConfig));const o=t.columns.filter(u=>!y.isMeasureColumn(u)).map(y.translateColumnToAttribute),l=t.columns.filter(u=>y.isMeasureColumn(u)).map(y.translateColumnToMeasure);return $C(a,o,l,r),n&&(a=IC(a,o,l,r)),uY(t,a)},[e,t,n,r,i])};var Cr="top",qr="bottom",Xr="right",Tr="left",eg="auto",Sl=[Cr,qr,Xr,Tr],io="start",Gs="end",dZ="clippingParents",ZC="viewport",ns="popper",hZ="reference",U1=Sl.reduce(function(e,t){return e.concat([t+"-"+io,t+"-"+Gs])},[]),KC=[].concat(Sl,[eg]).reduce(function(e,t){return e.concat([t,t+"-"+io,t+"-"+Gs])},[]),fZ="beforeRead",pZ="read",mZ="afterRead",gZ="beforeMain",vZ="main",yZ="afterMain",bZ="beforeWrite",_Z="write",wZ="afterWrite",xZ=[fZ,pZ,mZ,gZ,vZ,yZ,bZ,_Z,wZ];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Nr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qi(e){var t=Nr(e).Element;return e instanceof t||e instanceof Element}function Yr(e){var t=Nr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tg(e){if(typeof ShadowRoot=="undefined")return!1;var t=Nr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function CZ(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];!Yr(a)||!Sn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var l=i[o];l===!1?a.removeAttribute(o):a.setAttribute(o,l===!0?"":l)}))})}function TZ(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]),l=o.reduce(function(u,c){return u[c]="",u},{});!Yr(i)||!Sn(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const MZ={name:"applyStyles",enabled:!0,phase:"write",fn:CZ,effect:TZ,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var ji=Math.max,yc=Math.min,ao=Math.round;function Vp(){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 QC(){return!/^((?!chrome|android).)*safari/i.test(Vp())}function oo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Yr(e)&&(i=e.offsetWidth>0&&ao(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ao(n.height)/e.offsetHeight||1);var o=Qi(e)?Nr(e):window,l=o.visualViewport,u=!QC()&&r,c=(n.left+(u&&l?l.offsetLeft:0))/i,h=(n.top+(u&&l?l.offsetTop:0))/a,f=n.width/i,p=n.height/a;return{width:f,height:p,top:h,right:c+f,bottom:h+p,left:c,x:c,y:h}}function rg(e){var t=oo(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 JC(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&tg(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Gn(e){return Nr(e).getComputedStyle(e)}function SZ(e){return["table","td","th"].indexOf(Sn(e))>=0}function xi(e){return((Qi(e)?e.ownerDocument:e.document)||window.document).documentElement}function yd(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(tg(e)?e.host:null)||xi(e)}function Y1(e){return!Yr(e)||Gn(e).position==="fixed"?null:e.offsetParent}function EZ(e){var t=/firefox/i.test(Vp()),r=/Trident/i.test(Vp());if(r&&Yr(e)){var n=Gn(e);if(n.position==="fixed")return null}var i=yd(e);for(tg(i)&&(i=i.host);Yr(i)&&["html","body"].indexOf(Sn(i))<0;){var a=Gn(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 El(e){for(var t=Nr(e),r=Y1(e);r&&SZ(r)&&Gn(r).position==="static";)r=Y1(r);return r&&(Sn(r)==="html"||Sn(r)==="body"&&Gn(r).position==="static")?t:r||EZ(e)||t}function ng(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function As(e,t,r){return ji(e,yc(t,r))}function PZ(e,t,r){var n=As(e,t,r);return n>r?r:n}function eT(){return{top:0,right:0,bottom:0,left:0}}function tT(e){return Object.assign({},eT(),e)}function rT(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var AZ=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,tT(typeof t!="number"?t:rT(t,Sl))};function RZ(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,l=wn(r.placement),u=ng(l),c=[Tr,Xr].indexOf(l)>=0,h=c?"height":"width";if(!(!a||!o)){var f=AZ(i.padding,r),p=rg(a),g=u==="y"?Cr:Tr,b=u==="y"?qr:Xr,v=r.rects.reference[h]+r.rects.reference[u]-o[u]-r.rects.popper[h],w=o[u]-r.rects.reference[u],C=El(a),T=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,E=v/2-w/2,S=f[g],P=T-p[h]-f[b],O=T/2-p[h]/2+E,N=As(S,O,P),z=u;r.modifiersData[n]=(t={},t[z]=N,t.centerOffset=N-O,t)}}function OZ(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)||JC(t.elements.popper,i)&&(t.elements.arrow=i))}const kZ={name:"arrow",enabled:!0,phase:"main",fn:RZ,effect:OZ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function so(e){return e.split("-")[1]}var DZ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NZ(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:ao(r*i)/i||0,y:ao(n*i)/i||0}}function q1(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,f=e.isFixed,p=o.x,g=p===void 0?0:p,b=o.y,v=b===void 0?0:b,w=typeof h=="function"?h({x:g,y:v}):{x:g,y:v};g=w.x,v=w.y;var C=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),E=Tr,S=Cr,P=window;if(c){var O=El(r),N="clientHeight",z="clientWidth";if(O===Nr(r)&&(O=xi(r),Gn(O).position!=="static"&&l==="absolute"&&(N="scrollHeight",z="scrollWidth")),O=O,i===Cr||(i===Tr||i===Xr)&&a===Gs){S=qr;var U=f&&O===P&&P.visualViewport?P.visualViewport.height:O[N];v-=U-n.height,v*=u?1:-1}if(i===Tr||(i===Cr||i===qr)&&a===Gs){E=Xr;var Z=f&&O===P&&P.visualViewport?P.visualViewport.width:O[z];g-=Z-n.width,g*=u?1:-1}}var K=Object.assign({position:l},c&&DZ),R=h===!0?NZ({x:g,y:v},Nr(r)):{x:g,y:v};if(g=R.x,v=R.y,u){var I;return Object.assign({},K,(I={},I[S]=T?"0":"",I[E]=C?"0":"",I.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",I))}return Object.assign({},K,(t={},t[S]=T?v+"px":"",t[E]=C?g+"px":"",t.transform="",t))}function LZ(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,l=r.roundOffsets,u=l===void 0?!0:l,c={placement:wn(t.placement),variation:so(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,q1(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,q1(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 IZ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:LZ,data:{}};var Cu={passive:!0};function $Z(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,l=o===void 0?!0:o,u=Nr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(h){h.addEventListener("scroll",r.update,Cu)}),l&&u.addEventListener("resize",r.update,Cu),function(){a&&c.forEach(function(h){h.removeEventListener("scroll",r.update,Cu)}),l&&u.removeEventListener("resize",r.update,Cu)}}const FZ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$Z,data:{}};var zZ={left:"right",right:"left",bottom:"top",top:"bottom"};function ju(e){return e.replace(/left|right|bottom|top/g,function(t){return zZ[t]})}var BZ={start:"end",end:"start"};function X1(e){return e.replace(/start|end/g,function(t){return BZ[t]})}function ig(e){var t=Nr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ag(e){return oo(xi(e)).left+ig(e).scrollLeft}function WZ(e,t){var r=Nr(e),n=xi(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,l=0,u=0;if(i){a=i.width,o=i.height;var c=QC();(c||!c&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:l+ag(e),y:u}}function HZ(e){var t,r=xi(e),n=ig(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=ji(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ji(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+ag(e),u=-n.scrollTop;return Gn(i||r).direction==="rtl"&&(l+=ji(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:u}}function og(e){var t=Gn(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function nT(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:Yr(e)&&og(e)?e:nT(yd(e))}function Rs(e,t){var r;t===void 0&&(t=[]);var n=nT(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Nr(n),o=i?[a].concat(a.visualViewport||[],og(n)?n:[]):n,l=t.concat(o);return i?l:l.concat(Rs(yd(o)))}function Gp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jZ(e,t){var r=oo(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 Z1(e,t,r){return t===ZC?Gp(WZ(e,r)):Qi(t)?jZ(t,r):Gp(HZ(xi(e)))}function VZ(e){var t=Rs(yd(e)),r=["absolute","fixed"].indexOf(Gn(e).position)>=0,n=r&&Yr(e)?El(e):e;return Qi(n)?t.filter(function(i){return Qi(i)&&JC(i,n)&&Sn(i)!=="body"}):[]}function GZ(e,t,r,n){var i=t==="clippingParents"?VZ(e):[].concat(t),a=[].concat(i,[r]),o=a[0],l=a.reduce(function(u,c){var h=Z1(e,c,n);return u.top=ji(h.top,u.top),u.right=yc(h.right,u.right),u.bottom=yc(h.bottom,u.bottom),u.left=ji(h.left,u.left),u},Z1(e,o,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function iT(e){var t=e.reference,r=e.element,n=e.placement,i=n?wn(n):null,a=n?so(n):null,o=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,u;switch(i){case Cr:u={x:o,y:t.y-r.height};break;case qr:u={x:o,y:t.y+t.height};break;case Xr:u={x:t.x+t.width,y:l};break;case Tr:u={x:t.x-r.width,y:l};break;default:u={x:t.x,y:t.y}}var c=i?ng(i):null;if(c!=null){var h=c==="y"?"height":"width";switch(a){case io:u[c]=u[c]-(t[h]/2-r[h]/2);break;case Gs:u[c]=u[c]+(t[h]/2-r[h]/2);break}}return u}function Us(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,l=r.boundary,u=l===void 0?dZ:l,c=r.rootBoundary,h=c===void 0?ZC:c,f=r.elementContext,p=f===void 0?ns:f,g=r.altBoundary,b=g===void 0?!1:g,v=r.padding,w=v===void 0?0:v,C=tT(typeof w!="number"?w:rT(w,Sl)),T=p===ns?hZ:ns,E=e.rects.popper,S=e.elements[b?T:p],P=GZ(Qi(S)?S:S.contextElement||xi(e.elements.popper),u,h,o),O=oo(e.elements.reference),N=iT({reference:O,element:E,strategy:"absolute",placement:i}),z=Gp(Object.assign({},E,N)),U=p===ns?z:O,Z={top:P.top-U.top+C.top,bottom:U.bottom-P.bottom+C.bottom,left:P.left-U.left+C.left,right:U.right-P.right+C.right},K=e.modifiersData.offset;if(p===ns&&K){var R=K[i];Object.keys(Z).forEach(function(I){var X=[Xr,qr].indexOf(I)>=0?1:-1,j=[Cr,qr].indexOf(I)>=0?"y":"x";Z[I]+=R[j]*X})}return Z}function UZ(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?KC:u,h=so(n),f=h?l?U1:U1.filter(function(b){return so(b)===h}):Sl,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var g=p.reduce(function(b,v){return b[v]=Us(e,{placement:v,boundary:i,rootBoundary:a,padding:o})[wn(v)],b},{});return Object.keys(g).sort(function(b,v){return g[b]-g[v]})}function YZ(e){if(wn(e)===eg)return[];var t=ju(e);return[X1(e),t,X1(t)]}function qZ(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,l=o===void 0?!0:o,u=r.fallbackPlacements,c=r.padding,h=r.boundary,f=r.rootBoundary,p=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,v=r.allowedAutoPlacements,w=t.options.placement,C=wn(w),T=C===w,E=u||(T||!b?[ju(w)]:YZ(w)),S=[w].concat(E).reduce(function(te,oe){return te.concat(wn(oe)===eg?UZ(t,{placement:oe,boundary:h,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):oe)},[]),P=t.rects.reference,O=t.rects.popper,N=new Map,z=!0,U=S[0],Z=0;Z<S.length;Z++){var K=S[Z],R=wn(K),I=so(K)===io,X=[Cr,qr].indexOf(R)>=0,j=X?"width":"height",V=Us(t,{placement:K,boundary:h,rootBoundary:f,altBoundary:p,padding:c}),W=X?I?Xr:Tr:I?qr:Cr;P[j]>O[j]&&(W=ju(W));var G=ju(W),re=[];if(a&&re.push(V[R]<=0),l&&re.push(V[W]<=0,V[G]<=0),re.every(function(te){return te})){U=K,z=!1;break}N.set(K,re)}if(z)for(var F=b?3:1,Y=function(oe){var le=S.find(function(de){var ce=N.get(de);if(ce)return ce.slice(0,oe).every(function(ve){return ve})});if(le)return U=le,"break"},ne=F;ne>0;ne--){var ie=Y(ne);if(ie==="break")break}t.placement!==U&&(t.modifiersData[n]._skip=!0,t.placement=U,t.reset=!0)}}const XZ={name:"flip",enabled:!0,phase:"main",fn:qZ,requiresIfExists:["offset"],data:{_skip:!1}};function K1(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 Q1(e){return[Cr,Xr,qr,Tr].some(function(t){return e[t]>=0})}function ZZ(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Us(t,{elementContext:"reference"}),l=Us(t,{altBoundary:!0}),u=K1(o,n),c=K1(l,i,a),h=Q1(u),f=Q1(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}const KZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ZZ};function QZ(e,t,r){var n=wn(e),i=[Tr,Cr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],l=a[1];return o=o||0,l=(l||0)*i,[Tr,Xr].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function JZ(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=KC.reduce(function(h,f){return h[f]=QZ(f,t.rects,a),h},{}),l=o[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}const eK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JZ};function tK(e){var t=e.state,r=e.name;t.modifiersData[r]=iT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rK={name:"popperOffsets",enabled:!0,phase:"read",fn:tK,data:{}};function nK(e){return e==="x"?"y":"x"}function iK(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,l=o===void 0?!1:o,u=r.boundary,c=r.rootBoundary,h=r.altBoundary,f=r.padding,p=r.tether,g=p===void 0?!0:p,b=r.tetherOffset,v=b===void 0?0:b,w=Us(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:h}),C=wn(t.placement),T=so(t.placement),E=!T,S=ng(C),P=nK(S),O=t.modifiersData.popperOffsets,N=t.rects.reference,z=t.rects.popper,U=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,Z=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(O){if(a){var I,X=S==="y"?Cr:Tr,j=S==="y"?qr:Xr,V=S==="y"?"height":"width",W=O[S],G=W+w[X],re=W-w[j],F=g?-z[V]/2:0,Y=T===io?N[V]:z[V],ne=T===io?-z[V]:-N[V],ie=t.elements.arrow,te=g&&ie?rg(ie):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eT(),le=oe[X],de=oe[j],ce=As(0,N[V],te[V]),ve=E?N[V]/2-F-ce-le-Z.mainAxis:Y-ce-le-Z.mainAxis,Ce=E?-N[V]/2+F+ce+de+Z.mainAxis:ne+ce+de+Z.mainAxis,ye=t.elements.arrow&&El(t.elements.arrow),J=ye?S==="y"?ye.clientTop||0:ye.clientLeft||0:0,we=(I=K==null?void 0:K[S])!=null?I:0,Ee=W+ve-we-J,ke=W+Ce-we,$e=As(g?yc(G,Ee):G,W,g?ji(re,ke):re);O[S]=$e,R[S]=$e-W}if(l){var je,Ue=S==="x"?Cr:Tr,ir=S==="x"?qr:Xr,At=O[P],jt=P==="y"?"height":"width",Dt=At+w[Ue],Pe=At-w[ir],Vt=[Cr,Tr].indexOf(C)!==-1,ca=(je=K==null?void 0:K[P])!=null?je:0,Qn=Vt?Dt:At-N[jt]-z[jt]-ca+Z.altAxis,On=Vt?At+N[jt]+z[jt]-ca-Z.altAxis:Pe,Ti=g&&Vt?PZ(Qn,At,On):As(g?Qn:Dt,At,g?On:Pe);O[P]=Ti,R[P]=Ti-At}t.modifiersData[n]=R}}const aK={name:"preventOverflow",enabled:!0,phase:"main",fn:iK,requiresIfExists:["offset"]};function oK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sK(e){return e===Nr(e)||!Yr(e)?ig(e):oK(e)}function lK(e){var t=e.getBoundingClientRect(),r=ao(t.width)/e.offsetWidth||1,n=ao(t.height)/e.offsetHeight||1;return r!==1||n!==1}function uK(e,t,r){r===void 0&&(r=!1);var n=Yr(t),i=Yr(t)&&lK(t),a=xi(t),o=oo(e,i,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Sn(t)!=="body"||og(a))&&(l=sK(t)),Yr(t)?(u=oo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=ag(a))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function cK(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(l){if(!r.has(l)){var u=t.get(l);u&&i(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function dK(e){var t=cK(e);return xZ.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function hK(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fK(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 J1={placement:"bottom",modifiers:[],strategy:"absolute"};function eb(){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 pK(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?J1:i;return function(l,u,c){c===void 0&&(c=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},J1,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,g={state:h,setOptions:function(C){var T=typeof C=="function"?C(h.options):C;v(),h.options=Object.assign({},a,h.options,T),h.scrollParents={reference:Qi(l)?Rs(l):l.contextElement?Rs(l.contextElement):[],popper:Rs(u)};var E=dK(fK([].concat(n,h.options.modifiers)));return h.orderedModifiers=E.filter(function(S){return S.enabled}),b(),g.update()},forceUpdate:function(){if(!p){var C=h.elements,T=C.reference,E=C.popper;if(eb(T,E)){h.rects={reference:uK(T,El(E),h.options.strategy==="fixed"),popper:rg(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(Z){return h.modifiersData[Z.name]=Object.assign({},Z.data)});for(var S=0;S<h.orderedModifiers.length;S++){if(h.reset===!0){h.reset=!1,S=-1;continue}var P=h.orderedModifiers[S],O=P.fn,N=P.options,z=N===void 0?{}:N,U=P.name;typeof O=="function"&&(h=O({state:h,options:z,name:U,instance:g})||h)}}}},update:hK(function(){return new Promise(function(w){g.forceUpdate(),w(h)})}),destroy:function(){v(),p=!0}};if(!eb(l,u))return g;g.setOptions(c).then(function(w){!p&&c.onFirstUpdate&&c.onFirstUpdate(w)});function b(){h.orderedModifiers.forEach(function(w){var C=w.name,T=w.options,E=T===void 0?{}:T,S=w.effect;if(typeof S=="function"){var P=S({state:h,name:C,instance:g,options:E}),O=function(){};f.push(P||O)}})}function v(){f.forEach(function(w){return w()}),f=[]}return g}}var mK=[FZ,rK,IZ,MZ,eK,XZ,aK,kZ,KZ],gK=pK({defaultModifiers:mK});function vK(e){return ht("MuiPopper",e)}ft("MuiPopper",["root"]);function yK(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 bc(e){return typeof e=="function"?e():e}function bd(e){return e.nodeType!==void 0}function bK(e){return!bd(e)}const _K=e=>{const{classes:t}=e;return Et({root:["root"]},vK,t)},wK={},xK=Q.forwardRef(function(t,r){var V;const j=t,{anchorEl:n,children:i,direction:a,disablePortal:o,modifiers:l,open:u,placement:c,popperOptions:h,popperRef:f,slotProps:p={},slots:g={},TransitionProps:b,ownerState:v}=j,w=xe(j,["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"]),C=Q.useRef(null),T=vr(C,r),E=Q.useRef(null),S=vr(E,f),P=Q.useRef(S);fi(()=>{P.current=S},[S]),Q.useImperativeHandle(f,()=>E.current,[]);const O=yK(c,a),[N,z]=Q.useState(O),[U,Z]=Q.useState(bc(n));Q.useEffect(()=>{E.current&&E.current.forceUpdate()}),Q.useEffect(()=>{n&&Z(bc(n))},[n]),fi(()=>{if(!U||!u)return;const W=F=>{z(F.placement)};if(process.env.NODE_ENV!=="production"&&U&&bd(U)&&U.nodeType===1){const F=U.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.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(`
356
- `))}let G=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{W(F)}}];l!=null&&(G=G.concat(l)),h&&h.modifiers!=null&&(G=G.concat(h.modifiers));const re=gK(U,C.current,$(M({placement:O},h),{modifiers:G}));return P.current(re),()=>{re.destroy(),P.current(null)}},[U,o,l,u,h,O]);const K={placement:N};b!==null&&(K.TransitionProps=b);const R=_K(t),I=(V=g.root)!=null?V:"div",X=Gm({elementType:I,externalSlotProps:p.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:R.root});return me.jsx(I,$(M({},X),{children:typeof i=="function"?i(K):i}))}),aT=Q.forwardRef(function(t,r){const Z=t,{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:c,open:h,placement:f="bottom",popperOptions:p=wK,popperRef:g,style:b,transition:v=!1,slotProps:w={},slots:C={}}=Z,T=xe(Z,["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"]),[E,S]=Q.useState(!0),P=()=>{S(!1)},O=()=>{S(!0)};if(!u&&!h&&(!v||E))return null;let N;if(a)N=a;else if(n){const K=bc(n);N=K&&bd(K)?kr(K).body:kr(null).body}const z=!h&&u&&(!v||E)?"none":void 0,U=v?{in:h,onEnter:P,onExited:O}:void 0;return me.jsx(Bs,{disablePortal:l,container:N,children:me.jsx(xK,$(M({anchorEl:n,direction:o,disablePortal:l,modifiers:c,ref:r,open:v?!E:h,placement:f,popperOptions:p,popperRef:g,slotProps:w,slots:C},T),{style:M({position:"fixed",top:0,left:0,display:z},b),TransitionProps:U,children:i}))})});process.env.NODE_ENV!=="production"&&(aT.propTypes={anchorEl:qn(_.oneOfType([jn,_.object,_.func]),e=>{if(e.open){const t=bc(e.anchorEl);if(t&&bd(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(`
357
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||bK(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(`
358
- `))}return null}),children:_.oneOfType([_.node,_.func]),container:_.oneOfType([jn,_.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:al,slotProps:_.shape({root:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType}),transition:_.bool});const CK=De(aT,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pl=Q.forwardRef(function(t,r){var z;const n=$c(),N=xt({props:t,name:"MuiPopper"}),{anchorEl:a,component:o,components:l,componentsProps:u,container:c,disablePortal:h,keepMounted:f,modifiers:p,open:g,placement:b,popperOptions:v,popperRef:w,transition:C,slots:T,slotProps:E}=N,S=xe(N,["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"]),P=(z=T==null?void 0:T.root)!=null?z:l==null?void 0:l.Root,O=M({anchorEl:a,container:c,disablePortal:h,keepMounted:f,modifiers:p,open:g,placement:b,popperOptions:v,popperRef:w,transition:C},S);return me.jsx(CK,$(M({as:o,direction:n?"rtl":"ltr",slots:{root:P},slotProps:E!=null?E:u},O),{ref:r}))});process.env.NODE_ENV!=="production"&&(Pl.propTypes={anchorEl:_.oneOfType([jn,_.object,_.func]),children:_.oneOfType([_.node,_.func]),component:_.elementType,components:_.shape({Root:_.elementType}),componentsProps:_.shape({root:_.oneOfType([_.func,_.object])}),container:_.oneOfType([jn,_.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:al,slotProps:_.shape({root:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transition:_.bool});function TK(e){return ht("MuiTooltip",e)}const kt=ft("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function MK(e){return Math.round(e*1e5)/1e5}const SK=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${Ie(a.split("-")[0])}`],arrow:["arrow"]};return Et(o,TK,t)},EK=De(Pl,{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]}})(Ft(({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"] .${kt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${kt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${kt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${kt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${kt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${kt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${kt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${kt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),PK=De("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${Ie(r.placement.split("-")[0])}`]]}})(Ft(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:bt(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,[`.${kt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${kt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${kt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${kt.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:`${MK(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${kt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${kt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${kt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${kt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${kt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${kt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${kt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${kt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${kt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${kt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),AK=De("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ft(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:bt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Tu=!1;const tb=new Kc;let is={x:0,y:0};function Mu(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const _d=Q.forwardRef(function(t,r){var Wl,fa,Hl;const n=xt({props:t,name:"MuiTooltip"}),Bl=n,{arrow:i=!1,children:a,classes:o,components:l={},componentsProps:u={},describeChild:c=!1,disableFocusListener:h=!1,disableHoverListener:f=!1,disableInteractive:p=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:v=0,enterTouchDelay:w=700,followCursor:C=!1,id:T,leaveDelay:E=0,leaveTouchDelay:S=1500,onClose:P,onOpen:O,open:N,placement:z="bottom",PopperComponent:U,PopperProps:Z={},slotProps:K={},slots:R={},title:I,TransitionComponent:X,TransitionProps:j}=Bl,V=xe(Bl,["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"]),W=Q.isValidElement(a)?a:me.jsx("span",{children:a}),G=ul(),re=$c(),[F,Y]=Q.useState(),[ne,ie]=Q.useState(null),te=Q.useRef(!1),oe=p||C,le=Fi(),de=Fi(),ce=Fi(),ve=Fi(),[Ce,ye]=Bm({controlled:N,default:!1,name:"Tooltip",state:"open"});let J=Ce;if(process.env.NODE_ENV!=="production"){const{current:Le}=Q.useRef(N!==void 0);Q.useEffect(()=>{F&&F.disabled&&!Le&&I!==""&&F.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(`
359
- `))},[I,F,Le])}const we=Zc(T),Ee=Q.useRef(),ke=Bn(()=>{Ee.current!==void 0&&(document.body.style.WebkitUserSelect=Ee.current,Ee.current=void 0),ve.clear()});Q.useEffect(()=>ke,[ke]);const $e=Le=>{tb.clear(),Tu=!0,ye(!0),O&&!J&&O(Le)},je=Bn(Le=>{tb.start(800+E,()=>{Tu=!1}),ye(!1),P&&J&&P(Le),le.start(G.transitions.duration.shortest,()=>{te.current=!1})}),Ue=Le=>{te.current&&Le.type!=="touchstart"||(F&&F.removeAttribute("title"),de.clear(),ce.clear(),b||Tu&&v?de.start(Tu?v:b,()=>{$e(Le)}):$e(Le))},ir=Le=>{de.clear(),ce.start(E,()=>{je(Le)})},[,At]=Q.useState(!1),jt=Le=>{Qu(Le.target)||(At(!1),ir(Le))},Dt=Le=>{F||Y(Le.currentTarget),Qu(Le.target)&&(At(!0),Ue(Le))},Pe=Le=>{te.current=!0;const Sr=W.props;Sr.onTouchStart&&Sr.onTouchStart(Le)},Vt=Le=>{Pe(Le),ce.clear(),le.clear(),ke(),Ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(w,()=>{document.body.style.WebkitUserSelect=Ee.current,Ue(Le)})},ca=Le=>{W.props.onTouchEnd&&W.props.onTouchEnd(Le),ke(),ce.start(S,()=>{je(Le)})};Q.useEffect(()=>{if(!J)return;function Le(Sr){Sr.key==="Escape"&&je(Sr)}return document.addEventListener("keydown",Le),()=>{document.removeEventListener("keydown",Le)}},[je,J]);const Qn=vr(po(W),Y,r);!I&&I!==0&&(J=!1);const On=Q.useRef(),Ti=Le=>{const Sr=W.props;Sr.onMouseMove&&Sr.onMouseMove(Le),is={x:Le.clientX,y:Le.clientY},On.current&&On.current.update()},Mi={},da=typeof I=="string";c?(Mi.title=!J&&da&&!f?I:null,Mi["aria-describedby"]=J?we:null):(Mi["aria-label"]=da?I:null,Mi["aria-labelledby"]=J&&!da?we:null);const or=M($(M(M(M({},Mi),V),W.props),{className:We(V.className,W.props.className),onTouchStart:Pe,ref:Qn}),C?{onMouseMove:Ti}:{});process.env.NODE_ENV!=="production"&&(or["data-mui-internal-clone-element"]=!0,Q.useEffect(()=>{F&&!F.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(`
360
- `))},[F]));const Si={};g||(or.onTouchStart=Vt,or.onTouchEnd=ca),f||(or.onMouseOver=Mu(Ue,or.onMouseOver),or.onMouseLeave=Mu(ir,or.onMouseLeave),oe||(Si.onMouseOver=Ue,Si.onMouseLeave=ir)),h||(or.onFocus=Mu(Dt,or.onFocus),or.onBlur=Mu(jt,or.onBlur),oe||(Si.onFocus=Dt,Si.onBlur=jt)),process.env.NODE_ENV!=="production"&&W.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${W.props.title}\` or the Tooltip component.`].join(`
361
- `));const an=$(M({},n),{isRtl:re,arrow:i,disableInteractive:oe,placement:z,PopperComponentProp:U,touch:te.current}),Jt=typeof K.popper=="function"?K.popper(an):K.popper,Il=Q.useMemo(()=>{var Sr,jl;let Le=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return(Sr=Z.popperOptions)!=null&&Sr.modifiers&&(Le=Le.concat(Z.popperOptions.modifiers)),(jl=Jt==null?void 0:Jt.popperOptions)!=null&&jl.modifiers&&(Le=Le.concat(Jt.popperOptions.modifiers)),$(M(M({},Z.popperOptions),Jt==null?void 0:Jt.popperOptions),{modifiers:Le})},[ne,Z.popperOptions,Jt==null?void 0:Jt.popperOptions]),Lo=SK(an),kn=typeof K.transition=="function"?K.transition(an):K.transition,ha={slots:M({popper:l.Popper,transition:(Wl=l.Transition)!=null?Wl:X,tooltip:l.Tooltip,arrow:l.Arrow},R),slotProps:{arrow:(fa=K.arrow)!=null?fa:u.arrow,popper:M(M({},Z),Jt!=null?Jt:u.popper),tooltip:(Hl=K.tooltip)!=null?Hl:u.tooltip,transition:M(M({},j),kn!=null?kn:u.transition)}},[Kd,$l]=Zt("popper",{elementType:EK,externalForwardedProps:ha,ownerState:an,className:We(Lo.popper,Z==null?void 0:Z.className)}),[Fl,zl]=Zt("transition",{elementType:zs,externalForwardedProps:ha,ownerState:an}),[Qd,Jd]=Zt("tooltip",{elementType:PK,className:Lo.tooltip,externalForwardedProps:ha,ownerState:an}),[eh,th]=Zt("arrow",{elementType:AK,className:Lo.arrow,externalForwardedProps:ha,ownerState:an,ref:ie});return me.jsxs(Q.Fragment,{children:[Q.cloneElement(W,or),me.jsx(Kd,$(M(M({as:U!=null?U:Pl,placement:z,anchorEl:C?{getBoundingClientRect:()=>({top:is.y,left:is.x,right:is.x,bottom:is.y,width:0,height:0})}:F,popperRef:On,open:F?J:!1,id:we,transition:!0},Si),$l),{popperOptions:Il,children:({TransitionProps:Le})=>me.jsx(Fl,$(M(M({timeout:G.transitions.duration.shorter},Le),zl),{children:me.jsxs(Qd,$(M({},Jd),{children:[I,i?me.jsx(eh,M({},th)):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(_d.propTypes={arrow:_.bool,children:ra.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 oT={exports:{}};/*!
362
- Copyright (c) 2018 Jed Watson.
363
- Licensed under the MIT License (MIT), see
364
- http://jedwatson.github.io/classnames
365
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(a=i(a,n(l)))}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 l in a)t.call(a,l)&&a[l]&&(o=i(o,l));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})()})(oT);var RK=oT.exports;const Ys=y.getDefaultExportFromCjs(RK);function _t(){return _t=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},_t.apply(null,arguments)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Un(e){"@babel/helpers - typeof";return Un=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},Un(e)}function OK(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sT(e){var t=OK(e,"string");return Un(t)=="symbol"?t:t+""}function rb(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,sT(n.key),n)}}function mt(e,t,r){return t&&rb(e.prototype,t),r&&rb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Up(e,t){return Up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Up(e,t)}function Ht(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&&Up(e,t)}function fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nr(e,t){if(t&&(Un(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ge(e)}function ue(e,t,r){return(t=sT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vn=function(t,r,n,i,a,o,l,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 h=[n,i,a,o,l,u],f=0;c=new Error("Invariant Violation: "+r.replace(/%s/g,function(){return h[f++]}))}throw c.framesToPop=1,c}},Su=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},kK=Array.isArray,Kr=kK,DK=typeof Su=="object"&&Su&&Su.Object===Object&&Su,lT=DK,NK=lT,LK=typeof self=="object"&&self&&self.Object===Object&&self,IK=NK||LK||Function("return this")(),Rn=IK,$K=Rn,FK=$K.Symbol,Al=FK,nb=Al,uT=Object.prototype,zK=uT.hasOwnProperty,BK=uT.toString,as=nb?nb.toStringTag:void 0;function WK(e){var t=zK.call(e,as),r=e[as];try{e[as]=void 0;var n=!0}catch(a){}var i=BK.call(e);return n&&(t?e[as]=r:delete e[as]),i}var HK=WK,jK=Object.prototype,VK=jK.toString;function GK(e){return VK.call(e)}var UK=GK,ib=Al,YK=HK,qK=UK,XK="[object Null]",ZK="[object Undefined]",ab=ib?ib.toStringTag:void 0;function KK(e){return e==null?e===void 0?ZK:XK:ab&&ab in Object(e)?YK(e):qK(e)}var sa=KK;function QK(e){return e!=null&&typeof e=="object"}var Ci=QK,JK=sa,eQ=Ci,tQ="[object Symbol]";function rQ(e){return typeof e=="symbol"||eQ(e)&&JK(e)==tQ}var wd=rQ,nQ=Kr,iQ=wd,aQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oQ=/^\w*$/;function sQ(e,t){if(nQ(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||iQ(e)?!0:oQ.test(e)||!aQ.test(e)||t!=null&&e in Object(t)}var lQ=sQ;function uQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var la=uQ,cQ=sa,dQ=la,hQ="[object AsyncFunction]",fQ="[object Function]",pQ="[object GeneratorFunction]",mQ="[object Proxy]";function gQ(e){if(!dQ(e))return!1;var t=cQ(e);return t==fQ||t==pQ||t==hQ||t==mQ}var cT=gQ,vQ=Rn,yQ=vQ["__core-js_shared__"],bQ=yQ,sf=bQ,ob=function(){var e=/[^.]+$/.exec(sf&&sf.keys&&sf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _Q(e){return!!ob&&ob in e}var wQ=_Q,xQ=Function.prototype,CQ=xQ.toString;function TQ(e){if(e!=null){try{return CQ.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var dT=TQ,MQ=cT,SQ=wQ,EQ=la,PQ=dT,AQ=/[\\^$.*+?()[\]{}|]/g,RQ=/^\[object .+?Constructor\]$/,OQ=Function.prototype,kQ=Object.prototype,DQ=OQ.toString,NQ=kQ.hasOwnProperty,LQ=RegExp("^"+DQ.call(NQ).replace(AQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IQ(e){if(!EQ(e)||SQ(e))return!1;var t=MQ(e)?LQ:RQ;return t.test(PQ(e))}var $Q=IQ;function FQ(e,t){return e==null?void 0:e[t]}var zQ=FQ,BQ=$Q,WQ=zQ;function HQ(e,t){var r=WQ(e,t);return BQ(r)?r:void 0}var ua=HQ,jQ=ua,VQ=jQ(Object,"create"),xd=VQ,sb=xd;function GQ(){this.__data__=sb?sb(null):{},this.size=0}var UQ=GQ;function YQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qQ=YQ,XQ=xd,ZQ="__lodash_hash_undefined__",KQ=Object.prototype,QQ=KQ.hasOwnProperty;function JQ(e){var t=this.__data__;if(XQ){var r=t[e];return r===ZQ?void 0:r}return QQ.call(t,e)?t[e]:void 0}var eJ=JQ,tJ=xd,rJ=Object.prototype,nJ=rJ.hasOwnProperty;function iJ(e){var t=this.__data__;return tJ?t[e]!==void 0:nJ.call(t,e)}var aJ=iJ,oJ=xd,sJ="__lodash_hash_undefined__";function lJ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oJ&&t===void 0?sJ:t,this}var uJ=lJ,cJ=UQ,dJ=qQ,hJ=eJ,fJ=aJ,pJ=uJ;function Eo(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])}}Eo.prototype.clear=cJ;Eo.prototype.delete=dJ;Eo.prototype.get=hJ;Eo.prototype.has=fJ;Eo.prototype.set=pJ;var mJ=Eo;function gJ(){this.__data__=[],this.size=0}var vJ=gJ;function yJ(e,t){return e===t||e!==e&&t!==t}var hT=yJ,bJ=hT;function _J(e,t){for(var r=e.length;r--;)if(bJ(e[r][0],t))return r;return-1}var Cd=_J,wJ=Cd,xJ=Array.prototype,CJ=xJ.splice;function TJ(e){var t=this.__data__,r=wJ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():CJ.call(t,r,1),--this.size,!0}var MJ=TJ,SJ=Cd;function EJ(e){var t=this.__data__,r=SJ(t,e);return r<0?void 0:t[r][1]}var PJ=EJ,AJ=Cd;function RJ(e){return AJ(this.__data__,e)>-1}var OJ=RJ,kJ=Cd;function DJ(e,t){var r=this.__data__,n=kJ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var NJ=DJ,LJ=vJ,IJ=MJ,$J=PJ,FJ=OJ,zJ=NJ;function Po(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])}}Po.prototype.clear=LJ;Po.prototype.delete=IJ;Po.prototype.get=$J;Po.prototype.has=FJ;Po.prototype.set=zJ;var Td=Po,BJ=ua,WJ=Rn,HJ=BJ(WJ,"Map"),sg=HJ,lb=mJ,jJ=Td,VJ=sg;function GJ(){this.size=0,this.__data__={hash:new lb,map:new(VJ||jJ),string:new lb}}var UJ=GJ;function YJ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qJ=YJ,XJ=qJ;function ZJ(e,t){var r=e.__data__;return XJ(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Md=ZJ,KJ=Md;function QJ(e){var t=KJ(this,e).delete(e);return this.size-=t?1:0,t}var JJ=QJ,eee=Md;function tee(e){return eee(this,e).get(e)}var ree=tee,nee=Md;function iee(e){return nee(this,e).has(e)}var aee=iee,oee=Md;function see(e,t){var r=oee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var lee=see,uee=UJ,cee=JJ,dee=ree,hee=aee,fee=lee;function Ao(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])}}Ao.prototype.clear=uee;Ao.prototype.delete=cee;Ao.prototype.get=dee;Ao.prototype.has=hee;Ao.prototype.set=fee;var fT=Ao,pT=fT,pee="Expected a function";function lg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pee);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(lg.Cache||pT),r}lg.Cache=pT;var mee=lg,gee=mee,vee=500;function yee(e){var t=gee(e,function(n){return r.size===vee&&r.clear(),n}),r=t.cache;return t}var bee=yee,_ee=bee,wee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xee=/\\(\\)?/g,Cee=_ee(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wee,function(r,n,i,a){t.push(i?a.replace(xee,"$1"):n||r)}),t}),Tee=Cee;function Mee(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 See=Mee,ub=Al,Eee=See,Pee=Kr,Aee=wd,Ree=1/0,cb=ub?ub.prototype:void 0,db=cb?cb.toString:void 0;function mT(e){if(typeof e=="string")return e;if(Pee(e))return Eee(e,mT)+"";if(Aee(e))return db?db.call(e):"";var t=e+"";return t=="0"&&1/e==-Ree?"-0":t}var Oee=mT,kee=Oee;function Dee(e){return e==null?"":kee(e)}var gT=Dee,Nee=Kr,Lee=lQ,Iee=Tee,$ee=gT;function Fee(e,t){return Nee(e)?e:Lee(e,t)?[e]:Iee($ee(e))}var Sd=Fee,zee=wd,Bee=1/0;function Wee(e){if(typeof e=="string"||zee(e))return e;var t=e+"";return t=="0"&&1/e==-Bee?"-0":t}var ug=Wee,Hee=Sd,jee=ug;function Vee(e,t){t=Hee(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[jee(t[r++])];return r&&r==n?e:void 0}var vT=Vee,Gee=ua,Uee=function(){try{var e=Gee(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),yT=Uee,hb=yT;function Yee(e,t,r){t=="__proto__"&&hb?hb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var bT=Yee,qee=bT,Xee=hT,Zee=Object.prototype,Kee=Zee.hasOwnProperty;function Qee(e,t,r){var n=e[t];(!(Kee.call(e,t)&&Xee(n,r))||r===void 0&&!(t in e))&&qee(e,t,r)}var cg=Qee,Jee=9007199254740991,ete=/^(?:0|[1-9]\d*)$/;function tte(e,t){var r=typeof e;return t=t==null?Jee:t,!!t&&(r=="number"||r!="symbol"&&ete.test(e))&&e>-1&&e%1==0&&e<t}var dg=tte,rte=cg,nte=Sd,ite=dg,fb=la,ate=ug;function ote(e,t,r,n){if(!fb(e))return e;t=nte(t,e);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var u=ate(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var h=l[u];c=n?n(h,u,l):void 0,c===void 0&&(c=fb(h)?h:ite(t[i+1])?[]:{})}rte(l,u,c),l=l[u]}return e}var ste=ote,lte=vT,ute=ste,cte=Sd;function dte(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],l=lte(e,o);r(l,o)&&ute(a,cte(o,e),l)}return a}var hte=dte;function fte(e,t){return e!=null&&t in Object(e)}var pte=fte,mte=sa,gte=Ci,vte="[object Arguments]";function yte(e){return gte(e)&&mte(e)==vte}var bte=yte,pb=bte,_te=Ci,_T=Object.prototype,wte=_T.hasOwnProperty,xte=_T.propertyIsEnumerable,Cte=pb(function(){return arguments}())?pb:function(e){return _te(e)&&wte.call(e,"callee")&&!xte.call(e,"callee")},Ed=Cte,Tte=9007199254740991;function Mte(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Tte}var hg=Mte,Ste=Sd,Ete=Ed,Pte=Kr,Ate=dg,Rte=hg,Ote=ug;function kte(e,t,r){t=Ste(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Ote(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&&Rte(i)&&Ate(o,i)&&(Pte(e)||Ete(e)))}var Dte=kte,Nte=pte,Lte=Dte;function Ite(e,t){return e!=null&&Lte(e,t,Nte)}var $te=Ite,Fte=hte,zte=$te;function Bte(e,t){return Fte(e,t,function(r,n){return zte(e,n)})}var Wte=Bte;function Hte(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Pd=Hte,mb=Al,jte=Ed,Vte=Kr,gb=mb?mb.isConcatSpreadable:void 0;function Gte(e){return Vte(e)||jte(e)||!!(gb&&e&&e[gb])}var Ute=Gte,Yte=Pd,qte=Ute;function wT(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=qte),i||(i=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?wT(l,t-1,r,n,i):Yte(i,l):n||(i[i.length]=l)}return i}var xT=wT,Xte=xT;function Zte(e){var t=e==null?0:e.length;return t?Xte(e,1):[]}var Kte=Zte;function Qte(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 Jte=Qte,ere=Jte,vb=Math.max;function tre(e,t,r){return t=vb(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=vb(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(o),ere(e,this,l)}}var rre=tre;function nre(e){return function(){return e}}var ire=nre;function are(e){return e}var CT=are,ore=ire,yb=yT,sre=CT,lre=yb?function(e,t){return yb(e,"toString",{configurable:!0,enumerable:!1,value:ore(t),writable:!0})}:sre,ure=lre,cre=800,dre=16,hre=Date.now;function fre(e){var t=0,r=0;return function(){var n=hre(),i=dre-(n-r);if(r=n,i>0){if(++t>=cre)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pre=fre,mre=ure,gre=pre,vre=gre(mre),yre=vre,bre=Kte,_re=rre,wre=yre;function xre(e){return wre(_re(e,void 0,bre),e+"")}var Cre=xre,Tre=Wte,Mre=Cre,Sre=Mre(function(e,t){return e==null?{}:Tre(e,t)}),vs=Sre;function bb(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 _b(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tr(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 wb=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),lf=function(){return Math.random().toString(36).substring(7).split("").join(".")},Vi={INIT:"@@redux/INIT"+lf(),REPLACE:"@@redux/REPLACE"+lf(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+lf()}};function TT(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 Ere(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(Rre(e))return"date";if(Are(e))return"error";var r=Pre(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 Pre(e){return typeof e.constructor=="function"?e.constructor.name:null}function Are(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Rre(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ni(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Ere(e)),t}function MT(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"?tr(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"?tr(1):"Expected the enhancer to be a function. Instead, received: '"+ni(r)+"'");return r(MT)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?tr(2):"Expected the root reducer to be a function. Instead, received: '"+ni(e)+"'");var i=e,a=t,o=[],l=o,u=!1;function c(){l===o&&(l=o.slice())}function h(){if(u)throw new Error(process.env.NODE_ENV==="production"?tr(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 f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?tr(4):"Expected the listener to be a function. Instead, received: '"+ni(v)+"'");if(u)throw new Error(process.env.NODE_ENV==="production"?tr(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 w=!0;return c(),l.push(v),function(){if(w){if(u)throw new Error(process.env.NODE_ENV==="production"?tr(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.");w=!1,c();var T=l.indexOf(v);l.splice(T,1),o=null}}}function p(v){if(!TT(v))throw new Error(process.env.NODE_ENV==="production"?tr(7):"Actions must be plain objects. Instead, the actual type was: '"+ni(v)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof v.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?tr(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"?tr(9):"Reducers may not dispatch actions.");try{u=!0,a=i(a,v)}finally{u=!1}for(var w=o=l,C=0;C<w.length;C++){var T=w[C];T()}return v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?tr(10):"Expected the nextReducer to be a function. Instead, received: '"+ni(v));i=v,p({type:Vi.REPLACE})}function b(){var v,w=f;return v={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(process.env.NODE_ENV==="production"?tr(11):"Expected the observer to be an object. Instead, received: '"+ni(T)+"'");function E(){T.next&&T.next(h())}E();var S=w(E);return{unsubscribe:S}}},v[wb]=function(){return this},v}return p({type:Vi.INIT}),n={dispatch:p,subscribe:f,getState:h,replaceReducer:g},n[wb]=b,n}function Yp(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function Ore(e,t,r,n){var i=Object.keys(t),a=r&&r.type===Vi.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(!TT(e))return"The "+a+' has unexpected type of "'+ni(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var o=Object.keys(e).filter(function(l){return!t.hasOwnProperty(l)&&!n[l]});if(o.forEach(function(l){n[l]=!0}),!(r&&r.type===Vi.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 kre(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Vi.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?tr(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:Vi.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?tr(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Vi.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 Dre(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"&&Yp('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 l;try{kre(r)}catch(u){l=u}return function(c,h){if(c===void 0&&(c={}),l)throw l;if(process.env.NODE_ENV!=="production"){var f=Ore(c,r,h,o);f&&Yp(f)}for(var p=!1,g={},b=0;b<a.length;b++){var v=a[b],w=r[v],C=c[v],T=w(C,h);if(typeof T=="undefined"){var E=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?tr(14):"When called with an action of type "+(E?'"'+String(E)+'"':"(unknown type)")+', the slice reducer for key "'+v+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}g[v]=T,p=p||T!==C}return p=p||a.length!==Object.keys(c).length,p?g:c}}function xb(e,t){return function(){return t(e.apply(this,arguments))}}function ST(e,t){if(typeof e=="function")return xb(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?tr(16):"bindActionCreators expected an object or a function, but instead received: '"+ni(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]=xb(i,t))}return r}function _c(){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 Nre(){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"?tr(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)}},l=t.map(function(u){return u(o)});return a=_c.apply(void 0,l)(i.dispatch),_b(_b({},i),{},{dispatch:a})}}}function Cb(){}process.env.NODE_ENV!=="production"&&typeof Cb.name=="string"&&Cb.name!=="isCrushed"&&Yp('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 Lre=Td;function Ire(){this.__data__=new Lre,this.size=0}var $re=Ire;function Fre(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var zre=Fre;function Bre(e){return this.__data__.get(e)}var Wre=Bre;function Hre(e){return this.__data__.has(e)}var jre=Hre,Vre=Td,Gre=sg,Ure=fT,Yre=200;function qre(e,t){var r=this.__data__;if(r instanceof Vre){var n=r.__data__;if(!Gre||n.length<Yre-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ure(n)}return r.set(e,t),this.size=r.size,this}var Xre=qre,Zre=Td,Kre=$re,Qre=zre,Jre=Wre,ene=jre,tne=Xre;function Ro(e){var t=this.__data__=new Zre(e);this.size=t.size}Ro.prototype.clear=Kre;Ro.prototype.delete=Qre;Ro.prototype.get=Jre;Ro.prototype.has=ene;Ro.prototype.set=tne;var rne=Ro;function nne(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var ET=nne,ine=cg,ane=bT;function one(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var l=t[a],u=n?n(r[l],e[l],l,r,e):void 0;u===void 0&&(u=e[l]),i?ane(r,l,u):ine(r,l,u)}return r}var Ad=one;function sne(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var lne=sne,qs={exports:{}};function une(){return!1}var cne=une;(function(e,t){var r=Rn,n=cne,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||n;e.exports=c})(qs,qs.exports);var dne=sa,hne=hg,fne=Ci,pne="[object Arguments]",mne="[object Array]",gne="[object Boolean]",vne="[object Date]",yne="[object Error]",bne="[object Function]",_ne="[object Map]",wne="[object Number]",xne="[object Object]",Cne="[object RegExp]",Tne="[object Set]",Mne="[object String]",Sne="[object WeakMap]",Ene="[object ArrayBuffer]",Pne="[object DataView]",Ane="[object Float32Array]",Rne="[object Float64Array]",One="[object Int8Array]",kne="[object Int16Array]",Dne="[object Int32Array]",Nne="[object Uint8Array]",Lne="[object Uint8ClampedArray]",Ine="[object Uint16Array]",$ne="[object Uint32Array]",gt={};gt[Ane]=gt[Rne]=gt[One]=gt[kne]=gt[Dne]=gt[Nne]=gt[Lne]=gt[Ine]=gt[$ne]=!0;gt[pne]=gt[mne]=gt[Ene]=gt[gne]=gt[Pne]=gt[vne]=gt[yne]=gt[bne]=gt[_ne]=gt[wne]=gt[xne]=gt[Cne]=gt[Tne]=gt[Mne]=gt[Sne]=!1;function Fne(e){return fne(e)&&hne(e.length)&&!!gt[dne(e)]}var zne=Fne;function Bne(e){return function(t){return e(t)}}var fg=Bne,Xs={exports:{}};(function(e,t){var r=lT,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch(c){}}();e.exports=l})(Xs,Xs.exports);var Wne=zne,Hne=fg,Tb=Xs.exports,Mb=Tb&&Tb.isTypedArray,jne=Mb?Hne(Mb):Wne,PT=jne,Vne=lne,Gne=Ed,Une=Kr,Yne=qs.exports,qne=dg,Xne=PT,Zne=Object.prototype,Kne=Zne.hasOwnProperty;function Qne(e,t){var r=Une(e),n=!r&&Gne(e),i=!r&&!n&&Yne(e),a=!r&&!n&&!i&&Xne(e),o=r||n||i||a,l=o?Vne(e.length,String):[],u=l.length;for(var c in e)(t||Kne.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qne(c,u)))&&l.push(c);return l}var AT=Qne,Jne=Object.prototype;function eie(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Jne;return e===r}var Rd=eie;function tie(e,t){return function(r){return e(t(r))}}var RT=tie,rie=RT,nie=rie(Object.keys,Object),iie=nie,aie=Rd,oie=iie,sie=Object.prototype,lie=sie.hasOwnProperty;function uie(e){if(!aie(e))return oie(e);var t=[];for(var r in Object(e))lie.call(e,r)&&r!="constructor"&&t.push(r);return t}var pg=uie,cie=cT,die=hg;function hie(e){return e!=null&&die(e.length)&&!cie(e)}var Rl=hie,fie=AT,pie=pg,mie=Rl;function gie(e){return mie(e)?fie(e):pie(e)}var Od=gie,vie=Ad,yie=Od;function bie(e,t){return e&&vie(t,yie(t),e)}var _ie=bie;function wie(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var xie=wie,Cie=la,Tie=Rd,Mie=xie,Sie=Object.prototype,Eie=Sie.hasOwnProperty;function Pie(e){if(!Cie(e))return Mie(e);var t=Tie(e),r=[];for(var n in e)n=="constructor"&&(t||!Eie.call(e,n))||r.push(n);return r}var Aie=Pie,Rie=AT,Oie=Aie,kie=Rl;function Die(e){return kie(e)?Rie(e,!0):Oie(e)}var mg=Die,Nie=Ad,Lie=mg;function Iie(e,t){return e&&Nie(t,Lie(t),e)}var $ie=Iie,qp={exports:{}};(function(e,t){var r=Rn,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,l=o?o.allocUnsafe:void 0;function u(c,h){if(h)return c.slice();var f=c.length,p=l?l(f):new c.constructor(f);return c.copy(p),p}e.exports=u})(qp,qp.exports);function Fie(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var OT=Fie;function zie(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 Bie=zie;function Wie(){return[]}var kT=Wie,Hie=Bie,jie=kT,Vie=Object.prototype,Gie=Vie.propertyIsEnumerable,Sb=Object.getOwnPropertySymbols,Uie=Sb?function(e){return e==null?[]:(e=Object(e),Hie(Sb(e),function(t){return Gie.call(e,t)}))}:jie,gg=Uie,Yie=Ad,qie=gg;function Xie(e,t){return Yie(e,qie(e),t)}var Zie=Xie,Kie=RT,Qie=Kie(Object.getPrototypeOf,Object),DT=Qie,Jie=Pd,eae=DT,tae=gg,rae=kT,nae=Object.getOwnPropertySymbols,iae=nae?function(e){for(var t=[];e;)Jie(t,tae(e)),e=eae(e);return t}:rae,NT=iae,aae=Ad,oae=NT;function sae(e,t){return aae(e,oae(e),t)}var lae=sae,uae=Pd,cae=Kr;function dae(e,t,r){var n=t(e);return cae(e)?n:uae(n,r(e))}var LT=dae,hae=LT,fae=gg,pae=Od;function mae(e){return hae(e,pae,fae)}var gae=mae,vae=LT,yae=NT,bae=mg;function _ae(e){return vae(e,bae,yae)}var wae=_ae,xae=ua,Cae=Rn,Tae=xae(Cae,"DataView"),Mae=Tae,Sae=ua,Eae=Rn,Pae=Sae(Eae,"Promise"),Aae=Pae,Rae=ua,Oae=Rn,kae=Rae(Oae,"Set"),Dae=kae,Nae=ua,Lae=Rn,Iae=Nae(Lae,"WeakMap"),$ae=Iae,Xp=Mae,Zp=sg,Kp=Aae,Qp=Dae,Jp=$ae,IT=sa,Oo=dT,Eb="[object Map]",Fae="[object Object]",Pb="[object Promise]",Ab="[object Set]",Rb="[object WeakMap]",Ob="[object DataView]",zae=Oo(Xp),Bae=Oo(Zp),Wae=Oo(Kp),Hae=Oo(Qp),jae=Oo(Jp),Ii=IT;(Xp&&Ii(new Xp(new ArrayBuffer(1)))!=Ob||Zp&&Ii(new Zp)!=Eb||Kp&&Ii(Kp.resolve())!=Pb||Qp&&Ii(new Qp)!=Ab||Jp&&Ii(new Jp)!=Rb)&&(Ii=function(e){var t=IT(e),r=t==Fae?e.constructor:void 0,n=r?Oo(r):"";if(n)switch(n){case zae:return Ob;case Bae:return Eb;case Wae:return Pb;case Hae:return Ab;case jae:return Rb}return t});var Ol=Ii,Vae=Object.prototype,Gae=Vae.hasOwnProperty;function Uae(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Gae.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Yae=Uae,qae=Rn,Xae=qae.Uint8Array,Zae=Xae,kb=Zae;function Kae(e){var t=new e.constructor(e.byteLength);return new kb(t).set(new kb(e)),t}var vg=Kae,Qae=vg;function Jae(e,t){var r=t?Qae(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var eoe=Jae,toe=/\w*$/;function roe(e){var t=new e.constructor(e.source,toe.exec(e));return t.lastIndex=e.lastIndex,t}var noe=roe,Db=Al,Nb=Db?Db.prototype:void 0,Lb=Nb?Nb.valueOf:void 0;function ioe(e){return Lb?Object(Lb.call(e)):{}}var aoe=ioe,ooe=vg;function soe(e,t){var r=t?ooe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var loe=soe,uoe=vg,coe=eoe,doe=noe,hoe=aoe,foe=loe,poe="[object Boolean]",moe="[object Date]",goe="[object Map]",voe="[object Number]",yoe="[object RegExp]",boe="[object Set]",_oe="[object String]",woe="[object Symbol]",xoe="[object ArrayBuffer]",Coe="[object DataView]",Toe="[object Float32Array]",Moe="[object Float64Array]",Soe="[object Int8Array]",Eoe="[object Int16Array]",Poe="[object Int32Array]",Aoe="[object Uint8Array]",Roe="[object Uint8ClampedArray]",Ooe="[object Uint16Array]",koe="[object Uint32Array]";function Doe(e,t,r){var n=e.constructor;switch(t){case xoe:return uoe(e);case poe:case moe:return new n(+e);case Coe:return coe(e,r);case Toe:case Moe:case Soe:case Eoe:case Poe:case Aoe:case Roe:case Ooe:case koe:return foe(e,r);case goe:return new n;case voe:case _oe:return new n(e);case yoe:return doe(e);case boe:return new n;case woe:return hoe(e)}}var Noe=Doe,Loe=la,Ib=Object.create,Ioe=function(){function e(){}return function(t){if(!Loe(t))return{};if(Ib)return Ib(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),$oe=Ioe,Foe=$oe,zoe=DT,Boe=Rd;function Woe(e){return typeof e.constructor=="function"&&!Boe(e)?Foe(zoe(e)):{}}var Hoe=Woe,joe=Ol,Voe=Ci,Goe="[object Map]";function Uoe(e){return Voe(e)&&joe(e)==Goe}var Yoe=Uoe,qoe=Yoe,Xoe=fg,$b=Xs.exports,Fb=$b&&$b.isMap,Zoe=Fb?Xoe(Fb):qoe,Koe=Zoe,Qoe=Ol,Joe=Ci,ese="[object Set]";function tse(e){return Joe(e)&&Qoe(e)==ese}var rse=tse,nse=rse,ise=fg,zb=Xs.exports,Bb=zb&&zb.isSet,ase=Bb?ise(Bb):nse,ose=ase,sse=rne,lse=ET,use=cg,cse=_ie,dse=$ie,hse=qp.exports,fse=OT,pse=Zie,mse=lae,gse=gae,vse=wae,yse=Ol,bse=Yae,_se=Noe,wse=Hoe,xse=Kr,Cse=qs.exports,Tse=Koe,Mse=la,Sse=ose,Ese=Od,Pse=mg,Ase=1,Rse=2,Ose=4,$T="[object Arguments]",kse="[object Array]",Dse="[object Boolean]",Nse="[object Date]",Lse="[object Error]",FT="[object Function]",Ise="[object GeneratorFunction]",$se="[object Map]",Fse="[object Number]",zT="[object Object]",zse="[object RegExp]",Bse="[object Set]",Wse="[object String]",Hse="[object Symbol]",jse="[object WeakMap]",Vse="[object ArrayBuffer]",Gse="[object DataView]",Use="[object Float32Array]",Yse="[object Float64Array]",qse="[object Int8Array]",Xse="[object Int16Array]",Zse="[object Int32Array]",Kse="[object Uint8Array]",Qse="[object Uint8ClampedArray]",Jse="[object Uint16Array]",ele="[object Uint32Array]",dt={};dt[$T]=dt[kse]=dt[Vse]=dt[Gse]=dt[Dse]=dt[Nse]=dt[Use]=dt[Yse]=dt[qse]=dt[Xse]=dt[Zse]=dt[$se]=dt[Fse]=dt[zT]=dt[zse]=dt[Bse]=dt[Wse]=dt[Hse]=dt[Kse]=dt[Qse]=dt[Jse]=dt[ele]=!0;dt[Lse]=dt[FT]=dt[jse]=!1;function Vu(e,t,r,n,i,a){var o,l=t&Ase,u=t&Rse,c=t&Ose;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!Mse(e))return e;var h=xse(e);if(h){if(o=bse(e),!l)return fse(e,o)}else{var f=yse(e),p=f==FT||f==Ise;if(Cse(e))return hse(e,l);if(f==zT||f==$T||p&&!i){if(o=u||p?{}:wse(e),!l)return u?mse(e,dse(o,e)):pse(e,cse(o,e))}else{if(!dt[f])return i?e:{};o=_se(e,f,l)}}a||(a=new sse);var g=a.get(e);if(g)return g;a.set(e,o),Sse(e)?e.forEach(function(w){o.add(Vu(w,t,r,w,e,a))}):Tse(e)&&e.forEach(function(w,C){o.set(C,Vu(w,t,r,C,e,a))});var b=c?u?vse:gse:u?Pse:Ese,v=h?void 0:b(e);return lse(v||e,function(w,C){v&&(C=w,w=e[C]),use(o,C,Vu(w,t,r,C,e,a))}),o}var tle=Vu,rle=tle,nle=4;function ile(e){return rle(e,nle)}var ale=ile;function ole(e,t){return e<t}var Eu=function(){function e(t,r){pt(this,e),this._items=t||[],this._size=this._items.length,this._comparator=r||ole,this._heapify()}return mt(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 l=this._items[i];this._comparator(l,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}(),BT=function(){function e(){pt(this,e),this._valueToPositionMap={},this._size=0,this._smallValues=new Eu([],this._smallerComparator),this._largeValues=new Eu([],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 mt(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){vn(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(vn(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 l;r-a>o-n?(l=a,this._smallValues.pop()):(l=o,this._largeValues.pop());var u=this._valueToPositionMap[l];return delete this._valueToPositionMap[l],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 Eu([],this._smallerComparator),i=new Eu([],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}(),hr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},uf=function(t){return Math.floor(t/2)},sle=hr.Int32Array||function(e){for(var t=[],r=e-1;r>=0;--r)t[r]=0;return t};function lle(e){for(var t=1;t<e;)t*=2;return t}var ule=function(){function e(t){pt(this,e),this._size=t.length,this._half=lle(this._size),this._heap=new sle(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 mt(e,[{key:"set",value:function(r,n){vn(0<=r&&r<this._size,"Index out of range %s",r);var i=this._half+r;for(this._heap[i]=n,i=uf(i);i!==0;i=uf(i))this._heap[i]=this._heap[2*i]+this._heap[2*i+1]}},{key:"get",value:function(r){vn(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(vn(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=uf(n))n%2===1&&(i+=this._heap[n-1]);return i}},{key:"sumTo",value:function(r){return vn(0<=r&&r<this._size,"Index out of range %s",r),this.sumUntil(r+1)}},{key:"sum",value:function(r,n){return vn(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 Zs(e,t){if(e===t)return!0;if(Un(e)!=="object"||e===null||Un(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 Oe={FIXED:"fixed",FIXED_RIGHT:"fixedRight",SCROLLABLE:"scrollable"};function em(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=cle(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.
366
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function cle(e,t){if(e){if(typeof e=="string")return Wb(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 Wb(e,t)}}function Wb(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 cf(e){var t=e.props,r=t.align,n=t.allowCellsRecycling,i=t.cellClassName,a=t.columnKey,o=t.flexGrow,l=t.fixed,u=t.fixedRight,c=t.maxWidth,h=t.minWidth,f=t.isReorderable,p=t.isResizable,g=t.pureRendering,b=t.width;return{align:r,allowCellsRecycling:n,cellClassName:i,columnKey:a,flexGrow:o,fixed:l,fixedRight:u,maxWidth:c,minWidth:h,isReorderable:f,isResizable:p,pureRendering:g,width:b}}function Hb(e,t){e.cell.push(t.props.cell),e.footer.push(t.props.footer),e.header.push(t.props.header)}function tm(e){var t,r;return e!=null&&(t=e.props)!==null&&t!==void 0&&t.fixed?Oe.FIXED:e!=null&&(r=e.props)!==null&&r!==void 0&&r.fixedRight?Oe.FIXED_RIGHT:Oe.SCROLLABLE}function Ks(){var e;return e={},ue(e,Oe.FIXED,[]),ue(e,Oe.SCROLLABLE,[]),ue(e,Oe.FIXED_RIGHT,[]),e}function dle(){return{groupHeader:[],header:[],cell:[],footer:[]}}function jb(e){var t=Ks(),r=em(e),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,a=tm(i);t[a].push(i)}}catch(l){r.e(l)}finally{r.f()}var o=[];return o.push.apply(o,t[Oe.FIXED]),o.push.apply(o,t[Oe.SCROLLABLE]),o.push.apply(o,t[Oe.FIXED_RIGHT]),o}function Vb(e,t){return t===Oe.FIXED?e[Oe.FIXED].length:t===Oe.SCROLLABLE?e[Oe.FIXED].length+e[Oe.SCROLLABLE].length:e[Oe.FIXED].length+e[Oe.SCROLLABLE].length+e[Oe.FIXED_RIGHT].length}function hle(e){var t,r,n=[];k.Children.forEach(e,function(g,b){g!=null&&(vn(g.type.__TableColumnGroup__||g.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),n.push(g))});var i=Ks(),a=Ks(),o=dle(),l=(t=(r=n[0])===null||r===void 0?void 0:r.type.__TableColumnGroup__)!==null&&t!==void 0?t:!1;if(l)(function(){var g=0,b=em(jb(n)),v;try{var w=function(){var T=v.value,E=tm(T),S=cf(T);S.index=Vb(a,E),a[E].push(S),o.groupHeader.push(T.props.header),k.Children.forEach(T.props.children,function(P){var O=cf(P);O.index=g++,O.groupIdx=S.index,i[E].push(O),Hb(o,P)})};for(b.s();!(v=b.n()).done;)w()}catch(C){b.e(C)}finally{b.f()}})();else{var u=em(jb(n)),c;try{for(u.s();!(c=u.n()).done;){var h=c.value,f=tm(h),p=cf(h);p.index=Vb(i,f),i[f].push(p),Hb(o,h)}}catch(g){u.e(g)}finally{u.f()}}return{columnGroupElements:a,columnElements:i,elementTemplates:o,useGroupHeader:l}}function kd(e,t,r){return e<t?t:e>r?r:e}var wc="NOT_FOUND";function fle(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:wc},put:function(n,i){t={key:n,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function ple(e,t){var r=[];function n(l){var u=r.findIndex(function(h){return t(l,h.key)});if(u>-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return wc}function i(l,u){n(l)===wc&&(r.unshift({key:l,value:u}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var mle=function(t,r){return t===r};function gle(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 vle(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,i=n===void 0?mle:n,a=r.maxSize,o=a===void 0?1:a,l=r.resultEqualityCheck,u=gle(i),c=o===1?fle(u):ple(o,u);function h(){var f=c.get(arguments);if(f===wc){if(f=e.apply(null,arguments),l){var p=c.getEntries(),g=p.find(function(b){return l(b.value,f)});g&&(f=g.value)}c.put(arguments,f)}return f}return h.clearCache=function(){return c.clear()},h}function yle(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 ble(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,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];var c=0,h,f={memoizeOptions:void 0},p=l.pop();if(typeof p=="object"&&(f=p,p=l.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var g=f,b=g.memoizeOptions,v=b===void 0?r:b,w=Array.isArray(v)?v:[v],C=yle(l),T=e.apply(void 0,[function(){return c++,p.apply(null,arguments)}].concat(w)),E=e(function(){for(var P=[],O=C.length,N=0;N<O;N++)P.push(C[N].apply(null,arguments));return h=T.apply(null,P),h});return Object.assign(E,{resultFunc:p,memoizedResultFunc:T,dependencies:C,lastResult:function(){return h},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),E};return i}var Dd=ble(vle),Zn=Dd;function _le(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=wle(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.
367
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function wle(e,t){if(e){if(typeof e=="string")return Gb(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 Gb(e,t)}}function Gb(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 WT=[],xle={},yg={memoizeOptions:{maxSize:12}},Gu=Dd(function(e){return e||WT},function(e){return e.reduce(function(t,r){return t+r.props.width},0)},yg),Qa=Dd(function(e){return e||WT},function(e){return e.reduce(function(t,r){return t+r.width},0)},yg);function HT(e){return Qa(e.fixed)+Qa(e.fixedRight)+Qa(e.scrollable)}var Cle=Dd(function(e){return e||xle},function(e){var t=Array.prototype.concat.call(e.fixed,e.scrollable,e.fixedRight),r=0,n=_le(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},yg),Tle=1,Mle=3,Sle=6,li={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};function Ele(e,t,r,n,i,a,o){var l=t.cellGroupWrapperHeight,u=t.footerHeight,c=t.headerHeight,h=t.groupHeaderHeight,f=l?0:2*Tle,p=u+c+h+f,g=i.height,b=i.maxHeight,v=i.useMaxHeight,w=i.width,C=Math.round(v?b:g),T=C-p,E=Ple(e,n,w,o),S=T,P=T;switch(E){case li.VISIBLE:{S-=a,P-=a;break}case li.JOINT_SCROLLBARS:{S-=a;break}}return{bufferRowCount:Ale(P,r),minAvailableHeight:Math.max(S,0),maxAvailableHeight:Math.max(P,0),reservedHeight:p,scrollStateX:E}}function Ple(e,t,r,n){var i=t.overflowX,a=t.showScrollbarX,o=HT(e);return i==="hidden"||a===!1?li.HIDDEN:o>r?li.VISIBLE:o>r-n?li.JOINT_SCROLLBARS:li.HIDDEN}function Ale(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 kd(Math.floor(o/2),Mle,Sle)}var bg=Zn([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}],Ele);function Rle(e,t,r){var n=r.overflowY,i=r.showScrollbarY,a=n!=="hidden"&&i!==!1,o=e.minAvailableHeight,l=e.maxAvailableHeight,u=e.scrollStateX,c=!1,h=!1;u===li.VISIBLE&&(h=!0),a&&t>l&&(c=!0),c&&u===li.JOINT_SCROLLBARS&&(h=!0);var f=l;return h&&(f=o),{availableHeight:f,scrollEnabledX:h,scrollEnabledY:c}}var Ji=Zn([bg,function(e){return e.scrollContentHeight},function(e){return e.scrollFlags}],Rle);function Bi(e,t){var r=e.rowSettings,n=e.getInternal(),i=n.storedHeights,a=n.rowOffsetIntervalTree,o=r.rowHeightGetter,l=r.subRowHeightGetter,u=o(t)+l(t),c=i[t];return u!==c&&(a.set(t,u),i[t]=u,e.scrollContentHeight+=u-c),i[t]}function Ub(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?Ole(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?rm(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function rm(e,t){var r=Ji(e),n=r.availableHeight,i=e.rowSettings,a=e.scrollContentHeight,o=e.getInternal(),l=o.rowOffsetIntervalTree,u=i.rowsCount;if(e.rowSettings.rowHeightGetter!=null&&e.isVerticalScrollExact){for(var c=e.getInternal(),h=c.rowUntilOffsetsAreExact;h<u;)Bi(e,h++);e.getInternal().rowUntilOffsetsAreExact=u}if(u===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var f=0,p=0,g=void 0;if(!(t<=0))if(t>=a-n)f=void 0,g=u-1;else{var b=l.greatestLowerBound(t);f=kd(b,0,Math.max(u-1,0));var v=l.sumUntil(f);p=v-t}return{firstIndex:f,firstOffset:p,lastIndex:g,changed:!0}}function Ole(e,t){var r=Ji(e),n=r.availableHeight,i=e.rowSettings,a=e.scrollY,o=e.getInternal(),l=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=kd(t,0,Math.max(c-1,0)),Bi(e,t);var h=l.sumUntil(t),f=h+u[t],p=t,g=void 0;if(!(h<a))if(a+n<f)p=void 0,g=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:p,firstOffset:0,lastIndex:g,changed:!0}}function kle(e){return e==null}var Os=kle;function Dle(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var Nle=Dle,Lle=/\s/;function Ile(e){for(var t=e.length;t--&&Lle.test(e.charAt(t)););return t}var $le=Ile,Fle=$le,zle=/^\s+/;function Ble(e){return e&&e.slice(0,Fle(e)+1).replace(zle,"")}var Wle=Ble,Hle=Wle,Yb=la,jle=wd,qb=NaN,Vle=/^[-+]0x[0-9a-f]+$/i,Gle=/^0b[01]+$/i,Ule=/^0o[0-7]+$/i,Yle=parseInt;function qle(e){if(typeof e=="number")return e;if(jle(e))return qb;if(Yb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Yb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Hle(e);var r=Gle.test(e);return r||Ule.test(e)?Yle(e.slice(2),r?2:8):Vle.test(e)?qb:+e}var _g=qle,Xle=Nle,df=_g;function Zle(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=df(r),r=r===r?r:0),t!==void 0&&(t=df(t),t=t===t?t:0),Xle(df(e),t,r)}var Nd=Zle,Kle=Pd,Qle=xT,Jle=OT,eue=Kr;function tue(){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 Kle(eue(r)?Jle(r):[r],Qle(t,1))}var Xb=tue;function Zb(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=rue(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.
368
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function rue(e,t){if(e){if(typeof e=="string")return Kb(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 Kb(e,t)}}function Kb(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 nue(e,t,r,n,i){var a=r?i:0,o=n-a,l=iue(e,t,o),u=l.columnGroupElements,c=l.columnElements,h=Qb(c),f=h.fixed,p=h.fixedRight,g=h.scrollable,b=Qb(u),v=b.fixed,w=b.fixedRight,C=b.scrollable,T=Qa(f),E=Qa(p),S=Qa(g),P=o-T-E,O=Math.max(0,T+E+S-o);return{columnGroupProps:Xb(v,C,w),columnProps:Xb(f,g,p),availableScrollWidth:P,fixedColumns:f,fixedRightColumns:p,scrollableColumns:g,fixedColumnGroups:v,fixedRightColumnGroups:w,scrollableColumnGroups:C,maxScrollX:O}}function iue(e,t,r){var n=Ks(),i=Ks(),a=HT(t),o=Cle(t),l=Math.max(r-a,0),u=[];for(var c in t){var h=t[c],f=0,p=0,g=Zb(h),b;try{for(g.s();!(b=g.n()).done;){var v=b.value,w=v.flexGrow||0,C=0;w&&(C=Math.floor(w*l/o));var T=v.width+C;o-=w,l-=C;var E=_t({},v,{width:T,offset:f});f+=T,u[v.groupIdx]=T+(u[v.groupIdx]||0),i[c][p]=E,p++}}catch(I){g.e(I)}finally{g.f()}}for(var S in e){var P=e[S],O=0,N=0,z=Zb(P),U;try{for(z.s();!(U=z.n()).done;){var Z=U.value,K=u[Z.index],R=_t({},Z,{width:K,offset:O});O+=K,n[S][N]=R,N++}}catch(I){z.e(I)}finally{z.f()}}return{columnGroupElements:n,columnElements:i}}function Qb(e){return{fixed:e.fixed,fixedRight:e.fixedRight,scrollable:e.scrollable}}var kl=Zn([function(e){return e.columnGroupElements},function(e){return e.columnElements},function(e){return Ji(e).scrollEnabledY},function(e){return e.tableSize.width},function(e){return e.scrollbarYWidth}],nue);function aue(e,t,r){var n=t.scrollLeft,i=e.scrollX;n!==void 0&&(!r||n!==r.scrollLeft)&&(i=n),i=oue(e,t,r.scrollToColumn,i);var a=kl(e),o=a.maxScrollX;i=Nd(i,0,o),_t(e,{maxScrollX:o,scrollX:i})}function oue(e,t,r,n){var i=t.scrollToColumn;if(Os(i))return n;var a=kl(e),o=a.availableScrollWidth,l=a.fixedColumns,u=a.scrollableColumns,c=l.length,h=u.length,f=h===0,p=i===r,g=i<c,b=i>=c+h;if(p||g||b||f)return n;for(var v=Math.min(i-c,u.length-1),w=0,C=0;C<v;++C)w+=u[C].width;var T=u[v].width,E=w+T-o;return n<E?E:n>w?w:n}var Jb={initialize:aue};function sue(e,t,r,n,i,a,o){var l=i.availableHeight,u=i.scrollEnabledX,c=r;u&&(c+=o);var h=Math.min(l,n),f=a?h:l,p=f+c,g=f;t<p&&(g=t-c);var b=a?n:Math.max(n,l),v=b+c;t&&(v=Math.max(t,v));var w=e.footerHeight,C=e.groupHeaderHeight,T=e.headerHeight,E=C+T,S=E+g,P=S+w,O=Math.max(0,S-E);return{bodyHeight:h,bodyOffsetTop:E,componentHeight:p,contentHeight:v,footOffsetTop:S,scrollbarXOffsetTop:P,scrollbarYHeight:O,visibleRowsHeight:g}}var Ua=Zn([function(e){return e.elementHeights},function(e){return e.tableSize.ownerHeight},function(e){return bg(e).reservedHeight},function(e){return e.scrollContentHeight},Ji,function(e){return e.tableSize.useMaxHeight},function(e){return e.scrollbarXHeight}],sue);function os(e,t){var r=e_(e,t),n=e.rowSettings,i=e.scrollContentHeight,a=n.rowsCount,o=Ua(e),l=o.bodyHeight,u=i-l,c;u===0?(r.firstViewportIdx>0&&(r=e_(e,{firstOffset:0,lastIndex:a-1})),c=0):c=r.firstOffset;var h=r.firstViewportIdx,f=r.endViewportIdx;lue(e,r,e.scrolling);var p=0;a>0&&(p=e.rowOffsets[r.firstViewportIdx]-c),p=Nd(p,0,u),_t(e,{firstRowIndex:h,firstRowOffset:c,endRowIndex:f,maxScrollY:u,scrollY:p})}function e_(e,t){var r=bg(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,l=t.firstOffset,u=t.lastIndex;(o>=a||u>=a)&&(u=a-1);var c=1,h=o,f=l;u!==void 0&&(c=-1,h=u,f=0);for(var p=h,g=p;p<a&&p>=0&&f<i;)f+=Bi(e,p),g=p,p+=c;var b=!1;if(f<i&&p===a&&u===void 0)for(b=!0,p=o-1;p>=0&&f<i;)f+=Bi(e,p),h=p,--p;var v=Math.min(h,g),w=Math.max(v-n,0);for(p=w;p<v;p++)Bi(e,p);var C=Math.max(h,g)+1,T=Math.min(C+n,a);for(p=C;p<T;p++)Bi(e,p);var E=Ji(e),S=E.availableHeight;if(u!==void 0||b){l=l+Math.min(S-f,0);var P=e.getInternal(),O=P.storedHeights;-1*l>=O[v]&&(v+=1,l+=O[v])}return{endBufferIdx:T,endViewportIdx:C,firstBufferIdx:w,firstOffset:l,firstViewportIdx:v}}function lue(e,t,r){var n=e.getInternal(),i=n.rowBufferSet,a=n.rowOffsetIntervalTree,o=n.storedHeights,l=t.endBufferIdx,u=t.endViewportIdx,c=t.firstBufferIdx,h=t.firstViewportIdx,f=l-c;if(f===0){e.rowOffsets={},e.rows=[];return}for(var p=r?h:c,g=r?u:l,b=[],v={},w=a.sumUntil(p),C=p;C<g;C++){v[C]=w,w+=o[C];var T=uue(C,i,p,g,f);b[T]=C}e.rows=b,e.rowOffsets=v}function uue(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 nm={exports:{}},xc={exports:{}},rt={};/** @license React v16.13.1
369
- * react-is.production.min.js
370
- *
371
- * Copyright (c) Facebook, Inc. and its affiliates.
372
- *
373
- * This source code is licensed under the MIT license found in the
374
- * LICENSE file in the root directory of this source tree.
375
- */var Qt=typeof Symbol=="function"&&Symbol.for,wg=Qt?Symbol.for("react.element"):60103,xg=Qt?Symbol.for("react.portal"):60106,Ld=Qt?Symbol.for("react.fragment"):60107,Id=Qt?Symbol.for("react.strict_mode"):60108,$d=Qt?Symbol.for("react.profiler"):60114,Fd=Qt?Symbol.for("react.provider"):60109,zd=Qt?Symbol.for("react.context"):60110,Cg=Qt?Symbol.for("react.async_mode"):60111,Bd=Qt?Symbol.for("react.concurrent_mode"):60111,Wd=Qt?Symbol.for("react.forward_ref"):60112,Hd=Qt?Symbol.for("react.suspense"):60113,cue=Qt?Symbol.for("react.suspense_list"):60120,jd=Qt?Symbol.for("react.memo"):60115,Vd=Qt?Symbol.for("react.lazy"):60116,due=Qt?Symbol.for("react.block"):60121,hue=Qt?Symbol.for("react.fundamental"):60117,fue=Qt?Symbol.for("react.responder"):60118,pue=Qt?Symbol.for("react.scope"):60119;function Fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case wg:switch(e=e.type,e){case Cg:case Bd:case Ld:case $d:case Id:case Hd:return e;default:switch(e=e&&e.$$typeof,e){case zd:case Wd:case Vd:case jd:case Fd:return e;default:return t}}case xg:return t}}}function jT(e){return Fr(e)===Bd}rt.AsyncMode=Cg;rt.ConcurrentMode=Bd;rt.ContextConsumer=zd;rt.ContextProvider=Fd;rt.Element=wg;rt.ForwardRef=Wd;rt.Fragment=Ld;rt.Lazy=Vd;rt.Memo=jd;rt.Portal=xg;rt.Profiler=$d;rt.StrictMode=Id;rt.Suspense=Hd;rt.isAsyncMode=function(e){return jT(e)||Fr(e)===Cg};rt.isConcurrentMode=jT;rt.isContextConsumer=function(e){return Fr(e)===zd};rt.isContextProvider=function(e){return Fr(e)===Fd};rt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===wg};rt.isForwardRef=function(e){return Fr(e)===Wd};rt.isFragment=function(e){return Fr(e)===Ld};rt.isLazy=function(e){return Fr(e)===Vd};rt.isMemo=function(e){return Fr(e)===jd};rt.isPortal=function(e){return Fr(e)===xg};rt.isProfiler=function(e){return Fr(e)===$d};rt.isStrictMode=function(e){return Fr(e)===Id};rt.isSuspense=function(e){return Fr(e)===Hd};rt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ld||e===Bd||e===$d||e===Id||e===Hd||e===cue||typeof e=="object"&&e!==null&&(e.$$typeof===Vd||e.$$typeof===jd||e.$$typeof===Fd||e.$$typeof===zd||e.$$typeof===Wd||e.$$typeof===hue||e.$$typeof===fue||e.$$typeof===pue||e.$$typeof===due)};rt.typeOf=Fr;var et={};/** @license React v16.13.1
376
- * react-is.development.js
377
- *
378
- * Copyright (c) Facebook, Inc. and its affiliates.
379
- *
380
- * This source code is licensed under the MIT license found in the
381
- * LICENSE file in the root directory of this source tree.
382
- */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,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,T=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===f||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===g||J.$$typeof===o||J.$$typeof===l||J.$$typeof===h||J.$$typeof===w||J.$$typeof===C||J.$$typeof===T||J.$$typeof===v)}function S(J){if(typeof J=="object"&&J!==null){var we=J.$$typeof;switch(we){case t:var Ee=J.type;switch(Ee){case u:case c:case n:case a:case i:case f:return Ee;default:var ke=Ee&&Ee.$$typeof;switch(ke){case l:case h:case b:case g:case o:return ke;default:return we}}case r:return we}}}var P=u,O=c,N=l,z=o,U=t,Z=h,K=n,R=b,I=g,X=r,j=a,V=i,W=f,G=!1;function re(J){return G||(G=!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.")),F(J)||S(J)===u}function F(J){return S(J)===c}function Y(J){return S(J)===l}function ne(J){return S(J)===o}function ie(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function te(J){return S(J)===h}function oe(J){return S(J)===n}function le(J){return S(J)===b}function de(J){return S(J)===g}function ce(J){return S(J)===r}function ve(J){return S(J)===a}function Ce(J){return S(J)===i}function ye(J){return S(J)===f}et.AsyncMode=P,et.ConcurrentMode=O,et.ContextConsumer=N,et.ContextProvider=z,et.Element=U,et.ForwardRef=Z,et.Fragment=K,et.Lazy=R,et.Memo=I,et.Portal=X,et.Profiler=j,et.StrictMode=V,et.Suspense=W,et.isAsyncMode=re,et.isConcurrentMode=F,et.isContextConsumer=Y,et.isContextProvider=ne,et.isElement=ie,et.isForwardRef=te,et.isFragment=oe,et.isLazy=le,et.isMemo=de,et.isPortal=ce,et.isProfiler=ve,et.isStrictMode=Ce,et.isSuspense=ye,et.isValidElementType=E,et.typeOf=S}();process.env.NODE_ENV==="production"?xc.exports=rt:xc.exports=et;/*
383
- object-assign
384
- (c) Sindre Sorhus
385
- @license MIT
386
- */var t_=Object.getOwnPropertySymbols,mue=Object.prototype.hasOwnProperty,gue=Object.prototype.propertyIsEnumerable;function vue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function yue(){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 bue=yue()?Object.assign:function(e,t){for(var r,n=vue(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)mue.call(r,o)&&(n[o]=r[o]);if(t_){i=t_(r);for(var l=0;l<i.length;l++)gue.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},_ue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Tg=_ue,VT=Function.call.bind(Object.prototype.hasOwnProperty),im=function(){};if(process.env.NODE_ENV!=="production"){var wue=Tg,am={},xue=VT;im=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}}}function GT(e,t,r,n,i){if(process.env.NODE_ENV!=="production"){for(var a in e)if(xue(e,a)){var o;try{if(typeof e[a]!="function"){var l=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 l.name="Invariant Violation",l}o=e[a](t,a,n,r,null,wue)}catch(c){o=c}if(o&&!(o instanceof Error)&&im((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 am)){am[o.message]=!0;var u=i?i():"";im("Failed "+r+" type: "+o.message+(u!=null?u:""))}}}}GT.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(am={})};var Cue=GT,Tue=xc.exports,Mue=bue,Da=Tg,hf=VT,r_=Cue,Ba=function(){};process.env.NODE_ENV!=="production"&&(Ba=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function Pu(){return null}var Sue=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,n="@@iterator";function i(I){var X=I&&(r&&I[r]||I[n]);if(typeof X=="function")return X}var a="<<anonymous>>",o={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(),arrayOf:p,element:g(),elementType:b(),instanceOf:v,node:E(),objectOf:C,oneOf:w,oneOfType:T,shape:P,exact:O};function l(I,X){return I===X?I!==0||1/I===1/X:I!==I&&X!==X}function u(I,X){this.message=I,this.data=X&&typeof X=="object"?X:{},this.stack=""}u.prototype=Error.prototype;function c(I){if(process.env.NODE_ENV!=="production")var X={},j=0;function V(G,re,F,Y,ne,ie,te){if(Y=Y||a,ie=ie||F,te!==Da){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 le=Y+":"+F;!X[le]&&j<3&&(Ba("You are manually calling a React.PropTypes validation function for the `"+ie+"` prop on `"+Y+"`. 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[le]=!0,j++)}}return re[F]==null?G?re[F]===null?new u("The "+ne+" `"+ie+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new u("The "+ne+" `"+ie+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:I(re,F,Y,ne,ie)}var W=V.bind(null,!1);return W.isRequired=V.bind(null,!0),W}function h(I){function X(j,V,W,G,re,F){var Y=j[V],ne=U(Y);if(ne!==I){var ie=Z(Y);return new u("Invalid "+G+" `"+re+"` of type "+("`"+ie+"` supplied to `"+W+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return c(X)}function f(){return c(Pu)}function p(I){function X(j,V,W,G,re){if(typeof I!="function")return new u("Property `"+re+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var F=j[V];if(!Array.isArray(F)){var Y=U(F);return new u("Invalid "+G+" `"+re+"` of type "+("`"+Y+"` supplied to `"+W+"`, expected an array."))}for(var ne=0;ne<F.length;ne++){var ie=I(F,ne,W,G,re+"["+ne+"]",Da);if(ie instanceof Error)return ie}return null}return c(X)}function g(){function I(X,j,V,W,G){var re=X[j];if(!e(re)){var F=U(re);return new u("Invalid "+W+" `"+G+"` of type "+("`"+F+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return c(I)}function b(){function I(X,j,V,W,G){var re=X[j];if(!Tue.isValidElementType(re)){var F=U(re);return new u("Invalid "+W+" `"+G+"` of type "+("`"+F+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return c(I)}function v(I){function X(j,V,W,G,re){if(!(j[V]instanceof I)){var F=I.name||a,Y=R(j[V]);return new u("Invalid "+G+" `"+re+"` of type "+("`"+Y+"` supplied to `"+W+"`, expected ")+("instance of `"+F+"`."))}return null}return c(X)}function w(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Ba("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])."):Ba("Invalid argument supplied to oneOf, expected an array.")),Pu;function X(j,V,W,G,re){for(var F=j[V],Y=0;Y<I.length;Y++)if(l(F,I[Y]))return null;var ne=JSON.stringify(I,function(te,oe){var le=Z(oe);return le==="symbol"?String(oe):oe});return new u("Invalid "+G+" `"+re+"` of value `"+String(F)+"` "+("supplied to `"+W+"`, expected one of "+ne+"."))}return c(X)}function C(I){function X(j,V,W,G,re){if(typeof I!="function")return new u("Property `"+re+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var F=j[V],Y=U(F);if(Y!=="object")return new u("Invalid "+G+" `"+re+"` of type "+("`"+Y+"` supplied to `"+W+"`, expected an object."));for(var ne in F)if(hf(F,ne)){var ie=I(F,ne,W,G,re+"."+ne,Da);if(ie instanceof Error)return ie}return null}return c(X)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&Ba("Invalid argument supplied to oneOfType, expected an instance of array."),Pu;for(var X=0;X<I.length;X++){var j=I[X];if(typeof j!="function")return Ba("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(j)+" at index "+X+"."),Pu}function V(W,G,re,F,Y){for(var ne=[],ie=0;ie<I.length;ie++){var te=I[ie],oe=te(W,G,re,F,Y,Da);if(oe==null)return null;oe.data&&hf(oe.data,"expectedType")&&ne.push(oe.data.expectedType)}var le=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new u("Invalid "+F+" `"+Y+"` supplied to "+("`"+re+"`"+le+"."))}return c(V)}function E(){function I(X,j,V,W,G){return N(X[j])?null:new u("Invalid "+W+" `"+G+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return c(I)}function S(I,X,j,V,W){return new u((I||"React class")+": "+X+" type `"+j+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function P(I){function X(j,V,W,G,re){var F=j[V],Y=U(F);if(Y!=="object")return new u("Invalid "+G+" `"+re+"` of type `"+Y+"` "+("supplied to `"+W+"`, expected `object`."));for(var ne in I){var ie=I[ne];if(typeof ie!="function")return S(W,G,re,ne,Z(ie));var te=ie(F,ne,W,G,re+"."+ne,Da);if(te)return te}return null}return c(X)}function O(I){function X(j,V,W,G,re){var F=j[V],Y=U(F);if(Y!=="object")return new u("Invalid "+G+" `"+re+"` of type `"+Y+"` "+("supplied to `"+W+"`, expected `object`."));var ne=Mue({},j[V],I);for(var ie in ne){var te=I[ie];if(hf(I,ie)&&typeof te!="function")return S(W,G,re,ie,Z(te));if(!te)return new u("Invalid "+G+" `"+re+"` key `"+ie+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(j[V],null," ")+`
387
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var oe=te(F,ie,W,G,re+"."+ie,Da);if(oe)return oe}return null}return c(X)}function N(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(N);if(I===null||e(I))return!0;var X=i(I);if(X){var j=X.call(I),V;if(X!==I.entries){for(;!(V=j.next()).done;)if(!N(V.value))return!1}else for(;!(V=j.next()).done;){var W=V.value;if(W&&!N(W[1]))return!1}}else return!1;return!0;default:return!1}}function z(I,X){return I==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function U(I){var X=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":z(X,I)?"symbol":X}function Z(I){if(typeof I=="undefined"||I===null)return""+I;var X=U(I);if(X==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return X}function K(I){var X=Z(I);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function R(I){return!I.constructor||!I.constructor.name?a:I.constructor.name}return o.checkPropTypes=r_,o.resetWarningCache=r_.resetWarningCache,o.PropTypes=o,o},Eue=Tg;function UT(){}function YT(){}YT.resetWarningCache=UT;var Pue=function(){function e(n,i,a,o,l,u){if(u!==Eue){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:YT,resetWarningCache:UT};return r.PropTypes=r,r};if(process.env.NODE_ENV!=="production"){var Aue=xc.exports,Rue=!0;nm.exports=Sue(Aue.isElement,Rue)}else nm.exports=Pue();var B=nm.exports,Oue=/\//g,Au={};function kue(e){return Au[e]||(Au[e]=e.replace(Oue,"_")),Au[e]}function Re(e){var t;return Un(e)=="object"?t=Object.keys(e).filter(function(r){return e[r]}):t=Array.prototype.slice.call(arguments),t.map(kue).join(" ")}function Gd(e){return function(){return e}}function Kt(){}Kt.thatReturns=Gd;Kt.thatReturnsFalse=Gd(!1);Kt.thatReturnsTrue=Gd(!0);Kt.thatReturnsNull=Gd(null);Kt.thatReturnsThis=function(){return this};Kt.thatReturnsArgument=function(e){return e};var pn={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},n_=!1,$i,om,sm,Uu,Yu,qT,qu,lm,um,cm,XT,dm,hm,ZT,KT;function _r(){if(!n_){n_=!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(dm=/\b(iPhone|iP[ao]d)/.exec(e),hm=/\b(iP[ao]d)/.exec(e),cm=/Android/i.exec(e),ZT=/FBAN\/\w+;/i.exec(e),KT=/Mobile/i.exec(e),XT=!!/Win64/.exec(e),t){$i=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,$i&&document&&document.documentMode&&($i=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);qT=n?parseFloat(n[1])+4:$i,om=t[2]?parseFloat(t[2]):NaN,sm=t[3]?parseFloat(t[3]):NaN,Uu=t[4]?parseFloat(t[4]):NaN,Uu?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Yu=t&&t[1]?parseFloat(t[1]):NaN):Yu=NaN}else $i=om=sm=Yu=Uu=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);qu=i?parseFloat(i[1].replace("_",".")):!0}else qu=!1;lm=!!r[2],um=!!r[3]}else qu=lm=um=!1}}var fm={ie:function(){return _r()||$i},ieCompatibilityMode:function(){return _r()||qT>$i},ie64:function(){return fm.ie()&&XT},firefox:function(){return _r()||om},opera:function(){return _r()||sm},webkit:function(){return _r()||Uu},safari:function(){return fm.webkit()},chrome:function(){return _r()||Yu},windows:function(){return _r()||lm},osx:function(){return _r()||qu},linux:function(){return _r()||um},iphone:function(){return _r()||dm},mobile:function(){return _r()||dm||hm||cm||KT},nativeApp:function(){return _r()||ZT},android:function(){return _r()||cm},ipad:function(){return _r()||hm}},Ru=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Mg={canUseDOM:Ru,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:Ru&&!!(window.addEventListener||window.attachEvent),canUseViewport:Ru&&!!window.screen,isInWorker:!Ru},QT;Mg.canUseDOM&&(QT=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
388
- * Checks if an event is supported in the current execution environment.
389
- *
390
- * NOTE: This will not work correctly for non-generic events such as `change`,
391
- * `reset`, `load`, `error`, and `select`.
392
- *
393
- * Borrows from Modernizr.
394
- *
395
- * @param {string} eventNameSuffix Event name, e.g. "click".
396
- * @param {?boolean} capture Check if the capture phase is supported.
397
- * @return {boolean} True if the event is supported.
398
- * @internal
399
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
400
- */function Due(e,t){if(!Mg.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&&QT&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var i_=10,a_=40,o_=800;function JT(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*i_,i=r*i_,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=a_,i*=a_):(n*=o_,i*=o_)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}JT.getEventType=function(){return fm.firefox()?"DOMMouseScroll":Due("wheel")?"wheel":"mousewheel"};var Nue=hr.requestAnimationFrame||hr.webkitRequestAnimationFrame||hr.mozRequestAnimationFrame||hr.oRequestAnimationFrame||hr.msRequestAnimationFrame,s_=0,ci=Nue||function(e){var t=Date.now(),r=Math.max(0,16-(t-s_));return s_=t+r,hr.setTimeout(function(){e(Date.now())},r)};ci(Kt);var eM=function(){function e(t,r,n,i,a,o){pt(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?Kt.thatReturnsTrue:Kt.thatReturnsFalse),typeof n!="function"&&(n=n?Kt.thatReturnsTrue:Kt.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 mt(e,[{key:"onWheel",value:function(r){this._preventDefault&&r.preventDefault();var n=JT(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),l=this._handleScrollY(a,i);if(!(!o&&!l)&&!(this._rootRef&&!this._contains(r.target))){this._deltaX+=o?n.pixelX:0,this._deltaY+=l?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=ci(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}(),Na={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:Kt})},registerDefault:function(){}},tM=hr.cancelAnimationFrame||hr.webkitCancelAnimationFrame||hr.mozCancelAnimationFrame||hr.oCancelAnimationFrame||hr.msCancelAnimationFrame||hr.clearTimeout;function Lue(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 pm={getCoordinatesFromEvent:Lue},Sg=function(){function e(t,r,n,i){pt(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 mt(e,[{key:"captureMouseMoves",value:function(r){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=Na.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=Na.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=Na.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=Na.listen(this._domNode,"touchstart",this._onMouseMove,{passive:!1}),this._eventTouchMoveToken=Na.listen(r.target,"touchmove",this._onMouseMove,{passive:!1}),this._eventTouchEndToken=Na.listen(r.target,"touchend",this._onMouseUp,{passive:!1})),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var n=pm.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&&(tM(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=pm.getCoordinatesFromEvent(r),i=n.x,a=n.y;this._deltaX+=i-this._x,this._deltaY+=a-this._y,this._animationFrameID===null&&(this._animationFrameID=ci(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}(),mm={"--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 Ud(e){if(mm.hasOwnProperty(e))return mm[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}Ud.CSS_VARS=mm;var Iue=/-(.)/g;function $ue(e){return e.replace(Iue,function(t,r){return r.toUpperCase()})}var ff={},gm=["Webkit","ms","Moz","O"],Fue=new RegExp("^("+gm.join("|")+")"),rM=Mg.canUseDOM?document.createElement("div").style:{};function zue(e){for(var t=0;t<gm.length;t++){var r=gm[t]+e;if(r in rM)return r}return null}function Ya(e){var t=$ue(e);if(ff[t]===void 0){var r=t.charAt(0).toUpperCase()+t.slice(1);Fue.test(r)&&vn(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",e),ff[t]=t in rM?t:zue(r)}return ff[t]}var vm={hasCSSAnimations:function(){return!!Ya("animationName")},hasCSSTransforms:function(){return!!Ya("transform")},hasCSS3DTransforms:function(){return!!Ya("perspective")},hasCSSTransitions:function(){return!!Ya("transition")}},l_=Ya("transform");Ya("backfaceVisibility");var Bue=function(){if(vm.hasCSSTransforms()){var e=hr.window?hr.window.navigator.userAgent:"UNKNOWN",t=/Safari\//.test(e)&&!/Chrome\//.test(e);return!t&&vm.hasCSS3DTransforms()?function(r,n,i){r[l_]="translate3d("+n+"px,"+i+"px,0)"}:function(r,n,i){r[l_]="translate("+n+"px,"+i+"px)"}}else return function(r,n,i){r.left=n+"px",r.top=i+"px"}}();function lo(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"):(vm.hasCSSTransforms()&&(t*=i?-1:1),e.left=0,Bue(e,t,r)),i&&(e.right=e.left,e.left="auto"))}function Wue(e){var t=Hue();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Hue(){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 jue={position:0,scrollable:!1},nM=parseInt(Ud("--scrollbar-face-margin"),10),u_=nM*2,pf=30,iM=40,Rr=function(e){Ht(r,e);var t=Wue(r);function r(n){var i;return pt(this,r),i=t.call(this,n),ue(fe(i),"_onRefFace",function(a){return i._faceRef=a}),ue(fe(i),"_onRefRoot",function(a){return i._rootRef=a}),ue(fe(i),"scrollBy",function(a){i._onWheel(a)}),ue(fe(i),"_shouldHandleX",function(a){return i.props.orientation==="horizontal"?i._shouldHandleChange(a):!1}),ue(fe(i),"_shouldHandleY",function(a){return i.props.orientation!=="horizontal"?i._shouldHandleChange(a):!1}),ue(fe(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(fe(i),"_calculateState",function(a,o,l,u){var c=Math.max(1,o);if(l<=c)return jue;var h="".concat(a,"_").concat(c,"_").concat(l,"_").concat(u);if(i._stateKey===h)return i._stateForKey;var f=u==="horizontal",p=c/l,g=c*p;g<pf&&(p=(c-pf)/(l-c),g=pf);var b=!0,v=l-c;a<0?a=0:a>v&&(a=v);var w={faceSize:g,isHorizontal:f,position:a,scale:p,scrollable:b};return i._stateKey=h,i._stateForKey=w,w}),ue(fe(i),"_onWheelY",function(a,o){i._onWheel(o)}),ue(fe(i),"_onWheelX",function(a,o){i._onWheel(a)}),ue(fe(i),"_onWheel",function(a){var o=i.props;i._setNextState(i._calculateState(i.state.position+a,o.size,o.contentSize,o.orientation))}),ue(fe(i),"_onMouseDown",function(a){i.setState({isDragging:!0});var o;if(a.target!==i._faceRef){var l,u,c,h,f=a.nativeEvent,p=i.state.isHorizontal?(l=(u=f.offsetX)!==null&&u!==void 0?u:f.layerX)!==null&&l!==void 0?l:i.getTouchX(f):(c=(h=f.offsetY)!==null&&h!==void 0?h:f.layerY)!==null&&c!==void 0?c:i.getTouchY(f),g=i.props;p/=i.state.scale,o=i._calculateState(p-i.state.faceSize*.5/i.state.scale,g.size,g.contentSize,g.orientation)}else o={};i._setNextState(o),i._mouseMoveTracker.captureMouseMoves(a),i._rootRef.focus()}),ue(fe(i),"_onTouchCancel",function(a){a.stopPropagation()}),ue(fe(i),"_onTouchEnd",function(a){a.stopPropagation()}),ue(fe(i),"_onTouchMove",function(a){a.stopPropagation()}),ue(fe(i),"_onTouchStart",function(a){a.stopPropagation(),i._onMouseDown(a)}),ue(fe(i),"_onMouseMove",function(a,o){var l=i.props,u=i.state.isHorizontal?a*(i.props.isRTL?-1:1):o;u/=i.state.scale;var c=Ar.flushSync||function(h){return h()};c(function(){return i._setNextState(i._calculateState(i.state.position+u,l.size,l.contentSize,l.orientation))})}),ue(fe(i),"_onMouseMoveEnd",function(){i._nextState=null,i._mouseMoveTracker.releaseMouseMoves(),i.setState({isDragging:!1})}),ue(fe(i),"_onKeyDown",function(a){var o=a.keyCode;if(o!==pn.TAB){var l=iM,u=0;if(i.state.isHorizontal)switch(o){case pn.HOME:u=-1,l=i.props.contentSize;break;case pn.LEFT:u=-1;break;case pn.RIGHT:u=1;break;default:return}if(!i.state.isHorizontal)switch(o){case pn.SPACE:a.shiftKey?u=-1:u=1;break;case pn.HOME:u=-1,l=i.props.contentSize;break;case pn.UP:u=-1;break;case pn.DOWN:u=1;break;case pn.PAGE_UP:u=-1,l=i.props.size;break;case pn.PAGE_DOWN:u=1,l=i.props.size;break;default:return}a.preventDefault();var c=i.props;i._setNextState(i._calculateState(i.state.position+l*u,c.size,c.contentSize,c.orientation))}}),ue(fe(i),"getTouchX",function(a){return Math.round(a.targetTouches[0].clientX-a.target.getBoundingClientRect().x)}),ue(fe(i),"getTouchY",function(a){return Math.round(a.targetTouches[0].clientY-a.target.getBoundingClientRect().y)}),ue(fe(i),"_setNextState",function(a,o){o=o||i.props;var l=o.position,u=i.state.position!==a.position;if(l===void 0){var c=u?i._didScroll:void 0;i.setState(a,c)}else if(l===a.position)i.setState(a);else{a.position!==void 0&&a.position!==i.state.position&&i.props.onScroll(a.position);return}}),ue(fe(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 mt(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,l=this.state.isHorizontal,u=!l,c=this.state.isDragging,h=this.state.faceSize,f=this.props.isOpaque,p=this.props.verticalTop||0,g=Re({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":u,"ScrollbarLayout/mainHorizontal":l,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":f,"public/Scrollbar/mainActive":c}),b=Re({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":l,"ScrollbarLayout/faceVertical":u,"public/Scrollbar/faceActive":c,"public/Scrollbar/face":!0}),v=this.state.position*this.state.scale+nM;return l?(a={width:i},o={width:h-u_,top:0,bottom:0},lo(o,v,0,this._initialRender,this.props.isRTL)):(a={top:p,height:i},this.props.isRTL&&(a.left=a.right||0,a.right="auto"),o={height:h-u_},lo(o,0,v,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=Ud("--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:g,style:a,ref:this._onRefRoot},k.createElement("div",{ref:this._onRefFace,className:b,style:o}))}},{key:"componentDidMount",value:function(){var i=this.props.orientation==="horizontal",a=i?this._onWheelX:this._onWheelY;this._wheelHandler=new eM(a,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new Sg(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(Rr,"propTypes",{contentSize:B.number.isRequired,defaultPosition:B.number,isOpaque:B.bool,orientation:B.oneOf(["vertical","horizontal"]),onScroll:B.func,position:B.number,size:B.number.isRequired,trackColor:B.oneOf(["gray"]),touchEnabled:B.bool,zIndex:B.number,verticalTop:B.number,isRTL:B.bool});ue(Rr,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:Kt,orientation:"vertical",zIndex:99});Rr.KEYBOARD_SCROLL_AMOUNT=iM;Rr.SIZE=parseInt(Ud("--scrollbar-size"),10);Rr.OFFSET=1;function Gt(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=Jue[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 Yn(e){return!!e&&!!e[vt]}function bi(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)===ece}(e)||Array.isArray(e)||!!e[g_]||!!e.constructor[g_]||Eg(e)||Pg(e))}function Vue(e){return Yn(e)||Gt(23,e),e[vt].t}function ea(e,t,r){r===void 0&&(r=!1),ko(e)===0?(r?Object.keys:eo)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function ko(e){var t=e[vt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Eg(e)?2:Pg(e)?3:0}function Ja(e,t){return ko(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gue(e,t){return ko(e)===2?e.get(t):e[t]}function aM(e,t,r){var n=ko(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function oM(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Eg(e){return Kue&&e instanceof Map}function Pg(e){return Que&&e instanceof Set}function ii(e){return e.o||e.t}function Ag(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=lM(e);delete t[vt];for(var r=eo(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 Rg(e,t){return t===void 0&&(t=!1),Og(e)||Yn(e)||!bi(e)||(ko(e)>1&&(e.set=e.add=e.clear=e.delete=Uue),Object.freeze(e),t&&ea(e,function(r,n){return Rg(n,!0)},!0)),e}function Uue(){Gt(2)}function Og(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xn(e){var t=wm[e];return t||Gt(18,e),t}function Yue(e,t){wm[e]||(wm[e]=t)}function ym(){return process.env.NODE_ENV==="production"||uo||Gt(0),uo}function mf(e,t){t&&(xn("Patches"),e.u=[],e.s=[],e.v=t)}function Cc(e){bm(e),e.p.forEach(que),e.p=null}function bm(e){e===uo&&(uo=e.l)}function c_(e){return uo={p:[],l:uo,h:e,m:!0,_:0}}function que(e){var t=e[vt];t.i===0||t.i===1?t.j():t.O=!0}function gf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||xn("ES5").S(t,e,n),n?(r[vt].P&&(Cc(t),Gt(4)),bi(e)&&(e=Tc(t,e),t.l||Mc(t,e)),t.u&&xn("Patches").M(r[vt].t,e,t.u,t.s)):e=Tc(t,r,[]),Cc(t),t.u&&t.v(t.u,t.s),e!==sM?e:void 0}function Tc(e,t,r){if(Og(t))return t;var n=t[vt];if(!n)return ea(t,function(a,o){return d_(e,n,t,a,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Mc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ag(n.k):n.o;ea(n.i===3?new Set(i):i,function(a,o){return d_(e,n,i,a,o,r)}),Mc(e,i,!1),r&&e.u&&xn("Patches").R(n,r,e.u,e.s)}return n.o}function d_(e,t,r,n,i,a){if(process.env.NODE_ENV!=="production"&&i===r&&Gt(5),Yn(i)){var o=Tc(e,i,a&&t&&t.i!==3&&!Ja(t.D,n)?a.concat(n):void 0);if(aM(r,n,o),!Yn(o))return;e.m=!1}if(bi(i)&&!Og(i)){if(!e.h.F&&e._<1)return;Tc(e,i),t&&t.A.l||Mc(e,i)}}function Mc(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&Rg(t,r)}function vf(e,t){var r=e[vt];return(r?ii(r):e)[t]}function h_(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 si(e){e.P||(e.P=!0,e.l&&si(e.l))}function yf(e){e.o||(e.o=Ag(e.t))}function _m(e,t,r){var n=Eg(t)?xn("MapSet").N(t,r):Pg(t)?xn("MapSet").T(t,r):e.g?function(i,a){var o=Array.isArray(i),l={i:o?1:0,A:a?a.A:ym(),P:!1,I:!1,D:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=l,c=Qs;o&&(u=[l],c=ys);var h=Proxy.revocable(u,c),f=h.revoke,p=h.proxy;return l.k=p,l.j=f,p}(t,r):xn("ES5").J(t,r);return(r?r.A:ym()).p.push(n),n}function Xue(e){return Yn(e)||Gt(22,e),function t(r){if(!bi(r))return r;var n,i=r[vt],a=ko(r);if(i){if(!i.P&&(i.i<4||!xn("ES5").K(i)))return i.t;i.I=!0,n=f_(r,a),i.I=!1}else n=f_(r,a);return ea(n,function(o,l){i&&Gue(i.t,o)===l||aM(n,o,t(l))}),a===3?new Set(n):n}(e)}function f_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ag(e)}function Zue(){function e(o,l){var u=a[o];return u?u.enumerable=l:a[o]=u={configurable:!0,enumerable:l,get:function(){var c=this[vt];return process.env.NODE_ENV!=="production"&&i(c),Qs.get(c,o)},set:function(c){var h=this[vt];process.env.NODE_ENV!=="production"&&i(h),Qs.set(h,o,c)}},u}function t(o){for(var l=o.length-1;l>=0;l--){var u=o[l][vt];if(!u.P)switch(u.i){case 5:n(u)&&si(u);break;case 4:r(u)&&si(u)}}}function r(o){for(var l=o.t,u=o.k,c=eo(u),h=c.length-1;h>=0;h--){var f=c[h];if(f!==vt){var p=l[f];if(p===void 0&&!Ja(l,f))return!0;var g=u[f],b=g&&g[vt];if(b?b.t!==p:!oM(g,p))return!0}}var v=!!l[vt];return c.length!==eo(l).length+(v?0:1)}function n(o){var l=o.k;if(l.length!==o.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var c=0;c<l.length;c++)if(!l.hasOwnProperty(c))return!0;return!1}function i(o){o.O&&Gt(3,JSON.stringify(ii(o)))}var a={};Yue("ES5",{J:function(o,l){var u=Array.isArray(o),c=function(f,p){if(f){for(var g=Array(p.length),b=0;b<p.length;b++)Object.defineProperty(g,""+b,e(b,!0));return g}var v=lM(p);delete v[vt];for(var w=eo(v),C=0;C<w.length;C++){var T=w[C];v[T]=e(T,f||!!v[T].enumerable)}return Object.create(Object.getPrototypeOf(p),v)}(u,o),h={i:u?5:4,A:l?l.A:ym(),P:!1,I:!1,D:{},l,t:o,k:c,o:null,O:!1,C:!1};return Object.defineProperty(c,vt,{value:h,writable:!0}),c},S:function(o,l,u){u?Yn(l)&&l[vt].A===o&&t(o.p):(o.u&&function c(h){if(h&&typeof h=="object"){var f=h[vt];if(f){var p=f.t,g=f.k,b=f.D,v=f.i;if(v===4)ea(g,function(S){S!==vt&&(p[S]!==void 0||Ja(p,S)?b[S]||c(g[S]):(b[S]=!0,si(f)))}),ea(p,function(S){g[S]!==void 0||Ja(g,S)||(b[S]=!1,si(f))});else if(v===5){if(n(f)&&(si(f),b.length=!0),g.length<p.length)for(var w=g.length;w<p.length;w++)b[w]=!1;else for(var C=p.length;C<g.length;C++)b[C]=!0;for(var T=Math.min(g.length,p.length),E=0;E<T;E++)g.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&c(g[E])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var p_,uo,kg=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Kue=typeof Map!="undefined",Que=typeof Set!="undefined",m_=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",sM=kg?Symbol.for("immer-nothing"):((p_={})["immer-nothing"]=!0,p_),g_=kg?Symbol.for("immer-draftable"):"__$immer_draftable",vt=kg?Symbol.for("immer-state"):"__$immer_state",Jue={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"},ece=""+Object.prototype.constructor,eo=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,lM=Object.getOwnPropertyDescriptors||function(e){var t={};return eo(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},wm={},Qs={get:function(e,t){if(t===vt)return e;var r=ii(e);if(!Ja(r,t))return function(i,a,o){var l,u=h_(a,o);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!bi(n)?n:n===vf(e.t,t)?(yf(e),e.o[t]=_m(e.A.h,n,e)):n},has:function(e,t){return t in ii(e)},ownKeys:function(e){return Reflect.ownKeys(ii(e))},set:function(e,t,r){var n=h_(ii(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=vf(ii(e),t),a=i==null?void 0:i[vt];if(a&&a.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(oM(r,i)&&(r!==void 0||Ja(e.t,t)))return!0;yf(e),si(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 vf(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,yf(e),si(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ii(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Gt(12)}},ys={};ea(Qs,function(e,t){ys[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ys.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Gt(13),ys.set.call(this,e,t,void 0)},ys.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Gt(14),Qs.set.call(this,e[0],t,r,e[0])};var tce=function(){function e(r){var n=this;this.g=m_,this.F=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var u=n;return function(v){var w=this;v===void 0&&(v=l);for(var C=arguments.length,T=Array(C>1?C-1:0),E=1;E<C;E++)T[E-1]=arguments[E];return u.produce(v,function(S){var P;return(P=a).call.apply(P,[w,S].concat(T))})}}var c;if(typeof a!="function"&&Gt(6),o!==void 0&&typeof o!="function"&&Gt(7),bi(i)){var h=c_(n),f=_m(n,i,void 0),p=!0;try{c=a(f),p=!1}finally{p?Cc(h):bm(h)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(v){return mf(h,o),gf(v,h)},function(v){throw Cc(h),v}):(mf(h,o),gf(c,h))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===sM&&(c=void 0),n.F&&Rg(c,!0),o){var g=[],b=[];xn("Patches").M(i,c,g,b),o(g,b)}return c}Gt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var h=arguments.length,f=Array(h>1?h-1:0),p=1;p<h;p++)f[p-1]=arguments[p];return n.produceWithPatches(c,function(g){return i.apply(void 0,[g].concat(f))})};var o,l,u=n.produce(i,a,function(c,h){o=c,l=h});return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(c){return[c,o,l]}):[u,o,l]},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){bi(r)||Gt(8),Yn(r)&&(r=Xue(r));var n=c_(this),i=_m(this,r,void 0);return i[vt].C=!0,bm(n),i},t.finishDraft=function(r,n){var i=r&&r[vt];process.env.NODE_ENV!=="production"&&(i&&i.C||Gt(9),i.I&&Gt(10));var a=i.A;return mf(a,n),gf(void 0,a)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!m_&&Gt(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=xn("Patches").$;return Yn(r)?o(r,n):this.produce(r,function(l){return o(l,n)})},e}(),Lr=new tce,rce=Lr.produce;Lr.produceWithPatches.bind(Lr);Lr.setAutoFreeze.bind(Lr);Lr.setUseProxies.bind(Lr);Lr.applyPatches.bind(Lr);Lr.createDraft.bind(Lr);Lr.finishDraft.bind(Lr);var Xu=rce;function uM(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(o){return function(l){return typeof l=="function"?l(i,a,e):o(l)}}};return t}var cM=uM();cM.withExtraArgument=uM;var v_=cM,nce=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)}}(),Sc=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},ice=Object.defineProperty,y_=Object.getOwnPropertySymbols,ace=Object.prototype.hasOwnProperty,oce=Object.prototype.propertyIsEnumerable,b_=function(e,t,r){return t in e?ice(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Js=function(e,t){for(var r in t||(t={}))ace.call(t,r)&&b_(e,r,t[r]);if(y_)for(var n=0,i=y_(t);n<i.length;n++){var r=i[n];oce.call(t,r)&&b_(e,r,t[r])}return e},sce=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_c:_c.apply(null,arguments)};function dM(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 hM(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.
401
- 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.
402
- It is disabled in production builds, so you don't need to worry about that.`)}}}var lce=function(e){nce(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,Sc([void 0],r[0].concat(this)))):new(t.bind.apply(t,Sc([void 0],r.concat(this))))},t}(Array),uce=process.env.NODE_ENV==="production",__="Invariant failed";function w_(e,t){if(!e)throw uce?new Error(__):new Error(__+": "+(t||""))}function cce(e,t,r,n){return JSON.stringify(e,dce(t,n),r)}function dce(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 hce(e){return typeof e!="object"||e===null||typeof e=="undefined"||Object.isFrozen(e)}function fce(e,t,r){var n=fM(e,t,r);return{detectMutations:function(){return pM(e,t,n,r)}}}function fM(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]=fM(e,t,r[a],o))}}return i}function pM(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,l=o===n;if(i&&!l&&!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 h=a?a+"."+c:c;if(!(t.length&&t.indexOf(h)!==-1)){var f=pM(e,t,r.children[c],n[c],l,h);if(f.wasMutated)return f}}return{wasMutated:!1}}function pce(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?hce:t,n=e.ignoredPaths,i=e.warnAfter,a=i===void 0?32:i,o=e.ignore;n=n||o;var l=fce.bind(null,r,n);return function(u){var c=u.getState,h=c(),f=l(h),p;return function(g){return function(b){var v=hM(a,"ImmutableStateInvariantMiddleware");v.measureTime(function(){h=c(),p=f.detectMutations(),f=l(h),w_(!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 w=g(b);return v.measureTime(function(){h=c(),p=f.detectMutations(),f=l(h),p.wasMutated&&w_(!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 "+cce(b)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),v.warnIfExceeded(),w}}}}function mM(e){var t=typeof e;return t==="undefined"||e===null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||dM(e)}function xm(e,t,r,n,i){t===void 0&&(t=""),r===void 0&&(r=mM),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),l=i.length>0,u=0,c=o;u<c.length;u++){var h=c[u],f=h[0],p=h[1],g=t?t+"."+f:f;if(!(l&&i.indexOf(g)>=0)){if(!r(p))return{keyPath:g,value:p};if(typeof p=="object"&&(a=xm(p,g,r,n,i),a))return a}}return!1}function mce(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(w){return function(C){return w(C)}}};var t=e.isSerializable,r=t===void 0?mM:t,n=e.getEntries,i=e.ignoredActions,a=i===void 0?[]:i,o=e.ignoredActionPaths,l=o===void 0?["meta.arg","meta.baseQueryMeta"]:o,u=e.ignoredPaths,c=u===void 0?[]:u,h=e.warnAfter,f=h===void 0?32:h,p=e.ignoreState,g=p===void 0?!1:p,b=e.ignoreActions,v=b===void 0?!1:b;return function(w){return function(C){return function(T){var E=C(T),S=hM(f,"SerializableStateInvariantMiddleware");return!v&&!(a.length&&a.indexOf(T.type)!==-1)&&S.measureTime(function(){var P=xm(T,"",r,n,l);if(P){var O=P.keyPath,N=P.value;console.error("A non-serializable value was detected in an action, in the path: `"+O+"`. Value:",N,`
403
- Take a look at the logic that dispatched this action: `,T,`
404
- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
405
- (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),g||(S.measureTime(function(){var P=w.getState(),O=xm(P,"",r,n,c);if(O){var N=O.keyPath,z=O.value;console.error("A non-serializable value was detected in the state, in the path: `"+N+"`. Value:",z,`
406
- Take a look at the reducer(s) handling this action type: `+T.type+`.
407
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),S.warnIfExceeded()),E}}}}function bf(e){return typeof e=="boolean"}function gce(){return function(t){return vce(t)}}function vce(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,l=new lce;if(r&&(bf(r)?l.push(v_):l.push(v_.withExtraArgument(r.extraArgument))),process.env.NODE_ENV!=="production"){if(i){var u={};bf(i)||(u=i),l.unshift(pce(u))}if(o){var c={};bf(o)||(c=o),l.push(mce(c))}}return l}var _f=process.env.NODE_ENV==="production";function yce(e){var t=gce(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,o=a===void 0?t():a,l=r.devTools,u=l===void 0?!0:l,c=r.preloadedState,h=c===void 0?void 0:c,f=r.enhancers,p=f===void 0?void 0:f,g;if(typeof i=="function")g=i;else if(dM(i))g=Dre(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 b=o;if(typeof b=="function"&&(b=b(t),!_f&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_f&&b.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Nre.apply(void 0,b),w=_c;u&&(w=sce(Js({trace:!_f},typeof u=="object"&&u)));var C=[v];Array.isArray(p)?C=Sc([v],p):typeof p=="function"&&(C=p(C));var T=w.apply(void 0,C);return MT(g,h,T)}function el(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 Js(Js({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 gM(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 l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=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 bce(e){return typeof e=="function"}function _ce(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?gM(t):[t,r,n],a=i[0],o=i[1],l=i[2],u;if(bce(e))u=function(){return Xu(e(),function(){})};else{var c=Xu(e,function(){});u=function(){return c}}function h(f,p){f===void 0&&(f=u());var g=Sc([a[p.type]],o.filter(function(b){var v=b.matcher;return v(p)}).map(function(b){var v=b.reducer;return v}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,v){if(v)if(Yn(b)){var w=b,C=v(w,p);return typeof C=="undefined"?b:C}else{if(bi(b))return Xu(b,function(T){return v(T,p)});var C=v(b,p);if(typeof C=="undefined"){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return b},f)}return h.getInitialState=u,h}function wce(e,t){return e+"/"+t}function xce(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:Xu(e.initialState,function(){}),n=e.reducers||{},i=Object.keys(n),a={},o={},l={};i.forEach(function(h){var f=n[h],p=wce(t,h),g,b;"reducer"in f?(g=f.reducer,b=f.prepare):g=f,a[h]=g,o[p]=g,l[h]=b?el(p,b):el(p)});function u(){var h=typeof e.extraReducers=="function"?gM(e.extraReducers):[e.extraReducers],f=h[0],p=f===void 0?{}:f,g=h[1],b=g===void 0?[]:g,v=h[2],w=v===void 0?void 0:v,C=Js(Js({},p),o);return _ce(r,C,b,w)}var c;return{name:t,reducer:function(h,f){return c||(c=u()),c(h,f)},actions:l,caseReducers:a,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var Dg="listenerMiddleware";el(Dg+"/add");el(Dg+"/removeAll");el(Dg+"/remove");Zue();function Cce(){var e=Tce();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:Rr.SIZE,scrollY:0,scrollbarYWidth:Rr.SIZE,scrolling:!1,getInternal:function(){return e}}}function Tce(){return{rowBufferSet:new BT,rowOffsetIntervalTree:null,storedHeights:[],rowUntilOffsetsAreExact:0}}var vM=xce({name:"FDT",initialState:{},reducers:{initialize:function(t,r){var n=r.payload;_t(t,Cce()),C_(t,n),x_(t);var i=Ub(t,n);os(t,i),Jb.initialize(t,n,{})},propChange:function(t,r){var n=r.payload,i=n.newProps,a=n.oldProps,o=ale(Vue(t));C_(t,i),(a.rowsCount!==i.rowsCount||a.rowHeight!==i.rowHeight||a.subRowHeight!==i.subRowHeight)&&x_(t),a.rowsCount!==i.rowsCount&&(t.getInternal().rowBufferSet=new BT);var l=Ub(t,i,a);(!Zs(t,o)||l.changed)&&os(t,l),Jb.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};os(t,r)},scrollToY:function(t,r){var n=r.payload;t.scrolling=!0;var i=rm(t,n);os(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;)Bi(t,n++);var i=t.getInternal().rowOffsetIntervalTree.sumUntil(t.firstRowIndex)-t.firstRowOffset,a=rm(t,i);os(t,a)}}}});function x_(e){for(var t=e.rowSettings,r=t.rowHeight,n=t.rowsCount,i=t.subRowHeight,a=t.rowHeightGetter,o=t.subRowHeightGetter,l=r+i,u=0,c=new Array(n),h=0;h<n;h++)e.isVerticalScrollExact?c[h]=a(h)+o(h):c[h]=l,u+=c[h];var f=new ule(c);e.scrollContentHeight=u,_t(e.getInternal(),{rowOffsetIntervalTree:f,storedHeights:c})}function C_(e,t){var r=hle(t.children),n=r.columnGroupElements,i=r.columnElements,a=r.elementTemplates,o=r.useGroupHeader;_t(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=_t({},e.elementHeights,vs(t,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),o||(e.elementHeights.groupHeaderHeight=0),e.rowSettings=_t({},e.rowSettings,vs(t,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var l=e.rowSettings,u=l.rowHeight,c=l.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=_t({},e.scrollFlags,vs(t,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),e.tableSize=_t({},e.tableSize,vs(t,["height","maxHeight","ownerHeight","width"])),e.tableSize.useMaxHeight=e.tableSize.height===void 0,e.scrollbarXHeight=t.scrollbarXHeight,e.scrollbarYWidth=t.scrollbarYWidth}var Mce=vM.reducer,Do=vM.actions,Sce=Do.initialize,Ece=Do.propChange,Pce=Do.scrollEnd,Ace=Do.scrollToX,Rce=Do.scrollToY,Oce=Do.updateRowHeights,kce=function(t,r){var n=ST({scrollToX:Ace,scrollToY:Rce,scrollEnd:Pce},t.dispatch),i=function(l){var u=t.getState(),c=u.scrollX;if(l!==c){var h=Math.round(l),f=r(),p=f.onHorizontalScroll;(!p||p(h))&&n.scrollToX(h)}},a=function(l){var u=t.getState(),c=u.scrollY;if(l!==c){var h=r(),f=h.onVerticalScroll;(!f||f(l))&&n.scrollToY(l)}};return{scrollToX:i,scrollToY:a,stopScroll:n.scrollEnd}},Dce=sa,Nce=Ci,Lce="[object Number]";function Ice(e){return typeof e=="number"||Nce(e)&&Dce(e)==Lce}var $ce=Ice,Fce=$ce;function zce(e){return Fce(e)&&e!=+e}var T_=zce;function Bce(e,t,r,n,i){n=n||setTimeout,i=i||clearTimeout;var a;function o(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];o.reset();var h=function(){e.apply(r,u)};h.__SMmeta=e.__SMmeta,a=n(h,t)}return o.reset=function(){i(a)},o}function Xt(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 Wce(e,t,r){var n=1,i=1,a=e+2,o=e+1,l=2;return t&&(i++,o++,a++,l++),r&&o++,{ariaGroupHeaderIndex:n,ariaHeaderIndex:i,ariaFooterIndex:a,ariaRowCount:o,ariaRowIndexOffset:l}}var Hce=Zn([function(e){return e.rowsCount},function(e){return e.groupHeaderHeight>0},function(e){return e.footerHeight>0}],Wce);function jce(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++i];if(r(a[u],u,a)===!1)break}return t}}var Vce=jce,Gce=Vce,Uce=Gce(),Yce=Uce,qce=Yce,Xce=Od;function Zce(e,t){return e&&qce(e,t,Xce)}var Kce=Zce,Qce=Rl;function Jce(e,t){return function(r,n){if(r==null)return r;if(!Qce(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 ede=Jce,tde=Kce,rde=ede,nde=rde(tde),ide=nde,ade=CT;function ode(e){return typeof e=="function"?e:ade}var sde=ode,lde=ET,ude=ide,cde=sde,dde=Kr;function hde(e,t){var r=dde(e)?lde:ude;return r(e,cde(t))}var M_=hde;function fde(e,t){var r=e.columnGroupProps,n=e.columnProps,i=[],a=[],o=[];M_(r,function(h,f){var p={props:h,template:t.groupHeader[f]};h.fixed?i.push(p):h.fixedRight?a.push(p):o.push(p)});var l={cell:[],header:[],footer:[]},u={cell:[],header:[],footer:[]},c={cell:[],header:[],footer:[]};return M_(n,function(h,f){var p=c;h.fixed?p=l:h.fixedRight&&(p=u),p.cell.push({props:h,template:t.cell[f]}),p.header.push({props:h,template:t.header[f]}),p.footer.push({props:h,template:t.footer[f]})}),{fixedColumnGroups:i,fixedColumns:l,fixedRightColumnGroups:a,fixedRightColumns:u,scrollableColumnGroups:o,scrollableColumns:c}}var pde=Zn([function(e){return kl(e)},function(e){return e.elementTemplates}],fde);function mde(e,t){return e==null||e!==e?t:e}var gde=mde,vde=Math.max,yde=Math.min;function bde(e,t,r){return e>=yde(t,r)&&e<vde(t,r)}var _de=bde,wde=_g,S_=1/0,xde=17976931348623157e292;function Cde(e){if(!e)return e===0?e:0;if(e=wde(e),e===S_||e===-S_){var t=e<0?-1:1;return t*xde}return e===e?e:0}var Tde=Cde,Mde=_de,E_=Tde,Sde=_g;function Ede(e,t,r){return t=E_(t),r===void 0?(r=t,t=0):r=E_(r),e=Sde(e),Mde(e,t,r)}var Gi=Ede;function Pde(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 Hn(e,t){if(e==null)return{};var r,n,i=Pde(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 Ade=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function P_(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 Rde(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ode(e){var t=kde();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function kde(){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 Ec=function(e){Ht(r,e);var t=Ode(r);function r(){return pt(this,r),t.apply(this,arguments)}return mt(r,[{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,l=i.style,u=i.className,c=i.children,h=Hn(i,Ade),f=Rde({height:a,width:o},l);return k.createElement("div",_t({},h,{className:Xt(Re("fixedDataTableCellLayout/wrap1"),Re("public/fixedDataTableCell/wrap1"),u),style:f}),k.createElement("div",{className:Xt(Re("fixedDataTableCellLayout/wrap2"),Re("public/fixedDataTableCell/wrap2"))},k.createElement("div",{className:Xt(Re("fixedDataTableCellLayout/wrap3"),Re("public/fixedDataTableCell/wrap3"))},k.createElement("div",{className:Re("public/fixedDataTableCell/cellContent")},c))))}}]),r}(k.Component);ue(Ec,"propTypes",{height:B.number,width:B.number,columnKey:B.oneOfType([B.string,B.number]),rowIndex:B.number,isVisible:B.bool});function yM(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function bM(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function _M(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}}yM.__suppressDeprecationWarning=!0;bM.__suppressDeprecationWarning=!0;_M.__suppressDeprecationWarning=!0;function wM(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.
408
-
409
- `+a+" uses "+o+" but also contains the following legacy lifecycles:"+(r!==null?`
410
- `+r:"")+(n!==null?`
411
- `+n:"")+(i!==null?`
412
- `+i:"")+`
413
-
414
- The above lifecycles should be removed. Learn more about this warning here:
415
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=yM,t.componentWillReceiveProps=bM),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=_M;var l=t.componentDidUpdate;t.componentDidUpdate=function(c,h,f){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;l.call(this,c,h,p)}}return e}var Dde=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function A_(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 Nde(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ng=k.forwardRef(function(t,r){var n=t.height,i=t.width,a=t.style,o=t.className,l=t.children,u=Hn(t,Dde),c=Nde({height:n,width:i},a);return k.createElement("div",_t({},u,{className:Xt(Re("fixedDataTableCellLayout/wrap"),Re("public/fixedDataTableCell/wrap"),Re("public/fixedDataTableCell/cellContent"),o),style:c,ref:r}),l)});Ng.propTypes={height:B.number,width:B.number,columnKey:B.oneOfType([B.string,B.number]),rowIndex:B.number,isVisible:B.bool};var co=k.createContext({}),Lde=vT;function Ide(e,t,r){var n=e==null?void 0:Lde(e,t);return n===void 0?r:n}var Cm=Ide;function $de(e){var t=Fde();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Fde(){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_=15,O_=100,Lg=function(e){Ht(r,e);var t=$de(r);function r(){var n;pt(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(fe(n),"state",{displacement:0}),ue(fe(n),"containerRef",k.createRef()),ue(fe(n),"onTouchEnd",function(l){n.props.touchEnabled&&l.stopPropagation()}),ue(fe(n),"onTouchMove",function(l){n.props.touchEnabled&&l.stopPropagation()}),ue(fe(n),"onMouseMove",function(l){n.cursorDeltaX+=l*(n.context.isRTL?-1:1)}),ue(fe(n),"onMouseUp",function(){tM(n.frameId),n.setState({displacement:0,isReordering:!1}),n.updateColumnOrder(),n.frameId=null,n.cursorDeltaX=0,n.mouseMoveTracker.releaseMouseMoves()}),ue(fe(n),"initializeDOMMouseMoveTracker",function(l){n.mouseMoveTracker=new Sg(n.onMouseMove,n.onMouseUp,document.body,n.props.touchEnabled),n.mouseMoveTracker.captureMouseMoves(l)}),ue(fe(n),"updateDisplacementPeriodically",function(){n.frameId=ci(n.updateDisplacementPeriodically),n.updateDisplacementWithScroll()}),ue(fe(n),"getBoundedDeltaX",function(l){var u=0,c=0,h=n.props.cellGroupType,f=n.context.groupHeaderHeight>0;if(f&&!n.props.isGroupHeader){var p=n.context.getColumnGroupByChild(n.props.columnIndex);u=p.width,c=p.offset}else u=n.context.getCellGroupWidth(h);var g=u-n.props.width;return Nd(l,-n.originalLeft+c,-n.originalLeft+g+c)}),ue(fe(n),"updateDisplacementWithScroll",function(){var l=n.scrollStart,u=n.props.cellGroupType,c=n.context,h=c.scrollX,f=c.maxScrollX,p=c.availableScrollWidth,g=n.cursorDeltaX;if(u===Oe.SCROLLABLE){var b=n.originalLeft-l+g;g+=h-l,b>p-O_?h=Math.min(h+R_,f):b<=O_&&(h=Math.max(h-R_,0)),n.context.scrollToX(h)}g=n.getBoundedDeltaX(g),n.setState({displacement:g})}),ue(fe(n),"isColumnMovedToRight",function(l){return l>0}),ue(fe(n),"isColumnMovedToLeft",function(l){return l<0}),ue(fe(n),"updateColumnOrder",function(){var l=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,h,f;if(n.props.isGroupHeader){var p=n.context.getColumnGroupAtOffset(c,l),g=p.columnGroup,b=p.distanceFromOffset;h=g,f=b}else{var v=n.context.getColumnAtOffset(c,l),w=v.column,C=v.distanceFromOffset;h=w,f=C}var T=null,E=null;h.index<n.props.columnIndex?f<=h.width/2?(T=h.index-1,E=h.index):(T=h.index,E=h.index+1):f>=h.width/2?(T=h.index,E=h.index+1):(T=h.index-1,E=h.index),T===n.props.columnIndex&&--T,E===n.props.columnIndex&&++E;var S=n.props.isGroupHeader?n.context.getColumnGroupCount():n.context.getColumnCount(),P,O;Gi(T,0,S)&&(P=n.props.isGroupHeader?n.context.getColumnGroup(T):n.context.getColumn(T)),Gi(E,0,S)&&(O=n.props.isGroupHeader?n.context.getColumnGroup(E):n.context.getColumn(E)),n.props.onColumnReorderEnd({columnBefore:Cm(P,"columnKey"),columnAfter:Cm(O,"columnKey"),reorderColumn:n.props.columnKey})}),n}return mt(r,[{key:"componentDidMount",value:function(){var i=this.props.contents.parentNode.cloneNode(!0);i.firstChild.classList.add(Re("public/fixedDataTableCell/reordering")),this.containerRef.current.appendChild(i),this.startDrag()}},{key:"render",value:function(){var i={position:"absolute"};return lo(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=ci(this.updateDisplacementPeriodically)}}]),r}(k.PureComponent);Lg.contextType=co;Lg.propTypes={columnIndex:B.number.isRequired,columnKey:B.string.isRequired,contents:B.object.isRequired,cellGroupType:B.string,isGroupHeader:B.bool,isRTL:B.bool,left:B.number.isRequired,onColumnReorderStart:B.func.isRequired,reorderStartEvent:B.object.isRequired,touchEnabled:B.bool,width:B.number.isRequired};function zde(e){var t=Bde();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Bde(){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 Wde=function(e){Ht(r,e);var t=zde(r);function r(n){var i;pt(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 mt(r,[{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){var i=this.state.FixedDataTableContextValue;return k.createElement(co.Provider,{value:i},this.props.children)}}]),r}(k.PureComponent);function Hde(){}var jde=Hde,Vde=["onColumnReorderStart","onColumnReorderEnd","reorderStartEvent","children"];function Gde(e){var t=Ude();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Ude(){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 Yde=1,tl=function(e){Ht(r,e);var t=Gde(r);function r(){var n;pt(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(fe(n),"state",{isReordering:!1}),ue(fe(n),"dragContainer",null),ue(fe(n),"cellRef",k.createRef()),ue(fe(n),"isMounted",!1),ue(fe(n),"setReorderHandle",function(l){l&&(l.addEventListener("mousedown",n.onMouseDown,{passive:!1}),l.addEventListener("touchstart",n.onTouchStart,{passive:!1}))}),ue(fe(n),"onTouchStart",function(l){n.props.touchEnabled&&n.onMouseDown(l)}),ue(fe(n),"onMouseDown",function(l){n.onDragStart(l)}),ue(fe(n),"onDragStart",function(l){n.createDragContainer(),n.renderDragProxy(l),n.props.onColumnReorderStart(n.props.columnKey)}),ue(fe(n),"onColumnReorderEnd",function(l){n.isMounted&&n.setState({isReordering:!1}),n.removeDragContainer(),n.props.onColumnReorderEnd(l)}),ue(fe(n),"createDragContainer",function(){n.dragContainer=document.createElement("div"),n.dragContainer.dataset.columnKey=n.props.columnKey;var l=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");l.appendChild(n.dragContainer)}),ue(fe(n),"getDragContainer",function(){if(n.dragContainer)return n.dragContainer;var l=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");return n.dragContainer=l.querySelector('[data-column-key="'.concat(n.props.columnKey,'"]')),n.dragContainer}),ue(fe(n),"removeDragContainer",function(){n.props.__react19RootCreator?n.dragContainer.root.unmount():Ar.unmountComponentAtNode(n.dragContainer),n.dragContainer.remove(),n.dragContainer=null}),n}return mt(r,[{key:"componentDidMount",value:function(){this.isMounted=!0;var i=Cm(this.getDragContainer(),"dataset.columnKey"),a=gT(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=Hn(i,Vde),l=Xt(Re({"public/fixedDataTableCell/resizeReorderCellContainer":!0}),o.className),u=Xt(l,Re({"public/fixedDataTableCell/hasReorderHandle":!0})),c={height:o.height,width:o.width-Yde},h;return k.isValidElement(a)?h=k.cloneElement(a,o):typeof a=="function"?h=a(o):h=k.createElement(Ng,o,a),k.createElement("div",{className:u,style:c,ref:this.cellRef},this.renderReorderHandle(),h)}},{key:"renderReorderHandle",value:function(){var i={height:this.props.height};return k.createElement("div",{ref:this.setReorderHandle,className:Re({"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},l=k.createElement(Wde,{value:this.context},k.createElement(Lg,_t({},this.props,o)));if(this.props.__react19RootCreator){var u=Ar.flushSync||function(c){return c()};u(function(){var c=a.props.__react19RootCreator(a.getDragContainer());a.dragContainer.root=c,c.render(l)}),this.setState({isReordering:!0});return}Ar.render(l,this.getDragContainer(),function(){return a.setState({isReordering:!0})})}}]),r}(k.PureComponent);tl.contextType=co;tl.defaultProps={onColumnReorderStart:jde};tl.propTypes={height:B.number,width:B.number,columnKey:B.oneOfType([B.string,B.number]),rowIndex:B.number,left:B.number,touchEnabled:B.bool,minWidth:B.number,maxWidth:B.number,onColumnReorderStart:B.func,onColumnReorderEnd:B.func.isRequired,__react19RootCreator:B.func};var qde=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Xde=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 Zde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kde(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 Qde(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 xM=function(e){Qde(t,e);function t(){return Zde(this,t),Kde(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Xde(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return qde?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Ar.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(k.Component);xM.propTypes={children:B.node.isRequired,node:B.any};var Jde=xM,ehe=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 the(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rhe(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 nhe(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 CM=function(e){nhe(t,e);function t(){return the(this,t),rhe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ehe(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(n){this.renderPortal()}},{key:"componentWillUnmount",value:function(){Ar.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=Ar.unstable_renderSubtreeIntoContainer(this,i,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(k.Component),ihe=CM;CM.propTypes={children:B.node.isRequired,node:B.any};var Tm=void 0;Ar.createPortal?Tm=Jde:Tm=ihe;var ahe=Tm;function ohe(e){var t=she();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function she(){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 TM=function(e){Ht(r,e);var t=ohe(r);function r(){return pt(this,r),t.apply(this,arguments)}return mt(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(ahe,{node:i},k.createElement("div",{className:Xt(Re("fixedDataTableColumnResizerLineLayout/main"),Re("public/fixedDataTableColumnResizerLine/main")),style:a},k.createElement("div",{className:Re("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}})))}},{key:"getTableRef",value:function(){var i=this.props.parentRef;return i?i.closest(Re(".fixedDataTableLayout/main")):null}}]),r}(k.PureComponent);ue(TM,"propTypes",{visible:B.bool.isRequired,height:B.number.isRequired,left:B.number.isRequired,parentRef:B.object});function k_(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 lhe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uhe(e){var t=che();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function che(){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 MM=function(e){Ht(r,e);var t=uhe(r);function r(n){var i;return pt(this,r),i=t.call(this,n),ue(fe(i),"initialState",{isColumnResizing:!1,currentMouseXCoordinate:0,totalDisplacement:0}),ue(fe(i),"state",lhe({},i.initialState)),ue(fe(i),"resizerKnobRef",null),ue(fe(i),"mouseMoveTracker",null),ue(fe(i),"setResizerKnobRef",function(a){i.resizerKnobRef=a}),ue(fe(i),"initializeDOMMouseMoveTracker",function(a){i.mouseMoveTracker=new Sg(i.onMouseMove,i.onMouseUp,document.body,i.props.touchEnabled),i.mouseMoveTracker.captureMouseMoves(a)}),ue(fe(i),"onTouchStart",function(a){i.props.touchEnabled&&i.onMouseDown(a)}),ue(fe(i),"onMouseDown",function(a){i.initializeDOMMouseMoveTracker(a);var o=pm.getCoordinatesFromEvent(a).x-a.currentTarget.closest(Re(".fixedDataTableLayout/main")).getBoundingClientRect().left;i.setState({initialMouseXCoordinate:o,isColumnResizing:!0,totalDisplacement:0,currentMouseXCoordinate:o})}),ue(fe(i),"onMouseUp",function(){var a=i.getMinMaxWidth(),o=a.minWidth,l=a.maxWidth,u=kd(i.props.width+i.state.totalDisplacement*(i.props.isRTL?-1:1),o,l);i.mouseMoveTracker.releaseMouseMoves(),i.setState({isColumnResizing:!1,totalDisplacement:0},function(){i.props.onColumnResizeEnd(u,i.props.columnKey)})}),ue(fe(i),"onMouseMove",function(a){var o=i.props,l=o.isRTL,u=o.width,c=i.state,h=c.initialMouseXCoordinate,f=c.totalDisplacement,p=f+a,g=h+p,b=i.getMinMaxWidth(),v=b.minWidth,w=b.maxWidth,C=u+p*(l?-1:1);(C<v||C>w)&&(g=i.state.currentMouseXCoordinate),i.setState({totalDisplacement:p,currentMouseXCoordinate:g})}),ue(fe(i),"getMinMaxWidth",function(){return{minWidth:i.props.minWidth||0,maxWidth:i.props.maxWidth||Number.MAX_SAFE_INTEGER}}),ue(fe(i),"suppressEventIfInTouchMode",function(a){i.props.touchEnabled&&(a.preventDefault(),a.stopPropagation())}),i}return mt(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(TM,{height:this.props.resizerLineHeight,visible:!!this.state.isColumnResizing,left:this.state.currentMouseXCoordinate,parentRef:this.resizerKnobRef});return k.createElement("div",{className:Re("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);MM.propTypes={columnKey:B.oneOfType([B.string,B.number]).isRequired,minWidth:B.number,maxWidth:B.number,width:B.number.isRequired,resizerLineHeight:B.number.isRequired,touchEnabled:B.bool,isRTL:B.bool,onColumnResizeEnd:B.func.isRequired,height:B.number.isRequired};var dhe=["children","minWidth","maxWidth","onColumnResizeEnd","onColumnReorderEnd","rowIndex","left","touchEnabled","cellGroupType","onColumnReorderStart"];function hhe(e){var t=fhe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function fhe(){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 Pc=function(e){Ht(r,e);var t=hhe(r);function r(){return pt(this,r),t.apply(this,arguments)}return mt(r,[{key:"render",value:function(){var i=this.props,a=i.children,o=Hn(i,dhe),l;return k.isValidElement(a)?l=k.cloneElement(a,o):typeof a=="function"?l=a(o):l=k.createElement(Ng,o,a),k.createElement(k.Fragment,null,k.createElement(MM,{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}),l)}}]),r}(k.PureComponent);Pc.contextType=co;Pc.propTypes={columnKey:B.oneOfType([B.string,B.number]),minWidth:B.number,maxWidth:B.number,width:B.number,touchEnabled:B.bool,isRTL:B.bool,onColumnResizeEnd:B.func.isRequired,height:B.number};var phe=["cell"],mhe=["cell"],ghe=["height","width","columnIndex","isVisible","columnKey","isHeaderOrFooter","touchEnabled"];function D_(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 Ou(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vhe(e){var t=yhe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function yhe(){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 Ig=function(e){Ht(r,e);var t=vhe(r);function r(){return pt(this,r),t.apply(this,arguments)}return mt(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,l=Hn(a,phe),u=i.cell,c=Hn(i,mhe);return!Zs(l,c)||!o||!u||o.type!==u.type||!Zs(o.props,u.props)}},{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,l=i.isVisible,u=i.isHeaderOrFooter,c=i.touchEnabled,h=Hn(i,ghe),f={height:a,width:o};this.props.isRTL?f.right=h.left:f.left=h.left;var p=Xt(Re({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":h.lastChild,"fixedDataTableCellLayout/alignRight":h.align==="right","fixedDataTableCellLayout/alignCenter":h.align==="center","public/fixedDataTableCell/alignRight":h.align==="right","public/fixedDataTableCell/highlighted":h.highlighted,"public/fixedDataTableCell/main":!0}),h.className),g={touchEnabled:c,isVisible:l,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};h.rowIndex>=0&&(g.rowIndex=h.rowIndex);var b;this.props.isHeader&&(this.props.onColumnResizeEnd||this.props.onColumnReorderEnd)?this.props.onColumnResizeEnd&&this.props.onColumnReorderEnd?(g=Ou(Ou({},g),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),b=k.createElement(tl,_t({},g,{onColumnReorderEnd:this.props.onColumnReorderEnd}),k.createElement(Pc,{onColumnResizeEnd:this.props.onColumnResizeEnd},h.cell))):this.props.onColumnReorderEnd?b=k.createElement(tl,_t({},g,{onColumnReorderEnd:this.props.onColumnReorderEnd}),h.cell):(g=Ou(Ou({},g),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),b=k.createElement(Pc,_t({},g,{onColumnResizeEnd:this.props.onColumnResizeEnd}),h.cell)):k.isValidElement(h.cell)?b=k.cloneElement(h.cell,g):typeof h.cell=="function"?b=h.cell(g):b=k.createElement(Ec,g,h.cell);var v=u?"columnheader":"gridcell";return k.createElement("div",{className:p,style:f,role:v},b)}}]),r}(k.Component);ue(Ig,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:B.bool,align:B.oneOf(["left","center","right"]),className:B.string,highlighted:B.bool,width:B.number.isRequired,minWidth:B.number,maxWidth:B.number,height:B.number.isRequired,cell:B.oneOfType([B.string,B.element,B.func]),columnKey:B.oneOfType([B.string,B.number]),rowIndex:B.number.isRequired,left:B.number,pureRendering:B.bool,touchEnabled:B.bool,isHeaderOrFooter:B.bool,isRTL:B.bool,isVisible:B.bool.isRequired,onColumnResizeEnd:B.func,onColumnReorderEnd:B.func,isHeader:B.bool,cellGroupType:B.oneOf([Oe.FIXED,Oe.FIXED_RIGHT,Oe.SCROLLABLE])});ue(Ig,"defaultProps",{align:"left",highlighted:!1});var bhe=wM(Ig),_he=["offsetLeft"];function SM(e){var t=whe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function whe(){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 EM=function(e){Ht(r,e);var t=SM(r);function r(n){var i;return pt(this,r),i=t.call(this,n),ue(fe(i),"_renderCell",function(a,o,l,u,c,h,f){var p=l.cellClassName,g=l.pureRendering||!1,b=l.isReorderable?i.props.onColumnReorderEndCallback:null,v=l.isResizable?i.props.onColumnResizeEndCallback:null;return k.createElement(bhe,{columnIndex:l.index,isScrolling:i.props.isScrolling,isHeaderOrFooter:i.props.isHeaderOrFooter,isHeader:i.props.isHeader,isGroupHeader:i.props.isGroupHeader,align:l.align,className:p,height:o,key:h,maxWidth:l.maxWidth,minWidth:l.minWidth,touchEnabled:i.props.touchEnabled,onColumnResizeEnd:v,onColumnReorderEnd:b,rowIndex:a,columnKey:l.columnKey,width:l.width,left:c,cell:u,pureRendering:g,isRTL:i.props.isRTL,cellGroupType:i.props.cellGroupType,isVisible:i.props.isVisible&&f})}),i._initialRender=!0,i}return mt(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),l=Gu(a),u=0,c=0,h=a.length;c<h;c++){var f=a[c].props,p=a[c].template,g=f.allowCellsRecycling,b=u-i.left<=i.width&&u-i.left+f.width>=0;if(!g||b){var v=f.columnKey||"cell_"+c;o[c]=this._renderCell(i.rowIndex,i.rowHeight,f,p,u,v,b)}u+=f.width}var w={height:i.height,position:"absolute",width:l,zIndex:i.zIndex};return lo(w,-1*i.left,0,this._initialRender,this.props.isRTL),k.createElement("div",{className:Re("fixedDataTableCellGroupLayout/cellGroup"),style:w},o)}}]),r}(k.Component);ue(EM,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:B.array.isRequired,isScrolling:B.bool,left:B.number,height:B.number.isRequired,cellGroupWrapperHeight:B.number,rowHeight:B.number.isRequired,rowIndex:B.number.isRequired,width:B.number.isRequired,zIndex:B.number.isRequired,touchEnabled:B.bool,isHeaderOrFooter:B.bool,isRTL:B.bool,onColumnResizeEndCallback:B.func,onColumnReorderEndCallback:B.func,isHeader:B.bool,isVisible:B.bool.isRequired});var ks=function(e){Ht(r,e);var t=SM(r);function r(){return pt(this,r),t.apply(this,arguments)}return mt(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=Hn(i,_he),l={height:o.cellGroupWrapperHeight||o.height,width:o.width};return this.props.isRTL?l.right=a:l.left=a,k.createElement("div",{style:l,className:Re("fixedDataTableCellGroupLayout/cellGroupWrapper")},k.createElement(EM,o))}}]),r}(k.Component);ue(ks,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:B.bool,height:B.number.isRequired,offsetLeft:B.number,left:B.number,zIndex:B.number.isRequired});ue(ks,"defaultProps",{left:0,offsetLeft:0});var xhe=["offsetTop","zIndex"];function PM(e){var t=Che();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Che(){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 The=1,AM=function(e){Ht(r,e);var t=PM(r);function r(){var n;pt(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(fe(n),"mouseLeaveIndex",null),ue(fe(n),"_getRowExpanded",function(l){if(n.props.rowExpanded){var u={rowIndex:n.props.index,height:l,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(fe(n),"_renderColumnsLeftShadow",function(l){var u=Re({"fixedDataTableRowLayout/fixedColumnsDivider":l>0,"fixedDataTableRowLayout/columnsShadow":n.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":l>0,"public/fixedDataTableRow/columnsShadow":n.props.scrollLeft>0}),c=n.props.cellGroupWrapperHeight?n.props.cellGroupWrapperHeight-The:n.props.height,h={left:l,height:c};return n.props.isRTL&&(h.right=l,h.left="auto"),k.createElement("div",{className:u,style:h})}),ue(fe(n),"_renderFixedRightColumnsShadow",function(l){var u=Re("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),c={height:n.props.height,left:l};return n.props.isRTL&&(c.right=l,c.left="auto"),k.createElement("div",{className:u,style:c})}),ue(fe(n),"_renderColumnsRightShadow",function(l){if(Math.ceil(n.props.scrollLeft+n.props.width)<Math.floor(l)){var u=Re("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),c={height:n.props.height};return k.createElement("div",{className:u,style:c})}}),ue(fe(n),"_onClick",function(l){n.props.onClick(l,n.props.index)}),ue(fe(n),"_onContextMenu",function(l){n.props.onContextMenu(l,n.props.index)}),ue(fe(n),"_onDoubleClick",function(l){n.props.onDoubleClick(l,n.props.index)}),ue(fe(n),"_onMouseUp",function(l){n.props.onMouseUp(l,n.props.index)}),ue(fe(n),"_onMouseDown",function(l){n.props.onMouseDown(l,n.props.index)}),ue(fe(n),"_onMouseEnter",function(l){n.mouseLeaveIndex=n.props.index,n.props.onMouseEnter&&n.props.onMouseEnter(l,n.props.index)}),ue(fe(n),"_onMouseLeave",function(l){n.mouseLeaveIndex===null&&(n.mouseLeaveIndex=n.props.index),n.props.onMouseLeave(l,n.mouseLeaveIndex),n.mouseLeaveIndex=null}),ue(fe(n),"_onTouchStart",function(l){n.props.onTouchStart(l,n.props.index)}),ue(fe(n),"_onTouchEnd",function(l){n.props.onTouchEnd(l,n.props.index)}),ue(fe(n),"_onTouchMove",function(l){n.props.onTouchMove(l,n.props.index)}),n}return mt(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=Re({"fixedDataTableRowLayout/main":!0,"public/fixedDataTableRow/main":!0,"public/fixedDataTableRow/highlighted":this.props.index%2===1,"public/fixedDataTableRow/odd":this.props.index%2===1,"public/fixedDataTableRow/even":this.props.index%2===0}),l=Gu(this.props.fixedColumns),u=k.createElement(ks,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:l,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,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:Oe.FIXED,isVisible:this.props.visible}),c=this._renderColumnsLeftShadow(l),h=Gu(this.props.fixedRightColumns),f=this.props.showScrollbarY?this.props.scrollbarYWidth:0,p=k.createElement(ks,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-h-f,width:h,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:Oe.FIXED_RIGHT,isVisible:this.props.visible}),g=h?this._renderFixedRightColumnsShadow(this.props.width-h-f-5):null,b=k.createElement(ks,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:l,width:this.props.width-l-h-f,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:Oe.SCROLLABLE,isVisible:this.props.visible}),v=Gu(this.props.scrollableColumns),w=this._renderColumnsRightShadow(l+v),C=this._getRowExpanded(i),T={height:i,top:this.props.height,width:this.props.width},E=null;if(this.props.showScrollbarY){var S={width:f,height:this.props.height,left:this.props.isRTL?2:this.props.width-f-2};E=k.createElement("div",{style:S,className:Re("public/fixedDataTable/scrollbarSpacer")})}return k.createElement("div",_t({className:Xt(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:Re("fixedDataTableRowLayout/body")},u,b,c,p,g,E),C&&k.createElement("div",{className:Re("fixedDataTableRowLayout/rowExpanded"),style:T},C),w)}}]),r}(k.Component);ue(AM,"propTypes",{isScrolling:B.bool,fixedColumns:B.array.isRequired,fixedRightColumns:B.array.isRequired,height:B.number.isRequired,cellGroupWrapperHeight:B.number,subRowHeight:B.number,rowExpanded:B.oneOfType([B.element,B.func]),index:B.number.isRequired,scrollableColumns:B.array.isRequired,scrollLeft:B.number.isRequired,width:B.number.isRequired,onClick:B.func,onContextMenu:B.func,onDoubleClick:B.func,onColumnReorderEndCallback:B.func,touchEnabled:B.bool,isHeaderOrFooter:B.bool,ariaRowIndex:B.number,isRTL:B.bool,attributes:B.object,onColumnResizeEndCallback:B.func,isHeader:B.bool,isGroupHeader:B.bool,scrollToX:B.func});var Ds=function(e){Ht(r,e);var t=PM(r);function r(n){var i;return pt(this,r),i=t.call(this,n),i._initialRender=!0,i}return mt(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,l=Hn(i,xhe),u={width:this.props.width,height:this.props.height,zIndex:o||0,visibility:l.visible?"visible":"hidden"};return lo(u,0,a,this._initialRender,this.props.isRTL),k.createElement("div",{style:u,className:Re("fixedDataTableRowLayout/rowWrapper")},k.createElement(AM,l))}}]),r}(k.Component);ue(Ds,"propTypes",{isScrolling:B.bool,height:B.number.isRequired,zIndex:B.number,offsetTop:B.number.isRequired,visible:B.bool.isRequired,width:B.number.isRequired});function Mhe(e){var t=She();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function She(){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 RM=function(e){Ht(r,e);var t=Mhe(r);function r(n){var i;return pt(this,r),i=t.call(this,n),i._staticRowArray=[],i._initialRender=!0,i}return mt(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,l=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 h=1e6,f=a-l%h,p=0;p<this._staticRowArray.length;p++){var g,b=gde(c[p],(g=this._staticRowArray[p])===null||g===void 0?void 0:g.props.index);if(Os(b)||!Gi(b,0,this.props.rowSettings.rowsCount)){this._staticRowArray[p]=null;continue}var v=o[b]-Math.floor(l/h)*h;this._staticRowArray[p]=this.renderRow({rowIndex:b,key:p,rowOffsetTop:v})}var w={position:"relative"};lo(w,0,f,!1);var C=this._staticRowArray.slice().sort(this.rowSortComparator);return k.createElement("div",{style:w},C)}},{key:"renderRow",value:function(i){var a=i.rowIndex,o=i.key,l=i.rowOffsetTop,u=this.props,c=u.rowClassNameGetter||Kt,h={};h.height=this.props.rowSettings.rowHeightGetter(a),h.subRowHeight=this.props.rowSettings.subRowHeightGetter(a),h.offsetTop=l,h.key=u.rowKeyGetter?u.rowKeyGetter(a):o,h.attributes=u.rowSettings.rowAttributesGetter&&u.rowSettings.rowAttributesGetter(a);var f=a===u.rowSettings.rowsCount-1&&u.showLastRowBorder;h.className=Xt(c(a),Re("public/fixedDataTable/bodyRow"),Re({"fixedDataTableLayout/hasBottomBorder":f,"public/fixedDataTable/hasBottomBorder":f}));var p=Gi(a,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return k.createElement(Ds,_t({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},h))}},{key:"rowSortComparator",value:function(i,a){var o,l;return((o=i==null?void 0:i.props.ariaRowIndex)!==null&&o!==void 0?o:-1)-((l=a==null?void 0:a.props.ariaRowIndex)!==null&&l!==void 0?l:-1)}}]),r}(k.Component);ue(RM,"propTypes",{ariaRowIndexOffset:B.number,isScrolling:B.bool,firstViewportRowIndex:B.number.isRequired,endViewportRowIndex:B.number.isRequired,fixedColumns:B.array.isRequired,fixedRightColumns:B.array.isRequired,height:B.number.isRequired,offsetTop:B.number.isRequired,onRowClick:B.func,onRowContextMenu:B.func,onRowDoubleClick:B.func,onRowMouseDown:B.func,onRowMouseUp:B.func,onRowMouseEnter:B.func,onRowMouseLeave:B.func,onRowTouchStart:B.func,onRowTouchEnd:B.func,onRowTouchMove:B.func,rowClassNameGetter:B.func,rowExpanded:B.oneOfType([B.element,B.func]),rowOffsets:B.object.isRequired,rowKeyGetter:B.func,rowSettings:B.shape({rowAttributesGetter:B.func,rowHeightGetter:B.func,rowsCount:B.number.isRequired,subRowHeightGetter:B.func}),rowsToRender:B.array.isRequired,scrollLeft:B.number.isRequired,scrollTop:B.number.isRequired,scrollableColumns:B.array.isRequired,showLastRowBorder:B.bool,showScrollbarY:B.bool,width:B.number.isRequired,isRTL:B.bool});var N_=1.6,Ehe=1.6,Phe=325,ss=100,Ahe=function(){function e(t,r,n,i,a){pt(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?Kt.thatReturnsTrue:Kt.thatReturnsFalse),typeof n!="function"&&(n=n?Kt.thatReturnsTrue:Kt.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 mt(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,ss),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchEnd",value:function(r){clearInterval(this._trackerId),this._trackerId=null,ci(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=N_*(this._lastTouchX-n),this._deltaY=N_*(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 l=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&r.stopPropagation(),l=!0),l===!0&&this._dragAnimationId===null&&(this._dragAnimationId=ci(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<ss&&(o*=n/ss),i===0&&a===0&&(o=1),this._velocityX=o*(ss*this._accumulatedDeltaX/(1+n)),o<1&&(this._velocityX+=(1-o)*i),this._velocityY=o*(ss*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=Ehe*Math.exp(-r/Phe),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),ci(this._autoScroll))}}]),e}();function Rhe(e){var t=Ohe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Ohe(){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 ku=25,$g=function(e){Ht(r,e);var t=Rhe(r);function r(n){var i;return pt(this,r),i=t.call(this,n),ue(fe(i),"_shouldHandleTouchX",function(a){return i.props.touchScrollEnabled&&i._shouldHandleWheelX(a)}),ue(fe(i),"_shouldHandleTouchY",function(a){return i.props.touchScrollEnabled&&i._shouldHandleWheelY(a)}),ue(fe(i),"_shouldHandleWheelX",function(a){var o=i.props,l=o.maxScrollX,u=o.scrollFlags,c=o.scrollX,h=u.overflowX;return h==="hidden"||(a=Math.round(a),a===0)?!1:a<0&&c>0||a>=0&&c<l}),ue(fe(i),"_shouldHandleWheelY",function(a){var o=i.props,l=o.maxScrollY,u=o.scrollFlags,c=o.scrollY,h=u.overflowY;return h==="hidden"||a===0||(a=Math.round(a),a===0)?!1:a<0&&c>0||a>=0&&c<l}),ue(fe(i),"_reportContentHeight",function(){var a=Ua(i.props),o=a.contentHeight,l=i.props.onContentHeightChange;o!==i._contentHeight&&l&&l(o),i._contentHeight=o}),ue(fe(i),"_renderRows",function(a,o,l,u,c,h){var f=Ji(i.props),p=f.scrollEnabledY,g=i.props;return k.createElement(RM,{ariaRowIndexOffset:h,isScrolling:g.scrolling,fixedColumns:o,fixedRightColumns:l,firstViewportRowIndex:g.firstRowIndex,endViewportRowIndex:g.endRowIndex,height:c,offsetTop:a,onRowClick:g.onRowClick,onRowContextMenu:g.onRowContextMenu,onRowDoubleClick:g.onRowDoubleClick,onRowMouseUp:g.onRowMouseUp,onRowMouseDown:g.onRowMouseDown,onRowMouseEnter:g.onRowMouseEnter,onRowMouseLeave:g.onRowMouseLeave,onRowTouchStart:g.touchScrollEnabled?g.onRowTouchStart:null,onRowTouchEnd:g.touchScrollEnabled?g.onRowTouchEnd:null,onRowTouchMove:g.touchScrollEnabled?g.onRowTouchMove:null,rowClassNameGetter:g.rowClassNameGetter,rowExpanded:g.rowExpanded,rowKeyGetter:g.rowKeyGetter,rowSettings:g.rowSettings,scrollLeft:g.scrollX,scrollTop:g.scrollY,scrollableColumns:u,showLastRowBorder:!0,width:g.tableSize.width,rowsToRender:g.rows,rowOffsets:g.rowOffsets,showScrollbarY:p,scrollbarYWidth:g.scrollbarYWidth,isRTL:g.isRTL})}),ue(fe(i),"_onRef",function(a){i._divRef=a,i._wheelHandler&&(i.props.stopReactWheelPropagation?i._wheelHandler.setRoot(a):i._wheelHandler.setRoot(null))}),ue(fe(i),"_onScroll",function(a,o){var l=i.props,u=l.maxScrollX,c=l.maxScrollY,h=l.onHorizontalScroll,f=l.onVerticalScroll,p=l.scrollActions,g=l.scrollFlags,b=l.scrollX,v=l.scrollY,w=g.overflowX,C=g.overflowY,T=b,E=v;if(Math.abs(o)>Math.abs(a)&&C!=="hidden")E+=o,E=E<0?0:E,E=E>c?c:E,(!f||f(E))&&p.scrollToY(E);else if(a&&w!=="hidden"){T+=a,T=T<0?0:T,T=T>u?u:T;var S=Math.round(T);(!h||h(S))&&p.scrollToX(S)}}),ue(fe(i),"_scrollTo",function(a,o){i.props.scrollActions.scrollToX(a),i.props.scrollActions.scrollToY(o)}),ue(fe(i),"_didScroll",function(a){var o=i.props,l=o.onScrollStart,u=o.scrollX,c=o.scrollY,h=o.onHorizontalScroll,f=o.onVerticalScroll,p=o.tableSize.ownerHeight,g=o.scrolling,b=a.endRowIndex,v=a.firstRowIndex,w=a.scrollX,C=a.scrollY,T=a.tableSize.ownerHeight,E=a.scrolling,S=p!==T&&!(T_(p)&&T_(T)),P=u!==w,O=c!==C;!S&&!P&&!O||(!E&&g&&l&&l(w,C,v,b),P&&h&&h(u),O&&f&&f(c),i._didScrollStop())}),ue(fe(i),"_didScrollStopSync",function(){var a=i.props,o=a.endRowIndex,l=a.firstRowIndex,u=a.onScrollEnd,c=a.scrollActions,h=a.scrollX,f=a.scrollY,p=a.scrolling;p&&(c.stopScroll(),u&&u(h,f,l,o))}),i._didScrollStop=Bce(i._didScrollStopSync,200,fe(i)),i._onKeyDown=i._onKeyDown.bind(fe(i)),i._setupHandlers(),i}return mt(r,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new eM(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new Ahe(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=Ua(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,ku),i.preventDefault();break;case"ArrowUp":this._onScroll(0,ku*-1),i.preventDefault();break;case"ArrowRight":this._onScroll(ku,0),i.preventDefault();break;case"ArrowLeft":this._onScroll(ku*-1,0),i.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(i){return!Zs(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=Ua(this.props),a=i.bodyOffsetTop,o=i.scrollbarXOffsetTop,l=i.visibleRowsHeight,u=this.props,c=u.tableSize.width,h=u.scrollContentHeight,f=u.scrollY,p=u.scrollX,g={viewportHeight:l,contentHeight:h,scrollbarYOffsetTop:a,scrollY:f,viewportWidth:c,contentWidth:c+this.props.maxScrollX,scrollbarXOffsetTop:o,scrollX:p,scrollTo:this._scrollTo,scrollToX:this.props.scrollActions.scrollToX,scrollToY:this.props.scrollActions.scrollToY};Zs(this.previousScrollState,g)||(this.props.onScrollBarsUpdate(g),this.previousScrollState=g)}},{key:"render",value:function(){var i=Hce(this.props),a=i.ariaGroupHeaderIndex,o=i.ariaHeaderIndex,l=i.ariaFooterIndex,u=i.ariaRowCount,c=i.ariaRowIndexOffset,h=pde(this.props),f=h.fixedColumnGroups,p=h.fixedColumns,g=h.fixedRightColumnGroups,b=h.fixedRightColumns,v=h.scrollableColumnGroups,w=h.scrollableColumns,C=Ua(this.props),T=C.bodyHeight,E=C.bodyOffsetTop,S=C.componentHeight,P=C.footOffsetTop,O=C.scrollbarXOffsetTop,N=C.visibleRowsHeight,z=this.props,U=z.className,Z=z.elementHeights,K=z.gridAttributesGetter,R=z.maxScrollY,I=z.onColumnReorderEndCallback,X=z.onColumnResizeEndCallback,j=z.scrollContentHeight,V=z.scrollX,W=z.scrollY,G=z.scrolling,re=z.tableSize,F=z.touchScrollEnabled,Y=z.scrollbarYWidth,ne=re.ownerHeight,ie=re.width,te=Z.cellGroupWrapperHeight,oe=Z.footerHeight,le=Z.groupHeaderHeight,de=Z.headerHeight,ce=Ji(this.props),ve=ce.scrollEnabledX,Ce=ce.scrollEnabledY,ye=K&&K(),J;le>0&&(J=k.createElement(Ds,{key:"group_header",ariaRowIndex:a,isHeaderOrFooter:!0,isScrolling:G,className:Xt(Re("fixedDataTableLayout/header"),Re("public/fixedDataTable/header")),width:ie,height:le,cellGroupWrapperHeight:te,index:0,zIndex:1,offsetTop:0,scrollLeft:V,fixedColumns:f,fixedRightColumns:g,scrollableColumns:v,visible:!0,touchEnabled:F,onColumnResizeEndCallback:X,onColumnReorderEndCallback:I,showScrollbarY:Ce,scrollbarYWidth:Y,isRTL:this.props.isRTL,isHeader:!0,isGroupHeader:!0}));var we;Ce&&(we=this.props.scrollbarY);var Ee;ve&&(Ee=this.props.scrollbarX);var ke=null;oe&&(ke=k.createElement(Ds,{key:"footer",ariaRowIndex:l,isHeaderOrFooter:!0,isScrolling:G,className:Xt(Re("fixedDataTableLayout/footer"),Re("public/fixedDataTable/footer")),width:ie,height:oe,index:-1,zIndex:1,offsetTop:P,visible:!0,fixedColumns:p.footer,fixedRightColumns:b.footer,scrollableColumns:w.footer,scrollLeft:V,showScrollbarY:Ce,scrollbarYWidth:Y,isRTL:this.props.isRTL}));var $e=this._renderRows(E,p.cell,b.cell,w.cell,T,c),je=k.createElement(Ds,{key:"header",ariaRowIndex:o,isHeaderOrFooter:!0,isScrolling:G,className:Xt(Re("fixedDataTableLayout/header"),Re("public/fixedDataTable/header")),width:ie,height:de,cellGroupWrapperHeight:te,index:-1,zIndex:1,offsetTop:le,scrollLeft:V,visible:!0,fixedColumns:p.header,fixedRightColumns:b.header,scrollableColumns:w.header,touchEnabled:F,onColumnResizeEndCallback:X,onColumnReorderEndCallback:I,showScrollbarY:Ce,scrollbarYWidth:Y,isRTL:this.props.isRTL,isHeader:!0}),Ue;W&&(Ue=k.createElement("div",{className:Xt(Re("fixedDataTableLayout/topShadow"),Re("public/fixedDataTable/topShadow")),style:{top:E}}));var ir=ne&&ne<S&&j>N,At;(ir||W<R)&&(At=k.createElement("div",{className:Xt(Re("fixedDataTableLayout/bottomShadow"),Re("public/fixedDataTable/bottomShadow")),style:{top:P}}));var jt=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(jt=0);var Dt=U;return this.props.isRTL&&(Dt=Xt(Dt,"fixedDataTable_isRTL")),k.createElement("div",_t({className:Xt(Dt,Re("fixedDataTableLayout/main"),Re("public/fixedDataTable/main")),role:"grid","aria-rowcount":u},ye,{tabIndex:jt,onKeyDown:this._onKeyDown,onTouchStart:F?this._touchHandler.onTouchStart:null,onTouchEnd:F?this._touchHandler.onTouchEnd:null,onTouchCancel:F?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:S,width:ie}}),k.createElement("div",{className:Re("fixedDataTableLayout/rowsContainer"),style:{height:O,width:ie}},J,je,$e,ke,Ue,At),we,Ee)}}]),r}(k.Component);ue($g,"propTypes",{width:B.number.isRequired,height:B.number,className:B.string,maxHeight:B.number,ownerHeight:B.number,overflowX:B.oneOf(["hidden","auto"]),overflowY:B.oneOf(["hidden","auto"]),touchScrollEnabled:B.bool,keyboardScrollEnabled:B.bool,keyboardPageEnabled:B.bool,scrollbarX:B.node,scrollbarXHeight:B.number,scrollbarY:B.node,scrollbarYWidth:B.number,onScrollBarsUpdate:B.func,defaultScrollbars:B.bool,showScrollbarX:B.bool,showScrollbarY:B.bool,onHorizontalScroll:B.func,onVerticalScroll:B.func,rowsCount:B.number.isRequired,rowHeight:B.number.isRequired,rowHeightGetter:B.func,subRowHeight:B.number,subRowHeightGetter:B.func,rowExpanded:B.oneOfType([B.element,B.func]),rowClassNameGetter:B.func,rowKeyGetter:B.func,groupHeaderHeight:B.number,headerHeight:B.number.isRequired,cellGroupWrapperHeight:B.number,footerHeight:B.number,scrollLeft:B.number,scrollToColumn:B.number,scrollTop:B.number,isVerticalScrollExact:B.bool,scrollToRow:B.number,onScrollStart:B.func,onScrollEnd:B.func,stopReactWheelPropagation:B.bool,stopScrollDefaultHandling:B.bool,stopScrollPropagation:B.bool,onContentHeightChange:B.func,onRowClick:B.func,onRowContextMenu:B.func,onRowDoubleClick:B.func,onRowMouseDown:B.func,onRowMouseUp:B.func,onRowMouseEnter:B.func,onRowMouseLeave:B.func,onRowTouchStart:B.func,onRowTouchEnd:B.func,onRowTouchMove:B.func,onColumnResizeEndCallback:B.func,onColumnReorderEndCallback:B.func,isRTL:B.bool,bufferRowCount:B.number,elementHeights:B.shape({cellGroupWrapperHeight:B.number,footerHeight:B.number,groupHeaderHeight:B.number,headerHeight:B.number}),gridAttributesGetter:B.func,rowAttributesGetter:B.func});ue($g,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var khe={get:function(){return yce({reducer:Mce,devTools:process.env.NODE_ENV!=="production",middleware:function(r){return r({immutableCheck:!1,serializableCheck:!1})}})}},Dhe=pg,Nhe=Ol,Lhe=Ed,Ihe=Kr,$he=Rl,Fhe=qs.exports,zhe=Rd,Bhe=PT,Whe="[object Map]",Hhe="[object Set]",jhe=Object.prototype,Vhe=jhe.hasOwnProperty;function Ghe(e){if(e==null)return!0;if($he(e)&&(Ihe(e)||typeof e=="string"||typeof e.splice=="function"||Fhe(e)||Bhe(e)||Lhe(e)))return!e.length;var t=Nhe(e);if(t==Whe||t==Hhe)return!e.size;if(zhe(e))return!Dhe(e).length;for(var r in e)if(Vhe.call(e,r))return!1;return!0}var L_=Ghe;function OM(e){var t=Uhe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Uhe(){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 Yhe=function(e){Ht(r,e);var t=OM(r);function r(){var n;pt(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(fe(n),"state",{}),ue(fe(n),"_onScrollBarsUpdate",function(l){n.setState(l)}),ue(fe(n),"_onVerticalScroll",function(l){n.state.scrollToY!==void 0&&n.state.scrollToY(l)}),ue(fe(n),"_onHorizontalScroll",function(l){n.state.scrollToX!==void 0&&n.state.scrollToX(l)}),n}return mt(r,[{key:"render",value:function(){var i=!L_(this.state)&&k.createElement(Rr,{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=!L_(this.state)&&k.createElement(kM,{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),kM=function(e){Ht(r,e);var t=OM(r);function r(){return pt(this,r),t.apply(this,arguments)}return mt(r,[{key:"render",value:function(){var i=this.props,a=i.offset,o=i.size,l={height:Rr.SIZE,width:o},u={height:Rr.SIZE,overflow:"hidden",width:o,top:a};return k.createElement("div",{className:Xt(Re("public/fixedDataTable/horizontalScrollbar")),style:l},k.createElement("div",{style:u},k.createElement(Rr,_t({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),r}(k.PureComponent);ue(kM,"propTypes",{contentSize:B.number.isRequired,offset:B.number.isRequired,onScroll:B.func.isRequired,position:B.number.isRequired,size:B.number.isRequired,isRTL:B.bool});var qhe=function(){return Zn([function(t){return Ua(t).componentHeight},function(t){return t.elementHeights.groupHeaderHeight},function(t){return t.scrollX},function(t){return t.maxScrollX},function(t){return kl(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}})},Xhe=sa,Zhe=Kr,Khe=Ci,Qhe="[object String]";function Jhe(e){return typeof e=="string"||!Zhe(e)&&Khe(e)&&Xhe(e)==Qhe}var efe=Jhe;function tfe(e){return function(t){return t==null?void 0:t[e]}}var rfe=tfe,nfe=rfe,ife=nfe("length"),afe=ife,ofe="\\ud800-\\udfff",sfe="\\u0300-\\u036f",lfe="\\ufe20-\\ufe2f",ufe="\\u20d0-\\u20ff",cfe=sfe+lfe+ufe,dfe="\\ufe0e\\ufe0f",hfe="\\u200d",ffe=RegExp("["+hfe+ofe+cfe+dfe+"]");function pfe(e){return ffe.test(e)}var mfe=pfe,DM="\\ud800-\\udfff",gfe="\\u0300-\\u036f",vfe="\\ufe20-\\ufe2f",yfe="\\u20d0-\\u20ff",bfe=gfe+vfe+yfe,_fe="\\ufe0e\\ufe0f",wfe="["+DM+"]",Mm="["+bfe+"]",Sm="\\ud83c[\\udffb-\\udfff]",xfe="(?:"+Mm+"|"+Sm+")",NM="[^"+DM+"]",LM="(?:\\ud83c[\\udde6-\\uddff]){2}",IM="[\\ud800-\\udbff][\\udc00-\\udfff]",Cfe="\\u200d",$M=xfe+"?",FM="["+_fe+"]?",Tfe="(?:"+Cfe+"(?:"+[NM,LM,IM].join("|")+")"+FM+$M+")*",Mfe=FM+$M+Tfe,Sfe="(?:"+[NM+Mm+"?",Mm,LM,IM,wfe].join("|")+")",I_=RegExp(Sm+"(?="+Sm+")|"+Sfe+Mfe,"g");function Efe(e){for(var t=I_.lastIndex=0;I_.test(e);)++t;return t}var Pfe=Efe,Afe=afe,Rfe=mfe,Ofe=Pfe;function kfe(e){return Rfe(e)?Ofe(e):Afe(e)}var Dfe=kfe,Nfe=pg,Lfe=Ol,Ife=Rl,$fe=efe,Ffe=Dfe,zfe="[object Map]",Bfe="[object Set]";function Wfe(e){if(e==null)return 0;if(Ife(e))return $fe(e)?Ffe(e):e.length;var t=Lfe(e);return t==zfe||t==Bfe?e.size:Nfe(e).length}var wf=Wfe,Hfe=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},Du=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},jfe=function(){return Zn([function(t){return kl(t)},function(t,r){return r}],function(t,r){var n=t.fixedColumns,i=t.fixedRightColumns,a=t.scrollableColumns,o=t.fixedColumnGroups,l=t.fixedRightColumnGroups,u=t.scrollableColumnGroups,c=function(W){var G=n.length+a.length+i.length;if(W<0||W>=G||!Number.isInteger(W))throw"columnIndex must be an integer between 0 and ".concat(G-1," inclusive")},h=function(W){var G=o.length+u.length+l.length;if(W<0||W>=G||!Number.isInteger(W))throw"columnGroupIndex must be an integer between 0 and ".concat(G-1," inclusive")},f=function(W){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(G&&Os(W))&&W!==Oe.FIXED&&W!==Oe.FIXED_RIGHT&&W!==Oe.SCROLLABLE)throw"Invalid CellGroupType"},p=function(W){return W<n.length?Oe.FIXED:W<n.length+a.length?Oe.SCROLLABLE:Oe.FIXED_RIGHT},g=function(W){return W<o.length?Oe.FIXED:W<o.length+u.length?Oe.SCROLLABLE:Oe.FIXED_RIGHT},b=function(W,G){if(G===Oe.FIXED)return W;if(G===Oe.SCROLLABLE)return W-n.length;if(G===Oe.FIXED_RIGHT)return W-n.length-a.length},v=function(W,G){if(G===Oe.FIXED)return W;if(G===Oe.SCROLLABLE)return W-o.length;if(G===Oe.FIXED_RIGHT)return W-o.length-u.length},w=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Oe.SCROLLABLE;f(W);var G=z(W);return G.reduce(function(re,F){return re+F.width},0)},C=function(W,G){var re=z(G),F=b(W,G);return re[F]},T=function(W){c(W);var G=p(W),re=C(W,G);return Hfe(re)},E=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(f(W,!0),Os(W))return n.length+a.length+i.length;var G=z(W);return G.length},S=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(f(W,!0),Os(W))return o.length+u.length+l.length;var G=U(W);return G.length},P=function(W,G){var re=U(G),F=v(W,G);return Du(re[F])},O=function(W){h(W);var G=g(W);return P(W,G)},N=function(W){c(W);var G=p(W),re=C(W,G).groupIdx,F=Z(re);return Du(F)},z=function(W){if(W===Oe.FIXED)return n;if(W===Oe.FIXED_RIGHT)return i;if(W===Oe.SCROLLABLE)return a;throw"Invalid cell group type"},U=function(W){if(W===Oe.FIXED)return o;if(W===Oe.FIXED_RIGHT)return l;if(W===Oe.SCROLLABLE)return u;throw"Invalid cell group type"},Z=function(W){var G=wf(o),re=wf(u),F=wf(l);if(Gi(W,0,G))return o[W];if(Gi(W,G,G+re))return u[W-G];if(Gi(W,G+re,G+re+F))return l[W-G-re];throw"Invalid absolute column group index"},K=function(W,G){if(W.length===0)return{element:null,distanceFromOffset:null};for(var re=0,F=0;F!==W.length&&!(re>G);)re+=W[F].width,F++;return F=Nd(F-1,0,W.length-1),{element:W[F],distanceFromOffset:W[F].width-(re-G)}},R=function(W){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe.SCROLLABLE;f(G);var re=z(G),F=K(re,W),Y=F.element,ne=F.distanceFromOffset;return Y&&(Y=Du(Y)),{column:Y,distanceFromOffset:ne}},I=function(W){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe.SCROLLABLE;f(G);var re=U(G),F=K(re,W),Y=F.element,ne=F.distanceFromOffset;return Y&&(Y=Du(Y)),{columnGroup:Y,distanceFromOffset:ne}},X=r.scrollToX,j=r.updateRowHeights;return{getColumn:T,getColumnGroup:O,getColumnGroupByChild:N,getColumnAtOffset:R,getColumnGroupAtOffset:I,getCellGroupWidth:w,getColumnCount:E,getColumnGroupCount:S,scrollToX:X,updateRowHeights:j}})};function $_(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 xf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Vfe=function(){var t=[],r=null,n=function(l){return t=t.concat(l),function(){var u=t.indexOf(l);t.splice(u,1)}},i=qhe(),a=jfe();return{getValue:Zn([function(o){return i(o)},function(o,l){return a(o,l)}],function(o,l){return r=xf(xf(xf({},o),l),{},{subscribe:n}),r}),notify:function(){t.forEach(function(l){return l(r)})}}};function F_(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 Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gfe(e){var t=Ufe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Ufe(){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 zM=function(e){Ht(r,e);var t=Gfe(r);function r(n){var i;return pt(this,r),i=t.call(this,n),i._initialize(n),i.fixedDataTableApi=Vfe(),i.previousApiValue=null,i}return mt(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=khe.get(),this.reduxStore.dispatch(Sce(i)),this.scrollActions=kce(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(Nu(Nu({},this.props),this.reduxStore.getState()),Nu(Nu({},this.scrollActions),{},{updateRowHeights:function(o){return ST({updateRowHeights:Oce},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($g,_t({},this.props,this.state.boundState,{scrollActions:this.scrollActions}));return this.props.defaultScrollbars?k.createElement(co.Provider,{value:i},k.createElement(Yhe,this.props,a)):k.createElement(co.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 vn(i.height!==void 0||i.maxHeight!==void 0,"You must set either a height or a maxHeight"),i===a.props?null:(a.reduxStore.dispatch(Ece({newProps:i,oldProps:a.props})),{boundState:r.getBoundState(a.reduxStore),props:i})}},{key:"getBoundState",value:function(i){var a=i.getState(),o=vs(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(zM,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:Rr.SIZE,scrollbarYWidth:Rr.SIZE});var Yfe=wM(zM);function qfe(e){var t=Xfe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Xfe(){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 Yd=function(e){Ht(r,e);var t=qfe(r);function r(){return pt(this,r),t.apply(this,arguments)}return mt(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(Yd,"__TableColumn__",!0);ue(Yd,"propTypes",{align:B.oneOf(["left","center","right"]),fixed:B.bool,fixedRight:B.bool,header:B.oneOfType([B.node,B.func]),cell:B.oneOfType([B.node,B.func]),footer:B.oneOfType([B.node,B.func]),columnKey:B.oneOfType([B.string,B.number]),width:B.number.isRequired,minWidth:B.number,maxWidth:B.number,flexGrow:B.number,isResizable:B.bool,isReorderable:B.bool,allowCellsRecycling:B.bool,pureRendering:B.bool,cellClassName:B.string});ue(Yd,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});function Zfe(e){var t=Kfe();return function(){var n=Ge(e),i;if(t){var a=Ge(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nr(this,i)}}function Kfe(){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 Fg=function(e){Ht(r,e);var t=Zfe(r);function r(){return pt(this,r),t.apply(this,arguments)}return mt(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(Fg,"__TableColumnGroup__",!0);ue(Fg,"propTypes",{align:B.oneOf(["left","center","right"]),fixed:B.bool,header:B.oneOfType([B.node,B.func])});ue(Fg,"defaultProps",{fixed:!1});const Qfe=()=>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),Jfe="#f4f4f8",epe="#edeef1",tpe="#e3e5ea",rpe="#f9f9fb",npe="#ffcb05",ipe="#1faff3",ape="#e5e5e5",ope="#5b6372",spe="#3a4356",lpe="#3c3c42",upe="#a3a3a3",cpe="#d0d3db",dpe="_headerCell_2qf2w_16",hpe="_noSort_2qf2w_29",fpe="_standard_2qf2w_29",ppe="_caret_2qf2w_33",mpe="_headerLabel_2qf2w_38",gpe="_icon_2qf2w_43",vpe="_numberIcon_2qf2w_50",ype="_dateIcon_2qf2w_54",bpe="_textIcon_2qf2w_58",_pe="_booleanIcon_2qf2w_62",wpe="_sortIcon_2qf2w_66",xpe="_sortAscending_2qf2w_74",Cpe="_sortDescending_2qf2w_78",ti={athensGray:Jfe,athensGrayDark:epe,athensGrayDark2:tpe,athensGrayLight:rpe,defaultBrandColor:npe,dodgerBlue:ipe,mercury:ape,shuttleGrayDark:ope,oxfordBlue:spe,darkModeDefaultBackground:lpe,indicatorGrey:upe,secondaryButtonHover:cpe,headerCell:dpe,noSort:hpe,standard:fpe,caret:ppe,headerLabel:mpe,icon:gpe,numberIcon:vpe,dateIcon:ype,textIcon:bpe,booleanIcon:_pe,sortIcon:wpe,sortAscending:xpe,sortDescending:Cpe},Tpe="_icon_t30x8_1",Mpe="_numberIcon_t30x8_11",Spe="_dateIcon_t30x8_15",Epe="_textIcon_t30x8_19",Ppe="_booleanIcon_t30x8_23",ls={icon:Tpe,numberIcon:Mpe,dateIcon:Spe,textIcon:Epe,booleanIcon:Ppe},Ape=({columnType:e})=>y.jsx("div",{className:Ys(ls.icon,{[ls.numberIcon]:H.isNumber(e),[ls.dateIcon]:H.isDatetime(e),[ls.textIcon]:H.isText(e),[ls.booleanIcon]:H.isBoolean(e)})}),Rpe=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:i,sortIcon:a="standard"})=>y.jsxs("div",{className:ti.headerCell,onClick:()=>{t(e)},children:[i&&y.jsx(Ape,{columnType:e.type}),y.jsx("div",{className:ti.headerLabel,children:n}),y.jsx("div",{className:Ys(ti.sortIcon,{[ti.caret]:a==="caret",[ti.standard]:a==="standard",[ti.noSort]:!r||e.direction===0,[ti.sortAscending]:r&&e.direction===1,[ti.sortDescending]:r&&e.direction===-1})})]}),Ope=26,kpe=26,z_=8,BM=36,WM=29,HM=24,Em=350,Dpe=126,Npe=38,Lpe=55,Ipe=(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(f=>a.measureText(f.name).width+BM+(t?WM:0)),l=a.measureText("0").width,u=e.columns.map(f=>({type:H.simpleColumnType(f.type),index:f.index})),{rows:c}=e,h=u.map(f=>{const p=c.reduce((g,b)=>{var T;const v=b[f.index].displayValue,w=(T=r[f.index])!=null&&T.isHtml?$pe(v):v,C=f.type==="number"?b[f.index].displayValue.length*l:a.measureText(w).width;return Math.max(g,C)},0);return HM+p});return o.map((f,p)=>{var g;return(g=r[p])!=null&&g.width?r[p].width:Math.ceil(Math.max(Dpe,Math.min(Em,Math.max(f,h[p]))))})};function $pe(e){const t=document.createElement("div");return t.innerHTML=e,jM(t)}function jM(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=jM(i):i.nodeType===3&&(n=i.nodeValue),n&&(r+=n);return r}const B_=e=>e%2===1,W_=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:i})=>{var c,h,f,p,g,b,v,w,C,T,E,S,P,O,N,z,U,Z;let a=r.chart.textColor;const o=r.typography.fontFamily;let l=r.chart.backgroundColor;const u=y.getSlightlyDifferentColor(l);return i?(h=(c=n==null?void 0:n.header)==null?void 0:c.color)!=null&&h.enabled&&(l=((p=(f=n==null?void 0:n.header)==null?void 0:f.color)==null?void 0:p.backgroundColor)||u,a=((b=(g=n==null?void 0:n.header)==null?void 0:g.color)==null?void 0:b.textColor)||a):((w=(v=n==null?void 0:n.columns)==null?void 0:v.alternatingColor)!=null&&w.enabled&&B_(e)&&(l=((T=(C=n==null?void 0:n.columns)==null?void 0:C.alternatingColor)==null?void 0:T.backgroundColor)||u,a=((S=(E=n==null?void 0:n.columns)==null?void 0:E.alternatingColor)==null?void 0:S.textColor)||a),(O=(P=n==null?void 0:n.rows)==null?void 0:P.alternatingColor)!=null&&O.enabled&&B_(t)&&(l=((z=(N=n==null?void 0:n.rows)==null?void 0:N.alternatingColor)==null?void 0:z.backgroundColor)||u,a=((Z=(U=n==null?void 0:n.rows)==null?void 0:U.alternatingColor)==null?void 0:Z.textColor)||a)),{color:a,backgroundColor:l,fontFamily:o}},Fpe="#f4f4f8",zpe="#edeef1",Bpe="#e3e5ea",Wpe="#f9f9fb",Hpe="#ffcb05",jpe="#1faff3",Vpe="#e5e5e5",Gpe="#5b6372",Upe="#3a4356",Ype="#3c3c42",qpe="#a3a3a3",Xpe="#d0d3db",Zpe="_tableWrapper_1ode4_16",Kpe="_table_1ode4_16",Qpe="_tableHeader_1ode4_78",Jpe="_tableCell_1ode4_88",eme="_tableCellContent_1ode4_99",tme="_headerColor_1ode4_105",rme="_rowColor_1ode4_109",bs={athensGray:Fpe,athensGrayDark:zpe,athensGrayDark2:Bpe,athensGrayLight:Wpe,defaultBrandColor:Hpe,dodgerBlue:jpe,mercury:Vpe,shuttleGrayDark:Gpe,oxfordBlue:Upe,darkModeDefaultBackground:Ype,indicatorGrey:qpe,secondaryButtonHover:Xpe,tableWrapper:Zpe,table:Kpe,tableHeader:Qpe,tableCell:Jpe,tableCellContent:eme,headerColor:tme,rowColor:rme},nme=e=>H.isNumber(e)?"right":"left",ime=new RegExp(`<\\/?[\\w\\s="/.':;#-\\/\\?]+>`),H_=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:i})=>{var f,p,g,b,v,w,C,T;const{app:a}=Ct(),o=(b=(g=(p=(f=a==null?void 0:a.settings)==null?void 0:f.chartConfig)==null?void 0:p.tabular)==null?void 0:g.htmlContent)==null?void 0:b.enabled,l=(T=(C=(w=(v=a==null?void 0:a.settings)==null?void 0:v.chartConfig)==null?void 0:w.tabular)==null?void 0:C.htmlContent)==null?void 0:T.sanitizeContents,{isHtmlValue:u,value:c}=k.useMemo(()=>{let E=i;o&&typeof E=="undefined"&&(E=ime.test(e));const S=E&&l?y.purify.sanitize(e):e;return{isHtmlValue:E,value:S}},[o,i,e,l]),h=c.length>n;return y.jsx("div",{className:bs.tableCellContent,style:{maxWidth:`${t-r}px`},children:u?y.jsx("div",{dangerouslySetInnerHTML:{__html:c}}):h?y.jsx(_d,{title:c,children:y.jsx("div",{children:c})}):y.jsx("div",{children:c})})},ame=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:i,themeSettings:a,onSortUpdate:o})=>{var T,E,S;const l=i&&i.showFieldTypeIcon!==void 0?i.showFieldTypeIcon:!0,u=BM+(l?WM:0),c=(i==null?void 0:i.paddingVertical)||z_,h=(i==null?void 0:i.paddingHorizontal)||z_,f=((T=i==null?void 0:i.columns)==null?void 0:T.width)==="auto"?(n-h*2-Qfe())/t.columns.length:void 0,p=k.useMemo(()=>t.columns.map(P=>({isHtml:"isHtml"in P&&!!P.isHtml,width:f})),[t.columns,f]),[g,b]=k.useState(((E=document.fonts)==null?void 0:E.status)==="loaded"),v=(S=a.typography)==null?void 0:S.fontFamily,w=k.useMemo(()=>Ipe(e,l,p,v),[e,l,p,v,g]);k.useEffect(()=>{var P;(P=document.fonts)==null||P.ready.then(()=>{b(!0)}).catch(O=>{console.warn("Failed to observe font loading",O)})},[]);const C=k.useMemo(()=>e.columns.map((P,O)=>{const N=w[O],z=t.columns[O],U=W_({isHeaderCell:!0,themeSettings:a,customStyles:i});return N?y.jsx(Yd,{maxWidth:Em,minWidth:Em,allowCellsRecycling:!0,width:N,header:y.jsx(Ec,{className:Ys(bs.tableHeader),style:U,children:y.jsx(Rpe,{column:P,onClick:o,isSelected:!!Math.abs(P.direction),showFieldTypeIcon:l,sortIcon:(i==null?void 0:i.sortIcon)||"standard",children:y.jsx(H_,{displayValue:y.getDataOptionTitle(z),width:N,padding:u,ellipsizedLength:Npe})})}),cell:R=>{var I=R,{rowIndex:Z}=I,K=xe(I,["rowIndex"]);return y.jsx(Ec,$(M({className:Ys(bs.tableCell),style:W_({colIndex:O,rowIndex:Z,themeSettings:a,customStyles:i})},K),{children:y.jsx(H_,{displayValue:e.rows[Z][O].displayValue,width:N,padding:HM,ellipsizedLength:Lpe,isHtml:"isHtml"in z?z.isHtml:void 0})}))},align:nme(P.type)},`col${O}`):null}),[e,w,a,i,o,l,t,u]);return k.useMemo(()=>y.jsx("div",{className:bs.tableWrapper,style:{padding:`${c}px ${h}px`},children:y.jsx(Yfe,{className:bs.table,rowHeight:(i==null?void 0:i.rowHeight)||kpe,rowsCount:e.rows.length,width:n-h*2,height:r-c*2,headerHeight:(i==null?void 0:i.headerHeight)||Ope,children:C})}),[C,i,e,r,h,c,n])},ome=(e,t)=>{if(!e.columns.some(o=>H.isNumber(o.type)))return e;const r=e.columns,i=e.rows.map(o=>o.map((l,u)=>{const c=r[u].type,h=y.getCompleteNumberFormatConfig(t.columns[u].numberFormatConfig);if(H.isNumber(c)){const f=y.createCompareValue(l.displayValue,c);return{displayValue:y.applyFormatPlainText(h,f.value),compareValue:f}}else return l}));return{columns:r,rows:i}},sme="_component_1rw9b_1",lme={component:sme},ume=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:i,width:a=400,height:o=500})=>{const l=k.useRef(null),u=k.useRef(e),c=k.useMemo(()=>ome(e,t),[e,t]);k.useLayoutEffect(()=>{u.current=e},[e]);const h=k.useMemo(()=>M({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return y.jsx("div",{className:lme.component,ref:l,children:y.jsx(ame,{dataTable:c,dataOptions:t,onSortUpdate:n,height:o,width:a,customStyles:h,themeSettings:i})})},cme=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}}),dme=e=>({paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:e.header,rows:e.rows,columns:e.columns}),VM=25,GM=10,UM=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n,onDataReady:i})=>{const{rowsPerPage:a=VM,width:o,height:l}=r,{themeSettings:u}=st(),[c,h]=k.useState(0),{filters:f,relations:p}=H.getFilterListAndRelationsJaql(n),[g,b]=k.useState(1),v=k.useRef(null),w=k.useMemo(()=>MC(t),[t]),C=k.useMemo(()=>J0(w.columns.filter(y.isMeasureColumn).map(y.translateColumnToMeasure)),[w]),T=k.useMemo(()=>dme(r),[r]),[E,S]=k.useState(w),[P,O]=k.useState(e),[N,z]=uZ({dataSet:P,dataOptions:E,filters:f,filterRelations:p,count:a*GM,offset:c}),U=k.useMemo(()=>{if(N&&i){const j=i(N);if(!qC(j))throw new H.TranslatableError("errors.incorrectOnDataReadyHandler");return j}return N},[N]),Z=cZ({data:U,innerDataOptions:z,dataColumnNamesMapping:C,needToAggregate:!mi(P)});k.useEffect(()=>{S(w),O(e),b(1),h(0)},[e,w]);const K=k.useCallback(j=>{if(!N)return;Math.floor(N.rows.length/a)===j&&h(N.rows.length),b(j)},[N,a]),R=k.useCallback(j=>{b(1),h(0),E&&S(lY(E,j))},[E]),I=k.useMemo(()=>{if(!Z||mi(P))return Z;const j=Z.columns.find(V=>V.direction!==0);return j?y.orderBy(Z,[j]):Z},[Z,P]),X=k.useMemo(()=>I?{columns:I.columns,rows:I.rows.slice((g-1)*a,g*a)}:void 0,[I,g,a]);return z?y.jsx(Qc,{defaultSize:Jc("table"),size:{width:o,height:l},children:j=>{if(!Z||!X)return y.jsx(oi,{});if(y.isDataTableEmpty(Z))return y.jsx(x0,{iconType:"table"});const V=Math.ceil(Z.rows.length/a);return y.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:u.chart.backgroundColor},"aria-label":"table-root",children:[y.jsx(ume,{dataTable:X,dataOptions:z,designOptions:T,themeSettings:u,width:j.width,height:j.height-32,onSortUpdate:R}),y.jsx(ew,{ref:v,page:g,count:V,onChange:(G,re)=>K(re),sx:cme(u)})]})}}):null},hme=k.createContext(null),Cf={didCatch:!1,error:null};class Pm extends k.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Cf}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(Cf)}}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&&fme(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(Cf)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let l=t;if(a){const u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(u);else if(n)l=k.createElement(n,u);else if(i===null||k.isValidElement(i))l=i;else throw o}return k.createElement(hme.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},l)}}function fme(){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 YM=k.createContext(void 0),pme=({children:e})=>{const[t,r]=k.useState([]),[n,i]=k.useState([]),a=()=>r([]),o=()=>i([]);return y.jsx(YM.Provider,{value:{errors:t,warnings:n,clearError:a,clearWarning:o,setErrors:r,setWarnings:i},children:e})},qM=()=>{const e=k.useContext(YM);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 zg(e,t,r){const n=ud(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(a=>!H.isEqual(n[a],e[a])):!H.isEqual(n,e))?!0:r?r(e,n):!1}const mme="BE#081586",gme="BE#733473",vme=e=>{const[t,r]=k.useState(0),{setErrors:n,errors:i}=qM(),a=zg(e,["dataOptions","filters"]);if(k.useEffect(()=>{a&&i.length>0&&(r(t+1),n([]))},[e.dataOptions,e.filters]),!mi(e.dataSet))throw new H.TranslatableError("errors.missingDataSource");const o=H.cloneDeep(e.dataOptions),l=y.extractTrendMeasures(o);o.value.push(...l);const u=y.extractForecastMeasures(o);o.value.push(...u);const c=k.useCallback(({error:p})=>{console.debug("Unexpected error occurred when rendering advanced chart:",p);const g=H.cloneDeep(o),b=f(p.toString());return g.value=g.value.filter(v=>{const w="column"in v?v.column.name:v.name;return!("column"in v&&"type"in v.column&&v.column.type==="calculatedmeasure"&&b.some(C=>C.includes(w)))}),y.jsx(Pm,{fallbackRender:h,onError:v=>{const w=f(v.toString());n(C=>[...new Set([...C,...w])])},children:y.jsx(Hu,$(M({},e),{dataOptions:g}))},`errorboundary_${t}`)},[e,i]),h=k.useCallback(({error:p})=>(console.debug("Error occurred when rendering fallback chart:",p),p.toString().includes(mme)?y.jsx(Hu,M({},e)):y.jsx(c0,{error:i[0]})),[e,i]),f=p=>{if(p.includes(gme)){const g=/Error: BE#733473 More than 1 Function failed, aggregated failures:\s*/;if(g.test(p))return p.replace(g,"").split(";").map(v=>v.trim()).filter(Boolean)}return[p.trim()]};return y.jsx(Pm,{fallbackRender:c,onError:p=>{const g=f(p.toString());n(b=>[...new Set([...b,...g])])},children:y.jsx(Hu,$(M({},e),{dataOptions:o}))},`errorboundary_${t}`)},XM=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},ZM=dl({componentName:"Chart",shouldSkipSisenseContextWaiting:XM,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{var t;if(yme(e))return y.jsx(UM,M({},e));if(bme(e))return y.jsx(vme,M({},e));if(KM(e))return y.jsx(Hu,M({},e));throw new H.TranslatableError("errors.chartInvalidProps",{chartType:(t=e.chartType)!=null?t:"unknown"})});function yme(e){return e.chartType==="table"&&"columns"in e.dataOptions}function KM(e){return e.chartType!=="table"}function bme(e){return!KM(e)||!y.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 Bg(e,{onLocalStateChange:t,syncCompareFn:r=H.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(l=>{i(u=>{const c=H.isFunction(l)?l(u):l;return t==null||t(c),c})},[t]);return[n,o]}function _me(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?H.baseIsEqual(e,t,void 0,r):!!n}const wme=e=>{const t=xme(e);return t.config.disabled=!e.config.disabled,t},xme=e=>{const t=H.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function Cme(e,t,r){const n=M({guid:t},r?{backgroundFilter:r}:{});return H.members(e,[],n)}function qd(e){if(!H.isMembersFilter(e))throw new H.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return Cme(t,r,n)}function Wg(e){return"members"in e&&e.members.length===0}function Or(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function QM(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)=>!_me(r,t[n],JM))}function Hg(e,t){return Or(e.attribute,t.attribute)}function JM(e,t){const r=y.flow(Tme,Mme);return H.isEqual(r(e),r(t))}function Tme(e){return $(M({},e),{name:""})}function Mme(e){return $(M({},e),{config:$(M({},e.config),{guid:""})})}function Sme(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 l=a,u=a,c=o,h=o;return a===void 0&&o===void 0?!0:[a,o].some(f=>f===void 0)||l.operator!==c.operator?!1:u.instanceid&&h.instanceid?!QM(e==null?void 0:e.filter(f=>f.config.guid===u.instanceid),t==null?void 0:t.filter(f=>f.config.guid===h.instanceid)):i(l.left,c.left)&&i(l.right,c.right)||i(l.left,c.right)&&i(l.right,c.left)}return!i(r,n)}const eS="sdkHookInit",Eme=(e,t,r,n)=>{if(!r)return;vw(eS,{packageName:t,packageVersion:"2.21.0",hookName:e},r.httpClient).finally(n)};function Pme(e){const{tracking:t,app:r}=Ct(),{trackEvent:n}=w0(),i=k.useRef(!1);k.useEffect(()=>{if(!(!t||!r)&&!i.current){const a={packageName:t.packageName||"sdk-ui",packageVersion:"2.21.0",hookName:e};n(eS,a,!t.enabled).finally(()=>i.current=!0)}},[t,e,n,r])}const Ame=e=>t=>(...r)=>(Pme(e),t(...r));function tS(e,t){switch(t.type){case"loading":return Rme(e);case"success":return Ome(t.data);case"error":return kme(t.error)}}function Rme(e){return e.status==="loading"?e:$(M({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function Ome(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function kme(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}var Tf=function(){return H.root.Date.now()},Dme="Expected a function",Nme=Math.max,Lme=Math.min;function Ime(e,t,r){var n,i,a,o,l,u,c=0,h=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Dme);t=y.toNumber(t)||0,H.isObject(r)&&(h=!!r.leading,f="maxWait"in r,a=f?Nme(y.toNumber(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function g(O){var N=n,z=i;return n=i=void 0,c=O,o=e.apply(z,N),o}function b(O){return c=O,l=setTimeout(C,t),h?g(O):o}function v(O){var N=O-u,z=O-c,U=t-N;return f?Lme(U,a-z):U}function w(O){var N=O-u,z=O-c;return u===void 0||N>=t||N<0||f&&z>=a}function C(){var O=Tf();if(w(O))return T(O);l=setTimeout(C,v(O))}function T(O){return l=void 0,p&&n?g(O):(n=i=void 0,o)}function E(){l!==void 0&&clearTimeout(l),c=0,n=u=i=l=void 0}function S(){return l===void 0?o:T(Tf())}function P(){var O=Tf(),N=w(O);if(n=arguments,i=this,u=O,N){if(l===void 0)return b(u);if(f)return clearTimeout(l),l=setTimeout(C,t),g(u)}return l===void 0&&(l=setTimeout(C,t)),o}return P.cancel=E,P.flush=S,P}function rS(e){return function(t){t=H.toString(t);var r=PC(t)?Wp(t):void 0,n=r?r[0]:t.charAt(0),i=r?EC(r,1).join(""):t.slice(1);return n[e]()+i}}var nS=rS("toUpperCase");function $me(e){return nS(H.toString(e).toLowerCase())}function Fme(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 zme(e){return function(t){return e==null?void 0:e[t]}}var Bme={À:"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"},Wme=zme(Bme),Hme=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jme="\\u0300-\\u036f",Vme="\\ufe20-\\ufe2f",Gme="\\u20d0-\\u20ff",Ume=jme+Vme+Gme,Yme="["+Ume+"]",qme=RegExp(Yme,"g");function Xme(e){return e=H.toString(e),e&&e.replace(Hme,Wme).replace(qme,"")}var Zme=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Kme(e){return e.match(Zme)||[]}var Qme=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Jme(e){return Qme.test(e)}var iS="\\ud800-\\udfff",e0e="\\u0300-\\u036f",t0e="\\ufe20-\\ufe2f",r0e="\\u20d0-\\u20ff",n0e=e0e+t0e+r0e,aS="\\u2700-\\u27bf",oS="a-z\\xdf-\\xf6\\xf8-\\xff",i0e="\\xac\\xb1\\xd7\\xf7",a0e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",o0e="\\u2000-\\u206f",s0e=" \\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",sS="A-Z\\xc0-\\xd6\\xd8-\\xde",l0e="\\ufe0e\\ufe0f",lS=i0e+a0e+o0e+s0e,uS="['’]",j_="["+lS+"]",u0e="["+n0e+"]",cS="\\d+",c0e="["+aS+"]",dS="["+oS+"]",hS="[^"+iS+lS+cS+aS+oS+sS+"]",d0e="\\ud83c[\\udffb-\\udfff]",h0e="(?:"+u0e+"|"+d0e+")",f0e="[^"+iS+"]",fS="(?:\\ud83c[\\udde6-\\uddff]){2}",pS="[\\ud800-\\udbff][\\udc00-\\udfff]",Wa="["+sS+"]",p0e="\\u200d",V_="(?:"+dS+"|"+hS+")",m0e="(?:"+Wa+"|"+hS+")",G_="(?:"+uS+"(?:d|ll|m|re|s|t|ve))?",U_="(?:"+uS+"(?:D|LL|M|RE|S|T|VE))?",mS=h0e+"?",gS="["+l0e+"]?",g0e="(?:"+p0e+"(?:"+[f0e,fS,pS].join("|")+")"+gS+mS+")*",v0e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",y0e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",b0e=gS+mS+g0e,_0e="(?:"+[c0e,fS,pS].join("|")+")"+b0e,w0e=RegExp([Wa+"?"+dS+"+"+G_+"(?="+[j_,Wa,"$"].join("|")+")",m0e+"+"+U_+"(?="+[j_,Wa+V_,"$"].join("|")+")",Wa+"?"+V_+"+"+G_,Wa+"+"+U_,y0e,v0e,cS,_0e].join("|"),"g");function x0e(e){return e.match(w0e)||[]}function C0e(e,t,r){return e=H.toString(e),t=t,t===void 0?Jme(e)?x0e(e):Kme(e):e.match(t)||[]}var T0e="['’]",M0e=RegExp(T0e,"g");function S0e(e){return function(t){return Fme(C0e(Xme(t).replace(M0e,"")),e,"")}}var vS=S0e(function(e,t,r){return t=t.toLowerCase(),e+(r?$me(t):t)});function E0e(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 P0e(e,t){return function(r,n){if(r==null)return r;if(!H.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 A0e=P0e(H.baseForOwn);function R0e(e,t,r,n){return A0e(e,function(i,a,o){t(n,i,r(i),o)}),n}function yS(e,t){return function(r,n){var i=H.isArray(r)?E0e:R0e,a=t?t():{};return i(r,e,H.baseIteratee(n),a)}}var Dl=yS(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),Nl=(e=>(e.HIGHLIGHT="highlight",e.FILTER="filter",e))(Nl||{});const Y_=(e,t)=>{var r;return y.isCartesian(e)&&((r=t.category)==null?void 0:r.length)===1||y.isScatter(e)};function O0e({chartType:e,dataOptions:t,enabled:r}){const[n,i]=k.useState([]),a=k.useRef(r&&Y_(e,t));k.useEffect(()=>{a.current=r&&Y_(e,t)},[e,t,r]);const o=k.useMemo(()=>{if(n.length===0)return f=>$(M({},f),{series:f.series.map(p=>$(M({},p),{data:p.data.map(g=>$(M({},g),{selected:!1}))}))});if(y.isScatter(e))return f=>$(M({},f),{series:f.series.map(p=>$(M({},p),{data:p.data.map(g=>$(M({},g),{selected:!n.some(b=>{var v,w;return b.x===g.x&&b.y===g.y&&b.size===g.z&&b.breakByPoint===((v=g.custom)==null?void 0:v.maskedBreakByPoint)&&b.breakByColor===((w=g.custom)==null?void 0:w.maskedBreakByColor)})}))}))});{const f=n.reduce((p,{categoryValue:g})=>(g&&(p[`${g}`]=!0),p),{});return p=>$(M({},p),{series:p.series.map(g=>$(M({},g),{data:g.data.map(b=>{var v,w;return f[(w=(v=b.custom)==null?void 0:v.xValue)==null?void 0:w[0]]?b:$(M({},b),{selected:!0})})}))})}},[n,e]),l=k.useMemo(()=>f=>{var p;return $(M({},f),{chart:$(M({},f.chart),{events:$(M({},(p=f.chart)==null?void 0:p.events),{click:()=>{i([])}})})})},[]),u=k.useCallback(f=>(a.current&&(f=o(f),f=l(f)),f),[o,l]),c=k.useCallback(f=>{a.current&&i(f)},[]),h=k.useCallback(f=>{a.current&&i([f])},[]);return{onBeforeRender:u,onDataPointsSelected:c,onDataPointClick:h}}function k0e(e){return ht("MuiCard",e)}ft("MuiCard",["root"]);const D0e=e=>{const{classes:t}=e;return Et({root:["root"]},k0e,t)},N0e=De(rd,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),bS=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiCard"}),c=n,{className:i,raised:a=!1}=c,o=xe(c,["className","raised"]),l=$(M({},n),{raised:a}),u=D0e(l);return me.jsx(N0e,M({className:We(u.root,i),elevation:a?8:void 0,ref:r,ownerState:l},o))});process.env.NODE_ENV!=="production"&&(bS.propTypes={children:_.node,classes:_.object,className:_.string,raised:qn(_.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 L0e(e){return ht("MuiCardContent",e)}ft("MuiCardContent",["root"]);const I0e=e=>{const{classes:t}=e;return Et({root:["root"]},L0e,t)},$0e=De("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),_S=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiCardContent"}),c=n,{className:i,component:a="div"}=c,o=xe(c,["className","component"]),l=$(M({},n),{component:a}),u=I0e(l);return me.jsx($0e,M({as:a,className:We(u.root,i),ownerState:l,ref:r},o))});process.env.NODE_ENV!=="production"&&(_S.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function F0e(e){return ht("MuiCircularProgress",e)}ft("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ri=44,Am=ll`
416
- 0% {
417
- transform: rotate(0deg);
418
- }
419
-
420
- 100% {
421
- transform: rotate(360deg);
422
- }
423
- `,Rm=ll`
424
- 0% {
425
- stroke-dasharray: 1px, 200px;
426
- stroke-dashoffset: 0;
427
- }
428
-
429
- 50% {
430
- stroke-dasharray: 100px, 200px;
431
- stroke-dashoffset: -15px;
432
- }
433
-
434
- 100% {
435
- stroke-dasharray: 1px, 200px;
436
- stroke-dashoffset: -126px;
437
- }
438
- `,z0e=typeof Am!="string"?qc`
439
- animation: ${Am} 1.4s linear infinite;
440
- `:null,B0e=typeof Rm!="string"?qc`
441
- animation: ${Rm} 1.4s ease-in-out infinite;
442
- `:null,W0e=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${Ie(n)}`],svg:["svg"],circle:["circle",`circle${Ie(r)}`,i&&"circleDisableShrink"]};return Et(a,F0e,t)},H0e=De("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Ie(r.color)}`]]}})(Ft(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:z0e||{animation:`${Am} 1.4s linear infinite`}},...Object.entries(e.palette).filter(pi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),j0e=De("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),V0e=De("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Ie(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Ft(({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:B0e||{animation:`${Rm} 1.4s ease-in-out infinite`}}]}))),jg=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiCircularProgress"}),T=n,{className:i,color:a="primary",disableShrink:o=!1,size:l=40,style:u,thickness:c=3.6,value:h=0,variant:f="indeterminate"}=T,p=xe(T,["className","color","disableShrink","size","style","thickness","value","variant"]),g=$(M({},n),{color:a,disableShrink:o,size:l,thickness:c,value:h,variant:f}),b=W0e(g),v={},w={},C={};if(f==="determinate"){const E=2*Math.PI*((ri-c)/2);v.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(h),v.strokeDashoffset=`${((100-h)/100*E).toFixed(3)}px`,w.transform="rotate(-90deg)"}return me.jsx(H0e,$(M(M({className:We(b.root,i),style:M(M({width:l,height:l},w),u),ownerState:g,ref:r,role:"progressbar"},C),p),{children:me.jsx(j0e,{className:b.svg,ownerState:g,viewBox:`${ri/2} ${ri/2} ${ri} ${ri}`,children:me.jsx(V0e,{className:b.circle,style:v,ownerState:g,cx:ri,cy:ri,r:(ri-c)/2,fill:"none",strokeWidth:c})})}))});process.env.NODE_ENV!=="production"&&(jg.propTypes={classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","primary","secondary","error","info","success","warning"]),_.string]),disableShrink:qn(_.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 G0e(e){return ht("MuiIconButton",e)}const q_=ft("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),U0e=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a,loading:o}=e,l={root:["root",o&&"loading",r&&"disabled",n!=="default"&&`color${Ie(n)}`,i&&`edge${Ie(i)}`,`size${Ie(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Et(l,G0e,t)},Y0e=De(na,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Ie(r.color)}`],r.edge&&t[`edge${Ie(r.edge)}`],t[`size${Ie(r.size)}`]]}})(Ft(({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})`:bt(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}}]})),Ft(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(pi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(pi()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt((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)}}],[`&.${q_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${q_.loading}`]:{color:"transparent"}}))),q0e=De("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"}}]})),ta=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiIconButton"}),E=n,{edge:i=!1,children:a,className:o,color:l="default",disabled:u=!1,disableFocusRipple:c=!1,size:h="medium",id:f,loading:p=null,loadingIndicator:g}=E,b=xe(E,["edge","children","className","color","disabled","disableFocusRipple","size","id","loading","loadingIndicator"]),v=Zc(f),w=g!=null?g:me.jsx(jg,{"aria-labelledby":v,color:"inherit",size:16}),C=$(M({},n),{edge:i,color:l,disabled:u,disableFocusRipple:c,loading:p,loadingIndicator:w,size:h}),T=U0e(C);return me.jsxs(Y0e,$(M({id:p?v:f,className:We(T.root,o),centerRipple:!0,focusRipple:!c,disabled:u||p,ref:r},b),{ownerState:C,children:[typeof p=="boolean"&&me.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:me.jsx(q0e,{className:T.loadingIndicator,ownerState:C,children:p&&w})}),a]}))});process.env.NODE_ENV!=="production"&&(ta.propTypes={children:qn(_.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(`
443
- `)):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 X0e({fill:e="rgba(38, 46, 61, 0.67)"}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:y.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 Z0e({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:i}){var C,T,E;const[a,o]=k.useState(null),{themeSettings:l}=st(),{typography:{primaryTextColor:u,secondaryTextColor:c,fontFamily:h}}=l,{t:f}=y.useTranslation(),p=S=>{o(S.currentTarget)},g=()=>{o(null)},b=k.useMemo(()=>e?y.jsx(Er,{variant:"body2",style:{color:u,fontFamily:h,fontSize:13},children:e}):null,[e,u,h]),v=k.useMemo(()=>r.length===0?null:r.map(S=>y.jsxs(y.Fragment,{children:[y.jsx(Hi,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),y.jsxs("div",{className:"csdk-flex",children:[y.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:y.jsx(X0e,{fill:"#fa5656"})}),y.jsx(Er,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:h,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:S})]})]})),[r,c,h]),w=k.useMemo(()=>t?y.jsxs(y.Fragment,{children:[y.jsx(Hi,{sx:{my:"8px",borderColor:c,opacity:.3}}),y.jsx(Er,{variant:"body2",style:{color:c,fontFamily:h,fontSize:13},children:t})]}):null,[t,c,h]);return y.jsxs(y.Fragment,{children:[y.jsx(_d,{title:f("widgetHeader.info.tooltip"),style:{color:(C=l.chart)==null?void 0:C.textColor,fontFamily:(T=l.typography)==null?void 0:T.fontFamily},children:y.jsx(ta,{onClick:p,sx:{p:0},children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:y.jsx("path",{fill:(n==null?void 0:n.titleTextColor)||l.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"})})})}),y.jsx(_0,{open:!!a,position:a?{anchorEl:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:g,children:y.jsxs(bS,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[y.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:y.getSlightlyDifferentColor(l.general.backgroundColor)},children:[y.jsx(Er,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:l.typography.primaryTextColor,fontFamily:l.typography.fontFamily},children:f("widgetHeader.info.details")}),y.jsx(ta,{onClick:i,sx:{p:0},children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:y.jsx("path",{fill:(E=l.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"})})})]}),y.jsx(Hi,{sx:{borderColor:l.typography.secondaryTextColor,opacity:.3}}),y.jsxs(_S,{style:{backgroundColor:l.general.backgroundColor,padding:12},children:[b,v,w]})]})})]})}const Vg=()=>{const e=ed();if(!e)throw new H.TranslatableError("errors.missingMenuRoot");return e};function wS({fill:e="rgba(38, 46, 61, 0.67)"}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:y.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 K0e=tt(ta)`
444
- min-width: 28px;
445
- min-height: 28px;
446
- `,xS=i=>{var a=i,{color:e,onClick:t,ariaLabel:r}=a,n=xe(a,["color","onClick","ariaLabel"]);const o=k.useCallback(()=>y.getSlightlyDifferentColor(e!=null?e:"",void 0,.1),[e]);return y.jsx(K0e,$(M({sx:{padding:0,"&:hover":{backgroundColor:o()}},onClick:t,"aria-label":r},n),{children:y.jsx(wS,{fill:e})}))},CS=({menuItems:e})=>{const{themeSettings:t}=st(),{openMenu:r}=Vg(),n=k.useCallback(i=>{i.stopPropagation(),e.length&&r({position:{left:i.clientX,top:i.clientY},alignment:{horizontal:"right"},itemSections:[{items:e}]})},[e,r]);return y.jsx(xS,{onClick:n,ariaLabel:"widget header toolbar menu",color:t.widget.header.titleTextColor})};function Q0e({infoButtonConfig:e,styleOptions:t,onRefresh:r,config:n}){var o,l,u,c;const i=k.useMemo(()=>{var h,f;return y.isUndefined((h=n==null?void 0:n.menu)==null?void 0:h.enabled)?!0:(f=n==null?void 0:n.menu)==null?void 0:f.enabled},[(o=n==null?void 0:n.menu)==null?void 0:o.enabled]),a=y.jsxs(y.Fragment,{children:[y.jsx(Z0e,{title:e.dataSetName,description:e.description,styleOptions:t,errorMessages:e.errorMessages,warningMessages:e.warningMessages,onRefresh:r}),i&&((l=n==null?void 0:n.menu)==null?void 0:l.items)&&((u=n==null?void 0:n.menu)==null?void 0:u.items.length)>0&&y.jsx(CS,{menuItems:(c=n==null?void 0:n.menu)==null?void 0:c.items})]});return t!=null&&t.renderToolbar?t.renderToolbar(r,a):a}function J0e(e){return e.toLowerCase()}const ege=({title:e,infoButtonConfig:t,styleOptions:r,onRefresh:n,config:i})=>{var l,u;const{themeSettings:a}=st(),o=H.get(r,"dividerLine",a.widget.header.dividerLine);return y.jsxs("div",{"data-component":"widget-header",children:[y.jsxs(tge,{styleOptions:r,theme:a,"data-component":"header-container",children:[y.jsx(rge,{styleOptions:r,theme:a,"data-component":"title",children:(u=(l=r==null?void 0:r.renderTitle)==null?void 0:l.call(r,e))!=null?u:e}),y.jsx(nge,{"data-component":"toolbar-container",children:y.jsx(Q0e,{infoButtonConfig:t,styleOptions:r,onRefresh:n,config:i==null?void 0:i.toolbar})})]}),o&&y.jsx(ige,{styleOptions:r,theme:a,"data-component":"widget-header-divider"})]})},tge=tt.div`
447
- display: flex;
448
- flex-direction: row;
449
- align-items: center;
450
- padding-left: 8px;
451
- padding-right: 8px;
452
- min-height: 32px;
453
- background-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.backgroundColor)||t.widget.header.backgroundColor};
454
- `,rge=tt.div`
455
- width: 100%;
456
- white-space: nowrap;
457
- overflow: hidden;
458
- text-align: ${({styleOptions:e,theme:t})=>J0e((e==null?void 0:e.titleAlignment)||t.widget.header.titleAlignment)};
459
- color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.titleTextColor)||t.widget.header.titleTextColor};
460
- font-family: ${({theme:e})=>{var t,r;return(r=(t=e.typography)==null?void 0:t.fontFamily)!=null?r:"inherit"}};
461
- font-size: ${({theme:e})=>{const t=e.widget.header.titleFontSize;return typeof t=="number"?`${t}px`:t}};
462
- `,nge=tt.div`
463
- margin-left: auto;
464
- display: flex;
465
- align-items: center;
466
- `,ige=tt(Hi)`
467
- background-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.dividerLineColor)||t.widget.header.dividerLineColor||"#e6e6e6"};
468
- `;var TS=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(TS||{}),Om=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(Om||{}),km=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(km||{}),Gg=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(Gg||{});const age=(e,t)=>{const r=H.get(e,"shadow",t.widget.shadow),n=H.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in Om&&n in km){const i=Om[`${r}`];return`0px ${km[`${n}`]} rgba(9, 9, 10, ${i})`}return"none"},MS=e=>y.jsx(pme,{children:y.jsx(oge,M({},e))}),oge=({dataSetName:e,styleOptions:t,headerConfig:r,title:n,description:i,topSlot:a,bottomSlot:o,children:l,onRefresh:u=()=>{}})=>{var g,b;const{errors:c,warnings:h}=qM(),{themeSettings:f}=st(),p=k.useMemo(()=>{var v;return{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((v=f.chart)==null?void 0:v.backgroundColor)}}},[t==null?void 0:t.backgroundColor,(g=f.chart)==null?void 0:g.backgroundColor]);return y.jsx(sge,{className:"csdk-accessible","data-component":"widget-container-root",children:y.jsx(lge,{styleOptions:t,theme:f,"data-component":"widget-container-layout",children:y.jsxs(uge,{styleOptions:t,theme:f,"data-component":"widget-container-card",children:[!((b=t==null?void 0:t.header)!=null&&b.hidden)&&y.jsx(ege,{title:n,infoButtonConfig:{dataSetName:e,description:i,errorMessages:c,warningMessages:h},styleOptions:t==null?void 0:t.header,config:r,onRefresh:u}),a,y.jsx(Sw,{theme:p,children:y.jsx(cge,{styleOptions:t,theme:f,"data-component":"widget-container-content",children:l})}),o]})})})},sge=tt.div`
469
- width: 100%;
470
- height: 100%;
471
- overflow: hidden;
472
- `,lge=tt.div`
473
- box-sizing: border-box;
474
- height: 100%;
475
- padding: ${({styleOptions:e,theme:t})=>Gg[H.get(e,"spaceAround",t.widget.spaceAround)]||"0px"};
476
- `,uge=tt.div`
477
- box-sizing: border-box;
478
- height: 100%;
479
- overflow: hidden;
480
- display: flex;
481
- flex-direction: column;
482
- background-color: ${({styleOptions:e})=>(e==null?void 0:e.backgroundColor)||"unset"};
483
- border-width: ${({styleOptions:e,theme:t})=>H.get(e,"border",t.widget.border)?"1px":"0"};
484
- border-style: solid;
485
- border-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.borderColor)||t.widget.borderColor};
486
- border-radius: ${({styleOptions:e,theme:t})=>TS[(e==null?void 0:e.cornerRadius)||t.widget.cornerRadius]||"0"};
487
- box-shadow: ${({styleOptions:e,theme:t})=>age(e,t)};
488
- `,cge=tt.div`
489
- flex-grow: 1;
490
- min-width: 0;
491
- min-height: 0;
492
- background-color: ${({styleOptions:e,theme:t})=>{var r;return(e==null?void 0:e.backgroundColor)||((r=t.chart)==null?void 0:r.backgroundColor)}};
493
- `;var dge=Object.prototype,hge=dge.hasOwnProperty,fge=yS(function(e,t,r){hge.call(e,r)?e[r].push(t):H.baseAssignValue(e,r,[t])});function Dm(e){return e&&e.length?K0(e):[]}var rl=(e=>(e.WIDGET_POINTS_DRILLDOWN="widget-points-drilldown",e.WIDGET_POINTS_CROSSFILTERING="widget-points-crossfiltering",e))(rl||{}),ho=(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))(ho||{});const pge=["rows","columns","values","category","value","breakBy","x","y","breakByPoint","breakByColor","size","date","geo","color","colorBy","details","outliers","secondary","min","max"];function mge(e){return pge.includes(e)}function gge(e,t){const r=[];for(const[n,i]of Object.entries(e))!mge(n)||i===null||i===void 0||(Array.isArray(i)?i.forEach((a,o)=>{X_(a)&&r.push({location:{dataOptionName:n,dataOptionIndex:o},column:a})}):typeof i=="object"&&!Array.isArray(i)&&X_(i)&&r.push({location:{dataOptionName:n,dataOptionIndex:0},column:i}));for(const{location:n,column:i}of r)if(SS(i,t))return n}function X_(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 SS(e,t){return Or(y.translateColumnToAttribute(e),y.translateColumnToAttribute(t))}function ES(e,t){const{dataOptionName:r,dataOptionIndex:n=0}=t,i=e[r];if(i!=null){if(H.isArray(i))return n>=0&&n<i.length?i[n]:void 0;if(H.isPlainObject(i))return n!==0&&t.dataOptionIndex!==void 0?void 0:i}}function vge(e,t,r){const{dataOptionName:n,dataOptionIndex:i=0}=t,a=r[n];if(a==null)return r;if(H.isArray(a)){if(i>=0&&i<a.length){const o=[...a];return o[i]=e,$(M({},r),{[n]:o})}return r}return H.isPlainObject(a)?i!==0&&t.dataOptionIndex!==void 0?r:$(M({},r),{[n]:e}):r}function PS(e,t,r){return r.length===0||!t?void 0:"dataOptionName"in t?t:gge(e,t)}function yge(e){return Xd("pivot",e).length>0}function AS(e,t,r){const n=ES(e,t);return!n||SS(n,r)?e:vge(r,t,e)}function bge(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.config.guid))})}function RS(e,t){return e.find(r=>Or(r.attribute,t))}function OS(e,t,r){const n=RS(r,e);return H.members(e,t.map(i=>`${i}`),{guid:n==null?void 0:n.config.guid,backgroundFilter:n==null?void 0:n.config.backgroundFilter})}function kS(e,t){return Hg(e,t)&&"members"in e&&"members"in t&&H.isEqual(e.members,t.members)}function _ge({widgetType:e,chartType:t,dataOptions:r,drilldownOptions:n}){if(e==="pivot"){const i=n,a=r,o=i==null?void 0:i.drilldownSelections,l=i==null?void 0:i.drilldownTarget;if(o&&o.length&&l){const u=PS(a,l,o),c=H.last(o);if(u&&(c!=null&&c.nextDimension))return AS(a,u,c.nextDimension)}}if(t){const i=n,a=r,o=i==null?void 0:i.drilldownSelections;if(o&&o.length){const l=H.last(o);if(l!=null&&l.nextDimension)return NS(t,a,l.nextDimension)}}return r}const DS=2;function wge(e,t){const r=e[t];return r?Array.isArray(r)?r:[r]:[]}function Kn(e,t){if(!e.length||!t.length)return[];const r=e.flatMap(({entries:i={}})=>t.flatMap(a=>wge(i,a)).filter(a=>"attribute"in a&&!!a.attribute)),n=fge(r,({attribute:i})=>i==null?void 0:i.expression);return Object.values(n).filter(i=>i.length>0&&!!i[0].attribute).map(i=>{const a=i[0].attribute,o=Dm(i.map(({value:u})=>u).filter(u=>u!=null)),l=Dm(i.map(({displayValue:u})=>u).filter(u=>u!==void 0));return{attribute:a,values:o,displayValues:l}})}function xge(e){return Kn(e,["category"])}function Cge(e){return Kn(e,["category"])}function Tge(e,t){const r=Kn(e,["category"]),n=r.length-1;return t.category.map((i,a)=>n===a?r[a]:{attribute:y.translateColumnToAttribute(i),values:[],displayValues:[]})}function Mge(e){return Kn(e,["x","y","breakByPoint","breakByColor"])}function Sge(e){return Kn(e,["geo"])}function Ege(e){return Kn(e,["geo"])}function Pge(e){return Kn(e,["date"])}function Age(e){const t=e.filter(r=>r.isDataCell&&!r.isTotalCell);return Kn(t.map(r=>{var n,i,a,o,l,u;return(i=(n=r.entries)==null?void 0:n.values)!=null&&i.length?r:$(M({},r),{entries:{rows:(o=(a=r.entries.rows)==null?void 0:a.slice(-1))!=null?o:[],columns:(u=(l=r.entries.columns)==null?void 0:l.slice(-1))!=null?u:[],values:[]}})}),["rows","columns","values"])}function Rge(e,t){const r=Object.entries(t).filter(([,n])=>n.some(i=>!y.isMeasureColumn(i))).map(([n])=>n);return Kn(e,r)}function Zu(e,t,r){return e==="custom"?Rge(r,t):e==="text"?[]:e==="pivot"?Age(r):e==="treemap"||e==="sunburst"?Tge(r,t):y.isCartesian(e)||e==="pie"||e==="funnel"?xge(r):y.isBoxplot(e)?Cge(r):y.isScatter(e)?Mge(r):y.isScattermap(e)?Sge(r):y.isAreamap(e)?Ege(r):y.isCalendarHeatmap(e)?Pge(r):[]}function Xd(e,t){let r=[];return e==="custom"?r=Oge(t):e==="text"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:y.isCartesian(e)||y.isCategorical(e)||y.isBoxplot(e)||y.isRange(e)?r=[...t.category]:y.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!y.isMeasureColumn(n))):y.isScattermap(e)||y.isAreamap(e)?r=[...t.geo]:y.isCalendarHeatmap(e)&&(r=[t.date]),r.map(y.translateColumnToAttribute)}function Oge(e){return Object.values(e).flatMap(t=>t.filter(r=>!y.isMeasureColumn(r)))}function kge(e,t,r){const n=RS(t,e.attribute);if(!n||Wg(n))return null;if(kS(e,n))return qd(e);if(H.isMembersFilter(n)&&r){const[i,a]=Dl(n.members,l=>e.members.includes(l));if(i.length===e.members.length&&a.length)return OS(e.attribute,a,[n])}return null}function Dge(e,t,r){const n=t.filter(o=>!o.config.disabled),i=e.map(o=>kge(o,n,r)).filter(o=>!!o),a=e.length!==i.length;return{filters:a?e:i,isSelection:a}}function Mf(e,t,r=!1){const n=e.map(({attribute:a,values:o})=>OS(a,o,t)),i=Nge(t,n);return Dge(i,t,r)}function Nge(e,t){const r=e.filter(n=>n.config.locked);return r.length?t.filter(n=>!r.some(i=>Hg(i,n))):t}function Lge(e,t,r){const n=Zu(e,t,r).filter(({displayValues:l})=>l.length);if(n.length===0)return"";const[i]=n,a=r.length===1,o=i.displayValues.length>DS;return n.length>1?a?n.map(l=>l.displayValues[0]).join(", "):o?"":i.displayValues.join(", "):o?i.attribute.name:i.displayValues.join(", ")}function Z_(e,t,r){const n=Lge(e,t,r);return n?{id:ho.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:n}:null}function K_(e,t){return{items:[{caption:e,onClick:t}]}}function Ige(e,t){return Xd(e,t)[0]}function $ge(e){return[...y.CARTESIAN_CHART_TYPES,...y.CATEGORICAL_CHART_TYPES,...y.SCATTER_CHART_TYPES,...y.BOXPLOT_CHART_TYPES,...y.RANGE_CHART_TYPES].includes(e)}function Fge(e,t){return Xd(e,t).length>=1}function zge(e,t){return Fge(e,t)&&$ge(e)}function NS(e,t,r){const n=i=>!!i&&!Or(r,y.translateColumnToAttribute(i));if(y.isCartesian(e)||y.isCategorical(e)||y.isBoxplot(e)||y.isRange(e)){const i=t.category[0];if(n(i))return $(M({},t),{category:[r]})}else if(y.isScatter(e)){const i=t,a=["x","y","breakByPoint","breakByColor"];for(const o of a){const l=i[o];if(l&&!y.isMeasureColumn(l)&&n(l))return $(M({},i),{[o]:r})}}return t}function Q_(e,t,r){return e.map(n=>{const i=["x","y","breakByPoint","breakByColor"],a=[...i,"size"].some(l=>l in n),o=i.find(l=>r[l]&&!y.isMeasureColumn(r[l]));if(a){const l=t,u=l.type==="mouseup";u&&console.warn("No drilldown support for multi-selection in scatter chart");const c=u?n[o]:l.point.options.custom[vS(`{masked ${o}`)];return{categoryValue:c,categoryDisplayValue:c}}return n})}function Ac(e,t){return e.filter(r=>{if(H.MetadataTypes.isAttribute(r)){const a=r;return t.every(o=>!Or(o,a))}const i=r;return t.every((a,o)=>i.levels[o]&&Or(a,i.levels[o]))})}function Rc(e,t){return[y.translateColumnToAttribute(e),...t.map(({nextDimension:r})=>r)]}const Bge=mo(me.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"),Wge=De(na)(Ft(({theme:e})=>$(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:kf(e.palette.grey[200],.12)}:{backgroundColor:kf(e.palette.grey[600],.12)})}))),Hge=De(Bge)({width:24,height:16});function LS(e){const a=e,{slots:t={},slotProps:r={}}=a,n=xe(a,["slots","slotProps"]),i=e;return me.jsx("li",{children:me.jsx(Wge,$(M({focusRipple:!0},n),{ownerState:i,children:me.jsx(Hge,M({as:t.CollapsedIcon,ownerState:i},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(LS.propTypes={slotProps:_.shape({collapsedIcon:_.oneOfType([_.func,_.object])}),slots:_.shape({CollapsedIcon:_.elementType}),sx:_.object});function jge(e){return ht("MuiBreadcrumbs",e)}const Vge=ft("MuiBreadcrumbs",["root","ol","li","separator"]),Gge=e=>{const{classes:t}=e;return Et({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},jge,t)},Uge=De(Er,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Vge.li}`]:t.li},t.root]})({}),Yge=De("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),qge=De("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Xge(e,t,r,n){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,me.jsx(qge,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${o}`)):i.push(a),i),[])}const IS=Q.forwardRef(function(t,r){const n=xt({props:t,name:"MuiBreadcrumbs"}),N=n,{children:i,className:a,component:o="nav",slots:l={},slotProps:u={},expandText:c="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:f=1,maxItems:p=8,separator:g="/"}=N,b=xe(N,["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),[v,w]=Q.useState(!1),C=$(M({},n),{component:o,expanded:v,expandText:c,itemsAfterCollapse:h,itemsBeforeCollapse:f,maxItems:p,separator:g}),T=Gge(C),E=Gm({elementType:l.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:C}),S=Q.useRef(null),P=z=>{const U=()=>{w(!0);const Z=S.current.querySelector("a[href],button,[tabindex]");Z&&Z.focus()};return f+h>=z.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${h}} + itemsBeforeCollapse={${f}} >= maxItems={${p}}`].join(`
494
- `)),z):[...z.slice(0,f),me.jsx(LS,{"aria-label":c,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:U},"ellipsis"),...z.slice(z.length-h,z.length)]},O=Q.Children.toArray(i).filter(z=>(process.env.NODE_ENV!=="production"&&h0.isFragment(z)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
495
- `)),Q.isValidElement(z))).map((z,U)=>me.jsx("li",{className:T.li,children:z},`child-${U}`));return me.jsx(Uge,$(M({ref:r,component:o,color:"textSecondary",className:We(T.root,a),ownerState:C},b),{children:me.jsx(Yge,{className:T.ol,ref:S,ownerState:C,children:Xge(v||p&&O.length<=p?O:P(O),T.separator,g,C)})}))});process.env.NODE_ENV!=="production"&&(IS.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,expandText:_.string,itemsAfterCollapse:mn,itemsBeforeCollapse:mn,maxItems:mn,separator:_.node,slotProps:_.shape({collapsedIcon:_.oneOfType([_.func,_.object])}),slots:_.shape({CollapsedIcon:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function Zge(e){return ht("MuiButton",e)}const Di=ft("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"]),$S=Q.createContext({});process.env.NODE_ENV!=="production"&&($S.displayName="ButtonGroupContext");const FS=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(FS.displayName="ButtonGroupButtonContext");const Kge=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:o,loadingPosition:l,classes:u}=e,c={root:["root",o&&"loading",a,`${a}${Ie(t)}`,`size${Ie(i)}`,`${a}Size${Ie(i)}`,`color${Ie(t)}`,r&&"disableElevation",n&&"fullWidth",o&&`loadingPosition${Ie(l)}`],startIcon:["icon","startIcon",`iconSize${Ie(i)}`],endIcon:["icon","endIcon",`iconSize${Ie(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=Et(c,Zge,u);return M(M({},u),h)},zS=[{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}}}],Qge=De(na,{shouldForwardProp:e=>cl(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ie(r.color)}`],t[`size${Ie(r.size)}`],t[`${r.variant}Size${Ie(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Ft(({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 $(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"},[`&.${Di.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]},[`&.${Di.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Di.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)",[`&.${Di.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(pi()).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)`:bt(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})`:bt(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})`:bt(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})`:bt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(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"},[`&.${Di.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Di.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}),[`&.${Di.loading}`]:{color:"transparent"}}}]})})),Jge=De("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Ie(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}},...zS]})),eve=De("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Ie(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}},...zS]})),tve=De("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}}]})),J_=De("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),nl=Q.forwardRef(function(t,r){const n=Q.useContext($S),i=Q.useContext(FS),a=Ls(n,t),o=xt({props:a,name:"MuiButton"}),G=o,{children:l,color:u="primary",component:c="button",className:h,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:v,fullWidth:w=!1,id:C,loading:T=null,loadingIndicator:E,loadingPosition:S="center",size:P="medium",startIcon:O,type:N,variant:z="text"}=G,U=xe(G,["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","id","loading","loadingIndicator","loadingPosition","size","startIcon","type","variant"]),Z=Zc(C),K=E!=null?E:me.jsx(jg,{"aria-labelledby":Z,color:"inherit",size:16}),R=$(M({},o),{color:u,component:c,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:w,loading:T,loadingIndicator:K,loadingPosition:S,size:P,type:N,variant:z}),I=Kge(R),X=(O||T&&S==="start")&&me.jsx(Jge,{className:I.startIcon,ownerState:R,children:O||me.jsx(J_,{className:I.loadingIconPlaceholder,ownerState:R})}),j=(b||T&&S==="end")&&me.jsx(eve,{className:I.endIcon,ownerState:R,children:b||me.jsx(J_,{className:I.loadingIconPlaceholder,ownerState:R})}),V=i||"",W=typeof T=="boolean"?me.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:T&&me.jsx(tve,{className:I.loadingIndicator,ownerState:R,children:K})}):null;return me.jsxs(Qge,$(M({ownerState:R,className:We(n.className,I.root,h,V),component:c,disabled:f||T,focusRipple:!g,focusVisibleClassName:We(I.focusVisible,v),ref:r,type:N,id:T?Z:C},U),{classes:I,children:[X,S!=="end"&&W,l,S==="end"&&W,j]}))});process.env.NODE_ENV!=="production"&&(nl.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 rve=tt(ta)`
496
- && {
497
- position: absolute;
498
- left: 0;
499
- right: auto;
500
- margin: auto;
501
- bottom: 0;
502
- top: 0;
503
- z-index: 10;
504
- background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0) 100%);
505
- display: inline-flex;
506
-
507
- span[aria-label='prev-item'] {
508
- width: 0;
509
- height: 0;
510
- border-top: 6px solid transparent;
511
- border-bottom: 6px solid transparent;
512
- border-right: 5px solid #000;
513
- color: transparent;
514
- opacity: 0.3;
515
-
516
- &:hover {
517
- opacity: 0.8;
518
- }
519
- }
520
- }
521
- `,nve=tt(ta)`
522
- && {
523
- position: absolute;
524
- left: auto;
525
- right: 0;
526
- margin: auto;
527
- bottom: 0;
528
- top: 0;
529
- z-index: 10;
530
- background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, white 70%);
531
- display: inline-flex;
532
-
533
- span[aria-label='next-item'] {
534
- width: 0;
535
- height: 0;
536
- border-top: 6px solid transparent;
537
- border-bottom: 6px solid transparent;
538
- border-left: 5px solid #000;
539
- color: transparent;
540
- opacity: 0.3;
541
-
542
- &:hover {
543
- opacity: 0.8;
544
- }
545
- }
546
- }
547
- `,ive=({currentDimension:e,children:t})=>{const{t:r}=y.useTranslation(),n=k.useRef(null),[i,a]=k.useState(0),[o,l]=k.useState(0),[u,c]=k.useState(0),h=()=>{var b;return(b=n.current)==null?void 0:b.querySelector("ol")};k.useEffect(()=>{const b=h();if(b){const v=b.clientWidth,w=b.scrollWidth,C=b.scrollLeft;a(v),l(w),c(C)}},[e]),k.useEffect(()=>{const b=h();function v(){if(b){const T=b.clientWidth;a(T)}}function w(){if(b){const T=b.scrollLeft;c(T)}}const C=new ResizeObserver(v);return b?(C.observe(b),b.addEventListener("scroll",w),()=>{C.disconnect(),b.removeEventListener("scroll",w)}):()=>{}},[]);const f=b=>{const w="smooth",C=h();C&&C.scrollBy({left:b==="right"?200:-200,behavior:w})},p=u!=0,g=Math.floor(o-u)>i;return y.jsxs("div",{style:{position:"relative"},children:[p&&y.jsx(rve,{onClick:()=>f("left"),children:y.jsx("span",{"aria-label":"prev-item",children:r("drilldown.breadcrumbsPrev")})}),g&&y.jsx(nve,{onClick:()=>f("right"),children:y.jsx("span",{"aria-label":"next-item",children:r("drilldown.breadcrumbsNext")})}),y.jsx("div",{ref:n,children:t})]})},ave=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{const{t:i}=y.useTranslation(),a=t.name,o=tt(nl)`
548
- && {
549
- background-color: ${n.activeDrillBackgroundColor};
550
- color: ${n.primaryButtonTextColor};
551
- border-radius: 100%;
552
- border: 2px solid white;
553
- min-width: 39px;
554
- width: 39px;
555
- height: 39px;
556
- z-index: 10;
557
- padding: 7px;
558
- cursor: pointer;
559
- text-transform: none;
560
- margin-right: -5px;
561
-
562
- &:hover {
563
- background-color: ${n.activeDrillHoverBackgroundColor};
564
- color: ${n.primaryTextColor};
565
- }
566
- }
567
- `,l=tt.svg`
568
- width: 22px;
569
- height: 22px;
570
- fill: #9ea2ab;
571
- `,u=()=>y.jsx(o,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:y.jsx(l,{width:22,height:22,viewBox:"0 0 24 24",children:y.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=tt(nl)`
572
- && {
573
- position: relative;
574
- font-family: ${f=>f.theme.fontFamily};
575
- border-radius: 0;
576
- border: 1px solid ${bn};
577
- background-color: ${f=>f.theme.chartBackgroundColor};
578
- border-right: none;
579
- border-left: none;
580
- color: ${f=>f.theme.secondaryTextColor};
581
- padding-right: 1.25rem;
582
- padding-left: 1.875rem;
583
- height: 1.64rem;
584
- font-size: 13px;
585
- transition: background-color 0.2s, border-color 0.2s, color 0.2s;
586
- text-transform: none;
587
- cursor: auto;
588
- pointer-events: none;
589
- white-space: nowrap;
590
-
591
- &:hover {
592
- background-color: ${f=>f.theme.chartBackgroundColor};
593
- border: 1px solid ${bn};
594
- border-right: none;
595
- border-left: none;
596
- }
597
- }
598
- `;return{CancelButton:u,CurrentDrillButton:()=>y.jsxs(c,{theme:n,children:[a," (",i("drilldown.breadcrumbsAllSuffix"),")",y.jsx("span",{className:"flex items-center justify-between",children:y.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 ${bn}`,borderRight:`1px solid ${bn}`}})})]})}},ove={modifiers:[{name:"offset",options:{offset:[0,12]}}]},sve=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>{const{t:i}=y.useTranslation();return y.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:[y.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.members")}),y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),y.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.table")}),y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),y.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.column")}),y.jsx(Er,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]})},lve=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[i,a]=n?n[1].split("."):["",""],o=!!e;return y.jsx(Pl,{open:o,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:ove,children:e&&y.jsx(sve,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:i,currentColumn:a})})},uve=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:i,primaryButtonTextColor:a},chart:{backgroundColor:o}}}=st(),l=y.scaleBrightness(o,-.02),u=y.scaleBrightness(l,-.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:i,primaryButtonTextColor:a,chartBackgroundColor:o,activeDrillBackgroundColor:l,activeDrillHoverBackgroundColor:u}},bn="#F2F2F2",cve=tt(nl)`
599
- && {
600
- font-family: ${({theme:e})=>e.fontFamily};
601
- position: relative;
602
- border-radius: 0;
603
- border: 1px solid ${bn};
604
- border-right: none;
605
- color: ${({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor};
606
- background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor};
607
- padding-right: 1.25rem;
608
- padding-left: 1.875rem;
609
- height: 1.64rem;
610
- font-size: 13px;
611
- text-transform: none;
612
- transition: background-color 0.2s, border-color 0.2s, color 0.2s;
613
- white-space: nowrap;
614
- cursor: ${({active:e})=>e==="true"?"pointer":"auto"};
615
- margin-right: ${({active:e})=>e==="true"?"5px":"0px"};
616
-
617
- &:hover {
618
- background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor};
619
- border: 1px solid ${bn};
620
- border-right: none;
621
- }
622
-
623
- .MuiTouchRipple-root {
624
- display: none;
625
- }
626
- }
627
- `,dve=tt(IS)`
628
- .MuiBreadcrumbs-ol {
629
- flex-wrap: nowrap;
630
- overflow: hidden;
631
- }
632
- .MuiBreadcrumbs-separator {
633
- display: none;
634
- }
635
- `,hve=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:i,themeProps:a,popperParams:o,index:l})=>y.jsx(cve,{theme:a,active:e.toString(),index:l,onMouseEnter:r,onMouseLeave:n,onClick:i,children:y.jsxs("span",{className:"flex items-center justify-between",children:[y.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?y.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 ${bn}`,borderRight:`1px solid ${bn}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,y.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 ${bn}`,borderRight:`1px solid ${bn}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),BS=dl({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[i,a]=k.useState(null),[o,l]=k.useState(!1),u=uve(),{CancelButton:c,CurrentDrillButton:h}=ave({clearDrilldownSelections:r,currentDimension:t,isHovered:o,setIsHovered:l,themeProps:u}),f=v=>w=>{l(!0),a({filterDisplayValues:v,anchorEl:w.currentTarget})},p=()=>{l(!1),a(null)},g=v=>v<e.length-1,b=v=>v===e.length-2;return e.length?y.jsx("div",{"aria-label":"drilldown-breadcrumbs",children:y.jsx(ive,{currentDimension:t,children:y.jsxs(dve,{separator:null,sx:{backgroundColor:u.chartBackgroundColor,padding:"4px"},children:[y.jsx(c,{}),e.map((v,w)=>{const C=g(w),T=b(w);return y.jsx("div",{children:y.jsx(hve,{isActive:C,isLastActive:T,filterDisplayValue:v,handleMouseEnter:f(v),handleMouseLeave:p,handleClick:()=>n(w+1),themeProps:u,popperParams:i,index:w})},w)}),y.jsx(h,{}),y.jsx(lve,{popperParams:i,currentDimension:t,themeProps:u})]})})}):null}),WS=e=>{const{initialDimension:t,onDrilldownSelectionsChange:r}=e,n=k.useMemo(()=>e.drilldownPaths||[],[e.drilldownPaths]),i=k.useMemo(()=>e.initialDrilldownSelections||[],[e.initialDrilldownSelections]),{t:a}=y.useTranslation();if(!t)throw new H.TranslatableError("errors.drilldownNoInitialDimension");const[o,l]=Bg(i,{onLocalStateChange:r}),u=k.useMemo(()=>Rc(t,o),[t,o]),c=k.useMemo(()=>Ac(n,u),[n,u]),h=k.useCallback((w,C,T)=>{l(E=>HS(E,w,C,T))},[l]),f=k.useCallback(w=>{l(C=>C.slice(0,w))},[l]),p=k.useCallback(()=>{l([])},[l]),{drilldownFilters:g,drilldownFiltersDisplayValues:b,drilldownDimension:v}=k.useMemo(()=>jS(o,t,a),[o,t,a]);return{drilldownSelections:o,availableDrilldownPaths:c,drilldownFilters:g,drilldownFiltersDisplayValues:b,drilldownDimension:v,selectDrilldown:h,sliceDrilldownSelections:f,clearDrilldownSelections:p}},HS=(e,t,r,n)=>{var p,g;if(!(n!=null&&n.levels))return[...e,{points:t,nextDimension:r}];if(Or(n.levels[0],r))return[];const a=(p=e==null?void 0:e.findIndex(b=>Or(b.nextDimension,r)))!=null?p:-1;if(a!==-1)return e.slice(0,a+1);const l=(g=H.last(e))==null?void 0:g.nextDimension,u=e.length?n.levels.findIndex(b=>l&&Or(b,l)):0,c=n.levels.indexOf(r),f=n.levels.slice(u+1,c+1).map((b,v)=>({points:v===0?t:[],nextDimension:b}));return[...e,...f]},jS=(e,t,r)=>{let n=t&&y.translateColumnToAttribute(t);const i=[],a=[];return e.forEach(({points:o,nextDimension:l})=>{i.push(H.members(n,o.map(fve)));const u=o.length?o.map(VS):[`${n.name} (${r("drilldown.breadcrumbsAllSuffix")})`];a.push(u),n=l}),{drilldownFilters:i,drilldownFiltersDisplayValues:a,drilldownDimension:n}};function VS(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function fve(e){return"categoryValue"in e?`${e.categoryValue}`:""}const GS=({initialDimension:e,initialDrilldownSelections:t,openMenu:r,onDrilldownSelectionsChange:n})=>{const{t:i}=y.useTranslation(),{drilldownFilters:a,drilldownFiltersDisplayValues:o,drilldownDimension:l,drilldownSelections:u,selectDrilldown:c,sliceDrilldownSelections:h,clearDrilldownSelections:f}=WS({initialDimension:e,initialDrilldownSelections:t,onDrilldownSelectionsChange:n}),p=k.useCallback((b,v,w=[],C)=>{const T=[US(v,l),YS(w,l,(E,S)=>{C==null||C(E,S),c(v,E,S)},i)];r({id:rl.WIDGET_POINTS_DRILLDOWN,position:b,itemSections:T})},[l,i,c,r]),g=k.useMemo(()=>l&&y.jsx(BS,{filtersDisplayValues:o,currentDimension:l,clearDrilldownSelections:f,sliceDrilldownSelections:h}),[f,l,o,h]);return{drilldownDimension:l,drilldownSelections:u,drilldownFilters:a,breadcrumbs:g,openDrilldownMenu:p}};function US(e,t){const r=Dm(e.map(VS).filter(n=>!!n));return r.length>DS?{id:ho.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:t.name}:{id:ho.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:r.join(", ")}}function pve(e){return 30+12*e}function YS(e,t,r,n){const[i,a]=Dl(e,H.MetadataTypes.isAttribute.bind(H.MetadataTypes)),o=i.map(u=>({caption:u.name,onClick:()=>r(u)})),l=a.map(u=>({caption:u.title,subItems:[{items:u.levels.map((c,h)=>({caption:c.name,class:h===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${pve(h)}px`},disabled:Or(c,t),onClick:()=>r(c,u)}))}]}));return{id:ho.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:n("drilldown.drillMenuItem"),items:[...l,...o]}}function mve(e){const{_id:t,title:r,levels:n}=e;return{id:t,title:r,levels:n.map(i=>H.createDimensionalElementFromJaql(i))}}function qS(e,t,r){return qt(this,null,function*(){const i=yield new F0(e,r).getHierarchies(t);return i==null?void 0:i.map(a=>mve(a))})}function XS(){const{isInitialized:e,app:t}=Ct(),[r,n]=k.useReducer(tS,{isLoading:!1,isError:!1,isSuccess:!0,status:"success",error:void 0,data:[]}),i=k.useCallback(a=>qt(this,null,function*(){const{attribute:o,dataSource:l,drilldownPaths:u=[]}=a;if(!e||!t){const f=new H.TranslatableError("errors.noSisenseContext");throw n({type:"error",error:f}),f}const[c,h]=Dl(u,U0);if(c.length===0)return n({type:"success",data:h}),h;n({type:"loading"});try{const f=yield qS(t.httpClient,{dimension:o,dataSource:l,ids:c,alwaysIncluded:!0},t.defaultDataSource),p=f.length?[...f,...h]:h;return n({type:"success",data:p}),p}catch(f){const p=f instanceof Error?f:new Error(String(f));throw n({type:"error",error:p}),p}}),[e,t]);return $(M({},r),{drilldownPaths:r.data,synchronize:i})}function gve(e){const t=zg(e,["attribute","dataSource","drilldownPaths","enabled"]),{attribute:r,dataSource:n,drilldownPaths:i,enabled:a}=e,{drilldownPaths:o,synchronize:l}=XS();return k.useEffect(()=>{(a||a===void 0)&&t&&l({attribute:r,dataSource:n,drilldownPaths:i})},[t,a,r,n,i,l]),k.useMemo(()=>o!=null?o:[],[o])}const vve=({propsToExtend:e,onDrilldownSelectionsChange:t})=>{const{chartType:r,dataOptions:n,dataSource:i,drilldownOptions:a}=e,{drilldownSelections:o}=a||{},{openMenu:l}=Vg(),u=k.useMemo(()=>zge(r,n),[r,n]),c=k.useMemo(()=>(a==null?void 0:a.drilldownPaths)||[],[a==null?void 0:a.drilldownPaths]),h=k.useMemo(()=>{const U=H.createAttribute({name:"dummy drilldown initial attribute"});return Ige(r,n)||U},[r,n]),f=gve({attribute:h,dataSource:i,drilldownPaths:c,enabled:u}),p=k.useRef(f);k.useEffect(()=>{p.current=f},[f]);const g=k.useMemo(()=>{var Z;return(!!((Z=a==null?void 0:a.drilldownSelections)!=null&&Z.length)||!!(f!=null&&f.length))&&u},[a,u,f]),{drilldownDimension:b,drilldownFilters:v,breadcrumbs:w,openDrilldownMenu:C}=GS({initialDimension:h,initialDrilldownSelections:o,openMenu:l,onDrilldownSelectionsChange:t}),T=k.useCallback((U,Z)=>{const K=Q_(U,Z,n),R=Rc(h,o||[]),I=Ac(p.current,R);C({left:Z.clientX,top:Z.clientY},K,I)},[n,h,o,C]),E=k.useCallback((U,Z)=>{const K=Q_([U],Z,n),R=Rc(h,o||[]),I=Ac(p.current,R);C({left:Z.clientX,top:Z.clientY},K,I)},[n,h,o,C]),S=k.useMemo(()=>NS(r,n,b),[r,n,b]),P=k.useMemo(()=>v.length?H.mergeFiltersOrFilterRelations(e.filters||[],v):e.filters,[e.filters,v]),O=k.useMemo(()=>y.combineHandlers([T,e.onDataPointsSelected]),[T,e.onDataPointsSelected]),N=k.useMemo(()=>y.combineHandlers([E,e.onDataPointContextMenu]),[E,e.onDataPointContextMenu]);return{propsWithDrilldown:$(M({},e),{dataOptions:S,filters:P,onDataPointsSelected:O,onDataPointContextMenu:N}),isDrilldownEnabled:g,breadcrumbs:w}},yve=dl({componentName:"ChartWidget"})(e=>{var U,Z,K;const{app:t}=Ct(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:i,styleOptions:a,highlightSelectionDisabled:o=!1,highlights:l,description:u,onChange:c}=e,{width:h,height:f}=a||{},p=k.useMemo(()=>{var R;return nw(r,{hasHeader:!((R=a==null?void 0:a.header)!=null&&R.hidden)})},[r,(U=a==null?void 0:a.header)==null?void 0:U.hidden]),g=k.useMemo(()=>({width:h,height:f}),[h,f]),[b,v]=k.useState(0),w=k.useMemo(()=>H.omit(a,["width","height"]),[a]),C=k.useCallback(R=>{c==null||c({drilldownOptions:$(M({},e.drilldownOptions),{drilldownSelections:R})})},[c,e.drilldownOptions]),{propsWithDrilldown:T,isDrilldownEnabled:E,breadcrumbs:S}=vve({propsToExtend:e,onDrilldownSelectionsChange:C}),P=O0e({chartType:r,dataOptions:i,enabled:!o&&!E&&!(l!=null&&l.length)}),O=(Z=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:Z.enabled,N=k.useCallback(R=>{var I;return O?$(M({},R),{accessibility:$(M({},R.accessibility),{description:u!=null?u:(I=R.accessibility)==null?void 0:I.description})}):R},[u,O]);if(!r||!i)return null;const z=$(M({},T),{dataSet:n,styleOptions:w,refreshCounter:b,onDataPointClick:k.useMemo(()=>y.combineHandlers([P.onDataPointClick,e.onDataPointClick]),[P.onDataPointClick,e.onDataPointClick]),onDataPointContextMenu:T.onDataPointContextMenu,onDataPointsSelected:k.useMemo(()=>y.combineHandlers([P.onDataPointsSelected,T.onDataPointsSelected]),[P.onDataPointsSelected,T.onDataPointsSelected]),onBeforeRender:k.useMemo(()=>y.combineHandlers([N,P.onBeforeRender,e.onBeforeRender],!0),[N,P.onBeforeRender,e.onBeforeRender])});return y.jsx(Qc,{defaultSize:p,size:g,children:y.jsx(MS,$(M({},e),{headerConfig:(K=e.config)==null?void 0:K.header,topSlot:y.jsxs(y.Fragment,{children:[e.topSlot,S]}),dataSetName:n&&H.getDataSourceName(n),onRefresh:()=>v(b+1),children:y.jsx(ZM,M({},z))}))})});class No{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 il=typeof window=="undefined"||"Deno"in window;function jr(){}function bve(e,t){return typeof e=="function"?e(t):e}function Nm(e){return typeof e=="number"&&e>=0&&e!==1/0}function ZS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _s(e,t,r){return Ll(e)?typeof t=="function"?$(M({},r),{queryKey:e,queryFn:t}):$(M({},t),{queryKey:e}):e}function _ve(e,t,r){return Ll(e)?$(M({},t),{mutationKey:e}):typeof e=="function"?$(M({},t),{mutationFn:e}):M({},e)}function ai(e,t,r){return Ll(e)?[$(M({},t),{queryKey:e}),r]:[e||{},t]}function e2(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:l}=e;if(Ll(o)){if(n){if(t.queryHash!==Ug(o,t.options))return!1}else if(!qa(t.queryKey,o))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i!="undefined"&&i!==t.state.fetchStatus||a&&!a(t))}function t2(e,t){const{exact:r,fetching:n,predicate:i,mutationKey:a}=e;if(Ll(a)){if(!t.options.mutationKey)return!1;if(r){if(Wi(t.options.mutationKey)!==Wi(a))return!1}else if(!qa(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function Ug(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wi)(e)}function Wi(e){return JSON.stringify(e,(t,r)=>Lm(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function qa(e,t){return KS(e,t)}function KS(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!KS(e[r],t[r])):!1}function QS(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=r2(e)&&r2(t);if(n||Lm(e)&&Lm(t)){const i=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),o=a.length,l=n?[]:{};let u=0;for(let c=0;c<o;c++){const h=n?c:a[c];l[h]=QS(e[h],t[h],r+1),l[h]===e[h]&&u++}return i===o&&u===i?e:l}return t}function Oc(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function r2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Lm(e){if(!n2(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!n2(r)||!r.hasOwnProperty("isPrototypeOf"))}function n2(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ll(e){return Array.isArray(e)}function JS(e){return new Promise(t=>{setTimeout(t,e)})}function i2(e){JS(0).then(e)}function wve(){if(typeof AbortController=="function")return new AbortController}function Im(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?QS(e,t):t}class xve extends No{constructor(){super(),this.setup=t=>{if(!il&&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 kc=new xve,a2=["online","offline"];class Cve extends No{constructor(){super(),this.setup=t=>{if(!il&&window.addEventListener){const r=()=>t();return a2.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{a2.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 Dc=new Cve;function Tve(e){return Math.min(1e3*cn(2,e),3e4)}function Zd(e){return(e!=null?e:"online")==="online"?Dc.isOnline():!0}class eE{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ku(e){return e instanceof eE}function tE(e){let t=!1,r=0,n=!1,i,a,o;const l=new Promise((w,C)=>{a=w,o=C}),u=w=>{n||(g(new eE(w)),e.abort==null||e.abort())},c=()=>{t=!0},h=()=>{t=!1},f=()=>!kc.isFocused()||e.networkMode!=="always"&&!Dc.isOnline(),p=w=>{n||(n=!0,e.onSuccess==null||e.onSuccess(w),i==null||i(),a(w))},g=w=>{n||(n=!0,e.onError==null||e.onError(w),i==null||i(),o(w))},b=()=>new Promise(w=>{i=C=>{const T=n||!f();return T&&w(C),T},e.onPause==null||e.onPause()}).then(()=>{i=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let w;try{w=e.fn()}catch(C){w=Promise.reject(C)}Promise.resolve(w).then(p).catch(C=>{var T,E;if(n)return;const S=(T=e.retry)!=null?T:3,P=(E=e.retryDelay)!=null?E:Tve,O=typeof P=="function"?P(r,C):P,N=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,C);if(t||!N){g(C);return}r++,e.onFail==null||e.onFail(r,C),JS(O).then(()=>{if(f())return b()}).then(()=>{t?g(C):v()})})};return Zd(e.networkMode)?v():b().then(v),{promise:l,cancel:u,continue:()=>(i==null?void 0:i())?l:Promise.resolve(),cancelRetry:c,continueRetry:h}}const Yg=console;function Mve(){let e=[],t=0,r=h=>{h()},n=h=>{h()};const i=h=>{let f;t++;try{f=h()}finally{t--,t||l()}return f},a=h=>{t?e.push(h):i2(()=>{r(h)})},o=h=>(...f)=>{a(()=>{h(...f)})},l=()=>{const h=e;e=[],h.length&&i2(()=>{n(()=>{h.forEach(f=>{r(f)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h}}}const $t=Mve();class rE{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nm(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:il?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Sve extends rE{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Yg,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||Eve(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=Im(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(jr).catch(jr):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||!ZS(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 g=this.observers.find(b=>b.options.queryFn);g&&this.setOptions(g.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=wve(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};u(l);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(u(h),(n=this.options.behavior)==null||n.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=h.fetchOptions)==null?void 0:i.meta)){var f;this.dispatch({type:"fetch",meta:(f=h.fetchOptions)==null?void 0:f.meta})}const p=g=>{if(Ku(g)&&g.silent||this.dispatch({type:"error",error:g}),!Ku(g)){var b,v,w,C;(b=(v=this.cache.config).onError)==null||b.call(v,g,this),(w=(C=this.cache.config).onSettled)==null||w.call(C,this.state.data,g,this),process.env.NODE_ENV!=="production"&&this.logger.error(g)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=tE({fn:h.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:g=>{var b,v,w,C;if(typeof g=="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(g),(b=(v=this.cache.config).onSuccess)==null||b.call(v,g,this),(w=(C=this.cache.config).onSettled)==null||w.call(C,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(g,b)=>{this.dispatch({type:"failed",failureCount:g,error:b})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var i,a;switch(t.type){case"failed":return $(M({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return $(M({},n),{fetchStatus:"paused"});case"continue":return $(M({},n),{fetchStatus:"fetching"});case"fetch":return M($(M({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Zd(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return M($(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 Ku(o)&&o.revert&&this.revertState?$(M({},this.revertState),{fetchStatus:"idle"}):$(M({},n),{error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return $(M({},n),{isInvalidated:!0});case"setState":return M(M({},n),t.state)}};this.state=r(this.state),$t.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function Eve(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 Pve extends No{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:Ug(a,r);let l=this.get(o);return l||(l=new Sve({cache:this,logger:t.getLogger(),queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}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(){$t.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=ai(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(i=>e2(n,i))}findAll(t,r){const[n]=ai(t,r);return Object.keys(n).length>0?this.queries.filter(i=>e2(n,i)):this.queries}notify(t){$t.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){$t.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){$t.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class Ave extends rE{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Yg,this.observers=[],this.state=t.state||nE(),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 qt(this,null,function*(){const t=()=>{var N;return this.retryer=tE({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(z,U)=>{this.dispatch({type:"failed",failureCount:z,error:U})},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,l,u,c,h;if(!r){var f,p,g,b;this.dispatch({type:"loading",variables:this.options.variables}),yield(f=(p=this.mutationCache.config).onMutate)==null?void 0:f.call(p,this.state.variables,this);const z=yield(g=(b=this.options).onMutate)==null?void 0:g.call(b,this.state.variables);z!==this.state.context&&this.dispatch({type:"loading",context:z,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(l=(u=this.mutationCache.config).onSettled)==null?void 0:l.call(u,N,null,this.state.variables,this.state.context,this),yield(c=(h=this.options).onSettled)==null?void 0:c.call(h,N,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:N}),N}catch(N){try{var v,w,C,T,E,S,P,O;throw yield(v=(w=this.mutationCache.config).onError)==null?void 0:v.call(w,N,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(N),yield(C=(T=this.options).onError)==null?void 0:C.call(T,N,this.state.variables,this.state.context),yield(E=(S=this.mutationCache.config).onSettled)==null?void 0:E.call(S,void 0,N,this.state.variables,this.state.context,this),yield(P=(O=this.options).onSettled)==null?void 0:P.call(O,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 $(M({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return $(M({},n),{isPaused:!0});case"continue":return $(M({},n),{isPaused:!1});case"loading":return $(M({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Zd(this.options.networkMode),status:"loading",variables:t.variables});case"success":return $(M({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return $(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),$t.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function nE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Rve extends No{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const i=new Ave({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(){$t.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=>t2(t,r))}findAll(t){return this.mutations.filter(r=>t2(t,r))}notify(t){$t.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 $t.batch(()=>r.reduce((n,i)=>n.then(()=>i.continue().catch(jr)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Ove(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,a,o;const l=(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,h=(u==null?void 0:u.direction)==="forward",f=(u==null?void 0:u.direction)==="backward",p=((a=e.state.data)==null?void 0:a.pages)||[],g=((o=e.state.data)==null?void 0:o.pageParams)||[];let b=g,v=!1;const w=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>{var N;if((N=e.signal)!=null&&N.aborted)v=!0;else{var z;(z=e.signal)==null||z.addEventListener("abort",()=>{v=!0})}return e.signal}})},C=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),T=(O,N,z,U)=>(b=U?[N,...b]:[...b,N],U?[z,...O]:[...O,z]),E=(O,N,z,U)=>{if(v)return Promise.reject("Cancelled");if(typeof z=="undefined"&&!N&&O.length)return Promise.resolve(O);const Z={queryKey:e.queryKey,pageParam:z,meta:e.options.meta};w(Z);const K=C(Z);return Promise.resolve(K).then(I=>T(O,z,I,U))};let S;if(!p.length)S=E([]);else if(h){const O=typeof c!="undefined",N=O?c:o2(e.options,p);S=E(p,O,N)}else if(f){const O=typeof c!="undefined",N=O?c:kve(e.options,p);S=E(p,O,N,!0)}else{b=[];const O=typeof e.options.getNextPageParam=="undefined";S=(l&&p[0]?l(p[0],0,p):!0)?E([],O,g[0]):Promise.resolve(T([],g[0],p[0]));for(let z=1;z<p.length;z++)S=S.then(U=>{if(l&&p[z]?l(p[z],z,p):!0){const K=O?g[z]:o2(e.options,U);return E(U,O,K)}return Promise.resolve(T(U,g[z],p[z]))})}return S.then(O=>({pages:O,pageParams:b}))}}}}function o2(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function kve(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Dve{constructor(t={}){this.queryCache=t.queryCache||new Pve,this.mutationCache=t.mutationCache||new Rve,this.logger=t.logger||Yg,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=kc.subscribe(()=>{kc.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Dc.subscribe(()=>{Dc.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]=ai(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll($(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=_s(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=bve(r,a);if(typeof o=="undefined")return;const l=_s(t),u=this.defaultQueryOptions(l);return this.queryCache.build(this,u).setData(o,$(M({},n),{manual:!0}))}setQueriesData(t,r,n){return $t.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]=ai(t,r),i=this.queryCache;$t.batch(()=>{i.findAll(n).forEach(a=>{i.remove(a)})})}resetQueries(t,r,n){const[i,a]=ai(t,r,n),o=this.queryCache,l=M({type:"active"},i);return $t.batch(()=>(o.findAll(i).forEach(u=>{u.reset()}),this.refetchQueries(l,a)))}cancelQueries(t,r,n){const[i,a={}]=ai(t,r,n);typeof a.revert=="undefined"&&(a.revert=!0);const o=$t.batch(()=>this.queryCache.findAll(i).map(l=>l.cancel(a)));return Promise.all(o).then(jr).catch(jr)}invalidateQueries(t,r,n){const[i,a]=ai(t,r,n);return $t.batch(()=>{var o,l;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const u=$(M({},i),{type:(o=(l=i.refetchType)!=null?l:i.type)!=null?o:"active"});return this.refetchQueries(u,a)})}refetchQueries(t,r,n){const[i,a]=ai(t,r,n),o=$t.batch(()=>this.queryCache.findAll(i).filter(u=>!u.isDisabled()).map(u=>{var c;return u.fetch(void 0,$(M({},a),{cancelRefetch:(c=a==null?void 0:a.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}}))}));let l=Promise.all(o).then(jr);return a!=null&&a.throwOnError||(l=l.catch(jr)),l}fetchQuery(t,r,n){const i=_s(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(jr).catch(jr)}fetchInfiniteQuery(t,r,n){const i=_s(t,r,n);return i.behavior=Ove(),this.fetchQuery(i)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(jr).catch(jr)}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=>Wi(t)===Wi(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>qa(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(i=>qa(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=>Wi(t)===Wi(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>qa(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(i=>qa(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=$(M(M(M({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=Ug(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:$(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 Nve extends No{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),s2(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $m(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $m(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"),Oc(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&&l2(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 Ive(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($(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($(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(jr)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),il||this.currentResult.isStale||!Nm(this.options.staleTime))return;const r=ZS(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,!(il||this.options.enabled===!1||!Nm(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||kc.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,l=this.currentResultOptions,u=t!==n,c=u?t.state:this.currentQueryInitialState,h=u?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:p,error:g,errorUpdatedAt:b,fetchStatus:v,status:w}=f,C=!1,T=!1,E;if(r._optimisticResults){const z=this.hasListeners(),U=!z&&s2(t,r),Z=z&&l2(t,n,r,i);(U||Z)&&(v=Zd(t.options.networkMode)?"fetching":"paused",p||(w="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!f.dataUpdatedAt&&h!=null&&h.isSuccess&&w!=="error")E=h.data,p=h.dataUpdatedAt,w=h.status,C=!0;else if(r.select&&typeof f.data!="undefined")if(a&&f.data===(o==null?void 0:o.data)&&r.select===this.selectFn)E=this.selectResult;else try{this.selectFn=r.select,E=r.select(f.data),E=Im(a==null?void 0:a.data,E,r),this.selectResult=E,this.selectError=null}catch(z){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(z),this.selectError=z}else E=f.data;if(typeof r.placeholderData!="undefined"&&typeof E=="undefined"&&w==="loading"){let z;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))z=a.data;else if(z=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof z!="undefined")try{z=r.select(z),this.selectError=null}catch(U){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(U),this.selectError=U}typeof z!="undefined"&&(w="success",E=Im(a==null?void 0:a.data,z,r),T=!0)}this.selectError&&(g=this.selectError,E=this.selectResult,b=Date.now(),w="error");const S=v==="fetching",P=w==="loading",O=w==="error";return{status:w,fetchStatus:v,isLoading:P,isSuccess:w==="success",isError:O,isInitialLoading:P&&S,data:E,dataUpdatedAt:p,error:g,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!P,isLoadingError:O&&f.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:T,isPreviousData:C,isRefetchError:O&&f.dataUpdatedAt!==0,isStale:qg(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,Oc(n,r))return;this.currentResult=n;const i={cache:!0},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!this.trackedProps.size)return!0;const u=new Set(l!=null?l:this.trackedProps);return this.options.useErrorBoundary&&u.add("error"),Object.keys(this.currentResult).some(c=>{const h=c;return this.currentResult[h]!==r[h]&&u.has(h)})};(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"&&!Ku(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){$t.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,l,u,c;(o=(l=this.options).onError)==null||o.call(l,this.currentResult.error),(u=(c=this.options).onSettled)==null||u.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Lve(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function s2(e,t){return Lve(e,t)||e.state.dataUpdatedAt>0&&$m(e,t,t.refetchOnMount)}function $m(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&qg(e,t)}return!1}function l2(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&qg(e,r)}function qg(e,t){return e.isStaleByTime(t.staleTime)}function Ive(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!Oc(e.getCurrentResult(),t)}var Fm={exports:{}},Sf={};/**
636
- * @license React
637
- * use-sync-external-store-shim.production.js
638
- *
639
- * Copyright (c) Meta Platforms, Inc. and affiliates.
640
- *
641
- * This source code is licensed under the MIT license found in the
642
- * LICENSE file in the root directory of this source tree.
643
- */var u2;function $ve(){if(u2)return Sf;u2=1;var e=k;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function l(f,p){var g=p(),b=n({inst:{value:g,getSnapshot:p}}),v=b[0].inst,w=b[1];return a(function(){v.value=g,v.getSnapshot=p,u(v)&&w({inst:v})},[f,g,p]),i(function(){return u(v)&&w({inst:v}),f(function(){u(v)&&w({inst:v})})},[f]),o(g),g}function u(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!r(f,g)}catch(b){return!0}}function c(f,p){return p()}var h=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c:l;return Sf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Sf}var Ef={};/**
644
- * @license React
645
- * use-sync-external-store-shim.development.js
646
- *
647
- * Copyright (c) Meta Platforms, Inc. and affiliates.
648
- *
649
- * This source code is licensed under the MIT license found in the
650
- * LICENSE file in the root directory of this source tree.
651
- */var c2;function Fve(){return c2||(c2=1,process.env.NODE_ENV!=="production"&&function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){h||i.startTransition===void 0||(h=!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 v=b();if(!f){var w=b();a(v,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=o({inst:{value:v,getSnapshot:b}});var C=w[0].inst,T=w[1];return u(function(){C.value=v,C.getSnapshot=b,r(C)&&T({inst:C})},[g,v,b]),l(function(){return r(C)&&T({inst:C}),g(function(){r(C)&&T({inst:C})})},[g]),c(v),v}function r(g){var b=g.getSnapshot;g=g.value;try{var v=b();return!a(g,v)}catch(w){return!0}}function n(g,b){return b()}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,l=i.useEffect,u=i.useLayoutEffect,c=i.useDebugValue,h=!1,f=!1,p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?n:t;Ef.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())}()),Ef}process.env.NODE_ENV==="production"?Fm.exports=$ve():Fm.exports=Fve();var zve=Fm.exports;const iE=zve.useSyncExternalStore,d2=Q.createContext(void 0),aE=Q.createContext(!1);function oE(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=d2),window.ReactQueryClientContext):d2)}const sE=({context:e}={})=>{const t=Q.useContext(oE(e,Q.useContext(aE)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bve=({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=oE(r,n);return Q.createElement(aE.Provider,{value:!r&&n},Q.createElement(i.Provider,{value:e},t))},Wve=Q.createContext(!1),Hve=()=>Q.useContext(Wve);function jve(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Vve=Q.createContext(jve()),Gve=()=>Q.useContext(Vve);function lE(e,t){return typeof e=="function"?e(...t):!!e}const Uve=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},Yve=e=>{Q.useEffect(()=>{e.clearReset()},[e])},qve=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&lE(r,[e.error,n]),Xve=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},Zve=(e,t)=>e.isLoading&&e.isFetching&&!t,Kve=(e,t,r)=>(e==null?void 0:e.suspense)&&Zve(t,r),Qve=(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 Jve(e,t){const r=sE({context:e.context}),n=Hve(),i=Gve(),a=r.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=$t.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=$t.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=$t.batchCalls(a.onSettled)),Xve(a),Uve(a,i),Yve(i);const[o]=Q.useState(()=>new t(r,a)),l=o.getOptimisticResult(a);if(iE(Q.useCallback(u=>{const c=n?()=>{}:o.subscribe($t.batchCalls(u));return o.updateResult(),c},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),Q.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),Kve(a,l,n))throw Qve(a,o,i);if(qve({result:l,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw l.error;return a.notifyOnChangeProps?l:o.trackResult(l)}function eye(e,t,r){const n=_s(e,t,r);return Jve(n,Nve)}function tye(e){const t={};return{flatFilters:e.reduce((n,i)=>(H.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 uE(e,t,r){const n=t.filter(H.isCascadingFilter);return nye(e,n).map(a=>{if(rye(a)){const o=n.find(u=>u.config.guid===a.groupId);if(!o)throw new H.TranslatableError("errors.cascadingFilterOriginalNotFound");const l=r==null?void 0:r.shouldResetFiltersDeeperThanModified;return iye(a,o,{shouldResetFiltersDeeperThanModified:l})}return a})}function rye(e){return"groupId"in e}function nye(e,t){const r=[];return e.forEach(n=>{const i=t.find(a=>a.filters.some(o=>H.getFilterCompareId(o)===H.getFilterCompareId(n)));if(i){const a=i.config.guid,o=r.find(l=>"groupId"in l&&l.groupId===a);o?o.filters.push(n):r.push({groupId:a,filters:[n],previousFilters:i.filters})}else r.push(n)}),r}function iye(e,t,r){const n=r!=null&&r.shouldResetFiltersDeeperThanModified?sye(e.filters,e.previousFilters):e.filters,i=aye(n,t.config.disabled);return H.cascading(n,{guid:t.config.guid,disabled:i})}function aye(e,t){return e.some(n=>n.config.disabled!==t)?!t:t}function oye(e,t,r){const{flatFilters:n,cascadingToPureFiltersMap:i}=tye(e);return{pureFilters:n,updateFilters:o=>{const l=uE(o,e,{shouldResetFiltersDeeperThanModified:!0});t(l)},pureFiltersIgnoringRules:lye(r,i)}}function sye(e,t){const r=e.reduce((n,i,a)=>{const o=t.find(l=>Hg(l,i));return o&&!kS(i,o)?a:n},-1);return r===-1?e:e.map((n,i)=>i>r?qd(n):n)}function lye(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 uye=tt.button`
652
- color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
653
- background: none;
654
- font-size: 13px;
655
- border: none;
656
- height: 26px;
657
- padding: 0 6px 0 2px;
658
- margin: 0 4px 0 4px;
659
- border-radius: 4px;
660
- cursor: pointer;
661
- display: flex;
662
- align-items: center;
663
- justify-content: center;
664
- &:hover {
665
- background-color: rgba(247, 247, 247, 1);
666
- }
667
- `,cye=tt.span`
668
- color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
669
- display: inline-block;
670
- padding-top: 3px;
671
- white-space: nowrap;
672
- `,dye=({onClick:e})=>{var n;const{themeSettings:t}=st(),{t:r}=y.useTranslation();return y.jsxs(uye,{onClick:e,theme:t,children:[y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:y.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"})}),y.jsx(cye,{theme:t,children:r("commonFilter.clearSelectionButton")})]})},h2={applyMode:Nl.HIGHLIGHT,shouldAffectFilters:!0,ignoreFilters:{all:!1,ids:[]},forceApplyBackgroundFilters:!0};function hye(e,t){return e==="table"?{applyMode:Nl.FILTER,shouldAffectFilters:!1,ignoreFilters:H.merge$1(h2.ignoreFilters,t.ignoreFilters||{})}:H.merge$1(h2,t)}function fye(e,t,r,n,i,a,o){const l={},u=hye(r,i),{pureFilters:c,updateFilters:h,pureFiltersIgnoringRules:f}=oye(e,t,u.ignoreFilters||{}),p=c.filter(E=>!E.config.disabled),g=bge(p,f),b=Xd(r,n),v=u.shouldAffectFilters&&b.length,[w,C]=mye(g,b,u.applyMode),T=u.forceApplyBackgroundFilters?H.mergeFilters(pye(c),w):w;if(l.filters=T,l.highlights=C,l.onDataPointsSelected=(E,S)=>{const P=[];if(v){const O=Z_(r,n,E);O&&P.push(O);const N=Zu(r,n,E),{filters:z,isSelection:U}=Mf(N,c,!0),Z=a(U?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),K=K_(Z,()=>{h(H.mergeFilters(c,z))});P.push(K)}P.length&&(o==null||o({id:rl.WIDGET_POINTS_CROSSFILTERING,position:{left:S.clientX,top:S.clientY},itemSections:P}))},l.onDataPointContextMenu=(E,S)=>{const P=[];if(v){const O=Z_(r,n,[E]);O&&P.push(O);const N=Zu(r,n,[E]);if(!N.length)return;const{filters:z,isSelection:U}=Mf(N,c,!0),Z=a(U?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),K=K_(Z,()=>{h(H.mergeFilters(c,z))});P.push(K)}P.length&&(o==null||o({id:rl.WIDGET_POINTS_CROSSFILTERING,position:{left:S.clientX,top:S.clientY},itemSections:P}))},v){l.onDataPointClick=O=>{const N=Zu(r,n,[O]),{filters:z}=Mf(N,c);h(H.mergeFilters(c,z))};const E=p.filter(O=>b==null?void 0:b.some(N=>H.isMembersFilter(O)&&Or(O.attribute,N)&&!Wg(O)&&!O.config.locked)),S=!!E.length,P=()=>{const O=E.map(qd);h(H.mergeFilters(c,O))};S&&(l.renderToolbar=(O,N)=>{const z=b.map(({expression:U})=>U).join(";");return y.jsxs("div",{style:{display:"flex"},children:[y.jsx(dye,{onClick:P}),N]},z)})}return l}function pye(e){return e.map(t=>{var r;return(r=t.config)==null?void 0:r.backgroundFilter}).filter(t=>!!t)}function mye(e,t,r){if(r===Nl.HIGHLIGHT){const[n,i]=Dl(e,o=>t.every(l=>!Or(l,o.attribute))),a=i.filter(o=>!Wg(o));return[n,a]}return[e,[]]}function gye(e,t){const r=k.useRef(void 0),[n,i]=Bg(k.useMemo(()=>H.splitFiltersAndRelations(e),[e]),{onLocalStateChange:k.useCallback(g=>{const{filters:b,relations:v}=g;if(t){const w=H.combineFiltersAndRelations(b,v);H.isEqual(r.current,w)||(r.current=w,t(w))}},[t])}),{filters:a,relations:o}=n,l=k.useMemo(()=>H.combineFiltersAndRelations(a,o),[a,o]),u=k.useCallback(g=>{if(H.isFilterRelations(g)){const{filters:b,relations:v}=H.splitFiltersAndRelations(g);i({filters:b||[],relations:v||null})}else i({filters:g,relations:null})},[i]),c=k.useCallback(g=>{const b=H.mergeFilters(a,[g]);i({filters:b,relations:H.calculateNewRelations(a,o,b)})},[a,o,i]),h=k.useCallback(g=>{i({filters:g,relations:H.calculateNewRelations(a,o,g)})},[a,o,i]),f=k.useMemo(()=>a.some(g=>H.isCascadingFilter(g)),[a]),p=k.useCallback(g=>{if(!o)return g;const b=f?uE(g,a):g,v=H.calculateNewRelations(a,o,b);return H.combineFiltersAndRelations(b,v)},[f,a,o]);return{regularFilters:a,addFilter:c,filtersOrFilterRelations:l,setFiltersOrFilterRelations:u,setFilters:h,applyRelationsToOtherFilters:p}}const vye=({initialFilters:e=[],openMenu:t,onBeforeMenuOpen:r,onFiltersChange:n}={})=>{const{t:i}=y.useTranslation(),{filtersOrFilterRelations:a,regularFilters:o,addFilter:l,setFiltersOrFilterRelations:u,setFilters:c,applyRelationsToOtherFilters:h}=gye(e,n),f=k.useCallback((p,g={})=>{if(y.isTextWidgetProps(p))return p;const b=y.getInternalWidgetType(p),v=p,w=H.cloneDeep(p),C=_ge(p),T=fye(o,c,b,C,g,i,t);return w.highlights=H.mergeFilters(T.highlights,v.highlights),w.onBeforeMenuOpen=r,w.filters=h(H.mergeFilters(T.filters,H.getFiltersArray(v.filters))),T.onDataPointClick&&y.registerDataPointClickHandler(w,T.onDataPointClick),T.onDataPointsSelected&&y.registerDataPointsSelectedHandler(w,T.onDataPointsSelected),T.onDataPointContextMenu&&y.registerDataPointContextMenuHandler(w,T.onDataPointContextMenu),T.renderToolbar&&y.registerRenderToolbarHandler(w,T.renderToolbar),w},[o,c,i,t,r,h]);return{filters:a,setFilters:u,addFilter:l,connectToWidgetProps:f}};exports.ArrowIcon=Np;exports.Backdrop=g0;exports.Button=nl;exports.ButtonBase=na;exports.CONTEXT_MENU_SELECTED_WITH_DOT_CLASS=_k;exports.Chart=ZM;exports.ChartWidget=yve;exports.ColorFormatType=mD;exports.CommonFiltersApplyMode=Nl;exports.ContextMenu=dw;exports.DEFAULT_HYPERLINK_COLOR=l0;exports.DEFAULT_PIVOT_TABLE_SIZE=rw;exports.DEFAULT_TABLE_ROWS_PER_PAGE=VM;exports.DEFAULT_WIDGET_HEADER_HEIGHT=tw;exports.DatePeriod=xx;exports.DoubleArrowIcon=Lp;exports.DrilldownBreadcrumbs=BS;exports.DynamicSizeContainer=Qc;exports.EMPTY_PIVOT_QUERY_RESULT_DATA=WR;exports.ElementStates=Mw;exports.ErrorBoundary=Pm;exports.ErrorBoundary$1=sw;exports.ErrorBoundaryBox=c0;exports.ExclamationMarkIcon=ow;exports.Fade=m0;exports.I18nProvider=iw;exports.IconButton=ta;exports.JaqlDataType=gD;exports.LEGACY_DESIGN_TYPES=fs;exports.List=f0;exports.ListContext=$s;exports.LoadingDots=gw;exports.LoadingOverlay=oi;exports.Menu=nd;exports.MenuButton=xS;exports.MenuIds=rl;exports.MenuItem=td;exports.MenuList=p0;exports.MenuProvider=hw;exports.MenuSectionIds=ho;exports.Modal=v0;exports.ModalProvider=fw;exports.NoResultsOverlay=x0;exports.PAGES_BATCH_SIZE=GM;exports.PanelType=fD;exports.Paper=rd;exports.PluginsPanelFields=yD;exports.PluginsTypesFields=vD;exports.Popover=_0;exports.Popper=Pl;exports.PropTypes=_;exports.QueryClient=Dve;exports.QueryClientProvider=Bve;exports.RestApi=F0;exports.RestApiNotReadyError=aH;exports.SisenseContext=Zm;exports.SortingDirection=pD;exports.Subscribable=No;exports.TableComponent=UM;exports.ThemeContext=u0;exports.ThemeProvider=Sw;exports.ThreeDotsIcon=wS;exports.Tooltip=_d;exports.Transition=tn;exports.Typography=Er;exports.UserType=Aw;exports.WidgetContainer=MS;exports.WidgetMenuButton=CS;exports.WidgetSpaceAround=Gg;exports._extends=Ns;exports._typeof=gc;exports.alpha=bt;exports.applyDrilldownDimensionToPivot=AS;exports.areFiltersEqual=JM;exports.asSisenseComponent=dl;exports.basePickBy=Pw;exports.baseUniq=K0;exports.boxWhiskerProcessResult=jY;exports.camelCase=vS;exports.capitalize=Ie;exports.classNames=Ys;exports.clearMembersFilter=qd;exports.cloneFilterAndToggleDisabled=wme;exports.clsx=We;exports.composeClasses=Et;exports.convertToThemeSettings=ww;exports.createCaseFirst=rS;exports.createChainedFunction=Nf;exports.createFormatter=It;exports.createHeaderCellValueFormatter=YW;exports.createLevelAttribute=Ox;exports.createPanelColorFormat=wD;exports.createSimplePaletteValueFilter=pi;exports.createStyled=O2;exports.createSvgIcon=mo;exports.createTheme=Xc;exports.createUnarySpacing=Hc;exports.createValueColorOptions=Rw;exports.createValueToColorMap=Ow;exports.createValueToColorMultiColumnsMap=xD;exports.css=qc;exports.darken=Lc;exports.dataLoadStateReducer=tS;exports.debounce=Ime;exports.deepmerge=mr;exports.defaultDateConfig=bl;exports.duration=H2;exports.elementAcceptingRef=ra;exports.elementTypeAcceptingRef=Hm;exports.exactProp=Vm;exports.extendSxProp=T2;exports.formatDateValue=_l;exports.formatDatetimeString=$0;exports.generateUtilityClass=ht;exports.generateUtilityClasses=ft;exports.getAvailableDrilldownPaths=Ac;exports.getBaseDateFnsLocale=yl;exports.getChartDefaultSize=Jc;exports.getDataOptionByLocation=ES;exports.getDataPointMetadata=Ve;exports.getDefaultDateMask=VW;exports.getDefaultOptions=k0;exports.getDefaultState=nE;exports.getDefaultThemeSettings=ac;exports.getDrilldownMenuItems=YS;exports.getHierarchyModels=qS;exports.getInitialDimensionLocation=PS;exports.getLegacyPalette=Tw;exports.getListItemTextUtilityClass=vO;exports.getNonceFromMetaTag=mw;exports.getNumberFormatConfig=Px;exports.getPaletteName=xw;exports.getPivotDataOptionByJaqlIndex=Ex;exports.getPivotDataOptionIdByJaqlIndex=GW;exports.getReactElementRef=po;exports.getSelectedDrilldownAttributes=Rc;exports.getSelectionTitleMenuItem=US;exports.getTableAttributesAndMeasures=XC;exports.getThemeSettingsByOid=Cw;exports.getTransitionProps=Fs;exports.getTranslatedDataOptions=FC;exports.getValue=fo;exports.getWidgetDefaultSize=nw;exports.handleBreakpoints=Cn;exports.isDrilldownApplicableToPivot=yge;exports.isFiltersChanged=QM;exports.isPropValid=M2;exports.isRelationsChanged=Sme;exports.isSameAttribute=Or;exports.isString=U0;exports.isThemeOid=Iu;exports.lighten=Ic;exports.listItemTextClasses=Bf;exports.locale=Op;exports.memoTheme=Ft;exports.mergeBreakpointsInOrder=X3;exports.notifyManager=$t;exports.ownerDocument=kr;exports.parseDataTableDateValue=MW;exports.parseMutationArgs=_ve;exports.partition=Dl;exports.processDrilldownSelections=jS;exports.refType=al;exports.resolveBreakpointValues=K3;exports.resolveProps=Ls;exports.rootShouldForwardProp=cl;exports.shallowEqualObjects=Oc;exports.shouldSkipSisenseContextWaiting=XM;exports.shouldThrowError=lE;exports.startOfPeriod=TW;exports.startOfUTCWeek=Rp;exports.styled=tt;exports.styled$1=De;exports.toDate=Ir;exports.trackHook=Eme;exports.translatePivotTableDataOptions=xY;exports.translateTableDataOptions=MC;exports.typographyClasses=hO;exports.updateDrilldownSelections=HS;exports.upperFirst=nS;exports.useCommonFilters=vye;exports.useControlled=Bm;exports.useDefaultProps=xt;exports.useDrilldown=GS;exports.useDrilldownCore=WS;exports.useEnhancedEffect=fi;exports.useEventCallback=Bn;exports.useForkRef=vr;exports.useHasChanged=zg;exports.useId=Zc;exports.useMenu=Vg;exports.useModalContext=id;exports.usePrevious=ud;exports.useQuery=eye;exports.useQueryClient=sE;exports.useRestApi=Ax;exports.useSetError=Q0;exports.useSisenseContext=Ct;exports.useSlot=Zt;exports.useSyncExternalStore=iE;exports.useSyncedDrilldownPathsManager=XS;exports.useSyncedState=Bg;exports.useTheme=ul;exports.useTheme$1=E2;exports.useThemeContext=st;exports.useTimeout=Fi;exports.withErrorBoundary=lw;exports.withTracking=Ame;exports.withTracking$1=_w;