@sisense/sdk-ui 2.8.0 → 2.10.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 (184) hide show
  1. package/dist/ai.cjs +32 -32
  2. package/dist/ai.js +126 -125
  3. package/dist/analytics-composer/node.cjs +3 -0
  4. package/dist/analytics-composer/node.d.ts +1 -0
  5. package/dist/analytics-composer/node.js +1033 -0
  6. package/dist/analytics-composer.cjs +118 -118
  7. package/dist/analytics-composer.js +2211 -2906
  8. package/dist/derive-chart-family-B1on_xkS.cjs +170 -0
  9. package/dist/derive-chart-family-BllGhqsW.js +29469 -0
  10. package/dist/dimensions-BYqdB-Q8.cjs +1 -0
  11. package/dist/{dimensions-b8xRITJn.js → dimensions-D-Z9sitz.js} +3 -3
  12. package/dist/execute-query-CABqVn7C.cjs +1 -0
  13. package/dist/execute-query-CGLL9vXX.js +6428 -0
  14. package/dist/index.cjs +25 -26
  15. package/dist/index.js +9320 -8693
  16. package/dist/index.umd.js +389 -440
  17. package/dist/packages/sdk-ui/src/analytics-composer/index-node.d.ts +9 -0
  18. package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +1 -0
  19. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +40 -0
  20. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/index.d.ts +2 -0
  21. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +3 -0
  22. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-filters.d.ts +44 -0
  23. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-measures.d.ts +30 -0
  24. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-query-to-jaql.d.ts +18 -0
  25. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-query.d.ts +224 -0
  26. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +40 -1
  27. package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +12 -0
  28. package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +3 -1
  29. package/dist/packages/sdk-ui/src/chart/helpers/use-chart-data-preparation.d.ts +3 -1
  30. package/dist/packages/sdk-ui/src/chart/helpers/use-translated-data-options.d.ts +1 -1
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/calendar-heatmap-chart-builder.d.ts +8 -0
  32. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +87 -0
  33. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +54 -0
  34. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/index.d.ts +1 -0
  35. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +33 -0
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +22 -0
  37. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +8 -0
  38. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +1 -0
  39. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +12 -0
  40. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -0
  41. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +9 -0
  42. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +7 -0
  43. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/legend-options.d.ts +8 -0
  44. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/plot-options.d.ts +9 -0
  45. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +35 -0
  46. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -0
  47. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -0
  48. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +9 -0
  49. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +26 -0
  50. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +17 -0
  51. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +30 -0
  52. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +3 -0
  53. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/index.d.ts +1 -0
  54. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +4 -0
  55. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +25 -0
  56. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +14 -0
  57. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +4 -0
  58. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +55 -0
  59. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +33 -0
  60. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/index.d.ts +2 -0
  61. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/types.d.ts +13 -0
  62. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +5 -1
  63. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +5 -0
  64. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +3 -2
  65. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/y-axis.d.ts +28 -0
  66. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/line-chart/helpers/design-options.d.ts +12 -0
  67. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/line-chart/highchart-options/axes.d.ts +6 -0
  68. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/line-chart/highcharts-options-builder.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/line-chart/line-chart-builder.d.ts +2 -0
  70. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/data/index.d.ts +10 -0
  71. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/data-options/index.d.ts +12 -0
  72. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/design-options/index.d.ts +18 -0
  73. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/highchart-options/axes.d.ts +6 -0
  74. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  75. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/polar-chart-builder.d.ts +2 -0
  76. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/area-chart-builder.d.ts +2 -0
  77. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/helpers/design-options.d.ts +12 -0
  78. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/highchart-options/axes.d.ts +6 -0
  79. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  80. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/highchart-options/labels-spacing.d.ts +8 -0
  81. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highchart-options/axes.d.ts +6 -0
  82. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highchart-options/labels-spacing.d.ts +9 -0
  83. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/column-chart/highchart-options/axes.d.ts +6 -0
  84. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/column-chart/highchart-options/labels-spacing.d.ts +9 -0
  85. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/helpers/highchart-options/stacking.d.ts +21 -0
  86. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/types.d.ts +1 -0
  87. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/types.d.ts +1 -1
  88. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +22 -0
  89. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +13 -0
  90. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/alerts/index.d.ts +5 -0
  91. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data/index.d.ts +15 -0
  92. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +32 -0
  93. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +17 -0
  94. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  95. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/pie-chart-builder.d.ts +2 -0
  96. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +12 -0
  97. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +9 -4
  98. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +2 -4
  99. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/use-extra-config.d.ts +2 -0
  100. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/utils.d.ts +2 -1
  101. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
  102. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +10 -9
  103. package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +5 -0
  104. package/dist/packages/sdk-ui/src/chart-data/data-coloring/types.d.ts +6 -0
  105. package/dist/packages/sdk-ui/src/chart-data/types.d.ts +2 -1
  106. package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +2 -1
  107. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +19 -2
  108. package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +4 -4
  109. package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-categorical-data-options.d.ts +14 -0
  110. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +155 -0
  111. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-settings.d.ts +39 -0
  112. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-transformers.d.ts +45 -0
  113. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-utils.d.ts +1 -0
  114. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/date-utils.d.ts +27 -0
  115. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/index.d.ts +3 -0
  116. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-configuration.d.ts +33 -3
  117. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +4 -1
  118. package/dist/packages/sdk-ui/src/chart-options-processor/{category-chart-options.d.ts → category-chart-options/category-chart-options.d.ts} +9 -5
  119. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +15 -0
  120. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +15 -0
  121. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +17 -0
  122. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +17 -0
  123. package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +26 -10
  124. package/dist/packages/sdk-ui/src/chart-options-processor/defaults/cartesian.d.ts +4 -3
  125. package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
  126. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +1 -3
  127. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +11 -12
  128. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +19 -5
  129. package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +28 -14
  130. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +34 -6
  131. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +5 -0
  132. package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
  133. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +61 -4
  134. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +2 -2
  135. package/dist/packages/sdk-ui/src/common/formatters/create-date-formatter.d.ts +10 -0
  136. package/dist/packages/sdk-ui/src/common/hooks/useDateFormatter.d.ts +7 -0
  137. package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +6 -0
  138. package/dist/packages/sdk-ui/src/const.d.ts +2 -0
  139. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +0 -19
  140. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +1 -1
  141. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +12 -1
  142. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +18 -0
  143. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +23 -0
  144. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-widget-transforms.d.ts +29 -0
  145. package/dist/packages/sdk-ui/src/index.d.ts +1 -0
  146. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -0
  147. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/index.d.ts +1 -0
  148. package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +23 -0
  149. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +2 -1
  150. package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +45 -3
  151. package/dist/packages/sdk-ui/src/pivot-table/formatters/utils.d.ts +1 -0
  152. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +4 -1
  153. package/dist/packages/sdk-ui/src/polar-chart.d.ts +1 -1
  154. package/dist/packages/sdk-ui/src/props.d.ts +161 -7
  155. package/dist/packages/sdk-ui/src/query/date-formats/apply-date-format.d.ts +7 -6
  156. package/dist/packages/sdk-ui/src/query/date-formats/index.d.ts +1 -1
  157. package/dist/packages/sdk-ui/src/query/execute-query.d.ts +3 -1
  158. package/dist/packages/sdk-ui/src/query-execution/index.d.ts +1 -1
  159. package/dist/packages/sdk-ui/src/query-execution/types.d.ts +9 -2
  160. package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +2 -2
  161. package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
  162. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +11 -0
  163. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +22 -0
  164. package/dist/packages/sdk-ui/src/types.d.ts +254 -16
  165. package/dist/packages/sdk-ui/src/utils/combine-handlers.d.ts +19 -0
  166. package/dist/packages/sdk-ui/src/utils/utility-types/transformer.d.ts +8 -0
  167. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +1 -1
  168. package/dist/packages/sdk-ui/src/widget-by-id/translate-panel-color-format.d.ts +9 -0
  169. package/dist/packages/sdk-ui/src/widget-by-id/translate-statistical-models.d.ts +10 -0
  170. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +0 -14
  171. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +10 -10
  172. package/dist/types-BRtWk8uC.js +80 -0
  173. package/dist/types-Ds0KtTJF.cjs +1 -0
  174. package/dist/use-common-filters-D8tEa9zb.js +91245 -0
  175. package/dist/use-common-filters-hw1WKPCY.cjs +844 -0
  176. package/dist/{widget-composer-BPlNiX_P.cjs → widget-composer-B7zeAa_D.cjs} +9 -9
  177. package/dist/{widget-composer-SGEFYrXY.js → widget-composer-DL0xPtlC.js} +143 -217
  178. package/package.json +20 -10
  179. package/dist/derive-chart-family-6PZA-xZh.js +0 -92092
  180. package/dist/derive-chart-family-DQUVKMcV.cjs +0 -656
  181. package/dist/dimensions-x8nnAUew.cjs +0 -1
  182. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis-configuration.d.ts +0 -41
  183. package/dist/use-common-filters-BHBy4uv6.js +0 -32218
  184. package/dist/use-common-filters-Cg217teN.cjs +0 -350
@@ -1,350 +0,0 @@
1
- "use strict";var $1=Object.defineProperty,N1=Object.defineProperties;var L1=Object.getOwnPropertyDescriptors;var fi=Object.getOwnPropertySymbols;var id=Object.prototype.hasOwnProperty,ad=Object.prototype.propertyIsEnumerable;var Ht=Math.pow,Ss=(e,t,r)=>t in e?$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||(t={}))id.call(t,r)&&Ss(e,r,t[r]);if(fi)for(var r of fi(t))ad.call(t,r)&&Ss(e,r,t[r]);return e},N=(e,t)=>N1(e,L1(t));var pi=e=>typeof e=="symbol"?e:e+"",te=(e,t)=>{var r={};for(var n in e)id.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fi)for(var n of fi(e))t.indexOf(n)<0&&ad.call(e,n)&&(r[n]=e[n]);return r};var Un=(e,t,r)=>Ss(e,typeof t!="symbol"?t+"":t,r);var Mt=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});const p=require("./derive-chart-family-DQUVKMcV.cjs"),S=require("react"),Z=require("react/jsx-runtime"),wt=require("react-dom");function Dh(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 $=Dh(S),F1=Dh(wt);function j1(e){let{i18n:t,defaultNS:r,children:n}=e;const o=S.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return S.createElement(p.I18nContext.Provider,{value:o},n)}function br(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}const ut={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 Oc(e){return[p.customFormula(ut.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),p.customFormula(ut.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),p.customFormula(ut.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function B1(e){return[...Oc(e),p.customFormula(ut.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),p.customFormula(ut.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),p.customFormula(ut.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function H1(e){return[...Oc(e),p.customFormula(ut.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),p.customFormula(ut.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function z1(e){return[...Oc(e),p.customFormula(ut.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),p.customFormula(ut.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),p.customFormula(ut.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const W1=p.withComposeCodeForAnalytics(e=>{const t=p.cloneDeep(e),r=p.customFormula(ut.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=p.customFormula(ut.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=o=>{const i=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?i:{jaql:i}},t},"boxWhiskerIqrOutliers"),V1=p.withComposeCodeForAnalytics(e=>{const t=p.cloneDeep(e),r=p.customFormula(ut.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=p.customFormula(ut.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=o=>{const i=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?i:{jaql:i}},t},"boxWhiskerStdDevOutliers");function Co(e){return!!e&&"operator"in e&&(e.operator==="AND"||e.operator==="OR")&&!!e.right&&!!e.left}function $h(e=[],t=[]){if(!Co(e)&&!Co(t))return It(e,t);const{filters:r,relations:n}=Eo(e),o=kc(t),i=It(r,o),a=ho(r,n,i);return po(i,a)}function Eo(e){if(!e)return{filters:[],relations:null};if(p.isArray(e))return{filters:e,relations:null};const t=new Set;function r(o){if(Nh(o))return t.add(o),{instanceid:o.config.guid};if(Co(o)){const i=r(o.left),a=r(o.right);return{left:i,right:a,operator:o.operator}}throw new ma}const n=r(e);return{filters:Array.from(t),relations:n}}function kc(e){return e?Eo(e).filters:[]}function po(e,t){if(!t||Ac(t))return e;const r=n(t);return Nh(r)?[r]:r;function n(o){if(ha(o))return e.find(i=>i.config.guid===o.instanceid);if(ga(o))return(o.operator==="AND"?p.logic.and:p.logic.or)(n(o.left),n(o.right));throw new ma}}function Ac(e){return!!e&&"instanceid"in e}function ho(e,t,r){if(t===null)return null;const n=G1(e,r);return n.length===0?t:n.reduce((o,i)=>{switch(i.type){case"add":return Y1(i.payload,o);case"remove":return ul(i.payload,o)}},t)}function sd(e,t){return e.config.guid===t.config.guid}function U1(e,t,r){if(!e)return null;return o(e);function o(i){if(ha(i))return i.instanceid===t.config.guid?{instanceid:r.config.guid}:i;if(ga(i))return{left:o(i.left),right:o(i.right),operator:i.operator};throw new ma}}function G1(e,t){const r=[],n=[...e],o=[...t];return n.forEach(i=>{o.some(s=>sd(i,s))||r.push({type:"remove",payload:i})}),o.forEach(i=>{n.some(s=>sd(i,s))||r.push({type:"add",payload:i})}),r}function Y1(e,t){return t?{left:t,right:{instanceid:e.config.guid},operator:"AND"}:{instanceid:e.config.guid}}function ul(e,t){if(!t)return null;if(Ac(t))return t.instanceid===e.config.guid?null:t;const r=ul(e,t.left),n=ul(e,t.right);return r===null&&n?n:n===null&&r?r:r===null&&n===null?null:{left:r,right:n,operator:t.operator}}function q1(e,t){if(!e)return null;function r(n){if(X1(n))return{instanceid:n.instanceId};if(K1(n))return r(n.value);if(Q1(n))return{operator:n.operator,left:r(n.left),right:r(n.right)};if(Z1(n)){const o=t.find(i=>{if(!p.isCascadingFilter(i))return!1;const a=i.filters.map(s=>s.config.guid);return n.levels.every(s=>a.includes(s.instanceId))});if(o)return{instanceid:o.config.guid};throw new Error("Broken filter relations model. Cascading filter not found.")}throw new Error("Broken filter relations model. Unknown node type.")}return r(e)}function X1(e){return"instanceId"in e}function K1(e){return"value"in e}function Q1(e){return"operator"in e}function Z1(e){return"levels"in e&&p.isArray(e.levels)}function ha(e){return"instanceid"in e}function ga(e){return"operator"in e}function Nh(e){return"config"in e&&"guid"in e.config}function J1(e,t){if(!e)return;function r(n){if(ha(n)){const o=t.find(i=>i.config.guid===n.instanceid);return o&&p.isCascadingFilter(o)?{type:"CascadingIdentifier",levels:o.filters.map(a=>({type:"Identifier",instanceId:a.config.guid}))}:{type:"Identifier",instanceId:n.instanceid}}else{if(ga(n))return{type:"LogicalExpression",operator:n.operator,left:r(n.left),right:r(n.right)};throw new Error("Unknown node type in filter relations rules.")}}return r(e)}function ey(e,t){return e.find(r=>r.config.guid===t)}class ma extends Error{constructor(){super("Broken filter relations. Unknown node type.")}}function ty(e){return e.nodeType==="openBracket"}function ry(e){return e.nodeType==="closeBracket"}function ny(e){return e.nodeType==="attribute"}function oy(e){return e.nodeType==="operator"}function To(e){if(p.isCascadingFilter(e))return e.filters.map(To).join("-");const{attribute:t}=e,r=e.jaql().jaql,n=t.expression||r.dim,o=t.granularity||((r==null?void 0:r.datatype)==="datetime"?p.DimensionalLevelAttribute.translateJaqlToGranularity(r):"");return`${n}${o}`}function It(e=[],t=[]){const r=[...e];return t.forEach(n=>{const o=r.findIndex(a=>To(n)===To(a));o!==-1?r[o]=n:r.push(n)}),r}function iy(e){if(!e)return e;const t=p.cloneDeep(e);function r(n){if("instanceId"in n)return{instanceid:n.instanceId};if("value"in n)return r(n.value);if("operator"in n){const o={operator:n.operator};return"left"in n&&(o.left=r(n.left)),"right"in n&&(o.right=r(n.right)),o}return n}return r(t)}var dl={exports:{}},ye={};/** @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 ld;function ay(){if(ld)return ye;ld=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E(C){if(typeof C=="object"&&C!==null){var _=C.$$typeof;switch(_){case t:switch(C=C.type,C){case l:case c:case n:case i:case o:case f:return C;default:switch(C=C&&C.$$typeof,C){case s:case d:case v:case m:case a:return C;default:return _}}case r:return _}}}function x(C){return E(C)===c}return ye.AsyncMode=l,ye.ConcurrentMode=c,ye.ContextConsumer=s,ye.ContextProvider=a,ye.Element=t,ye.ForwardRef=d,ye.Fragment=n,ye.Lazy=v,ye.Memo=m,ye.Portal=r,ye.Profiler=i,ye.StrictMode=o,ye.Suspense=f,ye.isAsyncMode=function(C){return x(C)||E(C)===l},ye.isConcurrentMode=x,ye.isContextConsumer=function(C){return E(C)===s},ye.isContextProvider=function(C){return E(C)===a},ye.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ye.isForwardRef=function(C){return E(C)===d},ye.isFragment=function(C){return E(C)===n},ye.isLazy=function(C){return E(C)===v},ye.isMemo=function(C){return E(C)===m},ye.isPortal=function(C){return E(C)===r},ye.isProfiler=function(C){return E(C)===i},ye.isStrictMode=function(C){return E(C)===o},ye.isSuspense=function(C){return E(C)===f},ye.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===c||C===i||C===o||C===f||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===m||C.$$typeof===a||C.$$typeof===s||C.$$typeof===d||C.$$typeof===y||C.$$typeof===b||C.$$typeof===T||C.$$typeof===g)},ye.typeOf=E,ye}var be={};/** @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 cd;function sy(){return cd||(cd=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E(W){return typeof W=="string"||typeof W=="function"||W===n||W===c||W===i||W===o||W===f||W===h||typeof W=="object"&&W!==null&&(W.$$typeof===v||W.$$typeof===m||W.$$typeof===a||W.$$typeof===s||W.$$typeof===d||W.$$typeof===y||W.$$typeof===b||W.$$typeof===T||W.$$typeof===g)}function x(W){if(typeof W=="object"&&W!==null){var re=W.$$typeof;switch(re){case t:var ce=W.type;switch(ce){case l:case c:case n:case i:case o:case f:return ce;default:var ge=ce&&ce.$$typeof;switch(ge){case s:case d:case v:case m:case a:return ge;default:return re}}case r:return re}}}var C=l,_=c,k=s,O=a,D=t,F=d,H=n,R=v,A=m,B=r,j=i,L=o,I=f,z=!1;function Y(W){return z||(z=!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.")),P(W)||x(W)===l}function P(W){return x(W)===c}function V(W){return x(W)===s}function K(W){return x(W)===a}function q(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function X(W){return x(W)===d}function J(W){return x(W)===n}function ee(W){return x(W)===v}function oe(W){return x(W)===m}function ne(W){return x(W)===r}function ue(W){return x(W)===i}function ie(W){return x(W)===o}function ve(W){return x(W)===f}be.AsyncMode=C,be.ConcurrentMode=_,be.ContextConsumer=k,be.ContextProvider=O,be.Element=D,be.ForwardRef=F,be.Fragment=H,be.Lazy=R,be.Memo=A,be.Portal=B,be.Profiler=j,be.StrictMode=L,be.Suspense=I,be.isAsyncMode=Y,be.isConcurrentMode=P,be.isContextConsumer=V,be.isContextProvider=K,be.isElement=q,be.isForwardRef=X,be.isFragment=J,be.isLazy=ee,be.isMemo=oe,be.isPortal=ne,be.isProfiler=ue,be.isStrictMode=ie,be.isSuspense=ve,be.isValidElementType=E,be.typeOf=x}()),be}process.env.NODE_ENV==="production"?dl.exports=ay():dl.exports=sy();var Lh=dl.exports;function ly(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fl(e,t){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},fl(e,t)}const ro={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function Fh(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,fontsLoader:{fonts:cy(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:p.getDefaultThemeSettings().general.popover,buttons:{cancel:{backgroundColor:{default:e.general.secondaryButtonBaseColor,hover:e.general.secondaryButtonHoverColor,focus:e.general.secondaryButtonHoverColor},textColor:e.general.secondaryButtonTextColor}}},widget:{spaceAround:ro[e.dashboards.widgetSpacing],cornerRadius:ro[e.dashboards.widgetCornerRadius],shadow:ro[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:ro[e.dashboards.widgetTitleAlignment],titleFontSize:p.DEFAULT_TITLE_FONT_SIZE,dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:p.DEFAULT_DIVIDER_WIDTH,dividerLineColor:p.DEFAULT_DIVIDER_COLOR,borderWidth:p.DEFAULT_DASHBOARD_BORDER_WIDTH,borderColor:p.DEFAULT_DASHBOARD_BORDER_COLOR,toolbar:{primaryTextColor:e.dashboards.toolbarTextColor,secondaryTextColor:e.dashboards.toolbarSecondaryTextColor,backgroundColor:e.dashboards.toolbarBackgroundColor,dividerLineColor:p.DEFAULT_DASHBOARD_TOOLBAR_DIVIDER_LINE_COLOR,dividerLineWidth:p.DEFAULT_DASHBOARD_TOOLBAR_DIVIDER_LINE_WIDTH}},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor,dividerLineColor:p.DEFAULT_FILTER_PANEL_DIVIDER_LINE_COLOR,dividerLineWidth:p.DEFAULT_FILTER_PANEL_DIVIDER_LINE_WIDTH,borderColor:p.DEFAULT_FILTER_PANEL_BORDER_COLOR,borderWidth:p.DEFAULT_FILTER_PANEL_BORDER_WIDTH}}};return p.merge.withOptions({mergeArrays:!1},p.getDefaultThemeSettings(),n)}function jh(e){return e.dashboards.colorPaletteName}function cy(e,t,r){const i=r?"fonts/":"resources/base/fonts/";return[{fontFamily:e,fontWeight:"normal",fontStyle:"normal",src:[{url:`${t}${i}${e}-Regular.eot`},{local:`${e}-Regular`},{url:`${t}${i}${e}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-Regular.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:600,fontStyle:"normal",src:[{url:`${t}${i}${e}-SemiBold.eot`},{local:`${e}-SemiBold`},{url:`${t}${i}${e}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:"bold",fontStyle:"normal",src:[{url:`${t}${i}${e}-Bold.eot`},{local:`${e}-Bold`},{url:`${t}${i}${e}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-Bold.ttf`,format:"truetype"}]}]}function Bh(e,t){return Mt(this,null,function*(){const r=yield uy(e,t);if(!r)throw new p.TranslatableError("errors.themeNotFound",{themeOid:e});const n=jh(r),o=yield Hh(n,t);return Fh(r,o,t.url)})}function uy(e,t){return Mt(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new p.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function Hh(e,t){return Mt(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new p.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}const dy={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}},ud="composesdk",zh=(e,t,r,n=!1)=>{const o=Object.assign({action:e,cat:ud,eventType:"product",direct:!0},t);return n&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",o),Promise.resolve()):r.post("api/activities/",[o],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(i=>{console.error(`unable to log action=${e}, category=${ud}`,i)})},dd=(e,t,r,n,o)=>{const i=dy[`${e}`];return i.internal&&zh(e,t,r,o),i.external&&n&&n(w({action:e},t)),Promise.resolve()},Ic=()=>{var i,a;const{tracking:e,app:t}=p.useSisenseContext(),r=(a=(i=t==null?void 0:t.httpClient)==null?void 0:i.auth)==null?void 0:a.type,n=S.useCallback((s,l={},c=!1)=>t?dd(s,N(w({},l),{authType:r}),t.httpClient,e.onTrackingEvent,c):Promise.resolve(),[e,t,r]),o=S.useCallback((s,l=!1)=>{if(!t)return Promise.resolve();const{packageName:c,packageVersion:d,component:f,error:h}=s;let m="";return typeof h=="string"?m=h:h instanceof Error&&(m=h.message||h.toString()),dd("sdkError",N(w({},{packageName:c,packageVersion:d,component:f,error:m}),{authType:r}),t.httpClient,e.onTrackingEvent,l)},[e,t,r]);return{trackEvent:n,trackError:o}},fy="sdkComponentInit",Wh=S.createContext(!1),py=({skipNested:e=!0,children:t})=>p.jsx(Wh.Provider,{value:e,children:t}),hy=(e,t)=>{const{componentName:r,config:n}=e,{tracking:o,app:i}=p.useSisenseContext(),{trackEvent:a}=Ic(),s=S.useContext(Wh),l=S.useRef(!1);S.useEffect(()=>{if(!o||!i)return;if(!l.current&&!s){const d={packageName:n.packageName||o.packageName,packageVersion:n.packageVersion||"2.8.0",componentName:r,attributesUsed:Object.entries(t).filter(([,f])=>!!f).map(([f])=>f).join(", ")};a(fy,d,!o.enabled).finally(()=>l.current=!0)}},[r,t,o,s,a,i,n])};var gy="[object Boolean]";function Vh(e){return e===!0||e===!1||p.isObjectLike(e)&&p.baseGetTag(e)==gy}const Ju=class Ju extends S.Component{constructor(t){super(t),this.postponedErrors=[],this.handler=t.handler,this.componentName=t.componentName}componentDidMount(){var t;this.context.isInitialized&&(this.httpClient=(t=this.context.app)==null?void 0:t.httpClient)}componentDidCatch(t){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(t):this.postponedErrors.push(t)),t}sendErrorTracking(t){try{this.handler({packageName:"sdk-ui",packageVersion:"2.8.0",component:this.componentName,error:t})}catch(r){console.log("Failed to send tracking error event: ",r)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(t=>this.sendErrorTracking(t)),this.postponedErrors=[],this.props.children}};Ju.contextType=p.SisenseContext;let pl=Ju;const Uh=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return o=>function(a){const{trackError:s}=Ic();return Vh(r)&&r||p.isFunction(r)&&r(a)?p.jsx(o,w({},a)):(hy({componentName:e,config:t},a),p.jsx(py,{skipNested:!n,children:p.jsx(pl,{componentName:e,handler:s,children:p.jsx(o,w({},a))})}))}},my="_container_1wquj_1",vy="_card_1wquj_11",yy="_text_1wquj_19",Rs={container:my,card:vy,text:yy};function Gh({color:e="#FFCB05"}){return p.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:p.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:p.jsxs("g",{children:[p.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),p.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 Pc=({error:e=new p.TranslatableError("errors.componentRenderError")})=>{var h,m,v,g,y,b;const{themeSettings:t}=p.useThemeContext(),{app:r}=p.useSisenseContext(),{t:n}=p.useTranslation(),[o,i]=S.useState(!1),a=()=>{i(!0)},s=()=>{i(!1)},l=p.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:p.jsx(Gh,{color:(h=t==null?void 0:t.general)==null?void 0:h.brandColor})}),c=e instanceof p.AbstractTranslatableError?n(e.key,w({},e.interpolationOptions)):n(e instanceof Error?e.message:e),d=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),f=(v=(m=r==null?void 0:r.settings)==null?void 0:m.errorBoundaryConfig)==null?void 0:v.alwaysShowErrorText;return p.jsx("div",{onMouseEnter:f?void 0:a,onMouseLeave:f?void 0:s,className:Rs.container,"aria-label":"error-box",children:p.jsxs("div",{className:Rs.card,style:{backgroundColor:((g=t==null?void 0:t.general)==null?void 0:g.backgroundColor)||"rgba(255,255,255,0.5)"},children:[l,(f||o)&&p.jsx("div",{className:Rs.text,style:{color:((y=t==null?void 0:t.typography)==null?void 0:y.primaryTextColor)||p.DEFAULT_TEXT_COLOR,fontFamily:((b=t==null?void 0:t.typography)==null?void 0:b.fontFamily)||"inherit"},children:d})]})})};let Yh=class extends S.Component{constructor(t){super(t),this.showErrorBox=!0,this.onError=t.onError,this.isContainerComponent=t.isContainerComponent||!1,this.state={error:null,customErrorUI:null}}static getDerivedStateFromError(t){return{error:t,customErrorUI:null}}componentDidCatch(t){const r=t instanceof Error?t:new Error(t);if(this.onError){const n=this.onError(r);if(n!==void 0&&S.isValidElement(n)){this.setState({error:t,customErrorUI:n});return}}this.setState({error:t})}componentDidUpdate(t,r){if(r.error!==null&&by(t.resetKeys,this.props.resetKeys)&&this.setState({error:null,customErrorUI:null}),this.props.error&&!t.error&&!r.error&&!this.state.error&&this.onError){const n=this.props.error instanceof Error?this.props.error:new Error(String(this.props.error)),o=this.onError(n);o!==void 0&&S.isValidElement(o)&&this.setState({customErrorUI:o})}}render(){const{error:t,customErrorUI:r}=this.state,{shouldRenderChildrenWithProvidedError:n,showErrorBox:o,error:i,children:a}=this.props,s=t||i;return!s||i&&!t&&n?a:o?r||p.jsx(Pc,{error:s}):null}};function by(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!p.isEqual(r,t[n]))}const qh=({componentName:e})=>t=>function(n){const o=p.useSisenseContext(),i=a=>{var s,l;return(l=(s=o.errorBoundary).onError)==null?void 0:l.call(s,a,{componentName:e,componentProps:n})};return p.jsx(Yh,{resetKeys:Object.values(n),showErrorBox:o.errorBoundary.showErrorBox,onError:i,isContainerComponent:!!(n!=null&&n.children),children:p.jsx(t,w({},n))})};exports.jsx=function(t,r){var n=arguments;if(r==null||!p.hasOwn.call(r,"css"))return $.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=p.Emotion$1,i[1]=p.createEmotionProps(t,r);for(var a=2;a<o;a++)i[a]=n[a];return $.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(exports.jsx||(exports.jsx={}));function va(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return p.serializeStyles(t)}function Uo(){var e=va.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_"}}}function Xh(){var e,t;return(t=(e=document.head.querySelector('meta[property="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?t:void 0}const fd=Xh(),Dc=({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=N(w({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=N(w({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),o=N(w({},t),{marginRight:"unset"}),i={"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}};return p.jsxs("div",{children:[p.jsx("style",N(w({},fd&&{nonce:fd}),{children:`
16
- @keyframes loading-dots-animation {
17
- ${Object.entries(i).map(([a,s])=>`${a} { ${Object.entries(s).map(([l,c])=>`${l}: ${c};`).join("")} }`).join("")}
18
- }
19
- `})),p.jsx("div",{style:r}),p.jsx("div",{style:n}),p.jsx("div",{style:o})]})},ya=({themeSettings:e,onCancel:t})=>{const{t:r}=p.useTranslation(),n=e!=null&&e.chart.backgroundColor?{backgroundColor:e.chart.backgroundColor}:void 0;return p.jsx("div",{style:n,className:"csdk-h-full csdk-bg-white csdk-p-[20px]","aria-label":"csdk-loading-indicator",children:p.jsxs("div",{style:n,className:"csdk-h-full csdk-bg-background-priority csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center",children:[p.jsx(Dc,{color:e==null?void 0:e.chart.textColor}),t&&p.jsx("div",{className:"csdk-text-ai-sm csdk-text-text-link csdk-cursor-pointer",onClick:t,children:r("cancel")})]})})},wy=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(o){if(xy(e,o))return p.jsx(r,w({},o));const{app:i,isInitialized:a}=p.useSisenseContext();if(!a){const s=t||"errors.noSisenseContext";throw new p.TranslatableError(s)}return i?p.jsx(r,w({},o)):p.jsx(ya,{})};function xy(e,t){return Vh(e)&&e||p.isFunction(e)&&e(t)}function Cy(){const[e,t]=S.useState(null);return S.useEffect(()=>{p.initializeI18n().initPromise.then(r=>t(r))},[]),e}const Kh=({children:e,userLanguage:t,customTranslations:r=[]})=>{const n=Cy();return S.useEffect(()=>{if(t&&(n==null?void 0:n.language)!==t){for(const{language:o,resources:i,namespace:a="sdkUi"}of r)n==null||n.addResourceBundle(o,a,i);n==null||n.changeLanguage(t)}},[n,t,r]),n&&p.jsx(j1,{i18n:n,children:e})},Ey=()=>e=>function(r){const{isInitialized:n}=p.useSisenseContext();return n?p.jsx(e,w({},r)):p.jsx(Kh,{children:p.jsx(e,w({},r))})},$c=S.createContext(null),ba=()=>S.useContext($c);var hl={exports:{}},Ce={};/**
20
- * @license React
21
- * react-is.production.js
22
- *
23
- * Copyright (c) Meta Platforms, Inc. and affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */var pd;function Ty(){if(pd)return Ce;pd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case r:case o:case n:case l:case c:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case f:case d:return g;case i:return g;default:return y}}case t:return y}}}return Ce.ContextConsumer=i,Ce.ContextProvider=a,Ce.Element=e,Ce.ForwardRef=s,Ce.Fragment=r,Ce.Lazy=f,Ce.Memo=d,Ce.Portal=t,Ce.Profiler=o,Ce.StrictMode=n,Ce.Suspense=l,Ce.SuspenseList=c,Ce.isContextConsumer=function(g){return v(g)===i},Ce.isContextProvider=function(g){return v(g)===a},Ce.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ce.isForwardRef=function(g){return v(g)===s},Ce.isFragment=function(g){return v(g)===r},Ce.isLazy=function(g){return v(g)===f},Ce.isMemo=function(g){return v(g)===d},Ce.isPortal=function(g){return v(g)===t},Ce.isProfiler=function(g){return v(g)===o},Ce.isStrictMode=function(g){return v(g)===n},Ce.isSuspense=function(g){return v(g)===l},Ce.isSuspenseList=function(g){return v(g)===c},Ce.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===l||g===c||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},Ce.typeOf=v,Ce}var Ee={};/**
28
- * @license React
29
- * react-is.development.js
30
- *
31
- * Copyright (c) Meta Platforms, Inc. and affiliates.
32
- *
33
- * This source code is licensed under the MIT license found in the
34
- * LICENSE file in the root directory of this source tree.
35
- */var hd;function Sy(){return hd||(hd=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case t:switch(g=g.type,g){case n:case i:case o:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case l:case h:case f:return g;case a:return g;default:return y}}case r:return y}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");Ee.ContextConsumer=a,Ee.ContextProvider=s,Ee.Element=t,Ee.ForwardRef=l,Ee.Fragment=n,Ee.Lazy=h,Ee.Memo=f,Ee.Portal=r,Ee.Profiler=i,Ee.StrictMode=o,Ee.Suspense=c,Ee.SuspenseList=d,Ee.isContextConsumer=function(g){return e(g)===a},Ee.isContextProvider=function(g){return e(g)===s},Ee.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Ee.isForwardRef=function(g){return e(g)===l},Ee.isFragment=function(g){return e(g)===n},Ee.isLazy=function(g){return e(g)===h},Ee.isMemo=function(g){return e(g)===f},Ee.isPortal=function(g){return e(g)===r},Ee.isProfiler=function(g){return e(g)===i},Ee.isStrictMode=function(g){return e(g)===o},Ee.isSuspense=function(g){return e(g)===c},Ee.isSuspenseList=function(g){return e(g)===d},Ee.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===i||g===o||g===c||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===f||g.$$typeof===s||g.$$typeof===a||g.$$typeof===l||g.$$typeof===v||g.getModuleId!==void 0)},Ee.typeOf=e}()),Ee}process.env.NODE_ENV==="production"?hl.exports=Ty():hl.exports=Sy();var Nc=hl.exports,gl={exports:{}};/*
36
- object-assign
37
- (c) Sindre Sorhus
38
- @license MIT
39
- */var _s,gd;function Ry(){if(gd)return _s;gd=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return _s=o()?Object.assign:function(i,a){for(var s,l=n(i),c,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){c=e(s);for(var h=0;h<c.length;h++)r.call(s,c[h])&&(l[c[h]]=s[c[h]])}}return l},_s}var Ms,md;function Lc(){if(md)return Ms;md=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ms=e,Ms}var Os,vd;function Qh(){return vd||(vd=1,Os=Function.call.bind(Object.prototype.hasOwnProperty)),Os}var ks,yd;function _y(){if(yd)return ks;yd=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lc(),r={},n=Qh();e=function(i){var a="Warning: "+i;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(s){}}}function o(i,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var d in i)if(n(i,d)){var f;try{if(typeof i[d]!="function"){var h=Error((l||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=i[d](a,d,l,s,null,t)}catch(v){f=v}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+d+"` 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 m=c?c():"";e("Failed "+s+" type: "+f.message+(m!=null?m:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ks=o,ks}var As,bd;function My(){if(bd)return As;bd=1;var e=Lh,t=Ry(),r=Lc(),n=Qh(),o=_y(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var l="Warning: "+s;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(c){}});function a(){return null}return As=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(P){var V=P&&(c&&P[c]||P[d]);if(typeof V=="function")return V}var h="<<anonymous>>",m={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:T(),arrayOf:E,element:x(),elementType:C(),instanceOf:_,node:F(),objectOf:O,oneOf:k,oneOfType:D,shape:R,exact:A};function v(P,V){return P===V?P!==0||1/P===1/V:P!==P&&V!==V}function g(P,V){this.message=P,this.data=V&&typeof V=="object"?V:{},this.stack=""}g.prototype=Error.prototype;function y(P){if(process.env.NODE_ENV!=="production")var V={},K=0;function q(J,ee,oe,ne,ue,ie,ve){if(ne=ne||h,ie=ie||oe,ve!==r){if(l){var W=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 W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var re=ne+":"+oe;!V[re]&&K<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ie+"` prop on `"+ne+"`. 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."),V[re]=!0,K++)}}return ee[oe]==null?J?ee[oe]===null?new g("The "+ue+" `"+ie+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new g("The "+ue+" `"+ie+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:P(ee,oe,ne,ue,ie)}var X=q.bind(null,!1);return X.isRequired=q.bind(null,!0),X}function b(P){function V(K,q,X,J,ee,oe){var ne=K[q],ue=L(ne);if(ue!==P){var ie=I(ne);return new g("Invalid "+J+" `"+ee+"` of type "+("`"+ie+"` supplied to `"+X+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return y(V)}function T(){return y(a)}function E(P){function V(K,q,X,J,ee){if(typeof P!="function")return new g("Property `"+ee+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var oe=K[q];if(!Array.isArray(oe)){var ne=L(oe);return new g("Invalid "+J+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected an array."))}for(var ue=0;ue<oe.length;ue++){var ie=P(oe,ue,X,J,ee+"["+ue+"]",r);if(ie instanceof Error)return ie}return null}return y(V)}function x(){function P(V,K,q,X,J){var ee=V[K];if(!s(ee)){var oe=L(ee);return new g("Invalid "+X+" `"+J+"` of type "+("`"+oe+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return y(P)}function C(){function P(V,K,q,X,J){var ee=V[K];if(!e.isValidElementType(ee)){var oe=L(ee);return new g("Invalid "+X+" `"+J+"` of type "+("`"+oe+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return y(P)}function _(P){function V(K,q,X,J,ee){if(!(K[q]instanceof P)){var oe=P.name||h,ne=Y(K[q]);return new g("Invalid "+J+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected ")+("instance of `"+oe+"`."))}return null}return y(V)}function k(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function V(K,q,X,J,ee){for(var oe=K[q],ne=0;ne<P.length;ne++)if(v(oe,P[ne]))return null;var ue=JSON.stringify(P,function(ve,W){var re=I(W);return re==="symbol"?String(W):W});return new g("Invalid "+J+" `"+ee+"` of value `"+String(oe)+"` "+("supplied to `"+X+"`, expected one of "+ue+"."))}return y(V)}function O(P){function V(K,q,X,J,ee){if(typeof P!="function")return new g("Property `"+ee+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var oe=K[q],ne=L(oe);if(ne!=="object")return new g("Invalid "+J+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected an object."));for(var ue in oe)if(n(oe,ue)){var ie=P(oe,ue,X,J,ee+"."+ue,r);if(ie instanceof Error)return ie}return null}return y(V)}function D(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var V=0;V<P.length;V++){var K=P[V];if(typeof K!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(K)+" at index "+V+"."),a}function q(X,J,ee,oe,ne){for(var ue=[],ie=0;ie<P.length;ie++){var ve=P[ie],W=ve(X,J,ee,oe,ne,r);if(W==null)return null;W.data&&n(W.data,"expectedType")&&ue.push(W.data.expectedType)}var re=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new g("Invalid "+oe+" `"+ne+"` supplied to "+("`"+ee+"`"+re+"."))}return y(q)}function F(){function P(V,K,q,X,J){return B(V[K])?null:new g("Invalid "+X+" `"+J+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return y(P)}function H(P,V,K,q,X){return new g((P||"React class")+": "+V+" type `"+K+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function R(P){function V(K,q,X,J,ee){var oe=K[q],ne=L(oe);if(ne!=="object")return new g("Invalid "+J+" `"+ee+"` of type `"+ne+"` "+("supplied to `"+X+"`, expected `object`."));for(var ue in P){var ie=P[ue];if(typeof ie!="function")return H(X,J,ee,ue,I(ie));var ve=ie(oe,ue,X,J,ee+"."+ue,r);if(ve)return ve}return null}return y(V)}function A(P){function V(K,q,X,J,ee){var oe=K[q],ne=L(oe);if(ne!=="object")return new g("Invalid "+J+" `"+ee+"` of type `"+ne+"` "+("supplied to `"+X+"`, expected `object`."));var ue=t({},K[q],P);for(var ie in ue){var ve=P[ie];if(n(P,ie)&&typeof ve!="function")return H(X,J,ee,ie,I(ve));if(!ve)return new g("Invalid "+J+" `"+ee+"` key `"+ie+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(K[q],null," ")+`
40
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var W=ve(oe,ie,X,J,ee+"."+ie,r);if(W)return W}return null}return y(V)}function B(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(B);if(P===null||s(P))return!0;var V=f(P);if(V){var K=V.call(P),q;if(V!==P.entries){for(;!(q=K.next()).done;)if(!B(q.value))return!1}else for(;!(q=K.next()).done;){var X=q.value;if(X&&!B(X[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,V){return P==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function L(P){var V=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(V,P)?"symbol":V}function I(P){if(typeof P=="undefined"||P===null)return""+P;var V=L(P);if(V==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return V}function z(P){var V=I(P);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function Y(P){return!P.constructor||!P.constructor.name?h:P.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},As}var Is,wd;function Oy(){if(wd)return Is;wd=1;var e=Lc();function t(){}function r(){}return r.resetWarningCache=t,Is=function(){function n(a,s,l,c,d,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Is}if(process.env.NODE_ENV!=="production"){var ky=Lh,Ay=!0;gl.exports=My()(ky.isElement,Ay)}else gl.exports=Oy()();var Iy=gl.exports;const u=p.getDefaultExportFromCjs(Iy);function Zh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function he(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zh(e))&&(n&&(n+=" "),n+=t);return n}function Be(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(a+=" "+r[c]))}n[o]=a}return n}function ir(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}const Py=$.createContext(),wa=()=>{const e=$.useContext(Py);return e!=null?e:!1};function ft(...e){const t=$.useRef(void 0),r=$.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(n);return typeof s=="function"?s:()=>{a(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return $.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Dy(e){return typeof e=="string"}function Jh(e,t,r){return e===void 0||Dy(e)?t:N(w({},t),{ownerState:w(w({},t.ownerState),r)})}function e0(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 xd(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 t0(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const m=he(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),v=w(w(w({},r==null?void 0:r.style),o==null?void 0:o.style),n==null?void 0:n.style),g=w(w(w({},r),o),n);return m.length>0&&(g.className=m),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const a=e0(w(w({},o),n)),s=xd(n),l=xd(o),c=t(a),d=he(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),f=w(w(w(w({},c==null?void 0:c.style),r==null?void 0:r.style),o==null?void 0:o.style),n==null?void 0:n.style),h=w(w(w(w({},c),r),l),s);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function r0(e,t,r){return typeof e=="function"?e(t,r):e}function Fc(e){var h;const f=e,{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1}=f,i=te(f,["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"]),a=o?{}:r0(r,n),{props:s,internalRef:l}=t0(N(w({},i),{externalSlotProps:a})),c=ft(l,a==null?void 0:a.ref,(h=e.additionalProps)==null?void 0:h.ref);return Jh(t,N(w({},s),{ref:c}),n)}function Ct(e){return e&&e.ownerDocument||document}function wr(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 fe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ml={exports:{}},Te={};/**
41
- * @license React
42
- * react-is.production.js
43
- *
44
- * Copyright (c) Meta Platforms, Inc. and affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var Cd;function $y(){if(Cd)return Te;Cd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case r:case o:case n:case l:case c:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case f:case d:return g;case i:return g;default:return y}}case t:return y}}}return Te.ContextConsumer=i,Te.ContextProvider=a,Te.Element=e,Te.ForwardRef=s,Te.Fragment=r,Te.Lazy=f,Te.Memo=d,Te.Portal=t,Te.Profiler=o,Te.StrictMode=n,Te.Suspense=l,Te.SuspenseList=c,Te.isContextConsumer=function(g){return v(g)===i},Te.isContextProvider=function(g){return v(g)===a},Te.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Te.isForwardRef=function(g){return v(g)===s},Te.isFragment=function(g){return v(g)===r},Te.isLazy=function(g){return v(g)===f},Te.isMemo=function(g){return v(g)===d},Te.isPortal=function(g){return v(g)===t},Te.isProfiler=function(g){return v(g)===o},Te.isStrictMode=function(g){return v(g)===n},Te.isSuspense=function(g){return v(g)===l},Te.isSuspenseList=function(g){return v(g)===c},Te.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===l||g===c||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},Te.typeOf=v,Te}var Se={};/**
49
- * @license React
50
- * react-is.development.js
51
- *
52
- * Copyright (c) Meta Platforms, Inc. and affiliates.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */var Ed;function Ny(){return Ed||(Ed=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case t:switch(g=g.type,g){case n:case i:case o:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case l:case h:case f:return g;case a:return g;default:return y}}case r:return y}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");Se.ContextConsumer=a,Se.ContextProvider=s,Se.Element=t,Se.ForwardRef=l,Se.Fragment=n,Se.Lazy=h,Se.Memo=f,Se.Portal=r,Se.Profiler=i,Se.StrictMode=o,Se.Suspense=c,Se.SuspenseList=d,Se.isContextConsumer=function(g){return e(g)===a},Se.isContextProvider=function(g){return e(g)===s},Se.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Se.isForwardRef=function(g){return e(g)===l},Se.isFragment=function(g){return e(g)===n},Se.isLazy=function(g){return e(g)===h},Se.isMemo=function(g){return e(g)===f},Se.isPortal=function(g){return e(g)===r},Se.isProfiler=function(g){return e(g)===i},Se.isStrictMode=function(g){return e(g)===o},Se.isSuspense=function(g){return e(g)===c},Se.isSuspenseList=function(g){return e(g)===d},Se.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===i||g===o||g===c||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===f||g.$$typeof===s||g.$$typeof===a||g.$$typeof===l||g.$$typeof===v||g.getModuleId!==void 0)},Se.typeOf=e}()),Se}process.env.NODE_ENV==="production"?ml.exports=$y():ml.exports=Ny();var Ui=ml.exports;function Ut(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 n0(e){if($.isValidElement(e)||Ui.isValidElementType(e)||!Ut(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=n0(e[r])}),t}function dt(e,t,r={clone:!0}){const n=r.clone?w({},e):e;return Ut(e)&&Ut(t)&&Object.keys(t).forEach(o=>{$.isValidElement(t[o])||Ui.isValidElementType(t[o])?n[o]=t[o]:Ut(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ut(e[o])?n[o]=dt(e[o],t[o],r):r.clone?n[o]=Ut(t[o])?n0(t[o]):t[o]:n[o]=t[o]}),n}function go(e,t){return t?dt(e,t,{clone:!1}):e}const Sr=process.env.NODE_ENV!=="production"?u.oneOfType([u.number,u.string,u.object,u.array]):{};function Ly(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=n.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},w({},t)):t}function Fy(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function jy(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>\`.
57
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:wr(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function By(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=i=>(r(n,i),n);return r(o),N(w({},e),{containerQueries:o})}const xa={xs:0,sm:600,md:900,lg:1200,xl:1536},Td={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xa[e]}px)`},Hy={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:xa[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Qt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Td;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const i=n.breakpoints||Td;return Object.keys(t).reduce((a,s)=>{if(Fy(i.keys,s)){const l=jy(n.containerQueries?n:Hy,s);l&&(a[l]=r(t[s],s))}else if(Object.keys(i.values||xa).includes(s)){const l=i.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function o0(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function i0(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function zy(e,...t){const r=o0(e),n=[r,...t].reduce((o,i)=>dt(o,i),{});return i0(Object.keys(r),n)}function Wy(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Vy({values:e,breakpoints:t,base:r}){const n=r||Wy(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Ca(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Gi(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ca(e,r)||n,t&&(o=t(o,n,e)),o}function qe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Ca(l,n)||{};return Qt(a,s,f=>{let h=Gi(c,o,f);return f===h&&typeof f=="string"&&(h=Gi(c,o,`${t}${f==="default"?"":fe(f)}`,f)),r===!1?h:{[r]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Sr}:{},i.filterProps=[t],i}function Uy(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Gy={m:"margin",p:"padding"},Yy={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Sd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qy=Uy(e=>{if(e.length>2)if(Sd[e])e=Sd[e];else return[e];const[t,r]=e.split(""),n=Gy[t],o=Yy[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Ea=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ta=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Xy=[...Ea,...Ta];function Go(e,t,r,n){var i;const o=(i=Ca(e,t,!0))!=null?i:r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof o=="string"?`calc(${a} * ${o})`:o*a):Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
58
- `)):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(`
59
- `)));const l=o[s];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
60
- `)),()=>{})}function Sa(e){return Go(e,"spacing",8,"spacing")}function An(e,t){return typeof t=="string"||t==null?t:e(t)}function Ky(e,t){return r=>e.reduce((n,o)=>(n[o]=An(t,r),n),{})}function Qy(e,t,r,n){if(!t.includes(r))return null;const o=qy(r),i=Ky(o,n),a=e[r];return Qt(e,a,i)}function a0(e,t){const r=Sa(e.theme);return Object.keys(e).map(n=>Qy(e,t,n,r)).reduce(go,{})}function ze(e){return a0(e,Ea)}ze.propTypes=process.env.NODE_ENV!=="production"?Ea.reduce((e,t)=>(e[t]=Sr,e),{}):{};ze.filterProps=Ea;function We(e){return a0(e,Ta)}We.propTypes=process.env.NODE_ENV!=="production"?Ta.reduce((e,t)=>(e[t]=Sr,e),{}):{};We.filterProps=Ta;process.env.NODE_ENV!=="production"&&Xy.reduce((e,t)=>(e[t]=Sr,e),{});function Ra(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?go(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function At(e){return typeof e!="number"?e:`${e}px solid`}function Lt(e,t){return qe({prop:e,themeKey:"borders",transform:t})}const Zy=Lt("border",At),Jy=Lt("borderTop",At),eb=Lt("borderRight",At),tb=Lt("borderBottom",At),rb=Lt("borderLeft",At),nb=Lt("borderColor"),ob=Lt("borderTopColor"),ib=Lt("borderRightColor"),ab=Lt("borderBottomColor"),sb=Lt("borderLeftColor"),lb=Lt("outline",At),cb=Lt("outlineColor"),_a=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Go(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:An(t,n)});return Qt(e,e.borderRadius,r)}return null};_a.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Sr}:{};_a.filterProps=["borderRadius"];Ra(Zy,Jy,eb,tb,rb,nb,ob,ib,ab,sb,_a,lb,cb);const Ma=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Go(e.theme,"spacing",8,"gap"),r=n=>({gap:An(t,n)});return Qt(e,e.gap,r)}return null};Ma.propTypes=process.env.NODE_ENV!=="production"?{gap:Sr}:{};Ma.filterProps=["gap"];const Oa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Go(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:An(t,n)});return Qt(e,e.columnGap,r)}return null};Oa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Sr}:{};Oa.filterProps=["columnGap"];const ka=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Go(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:An(t,n)});return Qt(e,e.rowGap,r)}return null};ka.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Sr}:{};ka.filterProps=["rowGap"];const ub=qe({prop:"gridColumn"}),db=qe({prop:"gridRow"}),fb=qe({prop:"gridAutoFlow"}),pb=qe({prop:"gridAutoColumns"}),hb=qe({prop:"gridAutoRows"}),gb=qe({prop:"gridTemplateColumns"}),mb=qe({prop:"gridTemplateRows"}),vb=qe({prop:"gridTemplateAreas"}),yb=qe({prop:"gridArea"});Ra(Ma,Oa,ka,ub,db,fb,pb,hb,gb,mb,vb,yb);function yn(e,t){return t==="grey"?t:e}const bb=qe({prop:"color",themeKey:"palette",transform:yn}),wb=qe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yn}),xb=qe({prop:"backgroundColor",themeKey:"palette",transform:yn});Ra(bb,wb,xb);function bt(e){return e<=1&&e!==0?`${e*100}%`:e}const Cb=qe({prop:"width",transform:bt}),jc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,a,s,l;const n=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||xa[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:bt(r)}};return Qt(e,e.maxWidth,t)}return null};jc.filterProps=["maxWidth"];const Eb=qe({prop:"minWidth",transform:bt}),Tb=qe({prop:"height",transform:bt}),Sb=qe({prop:"maxHeight",transform:bt}),Rb=qe({prop:"minHeight",transform:bt});qe({prop:"size",cssProperty:"width",transform:bt});qe({prop:"size",cssProperty:"height",transform:bt});const _b=qe({prop:"boxSizing"});Ra(Cb,jc,Eb,Tb,Sb,Rb,_b);const Yo={border:{themeKey:"borders",transform:At},borderTop:{themeKey:"borders",transform:At},borderRight:{themeKey:"borders",transform:At},borderBottom:{themeKey:"borders",transform:At},borderLeft:{themeKey:"borders",transform:At},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:At},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_a},color:{themeKey:"palette",transform:yn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yn},backgroundColor:{themeKey:"palette",transform:yn},p:{style:We},pt:{style:We},pr:{style:We},pb:{style:We},pl:{style:We},px:{style:We},py:{style:We},padding:{style:We},paddingTop:{style:We},paddingRight:{style:We},paddingBottom:{style:We},paddingLeft:{style:We},paddingX:{style:We},paddingY:{style:We},paddingInline:{style:We},paddingInlineStart:{style:We},paddingInlineEnd:{style:We},paddingBlock:{style:We},paddingBlockStart:{style:We},paddingBlockEnd:{style:We},m:{style:ze},mt:{style:ze},mr:{style:ze},mb:{style:ze},ml:{style:ze},mx:{style:ze},my:{style:ze},margin:{style:ze},marginTop:{style:ze},marginRight:{style:ze},marginBottom:{style:ze},marginLeft:{style:ze},marginX:{style:ze},marginY:{style:ze},marginInline:{style:ze},marginInlineStart:{style:ze},marginInlineEnd:{style:ze},marginBlock:{style:ze},marginBlockStart:{style:ze},marginBlockEnd:{style:ze},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:Ma},rowGap:{style:ka},columnGap:{style:Oa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bt},maxWidth:{style:jc},minWidth:{transform:bt},height:{transform:bt},maxHeight:{transform:bt},minHeight:{transform:bt},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 Mb(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Ob(e,t){return typeof e=="function"?e(t):e}function kb(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:d,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const h=Ca(o,c)||{};return f?f(a):Qt(a,n,v=>{let g=Gi(h,d,v);return v===g&&typeof v=="string"&&(g=Gi(h,d,`${r}${v==="default"?"":fe(v)}`,v)),l===!1?g:{[l]:g}})}function t(r){var s;const{sx:n,theme:o={}}=r||{};if(!n)return null;const i=(s=o.unstable_sxConfig)!=null?s:Yo;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const d=o0(o.breakpoints),f=Object.keys(d);let h=d;return Object.keys(c).forEach(m=>{const v=Ob(c[m],o);if(v!=null)if(typeof v=="object")if(i[m])h=go(h,e(m,v,o,i));else{const g=Qt({theme:o},v,y=>({[m]:y}));Mb(g,v)?h[m]=t({sx:v,theme:o}):h=go(h,g)}else h=go(h,e(m,v,o,i))}),Ly(o,i0(f,h))}return Array.isArray(n)?n.map(a):a(n)}return t}const Cn=kb();Cn.filterProps=["sx"];const Ab=e=>{var n,o;const t={systemProps:{},otherProps:{}},r=(o=(n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)!=null?o:Yo;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function s0(e){const a=e,{sx:t}=a,r=te(a,["sx"]),{systemProps:n,otherProps:o}=Ab(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return Ut(l)?w(w({},n),l):n}:i=w(w({},n),t),N(w({},o),{sx:i})}var Ib=!1,Pb=p.isPropValid,Db=function(t){return t!=="theme"},Rd=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Pb:Db},_d=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},$b=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return p.registerStyles(r,n,o),p.useInsertionEffectAlwaysWithSyncFallback(function(){return p.insertStyles(r,n,o)}),null},Nb=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=_d(t,r,n),l=s||Rd(o),c=!l("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var h=d[0];f.push(h[0]);for(var m=d.length,v=1;v<m;v++)f.push(d[v],h[v])}var g=p.withEmotionCache(function(y,b,T){var E=c&&y.as||o,x="",C=[],_=y;if(y.theme==null){_={};for(var k in y)_[k]=y[k];_.theme=$.useContext(p.ThemeContext$1)}typeof y.className=="string"?x=p.getRegisteredStyles(b.registered,C,y.className):y.className!=null&&(x=y.className+" ");var O=p.serializeStyles(f.concat(C),b.registered,_);x+=b.key+"-"+O.name,a!==void 0&&(x+=" "+a);var D=c&&s===void 0?Rd(E):l,F={};for(var H in y)c&&H==="as"||D(H)&&(F[H]=y[H]);return F.className=x,T&&(F.ref=T),$.createElement($.Fragment,null,$.createElement($b,{cache:b,serialized:O,isStringTag:typeof E=="string"}),$.createElement(E,F))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=f,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return a===void 0&&Ib?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(y,b){var T=e(y,p._extends({},r,b,{shouldForwardProp:_d(g,b,!0)}));return T.apply(void 0,f)},g}},Lb=["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"],ht=Nb.bind(null);Lb.forEach(function(e){ht[e]=ht(e)});/**
61
- * @mui/styled-engine v6.4.11
62
- *
63
- * @license MIT
64
- * This source code is licensed under the MIT license found in the
65
- * LICENSE file in the root directory of this source tree.
66
- */function Fb(e,t){const r=ht(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
67
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function jb(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Md=[];function Od(e){return Md[0]=e,p.serializeStyles(Md)}const Bb=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)=>N(w({},r),{[n.key]:n.val}),{})};function Hb(e){const h=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=h,o=te(h,["values","unit","step"]),i=Bb(t),a=Object.keys(i);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function l(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function c(m,v){const g=a.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:v)-n/100}${r})`}function d(m){return a.indexOf(m)+1<a.length?c(m,a[a.indexOf(m)+1]):s(m)}function f(m){const v=a.indexOf(m);return v===0?s(a[1]):v===a.length-1?l(a[v]):c(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return w({keys:a,values:i,up:s,down:l,between:c,only:d,not:f,unit:r},o)}const zb={borderRadius:4};function l0(e=8,t=Sa({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(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Wb(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function Aa(e={},...t){const d=e,{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=d,a=te(d,["breakpoints","palette","spacing","shape"]),s=Hb(r),l=l0(o);let c=dt({breakpoints:s,direction:"ltr",components:{},palette:w({mode:"light"},n),spacing:l,shape:w(w({},zb),i)},a);return c=By(c),c.applyStyles=Wb,c=t.reduce((f,h)=>dt(f,h),c),c.unstable_sxConfig=w(w({},Yo),a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(h){return Cn({sx:h,theme:this})},c}function Vb(e){return Object.keys(e).length===0}function Ub(e=null){const t=$.useContext(p.ThemeContext$1);return!t||Vb(t)?e:t}const Gb=Aa();function c0(e=Gb){return Ub(e)}const kd=e=>e,Yb=()=>{let e=kd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=kd}}},qb=Yb(),Xb={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 Oe(e,t,r="Mui"){const n=Xb[t];return n?`${r}-${n}`:`${qb.generate(e)}-${t}`}function ke(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Oe(e,o,r)}),n}function u0(e,t=""){return e.displayName||e.name||t}function Ad(e,t,r){const n=u0(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Kb(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return u0(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ui.ForwardRef:return Ad(e,e.render,"ForwardRef");case Ui.Memo:return Ad(e,e.type,"memo");default:return}}}function d0(e){const o=e,{variants:t}=o,r=te(o,["variants"]),n={variants:t,style:Od(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Od(i.style))}),n}const Qb=Aa();function Ps(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Zb(e){return e?(t,r)=>r[e]:null}function Jb(e,t,r){e.theme=r2(e.theme)?r:e.theme[t]||e.theme}function Pi(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Pi(e,o));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=r.style;else{const n=r,{variants:i}=n;o=te(n,["variants"])}return f0(e,r.variants,[o])}return r!=null&&r.isProcessed?r.style:r}function f0(e,t,r=[]){var o;let n;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(n!=null||(n=N(w(w({},e),e.ownerState),{ownerState:e.ownerState})),!a.props(n))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&((o=e.ownerState)==null?void 0:o[s])!==a.props[s])continue e;typeof a.style=="function"?(n!=null||(n=N(w(w({},e),e.ownerState),{ownerState:e.ownerState})),r.push(a.style(n))):r.push(a.style)}return r}function p0(e={}){const{themeId:t,defaultTheme:r=Qb,rootShouldForwardProp:n=Ps,slotShouldForwardProp:o=Ps}=e;function i(s){Jb(s,t,r)}return(s,l={})=>{jb(s,_=>_.filter(k=>k!==Cn));const C=l,{name:c,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:m=Zb(h0(d))}=C,v=te(C,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),g=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,y=h||!1;let b=Ps;d==="Root"||d==="root"?b=n:d?b=o:n2(s)&&(b=void 0);const T=Fb(s,w({shouldForwardProp:b,label:t2(c,d)},v)),E=_=>{if(_.__emotion_real===_)return _;if(typeof _=="function")return function(O){return Pi(O,_)};if(Ut(_)){const k=d0(_);return k.variants?function(D){return Pi(D,k)}:k.style}return _},x=(..._)=>{const k=[],O=_.map(E),D=[];if(k.push(i),c&&m&&D.push(function(A){var I,z;const j=(z=(I=A.theme.components)==null?void 0:I[c])==null?void 0:z.styleOverrides;if(!j)return null;const L={};for(const Y in j)L[Y]=Pi(A,j[Y]);return m(A,L)}),c&&!g&&D.push(function(A){var L,I;const B=A.theme,j=(I=(L=B==null?void 0:B.components)==null?void 0:L[c])==null?void 0:I.variants;return j?f0(A,j):null}),y||D.push(Cn),Array.isArray(O[0])){const R=O.shift(),A=new Array(k.length).fill(""),B=new Array(D.length).fill("");let j;j=[...A,...R,...B],j.raw=[...A,...R.raw,...B],k.unshift(j)}const F=[...k,...O,...D],H=T(...F);return s.muiName&&(H.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(H.displayName=e2(c,d,s)),H};return T.withConfig&&(x.withConfig=T.withConfig),x}}function e2(e,t,r){return e?`${e}${fe(t||"")}`:`Styled(${Kb(r)})`}function t2(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${h0(t||"Root")}`),r}function r2(e){for(const t in e)return!1;return!0}function n2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function h0(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function So(e,t){const r=w({},t);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]=w(w({},e[o]),r[o]);else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)r[o]=i||{};else if(!i)r[o]=a;else{r[o]=w({},a);for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;r[o][l]=So(i[l],a[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const xr=typeof window!="undefined"?$.useLayoutEffect:$.useEffect;function o2(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Bc(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}].`),o2(e,t,r)}function i2(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,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Cr(e){if(e.type)return e;if(e.charAt(0)==="#")return Cr(i2(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.
68
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:wr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
69
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:wr(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const a2=e=>{const t=Cr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},no=(e,t)=>{try{return a2(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ia(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function g0(e){e=Cr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,d=(c+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Ia({type:s,values:l})}function vl(e){e=Cr(e);let t=e.type==="hsl"||e.type==="hsla"?Cr(g0(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:Ht((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Id(e,t){const r=vl(e),n=vl(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ne(e,t){return e=Cr(e),t=Bc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ia(e)}function hi(e,t,r){try{return Ne(e,t)}catch(n){return e}}function Pa(e,t){if(e=Cr(e),t=Bc(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 Ia(e)}function Re(e,t,r){try{return Pa(e,t)}catch(n){return e}}function Da(e,t){if(e=Cr(e),t=Bc(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 Ia(e)}function _e(e,t,r){try{return Da(e,t)}catch(n){return e}}function yl(e,t=.15){return vl(e)>.5?Pa(e,t):Da(e,t)}function gi(e,t,r){try{return yl(e,t)}catch(n){return e}}function cr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function s2(e){const{prototype:t={}}=e;return!!t.isReactComponent}function m0(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window=="undefined")return null;let s;const l=i.type;return typeof l=="function"&&!s2(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Yr=cr(u.element,m0);Yr.isRequired=cr(u.element.isRequired,m0);function l2(e){const{prototype:t={}}=e;return!!t.isReactComponent}function c2(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window=="undefined")return null;let s;return typeof i=="function"&&!l2(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Hc=cr(u.elementType,c2),u2="exact-prop: ​";function zc(e){return process.env.NODE_ENV==="production"?e:N(w({},e),{[u2]: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}})}const qo=u.oneOfType([u.func,u.object]);function bl(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function d2(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Wr(e){return Ct(e).defaultView||window}function Pd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Dd=0;function f2(e){const[t,r]=$.useState(e),n=e||t;return $.useEffect(()=>{t==null&&(Dd+=1,r(`mui-${Dd}`))},[t]),n}const p2=w({},$),$d=p2.useId;function $a(e){if($d!==void 0){const t=$d();return e!=null?e:t}return f2(e)}function Wc({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=$.useRef(e!==void 0),[i,a]=$.useState(t),s=o?e:i;if(process.env.NODE_ENV!=="production"){$.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
70
- `))},[n,r,e]);const{current:c}=$.useRef(t);$.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
71
- `))},[JSON.stringify(t)])}const l=$.useCallback(c=>{o||a(c)},[]);return[s,l]}function nr(e){const t=$.useRef(e);return xr(()=>{t.current=e}),$.useRef((...r)=>(0,t.current)(...r)).current}const Nd={};function v0(e,t){const r=$.useRef(Nd);return r.current===Nd&&(r.current=e(t)),r}const h2=[];function g2(e){$.useEffect(e,h2)}class Na{constructor(){Un(this,"currentId",null);Un(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Un(this,"disposeEffect",()=>this.clear)}static create(){return new Na}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function $r(){const e=v0(Na.create).current;return g2(e.disposeEffect),e}function Yi(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(`
72
- `))}return!1}function y0(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function m2(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 b0(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const i=m2(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function w0(e,t,...r){return e[t]===void 0?null:b0(e,t,...r)}function wl(){return null}w0.isRequired=b0;wl.isRequired=wl;const Gt=process.env.NODE_ENV==="production"?wl:w0;function In(e){var t;return parseInt($.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const v2=$.createContext(void 0);function y2(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?So(o.defaultProps,n):!o.styleOverrides&&!o.variants?So(o,n):n}function b2({props:e,name:t}){const r=$.useContext(v2);return y2({props:e,name:t,theme:{components:r}})}const Ld={theme:void 0};function w2(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(Ld.theme=o.theme,i=d0(e(Ld)),t=i,r=o.theme),i}}function x2(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.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}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const Fd=(e,t,r,n=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},C2=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}n(e)},E2=(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 Ds(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return C2(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const d=`--${r?`${r}-`:""}${s.join("-")}`,f=E2(s,l);Object.assign(o,{[d]:f}),Fd(i,s,`var(${d})`,c),Fd(a,s,`var(${d}, ${f})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function T2(e,t={}){const{getSelector:r=y,disableCssColorScheme:n,colorSchemeSelector:o}=t,E=e,{colorSchemes:i={},components:a,defaultColorScheme:s="light"}=E,l=te(E,["colorSchemes","components","defaultColorScheme"]),{vars:c,css:d,varsWithDefaults:f}=Ds(l,t);let h=f;const m={},x=i,{[s]:v}=x,g=te(x,[pi(s)]);if(Object.entries(g||{}).forEach(([C,_])=>{const{vars:k,css:O,varsWithDefaults:D}=Ds(_,t);h=dt(h,D),m[C]={css:O,vars:k}}),v){const{css:C,vars:_,varsWithDefaults:k}=Ds(v,t);h=dt(h,k),m[s]={css:C,vars:_}}function y(C,_){var O,D;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),C){if(k==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((D=(O=i[C])==null?void 0:O.palette)==null?void 0:D.mode)||C})`]:{":root":_}};if(k)return e.defaultColorScheme===C?`:root, ${k.replace("%s",String(C))}`:k.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C=w({},c);return Object.entries(m).forEach(([,{vars:_}])=>{C=dt(C,_)}),C},generateStyleSheets:()=>{var H,R;const C=[],_=e.defaultColorScheme||"light";function k(A,B){Object.keys(B).length&&C.push(typeof A=="string"?{[A]:w({},B)}:A)}k(r(void 0,w({},d)),d);const F=m,{[_]:O}=F,D=te(F,[pi(_)]);if(O){const{css:A}=O,B=(R=(H=i[_])==null?void 0:H.palette)==null?void 0:R.mode,j=w(!n&&B?{colorScheme:B}:{},A);k(r(_,w({},j)),j)}return Object.entries(D).forEach(([A,{css:B}])=>{var I,z;const j=(z=(I=i[A])==null?void 0:I.palette)==null?void 0:z.mode,L=w(!n&&j?{colorScheme:j}:{},B);k(r(A,w({},L)),L)}),C}}}function S2(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 Ro={black:"#000",white:"#fff"},R2={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"},Jr={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"},en={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"},Gn={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"},tn={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"},rn={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"},nn={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 x0(){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:Ro.white,default:Ro.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 _2=x0();function C0(){return{text:{primary:Ro.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:Ro.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 jd=C0();function Bd(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Da(e.main,o):t==="dark"&&(e.dark=Pa(e.main,i)))}function M2(e="light"){return e==="dark"?{main:tn[200],light:tn[50],dark:tn[400]}:{main:tn[700],light:tn[400],dark:tn[800]}}function O2(e="light"){return e==="dark"?{main:Jr[200],light:Jr[50],dark:Jr[400]}:{main:Jr[500],light:Jr[300],dark:Jr[700]}}function k2(e="light"){return e==="dark"?{main:en[500],light:en[300],dark:en[700]}:{main:en[700],light:en[400],dark:en[800]}}function A2(e="light"){return e==="dark"?{main:rn[400],light:rn[300],dark:rn[700]}:{main:rn[700],light:rn[500],dark:rn[900]}}function I2(e="light"){return e==="dark"?{main:nn[400],light:nn[300],dark:nn[700]}:{main:nn[800],light:nn[500],dark:nn[900]}}function P2(e="light"){return e==="dark"?{main:Gn[400],light:Gn[300],dark:Gn[700]}:{main:"#ed6c02",light:Gn[500],dark:Gn[900]}}function Vc(e){const g=e,{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=g,o=te(g,["mode","contrastThreshold","tonalOffset"]),i=e.primary||M2(t),a=e.secondary||O2(t),s=e.error||k2(t),l=e.info||A2(t),c=e.success||I2(t),d=e.warning||P2(t);function f(y){const b=Id(y,jd.text.primary)>=r?jd.text.primary:_2.text.primary;if(process.env.NODE_ENV!=="production"){const T=Id(y,b);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${b} on ${y}`,"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(`
73
- `))}return b}const h=({color:y,name:b,mainShade:T=500,lightShade:E=300,darkShade:x=700})=>{if(y=w({},y),!y.main&&y[T]&&(y.main=y[T]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
74
- The color object needs to have a \`main\` property or a \`${T}\` property.`:wr(11,b?` (${b})`:"",T));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
75
- \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
76
-
77
- Did you intend to use one of the following approaches?
78
-
79
- import { green } from "@mui/material/colors";
80
-
81
- const theme1 = createTheme({ palette: {
82
- primary: green,
83
- } });
84
-
85
- const theme2 = createTheme({ palette: {
86
- primary: { main: green[500] },
87
- } });`:wr(12,b?` (${b})`:"",JSON.stringify(y.main)));return Bd(y,"light",E,n),Bd(y,"dark",x,n),y.contrastText||(y.contrastText=f(y.main)),y};let m;return t==="light"?m=x0():t==="dark"&&(m=C0()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),dt(w({common:w({},Ro),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:R2,contrastThreshold:r,getContrastText:f,augmentColor:h,tonalOffset:n},m),o)}function D2(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function $2(e,t){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}function N2(e){return Math.round(e*1e5)/1e5}const Hd={textTransform:"uppercase"},zd='"Roboto", "Helvetica", "Arial", sans-serif';function L2(e,t){const y=typeof t=="function"?t(e):t,{fontFamily:r=zd,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d}=y,f=te(y,["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 l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=n/14,m=d||(b=>`${b/l*h}rem`),v=(b,T,E,x,C)=>w(w(w({fontFamily:r,fontWeight:b,fontSize:m(T),lineHeight:E},r===zd?{letterSpacing:`${N2(x/T)}em`}:{}),C),c),g={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(a,14,1.75,.4,Hd),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Hd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return dt(w({htmlFontSize:l,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s},g),f,{clone:!1})}const F2=.2,j2=.14,B2=.12;function $e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${F2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${j2})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${B2})`].join(",")}const H2=["none",$e(0,2,1,-1,0,1,1,0,0,1,3,0),$e(0,3,1,-2,0,2,2,0,0,1,5,0),$e(0,3,3,-2,0,3,4,0,0,1,8,0),$e(0,2,4,-1,0,4,5,0,0,1,10,0),$e(0,3,5,-1,0,5,8,0,0,1,14,0),$e(0,3,5,-1,0,6,10,0,0,1,18,0),$e(0,4,5,-2,0,7,10,1,0,2,16,1),$e(0,5,5,-3,0,8,10,1,0,3,14,2),$e(0,5,6,-3,0,9,12,1,0,3,16,2),$e(0,6,6,-3,0,10,14,1,0,4,18,3),$e(0,6,7,-4,0,11,15,1,0,4,20,3),$e(0,7,8,-4,0,12,17,2,0,5,22,4),$e(0,7,8,-4,0,13,19,2,0,5,24,4),$e(0,7,9,-4,0,14,21,2,0,5,26,4),$e(0,8,9,-5,0,15,22,2,0,6,28,5),$e(0,8,10,-5,0,16,24,2,0,6,30,5),$e(0,8,11,-5,0,17,26,2,0,6,32,5),$e(0,9,11,-5,0,18,28,2,0,7,34,6),$e(0,9,12,-6,0,19,29,2,0,7,36,6),$e(0,10,13,-6,0,20,31,3,0,8,38,7),$e(0,10,13,-6,0,21,33,3,0,8,40,7),$e(0,10,14,-6,0,22,35,3,0,8,42,7),$e(0,11,14,-7,0,23,36,3,0,9,44,8),$e(0,11,15,-7,0,24,38,3,0,9,46,8)],z2={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)"},E0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wd(e){return`${Math.round(e)}ms`}function W2(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*Ht(t,.25)+t/5)*10),3e3)}function V2(e){const t=w(w({},z2),e.easing),r=w(w({},E0),e.duration);return N(w({getAutoHeightDuration:W2,create:(o=["all"],i={})=>{const d=i,{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=d,c=te(d,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){const f=m=>typeof m=="string",h=m=>!Number.isNaN(parseFloat(m));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!f(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),f(s)||console.error('MUI: Argument "easing" must be a string.'),!h(l)&&!f(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
88
- `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:Wd(a)} ${s} ${typeof l=="string"?l:Wd(l)}`).join(",")}},e),{easing:t,duration:r})}const U2={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function G2(e){return Ut(e)||typeof e=="undefined"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function T0(e={}){const t=w({},e);function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!G2(s)||a.startsWith("unstable_")?delete n[a]:Ut(s)&&(n[a]=w({},s),r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
89
-
90
- const theme = ${JSON.stringify(t,null,2)};
91
-
92
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
93
- theme.transitions = createTransitions(theme.transitions || {});
94
-
95
- export default theme;`}function xl(e={},...t){const m=e,{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l}=m,c=te(m,["breakpoints","mixins","spacing","palette","transitions","typography","shape"]);if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":wr(20));const d=Vc(i),f=Aa(e);let h=dt(f,{mixins:$2(f.breakpoints,n),palette:d,shadows:H2.slice(),typography:L2(d,s),transitions:V2(a),zIndex:w({},U2)});if(h=dt(h,c),h=t.reduce((v,g)=>dt(v,g),h),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(y,b)=>{let T;for(T in y){const E=y[T];if(v.includes(T)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const x=Oe("",T);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
96
- `))}y[T]={}}}};Object.keys(h.components).forEach(y=>{const b=h.components[y].styleOverrides;b&&y.startsWith("Mui")&&g(b,y)})}return h.unstable_sxConfig=w(w({},Yo),c==null?void 0:c.unstable_sxConfig),h.unstable_sx=function(g){return Cn({sx:g,theme:this})},h.toRuntimeSource=T0,h}function Cl(e){let t;return e<1?t=5.11916*Ht(e,2):t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Y2=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Cl(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function S0(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function R0(e){return e==="dark"?Y2:[]}function q2(e){const a=e,{palette:t={mode:"light"},opacity:r,overlays:n}=a,o=te(a,["palette","opacity","overlays"]),i=Vc(t);return w({palette:i,opacity:w(w({},S0(i.mode)),r),overlays:n||R0(i.mode)},o)}function X2(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 K2=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Q2=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return K2(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:w(w({},r),a)}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function Z2(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function U(e,t,r){!e[t]&&r&&(e[t]=r)}function oo(e){return typeof e!="string"||!e.startsWith("hsl")?e:g0(e)}function er(e,t){`${t}Channel`in e||(e[`${t}Channel`]=no(oo(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().
97
- 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 J2(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zt=e=>{try{return e()}catch(t){}},ew=(e="mui")=>x2(e);function $s(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=q2(N(w({},t),{palette:w({mode:o},t==null?void 0:t.palette)}));return}const s=xl(N(w({},r),{palette:w({mode:o},t==null?void 0:t.palette)})),{palette:i}=s,a=te(s,["palette"]);return e[n]=N(w({},t),{palette:i,opacity:w(w({},S0(o)),t==null?void 0:t.opacity),overlays:(t==null?void 0:t.overlays)||R0(o)}),a}function tw(e={},...t){const D=e,{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=X2,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root"}=D,c=te(D,["colorSchemes","defaultColorScheme","disableCssColorScheme","cssVarPrefix","shouldSkipGeneratingVar","colorSchemeSelector","rootSelector"]),d=Object.keys(r)[0],f=n||(r.light&&d!=="light"?"light":d),h=ew(i),F=r,{[f]:m,light:v,dark:g}=F,y=te(F,[pi(f),"light","dark"]),b=w({},y);let T=m;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.`:wr(21,f));const E=$s(b,T,c,f);v&&!b.light&&$s(b,v,void 0,"light"),g&&!b.dark&&$s(b,g,void 0,"dark");let x=N(w({defaultColorScheme:f},E),{cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:b,font:w(w({},D2(E.typography)),E.font),spacing:J2(c.spacing)});Object.keys(x.colorSchemes).forEach(H=>{const R=x.colorSchemes[H].palette,A=B=>{const j=B.split("-"),L=j[1],I=j[2];return h(B,R[L][I])};if(R.mode==="light"&&(U(R.common,"background","#fff"),U(R.common,"onBackground","#000")),R.mode==="dark"&&(U(R.common,"background","#000"),U(R.common,"onBackground","#fff")),Z2(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){U(R.Alert,"errorColor",Re(R.error.light,.6)),U(R.Alert,"infoColor",Re(R.info.light,.6)),U(R.Alert,"successColor",Re(R.success.light,.6)),U(R.Alert,"warningColor",Re(R.warning.light,.6)),U(R.Alert,"errorFilledBg",A("palette-error-main")),U(R.Alert,"infoFilledBg",A("palette-info-main")),U(R.Alert,"successFilledBg",A("palette-success-main")),U(R.Alert,"warningFilledBg",A("palette-warning-main")),U(R.Alert,"errorFilledColor",zt(()=>R.getContrastText(R.error.main))),U(R.Alert,"infoFilledColor",zt(()=>R.getContrastText(R.info.main))),U(R.Alert,"successFilledColor",zt(()=>R.getContrastText(R.success.main))),U(R.Alert,"warningFilledColor",zt(()=>R.getContrastText(R.warning.main))),U(R.Alert,"errorStandardBg",_e(R.error.light,.9)),U(R.Alert,"infoStandardBg",_e(R.info.light,.9)),U(R.Alert,"successStandardBg",_e(R.success.light,.9)),U(R.Alert,"warningStandardBg",_e(R.warning.light,.9)),U(R.Alert,"errorIconColor",A("palette-error-main")),U(R.Alert,"infoIconColor",A("palette-info-main")),U(R.Alert,"successIconColor",A("palette-success-main")),U(R.Alert,"warningIconColor",A("palette-warning-main")),U(R.AppBar,"defaultBg",A("palette-grey-100")),U(R.Avatar,"defaultBg",A("palette-grey-400")),U(R.Button,"inheritContainedBg",A("palette-grey-300")),U(R.Button,"inheritContainedHoverBg",A("palette-grey-A100")),U(R.Chip,"defaultBorder",A("palette-grey-400")),U(R.Chip,"defaultAvatarColor",A("palette-grey-700")),U(R.Chip,"defaultIconColor",A("palette-grey-700")),U(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),U(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),U(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),U(R.LinearProgress,"primaryBg",_e(R.primary.main,.62)),U(R.LinearProgress,"secondaryBg",_e(R.secondary.main,.62)),U(R.LinearProgress,"errorBg",_e(R.error.main,.62)),U(R.LinearProgress,"infoBg",_e(R.info.main,.62)),U(R.LinearProgress,"successBg",_e(R.success.main,.62)),U(R.LinearProgress,"warningBg",_e(R.warning.main,.62)),U(R.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),U(R.Slider,"primaryTrack",_e(R.primary.main,.62)),U(R.Slider,"secondaryTrack",_e(R.secondary.main,.62)),U(R.Slider,"errorTrack",_e(R.error.main,.62)),U(R.Slider,"infoTrack",_e(R.info.main,.62)),U(R.Slider,"successTrack",_e(R.success.main,.62)),U(R.Slider,"warningTrack",_e(R.warning.main,.62));const B=gi(R.background.default,.8);U(R.SnackbarContent,"bg",B),U(R.SnackbarContent,"color",zt(()=>R.getContrastText(B))),U(R.SpeedDialAction,"fabHoverBg",gi(R.background.paper,.15)),U(R.StepConnector,"border",A("palette-grey-400")),U(R.StepContent,"border",A("palette-grey-400")),U(R.Switch,"defaultColor",A("palette-common-white")),U(R.Switch,"defaultDisabledColor",A("palette-grey-100")),U(R.Switch,"primaryDisabledColor",_e(R.primary.main,.62)),U(R.Switch,"secondaryDisabledColor",_e(R.secondary.main,.62)),U(R.Switch,"errorDisabledColor",_e(R.error.main,.62)),U(R.Switch,"infoDisabledColor",_e(R.info.main,.62)),U(R.Switch,"successDisabledColor",_e(R.success.main,.62)),U(R.Switch,"warningDisabledColor",_e(R.warning.main,.62)),U(R.TableCell,"border",_e(hi(R.divider,1),.88)),U(R.Tooltip,"bg",hi(R.grey[700],.92))}if(R.mode==="dark"){U(R.Alert,"errorColor",_e(R.error.light,.6)),U(R.Alert,"infoColor",_e(R.info.light,.6)),U(R.Alert,"successColor",_e(R.success.light,.6)),U(R.Alert,"warningColor",_e(R.warning.light,.6)),U(R.Alert,"errorFilledBg",A("palette-error-dark")),U(R.Alert,"infoFilledBg",A("palette-info-dark")),U(R.Alert,"successFilledBg",A("palette-success-dark")),U(R.Alert,"warningFilledBg",A("palette-warning-dark")),U(R.Alert,"errorFilledColor",zt(()=>R.getContrastText(R.error.dark))),U(R.Alert,"infoFilledColor",zt(()=>R.getContrastText(R.info.dark))),U(R.Alert,"successFilledColor",zt(()=>R.getContrastText(R.success.dark))),U(R.Alert,"warningFilledColor",zt(()=>R.getContrastText(R.warning.dark))),U(R.Alert,"errorStandardBg",Re(R.error.light,.9)),U(R.Alert,"infoStandardBg",Re(R.info.light,.9)),U(R.Alert,"successStandardBg",Re(R.success.light,.9)),U(R.Alert,"warningStandardBg",Re(R.warning.light,.9)),U(R.Alert,"errorIconColor",A("palette-error-main")),U(R.Alert,"infoIconColor",A("palette-info-main")),U(R.Alert,"successIconColor",A("palette-success-main")),U(R.Alert,"warningIconColor",A("palette-warning-main")),U(R.AppBar,"defaultBg",A("palette-grey-900")),U(R.AppBar,"darkBg",A("palette-background-paper")),U(R.AppBar,"darkColor",A("palette-text-primary")),U(R.Avatar,"defaultBg",A("palette-grey-600")),U(R.Button,"inheritContainedBg",A("palette-grey-800")),U(R.Button,"inheritContainedHoverBg",A("palette-grey-700")),U(R.Chip,"defaultBorder",A("palette-grey-700")),U(R.Chip,"defaultAvatarColor",A("palette-grey-300")),U(R.Chip,"defaultIconColor",A("palette-grey-300")),U(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),U(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),U(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),U(R.LinearProgress,"primaryBg",Re(R.primary.main,.5)),U(R.LinearProgress,"secondaryBg",Re(R.secondary.main,.5)),U(R.LinearProgress,"errorBg",Re(R.error.main,.5)),U(R.LinearProgress,"infoBg",Re(R.info.main,.5)),U(R.LinearProgress,"successBg",Re(R.success.main,.5)),U(R.LinearProgress,"warningBg",Re(R.warning.main,.5)),U(R.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),U(R.Slider,"primaryTrack",Re(R.primary.main,.5)),U(R.Slider,"secondaryTrack",Re(R.secondary.main,.5)),U(R.Slider,"errorTrack",Re(R.error.main,.5)),U(R.Slider,"infoTrack",Re(R.info.main,.5)),U(R.Slider,"successTrack",Re(R.success.main,.5)),U(R.Slider,"warningTrack",Re(R.warning.main,.5));const B=gi(R.background.default,.98);U(R.SnackbarContent,"bg",B),U(R.SnackbarContent,"color",zt(()=>R.getContrastText(B))),U(R.SpeedDialAction,"fabHoverBg",gi(R.background.paper,.15)),U(R.StepConnector,"border",A("palette-grey-600")),U(R.StepContent,"border",A("palette-grey-600")),U(R.Switch,"defaultColor",A("palette-grey-300")),U(R.Switch,"defaultDisabledColor",A("palette-grey-600")),U(R.Switch,"primaryDisabledColor",Re(R.primary.main,.55)),U(R.Switch,"secondaryDisabledColor",Re(R.secondary.main,.55)),U(R.Switch,"errorDisabledColor",Re(R.error.main,.55)),U(R.Switch,"infoDisabledColor",Re(R.info.main,.55)),U(R.Switch,"successDisabledColor",Re(R.success.main,.55)),U(R.Switch,"warningDisabledColor",Re(R.warning.main,.55)),U(R.TableCell,"border",Re(hi(R.divider,1),.68)),U(R.Tooltip,"bg",hi(R.grey[700],.92))}er(R.background,"default"),er(R.background,"paper"),er(R.common,"background"),er(R.common,"onBackground"),er(R,"divider"),Object.keys(R).forEach(B=>{const j=R[B];B!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&U(R[B],"mainChannel",no(oo(j.main))),j.light&&U(R[B],"lightChannel",no(oo(j.light))),j.dark&&U(R[B],"darkChannel",no(oo(j.dark))),j.contrastText&&U(R[B],"contrastTextChannel",no(oo(j.contrastText))),B==="text"&&(er(R[B],"primary"),er(R[B],"secondary")),B==="action"&&(j.active&&er(R[B],"active"),j.selected&&er(R[B],"selected")))})}),x=t.reduce((H,R)=>dt(H,R),x);const C={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Q2(x)},{vars:_,generateThemeVars:k,generateStyleSheets:O}=T2(x,C);return x.vars=_,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([H,R])=>{x[H]=R}),x.generateThemeVars=k,x.generateStyleSheets=O,x.generateSpacing=function(){return l0(c.spacing,Sa(this))},x.getColorSchemeSelector=S2(s),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=a,x.unstable_sxConfig=w(w({},Yo),c==null?void 0:c.unstable_sxConfig),x.unstable_sx=function(R){return Cn({sx:R,theme:this})},x.toRuntimeSource=T0,x}function Vd(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]=N(w({},r!==!0&&r),{palette:Vc(N(w({},r===!0?{}:r.palette),{mode:t}))}))}function rw(e={},...t){const d=e,{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode}=d,a=te(d,["palette","cssVariables","colorSchemes","defaultColorScheme"]),s=i||"light",l=o==null?void 0:o[s],c=w(w({},o),r?{[s]:N(w({},typeof l!="boolean"&&l),{palette:r})}:void 0);if(n===!1){if(!("colorSchemes"in e))return xl(e,...t);let f=r;"palette"in e||c[s]&&(c[s]!==!0?f=c[s].palette:s==="dark"&&(f={mode:"dark"}));const h=xl(N(w({},e),{palette:f}),...t);return h.defaultColorScheme=s,h.colorSchemes=c,h.palette.mode==="light"&&(h.colorSchemes.light=N(w({},c.light!==!0&&c.light),{palette:h.palette}),Vd(h,"dark",c.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark=N(w({},c.dark!==!0&&c.dark),{palette:h.palette}),Vd(h,"light",c.light)),h}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),tw(w(N(w({},a),{colorSchemes:c,defaultColorScheme:s}),typeof n!="boolean"&&n),...t)}const _0=rw(),M0="$$material";function Xo(){const e=c0(_0);return process.env.NODE_ENV!=="production"&&$.useDebugValue(e),e[M0]||e}function nw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ko=e=>nw(e)&&e!=="classes",de=p0({themeId:M0,defaultTheme:_0,rootShouldForwardProp:Ko});function ow(){return s0}function Fe(e){return b2(e)}const _o=$.createContext({});process.env.NODE_ENV!=="production"&&(_o.displayName="ListContext");function iw(e){return Oe("MuiList",e)}ke("MuiList",["root","padding","dense","subheader"]);const aw=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Be({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},iw,t)},sw=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}}]}),Uc=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiList"}),v=n,{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=v,d=te(v,["children","className","component","dense","disablePadding","subheader"]),f=$.useMemo(()=>({dense:s}),[s]),h=N(w({},n),{component:a,dense:s,disablePadding:l}),m=aw(h);return Z.jsx(_o.Provider,{value:f,children:Z.jsxs(sw,N(w({as:a,className:he(m.root,i),ref:r,ownerState:h},d),{children:[c,o]}))})});process.env.NODE_ENV!=="production"&&(Uc.propTypes={children:u.node,classes:u.object,className:u.string,component:u.elementType,dense:u.bool,disablePadding:u.bool,subheader:u.node,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});const Ye=w2;function lw(e){return Oe("MuiSvgIcon",e)}ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cw=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(r)}`]};return Be(o,lw,n)},uw=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${fe(r.color)}`],t[`fontSize${fe(r.fontSize)}`]]}})(Ye(({theme:e})=>{var t,r,n,o,i,a,s,l,c,d,f,h,m,v,g,y,b,T;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(o=(n=((r=e.vars)!=null?r:e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}},...Object.entries(((h=e.vars)!=null?h:e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var x,C,_;return{props:{color:E},style:{color:(_=(C=((x=e.vars)!=null?x:e).palette)==null?void 0:C[E])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(g=(v=((m=e.vars)!=null?m:e).palette)==null?void 0:v.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(T=(b=((y=e.vars)!=null?y:e).palette)==null?void 0:b.action)==null?void 0:T.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),qi=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiSvgIcon"}),T=n,{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24"}=T,m=te(T,["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"]),v=$.isValidElement(o)&&o.type==="svg",g=N(w({},n),{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:v}),y={};d||(y.viewBox=h);const b=cw(g);return Z.jsxs(uw,N(w(w(w({as:s,className:he(b.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},y),m),v&&o.props),{ownerState:g,children:[v?o.props.children:o,f?Z.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(qi.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),u.string]),component:u.elementType,fontSize:u.oneOfType([u.oneOf(["inherit","large","medium","small"]),u.string]),htmlColor:u.string,inheritViewBox:u.bool,shapeRendering:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),titleAccess:u.string,viewBox:u.string});qi.muiName="SvgIcon";function Pn(e,t){function r(n,o){return Z.jsx(qi,N(w({"data-testid":`${t}Icon`,ref:o},n),{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=qi.muiName,$.memo($.forwardRef(r))}function dw(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return o=>{const i=typeof t=="function"?t(o):t,a=typeof e=="function"?e(w(w({},o),i)):e,s=he(o==null?void 0:o.className,i==null?void 0:i.className,a==null?void 0:a.className);return w(w(w(w(w({},i),a),!!s&&{className:s}),(i==null?void 0:i.style)&&(a==null?void 0:a.style)&&{style:w(w({},i.style),a.style)}),(i==null?void 0:i.sx)&&(a==null?void 0:a.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]})};const r=t,n=he(r==null?void 0:r.className,e==null?void 0:e.className);return w(w(w(w(w({},t),e),!!n&&{className:n}),(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:w(w({},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 Ns(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ud(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function O0(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 Yn(e,t,r,n,o,i){let a=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!O0(s,i)||l)s=o(e,s,r);else return s.focus(),!0}return!1}const Gc=$.forwardRef(function(t,r){const E=t,{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=E,h=te(E,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),m=$.useRef(null),v=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xr(()=>{o&&m.current.focus()},[o]),$.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:C})=>{const _=!m.current.style.width;if(x.clientHeight<m.current.clientHeight&&_){const k=`${y0(Wr(x))}px`;m.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=k,m.current.style.width=`calc(100% + ${k})`}return m.current}}),[]);const g=x=>{const C=m.current,_=x.key;if(x.ctrlKey||x.metaKey||x.altKey){d&&d(x);return}const O=Ct(C).activeElement;if(_==="ArrowDown")x.preventDefault(),Yn(C,O,c,l,Ns);else if(_==="ArrowUp")x.preventDefault(),Yn(C,O,c,l,Ud);else if(_==="Home")x.preventDefault(),Yn(C,null,c,l,Ns);else if(_==="End")x.preventDefault(),Yn(C,null,c,l,Ud);else if(_.length===1){const D=v.current,F=_.toLowerCase(),H=performance.now();D.keys.length>0&&(H-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&F!==D.keys[0]&&(D.repeating=!1)),D.lastTime=H,D.keys.push(F);const R=O&&!D.repeating&&O0(O,D);D.previousKeyMatched&&(R||Yn(C,O,!1,l,Ns,D))?x.preventDefault():D.previousKeyMatched=!1}d&&d(x)},y=ft(m,r);let b=-1;$.Children.forEach(a,(x,C)=>{if(!$.isValidElement(x)){b===C&&(b+=1,b>=a.length&&(b=-1));return}process.env.NODE_ENV!=="production"&&Nc.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
98
- `)),x.props.disabled||(f==="selectedMenu"&&x.props.selected||b===-1)&&(b=C),b===C&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const T=$.Children.map(a,(x,C)=>{if(C===b){const _={};return i&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),$.cloneElement(x,_)}return x});return Z.jsx(Uc,N(w({role:"menu",ref:y,className:s,onKeyDown:g,tabIndex:o?0:-1},h),{children:T}))});process.env.NODE_ENV!=="production"&&(Gc.propTypes={autoFocus:u.bool,autoFocusItem:u.bool,children:u.node,className:u.string,disabledItemsFocusable:u.bool,disableListWrap:u.bool,onKeyDown:u.func,variant:u.oneOf(["menu","selectedMenu"])});function fw(e){return typeof e=="string"}function k0(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 A0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fl(e,t)}const Gd={disabled:!1};var pw=process.env.NODE_ENV!=="production"?u.oneOfType([u.number,u.shape({enter:u.number,exit:u.number,appear:u.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&u.oneOfType([u.string,u.shape({enter:u.string,exit:u.string,active:u.string}),u.shape({enter:u.string,enterDone:u.string,enterActive:u.string,exit:u.string,exitDone:u.string,exitActive:u.string})]);const Xi=S.createContext(null);var io="unmounted",Ar="exited",Ir="entering",un="entered",El="exiting",Bt=function(e){A0(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=Ar,i.appearStatus=Ir):l=un:n.unmountOnExit||n.mountOnEnter?l=io:l=Ar,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===io?{status:Ar}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ir&&a!==un&&(i=Ir):(a===Ir||a===un)&&(i=El)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Ir?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:wt.findDOMNode(this)),this.performEnter(o)):this.performExit()):this.props.unmountOnExit&&this.state.status===Ar&&this.setState({status:io})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[wt.findDOMNode(this),s],c=l[0],d=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||Gd.disabled){this.safeSetState({status:un},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Ir},function(){i.props.onEntering(c,d),i.onTransitionEnd(h,function(){i.safeSetState({status:un},function(){i.props.onEntered(c,d)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:wt.findDOMNode(this);if(!i||Gd.disabled){this.safeSetState({status:Ar},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:El},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Ar},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:wt.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===io)return null;var i=this.props,a=i.children,s=k0(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Xi.Provider,{value:null},typeof a=="function"?a(o,s):S.cloneElement(S.Children.only(a),s))},t}(S.Component);Bt.contextType=Xi;Bt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:u.shape({current:typeof Element=="undefined"?u.any:function(e,t,r,n,o,i){var a=e[t];return u.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:u.oneOfType([u.func.isRequired,u.element.isRequired]).isRequired,in:u.bool,mountOnEnter:u.bool,unmountOnExit:u.bool,appear:u.bool,enter:u.bool,exit:u.bool,timeout:function(t){var r=pw;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:u.func,onEnter:u.func,onEntering:u.func,onEntered:u.func,onExit:u.func,onExiting:u.func,onExited:u.func}:{};function on(){}Bt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:on,onEntering:on,onEntered:on,onExit:on,onExiting:on,onExited:on};Bt.UNMOUNTED=io;Bt.EXITED=Ar;Bt.ENTERING=Ir;Bt.ENTERED=un;Bt.EXITING=El;function Yc(e,t){var r=function(i){return t&&S.isValidElement(i)?t(i):i},n=Object.create(null);return e&&S.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function hw(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];s[n[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<o.length;a++)s[o[a]]=r(o[a]);return s}function Nr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function gw(e,t){return Yc(e.children,function(r){return S.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Nr(r,"appear",e),enter:Nr(r,"enter",e),exit:Nr(r,"exit",e)})})}function mw(e,t,r){var n=Yc(e.children),o=hw(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(S.isValidElement(a)){var s=i in t,l=i in n,c=t[i],d=S.isValidElement(c)&&!c.props.in;l&&(!s||d)?o[i]=S.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:Nr(a,"exit",e),enter:Nr(a,"enter",e)}):!l&&s&&!d?o[i]=S.cloneElement(a,{in:!1}):l&&s&&S.isValidElement(c)&&(o[i]=S.cloneElement(a,{onExited:r.bind(null,a),in:c.props.in,exit:Nr(a,"exit",e),enter:Nr(a,"enter",e)}))}}),o}var vw=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},yw={component:"div",childFactory:function(t){return t}},qc=function(e){A0(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(ly(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?gw(o,s):mw(o,a,s),firstRender:!1}},r.handleExited=function(o,i){var a=Yc(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var l=p._extends({},s.children);return delete l[o.key],{children:l}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=k0(o,["component","childFactory"]),l=this.state.contextValue,c=vw(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?S.createElement(Xi.Provider,{value:l},c):S.createElement(Xi.Provider,{value:l},S.createElement(i,s,c))},t}(S.Component);qc.propTypes=process.env.NODE_ENV!=="production"?{component:u.any,children:u.node,appear:u.bool,enter:u.bool,exit:u.bool,childFactory:u.func}:{};qc.defaultProps=yw;function Mo(e,t){var i,a;const{timeout:r,easing:n,style:o={}}=e;return{duration:(i=o.transitionDuration)!=null?i:typeof r=="number"?r:r[t.mode]||0,easing:(a=o.transitionTimingFunction)!=null?a:typeof n=="object"?n[t.mode]:n,delay:o.transitionDelay}}function Tl(e){return`scale(${e}, ${Ht(e,2)})`}const bw={entering:{opacity:1,transform:Tl(1)},entered:{opacity:1,transform:"none"}},Ls=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Oo=$.forwardRef(function(t,r){const j=t,{addEndListener:n,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:m,style:v,timeout:g="auto",TransitionComponent:y=Bt}=j,b=te(j,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=$r(),E=$.useRef(),x=Xo(),C=$.useRef(null),_=ft(C,In(i),r),k=L=>I=>{if(L){const z=C.current;I===void 0?L(z):L(z,I)}},O=k(d),D=k((L,I)=>{const{duration:z,delay:Y,easing:P}=Mo({style:v,timeout:g,easing:a},{mode:"enter"});let V;g==="auto"?(V=x.transitions.getAutoHeightDuration(L.clientHeight),E.current=V):V=z,L.style.transition=[x.transitions.create("opacity",{duration:V,delay:Y}),x.transitions.create("transform",{duration:Ls?V:V*.666,delay:Y,easing:P})].join(","),l&&l(L,I)}),F=k(c),H=k(m),R=k(L=>{const{duration:I,delay:z,easing:Y}=Mo({style:v,timeout:g,easing:a},{mode:"exit"});let P;g==="auto"?(P=x.transitions.getAutoHeightDuration(L.clientHeight),E.current=P):P=I,L.style.transition=[x.transitions.create("opacity",{duration:P,delay:z}),x.transitions.create("transform",{duration:Ls?P:P*.666,delay:Ls?z:z||P*.333,easing:Y})].join(","),L.style.opacity=0,L.style.transform=Tl(.75),f&&f(L)}),A=k(h),B=L=>{g==="auto"&&T.start(E.current||0,L),n&&n(C.current,L)};return Z.jsx(y,N(w({appear:o,in:s,nodeRef:C,onEnter:D,onEntered:F,onEntering:O,onExit:R,onExited:A,onExiting:H,addEndListener:B,timeout:g==="auto"?null:g},b),{children:(L,Y)=>{var P=Y,{ownerState:I}=P,z=te(P,["ownerState"]);return $.cloneElement(i,w({style:w(w(w({opacity:0,transform:Tl(.75),visibility:L==="exited"&&!s?"hidden":void 0},bw[L]),v),i.props.style),ref:_},z))}}))});process.env.NODE_ENV!=="production"&&(Oo.propTypes={addEndListener:u.func,appear:u.bool,children:Yr.isRequired,easing:u.oneOfType([u.shape({enter:u.string,exit:u.string}),u.string]),in:u.bool,onEnter:u.func,onEntered:u.func,onEntering:u.func,onExit:u.func,onExited:u.func,onExiting:u.func,style:u.object,timeout:u.oneOfType([u.oneOf(["auto"]),u.number,u.shape({appear:u.number,enter:u.number,exit:u.number})])});Oo&&(Oo.muiSupportAuto=!0);function ww(e){const t=Ct(e);return t.body===e?Wr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function mo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Yd(e){return parseInt(Wr(e).getComputedStyle(e).paddingRight,10)||0}function xw(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 qd(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!xw(a);s&&l&&mo(a,o)})}function Fs(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Cw(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(ww(n)){const a=y0(Wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Yd(n)+a}px`;const s=Ct(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Yd(l)+a}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=Ct(n).body;else{const a=n.parentElement,s=Wr(n);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function Ew(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Tw{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&&mo(t.modalRef,!1);const o=Ew(r);qd(r,t.mount,t.modalRef,o,!0);const i=Fs(this.containers,a=>a.container===r);return i!==-1?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Fs(this.containers,i=>i.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=Cw(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Fs(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&mo(t.modalRef,r),qd(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&mo(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Sw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rw(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 _w(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 Mw(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_w(e))}function Ow(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sw)).forEach((n,o)=>{const i=Rw(n);i===-1||!Mw(n)||(i===0?t.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function kw(){return!0}function Ki(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Ow,isEnabled:a=kw,open:s}=e,l=$.useRef(!1),c=$.useRef(null),d=$.useRef(null),f=$.useRef(null),h=$.useRef(null),m=$.useRef(!1),v=$.useRef(null),g=ft(In(t),v),y=$.useRef(null);$.useEffect(()=>{!s||!v.current||(m.current=!r)},[r,s]),$.useEffect(()=>{if(!s||!v.current)return;const E=Ct(v.current);return v.current.contains(E.activeElement)||(v.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
99
- `)),v.current.setAttribute("tabIndex","-1")),m.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!v.current)return;const E=Ct(v.current),x=k=>{y.current=k,!(n||!a()||k.key!=="Tab")&&E.activeElement===v.current&&k.shiftKey&&(l.current=!0,d.current&&d.current.focus())},C=()=>{var D,F;const k=v.current;if(k===null)return;if(!E.hasFocus()||!a()||l.current){l.current=!1;return}if(k.contains(E.activeElement)||n&&E.activeElement!==c.current&&E.activeElement!==d.current)return;if(E.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let O=[];if((E.activeElement===c.current||E.activeElement===d.current)&&(O=i(v.current)),O.length>0){const H=!!((D=y.current)!=null&&D.shiftKey&&((F=y.current)==null?void 0:F.key)==="Tab"),R=O[0],A=O[O.length-1];typeof R!="string"&&typeof A!="string"&&(H?A.focus():R.focus())}else k.focus()};E.addEventListener("focusin",C),E.addEventListener("keydown",x,!0);const _=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(_),E.removeEventListener("focusin",C),E.removeEventListener("keydown",x,!0)}},[r,n,o,a,s,i]);const b=E=>{f.current===null&&(f.current=E.relatedTarget),m.current=!0,h.current=E.target;const x=t.props.onFocus;x&&x(E)},T=E=>{f.current===null&&(f.current=E.relatedTarget),m.current=!0};return Z.jsxs($.Fragment,{children:[Z.jsx("div",{tabIndex:s?0:-1,onFocus:T,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:g,onFocus:b}),Z.jsx("div",{tabIndex:s?0:-1,onFocus:T,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:Yr,disableAutoFocus:u.bool,disableEnforceFocus:u.bool,disableRestoreFocus:u.bool,getTabbable:u.func,isEnabled:u.func,open:u.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ki.propTypes=zc(Ki.propTypes));function Aw(e){return typeof e=="function"?e():e}const ko=$.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[a,s]=$.useState(null),l=ft($.isValidElement(n)?In(n):null,r);if(xr(()=>{i||s(Aw(o)||document.body)},[o,i]),xr(()=>{if(a&&!i)return Pd(r,a),()=>{Pd(r,null)}},[r,a,i]),i){if($.isValidElement(n)){const c={ref:l};return $.cloneElement(n,c)}return n}return a&&F1.createPortal(n,a)});process.env.NODE_ENV!=="production"&&(ko.propTypes={children:u.node,container:u.oneOfType([ir,u.func]),disablePortal:u.bool});process.env.NODE_ENV!=="production"&&(ko.propTypes=zc(ko.propTypes));function tt(e,t){const C=t,{className:r,elementType:n,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1}=C,l=te(C,["className","elementType","ownerState","externalForwardedProps","internalForwardedProps","shouldForwardComponentProp"]),_=i,{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=_,h=te(_,["component","slots","slotProps"]),m=d[e]||n,v=r0(f[e],o),k=t0(N(w({className:r},l),{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:v})),{props:O}=k,D=O,{component:g}=D,y=te(D,["component"]),{internalRef:b}=k,T=ft(b,v==null?void 0:v.ref,t.ref),E=e==="root"?g||c:g,x=Jh(m,N(w(w(w(w(w({},e==="root"&&!c&&!d[e]&&a),e!=="root"&&!d[e]&&a),y),E&&!s&&{as:E}),E&&s&&{component:E}),{ref:T}),o);return[m,x]}const Iw={entering:{opacity:1},entered:{opacity:1}},Xc=$.forwardRef(function(t,r){const n=Xo(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},B=t,{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:f,onEntering:h,onExit:m,onExited:v,onExiting:g,style:y,timeout:b=o,TransitionComponent:T=Bt}=B,E=te(B,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=$.useRef(null),C=ft(x,In(s),r),_=j=>L=>{if(j){const I=x.current;L===void 0?j(I):j(I,L)}},k=_(h),O=_((j,L)=>{const I=Mo({style:y,timeout:b,easing:l},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",I),j.style.transition=n.transitions.create("opacity",I),d&&d(j,L)}),D=_(f),F=_(g),H=_(j=>{const L=Mo({style:y,timeout:b,easing:l},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",L),j.style.transition=n.transitions.create("opacity",L),m&&m(j)}),R=_(v),A=j=>{i&&i(x.current,j)};return Z.jsx(T,N(w({appear:a,in:c,nodeRef:x,onEnter:O,onEntered:D,onEntering:k,onExit:H,onExited:R,onExiting:F,addEndListener:A,timeout:b},E),{children:(j,z)=>{var Y=z,{ownerState:L}=Y,I=te(Y,["ownerState"]);return $.cloneElement(s,w({style:w(w(w({opacity:0,visibility:j==="exited"&&!c?"hidden":void 0},Iw[j]),y),s.props.style),ref:C},I))}}))});process.env.NODE_ENV!=="production"&&(Xc.propTypes={addEndListener:u.func,appear:u.bool,children:Yr.isRequired,easing:u.oneOfType([u.shape({enter:u.string,exit:u.string}),u.string]),in:u.bool,onEnter:u.func,onEntered:u.func,onEntering:u.func,onExit:u.func,onExited:u.func,onExiting:u.func,style:u.object,timeout:u.oneOfType([u.number,u.shape({appear:u.number,enter:u.number,exit:u.number})])});function Pw(e){return Oe("MuiBackdrop",e)}ke("MuiBackdrop",["root","invisible"]);const Dw=e=>{const{classes:t,invisible:r}=e;return Be({root:["root",r&&"invisible"]},Pw,t)},$w=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"}}]}),Kc=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiBackdrop"}),D=n,{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:d={},slotProps:f={},slots:h={},TransitionComponent:m,transitionDuration:v}=D,g=te(D,["children","className","component","invisible","open","components","componentsProps","slotProps","slots","TransitionComponent","transitionDuration"]),y=N(w({},n),{component:a,invisible:s}),b=Dw(y),T=w({transition:m,root:c.Root},h),E=w(w({},d),f),x={slots:T,slotProps:E},[C,_]=tt("root",{elementType:$w,externalForwardedProps:x,className:he(b.root,i),ownerState:y}),[k,O]=tt("transition",{elementType:Xc,externalForwardedProps:x,ownerState:y});return Z.jsx(k,N(w(w({in:l,timeout:v},g),O),{children:Z.jsx(C,N(w({"aria-hidden":!0},_),{classes:b,ref:r,children:o}))}))});process.env.NODE_ENV!=="production"&&(Kc.propTypes={children:u.node,classes:u.object,className:u.string,component:u.elementType,components:u.shape({Root:u.elementType}),componentsProps:u.shape({root:u.object}),invisible:u.bool,open:u.bool.isRequired,slotProps:u.shape({root:u.oneOfType([u.func,u.object]),transition:u.oneOfType([u.func,u.object])}),slots:u.shape({root:u.elementType,transition:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),TransitionComponent:u.elementType,transitionDuration:u.oneOfType([u.number,u.shape({appear:u.number,enter:u.number,exit:u.number})])});function Nw(e){return typeof e=="function"?e():e}function Lw(e){return e?e.props.hasOwnProperty("in"):!1}const Xd=()=>{},mi=new Tw;function Fw(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:d}=e,f=$.useRef({}),h=$.useRef(null),m=$.useRef(null),v=ft(m,d),[g,y]=$.useState(!c),b=Lw(s);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const E=()=>Ct(h.current),x=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),C=()=>{mi.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},_=nr(()=>{const j=Nw(t)||E().body;mi.add(x(),j),m.current&&C()}),k=()=>mi.isTopModal(x()),O=nr(j=>{h.current=j,j&&(c&&k()?C():m.current&&mo(m.current,T))}),D=$.useCallback(()=>{mi.remove(x(),T)},[T]);$.useEffect(()=>()=>{D()},[D]),$.useEffect(()=>{c?_():(!b||!o)&&D()},[c,D,b,o,_]);const F=j=>L=>{var I;(I=j.onKeyDown)==null||I.call(j,L),!(L.key!=="Escape"||L.which===229||!k())&&(r||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},H=j=>L=>{var I;(I=j.onClick)==null||I.call(j,L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(j={})=>{const L=e0(e);delete L.onTransitionEnter,delete L.onTransitionExited;const I=w(w({},L),j);return N(w({role:"presentation"},I),{onKeyDown:F(I),ref:v})},getBackdropProps:(j={})=>{const L=j;return N(w({"aria-hidden":!0},L),{onClick:H(L),open:c})},getTransitionProps:()=>{var I,z;const j=()=>{y(!1),i&&i()},L=()=>{y(!0),a&&a(),o&&D()};return{onEnter:bl(j,(I=s==null?void 0:s.props.onEnter)!=null?I:Xd),onExited:bl(L,(z=s==null?void 0:s.props.onExited)!=null?z:Xd)}},rootRef:v,portalRef:O,isTopModal:k,exited:g,hasTransition:b}}function jw(e){return Oe("MuiModal",e)}ke("MuiModal",["root","hidden","backdrop"]);const Bw=e=>{const{open:t,exited:r,classes:n}=e;return Be({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},jw,n)},Hw=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ye(({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"}}]}))),zw=de(Kc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Qc=$.forwardRef(function(t,r){const n=Fe({name:"MuiModal",props:t}),ve=n,{BackdropComponent:o=zw,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:d,component:f,components:h={},componentsProps:m={},disableAutoFocus:v=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:b=!1,disableRestoreFocus:T=!1,disableScrollLock:E=!1,hideBackdrop:x=!1,keepMounted:C=!1,onBackdropClick:_,onClose:k,onTransitionEnter:O,onTransitionExited:D,open:F,slotProps:H={},slots:R={},theme:A}=ve,B=te(ve,["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=N(w({},n),{closeAfterTransition:l,disableAutoFocus:v,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:b,disableRestoreFocus:T,disableScrollLock:E,hideBackdrop:x,keepMounted:C}),{getRootProps:L,getBackdropProps:I,getTransitionProps:z,portalRef:Y,isTopModal:P,exited:V,hasTransition:K}=Fw(N(w({},j),{rootRef:r})),q=N(w({},j),{exited:V}),X=Bw(q),J={};if(c.props.tabIndex===void 0&&(J.tabIndex="-1"),K){const{onEnter:W,onExited:re}=z();J.onEnter=W,J.onExited=re}const ee={slots:w({root:h.Root,backdrop:h.Backdrop},R),slotProps:w(w({},m),H)},[oe,ne]=tt("root",{ref:r,elementType:Hw,externalForwardedProps:N(w(w({},ee),B),{component:f}),getSlotProps:L,ownerState:q,className:he(s,X==null?void 0:X.root,!q.open&&q.exited&&(X==null?void 0:X.hidden))}),[ue,ie]=tt("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:W=>I(N(w({},W),{onClick:re=>{_&&_(re),W!=null&&W.onClick&&W.onClick(re)}})),className:he(i==null?void 0:i.className,X==null?void 0:X.backdrop),ownerState:q});return!C&&!F&&(!K||V)?null:Z.jsx(ko,{ref:Y,container:d,disablePortal:b,children:Z.jsxs(oe,N(w({},ne),{children:[!x&&o?Z.jsx(ue,w({},ie)):null,Z.jsx(Ki,{disableEnforceFocus:g,disableAutoFocus:v,disableRestoreFocus:T,isEnabled:P,open:F,children:$.cloneElement(c,J)})]}))})});process.env.NODE_ENV!=="production"&&(Qc.propTypes={BackdropComponent:u.elementType,BackdropProps:u.object,children:Yr.isRequired,classes:u.object,className:u.string,closeAfterTransition:u.bool,component:u.elementType,components:u.shape({Backdrop:u.elementType,Root:u.elementType}),componentsProps:u.shape({backdrop:u.oneOfType([u.func,u.object]),root:u.oneOfType([u.func,u.object])}),container:u.oneOfType([ir,u.func]),disableAutoFocus:u.bool,disableEnforceFocus:u.bool,disableEscapeKeyDown:u.bool,disablePortal:u.bool,disableRestoreFocus:u.bool,disableScrollLock:u.bool,hideBackdrop:u.bool,keepMounted:u.bool,onBackdropClick:u.func,onClose:u.func,onTransitionEnter:u.func,onTransitionExited:u.func,open:u.bool.isRequired,slotProps:u.shape({backdrop:u.oneOfType([u.func,u.object]),root:u.oneOfType([u.func,u.object])}),slots:u.shape({backdrop:u.elementType,root:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Ww(e){return Oe("MuiPaper",e)}ke("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 Vw=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Be(i,Ww,o)},Uw=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}`]]}})(Ye(({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)"}}]}))),La=$.forwardRef(function(t,r){var v;const n=Fe({props:t,name:"MuiPaper"}),o=Xo(),m=n,{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation"}=m,d=te(m,["className","component","elevation","square","variant"]),f=N(w({},n),{component:a,elevation:s,square:l,variant:c}),h=Vw(f);return process.env.NODE_ENV!=="production"&&o.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
100
- `)),Z.jsx(Uw,N(w({as:a,ownerState:f,className:he(h.root,i),ref:r},d),{style:w(w({},c==="elevation"&&w(w({"--Paper-shadow":(o.vars||o).shadows[s]},o.vars&&{"--Paper-overlay":(v=o.vars.overlays)==null?void 0:v[s]}),!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ne("#fff",Cl(s))}, ${Ne("#fff",Cl(s))})`})),d.style)}))});process.env.NODE_ENV!=="production"&&(La.propTypes={children:u.node,classes:u.object,className:u.string,component:u.elementType,elevation:cr(Gt,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:u.bool,style:u.object,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),variant:u.oneOfType([u.oneOf(["elevation","outlined"]),u.string])});function Gw(e){return Oe("MuiPopover",e)}ke("MuiPopover",["root","paper"]);function Kd(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Qd(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Zd(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ao(e){return typeof e=="function"?e():e}const Yw=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},Gw,t)},qw=de(Qc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I0=de(La,{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}),Zc=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiPopover"}),ie=n,{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:d,container:f,elevation:h=8,marginThreshold:m=16,open:v,PaperProps:g={},slots:y={},slotProps:b={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:x="auto",TransitionProps:C={},disableScrollLock:_=!1}=ie,k=te(ie,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"]),O=$.useRef(),D=N(w({},n),{anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:m,transformOrigin:T,TransitionComponent:E,transitionDuration:x,TransitionProps:C}),F=Yw(D),H=$.useCallback(()=>{if(l==="anchorPosition")return process.env.NODE_ENV!=="production"&&(s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),s;const re=ao(i),ce=re&&re.nodeType===1?re:Ct(O.current).body,ge=ce.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Xe=ce.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Xe.top===0&&Xe.left===0&&Xe.right===0&&Xe.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(`
101
- `))}return{top:ge.top+Kd(ge,a.vertical),left:ge.left+Qd(ge,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),R=$.useCallback(re=>({vertical:Kd(re,T.vertical),horizontal:Qd(re,T.horizontal)}),[T.horizontal,T.vertical]),A=$.useCallback(re=>{const ce={width:re.offsetWidth,height:re.offsetHeight},ge=R(ce);if(l==="none")return{top:null,left:null,transformOrigin:Zd(ge)};const Xe=H();let Ue=Xe.top-ge.vertical,He=Xe.left-ge.horizontal;const Rt=Ue+ce.height,Qe=He+ce.width,st=Wr(ao(i)),Je=st.innerHeight-m,se=st.innerWidth-m;if(m!==null&&Ue<m){const ot=Ue-m;Ue-=ot,ge.vertical+=ot}else if(m!==null&&Rt>Je){const ot=Rt-Je;Ue-=ot,ge.vertical+=ot}if(process.env.NODE_ENV!=="production"&&ce.height>Je&&ce.height&&Je&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-Je}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
102
- `)),m!==null&&He<m){const ot=He-m;He-=ot,ge.horizontal+=ot}else if(Qe>se){const ot=Qe-se;He-=ot,ge.horizontal+=ot}return{top:`${Math.round(Ue)}px`,left:`${Math.round(He)}px`,transformOrigin:Zd(ge)}},[i,l,H,R,m]),[B,j]=$.useState(v),L=$.useCallback(()=>{const re=O.current;if(!re)return;const ce=A(re);ce.top!==null&&re.style.setProperty("top",ce.top),ce.left!==null&&(re.style.left=ce.left),re.style.transformOrigin=ce.transformOrigin,j(!0)},[A]);$.useEffect(()=>(_&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[i,_,L]);const I=()=>{L()},z=()=>{j(!1)};$.useEffect(()=>{v&&L()}),$.useImperativeHandle(o,()=>v?{updatePosition:()=>{L()}}:null,[v,L]),$.useEffect(()=>{if(!v)return;const re=d2(()=>{L()}),ce=Wr(ao(i));return ce.addEventListener("resize",re),()=>{re.clear(),ce.removeEventListener("resize",re)}},[i,v,L]);let Y=x;const P={slots:w({transition:E},y),slotProps:w({transition:C,paper:g},b)},[V,K]=tt("transition",{elementType:Oo,externalForwardedProps:P,ownerState:D,getSlotProps:re=>N(w({},re),{onEntering:(ce,ge)=>{var Xe;(Xe=re.onEntering)==null||Xe.call(re,ce,ge),I()},onExited:ce=>{var ge;(ge=re.onExited)==null||ge.call(re,ce),z()}}),additionalProps:{appear:!0,in:v}});x==="auto"&&!V.muiSupportAuto&&(Y=void 0);const q=f||(i?Ct(ao(i)).body:void 0),[X,ve]=tt("root",{ref:r,elementType:qw,externalForwardedProps:w(w({},P),k),shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:dw(typeof b.backdrop=="function"?b.backdrop(D):b.backdrop,{invisible:!0})},container:q,open:v},ownerState:D,className:he(F.root,d)}),W=ve,{slots:J,slotProps:ee}=W,oe=te(W,["slots","slotProps"]),[ne,ue]=tt("paper",{ref:O,className:F.paper,elementType:I0,externalForwardedProps:P,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:B?void 0:{opacity:0}},ownerState:D});return Z.jsx(X,N(w(w({},oe),!fw(X)&&{slots:J,slotProps:ee,disableScrollLock:_}),{children:Z.jsx(V,N(w({},K),{timeout:Y,children:Z.jsx(ne,N(w({},ue),{children:c}))}))}))});process.env.NODE_ENV!=="production"&&(Zc.propTypes={action:qo,anchorEl:cr(u.oneOfType([ir,u.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ao(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(`
103
- `))}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(`
104
- `))}return null}),anchorOrigin:u.shape({horizontal:u.oneOfType([u.oneOf(["center","left","right"]),u.number]).isRequired,vertical:u.oneOfType([u.oneOf(["bottom","center","top"]),u.number]).isRequired}),anchorPosition:u.shape({left:u.number.isRequired,top:u.number.isRequired}),anchorReference:u.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:u.elementType,BackdropProps:u.object,children:u.node,classes:u.object,className:u.string,container:u.oneOfType([ir,u.func]),disableScrollLock:u.bool,elevation:Gt,marginThreshold:u.number,onClose:u.func,open:u.bool.isRequired,PaperProps:u.shape({component:Hc}),slotProps:u.shape({backdrop:u.oneOfType([u.func,u.object]),paper:u.oneOfType([u.func,u.object]),root:u.oneOfType([u.func,u.object]),transition:u.oneOfType([u.func,u.object])}),slots:u.shape({backdrop:u.elementType,paper:u.elementType,root:u.elementType,transition:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),transformOrigin:u.shape({horizontal:u.oneOfType([u.oneOf(["center","left","right"]),u.number]).isRequired,vertical:u.oneOfType([u.oneOf(["bottom","center","top"]),u.number]).isRequired}),TransitionComponent:u.elementType,transitionDuration:u.oneOfType([u.oneOf(["auto"]),u.number,u.shape({appear:u.number,enter:u.number,exit:u.number})]),TransitionProps:u.object});function Xw(e){return Oe("MuiMenu",e)}ke("MuiMenu",["root","paper","list"]);const Kw={vertical:"top",horizontal:"right"},Qw={vertical:"top",horizontal:"left"},Zw=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},Xw,t)},Jw=de(Zc,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ex=de(I0,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tx=de(Gc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Fa=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiMenu"}),Y=n,{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:P={}}=Y,V=P,{onEntering:v}=V,g=te(V,["onEntering"]),K=Y,{variant:y="selectedMenu",slots:b={},slotProps:T={}}=K,E=te(K,["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"]),x=wa(),C=N(w({},n),{autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:v,PaperProps:f,transitionDuration:m,TransitionProps:g,variant:y}),_=Zw(C),k=o&&!s&&d,O=$.useRef(null),D=(q,X)=>{O.current&&O.current.adjustStyleForScrollbar(q,{direction:x?"rtl":"ltr"}),v&&v(q,X)},F=q=>{q.key==="Tab"&&(q.preventDefault(),c&&c(q,"tabKeyDown"))};let H=-1;$.Children.map(i,(q,X)=>{$.isValidElement(q)&&(process.env.NODE_ENV!=="production"&&Nc.isFragment(q)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
105
- `)),q.props.disabled||(y==="selectedMenu"&&q.props.selected||H===-1)&&(H=X))});const R={slots:b,slotProps:w({list:l,transition:g,paper:f},T)},A=Fc({elementType:b.root,externalSlotProps:T.root,ownerState:C,className:[_.root,a]}),[B,j]=tt("paper",{className:_.paper,elementType:ex,externalForwardedProps:R,shouldForwardComponentProp:!0,ownerState:C}),[L,I]=tt("list",{className:he(_.list,l.className),elementType:tx,shouldForwardComponentProp:!0,externalForwardedProps:R,getSlotProps:q=>N(w({},q),{onKeyDown:X=>{var J;F(X),(J=q.onKeyDown)==null||J.call(q,X)}}),ownerState:C}),z=typeof R.slotProps.transition=="function"?R.slotProps.transition(C):R.slotProps.transition;return Z.jsx(Jw,N(w({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Kw:Qw,slots:w({root:b.root,paper:B,backdrop:b.backdrop},b.transition&&{transition:b.transition}),slotProps:{root:A,paper:j,backdrop:typeof T.backdrop=="function"?T.backdrop(C):T.backdrop,transition:N(w({},z),{onEntering:(...q)=>{var X;D(...q),(X=z==null?void 0:z.onEntering)==null||X.call(z,...q)}})},open:d,ref:r,transitionDuration:m,ownerState:C},E),{classes:h,children:Z.jsx(L,N(w({actions:O,autoFocus:o&&(H===-1||s),autoFocusItem:k,variant:y},I),{children:i}))}))});process.env.NODE_ENV!=="production"&&(Fa.propTypes={anchorEl:u.oneOfType([ir,u.func]),autoFocus:u.bool,children:u.node,classes:u.object,className:u.string,disableAutoFocusItem:u.bool,MenuListProps:u.object,onClose:u.func,open:u.bool.isRequired,PaperProps:u.object,PopoverClasses:u.object,slotProps:u.shape({backdrop:u.oneOfType([u.func,u.object]),list:u.oneOfType([u.func,u.object]),paper:u.oneOfType([u.func,u.object]),root:u.oneOfType([u.func,u.object]),transition:u.oneOfType([u.func,u.object])}),slots:u.shape({backdrop:u.elementType,list:u.elementType,paper:u.elementType,root:u.elementType,transition:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),transitionDuration:u.oneOfType([u.oneOf(["auto"]),u.number,u.shape({appear:u.number,enter:u.number,exit:u.number})]),TransitionProps:u.object,variant:u.oneOf(["menu","selectedMenu"])});const rx=({children:e,open:t,position:r,onClose:n,alignment:o})=>{const{themeSettings:i}=p.useThemeContext();return p.jsx(Fa,{MenuListProps:{dense:!0,sx:{paddingTop:0,paddingBottom:0,fontFamily:i.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:i.typography.fontFamily,transform:t?`translate3d(${(o==null?void 0:o.horizontal)==="right"?"-100%":"0%"}, ${(o==null?void 0:o.vertical)==="bottom"?"-100%":"0%"}, 0) !important`:"none"}}},children:e})};class Qi{constructor(){Un(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 Qi}static use(){const t=v0(Qi.create).current,[r,n]=$.useState(!1);return t.shouldMount=r,t.setShouldMount=n,$.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=ox(),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 nx(){return Qi.use()}function ox(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function P0(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,f]=$.useState(!1),h=he(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=he(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),Z.jsx("span",{className:h,style:m,children:Z.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(P0.propTypes={classes:u.object.isRequired,className:u.string,in:u.bool,onExited:u.func,pulsate:u.bool,rippleSize:u.number,rippleX:u.number,rippleY:u.number,timeout:u.number.isRequired});const kt=ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Sl=550,ix=80,ax=Uo`
106
- 0% {
107
- transform: scale(0);
108
- opacity: 0.1;
109
- }
110
-
111
- 100% {
112
- transform: scale(1);
113
- opacity: 0.3;
114
- }
115
- `,sx=Uo`
116
- 0% {
117
- opacity: 1;
118
- }
119
-
120
- 100% {
121
- opacity: 0;
122
- }
123
- `,lx=Uo`
124
- 0% {
125
- transform: scale(1);
126
- }
127
-
128
- 50% {
129
- transform: scale(0.92);
130
- }
131
-
132
- 100% {
133
- transform: scale(1);
134
- }
135
- `,cx=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ux=de(P0,{name:"MuiTouchRipple",slot:"Ripple"})`
136
- opacity: 0;
137
- position: absolute;
138
-
139
- &.${kt.rippleVisible} {
140
- opacity: 0.3;
141
- transform: scale(1);
142
- animation-name: ${ax};
143
- animation-duration: ${Sl}ms;
144
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
145
- }
146
-
147
- &.${kt.ripplePulsate} {
148
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
149
- }
150
-
151
- & .${kt.child} {
152
- opacity: 1;
153
- display: block;
154
- width: 100%;
155
- height: 100%;
156
- border-radius: 50%;
157
- background-color: currentColor;
158
- }
159
-
160
- & .${kt.childLeaving} {
161
- opacity: 0;
162
- animation-name: ${sx};
163
- animation-duration: ${Sl}ms;
164
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
165
- }
166
-
167
- & .${kt.childPulsate} {
168
- position: absolute;
169
- /* @noflip */
170
- left: 0px;
171
- top: 0;
172
- animation-name: ${lx};
173
- animation-duration: 2500ms;
174
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
175
- animation-iteration-count: infinite;
176
- animation-delay: 200ms;
177
- }
178
- `,D0=$.forwardRef(function(t,r){const x=Fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=x,s=te(x,["center","classes","className"]),[l,c]=$.useState([]),d=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=$.useRef(!1),m=$r(),v=$.useRef(null),g=$.useRef(null),y=$.useCallback(C=>{const{pulsate:_,rippleX:k,rippleY:O,rippleSize:D,cb:F}=C;c(H=>[...H,Z.jsx(ux,{classes:{ripple:he(i.ripple,kt.ripple),rippleVisible:he(i.rippleVisible,kt.rippleVisible),ripplePulsate:he(i.ripplePulsate,kt.ripplePulsate),child:he(i.child,kt.child),childLeaving:he(i.childLeaving,kt.childLeaving),childPulsate:he(i.childPulsate,kt.childPulsate)},timeout:Sl,pulsate:_,rippleX:k,rippleY:O,rippleSize:D},d.current)]),d.current+=1,f.current=F},[i]),b=$.useCallback((C={},_={},k=()=>{})=>{const{pulsate:O=!1,center:D=o||_.pulsate,fakeElement:F=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const H=F?null:g.current,R=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,B,j;if(D||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)A=Math.round(R.width/2),B=Math.round(R.height/2);else{const{clientX:L,clientY:I}=C.touches&&C.touches.length>0?C.touches[0]:C;A=Math.round(L-R.left),B=Math.round(I-R.top)}if(D)j=Math.sqrt((2*Ht(R.width,2)+Ht(R.height,2))/3),j%2===0&&(j+=1);else{const L=Math.max(Math.abs((H?H.clientWidth:0)-A),A)*2+2,I=Math.max(Math.abs((H?H.clientHeight:0)-B),B)*2+2;j=Math.sqrt(Ht(L,2)+Ht(I,2))}C!=null&&C.touches?v.current===null&&(v.current=()=>{y({pulsate:O,rippleX:A,rippleY:B,rippleSize:j,cb:k})},m.start(ix,()=>{v.current&&(v.current(),v.current=null)})):y({pulsate:O,rippleX:A,rippleY:B,rippleSize:j,cb:k})},[o,y,m]),T=$.useCallback(()=>{b({},{pulsate:!0})},[b]),E=$.useCallback((C,_)=>{if(m.clear(),(C==null?void 0:C.type)==="touchend"&&v.current){v.current(),v.current=null,m.start(0,()=>{E(C,_)});return}v.current=null,c(k=>k.length>0?k.slice(1):k),f.current=_},[m]);return $.useImperativeHandle(r,()=>({pulsate:T,start:b,stop:E}),[T,b,E]),Z.jsx(cx,N(w({className:he(kt.root,i.root,a),ref:g},s),{children:Z.jsx(qc,{component:null,exit:!0,children:l})}))});process.env.NODE_ENV!=="production"&&(D0.propTypes={center:u.bool,classes:u.object,className:u.string});function dx(e){return Oe("MuiButtonBase",e)}const fx=ke("MuiButtonBase",["root","disabled","focusVisible"]),px=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Be({root:["root",t&&"disabled",r&&"focusVisible"]},dx,o);return r&&n&&(a.root+=` ${n}`),a},hx=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"},[`&.${fx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),qr=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiButtonBase"}),Je=n,{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:b,onDragLeave:T,onFocus:E,onFocusVisible:x,onKeyDown:C,onKeyUp:_,onMouseDown:k,onMouseLeave:O,onMouseUp:D,onTouchEnd:F,onTouchMove:H,onTouchStart:R,tabIndex:A=0,TouchRippleProps:B,touchRippleRef:j,type:L}=Je,I=te(Je,["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"]),z=$.useRef(null),Y=nx(),P=ft(Y.ref,j),[V,K]=$.useState(!1);c&&V&&K(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{K(!0),z.current.focus()}}),[]);const q=Y.shouldMount&&!d&&!c;$.useEffect(()=>{V&&h&&!d&&Y.pulsate()},[d,h,V,Y]);const X=tr(Y,"start",k,f),J=tr(Y,"stop",b,f),ee=tr(Y,"stop",T,f),oe=tr(Y,"stop",D,f),ne=tr(Y,"stop",se=>{V&&se.preventDefault(),O&&O(se)},f),ue=tr(Y,"start",R,f),ie=tr(Y,"stop",F,f),ve=tr(Y,"stop",H,f),W=tr(Y,"stop",se=>{Yi(se.target)||K(!1),g&&g(se)},!1),re=nr(se=>{z.current||(z.current=se.currentTarget),Yi(se.target)&&(K(!0),x&&x(se)),E&&E(se)}),ce=()=>{const se=z.current;return l&&l!=="button"&&!(se.tagName==="A"&&se.href)},ge=nr(se=>{h&&!se.repeat&&V&&se.key===" "&&Y.stop(se,()=>{Y.start(se)}),se.target===se.currentTarget&&ce()&&se.key===" "&&se.preventDefault(),C&&C(se),se.target===se.currentTarget&&ce()&&se.key==="Enter"&&!c&&(se.preventDefault(),y&&y(se))}),Xe=nr(se=>{h&&se.key===" "&&V&&!se.defaultPrevented&&Y.stop(se,()=>{Y.pulsate(se)}),_&&_(se),y&&se.target===se.currentTarget&&ce()&&se.key===" "&&!se.defaultPrevented&&y(se)});let Ue=l;Ue==="button"&&(I.href||I.to)&&(Ue=v);const He={};Ue==="button"?(He.type=L===void 0?"button":L,He.disabled=c):(!I.href&&!I.to&&(He.role="button"),c&&(He["aria-disabled"]=c));const Rt=ft(r,z),Qe=N(w({},n),{centerRipple:i,component:l,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:A,focusVisible:V}),st=px(Qe);return Z.jsxs(hx,N(w(w({as:Ue,className:he(st.root,s),ownerState:Qe,onBlur:W,onClick:y,onContextMenu:J,onFocus:re,onKeyDown:ge,onKeyUp:Xe,onMouseDown:X,onMouseLeave:ne,onMouseUp:oe,onDragLeave:ee,onTouchEnd:ie,onTouchMove:ve,onTouchStart:ue,ref:Rt,tabIndex:c?-1:A,type:L},He),I),{children:[a,q?Z.jsx(D0,w({ref:P,center:i},B)):null]}))});function tr(e,t,r,n=!1){return nr(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(qr.propTypes={action:qo,centerRipple:u.bool,children:u.node,classes:u.object,className:u.string,component:Hc,disabled:u.bool,disableRipple:u.bool,disableTouchRipple:u.bool,focusRipple:u.bool,focusVisibleClassName:u.string,href:u.any,LinkComponent:u.elementType,onBlur:u.func,onClick:u.func,onContextMenu:u.func,onDragLeave:u.func,onFocus:u.func,onFocusVisible:u.func,onKeyDown:u.func,onKeyUp:u.func,onMouseDown:u.func,onMouseLeave:u.func,onMouseUp:u.func,onTouchEnd:u.func,onTouchMove:u.func,onTouchStart:u.func,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),tabIndex:u.number,TouchRippleProps:u.object,touchRippleRef:u.oneOfType([u.func,u.shape({current:u.shape({pulsate:u.func.isRequired,start:u.func.isRequired,stop:u.func.isRequired})})]),type:u.oneOfType([u.oneOf(["button","reset","submit"]),u.string])});function gx(e){return Oe("MuiDivider",e)}const Jd=ke("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mx=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Be({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},gx,n)},vx=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]}})(Ye(({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)`:Ne(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%"}}}]}))),yx=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Ye(({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)`}}]}))),jr=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiDivider"}),b=n,{absolute:o=!1,children:i,className:a,orientation:s="horizontal",component:l=i||s==="vertical"?"div":"hr",flexItem:c=!1,light:d=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth"}=b,v=te(b,["absolute","children","className","orientation","component","flexItem","light","role","textAlign","variant"]),g=N(w({},n),{absolute:o,component:l,flexItem:c,light:d,orientation:s,role:f,textAlign:h,variant:m}),y=mx(g);return Z.jsx(vx,N(w({as:l,className:he(y.root,a),role:f,ref:r,ownerState:g,"aria-orientation":f==="separator"&&(l!=="hr"||s==="vertical")?s:void 0},v),{children:i?Z.jsx(yx,{className:y.wrapper,ownerState:g,children:i}):null}))});jr&&(jr.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(jr.propTypes={absolute:u.bool,children:u.node,classes:u.object,className:u.string,component:u.elementType,flexItem:u.bool,light:u.bool,orientation:u.oneOf(["horizontal","vertical"]),role:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),textAlign:u.oneOf(["center","left","right"]),variant:u.oneOfType([u.oneOf(["fullWidth","inset","middle"]),u.string])});const ef=ke("MuiListItemIcon",["root","alignItemsFlexStart"]);function bx(e){return typeof e.main=="string"}function wx(e,t=[]){if(!bx(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Er(e=[]){return([,t])=>t&&wx(t,e)}function xx(e){return Oe("MuiTypography",e)}const Cx=ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Ex={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Tx=ow(),Sx=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Be(s,xx,a)},Rx=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${fe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ye(({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(Er()).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${fe(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}}]}})),tf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yt=$.forwardRef(function(t,r){const E=Fe({props:t,name:"MuiTypography"}),{color:n}=E,o=te(E,["color"]),i=!Ex[n],a=Tx(w(w({},o),i&&{color:n})),x=a,{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:h=!1,variant:m="body1",variantMapping:v=tf}=x,g=te(x,["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"]),y=N(w({},a),{align:s,color:n,className:l,component:c,gutterBottom:d,noWrap:f,paragraph:h,variant:m,variantMapping:v}),b=c||(h?"p":v[m]||tf[m])||"span",T=Sx(y);return Z.jsx(Rx,N(w({as:b,ref:r,className:he(T.root,l)},g),{ownerState:y,style:w(w({},s!=="inherit"&&{"--Typography-textAlign":s}),g.style)}))});process.env.NODE_ENV!=="production"&&(yt.propTypes={align:u.oneOf(["center","inherit","justify","left","right"]),children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),u.string]),component:u.elementType,gutterBottom:u.bool,noWrap:u.bool,paragraph:u.bool,style:u.object,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),variant:u.oneOfType([u.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),u.string]),variantMapping:u.object});function _x(e){return Oe("MuiListItemText",e)}const Rl=ke("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Mx(e){return Oe("MuiMenuItem",e)}const qn=ke("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ox=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},kx=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e,l=Be({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Mx,a);return w(w({},a),l)},Ax=de(qr,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ox})(Ye(({theme:e})=>N(w({},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"}},[`&.${qn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(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})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jd.inset}`]:{marginLeft:52},[`& .${Rl.root}`]:{marginTop:0,marginBottom:0},[`& .${Rl.inset}`]:{paddingLeft:36},[`& .${ef.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:N(w({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2),{[`& .${ef.root} svg`]:{fontSize:"1.25rem"}})}]}))),ja=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiMenuItem"}),C=n,{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:h}=C,m=te(C,["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"]),v=$.useContext(_o),g=$.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),y=$.useRef(null);xr(()=>{o&&(y.current?y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const b=N(w({},n),{dense:g.dense,divider:s,disableGutters:l}),T=kx(n),E=ft(y,r);let x;return n.disabled||(x=f!==void 0?f:-1),Z.jsx(_o.Provider,{value:g,children:Z.jsx(Ax,N(w({ref:E,role:d,tabIndex:x,component:i,focusVisibleClassName:he(T.focusVisible,c),className:he(T.root,h)},m),{ownerState:b,classes:T}))})});process.env.NODE_ENV!=="production"&&(ja.propTypes={autoFocus:u.bool,children:u.node,classes:u.object,className:u.string,component:u.elementType,dense:u.bool,disabled:u.bool,disableGutters:u.bool,divider:u.bool,focusVisibleClassName:u.string,role:u.string,selected:u.bool,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),tabIndex:u.number});const Ix=({children:e,disabled:t,style:r,className:n="",onClick:o})=>{const{themeSettings:i}=p.useThemeContext();return p.jsx("div",{className:`csdk-menu-item ${n}`,children:p.jsx(ja,{disabled:t,sx:w({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:i.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"15px",color:p.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:p.DEFAULT_BACKGROUND_COLOR}},r),onClick:o,children:p.jsx("div",{className:"csdk-menu-item-content",children:e})})})};function Px(e){return Oe("MuiListSubheader",e)}ke("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Dx=e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:i}=e,a={root:["root",r!=="default"&&`color${fe(r)}`,!n&&"gutters",o&&"inset",!i&&"sticky"]};return Be(a,Px,t)},$x=de("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${fe(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Ye(({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}}]}))),Zi=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiListSubheader"}),m=n,{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=m,d=te(m,["className","color","component","disableGutters","disableSticky","inset"]),f=N(w({},n),{color:i,component:a,disableGutters:s,disableSticky:l,inset:c}),h=Dx(f);return Z.jsx($x,w({as:a,className:he(h.root,o),ref:r,ownerState:f},d))});Zi&&(Zi.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Zi.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOf(["default","inherit","primary"]),component:u.elementType,disableGutters:u.bool,disableSticky:u.bool,inset:u.bool,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});const Nx=({children:e})=>{const{themeSettings:t}=p.useThemeContext();return p.jsx(Zi,{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:p.DEFAULT_TEXT_COLOR},children:e})};function Lx({color:e=p.DEFAULT_TEXT_COLOR}){return p.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",children:p.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 Fx=({children:e,label:t,allowOpen:r,disabled:n,style:o,className:i=""})=>{const{themeSettings:a}=p.useThemeContext(),s=S.useRef(null),l=S.useRef(null),[c,d]=S.useState(!1),f=S.useCallback(()=>{n||d(!0)},[n]),h=S.useCallback(()=>d(!1),[]),m=S.useCallback(()=>d(!0),[]),v=S.useCallback(()=>d(!1),[]),g=c&&r;return p.jsxs("div",{ref:s,className:`csdk-menu-item ${i}`,children:[p.jsx(ja,{disabled:n,sx:w({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:a.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"0px",color:p.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:p.DEFAULT_BACKGROUND_COLOR}},o),onMouseEnter:f,onMouseLeave:h,children:p.jsxs("div",{className:"csdk-menu-item-content",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t,p.jsx(Lx,{})]})}),p.jsx(Fa,{ref:l,style:{pointerEvents:"none"},anchorEl:s.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:g,autoFocus:!1,disableAutoFocus:!0,disableEnforceFocus:!0,MenuListProps:{sx:{paddingTop:0,paddingBottom:0}},slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:a.typography.fontFamily}}},onClose:()=>{d(!1)},onMouseEnter:m,onMouseLeave:v,children:p.jsx("div",{style:{pointerEvents:"auto"},children:e})})]})},$0=({position:e,itemSections:t,children:r,closeContextMenu:n,alignment:o})=>{const[i,a]=S.useState(t),s=!!e;S.useEffect(()=>{t&&a(t)},[t]);const l=S.useCallback((c,d)=>{const{sectionTitle:f,items:h=[]}=c;return p.jsxs("div",{className:"csdk-menu-section",children:[f&&p.jsx(Nx,{children:f}),h.map((m,v)=>{const{subItems:g}=m;return g&&g.length?p.jsx(Fx,{label:m.caption,allowOpen:s,style:m.style,className:m.class,children:g.map(l)},v):p.jsx(Ix,{disabled:m.disabled,style:m.style,className:m.class,onClick:()=>{var b;n(),(b=m.onClick)==null||b.call(m)},children:m.caption},v)})]},d!=null?d:f)},[n,s]);return p.jsx(p.Fragment,{children:p.jsxs(rx,{position:e!=null?e:null,open:s,onClose:n,alignment:o,children:[i==null?void 0:i.map(l),r]})})},jx=({children:e,onBeforeMenuOpen:t})=>{const[r,n]=S.useState(null),o=S.useCallback(l=>{const c=t?t(l):l;c&&n(c)},[t]),i=S.useCallback(()=>{n(null)},[]),a=S.useCallback(()=>{var l;(l=r==null?void 0:r.onClose)==null||l.call(r),i()},[i,r]),s=S.useMemo(()=>({openMenu:o,closeMenu:i}),[o,i]);return p.jsxs($c.Provider,{value:s,children:[p.jsx($0,{position:r==null?void 0:r.position,itemSections:r==null?void 0:r.itemSections,closeContextMenu:a,alignment:r==null?void 0:r.alignment}),e]})},Bx=({children:e,onBeforeMenuOpen:t})=>{const r=ba(),n=S.useCallback(a=>{const s=t?t(a):a;s&&(r==null||r.openMenu(s))},[t,r]),o=S.useCallback(()=>{r==null||r.closeMenu()},[r]),i={openMenu:n,closeMenu:o};return p.jsx($c.Provider,{value:i,children:e})},N0=({children:e,onBeforeMenuOpen:t})=>ba()?t?p.jsx(Bx,{onBeforeMenuOpen:t,children:e}):p.jsx(p.Fragment,{children:e}):p.jsx(jx,{onBeforeMenuOpen:t,children:e}),Hx=({shouldHaveOwnMenuRoot:e}={})=>t=>function(n){const i=!!ba();return e&&!i?p.jsx(N0,{children:p.jsx(t,w({},n))}):p.jsx(t,w({},n))},Jc=S.createContext(null),Ba=()=>S.useContext(Jc),zx=ht(Zc,{target:"epaozx80",label:"StyledMuiPopover"})(".MuiPaper-root.MuiPopover-paper:not([style*='top']),.MuiPaper-root.MuiPopover-paper:not([style*='left']){opacity:0 !important;}"),eu=e=>{var f;const d=e,{children:t,open:r,id:n,position:o,onClose:i,BackdropProps:a,style:s,slotProps:l}=d,c=te(d,["children","open","id","position","onClose","BackdropProps","style","slotProps"]);return p.jsx(zx,N(w({id:n,className:"csdk-accessible",anchorEl:o==null?void 0:o.anchorEl,anchorOrigin:o==null?void 0:o.anchorOrigin,transformOrigin:o==null?void 0:o.contentOrigin,transitionDuration:0,open:r,BackdropProps:a,style:s,slotProps:{paper:{sx:w({display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"},(f=l==null?void 0:l.paper)==null?void 0:f.sx)}},onClose:i},c),{children:t}))};let Wx=0;const Vx=()=>`modal-${++Wx}`,an=new Set,Ux=({children:e})=>{const[t,r]=S.useState([]),n=S.useRef([]);S.useEffect(()=>()=>{an.forEach(f=>{try{f&&f.parentNode&&f.parentNode===document.body&&document.body.contains(f)&&document.body.removeChild(f)}catch(h){}}),an.clear()},[]);const o=S.useCallback(f=>new Promise(h=>{const m=Vx();let v;try{v=document.createElement("div"),v.style.position="fixed",v.style.top="50%",v.style.left="50%",v.style.transform="translate(-50%, -50%)",v.style.width="1px",v.style.height="1px",v.style.pointerEvents="none",v.style.visibility="hidden",v.setAttribute("data-modal-anchor",m),document.body&&typeof document.body.appendChild=="function"?(document.body.appendChild(v),an.add(v)):console.warn("Modal: Unable to append anchor element to document body")}catch(y){console.warn("Modal: Failed to create anchor element:",y),v=document.createElement("div"),v.setAttribute("data-modal-anchor",m)}const g={id:m,options:f,anchorEl:v,resolve:()=>h(m)};r(y=>{const b=[...y,g];return n.current=b,b}),h(m)}),[]),i=S.useCallback(f=>{r(h=>{if(!f){const g=h.slice(0,-1);n.current=g;const y=h[h.length-1];return y!=null&&y.anchorEl&&setTimeout(()=>{try{y.anchorEl&&y.anchorEl.parentNode&&y.anchorEl.parentNode===document.body&&document.body.contains(y.anchorEl)&&(document.body.removeChild(y.anchorEl),an.delete(y.anchorEl))}catch(b){}},0),y&&y.resolve(),g}const m=h.find(g=>g.id===f);m!=null&&m.anchorEl&&setTimeout(()=>{try{m.anchorEl&&m.anchorEl.parentNode&&m.anchorEl.parentNode===document.body&&document.body.contains(m.anchorEl)&&(document.body.removeChild(m.anchorEl),an.delete(m.anchorEl))}catch(g){}},0),m&&m.resolve();const v=h.filter(g=>g.id!==f);return n.current=v,v})},[]),a=S.useCallback(()=>{r(f=>(f.forEach(h=>{h.anchorEl&&setTimeout(()=>{try{h.anchorEl&&h.anchorEl.parentNode&&h.anchorEl.parentNode===document.body&&document.body.contains(h.anchorEl)&&(document.body.removeChild(h.anchorEl),an.delete(h.anchorEl))}catch(m){}},0),h.resolve()}),n.current=[],[]))},[]),s=S.useCallback(()=>n.current,[]),l=S.useCallback(f=>t.some(h=>h.id===f),[t]),c=S.useCallback(f=>{i(f)},[i]),d=S.useMemo(()=>({openModal:o,closeModal:i,closeAllModals:a,getModalStack:s,isModalOpen:l}),[o,i,a,s,l]);return p.jsxs(Jc.Provider,{value:d,children:[t.map((f,h)=>{const{options:m}=f,v=m.measurement==="%"?`${m.width||80}%`:`${m.width||1200}px`,g=m.measurement==="%"?`${m.height||80}%`:`${m.height||800}px`;return p.jsx("div",{children:p.jsx("div",{"data-testid":"modal-backdrop",onClick:y=>{y.target.closest(".MuiPaper-root")||c(f.id)},style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1200+h},children:p.jsx(eu,{open:!0,position:{anchorEl:f.anchorEl,anchorOrigin:{vertical:"center",horizontal:"center"},contentOrigin:{vertical:"center",horizontal:"center"}},onClose:()=>i(f.id),BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},style:{zIndex:1200+h+10},slotProps:{paper:{sx:{display:"flex",width:v,height:g,maxWidth:"95vw",maxHeight:"95vh",position:"relative",zIndex:1200+h+10}}},children:p.jsx("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:y=>y.stopPropagation(),children:p.jsx("div",{style:{flex:1,overflow:"hidden"},children:m.content})})})})},f.id)}),e]})},Gx=({children:e})=>{const t=Ba(),r=S.useCallback(l=>(t==null?void 0:t.openModal(l))||Promise.resolve(""),[t]),n=S.useCallback(l=>{t==null||t.closeModal(l)},[t]),o=S.useCallback(()=>{t==null||t.closeAllModals()},[t]),i=S.useCallback(()=>(t==null?void 0:t.getModalStack())||[],[t]),a=S.useCallback(l=>(t==null?void 0:t.isModalOpen(l))||!1,[t]),s={openModal:r,closeModal:n,closeAllModals:o,getModalStack:i,isModalOpen:a};return p.jsx(Jc.Provider,{value:s,children:e})},L0=({children:e})=>Ba()?p.jsx(Gx,{children:e}):p.jsx(Ux,{children:e}),Yx=({shouldHaveOwnModalRoot:e}={})=>t=>function(n){const i=!!Ba();return e&&!i?p.jsx(L0,{children:p.jsx(t,w({},n))}):p.jsx(t,w({},n))},qx=e=>t=>(t.displayName=e,t),Qo=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:o,shouldHaveOwnMenuRoot:i,shouldHaveOwnModalRoot:a}=e;return s=>p.flow(qx(t),wy({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:o}),Uh({componentName:t,config:n}),qh({componentName:t}),Ey(),Hx({shouldHaveOwnMenuRoot:i}),Yx({shouldHaveOwnModalRoot:a}))(s)};class Zo{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,o){t.font=o;let i=this.getStringWidth(t,r);const a="…",s=this.getStringWidth(t,a);if(i<=n)return{string:r,width:i};if(s>=n)return{string:a,width:s};do r=r.slice(0,r.length-1),i=this.getStringWidth(t,r);while(i+s>n);return{string:r+a,width:i+s}}getStringWidth(t,r){return Math.ceil(t.measureText(r).width)}floor(t,r){r=typeof r=="number"?r:0;const n=Math.pow(10,r);return Math.round(t*n)/n}setCanvasSizes(t,r,n,o){const i=window.devicePixelRatio||1;t.width=n*i,t.height=o*i,t.style.width=n+"px",t.style.height=o+"px",r.scale(i,i)}}const dn=new Zo,Or=function(e,t){return dn.floor(e*t.value,t.decimals)};function Xx(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function Kx(e,t,r){const{showTitle:n,showSecondary:o,skin:i,maxHeight:a,maxWidth:s,borderWidth:l}=r;for(let c=0;c<t.length;c++){const d=t[c],f=d.value,h=Or(f,e.valueSectionMarginBottom),v=Or(f,e.indicatorVerticalMargin)*2;let g=f+h+v;if(n&&i==="vertical"){const y=Or(f,e.titleSectionHeight);g+=y}if(o){const y=Or(f,e.secSectionHeight),b=Or(f,e.secSectionMarginTop);g+=y+b+(l||0)}if(g<=a){const y=Or(f,e.numericMinWidth),T=Or(f,e.indicatorHorizontalMargin)*2;if(y+T<=s)return N(w({},d),{maxWidth:s-T,maxHeight:a-v})}}return null}class Qx{getBaseMeasure(t,r,n){const o=r,i="sizes"in o?o.sizes:[],a=o.relativeSizes,s=o.measureKeys.concat(),l=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),d=Xx(s,a);return Kx(d,i,{maxWidth:l,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in o?o.borderWidth:0})}render(t,r,n,o){const i=t.getContext("2d");let a;n.height=o.value,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,a=n.height,n.fitValueMeasure=this.getFitValueMeasure(i,r,n),r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(i,r,n),a+=r.skin==="vertical"?n.titleSectionHeight:0),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(i,r,n),a+=n.valueSectionMarginBottom+n.secSectionHeight+n.secSectionMarginTop+n.borderWidth);const s=this.getCanvasWidth(r,n);n.width=s,n.height=a,dn.setCanvasSizes(t,i,s,a),this.draw(i,r,n)}getFitTitleMeasure(t,r,n){const o=r.skin==="horizontal",i=n.maxWidth-(o?n.fitValueMeasure.width+n.valueSectionMarginRight:0);if(o&&i+n.titleSectionMinWidth<=0)return;const a=dn.getFitStringMeasure(t,r.title.text,i,n.titleFont);return a.width+=o?n.valueSectionMarginRight:0,a.key="title",a}getFitValueMeasure(t,r,n){const o=dn.getFitStringMeasure(t,r.value.text,n.maxWidth,n.valueFont);return o.key="value",o}getFitSecondaryMeasure(t,r,n){const o=n.secDividerWidth,i=n.maxWidth-o,a=i-n.secTitleMinWidth,s=dn.getFitStringMeasure(t,r.secondary.text,a,n.secondaryValueFont),l=i-s.width,c=dn.getFitStringMeasure(t,r.secondaryTitle.text,l,n.secondaryTitleFont);return{width:c.width+s.width+o,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n;const o=r.fitTitleMeasure,i=r.fitValueMeasure,a=r.fitSecondaryMeasure;if(r.fitMeasures.some(l=>{const c=r[l.key],d=t[l.dataKey];return!!(c&&d&&c[l.prop]!==d.text)}))return r.maxWidth;if(t.skin==="vertical"){let c=o&&o.width>i.width?o:i;c=a&&a.width>c.width?a:c,n=c.width}else n=i.width,o&&(n+=o.width),a&&a.width>n&&(n=a.width);return n}draw(t,r,n){this.clearCanvas(t,n),this.drawValue(t,r,n),r.showTitle&&this.drawTitle(t,r,n),r.showSecondary&&this.drawSecondary(t,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r,n){!n.fitTitleMeasure||r.skin==="horizontal"&&n.fitValueMeasure.string!==r[n.fitValueMeasure.key].text||(t.font=n.titleFont,t.fillStyle=n.titleColor,r.skin==="vertical"?(t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitTitleMeasure.string,n.width/2,n.titleSectionHeight/2)):(t.textAlign="left",t.textBaseline="top",t.fillText(n.fitTitleMeasure.string,n.fitValueMeasure.width+n.valueSectionMarginRight,n.titleSectionMarginTop)))}drawValue(t,r,n){const o=r.skin==="vertical";t.fillStyle=n.valueColor||r.color,t.font=n.valueFont,t.textAlign=o?"center":"left",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,o?n.width/2:0,(r.showTitle&&o?n.titleSectionHeight:0)+n.valueSectionHeight/2)}drawSecondary(t,r){let n=r.height-r.secSectionHeight/2;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="middle",t.fillText(r.fitSecondaryMeasure.titleString,0,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.fillText(r.fitSecondaryMeasure.valueString,r.width,n),t.strokeStyle=r.borderColor,t.beginPath(),n=r.height-r.secSectionHeight-r.secSectionMarginTop-r.borderWidth,t.moveTo(0,n),t.lineTo(r.width,n),t.stroke()}}const fn=new Zo,vi=function(e,t){return fn.floor(e*t.value,t.decimals)};function Zx(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function Jx(e,t,r){const{showTitle:n,showSecondary:o,maxHeight:i,maxWidth:a,bracketThickness:s}=r;for(let l=0;l<t.length;l++){const c=t[l],d=c.value,f=vi(d,e.indicatorMargin);let h=d+f;if(n){const m=vi(d,e.titleSectionHeight);h+=m}if(o){const m=vi(d,e.secSectionHeight);h+=m}if(h<=i){const m=vi(d,e.numericMinWidth),v=f*2;if(m+s*2+v<=a)return N(w({},c),{maxWidth:a-v,maxHeight:i-f})}}return null}class eC{getBaseMeasure(t,r,n){const o=r,i="sizes"in o?o.sizes:[],a=o.relativeSizes,s=o.measureKeys.concat(),l=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),d=Zx(s,a);return Jx(d,i,{maxWidth:l,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:o.bracketThickness})}render(t,r,n,o){const i=t.getContext("2d");let a;n.height=o.value,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,n.offsetY=0,a=n.height,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(i,r,n),a+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(i,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(i,r,n),a+=n.secSectionHeight);const s=this.getCanvasWidth(r,n);n.width=s,n.height=a,fn.setCanvasSizes(t,i,s,a),this.draw(i,r,n)}getFitTitleMeasure(t,r,n){const o=n.bracketWidth*2+n.titleHorizontalMargin*2,i=n.maxWidth-o,a=fn.getFitStringMeasure(t,r.title.text,i,n.titleFont);return a.width+=o,a.key="title",a}getFitValueMeasure(t,r,n){const o=n.bracketThickness*2,i=n.maxWidth-o,a=fn.getFitStringMeasure(t,r.value.text,i,n.valueFont);return a.width+=o,a.key="value",a}getFitSecondaryMeasure(t,r,n){const o=n.bracketWidth*2+n.secDividerWidth,i=n.maxWidth-o,a=i-n.secTitleMinWidth,s=fn.getFitStringMeasure(t,r.secondary.text,a,n.secondaryValueFont),l=i-s.width,c=fn.getFitStringMeasure(t,r.secondaryTitle.text,l,n.secondaryTitleFont);return{width:c.width+s.width+o,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const o=r.fitTitleMeasure,i=r.fitValueMeasure;let s=o&&o.width>i.width?o:i;const l=r.fitSecondaryMeasure,c=l&&l.width>s.width;let d;return s=c?l:s,c?d=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:d=s.string!==t[s.key].text,d?n=r.maxWidth:s.width>n&&(n=s.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),(r.showTitle||r.showSecondary)&&this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,r.titleSectionHeight/2),r.offsetY+=r.titleSectionHeight}drawValue(t,r,n){const o=n.offsetY;t.fillStyle=n.valueColor,t.fillRect(1,o,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,o+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){t.strokeStyle=n.bracketColor,t.beginPath(),r.showTitle?(t.moveTo(n.bracketWidth+.5,.5),t.lineTo(.5,.5)):t.moveTo(.5,.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),r.showTitle?(t.moveTo(n.width-(n.bracketWidth+.5),.5),t.lineTo(n.width-.5,.5)):t.moveTo(n.width-.5,.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}}const je=new Zo,sn=function(e,t){return je.floor(e*t.value,t.decimals)};function tC(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function rC(e,t,r){const{maxWidth:n,maxHeight:o,showTitle:i,showSecondary:a}=r;for(let s=0;s<t.length;s++){const l=t[s],c=l.value,d=sn(c,e.valueSectionHeight),f=sn(c,e.indicatorMargin),h=Math.ceil(f*1.5);let m=c+d+h;if(i){const v=sn(c,e.titleSectionHeight);m+=v}if(a){const v=sn(c,e.secSectionHeight);m+=v}if(m<=o){const v=sn(c,e.gaugeWidth),g=sn(c,e.bracketWidth),y=f*2;if(v+g*2+y<=n)return N(w({},l),{maxWidth:n-y,maxHeight:o-h})}}return null}class nC{getBaseMeasure(t,r,n){const o=r,i="gaugeHeights"in o?o.gaugeHeights:void 0;if(!i)return null;const a=o.relativeSizes,s=o.measureKeys.concat(),l=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),d=tC(s,a);return rC(d,i,{maxWidth:l,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,o){const i=t.getContext("2d");let a=0,s;n.gaugeHeight=o.value,n.size=o.size,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,n.offsetY=0,s=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(i,r,n),s+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(i,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(i,r,n),s+=n.secSectionHeight),a=this.getCanvasWidth(r,n),n.width=a,n.height=s,je.setCanvasSizes(t,i,a,s),this.draw(i,r,n)}getFitTitleMeasure(t,r,n){const o=n.bracketWidth*2+n.titleHorizontalMargin*2,i=n.maxWidth-o,a=je.getFitStringMeasure(t,r.title.text,i,n.titleFont);return a.width+=o,a.key="title",a}getFitValueMeasure(t,r,n){const o=n.bracketThickness*2,i=n.maxWidth-o,a=je.getFitStringMeasure(t,r.value.text,i,n.valueFont);return a.width+=o,a.key="value",a}getFitSecondaryMeasure(t,r,n){const o=n.bracketWidth*2+n.secDividerWidth,i=n.maxWidth-o,a=i-n.secTitleMinWidth,s=je.getFitStringMeasure(t,r.secondary.text,a,n.secondaryValueFont),l=i-s.width,c=je.getFitStringMeasure(t,r.secondaryTitle.text,l,n.secondaryTitleFont);return{width:c.width+s.width+o,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const o=r.fitTitleMeasure,i=r.fitValueMeasure;let s=o&&o.width>i.width?o:i;const l=r.fitSecondaryMeasure,c=l&&l.width>s.width;let d;return s=c?l:s,c?d=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:d=s.string!==t[s.key].text,d?n=r.maxWidth:s.width>n&&(n=s.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawGauge(t,r,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,(r.titleSectionHeight-r.titleBottomMargin)/2),r.offsetY+=r.titleSectionHeight}drawGauge(t,r,n){n.gaugeCenterX=n.width/2,n.gaugeCenterY=n.offsetY+n.gaugeHeight-n.gaugeBottomMargin,n.needleAngle=this.getNeedleAngle(r,n),r.skin===2&&r.conditions&&r.conditions.length?this.drawConditionalDial(t,r,n):this.drawSimpleDial(t,r,n),r.showTicks&&n.size!=="micro"&&this.drawTicks(t,r,n),this.drawNeedle(t,n),r.showLabels&&n.size!=="micro"&&this.drawLabels(t,r,n),n.offsetY+=n.gaugeHeight}drawValue(t,r,n){t.fillStyle=n.valueColor,t.fillRect(1,n.offsetY,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,n.offsetY+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){const o=r.showTitle?(n.titleSectionHeight-n.titleBottomMargin)/2:0;t.strokeStyle=n.bracketColor,t.beginPath(),t.moveTo(n.bracketWidth+.5,o+.5),t.lineTo(.5,o+.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),t.moveTo(n.width-(n.bracketWidth+.5),o+.5),t.lineTo(n.width-.5,o+.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}getNeedleAngle(t,r){const n=+t.min.data,o=+t.max.data,i=+(t.value.data||0);return i<n?r.startAngle-r.overDegrees:i>o?r.endAngle+r.overDegrees:this.getAngle(r,i,n,o)}getAngle(t,r,n,o){const i=(t.endAngle-t.startAngle)/(o-n);return(r-n)*i+t.startAngle}drawConditionalDial(t,r,n){const o=r.conditions,i=+r.min.data,a=+r.max.data,s=je.degToRad(n.startAngle+180),l=je.degToRad(n.endAngle+180);let c;const d=f=>this.getAngle(n,f,i,a);for(this.drawArc(t,n,s,l,n.defaultDialColor),c=o.length-1;c>=0;c--){const f=o[c];let h=+f.data,m,v=NaN,g=NaN,y=NaN,b=NaN;const T=.25;switch(f.operator){case"<":if(h<=i)break;h=h>a?a:h,m=d(h),v=s,g=je.degToRad(m+180);break;case">":if(h>=a)break;h=h<i?i:h,m=d(h),v=je.degToRad(m+180),g=l;break;case"≤":if(h<i)break;h=h>a?a:h,m=d(h),v=s,g=je.degToRad(m+(m+T<=n.endAngle?T:0)+180);break;case"≥":if(h>a)break;h=h<i?i:h,m=d(h),v=je.degToRad(m-(m-T>=n.startAngle?T:0)+180),g=l;break;case"=":if(h<i||h>a)break;m=d(h),v=je.degToRad(m-(m-T>=n.startAngle?T:0)+180),g=je.degToRad(m+(m+T<=n.endAngle?T:0)+180);break;case"≠":if(h<i||h>a)v=s,g=l;else if(h===i||h===a){const E=h===i;v=je.degToRad(n.startAngle+(E?T:0)+180),g=je.degToRad(n.endAngle-(E?0:T)+180)}else m=d(h),v=s,g=je.degToRad(m-(m-T>=n.startAngle?T:0)+180),y=je.degToRad(m+(m+T<=n.endAngle?T:0)+180),b=l}!isNaN(v)&&!isNaN(g)&&this.drawArc(t,n,v,g,f.color),!isNaN(y)&&!isNaN(b)&&this.drawArc(t,n,y,b,f.color)}}drawSimpleDial(t,r,n){const o=je.degToRad(n.startAngle+180),i=je.degToRad(n.needleAngle+180),a=je.degToRad(n.endAngle+180);n.needleAngle>n.startAngle&&n.needleAngle<n.endAngle?(this.drawArc(t,n,o,i,n.valueColor),t.globalAlpha=n.gaugeOpacity,this.drawArc(t,n,i,a,n.valueColor)):(n.needleAngle<=n.startAngle&&(t.globalAlpha=n.gaugeOpacity),this.drawArc(t,n,o,a,n.valueColor)),t.globalAlpha=1}drawArc(t,r,n,o,i){t.fillStyle=i,t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.outerArcRadius,n,o),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.innerArcRadius,o,n,!0),t.fill()}drawTicks(t,r,n){const o=n.startAngle,i=n.endAngle,a=n.tickDegreesIncrement,s=n.needleAngle;let l;for(l=o;l<=i;l+=a){const c=je.degToRad(l),d=n.gaugeCenterX-n.lengthToTick*Math.cos(c),f=n.gaugeCenterY-n.lengthToTick*Math.sin(c),h=s<o,m=s>=l-a/2&&s<l+a/2,v=l===i&&s>=l;t.fillStyle=!h&&m||v?r.color:n.tickColor,t.beginPath(),t.arc(d,f,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=je.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 Wt=new Zo;class oC{render(t,r,n,o){const i=t.getContext("2d"),a=Math.floor(o.clientWidth)-n.horizontalMargin*2,s=n.sectionMinWidth;let l=0,c=0,d=0,f=0,h=0,m=0,v=0,g=0,y;if(i.font=n.valueFont,y=Wt.getStringWidth(i,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(i.font=n.titleFont,m=Wt.getStringWidth(i,r.value.text),h=Wt.getStringWidth(i,r.title.text),c=h<s?h:s,y+=c+n.textPadding),r.showSecondary&&(i.font=n.secondaryValueFont,g=Wt.getStringWidth(i,r.secondary.text),f=g<s?g:s,y+=f,i.font=n.secondaryTitleFont||"",v=Wt.getStringWidth(i,r.secondaryTitle.text),d=v<s?v:s,y+=d+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const T=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const x=m+h+v+g+n.textPadding*4+T,C=a-T-x;n.barWidth=Math.max(C,n.barWidth)}const E=n.barWidth+T;y+=E,n.showTickerBar=y<=a||!0,l+=n.showTickerBar?E:0}l+=r.showTitle?n.textPadding:0,l+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const b=a-l-c-d-f;if(n.fitValueMeasure=Wt.getFitStringMeasure(i,r.value.text,b,n.valueFont),l+=n.fitValueMeasure.width,r.showSecondary){const T=a-l-c-d;let E;n.fitSecValueMeasure=Wt.getFitStringMeasure(i,r.secondary.text,T,n.secondaryValueFont),l+=n.fitSecValueMeasure.width;const x=a-l,C=x/2;r.showTitle?h+v>x?h>C&&v>C?E=C:v>C&&h<=C?E=x-h:E=v:E=v:E=x,n.fitSecTitleMeasure=Wt.getFitStringMeasure(i,r.secondaryTitle.text,E,n.secondaryTitleFont),l+=n.fitSecTitleMeasure.width}if(r.showTitle){const T=a-l;n.fitTitleMeasure=Wt.getFitStringMeasure(i,r.title.text,T,n.titleFont),l+=n.fitTitleMeasure.width}n.width=l,Wt.setCanvasSizes(t,i,l,n.height),this.draw(i,r,n)}draw(t,r,n){this.clearCanvas(t,n),r.type==="gauge"&&n.showTickerBar&&(this.drawTickerBar(t,r,n),this.drawDivider(t,n)),t.textBaseline="middle",r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&(this.drawDivider(t,n),this.drawSecondary(t,n))}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTickerBar(t,r,n){var c;const o=+r.min.data,i=+r.max.data,a=+(((c=r.value)==null?void 0:c.data)||0),s=Math.round((n.height-n.barHeight)/2);let l;if(t.fillStyle=n.valueColor,a<=o)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,s,n.barWidth,n.barHeight),l=0;else if(a>=i)t.fillRect(n.offsetX,s,n.barWidth,n.barHeight),l=n.barWidth-n.tickerBarWidth;else{const d=(a-Math.abs(o))/(i-o),f=n.barWidth*d;t.fillRect(n.offsetX,s,f,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+f,s,n.barWidth-f,n.barHeight),f>n.barWidth-n.tickerBarWidth?l=n.barWidth-n.tickerBarWidth:f<n.tickerBarWidth?l=0:l=f-1}t.globalAlpha=1,t.fillStyle=n.barHandleColor,t.fillRect(n.offsetX+l,Math.round((n.height-n.tickerBarHeight)/2),n.tickerBarWidth,n.tickerBarHeight),n.offsetX+=n.barWidth}drawDivider(t,r){t.fillStyle=r.dividerColor,t.fillRect(r.offsetX+r.horizontalPadding,Math.round((r.height-r.dividerHeight)/2),r.dividerWidth,r.dividerHeight),r.offsetX+=r.horizontalPadding*2+r.dividerWidth}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.fillText(r.fitTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitTitleMeasure.width+r.textPadding}drawValue(t,r,n){t.font=n.valueFont,t.fillStyle=n.valueColor||r.color,t.fillText(n.fitValueMeasure.string,n.offsetX,Math.floor(n.height/2)),n.offsetX+=n.fitValueMeasure.width}drawSecondary(t,r){t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.fillText(r.fitSecTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitSecTitleMeasure.width+r.textPadding,t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.fillText(r.fitSecValueMeasure.string,r.offsetX,Math.floor(r.height/2))}}const rf={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"}]},iC={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}]},aC={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"]},sC={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 lC(e,t){const r=p.cloneDeep(sC);if(r.forceTickerView=t.forceTickerView,r.fontFamily=t.fontFamily,r.backgroundColor=t.backgroundColor,r.value.color=t.value.color,r.title.color=t.title.color,r.secondaryTitle.color=t.secondaryTitle.color,r.secondaryValue.color=t.secondaryTitle.color,t.tickerBarHeight){const n=t.tickerBarHeight;r.barHeight=n,r.tickerBarHeight=n+2}return r.forceTickerView&&(r.height=e.offsetHeight),r}const cC=new Zo,uC=new Qx,dC=new eC,fC=new nC,pC=new oC;class hC{getService(t){switch(t){case"numericSimple":return uC;case"numericBar":return dC;case"gauge":return fC;case"ticker":return pC}}render(t,r,n,o){let i=this.getService(r.type);const a="getBaseMeasure"in i?i.getBaseMeasure(r,n,o):void 0;if(!a||n.forceTickerView){i=this.getService("ticker");const s=lC(t,n);this.setTextOptions(s),i.render(t,r,s,o);return}this.calculateRelativeSizes(r,n,a.value),this.setTextOptions(n,a.size),i.render(t,r,n,a)}calculateRelativeSizes(t,r,n){const{relativeSizes:o}=r;o.forEach(function(i){let a;if("dataKey"in i&&"values"in i&&i.dataKey in t)a=i.values[t[i.dataKey]];else if("value"in i)a=i.value;else throw new p.TranslatableError("errors.indicatorInvalidRelativeSize");const s=a*n;r[i.key]=cC.floor(s,i.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const o=t[n],i=o.fontStyle?`${o.fontStyle} `:"",a=o.fontVariant?`${o.fontVariant} `:"",s=o.fontWeight?`${o.fontWeight} `:"",l=`${Number.parseFloat(o.fontSizes&&o.fontSizes[r]||o.fontSize||t.fontSize)}px `,c=o.fontFamily||t.fontFamily,{color:d}=o;t[`${n}Font`]=i+a+s+l+c,t[`${n}Color`]=d})}}function F0(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function gC(e,t,r){if(!mC(e))return r;const o=p.getColoringServiceByColorOptions(e).getColor(t);return o?N(w({},r),{value:N(w({},r.value),{color:o})}):r}function mC(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const vC=(e,t)=>{const r=F0(t);return r&&e.value?p.getColoringServiceByColorOptions(r).getColor(p.isNumber(e.value)?e.value:0):null},yC=(e,t,r)=>{var f,h,m,v,g,y,b,T,E,x,C,_;const n=p.isNumber(e.min)?e.min:0,o=p.isNumber(e.max)?e.max:100,i=yi(r,"value"),a=yi(r,"secondary"),s=yi(r,"min"),l=yi(r,"max"),c=vC(e,r),d=t.indicatorType==="gauge"?1:"vertical";return N(w(w({},wC),c?{color:c}:null),{type:bC(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||d,title:{text:(m=(h=(f=t.indicatorComponents)==null?void 0:f.title)==null?void 0:h.text)!=null?m:""},min:{data:n,text:p.applyFormatPlainText(s,n)},max:{data:o,text:p.applyFormatPlainText(l,o)},value:{data:e.value,text:nf(e.value,i)},secondary:{data:e.secondary,text:nf(e.secondary,a)},secondaryTitle:{text:(y=(g=(v=t.indicatorComponents)==null?void 0:v.secondaryTitle)==null?void 0:g.text)!=null?y:""},showSecondary:e.secondary!==void 0,showTitle:!!((T=(b=t.indicatorComponents)==null?void 0:b.title)!=null&&T.shouldBeShown),showLabels:!!((x=(E=t.indicatorComponents)==null?void 0:E.labels)!=null&&x.shouldBeShown),showTicks:!!((_=(C=t.indicatorComponents)==null?void 0:C.ticks)!=null&&_.shouldBeShown)})};function bC(e,t){return e==="numeric"?t:e}function yi(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return p.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const wC={color:"#00cee6",showSecondary:!1};function nf(e,t){return e===void 0?"":isNaN(e)?"#N/A":p.applyFormatPlainText(t,e)}function _l(e,t,r){const n=p.cloneDeep(r);for(const o in t){const i=t[o],a=xC(e,i);a&&j0(n,o,a)}return n}function j0(e,t,r){const n=t.split(".");if(n.length===1)if(n[0]in e)e[n[0]]=r;else return;else{const[o,...i]=n;if(!(o in e))return;const a=e[o];if(!B0(a))return;j0(a,i.join("."),r)}}function xC(e,t){const r=t.split(".");let n=e;for(const o of r){if(!B0(n)||!(o in n))return;n=n[o]}return n}function B0(e){return typeof e=="object"&&e!==null}function CC(e,t,r){return _l(e,t,r)}const EC={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"},TC=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:o}=t,{type:i}=e;let a;switch(i){case"gauge":a=aC;break;case"numeric":e.numericSubtype==="numericBar"?a=iC:a=rf;break;default:a=rf}o&&(a=CC(o,EC,a));const s=F0(n);return s&&r.value&&p.isNumber(r.value)&&(a=gC(s,r.value,a)),w(N(w({},a),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};var SC=function(e){return e.PERCENT="%",e.PIXEL="px",e}({}),RC=function(e){return e.DEFAULT="default",e.HOVER="hover",e.FOCUS="focus",e}({});function Di(e){return typeof e=="string"}function _C(e){var l;const t=p.useThemeContext().themeSettings,[r,n]=S.useState(null),[o,i]=S.useState(null),a=(l=p.useSisenseContext().app)==null?void 0:l.httpClient;S.useEffect(()=>{e&&Di(e)&&a&&Bh(e,a).then(c=>{n(c)}).catch(i)},[a,e]),S.useEffect(()=>{(!e||!Di(e))&&(n(null),i(null))},[e]);const s=S.useMemo(()=>r?of(t,r):e&&!Di(e)?of(t,e):t,[r,t,e]);return o?[null,o]:[s,null]}function of(e,t){return p.merge.withOptions({mergeArrays:!1},e,t)}function af(e){return`${e.fontFamily}|${e.fontWeight}|${e.fontStyle}`}function MC(e,t){const[r,n]=S.useState([]),[o,i]=S.useState(!1),a=S.useMemo(()=>e.filter(s=>!t.includes(af(s))),[e,t]);return S.useEffect(()=>{if(a.length===0){i(!0);return}let s=!1;const l=a.map(c=>{const d=c.src.map(h=>Object.entries(h).map(([v,g])=>`${v}('${g}')`).join(" ")).join(", ");return new FontFace(c.fontFamily,d,{style:c.fontStyle,weight:c.fontWeight.toString()}).load().then(h=>(s||document.fonts.add(h),af(c)))});return Promise.all(l).then(c=>{s||(n(d=>[...d,...c]),i(!0))}).catch(c=>{console.error("Failed to load fonts:",c),i(!0)}),()=>{s=!0}},[a]),{loadedFonts:r,areAllFontsLoaded:o}}const sf=S.createContext({loadedFonts:[]}),OC=({fonts:e,children:t})=>{var a;const{loadedFonts:r}=S.useContext(sf),{themeSettings:n}=p.useThemeContext(),{loadedFonts:o,areAllFontsLoaded:i}=MC(e||((a=n.typography.fontsLoader)==null?void 0:a.fonts)||[],r);return p.jsx(sf.Provider,{value:{loadedFonts:[...r,...o]},children:i&&t})},H0=Qo({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r}=e,[n,o]=_C(t);if(o)throw o;return p.jsx(p.Fragment,{children:n&&p.jsx(p.ThemeContext.Provider,{value:{themeSettings:n},children:p.jsx(OC,{children:r})})})});function kC(e,t,r){return e==null?e:p.baseSet(e,t,r)}const z0={"value.data":"value.data","value.text":"value.text","secondary.data":"secondary.data","secondary.text":"secondary.text","title.text":"title.text","secondaryTitle.text":"secondaryTitle.text"},W0={"value.color":"value.color","secondaryValue.color":"secondary.color","secondaryValue.fontWeight":"secondary.fontWeight","title.color":"title.color","secondaryTitle.color":"secondaryTitle.color"};function AC(e,t){const r={};return p.flow(lf(e,z0),lf(t,W0))(r)}function lf(e,t){return r=>{const n=w({},r);for(const[o,i]of Object.entries(t))kC(n,i,p.get(e,o));return n}}const IC=(e,t,r)=>{const n=_l(e,z0,t),o=_l(e,W0,r);return{legacyDataOptions:n,legacyChartOptions:o}},PC=e=>e,DC=(e,t)=>{var o;const r={},n=(i,a)=>{if(i===void 0)return;const s=p.getCompleteNumberFormatConfig(a);return p.applyFormatPlainText(s,i)};return t.value&&t.value.length>0&&(r.value=N(w({},p.getDataPointMetadata("value",t.value[0])),{value:(o=e.value)!=null?o:0,displayValue:n(e.value,t.value[0])})),t.secondary&&t.secondary.length>0&&e.secondary!==void 0&&(r.secondary=N(w({},p.getDataPointMetadata("secondary",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=N(w({},p.getDataPointMetadata("min",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=N(w({},p.getDataPointMetadata("max",t.max[0])),{value:e.max,displayValue:n(e.max,t.max[0])})),{entries:r}},$C=({chartData:e,dataOptions:t,designOptions:r,onBeforeRender:n=PC,onDataPointClick:o})=>{var c;const i=S.useRef(null),a=S.useRef(null),{themeSettings:s}=p.useThemeContext();S.useEffect(()=>{if(!a.current||!i.current)return;const d=new hC,f=yC(e,r,t),h=TC({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:s}),m=AC(f,h),v=n(m),{legacyDataOptions:g,legacyChartOptions:y}=IC(v,f,h);d.render(a.current,g,y,i.current)},[e,t,r,s,n]);const l=d=>{if(o){const f=DC(e,t);o(f,d.nativeEvent)}};return p.jsx("div",{ref:i,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(c=s==null?void 0:s.chart)==null?void 0:c.backgroundColor,cursor:o?"pointer":"default"},"aria-label":"indicator-root",onClick:l,children:p.jsx("canvas",{ref:a})})},NC=e=>e.type==="indicator",LC=e=>"min"in e,FC=e=>"indicatorComponents"in e,jC=e=>!!e.chartData&&NC(e.chartData)&&LC(e.dataOptions)&&FC(e.designOptions);function V0(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:p.baseSlice(e,t,r)}function BC(e,t){for(var r=e.length;r--&&p.baseIndexOf(t,e[r],0)>-1;);return r}function HC(e,t){for(var r=-1,n=e.length;++r<n&&p.baseIndexOf(t,e[r],0)>-1;);return r}function zC(e){return e.split("")}var WC="\\ud800-\\udfff",VC="\\u0300-\\u036f",UC="\\ufe20-\\ufe2f",GC="\\u20d0-\\u20ff",YC=VC+UC+GC,qC="\\ufe0e\\ufe0f",XC="\\u200d",KC=RegExp("["+XC+WC+YC+qC+"]");function U0(e){return KC.test(e)}var G0="\\ud800-\\udfff",QC="\\u0300-\\u036f",ZC="\\ufe20-\\ufe2f",JC="\\u20d0-\\u20ff",e3=QC+ZC+JC,t3="\\ufe0e\\ufe0f",r3="["+G0+"]",Ml="["+e3+"]",Ol="\\ud83c[\\udffb-\\udfff]",n3="(?:"+Ml+"|"+Ol+")",Y0="[^"+G0+"]",q0="(?:\\ud83c[\\udde6-\\uddff]){2}",X0="[\\ud800-\\udbff][\\udc00-\\udfff]",o3="\\u200d",K0=n3+"?",Q0="["+t3+"]?",i3="(?:"+o3+"(?:"+[Y0,q0,X0].join("|")+")"+Q0+K0+")*",a3=Q0+K0+i3,s3="(?:"+[Y0+Ml+"?",Ml,q0,X0,r3].join("|")+")",l3=RegExp(Ol+"(?="+Ol+")|"+s3+a3,"g");function c3(e){return e.match(l3)||[]}function kl(e){return U0(e)?c3(e):zC(e)}function u3(e,t,r){if(e=p.toString(e),e&&(r||t===void 0))return p.baseTrim(e);if(!e||!(t=p.baseToString(t)))return e;var n=kl(e),o=kl(t),i=HC(n,o),a=BC(n,o)+1;return V0(n,i,a).join("")}const Z0=",";function d3(e){return e.join(`${Z0} `)}function f3(e){return e.split(Z0).map(u3)}function p3(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function h3(e,t){const{name:r,rawName:n,coordinates:o,value:i,colorValue:a,details:s}=e,c={geo:t.locations.map((d,f)=>N(w({},p.getDataPointMetadata(`geo.${f}`,d)),{value:n[f]}))};if(t.size&&(c.size=N(w({},p.getDataPointMetadata("size",t.size)),{value:i})),t.colorBy&&(c.colorBy=N(w({},p.getDataPointMetadata("colorBy",t.colorBy)),{value:a})),t.details){const d=p.getDataPointMetadata("details",t.details);d.measure&&(c.details=N(w({},d),{value:s}))}return{categories:n,displayName:r,coordinates:{lat:o.lat,lng:o.lng},value:i,entries:c}}const g3=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function m3(e,t){const r=g3[e.toLowerCase()];return r&&(t[r]=e),r||e}function v3(e,t){return t[e.toLowerCase()]||e}const y3=(e,t)=>{const{app:r}=p.useSisenseContext(),[n,o]=S.useState([]),i=S.useRef(e),a=S.useCallback(()=>Mt(exports,null,function*(){if(!r||!e)return;const s={},l=p3(t),c=yield r.httpClient.post("api/v1/geo/locations",w({locations:e.map(v=>({name:m3(v.name,s)}))},l&&{geoLevel:l})),d=i.current!==e;if(!c||d)return;const f=c.reduce((v,g)=>{const y=N(w({},g),{name:v3(g.name,s)});return v[y.name]=y,v},{}),h=[],m=e.map(v=>(f[v.name]||h.push(v.name),w(w({},v),f[v.name]?{coordinates:f[v.name].latLng}:null)));h.length&&console.warn(`Locations "${h.join(", ")}" coordinates not found`),o(m)}),[r,o,e,t]);return S.useEffect(()=>{e&&(i.current=e,e.some(l=>!!l.coordinates)?o(e):a())},[e,r,a,o]),n};function b3(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 w3(e,t=4,r=24){let n=0;const{min:o,max:i}=b3(e.map(({value:s})=>s)),a=r-t;return n=i-o,e.map(s=>n===0?t:(s.value-o)/n*a+t)}const x3=()=>{const{app:e}=p.useSisenseContext(),[t,r]=S.useState(null),n=S.useCallback(()=>Mt(exports,null,function*(){if(!e)return;const o=yield e.httpClient.get("api/v1/settings/system");o&&r(o.geo)}),[r,e]);return S.useEffect(()=>{n()},[e,n]),t},C3="#00cee6",E3=p.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>N(w({},e),{color:t})});function T3(e,t){return t?E3(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>C3)}function J0(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function eg(e){const{color:t,size:r,fill:n,blur:o}=e,{isFilled:i}=J0(n),l=o?{filled:.1,"filled-light":.1,hollow:.2,"hollow-bold":.25}[n]:{filled:.5,"filled-light":.2,hollow:.35,"hollow-bold":.9}[n];return{radius:r,fillOpacity:l,opacity:l,fillColor:i?t:"transparent",color:i?"transparent":t,stroke:!i,weight:i?0:2,customStyle:e}}function S3({coordinates:e,style:t}){const r=new p.Leaflet.CircleMarker({lat:e.lat,lng:e.lng},eg(t));return r.on("mouseover",R3),r.on("mouseout",_3),r}function R3(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:o}=J0(r.fill);return t.setStyle(n?{stroke:!0,weight:2,opacity:o?.5:.7,fillOpacity:o?.5:.7}:{weight:3,opacity:o?.6:1}),t}function _3(e){const t=e.target,r=t.options.customStyle;t.setStyle(eg(r))}function M3(e){e.forEach(t=>t.remove())}function O3(e,t){const r=`
179
- © <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
180
- © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
181
- <strong>
182
- <a href='https://www.mapbox.com/map-feedback/' target='_blank' aria-label='Improve this map (opens in a new tab)'>
183
- Improve this map
184
- </a>
185
- </strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",o=p.Leaflet.control.attribution();return t.indexOf("mapbox")>-1?o.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&o.addAttribution(n).addTo(e),o}var k3="Expected a function";function A3(e,t,r){if(typeof e!="function")throw new TypeError(k3);return setTimeout(function(){e.apply(void 0,r)},t)}var I3=p.baseRest(function(e,t,r){return A3(e,p.toNumber(t)||0,r)}),js=function(e){return e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e}({});const cf="N/A",Bs=10,P3=`
186
- <svg
187
- xmlns="http://www.w3.org/2000/svg"
188
- width="24"
189
- height="24"
190
- viewBox="0 0 24 24"
191
- fill="green"
192
- class="csdk-animate-spin"
193
- >
194
- <path
195
- fillRule="evenodd"
196
- clipRule="evenodd"
197
- 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"
198
- fill="transparent"
199
- fillOpacity="0.3"
200
- />
201
- <path
202
- fillRule="evenodd"
203
- clipRule="evenodd"
204
- 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"
205
- fill="#22C3C3"
206
- />
207
- </svg>
208
- `,rr=e=>`<span class="csdk-scattermap-tooltip-label">${e}</span>`,D3=e=>{const t=`
209
- <div>
210
- <div>${rr("...")}</div>
211
- <div>${rr(`Showing first ${Bs} results`)}</div>
212
- </div>
213
- `;return`
214
- <div>
215
- ${e.slice(0,Bs).map(r=>`<div>${rr(r)}</div>`).join("")}
216
- ${e.length>Bs?t:""}
217
- </div>
218
- `},Hs=e=>`
219
- <span class="csdk-scattermap-tooltip-category">
220
- ${rr(e)}
221
- </span>
222
- `,$3=()=>rr(P3),bi=(e,t,r=1)=>{const n=p.formatTooltipValue(t.size,e.value,`${e.value}`),o=p.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),i=t.details&&p.formatTooltipValue(t.details,e.details,`${e.details}`);return`
223
- <div class="csdk-scattermap-tooltip-container">
224
- <div class="csdk-scattermap-tooltip-content">
225
- <div>${rr(e.name)}</div>
226
- <div class="csdk-scattermap-tooltip-row">
227
- ${t.size?Hs(p.getDataOptionTitle(t.size)):""}
228
- ${t.size?rr(n):""}
229
- </div>
230
- <div class="csdk-scattermap-tooltip-row">
231
- ${t.colorBy?Hs(p.getDataOptionTitle(t.colorBy)):""}
232
- ${t.colorBy?rr(o||cf):""}
233
- </div>
234
- <div class="csdk-scattermap-tooltip-row">
235
- ${(r===2||r===0)&&t.details?Hs(p.getDataOptionTitle(t.details)):""}
236
- ${r===2?$3():""}
237
- ${r===0&&t.details&&p.isMeasureColumn(t.details)?rr(i||cf):""}
238
- </div>
239
- <div>
240
- ${r===0&&t.details&&!p.isMeasureColumn(t.details)?D3(e.details):""}
241
- </div>
242
- </div>
243
- </div>
244
- `},N3=600,L3=11,F3=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=p.useSisenseContext(),o=S.useCallback(a=>Mt(exports,null,function*(){if(!n||!e.details||p.isMeasureColumn(e.details))return[];const s=e.locations.map((d,f)=>{const h=p.translateColumnToAttribute(d),m=f3(a)[f];return p.members(h,[m])}),l={dataSource:t,dimensions:[p.translateColumnToAttribute(e.details)],filters:It(r,s),count:L3};return(yield p.executeQuery(l,n)).rows.map(([d])=>d.text)}),[n,e,t,r]);return S.useCallback(a=>{if(!e.details||e.details&&!p.isMeasureColumn(e.details)&&!t)return{content:bi(a,e)};if(p.isMeasureColumn(e.details))return{content:bi(a,e,js.YES)};const s=new Promise(c=>I3(c,N3)),l=Promise.all([o(a.name),s]).then(([c])=>bi(N(w({},a),{details:c}),e,js.YES));return{content:bi(a,e,js.LOADING),postponedContent:l}},[e,t,o])},j3=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:o,onDataPointClick:i})=>{const{locations:a}=e,s=x3(),{themeSettings:l}=p.useThemeContext(),c=y3(a,t.locationLevel),{filters:d}=p.getFilterListAndRelationsJaql(n),f=F3({dataOptions:t,dataSource:r,filters:d}),h=S.useRef(null),m=S.useRef(null),v=S.useMemo(()=>w3(c,t.size?o.markers.size.minSize:o.markers.size.defaultSize,t.size?o.markers.size.maxSize:o.markers.size.defaultSize),[c,t,o]),g=S.useMemo(()=>{var x;return T3(c,(x=t.colorBy)==null?void 0:x.color)},[c,t]),y=S.useRef([]),b=S.useRef(p.Leaflet.layerGroup([])),T=S.useRef(null),E=S.useRef(null);return S.useEffect(()=>{h.current&&!m.current&&(m.current=p.Leaflet.map(h.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),b.current.addTo(m.current),m.current.fitWorld())},[]),S.useEffect(()=>{y.current&&(M3(y.current),y.current=[]),c&&(c.forEach((x,C)=>{if(!x.coordinates)return;const _=S3({coordinates:x.coordinates,style:{color:g[C],size:v[C],fill:o.markers.fill,blur:!!x.blur}});y.current.push(_),_.addTo(b.current),i&&_.on("click",k=>{i(h3(x,t),k.originalEvent)}),_.bindTooltip(()=>{const{content:k,postponedContent:O}=f(x);return O==null||O.then(D=>_.setTooltipContent(D)),k})}),p.fitMapToBounds(m.current,y.current,p.prepareFitBoundsAnimationOptions(l)))},[c,g,v,o,l,t,f,i]),S.useEffect(()=>{var x;s&&(T.current&&T.current.remove(),T.current=p.Leaflet.tileLayer(s.maps_api_provider,{zoomOffset:-1,tileSize:512}),m.current&&(T.current.addTo(m.current),(x=E.current)==null||x.remove(),E.current=O3(m.current,s.maps_api_provider)))},[s]),p.jsx("div",{className:"csdk-map-container",ref:h,style:{width:"100%",height:"100%"}})},tg=e=>e.type==="scattermap"&&"locations"in e,B3=e=>"locations"in e,H3=e=>"markers"in e,z3=e=>!!e.chartData&&tg(e.chartData)&&B3(e.dataOptions)&&H3(e.designOptions),W3="_wrapper_g0ngm_1",V3="_title_g0ngm_7",U3="_image_g0ngm_18",zs={wrapper:W3,title:V3,image:U3},G3="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",Y3="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",q3="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",X3="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",K3="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",Q3="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",Z3="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",J3="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",eE="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",tE="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",rE="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",uf="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",nE="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",oE="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",df={area:G3,line:Y3,bar:q3,column:X3,polar:K3,funnel:Q3,pie:Z3,scatter:J3,indicator:eE,table:tE,treemap:rE,areamap:uf,scattermap:uf,boxplot:nE,sunburst:oE};function iE(e){var r;return(r=df[e])!=null?r:df["bar"]}const tu=({iconType:e})=>{var s;const{themeSettings:t}=p.useThemeContext(),r=S.useRef(null),[n,o]=S.useState({width:null,height:null});S.useEffect(()=>{r.current&&o({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const i=iE(e),{t:a}=p.useTranslation();return p.jsxs("div",{ref:r,className:zs.wrapper,children:[p.jsx("div",{className:zs.title,style:{fontFamily:(s=t.typography)==null?void 0:s.fontFamily,fontSize:aE(n.width,n.height)},children:a("chartNoData")}),i?p.jsx("img",{className:zs.image,src:i}):null]})};function aE(e,t){return!e||!t?"18px":e<300?`${Math.max(Math.sqrt(e*e+t*t)*.045,18)}px`:`${Math.min(Math.max(t*.09,18),60)}px`}const sE=(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}),Ha=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:o,onSizeChange:i,debounceMs:a=300})=>{const s=S.useRef(null),[l,c]=S.useState(),d=S.useRef(null),f=S.useCallback(()=>{var _,k;const C={width:(_=s.current)==null?void 0:_.offsetWidth,height:(k=s.current)==null?void 0:k.offsetHeight};c(O=>{const D=(O==null?void 0:O.width)===0&&C.width===t.width,F=(O==null?void 0:O.height)===0&&C.height===t.height,H={width:D?O.width:C.width,height:F?O.height:C.height};return p.isEqual(O,H)?O:H})},[t]),h=S.useCallback(()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{f()},a)},[f,a]);S.useLayoutEffect(()=>{f()},[f]),S.useEffect(()=>{const C=s.current;if(!C)return;const _=new ResizeObserver(()=>{h()});return _.observe(C),()=>{_.disconnect(),d.current&&clearTimeout(d.current)}},[h]);const m=S.useMemo(()=>sE(l,r,t),[l,t,r]),v=!!l;S.useEffect(()=>{v&&i&&i(m)},[m,v,i]);const g={width:r!=null&&r.width&&!(o!=null&&o.width)?`${r.width}px`:"100%",height:r!=null&&r.height&&!(o!=null&&o.height)?`${r.height}px`:"100%"},y=(l==null?void 0:l.width)||(l==null?void 0:l.width)===void 0,b=(l==null?void 0:l.height)||(l==null?void 0:l.width)===void 0,T={width:y||o!=null&&o.width?"100%":`${m.width}px`,height:b||o!=null&&o.height?"100%":`${m.height}px`,position:"relative"},E=o!=null&&o.width||o!=null&&o.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},x=n?`${m==null?void 0:m.width}${m==null?void 0:m.height}`:"";return p.jsx("div",{style:g,ref:s,children:p.jsx("div",{style:T,children:p.jsx("div",{style:E,children:m&&(typeof e=="function"?e(m):e)})},x)})},rg=32,ng={width:400,height:500},za=e=>p.isTable(e)?{width:400,height:500}:p.isIndicator(e)?{width:200,height:200}:{width:400,height:400},og=(e,{hasHeader:t}={})=>{const r=e==="pivot"?ng:za(e);return t&&(r.height=r.height+rg),r},so=({isVisible:e,children:t})=>{const{themeSettings:r}=p.useThemeContext();return p.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[e&&p.jsx("div",{className:"csdk-absolute csdk-h-full csdk-w-full csdk-z-[401] csdk-opacity-80","aria-label":"csdk-loading-overlay",children:p.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:p.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:p.jsx("div",{style:{backgroundColor:r.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:p.jsx(Dc,{color:r==null?void 0:r.chart.textColor})})})})}),t]})};function Al(e,t,r=p.getBaseDateFnsLocale(),n=p.defaultDateConfig){const o=new Map;return[...t.breakBy?t.breakBy:[],...t.x?Array.isArray(t.x)?t.x:[t.x]:[],...t.columns?t.columns:[]].forEach(function(a){if(p.isMeasureColumn(a)||!a.dateFormat||!(e!=null&&e.columns))return;const s=e.columns.findIndex(function(c){return c.name===a.column.name&&p.isDatetime(a.column.type)&&p.isDatetime(c.type)});s!==-1&&o.set(s,a.dateFormat)}),o.size===0||(e.rows=e.rows.map(function(a){return a.map(function(l,c){const d=o.get(c);if(!d)return l;let f,h;if(p.isCell(l))f=w({},l);else{const v=p.createCompareValue(`${l}`,"datetime");h=new Date(v.value),f={data:h.toISOString(),text:`${l}`}}if(!f.data)return l;let m=f.text;try{m=p.applyDateFormat(p.parseISOWithTimezoneCheck(f.data),d,r,n)}catch(v){console.error(v)}return f.text=m,f})})),e}function lE(e,t){return uE(e,t)}const cE={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function uE(e,t){const r=cE[e];t.category.length>r.category&&console.warn(`Maximum 'category' length is limited to ${r.category} for '${e}' chart. Taken first ${r.category} categories`);const n=t.category.slice(0,r.category);let o=t.value;return(e!=="pie"||t.category.length>0)&&(t.value.length>r.value&&console.warn(`Maximum 'value' length is limited to ${r.value} for '${e}' chart. Taken first ${r.value} values`),o=t.value.slice(0,r.value)),N(w({},t),{category:n,value:o})}const ru=e=>{const t={},r=n=>`$measure${n}_`;return e.forEach((n,o)=>{const i=n.name,s=`${r(o)}${i}`;n.name=s,t[s]=i}),t},dE=(e,t)=>{if(t==="funnel"){const r=p.merge(e);if(r.breakBy.length>0&&r.breakBy[0].sortType===void 0&&r.y.length>0&&r.y[0].sortType===void 0)return r.y[0].sortType="sortDesc",r}return e},ig=(e,t,r,n,o,i)=>{if(!e)return!0;if(t.length+r.length===0)throw new p.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(a=>{if(e.columns.findIndex(l=>l.name===a.name)===-1)throw new p.TranslatableError("errors.dataOptions.attributeNotFound",{attributeName:a.name})}),r.forEach(a=>{if(e.columns.findIndex(l=>l.name===a.name||l.name===n[a.name])===-1)throw new p.TranslatableError("errors.dataOptions.measureNotFound",{measureName:n[a.name]})}),o&&o.forEach(a=>{if(e.columns.findIndex(l=>l.name===a.attribute.name)===-1)throw new p.TranslatableError("errors.dataOptions.filterAttributeNotFound",{attributeName:a.attribute.name})}),i&&i.forEach(a=>{if(e.columns.findIndex(l=>l.name===a.attribute.name)===-1)throw new p.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:a.attribute.name})}),!0};function fE(e,t){switch(e){case"pie":case"funnel":case"treemap":return lE(e,t);default:return t}}const nu=()=>{const[e,t]=S.useState();if(e)throw e;return t},pE=e=>e==="funnel"?e:p.deriveChartFamily(e),hE=({dataSet:e,chartDataOptions:t,chartType:r,attributes:n,measures:o,dataColumnNamesMapping:i,filters:a,highlights:s,refreshCounter:l,setIsLoading:c,enabled:d=!0,loadData:f})=>{const h=nu(),m=S.useMemo(()=>pE(r),[r]),v=S.useMemo(()=>[void 0,t],[t]),[g,y]=S.useState({}),{app:b}=p.useSisenseContext();return S.useEffect(()=>{if(!d)return;let T=!1;const{filters:E,relations:x}=p.getFilterListAndRelationsJaql(a);if(br(e)){if(!b)return;const C=f({app:b,chartDataOptionsInternal:t,queryDescription:{dataSource:e,dimensions:n,measures:o,filters:E,filterRelations:x,highlights:s,count:b.settings.queryLimit}}),_=b==null?void 0:b.settings.loadingIndicatorConfig,k=setTimeout(()=>{_!=null&&_.enabled&&(c==null||c(!0))},_==null?void 0:_.delay);C.then(O=>{const D=Al(O,t,b==null?void 0:b.settings.locale,b==null?void 0:b.settings.dateConfig);T||y({[m]:[D,t]})}).catch(O=>{h(O)}).finally(()=>{clearTimeout(k),_!=null&&_.enabled&&(c==null||c(!1))})}else{ig(e,n,o,i,E,s);const C=Al(e,t,b==null?void 0:b.settings.locale,b==null?void 0:b.settings.dateConfig);y({[m]:[C,t]})}return()=>{T=!0}},[r,t,e,a,s,b,l,d]),g[m]||v},gE=(e,t)=>{switch(t){case"iqr":return B1(e);case"extremums":return H1(e);case"standardDeviation":return z1(e)}},mE=(e,t)=>{switch(t){case"iqr":return W1(e);case"standardDeviation":return V1(e)}},vE=(e,t,r)=>{const{column:n,style:o}=p.splitColumn(e);let i=gE(n,t),a;return o&&(i=i.map(s=>w({column:s},o))),r&&(a=mE(n,t),a&&o&&(a=w({column:a},o))),{values:i,outliers:a}},yE=e=>e.value.length>1,ag=e=>{var f;const{category:t}=e;let r,n,o;if(yE(e))r=e.value,o=e.valueTitle,n=(f=e.outliers)==null?void 0:f[0];else{const{outliersEnabled:h,boxType:m}=e,v=p.normalizeColumn(e.value[0]),{values:g,outliers:y}=vE(v,m,!!h);r=g,n=y,o=p.getDataOptionTitle(v)}const[i,a,s,l,c,d]=r;return{category:t[0]&&p.normalizeColumn(t[0]),boxMin:i&&p.normalizeMeasureColumn(i),boxMedian:a&&p.normalizeMeasureColumn(a),boxMax:s&&p.normalizeMeasureColumn(s),whiskerMin:l&&p.normalizeMeasureColumn(l),whiskerMax:c&&p.normalizeMeasureColumn(c),outliersCount:d&&p.normalizeMeasureColumn(d),outliers:n&&p.normalizeColumn(n),valueTitle:o}},ff={city:4,state:3,country:2,auto:1};function bE(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>ff[n]>ff[r]?n:r,"auto")}function wE(e){const{geo:t,size:r,colorBy:n,details:o}=e;return{locations:t.map(p.normalizeColumn),size:r&&p.normalizeMeasureColumn(r),colorBy:n&&p.normalizeMeasureColumn(n),details:o&&p.normalizeAnyColumn(o),locationLevel:bE(t)}}function xE(e){var i;const t=e.value.map(a=>{if(a!=null&&a.chartType)return[p.normalizeMeasureColumn(a)];const f=a,{lowerBound:s,upperBound:l,title:c}=f,d=te(f,["lowerBound","upperBound","title"]);return[p.normalizeMeasureColumn(w({column:p.safeMerge(s,{title:c})},d)),p.normalizeMeasureColumn(w({column:p.safeMerge(l,{title:c})},d))]}),r=t.flat(),n=t.filter(a=>a.length===2),o=t.filter(a=>a.length===1).flat();return{x:e.category.map(p.normalizeColumn),breakBy:((i=e.breakBy)==null?void 0:i.map(p.normalizeColumn))||[],y:r,rangeValues:n,seriesValues:o,seriesToColorMap:e.seriesToColorMap}}const CE=(e,t)=>{if(p.emptyTable(t))return{rows:[],columns:[]};const r=p.getColumnsByName(t,e);return p.selectColumns(t,r)},Il=({column:e,sortType:t})=>{switch("getSort"in e?e.getSort():t){case"sortAsc":case p.Sort.Ascending:return 1;case"sortDesc":case p.Sort.Descending:return-1;default:return 0}},EE=(e,t)=>{const r=e.columns.find(n=>Il(n)!==0);if(r){const n=p.getColumnByName(t,r.column.name);n&&(n.direction=Il(r))}return t},sg=e=>{if(!("sortType"in e))return e;const t=e.sortType,r=p.convertSortDirectionToSort(t);return N(w({},e),{sortType:t,column:TE(e.column,r)})};function TE(e,t){return RE(e)?SE(e,t):e}function SE(e,t){const r=e.sort(t);return p.isMeasureColumn(r)&&p.isMeasureColumn(e)&&(r.title=e.title),r}function RE(e){return"sort"in e&&typeof e.sort=="function"}const _E=(e,t)=>({columns:e.columns.map(r=>{const n=r.column.name===t.name,o=Il(r),i=n?o===1?"sortDesc":"sortAsc":"sortNone";return r.sortType=i,sg(r)})}),ME=(e,t)=>{const r=CE(e.columns.map(({column:{name:n}})=>n),t);return EE(e,r)};function OE(e,t){if(p.isCartesian(e))return p.translateCartesianChartDataOptions(t);if(p.isCategorical(e))return kE(t);if(p.isIndicator(e))return AE(t);if(p.isScatter(e))return IE(t);if(p.isBoxplot(e))return ag(t);if(p.isScattermap(e))return wE(t);if(p.isRange(e))return xE(t);throw new p.TranslatableError("errors.unexpectedChartType",{chartType:e})}const kE=e=>({y:e.value.map(p.normalizeMeasureColumn),breakBy:e.category.map(p.normalizeColumn),seriesToColorMap:e.seriesToColorMap}),AE=e=>{var t,r,n,o,i,a;return{value:(t=e.value)==null?void 0:t.map(p.normalizeMeasureColumn),secondary:(r=e.secondary)==null?void 0:r.map(p.normalizeMeasureColumn),min:(o=(n=e.min)==null?void 0:n.map(p.normalizeMeasureColumn))==null?void 0:o.map(pf("min")),max:(a=(i=e.max)==null?void 0:i.map(p.normalizeMeasureColumn))==null?void 0:a.map(pf("max"))}},pf=e=>t=>{const{column:r}=t,n="aggregation"in r&&r.aggregation||e;return N(w({},t),{column:p.safeMerge(r,{aggregation:n})})},IE=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:o,size:i,seriesToColorMap:a}=e;return{x:t&&p.normalizeAnyColumn(t),y:r&&p.normalizeAnyColumn(r),breakByPoint:n&&p.normalizeColumn(n),breakByColor:o&&p.normalizeAnyColumn(o),size:i&&p.normalizeMeasureColumn(i),seriesToColorMap:a}};function PE(e,t){let r=[];return p.isScatter(t)?r=["x","y","breakByPoint","breakByColor"]:p.isCartesian(t)||p.isCategorical(t)||p.isRange(t)?r=["x","breakBy"]:p.isBoxplot(t)?r=["category","outliers"]:p.isScattermap(t)&&(r=["locations"]),r.flatMap(o=>{var i;return(i=e[o])!=null?i:[]}).filter(o=>!p.isMeasureColumn(o)).map(({column:o})=>o)}function DE(e,t){let r=[];return p.isIndicator(t)?r=["value","secondary","min","max"]:p.isScatter(t)?r=["x","y","breakByColor","size"]:p.isCartesian(t)||p.isCategorical(t)||p.isRange(t)?r=["y"]:p.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"]:p.isScattermap(t)&&(r=["size","colorBy","details"]),r.flatMap(o=>{var i;return(i=e[o])!=null?i:[]}).filter(p.isMeasureColumn).map(({column:o})=>o)}function lg(e){return{columns:e.columns.map(p.normalizeAnyColumn).map(sg)}}function $E(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(p.normalizeColumn),columns:(r=e.columns)==null?void 0:r.map(p.normalizeColumn),values:(n=e.values)==null?void 0:n.map(p.normalizeMeasureColumn),grandTotals:e.grandTotals}}function cg(e,t){{const r=fE(t,e),n=OE(t,r),o=dE(n,t),i=PE(o,t),a=DE(o,t);return{dataOptions:o,attributes:i,measures:a}}}const NE=(e,t)=>S.useMemo(()=>{if(p.isRestructuredChartType(t)){const r=p.getChartBuilder(t);if(!r.dataOptions.isCorrectDataOptions(e))throw new Error("Incorrect data options");return LE(r,e)}else return FE(e,t)},[e,t]);function LE(e,t){const r=e.dataOptions.translateDataOptionsToInternal(t),n=e.dataOptions.getAttributes(r),o=e.dataOptions.getMeasures(r),i=ru(o);return{dataOptions:r,attributes:n,measures:o,dataColumnNamesMapping:i}}function FE(e,t){const{dataOptions:r,attributes:n,measures:o}=cg(e,t),i=ru(o);return{dataOptions:r,attributes:n,measures:o,dataColumnNamesMapping:i}}function jE(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:o,designOptions:i,onBeforeRender:a,onDataPointClick:s,onDataPointContextMenu:l,onDataPointsSelected:c}=e;return!o||!i?null:{dataSource:br(t)?t:null,chartType:r,chartData:n,dataOptions:o,designOptions:i,onBeforeRender:a,onDataPointClick:s,onDataPointContextMenu:l,onDataPointsSelected:c}}const BE=(e,t)=>{const r=e.category&&p.getColumnByName(t,e.category.column.name);r&&(r.direction=p.sortDirection(e.category.sortType));const n=p.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?p.rownumColumnName:void 0),o=p.getIndexedRows(t.rows,r?[r]:[]),i=p.getColumnByName(t,e.boxMin.column.name),a=p.getColumnByName(t,e.boxMedian.column.name),s=p.getColumnByName(t,e.boxMax.column.name),l=p.getColumnByName(t,e.whiskerMin.column.name),c=p.getColumnByName(t,e.whiskerMax.column.name),d=e.outliers&&p.getColumnByName(t,e.outliers.column.name),f=[],h=[];n.forEach((v,g)=>{const y=o[v.key],b=y?y[0]:[],T=r&&!!p.isBlurred(b,r);f.push({q1:i?p.getValue(b,i):0,median:a?p.getValue(b,a):0,q3:s?p.getValue(b,s):0,low:l?p.getValue(b,l):0,high:c?p.getValue(b,c):0,blur:T});const E=d?b[d.index].rawValue.split(",").map(x=>parseFloat(x)):[];h.push(...E.map(x=>({x:g,y:x,blur:T})))});const m=[{name:e.valueTitle,title:e.valueTitle,data:f}];return h.length>0&&m.push({name:e.valueTitle,title:e.valueTitle,data:h}),{type:"boxplot",xValues:n,series:m}};function HE(e){return e.type==="boxplot"}const zE=2e4;function Xn(e,t){if(e&&t){const r=t.column.name,n=e.findIndex(o=>o.name===r);return n===-1?null:n}return null}const ug=(e,t,r)=>{if(!e)return{columns:[],rows:[]};let n=0,o=4,i=5,a=0,s=1;return r&&(n=Xn(e.columns,r.category),o=Xn(e.columns,r.whiskerMin),i=Xn(e.columns,r.whiskerMax),a=Xn(t.columns,r.category),s=Xn(t.columns,r.outliers)),p.isNull(s)?e:{columns:[...e.columns,t.columns[s]],rows:e.rows.map(c=>{const d=p.isNull(n)?null:c[n].data,f=c[i].data,h=c[o].data,m=t.rows.filter(v=>{const g=p.isNull(a)?null:v[a].data,y=v[s].data;return g===d&&(y<h||y>f)}).map(v=>v[s].data).join(",");return[...c,{data:m}]})}};function WE(e,t,r){const n=r&&ag(r);return ug(e,t,n)}const VE=(c,d)=>Mt(exports,[c,d],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:o,filters:i,filterRelations:a,highlights:s},l){var g;const f={dataSource:r,dimensions:t.category?[n[0]]:[],measures:o,filters:i,filterRelations:a,highlights:s},h=yield l(f,e);let m=h;const v=t.outliersCount?UE(h,t.outliersCount.column.name):0;if(t.outliers&&v<zE){const y={dataSource:r,dimensions:n,measures:[],filters:i,filterRelations:a,highlights:s};try{const b=yield l(y,e);m=ug(h,b,t)}catch(b){if((g=b==null?void 0:b.message)!=null&&g.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw b}}return m}),UE=(e,t)=>{if(!(e!=null&&e.columns))return 0;const r=e.columns.findIndex(({name:o})=>o===t);let n=0;return e.rows.forEach(o=>{n+=parseInt(o[r].data)}),n};function GE(e){return p.isRestructuredChartType(e)?p.getChartBuilder(e).data.loadData:e==="boxplot"?qE:YE}const YE=n=>Mt(exports,[n],function*({app:e,queryDescription:t,executionConfig:r}){var a,s;return(((s=(a=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:a.enabled)!=null?s:!1)?p.executeQueryWithCache:p.executeQuery)(t,e,r)}),qE=n=>Mt(exports,[n],function*({app:e,chartDataOptionsInternal:t,queryDescription:r}){var a,s,l,c;const i=((s=(a=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:a.enabled)!=null?s:!1)?p.executeQueryWithCache:p.executeQuery;return VE({app:e,chartDataOptions:t,dataSource:r.dataSource,attributes:(l=r.dimensions)!=null?l:[],measures:(c=r.measures)!=null?c:[],filters:r.filters,highlights:r.highlights,filterRelations:r.filterRelations},i)}),XE=(e,t)=>{const r=N(w({},e),{x:e.breakBy,breakBy:[]});let n=p.cartesianData(r,t);if(e.breakBy.some(({column:{type:i},numberFormatConfig:a})=>p.isNumber$1(i)&&a)){const i=n.xValues.map(a=>{const s=[];return e.breakBy.forEach(({column:{type:l},numberFormatConfig:c},d)=>{const f=p.getCompleteNumberFormatConfig(c),h=a.xValues[d];p.isNumber$1(l)?s.push(p.applyFormatPlainText(f,parseFloat(h))):s.push(a.xValues[d])}),N(w({},a),{xValues:s})});n=N(w({},n),{xValues:i})}return N(w({},n),{type:"categorical"})},wi=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=p.getColumnByName(e,t[0].column.name);return r?[p.getValue(e.rows[0],r),t[0].column.name]:[void 0,void 0]},KE=(e,t)=>{var s;const r={type:"indicator"};if(!((s=e.value)!=null&&s.length)||t.rows.length===0)return r;const[n]=wi(t,e.value);if(n===void 0)return r;const[o]=wi(t,e.secondary),[i]=wi(t,e.min),[a]=wi(t,e.max);return{type:"indicator",value:n,secondary:o,min:i,max:a}},QE="N\\A",ZE=1,JE=(e,t)=>{const r=eT(e),n=e.locations&&p.getColumnsByName(t,e.locations.map(({column:{name:l}})=>l)),o=e.size&&p.getColumnByName(t,e.size.column.name),i=e.colorBy&&p.getColumnByName(t,e.colorBy.column.name),a=e.details&&p.getColumnByName(t,e.details.column.name);return{type:"scattermap",locations:t.rows.filter(l=>n.some(c=>p.getValue(l,c)!==QE)).map(l=>{const c=n.map(m=>p.getValue(l,m)),d=d3(c);let f;r&&(f={lat:p.getValue(l,n[0]),lng:p.getValue(l,n[1])});const h=n[0]&&!!p.isBlurred(l,n[0]);return w(N(w(w({name:d,rawName:c,value:o?p.getValue(l,o):ZE},i&&{colorValue:p.getValue(l,i)}),a&&{details:p.getValue(l,a)}),{blur:h}),f?{coordinates:f}:null)})}};function eT(e){return e.locations.length===2&&e.locations.filter(({column:{type:t}})=>p.isNumber$1(t)).length===2}const tT=(e,t,r)=>{if(p.isCartesian(e))return p.isForecastChart(t)?p.advancedAnalyticsData(t,r):p.cartesianData(t,r);if(p.isCategorical(e))return XE(t,r);if(p.isScatter(e))return p.scatterData(t,r);if(p.isScattermap(e))return JE(t,r);if(p.isIndicator(e))return KE(t,r);if(p.isBoxplot(e))return BE(t,r);if(p.isRange(e))return p.rangeData(t,r);throw new p.TranslatableError("errors.unexpectedChartType",{chartType:e})};var rT=1/0,nT=p.Set&&1/p.setToArray(new p.Set([,-0]))[1]==rT?function(e){return new p.Set(e)}:p.noop,oT=200;function ou(e,t,r){var n=-1,o=p.arrayIncludes,i=e.length,a=!0,s=[],l=s;if(i>=oT){var c=t?null:nT(e);if(c)return p.setToArray(c);a=!1,o=p.cacheHas,l=new p.SetCache}else l=t?[]:s;e:for(;++n<i;){var d=e[n],f=t?t(d):d;if(d=d!==0?d:0,a&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),s.push(d)}else o(l,f,r)||(l!==s&&l.push(f),s.push(d))}return s}var iT=p.baseRest(function(e){return ou(p.baseFlatten(e,1,p.isArrayLikeObject,!0))});const dg=(e,t,r,n={})=>{if(p.emptyTable(e))return{rows:[],columns:[]};const o=iT(p.getColumnsByName(e,t.map(d=>d.name))),i=e,s=[...r.map(d=>{var f,h;return{column:(f=n[d.name])!=null?f:d.name,title:d.name,agg:(h=d.aggregation)!=null?h:"sum"}}),{column:p.rownumColumnName,title:p.rownumColumnName,agg:"min"}],l=p.groupBy(i,o,s),c=p.getColumnByName(l,p.rownumColumnName);if(!c)throw new p.TranslatableError("errors.noRowNumColumn");return p.orderBy(l,[c])};function aT({dataSet:e,data:t,chartDataOptions:r,chartType:n,attributes:o,measures:i,dataColumnNamesMapping:a,onDataReady:s}){return S.useMemo(()=>{if(!t||!r)return null;let l;if(s&&(l=s(t),!pg(l)))throw new p.TranslatableError("errors.incorrectOnDataReadyHandler");const c=l||t;let d=p.createDataTableFromData(c);return br(e)||(d=dg(d,o,i,a)),sT(n,r,d)},[t,n])}function sT(e,t,r){if(p.isRestructuredChartType(e)){const n=p.getChartBuilder(e);if(n.dataOptions.isCorrectDataOptionsInternal(t))return n.data.getChartData(t,r);throw new Error("Incorrect internal data options for restructured chart")}return tT(e,t,r)}const lT=e=>e,cT=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:o,onDataPointContextMenu:i,onDataPointsSelected:a,onBeforeRender:s=lT,size:l})=>{const{app:c}=p.useSisenseContext(),{t:d}=p.useTranslation(),f=[],h=S.useCallback((y,b)=>p.applyDateFormat(y,b,c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig),[]),{themeSettings:m}=p.useThemeContext(),v=S.useMemo(()=>{var _;const{options:y,alerts:b}=p.highchartsOptionsService(t,e,n,r,d,m,h);f.push(...b);const T=((_=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:_.enabled)||!1,E=p.applyCommonHighchartsOptions(y,m,T),x=p.applyEventHandlersToChart(E,r,{onDataPointClick:o,onDataPointContextMenu:i,onDataPointsSelected:a}),C=p.applyThemeToChart(x,m);return s(C)},[e,t,r,n,m,o,i,s,d]),g=S.useMemo(()=>v?N(w({},v),{chart:w(w(w({},v.chart),(l==null?void 0:l.width)&&{width:l.width}),(l==null?void 0:l.height)&&{height:l.height})}):null,[v,l]);return g&&p.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!f.length&&p.jsx(p.AlertBox,{alerts:f}),p.jsx(p.HighchartsReactMemoized,{options:g})]})},uT=[...p.CARTESIAN_CHART_TYPES,...p.CATEGORICAL_CHART_TYPES,...p.SCATTER_CHART_TYPES,...p.BOXPLOT_CHART_TYPES,...p.RANGE_CHART_TYPES],fg=e=>uT.includes(e),dT=e=>!!e.chartType&&fg(e.chartType)&&!!e.chartData,fT=e=>e==="indicator",pT=(e,t)=>e==="scatter"&&"scatterDataTable"in t?t.scatterDataTable.length===0:e==="areamap"&&p.isAreamapData(t)?t.geoData.length===0:e==="scattermap"&&tg(t)?t.locations.length===0:e==="boxplot"&&HE(t)?t.xValues.length===0:"series"in t&&t.series.length===0,$i=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:o,highlights:i,styleOptions:a,refreshCounter:s,onDataPointClick:l,onDataPointContextMenu:c,onDataPointsSelected:d,onBeforeRender:f,onDataReady:h}=e,[m,v]=S.useState(!1),g=za(t),{themeSettings:y}=p.useThemeContext(),{dataOptions:b,attributes:T,measures:E,dataColumnNamesMapping:x}=NE(n,t),C=T.length===0&&E.length===0,_=S.useMemo(()=>GE(t),[t]),[k,O]=hE({dataSet:r,chartDataOptions:b,chartType:t,attributes:T,measures:E,dataColumnNamesMapping:x,filters:o,highlights:i,refreshCounter:s,setIsLoading:v,enabled:!C,loadData:_}),D=S.useMemo(()=>n?p.prepareChartDesignOptions(t,O,a):null,[n,t,O,a]),F=aT({dataSet:r,data:k,chartDataOptions:b,chartType:t,attributes:T,measures:E,dataColumnNamesMapping:x,onDataReady:h}),H=jE({dataSet:r,chartType:t,chartData:F,internalDataOptions:O,designOptions:D,onBeforeRender:f,onDataPointClick:l,onDataPointContextMenu:c,onDataPointsSelected:d,filters:o});return H?p.jsx(Ha,{defaultSize:g,size:{width:a==null?void 0:a.width,height:a==null?void 0:a.height},rerenderOnResize:fT(t),children:R=>{if(!F&&m)return p.jsx(ya,{themeSettings:y});if(F&&pT(t,F)||C)return p.jsx(tu,{iconType:t});if(p.isRestructuredChartType(t)){const A=p.getChartBuilder(t);return A.renderer.isCorrectRendererProps(H)?p.jsx(so,{isVisible:m,children:p.jsx(A.renderer.ChartRendererComponent,N(w({},H),{size:R}))}):null}return t==="scattermap"&&z3(H)?p.jsx(so,{isVisible:m,children:p.jsx(j3,w({},H))}):t==="indicator"&&jC(H)?p.jsx(so,{isVisible:m,children:p.jsx($C,w({},H))}):fg(t)&&dT(H)?p.jsx(so,{isVisible:m,children:p.jsx(cT,N(w({},H),{designOptions:w({},H.designOptions),size:R}))}):null}}):null};function pg(e){return e&&typeof e=="object"&&"columns"in e&&p.isArray(e.columns)&&"rows"in e&&p.isArray(e.rows)}function hT(e){return Oe("MuiPagination",e)}ke("MuiPagination",["root","ul","outlined","text"]);function gT(e={}){const D=e,{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:d=!1,showLastButton:f=!1,siblingCount:h=1}=D,m=te(D,["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"]),[v,g]=Wc({controlled:c,default:o,name:r,state:"page"}),y=(F,H)=>{c||g(H),l&&l(F,H)},b=(F,H)=>{const R=H-F+1;return Array.from({length:R},(A,B)=>F+B)},T=b(1,Math.min(t,n)),E=b(Math.max(n-t+1,t+1),n),x=Math.max(Math.min(v-h,n-t-h*2-1),t+2),C=Math.min(Math.max(v+h,t+h*2+2),n-t-1),_=[...d?["first"]:[],...s?[]:["previous"],...T,...x>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...b(x,C),...C<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...E,...a?[]:["next"],...f?["last"]:[]],k=F=>{switch(F){case"first":return 1;case"previous":return v-1;case"next":return v+1;case"last":return n;default:return null}},O=_.map(F=>typeof F=="number"?{onClick:H=>{y(H,F)},type:"page",page:F,selected:F===v,disabled:i,"aria-current":F===v?"page":void 0}:{onClick:H=>{y(H,k(F))},type:F,page:k(F),selected:!1,disabled:i||!F.includes("ellipsis")&&(F==="next"||F==="last"?v>=n:v<=1)});return w({items:O},m)}function mT(e){return Oe("MuiPaginationItem",e)}const lt=ke("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),vT=Pn(Z.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),yT=Pn(Z.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),bT=Pn(Z.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),wT=Pn(Z.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),hg=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${fe(r.size)}`],r.variant==="text"&&t[`text${fe(r.color)}`],r.variant==="outlined"&&t[`outlined${fe(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},xT=e=>{const{classes:t,color:r,disabled:n,selected:o,size:i,shape:a,type:s,variant:l}=e,c={root:["root",`size${fe(i)}`,l,a,r!=="standard"&&`color${fe(r)}`,r!=="standard"&&`${l}${fe(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Be(c,mT,t)},CT=de("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:hg})(Ye(({theme:e})=>N(w({},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",[`&.${lt.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)}}]}))),ET=de(qr,{name:"MuiPaginationItem",slot:"Root",overridesResolver:hg})(Ye(({theme:e})=>N(w({},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,[`&.${lt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lt.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"}},[`&.${lt.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}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${lt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${lt.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)"}`,[`&.${lt.selected}`]:{[`&.${lt.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${lt.selected}`]:{[`&.${lt.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Er(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${lt.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}},[`&.${lt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${lt.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Er(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${lt.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Ne(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Ne(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}))`:Ne(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),TT=de("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(Ye(({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)}}]}))),gg=$.forwardRef(function(t,r){var z,Y,P,V;const n=Fe({props:t,name:"MuiPaginationItem"}),I=n,{className:o,color:i="standard",component:a,components:s={},disabled:l=!1,page:c,selected:d=!1,shape:f="circular",size:h="medium",slots:m={},slotProps:v={},type:g="page",variant:y="text"}=I,b=te(I,["className","color","component","components","disabled","page","selected","shape","size","slots","slotProps","type","variant"]),T=N(w({},n),{color:i,disabled:l,selected:d,shape:f,size:h,type:g,variant:y}),E=wa(),x=xT(T),C={slots:{previous:(z=m.previous)!=null?z:s.previous,next:(Y=m.next)!=null?Y:s.next,first:(P=m.first)!=null?P:s.first,last:(V=m.last)!=null?V:s.last},slotProps:v},[_,k]=tt("previous",{elementType:bT,externalForwardedProps:C,ownerState:T}),[O,D]=tt("next",{elementType:wT,externalForwardedProps:C,ownerState:T}),[F,H]=tt("first",{elementType:vT,externalForwardedProps:C,ownerState:T}),[R,A]=tt("last",{elementType:yT,externalForwardedProps:C,ownerState:T}),B=E?{previous:"next",next:"previous",first:"last",last:"first"}[g]:g,j={previous:_,next:O,first:F,last:R}[B],L={previous:k,next:D,first:H,last:A}[B];return g==="start-ellipsis"||g==="end-ellipsis"?Z.jsx(CT,{ref:r,ownerState:T,className:he(x.root,o),children:"…"}):Z.jsxs(ET,N(w({ref:r,ownerState:T,component:a,disabled:l,className:he(x.root,o)},b),{children:[g==="page"&&c,j?Z.jsx(TT,N(w({},L),{className:x.icon,as:j})):null]}))});process.env.NODE_ENV!=="production"&&(gg.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["primary","secondary","standard"]),u.string]),component:u.elementType,components:u.shape({first:u.elementType,last:u.elementType,next:u.elementType,previous:u.elementType}),disabled:u.bool,page:u.node,selected:u.bool,shape:u.oneOf(["circular","rounded"]),size:u.oneOfType([u.oneOf(["small","medium","large"]),u.string]),slotProps:u.shape({first:u.oneOfType([u.func,u.object]),last:u.oneOfType([u.func,u.object]),next:u.oneOfType([u.func,u.object]),previous:u.oneOfType([u.func,u.object])}),slots:u.shape({first:u.elementType,last:u.elementType,next:u.elementType,previous:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),type:u.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:u.oneOfType([u.oneOf(["outlined","text"]),u.string])});const ST=e=>{const{classes:t,variant:r}=e;return Be({root:["root",r],ul:["ul"]},hT,t)},RT=de("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),_T=de("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function MT(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const mg=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiPagination"}),F=n,{boundaryCount:o=1,className:i,color:a="standard",count:s=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:d=MT,hideNextButton:f=!1,hidePrevButton:h=!1,onChange:m,page:v,renderItem:g=H=>Z.jsx(gg,w({},H)),shape:y="circular",showFirstButton:b=!1,showLastButton:T=!1,siblingCount:E=1,size:x="medium",variant:C="text"}=F,_=te(F,["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"]),{items:k}=gT(N(w({},n),{componentName:"Pagination"})),O=N(w({},n),{boundaryCount:o,color:a,count:s,defaultPage:l,disabled:c,getItemAriaLabel:d,hideNextButton:f,hidePrevButton:h,renderItem:g,shape:y,showFirstButton:b,showLastButton:T,siblingCount:E,size:x,variant:C}),D=ST(O);return Z.jsx(RT,N(w({"aria-label":"pagination navigation",className:he(D.root,i),ownerState:O,ref:r},_),{children:Z.jsx(_T,{className:D.ul,ownerState:O,children:k.map((H,R)=>Z.jsx("li",{children:g(N(w({},H),{color:a,"aria-label":d(H.type,H.page,H.selected),shape:y,size:x,variant:C}))},R))})}))});process.env.NODE_ENV!=="production"&&(mg.propTypes={boundaryCount:Gt,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["primary","secondary","standard"]),u.string]),count:Gt,defaultPage:Gt,disabled:u.bool,getItemAriaLabel:u.func,hideNextButton:u.bool,hidePrevButton:u.bool,onChange:u.func,page:Gt,renderItem:u.func,shape:u.oneOf(["circular","rounded"]),showFirstButton:u.bool,showLastButton:u.bool,siblingCount:Gt,size:u.oneOfType([u.oneOf(["small","medium","large"]),u.string]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),variant:u.oneOfType([u.oneOf(["outlined","text"]),u.string])});const vg=e=>{const t=[],r=[];for(const n of e.columns)p.isMeasureColumn(n)?r.push(p.translateColumnToMeasure(n)):t.push(p.translateColumnToAttribute(n));return{attributes:t,measures:r}},OT=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:o,offset:i})=>{const a=nu(),[s,l]=S.useState(br(e)?null:e),[c,d]=S.useState(!1),f=S.useRef(!0),{isInitialized:h,app:m}=p.useSisenseContext(),[v,g]=S.useState(t);return S.useEffect(()=>{var E;let y=!1;if(!t)return;const{attributes:b,measures:T}=vg(t);if(br(e)){if(!h){a(new p.TranslatableError("errors.chartNoSisenseContext"));return}if(!m||!f.current&&i>0)return;d(!0),((E=m.settings.queryCacheConfig)!=null&&E.enabled?p.executeQueryWithCache:p.executeQuery)({dataSource:e,dimensions:b,measures:T,filters:r,filterRelations:n,count:o+1,offset:i,ungroup:!0},m).then(C=>{if(y)return;f.current=C.rows.length>o;const _=f.current?C.rows.slice(0,o):C.rows;i>0?l(k=>{const O=k==null?void 0:k.rows.length,D=O?O>i?k.rows.slice(0,i):k.rows:null;return{columns:C.columns,rows:D?[...D,..._]:_}}):l({columns:C.columns,rows:_}),g(t)}).finally(()=>{d(!1)}).catch(C=>{y||a(C)})}else l(e),g(t);return()=>{y=!0}},[m,e,t,r,n,i,o,h,a]),[c?null:s,v]},kT=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:o}=p.useSisenseContext();return S.useMemo(()=>{if(!e||!t)return null;let i=p.createDataTableFromData(Al(e,t,o==null?void 0:o.settings.locale,o==null?void 0:o.settings.dateConfig));const a=t.columns.filter(l=>!p.isMeasureColumn(l)).map(p.translateColumnToAttribute),s=t.columns.filter(l=>p.isMeasureColumn(l)).map(p.translateColumnToMeasure);return ig(i,a,s,r),n&&(i=dg(i,a,s,r)),ME(t,i)},[e,t,n,r,o])};function Le(){return Le=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},Le.apply(null,arguments)}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e){"@babel/helpers - typeof";return ar=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},ar(e)}function AT(e,t){if(ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yg(e){var t=AT(e,"string");return ar(t)=="symbol"?t:t+""}function hf(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,yg(n.key),n)}}function Ie(e,t,r){return t&&hf(e.prototype,t),r&&hf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pl(e,t){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Pl(e,t)}function Ke(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&&Pl(e,t)}function Q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function at(e,t){if(t&&(ar(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q(e)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},me(e)}function G(e,t,r){return(t=yg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yt=function(t,r,n,o,i,a,s,l){if(process.env.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,o,i,a,s,l],f=0;c=new Error("Invariant Violation: "+r.replace(/%s/g,function(){return d[f++]}))}throw c.framesToPop=1,c}},xi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},IT=Array.isArray,Ft=IT,PT=typeof xi=="object"&&xi&&xi.Object===Object&&xi,bg=PT,DT=bg,$T=typeof self=="object"&&self&&self.Object===Object&&self,NT=DT||$T||Function("return this")(),Jt=NT,LT=Jt,FT=LT.Symbol,Jo=FT,gf=Jo,wg=Object.prototype,jT=wg.hasOwnProperty,BT=wg.toString,Kn=gf?gf.toStringTag:void 0;function HT(e){var t=jT.call(e,Kn),r=e[Kn];try{e[Kn]=void 0;var n=!0}catch(i){}var o=BT.call(e);return n&&(t?e[Kn]=r:delete e[Kn]),o}var zT=HT,WT=Object.prototype,VT=WT.toString;function UT(e){return VT.call(e)}var GT=UT,mf=Jo,YT=zT,qT=GT,XT="[object Null]",KT="[object Undefined]",vf=mf?mf.toStringTag:void 0;function QT(e){return e==null?e===void 0?KT:XT:vf&&vf in Object(e)?YT(e):qT(e)}var Xr=QT;function ZT(e){return e!=null&&typeof e=="object"}var Rr=ZT,JT=Xr,eS=Rr,tS="[object Symbol]";function rS(e){return typeof e=="symbol"||eS(e)&&JT(e)==tS}var Wa=rS,nS=Ft,oS=Wa,iS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aS=/^\w*$/;function sS(e,t){if(nS(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||oS(e)?!0:aS.test(e)||!iS.test(e)||t!=null&&e in Object(t)}var lS=sS;function cS(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Kr=cS,uS=Xr,dS=Kr,fS="[object AsyncFunction]",pS="[object Function]",hS="[object GeneratorFunction]",gS="[object Proxy]";function mS(e){if(!dS(e))return!1;var t=uS(e);return t==pS||t==hS||t==fS||t==gS}var xg=mS,vS=Jt,yS=vS["__core-js_shared__"],bS=yS,Ws=bS,yf=function(){var e=/[^.]+$/.exec(Ws&&Ws.keys&&Ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wS(e){return!!yf&&yf in e}var xS=wS,CS=Function.prototype,ES=CS.toString;function TS(e){if(e!=null){try{return ES.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Cg=TS,SS=xg,RS=xS,_S=Kr,MS=Cg,OS=/[\\^$.*+?()[\]{}|]/g,kS=/^\[object .+?Constructor\]$/,AS=Function.prototype,IS=Object.prototype,PS=AS.toString,DS=IS.hasOwnProperty,$S=RegExp("^"+PS.call(DS).replace(OS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NS(e){if(!_S(e)||RS(e))return!1;var t=SS(e)?$S:kS;return t.test(MS(e))}var LS=NS;function FS(e,t){return e==null?void 0:e[t]}var jS=FS,BS=LS,HS=jS;function zS(e,t){var r=HS(e,t);return BS(r)?r:void 0}var Qr=zS,WS=Qr,VS=WS(Object,"create"),Va=VS,bf=Va;function US(){this.__data__=bf?bf(null):{},this.size=0}var GS=US;function YS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qS=YS,XS=Va,KS="__lodash_hash_undefined__",QS=Object.prototype,ZS=QS.hasOwnProperty;function JS(e){var t=this.__data__;if(XS){var r=t[e];return r===KS?void 0:r}return ZS.call(t,e)?t[e]:void 0}var eR=JS,tR=Va,rR=Object.prototype,nR=rR.hasOwnProperty;function oR(e){var t=this.__data__;return tR?t[e]!==void 0:nR.call(t,e)}var iR=oR,aR=Va,sR="__lodash_hash_undefined__";function lR(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=aR&&t===void 0?sR:t,this}var cR=lR,uR=GS,dR=qS,fR=eR,pR=iR,hR=cR;function Dn(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])}}Dn.prototype.clear=uR;Dn.prototype.delete=dR;Dn.prototype.get=fR;Dn.prototype.has=pR;Dn.prototype.set=hR;var gR=Dn;function mR(){this.__data__=[],this.size=0}var vR=mR;function yR(e,t){return e===t||e!==e&&t!==t}var Eg=yR,bR=Eg;function wR(e,t){for(var r=e.length;r--;)if(bR(e[r][0],t))return r;return-1}var Ua=wR,xR=Ua,CR=Array.prototype,ER=CR.splice;function TR(e){var t=this.__data__,r=xR(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ER.call(t,r,1),--this.size,!0}var SR=TR,RR=Ua;function _R(e){var t=this.__data__,r=RR(t,e);return r<0?void 0:t[r][1]}var MR=_R,OR=Ua;function kR(e){return OR(this.__data__,e)>-1}var AR=kR,IR=Ua;function PR(e,t){var r=this.__data__,n=IR(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var DR=PR,$R=vR,NR=SR,LR=MR,FR=AR,jR=DR;function $n(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])}}$n.prototype.clear=$R;$n.prototype.delete=NR;$n.prototype.get=LR;$n.prototype.has=FR;$n.prototype.set=jR;var Ga=$n,BR=Qr,HR=Jt,zR=BR(HR,"Map"),iu=zR,wf=gR,WR=Ga,VR=iu;function UR(){this.size=0,this.__data__={hash:new wf,map:new(VR||WR),string:new wf}}var GR=UR;function YR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qR=YR,XR=qR;function KR(e,t){var r=e.__data__;return XR(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ya=KR,QR=Ya;function ZR(e){var t=QR(this,e).delete(e);return this.size-=t?1:0,t}var JR=ZR,e_=Ya;function t_(e){return e_(this,e).get(e)}var r_=t_,n_=Ya;function o_(e){return n_(this,e).has(e)}var i_=o_,a_=Ya;function s_(e,t){var r=a_(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var l_=s_,c_=GR,u_=JR,d_=r_,f_=i_,p_=l_;function Nn(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])}}Nn.prototype.clear=c_;Nn.prototype.delete=u_;Nn.prototype.get=d_;Nn.prototype.has=f_;Nn.prototype.set=p_;var Tg=Nn,Sg=Tg,h_="Expected a function";function au(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h_);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(au.Cache||Sg),r}au.Cache=Sg;var g_=au,m_=g_,v_=500;function y_(e){var t=m_(e,function(n){return r.size===v_&&r.clear(),n}),r=t.cache;return t}var b_=y_,w_=b_,x_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C_=/\\(\\)?/g,E_=w_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(x_,function(r,n,o,i){t.push(o?i.replace(C_,"$1"):n||r)}),t}),T_=E_;function S_(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var R_=S_,xf=Jo,__=R_,M_=Ft,O_=Wa,k_=1/0,Cf=xf?xf.prototype:void 0,Ef=Cf?Cf.toString:void 0;function Rg(e){if(typeof e=="string")return e;if(M_(e))return __(e,Rg)+"";if(O_(e))return Ef?Ef.call(e):"";var t=e+"";return t=="0"&&1/e==-k_?"-0":t}var A_=Rg,I_=A_;function P_(e){return e==null?"":I_(e)}var _g=P_,D_=Ft,$_=lS,N_=T_,L_=_g;function F_(e,t){return D_(e)?e:$_(e,t)?[e]:N_(L_(e))}var qa=F_,j_=Wa,B_=1/0;function H_(e){if(typeof e=="string"||j_(e))return e;var t=e+"";return t=="0"&&1/e==-B_?"-0":t}var su=H_,z_=qa,W_=su;function V_(e,t){t=z_(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[W_(t[r++])];return r&&r==n?e:void 0}var Mg=V_,U_=Qr,G_=function(){try{var e=U_(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Og=G_,Tf=Og;function Y_(e,t,r){t=="__proto__"&&Tf?Tf(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var kg=Y_,q_=kg,X_=Eg,K_=Object.prototype,Q_=K_.hasOwnProperty;function Z_(e,t,r){var n=e[t];(!(Q_.call(e,t)&&X_(n,r))||r===void 0&&!(t in e))&&q_(e,t,r)}var lu=Z_,J_=9007199254740991,e4=/^(?:0|[1-9]\d*)$/;function t4(e,t){var r=typeof e;return t=t==null?J_:t,!!t&&(r=="number"||r!="symbol"&&e4.test(e))&&e>-1&&e%1==0&&e<t}var cu=t4,r4=lu,n4=qa,o4=cu,Sf=Kr,i4=su;function a4(e,t,r,n){if(!Sf(e))return e;t=n4(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=i4(t[o]),c=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var d=s[l];c=n?n(d,l,s):void 0,c===void 0&&(c=Sf(d)?d:o4(t[o+1])?[]:{})}r4(s,l,c),s=s[l]}return e}var s4=a4,l4=Mg,c4=s4,u4=qa;function d4(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],s=l4(e,a);r(s,a)&&c4(i,u4(a,e),s)}return i}var f4=d4;function p4(e,t){return e!=null&&t in Object(e)}var h4=p4,g4=Xr,m4=Rr,v4="[object Arguments]";function y4(e){return m4(e)&&g4(e)==v4}var b4=y4,Rf=b4,w4=Rr,Ag=Object.prototype,x4=Ag.hasOwnProperty,C4=Ag.propertyIsEnumerable,E4=Rf(function(){return arguments}())?Rf:function(e){return w4(e)&&x4.call(e,"callee")&&!C4.call(e,"callee")},Xa=E4,T4=9007199254740991;function S4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=T4}var uu=S4,R4=qa,_4=Xa,M4=Ft,O4=cu,k4=uu,A4=su;function I4(e,t,r){t=R4(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=A4(t[n]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&k4(o)&&O4(a,o)&&(M4(e)||_4(e)))}var P4=I4,D4=h4,$4=P4;function N4(e,t){return e!=null&&$4(e,t,D4)}var L4=N4,F4=f4,j4=L4;function B4(e,t){return F4(e,t,function(r,n){return j4(e,n)})}var H4=B4;function z4(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Ka=z4,_f=Jo,W4=Xa,V4=Ft,Mf=_f?_f.isConcatSpreadable:void 0;function U4(e){return V4(e)||W4(e)||!!(Mf&&e&&e[Mf])}var G4=U4,Y4=Ka,q4=G4;function Ig(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=q4),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?Ig(s,t-1,r,n,o):Y4(o,s):n||(o[o.length]=s)}return o}var Pg=Ig,X4=Pg;function K4(e){var t=e==null?0:e.length;return t?X4(e,1):[]}var Q4=K4;function Z4(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 J4=Z4,eM=J4,Of=Math.max;function tM(e,t,r){return t=Of(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Of(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),eM(e,this,s)}}var rM=tM;function nM(e){return function(){return e}}var oM=nM;function iM(e){return e}var Dg=iM,aM=oM,kf=Og,sM=Dg,lM=kf?function(e,t){return kf(e,"toString",{configurable:!0,enumerable:!1,value:aM(t),writable:!0})}:sM,cM=lM,uM=800,dM=16,fM=Date.now;function pM(e){var t=0,r=0;return function(){var n=fM(),o=dM-(n-r);if(r=n,o>0){if(++t>=uM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hM=pM,gM=cM,mM=hM,vM=mM(gM),yM=vM,bM=Q4,wM=rM,xM=yM;function CM(e){return xM(wM(e,void 0,bM),e+"")}var EM=CM,TM=H4,SM=EM,RM=SM(function(e,t){return e==null?{}:TM(e,t)}),lo=RM;function Af(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function If(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Af(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Af(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function it(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 Pf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Vs=function(){return Math.random().toString(36).substring(7).split("").join(".")},Br={INIT:"@@redux/INIT"+Vs(),REPLACE:"@@redux/REPLACE"+Vs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vs()}};function $g(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 _M(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(kM(e))return"date";if(OM(e))return"error";var r=MM(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 MM(e){return typeof e.constructor=="function"?e.constructor.name:null}function OM(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function kM(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function pr(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=_M(e)),t}function Ng(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"?it(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"?it(1):"Expected the enhancer to be a function. Instead, received: '"+pr(r)+"'");return r(Ng)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?it(2):"Expected the root reducer to be a function. Instead, received: '"+pr(e)+"'");var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function d(){if(l)throw new Error(process.env.NODE_ENV==="production"?it(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?it(4):"Expected the listener to be a function. Instead, received: '"+pr(g)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?it(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;return c(),s.push(g),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?it(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c();var T=s.indexOf(g);s.splice(T,1),a=null}}}function h(g){if(!$g(g))throw new Error(process.env.NODE_ENV==="production"?it(7):"Actions must be plain objects. Instead, the actual type was: '"+pr(g)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof g.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?it(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?it(9):"Reducers may not dispatch actions.");try{l=!0,i=o(i,g)}finally{l=!1}for(var y=a=s,b=0;b<y.length;b++){var T=y[b];T()}return g}function m(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?it(10):"Expected the nextReducer to be a function. Instead, received: '"+pr(g));o=g,h({type:Br.REPLACE})}function v(){var g,y=f;return g={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(process.env.NODE_ENV==="production"?it(11):"Expected the observer to be an object. Instead, received: '"+pr(T)+"'");function E(){T.next&&T.next(d())}E();var x=y(E);return{unsubscribe:x}}},g[Pf]=function(){return this},g}return h({type:Br.INIT}),n={dispatch:h,subscribe:f,getState:d,replaceReducer:m},n[Pf]=v,n}function Dl(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function AM(e,t,r,n){var o=Object.keys(t),i=r&&r.type===Br.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!$g(e))return"The "+i+' has unexpected type of "'+pr(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(s){return!t.hasOwnProperty(s)&&!n[s]});if(a.forEach(function(s){n[s]=!0}),!(r&&r.type===Br.REPLACE)&&a.length>0)return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function IM(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Br.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?it(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:Br.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?it(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Br.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 PM(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];process.env.NODE_ENV!=="production"&&typeof e[o]=="undefined"&&Dl('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(r[o]=e[o])}var i=Object.keys(r),a;process.env.NODE_ENV!=="production"&&(a={});var s;try{IM(r)}catch(l){s=l}return function(c,d){if(c===void 0&&(c={}),s)throw s;if(process.env.NODE_ENV!=="production"){var f=AM(c,r,d,a);f&&Dl(f)}for(var h=!1,m={},v=0;v<i.length;v++){var g=i[v],y=r[g],b=c[g],T=y(b,d);if(typeof T=="undefined"){var E=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?it(14):"When called with an action of type "+(E?'"'+String(E)+'"':"(unknown type)")+', the slice reducer for key "'+g+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}m[g]=T,h=h||T!==b}return h=h||i.length!==Object.keys(c).length,h?m:c}}function Df(e,t){return function(){return t(e.apply(this,arguments))}}function Lg(e,t){if(typeof e=="function")return Df(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?it(16):"bindActionCreators expected an object or a function, but instead received: '"+pr(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var o=e[n];typeof o=="function"&&(r[n]=Df(o,t))}return r}function Ji(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function DM(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?it(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return i=Ji.apply(void 0,s)(o.dispatch),If(If({},o),{},{dispatch:i})}}}function $f(){}process.env.NODE_ENV!=="production"&&typeof $f.name=="string"&&$f.name!=="isCrushed"&&Dl('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 $M=Ga;function NM(){this.__data__=new $M,this.size=0}var LM=NM;function FM(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var jM=FM;function BM(e){return this.__data__.get(e)}var HM=BM;function zM(e){return this.__data__.has(e)}var WM=zM,VM=Ga,UM=iu,GM=Tg,YM=200;function qM(e,t){var r=this.__data__;if(r instanceof VM){var n=r.__data__;if(!UM||n.length<YM-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new GM(n)}return r.set(e,t),this.size=r.size,this}var XM=qM,KM=Ga,QM=LM,ZM=jM,JM=HM,e5=WM,t5=XM;function Ln(e){var t=this.__data__=new KM(e);this.size=t.size}Ln.prototype.clear=QM;Ln.prototype.delete=ZM;Ln.prototype.get=JM;Ln.prototype.has=e5;Ln.prototype.set=t5;var r5=Ln;function n5(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Fg=n5,o5=lu,i5=kg;function a5(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),o?i5(r,s,l):o5(r,s,l)}return r}var Qa=a5;function s5(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var l5=s5,Ao={exports:{}};function c5(){return!1}var u5=c5;(function(e,t){var r=Jt,n=u5,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(Ao,Ao.exports);var d5=Xr,f5=uu,p5=Rr,h5="[object Arguments]",g5="[object Array]",m5="[object Boolean]",v5="[object Date]",y5="[object Error]",b5="[object Function]",w5="[object Map]",x5="[object Number]",C5="[object Object]",E5="[object RegExp]",T5="[object Set]",S5="[object String]",R5="[object WeakMap]",_5="[object ArrayBuffer]",M5="[object DataView]",O5="[object Float32Array]",k5="[object Float64Array]",A5="[object Int8Array]",I5="[object Int16Array]",P5="[object Int32Array]",D5="[object Uint8Array]",$5="[object Uint8ClampedArray]",N5="[object Uint16Array]",L5="[object Uint32Array]",Pe={};Pe[O5]=Pe[k5]=Pe[A5]=Pe[I5]=Pe[P5]=Pe[D5]=Pe[$5]=Pe[N5]=Pe[L5]=!0;Pe[h5]=Pe[g5]=Pe[_5]=Pe[m5]=Pe[M5]=Pe[v5]=Pe[y5]=Pe[b5]=Pe[w5]=Pe[x5]=Pe[C5]=Pe[E5]=Pe[T5]=Pe[S5]=Pe[R5]=!1;function F5(e){return p5(e)&&f5(e.length)&&!!Pe[d5(e)]}var j5=F5;function B5(e){return function(t){return e(t)}}var du=B5,Io={exports:{}};(function(e,t){var r=bg,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch(c){}}();e.exports=s})(Io,Io.exports);var H5=j5,z5=du,Nf=Io.exports,Lf=Nf&&Nf.isTypedArray,W5=Lf?z5(Lf):H5,jg=W5,V5=l5,U5=Xa,G5=Ft,Y5=Ao.exports,q5=cu,X5=jg,K5=Object.prototype,Q5=K5.hasOwnProperty;function Z5(e,t){var r=G5(e),n=!r&&U5(e),o=!r&&!n&&Y5(e),i=!r&&!n&&!o&&X5(e),a=r||n||o||i,s=a?V5(e.length,String):[],l=s.length;for(var c in e)(t||Q5.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||q5(c,l)))&&s.push(c);return s}var Bg=Z5,J5=Object.prototype;function eO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||J5;return e===r}var Za=eO;function tO(e,t){return function(r){return e(t(r))}}var Hg=tO,rO=Hg,nO=rO(Object.keys,Object),oO=nO,iO=Za,aO=oO,sO=Object.prototype,lO=sO.hasOwnProperty;function cO(e){if(!iO(e))return aO(e);var t=[];for(var r in Object(e))lO.call(e,r)&&r!="constructor"&&t.push(r);return t}var fu=cO,uO=xg,dO=uu;function fO(e){return e!=null&&dO(e.length)&&!uO(e)}var ei=fO,pO=Bg,hO=fu,gO=ei;function mO(e){return gO(e)?pO(e):hO(e)}var Ja=mO,vO=Qa,yO=Ja;function bO(e,t){return e&&vO(t,yO(t),e)}var wO=bO;function xO(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var CO=xO,EO=Kr,TO=Za,SO=CO,RO=Object.prototype,_O=RO.hasOwnProperty;function MO(e){if(!EO(e))return SO(e);var t=TO(e),r=[];for(var n in e)n=="constructor"&&(t||!_O.call(e,n))||r.push(n);return r}var OO=MO,kO=Bg,AO=OO,IO=ei;function PO(e){return IO(e)?kO(e,!0):AO(e)}var pu=PO,DO=Qa,$O=pu;function NO(e,t){return e&&DO(t,$O(t),e)}var LO=NO,$l={exports:{}};(function(e,t){var r=Jt,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,d){if(d)return c.slice();var f=c.length,h=s?s(f):new c.constructor(f);return c.copy(h),h}e.exports=l})($l,$l.exports);function FO(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var zg=FO;function jO(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}var BO=jO;function HO(){return[]}var Wg=HO,zO=BO,WO=Wg,VO=Object.prototype,UO=VO.propertyIsEnumerable,Ff=Object.getOwnPropertySymbols,GO=Ff?function(e){return e==null?[]:(e=Object(e),zO(Ff(e),function(t){return UO.call(e,t)}))}:WO,hu=GO,YO=Qa,qO=hu;function XO(e,t){return YO(e,qO(e),t)}var KO=XO,QO=Hg,ZO=QO(Object.getPrototypeOf,Object),Vg=ZO,JO=Ka,ek=Vg,tk=hu,rk=Wg,nk=Object.getOwnPropertySymbols,ok=nk?function(e){for(var t=[];e;)JO(t,tk(e)),e=ek(e);return t}:rk,Ug=ok,ik=Qa,ak=Ug;function sk(e,t){return ik(e,ak(e),t)}var lk=sk,ck=Ka,uk=Ft;function dk(e,t,r){var n=t(e);return uk(e)?n:ck(n,r(e))}var Gg=dk,fk=Gg,pk=hu,hk=Ja;function gk(e){return fk(e,hk,pk)}var mk=gk,vk=Gg,yk=Ug,bk=pu;function wk(e){return vk(e,bk,yk)}var xk=wk,Ck=Qr,Ek=Jt,Tk=Ck(Ek,"DataView"),Sk=Tk,Rk=Qr,_k=Jt,Mk=Rk(_k,"Promise"),Ok=Mk,kk=Qr,Ak=Jt,Ik=kk(Ak,"Set"),Pk=Ik,Dk=Qr,$k=Jt,Nk=Dk($k,"WeakMap"),Lk=Nk,Nl=Sk,Ll=iu,Fl=Ok,jl=Pk,Bl=Lk,Yg=Xr,Fn=Cg,jf="[object Map]",Fk="[object Object]",Bf="[object Promise]",Hf="[object Set]",zf="[object WeakMap]",Wf="[object DataView]",jk=Fn(Nl),Bk=Fn(Ll),Hk=Fn(Fl),zk=Fn(jl),Wk=Fn(Bl),Pr=Yg;(Nl&&Pr(new Nl(new ArrayBuffer(1)))!=Wf||Ll&&Pr(new Ll)!=jf||Fl&&Pr(Fl.resolve())!=Bf||jl&&Pr(new jl)!=Hf||Bl&&Pr(new Bl)!=zf)&&(Pr=function(e){var t=Yg(e),r=t==Fk?e.constructor:void 0,n=r?Fn(r):"";if(n)switch(n){case jk:return Wf;case Bk:return jf;case Hk:return Bf;case zk:return Hf;case Wk:return zf}return t});var ti=Pr,Vk=Object.prototype,Uk=Vk.hasOwnProperty;function Gk(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Uk.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Yk=Gk,qk=Jt,Xk=qk.Uint8Array,Kk=Xk,Vf=Kk;function Qk(e){var t=new e.constructor(e.byteLength);return new Vf(t).set(new Vf(e)),t}var gu=Qk,Zk=gu;function Jk(e,t){var r=t?Zk(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var eA=Jk,tA=/\w*$/;function rA(e){var t=new e.constructor(e.source,tA.exec(e));return t.lastIndex=e.lastIndex,t}var nA=rA,Uf=Jo,Gf=Uf?Uf.prototype:void 0,Yf=Gf?Gf.valueOf:void 0;function oA(e){return Yf?Object(Yf.call(e)):{}}var iA=oA,aA=gu;function sA(e,t){var r=t?aA(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var lA=sA,cA=gu,uA=eA,dA=nA,fA=iA,pA=lA,hA="[object Boolean]",gA="[object Date]",mA="[object Map]",vA="[object Number]",yA="[object RegExp]",bA="[object Set]",wA="[object String]",xA="[object Symbol]",CA="[object ArrayBuffer]",EA="[object DataView]",TA="[object Float32Array]",SA="[object Float64Array]",RA="[object Int8Array]",_A="[object Int16Array]",MA="[object Int32Array]",OA="[object Uint8Array]",kA="[object Uint8ClampedArray]",AA="[object Uint16Array]",IA="[object Uint32Array]";function PA(e,t,r){var n=e.constructor;switch(t){case CA:return cA(e);case hA:case gA:return new n(+e);case EA:return uA(e,r);case TA:case SA:case RA:case _A:case MA:case OA:case kA:case AA:case IA:return pA(e,r);case mA:return new n;case vA:case wA:return new n(e);case yA:return dA(e);case bA:return new n;case xA:return fA(e)}}var DA=PA,$A=Kr,qf=Object.create,NA=function(){function e(){}return function(t){if(!$A(t))return{};if(qf)return qf(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),LA=NA,FA=LA,jA=Vg,BA=Za;function HA(e){return typeof e.constructor=="function"&&!BA(e)?FA(jA(e)):{}}var zA=HA,WA=ti,VA=Rr,UA="[object Map]";function GA(e){return VA(e)&&WA(e)==UA}var YA=GA,qA=YA,XA=du,Xf=Io.exports,Kf=Xf&&Xf.isMap,KA=Kf?XA(Kf):qA,QA=KA,ZA=ti,JA=Rr,eI="[object Set]";function tI(e){return JA(e)&&ZA(e)==eI}var rI=tI,nI=rI,oI=du,Qf=Io.exports,Zf=Qf&&Qf.isSet,iI=Zf?oI(Zf):nI,aI=iI,sI=r5,lI=Fg,cI=lu,uI=wO,dI=LO,fI=$l.exports,pI=zg,hI=KO,gI=lk,mI=mk,vI=xk,yI=ti,bI=Yk,wI=DA,xI=zA,CI=Ft,EI=Ao.exports,TI=QA,SI=Kr,RI=aI,_I=Ja,MI=pu,OI=1,kI=2,AI=4,qg="[object Arguments]",II="[object Array]",PI="[object Boolean]",DI="[object Date]",$I="[object Error]",Xg="[object Function]",NI="[object GeneratorFunction]",LI="[object Map]",FI="[object Number]",Kg="[object Object]",jI="[object RegExp]",BI="[object Set]",HI="[object String]",zI="[object Symbol]",WI="[object WeakMap]",VI="[object ArrayBuffer]",UI="[object DataView]",GI="[object Float32Array]",YI="[object Float64Array]",qI="[object Int8Array]",XI="[object Int16Array]",KI="[object Int32Array]",QI="[object Uint8Array]",ZI="[object Uint8ClampedArray]",JI="[object Uint16Array]",eP="[object Uint32Array]",Me={};Me[qg]=Me[II]=Me[VI]=Me[UI]=Me[PI]=Me[DI]=Me[GI]=Me[YI]=Me[qI]=Me[XI]=Me[KI]=Me[LI]=Me[FI]=Me[Kg]=Me[jI]=Me[BI]=Me[HI]=Me[zI]=Me[QI]=Me[ZI]=Me[JI]=Me[eP]=!0;Me[$I]=Me[Xg]=Me[WI]=!1;function Ni(e,t,r,n,o,i){var a,s=t&OI,l=t&kI,c=t&AI;if(r&&(a=o?r(e,n,o,i):r(e)),a!==void 0)return a;if(!SI(e))return e;var d=CI(e);if(d){if(a=bI(e),!s)return pI(e,a)}else{var f=yI(e),h=f==Xg||f==NI;if(EI(e))return fI(e,s);if(f==Kg||f==qg||h&&!o){if(a=l||h?{}:xI(e),!s)return l?gI(e,dI(a,e)):hI(e,uI(a,e))}else{if(!Me[f])return o?e:{};a=wI(e,f,s)}}i||(i=new sI);var m=i.get(e);if(m)return m;i.set(e,a),RI(e)?e.forEach(function(y){a.add(Ni(y,t,r,y,e,i))}):TI(e)&&e.forEach(function(y,b){a.set(b,Ni(y,t,r,b,e,i))});var v=c?l?vI:mI:l?MI:_I,g=d?void 0:v(e);return lI(g||e,function(y,b){g&&(b=y,y=e[b]),cI(a,b,Ni(y,t,r,b,e,i))}),a}var tP=Ni,rP=tP,nP=4;function oP(e){return rP(e,nP)}var iP=oP;function aP(e,t){return e<t}var Ci=function(){function e(t,r){Ae(this,e),this._items=t||[],this._size=this._items.length,this._comparator=r||aP,this._heapify()}return Ie(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 o=Math.floor((r+1)/2)-1,i=this._items[o];if(this._comparator(i,n))return;this._items[o]=n,this._items[r]=i,r=o}}},{key:"_sinkDown",value:function(r){for(var n=this._items[r];;){var o=2*(r+1)-1,i=2*(r+1),a=-1;if(o<this._size){var s=this._items[o];this._comparator(s,n)&&(a=o)}if(i<this._size){var l=this._items[i];this._comparator(l,n)&&(a===-1||this._comparator(l,this._items[a]))&&(a=i)}if(a===-1)return;this._items[r]=this._items[a],this._items[a]=n,r=a}}}]),e}(),Qg=function(){function e(){Ae(this,e),this._valueToPositionMap={},this._size=0,this._smallValues=new Ci([],this._smallerComparator),this._largeValues=new Ci([],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 Ie(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){Yt(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,o){if(Yt(this._valueToPositionMap[o]===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 i=this._smallValues.peek().value,a=this._largeValues.peek().value;if(i>=r&&a<=n)return null;var s;r-i>a-n?(s=i,this._smallValues.pop()):(s=a,this._largeValues.pop());var l=this._valueToPositionMap[s];return delete this._valueToPositionMap[s],this._valueToPositionMap[o]=l,this._pushToHeaps(l,o),l}},{key:"_pushToHeaps",value:function(r,n){var o={position:r,value:n};this._smallValues.push(o),this._largeValues.push(o)}},{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 Ci([],this._smallerComparator),o=new Ci([],this._greaterComparator);!r.empty();){var i=r.pop();this._valueToPositionMap[i.value]!==void 0&&(n.push(i),o.push(i))}this._smallValues=n,this._largeValues=o}},{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}(),ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Us=function(t){return Math.floor(t/2)},sP=ct.Int32Array||function(e){for(var t=[],r=e-1;r>=0;--r)t[r]=0;return t};function lP(e){for(var t=1;t<e;)t*=2;return t}var cP=function(){function e(t){Ae(this,e),this._size=t.length,this._half=lP(this._size),this._heap=new sP(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 Ie(e,[{key:"set",value:function(r,n){Yt(0<=r&&r<this._size,"Index out of range %s",r);var o=this._half+r;for(this._heap[o]=n,o=Us(o);o!==0;o=Us(o))this._heap[o]=this._heap[2*o]+this._heap[2*o+1]}},{key:"get",value:function(r){Yt(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(Yt(0<=r&&r<this._size+1,"Index out of range %s",r),r===0)return 0;for(var n=this._half+r-1,o=this._heap[n];n!==1;n=Us(n))n%2===1&&(o+=this._heap[n-1]);return o}},{key:"sumTo",value:function(r){return Yt(0<=r&&r<this._size,"Index out of range %s",r),this.sumUntil(r+1)}},{key:"sum",value:function(r,n){return Yt(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 o=this._heap[2*n];r<o?n=2*n:(n=2*n+1,r-=o)}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 o=this._heap[2*n];r<=o?n=2*n:(n=2*n+1,r-=o)}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 o=[],i=r-1;i>=0;--i)o[i]=n;return new e(o)}},{key:"empty",value:function(r){return e.uniform(r,0)}}]),e}();function Po(e,t){if(e===t)return!0;if(ar(e)!=="object"||e===null||ar(t)!=="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i<r.length;i++)if(!o(r[i])||e[r[i]]!==t[r[i]])return!1;return!0}var le={FIXED:"fixed",FIXED_RIGHT:"fixedRight",SCROLLABLE:"scrollable"};function Hl(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=uP(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
245
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return i=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function uP(e,t){if(e){if(typeof e=="string")return Jf(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 Jf(e,t)}}function Jf(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 Gs(e){var t=e.props,r=t.align,n=t.allowCellsRecycling,o=t.cellClassName,i=t.columnKey,a=t.flexGrow,s=t.fixed,l=t.fixedRight,c=t.maxWidth,d=t.minWidth,f=t.isReorderable,h=t.isResizable,m=t.pureRendering,v=t.width;return{align:r,allowCellsRecycling:n,cellClassName:o,columnKey:i,flexGrow:a,fixed:s,fixedRight:l,maxWidth:c,minWidth:d,isReorderable:f,isResizable:h,pureRendering:m,width:v}}function ep(e,t){e.cell.push(t.props.cell),e.footer.push(t.props.footer),e.header.push(t.props.header)}function zl(e){var t,r;return e!=null&&(t=e.props)!==null&&t!==void 0&&t.fixed?le.FIXED:e!=null&&(r=e.props)!==null&&r!==void 0&&r.fixedRight?le.FIXED_RIGHT:le.SCROLLABLE}function Do(){var e;return e={},G(e,le.FIXED,[]),G(e,le.SCROLLABLE,[]),G(e,le.FIXED_RIGHT,[]),e}function dP(){return{groupHeader:[],header:[],cell:[],footer:[]}}function tp(e){var t=Do(),r=Hl(e),n;try{for(r.s();!(n=r.n()).done;){var o=n.value,i=zl(o);t[i].push(o)}}catch(s){r.e(s)}finally{r.f()}var a=[];return a.push.apply(a,t[le.FIXED]),a.push.apply(a,t[le.SCROLLABLE]),a.push.apply(a,t[le.FIXED_RIGHT]),a}function rp(e,t){return t===le.FIXED?e[le.FIXED].length:t===le.SCROLLABLE?e[le.FIXED].length+e[le.SCROLLABLE].length:e[le.FIXED].length+e[le.SCROLLABLE].length+e[le.FIXED_RIGHT].length}function fP(e){var t,r,n=[];S.Children.forEach(e,function(m,v){m!=null&&(Yt(m.type.__TableColumnGroup__||m.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),n.push(m))});var o=Do(),i=Do(),a=dP(),s=(t=(r=n[0])===null||r===void 0?void 0:r.type.__TableColumnGroup__)!==null&&t!==void 0?t:!1;if(s)(function(){var m=0,v=Hl(tp(n)),g;try{var y=function(){var T=g.value,E=zl(T),x=Gs(T);x.index=rp(i,E),i[E].push(x),a.groupHeader.push(T.props.header),S.Children.forEach(T.props.children,function(C){var _=Gs(C);_.index=m++,_.groupIdx=x.index,o[E].push(_),ep(a,C)})};for(v.s();!(g=v.n()).done;)y()}catch(b){v.e(b)}finally{v.f()}})();else{var l=Hl(tp(n)),c;try{for(l.s();!(c=l.n()).done;){var d=c.value,f=zl(d),h=Gs(d);h.index=rp(o,f),o[f].push(h),ep(a,d)}}catch(m){l.e(m)}finally{l.f()}}return{columnGroupElements:i,columnElements:o,elementTemplates:a,useGroupHeader:s}}function es(e,t,r){return e<t?t:e>r?r:e}var ea="NOT_FOUND";function pP(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:ea},put:function(n,o){t={key:n,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function hP(e,t){var r=[];function n(s){var l=r.findIndex(function(d){return t(s,d.key)});if(l>-1){var c=r[l];return l>0&&(r.splice(l,1),r.unshift(c)),c.value}return ea}function o(s,l){n(s)===ea&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var gP=function(t,r){return t===r};function mP(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var o=r.length,i=0;i<o;i++)if(!e(r[i],n[i]))return!1;return!0}}function vP(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,o=n===void 0?gP:n,i=r.maxSize,a=i===void 0?1:i,s=r.resultEqualityCheck,l=mP(o),c=a===1?pP(l):hP(a,l);function d(){var f=c.get(arguments);if(f===ea){if(f=e.apply(null,arguments),s){var h=c.getEntries(),m=h.find(function(v){return s(v.value,f)});m&&(f=m.value)}c.put(arguments,f)}return f}return d.clearCache=function(){return c.clear()},d}function yP(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 bP(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=0,d,f={memoizeOptions:void 0},h=s.pop();if(typeof h=="object"&&(f=h,h=s.pop()),typeof h!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof h+"]");var m=f,v=m.memoizeOptions,g=v===void 0?r:v,y=Array.isArray(g)?g:[g],b=yP(s),T=e.apply(void 0,[function(){return c++,h.apply(null,arguments)}].concat(y)),E=e(function(){for(var C=[],_=b.length,k=0;k<_;k++)C.push(b[k].apply(null,arguments));return d=T.apply(null,C),d});return Object.assign(E,{resultFunc:h,memoizedResultFunc:T,dependencies:b,lastResult:function(){return d},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),E};return o}var ts=bP(vP),ur=ts;function wP(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=xP(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
246
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return i=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function xP(e,t){if(e){if(typeof e=="string")return np(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 np(e,t)}}function np(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 Zg=[],CP={},mu={memoizeOptions:{maxSize:12}},Li=ts(function(e){return e||Zg},function(e){return e.reduce(function(t,r){return t+r.props.width},0)},mu),bn=ts(function(e){return e||Zg},function(e){return e.reduce(function(t,r){return t+r.width},0)},mu);function Jg(e){return bn(e.fixed)+bn(e.fixedRight)+bn(e.scrollable)}var EP=ts(function(e){return e||CP},function(e){var t=Array.prototype.concat.call(e.fixed,e.scrollable,e.fixedRight),r=0,n=wP(t),o;try{for(n.s();!(o=n.n()).done;){var i=o.value;r+=i.flexGrow||0}}catch(a){n.e(a)}finally{n.f()}return r},mu),TP=1,SP=3,RP=6,vr={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};function _P(e,t,r,n,o,i,a){var s=t.cellGroupWrapperHeight,l=t.footerHeight,c=t.headerHeight,d=t.groupHeaderHeight,f=s?0:2*TP,h=l+c+d+f,m=o.height,v=o.maxHeight,g=o.useMaxHeight,y=o.width,b=Math.round(g?v:m),T=b-h,E=MP(e,n,y,a),x=T,C=T;switch(E){case vr.VISIBLE:{x-=i,C-=i;break}case vr.JOINT_SCROLLBARS:{x-=i;break}}return{bufferRowCount:OP(C,r),minAvailableHeight:Math.max(x,0),maxAvailableHeight:Math.max(C,0),reservedHeight:h,scrollStateX:E}}function MP(e,t,r,n){var o=t.overflowX,i=t.showScrollbarX,a=Jg(e);return o==="hidden"||i===!1?vr.HIDDEN:a>r?vr.VISIBLE:a>r-n?vr.JOINT_SCROLLBARS:vr.HIDDEN}function OP(e,t){var r=t.bufferRowCount,n=t.rowHeight,o=t.subRowHeight;if(r!==void 0)return r;var i=n+o,a=Math.ceil(e/i)+1;return es(Math.floor(a/2),SP,RP)}var vu=ur([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}],_P);function kP(e,t,r){var n=r.overflowY,o=r.showScrollbarY,i=n!=="hidden"&&o!==!1,a=e.minAvailableHeight,s=e.maxAvailableHeight,l=e.scrollStateX,c=!1,d=!1;l===vr.VISIBLE&&(d=!0),i&&t>s&&(c=!0),c&&l===vr.JOINT_SCROLLBARS&&(d=!0);var f=s;return d&&(f=a),{availableHeight:f,scrollEnabledX:d,scrollEnabledY:c}}var Vr=ur([vu,function(e){return e.scrollContentHeight},function(e){return e.scrollFlags}],kP);function Lr(e,t){var r=e.rowSettings,n=e.getInternal(),o=n.storedHeights,i=n.rowOffsetIntervalTree,a=r.rowHeightGetter,s=r.subRowHeightGetter,l=a(t)+s(t),c=o[t];return l!==c&&(i.set(t,l),o[t]=l,e.scrollContentHeight+=l-c),o[t]}function op(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?AP(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?Wl(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function Wl(e,t){var r=Vr(e),n=r.availableHeight,o=e.rowSettings,i=e.scrollContentHeight,a=e.getInternal(),s=a.rowOffsetIntervalTree,l=o.rowsCount;if(e.rowSettings.rowHeightGetter!=null&&e.isVerticalScrollExact){for(var c=e.getInternal(),d=c.rowUntilOffsetsAreExact;d<l;)Lr(e,d++);e.getInternal().rowUntilOffsetsAreExact=l}if(l===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var f=0,h=0,m=void 0;if(!(t<=0))if(t>=i-n)f=void 0,m=l-1;else{var v=s.greatestLowerBound(t);f=es(v,0,Math.max(l-1,0));var g=s.sumUntil(f);h=g-t}return{firstIndex:f,firstOffset:h,lastIndex:m,changed:!0}}function AP(e,t){var r=Vr(e),n=r.availableHeight,o=e.rowSettings,i=e.scrollY,a=e.getInternal(),s=a.rowOffsetIntervalTree,l=a.storedHeights,c=o.rowsCount;if(c===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};t=es(t,0,Math.max(c-1,0)),Lr(e,t);var d=s.sumUntil(t),f=d+l[t],h=t,m=void 0;if(!(d<i))if(i+n<f)h=void 0,m=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:h,firstOffset:0,lastIndex:m,changed:!0}}function IP(e){return e==null}var vo=IP;function PP(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var DP=PP,$P=/\s/;function NP(e){for(var t=e.length;t--&&$P.test(e.charAt(t)););return t}var LP=NP,FP=LP,jP=/^\s+/;function BP(e){return e&&e.slice(0,FP(e)+1).replace(jP,"")}var HP=BP,zP=HP,ip=Kr,WP=Wa,ap=NaN,VP=/^[-+]0x[0-9a-f]+$/i,UP=/^0b[01]+$/i,GP=/^0o[0-7]+$/i,YP=parseInt;function qP(e){if(typeof e=="number")return e;if(WP(e))return ap;if(ip(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ip(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zP(e);var r=UP.test(e);return r||GP.test(e)?YP(e.slice(2),r?2:8):VP.test(e)?ap:+e}var yu=qP,XP=DP,Ys=yu;function KP(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Ys(r),r=r===r?r:0),t!==void 0&&(t=Ys(t),t=t===t?t:0),XP(Ys(e),t,r)}var rs=KP,QP=Ka,ZP=Pg,JP=zg,e6=Ft;function t6(){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 QP(e6(r)?JP(r):[r],ZP(t,1))}var sp=t6;function lp(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=r6(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
247
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return i=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function r6(e,t){if(e){if(typeof e=="string")return cp(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 cp(e,t)}}function cp(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 n6(e,t,r,n,o){var i=r?o:0,a=n-i,s=o6(e,t,a),l=s.columnGroupElements,c=s.columnElements,d=up(c),f=d.fixed,h=d.fixedRight,m=d.scrollable,v=up(l),g=v.fixed,y=v.fixedRight,b=v.scrollable,T=bn(f),E=bn(h),x=bn(m),C=a-T-E,_=Math.max(0,T+E+x-a);return{columnGroupProps:sp(g,b,y),columnProps:sp(f,m,h),availableScrollWidth:C,fixedColumns:f,fixedRightColumns:h,scrollableColumns:m,fixedColumnGroups:g,fixedRightColumnGroups:y,scrollableColumnGroups:b,maxScrollX:_}}function o6(e,t,r){var n=Do(),o=Do(),i=Jg(t),a=EP(t),s=Math.max(r-i,0),l=[];for(var c in t){var d=t[c],f=0,h=0,m=lp(d),v;try{for(m.s();!(v=m.n()).done;){var g=v.value,y=g.flexGrow||0,b=0;y&&(b=Math.floor(y*s/a));var T=g.width+b;a-=y,s-=b;var E=Le({},g,{width:T,offset:f});f+=T,l[g.groupIdx]=T+(l[g.groupIdx]||0),o[c][h]=E,h++}}catch(A){m.e(A)}finally{m.f()}}for(var x in e){var C=e[x],_=0,k=0,O=lp(C),D;try{for(O.s();!(D=O.n()).done;){var F=D.value,H=l[F.index],R=Le({},F,{width:H,offset:_});_+=H,n[x][k]=R,k++}}catch(A){O.e(A)}finally{O.f()}}return{columnGroupElements:n,columnElements:o}}function up(e){return{fixed:e.fixed,fixedRight:e.fixedRight,scrollable:e.scrollable}}var ri=ur([function(e){return e.columnGroupElements},function(e){return e.columnElements},function(e){return Vr(e).scrollEnabledY},function(e){return e.tableSize.width},function(e){return e.scrollbarYWidth}],n6);function i6(e,t,r){var n=t.scrollLeft,o=e.scrollX;n!==void 0&&(!r||n!==r.scrollLeft)&&(o=n),o=a6(e,t,r.scrollToColumn,o);var i=ri(e),a=i.maxScrollX;o=rs(o,0,a),Le(e,{maxScrollX:a,scrollX:o})}function a6(e,t,r,n){var o=t.scrollToColumn;if(vo(o))return n;var i=ri(e),a=i.availableScrollWidth,s=i.fixedColumns,l=i.scrollableColumns,c=s.length,d=l.length,f=d===0,h=o===r,m=o<c,v=o>=c+d;if(h||m||v||f)return n;for(var g=Math.min(o-c,l.length-1),y=0,b=0;b<g;++b)y+=l[b].width;var T=l[g].width,E=y+T-a;return n<E?E:n>y?y:n}var dp={initialize:i6};function s6(e,t,r,n,o,i,a){var s=o.availableHeight,l=o.scrollEnabledX,c=r;l&&(c+=a);var d=Math.min(s,n),f=i?d:s,h=f+c,m=f;t<h&&(m=t-c);var v=i?n:Math.max(n,s),g=v+c;t&&(g=Math.max(t,g));var y=e.footerHeight,b=e.groupHeaderHeight,T=e.headerHeight,E=b+T,x=E+m,C=x+y,_=Math.max(0,x-E);return{bodyHeight:d,bodyOffsetTop:E,componentHeight:h,contentHeight:g,footOffsetTop:x,scrollbarXOffsetTop:C,scrollbarYHeight:_,visibleRowsHeight:m}}var gn=ur([function(e){return e.elementHeights},function(e){return e.tableSize.ownerHeight},function(e){return vu(e).reservedHeight},function(e){return e.scrollContentHeight},Vr,function(e){return e.tableSize.useMaxHeight},function(e){return e.scrollbarXHeight}],s6);function Qn(e,t){var r=fp(e,t),n=e.rowSettings,o=e.scrollContentHeight,i=n.rowsCount,a=gn(e),s=a.bodyHeight,l=o-s,c;l===0?(r.firstViewportIdx>0&&(r=fp(e,{firstOffset:0,lastIndex:i-1})),c=0):c=r.firstOffset;var d=r.firstViewportIdx,f=r.endViewportIdx;l6(e,r,e.scrolling);var h=0;i>0&&(h=e.rowOffsets[r.firstViewportIdx]-c),h=rs(h,0,l),Le(e,{firstRowIndex:d,firstRowOffset:c,endRowIndex:f,maxScrollY:l,scrollY:h})}function fp(e,t){var r=vu(e),n=r.bufferRowCount,o=r.maxAvailableHeight,i=e.rowSettings.rowsCount;if(i===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var a=t.firstIndex,s=t.firstOffset,l=t.lastIndex;(a>=i||l>=i)&&(l=i-1);var c=1,d=a,f=s;l!==void 0&&(c=-1,d=l,f=0);for(var h=d,m=h;h<i&&h>=0&&f<o;)f+=Lr(e,h),m=h,h+=c;var v=!1;if(f<o&&h===i&&l===void 0)for(v=!0,h=a-1;h>=0&&f<o;)f+=Lr(e,h),d=h,--h;var g=Math.min(d,m),y=Math.max(g-n,0);for(h=y;h<g;h++)Lr(e,h);var b=Math.max(d,m)+1,T=Math.min(b+n,i);for(h=b;h<T;h++)Lr(e,h);var E=Vr(e),x=E.availableHeight;if(l!==void 0||v){s=s+Math.min(x-f,0);var C=e.getInternal(),_=C.storedHeights;-1*s>=_[g]&&(g+=1,s+=_[g])}return{endBufferIdx:T,endViewportIdx:b,firstBufferIdx:y,firstOffset:s,firstViewportIdx:g}}function l6(e,t,r){var n=e.getInternal(),o=n.rowBufferSet,i=n.rowOffsetIntervalTree,a=n.storedHeights,s=t.endBufferIdx,l=t.endViewportIdx,c=t.firstBufferIdx,d=t.firstViewportIdx,f=s-c;if(f===0){e.rowOffsets={},e.rows=[];return}for(var h=r?d:c,m=r?l:s,v=[],g={},y=i.sumUntil(h),b=h;b<m;b++){g[b]=y,y+=a[b];var T=c6(b,o,h,m,f);v[T]=b}e.rows=v,e.rowOffsets=g}function c6(e,t,r,n,o){var i=t.getValuePosition(e);return i===null&&t.getSize()>=o&&(i=t.replaceFurthestValuePosition(r,n-1,e)),i===null&&(i=t.getNewPositionForValue(e)),i}var Vl={exports:{}},ta={exports:{}},xe={};/** @license React v16.13.1
248
- * react-is.production.min.js
249
- *
250
- * Copyright (c) Facebook, Inc. and its affiliates.
251
- *
252
- * This source code is licensed under the MIT license found in the
253
- * LICENSE file in the root directory of this source tree.
254
- */var nt=typeof Symbol=="function"&&Symbol.for,bu=nt?Symbol.for("react.element"):60103,wu=nt?Symbol.for("react.portal"):60106,ns=nt?Symbol.for("react.fragment"):60107,os=nt?Symbol.for("react.strict_mode"):60108,is=nt?Symbol.for("react.profiler"):60114,as=nt?Symbol.for("react.provider"):60109,ss=nt?Symbol.for("react.context"):60110,xu=nt?Symbol.for("react.async_mode"):60111,ls=nt?Symbol.for("react.concurrent_mode"):60111,cs=nt?Symbol.for("react.forward_ref"):60112,us=nt?Symbol.for("react.suspense"):60113,u6=nt?Symbol.for("react.suspense_list"):60120,ds=nt?Symbol.for("react.memo"):60115,fs=nt?Symbol.for("react.lazy"):60116,d6=nt?Symbol.for("react.block"):60121,f6=nt?Symbol.for("react.fundamental"):60117,p6=nt?Symbol.for("react.responder"):60118,h6=nt?Symbol.for("react.scope"):60119;function St(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case bu:switch(e=e.type,e){case xu:case ls:case ns:case is:case os:case us:return e;default:switch(e=e&&e.$$typeof,e){case ss:case cs:case fs:case ds:case as:return e;default:return t}}case wu:return t}}}function em(e){return St(e)===ls}xe.AsyncMode=xu;xe.ConcurrentMode=ls;xe.ContextConsumer=ss;xe.ContextProvider=as;xe.Element=bu;xe.ForwardRef=cs;xe.Fragment=ns;xe.Lazy=fs;xe.Memo=ds;xe.Portal=wu;xe.Profiler=is;xe.StrictMode=os;xe.Suspense=us;xe.isAsyncMode=function(e){return em(e)||St(e)===xu};xe.isConcurrentMode=em;xe.isContextConsumer=function(e){return St(e)===ss};xe.isContextProvider=function(e){return St(e)===as};xe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===bu};xe.isForwardRef=function(e){return St(e)===cs};xe.isFragment=function(e){return St(e)===ns};xe.isLazy=function(e){return St(e)===fs};xe.isMemo=function(e){return St(e)===ds};xe.isPortal=function(e){return St(e)===wu};xe.isProfiler=function(e){return St(e)===is};xe.isStrictMode=function(e){return St(e)===os};xe.isSuspense=function(e){return St(e)===us};xe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ns||e===ls||e===is||e===os||e===us||e===u6||typeof e=="object"&&e!==null&&(e.$$typeof===fs||e.$$typeof===ds||e.$$typeof===as||e.$$typeof===ss||e.$$typeof===cs||e.$$typeof===f6||e.$$typeof===p6||e.$$typeof===h6||e.$$typeof===d6)};xe.typeOf=St;var we={};/** @license React v16.13.1
255
- * react-is.development.js
256
- *
257
- * Copyright (c) Facebook, Inc. and its affiliates.
258
- *
259
- * This source code is licensed under the MIT license found in the
260
- * LICENSE file in the root directory of this source tree.
261
- */process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E(W){return typeof W=="string"||typeof W=="function"||W===n||W===c||W===i||W===o||W===f||W===h||typeof W=="object"&&W!==null&&(W.$$typeof===v||W.$$typeof===m||W.$$typeof===a||W.$$typeof===s||W.$$typeof===d||W.$$typeof===y||W.$$typeof===b||W.$$typeof===T||W.$$typeof===g)}function x(W){if(typeof W=="object"&&W!==null){var re=W.$$typeof;switch(re){case t:var ce=W.type;switch(ce){case l:case c:case n:case i:case o:case f:return ce;default:var ge=ce&&ce.$$typeof;switch(ge){case s:case d:case v:case m:case a:return ge;default:return re}}case r:return re}}}var C=l,_=c,k=s,O=a,D=t,F=d,H=n,R=v,A=m,B=r,j=i,L=o,I=f,z=!1;function Y(W){return z||(z=!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.")),P(W)||x(W)===l}function P(W){return x(W)===c}function V(W){return x(W)===s}function K(W){return x(W)===a}function q(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function X(W){return x(W)===d}function J(W){return x(W)===n}function ee(W){return x(W)===v}function oe(W){return x(W)===m}function ne(W){return x(W)===r}function ue(W){return x(W)===i}function ie(W){return x(W)===o}function ve(W){return x(W)===f}we.AsyncMode=C,we.ConcurrentMode=_,we.ContextConsumer=k,we.ContextProvider=O,we.Element=D,we.ForwardRef=F,we.Fragment=H,we.Lazy=R,we.Memo=A,we.Portal=B,we.Profiler=j,we.StrictMode=L,we.Suspense=I,we.isAsyncMode=Y,we.isConcurrentMode=P,we.isContextConsumer=V,we.isContextProvider=K,we.isElement=q,we.isForwardRef=X,we.isFragment=J,we.isLazy=ee,we.isMemo=oe,we.isPortal=ne,we.isProfiler=ue,we.isStrictMode=ie,we.isSuspense=ve,we.isValidElementType=E,we.typeOf=x}();process.env.NODE_ENV==="production"?ta.exports=xe:ta.exports=we;/*
262
- object-assign
263
- (c) Sindre Sorhus
264
- @license MIT
265
- */var pp=Object.getOwnPropertySymbols,g6=Object.prototype.hasOwnProperty,m6=Object.prototype.propertyIsEnumerable;function v6(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function y6(){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(i){return t[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}var b6=y6()?Object.assign:function(e,t){for(var r,n=v6(e),o,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)g6.call(r,a)&&(n[a]=r[a]);if(pp){o=pp(r);for(var s=0;s<o.length;s++)m6.call(r,o[s])&&(n[o[s]]=r[o[s]])}}return n},w6="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Cu=w6,tm=Function.call.bind(Object.prototype.hasOwnProperty),Ul=function(){};if(process.env.NODE_ENV!=="production"){var x6=Cu,Gl={},C6=tm;Ul=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}}}function rm(e,t,r,n,o){if(process.env.NODE_ENV!=="production"){for(var i in e)if(C6(e,i)){var a;try{if(typeof e[i]!="function"){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[i](t,i,n,r,null,x6)}catch(c){a=c}if(a&&!(a instanceof Error)&&Ul((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in Gl)){Gl[a.message]=!0;var l=o?o():"";Ul("Failed "+r+" type: "+a.message+(l!=null?l:""))}}}}rm.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Gl={})};var E6=rm,T6=ta.exports,S6=b6,ln=Cu,qs=tm,hp=E6,pn=function(){};process.env.NODE_ENV!=="production"&&(pn=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function Ei(){return null}var R6=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,n="@@iterator";function o(A){var B=A&&(r&&A[r]||A[n]);if(typeof B=="function")return B}var i="<<anonymous>>",a={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:f(),arrayOf:h,element:m(),elementType:v(),instanceOf:g,node:E(),objectOf:b,oneOf:y,oneOfType:T,shape:C,exact:_};function s(A,B){return A===B?A!==0||1/A===1/B:A!==A&&B!==B}function l(A,B){this.message=A,this.data=B&&typeof B=="object"?B:{},this.stack=""}l.prototype=Error.prototype;function c(A){if(process.env.NODE_ENV!=="production")var B={},j=0;function L(z,Y,P,V,K,q,X){if(V=V||i,q=q||P,X!==ln){if(t){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 ee=V+":"+P;!B[ee]&&j<3&&(pn("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+V+"`. 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."),B[ee]=!0,j++)}}return Y[P]==null?z?Y[P]===null?new l("The "+K+" `"+q+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new l("The "+K+" `"+q+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:A(Y,P,V,K,q)}var I=L.bind(null,!1);return I.isRequired=L.bind(null,!0),I}function d(A){function B(j,L,I,z,Y,P){var V=j[L],K=D(V);if(K!==A){var q=F(V);return new l("Invalid "+z+" `"+Y+"` of type "+("`"+q+"` supplied to `"+I+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return c(B)}function f(){return c(Ei)}function h(A){function B(j,L,I,z,Y){if(typeof A!="function")return new l("Property `"+Y+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var P=j[L];if(!Array.isArray(P)){var V=D(P);return new l("Invalid "+z+" `"+Y+"` of type "+("`"+V+"` supplied to `"+I+"`, expected an array."))}for(var K=0;K<P.length;K++){var q=A(P,K,I,z,Y+"["+K+"]",ln);if(q instanceof Error)return q}return null}return c(B)}function m(){function A(B,j,L,I,z){var Y=B[j];if(!e(Y)){var P=D(Y);return new l("Invalid "+I+" `"+z+"` of type "+("`"+P+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return c(A)}function v(){function A(B,j,L,I,z){var Y=B[j];if(!T6.isValidElementType(Y)){var P=D(Y);return new l("Invalid "+I+" `"+z+"` of type "+("`"+P+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return c(A)}function g(A){function B(j,L,I,z,Y){if(!(j[L]instanceof A)){var P=A.name||i,V=R(j[L]);return new l("Invalid "+z+" `"+Y+"` of type "+("`"+V+"` supplied to `"+I+"`, expected ")+("instance of `"+P+"`."))}return null}return c(B)}function y(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?pn("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])."):pn("Invalid argument supplied to oneOf, expected an array.")),Ei;function B(j,L,I,z,Y){for(var P=j[L],V=0;V<A.length;V++)if(s(P,A[V]))return null;var K=JSON.stringify(A,function(X,J){var ee=F(J);return ee==="symbol"?String(J):J});return new l("Invalid "+z+" `"+Y+"` of value `"+String(P)+"` "+("supplied to `"+I+"`, expected one of "+K+"."))}return c(B)}function b(A){function B(j,L,I,z,Y){if(typeof A!="function")return new l("Property `"+Y+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var P=j[L],V=D(P);if(V!=="object")return new l("Invalid "+z+" `"+Y+"` of type "+("`"+V+"` supplied to `"+I+"`, expected an object."));for(var K in P)if(qs(P,K)){var q=A(P,K,I,z,Y+"."+K,ln);if(q instanceof Error)return q}return null}return c(B)}function T(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&pn("Invalid argument supplied to oneOfType, expected an instance of array."),Ei;for(var B=0;B<A.length;B++){var j=A[B];if(typeof j!="function")return pn("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(j)+" at index "+B+"."),Ei}function L(I,z,Y,P,V){for(var K=[],q=0;q<A.length;q++){var X=A[q],J=X(I,z,Y,P,V,ln);if(J==null)return null;J.data&&qs(J.data,"expectedType")&&K.push(J.data.expectedType)}var ee=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new l("Invalid "+P+" `"+V+"` supplied to "+("`"+Y+"`"+ee+"."))}return c(L)}function E(){function A(B,j,L,I,z){return k(B[j])?null:new l("Invalid "+I+" `"+z+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return c(A)}function x(A,B,j,L,I){return new l((A||"React class")+": "+B+" type `"+j+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function C(A){function B(j,L,I,z,Y){var P=j[L],V=D(P);if(V!=="object")return new l("Invalid "+z+" `"+Y+"` of type `"+V+"` "+("supplied to `"+I+"`, expected `object`."));for(var K in A){var q=A[K];if(typeof q!="function")return x(I,z,Y,K,F(q));var X=q(P,K,I,z,Y+"."+K,ln);if(X)return X}return null}return c(B)}function _(A){function B(j,L,I,z,Y){var P=j[L],V=D(P);if(V!=="object")return new l("Invalid "+z+" `"+Y+"` of type `"+V+"` "+("supplied to `"+I+"`, expected `object`."));var K=S6({},j[L],A);for(var q in K){var X=A[q];if(qs(A,q)&&typeof X!="function")return x(I,z,Y,q,F(X));if(!X)return new l("Invalid "+z+" `"+Y+"` key `"+q+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(j[L],null," ")+`
266
- Valid keys: `+JSON.stringify(Object.keys(A),null," "));var J=X(P,q,I,z,Y+"."+q,ln);if(J)return J}return null}return c(B)}function k(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(k);if(A===null||e(A))return!0;var B=o(A);if(B){var j=B.call(A),L;if(B!==A.entries){for(;!(L=j.next()).done;)if(!k(L.value))return!1}else for(;!(L=j.next()).done;){var I=L.value;if(I&&!k(I[1]))return!1}}else return!1;return!0;default:return!1}}function O(A,B){return A==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function D(A){var B=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":O(B,A)?"symbol":B}function F(A){if(typeof A=="undefined"||A===null)return""+A;var B=D(A);if(B==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return B}function H(A){var B=F(A);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function R(A){return!A.constructor||!A.constructor.name?i:A.constructor.name}return a.checkPropTypes=hp,a.resetWarningCache=hp.resetWarningCache,a.PropTypes=a,a},_6=Cu;function nm(){}function om(){}om.resetWarningCache=nm;var M6=function(){function e(n,o,i,a,s,l){if(l!==_6){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:om,resetWarningCache:nm};return r.PropTypes=r,r};if(process.env.NODE_ENV!=="production"){var O6=ta.exports,k6=!0;Vl.exports=R6(O6.isElement,k6)}else Vl.exports=M6();var M=Vl.exports,A6=/\//g,Ti={};function I6(e){return Ti[e]||(Ti[e]=e.replace(A6,"_")),Ti[e]}function ae(e){var t;return ar(e)=="object"?t=Object.keys(e).filter(function(r){return e[r]}):t=Array.prototype.slice.call(arguments),t.map(I6).join(" ")}function ps(e){return function(){return e}}function rt(){}rt.thatReturns=ps;rt.thatReturnsFalse=ps(!1);rt.thatReturnsTrue=ps(!0);rt.thatReturnsNull=ps(null);rt.thatReturnsThis=function(){return this};rt.thatReturnsArgument=function(e){return e};var Vt={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},gp=!1,Dr,Yl,ql,Fi,ji,im,Bi,Xl,Kl,Ql,am,Zl,Jl,sm,lm;function pt(){if(!gp){gp=!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(Zl=/\b(iPhone|iP[ao]d)/.exec(e),Jl=/\b(iP[ao]d)/.exec(e),Ql=/Android/i.exec(e),sm=/FBAN\/\w+;/i.exec(e),lm=/Mobile/i.exec(e),am=!!/Win64/.exec(e),t){Dr=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Dr&&document&&document.documentMode&&(Dr=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);im=n?parseFloat(n[1])+4:Dr,Yl=t[2]?parseFloat(t[2]):NaN,ql=t[3]?parseFloat(t[3]):NaN,Fi=t[4]?parseFloat(t[4]):NaN,Fi?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),ji=t&&t[1]?parseFloat(t[1]):NaN):ji=NaN}else Dr=Yl=ql=ji=Fi=NaN;if(r){if(r[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Bi=o?parseFloat(o[1].replace("_",".")):!0}else Bi=!1;Xl=!!r[2],Kl=!!r[3]}else Bi=Xl=Kl=!1}}var ec={ie:function(){return pt()||Dr},ieCompatibilityMode:function(){return pt()||im>Dr},ie64:function(){return ec.ie()&&am},firefox:function(){return pt()||Yl},opera:function(){return pt()||ql},webkit:function(){return pt()||Fi},safari:function(){return ec.webkit()},chrome:function(){return pt()||ji},windows:function(){return pt()||Xl},osx:function(){return pt()||Bi},linux:function(){return pt()||Kl},iphone:function(){return pt()||Zl},mobile:function(){return pt()||Zl||Jl||Ql||lm},nativeApp:function(){return pt()||sm},android:function(){return pt()||Ql},ipad:function(){return pt()||Jl}},Si=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Eu={canUseDOM:Si,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:Si&&!!(window.addEventListener||window.attachEvent),canUseViewport:Si&&!!window.screen,isInWorker:!Si},cm;Eu.canUseDOM&&(cm=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
267
- * Checks if an event is supported in the current execution environment.
268
- *
269
- * NOTE: This will not work correctly for non-generic events such as `change`,
270
- * `reset`, `load`, `error`, and `select`.
271
- *
272
- * Borrows from Modernizr.
273
- *
274
- * @param {string} eventNameSuffix Event name, e.g. "click".
275
- * @param {?boolean} capture Check if the capture phase is supported.
276
- * @return {boolean} True if the event is supported.
277
- * @internal
278
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
279
- */function P6(e,t){if(!Eu.canUseDOM||t)return!1;var r="on"+e,n=r in document;if(!n){var o=document.createElement("div");o.setAttribute(r,"return;"),n=typeof o[r]=="function"}return!n&&cm&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var mp=10,vp=40,yp=800;function um(e){var t=0,r=0,n=0,o=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*mp,o=r*mp,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||o)&&e.deltaMode&&(e.deltaMode==1?(n*=vp,o*=vp):(n*=yp,o*=yp)),n&&!t&&(t=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:o}}um.getEventType=function(){return ec.firefox()?"DOMMouseScroll":P6("wheel")?"wheel":"mousewheel"};var D6=ct.requestAnimationFrame||ct.webkitRequestAnimationFrame||ct.mozRequestAnimationFrame||ct.oRequestAnimationFrame||ct.msRequestAnimationFrame,bp=0,yr=D6||function(e){var t=Date.now(),r=Math.max(0,16-(t-bp));return bp=t+r,ct.setTimeout(function(){e(Date.now())},r)};yr(rt);var dm=function(){function e(t,r,n,o,i,a){Ae(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?rt.thatReturnsTrue:rt.thatReturnsFalse),typeof n!="function"&&(n=n?rt.thatReturnsTrue:rt.thatReturnsFalse),this._handleScrollX=r,this._handleScrollY=n,this._preventDefault=i,this._stopPropagation=a,this._onWheelCallback=t,this.onWheel=this.onWheel.bind(this),this._isRTL=o}return Ie(e,[{key:"onWheel",value:function(r){this._preventDefault&&r.preventDefault();var n=um(r);r.shiftKey&&e._allowInternalAxesSwap()?n=e._swapNormalizedWheelAxis(n):r.shiftKey||(n.pixelX*=this._isRTL?-1:1);var o=this._deltaX+n.pixelX,i=this._deltaY+n.pixelY,a=this._handleScrollX(o,i),s=this._handleScrollY(i,o);if(!(!a&&!s)&&!(this._rootRef&&!this._contains(r.target))){this._deltaX+=a?n.pixelX:0,this._deltaY+=s?n.pixelY:0,r.defaultPrevented||r.preventDefault();var l;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&r.stopPropagation(),l=!0),l===!0&&this._animationFrameID===null&&(this._animationFrameID=yr(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}(),cn={listen:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t.addEventListener)return t.addEventListener(r,n,o||!1),{remove:function(){t.removeEventListener(r,n,o||!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:rt})},registerDefault:function(){}},fm=ct.cancelAnimationFrame||ct.webkitCancelAnimationFrame||ct.mozCancelAnimationFrame||ct.oCancelAnimationFrame||ct.msCancelAnimationFrame||ct.clearTimeout;function $6(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 tc={getCoordinatesFromEvent:$6},Tu=function(){function e(t,r,n,o){Ae(this,e),this._isDragging=!1,this._isTouchEnabled=o,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 Ie(e,[{key:"captureMouseMoves",value:function(r){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=cn.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=cn.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=cn.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=cn.listen(this._domNode,"touchstart",this._onMouseMove,{passive:!1}),this._eventTouchMoveToken=cn.listen(r.target,"touchmove",this._onMouseMove,{passive:!1}),this._eventTouchEndToken=cn.listen(r.target,"touchend",this._onMouseUp,{passive:!1})),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var n=tc.getCoordinatesFromEvent(r),o=n.x,i=n.y;this._x=o,this._y=i}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&&(fm(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=tc.getCoordinatesFromEvent(r),o=n.x,i=n.y;this._deltaX+=o-this._x,this._deltaY+=i-this._y,this._animationFrameID===null&&(this._animationFrameID=yr(this._didMouseMove)),this._x=o,this._y=i,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}(),rc={"--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 hs(e){if(rc.hasOwnProperty(e))return rc[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}hs.CSS_VARS=rc;var N6=/-(.)/g;function L6(e){return e.replace(N6,function(t,r){return r.toUpperCase()})}var Xs={},nc=["Webkit","ms","Moz","O"],F6=new RegExp("^("+nc.join("|")+")"),pm=Eu.canUseDOM?document.createElement("div").style:{};function j6(e){for(var t=0;t<nc.length;t++){var r=nc[t]+e;if(r in pm)return r}return null}function mn(e){var t=L6(e);if(Xs[t]===void 0){var r=t.charAt(0).toUpperCase()+t.slice(1);F6.test(r)&&Yt(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",e),Xs[t]=t in pm?t:j6(r)}return Xs[t]}var oc={hasCSSAnimations:function(){return!!mn("animationName")},hasCSSTransforms:function(){return!!mn("transform")},hasCSS3DTransforms:function(){return!!mn("perspective")},hasCSSTransitions:function(){return!!mn("transition")}},wp=mn("transform");mn("backfaceVisibility");var B6=function(){if(oc.hasCSSTransforms()){var e=ct.window?ct.window.navigator.userAgent:"UNKNOWN",t=/Safari\//.test(e)&&!/Chrome\//.test(e);return!t&&oc.hasCSS3DTransforms()?function(r,n,o){r[wp]="translate3d("+n+"px,"+o+"px,0)"}:function(r,n,o){r[wp]="translate("+n+"px,"+o+"px)"}}else return function(r,n,o){r.left=n+"px",r.top=o+"px"}}();function En(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;e.display!=="none"&&(n?(e.left=t+"px",e.top=r+"px"):(oc.hasCSSTransforms()&&(t*=o?-1:1),e.left=0,B6(e,t,r)),o&&(e.right=e.left,e.left="auto"))}function H6(e){var t=z6();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function z6(){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 W6={position:0,scrollable:!1},hm=parseInt(hs("--scrollbar-face-margin"),10),xp=hm*2,Ks=30,gm=40,xt=function(e){Ke(r,e);var t=H6(r);function r(n){var o;return Ae(this,r),o=t.call(this,n),G(Q(o),"_onRefFace",function(i){return o._faceRef=i}),G(Q(o),"_onRefRoot",function(i){return o._rootRef=i}),G(Q(o),"scrollBy",function(i){o._onWheel(i)}),G(Q(o),"_shouldHandleX",function(i){return o.props.orientation==="horizontal"?o._shouldHandleChange(i):!1}),G(Q(o),"_shouldHandleY",function(i){return o.props.orientation!=="horizontal"?o._shouldHandleChange(i):!1}),G(Q(o),"_shouldHandleChange",function(i){var a=o._calculateState(o.state.position+i,o.props.size,o.props.contentSize,o.props.orientation);return a.position!==o.state.position}),G(Q(o),"_calculateState",function(i,a,s,l){var c=Math.max(1,a);if(s<=c)return W6;var d="".concat(i,"_").concat(c,"_").concat(s,"_").concat(l);if(o._stateKey===d)return o._stateForKey;var f=l==="horizontal",h=c/s,m=c*h;m<Ks&&(h=(c-Ks)/(s-c),m=Ks);var v=!0,g=s-c;i<0?i=0:i>g&&(i=g);var y={faceSize:m,isHorizontal:f,position:i,scale:h,scrollable:v};return o._stateKey=d,o._stateForKey=y,y}),G(Q(o),"_onWheelY",function(i,a){o._onWheel(a)}),G(Q(o),"_onWheelX",function(i,a){o._onWheel(i)}),G(Q(o),"_onWheel",function(i){var a=o.props;o._setNextState(o._calculateState(o.state.position+i,a.size,a.contentSize,a.orientation))}),G(Q(o),"_onMouseDown",function(i){o.setState({isDragging:!0});var a;if(i.target!==o._faceRef){var s,l,c,d,f=i.nativeEvent,h=o.state.isHorizontal?(s=(l=f.offsetX)!==null&&l!==void 0?l:f.layerX)!==null&&s!==void 0?s:o.getTouchX(f):(c=(d=f.offsetY)!==null&&d!==void 0?d:f.layerY)!==null&&c!==void 0?c:o.getTouchY(f),m=o.props;h/=o.state.scale,a=o._calculateState(h-o.state.faceSize*.5/o.state.scale,m.size,m.contentSize,m.orientation)}else a={};o._setNextState(a),o._mouseMoveTracker.captureMouseMoves(i),o._rootRef.focus()}),G(Q(o),"_onTouchCancel",function(i){i.stopPropagation()}),G(Q(o),"_onTouchEnd",function(i){i.stopPropagation()}),G(Q(o),"_onTouchMove",function(i){i.stopPropagation()}),G(Q(o),"_onTouchStart",function(i){i.stopPropagation(),o._onMouseDown(i)}),G(Q(o),"_onMouseMove",function(i,a){var s=o.props,l=o.state.isHorizontal?i*(o.props.isRTL?-1:1):a;l/=o.state.scale;var c=wt.flushSync||function(d){return d()};c(function(){return o._setNextState(o._calculateState(o.state.position+l,s.size,s.contentSize,s.orientation))})}),G(Q(o),"_onMouseMoveEnd",function(){o._nextState=null,o._mouseMoveTracker.releaseMouseMoves(),o.setState({isDragging:!1})}),G(Q(o),"_onKeyDown",function(i){var a=i.keyCode;if(a!==Vt.TAB){var s=gm,l=0;if(o.state.isHorizontal)switch(a){case Vt.HOME:l=-1,s=o.props.contentSize;break;case Vt.LEFT:l=-1;break;case Vt.RIGHT:l=1;break;default:return}if(!o.state.isHorizontal)switch(a){case Vt.SPACE:i.shiftKey?l=-1:l=1;break;case Vt.HOME:l=-1,s=o.props.contentSize;break;case Vt.UP:l=-1;break;case Vt.DOWN:l=1;break;case Vt.PAGE_UP:l=-1,s=o.props.size;break;case Vt.PAGE_DOWN:l=1,s=o.props.size;break;default:return}i.preventDefault();var c=o.props;o._setNextState(o._calculateState(o.state.position+s*l,c.size,c.contentSize,c.orientation))}}),G(Q(o),"getTouchX",function(i){return Math.round(i.targetTouches[0].clientX-i.target.getBoundingClientRect().x)}),G(Q(o),"getTouchY",function(i){return Math.round(i.targetTouches[0].clientY-i.target.getBoundingClientRect().y)}),G(Q(o),"_setNextState",function(i,a){a=a||o.props;var s=a.position,l=o.state.position!==i.position;if(s===void 0){var c=l?o._didScroll:void 0;o.setState(i,c)}else if(s===i.position)o.setState(i);else{i.position!==void 0&&i.position!==o.state.position&&o.props.onScroll(i.position);return}}),G(Q(o),"_didScroll",function(){o.props.onScroll(o.state.position)}),o.state=o._calculateState(n.position||n.defaultPosition||0,n.size,n.contentSize,n.orientation),o._initialRender=!0,o}return Ie(r,[{key:"componentDidUpdate",value:function(){var o=this.props.position;o===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState(o,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var o=this.props.size,i,a,s=this.state.isHorizontal,l=!s,c=this.state.isDragging,d=this.state.faceSize,f=this.props.isOpaque,h=this.props.verticalTop||0,m=ae({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":l,"ScrollbarLayout/mainHorizontal":s,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":f,"public/Scrollbar/mainActive":c}),v=ae({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":s,"ScrollbarLayout/faceVertical":l,"public/Scrollbar/faceActive":c,"public/Scrollbar/face":!0}),g=this.state.position*this.state.scale+hm;return s?(i={width:o},a={width:d-xp,top:0,bottom:0},En(a,g,0,this._initialRender,this.props.isRTL)):(i={top:h,height:o},this.props.isRTL&&(i.left=i.right||0,i.right="auto"),a={height:d-xp},En(a,0,g,this._initialRender,this.props.isRTL),a.left=0,a.right=0),i.touchAction="none",i.zIndex=this.props.zIndex,this.props.trackColor==="gray"&&(i.backgroundColor=hs("--fbui-desktop-background-light")),S.createElement("div",{onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onTouchCancel:this._onTouchCancel,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,className:m,style:i,ref:this._onRefRoot},S.createElement("div",{ref:this._onRefFace,className:v,style:a}))}},{key:"componentDidMount",value:function(){var o=this.props.orientation==="horizontal",i=o?this._onWheelX:this._onWheelY;this._wheelHandler=new dm(i,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new Tu(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}(S.PureComponent);G(xt,"propTypes",{contentSize:M.number.isRequired,defaultPosition:M.number,isOpaque:M.bool,orientation:M.oneOf(["vertical","horizontal"]),onScroll:M.func,position:M.number,size:M.number.isRequired,trackColor:M.oneOf(["gray"]),touchEnabled:M.bool,zIndex:M.number,verticalTop:M.number,isRTL:M.bool});G(xt,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:rt,orientation:"vertical",zIndex:99});xt.KEYBOARD_SCROLL_AMOUNT=gm;xt.SIZE=parseInt(hs("--scrollbar-size"),10);xt.OFFSET=1;function Ze(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 o=J6[e],i=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function sr(e){return!!e&&!!e[De]}function Tr(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)===eD}(e)||Array.isArray(e)||!!e[Mp]||!!e.constructor[Mp]||Su(e)||Ru(e))}function V6(e){return sr(e)||Ze(23,e),e[De].t}function Ur(e,t,r){r===void 0&&(r=!1),jn(e)===0?(r?Object.keys:xn)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function jn(e){var t=e[De];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Su(e)?2:Ru(e)?3:0}function wn(e,t){return jn(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function U6(e,t){return jn(e)===2?e.get(t):e[t]}function mm(e,t,r){var n=jn(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function vm(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Su(e){return Q6&&e instanceof Map}function Ru(e){return Z6&&e instanceof Set}function hr(e){return e.o||e.t}function _u(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=bm(e);delete t[De];for(var r=xn(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Mu(e,t){return t===void 0&&(t=!1),Ou(e)||sr(e)||!Tr(e)||(jn(e)>1&&(e.set=e.add=e.clear=e.delete=G6),Object.freeze(e),t&&Ur(e,function(r,n){return Mu(n,!0)},!0)),e}function G6(){Ze(2)}function Ou(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Xt(e){var t=lc[e];return t||Ze(18,e),t}function Y6(e,t){lc[e]||(lc[e]=t)}function ic(){return process.env.NODE_ENV==="production"||Tn||Ze(0),Tn}function Qs(e,t){t&&(Xt("Patches"),e.u=[],e.s=[],e.v=t)}function ra(e){ac(e),e.p.forEach(q6),e.p=null}function ac(e){e===Tn&&(Tn=e.l)}function Cp(e){return Tn={p:[],l:Tn,h:e,m:!0,_:0}}function q6(e){var t=e[De];t.i===0||t.i===1?t.j():t.O=!0}function Zs(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||Xt("ES5").S(t,e,n),n?(r[De].P&&(ra(t),Ze(4)),Tr(e)&&(e=na(t,e),t.l||oa(t,e)),t.u&&Xt("Patches").M(r[De].t,e,t.u,t.s)):e=na(t,r,[]),ra(t),t.u&&t.v(t.u,t.s),e!==ym?e:void 0}function na(e,t,r){if(Ou(t))return t;var n=t[De];if(!n)return Ur(t,function(i,a){return Ep(e,n,t,i,a,r)},!0),t;if(n.A!==e)return t;if(!n.P)return oa(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=_u(n.k):n.o;Ur(n.i===3?new Set(o):o,function(i,a){return Ep(e,n,o,i,a,r)}),oa(e,o,!1),r&&e.u&&Xt("Patches").R(n,r,e.u,e.s)}return n.o}function Ep(e,t,r,n,o,i){if(process.env.NODE_ENV!=="production"&&o===r&&Ze(5),sr(o)){var a=na(e,o,i&&t&&t.i!==3&&!wn(t.D,n)?i.concat(n):void 0);if(mm(r,n,a),!sr(a))return;e.m=!1}if(Tr(o)&&!Ou(o)){if(!e.h.F&&e._<1)return;na(e,o),t&&t.A.l||oa(e,o)}}function oa(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&Mu(t,r)}function Js(e,t){var r=e[De];return(r?hr(r):e)[t]}function Tp(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 mr(e){e.P||(e.P=!0,e.l&&mr(e.l))}function el(e){e.o||(e.o=_u(e.t))}function sc(e,t,r){var n=Su(t)?Xt("MapSet").N(t,r):Ru(t)?Xt("MapSet").T(t,r):e.g?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:ic(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,c=$o;a&&(l=[s],c=co);var d=Proxy.revocable(l,c),f=d.revoke,h=d.proxy;return s.k=h,s.j=f,h}(t,r):Xt("ES5").J(t,r);return(r?r.A:ic()).p.push(n),n}function X6(e){return sr(e)||Ze(22,e),function t(r){if(!Tr(r))return r;var n,o=r[De],i=jn(r);if(o){if(!o.P&&(o.i<4||!Xt("ES5").K(o)))return o.t;o.I=!0,n=Sp(r,i),o.I=!1}else n=Sp(r,i);return Ur(n,function(a,s){o&&U6(o.t,a)===s||mm(n,a,t(s))}),i===3?new Set(n):n}(e)}function Sp(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _u(e)}function K6(){function e(a,s){var l=i[a];return l?l.enumerable=s:i[a]=l={configurable:!0,enumerable:s,get:function(){var c=this[De];return process.env.NODE_ENV!=="production"&&o(c),$o.get(c,a)},set:function(c){var d=this[De];process.env.NODE_ENV!=="production"&&o(d),$o.set(d,a,c)}},l}function t(a){for(var s=a.length-1;s>=0;s--){var l=a[s][De];if(!l.P)switch(l.i){case 5:n(l)&&mr(l);break;case 4:r(l)&&mr(l)}}}function r(a){for(var s=a.t,l=a.k,c=xn(l),d=c.length-1;d>=0;d--){var f=c[d];if(f!==De){var h=s[f];if(h===void 0&&!wn(s,f))return!0;var m=l[f],v=m&&m[De];if(v?v.t!==h:!vm(m,h))return!0}}var g=!!s[De];return c.length!==xn(s).length+(g?0:1)}function n(a){var s=a.k;if(s.length!==a.t.length)return!0;var l=Object.getOwnPropertyDescriptor(s,s.length-1);if(l&&!l.get)return!0;for(var c=0;c<s.length;c++)if(!s.hasOwnProperty(c))return!0;return!1}function o(a){a.O&&Ze(3,JSON.stringify(hr(a)))}var i={};Y6("ES5",{J:function(a,s){var l=Array.isArray(a),c=function(f,h){if(f){for(var m=Array(h.length),v=0;v<h.length;v++)Object.defineProperty(m,""+v,e(v,!0));return m}var g=bm(h);delete g[De];for(var y=xn(g),b=0;b<y.length;b++){var T=y[b];g[T]=e(T,f||!!g[T].enumerable)}return Object.create(Object.getPrototypeOf(h),g)}(l,a),d={i:l?5:4,A:s?s.A:ic(),P:!1,I:!1,D:{},l:s,t:a,k:c,o:null,O:!1,C:!1};return Object.defineProperty(c,De,{value:d,writable:!0}),c},S:function(a,s,l){l?sr(s)&&s[De].A===a&&t(a.p):(a.u&&function c(d){if(d&&typeof d=="object"){var f=d[De];if(f){var h=f.t,m=f.k,v=f.D,g=f.i;if(g===4)Ur(m,function(x){x!==De&&(h[x]!==void 0||wn(h,x)?v[x]||c(m[x]):(v[x]=!0,mr(f)))}),Ur(h,function(x){m[x]!==void 0||wn(m,x)||(v[x]=!1,mr(f))});else if(g===5){if(n(f)&&(mr(f),v.length=!0),m.length<h.length)for(var y=m.length;y<h.length;y++)v[y]=!1;else for(var b=h.length;b<m.length;b++)v[b]=!0;for(var T=Math.min(m.length,h.length),E=0;E<T;E++)m.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&c(m[E])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var Rp,Tn,ku=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Q6=typeof Map!="undefined",Z6=typeof Set!="undefined",_p=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",ym=ku?Symbol.for("immer-nothing"):((Rp={})["immer-nothing"]=!0,Rp),Mp=ku?Symbol.for("immer-draftable"):"__$immer_draftable",De=ku?Symbol.for("immer-state"):"__$immer_state",J6={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"},eD=""+Object.prototype.constructor,xn=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,bm=Object.getOwnPropertyDescriptors||function(e){var t={};return xn(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},lc={},$o={get:function(e,t){if(t===De)return e;var r=hr(e);if(!wn(r,t))return function(o,i,a){var s,l=Tp(i,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!Tr(n)?n:n===Js(e.t,t)?(el(e),e.o[t]=sc(e.A.h,n,e)):n},has:function(e,t){return t in hr(e)},ownKeys:function(e){return Reflect.ownKeys(hr(e))},set:function(e,t,r){var n=Tp(hr(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=Js(hr(e),t),i=o==null?void 0:o[De];if(i&&i.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(vm(r,o)&&(r!==void 0||wn(e.t,t)))return!0;el(e),mr(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 Js(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,el(e),mr(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=hr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Ze(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ze(12)}},co={};Ur($o,function(e,t){co[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),co.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ze(13),co.set.call(this,e,t,void 0)},co.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ze(14),$o.set.call(this,e[0],t,r,e[0])};var tD=function(){function e(r){var n=this;this.g=_p,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var l=n;return function(g){var y=this;g===void 0&&(g=s);for(var b=arguments.length,T=Array(b>1?b-1:0),E=1;E<b;E++)T[E-1]=arguments[E];return l.produce(g,function(x){var C;return(C=i).call.apply(C,[y,x].concat(T))})}}var c;if(typeof i!="function"&&Ze(6),a!==void 0&&typeof a!="function"&&Ze(7),Tr(o)){var d=Cp(n),f=sc(n,o,void 0),h=!0;try{c=i(f),h=!1}finally{h?ra(d):ac(d)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(g){return Qs(d,a),Zs(g,d)},function(g){throw ra(d),g}):(Qs(d,a),Zs(c,d))}if(!o||typeof o!="object"){if((c=i(o))===void 0&&(c=o),c===ym&&(c=void 0),n.F&&Mu(c,!0),a){var m=[],v=[];Xt("Patches").M(o,c,m,v),a(m,v)}return c}Ze(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(c){for(var d=arguments.length,f=Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];return n.produceWithPatches(c,function(m){return o.apply(void 0,[m].concat(f))})};var a,s,l=n.produce(o,i,function(c,d){a=c,s=d});return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(c){return[c,a,s]}):[l,a,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Tr(r)||Ze(8),sr(r)&&(r=X6(r));var n=Cp(this),o=sc(this,r,void 0);return o[De].C=!0,ac(n),o},t.finishDraft=function(r,n){var o=r&&r[De];process.env.NODE_ENV!=="production"&&(o&&o.C||Ze(9),o.I&&Ze(10));var i=o.A;return Qs(i,n),Zs(void 0,i)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!_p&&Ze(20),this.g=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Xt("Patches").$;return sr(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Et=new tD,rD=Et.produce;Et.produceWithPatches.bind(Et);Et.setAutoFreeze.bind(Et);Et.setUseProxies.bind(Et);Et.applyPatches.bind(Et);Et.createDraft.bind(Et);Et.finishDraft.bind(Et);var Hi=rD;function wm(e){var t=function(n){var o=n.dispatch,i=n.getState;return function(a){return function(s){return typeof s=="function"?s(o,i,e):a(s)}}};return t}var xm=wm();xm.withExtraArgument=wm;var Op=xm,nD=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},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)}}(),ia=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},oD=Object.defineProperty,kp=Object.getOwnPropertySymbols,iD=Object.prototype.hasOwnProperty,aD=Object.prototype.propertyIsEnumerable,Ap=function(e,t,r){return t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},No=function(e,t){for(var r in t||(t={}))iD.call(t,r)&&Ap(e,r,t[r]);if(kp)for(var n=0,o=kp(t);n<o.length;n++){var r=o[n];aD.call(t,r)&&Ap(e,r,t[r])}return e},sD=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ji:Ji.apply(null,arguments)};function Cm(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 Em(e,t){var r=0;return{measureTime:function(n){var o=Date.now();try{return n()}finally{var i=Date.now();r+=i-o}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
280
- 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.
281
- It is disabled in production builds, so you don't need to worry about that.`)}}}var lD=function(e){nD(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}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,ia([void 0],r[0].concat(this)))):new(t.bind.apply(t,ia([void 0],r.concat(this))))},t}(Array),cD=process.env.NODE_ENV==="production",Ip="Invariant failed";function Pp(e,t){if(!e)throw cD?new Error(Ip):new Error(Ip+": "+(t||""))}function uD(e,t,r,n){return JSON.stringify(e,dD(t,n),r)}function dD(e,t){var r=[],n=[];return t||(t=function(o,i){return r[0]===i?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(i)).join(".")+"]"}),function(o,i){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,o):n.push(o),~r.indexOf(i)&&(i=t.call(this,o,i))}else r.push(i);return e==null?i:e.call(this,o,i)}}function fD(e){return typeof e!="object"||e===null||typeof e=="undefined"||Object.isFrozen(e)}function pD(e,t,r){var n=Tm(e,t,r);return{detectMutations:function(){return Sm(e,t,n,r)}}}function Tm(e,t,r,n){t===void 0&&(t=[]),n===void 0&&(n="");var o={value:r};if(!e(r)){o.children={};for(var i in r){var a=n?n+"."+i:i;t.length&&t.indexOf(a)!==-1||(o.children[i]=Tm(e,t,r[i],a))}}return o}function Sm(e,t,r,n,o,i){t===void 0&&(t=[]),o===void 0&&(o=!1),i===void 0&&(i="");var a=r?r.value:void 0,s=a===n;if(o&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(a)||e(n))return{wasMutated:!1};var l={};for(var c in r.children)l[c]=!0;for(var c in n)l[c]=!0;for(var c in l){var d=i?i+"."+c:c;if(!(t.length&&t.indexOf(d)!==-1)){var f=Sm(e,t,r.children[c],n[c],s,d);if(f.wasMutated)return f}}return{wasMutated:!1}}function hD(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(l){return function(c){return l(c)}}};var t=e.isImmutable,r=t===void 0?fD:t,n=e.ignoredPaths,o=e.warnAfter,i=o===void 0?32:o,a=e.ignore;n=n||a;var s=pD.bind(null,r,n);return function(l){var c=l.getState,d=c(),f=s(d),h;return function(m){return function(v){var g=Em(i,"ImmutableStateInvariantMiddleware");g.measureTime(function(){d=c(),h=f.detectMutations(),f=s(d),Pp(!h.wasMutated,"A state mutation was detected between dispatches, in the path '"+(h.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var y=m(v);return g.measureTime(function(){d=c(),h=f.detectMutations(),f=s(d),h.wasMutated&&Pp(!h.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(h.path||"")+". Take a look at the reducer(s) handling the action "+uD(v)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),g.warnIfExceeded(),y}}}}function Rm(e){var t=typeof e;return t==="undefined"||e===null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Cm(e)}function cc(e,t,r,n,o){t===void 0&&(t=""),r===void 0&&(r=Rm),o===void 0&&(o=[]);var i;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var a=n!=null?n(e):Object.entries(e),s=o.length>0,l=0,c=a;l<c.length;l++){var d=c[l],f=d[0],h=d[1],m=t?t+"."+f:f;if(!(s&&o.indexOf(m)>=0)){if(!r(h))return{keyPath:m,value:h};if(typeof h=="object"&&(i=cc(h,m,r,n,o),i))return i}}return!1}function gD(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(y){return function(b){return y(b)}}};var t=e.isSerializable,r=t===void 0?Rm:t,n=e.getEntries,o=e.ignoredActions,i=o===void 0?[]:o,a=e.ignoredActionPaths,s=a===void 0?["meta.arg","meta.baseQueryMeta"]:a,l=e.ignoredPaths,c=l===void 0?[]:l,d=e.warnAfter,f=d===void 0?32:d,h=e.ignoreState,m=h===void 0?!1:h,v=e.ignoreActions,g=v===void 0?!1:v;return function(y){return function(b){return function(T){var E=b(T),x=Em(f,"SerializableStateInvariantMiddleware");return!g&&!(i.length&&i.indexOf(T.type)!==-1)&&x.measureTime(function(){var C=cc(T,"",r,n,s);if(C){var _=C.keyPath,k=C.value;console.error("A non-serializable value was detected in an action, in the path: `"+_+"`. Value:",k,`
282
- Take a look at the logic that dispatched this action: `,T,`
283
- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
284
- (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),m||(x.measureTime(function(){var C=y.getState(),_=cc(C,"",r,n,c);if(_){var k=_.keyPath,O=_.value;console.error("A non-serializable value was detected in the state, in the path: `"+k+"`. Value:",O,`
285
- Take a look at the reducer(s) handling this action type: `+T.type+`.
286
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),x.warnIfExceeded()),E}}}}function tl(e){return typeof e=="boolean"}function mD(){return function(t){return vD(t)}}function vD(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,o=n===void 0?!0:n,i=e.serializableCheck,a=i===void 0?!0:i,s=new lD;if(r&&(tl(r)?s.push(Op):s.push(Op.withExtraArgument(r.extraArgument))),process.env.NODE_ENV!=="production"){if(o){var l={};tl(o)||(l=o),s.unshift(hD(l))}if(a){var c={};tl(a)||(c=a),s.push(gD(c))}}return s}var rl=process.env.NODE_ENV==="production";function yD(e){var t=mD(),r=e||{},n=r.reducer,o=n===void 0?void 0:n,i=r.middleware,a=i===void 0?t():i,s=r.devTools,l=s===void 0?!0:s,c=r.preloadedState,d=c===void 0?void 0:c,f=r.enhancers,h=f===void 0?void 0:f,m;if(typeof o=="function")m=o;else if(Cm(o))m=PM(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=a;if(typeof v=="function"&&(v=v(t),!rl&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!rl&&v.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=DM.apply(void 0,v),y=Ji;l&&(y=sD(No({trace:!rl},typeof l=="object"&&l)));var b=[g];Array.isArray(h)?b=ia([g],h):typeof h=="function"&&(b=h(b));var T=y.apply(void 0,b);return Ng(m,d,T)}function Lo(e,t){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return No(No({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 _m(e){var t={},r=[],n,o={addCase:function(i,a){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var s=typeof i=="string"?i:i.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,o},addMatcher:function(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:a}),o},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function bD(e){return typeof e=="function"}function wD(e,t,r,n){r===void 0&&(r=[]);var o=typeof t=="function"?_m(t):[t,r,n],i=o[0],a=o[1],s=o[2],l;if(bD(e))l=function(){return Hi(e(),function(){})};else{var c=Hi(e,function(){});l=function(){return c}}function d(f,h){f===void 0&&(f=l());var m=ia([i[h.type]],a.filter(function(v){var g=v.matcher;return g(h)}).map(function(v){var g=v.reducer;return g}));return m.filter(function(v){return!!v}).length===0&&(m=[s]),m.reduce(function(v,g){if(g)if(sr(v)){var y=v,b=g(y,h);return typeof b=="undefined"?v:b}else{if(Tr(v))return Hi(v,function(T){return g(T,h)});var b=g(v,h);if(typeof b=="undefined"){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}return v},f)}return d.getInitialState=l,d}function xD(e,t){return e+"/"+t}function CD(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:Hi(e.initialState,function(){}),n=e.reducers||{},o=Object.keys(n),i={},a={},s={};o.forEach(function(d){var f=n[d],h=xD(t,d),m,v;"reducer"in f?(m=f.reducer,v=f.prepare):m=f,i[d]=m,a[h]=m,s[d]=v?Lo(h,v):Lo(h)});function l(){var d=typeof e.extraReducers=="function"?_m(e.extraReducers):[e.extraReducers],f=d[0],h=f===void 0?{}:f,m=d[1],v=m===void 0?[]:m,g=d[2],y=g===void 0?void 0:g,b=No(No({},h),a);return wD(r,b,v,y)}var c;return{name:t,reducer:function(d,f){return c||(c=l()),c(d,f)},actions:s,caseReducers:i,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Au="listenerMiddleware";Lo(Au+"/add");Lo(Au+"/removeAll");Lo(Au+"/remove");K6();function ED(){var e=TD();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:xt.SIZE,scrollY:0,scrollbarYWidth:xt.SIZE,scrolling:!1,getInternal:function(){return e}}}function TD(){return{rowBufferSet:new Qg,rowOffsetIntervalTree:null,storedHeights:[],rowUntilOffsetsAreExact:0}}var Mm=CD({name:"FDT",initialState:{},reducers:{initialize:function(t,r){var n=r.payload;Le(t,ED()),$p(t,n),Dp(t);var o=op(t,n);Qn(t,o),dp.initialize(t,n,{})},propChange:function(t,r){var n=r.payload,o=n.newProps,i=n.oldProps,a=iP(V6(t));$p(t,o),(i.rowsCount!==o.rowsCount||i.rowHeight!==o.rowHeight||i.subRowHeight!==o.subRowHeight)&&Dp(t),i.rowsCount!==o.rowsCount&&(t.getInternal().rowBufferSet=new Qg);var s=op(t,o,i);(!Po(t,a)||s.changed)&&Qn(t,s),dp.initialize(t,o,i),(t.scrollX!==a.scrollX||t.scrollY!==a.scrollY)&&(t.scrolling=t.scrolling||!0)},scrollEnd:function(t){t.scrolling=!1;var r={firstIndex:t.firstRowIndex,firstOffset:t.firstRowOffset,lastIndex:t.lastIndex};Qn(t,r)},scrollToY:function(t,r){var n=r.payload;t.scrolling=!0;var o=Wl(t,n);Qn(t,o)},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;)Lr(t,n++);var o=t.getInternal().rowOffsetIntervalTree.sumUntil(t.firstRowIndex)-t.firstRowOffset,i=Wl(t,o);Qn(t,i)}}}});function Dp(e){for(var t=e.rowSettings,r=t.rowHeight,n=t.rowsCount,o=t.subRowHeight,i=t.rowHeightGetter,a=t.subRowHeightGetter,s=r+o,l=0,c=new Array(n),d=0;d<n;d++)e.isVerticalScrollExact?c[d]=i(d)+a(d):c[d]=s,l+=c[d];var f=new cP(c);e.scrollContentHeight=l,Le(e.getInternal(),{rowOffsetIntervalTree:f,storedHeights:c})}function $p(e,t){var r=fP(t.children),n=r.columnGroupElements,o=r.columnElements,i=r.elementTemplates,a=r.useGroupHeader;Le(e,{columnGroupElements:n,columnElements:o,elementTemplates:i,propsRevision:e.propsRevision+1,isVerticalScrollExact:t.isVerticalScrollExact}),Object.freeze(e.columnElements),Object.freeze(e.columnGroupElements),Object.freeze(e.elementTemplates),e.elementHeights=Le({},e.elementHeights,lo(t,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),a||(e.elementHeights.groupHeaderHeight=0),e.rowSettings=Le({},e.rowSettings,lo(t,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var s=e.rowSettings,l=s.rowHeight,c=s.subRowHeight;e.rowSettings.rowHeightGetter=t.rowHeightGetter||function(){return l},e.rowSettings.subRowHeightGetter=t.subRowHeightGetter||function(){return c||0},e.rowSettings.rowAttributesGetter=t.rowAttributesGetter,e.scrollFlags=Le({},e.scrollFlags,lo(t,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),e.tableSize=Le({},e.tableSize,lo(t,["height","maxHeight","ownerHeight","width"])),e.tableSize.useMaxHeight=e.tableSize.height===void 0,e.scrollbarXHeight=t.scrollbarXHeight,e.scrollbarYWidth=t.scrollbarYWidth}var SD=Mm.reducer,Bn=Mm.actions,RD=Bn.initialize,_D=Bn.propChange,MD=Bn.scrollEnd,OD=Bn.scrollToX,kD=Bn.scrollToY,AD=Bn.updateRowHeights,ID=function(t,r){var n=Lg({scrollToX:OD,scrollToY:kD,scrollEnd:MD},t.dispatch),o=function(s){var l=t.getState(),c=l.scrollX;if(s!==c){var d=Math.round(s),f=r(),h=f.onHorizontalScroll;(!h||h(d))&&n.scrollToX(d)}},i=function(s){var l=t.getState(),c=l.scrollY;if(s!==c){var d=r(),f=d.onVerticalScroll;(!f||f(s))&&n.scrollToY(s)}};return{scrollToX:o,scrollToY:i,stopScroll:n.scrollEnd}},PD=Xr,DD=Rr,$D="[object Number]";function ND(e){return typeof e=="number"||DD(e)&&PD(e)==$D}var LD=ND,FD=LD;function jD(e){return FD(e)&&e!=+e}var Np=jD;function BD(e,t,r,n,o){n=n||setTimeout,o=o||clearTimeout;var i;function a(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];a.reset();var d=function(){e.apply(r,l)};d.__SMmeta=e.__SMmeta,i=n(d,t)}return a.reset=function(){o(i)},a}function et(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 HD(e,t,r){var n=1,o=1,i=e+2,a=e+1,s=2;return t&&(o++,a++,i++,s++),r&&a++,{ariaGroupHeaderIndex:n,ariaHeaderIndex:o,ariaFooterIndex:i,ariaRowCount:a,ariaRowIndexOffset:s}}var zD=ur([function(e){return e.rowsCount},function(e){return e.groupHeaderHeight>0},function(e){return e.footerHeight>0}],HD);function WD(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(r(i[l],l,i)===!1)break}return t}}var VD=WD,UD=VD,GD=UD(),YD=GD,qD=YD,XD=Ja;function KD(e,t){return e&&qD(e,t,XD)}var QD=KD,ZD=ei;function JD(e,t){return function(r,n){if(r==null)return r;if(!ZD(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++i<o)&&n(a[i],i,a)!==!1;);return r}}var e8=JD,t8=QD,r8=e8,n8=r8(t8),o8=n8,i8=Dg;function a8(e){return typeof e=="function"?e:i8}var s8=a8,l8=Fg,c8=o8,u8=s8,d8=Ft;function f8(e,t){var r=d8(e)?l8:c8;return r(e,u8(t))}var Lp=f8;function p8(e,t){var r=e.columnGroupProps,n=e.columnProps,o=[],i=[],a=[];Lp(r,function(d,f){var h={props:d,template:t.groupHeader[f]};d.fixed?o.push(h):d.fixedRight?i.push(h):a.push(h)});var s={cell:[],header:[],footer:[]},l={cell:[],header:[],footer:[]},c={cell:[],header:[],footer:[]};return Lp(n,function(d,f){var h=c;d.fixed?h=s:d.fixedRight&&(h=l),h.cell.push({props:d,template:t.cell[f]}),h.header.push({props:d,template:t.header[f]}),h.footer.push({props:d,template:t.footer[f]})}),{fixedColumnGroups:o,fixedColumns:s,fixedRightColumnGroups:i,fixedRightColumns:l,scrollableColumnGroups:a,scrollableColumns:c}}var h8=ur([function(e){return ri(e)},function(e){return e.elementTemplates}],p8);function g8(e,t){return e==null||e!==e?t:e}var m8=g8,v8=Math.max,y8=Math.min;function b8(e,t,r){return e>=y8(t,r)&&e<v8(t,r)}var w8=b8,x8=yu,Fp=1/0,C8=17976931348623157e292;function E8(e){if(!e)return e===0?e:0;if(e=x8(e),e===Fp||e===-Fp){var t=e<0?-1:1;return t*C8}return e===e?e:0}var T8=E8,S8=w8,jp=T8,R8=yu;function _8(e,t,r){return t=jp(t),r===void 0?(r=t,t=0):r=jp(r),e=R8(e),S8(e,t,r)}var Hr=_8;function M8(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 or(e,t){if(e==null)return{};var r,n,o=M8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var O8=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function Bp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function k8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bp(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A8(e){var t=I8();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function I8(){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 aa=function(e){Ke(r,e);var t=A8(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"render",value:function(){var o=this.props,i=o.height,a=o.width,s=o.style,l=o.className,c=o.children,d=or(o,O8),f=k8({height:i,width:a},s);return S.createElement("div",Le({},d,{className:et(ae("fixedDataTableCellLayout/wrap1"),ae("public/fixedDataTableCell/wrap1"),l),style:f}),S.createElement("div",{className:et(ae("fixedDataTableCellLayout/wrap2"),ae("public/fixedDataTableCell/wrap2"))},S.createElement("div",{className:et(ae("fixedDataTableCellLayout/wrap3"),ae("public/fixedDataTableCell/wrap3"))},S.createElement("div",{className:ae("public/fixedDataTableCell/cellContent")},c))))}}]),r}(S.Component);G(aa,"propTypes",{height:M.number,width:M.number,columnKey:M.oneOfType([M.string,M.number]),rowIndex:M.number,isVisible:M.bool});function Om(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function km(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function Am(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}}Om.__suppressDeprecationWarning=!0;km.__suppressDeprecationWarning=!0;Am.__suppressDeprecationWarning=!0;function Im(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,o=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),r!==null||n!==null||o!==null){var i=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
287
-
288
- `+i+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?`
289
- `+r:"")+(n!==null?`
290
- `+n:"")+(o!==null?`
291
- `+o:"")+`
292
-
293
- The above lifecycles should be removed. Learn more about this warning here:
294
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Om,t.componentWillReceiveProps=km),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=Am;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,d,f){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,c,d,h)}}return e}var P8=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function Hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function D8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hp(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Iu=S.forwardRef(function(t,r){var n=t.height,o=t.width,i=t.style,a=t.className,s=t.children,l=or(t,P8),c=D8({height:n,width:o},i);return S.createElement("div",Le({},l,{className:et(ae("fixedDataTableCellLayout/wrap"),ae("public/fixedDataTableCell/wrap"),ae("public/fixedDataTableCell/cellContent"),a),style:c,ref:r}),s)});Iu.propTypes={height:M.number,width:M.number,columnKey:M.oneOfType([M.string,M.number]),rowIndex:M.number,isVisible:M.bool};var Sn=S.createContext({}),$8=Mg;function N8(e,t,r){var n=e==null?void 0:$8(e,t);return n===void 0?r:n}var uc=N8;function L8(e){var t=F8();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function F8(){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 zp=15,Wp=100,Pu=function(e){Ke(r,e);var t=L8(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),G(Q(n),"state",{displacement:0}),G(Q(n),"containerRef",S.createRef()),G(Q(n),"onTouchEnd",function(s){n.props.touchEnabled&&s.stopPropagation()}),G(Q(n),"onTouchMove",function(s){n.props.touchEnabled&&s.stopPropagation()}),G(Q(n),"onMouseMove",function(s){n.cursorDeltaX+=s*(n.context.isRTL?-1:1)}),G(Q(n),"onMouseUp",function(){fm(n.frameId),n.setState({displacement:0,isReordering:!1}),n.updateColumnOrder(),n.frameId=null,n.cursorDeltaX=0,n.mouseMoveTracker.releaseMouseMoves()}),G(Q(n),"initializeDOMMouseMoveTracker",function(s){n.mouseMoveTracker=new Tu(n.onMouseMove,n.onMouseUp,document.body,n.props.touchEnabled),n.mouseMoveTracker.captureMouseMoves(s)}),G(Q(n),"updateDisplacementPeriodically",function(){n.frameId=yr(n.updateDisplacementPeriodically),n.updateDisplacementWithScroll()}),G(Q(n),"getBoundedDeltaX",function(s){var l=0,c=0,d=n.props.cellGroupType,f=n.context.groupHeaderHeight>0;if(f&&!n.props.isGroupHeader){var h=n.context.getColumnGroupByChild(n.props.columnIndex);l=h.width,c=h.offset}else l=n.context.getCellGroupWidth(d);var m=l-n.props.width;return rs(s,-n.originalLeft+c,-n.originalLeft+m+c)}),G(Q(n),"updateDisplacementWithScroll",function(){var s=n.scrollStart,l=n.props.cellGroupType,c=n.context,d=c.scrollX,f=c.maxScrollX,h=c.availableScrollWidth,m=n.cursorDeltaX;if(l===le.SCROLLABLE){var v=n.originalLeft-s+m;m+=d-s,v>h-Wp?d=Math.min(d+zp,f):v<=Wp&&(d=Math.max(d-zp,0)),n.context.scrollToX(d)}m=n.getBoundedDeltaX(m),n.setState({displacement:m})}),G(Q(n),"isColumnMovedToRight",function(s){return s>0}),G(Q(n),"isColumnMovedToLeft",function(s){return s<0}),G(Q(n),"updateColumnOrder",function(){var s=n.props.cellGroupType,l=n.getBoundedDeltaX(n.cursorDeltaX+n.context.scrollX-n.scrollStart),c=l>=0?n.props.width+l+n.props.left:l+n.props.left,d,f;if(n.props.isGroupHeader){var h=n.context.getColumnGroupAtOffset(c,s),m=h.columnGroup,v=h.distanceFromOffset;d=m,f=v}else{var g=n.context.getColumnAtOffset(c,s),y=g.column,b=g.distanceFromOffset;d=y,f=b}var T=null,E=null;d.index<n.props.columnIndex?f<=d.width/2?(T=d.index-1,E=d.index):(T=d.index,E=d.index+1):f>=d.width/2?(T=d.index,E=d.index+1):(T=d.index-1,E=d.index),T===n.props.columnIndex&&--T,E===n.props.columnIndex&&++E;var x=n.props.isGroupHeader?n.context.getColumnGroupCount():n.context.getColumnCount(),C,_;Hr(T,0,x)&&(C=n.props.isGroupHeader?n.context.getColumnGroup(T):n.context.getColumn(T)),Hr(E,0,x)&&(_=n.props.isGroupHeader?n.context.getColumnGroup(E):n.context.getColumn(E)),n.props.onColumnReorderEnd({columnBefore:uc(C,"columnKey"),columnAfter:uc(_,"columnKey"),reorderColumn:n.props.columnKey})}),n}return Ie(r,[{key:"componentDidMount",value:function(){var o=this.props.contents.parentNode.cloneNode(!0);o.firstChild.classList.add(ae("public/fixedDataTableCell/reordering")),this.containerRef.current.appendChild(o),this.startDrag()}},{key:"render",value:function(){var o={position:"absolute"};return En(o,this.state.displacement,0,!0,this.context.isRTL),S.createElement("div",{style:o,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=yr(this.updateDisplacementPeriodically)}}]),r}(S.PureComponent);Pu.contextType=Sn;Pu.propTypes={columnIndex:M.number.isRequired,columnKey:M.string.isRequired,contents:M.object.isRequired,cellGroupType:M.string,isGroupHeader:M.bool,isRTL:M.bool,left:M.number.isRequired,onColumnReorderStart:M.func.isRequired,reorderStartEvent:M.object.isRequired,touchEnabled:M.bool,width:M.number.isRequired};function j8(e){var t=B8();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function B8(){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 H8=function(e){Ke(r,e);var t=j8(r);function r(n){var o;Ae(this,r),o=t.call(this,n);var i=n.value;return o.unsubscribe=i.subscribe(function(a){o.setState({FixedDataTableContextValue:a})}),o.state={FixedDataTableContextValue:i},o}return Ie(r,[{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){var o=this.state.FixedDataTableContextValue;return S.createElement(Sn.Provider,{value:o},this.props.children)}}]),r}(S.PureComponent);function z8(){}var W8=z8,V8=["onColumnReorderStart","onColumnReorderEnd","reorderStartEvent","children"];function U8(e){var t=G8();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function G8(){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 Y8=1,Fo=function(e){Ke(r,e);var t=U8(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),G(Q(n),"state",{isReordering:!1}),G(Q(n),"dragContainer",null),G(Q(n),"cellRef",S.createRef()),G(Q(n),"isMounted",!1),G(Q(n),"setReorderHandle",function(s){s&&(s.addEventListener("mousedown",n.onMouseDown,{passive:!1}),s.addEventListener("touchstart",n.onTouchStart,{passive:!1}))}),G(Q(n),"onTouchStart",function(s){n.props.touchEnabled&&n.onMouseDown(s)}),G(Q(n),"onMouseDown",function(s){n.onDragStart(s)}),G(Q(n),"onDragStart",function(s){n.createDragContainer(),n.renderDragProxy(s),n.props.onColumnReorderStart(n.props.columnKey)}),G(Q(n),"onColumnReorderEnd",function(s){n.isMounted&&n.setState({isReordering:!1}),n.removeDragContainer(),n.props.onColumnReorderEnd(s)}),G(Q(n),"createDragContainer",function(){n.dragContainer=document.createElement("div"),n.dragContainer.dataset.columnKey=n.props.columnKey;var s=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");s.appendChild(n.dragContainer)}),G(Q(n),"getDragContainer",function(){if(n.dragContainer)return n.dragContainer;var s=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");return n.dragContainer=s.querySelector('[data-column-key="'.concat(n.props.columnKey,'"]')),n.dragContainer}),G(Q(n),"removeDragContainer",function(){n.props.__react19RootCreator?n.dragContainer.root.unmount():wt.unmountComponentAtNode(n.dragContainer),n.dragContainer.remove(),n.dragContainer=null}),n}return Ie(r,[{key:"componentDidMount",value:function(){this.isMounted=!0;var o=uc(this.getDragContainer(),"dataset.columnKey"),i=_g(this.props.columnKey)===o;i&&(this.renderDragProxy({}),this.setState({isReordering:!0}))}},{key:"componentWillUnmount",value:function(){this.isMounted=!1}},{key:"render",value:function(){if(this.state.isReordering)return null;var o=this.props,i=o.children,a=or(o,V8),s=et(ae({"public/fixedDataTableCell/resizeReorderCellContainer":!0}),a.className),l=et(s,ae({"public/fixedDataTableCell/hasReorderHandle":!0})),c={height:a.height,width:a.width-Y8},d;return S.isValidElement(i)?d=S.cloneElement(i,a):typeof i=="function"?d=i(a):d=S.createElement(Iu,a,i),S.createElement("div",{className:l,style:c,ref:this.cellRef},this.renderReorderHandle(),d)}},{key:"renderReorderHandle",value:function(){var o={height:this.props.height};return S.createElement("div",{ref:this.setReorderHandle,className:ae({"fixedDataTableCellLayout/columnReorderContainer":!0,"fixedDataTableCellLayout/columnReorderContainer/active":!1}),style:o})}},{key:"renderDragProxy",value:function(o){var i=this,a={isDragProxy:!0,reorderStartEvent:o,onColumnReorderEnd:this.onColumnReorderEnd,contents:this.cellRef.current},s=S.createElement(H8,{value:this.context},S.createElement(Pu,Le({},this.props,a)));if(this.props.__react19RootCreator){var l=wt.flushSync||function(c){return c()};l(function(){var c=i.props.__react19RootCreator(i.getDragContainer());i.dragContainer.root=c,c.render(s)}),this.setState({isReordering:!0});return}wt.render(s,this.getDragContainer(),function(){return i.setState({isReordering:!0})})}}]),r}(S.PureComponent);Fo.contextType=Sn;Fo.defaultProps={onColumnReorderStart:W8};Fo.propTypes={height:M.number,width:M.number,columnKey:M.oneOfType([M.string,M.number]),rowIndex:M.number,left:M.number,touchEnabled:M.bool,minWidth:M.number,maxWidth:M.number,onColumnReorderStart:M.func,onColumnReorderEnd:M.func.isRequired,__react19RootCreator:M.func};var q8=!!(typeof window!="undefined"&&window.document&&window.document.createElement),X8=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function K8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q8(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 Z8(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 Pm=function(e){Z8(t,e);function t(){return K8(this,t),Q8(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return X8(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return q8?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),wt.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(S.Component);Pm.propTypes={children:M.node.isRequired,node:M.any};var J8=Pm,e$=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function t$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r$(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 n$(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 Dm=function(e){n$(t,e);function t(){return t$(this,t),r$(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e$(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(n){this.renderPortal()}},{key:"componentWillUnmount",value:function(){wt.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 o=this.props.children;typeof this.props.children.type=="function"&&(o=S.cloneElement(this.props.children)),this.portal=wt.unstable_renderSubtreeIntoContainer(this,o,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(S.Component),o$=Dm;Dm.propTypes={children:M.node.isRequired,node:M.any};var dc=void 0;wt.createPortal?dc=J8:dc=o$;var i$=dc;function a$(e){var t=s$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function s$(){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 $m=function(e){Ke(r,e);var t=a$(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"render",value:function(){if(!this.props.visible)return null;var o=this.getTableRef();if(!o)return null;var i={height:this.props.height,top:0,left:this.props.left};return S.createElement(i$,{node:o},S.createElement("div",{className:et(ae("fixedDataTableColumnResizerLineLayout/main"),ae("public/fixedDataTableColumnResizerLine/main")),style:i},S.createElement("div",{className:ae("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}})))}},{key:"getTableRef",value:function(){var o=this.props.parentRef;return o?o.closest(ae(".fixedDataTableLayout/main")):null}}]),r}(S.PureComponent);G($m,"propTypes",{visible:M.bool.isRequired,height:M.number.isRequired,left:M.number.isRequired,parentRef:M.object});function Vp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function l$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vp(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c$(e){var t=u$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function u$(){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 Nm=function(e){Ke(r,e);var t=c$(r);function r(n){var o;return Ae(this,r),o=t.call(this,n),G(Q(o),"initialState",{isColumnResizing:!1,currentMouseXCoordinate:0,totalDisplacement:0}),G(Q(o),"state",l$({},o.initialState)),G(Q(o),"resizerKnobRef",null),G(Q(o),"mouseMoveTracker",null),G(Q(o),"setResizerKnobRef",function(i){o.resizerKnobRef=i}),G(Q(o),"initializeDOMMouseMoveTracker",function(i){o.mouseMoveTracker=new Tu(o.onMouseMove,o.onMouseUp,document.body,o.props.touchEnabled),o.mouseMoveTracker.captureMouseMoves(i)}),G(Q(o),"onTouchStart",function(i){o.props.touchEnabled&&o.onMouseDown(i)}),G(Q(o),"onMouseDown",function(i){o.initializeDOMMouseMoveTracker(i);var a=tc.getCoordinatesFromEvent(i).x-i.currentTarget.closest(ae(".fixedDataTableLayout/main")).getBoundingClientRect().left;o.setState({initialMouseXCoordinate:a,isColumnResizing:!0,totalDisplacement:0,currentMouseXCoordinate:a})}),G(Q(o),"onMouseUp",function(){var i=o.getMinMaxWidth(),a=i.minWidth,s=i.maxWidth,l=es(o.props.width+o.state.totalDisplacement*(o.props.isRTL?-1:1),a,s);o.mouseMoveTracker.releaseMouseMoves(),o.setState({isColumnResizing:!1,totalDisplacement:0},function(){o.props.onColumnResizeEnd(l,o.props.columnKey)})}),G(Q(o),"onMouseMove",function(i){var a=o.props,s=a.isRTL,l=a.width,c=o.state,d=c.initialMouseXCoordinate,f=c.totalDisplacement,h=f+i,m=d+h,v=o.getMinMaxWidth(),g=v.minWidth,y=v.maxWidth,b=l+h*(s?-1:1);(b<g||b>y)&&(m=o.state.currentMouseXCoordinate),o.setState({totalDisplacement:h,currentMouseXCoordinate:m})}),G(Q(o),"getMinMaxWidth",function(){return{minWidth:o.props.minWidth||0,maxWidth:o.props.maxWidth||Number.MAX_SAFE_INTEGER}}),G(Q(o),"suppressEventIfInTouchMode",function(i){o.props.touchEnabled&&(i.preventDefault(),i.stopPropagation())}),o}return Ie(r,[{key:"componentDidMount",value:function(){this.setupHandlers()}},{key:"componentWillUnmount",value:function(){this.cleanupHandlers()}},{key:"render",value:function(){var o={height:this.props.height},i=S.createElement($m,{height:this.props.resizerLineHeight,visible:!!this.state.isColumnResizing,left:this.state.currentMouseXCoordinate,parentRef:this.resizerKnobRef});return S.createElement("div",{className:ae("fixedDataTableCellLayout/columnResizerContainer"),ref:this.setResizerKnobRef,style:o},i)}},{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}(S.PureComponent);Nm.propTypes={columnKey:M.oneOfType([M.string,M.number]).isRequired,minWidth:M.number,maxWidth:M.number,width:M.number.isRequired,resizerLineHeight:M.number.isRequired,touchEnabled:M.bool,isRTL:M.bool,onColumnResizeEnd:M.func.isRequired,height:M.number.isRequired};var d$=["children","minWidth","maxWidth","onColumnResizeEnd","onColumnReorderEnd","rowIndex","left","touchEnabled","cellGroupType","onColumnReorderStart"];function f$(e){var t=p$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function p$(){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 sa=function(e){Ke(r,e);var t=f$(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"render",value:function(){var o=this.props,i=o.children,a=or(o,d$),s;return S.isValidElement(i)?s=S.cloneElement(i,a):typeof i=="function"?s=i(a):s=S.createElement(Iu,a,i),S.createElement(S.Fragment,null,S.createElement(Nm,{height:this.props.height,resizerLineHeight:this.context.tableHeight,onColumnResizeEnd:this.props.onColumnResizeEnd,width:this.props.width,minWidth:this.props.minWidth,maxWidth:this.props.maxWidth,columnKey:this.props.columnKey,touchEnabled:this.props.touchEnabled,isRTL:this.context.isRTL}),s)}}]),r}(S.PureComponent);sa.contextType=Sn;sa.propTypes={columnKey:M.oneOfType([M.string,M.number]),minWidth:M.number,maxWidth:M.number,width:M.number,touchEnabled:M.bool,isRTL:M.bool,onColumnResizeEnd:M.func.isRequired,height:M.number};var h$=["cell"],g$=["cell"],m$=["height","width","columnIndex","isVisible","columnKey","isHeaderOrFooter","touchEnabled"];function Up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Up(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v$(e){var t=y$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function y$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Du=function(e){Ke(r,e);var t=v$(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"shouldComponentUpdate",value:function(o){if(o.isScrolling&&this.props.rowIndex===o.rowIndex&&this.props.isVisible===o.isVisible)return!1;if(!o.pureRendering)return!0;var i=this.props,a=i.cell,s=or(i,h$),l=o.cell,c=or(o,g$);return!Po(s,c)||!a||!l||a.type!==l.type||!Po(a.props,l.props)}},{key:"render",value:function(){var o=this.props,i=o.height,a=o.width,s=o.isVisible,l=o.isHeaderOrFooter,c=o.touchEnabled,d=or(o,m$),f={height:i,width:a};this.props.isRTL?f.right=d.left:f.left=d.left;var h=et(ae({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":d.lastChild,"fixedDataTableCellLayout/alignRight":d.align==="right","fixedDataTableCellLayout/alignCenter":d.align==="center","public/fixedDataTableCell/alignRight":d.align==="right","public/fixedDataTableCell/highlighted":d.highlighted,"public/fixedDataTableCell/main":!0}),d.className),m={touchEnabled:c,isVisible:s,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,cellGroupType:this.props.cellGroupType,columnIndex:this.props.columnIndex,columnKey:this.props.columnKey,height:this.props.height,width:this.props.width,left:this.props.left};d.rowIndex>=0&&(m.rowIndex=d.rowIndex);var v;this.props.isHeader&&(this.props.onColumnResizeEnd||this.props.onColumnReorderEnd)?this.props.onColumnResizeEnd&&this.props.onColumnReorderEnd?(m=Ri(Ri({},m),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),v=S.createElement(Fo,Le({},m,{onColumnReorderEnd:this.props.onColumnReorderEnd}),S.createElement(sa,{onColumnResizeEnd:this.props.onColumnResizeEnd},d.cell))):this.props.onColumnReorderEnd?v=S.createElement(Fo,Le({},m,{onColumnReorderEnd:this.props.onColumnReorderEnd}),d.cell):(m=Ri(Ri({},m),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),v=S.createElement(sa,Le({},m,{onColumnResizeEnd:this.props.onColumnResizeEnd}),d.cell)):S.isValidElement(d.cell)?v=S.cloneElement(d.cell,m):typeof d.cell=="function"?v=d.cell(m):v=S.createElement(aa,m,d.cell);var g=l?"columnheader":"gridcell";return S.createElement("div",{className:h,style:f,role:g},v)}}]),r}(S.Component);G(Du,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:M.bool,align:M.oneOf(["left","center","right"]),className:M.string,highlighted:M.bool,width:M.number.isRequired,minWidth:M.number,maxWidth:M.number,height:M.number.isRequired,cell:M.oneOfType([M.string,M.element,M.func]),columnKey:M.oneOfType([M.string,M.number]),rowIndex:M.number.isRequired,left:M.number,pureRendering:M.bool,touchEnabled:M.bool,isHeaderOrFooter:M.bool,isRTL:M.bool,isVisible:M.bool.isRequired,onColumnResizeEnd:M.func,onColumnReorderEnd:M.func,isHeader:M.bool,cellGroupType:M.oneOf([le.FIXED,le.FIXED_RIGHT,le.SCROLLABLE])});G(Du,"defaultProps",{align:"left",highlighted:!1});var b$=Im(Du),w$=["offsetLeft"];function Lm(e){var t=x$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function x$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Fm=function(e){Ke(r,e);var t=Lm(r);function r(n){var o;return Ae(this,r),o=t.call(this,n),G(Q(o),"_renderCell",function(i,a,s,l,c,d,f){var h=s.cellClassName,m=s.pureRendering||!1,v=s.isReorderable?o.props.onColumnReorderEndCallback:null,g=s.isResizable?o.props.onColumnResizeEndCallback:null;return S.createElement(b$,{columnIndex:s.index,isScrolling:o.props.isScrolling,isHeaderOrFooter:o.props.isHeaderOrFooter,isHeader:o.props.isHeader,isGroupHeader:o.props.isGroupHeader,align:s.align,className:h,height:a,key:d,maxWidth:s.maxWidth,minWidth:s.minWidth,touchEnabled:o.props.touchEnabled,onColumnResizeEnd:g,onColumnReorderEnd:v,rowIndex:i,columnKey:s.columnKey,width:s.width,left:c,cell:l,pureRendering:m,isRTL:o.props.isRTL,cellGroupType:o.props.cellGroupType,isVisible:o.props.isVisible&&f})}),o._initialRender=!0,o}return Ie(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var o=this.props,i=o.columns,a=new Array(i.length),s=Li(i),l=0,c=0,d=i.length;c<d;c++){var f=i[c].props,h=i[c].template,m=f.allowCellsRecycling,v=l-o.left<=o.width&&l-o.left+f.width>=0;if(!m||v){var g=f.columnKey||"cell_"+c;a[c]=this._renderCell(o.rowIndex,o.rowHeight,f,h,l,g,v)}l+=f.width}var y={height:o.height,position:"absolute",width:s,zIndex:o.zIndex};return En(y,-1*o.left,0,this._initialRender,this.props.isRTL),S.createElement("div",{className:ae("fixedDataTableCellGroupLayout/cellGroup"),style:y},a)}}]),r}(S.Component);G(Fm,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:M.array.isRequired,isScrolling:M.bool,left:M.number,height:M.number.isRequired,cellGroupWrapperHeight:M.number,rowHeight:M.number.isRequired,rowIndex:M.number.isRequired,width:M.number.isRequired,zIndex:M.number.isRequired,touchEnabled:M.bool,isHeaderOrFooter:M.bool,isRTL:M.bool,onColumnResizeEndCallback:M.func,onColumnReorderEndCallback:M.func,isHeader:M.bool,isVisible:M.bool.isRequired});var yo=function(e){Ke(r,e);var t=Lm(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"shouldComponentUpdate",value:function(o){return!(o.isScrolling&&this.props.rowIndex===o.rowIndex&&this.props.left===o.left&&this.props.offsetLeft===o.offsetLeft&&this.props.isVisible===o.isVisible)}},{key:"render",value:function(){var o=this.props,i=o.offsetLeft,a=or(o,w$),s={height:a.cellGroupWrapperHeight||a.height,width:a.width};return this.props.isRTL?s.right=i:s.left=i,S.createElement("div",{style:s,className:ae("fixedDataTableCellGroupLayout/cellGroupWrapper")},S.createElement(Fm,a))}}]),r}(S.Component);G(yo,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:M.bool,height:M.number.isRequired,offsetLeft:M.number,left:M.number,zIndex:M.number.isRequired});G(yo,"defaultProps",{left:0,offsetLeft:0});var C$=["offsetTop","zIndex"];function jm(e){var t=E$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function E$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var T$=1,Bm=function(e){Ke(r,e);var t=jm(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),G(Q(n),"mouseLeaveIndex",null),G(Q(n),"_getRowExpanded",function(s){if(n.props.rowExpanded){var l={rowIndex:n.props.index,height:s,width:n.props.width},c;return S.isValidElement(n.props.rowExpanded)?c=S.cloneElement(n.props.rowExpanded,l):typeof n.props.rowExpanded=="function"&&(c=n.props.rowExpanded(l)),c}}),G(Q(n),"_renderColumnsLeftShadow",function(s){var l=ae({"fixedDataTableRowLayout/fixedColumnsDivider":s>0,"fixedDataTableRowLayout/columnsShadow":n.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":s>0,"public/fixedDataTableRow/columnsShadow":n.props.scrollLeft>0}),c=n.props.cellGroupWrapperHeight?n.props.cellGroupWrapperHeight-T$:n.props.height,d={left:s,height:c};return n.props.isRTL&&(d.right=s,d.left="auto"),S.createElement("div",{className:l,style:d})}),G(Q(n),"_renderFixedRightColumnsShadow",function(s){var l=ae("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),c={height:n.props.height,left:s};return n.props.isRTL&&(c.right=s,c.left="auto"),S.createElement("div",{className:l,style:c})}),G(Q(n),"_renderColumnsRightShadow",function(s){if(Math.ceil(n.props.scrollLeft+n.props.width)<Math.floor(s)){var l=ae("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),c={height:n.props.height};return S.createElement("div",{className:l,style:c})}}),G(Q(n),"_onClick",function(s){n.props.onClick(s,n.props.index)}),G(Q(n),"_onContextMenu",function(s){n.props.onContextMenu(s,n.props.index)}),G(Q(n),"_onDoubleClick",function(s){n.props.onDoubleClick(s,n.props.index)}),G(Q(n),"_onMouseUp",function(s){n.props.onMouseUp(s,n.props.index)}),G(Q(n),"_onMouseDown",function(s){n.props.onMouseDown(s,n.props.index)}),G(Q(n),"_onMouseEnter",function(s){n.mouseLeaveIndex=n.props.index,n.props.onMouseEnter&&n.props.onMouseEnter(s,n.props.index)}),G(Q(n),"_onMouseLeave",function(s){n.mouseLeaveIndex===null&&(n.mouseLeaveIndex=n.props.index),n.props.onMouseLeave(s,n.mouseLeaveIndex),n.mouseLeaveIndex=null}),G(Q(n),"_onTouchStart",function(s){n.props.onTouchStart(s,n.props.index)}),G(Q(n),"_onTouchEnd",function(s){n.props.onTouchEnd(s,n.props.index)}),G(Q(n),"_onTouchMove",function(s){n.props.onTouchMove(s,n.props.index)}),n}return Ie(r,[{key:"shouldComponentUpdate",value:function(o){return o.isScrolling?o.visible?this.props.visible!==o.visible?!0:!(this.props.index===o.index&&this.props.scrollLeft===o.scrollLeft):!1:!0}},{key:"render",value:function(){var o=this.props.subRowHeight||0,i={width:this.props.width,height:this.props.height+o},a=ae({"fixedDataTableRowLayout/main":!0,"public/fixedDataTableRow/main":!0,"public/fixedDataTableRow/highlighted":this.props.index%2===1,"public/fixedDataTableRow/odd":this.props.index%2===1,"public/fixedDataTableRow/even":this.props.index%2===0}),s=Li(this.props.fixedColumns),l=S.createElement(yo,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:s,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:le.FIXED,isVisible:this.props.visible}),c=this._renderColumnsLeftShadow(s),d=Li(this.props.fixedRightColumns),f=this.props.showScrollbarY?this.props.scrollbarYWidth:0,h=S.createElement(yo,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-d-f,width:d,zIndex:2,columns:this.props.fixedRightColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:le.FIXED_RIGHT,isVisible:this.props.visible}),m=d?this._renderFixedRightColumnsShadow(this.props.width-d-f-5):null,v=S.createElement(yo,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:s,width:this.props.width-s-d-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:le.SCROLLABLE,isVisible:this.props.visible}),g=Li(this.props.scrollableColumns),y=this._renderColumnsRightShadow(s+g),b=this._getRowExpanded(o),T={height:o,top:this.props.height,width:this.props.width},E=null;if(this.props.showScrollbarY){var x={width:f,height:this.props.height,left:this.props.isRTL?2:this.props.width-f-2};E=S.createElement("div",{style:x,className:ae("public/fixedDataTable/scrollbarSpacer")})}return S.createElement("div",Le({className:et(a,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:i}),S.createElement("div",{className:ae("fixedDataTableRowLayout/body")},l,v,c,h,m,E),b&&S.createElement("div",{className:ae("fixedDataTableRowLayout/rowExpanded"),style:T},b),y)}}]),r}(S.Component);G(Bm,"propTypes",{isScrolling:M.bool,fixedColumns:M.array.isRequired,fixedRightColumns:M.array.isRequired,height:M.number.isRequired,cellGroupWrapperHeight:M.number,subRowHeight:M.number,rowExpanded:M.oneOfType([M.element,M.func]),index:M.number.isRequired,scrollableColumns:M.array.isRequired,scrollLeft:M.number.isRequired,width:M.number.isRequired,onClick:M.func,onContextMenu:M.func,onDoubleClick:M.func,onColumnReorderEndCallback:M.func,touchEnabled:M.bool,isHeaderOrFooter:M.bool,ariaRowIndex:M.number,isRTL:M.bool,attributes:M.object,onColumnResizeEndCallback:M.func,isHeader:M.bool,isGroupHeader:M.bool,scrollToX:M.func});var bo=function(e){Ke(r,e);var t=jm(r);function r(n){var o;return Ae(this,r),o=t.call(this,n),o._initialRender=!0,o}return Ie(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(o){return!o.isScrolling||this.props.visible!==o.visible?!0:o.visible?!(o.isScrolling&&this.props.index===o.index&&this.props.offsetTop===o.offsetTop&&this.props.scrollLeft===o.scrollLeft):!1}},{key:"render",value:function(){var o=this.props,i=o.offsetTop,a=o.zIndex,s=or(o,C$),l={width:this.props.width,height:this.props.height,zIndex:a||0,visibility:s.visible?"visible":"hidden"};return En(l,0,i,this._initialRender,this.props.isRTL),S.createElement("div",{style:l,className:ae("fixedDataTableRowLayout/rowWrapper")},S.createElement(Bm,s))}}]),r}(S.Component);G(bo,"propTypes",{isScrolling:M.bool,height:M.number.isRequired,zIndex:M.number,offsetTop:M.number.isRequired,visible:M.bool.isRequired,width:M.number.isRequired});function S$(e){var t=R$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function R$(){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 Hm=function(e){Ke(r,e);var t=S$(r);function r(n){var o;return Ae(this,r),o=t.call(this,n),o._staticRowArray=[],o._initialRender=!0,o}return Ie(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 o=this.props,i=o.offsetTop,a=o.rowOffsets,s=o.scrollTop,l=o.isScrolling,c=o.rowsToRender;c=c||[],l?this._staticRowArray.length=Math.max(this._staticRowArray.length,c.length):this._staticRowArray.length=c.length;for(var d=1e6,f=i-s%d,h=0;h<this._staticRowArray.length;h++){var m,v=m8(c[h],(m=this._staticRowArray[h])===null||m===void 0?void 0:m.props.index);if(vo(v)||!Hr(v,0,this.props.rowSettings.rowsCount)){this._staticRowArray[h]=null;continue}var g=a[v]-Math.floor(s/d)*d;this._staticRowArray[h]=this.renderRow({rowIndex:v,key:h,rowOffsetTop:g})}var y={position:"relative"};En(y,0,f,!1);var b=this._staticRowArray.slice().sort(this.rowSortComparator);return S.createElement("div",{style:y},b)}},{key:"renderRow",value:function(o){var i=o.rowIndex,a=o.key,s=o.rowOffsetTop,l=this.props,c=l.rowClassNameGetter||rt,d={};d.height=this.props.rowSettings.rowHeightGetter(i),d.subRowHeight=this.props.rowSettings.subRowHeightGetter(i),d.offsetTop=s,d.key=l.rowKeyGetter?l.rowKeyGetter(i):a,d.attributes=l.rowSettings.rowAttributesGetter&&l.rowSettings.rowAttributesGetter(i);var f=i===l.rowSettings.rowsCount-1&&l.showLastRowBorder;d.className=et(c(i),ae("public/fixedDataTable/bodyRow"),ae({"fixedDataTableLayout/hasBottomBorder":f,"public/fixedDataTable/hasBottomBorder":f}));var h=Hr(i,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return S.createElement(bo,Le({key:a,index:i,ariaRowIndex:i+l.ariaRowIndexOffset,isScrolling:l.isScrolling,width:l.width,rowExpanded:l.rowExpanded,scrollLeft:Math.round(l.scrollLeft),fixedColumns:l.fixedColumns,fixedRightColumns:l.fixedRightColumns,scrollableColumns:l.scrollableColumns,onClick:l.onRowClick,onContextMenu:l.onRowContextMenu,onDoubleClick:l.onRowDoubleClick,onMouseDown:l.onRowMouseDown,onMouseUp:l.onRowMouseUp,onMouseEnter:l.onRowMouseEnter,onMouseLeave:l.onRowMouseLeave,onTouchStart:l.onRowTouchStart,onTouchEnd:l.onRowTouchEnd,onTouchMove:l.onRowTouchMove,showScrollbarY:l.showScrollbarY,scrollbarYWidth:l.scrollbarYWidth,isRTL:l.isRTL,visible:h},d))}},{key:"rowSortComparator",value:function(o,i){var a,s;return((a=o==null?void 0:o.props.ariaRowIndex)!==null&&a!==void 0?a:-1)-((s=i==null?void 0:i.props.ariaRowIndex)!==null&&s!==void 0?s:-1)}}]),r}(S.Component);G(Hm,"propTypes",{ariaRowIndexOffset:M.number,isScrolling:M.bool,firstViewportRowIndex:M.number.isRequired,endViewportRowIndex:M.number.isRequired,fixedColumns:M.array.isRequired,fixedRightColumns:M.array.isRequired,height:M.number.isRequired,offsetTop:M.number.isRequired,onRowClick:M.func,onRowContextMenu:M.func,onRowDoubleClick:M.func,onRowMouseDown:M.func,onRowMouseUp:M.func,onRowMouseEnter:M.func,onRowMouseLeave:M.func,onRowTouchStart:M.func,onRowTouchEnd:M.func,onRowTouchMove:M.func,rowClassNameGetter:M.func,rowExpanded:M.oneOfType([M.element,M.func]),rowOffsets:M.object.isRequired,rowKeyGetter:M.func,rowSettings:M.shape({rowAttributesGetter:M.func,rowHeightGetter:M.func,rowsCount:M.number.isRequired,subRowHeightGetter:M.func}),rowsToRender:M.array.isRequired,scrollLeft:M.number.isRequired,scrollTop:M.number.isRequired,scrollableColumns:M.array.isRequired,showLastRowBorder:M.bool,showScrollbarY:M.bool,width:M.number.isRequired,isRTL:M.bool});var Gp=1.6,_$=1.6,M$=325,Zn=100,O$=function(){function e(t,r,n,o,i){Ae(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?rt.thatReturnsTrue:rt.thatReturnsFalse),typeof n!="function"&&(n=n?rt.thatReturnsTrue:rt.thatReturnsFalse),this._handleScrollX=r,this._handleScrollY=n,this._preventDefault=o,this._stopPropagation=i,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 Ie(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,Zn),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchEnd",value:function(r){clearInterval(this._trackerId),this._trackerId=null,yr(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,o=r.touches[0].pageY;this._deltaX=Gp*(this._lastTouchX-n),this._deltaY=Gp*(this._lastTouchY-o);var i=this._handleScrollX(this._deltaX,this._deltaY),a=this._handleScrollY(this._deltaY,this._deltaX);if(!(!i&&!a)){i?this._lastTouchX=n:this._deltaX=0,a?this._lastTouchY=o:this._deltaY=0,r.defaultPrevented||r.preventDefault();var s=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&r.stopPropagation(),s=!0),s===!0&&this._dragAnimationId===null&&(this._dragAnimationId=yr(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,o=this._velocityX,i=this._velocityY,a=.8;n<Zn&&(a*=n/Zn),o===0&&i===0&&(a=1),this._velocityX=a*(Zn*this._accumulatedDeltaX/(1+n)),a<1&&(this._velocityX+=(1-a)*o),this._velocityY=a*(Zn*this._accumulatedDeltaY/(1+n)),a<1&&(this._velocityY+=(1-a)*i),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=_$*Math.exp(-r/M$),o=n*this._velocityX,i=n*this._velocityY;(Math.abs(o)<=5||!this._handleScrollX(o,i))&&(o=0),(Math.abs(i)<=5||!this._handleScrollY(i,o))&&(i=0),(o!==0||i!==0)&&(this._onTouchScrollCallback(o,i),yr(this._autoScroll))}}]),e}();function k$(e){var t=A$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function A$(){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 _i=25,$u=function(e){Ke(r,e);var t=k$(r);function r(n){var o;return Ae(this,r),o=t.call(this,n),G(Q(o),"_shouldHandleTouchX",function(i){return o.props.touchScrollEnabled&&o._shouldHandleWheelX(i)}),G(Q(o),"_shouldHandleTouchY",function(i){return o.props.touchScrollEnabled&&o._shouldHandleWheelY(i)}),G(Q(o),"_shouldHandleWheelX",function(i){var a=o.props,s=a.maxScrollX,l=a.scrollFlags,c=a.scrollX,d=l.overflowX;return d==="hidden"||(i=Math.round(i),i===0)?!1:i<0&&c>0||i>=0&&c<s}),G(Q(o),"_shouldHandleWheelY",function(i){var a=o.props,s=a.maxScrollY,l=a.scrollFlags,c=a.scrollY,d=l.overflowY;return d==="hidden"||i===0||(i=Math.round(i),i===0)?!1:i<0&&c>0||i>=0&&c<s}),G(Q(o),"_reportContentHeight",function(){var i=gn(o.props),a=i.contentHeight,s=o.props.onContentHeightChange;a!==o._contentHeight&&s&&s(a),o._contentHeight=a}),G(Q(o),"_renderRows",function(i,a,s,l,c,d){var f=Vr(o.props),h=f.scrollEnabledY,m=o.props;return S.createElement(Hm,{ariaRowIndexOffset:d,isScrolling:m.scrolling,fixedColumns:a,fixedRightColumns:s,firstViewportRowIndex:m.firstRowIndex,endViewportRowIndex:m.endRowIndex,height:c,offsetTop:i,onRowClick:m.onRowClick,onRowContextMenu:m.onRowContextMenu,onRowDoubleClick:m.onRowDoubleClick,onRowMouseUp:m.onRowMouseUp,onRowMouseDown:m.onRowMouseDown,onRowMouseEnter:m.onRowMouseEnter,onRowMouseLeave:m.onRowMouseLeave,onRowTouchStart:m.touchScrollEnabled?m.onRowTouchStart:null,onRowTouchEnd:m.touchScrollEnabled?m.onRowTouchEnd:null,onRowTouchMove:m.touchScrollEnabled?m.onRowTouchMove:null,rowClassNameGetter:m.rowClassNameGetter,rowExpanded:m.rowExpanded,rowKeyGetter:m.rowKeyGetter,rowSettings:m.rowSettings,scrollLeft:m.scrollX,scrollTop:m.scrollY,scrollableColumns:l,showLastRowBorder:!0,width:m.tableSize.width,rowsToRender:m.rows,rowOffsets:m.rowOffsets,showScrollbarY:h,scrollbarYWidth:m.scrollbarYWidth,isRTL:m.isRTL})}),G(Q(o),"_onRef",function(i){o._divRef=i,o._wheelHandler&&(o.props.stopReactWheelPropagation?o._wheelHandler.setRoot(i):o._wheelHandler.setRoot(null))}),G(Q(o),"_onScroll",function(i,a){var s=o.props,l=s.maxScrollX,c=s.maxScrollY,d=s.onHorizontalScroll,f=s.onVerticalScroll,h=s.scrollActions,m=s.scrollFlags,v=s.scrollX,g=s.scrollY,y=m.overflowX,b=m.overflowY,T=v,E=g;if(Math.abs(a)>Math.abs(i)&&b!=="hidden")E+=a,E=E<0?0:E,E=E>c?c:E,(!f||f(E))&&h.scrollToY(E);else if(i&&y!=="hidden"){T+=i,T=T<0?0:T,T=T>l?l:T;var x=Math.round(T);(!d||d(x))&&h.scrollToX(x)}}),G(Q(o),"_scrollTo",function(i,a){o.props.scrollActions.scrollToX(i),o.props.scrollActions.scrollToY(a)}),G(Q(o),"_didScroll",function(i){var a=o.props,s=a.onScrollStart,l=a.scrollX,c=a.scrollY,d=a.onHorizontalScroll,f=a.onVerticalScroll,h=a.tableSize.ownerHeight,m=a.scrolling,v=i.endRowIndex,g=i.firstRowIndex,y=i.scrollX,b=i.scrollY,T=i.tableSize.ownerHeight,E=i.scrolling,x=h!==T&&!(Np(h)&&Np(T)),C=l!==y,_=c!==b;!x&&!C&&!_||(!E&&m&&s&&s(y,b,g,v),C&&d&&d(l),_&&f&&f(c),o._didScrollStop())}),G(Q(o),"_didScrollStopSync",function(){var i=o.props,a=i.endRowIndex,s=i.firstRowIndex,l=i.onScrollEnd,c=i.scrollActions,d=i.scrollX,f=i.scrollY,h=i.scrolling;h&&(c.stopScroll(),l&&l(d,f,s,a))}),o._didScrollStop=BD(o._didScrollStopSync,200,Q(o)),o._onKeyDown=o._onKeyDown.bind(Q(o)),o._setupHandlers(),o}return Ie(r,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new dm(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new O$(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(o){var i=gn(this.props),a=i.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(o.key){case"PageDown":this._onScroll(0,a),o.preventDefault();break;case"PageUp":this._onScroll(0,a*-1),o.preventDefault();break}if(this.props.keyboardScrollEnabled)switch(o.key){case"ArrowDown":this._onScroll(0,_i),o.preventDefault();break;case"ArrowUp":this._onScroll(0,_i*-1),o.preventDefault();break;case"ArrowRight":this._onScroll(_i,0),o.preventDefault();break;case"ArrowLeft":this._onScroll(_i*-1,0),o.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(o){return!Po(this.props,o)}},{key:"componentDidMount",value:function(){this._setupHandlers(),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"componentDidUpdate",value:function(o){this._didScroll(o),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"_reportScrollBarsUpdates",value:function(){var o=gn(this.props),i=o.bodyOffsetTop,a=o.scrollbarXOffsetTop,s=o.visibleRowsHeight,l=this.props,c=l.tableSize.width,d=l.scrollContentHeight,f=l.scrollY,h=l.scrollX,m={viewportHeight:s,contentHeight:d,scrollbarYOffsetTop:i,scrollY:f,viewportWidth:c,contentWidth:c+this.props.maxScrollX,scrollbarXOffsetTop:a,scrollX:h,scrollTo:this._scrollTo,scrollToX:this.props.scrollActions.scrollToX,scrollToY:this.props.scrollActions.scrollToY};Po(this.previousScrollState,m)||(this.props.onScrollBarsUpdate(m),this.previousScrollState=m)}},{key:"render",value:function(){var o=zD(this.props),i=o.ariaGroupHeaderIndex,a=o.ariaHeaderIndex,s=o.ariaFooterIndex,l=o.ariaRowCount,c=o.ariaRowIndexOffset,d=h8(this.props),f=d.fixedColumnGroups,h=d.fixedColumns,m=d.fixedRightColumnGroups,v=d.fixedRightColumns,g=d.scrollableColumnGroups,y=d.scrollableColumns,b=gn(this.props),T=b.bodyHeight,E=b.bodyOffsetTop,x=b.componentHeight,C=b.footOffsetTop,_=b.scrollbarXOffsetTop,k=b.visibleRowsHeight,O=this.props,D=O.className,F=O.elementHeights,H=O.gridAttributesGetter,R=O.maxScrollY,A=O.onColumnReorderEndCallback,B=O.onColumnResizeEndCallback,j=O.scrollContentHeight,L=O.scrollX,I=O.scrollY,z=O.scrolling,Y=O.tableSize,P=O.touchScrollEnabled,V=O.scrollbarYWidth,K=Y.ownerHeight,q=Y.width,X=F.cellGroupWrapperHeight,J=F.footerHeight,ee=F.groupHeaderHeight,oe=F.headerHeight,ne=Vr(this.props),ue=ne.scrollEnabledX,ie=ne.scrollEnabledY,ve=H&&H(),W;ee>0&&(W=S.createElement(bo,{key:"group_header",ariaRowIndex:i,isHeaderOrFooter:!0,isScrolling:z,className:et(ae("fixedDataTableLayout/header"),ae("public/fixedDataTable/header")),width:q,height:ee,cellGroupWrapperHeight:X,index:0,zIndex:1,offsetTop:0,scrollLeft:L,fixedColumns:f,fixedRightColumns:m,scrollableColumns:g,visible:!0,touchEnabled:P,onColumnResizeEndCallback:B,onColumnReorderEndCallback:A,showScrollbarY:ie,scrollbarYWidth:V,isRTL:this.props.isRTL,isHeader:!0,isGroupHeader:!0}));var re;ie&&(re=this.props.scrollbarY);var ce;ue&&(ce=this.props.scrollbarX);var ge=null;J&&(ge=S.createElement(bo,{key:"footer",ariaRowIndex:s,isHeaderOrFooter:!0,isScrolling:z,className:et(ae("fixedDataTableLayout/footer"),ae("public/fixedDataTable/footer")),width:q,height:J,index:-1,zIndex:1,offsetTop:C,visible:!0,fixedColumns:h.footer,fixedRightColumns:v.footer,scrollableColumns:y.footer,scrollLeft:L,showScrollbarY:ie,scrollbarYWidth:V,isRTL:this.props.isRTL}));var Xe=this._renderRows(E,h.cell,v.cell,y.cell,T,c),Ue=S.createElement(bo,{key:"header",ariaRowIndex:a,isHeaderOrFooter:!0,isScrolling:z,className:et(ae("fixedDataTableLayout/header"),ae("public/fixedDataTable/header")),width:q,height:oe,cellGroupWrapperHeight:X,index:-1,zIndex:1,offsetTop:ee,scrollLeft:L,visible:!0,fixedColumns:h.header,fixedRightColumns:v.header,scrollableColumns:y.header,touchEnabled:P,onColumnResizeEndCallback:B,onColumnReorderEndCallback:A,showScrollbarY:ie,scrollbarYWidth:V,isRTL:this.props.isRTL,isHeader:!0}),He;I&&(He=S.createElement("div",{className:et(ae("fixedDataTableLayout/topShadow"),ae("public/fixedDataTable/topShadow")),style:{top:E}}));var Rt=K&&K<x&&j>k,Qe;(Rt||I<R)&&(Qe=S.createElement("div",{className:et(ae("fixedDataTableLayout/bottomShadow"),ae("public/fixedDataTable/bottomShadow")),style:{top:C}}));var st=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(st=0);var Je=D;return this.props.isRTL&&(Je=et(Je,"fixedDataTable_isRTL")),S.createElement("div",Le({className:et(Je,ae("fixedDataTableLayout/main"),ae("public/fixedDataTable/main")),role:"grid","aria-rowcount":l},ve,{tabIndex:st,onKeyDown:this._onKeyDown,onTouchStart:P?this._touchHandler.onTouchStart:null,onTouchEnd:P?this._touchHandler.onTouchEnd:null,onTouchCancel:P?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:x,width:q}}),S.createElement("div",{className:ae("fixedDataTableLayout/rowsContainer"),style:{height:_,width:q}},W,Ue,Xe,ge,He,Qe),re,ce)}}]),r}(S.Component);G($u,"propTypes",{width:M.number.isRequired,height:M.number,className:M.string,maxHeight:M.number,ownerHeight:M.number,overflowX:M.oneOf(["hidden","auto"]),overflowY:M.oneOf(["hidden","auto"]),touchScrollEnabled:M.bool,keyboardScrollEnabled:M.bool,keyboardPageEnabled:M.bool,scrollbarX:M.node,scrollbarXHeight:M.number,scrollbarY:M.node,scrollbarYWidth:M.number,onScrollBarsUpdate:M.func,defaultScrollbars:M.bool,showScrollbarX:M.bool,showScrollbarY:M.bool,onHorizontalScroll:M.func,onVerticalScroll:M.func,rowsCount:M.number.isRequired,rowHeight:M.number.isRequired,rowHeightGetter:M.func,subRowHeight:M.number,subRowHeightGetter:M.func,rowExpanded:M.oneOfType([M.element,M.func]),rowClassNameGetter:M.func,rowKeyGetter:M.func,groupHeaderHeight:M.number,headerHeight:M.number.isRequired,cellGroupWrapperHeight:M.number,footerHeight:M.number,scrollLeft:M.number,scrollToColumn:M.number,scrollTop:M.number,isVerticalScrollExact:M.bool,scrollToRow:M.number,onScrollStart:M.func,onScrollEnd:M.func,stopReactWheelPropagation:M.bool,stopScrollDefaultHandling:M.bool,stopScrollPropagation:M.bool,onContentHeightChange:M.func,onRowClick:M.func,onRowContextMenu:M.func,onRowDoubleClick:M.func,onRowMouseDown:M.func,onRowMouseUp:M.func,onRowMouseEnter:M.func,onRowMouseLeave:M.func,onRowTouchStart:M.func,onRowTouchEnd:M.func,onRowTouchMove:M.func,onColumnResizeEndCallback:M.func,onColumnReorderEndCallback:M.func,isRTL:M.bool,bufferRowCount:M.number,elementHeights:M.shape({cellGroupWrapperHeight:M.number,footerHeight:M.number,groupHeaderHeight:M.number,headerHeight:M.number}),gridAttributesGetter:M.func,rowAttributesGetter:M.func});G($u,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var I$={get:function(){return yD({reducer:SD,devTools:process.env.NODE_ENV!=="production",middleware:function(r){return r({immutableCheck:!1,serializableCheck:!1})}})}},P$=fu,D$=ti,$$=Xa,N$=Ft,L$=ei,F$=Ao.exports,j$=Za,B$=jg,H$="[object Map]",z$="[object Set]",W$=Object.prototype,V$=W$.hasOwnProperty;function U$(e){if(e==null)return!0;if(L$(e)&&(N$(e)||typeof e=="string"||typeof e.splice=="function"||F$(e)||B$(e)||$$(e)))return!e.length;var t=D$(e);if(t==H$||t==z$)return!e.size;if(j$(e))return!P$(e).length;for(var r in e)if(V$.call(e,r))return!1;return!0}var Yp=U$;function zm(e){var t=G$();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function G$(){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 Y$=function(e){Ke(r,e);var t=zm(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),G(Q(n),"state",{}),G(Q(n),"_onScrollBarsUpdate",function(s){n.setState(s)}),G(Q(n),"_onVerticalScroll",function(s){n.state.scrollToY!==void 0&&n.state.scrollToY(s)}),G(Q(n),"_onHorizontalScroll",function(s){n.state.scrollToX!==void 0&&n.state.scrollToX(s)}),n}return Ie(r,[{key:"render",value:function(){var o=!Yp(this.state)&&S.createElement(xt,{size:this.state.viewportHeight,contentSize:this.state.contentHeight,onScroll:this._onVerticalScroll,verticalTop:this.state.scrollbarYOffsetTop,position:this.state.scrollY,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL}),i=!Yp(this.state)&&S.createElement(Wm,{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 S.cloneElement(this.props.children,{onScrollBarsUpdate:this._onScrollBarsUpdate,scrollbarX:i,scrollbarY:o})}}]),r}(S.Component),Wm=function(e){Ke(r,e);var t=zm(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"render",value:function(){var o=this.props,i=o.offset,a=o.size,s={height:xt.SIZE,width:a},l={height:xt.SIZE,overflow:"hidden",width:a,top:i};return S.createElement("div",{className:et(ae("public/fixedDataTable/horizontalScrollbar")),style:s},S.createElement("div",{style:l},S.createElement(xt,Le({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),r}(S.PureComponent);G(Wm,"propTypes",{contentSize:M.number.isRequired,offset:M.number.isRequired,onScroll:M.func.isRequired,position:M.number.isRequired,size:M.number.isRequired,isRTL:M.bool});var q$=function(){return ur([function(t){return gn(t).componentHeight},function(t){return t.elementHeights.groupHeaderHeight},function(t){return t.scrollX},function(t){return t.maxScrollX},function(t){return ri(t).availableScrollWidth},function(t){return t.isRTL}],function(t,r,n,o,i,a){return{tableHeight:t,groupHeaderHeight:r,scrollX:n,maxScrollX:o,availableScrollWidth:i,isRTL:a}})},X$=Xr,K$=Ft,Q$=Rr,Z$="[object String]";function J$(e){return typeof e=="string"||!K$(e)&&Q$(e)&&X$(e)==Z$}var e7=J$;function t7(e){return function(t){return t==null?void 0:t[e]}}var r7=t7,n7=r7,o7=n7("length"),i7=o7,a7="\\ud800-\\udfff",s7="\\u0300-\\u036f",l7="\\ufe20-\\ufe2f",c7="\\u20d0-\\u20ff",u7=s7+l7+c7,d7="\\ufe0e\\ufe0f",f7="\\u200d",p7=RegExp("["+f7+a7+u7+d7+"]");function h7(e){return p7.test(e)}var g7=h7,Vm="\\ud800-\\udfff",m7="\\u0300-\\u036f",v7="\\ufe20-\\ufe2f",y7="\\u20d0-\\u20ff",b7=m7+v7+y7,w7="\\ufe0e\\ufe0f",x7="["+Vm+"]",fc="["+b7+"]",pc="\\ud83c[\\udffb-\\udfff]",C7="(?:"+fc+"|"+pc+")",Um="[^"+Vm+"]",Gm="(?:\\ud83c[\\udde6-\\uddff]){2}",Ym="[\\ud800-\\udbff][\\udc00-\\udfff]",E7="\\u200d",qm=C7+"?",Xm="["+w7+"]?",T7="(?:"+E7+"(?:"+[Um,Gm,Ym].join("|")+")"+Xm+qm+")*",S7=Xm+qm+T7,R7="(?:"+[Um+fc+"?",fc,Gm,Ym,x7].join("|")+")",qp=RegExp(pc+"(?="+pc+")|"+R7+S7,"g");function _7(e){for(var t=qp.lastIndex=0;qp.test(e);)++t;return t}var M7=_7,O7=i7,k7=g7,A7=M7;function I7(e){return k7(e)?A7(e):O7(e)}var P7=I7,D7=fu,$7=ti,N7=ei,L7=e7,F7=P7,j7="[object Map]",B7="[object Set]";function H7(e){if(e==null)return 0;if(N7(e))return L7(e)?F7(e):e.length;var t=$7(e);return t==j7||t==B7?e.size:D7(e).length}var nl=H7,z7=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},Mi=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},W7=function(){return ur([function(t){return ri(t)},function(t,r){return r}],function(t,r){var n=t.fixedColumns,o=t.fixedRightColumns,i=t.scrollableColumns,a=t.fixedColumnGroups,s=t.fixedRightColumnGroups,l=t.scrollableColumnGroups,c=function(I){var z=n.length+i.length+o.length;if(I<0||I>=z||!Number.isInteger(I))throw"columnIndex must be an integer between 0 and ".concat(z-1," inclusive")},d=function(I){var z=a.length+l.length+s.length;if(I<0||I>=z||!Number.isInteger(I))throw"columnGroupIndex must be an integer between 0 and ".concat(z-1," inclusive")},f=function(I){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(z&&vo(I))&&I!==le.FIXED&&I!==le.FIXED_RIGHT&&I!==le.SCROLLABLE)throw"Invalid CellGroupType"},h=function(I){return I<n.length?le.FIXED:I<n.length+i.length?le.SCROLLABLE:le.FIXED_RIGHT},m=function(I){return I<a.length?le.FIXED:I<a.length+l.length?le.SCROLLABLE:le.FIXED_RIGHT},v=function(I,z){if(z===le.FIXED)return I;if(z===le.SCROLLABLE)return I-n.length;if(z===le.FIXED_RIGHT)return I-n.length-i.length},g=function(I,z){if(z===le.FIXED)return I;if(z===le.SCROLLABLE)return I-a.length;if(z===le.FIXED_RIGHT)return I-a.length-l.length},y=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.SCROLLABLE;f(I);var z=O(I);return z.reduce(function(Y,P){return Y+P.width},0)},b=function(I,z){var Y=O(z),P=v(I,z);return Y[P]},T=function(I){c(I);var z=h(I),Y=b(I,z);return z7(Y)},E=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(f(I,!0),vo(I))return n.length+i.length+o.length;var z=O(I);return z.length},x=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(f(I,!0),vo(I))return a.length+l.length+s.length;var z=D(I);return z.length},C=function(I,z){var Y=D(z),P=g(I,z);return Mi(Y[P])},_=function(I){d(I);var z=m(I);return C(I,z)},k=function(I){c(I);var z=h(I),Y=b(I,z).groupIdx,P=F(Y);return Mi(P)},O=function(I){if(I===le.FIXED)return n;if(I===le.FIXED_RIGHT)return o;if(I===le.SCROLLABLE)return i;throw"Invalid cell group type"},D=function(I){if(I===le.FIXED)return a;if(I===le.FIXED_RIGHT)return s;if(I===le.SCROLLABLE)return l;throw"Invalid cell group type"},F=function(I){var z=nl(a),Y=nl(l),P=nl(s);if(Hr(I,0,z))return a[I];if(Hr(I,z,z+Y))return l[I-z];if(Hr(I,z+Y,z+Y+P))return s[I-z-Y];throw"Invalid absolute column group index"},H=function(I,z){if(I.length===0)return{element:null,distanceFromOffset:null};for(var Y=0,P=0;P!==I.length&&!(Y>z);)Y+=I[P].width,P++;return P=rs(P-1,0,I.length-1),{element:I[P],distanceFromOffset:I[P].width-(Y-z)}},R=function(I){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.SCROLLABLE;f(z);var Y=O(z),P=H(Y,I),V=P.element,K=P.distanceFromOffset;return V&&(V=Mi(V)),{column:V,distanceFromOffset:K}},A=function(I){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.SCROLLABLE;f(z);var Y=D(z),P=H(Y,I),V=P.element,K=P.distanceFromOffset;return V&&(V=Mi(V)),{columnGroup:V,distanceFromOffset:K}},B=r.scrollToX,j=r.updateRowHeights;return{getColumn:T,getColumnGroup:_,getColumnGroupByChild:k,getColumnAtOffset:R,getColumnGroupAtOffset:A,getCellGroupWidth:y,getColumnCount:E,getColumnGroupCount:x,scrollToX:B,updateRowHeights:j}})};function Xp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ol(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xp(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var V7=function(){var t=[],r=null,n=function(s){return t=t.concat(s),function(){var l=t.indexOf(s);t.splice(l,1)}},o=q$(),i=W7();return{getValue:ur([function(a){return o(a)},function(a,s){return i(a,s)}],function(a,s){return r=ol(ol(ol({},a),s),{},{subscribe:n}),r}),notify:function(){t.forEach(function(s){return s(r)})}}};function Kp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kp(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U7(e){var t=G7();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function G7(){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 Km=function(e){Ke(r,e);var t=U7(r);function r(n){var o;return Ae(this,r),o=t.call(this,n),o._initialize(n),o.fixedDataTableApi=V7(),o.previousApiValue=null,o}return Ie(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(o){var i=this;if(!this.reduxStore){this.reduxStore=I$.get(),this.reduxStore.dispatch(RD(o)),this.scrollActions=ID(this.reduxStore,function(){return i.props}),this.unsubscribe=this.reduxStore.subscribe(this.onStoreUpdate.bind(this));var a={boundState:r.getBoundState(this.reduxStore),reduxStore:this.reduxStore,props:o};this.state?this.setState(a):this.state=a}}},{key:"_cleanup",value:function(){this.reduxStore&&(this.unsubscribe(),this.unsubscribe=null,this.reduxStore=null)}},{key:"getApi",value:function(){var o=this;return this.fixedDataTableApi.getValue(Oi(Oi({},this.props),this.reduxStore.getState()),Oi(Oi({},this.scrollActions),{},{updateRowHeights:function(a){return Lg({updateRowHeights:AD},o.reduxStore.dispatch).updateRowHeights(a)}}))}},{key:"notifyApiValueChanges",value:function(){var o=this.getApi();this.previousApiValue!==o&&(this.fixedDataTableApi.notify(),this.previousApiValue=o)}},{key:"render",value:function(){var o=this.getApi(),i=S.createElement($u,Le({},this.props,this.state.boundState,{scrollActions:this.scrollActions}));return this.props.defaultScrollbars?S.createElement(Sn.Provider,{value:o},S.createElement(Y$,this.props,i)):S.createElement(Sn.Provider,{value:o},i)}},{key:"onStoreUpdate",value:function(){var o=r.getBoundState(this.reduxStore);this.state.boundState.propsRevision===o.propsRevision&&this.setState({boundState:o})}}],[{key:"getDerivedStateFromProps",value:function(o,i){return Yt(o.height!==void 0||o.maxHeight!==void 0,"You must set either a height or a maxHeight"),o===i.props?null:(i.reduxStore.dispatch(_D({newProps:o,oldProps:i.props})),{boundState:r.getBoundState(i.reduxStore),props:o})}},{key:"getBoundState",value:function(o){var i=o.getState(),a=lo(i,["columnGroupElements","columnElements","elementHeights","elementTemplates","firstRowIndex","endRowIndex","maxScrollX","maxScrollY","propsRevision","rows","rowOffsets","rowSettings","scrollContentHeight","scrollFlags","scrollX","scrollY","scrolling","scrollJumpedX","scrollJumpedY","tableSize"]);return a}}]),r}(S.Component);G(Km,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:xt.SIZE,scrollbarYWidth:xt.SIZE});var Y7=Im(Km);function q7(e){var t=X7();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function X7(){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 gs=function(e){Ke(r,e);var t=q7(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),r}(S.Component);G(gs,"__TableColumn__",!0);G(gs,"propTypes",{align:M.oneOf(["left","center","right"]),fixed:M.bool,fixedRight:M.bool,header:M.oneOfType([M.node,M.func]),cell:M.oneOfType([M.node,M.func]),footer:M.oneOfType([M.node,M.func]),columnKey:M.oneOfType([M.string,M.number]),width:M.number.isRequired,minWidth:M.number,maxWidth:M.number,flexGrow:M.number,isResizable:M.bool,isReorderable:M.bool,allowCellsRecycling:M.bool,pureRendering:M.bool,cellClassName:M.string});G(gs,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});function K7(e){var t=Q7();return function(){var n=me(e),o;if(t){var i=me(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return at(this,o)}}function Q7(){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 Nu=function(e){Ke(r,e);var t=K7(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),r}(S.Component);G(Nu,"__TableColumnGroup__",!0);G(Nu,"propTypes",{align:M.oneOf(["left","center","right"]),fixed:M.bool,header:M.oneOfType([M.node,M.func])});G(Nu,"defaultProps",{fixed:!1});const Z7="#f4f4f8",J7="#edeef1",eN="#e3e5ea",tN="#f9f9fb",rN="#ffcb05",nN="#1faff3",oN="#e5e5e5",iN="#5b6372",aN="#3a4356",sN="#3c3c42",lN="#a3a3a3",cN="#d0d3db",uN="_tableWrapper_1ode4_16",dN="_table_1ode4_16",fN="_tableHeader_1ode4_78",pN="_tableCell_1ode4_88",hN="_tableCellContent_1ode4_99",gN="_headerColor_1ode4_105",mN="_rowColor_1ode4_109",uo={athensGray:Z7,athensGrayDark:J7,athensGrayDark2:eN,athensGrayLight:tN,defaultBrandColor:rN,dodgerBlue:nN,mercury:oN,shuttleGrayDark:iN,oxfordBlue:aN,darkModeDefaultBackground:sN,indicatorGrey:lN,secondaryButtonHover:cN,tableWrapper:uN,table:dN,tableHeader:fN,tableCell:pN,tableCellContent:hN,headerColor:gN,rowColor:mN},vN="#f4f4f8",yN="#edeef1",bN="#e3e5ea",wN="#f9f9fb",xN="#ffcb05",CN="#1faff3",EN="#e5e5e5",TN="#5b6372",SN="#3a4356",RN="#3c3c42",_N="#a3a3a3",MN="#d0d3db",ON="_headerCell_2qf2w_16",kN="_noSort_2qf2w_29",AN="_standard_2qf2w_29",IN="_caret_2qf2w_33",PN="_headerLabel_2qf2w_38",DN="_icon_2qf2w_43",$N="_numberIcon_2qf2w_50",NN="_dateIcon_2qf2w_54",LN="_textIcon_2qf2w_58",FN="_booleanIcon_2qf2w_62",jN="_sortIcon_2qf2w_66",BN="_sortAscending_2qf2w_74",HN="_sortDescending_2qf2w_78",dr={athensGray:vN,athensGrayDark:yN,athensGrayDark2:bN,athensGrayLight:wN,defaultBrandColor:xN,dodgerBlue:CN,mercury:EN,shuttleGrayDark:TN,oxfordBlue:SN,darkModeDefaultBackground:RN,indicatorGrey:_N,secondaryButtonHover:MN,headerCell:ON,noSort:kN,standard:AN,caret:IN,headerLabel:PN,icon:DN,numberIcon:$N,dateIcon:NN,textIcon:LN,booleanIcon:FN,sortIcon:jN,sortAscending:BN,sortDescending:HN};var Qm={exports:{}};/*!
295
- Copyright (c) 2018 Jed Watson.
296
- Licensed under the MIT License (MIT), see
297
- http://jedwatson.github.io/classnames
298
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Qm);var zN=Qm.exports;const jo=p.getDefaultExportFromCjs(zN),WN="_icon_t30x8_1",VN="_numberIcon_t30x8_11",UN="_dateIcon_t30x8_15",GN="_textIcon_t30x8_19",YN="_booleanIcon_t30x8_23",Jn={icon:WN,numberIcon:VN,dateIcon:UN,textIcon:GN,booleanIcon:YN},qN=({columnType:e})=>p.jsx("div",{className:jo(Jn.icon,{[Jn.numberIcon]:p.isNumber$1(e),[Jn.dateIcon]:p.isDatetime(e),[Jn.textIcon]:p.isText(e),[Jn.booleanIcon]:p.isBoolean(e)})}),XN=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:o,sortIcon:i="standard"})=>p.jsxs("div",{className:dr.headerCell,onClick:()=>{t(e)},children:[o&&p.jsx(qN,{columnType:e.type}),p.jsx("div",{className:dr.headerLabel,children:n}),p.jsx("div",{className:jo(dr.sortIcon,{[dr.caret]:i==="caret",[dr.standard]:i==="standard",[dr.noSort]:!r||e.direction===0,[dr.sortAscending]:r&&e.direction===1,[dr.sortDescending]:r&&e.direction===-1})})]}),KN=26,QN=26,Qp=20,Zm=36,Jm=29,ev=24,hc=350,ZN=126,JN=38,eL=55,tL=(e,t,r,n)=>{const i=document.createElement("canvas").getContext("2d");if(!i)return[];i.font=`13px ${n||"Open Sans"}`;const a=e.columns.map(f=>i.measureText(f.name).width+Zm+(t?Jm:0)),s=i.measureText("0").width,l=e.columns.map(f=>({type:p.simpleColumnType(f.type),index:f.index})),{rows:c}=e,d=l.map(f=>{const h=c.reduce((m,v)=>{var T;const g=v[f.index].displayValue,y=(T=r[f.index])!=null&&T.isHtml?rL(g):g,b=f.type==="number"?v[f.index].displayValue.length*s:i.measureText(y).width;return Math.max(m,b)},0);return ev+h});return a.map((f,h)=>{var m;return(m=r[h])!=null&&m.width?r[h].width:Math.ceil(Math.max(ZN,Math.min(hc,Math.max(f,d[h]))))})};function rL(e){const t=document.createElement("div");return t.innerHTML=e,tv(t)}function tv(e){let t,r,n,o;for(r="",t=0;t<e.childNodes.length;t++)o=e.childNodes[t],n=null,o.nodeType===1?n=tv(o):o.nodeType===3&&(n=o.nodeValue),n&&(r+=n);return r}const Zp=e=>e%2===1,Jp=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:o})=>{var c,d,f,h,m,v,g,y,b,T,E,x,C,_,k,O,D,F;let i=r.chart.textColor;const a=r.typography.fontFamily;let s=r.chart.backgroundColor;const l=p.getSlightlyDifferentColor(s);return o?(d=(c=n==null?void 0:n.header)==null?void 0:c.color)!=null&&d.enabled&&(s=((h=(f=n==null?void 0:n.header)==null?void 0:f.color)==null?void 0:h.backgroundColor)||l,i=((v=(m=n==null?void 0:n.header)==null?void 0:m.color)==null?void 0:v.textColor)||i):((y=(g=n==null?void 0:n.columns)==null?void 0:g.alternatingColor)!=null&&y.enabled&&Zp(e)&&(s=((T=(b=n==null?void 0:n.columns)==null?void 0:b.alternatingColor)==null?void 0:T.backgroundColor)||l,i=((x=(E=n==null?void 0:n.columns)==null?void 0:E.alternatingColor)==null?void 0:x.textColor)||i),(_=(C=n==null?void 0:n.rows)==null?void 0:C.alternatingColor)!=null&&_.enabled&&Zp(t)&&(s=((O=(k=n==null?void 0:n.rows)==null?void 0:k.alternatingColor)==null?void 0:O.backgroundColor)||l,i=((F=(D=n==null?void 0:n.rows)==null?void 0:D.alternatingColor)==null?void 0:F.textColor)||i)),{color:i,backgroundColor:s,fontFamily:a}};var gt="top",$t="bottom",Nt="right",mt="left",Lu="auto",ni=[gt,$t,Nt,mt],Rn="start",Bo="end",nL="clippingParents",rv="viewport",eo="popper",oL="reference",eh=ni.reduce(function(e,t){return e.concat([t+"-"+Rn,t+"-"+Bo])},[]),nv=[].concat(ni,[Lu]).reduce(function(e,t){return e.concat([t,t+"-"+Rn,t+"-"+Bo])},[]),iL="beforeRead",aL="read",sL="afterRead",lL="beforeMain",cL="main",uL="afterMain",dL="beforeWrite",fL="write",pL="afterWrite",hL=[iL,aL,sL,lL,cL,uL,dL,fL,pL];function Zt(e){return e?(e.nodeName||"").toLowerCase():null}function Tt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=Tt(e).Element;return e instanceof t||e instanceof Element}function Pt(e){var t=Tt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fu(e){if(typeof ShadowRoot=="undefined")return!1;var t=Tt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gL(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!Pt(i)||!Zt(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function mL(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!Pt(o)||!Zt(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const vL={name:"applyStyles",enabled:!0,phase:"write",fn:gL,effect:mL,requires:["computeStyles"]};function Kt(e){return e.split("-")[0]}var zr=Math.max,la=Math.min,_n=Math.round;function gc(){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 ov(){return!/^((?!chrome|android).)*safari/i.test(gc())}function Mn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Pt(e)&&(o=e.offsetWidth>0&&_n(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_n(n.height)/e.offsetHeight||1);var a=Gr(e)?Tt(e):window,s=a.visualViewport,l=!ov()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/o,d=(n.top+(l&&s?s.offsetTop:0))/i,f=n.width/o,h=n.height/i;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function ju(e){var t=Mn(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 iv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Fu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function lr(e){return Tt(e).getComputedStyle(e)}function yL(e){return["table","td","th"].indexOf(Zt(e))>=0}function _r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ms(e){return Zt(e)==="html"?e:e.assignedSlot||e.parentNode||(Fu(e)?e.host:null)||_r(e)}function th(e){return!Pt(e)||lr(e).position==="fixed"?null:e.offsetParent}function bL(e){var t=/firefox/i.test(gc()),r=/Trident/i.test(gc());if(r&&Pt(e)){var n=lr(e);if(n.position==="fixed")return null}var o=ms(e);for(Fu(o)&&(o=o.host);Pt(o)&&["html","body"].indexOf(Zt(o))<0;){var i=lr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function oi(e){for(var t=Tt(e),r=th(e);r&&yL(r)&&lr(r).position==="static";)r=th(r);return r&&(Zt(r)==="html"||Zt(r)==="body"&&lr(r).position==="static")?t:r||bL(e)||t}function Bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wo(e,t,r){return zr(e,la(t,r))}function wL(e,t,r){var n=wo(e,t,r);return n>r?r:n}function av(){return{top:0,right:0,bottom:0,left:0}}function sv(e){return Object.assign({},av(),e)}function lv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var xL=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,sv(typeof t!="number"?t:lv(t,ni))};function CL(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Kt(r.placement),l=Bu(s),c=[mt,Nt].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!a)){var f=xL(o.padding,r),h=ju(i),m=l==="y"?gt:mt,v=l==="y"?$t:Nt,g=r.rects.reference[d]+r.rects.reference[l]-a[l]-r.rects.popper[d],y=a[l]-r.rects.reference[l],b=oi(i),T=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,E=g/2-y/2,x=f[m],C=T-h[d]-f[v],_=T/2-h[d]/2+E,k=wo(x,_,C),O=l;r.modifiersData[n]=(t={},t[O]=k,t.centerOffset=k-_,t)}}function EL(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||iv(t.elements.popper,o)&&(t.elements.arrow=o))}const TL={name:"arrow",enabled:!0,phase:"main",fn:CL,effect:EL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function On(e){return e.split("-")[1]}var SL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function RL(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:_n(r*o)/o||0,y:_n(n*o)/o||0}}function rh(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=h===void 0?0:h,v=a.y,g=v===void 0?0:v,y=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var b=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),E=mt,x=gt,C=window;if(c){var _=oi(r),k="clientHeight",O="clientWidth";if(_===Tt(r)&&(_=_r(r),lr(_).position!=="static"&&s==="absolute"&&(k="scrollHeight",O="scrollWidth")),_=_,o===gt||(o===mt||o===Nt)&&i===Bo){x=$t;var D=f&&_===C&&C.visualViewport?C.visualViewport.height:_[k];g-=D-n.height,g*=l?1:-1}if(o===mt||(o===gt||o===$t)&&i===Bo){E=Nt;var F=f&&_===C&&C.visualViewport?C.visualViewport.width:_[O];m-=F-n.width,m*=l?1:-1}}var H=Object.assign({position:s},c&&SL),R=d===!0?RL({x:m,y:g},Tt(r)):{x:m,y:g};if(m=R.x,g=R.y,l){var A;return Object.assign({},H,(A={},A[x]=T?"0":"",A[E]=b?"0":"",A.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",A))}return Object.assign({},H,(t={},t[x]=T?g+"px":"",t[E]=b?m+"px":"",t.transform="",t))}function _L(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Kt(t.placement),variation:On(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rh(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rh(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ML={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_L,data:{}};var ki={passive:!0};function OL(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,l=Tt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,ki)}),s&&l.addEventListener("resize",r.update,ki),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,ki)}),s&&l.removeEventListener("resize",r.update,ki)}}const kL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OL,data:{}};var AL={left:"right",right:"left",bottom:"top",top:"bottom"};function zi(e){return e.replace(/left|right|bottom|top/g,function(t){return AL[t]})}var IL={start:"end",end:"start"};function nh(e){return e.replace(/start|end/g,function(t){return IL[t]})}function Hu(e){var t=Tt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function zu(e){return Mn(_r(e)).left+Hu(e).scrollLeft}function PL(e,t){var r=Tt(e),n=_r(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=ov();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+zu(e),y:l}}function DL(e){var t,r=_r(e),n=Hu(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=zr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=zr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+zu(e),l=-n.scrollTop;return lr(o||r).direction==="rtl"&&(s+=zr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Wu(e){var t=lr(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function cv(e){return["html","body","#document"].indexOf(Zt(e))>=0?e.ownerDocument.body:Pt(e)&&Wu(e)?e:cv(ms(e))}function xo(e,t){var r;t===void 0&&(t=[]);var n=cv(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Tt(n),a=o?[i].concat(i.visualViewport||[],Wu(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(xo(ms(a)))}function mc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $L(e,t){var r=Mn(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 oh(e,t,r){return t===rv?mc(PL(e,r)):Gr(t)?$L(t,r):mc(DL(_r(e)))}function NL(e){var t=xo(ms(e)),r=["absolute","fixed"].indexOf(lr(e).position)>=0,n=r&&Pt(e)?oi(e):e;return Gr(n)?t.filter(function(o){return Gr(o)&&iv(o,n)&&Zt(o)!=="body"}):[]}function LL(e,t,r,n){var o=t==="clippingParents"?NL(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(l,c){var d=oh(e,c,n);return l.top=zr(d.top,l.top),l.right=la(d.right,l.right),l.bottom=la(d.bottom,l.bottom),l.left=zr(d.left,l.left),l},oh(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function uv(e){var t=e.reference,r=e.element,n=e.placement,o=n?Kt(n):null,i=n?On(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case gt:l={x:a,y:t.y-r.height};break;case $t:l={x:a,y:t.y+t.height};break;case Nt:l={x:t.x+t.width,y:s};break;case mt:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Bu(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Rn:l[c]=l[c]-(t[d]/2-r[d]/2);break;case Bo:l[c]=l[c]+(t[d]/2-r[d]/2);break}}return l}function Ho(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?nL:s,c=r.rootBoundary,d=c===void 0?rv:c,f=r.elementContext,h=f===void 0?eo:f,m=r.altBoundary,v=m===void 0?!1:m,g=r.padding,y=g===void 0?0:g,b=sv(typeof y!="number"?y:lv(y,ni)),T=h===eo?oL:eo,E=e.rects.popper,x=e.elements[v?T:h],C=LL(Gr(x)?x:x.contextElement||_r(e.elements.popper),l,d,a),_=Mn(e.elements.reference),k=uv({reference:_,element:E,strategy:"absolute",placement:o}),O=mc(Object.assign({},E,k)),D=h===eo?O:_,F={top:C.top-D.top+b.top,bottom:D.bottom-C.bottom+b.bottom,left:C.left-D.left+b.left,right:D.right-C.right+b.right},H=e.modifiersData.offset;if(h===eo&&H){var R=H[o];Object.keys(F).forEach(function(A){var B=[Nt,$t].indexOf(A)>=0?1:-1,j=[gt,$t].indexOf(A)>=0?"y":"x";F[A]+=R[j]*B})}return F}function FL(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?nv:l,d=On(n),f=d?s?eh:eh.filter(function(v){return On(v)===d}):ni,h=f.filter(function(v){return c.indexOf(v)>=0});h.length===0&&(h=f);var m=h.reduce(function(v,g){return v[g]=Ho(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Kt(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function jL(e){if(Kt(e)===Lu)return[];var t=zi(e);return[nh(e),t,nh(t)]}function BL(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,d=r.boundary,f=r.rootBoundary,h=r.altBoundary,m=r.flipVariations,v=m===void 0?!0:m,g=r.allowedAutoPlacements,y=t.options.placement,b=Kt(y),T=b===y,E=l||(T||!v?[zi(y)]:jL(y)),x=[y].concat(E).reduce(function(X,J){return X.concat(Kt(J)===Lu?FL(t,{placement:J,boundary:d,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:g}):J)},[]),C=t.rects.reference,_=t.rects.popper,k=new Map,O=!0,D=x[0],F=0;F<x.length;F++){var H=x[F],R=Kt(H),A=On(H)===Rn,B=[gt,$t].indexOf(R)>=0,j=B?"width":"height",L=Ho(t,{placement:H,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),I=B?A?Nt:mt:A?$t:gt;C[j]>_[j]&&(I=zi(I));var z=zi(I),Y=[];if(i&&Y.push(L[R]<=0),s&&Y.push(L[I]<=0,L[z]<=0),Y.every(function(X){return X})){D=H,O=!1;break}k.set(H,Y)}if(O)for(var P=v?3:1,V=function(J){var ee=x.find(function(oe){var ne=k.get(oe);if(ne)return ne.slice(0,J).every(function(ue){return ue})});if(ee)return D=ee,"break"},K=P;K>0;K--){var q=V(K);if(q==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const HL={name:"flip",enabled:!0,phase:"main",fn:BL,requiresIfExists:["offset"],data:{_skip:!1}};function ih(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 ah(e){return[gt,Nt,$t,mt].some(function(t){return e[t]>=0})}function zL(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ho(t,{elementContext:"reference"}),s=Ho(t,{altBoundary:!0}),l=ih(a,n),c=ih(s,o,i),d=ah(l),f=ah(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const WL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zL};function VL(e,t,r){var n=Kt(e),o=[mt,gt].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[mt,Nt].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function UL(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=nv.reduce(function(d,f){return d[f]=VL(f,t.rects,i),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const GL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:UL};function YL(e){var t=e.state,r=e.name;t.modifiersData[r]=uv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const qL={name:"popperOffsets",enabled:!0,phase:"read",fn:YL,data:{}};function XL(e){return e==="x"?"y":"x"}function KL(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,f=r.padding,h=r.tether,m=h===void 0?!0:h,v=r.tetherOffset,g=v===void 0?0:v,y=Ho(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),b=Kt(t.placement),T=On(t.placement),E=!T,x=Bu(b),C=XL(x),_=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,F=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(_){if(i){var A,B=x==="y"?gt:mt,j=x==="y"?$t:Nt,L=x==="y"?"height":"width",I=_[x],z=I+y[B],Y=I-y[j],P=m?-O[L]/2:0,V=T===Rn?k[L]:O[L],K=T===Rn?-O[L]:-k[L],q=t.elements.arrow,X=m&&q?ju(q):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:av(),ee=J[B],oe=J[j],ne=wo(0,k[L],X[L]),ue=E?k[L]/2-P-ne-ee-F.mainAxis:V-ne-ee-F.mainAxis,ie=E?-k[L]/2+P+ne+oe+F.mainAxis:K+ne+oe+F.mainAxis,ve=t.elements.arrow&&oi(t.elements.arrow),W=ve?x==="y"?ve.clientTop||0:ve.clientLeft||0:0,re=(A=H==null?void 0:H[x])!=null?A:0,ce=I+ue-re-W,ge=I+ie-re,Xe=wo(m?la(z,ce):z,I,m?zr(Y,ge):Y);_[x]=Xe,R[x]=Xe-I}if(s){var Ue,He=x==="x"?gt:mt,Rt=x==="x"?$t:Nt,Qe=_[C],st=C==="y"?"height":"width",Je=Qe+y[He],se=Qe-y[Rt],ot=[gt,mt].indexOf(b)!==-1,li=(Ue=H==null?void 0:H[C])!=null?Ue:0,ci=ot?Je:Qe-k[st]-O[st]-li+F.altAxis,Zr=ot?Qe+k[st]+O[st]-li-F.altAxis:se,ui=m&&ot?wL(ci,Qe,Zr):wo(m?ci:Je,Qe,m?Zr:se);_[C]=ui,R[C]=ui-Qe}t.modifiersData[n]=R}}const QL={name:"preventOverflow",enabled:!0,phase:"main",fn:KL,requiresIfExists:["offset"]};function ZL(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JL(e){return e===Tt(e)||!Pt(e)?Hu(e):ZL(e)}function eF(e){var t=e.getBoundingClientRect(),r=_n(t.width)/e.offsetWidth||1,n=_n(t.height)/e.offsetHeight||1;return r!==1||n!==1}function tF(e,t,r){r===void 0&&(r=!1);var n=Pt(t),o=Pt(t)&&eF(t),i=_r(t),a=Mn(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Zt(t)!=="body"||Wu(i))&&(s=JL(t)),Pt(t)?(l=Mn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=zu(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function rF(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function nF(e){var t=rF(e);return hL.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function oF(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function iF(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var sh={placement:"bottom",modifiers:[],strategy:"absolute"};function lh(){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 aF(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?sh:o;return function(s,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},sh,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],h=!1,m={state:d,setOptions:function(b){var T=typeof b=="function"?b(d.options):b;g(),d.options=Object.assign({},i,d.options,T),d.scrollParents={reference:Gr(s)?xo(s):s.contextElement?xo(s.contextElement):[],popper:xo(l)};var E=nF(iF([].concat(n,d.options.modifiers)));return d.orderedModifiers=E.filter(function(x){return x.enabled}),v(),m.update()},forceUpdate:function(){if(!h){var b=d.elements,T=b.reference,E=b.popper;if(lh(T,E)){d.rects={reference:tF(T,oi(E),d.options.strategy==="fixed"),popper:ju(E)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var x=0;x<d.orderedModifiers.length;x++){if(d.reset===!0){d.reset=!1,x=-1;continue}var C=d.orderedModifiers[x],_=C.fn,k=C.options,O=k===void 0?{}:k,D=C.name;typeof _=="function"&&(d=_({state:d,options:O,name:D,instance:m})||d)}}}},update:oF(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),h=!0}};if(!lh(s,l))return m;m.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function v(){d.orderedModifiers.forEach(function(y){var b=y.name,T=y.options,E=T===void 0?{}:T,x=y.effect;if(typeof x=="function"){var C=x({state:d,name:b,instance:m,options:E}),_=function(){};f.push(C||_)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var sF=[kL,qL,ML,vL,GL,HL,QL,TL,WL],lF=aF({defaultModifiers:sF});function cF(e){return Oe("MuiPopper",e)}ke("MuiPopper",["root"]);function uF(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 ca(e){return typeof e=="function"?e():e}function vs(e){return e.nodeType!==void 0}function dF(e){return!vs(e)}const fF=e=>{const{classes:t}=e;return Be({root:["root"]},cF,t)},pF={},hF=$.forwardRef(function(t,r){var L;const j=t,{anchorEl:n,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:d,popperRef:f,slotProps:h={},slots:m={},TransitionProps:v,ownerState:g}=j,y=te(j,["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"]),b=$.useRef(null),T=ft(b,r),E=$.useRef(null),x=ft(E,f),C=$.useRef(x);xr(()=>{C.current=x},[x]),$.useImperativeHandle(f,()=>E.current,[]);const _=uF(c,i),[k,O]=$.useState(_),[D,F]=$.useState(ca(n));$.useEffect(()=>{E.current&&E.current.forceUpdate()}),$.useEffect(()=>{n&&F(ca(n))},[n]),xr(()=>{if(!D||!l)return;const I=P=>{O(P.placement)};if(process.env.NODE_ENV!=="production"&&D&&vs(D)&&D.nodeType===1){const P=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&P.top===0&&P.left===0&&P.right===0&&P.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(`
299
- `))}let z=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:P})=>{I(P)}}];s!=null&&(z=z.concat(s)),d&&d.modifiers!=null&&(z=z.concat(d.modifiers));const Y=lF(D,b.current,N(w({placement:_},d),{modifiers:z}));return C.current(Y),()=>{Y.destroy(),C.current(null)}},[D,a,s,l,d,_]);const H={placement:k};v!==null&&(H.TransitionProps=v);const R=fF(t),A=(L=m.root)!=null?L:"div",B=Fc({elementType:A,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:R.root});return Z.jsx(A,N(w({},B),{children:typeof o=="function"?o(H):o}))}),dv=$.forwardRef(function(t,r){const F=t,{anchorEl:n,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:d,placement:f="bottom",popperOptions:h=pF,popperRef:m,style:v,transition:g=!1,slotProps:y={},slots:b={}}=F,T=te(F,["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"]),[E,x]=$.useState(!0),C=()=>{x(!1)},_=()=>{x(!0)};if(!l&&!d&&(!g||E))return null;let k;if(i)k=i;else if(n){const H=ca(n);k=H&&vs(H)?Ct(H).body:Ct(null).body}const O=!d&&l&&(!g||E)?"none":void 0,D=g?{in:d,onEnter:C,onExited:_}:void 0;return Z.jsx(ko,{disablePortal:s,container:k,children:Z.jsx(hF,N(w({anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:r,open:g?!E:d,placement:f,popperOptions:h,popperRef:m,slotProps:y,slots:b},T),{style:w({position:"fixed",top:0,left:0,display:O},v),TransitionProps:D,children:o}))})});process.env.NODE_ENV!=="production"&&(dv.propTypes={anchorEl:cr(u.oneOfType([ir,u.object,u.func]),e=>{if(e.open){const t=ca(e.anchorEl);if(t&&vs(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(`
300
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||dF(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(`
301
- `))}return null}),children:u.oneOfType([u.node,u.func]),container:u.oneOfType([ir,u.func]),direction:u.oneOf(["ltr","rtl"]),disablePortal:u.bool,keepMounted:u.bool,modifiers:u.arrayOf(u.shape({data:u.object,effect:u.func,enabled:u.bool,fn:u.func,name:u.any,options:u.object,phase:u.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:u.arrayOf(u.string),requiresIfExists:u.arrayOf(u.string)})),open:u.bool.isRequired,placement:u.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:u.shape({modifiers:u.array,onFirstUpdate:u.func,placement:u.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:u.oneOf(["absolute","fixed"])}),popperRef:qo,slotProps:u.shape({root:u.oneOfType([u.func,u.object])}),slots:u.shape({root:u.elementType}),transition:u.bool});const gF=de(dv,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ii=$.forwardRef(function(t,r){var O;const n=wa(),k=Fe({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:m,placement:v,popperOptions:g,popperRef:y,transition:b,slots:T,slotProps:E}=k,x=te(k,["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"]),C=(O=T==null?void 0:T.root)!=null?O:s==null?void 0:s.Root,_=w({anchorEl:i,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:m,placement:v,popperOptions:g,popperRef:y,transition:b},x);return Z.jsx(gF,N(w({as:a,direction:n?"rtl":"ltr",slots:{root:C},slotProps:E!=null?E:l},_),{ref:r}))});process.env.NODE_ENV!=="production"&&(ii.propTypes={anchorEl:u.oneOfType([ir,u.object,u.func]),children:u.oneOfType([u.node,u.func]),component:u.elementType,components:u.shape({Root:u.elementType}),componentsProps:u.shape({root:u.oneOfType([u.func,u.object])}),container:u.oneOfType([ir,u.func]),disablePortal:u.bool,keepMounted:u.bool,modifiers:u.arrayOf(u.shape({data:u.object,effect:u.func,enabled:u.bool,fn:u.func,name:u.any,options:u.object,phase:u.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:u.arrayOf(u.string),requiresIfExists:u.arrayOf(u.string)})),open:u.bool.isRequired,placement:u.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:u.shape({modifiers:u.array,onFirstUpdate:u.func,placement:u.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:u.oneOf(["absolute","fixed"])}),popperRef:qo,slotProps:u.shape({root:u.oneOfType([u.func,u.object])}),slots:u.shape({root:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),transition:u.bool});function mF(e){return Oe("MuiTooltip",e)}const Ve=ke("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function vF(e){return Math.round(e*1e5)/1e5}const yF=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${fe(i.split("-")[0])}`],arrow:["arrow"]};return Be(a,mF,t)},bF=de(ii,{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]}})(Ye(({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"] .${Ve.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ve.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ve.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ve.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ve.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ve.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ve.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ve.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),wF=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${fe(r.placement.split("-")[0])}`]]}})(Ye(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ne(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,[`.${Ve.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ve.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ve.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ve.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:`${vF(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ve.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ve.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ve.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ve.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ve.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ve.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ve.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ve.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ve.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ve.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),xF=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ye(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ne(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ai=!1;const ch=new Na;let to={x:0,y:0};function Ii(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const ys=$.forwardRef(function(t,r){var td,rd,nd;const n=Fe({props:t,name:"MuiTooltip"}),ed=n,{arrow:o=!1,children:i,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:m=!1,enterDelay:v=100,enterNextDelay:g=0,enterTouchDelay:y=700,followCursor:b=!1,id:T,leaveDelay:E=0,leaveTouchDelay:x=1500,onClose:C,onOpen:_,open:k,placement:O="bottom",PopperComponent:D,PopperProps:F={},slotProps:H={},slots:R={},title:A,TransitionComponent:B,TransitionProps:j}=ed,L=te(ed,["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"]),I=$.isValidElement(i)?i:Z.jsx("span",{children:i}),z=Xo(),Y=wa(),[P,V]=$.useState(),[K,q]=$.useState(null),X=$.useRef(!1),J=h||b,ee=$r(),oe=$r(),ne=$r(),ue=$r(),[ie,ve]=Wc({controlled:k,default:!1,name:"Tooltip",state:"open"});let W=ie;if(process.env.NODE_ENV!=="production"){const{current:pe}=$.useRef(k!==void 0);$.useEffect(()=>{P&&P.disabled&&!pe&&A!==""&&P.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(`
302
- `))},[A,P,pe])}const re=$a(T),ce=$.useRef(),ge=nr(()=>{ce.current!==void 0&&(document.body.style.WebkitUserSelect=ce.current,ce.current=void 0),ue.clear()});$.useEffect(()=>ge,[ge]);const Xe=pe=>{ch.clear(),Ai=!0,ve(!0),_&&!W&&_(pe)},Ue=nr(pe=>{ch.start(800+E,()=>{Ai=!1}),ve(!1),C&&W&&C(pe),ee.start(z.transitions.duration.shortest,()=>{X.current=!1})}),He=pe=>{X.current&&pe.type!=="touchstart"||(P&&P.removeAttribute("title"),oe.clear(),ne.clear(),v||Ai&&g?oe.start(Ai?g:v,()=>{Xe(pe)}):Xe(pe))},Rt=pe=>{oe.clear(),ne.start(E,()=>{Ue(pe)})},[,Qe]=$.useState(!1),st=pe=>{Yi(pe.target)||(Qe(!1),Rt(pe))},Je=pe=>{P||V(pe.currentTarget),Yi(pe.target)&&(Qe(!0),He(pe))},se=pe=>{X.current=!0;const jt=I.props;jt.onTouchStart&&jt.onTouchStart(pe)},ot=pe=>{se(pe),ne.clear(),ee.clear(),ge(),ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(y,()=>{document.body.style.WebkitUserSelect=ce.current,He(pe)})},li=pe=>{I.props.onTouchEnd&&I.props.onTouchEnd(pe),ge(),ne.start(x,()=>{Ue(pe)})};$.useEffect(()=>{if(!W)return;function pe(jt){jt.key==="Escape"&&Ue(jt)}return document.addEventListener("keydown",pe),()=>{document.removeEventListener("keydown",pe)}},[Ue,W]);const ci=ft(In(I),V,r);!A&&A!==0&&(W=!1);const Zr=$.useRef(),ui=pe=>{const jt=I.props;jt.onMouseMove&&jt.onMouseMove(pe),to={x:pe.clientX,y:pe.clientY},Zr.current&&Zr.current.update()},Wn={},Cs=typeof A=="string";c?(Wn.title=!W&&Cs&&!f?A:null,Wn["aria-describedby"]=W?re:null):(Wn["aria-label"]=Cs?A:null,Wn["aria-labelledby"]=W&&!Cs?re:null);const _t=w(N(w(w(w({},Wn),L),I.props),{className:he(L.className,I.props.className),onTouchStart:se,ref:ci}),b?{onMouseMove:ui}:{});process.env.NODE_ENV!=="production"&&(_t["data-mui-internal-clone-element"]=!0,$.useEffect(()=>{P&&!P.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(`
303
- `))},[P]));const Vn={};m||(_t.onTouchStart=ot,_t.onTouchEnd=li),f||(_t.onMouseOver=Ii(He,_t.onMouseOver),_t.onMouseLeave=Ii(Rt,_t.onMouseLeave),J||(Vn.onMouseOver=He,Vn.onMouseLeave=Rt)),d||(_t.onFocus=Ii(Je,_t.onFocus),_t.onBlur=Ii(st,_t.onBlur),J||(Vn.onFocus=Je,Vn.onBlur=st)),process.env.NODE_ENV!=="production"&&I.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${I.props.title}\` or the Tooltip component.`].join(`
304
- `));const Mr=N(w({},n),{isRtl:Y,arrow:o,disableInteractive:J,placement:O,PopperComponentProp:D,touch:X.current}),vt=typeof H.popper=="function"?H.popper(Mr):H.popper,R1=$.useMemo(()=>{var jt,od;let pe=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return(jt=F.popperOptions)!=null&&jt.modifiers&&(pe=pe.concat(F.popperOptions.modifiers)),(od=vt==null?void 0:vt.popperOptions)!=null&&od.modifiers&&(pe=pe.concat(vt.popperOptions.modifiers)),N(w(w({},F.popperOptions),vt==null?void 0:vt.popperOptions),{modifiers:pe})},[K,F.popperOptions,vt==null?void 0:vt.popperOptions]),Es=yF(Mr),Ts=typeof H.transition=="function"?H.transition(Mr):H.transition,di={slots:w({popper:s.Popper,transition:(td=s.Transition)!=null?td:B,tooltip:s.Tooltip,arrow:s.Arrow},R),slotProps:{arrow:(rd=H.arrow)!=null?rd:l.arrow,popper:w(w({},F),vt!=null?vt:l.popper),tooltip:(nd=H.tooltip)!=null?nd:l.tooltip,transition:w(w({},j),Ts!=null?Ts:l.transition)}},[_1,M1]=tt("popper",{elementType:bF,externalForwardedProps:di,ownerState:Mr,className:he(Es.popper,F==null?void 0:F.className)}),[O1,k1]=tt("transition",{elementType:Oo,externalForwardedProps:di,ownerState:Mr}),[A1,I1]=tt("tooltip",{elementType:wF,className:Es.tooltip,externalForwardedProps:di,ownerState:Mr}),[P1,D1]=tt("arrow",{elementType:xF,className:Es.arrow,externalForwardedProps:di,ownerState:Mr,ref:q});return Z.jsxs($.Fragment,{children:[$.cloneElement(I,_t),Z.jsx(_1,N(w(w({as:D!=null?D:ii,placement:O,anchorEl:b?{getBoundingClientRect:()=>({top:to.y,left:to.x,right:to.x,bottom:to.y,width:0,height:0})}:P,popperRef:Zr,open:P?W:!1,id:re,transition:!0},Vn),M1),{popperOptions:R1,children:({TransitionProps:pe})=>Z.jsx(O1,N(w(w({timeout:z.transitions.duration.shorter},pe),k1),{children:Z.jsxs(A1,N(w({},I1),{children:[A,o?Z.jsx(P1,w({},D1)):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(ys.propTypes={arrow:u.bool,children:Yr.isRequired,classes:u.object,className:u.string,components:u.shape({Arrow:u.elementType,Popper:u.elementType,Tooltip:u.elementType,Transition:u.elementType}),componentsProps:u.shape({arrow:u.object,popper:u.object,tooltip:u.object,transition:u.object}),describeChild:u.bool,disableFocusListener:u.bool,disableHoverListener:u.bool,disableInteractive:u.bool,disableTouchListener:u.bool,enterDelay:u.number,enterNextDelay:u.number,enterTouchDelay:u.number,followCursor:u.bool,id:u.string,leaveDelay:u.number,leaveTouchDelay:u.number,onClose:u.func,onOpen:u.func,open:u.bool,placement:u.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:u.elementType,PopperProps:u.object,slotProps:u.shape({arrow:u.oneOfType([u.func,u.object]),popper:u.oneOfType([u.func,u.object]),tooltip:u.oneOfType([u.func,u.object]),transition:u.oneOfType([u.func,u.object])}),slots:u.shape({arrow:u.elementType,popper:u.elementType,tooltip:u.elementType,transition:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),title:u.node,TransitionComponent:u.elementType,TransitionProps:u.object});const CF=()=>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),EF=e=>p.isNumber$1(e)?"right":"left",uh=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:o})=>{const i=e.length>n;return p.jsx("div",{className:uo.tableCellContent,style:{maxWidth:`${t-r}px`},children:o?p.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):i?p.jsx(ys,{title:e,children:p.jsx("div",{children:e})}):p.jsx("div",{children:e})})},TF=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:o,themeSettings:i,onSortUpdate:a})=>{var T,E,x;const s=o&&o.showFieldTypeIcon!==void 0?o.showFieldTypeIcon:!0,l=Zm+(s?Jm:0),c=(o==null?void 0:o.paddingVertical)||Qp,d=(o==null?void 0:o.paddingHorizontal)||Qp,f=((T=o==null?void 0:o.columns)==null?void 0:T.width)==="auto"?(n-d*2-CF())/t.columns.length:void 0,h=S.useMemo(()=>t.columns.map(C=>({isHtml:"isHtml"in C&&!!C.isHtml,width:f})),[t.columns,f]),[m,v]=S.useState(((E=document.fonts)==null?void 0:E.status)==="loaded"),g=(x=i.typography)==null?void 0:x.fontFamily,y=S.useMemo(()=>tL(e,s,h,g),[e,s,h,g,m]);S.useEffect(()=>{var C;(C=document.fonts)==null||C.ready.then(()=>{v(!0)}).catch(_=>{console.warn("Failed to observe font loading",_)})},[]);const b=S.useMemo(()=>e.columns.map((C,_)=>{const k=y[_],O=t.columns[_],D=Jp({isHeaderCell:!0,themeSettings:i,customStyles:o});return k?p.jsx(gs,{maxWidth:hc,minWidth:hc,allowCellsRecycling:!0,width:k,header:p.jsx(aa,{className:jo(uo.tableHeader),style:D,children:p.jsx(XN,{column:C,onClick:a,isSelected:!!Math.abs(C.direction),showFieldTypeIcon:s,sortIcon:(o==null?void 0:o.sortIcon)||"standard",children:uh({displayValue:p.getDataOptionTitle(O),width:k,padding:l,ellipsizedLength:JN})})}),cell:R=>{var A=R,{rowIndex:F}=A,H=te(A,["rowIndex"]);return p.jsx(aa,N(w({className:jo(uo.tableCell),style:Jp({colIndex:_,rowIndex:F,themeSettings:i,customStyles:o})},H),{children:uh({displayValue:e.rows[F][_].displayValue,width:k,padding:ev,ellipsizedLength:eL,isHtml:"isHtml"in O&&O.isHtml})}))},align:EF(C.type)},`col${_}`):null}),[e,y,i,o,a,s,t,l]);return S.useMemo(()=>p.jsx("div",{className:uo.tableWrapper,style:{padding:`${c}px ${d}px`},children:p.jsx(Y7,{className:uo.table,rowHeight:(o==null?void 0:o.rowHeight)||QN,rowsCount:e.rows.length,width:n-d*2,height:r-c*2,headerHeight:(o==null?void 0:o.headerHeight)||KN,children:b})}),[b,o,e,r,d,c,n])},SF="_component_1rw9b_1",RF={component:SF},_F=(e,t)=>{if(!e.columns.some(a=>p.isNumber$1(a.type)))return e;const r=e.columns,o=e.rows.map(a=>a.map((s,l)=>{const c=r[l].type,d=p.getCompleteNumberFormatConfig(t.columns[l].numberFormatConfig);if(p.isNumber$1(c)){const f=p.createCompareValue(s.displayValue,c);return{displayValue:p.applyFormatPlainText(d,f.value),compareValue:f}}else return s}));return{columns:r,rows:o}},MF=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:o,width:i=400,height:a=500})=>{const s=S.useRef(null),l=S.useRef(e),c=S.useMemo(()=>_F(e,t),[e,t]);S.useLayoutEffect(()=>{l.current=e},[e]);const d=S.useMemo(()=>w({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return p.jsx("div",{className:RF.component,ref:s,children:p.jsx(TF,{dataTable:c,dataOptions:t,onSortUpdate:n,height:a,width:i,customStyles:d,themeSettings:o})})},OF=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}}),kF=e=>({paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:e.header,rows:e.rows,columns:e.columns}),fv=25,pv=10,hv=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n,onDataReady:o})=>{const{rowsPerPage:i=fv,width:a,height:s}=r,{themeSettings:l}=p.useThemeContext(),[c,d]=S.useState(0),{filters:f,relations:h}=p.getFilterListAndRelationsJaql(n),[m,v]=S.useState(1),g=S.useRef(null),y=S.useMemo(()=>lg(t),[t]),b=S.useMemo(()=>ru(y.columns.filter(p.isMeasureColumn).map(p.translateColumnToMeasure)),[y]),T=S.useMemo(()=>kF(r),[r]),[E,x]=S.useState(y),[C,_]=S.useState(e),[k,O]=OT({dataSet:C,dataOptions:E,filters:f,filterRelations:h,count:i*pv,offset:c}),D=S.useMemo(()=>{if(k&&o){const j=o(k);if(!pg(j))throw new p.TranslatableError("errors.incorrectOnDataReadyHandler");return j}return k},[k]),F=kT({data:D,innerDataOptions:O,dataColumnNamesMapping:b,needToAggregate:!br(C)});S.useEffect(()=>{x(y),_(e),v(1),d(0)},[e,y]);const H=S.useCallback(j=>{if(!k)return;Math.floor(k.rows.length/i)===j&&d(k.rows.length),v(j)},[k,i]),R=S.useCallback(j=>{v(1),d(0),E&&x(_E(E,j))},[E]),A=S.useMemo(()=>{if(!F||br(C))return F;const j=F.columns.find(L=>L.direction!==0);return j?p.orderBy(F,[j]):F},[F,C]),B=S.useMemo(()=>A?{columns:A.columns,rows:A.rows.slice((m-1)*i,m*i)}:void 0,[A,m,i]);return O?p.jsx(Ha,{defaultSize:za("table"),size:{width:a,height:s},children:j=>{if(!F||!B)return p.jsx(ya,{themeSettings:l});if(p.isDataTableEmpty(F))return p.jsx(tu,{iconType:"table"});const L=Math.ceil(F.rows.length/i);return p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:l.chart.backgroundColor},"aria-label":"table-root",children:[p.jsx(MF,{dataTable:B,dataOptions:O,designOptions:T,themeSettings:l,width:j.width,height:j.height-32,onSortUpdate:R}),p.jsx(mg,{ref:g,page:m,count:L,onChange:(z,Y)=>H(Y),sx:OF(l)})]})}}):null},gv=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},AF=S.createContext(null),il={didCatch:!1,error:null};class vc extends S.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=il}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:i,reason:"imperative-api"}),this.setState(il)}}componentDidCatch(t,r){var n,o;(n=(o=this.props).onError)===null||n===void 0||n.call(o,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:o}=this.props;if(n&&r.error!==null&&IF(t.resetKeys,o)){var i,a;(i=(a=this.props).onReset)===null||i===void 0||i.call(a,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(il)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=t;if(i){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=S.createElement(n,l);else if(o===null||S.isValidElement(o))s=o;else throw a}return S.createElement(AF.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function IF(){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 mv=S.createContext(void 0),PF=({children:e})=>{const[t,r]=S.useState([]),[n,o]=S.useState([]),i=()=>r([]),a=()=>o([]);return p.jsx(mv.Provider,{value:{errors:t,warnings:n,clearError:i,clearWarning:a,setErrors:r,setWarnings:o},children:e})},vv=()=>{const e=S.useContext(mv);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 Vu(e,t,r){const n=p.usePrevious(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(i=>!p.isEqual(n[i],e[i])):!p.isEqual(n,e))?!0:r?r(e,n):!1}const DF="BE#081586",$F="BE#733473",NF=e=>{const[t,r]=S.useState(0),{setErrors:n,errors:o}=vv(),i=Vu(e,["dataOptions","filters"]);if(S.useEffect(()=>{i&&o.length>0&&(r(t+1),n([]))},[e.dataOptions,e.filters]),!br(e.dataSet))throw new p.TranslatableError("errors.undefinedDataSource");const a=p.cloneDeep(e.dataOptions),s=p.extractTrendMeasures(a);a.value.push(...s);const l=p.extractForecastMeasures(a);a.value.push(...l);const c=S.useCallback(({error:h})=>{console.debug("Unexpected error occurred when rendering advanced chart:",h);const m=p.cloneDeep(a),v=f(h.toString());return m.value=m.value.filter(g=>{const y="column"in g?g.column.name:g.name;return!("column"in g&&"type"in g.column&&g.column.type==="calculatedmeasure"&&v.some(b=>b.includes(y)))}),p.jsx(vc,{fallbackRender:d,onError:g=>{const y=f(g.toString());n(b=>[...new Set([...b,...y])])},children:p.jsx($i,N(w({},e),{dataOptions:m}))},`errorboundary_${t}`)},[e,o]),d=S.useCallback(({error:h})=>(console.debug("Error occurred when rendering fallback chart:",h),h.toString().includes(DF)?p.jsx($i,w({},e)):p.jsx(Pc,{error:o[0]})),[e,o]),f=h=>{if(h.includes($F)){const m=/Error: BE#733473 More than 1 Function failed, aggregated failures:\s*/;if(m.test(h))return h.replace(m,"").split(";").map(g=>g.trim()).filter(Boolean)}return[h.trim()]};return p.jsx(vc,{fallbackRender:c,onError:h=>{const m=f(h.toString());n(v=>[...new Set([...v,...m])])},children:p.jsx($i,N(w({},e),{dataOptions:a}))},`errorboundary_${t}`)},yv=Qo({componentName:"Chart",shouldSkipSisenseContextWaiting:gv,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(LF(e))return p.jsx(hv,w({},e));if(FF(e))return p.jsx(NF,w({},e));if(bv(e))return p.jsx($i,w({},e));throw new p.TranslatableError("errors.chartInvalidProps")});function LF(e){return e.chartType==="table"&&"columns"in e.dataOptions}function bv(e){return e.chartType!=="table"}function FF(e){return!bv(e)||!p.isCartesian(e.chartType)?!1:e.dataOptions.value.some(r=>(r==null?void 0:r.forecast)!==void 0||(r==null?void 0:r.trend)!==void 0)}var jF=function(e){return e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e}({}),yc=function(e){return e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e}(yc||{}),bc=function(e){return e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e}(bc||{}),wv=function(e){return e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e}({});const BF=(e,t)=>{const r=p.get(e,"shadow",t.widget.shadow),n=p.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in yc&&n in bc){const o=yc[`${r}`];return`0px ${bc[`${n}`]} rgba(9, 9, 10, ${o})`}return"none"};function HF(e){return Oe("MuiCard",e)}ke("MuiCard",["root"]);const zF=e=>{const{classes:t}=e;return Be({root:["root"]},HF,t)},WF=de(La,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),xv=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiCard"}),c=n,{className:o,raised:i=!1}=c,a=te(c,["className","raised"]),s=N(w({},n),{raised:i}),l=zF(s);return Z.jsx(WF,w({className:he(l.root,o),elevation:i?8:void 0,ref:r,ownerState:s},a))});process.env.NODE_ENV!=="production"&&(xv.propTypes={children:u.node,classes:u.object,className:u.string,raised:cr(u.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function VF(e){return Oe("MuiCardContent",e)}ke("MuiCardContent",["root"]);const UF=e=>{const{classes:t}=e;return Be({root:["root"]},VF,t)},GF=de("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Cv=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiCardContent"}),c=n,{className:o,component:i="div"}=c,a=te(c,["className","component"]),s=N(w({},n),{component:i}),l=UF(s);return Z.jsx(GF,w({as:i,className:he(l.root,o),ownerState:s,ref:r},a))});process.env.NODE_ENV!=="production"&&(Cv.propTypes={children:u.node,classes:u.object,className:u.string,component:u.elementType,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function YF(e){return Oe("MuiCircularProgress",e)}ke("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fr=44,wc=Uo`
305
- 0% {
306
- transform: rotate(0deg);
307
- }
308
-
309
- 100% {
310
- transform: rotate(360deg);
311
- }
312
- `,xc=Uo`
313
- 0% {
314
- stroke-dasharray: 1px, 200px;
315
- stroke-dashoffset: 0;
316
- }
317
-
318
- 50% {
319
- stroke-dasharray: 100px, 200px;
320
- stroke-dashoffset: -15px;
321
- }
322
-
323
- 100% {
324
- stroke-dasharray: 1px, 200px;
325
- stroke-dashoffset: -126px;
326
- }
327
- `,qF=typeof wc!="string"?va`
328
- animation: ${wc} 1.4s linear infinite;
329
- `:null,XF=typeof xc!="string"?va`
330
- animation: ${xc} 1.4s ease-in-out infinite;
331
- `:null,KF=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${fe(n)}`],svg:["svg"],circle:["circle",`circle${fe(r)}`,o&&"circleDisableShrink"]};return Be(i,YF,t)},QF=de("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${fe(r.color)}`]]}})(Ye(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:qF||{animation:`${wc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Er()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ZF=de("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),JF=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${fe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Ye(({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:XF||{animation:`${xc} 1.4s ease-in-out infinite`}}]}))),Uu=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiCircularProgress"}),T=n,{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=T,h=te(T,["className","color","disableShrink","size","style","thickness","value","variant"]),m=N(w({},n),{color:i,disableShrink:a,size:s,thickness:c,value:d,variant:f}),v=KF(m),g={},y={},b={};if(f==="determinate"){const E=2*Math.PI*((fr-c)/2);g.strokeDasharray=E.toFixed(3),b["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*E).toFixed(3)}px`,y.transform="rotate(-90deg)"}return Z.jsx(QF,N(w(w({className:he(v.root,o),style:w(w({width:s,height:s},y),l),ownerState:m,ref:r,role:"progressbar"},b),h),{children:Z.jsx(ZF,{className:v.svg,ownerState:m,viewBox:`${fr/2} ${fr/2} ${fr} ${fr}`,children:Z.jsx(JF,{className:v.circle,style:g,ownerState:m,cx:fr,cy:fr,r:(fr-c)/2,fill:"none",strokeWidth:c})})}))});process.env.NODE_ENV!=="production"&&(Uu.propTypes={classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["inherit","primary","secondary","error","info","success","warning"]),u.string]),disableShrink:cr(u.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:u.oneOfType([u.number,u.string]),style:u.object,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),thickness:u.number,value:u.number,variant:u.oneOf(["determinate","indeterminate"])});function e9(e){return Oe("MuiIconButton",e)}const dh=ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),t9=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i,loading:a}=e,s={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${fe(n)}`,o&&`edge${fe(o)}`,`size${fe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Be(s,e9,t)},r9=de(qr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${fe(r.color)}`],r.edge&&t[`edge${fe(r.edge)}`],t[`size${fe(r.size)}`]]}})(Ye(({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})`:Ne(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}}]})),Ye(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Er()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Er()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne((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)}}],[`&.${dh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${dh.loading}`]:{color:"transparent"}}))),n9=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"}}]})),kn=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiIconButton"}),E=n,{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",id:f,loading:h=null,loadingIndicator:m}=E,v=te(E,["edge","children","className","color","disabled","disableFocusRipple","size","id","loading","loadingIndicator"]),g=$a(f),y=m!=null?m:Z.jsx(Uu,{"aria-labelledby":g,color:"inherit",size:16}),b=N(w({},n),{edge:o,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:y,size:d}),T=t9(b);return Z.jsxs(r9,N(w({id:h?g:f,className:he(T.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:r},v),{ownerState:b,children:[typeof h=="boolean"&&Z.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:Z.jsx(n9,{className:T.loadingIndicator,ownerState:b,children:h&&y})}),i]}))});process.env.NODE_ENV!=="production"&&(kn.propTypes={children:cr(u.node,e=>$.Children.toArray(e.children).some(r=>$.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(`
332
- `)):null),classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),u.string]),disabled:u.bool,disableFocusRipple:u.bool,disableRipple:u.bool,edge:u.oneOf(["end","start",!1]),id:u.string,loading:u.bool,loadingIndicator:u.node,size:u.oneOfType([u.oneOf(["small","medium","large"]),u.string]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function o9({fill:e="rgba(38, 46, 61, 0.67)"}){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:p.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 i9({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:o}){var b,T,E;const[i,a]=S.useState(null),{themeSettings:s}=p.useThemeContext(),{typography:{primaryTextColor:l,secondaryTextColor:c,fontFamily:d}}=s,{t:f}=p.useTranslation(),h=x=>{a(x.currentTarget)},m=()=>{a(null)},v=S.useMemo(()=>e?p.jsx(yt,{variant:"body2",style:{color:l,fontFamily:d,fontSize:13},children:e}):null,[e,l,d]),g=S.useMemo(()=>r.length===0?null:r.map(x=>p.jsxs(p.Fragment,{children:[p.jsx(jr,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),p.jsxs("div",{className:"csdk-flex",children:[p.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:p.jsx(o9,{fill:"#fa5656"})}),p.jsx(yt,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:d,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:x})]})]})),[r,c,d]),y=S.useMemo(()=>t?p.jsxs(p.Fragment,{children:[p.jsx(jr,{sx:{my:"8px",borderColor:c,opacity:.3}}),p.jsx(yt,{variant:"body2",style:{color:c,fontFamily:d,fontSize:13},children:t})]}):null,[t,c,d]);return p.jsxs(p.Fragment,{children:[p.jsx(ys,{title:f("widgetHeader.info.tooltip"),style:{color:(b=s.chart)==null?void 0:b.textColor,fontFamily:(T=s.typography)==null?void 0:T.fontFamily},children:p.jsx(kn,{onClick:h,sx:{p:0},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:p.jsx("path",{fill:(n==null?void 0:n.titleTextColor)||s.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),p.jsx(eu,{open:!!i,position:i?{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:m,children:p.jsxs(xv,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[p.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:p.getSlightlyDifferentColor(s.general.backgroundColor)},children:[p.jsx(yt,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily},children:f("widgetHeader.info.details")}),p.jsx(kn,{onClick:o,sx:{p:0},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:p.jsx("path",{fill:(E=s.chart)==null?void 0:E.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),p.jsx(jr,{sx:{borderColor:s.typography.secondaryTextColor,opacity:.3}}),p.jsxs(Cv,{style:{backgroundColor:s.general.backgroundColor,padding:12},children:[v,g,y]})]})})]})}const a9=({title:e,description:t,errorMessages:r=[],warningMessages:n=[],dataSetName:o,styleOptions:i,onRefresh:a})=>{var c,d,f;const{themeSettings:s}=p.useThemeContext(),l=()=>{var m;const h=p.jsx(p.Fragment,{children:p.jsx(i9,{title:o,description:t,styleOptions:i,errorMessages:r,warningMessages:n,onRefresh:a})});return i!=null&&i.renderToolbar?(m=i==null?void 0:i.renderToolbar)==null?void 0:m.call(i,a,h):h};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(i==null?void 0:i.backgroundColor)||s.widget.header.backgroundColor},children:[p.jsx("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:s9((i==null?void 0:i.titleAlignment)||s.widget.header.titleAlignment),color:(i==null?void 0:i.titleTextColor)||s.widget.header.titleTextColor,fontFamily:(c=s.typography)==null?void 0:c.fontFamily,fontSize:s.widget.header.titleFontSize},children:(f=(d=i==null?void 0:i.renderTitle)==null?void 0:d.call(i,e))!=null?f:e}),p.jsx("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:l()})]}),p.get(i,"dividerLine",s.widget.header.dividerLine)&&p.jsx(jr,{style:{backgroundColor:(i==null?void 0:i.dividerLineColor)||s.widget.header.dividerLineColor||"#e6e6e6"}})]})};function s9(e){return e.toLowerCase()}const Ev=e=>p.jsx(PF,{children:p.jsx(l9,w({},e))}),l9=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:o,bottomSlot:i,children:a,onRefresh:s=()=>{}})=>{var f,h,m;const{errors:l,warnings:c}=vv(),{themeSettings:d}=p.useThemeContext();return p.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden csdk-accessible",children:p.jsx("div",{className:"csdk-h-full",style:{padding:wv[p.get(t,"spaceAround",d.widget.spaceAround)]||"0px"},children:p.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(t==null?void 0:t.backgroundColor)||"unset",borderWidth:p.get(t,"border",d.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||d.widget.borderColor,borderRadius:jF[(t==null?void 0:t.cornerRadius)||d.widget.cornerRadius]||0,boxShadow:BF(t,d),display:"flex",flexDirection:"column"},children:[!((f=t==null?void 0:t.header)!=null&&f.hidden)&&p.jsx(a9,{title:r,description:n,dataSetName:e,errorMessages:l,warningMessages:c,styleOptions:t==null?void 0:t.header,onRefresh:s}),o,p.jsx(H0,{theme:{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((h=d.chart)==null?void 0:h.backgroundColor)}},children:p.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(t==null?void 0:t.backgroundColor)||((m=d.chart)==null?void 0:m.backgroundColor)},children:a})}),i]})})})},c9=e=>{const t=u9(e);return t.config.disabled=!e.config.disabled,t},u9=e=>{const t=p.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function d9(e,t,r){const n={guid:t,excludeMembers:!1,backgroundFilter:r};return p.members(e,[],n)}function bs(e){if(!p.isMembersFilter(e))throw new p.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return d9(t,r,n)}function Gu(e){return"members"in e&&e.members.length===0}function Dt(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function Tv(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)=>!p.isEqualWith(r,t[n],Sv))}function Yu(e,t){return Dt(e.attribute,t.attribute)}function Sv(e,t){const r=p.flow(f9,p9);return p.isEqual(r(e),r(t))}function f9(e){return N(w({},e),{name:""})}function p9(e){return N(w({},e),{config:N(w({},e.config),{guid:""})})}function h9(e,t,r,n){if(r===void 0&&n===void 0)return!1;if([r,n].some(i=>i===void 0))return!0;function o(i,a){const s=i,l=i,c=a,d=a;return i===void 0&&a===void 0?!0:[i,a].some(f=>f===void 0)||s.operator!==c.operator?!1:l.instanceid&&d.instanceid?!Tv(e==null?void 0:e.filter(f=>f.config.guid===l.instanceid),t==null?void 0:t.filter(f=>f.config.guid===d.instanceid)):o(s.left,c.left)&&o(s.right,c.right)||o(s.left,c.right)&&o(s.right,c.left)}return!o(r,n)}const Rv="sdkHookInit",g9=(e,t,r,n)=>{if(!r)return;zh(Rv,{packageName:t,packageVersion:"2.8.0",hookName:e},r.httpClient).finally(n)};function m9(e){const{tracking:t,app:r}=p.useSisenseContext(),{trackEvent:n}=Ic(),o=S.useRef(!1);S.useEffect(()=>{if(!(!t||!r)&&!o.current){const i={packageName:t.packageName||"sdk-ui",packageVersion:"2.8.0",hookName:e};n(Rv,i,!t.enabled).finally(()=>o.current=!0)}},[t,e,n,r])}const _v=e=>t=>(...r)=>(m9(e),t(...r));function Cc(e,t){switch(t.type){case"loading":return v9(e);case"success":return y9(t.data);case"error":return b9(t.error)}}function v9(e){return e.status==="loading"?e:N(w({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function y9(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function b9(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}function Mv({enabled:e},t){const r=S.useRef(!1);return S.useCallback((n,o=!1)=>{const i=e===!1||!n,a=r.current;return r.current=i,!i&&(a||t||o)},[e,t])}var al=function(){return p.root.Date.now()},w9="Expected a function",x9=Math.max,C9=Math.min;function E9(e,t,r){var n,o,i,a,s,l,c=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(w9);t=p.toNumber(t)||0,p.isObject(r)&&(d=!!r.leading,f="maxWait"in r,i=f?x9(p.toNumber(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h);function m(_){var k=n,O=o;return n=o=void 0,c=_,a=e.apply(O,k),a}function v(_){return c=_,s=setTimeout(b,t),d?m(_):a}function g(_){var k=_-l,O=_-c,D=t-k;return f?C9(D,i-O):D}function y(_){var k=_-l,O=_-c;return l===void 0||k>=t||k<0||f&&O>=i}function b(){var _=al();if(y(_))return T(_);s=setTimeout(b,g(_))}function T(_){return s=void 0,h&&n?m(_):(n=o=void 0,a)}function E(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function x(){return s===void 0?a:T(al())}function C(){var _=al(),k=y(_);if(n=arguments,o=this,l=_,k){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(b,t),m(l)}return s===void 0&&(s=setTimeout(b,t)),a}return C.cancel=E,C.flush=x,C}function qu(e,{onLocalStateChange:t,syncCompareFn:r=p.isEqual}={}){const[n,o]=S.useState(e),i=S.useRef(e);S.useEffect(()=>{r(i.current,e)||o(e),i.current=e},[e,r]);const a=S.useCallback(s=>{o(l=>{const c=p.isFunction(s)?s(l):s;return t==null||t(c),c})},[t]);return[n,a]}function T9({chartType:e,dataOptions:t,enabled:r}){const[n,o]=S.useState([]),i=S.useMemo(()=>{var h;const f=p.isCartesian(e)&&((h=t.category)==null?void 0:h.length)===1||p.isScatter(e);return r&&f},[r,e,t]),a=S.useMemo(()=>{if(n.length===0)return f=>N(w({},f),{series:f.series.map(h=>N(w({},h),{data:h.data.map(m=>N(w({},m),{selected:!1}))}))});if(p.isScatter(e))return f=>N(w({},f),{series:f.series.map(h=>N(w({},h),{data:h.data.map(m=>N(w({},m),{selected:!n.some(v=>{var g,y;return v.x===m.x&&v.y===m.y&&v.size===m.z&&v.breakByPoint===((g=m.custom)==null?void 0:g.maskedBreakByPoint)&&v.breakByColor===((y=m.custom)==null?void 0:y.maskedBreakByColor)})}))}))});{const f=n.reduce((h,{categoryValue:m})=>(m&&(h[`${m}`]=!0),h),{});return h=>N(w({},h),{series:h.series.map(m=>N(w({},m),{data:m.data.map(v=>{var g,y;return f[(y=(g=v.custom)==null?void 0:g.xValue)==null?void 0:y[0]]?v:N(w({},v),{selected:!0})})}))})}},[n,e]),s=S.useMemo(()=>f=>{var h;return N(w({},f),{chart:N(w({},f.chart),{events:N(w({},(h=f.chart)==null?void 0:h.events),{click:()=>{o([])}})})})},[]),l=S.useCallback(f=>(i&&(f=a(f),f=s(f)),f),[a,s,i]),c=S.useCallback(f=>{i&&o(f)},[i]),d=S.useCallback(f=>{i&&o([f])},[i]);return{onBeforeRender:l,onDataPointsSelected:c,onDataPointClick:d}}const Ov=()=>{const e=ba();if(!e)throw new p.TranslatableError("errors.missingMenuRoot");const{openMenu:t,closeMenu:r}=e;return{openMenu:t,closeMenu:r}};function Ec(e){return e&&e.length?ou(e):[]}function S9(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function R9(e,t){return function(r,n){if(r==null)return r;if(!p.isArrayLike(r))return e(r,n);for(var o=r.length,i=-1,a=Object(r);++i<o&&n(a[i],i,a)!==!1;);return r}}var _9=R9(p.baseForOwn);function M9(e,t,r,n){return _9(e,function(o,i,a){t(n,o,r(o),a)}),n}function kv(e,t){return function(r,n){var o=p.isArray(r)?S9:M9,i=t?t():{};return o(r,e,p.baseIteratee(n),i)}}var ai=kv(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});const O9=Pn(Z.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"),k9=de(qr)(Ye(({theme:e})=>N(w({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":w({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":w({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:yl(e.palette.grey[200],.12)}:{backgroundColor:yl(e.palette.grey[600],.12)})}))),A9=de(O9)({width:24,height:16});function Av(e){const i=e,{slots:t={},slotProps:r={}}=i,n=te(i,["slots","slotProps"]),o=e;return Z.jsx("li",{children:Z.jsx(k9,N(w({focusRipple:!0},n),{ownerState:o,children:Z.jsx(A9,w({as:t.CollapsedIcon,ownerState:o},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(Av.propTypes={slotProps:u.shape({collapsedIcon:u.oneOfType([u.func,u.object])}),slots:u.shape({CollapsedIcon:u.elementType}),sx:u.object});function I9(e){return Oe("MuiBreadcrumbs",e)}const P9=ke("MuiBreadcrumbs",["root","ol","li","separator"]),D9=e=>{const{classes:t}=e;return Be({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},I9,t)},$9=de(yt,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${P9.li}`]:t.li},t.root]})({}),N9=de("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),L9=de("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function F9(e,t,r,n){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,Z.jsx(L9,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${a}`)):o.push(i),o),[])}const Iv=$.forwardRef(function(t,r){const n=Fe({props:t,name:"MuiBreadcrumbs"}),k=n,{children:o,className:i,component:a="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:m="/"}=k,v=te(k,["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),[g,y]=$.useState(!1),b=N(w({},n),{component:a,expanded:g,expandText:c,itemsAfterCollapse:d,itemsBeforeCollapse:f,maxItems:h,separator:m}),T=D9(b),E=Fc({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:b}),x=$.useRef(null),C=O=>{const D=()=>{y(!0);const F=x.current.querySelector("a[href],button,[tabindex]");F&&F.focus()};return f+d>=O.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${f}} >= maxItems={${h}}`].join(`
333
- `)),O):[...O.slice(0,f),Z.jsx(Av,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:D},"ellipsis"),...O.slice(O.length-d,O.length)]},_=$.Children.toArray(o).filter(O=>(process.env.NODE_ENV!=="production"&&Nc.isFragment(O)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
334
- `)),$.isValidElement(O))).map((O,D)=>Z.jsx("li",{className:T.li,children:O},`child-${D}`));return Z.jsx($9,N(w({ref:r,component:a,color:"textSecondary",className:he(T.root,i),ownerState:b},v),{children:Z.jsx(N9,{className:T.ol,ref:x,ownerState:b,children:F9(g||h&&_.length<=h?_:C(_),T.separator,m,b)})}))});process.env.NODE_ENV!=="production"&&(Iv.propTypes={children:u.node,classes:u.object,className:u.string,component:u.elementType,expandText:u.string,itemsAfterCollapse:Gt,itemsBeforeCollapse:Gt,maxItems:Gt,separator:u.node,slotProps:u.shape({collapsedIcon:u.oneOfType([u.func,u.object])}),slots:u.shape({CollapsedIcon:u.elementType}),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function j9(e){return Oe("MuiButton",e)}const kr=ke("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"]),Pv=$.createContext({});process.env.NODE_ENV!=="production"&&(Pv.displayName="ButtonGroupContext");const Dv=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(Dv.displayName="ButtonGroupButtonContext");const B9=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,`color${fe(t)}`,r&&"disableElevation",n&&"fullWidth",a&&`loadingPosition${fe(s)}`],startIcon:["icon","startIcon",`iconSize${fe(o)}`],endIcon:["icon","endIcon",`iconSize${fe(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Be(c,j9,l);return w(w({},l),d)},$v=[{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}}}],H9=de(qr,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${fe(r.color)}`],t[`size${fe(r.size)}`],t[`${r.variant}Size${fe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Ye(({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 N(w({},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"},[`&.${kr.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]},[`&.${kr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${kr.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)",[`&.${kr.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(Er()).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)`:Ne(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})`:Ne(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})`:Ne(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})`:Ne(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(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"},[`&.${kr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kr.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}),[`&.${kr.loading}`]:{color:"transparent"}}}]})})),z9=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${fe(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}},...$v]})),W9=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${fe(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}},...$v]})),V9=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}}]})),fh=de("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),zo=$.forwardRef(function(t,r){const n=$.useContext(Pv),o=$.useContext(Dv),i=So(n,t),a=Fe({props:i,name:"MuiButton"}),z=a,{children:s,color:l="primary",component:c="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:g,fullWidth:y=!1,id:b,loading:T=null,loadingIndicator:E,loadingPosition:x="center",size:C="medium",startIcon:_,type:k,variant:O="text"}=z,D=te(z,["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","id","loading","loadingIndicator","loadingPosition","size","startIcon","type","variant"]),F=$a(b),H=E!=null?E:Z.jsx(Uu,{"aria-labelledby":F,color:"inherit",size:16}),R=N(w({},a),{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:m,fullWidth:y,loading:T,loadingIndicator:H,loadingPosition:x,size:C,type:k,variant:O}),A=B9(R),B=(_||T&&x==="start")&&Z.jsx(z9,{className:A.startIcon,ownerState:R,children:_||Z.jsx(fh,{className:A.loadingIconPlaceholder,ownerState:R})}),j=(v||T&&x==="end")&&Z.jsx(W9,{className:A.endIcon,ownerState:R,children:v||Z.jsx(fh,{className:A.loadingIconPlaceholder,ownerState:R})}),L=o||"",I=typeof T=="boolean"?Z.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:T&&Z.jsx(V9,{className:A.loadingIndicator,ownerState:R,children:H})}):null;return Z.jsxs(H9,N(w({ownerState:R,className:he(n.className,A.root,d,L),component:c,disabled:f||T,focusRipple:!m,focusVisibleClassName:he(A.focusVisible,g),ref:r,type:k,id:T?F:b},D),{classes:A,children:[B,x!=="end"&&I,s,x==="end"&&I,j]}))});process.env.NODE_ENV!=="production"&&(zo.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["inherit","primary","secondary","success","error","info","warning"]),u.string]),component:u.elementType,disabled:u.bool,disableElevation:u.bool,disableFocusRipple:u.bool,disableRipple:u.bool,endIcon:u.node,focusVisibleClassName:u.string,fullWidth:u.bool,href:u.string,id:u.string,loading:u.bool,loadingIndicator:u.node,loadingPosition:u.oneOf(["center","end","start"]),size:u.oneOfType([u.oneOf(["small","medium","large"]),u.string]),startIcon:u.node,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),type:u.oneOfType([u.oneOf(["button","reset","submit"]),u.string]),variant:u.oneOfType([u.oneOf(["contained","outlined","text"]),u.string])});const U9=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{const{t:o}=p.useTranslation(),i=t.name,a=ht(zo,{target:"e1olvz1k0",label:"StyledCancelButton"})("&&{background-color:",n.activeDrillBackgroundColor,";color:",n.primaryButtonTextColor,";border-radius:100%;border:2px solid white;min-width:39px;width:39px;height:39px;z-index:10;padding:7px;cursor:pointer;text-transform:none;margin-right:-5px;&:hover{background-color:",n.activeDrillHoverBackgroundColor,";color:",n.primaryTextColor,";}}"),s=ht("svg",{target:"e1olvz1k1",label:"Icon"})("width:22px;height:22px;fill:#9ea2ab;"),l=()=>p.jsx(a,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:p.jsx(s,{width:22,height:22,viewBox:"0 0 24 24",children:p.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=ht(zo,{target:"e1olvz1k2",label:"StyledCurrentDrillButton"})("&&{position:relative;font-family:",f=>f.theme.fontFamily,";border-radius:0;border:1px solid ",qt,";background-color:",f=>f.theme.chartBackgroundColor,";border-right:none;border-left:none;color:",f=>f.theme.secondaryTextColor,";padding-right:1.25rem;padding-left:1.875rem;height:1.64rem;font-size:13px;transition:background-color 0.2s,border-color 0.2s,color 0.2s;text-transform:none;cursor:auto;pointer-events:none;white-space:nowrap;&:hover{background-color:",f=>f.theme.chartBackgroundColor,";border:1px solid ",qt,";border-right:none;border-left:none;}}");return{CancelButton:l,CurrentDrillButton:()=>p.jsxs(c,{theme:n,children:[i," (",o("drilldown.breadcrumbsAllSuffix"),")",p.jsx("span",{className:"flex items-center justify-between",children:p.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 ${qt}`,borderRight:`1px solid ${qt}`}})})]})}},G9={modifiers:[{name:"offset",options:{offset:[0,12]}}]},Y9=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>{const{t:o}=p.useTranslation();return p.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:[p.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[p.jsx(yt,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.members")}),p.jsx(yt,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),p.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[p.jsx(yt,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.table")}),p.jsx(yt,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),p.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[p.jsx(yt,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.column")}),p.jsx(yt,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]})},q9=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[o,i]=n?n[1].split("."):["",""],a=!!e;return p.jsx(ii,{open:a,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:G9,children:e&&p.jsx(Y9,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:o,currentColumn:i})})},X9=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:o,primaryButtonTextColor:i},chart:{backgroundColor:a}}}=p.useThemeContext(),s=p.scaleBrightness(a,-.02),l=p.scaleBrightness(s,-.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:o,primaryButtonTextColor:i,chartBackgroundColor:a,activeDrillBackgroundColor:s,activeDrillHoverBackgroundColor:l}},K9=ht(kn,{target:"egcu0nk0",label:"StyledPrevButton"})("&&{position:absolute;left:0;right:auto;margin:auto;bottom:0;top:0;z-index:10;background:linear-gradient(to right,white 30%,rgba(255,255,255,0) 100%);display:inline-flex;span[aria-label='prev-item']{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:5px solid #000;color:transparent;opacity:0.3;&:hover{opacity:0.8;}}}"),Q9=ht(kn,{target:"egcu0nk1",label:"StyledNextButton"})("&&{position:absolute;left:auto;right:0;margin:auto;bottom:0;top:0;z-index:10;background:linear-gradient(to right,rgba(255,255,255,0) 0,white 70%);display:inline-flex;span[aria-label='next-item']{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:5px solid #000;color:transparent;opacity:0.3;&:hover{opacity:0.8;}}}"),Z9=({currentDimension:e,children:t})=>{const{t:r}=p.useTranslation(),n=S.useRef(null),[o,i]=S.useState(0),[a,s]=S.useState(0),[l,c]=S.useState(0),d=()=>{var v;return(v=n.current)==null?void 0:v.querySelector("ol")};S.useEffect(()=>{const v=d();if(v){const g=v.clientWidth,y=v.scrollWidth,b=v.scrollLeft;i(g),s(y),c(b)}},[e]),S.useEffect(()=>{const v=d();function g(){if(v){const T=v.clientWidth;i(T)}}function y(){if(v){const T=v.scrollLeft;c(T)}}const b=new ResizeObserver(g);return v?(b.observe(v),v.addEventListener("scroll",y),()=>{b.disconnect(),v.removeEventListener("scroll",y)}):()=>{}},[]);const f=v=>{const y="smooth",b=d();b&&b.scrollBy({left:v==="right"?200:-200,behavior:y})},h=l!=0,m=Math.floor(a-l)>o;return p.jsxs("div",{style:{position:"relative"},children:[h&&p.jsx(K9,{onClick:()=>f("left"),children:p.jsx("span",{"aria-label":"prev-item",children:r("drilldown.breadcrumbsPrev")})}),m&&p.jsx(Q9,{onClick:()=>f("right"),children:p.jsx("span",{"aria-label":"next-item",children:r("drilldown.breadcrumbsNext")})}),p.jsx("div",{ref:n,children:t})]})},qt="#F2F2F2",J9=ht(zo,{target:"ex0ybhj0",label:"StyledDrillButton"})("&&{font-family:",({theme:e})=>e.fontFamily,";position:relative;border-radius:0;border:1px solid ",qt,";border-right:none;color:",({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor,";background-color:",({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor,";padding-right:1.25rem;padding-left:1.875rem;height:1.64rem;font-size:13px;text-transform:none;transition:background-color 0.2s,border-color 0.2s,color 0.2s;white-space:nowrap;cursor:",({active:e})=>e==="true"?"pointer":"auto",";margin-right:",({active:e})=>e==="true"?"5px":"0px",";&:hover{background-color:",({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor,";border:1px solid ",qt,";border-right:none;}.MuiTouchRipple-root{display:none;}}"),ej=ht(Iv,{target:"ex0ybhj1",label:"StyledBreadcrumbs"})(".MuiBreadcrumbs-ol{flex-wrap:nowrap;overflow:hidden;}.MuiBreadcrumbs-separator{display:none;}"),tj=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:o,themeProps:i,popperParams:a,index:s})=>p.jsx(J9,{theme:i,active:e.toString(),index:s,onMouseEnter:r,onMouseLeave:n,onClick:o,children:p.jsxs("span",{className:"flex items-center justify-between",children:[p.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?p.jsx("span",{className:"csdk-absolute csdk-right-0 csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:t===(a==null?void 0:a.filterDisplayValues)?i.activeDrillHoverBackgroundColor:i.activeDrillBackgroundColor,borderTop:`1px solid ${qt}`,borderRight:`1px solid ${qt}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,p.jsx("span",{className:`csdk-absolute ${e?"csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-right-[-15px]":"csdk-h-[10px] csdk-w-[10px] csdk-top-[7px] csdk-right-[-5px]"} csdk-transform translate-x-1/2 csdk-rotate-45`,style:{backgroundColor:i.chartBackgroundColor,borderTop:`1px solid ${qt}`,borderRight:`1px solid ${qt}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),Nv=Qo({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[o,i]=S.useState(null),[a,s]=S.useState(!1),l=X9(),{CancelButton:c,CurrentDrillButton:d}=U9({clearDrilldownSelections:r,currentDimension:t,isHovered:a,setIsHovered:s,themeProps:l}),f=g=>y=>{s(!0),i({filterDisplayValues:g,anchorEl:y.currentTarget})},h=()=>{s(!1),i(null)},m=g=>g<e.length-1,v=g=>g===e.length-2;return e.length?p.jsx("div",{"aria-label":"drilldown-breadcrumbs",children:p.jsx(Z9,{currentDimension:t,children:p.jsxs(ej,{separator:null,sx:{backgroundColor:l.chartBackgroundColor,padding:"4px"},children:[p.jsx(c,{}),e.map((g,y)=>{const b=m(y),T=v(y);return p.jsx("div",{children:p.jsx(tj,{isActive:b,isLastActive:T,filterDisplayValue:g,handleMouseEnter:f(g),handleMouseLeave:h,handleClick:()=>n(y+1),themeProps:l,popperParams:o,index:y})},y)}),p.jsx(d,{}),p.jsx(q9,{popperParams:o,currentDimension:t,themeProps:l})]})})}):null}),Lv=e=>{const{initialDimension:t,onDrilldownSelectionsChange:r}=e,n=S.useMemo(()=>e.drilldownPaths||[],[e.drilldownPaths]),o=S.useMemo(()=>e.drilldownSelections||[],[e.drilldownSelections]),{t:i}=p.useTranslation();if(!t)throw new p.TranslatableError("errors.drilldownNoInitialDimension");const[a,s]=qu(o,{onLocalStateChange:r}),l=S.useMemo(()=>[p.translateColumnToAttribute(t),...a.map(({nextDimension:y})=>y)],[t,a]),c=S.useMemo(()=>n.filter(y=>{if(p.MetadataTypes.isAttribute(y)){const E=y;return l.every(x=>!Dt(x,E))}const T=y;return l.every((E,x)=>Dt(E,T.levels[x]))}),[n,l]),d=S.useCallback((y,b,T)=>{s(E=>Fv(E,y,b,T))},[s]),f=S.useCallback(y=>{s(b=>b.slice(0,y))},[s]),h=S.useCallback(()=>{s([])},[s]),{drilldownFilters:m,drilldownFiltersDisplayValues:v,drilldownDimension:g}=S.useMemo(()=>jv(a,t,i),[a,t,i]);return{drilldownSelections:a,availableDrilldownPaths:c,drilldownFilters:m,drilldownFiltersDisplayValues:v,drilldownDimension:g,selectDrilldown:d,sliceDrilldownSelections:f,clearDrilldownSelections:h}},Fv=(e,t,r,n)=>{var h,m;if(!(n!=null&&n.levels))return[...e,{points:t,nextDimension:r}];if(Dt(n.levels[0],r))return[];const i=(h=e==null?void 0:e.findIndex(v=>Dt(v.nextDimension,r)))!=null?h:-1;if(i!==-1)return e.slice(0,i+1);const s=(m=p.last(e))==null?void 0:m.nextDimension,l=e.length?n.levels.findIndex(v=>s&&Dt(v,s)):0,c=n.levels.indexOf(r),f=n.levels.slice(l+1,c+1).map((v,g)=>({points:g===0?t:[],nextDimension:v}));return[...e,...f]},jv=(e,t,r)=>{let n=t&&p.translateColumnToAttribute(t);const o=[],i=[];return e.forEach(({points:a,nextDimension:s})=>{o.push(p.members(n,a.map(rj)));const l=a.length?a.map(Bv):[`${n.name} (${r("drilldown.breadcrumbsAllSuffix")})`];i.push(l),n=s}),{drilldownFilters:o,drilldownFiltersDisplayValues:i,drilldownDimension:n}};function Bv(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function rj(e){return"categoryValue"in e?`${e.categoryValue}`:""}var nj=Object.prototype,oj=nj.hasOwnProperty,ij=kv(function(e,t,r){oj.call(e,r)?e[r].push(t):p.baseAssignValue(e,r,[t])});function aj(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.config.guid))})}function Hv(e,t){return e.find(r=>Dt(r.attribute,t))}function zv(e,t,r){const n=Hv(r,e);return p.members(e,t.map(o=>`${o}`),{guid:n==null?void 0:n.config.guid,backgroundFilter:n==null?void 0:n.config.backgroundFilter})}function Wv(e,t){return Yu(e,t)&&"members"in e&&"members"in t&&p.isEqual(e.members,t.members)}var ua=function(e){return e.WIDGET_POINTS_DRILLDOWN="widget-points-drilldown",e.WIDGET_POINTS_CROSSFILTERING="widget-points-crossfiltering",e}({}),Wo=function(e){return e.DRILLDOWN_CHART_POINTS_SELECTION="drilldown-chart-points-selection",e.DRILLDOWN_DRILL_DIRECTIONS="drilldown-drill-directions",e.CROSSFILTERING_CHART_POINTS_SELECTION="crossfiltering-chart-points-selection",e}({});const Vv=2;function Hn(e,t){const r=e.flatMap(({entries:o={}})=>t.flatMap(i=>{const a=o[i];return a?(Array.isArray(a)?a:[a]).filter(({attribute:l})=>!!l):[]})),n=ij(r,({id:o})=>o);return Object.values(n).map(o=>({attribute:o[0].attribute,values:Ec(o.map(({value:i})=>i)),displayValues:Ec(o.map(({displayValue:i})=>i))}))}function sj(e){return Hn(e,["category"])}function lj(e){return Hn(e,["category"])}function cj(e,t){const r=Hn(e,["category"]),n=r.length-1;return t.category.map((o,i)=>n===i?r[i]:{attribute:p.translateColumnToAttribute(o),values:[],displayValues:[]})}function uj(e){return Hn(e,["x","y","breakByPoint","breakByColor"])}function dj(e){return Hn(e,["geo"])}function fj(e){return Hn(e,["geo"])}function Wi(e,t,r){return e==="custom"?[]:e==="text"?[]:e==="pivot"?[]:e==="treemap"||e==="sunburst"?cj(r,t):p.isCartesian(e)||e==="pie"||e==="funnel"?sj(r):p.isBoxplot(e)?lj(r):p.isScatter(e)?uj(r):p.isScattermap(e)?dj(r):p.isAreamap(e)?fj(r):[]}function Xu(e,t){let r=[];return e==="custom"?r=[]:e==="text"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:p.isCartesian(e)||p.isCategorical(e)||p.isBoxplot(e)||p.isRange(e)?r=[...t.category]:p.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!p.isMeasureColumn(n))):(p.isScattermap(e)||p.isAreamap(e))&&(r=[...t.geo]),r.map(p.translateColumnToAttribute)}function pj(e,t,r){const n=Hv(t,e.attribute);if(!n||Gu(n))return null;if(Wv(e,n))return bs(e);if(p.isMembersFilter(n)&&r){const[o,i]=ai(n.members,s=>e.members.includes(s));if(o.length===e.members.length&&i.length)return zv(e.attribute,i,[n])}return null}function hj(e,t,r){const n=t.filter(a=>!a.config.disabled),o=e.map(a=>pj(a,n,r)).filter(a=>!!a),i=e.length!==o.length;return{filters:i?e:o,isSelection:i}}function sl(e,t,r=!1){const n=e.map(({attribute:i,values:a})=>zv(i,a,t)),o=gj(t,n);return hj(o,t,r)}function gj(e,t){const r=e.filter(n=>n.config.locked);return r.length?t.filter(n=>!r.some(o=>Yu(o,n))):t}function mj(e,t,r){const n=Wi(e,t,r).filter(({displayValues:s})=>s.length);if(n.length===0)return"";const[o]=n,i=r.length===1,a=o.displayValues.length>Vv;return n.length>1?i?n.map(s=>s.displayValues[0]).join(", "):a?"":o.displayValues.join(", "):a?o.attribute.name:o.displayValues.join(", ")}function ph(e,t,r){const n=mj(e,t,r);return n?{id:Wo.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:n}:null}function hh(e,t){return{items:[{caption:e,onClick:t}]}}const vj=({initialDimension:e,drilldownPaths:t,drilldownSelections:r,openMenu:n,onDrilldownSelectionsChange:o})=>{const{t:i}=p.useTranslation(),{availableDrilldownPaths:a,drilldownFilters:s,drilldownFiltersDisplayValues:l,drilldownDimension:c,selectDrilldown:d,sliceDrilldownSelections:f,clearDrilldownSelections:h}=Lv({initialDimension:e,drilldownPaths:t,drilldownSelections:r,onDrilldownSelectionsChange:o}),m=S.useCallback((g,y)=>{const b=[Uv(y,c),Gv(a,c,(T,E)=>{d(y,T,E)},i)];n({id:ua.WIDGET_POINTS_DRILLDOWN,position:g,itemSections:b})},[c,a,i,d,n]),v=S.useMemo(()=>c&&p.jsx(Nv,{filtersDisplayValues:l,currentDimension:c,clearDrilldownSelections:h,sliceDrilldownSelections:f}),[h,c,l,f]);return{drilldownDimension:c,drilldownFilters:s,breadcrumbs:v,openDrilldownMenu:m}};function Uv(e,t){const r=Ec(e.map(Bv).filter(n=>!!n));return r.length>Vv?{id:Wo.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:t.name}:{id:Wo.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:r.join(", ")}}function yj(e){return 30+12*e}function Gv(e,t,r,n){const[o,i]=ai(e,p.MetadataTypes.isAttribute.bind(p.MetadataTypes)),a=o.map(l=>({caption:l.name,onClick:()=>r(l)})),s=i.map(l=>({caption:l.title,subItems:[{items:l.levels.map((c,d)=>({caption:c.name,class:d===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${yj(d)}px`},disabled:Dt(c,t),onClick:()=>r(c,l)}))}]}));return{id:Wo.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:n("drilldown.drillMenuItem"),items:[...s,...a]}}var ws=function(e){return e.HIGHLIGHT="highlight",e.FILTER="filter",e}({});function Yv(e){return function(t){t=p.toString(t);var r=U0(t)?kl(t):void 0,n=r?r[0]:t.charAt(0),o=r?V0(r,1).join(""):t.slice(1);return n[e]()+o}}var qv=Yv("toUpperCase");function bj(e){return qv(p.toString(e).toLowerCase())}function wj(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function xj(e){return function(t){return e==null?void 0:e[t]}}var Cj={À:"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"},Ej=xj(Cj),Tj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sj="\\u0300-\\u036f",Rj="\\ufe20-\\ufe2f",_j="\\u20d0-\\u20ff",Mj=Sj+Rj+_j,Oj="["+Mj+"]",kj=RegExp(Oj,"g");function Aj(e){return e=p.toString(e),e&&e.replace(Tj,Ej).replace(kj,"")}var Ij=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Pj(e){return e.match(Ij)||[]}var Dj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function $j(e){return Dj.test(e)}var Xv="\\ud800-\\udfff",Nj="\\u0300-\\u036f",Lj="\\ufe20-\\ufe2f",Fj="\\u20d0-\\u20ff",jj=Nj+Lj+Fj,Kv="\\u2700-\\u27bf",Qv="a-z\\xdf-\\xf6\\xf8-\\xff",Bj="\\xac\\xb1\\xd7\\xf7",Hj="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zj="\\u2000-\\u206f",Wj=" \\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",Zv="A-Z\\xc0-\\xd6\\xd8-\\xde",Vj="\\ufe0e\\ufe0f",Jv=Bj+Hj+zj+Wj,e1="['’]",gh="["+Jv+"]",Uj="["+jj+"]",t1="\\d+",Gj="["+Kv+"]",r1="["+Qv+"]",n1="[^"+Xv+Jv+t1+Kv+Qv+Zv+"]",Yj="\\ud83c[\\udffb-\\udfff]",qj="(?:"+Uj+"|"+Yj+")",Xj="[^"+Xv+"]",o1="(?:\\ud83c[\\udde6-\\uddff]){2}",i1="[\\ud800-\\udbff][\\udc00-\\udfff]",hn="["+Zv+"]",Kj="\\u200d",mh="(?:"+r1+"|"+n1+")",Qj="(?:"+hn+"|"+n1+")",vh="(?:"+e1+"(?:d|ll|m|re|s|t|ve))?",yh="(?:"+e1+"(?:D|LL|M|RE|S|T|VE))?",a1=qj+"?",s1="["+Vj+"]?",Zj="(?:"+Kj+"(?:"+[Xj,o1,i1].join("|")+")"+s1+a1+")*",Jj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eB="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tB=s1+a1+Zj,rB="(?:"+[Gj,o1,i1].join("|")+")"+tB,nB=RegExp([hn+"?"+r1+"+"+vh+"(?="+[gh,hn,"$"].join("|")+")",Qj+"+"+yh+"(?="+[gh,hn+mh,"$"].join("|")+")",hn+"?"+mh+"+"+vh,hn+"+"+yh,eB,Jj,t1,rB].join("|"),"g");function oB(e){return e.match(nB)||[]}function iB(e,t,r){return e=p.toString(e),t=t,t===void 0?$j(e)?oB(e):Pj(e):e.match(t)||[]}var aB="['’]",sB=RegExp(aB,"g");function lB(e){return function(t){return wj(iB(Aj(t).replace(sB,"")),e,"")}}var l1=lB(function(e,t,r){return t=t.toLowerCase(),e+(r?bj(t):t)});function cB(e){const{_id:t,title:r,levels:n}=e;return{id:t,title:r,levels:n.map(o=>p.createDimensionalElementFromJaql(o))}}function c1(e,t,r){return Mt(this,null,function*(){const o=yield new p.RestApi(e,r).getHierarchies(t);return o==null?void 0:o.map(i=>cB(i))})}const uB=_v("useGetHierarchyModels")(u1);function u1(e){const t=Vu(e,["dataSource","dimension","ids","alwaysIncluded"]),r=Mv(e,t),[n,o]=S.useReducer(Cc,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=p.useSisenseContext();return S.useEffect(()=>{i||o({type:"error",error:new p.TranslatableError("errors.sisenseContextNotFound")}),r(a)&&(o({type:"loading"}),c1(a.httpClient,e,a.defaultDataSource).then(s=>{o({type:"success",data:s})}).catch(s=>{o({type:"error",error:s})}))},[a,i,e,r]),n.data&&t?bh(Cc(n,{type:"loading"})):bh(n)}function bh(e){const n=e,{data:t}=n,r=te(n,["data"]);return N(w({},r),{hierarchies:t})}function dB({attribute:e,dataSource:t,drilldownPaths:r=[],enabled:n}){const[o,i]=S.useMemo(()=>ai(r,p.isString),[r]),{hierarchies:a=[]}=u1({enabled:n,dataSource:t,dimension:e,ids:o,alwaysIncluded:!0});return S.useMemo(()=>a.length?[...a,...i]:i,[a,i])}function fB(e,t){return Xu(e,t)[0]}function pB(e){return[...p.CARTESIAN_CHART_TYPES,...p.CATEGORICAL_CHART_TYPES,...p.SCATTER_CHART_TYPES,...p.BOXPLOT_CHART_TYPES,...p.RANGE_CHART_TYPES].includes(e)}function hB(e,t){return Xu(e,t).length===1}function gB(e,t){return hB(e,t)&&pB(e)}function d1(e,t,r){const n=o=>!!o&&!Dt(r,p.translateColumnToAttribute(o));if(p.isCartesian(e)||p.isCategorical(e)||p.isBoxplot(e)||p.isRange(e)){const o=t.category[0];if(n(o))return N(w({},t),{category:[r]})}else if(p.isScatter(e)){const o=t,i=["x","y","breakByPoint","breakByColor"];for(const a of i){const s=o[a];if(s&&!p.isMeasureColumn(s)&&n(s))return N(w({},o),{[a]:r})}}return t}function wh(e,t,r){return e.map(n=>{const o=["x","y","breakByPoint","breakByColor"],i=[...o,"size"].some(s=>s in n),a=o.find(s=>r[s]&&!p.isMeasureColumn(r[s]));if(i){const s=t,l=s.type==="mouseup";l&&console.warn("No drilldown support for multi-selection in scatter chart");const c=l?n[a]:s.point.options.custom[l1(`{masked ${a}`)];return{categoryValue:c,categoryDisplayValue:c}}return n})}const mB=({propsToExtend:e,onDrilldownSelectionsChange:t})=>{const{chartType:r,dataOptions:n,dataSource:o,drilldownOptions:i}=e,{drilldownSelections:a}=i||{},{openMenu:s}=Ov(),l=S.useMemo(()=>gB(r,n),[r,n]),c=S.useMemo(()=>(i==null?void 0:i.drilldownPaths)||[],[i==null?void 0:i.drilldownPaths]),d=S.useMemo(()=>{const O=p.createAttribute({name:"dummy drilldown initial attribute"});return fB(r,n)||O},[r,n]),f=dB({attribute:d,dataSource:o,drilldownPaths:c,enabled:l}),h=S.useMemo(()=>{var D;return(((D=i==null?void 0:i.drilldownSelections)==null?void 0:D.length)||(f==null?void 0:f.length))&&l},[i,l,f]),{drilldownDimension:m,drilldownFilters:v,breadcrumbs:g,openDrilldownMenu:y}=vj({initialDimension:d,drilldownSelections:a,drilldownPaths:f,openMenu:s,onDrilldownSelectionsChange:t}),b=S.useCallback((O,D)=>{const F=wh(O,D,n);y({left:D.clientX,top:D.clientY},F)},[n,y]),T=S.useCallback((O,D)=>{const F=wh([O],D,n);y({left:D.clientX,top:D.clientY},F)},[n,y]),E=S.useMemo(()=>d1(r,n,m),[r,n,m]),x=S.useMemo(()=>v.length?$h(e.filters||[],v):e.filters,[e.filters,v]),C=S.useMemo(()=>p.combineHandlers([b,e.onDataPointsSelected]),[b,e.onDataPointsSelected]),_=S.useMemo(()=>p.combineHandlers([T,e.onDataPointContextMenu]),[T,e.onDataPointContextMenu]);return{propsWithDrilldown:w(w({},e),h&&{dataOptions:E,filters:x,onDataPointsSelected:C,onDataPointContextMenu:_}),isDrilldownEnabled:h,breadcrumbs:g}},vB=Qo({componentName:"ChartWidget"})(e=>{var O,D;const{app:t}=p.useSisenseContext(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:o,styleOptions:i,highlightSelectionDisabled:a=!1,highlights:s,description:l,onChange:c}=e,{width:d,height:f}=i||{},h=og(r,{hasHeader:!((O=i==null?void 0:i.header)!=null&&O.hidden)}),[m,v]=S.useState(0),g=S.useMemo(()=>p.omit(i,["width","height"]),[i]),y=S.useCallback(F=>{c==null||c({drilldownOptions:{drilldownSelections:F}})},[c]),{propsWithDrilldown:b,isDrilldownEnabled:T,breadcrumbs:E}=mB({propsToExtend:e,onDrilldownSelectionsChange:y}),x=T9({chartType:r,dataOptions:o,enabled:!a&&!T&&!(s!=null&&s.length)}),C=(D=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:D.enabled,_=S.useCallback(F=>{var H;return C?N(w({},F),{accessibility:N(w({},F.accessibility),{description:l!=null?l:(H=F.accessibility)==null?void 0:H.description})}):F},[l,C]);if(!r||!o)return null;const k=N(w({},b),{dataSet:n,styleOptions:g,refreshCounter:m,onDataPointClick:S.useMemo(()=>p.combineHandlers([x.onDataPointClick,e.onDataPointClick]),[x.onDataPointClick,e.onDataPointClick]),onDataPointContextMenu:b.onDataPointContextMenu,onDataPointsSelected:S.useMemo(()=>p.combineHandlers([x.onDataPointsSelected,b.onDataPointsSelected]),[x.onDataPointsSelected,b.onDataPointsSelected]),onBeforeRender:S.useMemo(()=>p.combineHandlers([_,x.onBeforeRender,e.onBeforeRender],!0),[_,x.onBeforeRender,e.onBeforeRender])});return p.jsx(Ha,{defaultSize:h,size:{width:d,height:f},children:p.jsx(Ev,N(w({},e),{topSlot:p.jsxs(p.Fragment,{children:[e.topSlot,E]}),dataSetName:n&&p.getDataSourceName(n),onRefresh:()=>v(m+1),children:p.jsx(yv,w({},k))}))})});class zn{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 Vo=typeof window=="undefined"||"Deno"in window;function Ot(){}function yB(e,t){return typeof e=="function"?e(t):e}function Tc(e){return typeof e=="number"&&e>=0&&e!==1/0}function f1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fo(e,t,r){return si(e)?typeof t=="function"?N(w({},r),{queryKey:e,queryFn:t}):N(w({},t),{queryKey:e}):e}function bB(e,t,r){return si(e)?N(w({},t),{mutationKey:e}):typeof e=="function"?N(w({},t),{mutationFn:e}):w({},e)}function gr(e,t,r){return si(e)?[N(w({},t),{queryKey:e}),r]:[e||{},t]}function xh(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(si(a)){if(n){if(t.queryHash!==Ku(a,t.options))return!1}else if(!vn(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o!="undefined"&&o!==t.state.fetchStatus||i&&!i(t))}function Ch(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(si(i)){if(!t.options.mutationKey)return!1;if(r){if(Fr(t.options.mutationKey)!==Fr(i))return!1}else if(!vn(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function Ku(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fr)(e)}function Fr(e){return JSON.stringify(e,(t,r)=>Sc(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function vn(e,t){return p1(e,t)}function p1(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!p1(e[r],t[r])):!1}function h1(e,t){if(e===t)return e;const r=Eh(e)&&Eh(t);if(r||Sc(e)&&Sc(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let s=0;for(let l=0;l<i;l++){const c=r?l:o[l];a[c]=h1(e[c],t[c]),a[c]===e[c]&&s++}return n===i&&s===n?e:a}return t}function da(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Eh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Sc(e){if(!Th(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!Th(r)||!r.hasOwnProperty("isPrototypeOf"))}function Th(e){return Object.prototype.toString.call(e)==="[object Object]"}function si(e){return Array.isArray(e)}function g1(e){return new Promise(t=>{setTimeout(t,e)})}function Sh(e){g1(0).then(e)}function wB(){if(typeof AbortController=="function")return new AbortController}function Rc(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?h1(e,t):t}class xB extends zn{constructor(){super(),this.setup=t=>{if(!Vo&&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 fa=new xB,Rh=["online","offline"];class CB extends zn{constructor(){super(),this.setup=t=>{if(!Vo&&window.addEventListener){const r=()=>t();return Rh.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{Rh.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 pa=new CB;function EB(e){return Math.min(1e3*Ht(2,e),3e4)}function xs(e){return(e!=null?e:"online")==="online"?pa.isOnline():!0}class m1{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Vi(e){return e instanceof m1}function v1(e){let t=!1,r=0,n=!1,o,i,a;const s=new Promise((y,b)=>{i=y,a=b}),l=y=>{n||(m(new m1(y)),e.abort==null||e.abort())},c=()=>{t=!0},d=()=>{t=!1},f=()=>!fa.isFocused()||e.networkMode!=="always"&&!pa.isOnline(),h=y=>{n||(n=!0,e.onSuccess==null||e.onSuccess(y),o==null||o(),i(y))},m=y=>{n||(n=!0,e.onError==null||e.onError(y),o==null||o(),a(y))},v=()=>new Promise(y=>{o=b=>{const T=n||!f();return T&&y(b),T},e.onPause==null||e.onPause()}).then(()=>{o=void 0,n||e.onContinue==null||e.onContinue()}),g=()=>{if(n)return;let y;try{y=e.fn()}catch(b){y=Promise.reject(b)}Promise.resolve(y).then(h).catch(b=>{var T,E;if(n)return;const x=(T=e.retry)!=null?T:3,C=(E=e.retryDelay)!=null?E:EB,_=typeof C=="function"?C(r,b):C,k=x===!0||typeof x=="number"&&r<x||typeof x=="function"&&x(r,b);if(t||!k){m(b);return}r++,e.onFail==null||e.onFail(r,b),g1(_).then(()=>{if(f())return v()}).then(()=>{t?m(b):g()})})};return xs(e.networkMode)?g():v().then(g),{promise:s,cancel:l,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:c,continueRetry:d}}const Qu=console;function TB(){let e=[],t=0,r=d=>{d()},n=d=>{d()};const o=d=>{let f;t++;try{f=d()}finally{t--,t||s()}return f},i=d=>{t?e.push(d):Sh(()=>{r(d)})},a=d=>(...f)=>{i(()=>{d(...f)})},s=()=>{const d=e;e=[],d.length&&Sh(()=>{n(()=>{d.forEach(f=>{r(f)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d}}}const Ge=TB();class y1{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tc(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Vo?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class SB extends y1{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Qu,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||RB(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=w(w({},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=Rc(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(Ot).catch(Ot):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||!f1(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=wB(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),d={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(l(d),(n=this.options.behavior)==null||n.onFetch(d),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=d.fetchOptions)==null?void 0:o.meta)){var f;this.dispatch({type:"fetch",meta:(f=d.fetchOptions)==null?void 0:f.meta})}const h=m=>{if(Vi(m)&&m.silent||this.dispatch({type:"error",error:m}),!Vi(m)){var v,g,y,b;(v=(g=this.cache.config).onError)==null||v.call(g,m,this),(y=(b=this.cache.config).onSettled)==null||y.call(b,this.state.data,m,this),process.env.NODE_ENV!=="production"&&this.logger.error(m)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=v1({fn:d.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:m=>{var v,g,y,b;if(typeof m=="undefined"){process.env.NODE_ENV!=="production"&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),h(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(v=(g=this.cache.config).onSuccess)==null||v.call(g,m,this),(y=(b=this.cache.config).onSettled)==null||y.call(b,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(m,v)=>{this.dispatch({type:"failed",failureCount:m,error:v})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var o,i;switch(t.type){case"failed":return N(w({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return N(w({},n),{fetchStatus:"paused"});case"continue":return N(w({},n),{fetchStatus:"fetching"});case"fetch":return w(N(w({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:xs(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return w(N(w({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const a=t.error;return Vi(a)&&a.revert&&this.revertState?N(w({},this.revertState),{fetchStatus:"idle"}):N(w({},n),{error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"});case"invalidate":return N(w({},n),{isInvalidated:!0});case"setState":return w(w({},n),t.state)}};this.state=r(this.state),Ge.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function RB(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 _B extends zn{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var o;const i=r.queryKey,a=(o=r.queryHash)!=null?o:Ku(i,r);let s=this.get(a);return s||(s=new SB({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Ge.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=gr(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(o=>xh(n,o))}findAll(t,r){const[n]=gr(t,r);return Object.keys(n).length>0?this.queries.filter(o=>xh(n,o)):this.queries}notify(t){Ge.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){Ge.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Ge.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class MB extends y1{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Qu,this.observers=[],this.state=t.state||b1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=w(w({},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 Mt(this,null,function*(){const t=()=>{var k;return this.retryer=v1({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,D)=>{this.dispatch({type:"failed",failureCount:O,error:D})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,o,i,a,s,l,c,d;if(!r){var f,h,m,v;this.dispatch({type:"loading",variables:this.options.variables}),yield(f=(h=this.mutationCache.config).onMutate)==null?void 0:f.call(h,this.state.variables,this);const O=yield(m=(v=this.options).onMutate)==null?void 0:m.call(v,this.state.variables);O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const k=yield t();return yield(n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,k,this.state.variables,this.state.context,this),yield(i=(a=this.options).onSuccess)==null?void 0:i.call(a,k,this.state.variables,this.state.context),yield(s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,k,null,this.state.variables,this.state.context,this),yield(c=(d=this.options).onSettled)==null?void 0:c.call(d,k,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:k}),k}catch(k){try{var g,y,b,T,E,x,C,_;throw yield(g=(y=this.mutationCache.config).onError)==null?void 0:g.call(y,k,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(k),yield(b=(T=this.options).onError)==null?void 0:b.call(T,k,this.state.variables,this.state.context),yield(E=(x=this.mutationCache.config).onSettled)==null?void 0:E.call(x,void 0,k,this.state.variables,this.state.context,this),yield(C=(_=this.options).onSettled)==null?void 0:C.call(_,void 0,k,this.state.variables,this.state.context),k}finally{this.dispatch({type:"error",error:k})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return N(w({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return N(w({},n),{isPaused:!0});case"continue":return N(w({},n),{isPaused:!1});case"loading":return N(w({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!xs(this.options.networkMode),status:"loading",variables:t.variables});case"success":return N(w({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return N(w({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return w(w({},n),t.state)}};this.state=r(this.state),Ge.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function b1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class OB extends zn{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new MB({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){Ge.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=>Ch(t,r))}findAll(t){return this.mutations.filter(r=>Ch(t,r))}notify(t){Ge.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 Ge.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(Ot)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function kB(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,i,a;const s=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,l=(n=e.fetchOptions)==null||(o=n.meta)==null?void 0:o.fetchMore,c=l==null?void 0:l.pageParam,d=(l==null?void 0:l.direction)==="forward",f=(l==null?void 0:l.direction)==="backward",h=((i=e.state.data)==null?void 0:i.pages)||[],m=((a=e.state.data)==null?void 0:a.pageParams)||[];let v=m,g=!1;const y=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>{var k;if((k=e.signal)!=null&&k.aborted)g=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{g=!0})}return e.signal}})},b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),T=(_,k,O,D)=>(v=D?[k,...v]:[...v,k],D?[O,..._]:[..._,O]),E=(_,k,O,D)=>{if(g)return Promise.reject("Cancelled");if(typeof O=="undefined"&&!k&&_.length)return Promise.resolve(_);const F={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};y(F);const H=b(F);return Promise.resolve(H).then(A=>T(_,O,A,D))};let x;if(!h.length)x=E([]);else if(d){const _=typeof c!="undefined",k=_?c:_h(e.options,h);x=E(h,_,k)}else if(f){const _=typeof c!="undefined",k=_?c:AB(e.options,h);x=E(h,_,k,!0)}else{v=[];const _=typeof e.options.getNextPageParam=="undefined";x=(s&&h[0]?s(h[0],0,h):!0)?E([],_,m[0]):Promise.resolve(T([],m[0],h[0]));for(let O=1;O<h.length;O++)x=x.then(D=>{if(s&&h[O]?s(h[O],O,h):!0){const H=_?m[O]:_h(e.options,D);return E(D,_,H)}return Promise.resolve(T(D,m[O],h[O]))})}return x.then(_=>({pages:_,pageParams:v}))}}}}function _h(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function AB(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class IB{constructor(t={}){this.queryCache=t.queryCache||new _B,this.mutationCache=t.mutationCache||new OB,this.logger=t.logger||Qu,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=fa.subscribe(()=>{fa.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=pa.subscribe(()=>{pa.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]=gr(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(N(w({},t),{fetching:!0})).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const o=fo(t,r,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const o=n.data;return[r,o]})}setQueryData(t,r,n){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=yB(r,i);if(typeof a=="undefined")return;const s=fo(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,N(w({},n),{manual:!0}))}setQueriesData(t,r,n){return Ge.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=gr(t,r),o=this.queryCache;Ge.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=gr(t,r,n),a=this.queryCache,s=w({type:"active"},o);return Ge.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,r,n){const[o,i={}]=gr(t,r,n);typeof i.revert=="undefined"&&(i.revert=!0);const a=Ge.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(Ot).catch(Ot)}invalidateQueries(t,r,n){const[o,i]=gr(t,r,n);return Ge.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(c=>{c.invalidate()}),o.refetchType==="none")return Promise.resolve();const l=N(w({},o),{type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"});return this.refetchQueries(l,i)})}refetchQueries(t,r,n){const[o,i]=gr(t,r,n),a=Ge.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,N(w({},i),{cancelRefetch:(c=i==null?void 0:i.cancelRefetch)!=null?c:!0,meta:{refetchPage:o.refetchPage}}))}));let s=Promise.all(a).then(Ot);return i!=null&&i.throwOnError||(s=s.catch(Ot)),s}fetchQuery(t,r,n){const o=fo(t,r,n),i=this.defaultQueryOptions(o);typeof i.retry=="undefined"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(Ot).catch(Ot)}fetchInfiniteQuery(t,r,n){const o=fo(t,r,n);return o.behavior=kB(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(Ot).catch(Ot)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(o=>Fr(t)===Fr(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>vn(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(o=>vn(t,o.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(t)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."),r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>Fr(t)===Fr(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>vn(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(o=>vn(t,o.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(t)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."),r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r=N(w(w(w({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=Ku(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:N(w(w(w({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class PB extends zn{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),Mh(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _c(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _c(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),process.env.NODE_ENV!=="production"&&typeof(t==null?void 0:t.isDataEqual)!="undefined"&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),da(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&Oh(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return $B(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(n={}){var o=n,{refetchPage:t}=o,r=te(o,["refetchPage"]);return this.fetch(N(w({},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(N(w({},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(Ot)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Vo||this.currentResult.isStale||!Tc(this.options.staleTime))return;const r=f1(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,!(Vo||this.options.enabled===!1||!Tc(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||fa.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=t!==n,c=l?t.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:h,error:m,errorUpdatedAt:v,fetchStatus:g,status:y}=f,b=!1,T=!1,E;if(r._optimisticResults){const O=this.hasListeners(),D=!O&&Mh(t,r),F=O&&Oh(t,n,r,o);(D||F)&&(g=xs(t.options.networkMode)?"fetching":"paused",h||(y="loading")),r._optimisticResults==="isRestoring"&&(g="idle")}if(r.keepPreviousData&&!f.dataUpdatedAt&&d!=null&&d.isSuccess&&y!=="error")E=d.data,h=d.dataUpdatedAt,y=d.status,b=!0;else if(r.select&&typeof f.data!="undefined")if(i&&f.data===(a==null?void 0:a.data)&&r.select===this.selectFn)E=this.selectResult;else try{this.selectFn=r.select,E=r.select(f.data),E=Rc(i==null?void 0:i.data,E,r),this.selectResult=E,this.selectError=null}catch(O){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(O),this.selectError=O}else E=f.data;if(typeof r.placeholderData!="undefined"&&typeof E=="undefined"&&y==="loading"){let O;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))O=i.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof O!="undefined")try{O=r.select(O),this.selectError=null}catch(D){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(D),this.selectError=D}typeof O!="undefined"&&(y="success",E=Rc(i==null?void 0:i.data,O,r),T=!0)}this.selectError&&(m=this.selectError,E=this.selectResult,v=Date.now(),y="error");const x=g==="fetching",C=y==="loading",_=y==="error";return{status:y,fetchStatus:g,isLoading:C,isSuccess:y==="success",isError:_,isInitialLoading:C&&x,data:E,dataUpdatedAt:h,error:m,errorUpdatedAt:v,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:x,isRefetching:x&&!C,isLoadingError:_&&f.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:T,isPreviousData:b,isRefetchError:_&&f.dataUpdatedAt!==0,isStale:Zu(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,da(n,r))return;this.currentResult=n;const o={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s!=null?s:this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const d=c;return this.currentResult[d]!==r[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify(w(w({},o),t))}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Vi(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){Ge.batch(()=>{if(t.onSuccess){var r,n,o,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,s,l,c;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:d})=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function DB(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Mh(e,t){return DB(e,t)||e.state.dataUpdatedAt>0&&_c(e,t,t.refetchOnMount)}function _c(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Zu(e,t)}return!1}function Oh(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Zu(e,r)}function Zu(e,t){return e.isStaleByTime(t.staleTime)}function $B(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!da(e.getCurrentResult(),t)}var Mc={exports:{}},ll={};/**
335
- * @license React
336
- * use-sync-external-store-shim.production.js
337
- *
338
- * Copyright (c) Meta Platforms, Inc. and affiliates.
339
- *
340
- * This source code is licensed under the MIT license found in the
341
- * LICENSE file in the root directory of this source tree.
342
- */var kh;function NB(){if(kh)return ll;kh=1;var e=S;function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,h){var m=h(),v=n({inst:{value:m,getSnapshot:h}}),g=v[0].inst,y=v[1];return i(function(){g.value=m,g.getSnapshot=h,l(g)&&y({inst:g})},[f,m,h]),o(function(){return l(g)&&y({inst:g}),f(function(){l(g)&&y({inst:g})})},[f]),a(m),m}function l(f){var h=f.getSnapshot;f=f.value;try{var m=h();return!r(f,m)}catch(v){return!0}}function c(f,h){return h()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c:s;return ll.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ll}var cl={};/**
343
- * @license React
344
- * use-sync-external-store-shim.development.js
345
- *
346
- * Copyright (c) Meta Platforms, Inc. and affiliates.
347
- *
348
- * This source code is licensed under the MIT license found in the
349
- * LICENSE file in the root directory of this source tree.
350
- */var Ah;function LB(){return Ah||(Ah=1,process.env.NODE_ENV!=="production"&&function(){function e(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}function t(m,v){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=v();if(!f){var y=v();i(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=a({inst:{value:g,getSnapshot:v}});var b=y[0].inst,T=y[1];return l(function(){b.value=g,b.getSnapshot=v,r(b)&&T({inst:b})},[m,g,v]),s(function(){return r(b)&&T({inst:b}),m(function(){r(b)&&T({inst:b})})},[m]),c(g),g}function r(m){var v=m.getSnapshot;m=m.value;try{var g=v();return!i(m,g)}catch(y){return!0}}function n(m,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=S,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,d=!1,f=!1,h=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?n:t;cl.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),cl}process.env.NODE_ENV==="production"?Mc.exports=NB():Mc.exports=LB();var FB=Mc.exports;const w1=FB.useSyncExternalStore,Ih=$.createContext(void 0),x1=$.createContext(!1);function C1(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Ih),window.ReactQueryClientContext):Ih)}const E1=({context:e}={})=>{const t=$.useContext(C1(e,$.useContext(x1)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jB=({client:e,children:t,context:r,contextSharing:n=!1})=>{$.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),process.env.NODE_ENV!=="production"&&n&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=C1(r,n);return $.createElement(x1.Provider,{value:!r&&n},$.createElement(o.Provider,{value:e},t))},BB=$.createContext(!1),HB=()=>$.useContext(BB);function zB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const WB=$.createContext(zB()),VB=()=>$.useContext(WB);function T1(e,t){return typeof e=="function"?e(...t):!!e}const UB=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},GB=e=>{$.useEffect(()=>{e.clearReset()},[e])},YB=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&T1(r,[e.error,n]),qB=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},XB=(e,t)=>e.isLoading&&e.isFetching&&!t,KB=(e,t,r)=>(e==null?void 0:e.suspense)&&XB(t,r),QB=(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 ZB(e,t){const r=E1({context:e.context}),n=HB(),o=VB(),i=r.defaultQueryOptions(e);i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=Ge.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Ge.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Ge.batchCalls(i.onSettled)),qB(i),UB(i,o),GB(o);const[a]=$.useState(()=>new t(r,i)),s=a.getOptimisticResult(i);if(w1($.useCallback(l=>{const c=n?()=>{}:a.subscribe(Ge.batchCalls(l));return a.updateResult(),c},[a,n]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),$.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),KB(i,s,n))throw QB(i,a,o);if(YB({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}function JB(e,t,r){const n=fo(e,t,r);return ZB(n,PB)}function eH({fill:e="rgba(38, 46, 61, 0.67)"}){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:p.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 tH=ht("button",{target:"e14rhw2k0",label:"ClearSelectionButton"})("color:",({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor},";background:none;font-size:13px;border:none;height:26px;padding:0 6px 0 2px;margin:0 4px 0 4px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;&:hover{background-color:rgba(247,247,247,1);}"),rH=ht("span",{target:"e14rhw2k1",label:"ClearSelectionText"})("color:",({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor},";display:inline-block;padding-top:3px;white-space:nowrap;"),nH=({onClick:e})=>{var n;const{themeSettings:t}=p.useThemeContext(),{t:r}=p.useTranslation();return p.jsxs(tH,{onClick:e,theme:t,children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:p.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"})}),p.jsx(rH,{theme:t,children:r("commonFilter.clearSelectionButton")})]})};function oH(e){const t={};return{flatFilters:e.reduce((n,o)=>(p.isCascadingFilter(o)?(t[o.config.guid]||(t[o.config.guid]=[]),o.filters.forEach(i=>{t[o.config.guid].push(i),n.push(i)})):n.push(o),n),[]),cascadingToPureFiltersMap:t}}function S1(e,t,r){const n=t.filter(p.isCascadingFilter);return aH(e,n).map(i=>{if(iH(i)){const a=n.find(l=>l.config.guid===i.groupId);if(!a)throw new p.TranslatableError("errors.cascadingFilterOriginalNotFound");const s=r==null?void 0:r.shouldResetFiltersDeeperThanModified;return sH(i,a,{shouldResetFiltersDeeperThanModified:s})}return i})}function iH(e){return"groupId"in e}function aH(e,t){const r=[];return e.forEach(n=>{const o=t.find(i=>i.filters.some(a=>To(a)===To(n)));if(o){const i=o.config.guid,a=r.find(s=>"groupId"in s&&s.groupId===i);a?a.filters.push(n):r.push({groupId:i,filters:[n],previousFilters:o.filters})}else r.push(n)}),r}function sH(e,t,r){const n=r!=null&&r.shouldResetFiltersDeeperThanModified?uH(e.filters,e.previousFilters):e.filters,o=lH(n,t.config.disabled);return p.cascading(n,{guid:t.config.guid,disabled:o})}function lH(e,t){return e.some(n=>n.config.disabled!==t)?!t:t}function cH(e,t,r){const{flatFilters:n,cascadingToPureFiltersMap:o}=oH(e);return{pureFilters:n,updateFilters:a=>{const s=S1(a,e,{shouldResetFiltersDeeperThanModified:!0});t(s)},pureFiltersIgnoringRules:dH(r,o)}}function uH(e,t){const r=e.reduce((n,o,i)=>{const a=t.find(s=>Yu(s,o));return a&&!Wv(o,a)?i:n},-1);return r===-1?e:e.map((n,o)=>o>r?bs(n):n)}function dH(e,t){var r;return{all:e.all,ids:((r=e.ids)==null?void 0:r.reduce((n,o)=>{const i=t[o];return i?n.concat(i.map(a=>a.config.guid)):n.concat(o)},[]))||[]}}const Ph={applyMode:ws.HIGHLIGHT,shouldAffectFilters:!0,ignoreFilters:{all:!1,ids:[]},forceApplyBackgroundFilters:!0};function fH(e,t){return e==="table"?{applyMode:ws.FILTER,shouldAffectFilters:!1,ignoreFilters:p.merge(Ph.ignoreFilters,t.ignoreFilters||{})}:p.merge(Ph,t)}function pH(e,t,r,n,o,i,a){const s={},l=fH(r,o),{pureFilters:c,updateFilters:d,pureFiltersIgnoringRules:f}=cH(e,t,l.ignoreFilters||{}),h=c.filter(E=>!E.config.disabled),m=aj(h,f),v=Xu(r,n),g=l.shouldAffectFilters&&v.length,[y,b]=gH(m,v,l.applyMode),T=l.forceApplyBackgroundFilters?It(hH(c),y):y;if(s.filters=T,s.highlights=b,s.onDataPointsSelected=(E,x)=>{const C=[];if(g){const _=ph(r,n,E);_&&C.push(_);const k=Wi(r,n,E),{filters:O,isSelection:D}=sl(k,c,!0),F=i(D?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),H=hh(F,()=>{d(It(c,O))});C.push(H)}C.length&&(a==null||a({id:ua.WIDGET_POINTS_CROSSFILTERING,position:{left:x.clientX,top:x.clientY},itemSections:C}))},s.onDataPointContextMenu=(E,x)=>{const C=[];if(g){const _=ph(r,n,[E]);_&&C.push(_);const k=Wi(r,n,[E]),{filters:O,isSelection:D}=sl(k,c,!0),F=i(D?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),H=hh(F,()=>{d(It(c,O))});C.push(H)}C.length&&(a==null||a({id:ua.WIDGET_POINTS_CROSSFILTERING,position:{left:x.clientX,top:x.clientY},itemSections:C}))},g){s.onDataPointClick=_=>{const k=Wi(r,n,[_]),{filters:O}=sl(k,c);d(It(c,O))};const E=h.filter(_=>v==null?void 0:v.some(k=>p.isMembersFilter(_)&&Dt(_.attribute,k)&&!Gu(_)&&!_.config.locked)),x=!!E.length,C=()=>{const _=E.map(bs);d(It(c,_))};x&&(s.renderToolbar=(_,k)=>{const O=v.map(({expression:D})=>D).join(";");return p.jsxs("div",{style:{display:"flex"},children:[p.jsx(nH,{onClick:C}),k]},O)})}return s}function hH(e){return e.map(t=>{var r;return(r=t.config)==null?void 0:r.backgroundFilter}).filter(t=>!!t)}function gH(e,t,r){if(r===ws.HIGHLIGHT){const[n,o]=ai(e,a=>t.every(s=>!Dt(s,a.attribute))),i=o.filter(a=>!Gu(a));return[n,i]}return[e,[]]}function mH(e,t){const[r,n]=qu(S.useMemo(()=>Eo(e),[e]),{onLocalStateChange:S.useCallback(h=>{const{filters:m,relations:v}=h;t&&t(po(m,v))},[t])}),{filters:o,relations:i}=r,a=S.useMemo(()=>po(o,i),[o,i]),s=S.useCallback(h=>{if(Co(h)){const{filters:m,relations:v}=Eo(h);n({filters:m||[],relations:v||null})}else n({filters:h,relations:null})},[n]),l=S.useCallback(h=>{const m=It(o,[h]);n({filters:m,relations:ho(o,i,m)})},[o,i,n]),c=S.useCallback(h=>{n({filters:h,relations:ho(o,i,h)})},[o,i,n]),d=S.useMemo(()=>o.some(h=>p.isCascadingFilter(h)),[o]),f=S.useCallback(h=>{if(!i)return h;const m=d?S1(h,o):h,v=ho(o,i,m);return po(m,v)},[d,o,i]);return{regularFilters:o,addFilter:l,filtersOrFilterRelations:a,setFiltersOrFilterRelations:s,setFilters:c,applyRelationsToOtherFilters:f}}const vH=({initialFilters:e=[],openMenu:t,onBeforeMenuOpen:r,onFiltersChange:n}={})=>{const{t:o}=p.useTranslation(),{filtersOrFilterRelations:i,regularFilters:a,addFilter:s,setFiltersOrFilterRelations:l,setFilters:c,applyRelationsToOtherFilters:d}=mH(e,n),f=S.useCallback((h,m={})=>{var x,C;if(p.isTextWidgetProps(h))return h;const v=p.getInternalWidgetType(h),g=h,y=p.cloneDeep(h),T="drilldownOptions"in h&&((C=(x=h.drilldownOptions)==null?void 0:x.drilldownSelections)==null?void 0:C.length)?d1(h.chartType,h.dataOptions,p.last(h.drilldownOptions.drilldownSelections).nextDimension):h.dataOptions,E=pH(a,c,v,T,m,o,t);return y.highlights=It(E.highlights,g.highlights),y.onBeforeMenuOpen=r,E.onDataPointClick&&p.registerDataPointClickHandler(y,E.onDataPointClick),y.filters=d(It(E.filters,kc(g.filters))),E.onDataPointClick&&p.registerDataPointClickHandler(y,E.onDataPointClick),E.onDataPointsSelected&&p.registerDataPointsSelectedHandler(y,E.onDataPointsSelected),E.onDataPointContextMenu&&p.registerDataPointContextMenuHandler(y,E.onDataPointContextMenu),E.renderToolbar&&p.registerRenderToolbarHandler(y,E.renderToolbar),y},[a,c,o,t,r,d]);return{filters:i,setFilters:l,addFilter:s,connectToWidgetProps:f}};exports.Backdrop=Kc;exports.Button=zo;exports.ButtonBase=qr;exports.Chart=yv;exports.ChartWidget=vB;exports.CommonFiltersApplyMode=ws;exports.ContextMenu=$0;exports.DEFAULT_PIVOT_TABLE_SIZE=ng;exports.DEFAULT_TABLE_ROWS_PER_PAGE=fv;exports.DEFAULT_WIDGET_HEADER_HEIGHT=rg;exports.DrilldownBreadcrumbs=Nv;exports.DynamicSizeContainer=Ha;exports.ElementStates=RC;exports.ErrorBoundary=Yh;exports.ErrorBoundary$1=vc;exports.ErrorBoundaryBox=Pc;exports.ExclamationMarkIcon=Gh;exports.Fade=Xc;exports.I18nProvider=Kh;exports.IconButton=kn;exports.LEGACY_DESIGN_TYPES=ro;exports.List=Uc;exports.ListContext=_o;exports.LoadingDots=Dc;exports.LoadingIndicator=ya;exports.LoadingOverlay=so;exports.Menu=Fa;exports.MenuIds=ua;exports.MenuItem=ja;exports.MenuList=Gc;exports.MenuProvider=N0;exports.MenuSectionIds=Wo;exports.Modal=Qc;exports.ModalProvider=L0;exports.NoResultsOverlay=tu;exports.PAGES_BATCH_SIZE=pv;exports.Paper=La;exports.Popover=eu;exports.Popper=ii;exports.PropTypes=u;exports.QueryClient=IB;exports.QueryClientProvider=jB;exports.SizeMeasurement=SC;exports.Subscribable=zn;exports.TableComponent=hv;exports.ThemeProvider=H0;exports.ThreeDotsIcon=eH;exports.Tooltip=ys;exports.Transition=Bt;exports.Typography=yt;exports.UnknownRelationsNodeError=ma;exports.WidgetContainer=Ev;exports.WidgetSpaceAround=wv;exports.alpha=Ne;exports.areFiltersEqual=Sv;exports.asSisenseComponent=Qo;exports.baseUniq=ou;exports.boxWhiskerProcessResult=WE;exports.calculateNewRelations=ho;exports.camelCase=l1;exports.capitalize=fe;exports.classNames=jo;exports.clearMembersFilter=bs;exports.cloneFilterAndToggleDisabled=c9;exports.clsx=he;exports.combineFiltersAndRelations=po;exports.composeClasses=Be;exports.convertFilterRelationsModelToJaql=iy;exports.convertFilterRelationsModelToRelationRules=q1;exports.convertToThemeSettings=Fh;exports.createCaseFirst=Yv;exports.createChainedFunction=bl;exports.createSimplePaletteValueFilter=Er;exports.createStyled=p0;exports.createSvgIcon=Pn;exports.createTheme=Aa;exports.createUnarySpacing=Sa;exports.css=va;exports.darken=Pa;exports.dataLoadStateReducer=Cc;exports.debounce=E9;exports.deepmerge=dt;exports.duration=E0;exports.elementAcceptingRef=Yr;exports.elementTypeAcceptingRef=Hc;exports.exactProp=zc;exports.extendSxProp=s0;exports.filterRelationRulesToFilterRelationsModel=J1;exports.findFilterByGuid=ey;exports.generateUtilityClass=Oe;exports.generateUtilityClasses=ke;exports.getChartDefaultSize=za;exports.getDefaultState=b1;exports.getDrilldownMenuItems=Gv;exports.getFiltersArray=kc;exports.getHierarchyModels=c1;exports.getLegacyPalette=Hh;exports.getListItemTextUtilityClass=_x;exports.getNonceFromMetaTag=Xh;exports.getPaletteName=jh;exports.getReactElementRef=In;exports.getRelationsWithReplacedFilter=U1;exports.getSelectionTitleMenuItem=Uv;exports.getTableAttributesAndMeasures=vg;exports.getThemeSettingsByOid=Bh;exports.getTransitionProps=Mo;exports.getTranslatedDataOptions=cg;exports.getValue=An;exports.getWidgetDefaultSize=og;exports.handleBreakpoints=Qt;exports.isAttributeDescriptionNode=ny;exports.isCloseBracketDescriptionNode=ry;exports.isFilterRelations=Co;exports.isFiltersChanged=Tv;exports.isOpenBracketDescriptionNode=ty;exports.isOperatorDescriptionNode=oy;exports.isRelationsChanged=h9;exports.isRelationsRule=ga;exports.isRelationsRuleIdNode=ha;exports.isSameAttribute=Dt;exports.isThemeOid=Di;exports.isTrivialSingleNodeRelations=Ac;exports.lighten=Da;exports.listItemTextClasses=Rl;exports.memoTheme=Ye;exports.mergeBreakpointsInOrder=zy;exports.mergeFilters=It;exports.mergeFiltersOrFilterRelations=$h;exports.newStyled=ht;exports.notifyManager=Ge;exports.ownerDocument=Ct;exports.parseMutationArgs=bB;exports.partition=ai;exports.processDrilldownSelections=jv;exports.refType=qo;exports.resolveBreakpointValues=Vy;exports.resolveProps=So;exports.rootShouldForwardProp=Ko;exports.shallowEqualObjects=da;exports.shouldSkipSisenseContextWaiting=gv;exports.shouldThrowError=T1;exports.splitFiltersAndRelations=Eo;exports.styled=de;exports.trackHook=g9;exports.translatePivotTableDataOptions=$E;exports.translateTableDataOptions=lg;exports.typographyClasses=Cx;exports.updateDrilldownSelections=Fv;exports.upperFirst=qv;exports.useCommonFilters=vH;exports.useControlled=Wc;exports.useDefaultProps=Fe;exports.useDrilldownCore=Lv;exports.useEnhancedEffect=xr;exports.useEventCallback=nr;exports.useForkRef=ft;exports.useGetHierarchyModels=uB;exports.useHasChanged=Vu;exports.useId=$a;exports.useMenu=Ov;exports.useModalContext=Ba;exports.useQuery=JB;exports.useQueryClient=E1;exports.useSetError=nu;exports.useShouldLoad=Mv;exports.useSlot=tt;exports.useSyncExternalStore=w1;exports.useSyncedState=qu;exports.useTheme=c0;exports.useTheme$1=Xo;exports.useTimeout=$r;exports.withErrorBoundary=qh;exports.withTracking=_v;exports.withTracking$1=Uh;