decocms 4.462.1 → 4.462.2

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 (360) hide show
  1. package/dist/client/assets/{AlertCircle-BQdX39pt.js → AlertCircle-BOqaZFXA.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DGA1ooZj.js → AreaChart-BVBZ_mBW.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-6EbZWTcH.js → ArrowLeft-BsFMaTJ5.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-2XhoOsi0.js → ArrowUp-Bi8YJGtE.js} +1 -1
  5. package/dist/client/assets/{Building02-DkmblV_t.js → Building02-BG4IPwQ3.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-CBSx0vVi.js → CartesianChart-BROP1iuM.js} +1 -1
  7. package/dist/client/assets/{Check-DT07hOsy.js → Check-ChBZV9OV.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-DKVKsPck.js → CheckCircle-D49A5hws.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Bf0RRY9i.js → ChevronUp-wB5J5ntl.js} +1 -1
  10. package/dist/client/assets/{Copy01-onj9VSIV.js → Copy01-C4tt-_AN.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-CunAqtsE.js → CreditCard01-DCvyy0kz.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-BlZNH3M2.js → DotsVertical-BWwzMO41.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-DLyMMN4K.js → ErrorBarContext-Ct0GvI3W.js} +1 -1
  14. package/dist/client/assets/{Image01-D-zCGCY4.js → Image01-B4l0All3.js} +1 -1
  15. package/dist/client/assets/{Key01-BSZJTaKJ.js → Key01-DNpH0NnO.js} +1 -1
  16. package/dist/client/assets/{Line-Cu8o9uY5.js → Line-Bq7EY1pw.js} +1 -1
  17. package/dist/client/assets/{Link01-BgOzUKXX.js → Link01-DZVgeeWe.js} +1 -1
  18. package/dist/client/assets/{LinkBroken01-CG-HmcZF.js → LinkBroken01-CNbQoBrl.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-UbkWQoBv.js → LinkExternal01-D73wyIiU.js} +1 -1
  20. package/dist/client/assets/{Monitor01-vP9TH_Iv.js → Monitor01-BJ23zU-n.js} +1 -1
  21. package/dist/client/assets/{Palette-VovT0PnZ.js → Palette-BKZ5R7W4.js} +1 -1
  22. package/dist/client/assets/{Plus-DQzzAz_7.js → Plus-CP_oegJ7.js} +1 -1
  23. package/dist/client/assets/{SearchMd-D6hQenCX.js → SearchMd-D2OTQFME.js} +1 -1
  24. package/dist/client/assets/{Sector-RlVKS-cJ.js → Sector-OlKrChyD.js} +1 -1
  25. package/dist/client/assets/{ShoppingBag01-Cv1HC6f2.js → ShoppingBag01-BfMGWAwv.js} +1 -1
  26. package/dist/client/assets/{Sun-4pXqabGH.js → Sun-BAfhxpb-.js} +1 -1
  27. package/dist/client/assets/{Tool01-R5YlhrWO.js → Tool01-B_dduyQs.js} +1 -1
  28. package/dist/client/assets/{Trash01-1y1rCSQ7.js → Trash01-C4sE_NGv.js} +1 -1
  29. package/dist/client/assets/{Upload01-4H_HtY1H.js → Upload01-qBk1AINH.js} +1 -1
  30. package/dist/client/assets/{User01-Cc8kWxTi.js → User01-DcjCdViP.js} +1 -1
  31. package/dist/client/assets/{UserSquare-DwmYgSB5.js → UserSquare-CQZbVq0f.js} +1 -1
  32. package/dist/client/assets/{Users01-CYu_OK-x.js → Users01-DR0sKzFO.js} +1 -1
  33. package/dist/client/assets/{X-Bix2CJil.js → X-DJN31Nfv.js} +1 -1
  34. package/dist/client/assets/{XAxis-BRJUR_Yx.js → XAxis-C3Bf1J_u.js} +1 -1
  35. package/dist/client/assets/{XClose-D1JVUlwn.js → XClose-D0KEw8ZX.js} +1 -1
  36. package/dist/client/assets/{ZoomOut-DK7mmj_3.js → ZoomOut-UxLkEy8R.js} +1 -1
  37. package/dist/client/assets/{access-gate-E9akvl7M.js → access-gate-RAaA3S4I.js} +1 -1
  38. package/dist/client/assets/{add-connection-dialog-C9NnYS0B.js → add-connection-dialog-BY0I55_H.js} +1 -1
  39. package/dist/client/assets/{agent-analytics-BpvLWqp9.js → agent-analytics-BkAfBBox.js} +1 -1
  40. package/dist/client/assets/agent-app-BjfUl_0f.js +1 -0
  41. package/dist/client/assets/{agent-assets-F0nAoteT.js → agent-assets-B3yLb2yB.js} +1 -1
  42. package/dist/client/assets/{agent-automation-CVWUvLWe.js → agent-automation-B2a9NwZW.js} +1 -1
  43. package/dist/client/assets/{agent-automations-CP-T_ZYT.js → agent-automations-4swr6ii9.js} +1 -1
  44. package/dist/client/assets/{agent-connect-sources-Jt-weFtl.js → agent-connect-sources-DScLzDRG.js} +1 -1
  45. package/dist/client/assets/agent-deck-qy9xDSPf.js +1 -0
  46. package/dist/client/assets/{agent-e2e-RBJsPRE-.js → agent-e2e-BYVtzJn1.js} +1 -1
  47. package/dist/client/assets/{agent-experiments-CKwxukPG.js → agent-experiments-BytI8p3-.js} +1 -1
  48. package/dist/client/assets/{agent-file-BPv1WL5h.js → agent-file-YzyYVZ_N.js} +1 -1
  49. package/dist/client/assets/{agent-hosting-B1n_QjSO.js → agent-hosting-XjyAni_P.js} +1 -1
  50. package/dist/client/assets/{agent-icon-zpWPhOfj.js → agent-icon-DGDGzDPg.js} +1 -1
  51. package/dist/client/assets/agent-library-DmwLcUW5.js +1 -0
  52. package/dist/client/assets/agent-library-file-BhecoKGR.js +1 -0
  53. package/dist/client/assets/{agent-monitor-rhzeTPAW.js → agent-monitor-BeZr1N-B.js} +1 -1
  54. package/dist/client/assets/{agent-overview-DawzNEwc.js → agent-overview-qqA1EvR2.js} +1 -1
  55. package/dist/client/assets/agent-settings-Cg5Aii0O.js +1 -0
  56. package/dist/client/assets/{agent-site-editor-CF1Vr1s-.js → agent-site-editor-3yAc0dAv.js} +1 -1
  57. package/dist/client/assets/agent-site-editor-code-nkVrwBja.js +2 -0
  58. package/dist/client/assets/{agent-site-editor-content-DybB0nyP.js → agent-site-editor-content-BVsrDzv_.js} +3 -3
  59. package/dist/client/assets/{agent-site-editor-preview-CYHo-ORA.js → agent-site-editor-preview-CWeO_adL.js} +3 -3
  60. package/dist/client/assets/agent-view-5udch1Zo.js +1 -0
  61. package/dist/client/assets/{agent-view-guard-CdHrEVQK.js → agent-view-guard--aoytX6B.js} +1 -1
  62. package/dist/client/assets/{agents-list-BUtJHEBq.js → agents-list-Bh-3TBuf.js} +1 -1
  63. package/dist/client/assets/{ai-providers--62RVeJI.js → ai-providers-DKS3l98n.js} +1 -1
  64. package/dist/client/assets/{alert-D7D03BKP.js → alert-DSsZdX1z.js} +1 -1
  65. package/dist/client/assets/{alert-dialog-CyLBdAzL.js → alert-dialog-CiySziMD.js} +1 -1
  66. package/dist/client/assets/{analytics-sections-St-vkcN9.js → analytics-sections-Cl2mCPG9.js} +1 -1
  67. package/dist/client/assets/{api-keys-8GLO1uKc.js → api-keys-DT79lla9.js} +1 -1
  68. package/dist/client/assets/api-keys-TdHJQ9tA.js +1 -0
  69. package/dist/client/assets/app-editor-BMX-mtW-.js +1 -0
  70. package/dist/client/assets/{asset-utils-BXloR6dL.js → asset-utils-Co49serB.js} +1 -1
  71. package/dist/client/assets/{auth-ydnDmdni.js → auth-Cs4gU6Jt.js} +1 -1
  72. package/dist/client/assets/{auth-catchall-DV9J64DV.js → auth-catchall-472LoEBQ.js} +1 -1
  73. package/dist/client/assets/{auth-entry-oEfwo4SD.js → auth-entry-wcuFRPik.js} +1 -1
  74. package/dist/client/assets/{auth-split-layout-CnSdMp2k.js → auth-split-layout-wSdRvsPt.js} +1 -1
  75. package/dist/client/assets/{authenticate-and-persist-oauth-0pLi3EbJ.js → authenticate-and-persist-oauth-VlIk_G_o.js} +1 -1
  76. package/dist/client/assets/{automation-list-row-Cs1Mmss0.js → automation-list-row-CuueSCf2.js} +1 -1
  77. package/dist/client/assets/{automation-runs-DADbYz16.js → automation-runs-BnertJ4X.js} +1 -1
  78. package/dist/client/assets/{automations-bWRzJt79.js → automations-DdJEP87b.js} +1 -1
  79. package/dist/client/assets/{autosend-BGaION3N.js → autosend-D7eBSjvh.js} +1 -1
  80. package/dist/client/assets/{avatar-CmK1yw1p.js → avatar-BeFOPb9J.js} +1 -1
  81. package/dist/client/assets/{badge-DEsF_1Ia.js → badge-SOygJ_ut.js} +1 -1
  82. package/dist/client/assets/{block-document-BEKsZQFG.js → block-document-Cu1aHoUW.js} +1 -1
  83. package/dist/client/assets/{blocks-preview-workspace-context-I99wRxXQ.js → blocks-preview-workspace-context-BUj7HSJ8.js} +1 -1
  84. package/dist/client/assets/{blog-schema-ChdnOShd.js → blog-schema-BMIbFol2.js} +1 -1
  85. package/dist/client/assets/{buckets-CxWDcQDs.js → buckets-BA7hLRYf.js} +1 -1
  86. package/dist/client/assets/{build-improve-prompt-doc-CkwvsCJn.js → build-improve-prompt-doc-DRPd_i83.js} +1 -1
  87. package/dist/client/assets/{calendar-CJu_GHUv.js → calendar-oXQevmTG.js} +1 -1
  88. package/dist/client/assets/{capability-load-error-Ljpou6Bo.js → capability-load-error-dMTmC9nh.js} +1 -1
  89. package/dist/client/assets/{category-editor-BP6pLKwh.js → category-editor-1_2fvb3e.js} +1 -1
  90. package/dist/client/assets/{chart-D88KLoUP.js → chart-VsbCVKFV.js} +1 -1
  91. package/dist/client/assets/{chat-context-Bx9MVwv5.js → chat-context-DiXJfhIa.js} +1 -1
  92. package/dist/client/assets/{chat-draft-BY29_iSs.js → chat-draft-Bpba7nd9.js} +1 -1
  93. package/dist/client/assets/{checkbox-C49TGIp0.js → checkbox-Dz205M-t.js} +1 -1
  94. package/dist/client/assets/{choose-editor-DB0cnGpT.js → choose-editor-sM1ArvsC.js} +1 -1
  95. package/dist/client/assets/{claim-phase-copy-C3RYiVe8.js → claim-phase-copy-Dd94Yylk.js} +1 -1
  96. package/dist/client/assets/{cli-auth-success-DwRQR0Ku.js → cli-auth-success-B9VS9AxW.js} +1 -1
  97. package/dist/client/assets/{client-icons-DAZktl5s.js → client-icons-pHlGrnda.js} +1 -1
  98. package/dist/client/assets/{collapsible-syvMi5BG.js → collapsible-CfObde3Q.js} +1 -1
  99. package/dist/client/assets/{collection-detail-CjilUV-o.js → collection-detail-Db-KUOBe.js} +1 -1
  100. package/dist/client/assets/{collection-display-button-BeOcroLk.js → collection-display-button-BkekuxeX.js} +1 -1
  101. package/dist/client/assets/{collection-search-DHFp5D4H.js → collection-search-D2PZ787d.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-ge6vt6wC.js → collection-table-wrapper-CiNVnoGZ.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-DXzpq1Uc.js → collection-tabs-BPj0wxo8.js} +1 -1
  104. package/dist/client/assets/{column-rules-BEG-LiIK.js → column-rules-DHSys_Pp.js} +1 -1
  105. package/dist/client/assets/{combobox-B6ZiAdlR.js → combobox-Cio7ykEV.js} +1 -1
  106. package/dist/client/assets/{command-D7RcR1At.js → command-CxzepSXP.js} +1 -1
  107. package/dist/client/assets/{companion-mcps-section-M9JXIs4F.js → companion-mcps-section-Cv04Xa58.js} +1 -1
  108. package/dist/client/assets/{config-DPgm9uDo.js → config-Ct9Qi8LT.js} +1 -1
  109. package/dist/client/assets/{connect-DPzJM3Ss.js → connect-CGibdNE5.js} +1 -1
  110. package/dist/client/assets/{connect-layout-BkW0QYIq.js → connect-layout-BxAxcInI.js} +1 -1
  111. package/dist/client/assets/{connection-8CqSsDm5.js → connection-DbyDLRig.js} +1 -1
  112. package/dist/client/assets/{connection-card-XhoPzocB.js → connection-card-DUnGN1LQ.js} +1 -1
  113. package/dist/client/assets/{connection-detail-C7APaNGj.js → connection-detail-CYpkfAUI.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-BmHNz6u_.js → connection-form-helpers-B-IGiex0.js} +1 -1
  115. package/dist/client/assets/{connections-BWEZddgp.js → connections-8PptZe-N.js} +1 -1
  116. package/dist/client/assets/{context-BcZ7togB.js → context-CqJX50Y5.js} +1 -1
  117. package/dist/client/assets/{context-menu-hfM0OJ90.js → context-menu-X12cIwS3.js} +1 -1
  118. package/dist/client/assets/{core.esm-BDakG4hN.js → core.esm-BND19H8a.js} +1 -1
  119. package/dist/client/assets/{create-organization-dialog-kX3bAwvy.js → create-organization-dialog-DvoetHmh.js} +1 -1
  120. package/dist/client/assets/{daily-pulse-DLNh3BNN.js → daily-pulse-VPctcCpq.js} +1 -1
  121. package/dist/client/assets/{decopilot-BVdjTDzA.js → decopilot-RuTJJBbl.js} +1 -1
  122. package/dist/client/assets/{device-hint--Pl8erT8.js → device-hint-BJfRFQKk.js} +1 -1
  123. package/dist/client/assets/{dialog-DfdkHhmb.js → dialog-D_5RxDc9.js} +1 -1
  124. package/dist/client/assets/{discover-B_YJeQ0t.js → discover-DtRS1x6t.js} +1 -1
  125. package/dist/client/assets/{domain-settings-BNKv7CG9.js → domain-settings-BGARHR_o.js} +1 -1
  126. package/dist/client/assets/{download-app-dialog-CfJbVT9R.js → download-app-dialog-RU0ZYOfB.js} +1 -1
  127. package/dist/client/assets/{drawer-CIqQnl1u.js → drawer-Br_av5UR.js} +1 -1
  128. package/dist/client/assets/{editor-DPVBnzyg.js → editor-KC3-U1Hv.js} +1 -1
  129. package/dist/client/assets/{empty-state-DSS4pT1g.js → empty-state-Bzg2RaeW.js} +1 -1
  130. package/dist/client/assets/{empty-state-BRfCy1KK.js → empty-state-DNTQ1C-X.js} +1 -1
  131. package/dist/client/assets/{extract-connection-data-BFK1aCsO.js → extract-connection-data-BFG_cq-0.js} +1 -1
  132. package/dist/client/assets/{feature-gate-lUmvuNGP.js → feature-gate-B2dCnM8L.js} +1 -1
  133. package/dist/client/assets/{feature-paywall-BHVpt9vY.js → feature-paywall-CVOfOt8x.js} +1 -1
  134. package/dist/client/assets/{file-explorer-BhvSUItT.js → file-explorer-wKCmBF67.js} +1 -1
  135. package/dist/client/assets/{file-preview-Pk-Bxrs3.js → file-preview-VEd_A7P9.js} +1 -1
  136. package/dist/client/assets/{file-share-button-Drokhk1O.js → file-share-button-DkiNZpp9.js} +1 -1
  137. package/dist/client/assets/{file-type-icon-Dak7C2hB.js → file-type-icon-CfnH9Twn.js} +1 -1
  138. package/dist/client/assets/flat-project-DkZ9ut26.js +1 -0
  139. package/dist/client/assets/{folder-icon-BV7RkSpo.js → folder-icon-CzsWuPW5.js} +1 -1
  140. package/dist/client/assets/{form-L-QwU058.js → form-juLaUBrF.js} +1 -1
  141. package/dist/client/assets/{gateway-client-DIx8y90K.js → gateway-client-CZQ4II3C.js} +1 -1
  142. package/dist/client/assets/{general-4i0UazBb.js → general-DxW1EaZc.js} +1 -1
  143. package/dist/client/assets/{home-DrUnBj11.js → home-m5VhYXeH.js} +1 -1
  144. package/dist/client/assets/{icon-button-CNx5vjvd.js → icon-button-CMxGCJDP.js} +1 -1
  145. package/dist/client/assets/{index-D6hcVQMy.js → index-BC7i1Aoz.js} +1 -1
  146. package/dist/client/assets/{index-DLxL4E4g.js → index-BgwBy5oM.js} +1 -1
  147. package/dist/client/assets/{index-qxTKzwUa.js → index-C1hd3ai4.js} +1 -1
  148. package/dist/client/assets/{index-DLUvq6N4.js → index-C5X8q_Pi.js} +1 -1
  149. package/dist/client/assets/{index-yySMOeUT.js → index-CCXcZJGG.js} +1 -1
  150. package/dist/client/assets/{index-BBAhA6Le.js → index-CZNblbQa.js} +1 -1
  151. package/dist/client/assets/{index-BSNgOILO.js → index-CpnRViDi.js} +3 -3
  152. package/dist/client/assets/{index-CmfXJaKn.js → index-CsKm2ubF.js} +2 -2
  153. package/dist/client/assets/{index-D-j5tLoV.js → index-CyAv4Ino.js} +1 -1
  154. package/dist/client/assets/{index-BIS-YXel.js → index-CycACfp6.js} +1 -1
  155. package/dist/client/assets/{index-hw5atO08.js → index-CzdEzd_G.js} +1 -1
  156. package/dist/client/assets/{index-Cha6sREf.js → index-DCcjp4nP.js} +1 -1
  157. package/dist/client/assets/{index-CpCp6flP.js → index-DyC292ZS.js} +1 -1
  158. package/dist/client/assets/{index-0eJRh8R4.js → index-G0I4ayW-.js} +1 -1
  159. package/dist/client/assets/{index-slTQzhAF.js → index-WJJsnt-n.js} +1 -1
  160. package/dist/client/assets/{index-redirect-BsL3Wy60.js → index-redirect-_gwqEShi.js} +1 -1
  161. package/dist/client/assets/{infiniteQueryObserver-BV5hUiLD.js → infiniteQueryObserver-DaqTQDCS.js} +1 -1
  162. package/dist/client/assets/{infra-billing-CTgKPdho.js → infra-billing-DCtNAzlT.js} +1 -1
  163. package/dist/client/assets/{input-4qEEcM12.js → input-BhJziSQi.js} +1 -1
  164. package/dist/client/assets/input-DFO5Hmip.js +17 -0
  165. package/dist/client/assets/{input-BNzPL_iy.js → input-hKftpNOz.js} +1 -1
  166. package/dist/client/assets/{integration-icon-BonC-ogs.js → integration-icon-CTkfXIOR.js} +1 -1
  167. package/dist/client/assets/{label-bFgvSx58.js → label-Bfbz6otc.js} +1 -1
  168. package/dist/client/assets/{layout-C6WqLGyR.js → layout-ZwTrfTZi.js} +1 -1
  169. package/dist/client/assets/{legacy-agents-deep-BBL3IdDh.js → legacy-agents-deep-DMwbwAKI.js} +1 -1
  170. package/dist/client/assets/{legacy-main-redirect-CfhJpa5K.js → legacy-main-redirect-BGY6ia4w.js} +1 -1
  171. package/dist/client/assets/library-DlOv00rX.js +1 -0
  172. package/dist/client/assets/{library-tab-BB8_-aXb.js → library-tab-BcgjMyrL.js} +1 -1
  173. package/dist/client/assets/{login-DHRUorQv.js → login-DCqry8Ay.js} +1 -1
  174. package/dist/client/assets/{markdown-Bm0EnhxB.js → markdown-Bx2p9OGj.js} +1 -1
  175. package/dist/client/assets/{mcp-app-renderer-DrzyJZxY.js → mcp-app-renderer-d-JulMSx.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-NtoAIxeI.js → mcp-oauth-BOCq2t4w.js} +1 -1
  177. package/dist/client/assets/{members-rL_0NXs3.js → members-xhc9KLWq.js} +1 -1
  178. package/dist/client/assets/{memory-57liTbov.js → memory-VJT_lSNB.js} +1 -1
  179. package/dist/client/assets/{mini-report-page-2z90zMGC.js → mini-report-page-YCYdK64Z.js} +1 -1
  180. package/dist/client/assets/{mock-board-2vyeBIpi.js → mock-board-DcCpR66D.js} +1 -1
  181. package/dist/client/assets/{monaco-editor-CgPa2BkS.js → monaco-editor-CkJpx19Y.js} +1 -1
  182. package/dist/client/assets/{monitoring-stats-row-B8BCbzN2.js → monitoring-stats-row-Cqs-6_S6.js} +1 -1
  183. package/dist/client/assets/{multi-select-Eun7kW76.js → multi-select-DW-NLuy4.js} +1 -1
  184. package/dist/client/assets/{mustache-C8I_o4kv.js → mustache-Q-UGwUPM.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-BBDXUa7t.js → new-project-dialog-BR_BdAk-.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-BRlmMjq0.js → oauth-callback-CRloSDTl.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider-dNKGDRz2.js → oauth-callback-ai-provider-2uzVHGZK.js} +1 -1
  188. package/dist/client/assets/{onboarding-DuoOHH_e.js → onboarding-DkT61UKY.js} +1 -1
  189. package/dist/client/assets/{openai-conversation-CsZhzcK_.js → openai-conversation-Bo2nNgKY.js} +1 -1
  190. package/dist/client/assets/{optimistic-project-sidebar-views-BBCxpQYT.js → optimistic-project-sidebar-views-DfbOaqQl.js} +1 -1
  191. package/dist/client/assets/{org-file-open-context-B_XQOD8z.js → org-file-open-context-BHXXOOHS.js} +1 -1
  192. package/dist/client/assets/{organization-choice-CZP-vgCu.js → organization-choice-B8_GAtl-.js} +1 -1
  193. package/dist/client/assets/{orgs-DqPSkSGZ.js → orgs-BuJtkddf.js} +1 -1
  194. package/dist/client/assets/{page-seo-form-3EgL9cU4.js → page-seo-form-5o5iVNld.js} +1 -1
  195. package/dist/client/assets/{pair-BNiFxIdB.js → pair-gpe5yzQs.js} +1 -1
  196. package/dist/client/assets/{plan-ladder-BJXeUQY6.js → plan-ladder-DionZok_.js} +1 -1
  197. package/dist/client/assets/{popover-DwltHyyo.js → popover-DH3Sl61q.js} +1 -1
  198. package/dist/client/assets/{post-calendar-Dn93fgop.js → post-calendar-tH162nXm.js} +1 -1
  199. package/dist/client/assets/{post-editor-Df-Ydp56.js → post-editor-D1gbYoHN.js} +1 -1
  200. package/dist/client/assets/{preview-content-llp8A1Fx.js → preview-content-SoUMkfQg.js} +1 -1
  201. package/dist/client/assets/{preview-dialog-C0rIAVwJ.js → preview-dialog-DPOzbA4Y.js} +1 -1
  202. package/dist/client/assets/{preview-panel-kwICD-IP.js → preview-panel-CywYdFpJ.js} +1 -1
  203. package/dist/client/assets/{profile-CKI2V6L4.js → profile-Dmb0eg_9.js} +1 -1
  204. package/dist/client/assets/{project-app-view-n3cNFnjF.js → project-app-view-gFsgFZJs.js} +1 -1
  205. package/dist/client/assets/{project-feed-CrcM01NE.js → project-feed-LDtRi-aY.js} +1 -1
  206. package/dist/client/assets/{project-icon-BbgRznbE.js → project-icon-DxklOC8j.js} +1 -1
  207. package/dist/client/assets/project-reports-DA_DcXq0.js +1 -0
  208. package/dist/client/assets/project-tasks-6O_Gw9mX.js +1 -0
  209. package/dist/client/assets/{projects-C92Fpsys.js → projects-Dq4GZ2RU.js} +1 -1
  210. package/dist/client/assets/{projects-empty-state-jalgUMXc.js → projects-empty-state-LXUf6lw8.js} +1 -1
  211. package/dist/client/assets/{prompts-I5dsKQL_.js → prompts-DpoYq-C8.js} +1 -1
  212. package/dist/client/assets/record-editor-CiRyw1Eu.js +1 -0
  213. package/dist/client/assets/{redirect-editor-Be2R_jDZ.js → redirect-editor-h2jfnY0r.js} +1 -1
  214. package/dist/client/assets/{reports-8DYzRzah.js → reports-BkGvj-AQ.js} +1 -1
  215. package/dist/client/assets/reports-C9YxMpwW.js +1 -0
  216. package/dist/client/assets/{reports-onboarding-DHU4Avz5.js → reports-onboarding-D2nAyEQg.js} +1 -1
  217. package/dist/client/assets/{reports-tab-DRzkM6pV.js → reports-tab-C4Iuixxf.js} +2 -2
  218. package/dist/client/assets/{repositories-CIMUlOvj.js → repositories-CInM2D5H.js} +1 -1
  219. package/dist/client/assets/{repository-binding-DLsaqYxe.js → repository-binding-ebck0c8n.js} +1 -1
  220. package/dist/client/assets/{repository-import-picker-BuXUq4VL.js → repository-import-picker-CTs8TUdw.js} +1 -1
  221. package/dist/client/assets/{repository-picker-BiHs5x47.js → repository-picker-BwC54VM6.js} +1 -1
  222. package/dist/client/assets/{require-capability-BEya1FVv.js → require-capability-C0TsXxTO.js} +1 -1
  223. package/dist/client/assets/{required-auth-layout-DxbZpHcW.js → required-auth-layout-D4fpdDYn.js} +1 -1
  224. package/dist/client/assets/{reset-password-Cka0kEpf.js → reset-password-BW6tqvrs.js} +1 -1
  225. package/dist/client/assets/{resizable-B88Tf4WJ.js → resizable-DENddsry.js} +1 -1
  226. package/dist/client/assets/{resolve-tab-icon-B5oufvSh.js → resolve-tab-icon-BGgWJEJh.js} +1 -1
  227. package/dist/client/assets/{review-settings-CjaZPAVN.js → review-settings-KWioU3vH.js} +1 -1
  228. package/dist/client/assets/{rich-text-link-control-Bx6xpmAj.js → rich-text-link-control-DdGTIpxo.js} +1 -1
  229. package/dist/client/assets/{roles-CQY7V_Nv.js → roles-B73i-5IT.js} +1 -1
  230. package/dist/client/assets/{route-BJUf6dcj.js → route-CwP5bQeO.js} +1 -1
  231. package/dist/client/assets/{route-Chcgj5js.js → route-Do1Yrs9w.js} +1 -1
  232. package/dist/client/assets/route-XcpEoNu9.js +1 -0
  233. package/dist/client/assets/{runnable-block-editor-36tIZdMB.js → runnable-block-editor-Dl0N0zCW.js} +1 -1
  234. package/dist/client/assets/{sandbox-lifecycle-context-C9BC0S3N.js → sandbox-lifecycle-context-B_NAJSjm.js} +1 -1
  235. package/dist/client/assets/{schema-2UaHsULm.js → schema-bIq2BT73.js} +1 -1
  236. package/dist/client/assets/{scroll-area-BYHvZ2mI.js → scroll-area-DgvMLOUX.js} +1 -1
  237. package/dist/client/assets/{search-input-B_YLozB3.js → search-input-Dxc4Q9oE.js} +1 -1
  238. package/dist/client/assets/{search-toggle-gk1lAOE-.js → search-toggle-BB2lVgeF.js} +1 -1
  239. package/dist/client/assets/{secret-picker-TXboPuNL.js → secret-picker-CBx3NT_r.js} +1 -1
  240. package/dist/client/assets/{secrets-B0siWpRR.js → secrets-Bds2fazx.js} +1 -1
  241. package/dist/client/assets/{sections-editor-DbE334qL.js → sections-editor-BHKheRNV.js} +1 -1
  242. package/dist/client/assets/{select-CGUBnSdo.js → select-ERtFaSl0.js} +1 -1
  243. package/dist/client/assets/{select-model-CvAltrce.js → select-model-DMNOi0UH.js} +1 -1
  244. package/dist/client/assets/{seo-editor-B_4BH5be.js → seo-editor-Cl9glbjm.js} +1 -1
  245. package/dist/client/assets/{separator-C5Q36va9.js → separator-CuY7Q1Gl.js} +1 -1
  246. package/dist/client/assets/{settings-tab-BEu6uPlX.js → settings-tab-D7GiwWK4.js} +1 -1
  247. package/dist/client/assets/{sheet-7Pf6aTpk.js → sheet-nJD4St3t.js} +1 -1
  248. package/dist/client/assets/{shell-layout-iAP3M_t2.js → shell-layout-CsK_iJoM.js} +1 -1
  249. package/dist/client/assets/{skills-beo1viZi.js → skills-BpYdnG8K.js} +1 -1
  250. package/dist/client/assets/{sso-nlgrPDDd.js → sso-CUH5oWF7.js} +1 -1
  251. package/dist/client/assets/{suggestion-BoHqZ2zm.js → suggestion-CVmYJ2-l.js} +1 -1
  252. package/dist/client/assets/{switch-DS7j-ERy.js → switch-BhR8nlxD.js} +1 -1
  253. package/dist/client/assets/{synced-repos--TVpMVGF.js → synced-repos-C5uktY6M.js} +1 -1
  254. package/dist/client/assets/{tab-icon-glyph-CqKc2Jnq.js → tab-icon-glyph-DDGnTEUb.js} +1 -1
  255. package/dist/client/assets/{table-B9nrZOlA.js → table-BghtXeZn.js} +1 -1
  256. package/dist/client/assets/{tabs-C4Ipd_wa.js → tabs-BdEjeb3h.js} +1 -1
  257. package/dist/client/assets/{task-board-DsbM6d_k.js → task-board-CC3VTzd7.js} +1 -1
  258. package/dist/client/assets/{task-route-Dw_pjXIQ.js → task-route-CzV6Ggve.js} +1 -1
  259. package/dist/client/assets/{task-status-Bu8dWbMG.js → task-status-MdR-wgNu.js} +1 -1
  260. package/dist/client/assets/{taskboard-analytics-CoNiVl0J.js → taskboard-analytics-CjgkuySj.js} +1 -1
  261. package/dist/client/assets/{tasks-BpRBMq0r.js → tasks-B7Pdi00T.js} +1 -1
  262. package/dist/client/assets/tasks-Lm1DDtMB.js +1 -0
  263. package/dist/client/assets/{textarea-5M2oFUCk.js → textarea-CFMwKhM9.js} +1 -1
  264. package/dist/client/assets/{thread-analytics-DBgLHsuG.js → thread-analytics-BeZ0CZhF.js} +1 -1
  265. package/dist/client/assets/{thread-button-D6_ujRz8.js → thread-button-DdmUMrmT.js} +1 -1
  266. package/dist/client/assets/{thread-intent-DYi-88yf.js → thread-intent-Dg3GQUH3.js} +1 -1
  267. package/dist/client/assets/{thread-route-Ddedz3K3.js → thread-route-BPJPEkBO.js} +1 -1
  268. package/dist/client/assets/{thread-route-D8jj7JQn.js → thread-route-C5YO0tNH.js} +1 -1
  269. package/dist/client/assets/{thread-sheet-body-CQZ4Xzqy.js → thread-sheet-body-Ci751mbw.js} +1 -1
  270. package/dist/client/assets/{toggle-group-B-XGJasE.js → toggle-group-DLp7Wh-7.js} +1 -1
  271. package/dist/client/assets/{toolbar-icon-button-Cme8sKPF.js → toolbar-icon-button-CMClok1k.js} +1 -1
  272. package/dist/client/assets/{tooltip-CyP-7aI0.js → tooltip-17PKNCMM.js} +1 -1
  273. package/dist/client/assets/{track-B2INqJw_.js → track-A4Z9PFKK.js} +1 -1
  274. package/dist/client/assets/{types-BGNIxZfy.js → types-Zt76-Urn.js} +1 -1
  275. package/dist/client/assets/{usage-stats-DzFZMIXh.js → usage-stats-Di6th6eM.js} +1 -1
  276. package/dist/client/assets/{use-ai-providers-4F-zKGq7.js → use-ai-providers-DXMywQjn.js} +1 -1
  277. package/dist/client/assets/{use-automations-CObCkDjZ.js → use-automations-BIkU0R2i.js} +1 -1
  278. package/dist/client/assets/{use-autosave-lnP7w6IA.js → use-autosave-D7Dc_Y3x.js} +1 -1
  279. package/dist/client/assets/{use-chat-layout-state-DeR1Tqdr.js → use-chat-layout-state-CcVNkckt.js} +1 -1
  280. package/dist/client/assets/{use-chat-navigation-B89SfaFP.js → use-chat-navigation-EErRoLjo.js} +1 -1
  281. package/dist/client/assets/{use-clock-tick-CAj_vE5f.js → use-clock-tick-Bs0g2LMm.js} +1 -1
  282. package/dist/client/assets/{use-connect-companion-C08Ls9V4.js → use-connect-companion-BV3jBqGw.js} +1 -1
  283. package/dist/client/assets/{use-connection-DsbJp2WH.js → use-connection-hWK0p_4I.js} +1 -1
  284. package/dist/client/assets/{use-copy-gILaQNS5.js → use-copy-eIJpbbHo.js} +1 -1
  285. package/dist/client/assets/{use-create-virtual-mcp-B9llzBQy.js → use-create-virtual-mcp-CFCczIE_.js} +1 -1
  286. package/dist/client/assets/{use-date-fns-locale-JG2XlcuE.js → use-date-fns-locale-CViyxf02.js} +1 -1
  287. package/dist/client/assets/{use-debounced-autosave-BDX075Uf.js → use-debounced-autosave-B4SAaEhH.js} +1 -1
  288. package/dist/client/assets/{use-debounced-value-CkSh2sdJ.js → use-debounced-value-Dws83Fd6.js} +1 -1
  289. package/dist/client/assets/{use-deco-credits-B6M50c5m.js → use-deco-credits-YDPWVl4H.js} +1 -1
  290. package/dist/client/assets/{use-decopilot-events-GRYBUdoh.js → use-decopilot-events-BlCOqvv5.js} +1 -1
  291. package/dist/client/assets/{use-delete-connection-M4g6mXhR.js → use-delete-connection-CEwDeoWa.js} +1 -1
  292. package/dist/client/assets/{use-deployment-admin-DoRISvgr.js → use-deployment-admin-B2zM8cA7.js} +1 -1
  293. package/dist/client/assets/{use-ensure-project-folder-BPOBE2S-.js → use-ensure-project-folder-jggJOZhf.js} +1 -1
  294. package/dist/client/assets/{use-fast-preview-draft-url-apV5WYRi.js → use-fast-preview-draft-url-B8A09d5h.js} +1 -1
  295. package/dist/client/assets/{use-file-configs-BmdGrQgB.js → use-file-configs-WonDx6od.js} +1 -1
  296. package/dist/client/assets/{use-infinite-scroll-BhcJa6Dv.js → use-infinite-scroll-CvbHrO1A.js} +1 -1
  297. package/dist/client/assets/{use-join-requests-B6pi4oC9.js → use-join-requests-Dkum0YOb.js} +1 -1
  298. package/dist/client/assets/{use-main-panel-tabs-Bn7Q_nKJ.js → use-main-panel-tabs-DM4i9k_8.js} +1 -1
  299. package/dist/client/assets/{use-mcp-auth-status-BwGIXOfQ.js → use-mcp-auth-status-CifzBBCu.js} +1 -1
  300. package/dist/client/assets/{use-mcp-client-Bm7mYuOR.js → use-mcp-client-C7yhsDUq.js} +1 -1
  301. package/dist/client/assets/{use-mcp-prompts-CSphD1Ew.js → use-mcp-prompts-BZp7FUGA.js} +1 -1
  302. package/dist/client/assets/{use-mcp-tools-Yl5gKY2j.js → use-mcp-tools-B-fAu-Lb.js} +1 -1
  303. package/dist/client/assets/{use-members-BkFO1Bt8.js → use-members-muYuUKl8.js} +1 -1
  304. package/dist/client/assets/{use-mobile-D-nsnibB.js → use-mobile-h60o0kDh.js} +1 -1
  305. package/dist/client/assets/{use-navigate-to-agent-ilYOi1P6.js → use-navigate-to-agent-DpJjb9Ad.js} +1 -1
  306. package/dist/client/assets/use-new-blocks-editor-DRLHOxEJ.js +1 -0
  307. package/dist/client/assets/{use-open-billing-url-BJSxQsX7.js → use-open-billing-url-CqRpsDrV.js} +1 -1
  308. package/dist/client/assets/{use-org-auth-client-Ch8FFgkf.js → use-org-auth-client-CPl2reDK.js} +1 -1
  309. package/dist/client/assets/{use-org-fs-D7r3cXXb.js → use-org-fs-DuUomCai.js} +1 -1
  310. package/dist/client/assets/{use-org-repo-syncs-YBN6v1a-.js → use-org-repo-syncs-4sBt09GE.js} +1 -1
  311. package/dist/client/assets/{use-org-sso-ColeXCJP.js → use-org-sso-DHgm8_xi.js} +1 -1
  312. package/dist/client/assets/{use-organization-roles-5OyxiKHR.js → use-organization-roles-BV3iU524.js} +1 -1
  313. package/dist/client/assets/{use-organization-settings-Bkbee1TC.js → use-organization-settings-C9LFE9dH.js} +1 -1
  314. package/dist/client/assets/{use-panel-navigate-CFkRSy6M.js → use-panel-navigate-BoWMxqfw.js} +1 -1
  315. package/dist/client/assets/{use-project-scope-BhC0oTXz.js → use-project-scope-Bq9_CxnF.js} +1 -1
  316. package/dist/client/assets/{use-releases-BmqYrGh7.js → use-releases-BBaBeMfL.js} +1 -1
  317. package/dist/client/assets/{use-reports-diagnostic-CCwARN0J.js → use-reports-diagnostic-G1zwph_0.js} +1 -1
  318. package/dist/client/assets/{use-secrets-tjcKGh8r.js → use-secrets-Ct52FR_G.js} +1 -1
  319. package/dist/client/assets/{use-section-preview-base-BuZjO6fr.js → use-section-preview-base-DOtesyFx.js} +1 -1
  320. package/dist/client/assets/{use-session-runtime-ComyTd-K.js → use-session-runtime-DCyDQGsH.js} +1 -1
  321. package/dist/client/assets/{use-tags-oEpdgu7W.js → use-tags-pyv75hiG.js} +1 -1
  322. package/dist/client/assets/{use-task-board-analytics-BAFH41CD.js → use-task-board-analytics-BJyBRcs8.js} +1 -1
  323. package/dist/client/assets/{use-task-board-events-CJEARXda.js → use-task-board-events-Bz8ommc9.js} +1 -1
  324. package/dist/client/assets/{use-task-metadata-DNM-o2cs.js → use-task-metadata-C_1RsAj0.js} +1 -1
  325. package/dist/client/assets/{use-thread-analytics-BsDhHRrs.js → use-thread-analytics-CVwQKqXG.js} +1 -1
  326. package/dist/client/assets/{use-thread-outputs-Cv0FzPvX.js → use-thread-outputs-Co6FxFAd.js} +1 -1
  327. package/dist/client/assets/useInfiniteQuery-SgJx2z0R.js +1 -0
  328. package/dist/client/assets/{useQueries-BtiLqqyQ.js → useQueries-4js0NmfF.js} +1 -1
  329. package/dist/client/assets/useSuspenseInfiniteQuery-BCL_lLFm.js +1 -0
  330. package/dist/client/assets/{users-DyQGgOV3.js → users-DFphiLPz.js} +1 -1
  331. package/dist/client/assets/{utils-C41e_wcL.js → utils-7wkojbq8.js} +1 -1
  332. package/dist/client/assets/{variant-calendar-B4sM-EEp.js → variant-calendar-hQb_6Knv.js} +1 -1
  333. package/dist/client/assets/{variant-matcher-override-DYorwBPR.js → variant-matcher-override-B7_BSavX.js} +1 -1
  334. package/dist/client/assets/{view-mode-toggle-Dqx01hDb.js → view-mode-toggle-I-eGSI3M.js} +1 -1
  335. package/dist/client/assets/{virtual-mcp-k-QS-zY_.js → virtual-mcp-CZeK9_Zn.js} +1 -1
  336. package/dist/client/index.html +1 -1
  337. package/dist/server/cli.js +1 -1
  338. package/dist/server/server.js +1 -1
  339. package/package.json +1 -1
  340. package/dist/client/assets/agent-app-DCZ8xzM-.js +0 -1
  341. package/dist/client/assets/agent-deck-D-q8ZKHY.js +0 -1
  342. package/dist/client/assets/agent-library-DOYiSA2I.js +0 -1
  343. package/dist/client/assets/agent-library-file-B0o-BaD1.js +0 -1
  344. package/dist/client/assets/agent-settings-C4N5XRQB.js +0 -1
  345. package/dist/client/assets/agent-site-editor-code-CzC0UMgl.js +0 -2
  346. package/dist/client/assets/agent-view-BchMOwqQ.js +0 -1
  347. package/dist/client/assets/api-keys-WRek4yc5.js +0 -1
  348. package/dist/client/assets/app-editor-BP33ySjF.js +0 -1
  349. package/dist/client/assets/flat-project-CqacAsy2.js +0 -1
  350. package/dist/client/assets/input-C5EZjiM5.js +0 -17
  351. package/dist/client/assets/library-ChuqB8UQ.js +0 -1
  352. package/dist/client/assets/project-reports-B7UkSmH1.js +0 -1
  353. package/dist/client/assets/project-tasks-DRbeO-yg.js +0 -1
  354. package/dist/client/assets/record-editor-Bb9CxLRe.js +0 -1
  355. package/dist/client/assets/reports-BpSqXBgV.js +0 -1
  356. package/dist/client/assets/route-DIenLn_2.js +0 -1
  357. package/dist/client/assets/tasks-B8Jp1enk.js +0 -1
  358. package/dist/client/assets/use-new-blocks-editor-BMeMurTo.js +0 -1
  359. package/dist/client/assets/useInfiniteQuery-CguvOv70.js +0 -1
  360. package/dist/client/assets/useSuspenseInfiniteQuery-CjC1GQYU.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as m,f3 as ye,co as mn,eq as dm,f4 as vm,aR as hm,eK as pm}from"./index-CmfXJaKn.js";import{r as mm}from"./index-CpCp6flP.js";var ym=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function cu(e){if(typeof e!="string")return!1;var t=ym;return t.includes(e)}var gm=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],bm=new Set(gm);function Vf(e){return typeof e!="string"?!1:bm.has(e)}function Xf(e){return typeof e=="string"&&e.startsWith("data-")}function ct(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Vf(r)||Xf(r))&&(t[r]=e[r]);return t}function su(e){if(e==null)return null;if(m.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ct(t)}return typeof e=="object"&&!Array.isArray(e)?ct(e):null}function qt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Vf(r)||Xf(r)||cu(r))&&(t[r]=e[r]);return t}function wm(e){return e==null?null:m.isValidElement(e)?qt(e.props):typeof e=="object"&&!Array.isArray(e)?qt(e):null}var xm=["children","width","height","viewBox","className","style","title","desc"];function _o(){return _o=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},_o.apply(null,arguments)}function Pm(e,t){if(e==null)return{};var r,n,i=Om(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Om(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}var Zf=m.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:c}=e,s=Pm(e,xm),f=a||{width:n,height:i,x:0,y:0},d=ye("recharts-surface",o);return m.createElement("svg",_o({},qt(s),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),m.createElement("title",null,l),m.createElement("desc",null,c),r)}),_m=["children","className"];function So(){return So=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},So.apply(null,arguments)}function Sm(e,t){if(e==null)return{};var r,n,i=Am(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Am(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}var gr=m.forwardRef((e,t)=>{var{children:r,className:n}=e,i=Sm(e,_m),a=ye("recharts-layer",n);return m.createElement("g",So({className:a},qt(i),{ref:t}),r)}),Cm=m.createContext(null);function Y(e){return function(){return e}}const Ao=Math.PI,Co=2*Ao,$t=1e-6,Em=Co-$t;function Qf(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function km(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Qf;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Mm{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Qf:km(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,l=n-t,c=i-r,s=o-t,f=u-r,d=s*s+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>$t)if(!(Math.abs(f*l-c*s)>$t)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,h=i-u,p=l*l+c*c,y=v*v+h*h,g=Math.sqrt(p),w=Math.sqrt(d),b=a*Math.tan((Ao-Math.acos((p+d-y)/(2*g*w)))/2),P=b/w,x=b/g;Math.abs(P-1)>$t&&this._append`L${t+P*s},${r+P*f}`,this._append`A${a},${a},0,0,${+(f*v>s*h)},${this._x1=t+x*l},${this._y1=r+x*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),c=t+u,s=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${s}`:(Math.abs(this._x1-c)>$t||Math.abs(this._y1-s)>$t)&&this._append`L${c},${s}`,n&&(d<0&&(d=d%Co+Co),d>Em?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=s}`:d>$t&&this._append`A${n},${n},0,${+(d>=Ao)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Jf(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Mm(t)}function fu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ed(e){this._context=e}ed.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Li(e){return new ed(e)}function td(e){return e[0]}function rd(e){return e[1]}function nd(e,t){var r=Y(!0),n=null,i=Li,a=null,o=Jf(u);e=typeof e=="function"?e:e===void 0?td:Y(e),t=typeof t=="function"?t:t===void 0?rd:Y(t);function u(l){var c,s=(l=fu(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),c=0;c<=s;++c)!(c<s&&r(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(v)return a=null,v+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:Y(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:Y(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Y(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function Dn(e,t,r){var n=null,i=Y(!0),a=null,o=Li,u=null,l=Jf(c);e=typeof e=="function"?e:e===void 0?td:Y(+e),t=typeof t=="function"?t:Y(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?rd:Y(+r);function c(f){var d,v,h,p=(f=fu(f)).length,y,g=!1,w,b=new Array(p),P=new Array(p);for(a==null&&(u=o(w=l())),d=0;d<=p;++d){if(!(d<p&&i(y=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(b[h],P[h]);u.lineEnd(),u.areaEnd()}g&&(b[d]=+e(y,d,f),P[d]=+t(y,d,f),u.point(n?+n(y,d,f):b[d],r?+r(y,d,f):P[d]))}if(w)return u=null,w+""||null}function s(){return nd().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Y(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Y(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Y(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Y(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Y(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Y(+f),c):r},c.lineX0=c.lineY0=function(){return s().x(e).y(t)},c.lineY1=function(){return s().x(e).y(r)},c.lineX1=function(){return s().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Y(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),c):a},c}class id{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Im(e){return new id(e,!0)}function Tm(e){return new id(e,!1)}function Zn(){}function Qn(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function ad(e){this._context=e}ad.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Qn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Qn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dm(e){return new ad(e)}function od(e){this._context=e}od.prototype={areaStart:Zn,areaEnd:Zn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Qn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jm(e){return new od(e)}function ud(e){this._context=e}ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Qn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nm(e){return new ud(e)}function ld(e){this._context=e}ld.prototype={areaStart:Zn,areaEnd:Zn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function $m(e){return new ld(e)}function jl(e){return e<0?-1:1}function Nl(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(jl(a)+jl(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function $l(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Oa(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Jn(e){this._context=e}Jn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Oa(this,this._t0,$l(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Oa(this,$l(this,r=Nl(this,e,t)),r);break;default:Oa(this,this._t0,r=Nl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function cd(e){this._context=new sd(e)}(cd.prototype=Object.create(Jn.prototype)).point=function(e,t){Jn.prototype.point.call(this,t,e)};function sd(e){this._context=e}sd.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Rm(e){return new Jn(e)}function Lm(e){return new cd(e)}function fd(e){this._context=e}fd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Rl(e),i=Rl(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Rl(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function zm(e){return new fd(e)}function zi(e,t){this._context=e,this._t=t}zi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Fm(e){return new zi(e,.5)}function Bm(e){return new zi(e,0)}function Um(e){return new zi(e,1)}function Ht(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Eo(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Wm(e,t){return e[t]}function Km(e){const t=[];return t.key=e,t}function qm(){var e=Y([]),t=Eo,r=Ht,n=Wm;function i(a){var o=Array.from(e.apply(this,arguments),Km),u,l=o.length,c=-1,s;for(const f of a)for(u=0,++c;u<l;++u)(o[u][c]=[0,+n(f,o[u].key,c,a)]).data=f;for(u=0,s=fu(t(o));u<l;++u)o[s[u]].index=u;return r(o,s),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Y(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Y(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Eo:typeof a=="function"?a:Y(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ht,i):r},i}function Hm(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ht(e,t)}}function Gm(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Ht(e,t)}}function Ym(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,l=0,c=0;u<o;++u){for(var s=e[t[u]],f=s[n][1]||0,d=s[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var p=e[t[h]],y=p[n][1]||0,g=p[n-1][1]||0;v+=y-g}l+=f,c+=v*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,Ht(e,t)}}var _a={},Sa={},Ll;function Vm(){return Ll||(Ll=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Sa)),Sa}var Aa={},zl;function Xm(){return zl||(zl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Aa)),Aa}var Ca={},Fl;function dd(){return Fl||(Fl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Ca)),Ca}var Ea={},ka={},Bl;function Zm(){return Bl||(Bl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(ka)),ka}var Ul;function vd(){return Ul||(Ul=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zm(),r=dd();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],o=i.length;if(o===0)return a;let u=0,l="",c="",s=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<o;){const f=i[u];c?f==="\\"&&u+1<o?(u++,l+=i[u]):f===c?c="":l+=f:s?f==='"'||f==="'"?c=f:f==="]"?(s=!1,a.push(l),l=""):l+=f:f==="["?(s=!0,l&&(a.push(l),l="")):f==="."?l&&(a.push(l),l=""):l+=f,u++}return l&&a.push(l),a}e.toPath=n})(Ea)),Ea}var Wl;function Qm(){return Wl||(Wl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vm(),r=Xm(),n=dd(),i=vd();function a(u,l,c){if(u==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const s=u[l];return s===void 0?r.isDeepKey(l)?a(u,i.toPath(l),c):c:s}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const s=u[l];return s===void 0?c:s}default:{if(Array.isArray(l))return o(u,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const s=u[l];return s===void 0?c:s}}}function o(u,l,c){if(l.length===0)return c;let s=u;for(let f=0;f<l.length;f++){if(s==null||t.isUnsafeProperty(l[f]))return c;s=s[l[f]]}return s===void 0?c:s}e.get=a})(_a)),_a}var Ma,Kl;function Jm(){return Kl||(Kl=1,Ma=Qm().get),Ma}var ey=Jm();const br=mn(ey);var ty=4;function hd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ty,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function tk(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var u=r[o-1];return typeof u=="string"?i+u+a:u!==void 0?i+hd(u)+a:i+a},"")}var Ve=e=>e===0?0:e>0?1:-1,st=e=>typeof e=="number"&&e!=+e,Gt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,N=e=>(typeof e=="number"||e instanceof Number)&&!st(e),wr=e=>N(e)||typeof e=="string",ry=0,Jr=e=>{var t=++ry;return"".concat(e||"").concat(t)},Yt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!N(t)&&typeof t!="string")return n;var a;if(Gt(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return st(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},pd=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function rk(e,t,r){return N(e)&&N(t)?hd(e+r*(t-e)):t}function md(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):br(n,t))===r)}var de=e=>e===null||typeof e>"u",du=e=>de(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Se(e){return e!=null}function yn(){}var nk=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,vu=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(m.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{cu(i)&&typeof r[i]=="function"&&(n[i]=(a=>r[i](r,a)))}),n},ny=(e,t,r)=>n=>(e(t,r,n),null),iy=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];cu(i)&&typeof a=="function"&&(n||(n={}),n[i]=ny(a,t,r))}),n};function ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ql(Object(r),!0).forEach(function(n){oy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oy(e,t,r){return(t=uy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uy(e){var t=ly(e,"string");return typeof t=="symbol"?t:t+""}function ly(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tr(e,t){var r=ay({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}var Ia={},Ta={},Hl;function cy(){return Hl||(Hl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Ta)),Ta}var Gl;function sy(){return Gl||(Gl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cy();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Ia)),Ia}var Da={},Yl;function fy(){return Yl||(Yl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Da)),Da}var ja={},Vl;function dy(){return Vl||(Vl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(ja)),ja}var Na={},Xl;function vy(){return Xl||(Xl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(Na)),Na}var hu=m.createContext(null),hy=e=>e,ie=()=>{var e=m.useContext(hu);return e?e.store.dispatch:hy},Hn=()=>{},py=()=>Hn,my=(e,t)=>e===t;function $(e){var t=m.useContext(hu),r=m.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Hn,[t,e]);return dm.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:py,t?t.store.getState:Hn,t?t.store.getState:Hn,r,my)}function yy(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function gy(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function by(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Zl=e=>Array.isArray(e)?e:[e];function wy(e){const t=Array.isArray(e[0])?e[0]:e;return by(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function xy(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Py=class{constructor(e){this.value=e}deref(){return this.value}},Oy=typeof WeakRef<"u"?WeakRef:Py,_y=0,Ql=1;function jn(){return{s:_y,v:void 0,o:null,p:null}}function yd(e,t={}){let r=jn();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let h=u.o;h===null&&(u.o=h=new WeakMap);const p=h.get(v);p===void 0?(u=jn(),h.set(v,u)):u=p}else{let h=u.p;h===null&&(u.p=h=new Map);const p=h.get(v);p===void 0?(u=jn(),h.set(v,u)):u=p}}const c=u;let s;if(u.s===Ql)s=u.v;else if(s=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,s)&&(s=f,a!==0&&a--),i=typeof s=="object"&&s!==null||typeof s=="function"?new Oy(s):s}return c.s=Ql,c.v=s,s}return o.clearCache=()=>{r=jn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Sy(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),yy(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const s={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=yd,argsMemoizeOptions:h=[]}=s,p=Zl(d),y=Zl(h),g=wy(i),w=f(function(){return a++,c.apply(null,arguments)},...p),b=v(function(){o++;const x=xy(g,arguments);return u=w.apply(null,x),u},...y);return Object.assign(b,{resultFunc:c,memoizedResultFunc:w,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var _=Sy(yd),Ay=Object.assign((e,t=_)=>{gy(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>Ay}),$a={},Ra={},La={},Jl;function Cy(){return Jl||(Jl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r})(La)),La}var za={},Fa={},ec;function gd(){return ec||(ec=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Fa)),Fa}var tc;function Ey(){return tc||(tc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gd(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(za)),za}var rc;function ky(){return rc||(rc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cy(),r=Ey(),n=vd();function i(a,o,u,l){if(a==null)return[];u=l?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const c=(v,h)=>{let p=v;for(let y=0;y<h.length&&p!=null;++y)p=p[h[y]];return p},s=(v,h)=>h==null||v==null?h:typeof v=="object"&&"key"in v?Object.hasOwn(h,v.key)?h[v.key]:c(h,v.path):typeof v=="function"?v(h):Array.isArray(v)?c(h,v):typeof h=="object"?h[v]:h,f=o.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return a.map(v=>({original:v,criteria:f.map(h=>s(h,v))})).slice().sort((v,h)=>{for(let p=0;p<f.length;p++){const y=t.compareValues(v.criteria[p],h.criteria[p],u[p]);if(y!==0)return y}return 0}).map(v=>v.original)}e.orderBy=i})(Ra)),Ra}var Ba={},nc;function My(){return nc||(nc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,l)=>{for(let c=0;c<u.length;c++){const s=u[c];Array.isArray(s)&&l<a?o(s,l+1):i.push(s)}};return o(r,0),i}e.flatten=t})(Ba)),Ba}var Ua={},ic;function bd(){return ic||(ic=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vy(),r=sy(),n=fy(),i=dy();function a(o,u,l){return n.isObject(l)&&(typeof u=="number"&&r.isArrayLike(l)&&t.isIndex(u)&&u<l.length||typeof u=="string"&&u in l)?i.isEqualsSameValueZero(l[u],o):!1}e.isIterateeCall=a})(Ua)),Ua}var ac;function Iy(){return ac||(ac=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ky(),r=My(),n=bd();function i(a,...o){const u=o.length;return u>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})($a)),$a}var Wa,oc;function Ty(){return oc||(oc=1,Wa=Iy().sortBy),Wa}var Dy=Ty();const pu=mn(Dy);var wd=e=>e.legend.settings,jy=e=>e.legend.size,Ny=e=>e.legend.payload;_([Ny,wd],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?pu(n,r):n});function ce(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 $y=typeof Symbol=="function"&&Symbol.observable||"@@observable",uc=$y,Ka=()=>Math.random().toString(36).substring(7).split("").join("."),Ry={INIT:`@@redux/INIT${Ka()}`,REPLACE:`@@redux/REPLACE${Ka()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ka()}`},ei=Ry;function mu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function xd(e,t,r){if(typeof e!="function")throw new Error(ce(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ce(1));return r(xd)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function c(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function s(){if(l)throw new Error(ce(3));return i}function f(y){if(typeof y!="function")throw new Error(ce(4));if(l)throw new Error(ce(5));let g=!0;c();const w=u++;return o.set(w,y),function(){if(g){if(l)throw new Error(ce(6));g=!1,c(),o.delete(w),a=null}}}function d(y){if(!mu(y))throw new Error(ce(7));if(typeof y.type>"u")throw new Error(ce(8));if(typeof y.type!="string")throw new Error(ce(17));if(l)throw new Error(ce(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(w=>{w()}),y}function v(y){if(typeof y!="function")throw new Error(ce(10));n=y,d({type:ei.REPLACE})}function h(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ce(11));function w(){const P=g;P.next&&P.next(s())}return w(),{unsubscribe:y(w)}},[uc](){return this}}}return d({type:ei.INIT}),{dispatch:d,subscribe:f,getState:s,replaceReducer:v,[uc]:h}}function Ly(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:ei.INIT})>"u")throw new Error(ce(12));if(typeof r(void 0,{type:ei.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function Pd(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{Ly(r)}catch(a){i=a}return function(o={},u){if(i)throw i;let l=!1;const c={};for(let s=0;s<n.length;s++){const f=n[s],d=r[f],v=o[f],h=d(v,u);if(typeof h>"u")throw u&&u.type,new Error(ce(14));c[f]=h,l=l||h!==v}return l=l||n.length!==Object.keys(o).length,l?c:o}}function ti(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function zy(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(ce(15))};const o={getState:i.getState,dispatch:(l,...c)=>a(l,...c)},u=e.map(l=>l(o));return a=ti(...u)(i.dispatch),{...i,dispatch:a}}}function Od(e){return mu(e)&&"type"in e&&typeof e.type=="string"}var _d=Symbol.for("immer-nothing"),lc=Symbol.for("immer-draftable"),xe=Symbol.for("immer-state");function Be(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Me=Object,xr=Me.getPrototypeOf,ri="constructor",Fi="prototype",ko="configurable",ni="enumerable",Gn="writable",en="value",ft=e=>!!e&&!!e[xe];function Ke(e){return e?Sd(e)||Ui(e)||!!e[lc]||!!e[ri]?.[lc]||Wi(e)||Ki(e):!1}var Fy=Me[Fi][ri].toString(),cc=new WeakMap;function Sd(e){if(!e||!yu(e))return!1;const t=xr(e);if(t===null||t===Me[Fi])return!0;const r=Me.hasOwnProperty.call(t,ri)&&t[ri];if(r===Object)return!0;if(!fr(r))return!1;let n=cc.get(r);return n===void 0&&(n=Function.toString.call(r),cc.set(r,n)),n===Fy}function Bi(e,t,r=!0){gn(e)===0?(r?Reflect.ownKeys(e):Me.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function gn(e){const t=e[xe];return t?t.type_:Ui(e)?1:Wi(e)?2:Ki(e)?3:0}var sc=(e,t,r=gn(e))=>r===2?e.has(t):Me[Fi].hasOwnProperty.call(e,t),Mo=(e,t,r=gn(e))=>r===2?e.get(t):e[t],ii=(e,t,r,n=gn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function By(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ui=Array.isArray,Wi=e=>e instanceof Map,Ki=e=>e instanceof Set,yu=e=>typeof e=="object",fr=e=>typeof e=="function",qa=e=>typeof e=="boolean";function Uy(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var it=e=>e.copy_||e.base_,gu=e=>e.modified_?e.copy_:e.base_;function Io(e,t){if(Wi(e))return new Map(e);if(Ki(e))return new Set(e);if(Ui(e))return Array[Fi].slice.call(e);const r=Sd(e);if(t===!0||t==="class_only"&&!r){const n=Me.getOwnPropertyDescriptors(e);delete n[xe];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Gn]===!1&&(u[Gn]=!0,u[ko]=!0),(u.get||u.set)&&(n[o]={[ko]:!0,[Gn]:!0,[ni]:u[ni],[en]:e[o]})}return Me.create(xr(e),n)}else{const n=xr(e);if(n!==null&&r)return{...e};const i=Me.create(n);return Me.assign(i,e)}}function bu(e,t=!1){return qi(e)||ft(e)||!Ke(e)||(gn(e)>1&&Me.defineProperties(e,{set:Nn,add:Nn,clear:Nn,delete:Nn}),Me.freeze(e),t&&Bi(e,(r,n)=>{bu(n,!0)},!1)),e}function Wy(){Be(2)}var Nn={[en]:Wy};function qi(e){return e===null||!yu(e)?!0:Me.isFrozen(e)}var ai="MapSet",To="Patches",fc="ArrayMethods",Ad={};function Vt(e){const t=Ad[e];return t||Be(0,e),t}var dc=e=>!!Ad[e],tn,Cd=()=>tn,Ky=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:dc(ai)?Vt(ai):void 0,arrayMethodsPlugin_:dc(fc)?Vt(fc):void 0});function vc(e,t){t&&(e.patchPlugin_=Vt(To),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Do(e){jo(e),e.drafts_.forEach(qy),e.drafts_=null}function jo(e){e===tn&&(tn=e.parent_)}var hc=e=>tn=Ky(tn,e);function qy(e){const t=e[xe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function pc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[xe].modified_&&(Do(t),Be(4)),Ke(e)&&(e=mc(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[xe].base_,e,t)}else e=mc(t,r);return Hy(t,e,!0),Do(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==_d?e:void 0}function mc(e,t){if(qi(t))return t;const r=t[xe];if(!r)return oi(t,e.handledSet_,e);if(!Hi(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Md(r,e)}return r.copy_}function Hy(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&bu(t,r)}function Ed(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Hi=(e,t)=>e.scope_===t,Gy=[];function kd(e,t,r,n){const i=it(e),a=e.type_;if(n!==void 0&&Mo(i,n,a)===t){ii(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Bi(i,(l,c)=>{if(ft(c)){const s=u.get(c)||[];s.push(l),u.set(c,s)}})}const o=e.draftLocations_.get(t)??Gy;for(const u of o)ii(i,u,r,a)}function Yy(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!Hi(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=gu(a);kd(e,a.draft_??a,o,r),Md(a,i)})}function Md(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}Ed(e)}}function Vy(e,t,r){const{scope_:n}=e;if(ft(r)){const i=r[xe];Hi(i,n)&&i.callbacks_.push(function(){Yn(e);const o=gu(i);kd(e,r,o,t)})}else Ke(r)&&e.callbacks_.push(function(){const a=it(e);e.type_===3?a.has(r)&&oi(r,n.handledSet_,n):Mo(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&oi(Mo(e.copy_,t,e.type_),n.handledSet_,n)})}function oi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ft(e)||t.has(e)||!Ke(e)||qi(e)||(t.add(e),Bi(e,(n,i)=>{if(ft(i)){const a=i[xe];if(Hi(a,r)){const o=gu(a);ii(e,n,o,e.type_),Ed(a)}}else Ke(i)&&oi(i,t,r)})),e}function Xy(e,t){const r=Ui(e),n={type_:r?1:0,scope_:t?t.scope_:Cd(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=ui;r&&(i=[n],a=rn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var ui={get(e,t){if(t===xe)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=it(e);if(!sc(i,t,e.type_))return Zy(e,i,t);const a=i[t];if(e.finalized_||!Ke(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Uy(t))return a;if(a===Ha(e.base_,t)){Yn(e);const o=e.type_===1?+t:t,u=$o(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in it(e)},ownKeys(e){return Reflect.ownKeys(it(e))},set(e,t,r){const n=Id(it(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Ha(it(e),t),a=i?.[xe];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(By(r,i)&&(r!==void 0||sc(e.base_,t,e.type_)))return!0;Yn(e),No(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Vy(e,t,r)),!0},deleteProperty(e,t){return Yn(e),Ha(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),No(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=it(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Gn]:!0,[ko]:e.type_!==1||t!=="length",[ni]:n[ni],[en]:r[t]}},defineProperty(){Be(11)},getPrototypeOf(e){return xr(e.base_)},setPrototypeOf(){Be(12)}},rn={};for(let e in ui){let t=ui[e];rn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}rn.deleteProperty=function(e,t){return rn.set.call(this,e,t,void 0)};rn.set=function(e,t,r){return ui.set.call(this,e[0],t,r,e[0])};function Ha(e,t){const r=e[xe];return(r?it(r):e)[t]}function Zy(e,t,r){const n=Id(t,r);return n?en in n?n[en]:n.get?.call(e.draft_):void 0}function Id(e,t){if(!(t in e))return;let r=xr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=xr(r)}}function No(e){e.modified_||(e.modified_=!0,e.parent_&&No(e.parent_))}function Yn(e){e.copy_||(e.assigned_=new Map,e.copy_=Io(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qy=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(fr(r)&&!fr(n)){const o=n;n=r;const u=this;return function(c=o,...s){return u.produce(c,f=>n.call(this,f,...s))}}fr(n)||Be(6),i!==void 0&&!fr(i)&&Be(7);let a;if(Ke(r)){const o=hc(this),u=$o(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?Do(o):jo(o)}return vc(o,i),pc(a,o)}else if(!r||!yu(r)){if(a=n(r),a===void 0&&(a=r),a===_d&&(a=void 0),this.autoFreeze_&&bu(a,!0),i){const o=[],u=[];Vt(To).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else Be(1,r)},this.produceWithPatches=(r,n)=>{if(fr(r))return(u,...l)=>this.produceWithPatches(u,c=>r(c,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},qa(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),qa(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),qa(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ke(t)||Be(8),ft(t)&&(t=Ne(t));const r=hc(this),n=$o(r,t,void 0);return n[xe].isManual_=!0,jo(r),n}finishDraft(t,r){const n=t&&t[xe];(!n||!n.isManual_)&&Be(9);const{scope_:i}=n;return vc(i,r),pc(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Vt(To).applyPatches_;return ft(t)?i(t,r):this.produce(t,a=>i(a,r))}};function $o(e,t,r,n){const[i,a]=Wi(t)?Vt(ai).proxyMap_(t,r):Ki(t)?Vt(ai).proxySet_(t,r):Xy(t,r);return(r?.scope_??Cd()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?Yy(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:c}=l;a.modified_&&c&&c.generatePatches_(a,[],l)}),i}function Ne(e){return ft(e)||Be(10,e),Td(e)}function Td(e){if(!Ke(e)||qi(e))return e;const t=e[xe];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Io(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Io(e,!0);return Bi(r,(i,a)=>{ii(r,i,Td(a))},n),t&&(t.finalized_=!1),r}var Jy=new Qy,Dd=Jy.produce;function jd(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var eg=jd(),tg=jd,rg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ti:ti.apply(null,arguments)};function Te(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ie(0));return{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=()=>`${e}`,r.type=e,r.match=n=>Od(n)&&n.type===e,r}var Nd=class Yr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Yr.prototype)}static get[Symbol.species](){return Yr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Yr(...t[0].concat(this)):new Yr(...t.concat(this))}};function yc(e){return Ke(e)?Dd(e,()=>{}):e}function $n(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function ng(e){return typeof e=="boolean"}var ig=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Nd;return r&&(ng(r)?o.push(eg):o.push(tg(r.extraArgument))),o},$d="RTK_autoBatch",q=()=>e=>({payload:e,meta:{[$d]:!0}}),gc=e=>t=>{setTimeout(t,e)},Rd=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:gc(10):e.type==="callback"?e.queueNotification:gc(e.timeout),c=()=>{o=!1,a&&(a=!1,u.forEach(s=>s()))};return Object.assign({},n,{subscribe(s){const f=()=>i&&s(),d=n.subscribe(f);return u.add(s),()=>{d(),u.delete(s)}},dispatch(s){try{return i=!s?.meta?.[$d],a=!i,a&&(o||(o=!0,l(c))),n.dispatch(s)}finally{i=!0}}})},ag=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Nd(e);return n&&i.push(Rd(typeof n=="object"?n:void 0)),i};function og(e){const t=ig(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(mu(r))u=Pd(r);else throw new Error(Ie(1));let l;typeof n=="function"?l=n(t):l=t();let c=ti;i&&(c=rg({trace:!1,...typeof i=="object"&&i}));const s=zy(...l),f=ag(s);let d=typeof o=="function"?o(f):f();const v=c(...d);return xd(u,a,v)}function Ld(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Ie(28));if(u in t)throw new Error(Ie(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function ug(e){return typeof e=="function"}function lg(e,t){let[r,n,i]=Ld(t),a;if(ug(e))a=()=>yc(e());else{const u=yc(e);a=()=>u}function o(u=a(),l){let c=[r[l.type],...n.filter(({matcher:s})=>s(l)).map(({reducer:s})=>s)];return c.filter(s=>!!s).length===0&&(c=[i]),c.reduce((s,f)=>{if(f)if(ft(s)){const v=f(s,l);return v===void 0?s:v}else{if(Ke(s))return Dd(s,d=>f(d,l));{const d=f(s,l);if(d===void 0){if(s===null)return s;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return s},u)}return o.getInitialState=a,o}var cg="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sg=(e=21)=>{let t="",r=e;for(;r--;)t+=cg[Math.random()*64|0];return t},fg=Symbol.for("rtk-slice-createasyncthunk");function dg(e,t){return`${e}/${t}`}function vg({creators:e}={}){const t=e?.asyncThunk?.[fg];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Ie(11));const o=(typeof n.reducers=="function"?n.reducers(pg()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,P){const x=typeof b=="string"?b:b.type;if(!x)throw new Error(Ie(12));if(x in l.sliceCaseReducersByType)throw new Error(Ie(13));return l.sliceCaseReducersByType[x]=P,c},addMatcher(b,P){return l.sliceMatchers.push({matcher:b,reducer:P}),c},exposeAction(b,P){return l.actionCreators[b]=P,c},exposeCaseReducer(b,P){return l.sliceCaseReducersByName[b]=P,c}};u.forEach(b=>{const P=o[b],x={reducerName:b,type:dg(i,b),createNotation:typeof n.reducers=="function"};yg(P)?bg(x,P,c,t):mg(x,P,c)});function s(){const[b={},P=[],x=void 0]=typeof n.extraReducers=="function"?Ld(n.extraReducers):[n.extraReducers],O={...b,...l.sliceCaseReducersByType};return lg(n.initialState,S=>{for(let E in O)S.addCase(E,O[E]);for(let E of l.sliceMatchers)S.addMatcher(E.matcher,E.reducer);for(let E of P)S.addMatcher(E.matcher,E.reducer);x&&S.addDefaultCase(x)})}const f=b=>b,d=new Map,v=new WeakMap;let h;function p(b,P){return h||(h=s()),h(b,P)}function y(){return h||(h=s()),h.getInitialState()}function g(b,P=!1){function x(S){let E=S[b];return typeof E>"u"&&P&&(E=$n(v,x,y)),E}function O(S=f){const E=$n(d,P,()=>new WeakMap);return $n(E,S,()=>{const T={};for(const[D,j]of Object.entries(n.selectors??{}))T[D]=hg(j,S,()=>$n(v,S,y),P);return T})}return{reducerPath:b,getSelectors:O,get selectors(){return O(x)},selectSlice:x}}const w={name:i,reducer:p,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:y,...g(a),injectInto(b,{reducerPath:P,...x}={}){const O=P??a;return b.inject({reducerPath:O,reducer:p},x),{...w,...g(O,!0)}}};return w}}function hg(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var ge=vg();function pg(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function mg({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!gg(n))throw new Error(Ie(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Te(e,o):Te(e))}function yg(e){return e._reducerDefinitionType==="asyncThunk"}function gg(e){return e._reducerDefinitionType==="reducerWithPrepare"}function bg({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ie(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:l,settled:c,options:s}=r,f=i(e,a,s);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Rn,pending:u||Rn,rejected:l||Rn,settled:c||Rn})}function Rn(){}var wg="task",zd="listener",Fd="completed",wu="cancelled",xg=`task-${wu}`,Pg=`task-${Fd}`,Ro=`${zd}-${wu}`,Og=`${zd}-${Fd}`,Gi=class{constructor(e){this.code=e,this.message=`${wg} ${wu} (reason: ${e})`}name="TaskAbortError";message},xu=(e,t)=>{if(typeof e!="function")throw new TypeError(Ie(32))},li=()=>{},Bd=(e,t=li)=>(e.catch(t),e),Ud=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ut=e=>{if(e.aborted)throw new Gi(e.reason)};function Wd(e,t){let r=li;return new Promise((n,i)=>{const a=()=>i(new Gi(e.reason));if(e.aborted){a();return}r=Ud(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=li})}var _g=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Gi?"cancelled":"rejected",error:r}}finally{t?.()}},ci=e=>t=>Bd(Wd(e,t).then(r=>(Ut(e),r))),Kd=e=>{const t=ci(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:hr}=Object,bc={},Yi="listenerMiddleware",Sg=(e,t)=>{const r=n=>Ud(e,()=>n.abort(e.reason));return(n,i)=>{xu(n);const a=new AbortController;r(a);const o=_g(async()=>{Ut(e),Ut(a.signal);const u=await n({pause:ci(a.signal),delay:Kd(a.signal),signal:a.signal});return Ut(a.signal),u},()=>a.abort(Pg));return i?.autoJoin&&t.push(o.catch(li)),{result:ci(e)(o),cancel(){a.abort(xg)}}}},Ag=(e,t)=>{const r=async(n,i)=>{Ut(t);let a=()=>{};const u=[new Promise((l,c)=>{let s=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{s(),c()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Wd(t,Promise.race(u));return Ut(t),l}finally{a()}};return(n,i)=>Bd(r(n,i))},qd=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Te(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ie(21));return xu(a),{predicate:i,type:t,effect:a}},Hd=hr(e=>{const{type:t,predicate:r,effect:n}=qd(e);return{id:sg(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ie(22))}}},{withTypes:()=>Hd}),wc=(e,t)=>{const{type:r,effect:n,predicate:i}=qd(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Lo=e=>{e.pending.forEach(t=>{t.abort(Ro)})},Cg=(e,t)=>()=>{for(const r of t.keys())Lo(r);e.clear()},xc=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Gd=hr(Te(`${Yi}/add`),{withTypes:()=>Gd}),Eg=Te(`${Yi}/removeAll`),Yd=hr(Te(`${Yi}/remove`),{withTypes:()=>Yd}),kg=(...e)=>{console.error(`${Yi}/error`,...e)},bn=(e={})=>{const t=new Map,r=new Map,n=v=>{const h=r.get(v)??0;r.set(v,h+1)},i=v=>{const h=r.get(v)??1;h===1?r.delete(v):r.set(v,h-1)},{extra:a,onError:o=kg}=e;xu(o);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),h=>{v.unsubscribe(),h?.cancelActive&&Lo(v)}),l=v=>{const h=wc(t,v)??Hd(v);return u(h)};hr(l,{withTypes:()=>l});const c=v=>{const h=wc(t,v);return h&&(h.unsubscribe(),v.cancelActive&&Lo(h)),!!h};hr(c,{withTypes:()=>c});const s=async(v,h,p,y)=>{const g=new AbortController,w=Ag(l,g.signal),b=[];try{v.pending.add(g),n(v),await Promise.resolve(v.effect(h,hr({},p,{getOriginalState:y,condition:(P,x)=>w(P,x).then(Boolean),take:w,delay:Kd(g.signal),pause:ci(g.signal),extra:a,signal:g.signal,fork:Sg(g.signal,b),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((P,x,O)=>{P!==g&&(P.abort(Ro),O.delete(P))})},cancel:()=>{g.abort(Ro),v.pending.delete(g)},throwIfCancelled:()=>{Ut(g.signal)}})))}catch(P){P instanceof Gi||xc(o,P,{raisedBy:"effect"})}finally{await Promise.all(b),g.abort(Og),i(v),v.pending.delete(g)}},f=Cg(t,r);return{middleware:v=>h=>p=>{if(!Od(p))return h(p);if(Gd.match(p))return l(p.payload);if(Eg.match(p)){f();return}if(Yd.match(p))return c(p.payload);let y=v.getState();const g=()=>{if(y===bc)throw new Error(Ie(23));return y};let w;try{if(w=h(p),t.size>0){const b=v.getState(),P=Array.from(t.values());for(const x of P){let O=!1;try{O=x.predicate(p,b,y)}catch(S){O=!1,xc(o,S,{raisedBy:"predicate"})}O&&s(x,p,v,g)}}}finally{y=bc}return w},startListening:l,stopListening:c,clearListeners:f}};function Ie(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Mg={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Vd=ge({name:"chartLayout",initialState:Mg,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Ig,setLayout:Tg,setChartSize:Dg,setScale:jg}=Vd.actions,Ng=Vd.reducer;function Xd(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function z(e){return Number.isFinite(e)}function et(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Pc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pc(Object(r),!0).forEach(function(n){$g(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $g(e,t,r){return(t=Rg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rg(e){var t=Lg(e,"string");return typeof t=="symbol"?t:t+""}function Lg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fe(e,t,r){return de(e)||de(t)?r:wr(t)?br(e,t,r):typeof t=="function"?t(e):r}var zg=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&N(e[a]))return dr(dr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&N(e[o]))return dr(dr({},e),{},{[o]:e[o]+(i||0)})}return e},At=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Zd=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Qd=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:c,tickCount:s,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var h=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,p=i==="category"&&o.bandwidth?o.bandwidth()/h:0;if(p=v==="angleAxis"&&a&&a.length>=2?Ve(a[0]-a[1])*2*p:p,f||d){var y=(f||d||[]).map((g,w)=>{var b=n?n.indexOf(g):g,P=o.map(b);return z(P)?{coordinate:P+p,value:g,offset:p,index:w}:null}).filter(Se);return y}return l&&c?c.map((g,w)=>{var b=o.map(g);return z(b)?{coordinate:b+p,value:g,index:w,offset:p}:null}).filter(Se):o.ticks&&s!=null?o.ticks(s).map((g,w)=>{var b=o.map(g);return z(b)?{coordinate:b+p,value:g,index:w,offset:p}:null}).filter(Se):o.domain().map((g,w)=>{var b=o.map(g);return z(b)?{coordinate:b+p,value:n?n[g]:g,index:w,offset:p}:null}).filter(Se)},ak=(e,t)=>{if(!t||t.length!==2||!N(t[0])||!N(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!N(e[0])||e[0]<r)&&(i[0]=r),(!N(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},Fg=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,u=0;u<r;++u){var l=e[u],c=l?.[i];if(c!=null){var s=c[1],f=c[0],d=st(s)?f:s;d>=0?(c[0]=a,a+=d,c[1]=a):(c[0]=o,o+=d,c[1]=o)}}}},Bg=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var u=e[o],l=u?.[i];if(l!=null){var c=st(l[1])?l[0]:l[1];c>=0?(l[0]=a,a+=c,l[1]=a):(l[0]=0,l[1]=0)}}}},Ug={sign:Fg,expand:Hm,none:Ht,silhouette:Gm,wiggle:Ym,positive:Bg},Wg=(e,t,r)=>{var n,i=(n=Ug[r])!==null&&n!==void 0?n:Ht,a=qm().keys(t).value((u,l)=>Number(fe(u,l,0))).order(Eo).offset(i),o=a(e);return o.forEach((u,l)=>{u.forEach((c,s)=>{var f=fe(e[s],t[l],0);Array.isArray(f)&&f.length===2&&N(f[0])&&N(f[1])&&(c[0]=f[0],c[1]=f[1])})}),o};function ok(e){return e==null?void 0:String(e)}function uk(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!de(i[t.dataKey])){var u=md(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var l=fe(i,de(o)?t.dataKey:o),c=t.scale.map(l);return N(c)?c:null}var lk=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=fe(a,t.dataKey,t.scale.domain()[o]);if(de(u))return null;var l=t.scale.map(u);return N(l)?l-i/2+n:null},ck=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},Kg=e=>{var t=e.flat(2).filter(N);return[Math.min(...t),Math.max(...t)]},qg=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Hg=(e,t,r)=>{if(e!=null)return qg(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((l,c)=>{var s=Xd(c,t,r),f=Kg(s);return!z(f[0])||!z(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},Oc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_c=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sk=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=pu(t,s=>s.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],c=i[o-1];a=Math.min((l?.coordinate||0)-(c?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function Sc(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return dr(dr({},t),{},{dataKey:r,payload:n,value:i,name:a})}function fk(e,t){if(e)return String(e);if(typeof t=="string")return t}var Gg=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Yg=(e,t)=>t==="centric"?e.angle:e.radius,pt=e=>e.layout.width,mt=e=>e.layout.height,Vg=e=>e.layout.scale,Jd=e=>e.layout.margin,Vi=_(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Xi=_(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Xg="data-recharts-item-index",Zg="data-recharts-item-id",wn=60;function Ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ln(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ac(Object(r),!0).forEach(function(n){Qg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ac(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qg(e,t,r){return(t=Jg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jg(e){var t=e0(e,"string");return typeof t=="symbol"?t:t+""}function e0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t0=e=>e.brush.height;function r0(e){var t=Xi(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:wn;return r+i}return r},0)}function n0(e){var t=Xi(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:wn;return r+i}return r},0)}function i0(e){var t=Vi(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function a0(e){var t=Vi(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ve=_([pt,mt,Jd,t0,r0,n0,i0,a0,wd,jy],(e,t,r,n,i,a,o,u,l,c)=>{var s={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=Ln(Ln({},f),s),v=d.bottom;d.bottom+=n,d=zg(d,l,c);var h=e-d.left-d.right,p=t-d.top-d.bottom;return Ln(Ln({brushBottom:v},d),{},{width:Math.max(h,0),height:Math.max(p,0)})}),o0=_(ve,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),u0=_(pt,mt,(e,t)=>({x:0,y:0,width:e,height:t})),l0=m.createContext(null),qe=()=>m.useContext(l0)!=null,Zi=e=>e.brush,Qi=_([Zi,ve,Jd],(e,t,r)=>({height:e.height,x:N(e.x)?e.x:t.left,y:N(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:N(e.width)?e.width:t.width})),Ga={},Ya={},Va={},Cc;function c0(){return Cc||(Cc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const l=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),s=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{c&&s(),p()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},h=()=>{d!==null&&(clearTimeout(d),d=null)},p=()=>{h(),o=void 0,u=null},y=()=>{s()},g=function(...w){if(i?.aborted)return;o=this,u=w;const b=d==null;v(),l&&b&&s()};return g.schedule=v,g.cancel=p,g.flush=y,i?.addEventListener("abort",p,{once:!0}),g}e.debounce=t})(Va)),Va}var Ec;function s0(){return Ec||(Ec=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=c0();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:l}=a,c=Array(2);o&&(c[0]="leading"),u&&(c[1]="trailing");let s,f=null;const d=t.debounce(function(...p){s=n.apply(this,p),f=null},i,{edges:c}),v=function(...p){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(s=n.apply(this,p),f=Date.now(),d.cancel(),d.schedule(),s):(d.apply(this,p),s)},h=()=>(d.flush(),s);return v.cancel=d.cancel,v.flush=h,v}e.debounce=r})(Ya)),Ya}var kc;function f0(){return kc||(kc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=s0();function r(n,i=0,a={}){const{leading:o=!0,trailing:u=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:u})}e.throttle=r})(Ga)),Ga}var Xa,Mc;function d0(){return Mc||(Mc=1,Xa=f0().throttle),Xa}var v0=d0();const h0=mn(v0);var si=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},Xe={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ev=(e,t,r)=>{var{width:n=Xe.width,height:i=Xe.height,aspect:a,maxHeight:o}=r,u=Gt(n)?e:Number(n),l=Gt(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},p0={width:0,height:0,overflow:"visible"},m0={width:0,overflowX:"visible"},y0={height:0,overflowY:"visible"},g0={},b0=e=>{var{width:t,height:r}=e,n=Gt(t),i=Gt(r);return n&&i?p0:n?m0:i?y0:g0};function w0(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=Xe.width,a=Xe.height):i===void 0?i=n&&n>0?void 0:Xe.width:a===void 0&&(a=n&&n>0?void 0:Xe.height),{width:i,height:a}}function zo(){return zo=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},zo.apply(null,arguments)}function Ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ic(Object(r),!0).forEach(function(n){x0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x0(e,t,r){return(t=P0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P0(e){var t=O0(e,"string");return typeof t=="symbol"?t:t+""}function O0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tv=m.createContext(Xe.initialDimension);function _0(e){return et(e.width)&&et(e.height)}function rv(e){var{children:t,width:r,height:n}=e,i=m.useMemo(()=>({width:r,height:n}),[r,n]);return _0(i)?m.createElement(tv.Provider,{value:i},t):null}var Pu=()=>m.useContext(tv),S0=m.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Xe.initialDimension,width:i,height:a,minWidth:o=Xe.minWidth,minHeight:u,maxHeight:l,children:c,debounce:s=Xe.debounce,id:f,className:d,onResize:v,style:h={}}=e,p=m.useRef(null),y=m.useRef();y.current=v,m.useImperativeHandle(t,()=>p.current);var[g,w]=m.useState({containerWidth:n.width,containerHeight:n.height}),b=m.useCallback((E,T)=>{w(D=>{var j=Math.round(E),A=Math.round(T);return D.containerWidth===j&&D.containerHeight===A?D:{containerWidth:j,containerHeight:A}})},[]);m.useEffect(()=>{if(p.current==null||typeof ResizeObserver>"u")return yn;var E=A=>{var B,U=A[0];if(U!=null){var{width:re,height:Oe}=U.contentRect;b(re,Oe),(B=y.current)===null||B===void 0||B.call(y,re,Oe)}};s>0&&(E=h0(E,s,{trailing:!0,leading:!1}));var T=new ResizeObserver(E),{width:D,height:j}=p.current.getBoundingClientRect();return b(D,j),T.observe(p.current),()=>{T.disconnect()}},[b,s]);var{containerWidth:P,containerHeight:x}=g;si(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=ev(P,x,{width:i,height:a,aspect:r,maxHeight:l});return si(O!=null&&O>0||S!=null&&S>0,`The width(%s) and height(%s) of chart should be greater than 0,
1
+ import{r as m,f3 as ye,co as mn,eq as dm,f4 as vm,aR as hm,eK as pm}from"./index-CsKm2ubF.js";import{r as mm}from"./index-DyC292ZS.js";var ym=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function cu(e){if(typeof e!="string")return!1;var t=ym;return t.includes(e)}var gm=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],bm=new Set(gm);function Vf(e){return typeof e!="string"?!1:bm.has(e)}function Xf(e){return typeof e=="string"&&e.startsWith("data-")}function ct(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Vf(r)||Xf(r))&&(t[r]=e[r]);return t}function su(e){if(e==null)return null;if(m.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ct(t)}return typeof e=="object"&&!Array.isArray(e)?ct(e):null}function qt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Vf(r)||Xf(r)||cu(r))&&(t[r]=e[r]);return t}function wm(e){return e==null?null:m.isValidElement(e)?qt(e.props):typeof e=="object"&&!Array.isArray(e)?qt(e):null}var xm=["children","width","height","viewBox","className","style","title","desc"];function _o(){return _o=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},_o.apply(null,arguments)}function Pm(e,t){if(e==null)return{};var r,n,i=Om(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Om(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}var Zf=m.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:c}=e,s=Pm(e,xm),f=a||{width:n,height:i,x:0,y:0},d=ye("recharts-surface",o);return m.createElement("svg",_o({},qt(s),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),m.createElement("title",null,l),m.createElement("desc",null,c),r)}),_m=["children","className"];function So(){return So=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},So.apply(null,arguments)}function Sm(e,t){if(e==null)return{};var r,n,i=Am(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Am(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}var gr=m.forwardRef((e,t)=>{var{children:r,className:n}=e,i=Sm(e,_m),a=ye("recharts-layer",n);return m.createElement("g",So({className:a},qt(i),{ref:t}),r)}),Cm=m.createContext(null);function Y(e){return function(){return e}}const Ao=Math.PI,Co=2*Ao,$t=1e-6,Em=Co-$t;function Qf(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function km(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Qf;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Mm{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Qf:km(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,l=n-t,c=i-r,s=o-t,f=u-r,d=s*s+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>$t)if(!(Math.abs(f*l-c*s)>$t)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,h=i-u,p=l*l+c*c,y=v*v+h*h,g=Math.sqrt(p),w=Math.sqrt(d),b=a*Math.tan((Ao-Math.acos((p+d-y)/(2*g*w)))/2),P=b/w,x=b/g;Math.abs(P-1)>$t&&this._append`L${t+P*s},${r+P*f}`,this._append`A${a},${a},0,0,${+(f*v>s*h)},${this._x1=t+x*l},${this._y1=r+x*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),c=t+u,s=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${s}`:(Math.abs(this._x1-c)>$t||Math.abs(this._y1-s)>$t)&&this._append`L${c},${s}`,n&&(d<0&&(d=d%Co+Co),d>Em?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=s}`:d>$t&&this._append`A${n},${n},0,${+(d>=Ao)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Jf(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Mm(t)}function fu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ed(e){this._context=e}ed.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Li(e){return new ed(e)}function td(e){return e[0]}function rd(e){return e[1]}function nd(e,t){var r=Y(!0),n=null,i=Li,a=null,o=Jf(u);e=typeof e=="function"?e:e===void 0?td:Y(e),t=typeof t=="function"?t:t===void 0?rd:Y(t);function u(l){var c,s=(l=fu(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),c=0;c<=s;++c)!(c<s&&r(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(v)return a=null,v+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:Y(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:Y(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Y(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function Dn(e,t,r){var n=null,i=Y(!0),a=null,o=Li,u=null,l=Jf(c);e=typeof e=="function"?e:e===void 0?td:Y(+e),t=typeof t=="function"?t:Y(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?rd:Y(+r);function c(f){var d,v,h,p=(f=fu(f)).length,y,g=!1,w,b=new Array(p),P=new Array(p);for(a==null&&(u=o(w=l())),d=0;d<=p;++d){if(!(d<p&&i(y=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(b[h],P[h]);u.lineEnd(),u.areaEnd()}g&&(b[d]=+e(y,d,f),P[d]=+t(y,d,f),u.point(n?+n(y,d,f):b[d],r?+r(y,d,f):P[d]))}if(w)return u=null,w+""||null}function s(){return nd().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Y(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Y(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Y(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Y(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Y(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Y(+f),c):r},c.lineX0=c.lineY0=function(){return s().x(e).y(t)},c.lineY1=function(){return s().x(e).y(r)},c.lineX1=function(){return s().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Y(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),c):a},c}class id{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Im(e){return new id(e,!0)}function Tm(e){return new id(e,!1)}function Zn(){}function Qn(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function ad(e){this._context=e}ad.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Qn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Qn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dm(e){return new ad(e)}function od(e){this._context=e}od.prototype={areaStart:Zn,areaEnd:Zn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Qn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jm(e){return new od(e)}function ud(e){this._context=e}ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Qn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nm(e){return new ud(e)}function ld(e){this._context=e}ld.prototype={areaStart:Zn,areaEnd:Zn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function $m(e){return new ld(e)}function jl(e){return e<0?-1:1}function Nl(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(jl(a)+jl(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function $l(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Oa(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Jn(e){this._context=e}Jn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Oa(this,this._t0,$l(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Oa(this,$l(this,r=Nl(this,e,t)),r);break;default:Oa(this,this._t0,r=Nl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function cd(e){this._context=new sd(e)}(cd.prototype=Object.create(Jn.prototype)).point=function(e,t){Jn.prototype.point.call(this,t,e)};function sd(e){this._context=e}sd.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Rm(e){return new Jn(e)}function Lm(e){return new cd(e)}function fd(e){this._context=e}fd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Rl(e),i=Rl(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Rl(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function zm(e){return new fd(e)}function zi(e,t){this._context=e,this._t=t}zi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Fm(e){return new zi(e,.5)}function Bm(e){return new zi(e,0)}function Um(e){return new zi(e,1)}function Ht(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Eo(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Wm(e,t){return e[t]}function Km(e){const t=[];return t.key=e,t}function qm(){var e=Y([]),t=Eo,r=Ht,n=Wm;function i(a){var o=Array.from(e.apply(this,arguments),Km),u,l=o.length,c=-1,s;for(const f of a)for(u=0,++c;u<l;++u)(o[u][c]=[0,+n(f,o[u].key,c,a)]).data=f;for(u=0,s=fu(t(o));u<l;++u)o[s[u]].index=u;return r(o,s),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Y(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Y(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Eo:typeof a=="function"?a:Y(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ht,i):r},i}function Hm(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ht(e,t)}}function Gm(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Ht(e,t)}}function Ym(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,l=0,c=0;u<o;++u){for(var s=e[t[u]],f=s[n][1]||0,d=s[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var p=e[t[h]],y=p[n][1]||0,g=p[n-1][1]||0;v+=y-g}l+=f,c+=v*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,Ht(e,t)}}var _a={},Sa={},Ll;function Vm(){return Ll||(Ll=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Sa)),Sa}var Aa={},zl;function Xm(){return zl||(zl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Aa)),Aa}var Ca={},Fl;function dd(){return Fl||(Fl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Ca)),Ca}var Ea={},ka={},Bl;function Zm(){return Bl||(Bl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(ka)),ka}var Ul;function vd(){return Ul||(Ul=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zm(),r=dd();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],o=i.length;if(o===0)return a;let u=0,l="",c="",s=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<o;){const f=i[u];c?f==="\\"&&u+1<o?(u++,l+=i[u]):f===c?c="":l+=f:s?f==='"'||f==="'"?c=f:f==="]"?(s=!1,a.push(l),l=""):l+=f:f==="["?(s=!0,l&&(a.push(l),l="")):f==="."?l&&(a.push(l),l=""):l+=f,u++}return l&&a.push(l),a}e.toPath=n})(Ea)),Ea}var Wl;function Qm(){return Wl||(Wl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vm(),r=Xm(),n=dd(),i=vd();function a(u,l,c){if(u==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const s=u[l];return s===void 0?r.isDeepKey(l)?a(u,i.toPath(l),c):c:s}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const s=u[l];return s===void 0?c:s}default:{if(Array.isArray(l))return o(u,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const s=u[l];return s===void 0?c:s}}}function o(u,l,c){if(l.length===0)return c;let s=u;for(let f=0;f<l.length;f++){if(s==null||t.isUnsafeProperty(l[f]))return c;s=s[l[f]]}return s===void 0?c:s}e.get=a})(_a)),_a}var Ma,Kl;function Jm(){return Kl||(Kl=1,Ma=Qm().get),Ma}var ey=Jm();const br=mn(ey);var ty=4;function hd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ty,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function tk(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var u=r[o-1];return typeof u=="string"?i+u+a:u!==void 0?i+hd(u)+a:i+a},"")}var Ve=e=>e===0?0:e>0?1:-1,st=e=>typeof e=="number"&&e!=+e,Gt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,N=e=>(typeof e=="number"||e instanceof Number)&&!st(e),wr=e=>N(e)||typeof e=="string",ry=0,Jr=e=>{var t=++ry;return"".concat(e||"").concat(t)},Yt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!N(t)&&typeof t!="string")return n;var a;if(Gt(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return st(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},pd=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function rk(e,t,r){return N(e)&&N(t)?hd(e+r*(t-e)):t}function md(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):br(n,t))===r)}var de=e=>e===null||typeof e>"u",du=e=>de(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Se(e){return e!=null}function yn(){}var nk=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,vu=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(m.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{cu(i)&&typeof r[i]=="function"&&(n[i]=(a=>r[i](r,a)))}),n},ny=(e,t,r)=>n=>(e(t,r,n),null),iy=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];cu(i)&&typeof a=="function"&&(n||(n={}),n[i]=ny(a,t,r))}),n};function ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ql(Object(r),!0).forEach(function(n){oy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oy(e,t,r){return(t=uy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uy(e){var t=ly(e,"string");return typeof t=="symbol"?t:t+""}function ly(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tr(e,t){var r=ay({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}var Ia={},Ta={},Hl;function cy(){return Hl||(Hl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Ta)),Ta}var Gl;function sy(){return Gl||(Gl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cy();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Ia)),Ia}var Da={},Yl;function fy(){return Yl||(Yl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Da)),Da}var ja={},Vl;function dy(){return Vl||(Vl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(ja)),ja}var Na={},Xl;function vy(){return Xl||(Xl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(Na)),Na}var hu=m.createContext(null),hy=e=>e,ie=()=>{var e=m.useContext(hu);return e?e.store.dispatch:hy},Hn=()=>{},py=()=>Hn,my=(e,t)=>e===t;function $(e){var t=m.useContext(hu),r=m.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Hn,[t,e]);return dm.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:py,t?t.store.getState:Hn,t?t.store.getState:Hn,r,my)}function yy(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function gy(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function by(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Zl=e=>Array.isArray(e)?e:[e];function wy(e){const t=Array.isArray(e[0])?e[0]:e;return by(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function xy(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Py=class{constructor(e){this.value=e}deref(){return this.value}},Oy=typeof WeakRef<"u"?WeakRef:Py,_y=0,Ql=1;function jn(){return{s:_y,v:void 0,o:null,p:null}}function yd(e,t={}){let r=jn();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let h=u.o;h===null&&(u.o=h=new WeakMap);const p=h.get(v);p===void 0?(u=jn(),h.set(v,u)):u=p}else{let h=u.p;h===null&&(u.p=h=new Map);const p=h.get(v);p===void 0?(u=jn(),h.set(v,u)):u=p}}const c=u;let s;if(u.s===Ql)s=u.v;else if(s=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,s)&&(s=f,a!==0&&a--),i=typeof s=="object"&&s!==null||typeof s=="function"?new Oy(s):s}return c.s=Ql,c.v=s,s}return o.clearCache=()=>{r=jn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Sy(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),yy(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const s={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=yd,argsMemoizeOptions:h=[]}=s,p=Zl(d),y=Zl(h),g=wy(i),w=f(function(){return a++,c.apply(null,arguments)},...p),b=v(function(){o++;const x=xy(g,arguments);return u=w.apply(null,x),u},...y);return Object.assign(b,{resultFunc:c,memoizedResultFunc:w,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var _=Sy(yd),Ay=Object.assign((e,t=_)=>{gy(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>Ay}),$a={},Ra={},La={},Jl;function Cy(){return Jl||(Jl=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r})(La)),La}var za={},Fa={},ec;function gd(){return ec||(ec=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Fa)),Fa}var tc;function Ey(){return tc||(tc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gd(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(za)),za}var rc;function ky(){return rc||(rc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cy(),r=Ey(),n=vd();function i(a,o,u,l){if(a==null)return[];u=l?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const c=(v,h)=>{let p=v;for(let y=0;y<h.length&&p!=null;++y)p=p[h[y]];return p},s=(v,h)=>h==null||v==null?h:typeof v=="object"&&"key"in v?Object.hasOwn(h,v.key)?h[v.key]:c(h,v.path):typeof v=="function"?v(h):Array.isArray(v)?c(h,v):typeof h=="object"?h[v]:h,f=o.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return a.map(v=>({original:v,criteria:f.map(h=>s(h,v))})).slice().sort((v,h)=>{for(let p=0;p<f.length;p++){const y=t.compareValues(v.criteria[p],h.criteria[p],u[p]);if(y!==0)return y}return 0}).map(v=>v.original)}e.orderBy=i})(Ra)),Ra}var Ba={},nc;function My(){return nc||(nc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,l)=>{for(let c=0;c<u.length;c++){const s=u[c];Array.isArray(s)&&l<a?o(s,l+1):i.push(s)}};return o(r,0),i}e.flatten=t})(Ba)),Ba}var Ua={},ic;function bd(){return ic||(ic=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vy(),r=sy(),n=fy(),i=dy();function a(o,u,l){return n.isObject(l)&&(typeof u=="number"&&r.isArrayLike(l)&&t.isIndex(u)&&u<l.length||typeof u=="string"&&u in l)?i.isEqualsSameValueZero(l[u],o):!1}e.isIterateeCall=a})(Ua)),Ua}var ac;function Iy(){return ac||(ac=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ky(),r=My(),n=bd();function i(a,...o){const u=o.length;return u>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})($a)),$a}var Wa,oc;function Ty(){return oc||(oc=1,Wa=Iy().sortBy),Wa}var Dy=Ty();const pu=mn(Dy);var wd=e=>e.legend.settings,jy=e=>e.legend.size,Ny=e=>e.legend.payload;_([Ny,wd],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?pu(n,r):n});function ce(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 $y=typeof Symbol=="function"&&Symbol.observable||"@@observable",uc=$y,Ka=()=>Math.random().toString(36).substring(7).split("").join("."),Ry={INIT:`@@redux/INIT${Ka()}`,REPLACE:`@@redux/REPLACE${Ka()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ka()}`},ei=Ry;function mu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function xd(e,t,r){if(typeof e!="function")throw new Error(ce(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ce(1));return r(xd)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function c(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function s(){if(l)throw new Error(ce(3));return i}function f(y){if(typeof y!="function")throw new Error(ce(4));if(l)throw new Error(ce(5));let g=!0;c();const w=u++;return o.set(w,y),function(){if(g){if(l)throw new Error(ce(6));g=!1,c(),o.delete(w),a=null}}}function d(y){if(!mu(y))throw new Error(ce(7));if(typeof y.type>"u")throw new Error(ce(8));if(typeof y.type!="string")throw new Error(ce(17));if(l)throw new Error(ce(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(w=>{w()}),y}function v(y){if(typeof y!="function")throw new Error(ce(10));n=y,d({type:ei.REPLACE})}function h(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ce(11));function w(){const P=g;P.next&&P.next(s())}return w(),{unsubscribe:y(w)}},[uc](){return this}}}return d({type:ei.INIT}),{dispatch:d,subscribe:f,getState:s,replaceReducer:v,[uc]:h}}function Ly(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:ei.INIT})>"u")throw new Error(ce(12));if(typeof r(void 0,{type:ei.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function Pd(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{Ly(r)}catch(a){i=a}return function(o={},u){if(i)throw i;let l=!1;const c={};for(let s=0;s<n.length;s++){const f=n[s],d=r[f],v=o[f],h=d(v,u);if(typeof h>"u")throw u&&u.type,new Error(ce(14));c[f]=h,l=l||h!==v}return l=l||n.length!==Object.keys(o).length,l?c:o}}function ti(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function zy(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(ce(15))};const o={getState:i.getState,dispatch:(l,...c)=>a(l,...c)},u=e.map(l=>l(o));return a=ti(...u)(i.dispatch),{...i,dispatch:a}}}function Od(e){return mu(e)&&"type"in e&&typeof e.type=="string"}var _d=Symbol.for("immer-nothing"),lc=Symbol.for("immer-draftable"),xe=Symbol.for("immer-state");function Be(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Me=Object,xr=Me.getPrototypeOf,ri="constructor",Fi="prototype",ko="configurable",ni="enumerable",Gn="writable",en="value",ft=e=>!!e&&!!e[xe];function Ke(e){return e?Sd(e)||Ui(e)||!!e[lc]||!!e[ri]?.[lc]||Wi(e)||Ki(e):!1}var Fy=Me[Fi][ri].toString(),cc=new WeakMap;function Sd(e){if(!e||!yu(e))return!1;const t=xr(e);if(t===null||t===Me[Fi])return!0;const r=Me.hasOwnProperty.call(t,ri)&&t[ri];if(r===Object)return!0;if(!fr(r))return!1;let n=cc.get(r);return n===void 0&&(n=Function.toString.call(r),cc.set(r,n)),n===Fy}function Bi(e,t,r=!0){gn(e)===0?(r?Reflect.ownKeys(e):Me.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function gn(e){const t=e[xe];return t?t.type_:Ui(e)?1:Wi(e)?2:Ki(e)?3:0}var sc=(e,t,r=gn(e))=>r===2?e.has(t):Me[Fi].hasOwnProperty.call(e,t),Mo=(e,t,r=gn(e))=>r===2?e.get(t):e[t],ii=(e,t,r,n=gn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function By(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ui=Array.isArray,Wi=e=>e instanceof Map,Ki=e=>e instanceof Set,yu=e=>typeof e=="object",fr=e=>typeof e=="function",qa=e=>typeof e=="boolean";function Uy(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var it=e=>e.copy_||e.base_,gu=e=>e.modified_?e.copy_:e.base_;function Io(e,t){if(Wi(e))return new Map(e);if(Ki(e))return new Set(e);if(Ui(e))return Array[Fi].slice.call(e);const r=Sd(e);if(t===!0||t==="class_only"&&!r){const n=Me.getOwnPropertyDescriptors(e);delete n[xe];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Gn]===!1&&(u[Gn]=!0,u[ko]=!0),(u.get||u.set)&&(n[o]={[ko]:!0,[Gn]:!0,[ni]:u[ni],[en]:e[o]})}return Me.create(xr(e),n)}else{const n=xr(e);if(n!==null&&r)return{...e};const i=Me.create(n);return Me.assign(i,e)}}function bu(e,t=!1){return qi(e)||ft(e)||!Ke(e)||(gn(e)>1&&Me.defineProperties(e,{set:Nn,add:Nn,clear:Nn,delete:Nn}),Me.freeze(e),t&&Bi(e,(r,n)=>{bu(n,!0)},!1)),e}function Wy(){Be(2)}var Nn={[en]:Wy};function qi(e){return e===null||!yu(e)?!0:Me.isFrozen(e)}var ai="MapSet",To="Patches",fc="ArrayMethods",Ad={};function Vt(e){const t=Ad[e];return t||Be(0,e),t}var dc=e=>!!Ad[e],tn,Cd=()=>tn,Ky=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:dc(ai)?Vt(ai):void 0,arrayMethodsPlugin_:dc(fc)?Vt(fc):void 0});function vc(e,t){t&&(e.patchPlugin_=Vt(To),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Do(e){jo(e),e.drafts_.forEach(qy),e.drafts_=null}function jo(e){e===tn&&(tn=e.parent_)}var hc=e=>tn=Ky(tn,e);function qy(e){const t=e[xe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function pc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[xe].modified_&&(Do(t),Be(4)),Ke(e)&&(e=mc(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[xe].base_,e,t)}else e=mc(t,r);return Hy(t,e,!0),Do(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==_d?e:void 0}function mc(e,t){if(qi(t))return t;const r=t[xe];if(!r)return oi(t,e.handledSet_,e);if(!Hi(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Md(r,e)}return r.copy_}function Hy(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&bu(t,r)}function Ed(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Hi=(e,t)=>e.scope_===t,Gy=[];function kd(e,t,r,n){const i=it(e),a=e.type_;if(n!==void 0&&Mo(i,n,a)===t){ii(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Bi(i,(l,c)=>{if(ft(c)){const s=u.get(c)||[];s.push(l),u.set(c,s)}})}const o=e.draftLocations_.get(t)??Gy;for(const u of o)ii(i,u,r,a)}function Yy(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!Hi(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=gu(a);kd(e,a.draft_??a,o,r),Md(a,i)})}function Md(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}Ed(e)}}function Vy(e,t,r){const{scope_:n}=e;if(ft(r)){const i=r[xe];Hi(i,n)&&i.callbacks_.push(function(){Yn(e);const o=gu(i);kd(e,r,o,t)})}else Ke(r)&&e.callbacks_.push(function(){const a=it(e);e.type_===3?a.has(r)&&oi(r,n.handledSet_,n):Mo(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&oi(Mo(e.copy_,t,e.type_),n.handledSet_,n)})}function oi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ft(e)||t.has(e)||!Ke(e)||qi(e)||(t.add(e),Bi(e,(n,i)=>{if(ft(i)){const a=i[xe];if(Hi(a,r)){const o=gu(a);ii(e,n,o,e.type_),Ed(a)}}else Ke(i)&&oi(i,t,r)})),e}function Xy(e,t){const r=Ui(e),n={type_:r?1:0,scope_:t?t.scope_:Cd(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=ui;r&&(i=[n],a=rn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var ui={get(e,t){if(t===xe)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=it(e);if(!sc(i,t,e.type_))return Zy(e,i,t);const a=i[t];if(e.finalized_||!Ke(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Uy(t))return a;if(a===Ha(e.base_,t)){Yn(e);const o=e.type_===1?+t:t,u=$o(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in it(e)},ownKeys(e){return Reflect.ownKeys(it(e))},set(e,t,r){const n=Id(it(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Ha(it(e),t),a=i?.[xe];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(By(r,i)&&(r!==void 0||sc(e.base_,t,e.type_)))return!0;Yn(e),No(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Vy(e,t,r)),!0},deleteProperty(e,t){return Yn(e),Ha(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),No(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=it(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Gn]:!0,[ko]:e.type_!==1||t!=="length",[ni]:n[ni],[en]:r[t]}},defineProperty(){Be(11)},getPrototypeOf(e){return xr(e.base_)},setPrototypeOf(){Be(12)}},rn={};for(let e in ui){let t=ui[e];rn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}rn.deleteProperty=function(e,t){return rn.set.call(this,e,t,void 0)};rn.set=function(e,t,r){return ui.set.call(this,e[0],t,r,e[0])};function Ha(e,t){const r=e[xe];return(r?it(r):e)[t]}function Zy(e,t,r){const n=Id(t,r);return n?en in n?n[en]:n.get?.call(e.draft_):void 0}function Id(e,t){if(!(t in e))return;let r=xr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=xr(r)}}function No(e){e.modified_||(e.modified_=!0,e.parent_&&No(e.parent_))}function Yn(e){e.copy_||(e.assigned_=new Map,e.copy_=Io(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qy=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(fr(r)&&!fr(n)){const o=n;n=r;const u=this;return function(c=o,...s){return u.produce(c,f=>n.call(this,f,...s))}}fr(n)||Be(6),i!==void 0&&!fr(i)&&Be(7);let a;if(Ke(r)){const o=hc(this),u=$o(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?Do(o):jo(o)}return vc(o,i),pc(a,o)}else if(!r||!yu(r)){if(a=n(r),a===void 0&&(a=r),a===_d&&(a=void 0),this.autoFreeze_&&bu(a,!0),i){const o=[],u=[];Vt(To).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else Be(1,r)},this.produceWithPatches=(r,n)=>{if(fr(r))return(u,...l)=>this.produceWithPatches(u,c=>r(c,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},qa(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),qa(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),qa(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ke(t)||Be(8),ft(t)&&(t=Ne(t));const r=hc(this),n=$o(r,t,void 0);return n[xe].isManual_=!0,jo(r),n}finishDraft(t,r){const n=t&&t[xe];(!n||!n.isManual_)&&Be(9);const{scope_:i}=n;return vc(i,r),pc(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Vt(To).applyPatches_;return ft(t)?i(t,r):this.produce(t,a=>i(a,r))}};function $o(e,t,r,n){const[i,a]=Wi(t)?Vt(ai).proxyMap_(t,r):Ki(t)?Vt(ai).proxySet_(t,r):Xy(t,r);return(r?.scope_??Cd()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?Yy(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:c}=l;a.modified_&&c&&c.generatePatches_(a,[],l)}),i}function Ne(e){return ft(e)||Be(10,e),Td(e)}function Td(e){if(!Ke(e)||qi(e))return e;const t=e[xe];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Io(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Io(e,!0);return Bi(r,(i,a)=>{ii(r,i,Td(a))},n),t&&(t.finalized_=!1),r}var Jy=new Qy,Dd=Jy.produce;function jd(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var eg=jd(),tg=jd,rg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ti:ti.apply(null,arguments)};function Te(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ie(0));return{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=()=>`${e}`,r.type=e,r.match=n=>Od(n)&&n.type===e,r}var Nd=class Yr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Yr.prototype)}static get[Symbol.species](){return Yr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Yr(...t[0].concat(this)):new Yr(...t.concat(this))}};function yc(e){return Ke(e)?Dd(e,()=>{}):e}function $n(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function ng(e){return typeof e=="boolean"}var ig=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Nd;return r&&(ng(r)?o.push(eg):o.push(tg(r.extraArgument))),o},$d="RTK_autoBatch",q=()=>e=>({payload:e,meta:{[$d]:!0}}),gc=e=>t=>{setTimeout(t,e)},Rd=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:gc(10):e.type==="callback"?e.queueNotification:gc(e.timeout),c=()=>{o=!1,a&&(a=!1,u.forEach(s=>s()))};return Object.assign({},n,{subscribe(s){const f=()=>i&&s(),d=n.subscribe(f);return u.add(s),()=>{d(),u.delete(s)}},dispatch(s){try{return i=!s?.meta?.[$d],a=!i,a&&(o||(o=!0,l(c))),n.dispatch(s)}finally{i=!0}}})},ag=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Nd(e);return n&&i.push(Rd(typeof n=="object"?n:void 0)),i};function og(e){const t=ig(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(mu(r))u=Pd(r);else throw new Error(Ie(1));let l;typeof n=="function"?l=n(t):l=t();let c=ti;i&&(c=rg({trace:!1,...typeof i=="object"&&i}));const s=zy(...l),f=ag(s);let d=typeof o=="function"?o(f):f();const v=c(...d);return xd(u,a,v)}function Ld(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Ie(28));if(u in t)throw new Error(Ie(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function ug(e){return typeof e=="function"}function lg(e,t){let[r,n,i]=Ld(t),a;if(ug(e))a=()=>yc(e());else{const u=yc(e);a=()=>u}function o(u=a(),l){let c=[r[l.type],...n.filter(({matcher:s})=>s(l)).map(({reducer:s})=>s)];return c.filter(s=>!!s).length===0&&(c=[i]),c.reduce((s,f)=>{if(f)if(ft(s)){const v=f(s,l);return v===void 0?s:v}else{if(Ke(s))return Dd(s,d=>f(d,l));{const d=f(s,l);if(d===void 0){if(s===null)return s;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return s},u)}return o.getInitialState=a,o}var cg="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sg=(e=21)=>{let t="",r=e;for(;r--;)t+=cg[Math.random()*64|0];return t},fg=Symbol.for("rtk-slice-createasyncthunk");function dg(e,t){return`${e}/${t}`}function vg({creators:e}={}){const t=e?.asyncThunk?.[fg];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Ie(11));const o=(typeof n.reducers=="function"?n.reducers(pg()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,P){const x=typeof b=="string"?b:b.type;if(!x)throw new Error(Ie(12));if(x in l.sliceCaseReducersByType)throw new Error(Ie(13));return l.sliceCaseReducersByType[x]=P,c},addMatcher(b,P){return l.sliceMatchers.push({matcher:b,reducer:P}),c},exposeAction(b,P){return l.actionCreators[b]=P,c},exposeCaseReducer(b,P){return l.sliceCaseReducersByName[b]=P,c}};u.forEach(b=>{const P=o[b],x={reducerName:b,type:dg(i,b),createNotation:typeof n.reducers=="function"};yg(P)?bg(x,P,c,t):mg(x,P,c)});function s(){const[b={},P=[],x=void 0]=typeof n.extraReducers=="function"?Ld(n.extraReducers):[n.extraReducers],O={...b,...l.sliceCaseReducersByType};return lg(n.initialState,S=>{for(let E in O)S.addCase(E,O[E]);for(let E of l.sliceMatchers)S.addMatcher(E.matcher,E.reducer);for(let E of P)S.addMatcher(E.matcher,E.reducer);x&&S.addDefaultCase(x)})}const f=b=>b,d=new Map,v=new WeakMap;let h;function p(b,P){return h||(h=s()),h(b,P)}function y(){return h||(h=s()),h.getInitialState()}function g(b,P=!1){function x(S){let E=S[b];return typeof E>"u"&&P&&(E=$n(v,x,y)),E}function O(S=f){const E=$n(d,P,()=>new WeakMap);return $n(E,S,()=>{const T={};for(const[D,j]of Object.entries(n.selectors??{}))T[D]=hg(j,S,()=>$n(v,S,y),P);return T})}return{reducerPath:b,getSelectors:O,get selectors(){return O(x)},selectSlice:x}}const w={name:i,reducer:p,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:y,...g(a),injectInto(b,{reducerPath:P,...x}={}){const O=P??a;return b.inject({reducerPath:O,reducer:p},x),{...w,...g(O,!0)}}};return w}}function hg(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var ge=vg();function pg(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function mg({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!gg(n))throw new Error(Ie(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Te(e,o):Te(e))}function yg(e){return e._reducerDefinitionType==="asyncThunk"}function gg(e){return e._reducerDefinitionType==="reducerWithPrepare"}function bg({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ie(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:l,settled:c,options:s}=r,f=i(e,a,s);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Rn,pending:u||Rn,rejected:l||Rn,settled:c||Rn})}function Rn(){}var wg="task",zd="listener",Fd="completed",wu="cancelled",xg=`task-${wu}`,Pg=`task-${Fd}`,Ro=`${zd}-${wu}`,Og=`${zd}-${Fd}`,Gi=class{constructor(e){this.code=e,this.message=`${wg} ${wu} (reason: ${e})`}name="TaskAbortError";message},xu=(e,t)=>{if(typeof e!="function")throw new TypeError(Ie(32))},li=()=>{},Bd=(e,t=li)=>(e.catch(t),e),Ud=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ut=e=>{if(e.aborted)throw new Gi(e.reason)};function Wd(e,t){let r=li;return new Promise((n,i)=>{const a=()=>i(new Gi(e.reason));if(e.aborted){a();return}r=Ud(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=li})}var _g=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Gi?"cancelled":"rejected",error:r}}finally{t?.()}},ci=e=>t=>Bd(Wd(e,t).then(r=>(Ut(e),r))),Kd=e=>{const t=ci(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:hr}=Object,bc={},Yi="listenerMiddleware",Sg=(e,t)=>{const r=n=>Ud(e,()=>n.abort(e.reason));return(n,i)=>{xu(n);const a=new AbortController;r(a);const o=_g(async()=>{Ut(e),Ut(a.signal);const u=await n({pause:ci(a.signal),delay:Kd(a.signal),signal:a.signal});return Ut(a.signal),u},()=>a.abort(Pg));return i?.autoJoin&&t.push(o.catch(li)),{result:ci(e)(o),cancel(){a.abort(xg)}}}},Ag=(e,t)=>{const r=async(n,i)=>{Ut(t);let a=()=>{};const u=[new Promise((l,c)=>{let s=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{s(),c()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Wd(t,Promise.race(u));return Ut(t),l}finally{a()}};return(n,i)=>Bd(r(n,i))},qd=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Te(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ie(21));return xu(a),{predicate:i,type:t,effect:a}},Hd=hr(e=>{const{type:t,predicate:r,effect:n}=qd(e);return{id:sg(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ie(22))}}},{withTypes:()=>Hd}),wc=(e,t)=>{const{type:r,effect:n,predicate:i}=qd(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Lo=e=>{e.pending.forEach(t=>{t.abort(Ro)})},Cg=(e,t)=>()=>{for(const r of t.keys())Lo(r);e.clear()},xc=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Gd=hr(Te(`${Yi}/add`),{withTypes:()=>Gd}),Eg=Te(`${Yi}/removeAll`),Yd=hr(Te(`${Yi}/remove`),{withTypes:()=>Yd}),kg=(...e)=>{console.error(`${Yi}/error`,...e)},bn=(e={})=>{const t=new Map,r=new Map,n=v=>{const h=r.get(v)??0;r.set(v,h+1)},i=v=>{const h=r.get(v)??1;h===1?r.delete(v):r.set(v,h-1)},{extra:a,onError:o=kg}=e;xu(o);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),h=>{v.unsubscribe(),h?.cancelActive&&Lo(v)}),l=v=>{const h=wc(t,v)??Hd(v);return u(h)};hr(l,{withTypes:()=>l});const c=v=>{const h=wc(t,v);return h&&(h.unsubscribe(),v.cancelActive&&Lo(h)),!!h};hr(c,{withTypes:()=>c});const s=async(v,h,p,y)=>{const g=new AbortController,w=Ag(l,g.signal),b=[];try{v.pending.add(g),n(v),await Promise.resolve(v.effect(h,hr({},p,{getOriginalState:y,condition:(P,x)=>w(P,x).then(Boolean),take:w,delay:Kd(g.signal),pause:ci(g.signal),extra:a,signal:g.signal,fork:Sg(g.signal,b),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((P,x,O)=>{P!==g&&(P.abort(Ro),O.delete(P))})},cancel:()=>{g.abort(Ro),v.pending.delete(g)},throwIfCancelled:()=>{Ut(g.signal)}})))}catch(P){P instanceof Gi||xc(o,P,{raisedBy:"effect"})}finally{await Promise.all(b),g.abort(Og),i(v),v.pending.delete(g)}},f=Cg(t,r);return{middleware:v=>h=>p=>{if(!Od(p))return h(p);if(Gd.match(p))return l(p.payload);if(Eg.match(p)){f();return}if(Yd.match(p))return c(p.payload);let y=v.getState();const g=()=>{if(y===bc)throw new Error(Ie(23));return y};let w;try{if(w=h(p),t.size>0){const b=v.getState(),P=Array.from(t.values());for(const x of P){let O=!1;try{O=x.predicate(p,b,y)}catch(S){O=!1,xc(o,S,{raisedBy:"predicate"})}O&&s(x,p,v,g)}}}finally{y=bc}return w},startListening:l,stopListening:c,clearListeners:f}};function Ie(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Mg={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Vd=ge({name:"chartLayout",initialState:Mg,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Ig,setLayout:Tg,setChartSize:Dg,setScale:jg}=Vd.actions,Ng=Vd.reducer;function Xd(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function z(e){return Number.isFinite(e)}function et(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Pc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pc(Object(r),!0).forEach(function(n){$g(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $g(e,t,r){return(t=Rg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rg(e){var t=Lg(e,"string");return typeof t=="symbol"?t:t+""}function Lg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fe(e,t,r){return de(e)||de(t)?r:wr(t)?br(e,t,r):typeof t=="function"?t(e):r}var zg=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&N(e[a]))return dr(dr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&N(e[o]))return dr(dr({},e),{},{[o]:e[o]+(i||0)})}return e},At=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Zd=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Qd=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:c,tickCount:s,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var h=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,p=i==="category"&&o.bandwidth?o.bandwidth()/h:0;if(p=v==="angleAxis"&&a&&a.length>=2?Ve(a[0]-a[1])*2*p:p,f||d){var y=(f||d||[]).map((g,w)=>{var b=n?n.indexOf(g):g,P=o.map(b);return z(P)?{coordinate:P+p,value:g,offset:p,index:w}:null}).filter(Se);return y}return l&&c?c.map((g,w)=>{var b=o.map(g);return z(b)?{coordinate:b+p,value:g,index:w,offset:p}:null}).filter(Se):o.ticks&&s!=null?o.ticks(s).map((g,w)=>{var b=o.map(g);return z(b)?{coordinate:b+p,value:g,index:w,offset:p}:null}).filter(Se):o.domain().map((g,w)=>{var b=o.map(g);return z(b)?{coordinate:b+p,value:n?n[g]:g,index:w,offset:p}:null}).filter(Se)},ak=(e,t)=>{if(!t||t.length!==2||!N(t[0])||!N(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!N(e[0])||e[0]<r)&&(i[0]=r),(!N(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},Fg=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,u=0;u<r;++u){var l=e[u],c=l?.[i];if(c!=null){var s=c[1],f=c[0],d=st(s)?f:s;d>=0?(c[0]=a,a+=d,c[1]=a):(c[0]=o,o+=d,c[1]=o)}}}},Bg=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var u=e[o],l=u?.[i];if(l!=null){var c=st(l[1])?l[0]:l[1];c>=0?(l[0]=a,a+=c,l[1]=a):(l[0]=0,l[1]=0)}}}},Ug={sign:Fg,expand:Hm,none:Ht,silhouette:Gm,wiggle:Ym,positive:Bg},Wg=(e,t,r)=>{var n,i=(n=Ug[r])!==null&&n!==void 0?n:Ht,a=qm().keys(t).value((u,l)=>Number(fe(u,l,0))).order(Eo).offset(i),o=a(e);return o.forEach((u,l)=>{u.forEach((c,s)=>{var f=fe(e[s],t[l],0);Array.isArray(f)&&f.length===2&&N(f[0])&&N(f[1])&&(c[0]=f[0],c[1]=f[1])})}),o};function ok(e){return e==null?void 0:String(e)}function uk(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!de(i[t.dataKey])){var u=md(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var l=fe(i,de(o)?t.dataKey:o),c=t.scale.map(l);return N(c)?c:null}var lk=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=fe(a,t.dataKey,t.scale.domain()[o]);if(de(u))return null;var l=t.scale.map(u);return N(l)?l-i/2+n:null},ck=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},Kg=e=>{var t=e.flat(2).filter(N);return[Math.min(...t),Math.max(...t)]},qg=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Hg=(e,t,r)=>{if(e!=null)return qg(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((l,c)=>{var s=Xd(c,t,r),f=Kg(s);return!z(f[0])||!z(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},Oc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_c=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sk=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=pu(t,s=>s.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],c=i[o-1];a=Math.min((l?.coordinate||0)-(c?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function Sc(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return dr(dr({},t),{},{dataKey:r,payload:n,value:i,name:a})}function fk(e,t){if(e)return String(e);if(typeof t=="string")return t}var Gg=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Yg=(e,t)=>t==="centric"?e.angle:e.radius,pt=e=>e.layout.width,mt=e=>e.layout.height,Vg=e=>e.layout.scale,Jd=e=>e.layout.margin,Vi=_(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Xi=_(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Xg="data-recharts-item-index",Zg="data-recharts-item-id",wn=60;function Ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ln(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ac(Object(r),!0).forEach(function(n){Qg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ac(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qg(e,t,r){return(t=Jg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jg(e){var t=e0(e,"string");return typeof t=="symbol"?t:t+""}function e0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t0=e=>e.brush.height;function r0(e){var t=Xi(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:wn;return r+i}return r},0)}function n0(e){var t=Xi(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:wn;return r+i}return r},0)}function i0(e){var t=Vi(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function a0(e){var t=Vi(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ve=_([pt,mt,Jd,t0,r0,n0,i0,a0,wd,jy],(e,t,r,n,i,a,o,u,l,c)=>{var s={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=Ln(Ln({},f),s),v=d.bottom;d.bottom+=n,d=zg(d,l,c);var h=e-d.left-d.right,p=t-d.top-d.bottom;return Ln(Ln({brushBottom:v},d),{},{width:Math.max(h,0),height:Math.max(p,0)})}),o0=_(ve,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),u0=_(pt,mt,(e,t)=>({x:0,y:0,width:e,height:t})),l0=m.createContext(null),qe=()=>m.useContext(l0)!=null,Zi=e=>e.brush,Qi=_([Zi,ve,Jd],(e,t,r)=>({height:e.height,x:N(e.x)?e.x:t.left,y:N(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:N(e.width)?e.width:t.width})),Ga={},Ya={},Va={},Cc;function c0(){return Cc||(Cc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const l=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),s=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{c&&s(),p()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},h=()=>{d!==null&&(clearTimeout(d),d=null)},p=()=>{h(),o=void 0,u=null},y=()=>{s()},g=function(...w){if(i?.aborted)return;o=this,u=w;const b=d==null;v(),l&&b&&s()};return g.schedule=v,g.cancel=p,g.flush=y,i?.addEventListener("abort",p,{once:!0}),g}e.debounce=t})(Va)),Va}var Ec;function s0(){return Ec||(Ec=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=c0();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:l}=a,c=Array(2);o&&(c[0]="leading"),u&&(c[1]="trailing");let s,f=null;const d=t.debounce(function(...p){s=n.apply(this,p),f=null},i,{edges:c}),v=function(...p){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(s=n.apply(this,p),f=Date.now(),d.cancel(),d.schedule(),s):(d.apply(this,p),s)},h=()=>(d.flush(),s);return v.cancel=d.cancel,v.flush=h,v}e.debounce=r})(Ya)),Ya}var kc;function f0(){return kc||(kc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=s0();function r(n,i=0,a={}){const{leading:o=!0,trailing:u=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:u})}e.throttle=r})(Ga)),Ga}var Xa,Mc;function d0(){return Mc||(Mc=1,Xa=f0().throttle),Xa}var v0=d0();const h0=mn(v0);var si=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},Xe={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ev=(e,t,r)=>{var{width:n=Xe.width,height:i=Xe.height,aspect:a,maxHeight:o}=r,u=Gt(n)?e:Number(n),l=Gt(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},p0={width:0,height:0,overflow:"visible"},m0={width:0,overflowX:"visible"},y0={height:0,overflowY:"visible"},g0={},b0=e=>{var{width:t,height:r}=e,n=Gt(t),i=Gt(r);return n&&i?p0:n?m0:i?y0:g0};function w0(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=Xe.width,a=Xe.height):i===void 0?i=n&&n>0?void 0:Xe.width:a===void 0&&(a=n&&n>0?void 0:Xe.height),{width:i,height:a}}function zo(){return zo=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},zo.apply(null,arguments)}function Ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ic(Object(r),!0).forEach(function(n){x0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x0(e,t,r){return(t=P0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P0(e){var t=O0(e,"string");return typeof t=="symbol"?t:t+""}function O0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tv=m.createContext(Xe.initialDimension);function _0(e){return et(e.width)&&et(e.height)}function rv(e){var{children:t,width:r,height:n}=e,i=m.useMemo(()=>({width:r,height:n}),[r,n]);return _0(i)?m.createElement(tv.Provider,{value:i},t):null}var Pu=()=>m.useContext(tv),S0=m.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Xe.initialDimension,width:i,height:a,minWidth:o=Xe.minWidth,minHeight:u,maxHeight:l,children:c,debounce:s=Xe.debounce,id:f,className:d,onResize:v,style:h={}}=e,p=m.useRef(null),y=m.useRef();y.current=v,m.useImperativeHandle(t,()=>p.current);var[g,w]=m.useState({containerWidth:n.width,containerHeight:n.height}),b=m.useCallback((E,T)=>{w(D=>{var j=Math.round(E),A=Math.round(T);return D.containerWidth===j&&D.containerHeight===A?D:{containerWidth:j,containerHeight:A}})},[]);m.useEffect(()=>{if(p.current==null||typeof ResizeObserver>"u")return yn;var E=A=>{var B,U=A[0];if(U!=null){var{width:re,height:Oe}=U.contentRect;b(re,Oe),(B=y.current)===null||B===void 0||B.call(y,re,Oe)}};s>0&&(E=h0(E,s,{trailing:!0,leading:!1}));var T=new ResizeObserver(E),{width:D,height:j}=p.current.getBoundingClientRect();return b(D,j),T.observe(p.current),()=>{T.disconnect()}},[b,s]);var{containerWidth:P,containerHeight:x}=g;si(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=ev(P,x,{width:i,height:a,aspect:r,maxHeight:l});return si(O!=null&&O>0||S!=null&&S>0,`The width(%s) and height(%s) of chart should be greater than 0,
2
2
  please check the style of container, or the props width(%s) and height(%s),
3
3
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
4
4
  height and width.`,O,S,i,a,o,u,r),m.createElement("div",{id:f?"".concat(f):void 0,className:ye("recharts-responsive-container",d),style:Tc(Tc({},h),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:l}),ref:p},m.createElement("div",{style:b0({width:i,height:a})},m.createElement(rv,{width:O,height:S},c)))}),dk=m.forwardRef((e,t)=>{var r=Pu();if(et(r.width)&&et(r.height))return e.children;var{width:n,height:i}=w0({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=ev(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return N(a)&&N(o)?m.createElement(rv,{width:a,height:o},e.children):m.createElement(S0,zo({},e,{width:n,height:i,ref:t}))});function Ou(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var _u=()=>{var e,t=qe(),r=$(o0),n=$(Qi),i=(e=$(Zi))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},A0={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},C0=()=>{var e;return(e=$(ve))!==null&&e!==void 0?e:A0},nv=()=>$(pt),iv=()=>$(mt),X=e=>e.layout.layoutType,Ji=()=>$(X),E0=()=>{var e=Ji();if(e==="horizontal"||e==="vertical")return e},av=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},k0=()=>{var e=Ji();return e!==void 0},xn=e=>{var t=ie(),r=qe(),{width:n,height:i}=e,a=Pu(),o=n,u=i;return a&&(o=a.width>0?a.width:n,u=a.height>0?a.height:i),m.useEffect(()=>{!r&&et(o)&&et(u)&&t(Dg({width:o,height:u}))},[t,r,o,u]),null},ov=Symbol.for("immer-nothing"),Dc=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function Ue(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var nn=Object.getPrototypeOf;function Pr(e){return!!e&&!!e[De]}function Xt(e){return e?uv(e)||Array.isArray(e)||!!e[Dc]||!!e.constructor?.[Dc]||Pn(e)||ta(e):!1}var M0=Object.prototype.constructor.toString(),jc=new WeakMap;function uv(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=jc.get(r);return n===void 0&&(n=Function.toString.call(r),jc.set(r,n)),n===M0}function fi(e,t,r=!0){ea(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function ea(e){const t=e[De];return t?t.type_:Array.isArray(e)?1:Pn(e)?2:ta(e)?3:0}function Fo(e,t){return ea(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function lv(e,t,r){const n=ea(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function I0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pn(e){return e instanceof Map}function ta(e){return e instanceof Set}function Rt(e){return e.copy_||e.base_}function Bo(e,t){if(Pn(e))return new Map(e);if(ta(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=uv(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[De];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(nn(e),n)}else{const n=nn(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Su(e,t=!1){return ra(e)||Pr(e)||!Xt(e)||(ea(e)>1&&Object.defineProperties(e,{set:zn,add:zn,clear:zn,delete:zn}),Object.freeze(e),t&&Object.values(e).forEach(r=>Su(r,!0))),e}function T0(){Ue(2)}var zn={value:T0};function ra(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var D0={};function Zt(e){const t=D0[e];return t||Ue(0,e),t}var an;function cv(){return an}function j0(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Nc(e,t){t&&(Zt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Uo(e){Wo(e),e.drafts_.forEach(N0),e.drafts_=null}function Wo(e){e===an&&(an=e.parent_)}function $c(e){return an=j0(an,e)}function N0(e){const t=e[De];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Rc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[De].modified_&&(Uo(t),Ue(4)),Xt(e)&&(e=di(t,e),t.parent_||vi(t,e)),t.patches_&&Zt("Patches").generateReplacementPatches_(r[De].base_,e,t.patches_,t.inversePatches_)):e=di(t,r,[]),Uo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ov?e:void 0}function di(e,t,r){if(ra(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[De];if(!i)return fi(t,(a,o)=>Lc(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return vi(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,u=!1;i.type_===3&&(o=new Set(a),a.clear(),u=!0),fi(o,(l,c)=>Lc(e,i,a,l,c,r,u),n),vi(e,a,!1),r&&e.patches_&&Zt("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function Lc(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const u=ra(i);if(!(u&&!o)){if(Pr(i)){const l=a&&t&&t.type_!==3&&!Fo(t.assigned_,n)?a.concat(n):void 0,c=di(e,i,l);if(lv(r,n,c),Pr(c))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Xt(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;di(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Pn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&vi(e,i)}}}function vi(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Su(t,r)}function $0(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:cv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Au;r&&(i=[n],a=on);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var Au={get(e,t){if(t===De)return e;const r=Rt(e);if(!Fo(r,t))return R0(e,r,t);const n=r[t];return e.finalized_||!Xt(n)?n:n===Za(e.base_,t)?(Qa(e),e.copy_[t]=qo(n,e)):n},has(e,t){return t in Rt(e)},ownKeys(e){return Reflect.ownKeys(Rt(e))},set(e,t,r){const n=sv(Rt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Za(Rt(e),t),a=i?.[De];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(I0(r,i)&&(r!==void 0||Fo(e.base_,t)))return!0;Qa(e),Ko(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Za(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Qa(e),Ko(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Rt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Ue(11)},getPrototypeOf(e){return nn(e.base_)},setPrototypeOf(){Ue(12)}},on={};fi(Au,(e,t)=>{on[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});on.deleteProperty=function(e,t){return on.set.call(this,e,t,void 0)};on.set=function(e,t,r){return Au.set.call(this,e[0],t,r,e[0])};function Za(e,t){const r=e[De];return(r?Rt(r):e)[t]}function R0(e,t,r){const n=sv(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function sv(e,t){if(!(t in e))return;let r=nn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=nn(r)}}function Ko(e){e.modified_||(e.modified_=!0,e.parent_&&Ko(e.parent_))}function Qa(e){e.copy_||(e.copy_=Bo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var L0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...c){return o.produce(l,s=>r.call(this,s,...c))}}typeof r!="function"&&Ue(6),n!==void 0&&typeof n!="function"&&Ue(7);let i;if(Xt(t)){const a=$c(this),o=qo(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?Uo(a):Wo(a)}return Nc(a,n),Rc(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===ov&&(i=void 0),this.autoFreeze_&&Su(i,!0),n){const a=[],o=[];Zt("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Ue(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,l=>t(l,...u));let n,i;return[this.produce(t,r,(o,u)=>{n=o,i=u}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Xt(e)||Ue(8),Pr(e)&&(e=z0(e));const t=$c(this),r=qo(e,void 0);return r[De].isManual_=!0,Wo(t),r}finishDraft(e,t){const r=e&&e[De];(!r||!r.isManual_)&&Ue(9);const{scope_:n}=r;return Nc(n,t),Rc(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Zt("Patches").applyPatches_;return Pr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function qo(e,t){const r=Pn(e)?Zt("MapSet").proxyMap_(e,t):ta(e)?Zt("MapSet").proxySet_(e,t):$0(e,t);return(t?t.scope_:cv()).drafts_.push(r),r}function z0(e){return Pr(e)||Ue(10,e),fv(e)}function fv(e){if(!Xt(e)||ra(e))return e;const t=e[De];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Bo(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Bo(e,!0);return fi(r,(i,a)=>{lv(r,i,fv(a))},n),t&&(t.finalized_=!1),r}var F0=new L0;F0.produce;var B0={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},dv=ge({name:"legend",initialState:B0,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:q()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Ne(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:q()},removeLegendPayload:{reducer(e,t){var r=Ne(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:q()}}}),{setLegendSize:vk,setLegendSettings:hk,addLegendPayload:U0,replaceLegendPayload:W0,removeLegendPayload:K0}=dv.actions,q0=dv.reducer,Ja={exports:{}},eo={};var zc;function H0(){if(zc)return eo;zc=1;var e=vm();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,u=e.useDebugValue;return eo.useSyncExternalStoreWithSelector=function(l,c,s,f,d){var v=i(null);if(v.current===null){var h={hasValue:!1,value:null};v.current=h}else h=v.current;v=o(function(){function y(x){if(!g){if(g=!0,w=x,x=f(x),d!==void 0&&h.hasValue){var O=h.value;if(d(O,x))return b=O}return b=x}if(O=b,r(w,x))return O;var S=f(x);return d!==void 0&&d(O,S)?(w=x,O):(w=x,b=S)}var g=!1,w,b,P=s===void 0?null:s;return[function(){return y(c())},P===null?void 0:function(){return y(P())}]},[c,s,f,d]);var p=n(l,v[0],v[1]);return a(function(){h.hasValue=!0,h.value=p},[p]),u(p),p},eo}var Fc;function G0(){return Fc||(Fc=1,Ja.exports=H0()),Ja.exports}G0();function Y0(e){e()}function V0(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Y0(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Bc={notify(){},get:()=>[]};function X0(e,t){let r,n=Bc,i=0,a=!1;function o(p){s();const y=n.subscribe(p);let g=!1;return()=>{g||(g=!0,y(),f())}}function u(){n.notify()}function l(){h.onStateChange&&h.onStateChange()}function c(){return a}function s(){i++,r||(r=e.subscribe(l),n=V0())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Bc)}function d(){a||(a=!0,s())}function v(){a&&(a=!1,f())}const h={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>n};return h}var Z0=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q0=Z0(),J0=()=>typeof navigator<"u"&&navigator.product==="ReactNative",eb=J0(),tb=()=>Q0||eb?m.useLayoutEffect:m.useEffect,rb=tb();function Uc(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function nb(e,t){if(Uc(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!Uc(e[r[i]],t[r[i]]))return!1;return!0}var ib=Symbol.for("react-redux-context"),ab=typeof globalThis<"u"?globalThis:{};function ob(){if(!m.createContext)return{};const e=ab[ib]??=new Map;let t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}var ub=ob();function lb(e){const{children:t,context:r,serverState:n,store:i}=e,a=m.useMemo(()=>{const l=X0(i);return{store:i,subscription:l,getServerState:n?()=>n:void 0}},[i,n]),o=m.useMemo(()=>i.getState(),[i]);rb(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const u=r||ub;return m.createElement(u.Provider,{value:a},t)}var cb=lb,sb=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function fb(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Cu(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(sb.has(n)){if(e[n]==null&&t[n]==null)continue;if(!nb(e[n],t[n]))return!1}else if(!fb(e[n],t[n]))return!1;return!0}var db=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),On={isSsr:db()};function vb(){var[e,t]=m.useState(()=>On.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return m.useEffect(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}var hb=()=>{var e;return(e=$(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Ho(){return Ho=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},Ho.apply(null,arguments)}function Wc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wc(Object(r),!0).forEach(function(n){pb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pb(e,t,r){return(t=mb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mb(e){var t=yb(e,"string");return typeof t=="symbol"?t:t+""}function yb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qc={curveBasisClosed:jm,curveBasisOpen:Nm,curveBasis:Dm,curveBumpX:Im,curveBumpY:Tm,curveLinearClosed:$m,curveLinear:Li,curveMonotoneX:Rm,curveMonotoneY:Lm,curveNatural:zm,curveStep:Fm,curveStepAfter:Um,curveStepBefore:Bm},hi=e=>z(e.x)&&z(e.y),Hc=e=>e.base!=null&&hi(e.base)&&hi(e),Fr=e=>e.x,Br=e=>e.y,gb=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(du(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=qc["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return qc[r]||Li},Gc={connectNulls:!1,type:"linear"},bb=e=>{var{type:t=Gc.type,points:r=[],baseLine:n,layout:i,connectNulls:a=Gc.connectNulls}=e,o=gb(t,i),u=a?r.filter(hi):r;if(Array.isArray(n)){var l,c=r.map((h,p)=>Kc(Kc({},h),{},{base:n[p]}));i==="vertical"?l=Dn().y(Br).x1(Fr).x0(h=>h.base.x):l=Dn().x(Fr).y1(Br).y0(h=>h.base.y);var s=l.defined(Hc).curve(o),f=a?c.filter(Hc):c;return s(f)}var d;i==="vertical"&&N(n)?d=Dn().y(Br).x1(Fr).x0(n):N(n)?d=Dn().x(Fr).y1(Br).y0(n):d=nd().x(Fr).y(Br);var v=d.defined(hi).curve(o);return v(u)},pk=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=Ji();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},u=r&&r.length?bb(o):n;return m.createElement("path",Ho({},ct(e),vu(e),{className:ye("recharts-curve",t),d:u===null?void 0:u,ref:i}))};function Yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yc(Object(r),!0).forEach(function(n){wb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wb(e,t,r){return(t=xb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xb(e){var t=Pb(e,"string");return typeof t=="symbol"?t:t+""}function Pb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ob=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),mk=(e,t,r)=>e.map(n=>"".concat(Ob(n)," ").concat(t,"ms ").concat(r)).join(","),_b=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),un=(e,t)=>Object.keys(t).reduce((r,n)=>Vc(Vc({},r),{},{[n]:e(n,t[n])}),{});function Xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xc(Object(r),!0).forEach(function(n){Sb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sb(e,t,r){return(t=Ab(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ab(e){var t=Cb(e,"string");return typeof t=="symbol"?t:t+""}function Cb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pi=(e,t,r)=>e+(t-e)*r,Go=e=>{var{from:t,to:r}=e;return t!==r},vv=(e,t,r)=>{var n=un((i,a)=>{if(Go(a)){var[o,u]=e(a.from,a.to,a.velocity);return ee(ee({},a),{},{from:o,velocity:u})}return a},t);return r<1?un((i,a)=>Go(a)&&n[i]!=null?ee(ee({},a),{},{velocity:pi(a.velocity,n[i].velocity,r),from:pi(a.from,n[i].from,r)}):a,t):vv(e,n,r-1)};function Eb(e,t,r,n,i,a){var o,u=n.reduce((d,v)=>ee(ee({},d),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>un((d,v)=>v.from,u),c=()=>!Object.values(u).filter(Go).length,s=null,f=d=>{o||(o=d);var v=d-o,h=v/r.dt;u=vv(r,u,h),i(ee(ee(ee({},e),t),l())),o=d,c()||(s=a.setTimeout(f))};return()=>(s=a.setTimeout(f),()=>{var d;(d=s)===null||d===void 0||d()})}function kb(e,t,r,n,i,a,o){var u=null,l=i.reduce((f,d)=>{var v=e[d],h=t[d];return v==null||h==null?f:ee(ee({},f),{},{[d]:[v,h]})},{}),c,s=f=>{c||(c=f);var d=(f-c)/n,v=un((p,y)=>pi(...y,r(d)),l);if(a(ee(ee(ee({},e),t),v)),d<1)u=o.setTimeout(s);else{var h=un((p,y)=>pi(...y,r(1)),l);a(ee(ee(ee({},e),t),h))}};return()=>(u=o.setTimeout(s),()=>{var f;(f=u)===null||f===void 0||f()})}const Mb=(e,t,r,n,i,a)=>{var o=_b(e,t);return r==null?()=>(i(ee(ee({},e),t)),()=>{}):r.isStepper===!0?Eb(e,t,r,o,i,a):kb(e,t,r,n,o,i,a)};var mi=1e-4,hv=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],pv=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Zc=(e,t)=>r=>{var n=hv(e,t);return pv(n,r)},Ib=(e,t)=>r=>{var n=hv(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return pv(i,r)},Tb=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},Db=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=Tb(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},jb=(e,t,r,n)=>{var i=Zc(e,r),a=Zc(t,n),o=Ib(e,r),u=c=>c>1?1:c<0?0:c,l=c=>{for(var s=c>1?1:c,f=s,d=0;d<8;++d){var v=i(f)-s,h=o(f);if(Math.abs(v-s)<mi||h<mi)return a(f);f=u(f-v/h)}return a(f)};return l.isStepper=!1,l},Qc=function(){return jb(...Db(...arguments))},Nb=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,u,l)=>{var c=-(o-u)*r,s=l*n,f=l+(c-s)*i/1e3,d=l*i/1e3+o;return Math.abs(d-u)<mi&&Math.abs(f)<mi?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},$b=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Qc(e);case"spring":return Nb();default:if(e.split("(")[0]==="cubic-bezier")return Qc(e)}return typeof e=="function"?e:null};function Rb(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[l,...c]=u;if(typeof l=="number"){i=e.setTimeout(a.bind(null,c),l);return}a(l),i=e.setTimeout(a.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class Lb{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function zb(){return Rb(new Lb)}var Fb=m.createContext(zb);function Bb(e,t){var r=m.useContext(Fb);return m.useMemo(()=>t??r(e),[e,t,r])}var Ub={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Jc={t:0},to={t:1};function yk(e){var t=tr(e,Ub),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:l,children:c}=t,s=vb(),f=r==="auto"?!On.isSsr&&!s:r,d=Bb(t.animationId,t.animationManager),[v,h]=m.useState(f?Jc:to),p=m.useRef(null);return m.useEffect(()=>{f||h(to)},[f]),m.useEffect(()=>{if(!f||!n)return yn;var y=Mb(Jc,to,$b(a),i,h,d.getTimeoutController()),g=()=>{p.current=y()};return d.start([l,o,g,i,u]),()=>{d.stop(),p.current&&p.current(),u()}},[f,n,i,a,o,l,u,d]),c(v.t)}function gk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=m.useRef(Jr(t)),n=m.useRef(e);return n.current!==e&&(r.current=Jr(t),n.current=e),r.current}function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?es(Object(r),!0).forEach(function(n){Wb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wb(e,t,r){return(t=Kb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kb(e){var t=qb(e,"string");return typeof t=="symbol"?t:t+""}function qb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rs=Math.PI/180,Hb=e=>e*180/Math.PI,Or=(e,t,r,n)=>({x:e+Math.cos(-rs*n)*r,y:t+Math.sin(-rs*n)*r}),Gb=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Yb=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},Vb=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=Yb({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,l=Math.acos(u);return n>a&&(l=2*Math.PI-l),{radius:o,angle:Hb(l),angleInRadian:l}},Xb=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},Zb=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},Qb=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:a}=Vb({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:l,endAngle:c}=Xb(t),s=a,f;if(l<=c){for(;s>c;)s-=360;for(;s<l;)s+=360;f=s>=l&&s<=c}else{for(;s>l;)s-=360;for(;s<c;)s+=360;f=s>=c&&s<=l}return f?ts(ts({},t),{},{radius:i,angle:Zb(s,t)}):null},ro={},no={},io={},ns;function Jb(){return ns||(ns=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gd();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(io)),io}var is;function ew(){return is||(is=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jb();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(no)),no}var as;function tw(){return as||(as=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bd(),r=ew();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const u=Math.max(Math.ceil((a-i)/(o||1)),0),l=new Array(u);for(let c=0;c<u;c++)l[c]=i,i+=o;return l}e.range=n})(ro)),ro}var ao,os;function rw(){return os||(os=1,ao=tw().range),ao}var nw=rw();const mv=mn(nw);var He=e=>e.chartData,Eu=_([He],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),na=(e,t,r,n)=>n?Eu(e):He(e),bk=(e,t,r)=>r?Eu(e):He(e),iw=_([na],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});_([Eu],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});var aw=_([He],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});function Qe(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(z(t)&&z(r))return!0}return!1}function us(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function yv(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(z(r))i=r;else if(typeof r=="function")return;if(z(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Qe(o))return o}}function ow(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Qe(n))return us(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,u;if(i==="auto")t!=null&&(o=Math.min(...t));else if(N(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&Oc.test(i)){var l=Oc.exec(i);if(l==null||l[1]==null||t==null)o=void 0;else{var c=+l[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(N(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t?.[1]))}catch{}else if(typeof a=="string"&&_c.test(a)){var s=_c.exec(a);if(s==null||s[1]==null||t==null)u=void 0;else{var f=+s[1];u=t[1]+f}}else u=t?.[1];var d=[o,u];if(Qe(d))return t==null?d:us(d,t,r)}}}var kr=1e9,uw={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Mu,G=!0,Re="[DecimalError] ",Wt=Re+"Invalid argument: ",ku=Re+"Exponent out of range: ",Mr=Math.floor,Lt=Math.pow,lw=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ke,ne=1e7,H=7,gv=9007199254740991,yi=Mr(gv/H),M={};M.absoluteValue=M.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};M.comparedTo=M.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};M.decimalPlaces=M.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*H;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};M.dividedBy=M.div=function(e){return lt(this,new this.constructor(e))};M.dividedToIntegerBy=M.idiv=function(e){var t=this,r=t.constructor;return W(lt(t,new r(e),0,1),r.precision)};M.equals=M.eq=function(e){return!this.cmp(e)};M.exponent=function(){return Z(this)};M.greaterThan=M.gt=function(e){return this.cmp(e)>0};M.greaterThanOrEqualTo=M.gte=function(e){return this.cmp(e)>=0};M.isInteger=M.isint=function(){return this.e>this.d.length-2};M.isNegative=M.isneg=function(){return this.s<0};M.isPositive=M.ispos=function(){return this.s>0};M.isZero=function(){return this.s===0};M.lessThan=M.lt=function(e){return this.cmp(e)<0};M.lessThanOrEqualTo=M.lte=function(e){return this.cmp(e)<1};M.logarithm=M.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ke))throw Error(Re+"NaN");if(r.s<1)throw Error(Re+(r.s?"NaN":"-Infinity"));return r.eq(ke)?new n(0):(G=!1,t=lt(ln(r,a),ln(e,a),a),G=!0,W(t,i))};M.minus=M.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xv(t,e):bv(t,(e.s=-e.s,e))};M.modulo=M.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Re+"NaN");return r.s?(G=!1,t=lt(r,e,0,1).times(e),G=!0,r.minus(t)):W(new n(r),i)};M.naturalExponential=M.exp=function(){return wv(this)};M.naturalLogarithm=M.ln=function(){return ln(this)};M.negated=M.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};M.plus=M.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?bv(t,e):xv(t,(e.s=-e.s,e))};M.precision=M.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wt+e);if(t=Z(i)+1,n=i.d.length-1,r=n*H+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};M.squareRoot=M.sqrt=function(){var e,t,r,n,i,a,o,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(Re+"NaN")}for(e=Z(u),G=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Ze(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Mr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(lt(u,a,o+2)).times(.5),Ze(a.d).slice(0,o)===(t=Ze(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(W(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return G=!0,W(n,r)};M.times=M.mul=function(e){var t,r,n,i,a,o,u,l,c,s=this,f=s.constructor,d=s.d,v=(e=new f(e)).d;if(!s.s||!e.s)return new f(0);for(e.s*=s.s,r=s.e+e.e,l=d.length,c=v.length,l<c&&(a=d,d=v,v=a,o=l,l=c,c=o),a=[],o=l+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)u=a[i]+v[n]*d[i-n-1]+t,a[i--]=u%ne|0,t=u/ne|0;a[i]=(a[i]+t)%ne|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,G?W(e,f.precision):e};M.toDecimalPlaces=M.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(tt(e,0,kr),t===void 0?t=n.rounding:tt(t,0,8),W(r,e+Z(r)+1,t))};M.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Qt(n,!0):(tt(e,0,kr),t===void 0?t=i.rounding:tt(t,0,8),n=W(new i(n),e+1,t),r=Qt(n,!0,e+1)),r};M.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Qt(i):(tt(e,0,kr),t===void 0?t=a.rounding:tt(t,0,8),n=W(new a(i),e+Z(i)+1,t),r=Qt(n.abs(),!1,e+Z(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};M.toInteger=M.toint=function(){var e=this,t=e.constructor;return W(new t(e),Z(e)+1,t.rounding)};M.toNumber=function(){return+this};M.toPower=M.pow=function(e){var t,r,n,i,a,o,u=this,l=u.constructor,c=12,s=+(e=new l(e));if(!e.s)return new l(ke);if(u=new l(u),!u.s){if(e.s<1)throw Error(Re+"Infinity");return u}if(u.eq(ke))return u;if(n=l.precision,e.eq(ke))return W(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=s<0?-s:s)<=gv){for(i=new l(ke),t=Math.ceil(n/H+4),G=!1;r%2&&(i=i.times(u),cs(i.d,t)),r=Mr(r/2),r!==0;)u=u.times(u),cs(u.d,t);return G=!0,e.s<0?new l(ke).div(i):W(i,n)}}else if(a<0)throw Error(Re+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,G=!1,i=e.times(ln(u,n+c)),G=!0,i=wv(i),i.s=a,i};M.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Z(i),n=Qt(i,r<=a.toExpNeg||r>=a.toExpPos)):(tt(e,1,kr),t===void 0?t=a.rounding:tt(t,0,8),i=W(new a(i),e,t),r=Z(i),n=Qt(i,e<=r||r<=a.toExpNeg,e)),n};M.toSignificantDigits=M.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(tt(e,1,kr),t===void 0?t=n.rounding:tt(t,0,8)),W(new n(r),e,t)};M.toString=M.valueOf=M.val=M.toJSON=M[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Z(e),r=e.constructor;return Qt(e,t<=r.toExpNeg||t>=r.toExpPos)};function bv(e,t){var r,n,i,a,o,u,l,c,s=e.constructor,f=s.precision;if(!e.s||!t.s)return t.s||(t=new s(e)),G?W(t,f):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,u=c.length):(n=c,i=o,u=l.length),o=Math.ceil(f/H),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=l.length,a=c.length,u-a<0&&(a=u,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/ne|0,l[a]%=ne;for(r&&(l.unshift(r),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,G?W(t,f):t}function tt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Wt+e)}function Ze(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=H-n.length,r&&(a+=xt(r)),a+=n;o=e[t],n=o+"",r=H-n.length,r&&(a+=xt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var lt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%ne|0,o=a/ne|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,l;if(a!=o)l=a>o?1:-1;else for(u=l=0;u<a;u++)if(n[u]!=i[u]){l=n[u]>i[u]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ne+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,l,c,s,f,d,v,h,p,y,g,w,b,P,x,O,S,E,T=n.constructor,D=n.s==i.s?1:-1,j=n.d,A=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Re+"Division by zero");for(l=n.e-i.e,S=A.length,x=j.length,v=new T(D),h=v.d=[],c=0;A[c]==(j[c]||0);)++c;if(A[c]>(j[c]||0)&&--l,a==null?w=a=T.precision:o?w=a+(Z(n)-Z(i))+1:w=a,w<0)return new T(0);if(w=w/H+2|0,c=0,S==1)for(s=0,A=A[0],w++;(c<x||s)&&w--;c++)b=s*ne+(j[c]||0),h[c]=b/A|0,s=b%A|0;else{for(s=ne/(A[0]+1)|0,s>1&&(A=e(A,s),j=e(j,s),S=A.length,x=j.length),P=S,p=j.slice(0,S),y=p.length;y<S;)p[y++]=0;E=A.slice(),E.unshift(0),O=A[0],A[1]>=ne/2&&++O;do s=0,u=t(A,p,S,y),u<0?(g=p[0],S!=y&&(g=g*ne+(p[1]||0)),s=g/O|0,s>1?(s>=ne&&(s=ne-1),f=e(A,s),d=f.length,y=p.length,u=t(f,p,d,y),u==1&&(s--,r(f,S<d?E:A,d))):(s==0&&(u=s=1),f=A.slice()),d=f.length,d<y&&f.unshift(0),r(p,f,y),u==-1&&(y=p.length,u=t(A,p,S,y),u<1&&(s++,r(p,S<y?E:A,y))),y=p.length):u===0&&(s++,p=[0]),h[c++]=s,u&&p[0]?p[y++]=j[P]||0:(p=[j[P]],y=1);while((P++<x||p[0]!==void 0)&&w--)}return h[0]||h.shift(),v.e=l,W(v,o?a+Z(v)+1:a)}})();function wv(e,t){var r,n,i,a,o,u,l=0,c=0,s=e.constructor,f=s.precision;if(Z(e)>16)throw Error(ku+Z(e));if(!e.s)return new s(ke);for(G=!1,u=f,o=new s(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Lt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new s(ke),s.precision=u;;){if(i=W(i.times(e),u),r=r.times(++l),o=a.plus(lt(i,r,u)),Ze(o.d).slice(0,u)===Ze(a.d).slice(0,u)){for(;c--;)a=W(a.times(a),u);return s.precision=f,t==null?(G=!0,W(a,f)):a}a=o}}function Z(e){for(var t=e.e*H,r=e.d[0];r>=10;r/=10)t++;return t}function oo(e,t,r){if(t>e.LN10.sd())throw G=!0,r&&(e.precision=r),Error(Re+"LN10 precision limit exceeded");return W(new e(e.LN10),t)}function xt(e){for(var t="";e--;)t+="0";return t}function ln(e,t){var r,n,i,a,o,u,l,c,s,f=1,d=10,v=e,h=v.d,p=v.constructor,y=p.precision;if(v.s<1)throw Error(Re+(v.s?"NaN":"-Infinity"));if(v.eq(ke))return new p(0);if(t==null?(G=!1,c=y):c=t,v.eq(10))return t==null&&(G=!0),oo(p,c);if(c+=d,p.precision=c,r=Ze(h),n=r.charAt(0),a=Z(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=Ze(v.d),n=r.charAt(0),f++;a=Z(v),n>1?(v=new p("0."+r),a++):v=new p(n+"."+r.slice(1))}else return l=oo(p,c+2,y).times(a+""),v=ln(new p(n+"."+r.slice(1)),c-d).plus(l),p.precision=y,t==null?(G=!0,W(v,y)):v;for(u=o=v=lt(v.minus(ke),v.plus(ke),c),s=W(v.times(v),c),i=3;;){if(o=W(o.times(s),c),l=u.plus(lt(o,new p(i),c)),Ze(l.d).slice(0,c)===Ze(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(oo(p,c+2,y).times(a+""))),u=lt(u,new p(f),c),p.precision=y,t==null?(G=!0,W(u,y)):u;u=l,i+=2}}function ls(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Mr(r/H),e.d=[],n=(r+1)%H,r<0&&(n+=H),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=H;n<i;)e.d.push(+t.slice(n,n+=H));t=t.slice(n),n=H-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),G&&(e.e>yi||e.e<-yi))throw Error(ku+r)}else e.s=0,e.e=0,e.d=[0];return e}function W(e,t,r){var n,i,a,o,u,l,c,s,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=H,i=t,c=f[s=0];else{if(s=Math.ceil((n+1)/H),a=f.length,s>=a)return e;for(c=a=f[s],o=1;a>=10;a/=10)o++;n%=H,i=n-H+o}if(r!==void 0&&(a=Lt(10,o-i-1),u=c/a%10|0,l=t<0||f[s+1]!==void 0||c%a,l=r<4?(u||l)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||l||r==6&&(n>0?i>0?c/Lt(10,o-i):0:f[s-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=Z(e),f.length=1,t=t-a-1,f[0]=Lt(10,(H-t%H)%H),e.e=Mr(-t/H)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=s,a=1,s--):(f.length=s+1,a=Lt(10,H-n),f[s]=i>0?(c/Lt(10,o-i)%Lt(10,i)|0)*a:0),l)for(;;)if(s==0){(f[0]+=a)==ne&&(f[0]=1,++e.e);break}else{if(f[s]+=a,f[s]!=ne)break;f[s--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(G&&(e.e>yi||e.e<-yi))throw Error(ku+Z(e));return e}function xv(e,t){var r,n,i,a,o,u,l,c,s,f,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),G?W(t,v):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(s=o<0,s?(r=l,o=-o,u=f.length):(r=f,n=c,u=l.length),i=Math.max(Math.ceil(v/H),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,u=f.length,s=i<u,s&&(u=i),i=0;i<u;i++)if(l[i]!=f[i]){s=l[i]<f[i];break}o=0}for(s&&(r=l,l=f,f=r,t.s=-t.s),u=l.length,i=f.length-u;i>0;--i)l[u++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=ne-1;--l[a],l[i]+=ne}l[i]-=f[i]}for(;l[--u]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,G?W(t,v):t):new d(0)}function Qt(e,t,r){var n,i=Z(e),a=Ze(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+xt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+xt(-i-1)+a,r&&(n=r-o)>0&&(a+=xt(n))):i>=o?(a+=xt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+xt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=xt(n))),e.s<0?"-"+a:a}function cs(e,t){if(e.length>t)return e.length=t,!0}function Pv(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Wt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return ls(o,a.toString())}else if(typeof a!="string")throw Error(Wt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,lw.test(a))ls(o,a);else throw Error(Wt+a)}if(i.prototype=M,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Pv,i.config=i.set=cw,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function cw(e){if(!e||typeof e!="object")throw Error(Re+"Object expected");var t,r,n,i=["precision",1,kr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Mr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Wt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Wt+r+": "+n);return this}var Mu=Pv(uw);ke=new Mu(1);const R=Mu;function Ov(e){var t;return e===0?t=1:t=Math.floor(new R(e).abs().log(10).toNumber())+1,t}function _v(e,t,r){for(var n=new R(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Sv=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},Iu=(e,t,r)=>{if(e.lte(0))return new R(0);var n=Ov(e.toNumber()),i=new R(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new R(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=u.mul(i);return t?new R(l.toNumber()):new R(Math.ceil(l.toNumber()))},Av=(e,t,r)=>{var n;if(e.lte(0))return new R(0);var i=[1,2,2.5,5],a=e.toNumber(),o=Math.floor(new R(a).abs().log(10).toNumber()),u=new R(10).pow(o),l=e.div(u).toNumber(),c=i.findIndex(v=>v>=l-1e-10);if(c===-1&&(u=u.mul(10),c=0),c+=r,c>=i.length){var s=Math.floor(c/i.length);c%=i.length,u=u.mul(new R(10).pow(s))}var f=(n=i[c])!==null&&n!==void 0?n:1,d=new R(f).mul(u);return t?d:new R(Math.ceil(d.toNumber()))},sw=(e,t,r)=>{var n=new R(1),i=new R(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new R(10).pow(Ov(e)-1),i=new R(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new R(Math.floor(e)))}else e===0?i=new R(Math.floor((t-1)/2)):r||(i=new R(Math.floor(e)));for(var o=Math.floor((t-1)/2),u=[],l=0;l<t;l++)u.push(i.add(new R(l-o).mul(n)).toNumber());return u},Cv=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Iu;if(!Number.isFinite((r-t)/(n-1)))return{step:new R(0),tickMin:new R(0),tickMax:new R(0)};var u=o(new R(r).sub(t).div(n-1),i,a),l;t<=0&&r>=0?l=new R(0):(l=new R(t).add(r).div(2),l=l.sub(new R(l).mod(u)));var c=Math.ceil(l.sub(t).div(u).toNumber()),s=Math.ceil(new R(r).sub(l).div(u).toNumber()),f=c+s+1;return f>n?Cv(t,r,n,i,a+1,o):(f<n&&(s=r>0?s+(n-f):s,c=r>0?c:c+(n-f)),{step:u,tickMin:l.sub(new R(c).mul(u)),tickMax:l.add(new R(s).mul(u))})},ss=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(i,2),[l,c]=Sv([r,n]);if(l===-1/0||c===1/0){var s=c===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),c];return r>n?s.reverse():s}if(l===c)return sw(l,i,a);var f=o==="snap125"?Av:Iu,{step:d,tickMin:v,tickMax:h}=Cv(l,c,u,a,0,f),p=_v(v,h.add(new R(.1).mul(d)),d);return r>n?p.reverse():p},fs=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,l]=Sv([n,i]);if(u===-1/0||l===1/0)return[n,i];if(u===l)return[u];var c=o==="snap125"?Av:Iu,s=Math.max(r,2),f=c(new R(l).sub(u).div(s-1),a,0),d=[..._v(new R(u),new R(l),f),l];return a===!1&&(d=d.map(v=>Math.round(v))),n>i?d.reverse():d},wk=e=>e.rootProps.maxBarSize,xk=e=>e.rootProps.barGap,fw=e=>e.rootProps.barCategoryGap,Pk=e=>e.rootProps.barSize,ia=e=>e.rootProps.stackOffset,Ev=e=>e.rootProps.reverseStackOrder,Tu=e=>e.options.chartName,Du=e=>e.rootProps.syncId,kv=e=>e.rootProps.syncMethod,ju=e=>e.options.eventEmitter,Ok=e=>e.rootProps.baseValue,nt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Tt={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Ge={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},aa=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Nu(e,t,r){if(r!=="auto")return r;if(e!=null)return At(e,t)?"category":"number"}function ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ds(Object(r),!0).forEach(function(n){dw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dw(e,t,r){return(t=vw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vw(e){var t=hw(e,"string");return typeof t=="symbol"?t:t+""}function hw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vs={allowDataOverflow:Tt.allowDataOverflow,allowDecimals:Tt.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Tt.angleAxisId,includeHidden:!1,name:void 0,reversed:Tt.reversed,scale:Tt.scale,tick:Tt.tick,tickCount:void 0,ticks:void 0,type:Tt.type,unit:void 0,niceTicks:"auto"},hs={allowDataOverflow:Ge.allowDataOverflow,allowDecimals:Ge.allowDecimals,allowDuplicatedCategory:Ge.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ge.radiusAxisId,includeHidden:Ge.includeHidden,name:void 0,reversed:Ge.reversed,scale:Ge.scale,tick:Ge.tick,tickCount:Ge.tickCount,ticks:void 0,type:Ge.type,unit:void 0,niceTicks:"auto"},pw=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},$u=_([pw,av],(e,t)=>{var r;if(e!=null)return e;var n=(r=Nu(t,"angleAxis",vs.type))!==null&&r!==void 0?r:"category";return gi(gi({},vs),{},{type:n})}),mw=(e,t)=>e.polarAxis.radiusAxis[t],Ru=_([mw,av],(e,t)=>{var r;if(e!=null)return e;var n=(r=Nu(t,"radiusAxis",hs.type))!==null&&r!==void 0?r:"category";return gi(gi({},hs),{},{type:n})}),oa=e=>e.polarOptions,Lu=_([pt,mt,ve],Gb),Mv=_([oa,Lu],(e,t)=>{if(e!=null)return Yt(e.innerRadius,t,0)}),Iv=_([oa,Lu],(e,t)=>{if(e!=null)return Yt(e.outerRadius,t,t*.8)}),yw=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},Tv=_([oa],yw);_([$u,Tv],aa);var Dv=_([Lu,Mv,Iv],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});_([Ru,Dv],aa);var jv=_([X,oa,Mv,Iv,pt,mt],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:u,startAngle:l,endAngle:c}=t;return{cx:Yt(o,i,i/2),cy:Yt(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),ae=(e,t)=>t,ua=(e,t,r)=>r;function Nv(e){return e?.id}function $v(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(u=>{var l,c=(l=u.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var s=Nv(u);c.forEach((f,d)=>{var v=a==null||i?d:String(fe(f,a,null)),h=fe(f,u.dataKey,0),p;o.has(v)?p=o.get(v):p={},Object.assign(p,{[s]:h}),o.set(v,p)})}}),Array.from(o.values())}function zu(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var la=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function ca(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function gw(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var oe=e=>{var t=X(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ir=e=>e.tooltip.settings.axisId;function Fu(e){if(e!=null){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(a){function o(){return a.apply(this,arguments)}return o.toString=function(){return a.toString()},o})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var o=i[0],u=i[1];return o<=u?a>=o&&a<=u:a>=u&&a<=o},bandwidth:r?()=>r.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,o)=>{var u=e(a);if(u!=null){if(e.bandwidth&&o!==null&&o!==void 0&&o.position){var l=e.bandwidth();switch(o.position){case"middle":u+=l/2;break;case"end":u+=l;break}}return u}}}}}var bw=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Qe(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];z(a)&&((r===void 0||a<r)&&(r=a),(n===void 0||a>n)&&(n=a))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function _t(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ww(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Bu(e){let t,r,n;e.length!==2?(t=_t,r=(u,l)=>_t(e(u),l),n=(u,l)=>e(u)-l):(t=e===_t||e===ww?e:xw,r=e,n=e);function i(u,l,c=0,s=u.length){if(c<s){if(t(l,l)!==0)return s;do{const f=c+s>>>1;r(u[f],l)<0?c=f+1:s=f}while(c<s)}return c}function a(u,l,c=0,s=u.length){if(c<s){if(t(l,l)!==0)return s;do{const f=c+s>>>1;r(u[f],l)<=0?c=f+1:s=f}while(c<s)}return c}function o(u,l,c=0,s=u.length){const f=i(u,l,c,s-1);return f>c&&n(u[f-1],l)>-n(u[f],l)?f-1:f}return{left:i,center:o,right:a}}function xw(){return 0}function Rv(e){return e===null?NaN:+e}function*Pw(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Ow=Bu(_t),_n=Ow.right;Bu(Rv).center;class ps extends Map{constructor(t,r=Aw){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(ms(this,t))}has(t){return super.has(ms(this,t))}set(t,r){return super.set(_w(this,t),r)}delete(t){return super.delete(Sw(this,t))}}function ms({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function _w({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Sw({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Aw(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Cw(e=_t){if(e===_t)return Lv;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Lv(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Ew=Math.sqrt(50),kw=Math.sqrt(10),Mw=Math.sqrt(2);function bi(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=Ew?10:a>=kw?5:a>=Mw?2:1;let u,l,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),l=Math.round(t*c),u/c<e&&++u,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),l=Math.round(t/c),u*c<e&&++u,l*c>t&&--l),l<u&&.5<=r&&r<2?bi(e,t,r*2):[u,l,c]}function Yo(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?bi(t,e,r):bi(e,t,r);if(!(a>=i))return[];const u=a-i+1,l=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)l[c]=(a-c)/-o;else for(let c=0;c<u;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)l[c]=(i+c)/-o;else for(let c=0;c<u;++c)l[c]=(i+c)*o;return l}function Vo(e,t,r){return t=+t,e=+e,r=+r,bi(e,t,r)[2]}function Xo(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Vo(t,e,r):Vo(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function ys(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function gs(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function zv(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Lv:Cw(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,s=Math.log(l),f=.5*Math.exp(2*s/3),d=.5*Math.sqrt(s*f*(l-f)/l)*(c-l/2<0?-1:1),v=Math.max(r,Math.floor(t-c*f/l+d)),h=Math.min(n,Math.floor(t+(l-c)*f/l+d));zv(e,t,v,h,i)}const a=e[t];let o=r,u=n;for(Ur(e,r,t),i(e[n],a)>0&&Ur(e,r,n);o<u;){for(Ur(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Ur(e,r,u):(++u,Ur(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Ur(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Iw(e,t,r){if(e=Float64Array.from(Pw(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return gs(e);if(t>=1)return ys(e);var n,i=(n-1)*t,a=Math.floor(i),o=ys(zv(e,a).subarray(0,a+1)),u=gs(e.subarray(a+1));return o+(u-o)*(i-a)}}function Tw(e,t,r=Rv){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function Dw(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Le(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function yt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Zo=Symbol("implicit");function Uu(){var e=new ps,t=[],r=[],n=Zo;function i(a){let o=e.get(a);if(o===void 0){if(n!==Zo)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ps;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Uu(t,r).unknown(n)},Le.apply(i,arguments),i}function Wu(){var e=Uu().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,l=0,c=0,s=.5;delete e.unknown;function f(){var d=t().length,v=i<n,h=v?i:n,p=v?n:i;a=(p-h)/Math.max(1,d-l+c*2),u&&(a=Math.floor(a)),h+=(p-h-a*(d-l))*s,o=a*(1-l),u&&(h=Math.round(h),o=Math.round(o));var y=Dw(d).map(function(g){return h+a*g});return r(v?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,f()):u},e.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(s=Math.max(0,Math.min(1,d)),f()):s},e.copy=function(){return Wu(t(),[n,i]).round(u).paddingInner(l).paddingOuter(c).align(s)},Le.apply(f(),arguments)}function Fv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Fv(t())},e}function jw(){return Fv(Wu.apply(null,arguments).paddingInner(1))}function Ku(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Bv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Sn(){}var cn=.7,wi=1/cn,pr="\\s*([+-]?\\d+)\\s*",sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Je="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nw=/^#([0-9a-f]{3,8})$/,$w=new RegExp(`^rgb\\(${pr},${pr},${pr}\\)$`),Rw=new RegExp(`^rgb\\(${Je},${Je},${Je}\\)$`),Lw=new RegExp(`^rgba\\(${pr},${pr},${pr},${sn}\\)$`),zw=new RegExp(`^rgba\\(${Je},${Je},${Je},${sn}\\)$`),Fw=new RegExp(`^hsl\\(${sn},${Je},${Je}\\)$`),Bw=new RegExp(`^hsla\\(${sn},${Je},${Je},${sn}\\)$`),bs={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ku(Sn,fn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ws,formatHex:ws,formatHex8:Uw,formatHsl:Ww,formatRgb:xs,toString:xs});function ws(){return this.rgb().formatHex()}function Uw(){return this.rgb().formatHex8()}function Ww(){return Uv(this).formatHsl()}function xs(){return this.rgb().formatRgb()}function fn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Nw.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ps(t):r===3?new Ae(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Fn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Fn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$w.exec(e))?new Ae(t[1],t[2],t[3],1):(t=Rw.exec(e))?new Ae(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Lw.exec(e))?Fn(t[1],t[2],t[3],t[4]):(t=zw.exec(e))?Fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fw.exec(e))?Ss(t[1],t[2]/100,t[3]/100,1):(t=Bw.exec(e))?Ss(t[1],t[2]/100,t[3]/100,t[4]):bs.hasOwnProperty(e)?Ps(bs[e]):e==="transparent"?new Ae(NaN,NaN,NaN,0):null}function Ps(e){return new Ae(e>>16&255,e>>8&255,e&255,1)}function Fn(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ae(e,t,r,n)}function Kw(e){return e instanceof Sn||(e=fn(e)),e?(e=e.rgb(),new Ae(e.r,e.g,e.b,e.opacity)):new Ae}function Qo(e,t,r,n){return arguments.length===1?Kw(e):new Ae(e,t,r,n??1)}function Ae(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ku(Ae,Qo,Bv(Sn,{brighter(e){return e=e==null?wi:Math.pow(wi,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cn:Math.pow(cn,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(Kt(this.r),Kt(this.g),Kt(this.b),xi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Os,formatHex:Os,formatHex8:qw,formatRgb:_s,toString:_s}));function Os(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}`}function qw(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}${zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function _s(){const e=xi(this.opacity);return`${e===1?"rgb(":"rgba("}${Kt(this.r)}, ${Kt(this.g)}, ${Kt(this.b)}${e===1?")":`, ${e})`}`}function xi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zt(e){return e=Kt(e),(e<16?"0":"")+e.toString(16)}function Ss(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new We(e,t,r,n)}function Uv(e){if(e instanceof We)return new We(e.h,e.s,e.l,e.opacity);if(e instanceof Sn||(e=fn(e)),!e)return new We;if(e instanceof We)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,l=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=l<.5?a+i:2-a-i,o*=60):u=l>0&&l<1?0:o,new We(o,u,l,e.opacity)}function Hw(e,t,r,n){return arguments.length===1?Uv(e):new We(e,t,r,n??1)}function We(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ku(We,Hw,Bv(Sn,{brighter(e){return e=e==null?wi:Math.pow(wi,e),new We(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cn:Math.pow(cn,e),new We(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ae(uo(e>=240?e-240:e+120,i,n),uo(e,i,n),uo(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new We(As(this.h),Bn(this.s),Bn(this.l),xi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=xi(this.opacity);return`${e===1?"hsl(":"hsla("}${As(this.h)}, ${Bn(this.s)*100}%, ${Bn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function As(e){return e=(e||0)%360,e<0?e+360:e}function Bn(e){return Math.max(0,Math.min(1,e||0))}function uo(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const qu=e=>()=>e;function Gw(e,t){return function(r){return e+r*t}}function Yw(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Vw(e){return(e=+e)==1?Wv:function(t,r){return r-t?Yw(t,r,e):qu(isNaN(t)?r:t)}}function Wv(e,t){var r=t-e;return r?Gw(e,r):qu(isNaN(e)?t:e)}const Cs=(function e(t){var r=Vw(t);function n(i,a){var o=r((i=Qo(i)).r,(a=Qo(a)).r),u=r(i.g,a.g),l=r(i.b,a.b),c=Wv(i.opacity,a.opacity);return function(s){return i.r=o(s),i.g=u(s),i.b=l(s),i.opacity=c(s),i+""}}return n.gamma=e,n})(1);function Xw(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function Zw(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qw(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Tr(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function Jw(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Pi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function ex(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Tr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Jo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lo=new RegExp(Jo.source,"g");function tx(e){return function(){return e}}function rx(e){return function(t){return e(t)+""}}function nx(e,t){var r=Jo.lastIndex=lo.lastIndex=0,n,i,a,o=-1,u=[],l=[];for(e=e+"",t=t+"";(n=Jo.exec(e))&&(i=lo.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,l.push({i:o,x:Pi(n,i)})),r=lo.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?l[0]?rx(l[0].x):tx(t):(t=l.length,function(c){for(var s=0,f;s<t;++s)u[(f=l[s]).i]=f.x(c);return u.join("")})}function Tr(e,t){var r=typeof t,n;return t==null||r==="boolean"?qu(t):(r==="number"?Pi:r==="string"?(n=fn(t))?(t=n,Cs):nx:t instanceof fn?Cs:t instanceof Date?Jw:Zw(t)?Xw:Array.isArray(t)?Qw:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ex:Pi)(e,t)}function Hu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function ix(e,t){t===void 0&&(t=e,e=Tr);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function ax(e){return function(){return e}}function Oi(e){return+e}var Es=[0,1];function we(e){return e}function eu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:ax(isNaN(t)?NaN:.5)}function ox(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ux(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=eu(i,n),a=r(o,a)):(n=eu(n,i),a=r(a,o)),function(u){return a(n(u))}}function lx(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=eu(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var l=_n(e,u,1,n)-1;return a[l](i[l](u))}}function An(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sa(){var e=Es,t=Es,r=Tr,n,i,a,o=we,u,l,c;function s(){var d=Math.min(e.length,t.length);return o!==we&&(o=ox(e[0],e[d-1])),u=d>2?lx:ux,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=u(t,e.map(n),Pi)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Oi),s()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),s()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Hu,s()},f.clamp=function(d){return arguments.length?(o=d?!0:we,s()):o!==we},f.interpolate=function(d){return arguments.length?(r=d,s()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,v){return n=d,i=v,s()}}function Gu(){return sa()(we,we)}function cx(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _i(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function _r(e){return e=_i(Math.abs(e)),e?e[1]:NaN}function sx(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),a.push(r.substring(i-=u,i+u)),!((l+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function fx(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var dx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dn(e){if(!(t=dx.exec(e)))throw new Error("invalid format: "+e);var t;return new Yu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}dn.prototype=Yu.prototype;function Yu(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Yu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function vx(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Si;function hx(e,t){var r=_i(e,t);if(!r)return Si=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Si=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+_i(e,Math.max(0,t+a-1))[0]}function ks(e,t){var r=_i(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Ms={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:cx,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ks(e*100,t),r:ks,s:hx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Is(e){return e}var Ts=Array.prototype.map,Ds=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function px(e){var t=e.grouping===void 0||e.thousands===void 0?Is:sx(Ts.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Is:fx(Ts.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f,d){f=dn(f);var v=f.fill,h=f.align,p=f.sign,y=f.symbol,g=f.zero,w=f.width,b=f.comma,P=f.precision,x=f.trim,O=f.type;O==="n"?(b=!0,O="g"):Ms[O]||(P===void 0&&(P=12),x=!0,O="g"),(g||v==="0"&&h==="=")&&(g=!0,v="0",h="=");var S=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),E=(y==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),T=Ms[O],D=/[defgprs%]/.test(O);P=P===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function j(A){var B=S,U=E,re,Oe,ze;if(O==="c")U=T(A)+U,A="";else{A=+A;var be=A<0||1/A<0;if(A=isNaN(A)?l:T(Math.abs(A),P),x&&(A=vx(A)),be&&+A==0&&p!=="+"&&(be=!1),B=(be?p==="("?p:u:p==="-"||p==="("?"":p)+B,U=(O==="s"&&!isNaN(A)&&Si!==void 0?Ds[8+Si/3]:"")+U+(be&&p==="("?")":""),D){for(re=-1,Oe=A.length;++re<Oe;)if(ze=A.charCodeAt(re),48>ze||ze>57){U=(ze===46?i+A.slice(re+1):A.slice(re))+U,A=A.slice(0,re);break}}}b&&!g&&(A=t(A,1/0));var he=B.length+A.length+U.length,Q=he<w?new Array(w-he+1).join(v):"";switch(b&&g&&(A=t(Q+A,Q.length?w-U.length:1/0),Q=""),h){case"<":A=B+A+U+Q;break;case"=":A=B+Q+A+U;break;case"^":A=Q.slice(0,he=Q.length>>1)+B+A+U+Q.slice(he);break;default:A=Q+B+A+U;break}return a(A)}return j.toString=function(){return f+""},j}function s(f,d){var v=Math.max(-8,Math.min(8,Math.floor(_r(d)/3)))*3,h=Math.pow(10,-v),p=c((f=dn(f),f.type="f",f),{suffix:Ds[8+v/3]});return function(y){return p(h*y)}}return{format:c,formatPrefix:s}}var Un,Vu,Kv;mx({thousands:",",grouping:[3],currency:["$",""]});function mx(e){return Un=px(e),Vu=Un.format,Kv=Un.formatPrefix,Un}function yx(e){return Math.max(0,-_r(Math.abs(e)))}function gx(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(_r(t)/3)))*3-_r(Math.abs(e)))}function bx(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_r(t)-_r(e))+1}function qv(e,t,r,n){var i=Xo(e,t,r),a;switch(n=dn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=gx(i,o))&&(n.precision=a),Kv(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=bx(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=yx(i))&&(n.precision=a-(n.type==="%")*2);break}}return Vu(n)}function Ct(e){var t=e.domain;return e.ticks=function(r){var n=t();return Yo(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return qv(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],l,c,s=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);s-- >0;){if(c=Vo(o,u,r),c===l)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;l=c}return e},e}function Hv(){var e=Gu();return e.copy=function(){return An(e,Hv())},Le.apply(e,arguments),Ct(e)}function Gv(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Oi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Gv(e).unknown(t)},e=arguments.length?Array.from(e,Oi):[0,1],Ct(r)}function Yv(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function js(e){return Math.log(e)}function Ns(e){return Math.exp(e)}function wx(e){return-Math.log(-e)}function xx(e){return-Math.exp(-e)}function Px(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ox(e){return e===10?Px:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _x(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function $s(e){return(t,r)=>-e(-t,r)}function Xu(e){const t=e(js,Ns),r=t.domain;let n=10,i,a;function o(){return i=_x(n),a=Ox(n),r()[0]<0?(i=$s(i),a=$s(a),e(wx,xx)):e(js,Ns),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const l=r();let c=l[0],s=l[l.length-1];const f=s<c;f&&([c,s]=[s,c]);let d=i(c),v=i(s),h,p;const y=u==null?10:+u;let g=[];if(!(n%1)&&v-d<y){if(d=Math.floor(d),v=Math.ceil(v),c>0){for(;d<=v;++d)for(h=1;h<n;++h)if(p=d<0?h/a(-d):h*a(d),!(p<c)){if(p>s)break;g.push(p)}}else for(;d<=v;++d)for(h=n-1;h>=1;--h)if(p=d>0?h/a(-d):h*a(d),!(p<c)){if(p>s)break;g.push(p)}g.length*2<y&&(g=Yo(c,s,y))}else g=Yo(d,v,Math.min(v-d,y)).map(a);return f?g.reverse():g},t.tickFormat=(u,l)=>{if(u==null&&(u=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=dn(l)).precision==null&&(l.trim=!0),l=Vu(l)),u===1/0)return l;const c=Math.max(1,n*u/t.ticks().length);return s=>{let f=s/a(Math.round(i(s)));return f*n<n-.5&&(f*=n),f<=c?l(s):""}},t.nice=()=>r(Yv(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Vv(){const e=Xu(sa()).domain([1,10]);return e.copy=()=>An(e,Vv()).base(e.base()),Le.apply(e,arguments),e}function Rs(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ls(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Zu(e){var t=1,r=e(Rs(t),Ls(t));return r.constant=function(n){return arguments.length?e(Rs(t=+n),Ls(t)):t},Ct(r)}function Xv(){var e=Zu(sa());return e.copy=function(){return An(e,Xv()).constant(e.constant())},Le.apply(e,arguments)}function zs(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Sx(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ax(e){return e<0?-e*e:e*e}function Qu(e){var t=e(we,we),r=1;function n(){return r===1?e(we,we):r===.5?e(Sx,Ax):e(zs(r),zs(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Ct(t)}function Ju(){var e=Qu(sa());return e.copy=function(){return An(e,Ju()).exponent(e.exponent())},Le.apply(e,arguments),e}function Cx(){return Ju.apply(null,arguments).exponent(.5)}function Fs(e){return Math.sign(e)*e*e}function Ex(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Zv(){var e=Gu(),t=[0,1],r=!1,n;function i(a){var o=Ex(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Fs(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Oi)).map(Fs)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Zv(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Le.apply(i,arguments),Ct(i)}function Qv(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=Tw(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[_n(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(_t),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Qv().domain(e).range(t).unknown(n)},Le.apply(a,arguments)}function Jv(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[_n(n,l,0,r)]:a}function u(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,u()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,u()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Jv().domain([e,t]).range(i).unknown(a)},Le.apply(Ct(o),arguments)}function eh(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[_n(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return eh().domain(e).range(t).unknown(r)},Le.apply(i,arguments)}const co=new Date,so=new Date;function te(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const l=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return l;let c;do l.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return l},i.filter=a=>te(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(co.setTime(+a),so.setTime(+o),e(co),e(so),Math.floor(r(co,so))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ai=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ai.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ai);Ai.range;const ot=1e3,$e=ot*60,ut=$e*60,dt=ut*24,el=dt*7,Bs=dt*30,fo=dt*365,Ft=te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ot)},(e,t)=>(t-e)/ot,e=>e.getUTCSeconds());Ft.range;const tl=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ot)},(e,t)=>{e.setTime(+e+t*$e)},(e,t)=>(t-e)/$e,e=>e.getMinutes());tl.range;const rl=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*$e)},(e,t)=>(t-e)/$e,e=>e.getUTCMinutes());rl.range;const nl=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ot-e.getMinutes()*$e)},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getHours());nl.range;const il=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getUTCHours());il.range;const Cn=te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$e)/dt,e=>e.getDate()-1);Cn.range;const fa=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dt,e=>e.getUTCDate()-1);fa.range;const th=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dt,e=>Math.floor(e/dt));th.range;function rr(e){return te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*$e)/el)}const da=rr(0),Ci=rr(1),kx=rr(2),Mx=rr(3),Sr=rr(4),Ix=rr(5),Tx=rr(6);da.range;Ci.range;kx.range;Mx.range;Sr.range;Ix.range;Tx.range;function nr(e){return te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/el)}const va=nr(0),Ei=nr(1),Dx=nr(2),jx=nr(3),Ar=nr(4),Nx=nr(5),$x=nr(6);va.range;Ei.range;Dx.range;jx.range;Ar.range;Nx.range;$x.range;const al=te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());al.range;const ol=te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());ol.range;const vt=te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());vt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});vt.range;const ht=te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ht.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});ht.range;function rh(e,t,r,n,i,a){const o=[[Ft,1,ot],[Ft,5,5*ot],[Ft,15,15*ot],[Ft,30,30*ot],[a,1,$e],[a,5,5*$e],[a,15,15*$e],[a,30,30*$e],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[n,1,dt],[n,2,2*dt],[r,1,el],[t,1,Bs],[t,3,3*Bs],[e,1,fo]];function u(c,s,f){const d=s<c;d&&([c,s]=[s,c]);const v=f&&typeof f.range=="function"?f:l(c,s,f),h=v?v.range(c,+s+1):[];return d?h.reverse():h}function l(c,s,f){const d=Math.abs(s-c)/f,v=Bu(([,,y])=>y).right(o,d);if(v===o.length)return e.every(Xo(c/fo,s/fo,f));if(v===0)return Ai.every(Math.max(Xo(c,s,f),1));const[h,p]=o[d/o[v-1][2]<o[v][2]/d?v-1:v];return h.every(p)}return[u,l]}const[Rx,Lx]=rh(ht,ol,va,th,il,rl),[zx,Fx]=rh(vt,al,da,Cn,nl,tl);function vo(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ho(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Wr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Bx(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,l=e.shortMonths,c=Kr(i),s=qr(i),f=Kr(a),d=qr(a),v=Kr(o),h=qr(o),p=Kr(u),y=qr(u),g=Kr(l),w=qr(l),b={a:ze,A:be,b:he,B:Q,c:null,d:Gs,e:Gs,f:s1,g:w1,G:P1,H:u1,I:l1,j:c1,L:nh,m:f1,M:d1,p:Mt,q:Fe,Q:Xs,s:Zs,S:v1,u:h1,U:p1,V:m1,w:y1,W:g1,x:null,X:null,y:b1,Y:x1,Z:O1,"%":Vs},P={a:Rr,A:Lr,b:zr,B:wa,c:null,d:Ys,e:Ys,f:C1,g:R1,G:z1,H:_1,I:S1,j:A1,L:ah,m:E1,M:k1,p:xa,q:Pa,Q:Xs,s:Zs,S:M1,u:I1,U:T1,V:D1,w:j1,W:N1,x:null,X:null,y:$1,Y:L1,Z:F1,"%":Vs},x={a:D,A:j,b:A,B,c:U,d:qs,e:qs,f:n1,g:Ks,G:Ws,H:Hs,I:Hs,j:Jx,L:r1,m:Qx,M:e1,p:T,q:Zx,Q:a1,s:o1,S:t1,u:Hx,U:Gx,V:Yx,w:qx,W:Vx,x:re,X:Oe,y:Ks,Y:Ws,Z:Xx,"%":i1};b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),P.x=O(r,P),P.X=O(n,P),P.c=O(t,P);function O(I,k){return function(L){var C=[],_e=-1,K=0,Ce=I.length,Ee,It,Dl;for(L instanceof Date||(L=new Date(+L));++_e<Ce;)I.charCodeAt(_e)===37&&(C.push(I.slice(K,_e)),(It=Us[Ee=I.charAt(++_e)])!=null?Ee=I.charAt(++_e):It=Ee==="e"?" ":"0",(Dl=k[Ee])&&(Ee=Dl(L,It)),C.push(Ee),K=_e+1);return C.push(I.slice(K,_e)),C.join("")}}function S(I,k){return function(L){var C=Wr(1900,void 0,1),_e=E(C,I,L+="",0),K,Ce;if(_e!=L.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(k&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(K=ho(Wr(C.y,0,1)),Ce=K.getUTCDay(),K=Ce>4||Ce===0?Ei.ceil(K):Ei(K),K=fa.offset(K,(C.V-1)*7),C.y=K.getUTCFullYear(),C.m=K.getUTCMonth(),C.d=K.getUTCDate()+(C.w+6)%7):(K=vo(Wr(C.y,0,1)),Ce=K.getDay(),K=Ce>4||Ce===0?Ci.ceil(K):Ci(K),K=Cn.offset(K,(C.V-1)*7),C.y=K.getFullYear(),C.m=K.getMonth(),C.d=K.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),Ce="Z"in C?ho(Wr(C.y,0,1)).getUTCDay():vo(Wr(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(Ce+5)%7:C.w+C.U*7-(Ce+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,ho(C)):vo(C)}}function E(I,k,L,C){for(var _e=0,K=k.length,Ce=L.length,Ee,It;_e<K;){if(C>=Ce)return-1;if(Ee=k.charCodeAt(_e++),Ee===37){if(Ee=k.charAt(_e++),It=x[Ee in Us?k.charAt(_e++):Ee],!It||(C=It(I,L,C))<0)return-1}else if(Ee!=L.charCodeAt(C++))return-1}return C}function T(I,k,L){var C=c.exec(k.slice(L));return C?(I.p=s.get(C[0].toLowerCase()),L+C[0].length):-1}function D(I,k,L){var C=v.exec(k.slice(L));return C?(I.w=h.get(C[0].toLowerCase()),L+C[0].length):-1}function j(I,k,L){var C=f.exec(k.slice(L));return C?(I.w=d.get(C[0].toLowerCase()),L+C[0].length):-1}function A(I,k,L){var C=g.exec(k.slice(L));return C?(I.m=w.get(C[0].toLowerCase()),L+C[0].length):-1}function B(I,k,L){var C=p.exec(k.slice(L));return C?(I.m=y.get(C[0].toLowerCase()),L+C[0].length):-1}function U(I,k,L){return E(I,t,k,L)}function re(I,k,L){return E(I,r,k,L)}function Oe(I,k,L){return E(I,n,k,L)}function ze(I){return o[I.getDay()]}function be(I){return a[I.getDay()]}function he(I){return l[I.getMonth()]}function Q(I){return u[I.getMonth()]}function Mt(I){return i[+(I.getHours()>=12)]}function Fe(I){return 1+~~(I.getMonth()/3)}function Rr(I){return o[I.getUTCDay()]}function Lr(I){return a[I.getUTCDay()]}function zr(I){return l[I.getUTCMonth()]}function wa(I){return u[I.getUTCMonth()]}function xa(I){return i[+(I.getUTCHours()>=12)]}function Pa(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var k=O(I+="",b);return k.toString=function(){return I},k},parse:function(I){var k=S(I+="",!1);return k.toString=function(){return I},k},utcFormat:function(I){var k=O(I+="",P);return k.toString=function(){return I},k},utcParse:function(I){var k=S(I+="",!0);return k.toString=function(){return I},k}}}var Us={"-":"",_:" ",0:"0"},ue=/^\s*\d+/,Ux=/^%/,Wx=/[\\^$*+?|[\]().{}]/g;function F(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Kx(e){return e.replace(Wx,"\\$&")}function Kr(e){return new RegExp("^(?:"+e.map(Kx).join("|")+")","i")}function qr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function qx(e,t,r){var n=ue.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Hx(e,t,r){var n=ue.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Gx(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Yx(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Vx(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ws(e,t,r){var n=ue.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Ks(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Xx(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Zx(e,t,r){var n=ue.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Qx(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function qs(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Jx(e,t,r){var n=ue.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Hs(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function e1(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function t1(e,t,r){var n=ue.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function r1(e,t,r){var n=ue.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function n1(e,t,r){var n=ue.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function i1(e,t,r){var n=Ux.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function a1(e,t,r){var n=ue.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function o1(e,t,r){var n=ue.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Gs(e,t){return F(e.getDate(),t,2)}function u1(e,t){return F(e.getHours(),t,2)}function l1(e,t){return F(e.getHours()%12||12,t,2)}function c1(e,t){return F(1+Cn.count(vt(e),e),t,3)}function nh(e,t){return F(e.getMilliseconds(),t,3)}function s1(e,t){return nh(e,t)+"000"}function f1(e,t){return F(e.getMonth()+1,t,2)}function d1(e,t){return F(e.getMinutes(),t,2)}function v1(e,t){return F(e.getSeconds(),t,2)}function h1(e){var t=e.getDay();return t===0?7:t}function p1(e,t){return F(da.count(vt(e)-1,e),t,2)}function ih(e){var t=e.getDay();return t>=4||t===0?Sr(e):Sr.ceil(e)}function m1(e,t){return e=ih(e),F(Sr.count(vt(e),e)+(vt(e).getDay()===4),t,2)}function y1(e){return e.getDay()}function g1(e,t){return F(Ci.count(vt(e)-1,e),t,2)}function b1(e,t){return F(e.getFullYear()%100,t,2)}function w1(e,t){return e=ih(e),F(e.getFullYear()%100,t,2)}function x1(e,t){return F(e.getFullYear()%1e4,t,4)}function P1(e,t){var r=e.getDay();return e=r>=4||r===0?Sr(e):Sr.ceil(e),F(e.getFullYear()%1e4,t,4)}function O1(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+F(t/60|0,"0",2)+F(t%60,"0",2)}function Ys(e,t){return F(e.getUTCDate(),t,2)}function _1(e,t){return F(e.getUTCHours(),t,2)}function S1(e,t){return F(e.getUTCHours()%12||12,t,2)}function A1(e,t){return F(1+fa.count(ht(e),e),t,3)}function ah(e,t){return F(e.getUTCMilliseconds(),t,3)}function C1(e,t){return ah(e,t)+"000"}function E1(e,t){return F(e.getUTCMonth()+1,t,2)}function k1(e,t){return F(e.getUTCMinutes(),t,2)}function M1(e,t){return F(e.getUTCSeconds(),t,2)}function I1(e){var t=e.getUTCDay();return t===0?7:t}function T1(e,t){return F(va.count(ht(e)-1,e),t,2)}function oh(e){var t=e.getUTCDay();return t>=4||t===0?Ar(e):Ar.ceil(e)}function D1(e,t){return e=oh(e),F(Ar.count(ht(e),e)+(ht(e).getUTCDay()===4),t,2)}function j1(e){return e.getUTCDay()}function N1(e,t){return F(Ei.count(ht(e)-1,e),t,2)}function $1(e,t){return F(e.getUTCFullYear()%100,t,2)}function R1(e,t){return e=oh(e),F(e.getUTCFullYear()%100,t,2)}function L1(e,t){return F(e.getUTCFullYear()%1e4,t,4)}function z1(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ar(e):Ar.ceil(e),F(e.getUTCFullYear()%1e4,t,4)}function F1(){return"+0000"}function Vs(){return"%"}function Xs(e){return+e}function Zs(e){return Math.floor(+e/1e3)}var or,uh,lh;B1({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function B1(e){return or=Bx(e),uh=or.format,or.parse,lh=or.utcFormat,or.utcParse,or}function U1(e){return new Date(e)}function W1(e){return e instanceof Date?+e:+new Date(+e)}function ul(e,t,r,n,i,a,o,u,l,c){var s=Gu(),f=s.invert,d=s.domain,v=c(".%L"),h=c(":%S"),p=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),w=c("%b %d"),b=c("%B"),P=c("%Y");function x(O){return(l(O)<O?v:u(O)<O?h:o(O)<O?p:a(O)<O?y:n(O)<O?i(O)<O?g:w:r(O)<O?b:P)(O)}return s.invert=function(O){return new Date(f(O))},s.domain=function(O){return arguments.length?d(Array.from(O,W1)):d().map(U1)},s.ticks=function(O){var S=d();return e(S[0],S[S.length-1],O??10)},s.tickFormat=function(O,S){return S==null?x:c(S)},s.nice=function(O){var S=d();return(!O||typeof O.range!="function")&&(O=t(S[0],S[S.length-1],O??10)),O?d(Yv(S,O)):s},s.copy=function(){return An(s,ul(e,t,r,n,i,a,o,u,l,c))},s}function K1(){return Le.apply(ul(zx,Fx,vt,al,da,Cn,nl,tl,Ft,uh).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function q1(){return Le.apply(ul(Rx,Lx,ht,ol,va,fa,il,rl,Ft,lh).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ha(){var e=0,t=1,r,n,i,a,o=we,u=!1,l;function c(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,u?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(u=!!f,c):u},c.interpolator=function(f){return arguments.length?(o=f,c):o};function s(f){return function(d){var v,h;return arguments.length?([v,h]=d,o=f(v,h),c):[o(0),o(1)]}}return c.range=s(Tr),c.rangeRound=s(Hu),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function Et(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ch(){var e=Ct(ha()(we));return e.copy=function(){return Et(e,ch())},yt.apply(e,arguments)}function sh(){var e=Xu(ha()).domain([1,10]);return e.copy=function(){return Et(e,sh()).base(e.base())},yt.apply(e,arguments)}function fh(){var e=Zu(ha());return e.copy=function(){return Et(e,fh()).constant(e.constant())},yt.apply(e,arguments)}function ll(){var e=Qu(ha());return e.copy=function(){return Et(e,ll()).exponent(e.exponent())},yt.apply(e,arguments)}function H1(){return ll.apply(null,arguments).exponent(.5)}function dh(){var e=[],t=we;function r(n){if(n!=null&&!isNaN(n=+n))return t((_n(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_t),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>Iw(e,a/n))},r.copy=function(){return dh(t).domain(e)},yt.apply(r,arguments)}function pa(){var e=0,t=.5,r=1,n=1,i,a,o,u,l,c=we,s,f=!1,d;function v(p){return isNaN(p=+p)?d:(p=.5+((p=+s(p))-a)*(n*p<n*a?u:l),c(f?Math.max(0,Math.min(1,p)):p))}v.domain=function(p){return arguments.length?([e,t,r]=p,i=s(e=+e),a=s(t=+t),o=s(r=+r),u=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,v):[e,t,r]},v.clamp=function(p){return arguments.length?(f=!!p,v):f},v.interpolator=function(p){return arguments.length?(c=p,v):c};function h(p){return function(y){var g,w,b;return arguments.length?([g,w,b]=y,c=ix(p,[g,w,b]),v):[c(0),c(.5),c(1)]}}return v.range=h(Tr),v.rangeRound=h(Hu),v.unknown=function(p){return arguments.length?(d=p,v):d},function(p){return s=p,i=p(e),a=p(t),o=p(r),u=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function vh(){var e=Ct(pa()(we));return e.copy=function(){return Et(e,vh())},yt.apply(e,arguments)}function hh(){var e=Xu(pa()).domain([.1,1,10]);return e.copy=function(){return Et(e,hh()).base(e.base())},yt.apply(e,arguments)}function ph(){var e=Zu(pa());return e.copy=function(){return Et(e,ph()).constant(e.constant())},yt.apply(e,arguments)}function cl(){var e=Qu(pa());return e.copy=function(){return Et(e,cl()).exponent(e.exponent())},yt.apply(e,arguments)}function G1(){return cl.apply(null,arguments).exponent(.5)}const mh=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Wu,scaleDiverging:vh,scaleDivergingLog:hh,scaleDivergingPow:cl,scaleDivergingSqrt:G1,scaleDivergingSymlog:ph,scaleIdentity:Gv,scaleImplicit:Zo,scaleLinear:Hv,scaleLog:Vv,scaleOrdinal:Uu,scalePoint:jw,scalePow:Ju,scaleQuantile:Qv,scaleQuantize:Jv,scaleRadial:Zv,scaleSequential:ch,scaleSequentialLog:sh,scaleSequentialPow:ll,scaleSequentialQuantile:dh,scaleSequentialSqrt:H1,scaleSequentialSymlog:fh,scaleSqrt:Cx,scaleSymlog:Xv,scaleThreshold:eh,scaleTime:K1,scaleUtc:q1,tickFormat:qv},Symbol.toStringTag,{value:"Module"}));function Y1(e){var t=mh;if(e in t&&typeof t[e]=="function")return t[e]();var r="scale".concat(du(e));if(r in t&&typeof t[r]=="function")return t[r]()}function Qs(e,t,r){if(typeof e=="function")return e.copy().domain(t).range(r);if(e!=null){var n=Y1(e);if(n!=null)return n.domain(t).range(r),n}}function sl(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Qs(e.scale,r,n):Qs(t,r,n)}function V1(e){return"scale".concat(du(e))}function X1(e){return V1(e)in mh}var yh=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string")return X1(n)?n:"point"}};function Z1(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var a=Math.floor((r+n)/2);(i?e[a]<t:e[a]>t)?r=a+1:n=a}return r}function gh(e,t){if(e){var r=t??e.domain(),n=r.map(a=>{var o;return(o=e(a))!==null&&o!==void 0?o:0}),i=e.range();if(!(r.length===0||i.length<2))return a=>{var o,u,l=Z1(n,a);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var c=(o=n[l-1])!==null&&o!==void 0?o:0,s=(u=n[l])!==null&&u!==void 0?u:0;return Math.abs(a-c)<=Math.abs(a-s)?r[l-1]:r[l]}}}function Q1(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):gh(e,void 0)}function Js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Js(Object(r),!0).forEach(function(n){J1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Js(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J1(e,t,r){return(t=eP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eP(e){var t=tP(e,"string");return typeof t=="symbol"?t:t+""}function tP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tu=[0,"auto"],bh={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},rP=(e,t)=>e.cartesianAxis.xAxis[t],gt=(e,t)=>{var r=rP(e,t);return r??bh},J={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:tu,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:wn},wh=(e,t)=>e.cartesianAxis.yAxis[t],bt=(e,t)=>{var r=wh(e,t);return r??J},nP={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},fl=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??nP},Pe=(e,t,r)=>{switch(t){case"xAxis":return gt(e,r);case"yAxis":return bt(e,r);case"zAxis":return fl(e,r);case"angleAxis":return $u(e,r);case"radiusAxis":return Ru(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},iP=(e,t,r)=>{switch(t){case"xAxis":return gt(e,r);case"yAxis":return bt(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},En=(e,t,r)=>{switch(t){case"xAxis":return gt(e,r);case"yAxis":return bt(e,r);case"angleAxis":return $u(e,r);case"radiusAxis":return Ru(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},xh=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Ph(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var aP=e=>e.graphicalItems.cartesianItems,oP=_([ae,ua],Ph),Oh=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Dr=_([aP,Pe,oP],Oh,{memoizeOptions:{resultEqualityCheck:ca}}),_h=_([Dr],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(zu)),Sh=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),uP=_([Dr],Sh),Ah=e=>e.map(t=>t.data).filter(Boolean).flat(1),lP=_([Dr],e=>e.some(t=>!t.data)),Ch=_([Dr],Ah,{memoizeOptions:{resultEqualityCheck:ca}}),Eh=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},dl=_([Ch,na],Eh),cP=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:fe(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:fe(i,n)}))):e.map(n=>({value:n})),kh=(e,t,r,n,i,a)=>{var{chartData:o=[],dataStartIndex:u,dataEndIndex:l}=n,c=cP(e,t,r);if(i&&t?.dataKey!=null&&a.length>0){var s=o.slice(u,l+1),f=s.map(d=>({value:fe(d,t.dataKey)})).filter(d=>d.value!=null);return[...f,...c]}return c},kn=_([dl,Pe,Dr,na,lP,Ch],kh);function mr(e){if(wr(e)||e instanceof Date){var t=Number(e);if(z(t))return t}}function ef(e){if(Array.isArray(e)){var t=[mr(e[0]),mr(e[1])];return Qe(t)?t:void 0}var r=mr(e);if(r!=null)return[r,r]}function rt(e){return e.map(mr).filter(Se)}function sP(e,t){var r=mr(e),n=mr(t);return r==null&&n==null?0:r==null?-1:n==null?1:r-n}var fP=_([kn],e=>e?.map(t=>t.value).sort(sP));function Mh(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function dP(e,t,r){if(!r)return[];if(!r.length)return[];var n;if(typeof t=="number"&&!st(t))n=t;else if(Array.isArray(t)){var i=rt(t);i.length>0&&(n=Math.max(...i))}return n==null?[]:rt(r.flatMap(a=>{var o=fe(e,a.dataKey),u,l;if(Array.isArray(o)?[u,l]=o:u=l=o,!(!z(u)||!z(l)))return[n-u,n+l]}))}var le=e=>{var t=oe(e),r=Ir(e);return En(e,t,r)},Cr=_([le],e=>e?.dataKey),vP=_([_h,na,le],$v),Ih=(e,t,r,n)=>{var i={},a=t.reduce((o,u)=>{if(u.stackId==null)return o;var l=o[u.stackId];return l==null&&(l=[]),l.push(u),o[u.stackId]=l,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[u,l]=o,c=n?[...l].reverse():l,s=c.map(Nv);return[u,{stackedData:Wg(e,s,r),graphicalItems:c}]}))},hP=_([vP,_h,ia,Ev],Ih),Th=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=Hg(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},pP=_([Pe],e=>e.allowDataOverflow),vl=e=>{var t;if(e==null||!("domain"in e))return tu;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=rt(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:tu},Dh=_([Pe],vl),jh=_([Dh,pP],yv),mP=_([hP,He,ae,jh],Th,{memoizeOptions:{resultEqualityCheck:la}}),hl=e=>e.errorBars,yP=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>Mh(r,n)),Mi=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),u=Math.max(...a);return[o,u]}},Nh=function(t,r,n,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],u,l;if(n.length>0&&n.forEach(c=>{var s,f=c.data!=null?[...c.data]:o,d=(s=i[c.id])===null||s===void 0?void 0:s.filter(v=>Mh(a,v));f.forEach(v=>{var h,p=fe(v,(h=r.dataKey)!==null&&h!==void 0?h:c.dataKey),y=dP(v,p,d);if(y.length>=2){var g=Math.min(...y),w=Math.max(...y);(u==null||g<u)&&(u=g),(l==null||w>l)&&(l=w)}var b=ef(p);b!=null&&(u=u==null?b[0]:Math.min(u,b[0]),l=l==null?b[1]:Math.max(l,b[1]))})}),r?.dataKey!=null&&n.length===0&&t.forEach(c=>{var s=ef(fe(c,r.dataKey));s!=null&&(u=u==null?s[0]:Math.min(u,s[0]),l=l==null?s[1]:Math.max(l,s[1]))}),z(u)&&z(l))return[u,l]},gP=_([dl,Pe,uP,hl,ae,iw],Nh,{memoizeOptions:{resultEqualityCheck:la}});function bP(e){var{value:t}=e;if(wr(t)||t instanceof Date)return t}var wP=(e,t,r)=>{var n=e.map(bP).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&pd(n))?mv(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},$h=e=>e.referenceElements.dots,jr=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),xP=_([$h,ae,ua],jr),Rh=e=>e.referenceElements.areas,PP=_([Rh,ae,ua],jr),Lh=e=>e.referenceElements.lines,OP=_([Lh,ae,ua],jr),zh=(e,t)=>{if(e!=null){var r=rt(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},_P=_(xP,ae,zh),Fh=(e,t)=>{if(e!=null){var r=rt(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},SP=_([PP,ae],Fh);function AP(e){var t;if(e.x!=null)return rt([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:rt(r)}function CP(e){var t;if(e.y!=null)return rt([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:rt(r)}var Bh=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?AP(n):CP(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},EP=_([OP,ae],Bh),kP=_(_P,EP,SP,(e,t,r)=>Mi(e,r,t)),Uh=(e,t,r,n,i,a,o,u)=>{if(r!=null)return r;var l=o==="vertical"&&u==="xAxis"||o==="horizontal"&&u==="yAxis",c=l?Mi(n,a,i):Mi(a,i);return ow(t,c,e.allowDataOverflow)},MP=_([Pe,Dh,jh,mP,gP,kP,X,ae],Uh,{memoizeOptions:{resultEqualityCheck:la}}),IP=[0,1],Wh=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:u,type:l}=e,c=At(t,a);if(c&&u==null){var s;return mv(0,(s=r?.length)!==null&&s!==void 0?s:0)}return l==="category"?wP(n,e,c):i==="expand"&&!c?IP:o}},pl=_([Pe,X,dl,kn,ia,ae,MP],Wh),Nr=_([Pe,xh,Tu],yh),Kh=(e,t,r)=>{var{niceTicks:n}=t;if(n!=="none"){var i=vl(t),a=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((n==="snap125"||n==="adaptive")&&t!=null&&t.tickCount&&Qe(e)){if(a)return ss(e,t.tickCount,t.allowDecimals,n);if(t.type==="number")return fs(e,t.tickCount,t.allowDecimals,n)}if(n==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(a&&Qe(e))return ss(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&Qe(e))return fs(e,t.tickCount,t.allowDecimals,"adaptive")}}},ml=_([pl,En,Nr],Kh),qh=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Qe(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],u=(i=r[0])!==null&&i!==void 0?i:0,l=t[1],c=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,u),Math.max(l,c)]}return t},TP=_([Pe,pl,ml,ae],qh),DP=_(kn,Pe,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(rt(e.map(f=>f.value))).sort((f,d)=>f-d),i=n[0],a=n[n.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var u=0;u<n.length-1;u++){var l=n[u],c=n[u+1];if(!(l==null||c==null)){var s=c-l;r=Math.min(r,s)}}return r/o}}),Hh=_(DP,X,fw,ve,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!z(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=Yt(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),jP=(e,t,r)=>{var n=gt(e,t);return n==null||typeof n.padding!="string"?0:Hh(e,"xAxis",t,r,n.padding)},NP=(e,t,r)=>{var n=bt(e,t);return n==null||typeof n.padding!="string"?0:Hh(e,"yAxis",t,r,n.padding)},$P=_(gt,jP,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),RP=_(bt,NP,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),LP=_([ve,$P,Qi,Zi,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),zP=_([ve,X,RP,Qi,Zi,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Mn=(e,t,r,n)=>{var i;switch(t){case"xAxis":return LP(e,r,n);case"yAxis":return zP(e,r,n);case"zAxis":return(i=fl(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return Tv(e);case"radiusAxis":return Dv(e,r);default:return}},Gh=_([Pe,Mn],aa),FP=_([Nr,TP],bw),yl=_([Pe,Nr,FP,Gh],sl),Yh=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=At(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},gl=_([X,kn,En,ae],Yh),ma=_([yl],Fu);_([yl],Q1);_([yl,fP],gh);_([Dr,hl,ae],yP);function Vh(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var ya=(e,t)=>t,ga=(e,t,r)=>r,BP=_(Vi,ya,ga,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Vh)),UP=_(Xi,ya,ga,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Vh)),Xh=(e,t)=>({width:e.width,height:t.height}),WP=(e,t)=>{var r=typeof t.width=="number"?t.width:wn;return{width:r,height:e.height}},KP=_(ve,gt,Xh),qP=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},HP=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},GP=_(mt,ve,BP,ya,ga,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=Xh(t,u);o==null&&(o=qP(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[u.id]=o-Number(c)*l.height,o+=(c?-1:1)*l.height}),a}),YP=_(pt,ve,UP,ya,ga,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=WP(t,u);o==null&&(o=HP(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[u.id]=o-Number(c)*l.width,o+=(c?-1:1)*l.width}),a}),VP=(e,t)=>{var r=gt(e,t);if(r!=null)return GP(e,r.orientation,r.mirror)},_k=_([ve,gt,VP,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),XP=(e,t)=>{var r=bt(e,t);if(r!=null)return YP(e,r.orientation,r.mirror)},ZP=_([ve,bt,XP,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),Zh=_(ve,bt,(e,t)=>{var r=typeof t.width=="number"?t.width:wn;return{width:r,height:e.height}}),Sk=(e,t,r)=>{switch(t){case"xAxis":return KP(e,r).width;case"yAxis":return Zh(e,r).height;default:return}},Qh=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,u=At(e,n),l=t.map(s=>s.value),c=l.filter(s=>s!=null);if(o&&u&&a==="category"&&i&&pd(c))return l}},bl=_([X,kn,Pe,ae],Qh),tf=_([X,iP,Nr,ma,bl,gl,Mn,ml,ae],(e,t,r,n,i,a,o,u,l)=>{if(t!=null){var c=At(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:u,range:o,realScaleType:r,scale:n}}}),QP=(e,t,r,n,i,a,o,u,l)=>{if(!(t==null||n==null)){var c=At(e,l),{type:s,ticks:f,tickCount:d}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,h=s==="category"&&n.bandwidth?n.bandwidth()/v:0;h=l==="angleAxis"&&a!=null&&a.length>=2?Ve(a[0]-a[1])*2*h:h;var p=f||i;return p?p.map((y,g)=>{var w=o?o.indexOf(y):y,b=n.map(w);return z(b)?{index:g,coordinate:b+h,value:y,offset:h}:null}).filter(Se):c&&u?u.map((y,g)=>{var w=n.map(y);return z(w)?{coordinate:w+h,value:y,index:g,offset:h}:null}).filter(Se):n.ticks?n.ticks(d).map((y,g)=>{var w=n.map(y);return z(w)?{coordinate:w+h,value:y,index:g,offset:h}:null}).filter(Se):n.domain().map((y,g)=>{var w=n.map(y);return z(w)?{coordinate:w+h,value:o?o[y]:y,index:g,offset:h}:null}).filter(Se)}},JP=_([X,En,Nr,ma,ml,Mn,bl,gl,ae],QP),eO=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=At(e,o),{tickCount:l}=t,c=0;return c=o==="angleAxis"&&n?.length>=2?Ve(n[0]-n[1])*2*c:c,u&&a?a.map((s,f)=>{var d=r.map(s);return z(d)?{coordinate:d+c,value:s,index:f,offset:c}:null}).filter(Se):r.ticks?r.ticks(l).map((s,f)=>{var d=r.map(s);return z(d)?{coordinate:d+c,value:s,index:f,offset:c}:null}).filter(Se):r.domain().map((s,f)=>{var d=r.map(s);return z(d)?{coordinate:d+c,value:i?i[s]:s,index:f,offset:c}:null}).filter(Se)}},Ak=_([X,En,ma,Mn,bl,gl,ae],eO),Ck=_(Pe,ma,(e,t)=>{if(!(e==null||t==null))return ki(ki({},e),{},{scale:t})}),tO=_([Pe,Nr,pl,Gh],sl),rO=_([tO],Fu);_((e,t,r)=>fl(e,r),rO,(e,t)=>{if(!(e==null||t==null))return ki(ki({},e),{},{scale:t})});var nO=_([X,Vi,Xi],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),iO=(e,t,r)=>{var n;return(n=e.renderedTicks[t])===null||n===void 0?void 0:n[r]};_([iO],e=>{if(!(!e||e.length===0))return t=>{var r,n=1/0,i=e[0];for(var a of e){var o=Math.abs(a.coordinate-t);o<n&&(n=o,i=a)}return(r=i)===null||r===void 0?void 0:r.value}});var Jh=e=>e.options.defaultTooltipEventType,ep=e=>e.options.validateTooltipEventTypes;function tp(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function In(e,t){var r=Jh(e),n=ep(e);return tp(t,r,n)}function Ek(e){return $(t=>In(t,e))}var rp=(e,t)=>{var r,n=Number(t);if(!(st(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},aO=e=>e.tooltip.settings,Ot={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},oO={itemInteraction:{click:Ot,hover:Ot},axisInteraction:{click:Ot,hover:Ot},keyboardInteraction:Ot,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},np=ge({name:"tooltip",initialState:oO,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:q()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Ne(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:q()},removeTooltipEntrySettings:{reducer(e,t){var r=Ne(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:q()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:uO,replaceTooltipEntrySettings:lO,removeTooltipEntrySettings:cO,setTooltipSettingsState:kk,setActiveMouseOverItemIndex:sO,mouseLeaveItem:Mk,mouseLeaveChart:ip,setActiveClickItemIndex:Ik,setMouseOverAxisIndex:ap,setMouseClickAxisIndex:fO,setSyncInteraction:Vr,setKeyboardInteraction:Ii}=np.actions,dO=np.reducer;function rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rf(Object(r),!0).forEach(function(n){vO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vO(e,t,r){return(t=hO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hO(e){var t=pO(e,"string");return typeof t=="symbol"?t:t+""}function pO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mO(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function yO(e){return e.index!=null}var op=(e,t,r,n)=>{if(t==null)return Ot;var i=mO(e,t,r);if(i==null)return Ot;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(yO(i)){if(a)return Wn(Wn({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Wn(Wn({},Ot),{},{coordinate:i.coordinate})};function gO(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function bO(e,t){var r=gO(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}function wO(e,t,r){if(r==null||t==null)return!0;var n=fe(e,t);return n==null||!Qe(r)?!0:bO(n,r)}var Zr=(e,t,r,n)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!z(a))return i;var o=0,u=1/0;t.length>0&&(u=t.length-1);var l=Math.max(o,Math.min(a,u)),c=t[l];return c==null||wO(c,r,n)?String(l):null},up=(e,t,r,n,i,a,o)=>{if(a!=null){var u=o[0],l=u?.getPosition(a);if(l!=null)return l;var c=i?.[Number(a)];if(c)return r==="horizontal"?{x:c.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:c.coordinate}}},lp=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(n!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(o=>{var u;return((u=o.settings)===null||u===void 0?void 0:u.graphicalItemId)===i})},cp=e=>e.options.tooltipPayloadSearcher,$r=e=>e.tooltip;function nf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function af(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nf(Object(r),!0).forEach(function(n){xO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xO(e,t,r){return(t=PO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PO(e){var t=OO(e,"string");return typeof t=="symbol"?t:t+""}function OO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _O(e){if(typeof e=="string"||typeof e=="number")return e}function SO(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function AO(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function of(e){if(typeof e=="string")return e}function CO(e){if(!(e==null||typeof e!="object")){var t="name"in e?_O(e.name):void 0,r="unit"in e?SO(e.unit):void 0,n="dataKey"in e?AO(e.dataKey):void 0,i="payload"in e?e.payload:void 0,a="color"in e?of(e.color):void 0,o="fill"in e?of(e.fill):void 0;return{name:t,unit:r,dataKey:n,payload:i,color:a,fill:o}}}function EO(e,t){return e??t}var sp=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:u,computedData:l,dataStartIndex:c,dataEndIndex:s}=r,f=[];return e.reduce((d,v)=>{var h,{dataDefinedOnItem:p,settings:y}=v,g=EO(p,u),w=Array.isArray(g)?Xd(g,c,s):g,b=(h=y?.dataKey)!==null&&h!==void 0?h:n,P=y?.nameKey,x;if(n&&Array.isArray(w)&&!Array.isArray(w[0])&&o==="axis"?x=md(w,n,i):x=a(w,t,l,P),Array.isArray(x))x.forEach(S=>{var E,T,D=CO(S),j=D?.name,A=D?.dataKey,B=D?.payload,U=af(af({},y),{},{name:j,unit:D?.unit,color:(E=D?.color)!==null&&E!==void 0?E:y?.color,fill:(T=D?.fill)!==null&&T!==void 0?T:y?.fill});d.push(Sc({tooltipEntrySettings:U,dataKey:A,payload:B,value:fe(B,A),name:j==null?void 0:String(j)}))});else{var O;d.push(Sc({tooltipEntrySettings:y,dataKey:b,payload:x,value:fe(x,b),name:(O=fe(x,P))!==null&&O!==void 0?O:y?.name}))}return d},f)}},wl=_([le,xh,Tu],yh),kO=_([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),MO=_([oe,Ir],Ph),ir=_([kO,le,MO],Oh,{memoizeOptions:{resultEqualityCheck:ca}}),IO=_([ir],e=>e.filter(zu)),fp=_([ir],Ah,{memoizeOptions:{resultEqualityCheck:ca}}),TO=_([ir],e=>e.some(t=>!t.data)),Jt=_([fp,He],Eh),DO=_([IO,He,le],$v),xl=_([Jt,le,ir,He,TO,fp],kh),dp=_([le],vl),jO=_([le],e=>e.allowDataOverflow),vp=_([dp,jO],yv),NO=_([ir],e=>e.filter(zu)),$O=_([DO,NO,ia,Ev],Ih),RO=_([$O,He,oe,vp],Th),LO=_([ir],Sh),zO=_([Jt,le,LO,hl,oe,aw],Nh,{memoizeOptions:{resultEqualityCheck:la}}),FO=_([$h,oe,Ir],jr),BO=_([FO,oe],zh),UO=_([Rh,oe,Ir],jr),WO=_([UO,oe],Fh),KO=_([Lh,oe,Ir],jr),qO=_([KO,oe],Bh),HO=_([BO,qO,WO],Mi),GO=_([le,dp,vp,RO,zO,HO,X,oe],Uh),Er=_([le,X,Jt,xl,ia,oe,GO],Wh),YO=_([Er,le,wl],Kh),VO=_([le,Er,YO,oe],qh),hp=e=>{var t=oe(e),r=Ir(e),n=!1;return Mn(e,t,r,n)},pp=_([le,hp],aa),XO=_([le,wl,VO,pp],sl),ZO=_([XO],Fu),QO=_([X,xl,le,oe],Qh),JO=_([X,xl,le,oe],Yh),e_=(e,t,r,n,i,a,o,u)=>{if(t){var{type:l}=t,c=At(e,u);if(n){var s=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/s:0;return f=u==="angleAxis"&&i!=null&&i?.length>=2?Ve(i[0]-i[1])*2*f:f,c&&o?o.map((d,v)=>{var h=n.map(d);return z(h)?{coordinate:h+f,value:d,index:v,offset:f}:null}).filter(Se):n.domain().map((d,v)=>{var h=n.map(d);return z(h)?{coordinate:h+f,value:a?a[d]:d,index:v,offset:f}:null}).filter(Se)}}},kt=_([X,le,wl,ZO,hp,QO,JO,oe],e_),Pl=_([Jh,ep,aO],(e,t,r)=>tp(r.shared,e,t)),mp=e=>e.tooltip.settings.trigger,Ol=e=>e.tooltip.settings.defaultIndex,Tn=_([$r,Pl,mp,Ol],op),vn=_([Tn,Jt,Cr,Er],Zr),yp=_([kt,vn],rp),t_=_([Tn],e=>{if(e)return e.dataKey}),r_=_([Tn],e=>{if(e)return e.graphicalItemId}),gp=_([$r,Pl,mp,Ol],lp),n_=_([pt,mt,X,ve,kt,Ol,gp],up),i_=_([Tn,n_],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),a_=_([Tn],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),o_=_([gp,vn,He,Cr,yp,cp,Pl],sp),u_=_([o_],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uf(Object(r),!0).forEach(function(n){l_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l_(e,t,r){return(t=c_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c_(e){var t=s_(e,"string");return typeof t=="symbol"?t:t+""}function s_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f_=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.relativeY};if(e==="vertical")return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}},d_=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return ur(ur(ur({},n),Or(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:l}=n;return ur(ur(ur({},n),Or(n.cx,n.cy,u,l)),{},{angle:l,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function v_(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var bp=(e,t,r,n,i)=>{var a,o=(a=t?.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<o;u++){var l,c,s,f,d,v=u>0?(l=r[u-1])===null||l===void 0?void 0:l.coordinate:(c=r[o-1])===null||c===void 0?void 0:c.coordinate,h=(s=r[u])===null||s===void 0?void 0:s.coordinate,p=u>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[u+1])===null||d===void 0?void 0:d.coordinate,y=void 0;if(!(v==null||h==null||p==null))if(Ve(h-v)!==Ve(p-h)){var g=[];if(Ve(p-h)===Ve(i[1]-i[0])){y=p;var w=h+i[1]-i[0];g[0]=Math.min(w,(w+v)/2),g[1]=Math.max(w,(w+v)/2)}else{y=v;var b=p+i[1]-i[0];g[0]=Math.min(h,(b+h)/2),g[1]=Math.max(h,(b+h)/2)}var P=[Math.min(h,(y+h)/2),Math.max(h,(y+h)/2)];if(e>P[0]&&e<=P[1]||e>=g[0]&&e<=g[1]){var x;return(x=r[u])===null||x===void 0?void 0:x.index}}else{var O=Math.min(v,p),S=Math.max(v,p);if(e>(O+h)/2&&e<=(S+h)/2){var E;return(E=r[u])===null||E===void 0?void 0:E.index}}}else if(t)for(var T=0;T<o;T++){var D=t[T];if(D!=null){var j=t[T+1],A=t[T-1];if(T===0&&j!=null&&e<=(D.coordinate+j.coordinate)/2||T===o-1&&A!=null&&e>(D.coordinate+A.coordinate)/2||T>0&&T<o-1&&A!=null&&j!=null&&e>(D.coordinate+A.coordinate)/2&&e<=(D.coordinate+j.coordinate)/2)return D.index}}return-1},Tk=()=>$(Tu),_l=(e,t)=>t,wp=(e,t,r)=>r,Sl=(e,t,r,n)=>n,h_=_(kt,e=>pu(e,t=>t.coordinate)),Al=_([$r,_l,wp,Sl],op),Cl=_([Al,Jt,Cr,Er],Zr),p_=(e,t,r)=>{if(t!=null){var n=$r(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},xp=_([$r,_l,wp,Sl],lp),Ti=_([pt,mt,X,ve,kt,Sl,xp],up),Dk=_([Al,Ti],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),m_=_([kt,Cl],rp),jk=_([xp,Cl,He,Cr,m_,cp,_l],sp),Nk=_([Al,Cl],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),y_=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&v_(e,o)){var u=Gg(e,t),l=bp(u,a,i,r,n),c=f_(t,i,l,e);return{activeIndex:String(l),activeCoordinate:c}}},g_=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var u=Qb(e,r);if(u){var l=Yg(u,t),c=bp(l,o,a,n,i),s=d_(t,a,c,u);return{activeIndex:String(c),activeCoordinate:s}}}},b_=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?y_(e,t,n,i,a,o,u):g_(e,t,r,n,i,a,o)},w_=_(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),x_=_(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(nt)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:gw}});function lf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lf(Object(r),!0).forEach(function(n){P_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P_(e,t,r){return(t=O_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O_(e){var t=__(e,"string");return typeof t=="symbol"?t:t+""}function __(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S_={},A_={zIndexMap:Object.values(nt).reduce((e,t)=>cf(cf({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),S_)},C_=new Set(Object.values(nt));function E_(e){return C_.has(e)}var Pp=ge({name:"zIndex",initialState:A_,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:q()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!E_(r)&&delete e.zIndexMap[r])},prepare:q()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:q()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:q()}}}),{registerZIndexPortal:k_,unregisterZIndexPortal:po,registerZIndexPortalElement:M_,unregisterZIndexPortalElement:I_}=Pp.actions,T_=Pp.reducer;function ar(e){var{zIndex:t,children:r}=e,n=k0(),i=n&&t!==void 0&&t!==0,a=qe(),o=m.useRef(void 0),u=m.useRef(new Set),l=ie(),c=$(f=>w_(f,t,a));if(m.useLayoutEffect(()=>{if(!i){var f=u.current;f.forEach(v=>{l(po({zIndex:v}))}),f.clear(),o.current=void 0;return}if(u.current.has(t)||(l(k_({zIndex:t})),u.current.add(t)),c){o.current=c;var d=u.current;d.forEach(v=>{v!==t&&(l(po({zIndex:v})),d.delete(v))})}},[l,t,i,c]),m.useLayoutEffect(()=>{var f=u.current;return()=>{f.forEach(d=>{l(po({zIndex:d}))}),f.clear()}},[l]),!i)return r;var s=c??o.current;return s?hm.createPortal(r,s):null}var Op=m.createContext(null),$k=()=>m.useContext(Op),mo={exports:{}},sf;function D_(){return sf||(sf=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,s){this.fn=l,this.context=c,this.once=s||!1}function a(l,c,s,f,d){if(typeof s!="function")throw new TypeError("The listener must be a function");var v=new i(s,f||l,d),h=r?r+c:c;return l._events[h]?l._events[h].fn?l._events[h]=[l._events[h],v]:l._events[h].push(v):(l._events[h]=v,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],s,f;if(this._eventsCount===0)return c;for(f in s=this._events)t.call(s,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(s)):c},u.prototype.listeners=function(c){var s=r?r+c:c,f=this._events[s];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,v=f.length,h=new Array(v);d<v;d++)h[d]=f[d].fn;return h},u.prototype.listenerCount=function(c){var s=r?r+c:c,f=this._events[s];return f?f.fn?1:f.length:0},u.prototype.emit=function(c,s,f,d,v,h){var p=r?r+c:c;if(!this._events[p])return!1;var y=this._events[p],g=arguments.length,w,b;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,s),!0;case 3:return y.fn.call(y.context,s,f),!0;case 4:return y.fn.call(y.context,s,f,d),!0;case 5:return y.fn.call(y.context,s,f,d,v),!0;case 6:return y.fn.call(y.context,s,f,d,v,h),!0}for(b=1,w=new Array(g-1);b<g;b++)w[b-1]=arguments[b];y.fn.apply(y.context,w)}else{var P=y.length,x;for(b=0;b<P;b++)switch(y[b].once&&this.removeListener(c,y[b].fn,void 0,!0),g){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,s);break;case 3:y[b].fn.call(y[b].context,s,f);break;case 4:y[b].fn.call(y[b].context,s,f,d);break;default:if(!w)for(x=1,w=new Array(g-1);x<g;x++)w[x-1]=arguments[x];y[b].fn.apply(y[b].context,w)}}return!0},u.prototype.on=function(c,s,f){return a(this,c,s,f,!1)},u.prototype.once=function(c,s,f){return a(this,c,s,f,!0)},u.prototype.removeListener=function(c,s,f,d){var v=r?r+c:c;if(!this._events[v])return this;if(!s)return o(this,v),this;var h=this._events[v];if(h.fn)h.fn===s&&(!d||h.once)&&(!f||h.context===f)&&o(this,v);else{for(var p=0,y=[],g=h.length;p<g;p++)(h[p].fn!==s||d&&!h[p].once||f&&h[p].context!==f)&&y.push(h[p]);y.length?this._events[v]=y.length===1?y[0]:y:o(this,v)}return this},u.prototype.removeAllListeners=function(c){var s;return c?(s=r?r+c:c,this._events[s]&&o(this,s)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(mo)),mo.exports}var j_=D_();const N_=mn(j_);var hn=new N_,ru="recharts.syncEvent.tooltip",ff="recharts.syncEvent.brush",Rk=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!st(r))return e[r]}},$_={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},_p=ge({name:"options",initialState:$_,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),R_=_p.reducer,{createEventEmitter:L_}=_p.actions;function z_(e){return e.tooltip.syncInteraction}var F_={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Sp=ge({name:"chartData",initialState:F_,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:df,setDataStartEndIndexes:B_,setComputedData:Lk}=Sp.actions,U_=Sp.reducer,W_=["x","y"];function vf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(r),!0).forEach(function(n){K_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K_(e,t,r){return(t=q_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q_(e){var t=H_(e,"string");return typeof t=="symbol"?t:t+""}function H_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G_(e,t){if(e==null)return{};var r,n,i=Y_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Y_(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 V_(){var e=$(Du),t=$(ju),r=ie(),n=$(kv),i=$(kt),a=Ji(),o=_u(),u=$(l=>l.rootProps.className);m.useEffect(()=>{if(e==null)return yn;var l=(c,s,f)=>{if(t!==f&&e===c){if(s.payload.active===!1){r(Vr({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(n==="index"){var d;if(o&&s!==null&&s!==void 0&&(d=s.payload)!==null&&d!==void 0&&d.coordinate&&s.payload.sourceViewBox){var v=s.payload.coordinate,{x:h,y:p}=v,y=G_(v,W_),{x:g,y:w,width:b,height:P}=s.payload.sourceViewBox,x=lr(lr({},y),{},{x:o.x+(b?(h-g)/b:0)*o.width,y:o.y+(P?(p-w)/P:0)*o.height});r(lr(lr({},s),{},{payload:lr(lr({},s.payload),{},{coordinate:x})}))}else r(s);return}if(i!=null){var O;if(typeof n=="function"){var S={activeTooltipIndex:s.payload.index==null?void 0:Number(s.payload.index),isTooltipActive:s.payload.active,activeIndex:s.payload.index==null?void 0:Number(s.payload.index),activeLabel:s.payload.label,activeDataKey:s.payload.dataKey,activeCoordinate:s.payload.coordinate},E=n(i,S);O=i[E]}else n==="value"&&(O=i.find(Oe=>String(Oe.value)===s.payload.label));var{coordinate:T}=s.payload;if(T==null||o==null){r(Vr({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(O==null){r(Vr({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:s.payload.sourceViewBox,graphicalItemId:void 0}));return}var{x:D,y:j}=T,A=Math.min(D,o.x+o.width),B=Math.min(j,o.y+o.height),U={x:a==="horizontal"?O.coordinate:A,y:a==="horizontal"?B:O.coordinate},re=Vr({active:s.payload.active,coordinate:U,dataKey:s.payload.dataKey,index:String(O.index),label:s.payload.label,sourceViewBox:s.payload.sourceViewBox,graphicalItemId:s.payload.graphicalItemId});r(re)}}};return hn.on(ru,l),()=>{hn.off(ru,l)}},[u,r,t,e,n,i,a,o])}function X_(){var e=$(Du),t=$(ju),r=ie();m.useEffect(()=>{if(e==null)return yn;var n=(i,a,o)=>{t!==o&&e===i&&r(B_(a))};return hn.on(ff,n),()=>{hn.off(ff,n)}},[r,t,e])}function Z_(){var e=ie();m.useEffect(()=>{e(L_())},[e]),V_(),X_()}function zk(e,t,r,n,i,a){var o=$(h=>p_(h,e,t)),u=$(r_),l=$(ju),c=$(Du),s=$(kv),f=$(z_),d=f?.sourceViewBox!=null,v=_u();m.useEffect(()=>{if(!d&&c!=null&&l!=null){var h=Vr({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:v,graphicalItemId:u});hn.emit(ru,c,h,l)}},[d,r,o,u,i,n,l,c,s,a,v])}function Q_(e,t,r){return(t=J_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J_(e){var t=eS(e,"string");return typeof t=="symbol"?t:t+""}function eS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class tS{constructor(t){Q_(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hf(Object(r),!0).forEach(function(n){nS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nS(e,t,r){return(t=iS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iS(e){var t=aS(e,"string");return typeof t=="symbol"?t:t+""}function aS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oS={cacheSize:2e3,enableCache:!0},Ap=rS({},oS),pf=new tS(Ap.cacheSize),uS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},mf="recharts_measurement_span";function lS(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(u)}var yf=(e,t)=>{try{var r=document.getElementById(mf);r||(r=document.createElement("span"),r.setAttribute("id",mf),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,uS,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Qr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||On.isSsr)return{width:0,height:0};if(!Ap.enableCache)return yf(t,r);var n=lS(t,r),i=pf.get(n);if(i)return i;var a=yf(t,r);return pf.set(n,a),a},Cp;function cS(e,t,r){return(t=sS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sS(e){var t=fS(e,"string");return typeof t=="symbol"?t:t+""}function fS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dS=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,vS=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,hS={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},pS=["cm","mm","pt","pc","in","Q","px"];function mS(e){return pS.includes(e)}var vr="NaN";function yS(e,t){return e*hS[t]}class se{static parse(t){var r,[,n,i]=(r=vS.exec(t))!==null&&r!==void 0?r:[];return n==null?se.NaN:new se(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,st(t)&&(this.unit=""),r!==""&&!dS.test(r)&&(this.num=NaN,this.unit=""),mS(r)&&(this.num=yS(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new se(NaN,""):new se(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new se(NaN,""):new se(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new se(NaN,""):new se(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new se(NaN,""):new se(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return st(this.num)}}Cp=se;cS(se,"NaN",new Cp(NaN,""));function Ep(e){if(e==null||e.includes(vr))return vr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=gf.exec(t))!==null&&r!==void 0?r:[],o=se.parse(n??""),u=se.parse(a??""),l=i==="*"?o.multiply(u):o.divide(u);if(l.isNaN())return vr;t=t.replace(gf,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,s,f,d]=(c=bf.exec(t))!==null&&c!==void 0?c:[],v=se.parse(s??""),h=se.parse(d??""),p=f==="+"?v.add(h):v.subtract(h);if(p.isNaN())return vr;t=t.replace(bf,p.toString())}return t}var wf=/\(([^()]*)\)/;function gS(e){for(var t=e,r;(r=wf.exec(t))!=null;){var[,n]=r;t=t.replace(wf,Ep(n))}return t}function bS(e){var t=e.replace(/\s+/g,"");return t=gS(t),t=Ep(t),t}function wS(e){try{return bS(e)}catch{return vr}}function yo(e){var t=wS(e.slice(5,-1));return t===vr?"":t}var xS=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],PS=["dx","dy","angle","className","breakAll"];function nu(){return nu=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},nu.apply(null,arguments)}function xf(e,t){if(e==null)return{};var r,n,i=OS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function OS(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}var kp=/[ \f\n\r\t\v\u2028\u2029]+/,Mp=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];de(t)||(r?i=t.toString().split(""):i=t.toString().split(kp));var a=i.map(u=>({word:u,width:Qr(u,n).width})),o=r?0:Qr(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function Ip(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function _S(e){return de(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var Tp=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:u}=a,l=i[i.length-1];if(l&&u!=null&&(t==null||n||l.width+u+r<Number(t)))l.words.push(o),l.width+=u+r;else{var c={words:[o],width:u};i.push(c)}return i},[]),Dp=e=>e.reduce((t,r)=>t.width>r.width?t:r),SS="…",Pf=(e,t,r,n,i,a,o,u)=>{var l=e.slice(0,t),c=Mp({breakAll:r,style:n,children:l+SS});if(!c)return[!1,[]];var s=Tp(c.wordsWithComputedWidth,a,o,u),f=s.length>i||Dp(s).width>Number(a);return[f,s]},AS=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:l}=e,c=N(a),s=String(o),f=Tp(t,n,r,i);if(!c||i)return f;var d=f.length>a||Dp(f).width>Number(n);if(!d)return f;for(var v=0,h=s.length-1,p=0,y;v<=h&&p<=s.length-1;){var g=Math.floor((v+h)/2),w=g-1,[b,P]=Pf(s,w,l,u,a,n,r,i),[x]=Pf(s,g,l,u,a,n,r,i);if(!b&&!x&&(v=g+1),b&&x&&(h=g-1),!b&&x){y=P;break}p++}return y||f},Of=e=>{var t=de(e)?[]:e.toString().split(kp);return[{words:t,width:void 0}]},CS=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!On.isSsr){var u,l,c=Mp({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:s,spaceWidth:f}=c;u=s,l=f}else return Of(n);return AS({breakAll:a,children:n,maxLines:o,style:i},u,l,t,!!r)}return Of(n)},jp="#808080",ES={angle:0,breakAll:!1,capHeight:"0.71em",fill:jp,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},El=m.forwardRef((e,t)=>{var r=tr(e,ES),{x:n,y:i,lineHeight:a,capHeight:o,fill:u,scaleToFit:l,textAnchor:c,verticalAnchor:s}=r,f=xf(r,xS),d=m.useMemo(()=>CS({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:v,dy:h,angle:p,className:y,breakAll:g}=f,w=xf(f,PS);if(!wr(n)||!wr(i)||d.length===0)return null;var b=Number(n)+(N(v)?v:0),P=Number(i)+(N(h)?h:0);if(!z(b)||!z(P))return null;var x;switch(s){case"start":x=yo("calc(".concat(o,")"));break;case"middle":x=yo("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:x=yo("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[],S=d[0];if(l&&S!=null){var E=S.width,{width:T}=f;O.push("scale(".concat(N(T)&&N(E)?T/E:1,")"))}return p&&O.push("rotate(".concat(p,", ").concat(b,", ").concat(P,")")),O.length&&(w.transform=O.join(" ")),m.createElement("text",nu({},qt(w),{ref:t,x:b,y:P,className:ye("recharts-text",y),textAnchor:c,fill:u.includes("url")?jp:u}),d.map((D,j)=>{var A=D.words.join(g?"":" ");return m.createElement("tspan",{x:b,dy:j===0?x:a,key:"".concat(A,"-").concat(j)},A)}))});El.displayName="Text";function _f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_f(Object(r),!0).forEach(function(n){kS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kS(e,t,r){return(t=MS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e){var t=IS(e,"string");return typeof t=="symbol"?t:t+""}function IS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TS=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:u,upperWidth:l,lowerWidth:c}=Ou(t),s=a,f=a+(l-c)/2,d=(s+f)/2,v=(l+c)/2,h=s+l/2,p=u>=0?1:-1,y=p*n,g=p>0?"end":"start",w=p>0?"start":"end",b=l>=0?1:-1,P=b*n,x=b>0?"end":"start",O=b>0?"start":"end",S=i;if(r==="top"){var E={x:s+l/2,y:o-y,horizontalAnchor:"middle",verticalAnchor:g};return S&&(E.height=Math.max(o-S.y,0),E.width=l),E}if(r==="bottom"){var T={x:f+c/2,y:o+u+y,horizontalAnchor:"middle",verticalAnchor:w};return S&&(T.height=Math.max(S.y+S.height-(o+u),0),T.width=c),T}if(r==="left"){var D={x:d-P,y:o+u/2,horizontalAnchor:x,verticalAnchor:"middle"};return S&&(D.width=Math.max(D.x-S.x,0),D.height=u),D}if(r==="right"){var j={x:d+v+P,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return S&&(j.width=Math.max(S.x+S.width-j.x,0),j.height=u),j}var A=S?{width:v,height:u}:{};return r==="insideLeft"?Ye({x:d+P,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"},A):r==="insideRight"?Ye({x:d+v-P,y:o+u/2,horizontalAnchor:x,verticalAnchor:"middle"},A):r==="insideTop"?Ye({x:s+l/2,y:o+y,horizontalAnchor:"middle",verticalAnchor:w},A):r==="insideBottom"?Ye({x:f+c/2,y:o+u-y,horizontalAnchor:"middle",verticalAnchor:g},A):r==="insideTopLeft"?Ye({x:s+P,y:o+y,horizontalAnchor:O,verticalAnchor:w},A):r==="insideTopRight"?Ye({x:s+l-P,y:o+y,horizontalAnchor:x,verticalAnchor:w},A):r==="insideBottomLeft"?Ye({x:f+P,y:o+u-y,horizontalAnchor:O,verticalAnchor:g},A):r==="insideBottomRight"?Ye({x:f+c-P,y:o+u-y,horizontalAnchor:x,verticalAnchor:g},A):r&&typeof r=="object"&&(N(r.x)||Gt(r.x))&&(N(r.y)||Gt(r.y))?Ye({x:a+Yt(r.x,v),y:o+Yt(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},A):Ye({x:h,y:o+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},A)},DS=["labelRef"],jS=["content"];function Sf(e,t){if(e==null)return{};var r,n,i=NS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function NS(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 Af(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xr(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){$S(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 $S(e,t,r){return(t=RS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RS(e){var t=LS(e,"string");return typeof t=="symbol"?t:t+""}function LS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(){return at=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},at.apply(null,arguments)}var Np=m.createContext(null),zS=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:u}=e,l=m.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return m.createElement(Np.Provider,{value:l},u)},$p=()=>{var e=m.useContext(Np),t=_u();return e||(t?Ou(t):void 0)},FS=m.createContext(null),BS=()=>{var e=m.useContext(FS),t=$(jv);return e||t},US=e=>{var{value:t,formatter:r}=e,n=de(e.children)?t:e.children;return typeof r=="function"?r(n):n},kl=e=>e!=null&&typeof e=="function",WS=(e,t)=>{var r=Ve(t-e),n=Math.min(Math.abs(t-e),360);return r*n},KS=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:u,cy:l,innerRadius:c,outerRadius:s,startAngle:f,endAngle:d,clockWise:v}=i,h=(c+s)/2,p=WS(f,d),y=p>=0?1:-1,g,w;switch(t){case"insideStart":g=f+y*a,w=v;break;case"insideEnd":g=d-y*a,w=!v;break;case"end":g=d+y*a,w=v;break;default:throw new Error("Unsupported position ".concat(t))}w=p<=0?w:!w;var b=Or(u,l,h,g),P=Or(u,l,h,g+(w?1:-1)*359),x="M".concat(b.x,",").concat(b.y,`