@unchainedshop/admin-ui 5.0.0-alpha.12 → 5.0.0-alpha.14

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 (292) hide show
  1. package/dist/{chunk-ATZJXTRA.js → chunk-5UHBGLFV.js} +39 -1
  2. package/dist/{chunk-4MXPTVDL.js → chunk-6WMH7PLC.js} +1 -1
  3. package/dist/{chunk-GWMLIF3C.js → chunk-EKWWSFDK.js} +1 -1
  4. package/dist/{chunk-Q6S3LBUF.js → chunk-JC6PXYZP.js} +7 -1
  5. package/dist/{chunk-BOMSMJF2.js → chunk-JGER2LQO.js} +1 -0
  6. package/dist/{chunk-YUXHILXY.js → chunk-M2242FCR.js} +1 -1
  7. package/dist/{chunk-33ZO52Z7.js → chunk-NUGWX3KO.js} +123 -19
  8. package/dist/{chunk-ED2FP42R.js → chunk-XZ2V6XTD.js} +2 -2
  9. package/dist/components/ui/index.d.ts +1 -0
  10. package/dist/components/ui/index.d.ts.map +1 -1
  11. package/dist/form.js +7 -99
  12. package/dist/gql/operation-types.d.ts +51 -18
  13. package/dist/gql/operation-types.d.ts.map +1 -1
  14. package/dist/gql/schema-types.d.ts +25 -0
  15. package/dist/gql/schema-types.d.ts.map +1 -1
  16. package/dist/hooks.js +4 -4
  17. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +1 -0
  18. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -1
  19. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +1 -0
  20. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -1
  21. package/dist/modules/accounts.js +47 -1
  22. package/dist/modules/assortment.js +1 -1
  23. package/dist/modules/common/components/SearchWithTags.d.ts +10 -0
  24. package/dist/modules/common/components/SearchWithTags.d.ts.map +1 -0
  25. package/dist/modules/common/hooks/useShopInfo.d.ts +1 -0
  26. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
  27. package/dist/modules/enrollment.js +24 -10
  28. package/dist/modules/forms/lib/validators.d.ts +3 -1
  29. package/dist/modules/forms/lib/validators.d.ts.map +1 -1
  30. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -1
  31. package/dist/modules/order.js +0 -1
  32. package/dist/modules/product/hooks/useProductsCount.d.ts +1 -1
  33. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -1
  34. package/dist/modules/product-review.js +1 -1
  35. package/dist/modules/product.js +436 -24
  36. package/dist/modules/quotation.js +1 -0
  37. package/dist/ui.js +1317 -411
  38. package/out/403/index.html +3 -3
  39. package/out/404/index.html +3 -3
  40. package/out/404.html +3 -3
  41. package/out/423/index.html +3 -3
  42. package/out/500/index.html +3 -3
  43. package/out/_next/static/WEaZ5SW9HLnJWzXs84JMH/_buildManifest.js +266 -0
  44. package/out/_next/static/chunks/{2_0v0fw6x71zy.js → 00p6gl0n0kga2.js} +4 -4
  45. package/out/_next/static/chunks/0389l__ljgq-b.js +1 -0
  46. package/out/_next/static/chunks/039xltalow0bh.js +1 -0
  47. package/out/_next/static/chunks/{0w9d4swf95hvu.js → 03awz8e25u6-9.js} +1 -1
  48. package/out/_next/static/chunks/04kydtjv2qqb1.js +39 -0
  49. package/out/_next/static/chunks/05ghb-a4hshp1.js +24 -0
  50. package/out/_next/static/chunks/06gqojz2tfk7h.js +33 -0
  51. package/out/_next/static/chunks/08e3-wndual-j.js +183 -0
  52. package/out/_next/static/chunks/{41c4n9whpyrjc.js → 08gngcgmdigfl.js} +2 -2
  53. package/out/_next/static/chunks/{3e7d8sb4289js.js → 08htfpcq8k2ct.js} +1 -1
  54. package/out/_next/static/chunks/{45c05mbjow5wz.js → 0ao00r36i0nko.js} +1 -1
  55. package/out/_next/static/chunks/{01isyk4v59s_4.js → 0az9r1m1m5nw7.js} +2 -2
  56. package/out/_next/static/chunks/{2q988j4vovsiy.js → 0bahbwxzev843.js} +3 -3
  57. package/out/_next/static/chunks/{1z-etrje5tsj6.js → 0ejd4so6pfsb9.js} +2 -1
  58. package/out/_next/static/chunks/0f0aouv41459l.js +99 -0
  59. package/out/_next/static/chunks/{3fevbt4ysloo8.js → 0f4mwm9gegsvc.js} +3 -3
  60. package/out/_next/static/chunks/{1fehej_7rgmmo.js → 0ffdde8s4b7e2.js} +1 -1
  61. package/out/_next/static/chunks/0ftb36h7poyeo.js +235 -0
  62. package/out/_next/static/chunks/{1z1d11slpalrq.js → 0gclli_nyb0px.js} +1 -1
  63. package/out/_next/static/chunks/{0hv3x0mo1tt7i.js → 0hv62tllrjbgx.js} +2 -2
  64. package/out/_next/static/chunks/0ik3suboifvvc.js +1 -0
  65. package/out/_next/static/chunks/{3exy4ii5maq4x.js → 0jsbw2npug66o.js} +1 -1
  66. package/out/_next/static/chunks/0lgoprkr2wj68.js +12 -0
  67. package/out/_next/static/chunks/0mpgc4f7hc1dd.js +7 -0
  68. package/out/_next/static/chunks/{2y11qf38baxpu.js → 0oauw10y-zu7q.js} +5 -5
  69. package/out/_next/static/chunks/0pnifxx4n6jz4.js +30 -0
  70. package/out/_next/static/chunks/{2bxdh-td1el8z.js → 0rj53mrsrvu49.js} +1 -1
  71. package/out/_next/static/chunks/{3ek680kdzjdr7.js → 0v2f0xq8mp63h.js} +1 -1
  72. package/out/_next/static/chunks/{32whi9clpxjd0.js → 0wvck3kmtd8h3.js} +1 -1
  73. package/out/_next/static/chunks/{3h6a3clw5m5ro.js → 0y-xf7e4lgmru.js} +1 -1
  74. package/out/_next/static/chunks/12z0--swhgre2.js +33 -0
  75. package/out/_next/static/chunks/139wqbl161pdw.js +12 -0
  76. package/out/_next/static/chunks/{1hzt0aoixrv4_.js → 13sl42_jx13hh.js} +2 -2
  77. package/out/_next/static/chunks/14wav1vmqi2oo.js +371 -0
  78. package/out/_next/static/chunks/{3b1kt-r_75q1a.js → 15oodwh44nrve.js} +2 -2
  79. package/out/_next/static/chunks/15ullli2vlj87.js +8 -0
  80. package/out/_next/static/chunks/17g3a6iz0s59f.js +837 -0
  81. package/out/_next/static/chunks/{2m38nntt3z8zi.js → 19-fs9eq1syvw.js} +3 -3
  82. package/out/_next/static/chunks/{3fu072xwkf88o.js → 195cwzh3q1i0h.js} +2 -1
  83. package/out/_next/static/chunks/1fou9xz0_rm6d.js +5 -0
  84. package/out/_next/static/chunks/{37jjn1wguhj-a.js → 1k1b69hvwr-0g.js} +1 -1
  85. package/out/_next/static/chunks/{0rrhyxuk32t3n.js → 1kyjdq0bnkw10.js} +2 -2
  86. package/out/_next/static/chunks/{0v1tb34y7e1y4.js → 1l2ix83845lui.js} +1 -1
  87. package/out/_next/static/chunks/{3x_gia2m5w9_l.js → 1ossmsdseqyeu.js} +6 -6
  88. package/out/_next/static/chunks/1pm7k55e4pfpm.js +59 -0
  89. package/out/_next/static/chunks/1pqyz1opm5_7r.js +1 -0
  90. package/out/_next/static/chunks/{39moagn46hde9.js → 1qd4fupa708s4.js} +2 -2
  91. package/out/_next/static/chunks/{3o-h2po9z09dk.js → 1t1ecrjkykbv1.js} +1 -1
  92. package/out/_next/static/chunks/{28o6402k4vuky.js → 1tej7js0fwv1h.js} +3 -3
  93. package/out/_next/static/chunks/1th8knz7txt9f.js +5 -0
  94. package/out/_next/static/chunks/1tuf110jbpl_r.js +1 -0
  95. package/out/_next/static/chunks/1tzkeg4c-br-z.js +17 -0
  96. package/out/_next/static/chunks/{0_3suta3t3lus.js → 1u7l4tos3wysc.js} +2 -2
  97. package/out/_next/static/chunks/1v0ag3k96c56s.js +1 -0
  98. package/out/_next/static/chunks/1w6iuc_ba9g-3.js +3 -0
  99. package/out/_next/static/chunks/1x7cm_fuwp9m8.js +1 -0
  100. package/out/_next/static/chunks/1yv22tvuqofr_.js +296 -0
  101. package/out/_next/static/chunks/{0rt4le6syjqdj.js → 2-s-hteo3lrnj.js} +12 -12
  102. package/out/_next/static/chunks/20p146xfq-xrq.js +5 -0
  103. package/out/_next/static/chunks/{3ujdligrod612.js → 20t2g2u3jhtvy.js} +1 -1
  104. package/out/_next/static/chunks/{1ug1ie2lrhi0a.js → 231mhpexhdm2g.js} +1 -1
  105. package/out/_next/static/chunks/24zfmgc4cu-n1.js +9 -0
  106. package/out/_next/static/chunks/{44b7_q6pkf1k9.js → 25b_pi2_ro9yy.js} +1 -1
  107. package/out/_next/static/chunks/{2uo6puoi0y082.js → 2693w1263bb3s.js} +1 -1
  108. package/out/_next/static/chunks/{0i481ym5-ss1t.js → 26yarz_db5ms0.js} +1 -1
  109. package/out/_next/static/chunks/28xbb7hkhkoup.js +1 -0
  110. package/out/_next/static/chunks/299pou8yuoq6b.js +116 -0
  111. package/out/_next/static/chunks/2_cq751vth7u7.js +81 -0
  112. package/out/_next/static/chunks/2a2cayocu5mc3.js +1 -0
  113. package/out/_next/static/chunks/{1th1-x1szvnq8.js → 2dn2ma73q9ye0.js} +1 -1
  114. package/out/_next/static/chunks/{3www97fxyknos.js → 2fnn6q9fmhu3s.js} +1 -1
  115. package/out/_next/static/chunks/{3pls-kicv4xu9.js → 2ga95n_v_6_7b.js} +1 -1
  116. package/out/_next/static/chunks/{1q7wxp4rlhy0x.js → 2gfljy_oo0nnr.js} +5 -5
  117. package/out/_next/static/chunks/{0qv2nce7okzy5.js → 2gfot_-pkeohl.js} +1 -1
  118. package/out/_next/static/chunks/2h4bxz0oww5pk.js +4 -0
  119. package/out/_next/static/chunks/2j4g1tyyp8ta1.js +1 -0
  120. package/out/_next/static/chunks/2mt78e61hd_4p.js +100 -0
  121. package/out/_next/static/chunks/{05474mknnr_tw.js → 2rri_ex6s-d8g.js} +1 -1
  122. package/out/_next/static/chunks/{2ud5j0_nqocf4.js → 2sc6dwzzc2t7n.js} +1 -1
  123. package/out/_next/static/chunks/2texlu369byon.js +1 -0
  124. package/out/_next/static/chunks/{3lr6hkso67d68.js → 2tq8sqd3-wavo.js} +2 -2
  125. package/out/_next/static/chunks/2u2obxhc_n6xk.js +119 -0
  126. package/out/_next/static/chunks/{157ndq6b9jcvv.js → 2u4cc_r_qo0s4.js} +4 -4
  127. package/out/_next/static/chunks/2u6n7ohruqpxp.js +1 -0
  128. package/out/_next/static/chunks/2u9myo1sjc-q0.js +276 -0
  129. package/out/_next/static/chunks/{0we1tw4xvdb7o.js → 2ubbeh02scr2l.js} +2 -2
  130. package/out/_next/static/chunks/{1w6gc_cygbi6h.js → 2v_bdu-atp2qq.js} +1 -1
  131. package/out/_next/static/chunks/{1gv0k-w7m83om.js → 2vyv371s8n48m.js} +2 -2
  132. package/out/_next/static/chunks/{24caedynuzux0.js → 2xd_5hafdvicw.js} +1 -1
  133. package/out/_next/static/chunks/2ym9q2u0yw0m8.js +326 -0
  134. package/out/_next/static/chunks/{131uuhqexo4si.js → 3-grp4-_b_uin.js} +2 -1
  135. package/out/_next/static/chunks/{2s-0q8i8lr2p2.js → 31i76bjr7wp3u.js} +1 -1
  136. package/out/_next/static/chunks/{1j2gw9gyg8j80.js → 32thgoqghnqfk.js} +2 -2
  137. package/out/_next/static/chunks/{3hmoy4f23y1s4.js → 33svzh7wrh2ca.js} +4 -4
  138. package/out/_next/static/chunks/{345s7967cwd02.js → 33v1m9okpss0r.js} +1 -1
  139. package/out/_next/static/chunks/34gspkpv7wikw.js +8 -0
  140. package/out/_next/static/chunks/{0mcu2o1ir2t_w.js → 35zhvtyq31ani.js} +1 -1
  141. package/out/_next/static/chunks/36vqjcd_y2j30.js +1 -0
  142. package/out/_next/static/chunks/{1msc4qrgaanh7.js → 38043sp-g7lor.js} +2 -2
  143. package/out/_next/static/chunks/395bs5xmcnl_3.js +31 -0
  144. package/out/_next/static/chunks/{2w3z7kqh6nbmw.js → 3_jqu6hq_bq0s.js} +2 -2
  145. package/out/_next/static/chunks/{153-_av1r1ssb.js → 3_tuio1shb_8w.js} +1 -1
  146. package/out/_next/static/chunks/{0br42_xli8-2x.js → 3_u_uxeaysv2y.js} +1 -1
  147. package/out/_next/static/chunks/{1bypzyw5fs3w2.js → 3e9x78_cfl4gs.js} +4 -4
  148. package/out/_next/static/chunks/3i7obrooylax2.js +1 -0
  149. package/out/_next/static/chunks/3ij_85v4doyfu.js +2 -0
  150. package/out/_next/static/chunks/3jgmo9q79w1-c.js +290 -0
  151. package/out/_next/static/chunks/{42dygj7ul4k54.js → 3jp_xvjzuj3ts.js} +2 -2
  152. package/out/_next/static/chunks/{1k06h8wbfrx_v.js → 3l9ixfzewn8ct.js} +1 -1
  153. package/out/_next/static/chunks/3ltrxqm61t2um.js +1 -0
  154. package/out/_next/static/chunks/{1bxznw06g-5u2.js → 3qt1oiw306jtf.js} +2 -2
  155. package/out/_next/static/chunks/{0zqdvl0b4w5nc.js → 3s5_6nq23zb_5.js} +1 -1
  156. package/out/_next/static/chunks/{1vzs8hvrsoslf.js → 3s_74oi_rqb7q.js} +1 -1
  157. package/out/_next/static/chunks/{2-qo63s4vlxol.js → 3skconxcf6r_s.js} +5 -5
  158. package/out/_next/static/chunks/{3xs_undkbcqp7.js → 3ud-crkzgoj7q.js} +3 -3
  159. package/out/_next/static/chunks/{2u64ldp2xfy8a.js → 3wr9v36meolw7.js} +71 -70
  160. package/out/_next/static/chunks/3xun85a44o067.js +1 -0
  161. package/out/_next/static/chunks/{0cdk-eqghrgee.js → 407elvwrmcfn6.js} +1 -1
  162. package/out/_next/static/chunks/40j4nxaeofft-.js +1 -0
  163. package/out/_next/static/chunks/{3k01tdsm6l20w.js → 42ijceja_327z.js} +2 -2
  164. package/out/_next/static/chunks/440jwge6wnjj6.js +1 -0
  165. package/out/_next/static/chunks/44xnlcqhabyj6.js +174 -0
  166. package/out/_offline/index.html +3 -3
  167. package/out/account/forgot-password/index.html +3 -3
  168. package/out/account/index.html +3 -3
  169. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  170. package/out/assortments/index.html +3 -3
  171. package/out/assortments/new/index.html +3 -3
  172. package/out/copilot/index.html +3 -3
  173. package/out/country/CountryDetailPage/index.html +3 -3
  174. package/out/country/index.html +3 -3
  175. package/out/country/new/index.html +3 -3
  176. package/out/currency/CurrencyDetailPage/index.html +3 -3
  177. package/out/currency/index.html +3 -3
  178. package/out/currency/new/index.html +3 -3
  179. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  180. package/out/delivery-provider/index.html +3 -3
  181. package/out/delivery-provider/new/index.html +3 -3
  182. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  183. package/out/enrollments/index.html +3 -3
  184. package/out/events/EventDetailPage/index.html +3 -3
  185. package/out/events/index.html +3 -3
  186. package/out/exports/index.html +3 -3
  187. package/out/ext/[[...slug]]/index.html +3 -3
  188. package/out/external/index.html +3 -3
  189. package/out/filters/FilterDetailPage/index.html +3 -3
  190. package/out/filters/index.html +3 -3
  191. package/out/filters/new/index.html +3 -3
  192. package/out/index.html +3 -3
  193. package/out/install/index.html +3 -3
  194. package/out/language/LanguageDetailPage/index.html +3 -3
  195. package/out/language/index.html +3 -3
  196. package/out/language/new/index.html +3 -3
  197. package/out/log-in/index.html +3 -3
  198. package/out/login-code/index.html +12 -0
  199. package/out/orders/OrderDetailPage/index.html +3 -3
  200. package/out/orders/index.html +3 -3
  201. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  202. package/out/payment-provider/index.html +3 -3
  203. package/out/payment-provider/new/index.html +3 -3
  204. package/out/products/ProductDetailPage/index.html +3 -3
  205. package/out/products/index.html +3 -3
  206. package/out/products/new/index.html +3 -3
  207. package/out/quotations/QuotationDetailPage/index.html +3 -3
  208. package/out/quotations/index.html +3 -3
  209. package/out/reset-password/index.html +3 -3
  210. package/out/sign-up/index.html +3 -3
  211. package/out/styleguide/index.html +3 -3
  212. package/out/tokens/TokenDetailPage/index.html +3 -3
  213. package/out/tokens/index.html +3 -3
  214. package/out/users/UserDetailPage/index.html +3 -3
  215. package/out/users/index.html +3 -3
  216. package/out/users/new/index.html +3 -3
  217. package/out/verify-email/index.html +3 -3
  218. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  219. package/out/warehousing-provider/index.html +3 -3
  220. package/out/warehousing-provider/new/index.html +3 -3
  221. package/out/works/WorkDetailPage/index.html +3 -3
  222. package/out/works/WorkQueueListView/index.html +3 -3
  223. package/out/works/index.html +3 -3
  224. package/out/works/management/index.html +3 -3
  225. package/package.json +1 -1
  226. package/src/modules/accounts/hooks/useLoginWithLoginCode.ts +45 -0
  227. package/src/modules/accounts/hooks/useRequestLoginCode.ts +31 -0
  228. package/src/modules/accounts/index.ts +2 -0
  229. package/src/modules/common/hooks/useShopInfo.ts +1 -0
  230. package/src/modules/enrollment/fragments/EnrollmentDetailFragment.ts +3 -2
  231. package/src/modules/enrollment/hooks/useSuspendEnrollment.ts +5 -3
  232. package/src/modules/enrollment/hooks/useTerminateEnrollment.ts +15 -3
  233. package/src/modules/enrollment/hooks/useUpdateEnrollmentExpires.ts +38 -0
  234. package/src/modules/order/fragments/OrderDetailFragment.ts +0 -1
  235. package/src/modules/product/hooks/useProductTokenization.ts +1 -0
  236. package/src/modules/product/hooks/useProductsCount.ts +4 -0
  237. package/src/modules/product/hooks/useUpdateProductCommerce.ts +2 -13
  238. package/src/modules/product/hooks/useUpdateProductTokenization.ts +8 -1
  239. package/src/modules/product/index.ts +3 -0
  240. package/src/modules/quotation/fragments/QuotationDetailFragment.ts +1 -0
  241. package/src/sdk/README.md +1 -1
  242. package/out/_next/static/bg3Z_ZBjStiTvJAHlsPDE/_buildManifest.js +0 -262
  243. package/out/_next/static/chunks/00wlebfe9j80r.js +0 -24
  244. package/out/_next/static/chunks/03x_mgpai_kbn.js +0 -1
  245. package/out/_next/static/chunks/04327_1fq5i7-.js +0 -9
  246. package/out/_next/static/chunks/0_a5fzdztv84p.js +0 -272
  247. package/out/_next/static/chunks/0d54jo566j9ka.js +0 -12
  248. package/out/_next/static/chunks/0gfia1t8drmnx.js +0 -182
  249. package/out/_next/static/chunks/0gwd6ju8j_bwr.js +0 -39
  250. package/out/_next/static/chunks/0j46qnxaxeqk_.js +0 -1
  251. package/out/_next/static/chunks/0op3htrvd-ix6.js +0 -5
  252. package/out/_next/static/chunks/1-wbp_4f-c4-3.js +0 -837
  253. package/out/_next/static/chunks/11vnr4kb9qkjr.js +0 -1
  254. package/out/_next/static/chunks/14eqp21pspjud.js +0 -234
  255. package/out/_next/static/chunks/1eokbzdgdicpa.js +0 -33
  256. package/out/_next/static/chunks/1f0t23r6y0hni.js +0 -1
  257. package/out/_next/static/chunks/1ia6hdgf7pj9y.js +0 -174
  258. package/out/_next/static/chunks/1oqc8etm-romv.js +0 -1
  259. package/out/_next/static/chunks/1tbd6m-xvx0um.js +0 -353
  260. package/out/_next/static/chunks/1tw97cvdosb89.js +0 -5
  261. package/out/_next/static/chunks/1ubmbegreszhk.js +0 -1
  262. package/out/_next/static/chunks/1uw7hr3o4w5cj.js +0 -8
  263. package/out/_next/static/chunks/1xybsisfyvqrj.js +0 -115
  264. package/out/_next/static/chunks/1zdral15la_p7.js +0 -99
  265. package/out/_next/static/chunks/2-4610weysas_.js +0 -1
  266. package/out/_next/static/chunks/22duvsj-priip.js +0 -7
  267. package/out/_next/static/chunks/22rdge7enz4nd.js +0 -12
  268. package/out/_next/static/chunks/2b4k5t_myq-pa.js +0 -1
  269. package/out/_next/static/chunks/2dz0_3jf4m9cy.js +0 -31
  270. package/out/_next/static/chunks/2erqawjj0rnih.js +0 -117
  271. package/out/_next/static/chunks/2grm6dtosrvoq.js +0 -1
  272. package/out/_next/static/chunks/2imf3_f1_ex86.js +0 -1
  273. package/out/_next/static/chunks/2iwst7mjldlcz.js +0 -1
  274. package/out/_next/static/chunks/2ja0dztzyw8zw.js +0 -1
  275. package/out/_next/static/chunks/2ja1--2x_gs49.js +0 -83
  276. package/out/_next/static/chunks/2lec5u8obskt6.js +0 -5
  277. package/out/_next/static/chunks/2pogx3xggqd8y.js +0 -1
  278. package/out/_next/static/chunks/3205eg3ochzp4.js +0 -297
  279. package/out/_next/static/chunks/3368kg846t33d.js +0 -57
  280. package/out/_next/static/chunks/33oz-znvi5-m6.js +0 -1
  281. package/out/_next/static/chunks/3e38rrs6dszgt.js +0 -8
  282. package/out/_next/static/chunks/3eth7s2-06yuz.js +0 -1
  283. package/out/_next/static/chunks/3i4_3b36nutw7.js +0 -33
  284. package/out/_next/static/chunks/3lzin6_25n8rs.js +0 -30
  285. package/out/_next/static/chunks/3onharcadlou0.js +0 -327
  286. package/out/_next/static/chunks/3tg_clsx6ux4o.js +0 -1
  287. package/out/_next/static/chunks/3ttz1zgoq3xmp.js +0 -1
  288. package/out/_next/static/chunks/3ytp87o76hzmx.js +0 -100
  289. package/out/_next/static/chunks/40kvu3lk3s9h2.js +0 -276
  290. package/out/_next/static/chunks/44qc0zn0tudui.js +0 -2
  291. /package/out/_next/static/{bg3Z_ZBjStiTvJAHlsPDE → WEaZ5SW9HLnJWzXs84JMH}/_clientMiddlewareManifest.js +0 -0
  292. /package/out/_next/static/{bg3Z_ZBjStiTvJAHlsPDE → WEaZ5SW9HLnJWzXs84JMH}/_ssgManifest.js +0 -0
package/dist/ui.js CHANGED
@@ -1,19 +1,19 @@
1
- import { FormWrapper_default, Button_default, ImageWithFallback_default, SaveAndCancelButtons_default, NoData_default, FormWrapperContext } from './chunk-YUXHILXY.js';
2
- export { Button_default as Button, DraggableIcon_default as DraggableIcon, FormWrapper_default as FormWrapper, ImageWithFallback_default as ImageWithFallback, NoData_default as NoData, NoImageSvg_default as NoImageSvg, SaveAndCancelButtons_default as SaveAndCancelButtons } from './chunk-YUXHILXY.js';
3
- import { Z, l, b, u2, V, Ae, j, u as u$1, Fe, be, L, S as S$1, c as c$1, g, s, N, $0c4a58759813079a$export$4e328f61c538687f, $e969f22b6713ca4a$export$ae780daf29e6d456, w as w$1, e, ye, u4, Re, Te, w2, u3 as u3$1, p as p$1, c2 as c2$1, f, a as a$1 } from './chunk-4MXPTVDL.js';
4
- export { JSONView_default as JSONView } from './chunk-4MXPTVDL.js';
5
- import { clsx, clsx_default, ChevronUpIcon_default, ChevronDownIcon_default, Form_default, TagInputField_default, Badge_default } from './chunk-GWMLIF3C.js';
6
- export { Badge_default as Badge, HelpText_default as HelpText, Tab_default as Tab, TagInput_default as TagInput } from './chunk-GWMLIF3C.js';
1
+ import { FormWrapper_default, Button_default, ImageWithFallback_default, SaveAndCancelButtons_default, NoData_default, FormWrapperContext } from './chunk-M2242FCR.js';
2
+ export { Button_default as Button, DraggableIcon_default as DraggableIcon, FormWrapper_default as FormWrapper, ImageWithFallback_default as ImageWithFallback, NoData_default as NoData, NoImageSvg_default as NoImageSvg, SaveAndCancelButtons_default as SaveAndCancelButtons } from './chunk-M2242FCR.js';
3
+ import { Z, l, b, u2, V, Ae, j, u as u$1, Fe, be, L, S as S$1, c as c$1, g, s, N, $0c4a58759813079a$export$4e328f61c538687f, $e969f22b6713ca4a$export$ae780daf29e6d456, w as w$1, e, ye, u4, Re, Te, w2, u3 as u3$1, p as p$1, c2 as c2$1, f, a as a$1 } from './chunk-6WMH7PLC.js';
4
+ export { JSONView_default as JSONView } from './chunk-6WMH7PLC.js';
5
+ import { clsx, clsx_default, ChevronUpIcon_default, ChevronDownIcon_default, Form_default, TagInputField_default, Badge_default, TagInput_default } from './chunk-EKWWSFDK.js';
6
+ export { Badge_default as Badge, HelpText_default as HelpText, Tab_default as Tab, TagInput_default as TagInput } from './chunk-EKWWSFDK.js';
7
7
  import { DefaultLimit, LimitSteps } from './chunk-ZUOVKRKC.js';
8
- import { useFormatDateTime_default } from './chunk-ED2FP42R.js';
9
- import { useForm_default } from './chunk-Q6S3LBUF.js';
10
- import './chunk-ATZJXTRA.js';
8
+ import { useFormatDateTime_default } from './chunk-XZ2V6XTD.js';
9
+ import { useForm_default, isTruthy } from './chunk-JC6PXYZP.js';
10
+ import './chunk-5UHBGLFV.js';
11
11
  import { PlusIcon_default, CheckCircleIcon_default, XCircleIcon_default, InformationCircleIcon_default, PhotoIcon_default, CheckIcon_default, ChevronDownIcon_default as ChevronDownIcon_default$1, UserCircleIcon_default } from './chunk-HERLM47Z.js';
12
12
  import { useModal_default } from './chunk-F6LBNV3H.js';
13
13
  import { Ke } from './chunk-NFJE5EJG.js';
14
14
  import { init_react, react_exports, A, Y, r, a, y, u, n2, n, S, x, k3, H2, I2, K, c, i3, n3, o2, o4 as o4$1, w, V as V$1, u2 as u2$1, u3, N as N$1, p2, f2, y2, p, d, R, T2, x2, le, s as s$1, o, c2, T, k, k2, G } from './chunk-CUYIP5XG.js';
15
15
  import './chunk-VBO377AY.js';
16
- import { useApp_default } from './chunk-BOMSMJF2.js';
16
+ import { useApp_default } from './chunk-JGER2LQO.js';
17
17
  import './chunk-ELPURWDC.js';
18
18
  import './chunk-RAQV2GYF.js';
19
19
  import './chunk-54DKBWXV.js';
@@ -38,7 +38,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
38
38
  return x4 === y5 && (0 !== x4 || 1 / x4 === 1 / y5) || x4 !== x4 && y5 !== y5;
39
39
  }
40
40
  function useSyncExternalStore$2(subscribe, getSnapshot) {
41
- didWarnOld18Alpha || void 0 === React19.startTransition || (didWarnOld18Alpha = true, console.error(
41
+ didWarnOld18Alpha || void 0 === React22.startTransition || (didWarnOld18Alpha = true, console.error(
42
42
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
43
43
  ));
44
44
  var value2 = getSnapshot();
@@ -48,7 +48,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
48
48
  "The result of getSnapshot should be cached to avoid an infinite loop"
49
49
  ), didWarnUncachedGetSnapshot = true);
50
50
  }
51
- cachedValue = useState14({
51
+ cachedValue = useState16({
52
52
  inst: { value: value2, getSnapshot }
53
53
  });
54
54
  var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
@@ -86,8 +86,8 @@ var require_use_sync_external_store_shim_development = __commonJS({
86
86
  return getSnapshot();
87
87
  }
88
88
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
89
- var React19 = (init_react(), __toCommonJS(react_exports)), objectIs = "function" === typeof Object.is ? Object.is : is2, useState14 = React19.useState, useEffect13 = React19.useEffect, useLayoutEffect2 = React19.useLayoutEffect, useDebugValue = React19.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
90
- exports.useSyncExternalStore = void 0 !== React19.useSyncExternalStore ? React19.useSyncExternalStore : shim;
89
+ var React22 = (init_react(), __toCommonJS(react_exports)), objectIs = "function" === typeof Object.is ? Object.is : is2, useState16 = React22.useState, useEffect13 = React22.useEffect, useLayoutEffect2 = React22.useLayoutEffect, useDebugValue = React22.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
90
+ exports.useSyncExternalStore = void 0 !== React22.useSyncExternalStore ? React22.useSyncExternalStore : shim;
91
91
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
92
92
  })();
93
93
  }
@@ -110,14 +110,14 @@ var require_with_selector_development = __commonJS({
110
110
  return x4 === y5 && (0 !== x4 || 1 / x4 === 1 / y5) || x4 !== x4 && y5 !== y5;
111
111
  }
112
112
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
113
- var React19 = (init_react(), __toCommonJS(react_exports)), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore = shim.useSyncExternalStore, useRef7 = React19.useRef, useEffect13 = React19.useEffect, useMemo6 = React19.useMemo, useDebugValue = React19.useDebugValue;
113
+ var React22 = (init_react(), __toCommonJS(react_exports)), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore = shim.useSyncExternalStore, useRef8 = React22.useRef, useEffect13 = React22.useEffect, useMemo7 = React22.useMemo, useDebugValue = React22.useDebugValue;
114
114
  exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
115
- var instRef = useRef7(null);
115
+ var instRef = useRef8(null);
116
116
  if (null === instRef.current) {
117
117
  var inst = { hasValue: false, value: null };
118
118
  instRef.current = inst;
119
119
  } else inst = instRef.current;
120
- instRef = useMemo6(
120
+ instRef = useMemo7(
121
121
  function() {
122
122
  function memoizedSelector(nextSnapshot) {
123
123
  if (!hasMemo) {
@@ -6626,13 +6626,13 @@ var hasDuplicate = (ary2) => {
6626
6626
  return false;
6627
6627
  }
6628
6628
  var len = ary2.length;
6629
- var cache = {};
6629
+ var cache = /* @__PURE__ */ new Set();
6630
6630
  for (var i3 = 0; i3 < len; i3++) {
6631
- if (!cache[String(ary2[i3])]) {
6632
- cache[String(ary2[i3])] = true;
6633
- } else {
6631
+ var key = String(ary2[i3]);
6632
+ if (cache.has(key)) {
6634
6633
  return true;
6635
6634
  }
6635
+ cache.add(key);
6636
6636
  }
6637
6637
  return false;
6638
6638
  };
@@ -6672,7 +6672,7 @@ function isOutsidePosition(position) {
6672
6672
  if (typeof position === "object") {
6673
6673
  return true;
6674
6674
  }
6675
- return absolutePositions.includes(position);
6675
+ return absolutePositions.some((p5) => p5 === position);
6676
6676
  }
6677
6677
 
6678
6678
  // ../node_modules/d3-path/dist/d3-path.mjs
@@ -7902,6 +7902,198 @@ function wiggle(series, order) {
7902
7902
  s0[j2 - 1][1] += s0[j2 - 1][0] = y5;
7903
7903
  none$1(series, order);
7904
7904
  }
7905
+ var _ref;
7906
+ function _slicedToArray(r3, e3) {
7907
+ return _arrayWithHoles(r3) || _iterableToArrayLimit(r3, e3) || _unsupportedIterableToArray(r3, e3) || _nonIterableRest();
7908
+ }
7909
+ function _nonIterableRest() {
7910
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7911
+ }
7912
+ function _unsupportedIterableToArray(r3, a5) {
7913
+ if (r3) {
7914
+ if ("string" == typeof r3) return _arrayLikeToArray(r3, a5);
7915
+ var t = {}.toString.call(r3).slice(8, -1);
7916
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r3, a5) : void 0;
7917
+ }
7918
+ }
7919
+ function _arrayLikeToArray(r3, a5) {
7920
+ (null == a5 || a5 > r3.length) && (a5 = r3.length);
7921
+ for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
7922
+ return n5;
7923
+ }
7924
+ function _iterableToArrayLimit(r3, l3) {
7925
+ var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
7926
+ if (null != t) {
7927
+ var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
7928
+ try {
7929
+ if (i3 = (t = t.call(r3)).next, 0 === l3) ; else for (; !(f3 = (e3 = i3.call(t)).done) && (a5.push(e3.value), a5.length !== l3); f3 = true) ;
7930
+ } catch (r4) {
7931
+ o5 = true, n5 = r4;
7932
+ } finally {
7933
+ try {
7934
+ if (!f3 && null != t.return && (u9 = t.return(), Object(u9) !== u9)) return;
7935
+ } finally {
7936
+ if (o5) throw n5;
7937
+ }
7938
+ }
7939
+ return a5;
7940
+ }
7941
+ }
7942
+ function _arrayWithHoles(r3) {
7943
+ if (Array.isArray(r3)) return r3;
7944
+ }
7945
+ var useIdFallback = () => {
7946
+ var _React$useState = D3.useState(() => uniqueId("uid-")), _React$useState2 = _slicedToArray(_React$useState, 1), id = _React$useState2[0];
7947
+ return id;
7948
+ };
7949
+ var useId = (_ref = D3["useId".toString()]) !== null && _ref !== void 0 ? _ref : useIdFallback;
7950
+
7951
+ // ../node_modules/recharts/es6/util/useUniqueId.js
7952
+ function useUniqueId(prefix, customId) {
7953
+ var generatedId = useId();
7954
+ return "".concat(prefix, "-").concat(generatedId) ;
7955
+ }
7956
+ var RechartsThemeContext = /* @__PURE__ */ createContext(void 0);
7957
+ RechartsThemeContext.Provider;
7958
+ var useRechartsTheme = () => useContext(RechartsThemeContext);
7959
+
7960
+ // ../node_modules/recharts/es6/theme/themeFill.js
7961
+ var _excluded = ["fill", "active"];
7962
+ function _objectWithoutProperties(e3, t) {
7963
+ if (null == e3) return {};
7964
+ var o5, r3, i3 = _objectWithoutPropertiesLoose(e3, t);
7965
+ if (Object.getOwnPropertySymbols) {
7966
+ var n5 = Object.getOwnPropertySymbols(e3);
7967
+ for (r3 = 0; r3 < n5.length; r3++) o5 = n5[r3], -1 === t.indexOf(o5) && {}.propertyIsEnumerable.call(e3, o5) && (i3[o5] = e3[o5]);
7968
+ }
7969
+ return i3;
7970
+ }
7971
+ function _objectWithoutPropertiesLoose(r3, e3) {
7972
+ if (null == r3) return {};
7973
+ var t = {};
7974
+ for (var n5 in r3) if ({}.hasOwnProperty.call(r3, n5)) {
7975
+ if (-1 !== e3.indexOf(n5)) continue;
7976
+ t[n5] = r3[n5];
7977
+ }
7978
+ return t;
7979
+ }
7980
+ function getThemeFillObject(fill) {
7981
+ return typeof fill === "object" && fill != null ? fill : void 0;
7982
+ }
7983
+ function getFillColor(fill) {
7984
+ var _getThemeFillObject$c, _getThemeFillObject;
7985
+ return (_getThemeFillObject$c = (_getThemeFillObject = getThemeFillObject(fill)) === null || _getThemeFillObject === void 0 ? void 0 : _getThemeFillObject.color) !== null && _getThemeFillObject$c !== void 0 ? _getThemeFillObject$c : typeof fill === "string" ? fill : void 0;
7986
+ }
7987
+ function hasColorFillsOnly(style) {
7988
+ var _style$active;
7989
+ return getThemeFillObject(style.fill) == null && getThemeFillObject((_style$active = style.active) === null || _style$active === void 0 ? void 0 : _style$active.fill) == null;
7990
+ }
7991
+ var withFillColorCache = /* @__PURE__ */ new WeakMap();
7992
+ function withFillColor(style) {
7993
+ if (style == null) {
7994
+ return void 0;
7995
+ }
7996
+ if (hasColorFillsOnly(style)) {
7997
+ return style;
7998
+ }
7999
+ var cached = withFillColorCache.get(style);
8000
+ if (cached != null) {
8001
+ return cached;
8002
+ }
8003
+ var fill = style.fill, active = style.active, rest = _objectWithoutProperties(style, _excluded);
8004
+ var result = rest;
8005
+ var color2 = getFillColor(fill);
8006
+ if (color2 != null) {
8007
+ result.fill = color2;
8008
+ }
8009
+ if (active != null) {
8010
+ result.active = withFillColor(active);
8011
+ }
8012
+ withFillColorCache.set(style, result);
8013
+ return result;
8014
+ }
8015
+
8016
+ // ../node_modules/recharts/es6/fill/fillDefinitions.js
8017
+ function getFillUrl(id) {
8018
+ return "url(#".concat(id, ")");
8019
+ }
8020
+ function FillObjectDefinition(_ref4) {
8021
+ var id = _ref4.id, fillObject = _ref4.fillObject, color2 = _ref4.color, bounds = _ref4.bounds;
8022
+ var Definition = fillObject.definition;
8023
+ return /* @__PURE__ */ D3.createElement(Definition, {
8024
+ id,
8025
+ color: color2,
8026
+ bounds
8027
+ });
8028
+ }
8029
+ var entryFillCache = /* @__PURE__ */ new WeakMap();
8030
+ function isDefinitionComponent(value2) {
8031
+ return typeof value2 === "function" || value2 != null && typeof value2 === "object" && "$$typeof" in value2;
8032
+ }
8033
+ function readEntryFill(entry) {
8034
+ if (entry == null || typeof entry !== "object" || !("fill" in entry)) {
8035
+ return {
8036
+ color: void 0,
8037
+ fillObject: void 0
8038
+ };
8039
+ }
8040
+ var fill = entry.fill;
8041
+ if (typeof fill === "string") {
8042
+ return {
8043
+ color: fill,
8044
+ fillObject: void 0
8045
+ };
8046
+ }
8047
+ if (fill == null || typeof fill !== "object") {
8048
+ return {
8049
+ color: void 0,
8050
+ fillObject: void 0
8051
+ };
8052
+ }
8053
+ var cached = entryFillCache.get(fill);
8054
+ if (cached != null) {
8055
+ return {
8056
+ color: cached.color,
8057
+ fillObject: cached
8058
+ };
8059
+ }
8060
+ var definition = "definition" in fill ? fill.definition : void 0;
8061
+ if (!isDefinitionComponent(definition)) {
8062
+ return {
8063
+ color: void 0,
8064
+ fillObject: void 0
8065
+ };
8066
+ }
8067
+ var color2 = "color" in fill && typeof fill.color === "string" ? fill.color : void 0;
8068
+ var fillObject = {
8069
+ color: color2,
8070
+ definition
8071
+ };
8072
+ entryFillCache.set(fill, fillObject);
8073
+ return {
8074
+ color: color2,
8075
+ fillObject
8076
+ };
8077
+ }
8078
+ function getShapeBounds(width, height) {
8079
+ if (typeof width !== "number" || typeof height !== "number" || !(width > 0) || !(height > 0)) {
8080
+ return void 0;
8081
+ }
8082
+ return {
8083
+ width,
8084
+ height
8085
+ };
8086
+ }
8087
+ function FillObjectPaint(_ref7) {
8088
+ var fill = _ref7.fill, bounds = _ref7.bounds, children = _ref7.children;
8089
+ var id = useUniqueId("recharts-shape-fill");
8090
+ return /* @__PURE__ */ D3.createElement(D3.Fragment, null, /* @__PURE__ */ D3.createElement("defs", null, /* @__PURE__ */ D3.createElement(FillObjectDefinition, {
8091
+ id,
8092
+ fillObject: fill,
8093
+ color: fill.color,
8094
+ bounds
8095
+ })), children(getFillUrl(id)));
8096
+ }
7905
8097
  var isPolarCoordinate = (c6) => {
7906
8098
  return "radius" in c6 && "startAngle" in c6 && "endAngle" in c6;
7907
8099
  };
@@ -7976,6 +8168,33 @@ function resolveDefaultProps(realProps, defaultProps) {
7976
8168
  }, resolvedProps);
7977
8169
  return withDefaults;
7978
8170
  }
8171
+ function resolvePartialDefaultProps(realProps, defaultProps) {
8172
+ var resolvedProps = _objectSpread({}, realProps);
8173
+ var keys = Object.keys(defaultProps);
8174
+ keys.forEach((key) => {
8175
+ var defaultValue = defaultProps[key];
8176
+ if (resolvedProps[key] === void 0 && defaultValue !== void 0) {
8177
+ resolvedProps[key] = defaultValue;
8178
+ }
8179
+ });
8180
+ return resolvedProps;
8181
+ }
8182
+
8183
+ // ../node_modules/recharts/es6/theme/useBackwardsCompatibleTheme.js
8184
+ var useBackwardsCompatibleTheme = (themeSelector, explicitProps, legacyDefaults) => {
8185
+ var theme = useRechartsTheme();
8186
+ if (theme == null) {
8187
+ if (legacyDefaults == null) {
8188
+ return explicitProps;
8189
+ }
8190
+ return resolvePartialDefaultProps(explicitProps, legacyDefaults);
8191
+ }
8192
+ var slice3 = themeSelector(theme);
8193
+ if (slice3 == null) {
8194
+ return explicitProps;
8195
+ }
8196
+ return resolvePartialDefaultProps(explicitProps, slice3);
8197
+ };
7979
8198
 
7980
8199
  // ../node_modules/es-toolkit/dist/array/uniqBy.mjs
7981
8200
  function uniqBy(arr, mapper) {
@@ -8440,6 +8659,7 @@ var noop3 = () => {
8440
8659
  var addNestedSubNoop = () => noop3;
8441
8660
  var refEquality = (a5, b3) => a5 === b3;
8442
8661
  function useAppSelector(selector) {
8662
+ var equalityFn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : refEquality;
8443
8663
  var context = useContext(RechartsReduxContext);
8444
8664
  var outOfContextSelector = useMemo(() => {
8445
8665
  if (!context) {
@@ -8452,7 +8672,7 @@ function useAppSelector(selector) {
8452
8672
  return selector(state);
8453
8673
  };
8454
8674
  }, [context, selector]);
8455
- return (0, import_with_selector.useSyncExternalStoreWithSelector)(context ? context.subscription.addNestedSub : addNestedSubNoop, context ? context.store.getState : noop3, context ? context.store.getState : noop3, outOfContextSelector, refEquality);
8675
+ return (0, import_with_selector.useSyncExternalStoreWithSelector)(context ? context.subscription.addNestedSub : addNestedSubNoop, context ? context.store.getState : noop3, context ? context.store.getState : noop3, outOfContextSelector, equalityFn);
8456
8676
  }
8457
8677
 
8458
8678
  // ../node_modules/reselect/dist/reselect.mjs
@@ -8860,30 +9080,30 @@ function sortBy(collection, ...criteria) {
8860
9080
  var selectLegendSettings = (state) => state.legend.settings;
8861
9081
  var selectLegendSize = (state) => state.legend.size;
8862
9082
  var selectAllLegendPayload2DArray = (state) => state.legend.payload;
8863
- createSelector([selectAllLegendPayload2DArray, selectLegendSettings], (payloads, _ref) => {
8864
- var itemSorter = _ref.itemSorter;
9083
+ createSelector([selectAllLegendPayload2DArray, selectLegendSettings], (payloads, _ref2) => {
9084
+ var itemSorter = _ref2.itemSorter;
8865
9085
  var flat = payloads.flat(1);
8866
9086
  return itemSorter ? sortBy(flat, itemSorter) : flat;
8867
9087
  });
8868
- function _slicedToArray(r3, e3) {
8869
- return _arrayWithHoles(r3) || _iterableToArrayLimit(r3, e3) || _unsupportedIterableToArray(r3, e3) || _nonIterableRest();
9088
+ function _slicedToArray2(r3, e3) {
9089
+ return _arrayWithHoles2(r3) || _iterableToArrayLimit2(r3, e3) || _unsupportedIterableToArray2(r3, e3) || _nonIterableRest2();
8870
9090
  }
8871
- function _nonIterableRest() {
9091
+ function _nonIterableRest2() {
8872
9092
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8873
9093
  }
8874
- function _unsupportedIterableToArray(r3, a5) {
9094
+ function _unsupportedIterableToArray2(r3, a5) {
8875
9095
  if (r3) {
8876
- if ("string" == typeof r3) return _arrayLikeToArray(r3, a5);
9096
+ if ("string" == typeof r3) return _arrayLikeToArray2(r3, a5);
8877
9097
  var t = {}.toString.call(r3).slice(8, -1);
8878
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r3, a5) : void 0;
9098
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r3, a5) : void 0;
8879
9099
  }
8880
9100
  }
8881
- function _arrayLikeToArray(r3, a5) {
9101
+ function _arrayLikeToArray2(r3, a5) {
8882
9102
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
8883
9103
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
8884
9104
  return n5;
8885
9105
  }
8886
- function _iterableToArrayLimit(r3, l3) {
9106
+ function _iterableToArrayLimit2(r3, l3) {
8887
9107
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
8888
9108
  if (null != t) {
8889
9109
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -8901,12 +9121,12 @@ function _iterableToArrayLimit(r3, l3) {
8901
9121
  return a5;
8902
9122
  }
8903
9123
  }
8904
- function _arrayWithHoles(r3) {
9124
+ function _arrayWithHoles2(r3) {
8905
9125
  if (Array.isArray(r3)) return r3;
8906
9126
  }
8907
9127
  var EPS = 1;
8908
- function hasSignificantChange(a5, b3) {
8909
- return Math.abs(a5.height - b3.height) > EPS || Math.abs(a5.left - b3.left) > EPS || Math.abs(a5.top - b3.top) > EPS || Math.abs(a5.width - b3.width) > EPS;
9128
+ function hasSignificantSizeChange(a5, b3) {
9129
+ return Math.abs(a5.height - b3.height) > EPS || Math.abs(a5.width - b3.width) > EPS;
8910
9130
  }
8911
9131
  function readElementOffset(node) {
8912
9132
  var rect = node.getBoundingClientRect();
@@ -8924,42 +9144,37 @@ function useElementOffset() {
8924
9144
  left: 0,
8925
9145
  top: 0,
8926
9146
  width: 0
8927
- }), _useState2 = _slicedToArray(_useState, 2), lastBoundingBox = _useState2[0], setLastBoundingBox = _useState2[1];
9147
+ }), _useState2 = _slicedToArray2(_useState, 2), lastBoundingBox = _useState2[0], setLastBoundingBox = _useState2[1];
8928
9148
  var observerRef = useRef(null);
9149
+ var elementRef = useRef(null);
8929
9150
  var lastBoundingBoxRef = useRef(lastBoundingBox);
8930
- lastBoundingBoxRef.current = lastBoundingBox;
8931
- var updateBoundingBox = useCallback(
8932
- (node) => {
8933
- if (observerRef.current != null) {
8934
- observerRef.current.disconnect();
8935
- observerRef.current = null;
8936
- }
8937
- if (node != null) {
8938
- var box = readElementOffset(node);
8939
- if (hasSignificantChange(box, lastBoundingBoxRef.current)) {
8940
- setLastBoundingBox(box);
8941
- }
8942
- if (typeof ResizeObserver !== "undefined") {
8943
- var observer = new ResizeObserver(() => {
8944
- var newBox = readElementOffset(node);
8945
- if (hasSignificantChange(newBox, lastBoundingBoxRef.current)) {
8946
- setLastBoundingBox(newBox);
8947
- }
8948
- });
8949
- observer.observe(node);
8950
- observerRef.current = observer;
8951
- }
8952
- }
8953
- },
8954
- // eslint-disable-next-line react-hooks/exhaustive-deps
8955
- [...extraDependencies]
8956
- );
8957
- useEffect(() => {
8958
- return () => {
8959
- var _observerRef$current;
8960
- (_observerRef$current = observerRef.current) === null || _observerRef$current === void 0 || _observerRef$current.disconnect();
8961
- };
9151
+ var measureElement = useCallback(() => {
9152
+ var node = elementRef.current;
9153
+ if (node == null) {
9154
+ return;
9155
+ }
9156
+ var box = readElementOffset(node);
9157
+ if (hasSignificantSizeChange(box, lastBoundingBoxRef.current)) {
9158
+ lastBoundingBoxRef.current = box;
9159
+ setLastBoundingBox(box);
9160
+ }
8962
9161
  }, []);
9162
+ var updateBoundingBox = useCallback((node) => {
9163
+ var _observerRef$current;
9164
+ elementRef.current = node;
9165
+ (_observerRef$current = observerRef.current) === null || _observerRef$current === void 0 || _observerRef$current.disconnect();
9166
+ observerRef.current = null;
9167
+ if (node == null) {
9168
+ return;
9169
+ }
9170
+ measureElement();
9171
+ if (typeof ResizeObserver !== "undefined") {
9172
+ var observer = new ResizeObserver(measureElement);
9173
+ observer.observe(node);
9174
+ observerRef.current = observer;
9175
+ }
9176
+ }, [measureElement]);
9177
+ useEffect(measureElement, [measureElement, ...extraDependencies]);
8963
9178
  return [lastBoundingBox, updateBoundingBox];
8964
9179
  }
8965
9180
  function isPlainObject(obj) {
@@ -10143,10 +10358,7 @@ function getSliced(arr, startIndex, endIndex) {
10143
10358
  if (!Array.isArray(arr)) {
10144
10359
  return arr;
10145
10360
  }
10146
- if (arr && startIndex + endIndex !== 0) {
10147
- return arr.slice(startIndex, endIndex + 1);
10148
- }
10149
- return arr;
10361
+ return arr.slice(startIndex, endIndex + 1);
10150
10362
  }
10151
10363
 
10152
10364
  // ../node_modules/recharts/es6/util/isWellBehavedNumber.js
@@ -10158,6 +10370,25 @@ function isPositiveNumber(n5) {
10158
10370
  }
10159
10371
 
10160
10372
  // ../node_modules/recharts/es6/util/ChartUtils.js
10373
+ var _excluded2 = ["ignoreDataEntryColors"];
10374
+ function _objectWithoutProperties2(e3, t) {
10375
+ if (null == e3) return {};
10376
+ var o5, r3, i3 = _objectWithoutPropertiesLoose2(e3, t);
10377
+ if (Object.getOwnPropertySymbols) {
10378
+ var n5 = Object.getOwnPropertySymbols(e3);
10379
+ for (r3 = 0; r3 < n5.length; r3++) o5 = n5[r3], -1 === t.indexOf(o5) && {}.propertyIsEnumerable.call(e3, o5) && (i3[o5] = e3[o5]);
10380
+ }
10381
+ return i3;
10382
+ }
10383
+ function _objectWithoutPropertiesLoose2(r3, e3) {
10384
+ if (null == r3) return {};
10385
+ var t = {};
10386
+ for (var n5 in r3) if ({}.hasOwnProperty.call(r3, n5)) {
10387
+ if (-1 !== e3.indexOf(n5)) continue;
10388
+ t[n5] = r3[n5];
10389
+ }
10390
+ return t;
10391
+ }
10161
10392
  function ownKeys2(e3, r3) {
10162
10393
  var t = Object.keys(e3);
10163
10394
  if (Object.getOwnPropertySymbols) {
@@ -10204,7 +10435,8 @@ function getValueByDataKey(obj, dataKey, defaultValue) {
10204
10435
  return get(obj, dataKey, defaultValue);
10205
10436
  }
10206
10437
  if (typeof dataKey === "function") {
10207
- return dataKey(obj);
10438
+ var value2 = dataKey(obj);
10439
+ return value2 === void 0 ? defaultValue : value2;
10208
10440
  }
10209
10441
  return defaultValue;
10210
10442
  }
@@ -10344,8 +10576,15 @@ var getStackedData = (data, dataKeys, offsetType) => {
10344
10576
  return result;
10345
10577
  };
10346
10578
  var getDomainOfSingle = (data) => {
10347
- var flat = data.flat(2).filter(isNumber2);
10348
- return [Math.min(...flat), Math.max(...flat)];
10579
+ var min2 = Infinity;
10580
+ var max2 = -Infinity;
10581
+ for (var value2 of data.flat(2)) {
10582
+ if (isNumber2(value2)) {
10583
+ min2 = Math.min(min2, value2);
10584
+ max2 = Math.max(max2, value2);
10585
+ }
10586
+ }
10587
+ return [min2, max2];
10349
10588
  };
10350
10589
  var makeDomainFinite = (domain) => {
10351
10590
  return [domain[0] === Infinity ? 0 : domain[0], domain[1] === -Infinity ? 0 : domain[1]];
@@ -10399,11 +10638,13 @@ var getBandSizeOfAxis = (axis, ticks2, isBar) => {
10399
10638
  }
10400
10639
  return bandSize === Infinity ? 0 : bandSize;
10401
10640
  }
10641
+ (ticks2 === null || ticks2 === void 0 ? void 0 : ticks2.length) === 1 ? ticks2[0] : void 0;
10402
10642
  return isBar ? void 0 : 0;
10403
10643
  };
10404
10644
  function getTooltipEntry(_ref4) {
10405
10645
  var tooltipEntrySettings = _ref4.tooltipEntrySettings, dataKey = _ref4.dataKey, payload = _ref4.payload, value2 = _ref4.value, name = _ref4.name;
10406
- return _objectSpread2(_objectSpread2({}, tooltipEntrySettings), {}, {
10646
+ tooltipEntrySettings.ignoreDataEntryColors; var settings = _objectWithoutProperties2(tooltipEntrySettings, _excluded2);
10647
+ return _objectSpread2(_objectSpread2({}, settings), {}, {
10407
10648
  dataKey,
10408
10649
  payload,
10409
10650
  value: value2,
@@ -10732,8 +10973,8 @@ var getInnerDivStyle = (props) => {
10732
10973
  }
10733
10974
  return noStyle;
10734
10975
  };
10735
- function getDefaultWidthAndHeight(_ref) {
10736
- var width = _ref.width, height = _ref.height, aspect = _ref.aspect;
10976
+ function getDefaultWidthAndHeight(_ref2) {
10977
+ var width = _ref2.width, height = _ref2.height, aspect = _ref2.aspect;
10737
10978
  var calculatedWidth = width;
10738
10979
  var calculatedHeight = height;
10739
10980
  if (calculatedWidth === void 0 && calculatedHeight === void 0) {
@@ -10751,7 +10992,7 @@ function getDefaultWidthAndHeight(_ref) {
10751
10992
  }
10752
10993
 
10753
10994
  // ../node_modules/recharts/es6/component/ResponsiveContainer.js
10754
- var _excluded = ["aspect", "initialDimension", "width", "height", "minWidth", "minHeight", "maxHeight", "children", "debounce", "id", "className", "onResize", "style"];
10995
+ var _excluded3 = ["aspect", "initialDimension", "width", "height", "minWidth", "minHeight", "maxHeight", "children", "debounce", "id", "className", "onResize", "style"];
10755
10996
  function _extends() {
10756
10997
  return _extends = Object.assign ? Object.assign.bind() : function(n5) {
10757
10998
  for (var e3 = 1; e3 < arguments.length; e3++) {
@@ -10799,25 +11040,25 @@ function _toPrimitive4(t, r3) {
10799
11040
  }
10800
11041
  return ("string" === r3 ? String : Number)(t);
10801
11042
  }
10802
- function _slicedToArray2(r3, e3) {
10803
- return _arrayWithHoles2(r3) || _iterableToArrayLimit2(r3, e3) || _unsupportedIterableToArray2(r3, e3) || _nonIterableRest2();
11043
+ function _slicedToArray4(r3, e3) {
11044
+ return _arrayWithHoles4(r3) || _iterableToArrayLimit4(r3, e3) || _unsupportedIterableToArray4(r3, e3) || _nonIterableRest4();
10804
11045
  }
10805
- function _nonIterableRest2() {
11046
+ function _nonIterableRest4() {
10806
11047
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10807
11048
  }
10808
- function _unsupportedIterableToArray2(r3, a5) {
11049
+ function _unsupportedIterableToArray4(r3, a5) {
10809
11050
  if (r3) {
10810
- if ("string" == typeof r3) return _arrayLikeToArray2(r3, a5);
11051
+ if ("string" == typeof r3) return _arrayLikeToArray4(r3, a5);
10811
11052
  var t = {}.toString.call(r3).slice(8, -1);
10812
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r3, a5) : void 0;
11053
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray4(r3, a5) : void 0;
10813
11054
  }
10814
11055
  }
10815
- function _arrayLikeToArray2(r3, a5) {
11056
+ function _arrayLikeToArray4(r3, a5) {
10816
11057
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
10817
11058
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
10818
11059
  return n5;
10819
11060
  }
10820
- function _iterableToArrayLimit2(r3, l3) {
11061
+ function _iterableToArrayLimit4(r3, l3) {
10821
11062
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
10822
11063
  if (null != t) {
10823
11064
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -10835,19 +11076,19 @@ function _iterableToArrayLimit2(r3, l3) {
10835
11076
  return a5;
10836
11077
  }
10837
11078
  }
10838
- function _arrayWithHoles2(r3) {
11079
+ function _arrayWithHoles4(r3) {
10839
11080
  if (Array.isArray(r3)) return r3;
10840
11081
  }
10841
- function _objectWithoutProperties(e3, t) {
11082
+ function _objectWithoutProperties3(e3, t) {
10842
11083
  if (null == e3) return {};
10843
- var o5, r3, i3 = _objectWithoutPropertiesLoose(e3, t);
11084
+ var o5, r3, i3 = _objectWithoutPropertiesLoose3(e3, t);
10844
11085
  if (Object.getOwnPropertySymbols) {
10845
11086
  var n5 = Object.getOwnPropertySymbols(e3);
10846
11087
  for (r3 = 0; r3 < n5.length; r3++) o5 = n5[r3], -1 === t.indexOf(o5) && {}.propertyIsEnumerable.call(e3, o5) && (i3[o5] = e3[o5]);
10847
11088
  }
10848
11089
  return i3;
10849
11090
  }
10850
- function _objectWithoutPropertiesLoose(r3, e3) {
11091
+ function _objectWithoutPropertiesLoose3(r3, e3) {
10851
11092
  if (null == r3) return {};
10852
11093
  var t = {};
10853
11094
  for (var n5 in r3) if ({}.hasOwnProperty.call(r3, n5)) {
@@ -10860,8 +11101,8 @@ var ResponsiveContainerContext = /* @__PURE__ */ createContext(defaultResponsive
10860
11101
  function isAcceptableSize(size) {
10861
11102
  return isPositiveNumber(size.width) && isPositiveNumber(size.height);
10862
11103
  }
10863
- function ResponsiveContainerContextProvider(_ref) {
10864
- var children = _ref.children, width = _ref.width, height = _ref.height;
11104
+ function ResponsiveContainerContextProvider(_ref2) {
11105
+ var children = _ref2.children, width = _ref2.width, height = _ref2.height;
10865
11106
  var size = useMemo(() => ({
10866
11107
  width,
10867
11108
  height
@@ -10875,7 +11116,7 @@ function ResponsiveContainerContextProvider(_ref) {
10875
11116
  }
10876
11117
  var useResponsiveContainerContext = () => useContext(ResponsiveContainerContext);
10877
11118
  var SizeDetectorContainer = /* @__PURE__ */ forwardRef((_ref2, ref) => {
10878
- var aspect = _ref2.aspect, _ref2$initialDimensio = _ref2.initialDimension, initialDimension = _ref2$initialDimensio === void 0 ? defaultResponsiveContainerProps.initialDimension : _ref2$initialDimensio, width = _ref2.width, height = _ref2.height, _ref2$minWidth = _ref2.minWidth, minWidth = _ref2$minWidth === void 0 ? defaultResponsiveContainerProps.minWidth : _ref2$minWidth, minHeight = _ref2.minHeight, maxHeight = _ref2.maxHeight, children = _ref2.children, _ref2$debounce = _ref2.debounce, debounce3 = _ref2$debounce === void 0 ? defaultResponsiveContainerProps.debounce : _ref2$debounce, id = _ref2.id, className = _ref2.className, onResize = _ref2.onResize, _ref2$style = _ref2.style, style = _ref2$style === void 0 ? {} : _ref2$style, others = _objectWithoutProperties(_ref2, _excluded);
11119
+ var aspect = _ref2.aspect, _ref2$initialDimensio = _ref2.initialDimension, initialDimension = _ref2$initialDimensio === void 0 ? defaultResponsiveContainerProps.initialDimension : _ref2$initialDimensio, width = _ref2.width, height = _ref2.height, _ref2$minWidth = _ref2.minWidth, minWidth = _ref2$minWidth === void 0 ? defaultResponsiveContainerProps.minWidth : _ref2$minWidth, minHeight = _ref2.minHeight, maxHeight = _ref2.maxHeight, children = _ref2.children, _ref2$debounce = _ref2.debounce, debounce3 = _ref2$debounce === void 0 ? defaultResponsiveContainerProps.debounce : _ref2$debounce, id = _ref2.id, className = _ref2.className, onResize = _ref2.onResize, _ref2$style = _ref2.style, style = _ref2$style === void 0 ? {} : _ref2$style, others = _objectWithoutProperties3(_ref2, _excluded3);
10879
11120
  var containerRef = useRef(null);
10880
11121
  var onResizeRef = useRef();
10881
11122
  onResizeRef.current = onResize;
@@ -10883,7 +11124,7 @@ var SizeDetectorContainer = /* @__PURE__ */ forwardRef((_ref2, ref) => {
10883
11124
  var _useState = useState({
10884
11125
  containerWidth: initialDimension.width,
10885
11126
  containerHeight: initialDimension.height
10886
- }), _useState2 = _slicedToArray2(_useState, 2), sizes = _useState2[0], setSizes = _useState2[1];
11127
+ }), _useState2 = _slicedToArray4(_useState, 2), sizes = _useState2[0], setSizes = _useState2[1];
10887
11128
  var setContainerSize = useCallback((newWidth, newHeight) => {
10888
11129
  setSizes((prevState) => {
10889
11130
  var roundedWidth = Math.round(newWidth);
@@ -11074,25 +11315,25 @@ function _toPrimitive5(t, r3) {
11074
11315
  }
11075
11316
  return ("string" === r3 ? String : Number)(t);
11076
11317
  }
11077
- function _slicedToArray3(r3, e3) {
11078
- return _arrayWithHoles3(r3) || _iterableToArrayLimit3(r3, e3) || _unsupportedIterableToArray3(r3, e3) || _nonIterableRest3();
11318
+ function _slicedToArray5(r3, e3) {
11319
+ return _arrayWithHoles5(r3) || _iterableToArrayLimit5(r3, e3) || _unsupportedIterableToArray5(r3, e3) || _nonIterableRest5();
11079
11320
  }
11080
- function _nonIterableRest3() {
11321
+ function _nonIterableRest5() {
11081
11322
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11082
11323
  }
11083
- function _unsupportedIterableToArray3(r3, a5) {
11324
+ function _unsupportedIterableToArray5(r3, a5) {
11084
11325
  if (r3) {
11085
- if ("string" == typeof r3) return _arrayLikeToArray3(r3, a5);
11326
+ if ("string" == typeof r3) return _arrayLikeToArray5(r3, a5);
11086
11327
  var t = {}.toString.call(r3).slice(8, -1);
11087
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray3(r3, a5) : void 0;
11328
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray5(r3, a5) : void 0;
11088
11329
  }
11089
11330
  }
11090
- function _arrayLikeToArray3(r3, a5) {
11331
+ function _arrayLikeToArray5(r3, a5) {
11091
11332
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
11092
11333
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
11093
11334
  return n5;
11094
11335
  }
11095
- function _iterableToArrayLimit3(r3, l3) {
11336
+ function _iterableToArrayLimit5(r3, l3) {
11096
11337
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
11097
11338
  if (null != t) {
11098
11339
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -11110,14 +11351,13 @@ function _iterableToArrayLimit3(r3, l3) {
11110
11351
  return a5;
11111
11352
  }
11112
11353
  }
11113
- function _arrayWithHoles3(r3) {
11354
+ function _arrayWithHoles5(r3) {
11114
11355
  if (Array.isArray(r3)) return r3;
11115
11356
  }
11116
11357
  function defaultFormatter(value2) {
11117
11358
  return Array.isArray(value2) && isNumOrStr(value2[0]) && isNumOrStr(value2[1]) ? value2.join(" ~ ") : value2;
11118
11359
  }
11119
- var defaultDefaultTooltipContentProps = {
11120
- separator: " : ",
11360
+ var defaultLegacyTooltipContentProps = {
11121
11361
  contentStyle: {
11122
11362
  margin: 0,
11123
11363
  padding: 10,
@@ -11131,7 +11371,12 @@ var defaultDefaultTooltipContentProps = {
11131
11371
  paddingBottom: 4,
11132
11372
  color: "#000"
11133
11373
  },
11134
- labelStyle: {},
11374
+ labelStyle: {
11375
+ margin: 0
11376
+ }
11377
+ };
11378
+ var defaultDefaultTooltipContentProps = {
11379
+ separator: " : ",
11135
11380
  accessibilityLayer: false
11136
11381
  };
11137
11382
  function lodashLikeSortBy(array3, itemSorter) {
@@ -11141,7 +11386,19 @@ function lodashLikeSortBy(array3, itemSorter) {
11141
11386
  return sortBy(array3, itemSorter);
11142
11387
  }
11143
11388
  var DefaultTooltipContent = (props) => {
11144
- var _props$separator = props.separator, separator = _props$separator === void 0 ? defaultDefaultTooltipContentProps.separator : _props$separator, contentStyle = props.contentStyle, itemStyle = props.itemStyle, _props$labelStyle = props.labelStyle, labelStyle = _props$labelStyle === void 0 ? defaultDefaultTooltipContentProps.labelStyle : _props$labelStyle, payload = props.payload, formatter = props.formatter, itemSorter = props.itemSorter, wrapperClassName = props.wrapperClassName, labelClassName = props.labelClassName, label = props.label, labelFormatter = props.labelFormatter, _props$accessibilityL = props.accessibilityLayer, accessibilityLayer = _props$accessibilityL === void 0 ? defaultDefaultTooltipContentProps.accessibilityLayer : _props$accessibilityL;
11389
+ var _theme$tooltip, _theme$typography, _themeTooltip$content, _themeTooltip$itemSty, _themeTooltip$labelSt;
11390
+ var theme = useBackwardsCompatibleTheme((rechartsTheme) => ({
11391
+ typography: rechartsTheme.typography,
11392
+ tooltip: rechartsTheme.tooltip
11393
+ }), {}, {
11394
+ tooltip: defaultLegacyTooltipContentProps
11395
+ });
11396
+ var _props$separator = props.separator, separator = _props$separator === void 0 ? defaultDefaultTooltipContentProps.separator : _props$separator, contentStyle = props.contentStyle, itemStyle = props.itemStyle, labelStyle = props.labelStyle, payload = props.payload, formatter = props.formatter, itemSorter = props.itemSorter, wrapperClassName = props.wrapperClassName, labelClassName = props.labelClassName, label = props.label, labelFormatter = props.labelFormatter, _props$accessibilityL = props.accessibilityLayer, accessibilityLayer = _props$accessibilityL === void 0 ? defaultDefaultTooltipContentProps.accessibilityLayer : _props$accessibilityL;
11397
+ var themeTooltip = (_theme$tooltip = theme === null || theme === void 0 ? void 0 : theme.tooltip) !== null && _theme$tooltip !== void 0 ? _theme$tooltip : {};
11398
+ var typographyStyle = (_theme$typography = theme === null || theme === void 0 ? void 0 : theme.typography) !== null && _theme$typography !== void 0 ? _theme$typography : {};
11399
+ var themeContentStyle = (_themeTooltip$content = themeTooltip.contentStyle) !== null && _themeTooltip$content !== void 0 ? _themeTooltip$content : {};
11400
+ var themeItemStyle = (_themeTooltip$itemSty = themeTooltip.itemStyle) !== null && _themeTooltip$itemSty !== void 0 ? _themeTooltip$itemSty : {};
11401
+ var themeLabelStyle = (_themeTooltip$labelSt = themeTooltip.labelStyle) !== null && _themeTooltip$labelSt !== void 0 ? _themeTooltip$labelSt : {};
11145
11402
  var renderContent2 = () => {
11146
11403
  if (payload && payload.length) {
11147
11404
  var listStyle = {
@@ -11160,7 +11417,7 @@ var DefaultTooltipContent = (props) => {
11160
11417
  if (finalFormatter) {
11161
11418
  var formatted = finalFormatter(value2, name, entry, i3, payload);
11162
11419
  if (Array.isArray(formatted)) {
11163
- var _formatted = _slicedToArray3(formatted, 2);
11420
+ var _formatted = _slicedToArray5(formatted, 2);
11164
11421
  finalValue = _formatted[0];
11165
11422
  finalName = _formatted[1];
11166
11423
  } else if (formatted != null) {
@@ -11169,9 +11426,9 @@ var DefaultTooltipContent = (props) => {
11169
11426
  return null;
11170
11427
  }
11171
11428
  }
11172
- var finalItemStyle = _objectSpread5(_objectSpread5({}, defaultDefaultTooltipContentProps.itemStyle), {}, {
11173
- color: entry.color || defaultDefaultTooltipContentProps.itemStyle.color
11174
- }, itemStyle);
11429
+ var finalItemStyle = _objectSpread5(_objectSpread5(_objectSpread5(_objectSpread5({}, typographyStyle), themeItemStyle), entry.color ? {
11430
+ color: entry.color
11431
+ } : {}), itemStyle);
11175
11432
  return /* @__PURE__ */ D3.createElement("li", {
11176
11433
  className: "recharts-tooltip-item",
11177
11434
  key: "tooltip-item-".concat(i3),
@@ -11193,10 +11450,8 @@ var DefaultTooltipContent = (props) => {
11193
11450
  }
11194
11451
  return null;
11195
11452
  };
11196
- var finalStyle = _objectSpread5(_objectSpread5({}, defaultDefaultTooltipContentProps.contentStyle), contentStyle);
11197
- var finalLabelStyle = _objectSpread5({
11198
- margin: 0
11199
- }, labelStyle);
11453
+ var finalStyle = _objectSpread5(_objectSpread5(_objectSpread5({}, typographyStyle), themeContentStyle), contentStyle);
11454
+ var finalLabelStyle = _objectSpread5(_objectSpread5(_objectSpread5({}, typographyStyle), themeLabelStyle), labelStyle);
11200
11455
  var hasLabel = !isNullish(label);
11201
11456
  var finalLabel = hasLabel ? label : "";
11202
11457
  var wrapperCN = clsx("recharts-default-tooltip", wrapperClassName);
@@ -11222,8 +11477,8 @@ var CSS_CLASS_PREFIX = "recharts-tooltip-wrapper";
11222
11477
  var TOOLTIP_HIDDEN = {
11223
11478
  visibility: "hidden"
11224
11479
  };
11225
- function getTooltipCSSClassName(_ref) {
11226
- var coordinate = _ref.coordinate, translateX = _ref.translateX, translateY = _ref.translateY;
11480
+ function getTooltipCSSClassName(_ref2) {
11481
+ var coordinate = _ref2.coordinate, translateX = _ref2.translateX, translateY = _ref2.translateY;
11227
11482
  return clsx(CSS_CLASS_PREFIX, {
11228
11483
  ["".concat(CSS_CLASS_PREFIX, "-right")]: isNumber2(translateX) && coordinate && isNumber2(coordinate.x) && translateX >= coordinate.x,
11229
11484
  ["".concat(CSS_CLASS_PREFIX, "-left")]: isNumber2(translateX) && coordinate && isNumber2(coordinate.x) && translateX < coordinate.x,
@@ -11320,25 +11575,25 @@ var Global = {
11320
11575
  };
11321
11576
 
11322
11577
  // ../node_modules/recharts/es6/util/usePrefersReducedMotion.js
11323
- function _slicedToArray4(r3, e3) {
11324
- return _arrayWithHoles4(r3) || _iterableToArrayLimit4(r3, e3) || _unsupportedIterableToArray4(r3, e3) || _nonIterableRest4();
11578
+ function _slicedToArray6(r3, e3) {
11579
+ return _arrayWithHoles6(r3) || _iterableToArrayLimit6(r3, e3) || _unsupportedIterableToArray6(r3, e3) || _nonIterableRest6();
11325
11580
  }
11326
- function _nonIterableRest4() {
11581
+ function _nonIterableRest6() {
11327
11582
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11328
11583
  }
11329
- function _unsupportedIterableToArray4(r3, a5) {
11584
+ function _unsupportedIterableToArray6(r3, a5) {
11330
11585
  if (r3) {
11331
- if ("string" == typeof r3) return _arrayLikeToArray4(r3, a5);
11586
+ if ("string" == typeof r3) return _arrayLikeToArray6(r3, a5);
11332
11587
  var t = {}.toString.call(r3).slice(8, -1);
11333
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray4(r3, a5) : void 0;
11588
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray6(r3, a5) : void 0;
11334
11589
  }
11335
11590
  }
11336
- function _arrayLikeToArray4(r3, a5) {
11591
+ function _arrayLikeToArray6(r3, a5) {
11337
11592
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
11338
11593
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
11339
11594
  return n5;
11340
11595
  }
11341
- function _iterableToArrayLimit4(r3, l3) {
11596
+ function _iterableToArrayLimit6(r3, l3) {
11342
11597
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
11343
11598
  if (null != t) {
11344
11599
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -11356,7 +11611,7 @@ function _iterableToArrayLimit4(r3, l3) {
11356
11611
  return a5;
11357
11612
  }
11358
11613
  }
11359
- function _arrayWithHoles4(r3) {
11614
+ function _arrayWithHoles6(r3) {
11360
11615
  if (Array.isArray(r3)) return r3;
11361
11616
  }
11362
11617
  function usePrefersReducedMotion() {
@@ -11368,7 +11623,7 @@ function usePrefersReducedMotion() {
11368
11623
  return false;
11369
11624
  }
11370
11625
  return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
11371
- }), _useState2 = _slicedToArray4(_useState, 2), prefersReducedMotion = _useState2[0], setPrefersReducedMotion = _useState2[1];
11626
+ }), _useState2 = _slicedToArray6(_useState, 2), prefersReducedMotion = _useState2[0], setPrefersReducedMotion = _useState2[1];
11372
11627
  useEffect(() => {
11373
11628
  if (!window.matchMedia) {
11374
11629
  return;
@@ -11424,25 +11679,25 @@ function _toPrimitive6(t, r3) {
11424
11679
  }
11425
11680
  return ("string" === r3 ? String : Number)(t);
11426
11681
  }
11427
- function _slicedToArray5(r3, e3) {
11428
- return _arrayWithHoles5(r3) || _iterableToArrayLimit5(r3, e3) || _unsupportedIterableToArray5(r3, e3) || _nonIterableRest5();
11682
+ function _slicedToArray7(r3, e3) {
11683
+ return _arrayWithHoles7(r3) || _iterableToArrayLimit7(r3, e3) || _unsupportedIterableToArray7(r3, e3) || _nonIterableRest7();
11429
11684
  }
11430
- function _nonIterableRest5() {
11685
+ function _nonIterableRest7() {
11431
11686
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11432
11687
  }
11433
- function _unsupportedIterableToArray5(r3, a5) {
11688
+ function _unsupportedIterableToArray7(r3, a5) {
11434
11689
  if (r3) {
11435
- if ("string" == typeof r3) return _arrayLikeToArray5(r3, a5);
11690
+ if ("string" == typeof r3) return _arrayLikeToArray7(r3, a5);
11436
11691
  var t = {}.toString.call(r3).slice(8, -1);
11437
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray5(r3, a5) : void 0;
11692
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray7(r3, a5) : void 0;
11438
11693
  }
11439
11694
  }
11440
- function _arrayLikeToArray5(r3, a5) {
11695
+ function _arrayLikeToArray7(r3, a5) {
11441
11696
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
11442
11697
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
11443
11698
  return n5;
11444
11699
  }
11445
- function _iterableToArrayLimit5(r3, l3) {
11700
+ function _iterableToArrayLimit7(r3, l3) {
11446
11701
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
11447
11702
  if (null != t) {
11448
11703
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -11460,7 +11715,7 @@ function _iterableToArrayLimit5(r3, l3) {
11460
11715
  return a5;
11461
11716
  }
11462
11717
  }
11463
- function _arrayWithHoles5(r3) {
11718
+ function _arrayWithHoles7(r3) {
11464
11719
  if (Array.isArray(r3)) return r3;
11465
11720
  }
11466
11721
  function resolveTransitionProperty(args) {
@@ -11473,6 +11728,9 @@ function resolveTransitionProperty(args) {
11473
11728
  }
11474
11729
  return void 0;
11475
11730
  }
11731
+ function hasSize(box) {
11732
+ return box != null && box.width > 0 && box.height > 0;
11733
+ }
11476
11734
  function TooltipBoundingBoxImpl(props) {
11477
11735
  var _props$coordinate3, _props$coordinate4, _props$coordinate$x2, _props$coordinate5, _props$coordinate$y2, _props$coordinate6;
11478
11736
  var prefersReducedMotion = usePrefersReducedMotion();
@@ -11482,7 +11740,7 @@ function TooltipBoundingBoxImpl(props) {
11482
11740
  x: 0,
11483
11741
  y: 0
11484
11742
  }
11485
- })), _React$useState2 = _slicedToArray5(_React$useState, 2), state = _React$useState2[0], setState = _React$useState2[1];
11743
+ })), _React$useState2 = _slicedToArray7(_React$useState, 2), state = _React$useState2[0], setState = _React$useState2[1];
11486
11744
  D3.useEffect(() => {
11487
11745
  var handleKeyDown = (event) => {
11488
11746
  if (event.key === "Escape") {
@@ -11506,6 +11764,11 @@ function TooltipBoundingBoxImpl(props) {
11506
11764
  dismissed: false
11507
11765
  }));
11508
11766
  }
11767
+ var _React$useState3 = D3.useState(null), _React$useState4 = _slicedToArray7(_React$useState3, 2), lastBoxWithSize = _React$useState4[0], setLastBoxWithSize = _React$useState4[1];
11768
+ if (hasSize(props.lastBoundingBox) && props.lastBoundingBox !== lastBoxWithSize) {
11769
+ setLastBoxWithSize(props.lastBoundingBox);
11770
+ }
11771
+ var tooltipBox = hasSize(props.lastBoundingBox) ? props.lastBoundingBox : lastBoxWithSize;
11509
11772
  var _getTooltipTranslate = getTooltipTranslate({
11510
11773
  allowEscapeViewBox: props.allowEscapeViewBox,
11511
11774
  coordinate: props.coordinate,
@@ -11513,7 +11776,7 @@ function TooltipBoundingBoxImpl(props) {
11513
11776
  offsetTop: typeof props.offset === "number" ? props.offset : props.offset.y,
11514
11777
  position: props.position,
11515
11778
  reverseDirection: props.reverseDirection,
11516
- tooltipBox: props.lastBoundingBox,
11779
+ tooltipBox,
11517
11780
  useTranslate3d: props.useTranslate3d,
11518
11781
  viewBox: props.viewBox
11519
11782
  }), cssClasses = _getTooltipTranslate.cssClasses, cssProperties = _getTooltipTranslate.cssProperties;
@@ -11633,8 +11896,8 @@ var defaultCurveProps = {
11633
11896
  connectNulls: false,
11634
11897
  type: "linear"
11635
11898
  };
11636
- var getPath = (_ref) => {
11637
- var _ref$type = _ref.type, type = _ref$type === void 0 ? defaultCurveProps.type : _ref$type, _ref$points = _ref.points, points = _ref$points === void 0 ? [] : _ref$points, baseLine = _ref.baseLine, layout = _ref.layout, _ref$connectNulls = _ref.connectNulls, connectNulls = _ref$connectNulls === void 0 ? defaultCurveProps.connectNulls : _ref$connectNulls;
11899
+ var getPath = (_ref2) => {
11900
+ var _ref$type = _ref2.type, type = _ref$type === void 0 ? defaultCurveProps.type : _ref$type, _ref$points = _ref2.points, points = _ref$points === void 0 ? [] : _ref$points, baseLine = _ref2.baseLine, layout = _ref2.layout, _ref$connectNulls = _ref2.connectNulls, connectNulls = _ref$connectNulls === void 0 ? defaultCurveProps.connectNulls : _ref$connectNulls;
11638
11901
  var curveFactory = getCurveFactory(type, layout);
11639
11902
  var formatPoints = connectNulls ? points.filter(defined) : points;
11640
11903
  if (Array.isArray(baseLine)) {
@@ -11662,7 +11925,7 @@ var getPath = (_ref) => {
11662
11925
  var nullableLineFunction = lineFunction.defined(defined).curve(curveFactory);
11663
11926
  return nullableLineFunction(formatPoints);
11664
11927
  };
11665
- var Curve = (props) => {
11928
+ var CurveImpl = (props) => {
11666
11929
  var className = props.className, points = props.points, path2 = props.path, pathRef = props.pathRef;
11667
11930
  var layout = useChartLayout();
11668
11931
  if ((!points || !points.length) && !path2) {
@@ -11682,8 +11945,18 @@ var Curve = (props) => {
11682
11945
  ref: pathRef
11683
11946
  }));
11684
11947
  };
11685
- var _excluded2 = ["x", "y", "top", "left", "width", "height", "className"];
11686
- function _extends4() {
11948
+ var Curve = (props) => {
11949
+ var fill = props.fill;
11950
+ return fill != null && typeof fill === "object" ? /* @__PURE__ */ D3.createElement(FillObjectPaint, {
11951
+ fill
11952
+ }, (paint) => /* @__PURE__ */ D3.createElement(CurveImpl, _extends3({}, props, {
11953
+ fill: paint
11954
+ }))) : /* @__PURE__ */ D3.createElement(CurveImpl, _extends3({}, props, {
11955
+ fill
11956
+ }));
11957
+ };
11958
+ var _excluded4 = ["x", "y", "top", "left", "width", "height", "className"];
11959
+ function _extends4() {
11687
11960
  return _extends4 = Object.assign ? Object.assign.bind() : function(n5) {
11688
11961
  for (var e3 = 1; e3 < arguments.length; e3++) {
11689
11962
  var t = arguments[e3];
@@ -11730,16 +12003,16 @@ function _toPrimitive8(t, r3) {
11730
12003
  }
11731
12004
  return ("string" === r3 ? String : Number)(t);
11732
12005
  }
11733
- function _objectWithoutProperties2(e3, t) {
12006
+ function _objectWithoutProperties4(e3, t) {
11734
12007
  if (null == e3) return {};
11735
- var o5, r3, i3 = _objectWithoutPropertiesLoose2(e3, t);
12008
+ var o5, r3, i3 = _objectWithoutPropertiesLoose4(e3, t);
11736
12009
  if (Object.getOwnPropertySymbols) {
11737
12010
  var n5 = Object.getOwnPropertySymbols(e3);
11738
12011
  for (r3 = 0; r3 < n5.length; r3++) o5 = n5[r3], -1 === t.indexOf(o5) && {}.propertyIsEnumerable.call(e3, o5) && (i3[o5] = e3[o5]);
11739
12012
  }
11740
12013
  return i3;
11741
12014
  }
11742
- function _objectWithoutPropertiesLoose2(r3, e3) {
12015
+ function _objectWithoutPropertiesLoose4(r3, e3) {
11743
12016
  if (null == r3) return {};
11744
12017
  var t = {};
11745
12018
  for (var n5 in r3) if ({}.hasOwnProperty.call(r3, n5)) {
@@ -11751,8 +12024,8 @@ function _objectWithoutPropertiesLoose2(r3, e3) {
11751
12024
  var getPath2 = (x4, y5, width, height, top, left) => {
11752
12025
  return "M".concat(x4, ",").concat(top, "v").concat(height, "M").concat(left, ",").concat(y5, "h").concat(width);
11753
12026
  };
11754
- var Cross = (_ref) => {
11755
- var _ref$x = _ref.x, x4 = _ref$x === void 0 ? 0 : _ref$x, _ref$y = _ref.y, y5 = _ref$y === void 0 ? 0 : _ref$y, _ref$top = _ref.top, top = _ref$top === void 0 ? 0 : _ref$top, _ref$left = _ref.left, left = _ref$left === void 0 ? 0 : _ref$left, _ref$width = _ref.width, width = _ref$width === void 0 ? 0 : _ref$width, _ref$height = _ref.height, height = _ref$height === void 0 ? 0 : _ref$height, className = _ref.className, rest = _objectWithoutProperties2(_ref, _excluded2);
12027
+ var Cross = (_ref2) => {
12028
+ var _ref$x = _ref2.x, x4 = _ref$x === void 0 ? 0 : _ref$x, _ref$y = _ref2.y, y5 = _ref$y === void 0 ? 0 : _ref$y, _ref$top = _ref2.top, top = _ref$top === void 0 ? 0 : _ref$top, _ref$left = _ref2.left, left = _ref$left === void 0 ? 0 : _ref$left, _ref$width = _ref2.width, width = _ref$width === void 0 ? 0 : _ref$width, _ref$height = _ref2.height, height = _ref$height === void 0 ? 0 : _ref$height, className = _ref2.className, rest = _objectWithoutProperties4(_ref2, _excluded4);
11756
12029
  var props = _objectSpread8({
11757
12030
  x: x4,
11758
12031
  y: y5,
@@ -11774,8 +12047,6 @@ var Cross = (_ref) => {
11774
12047
  function getCursorRectangle(layout, activeCoordinate, offset, tooltipAxisBandSize) {
11775
12048
  var halfSize = tooltipAxisBandSize / 2;
11776
12049
  return {
11777
- stroke: "none",
11778
- fill: "#ccc",
11779
12050
  x: layout === "horizontal" ? activeCoordinate.x - halfSize : offset.left + 0.5,
11780
12051
  y: layout === "horizontal" ? offset.top + 0.5 : activeCoordinate.y - halfSize,
11781
12052
  width: layout === "horizontal" ? tooltipAxisBandSize : offset.width - 1,
@@ -11822,9 +12093,9 @@ var getBezierCoordinates = function getBezierCoordinates2() {
11822
12093
  case "ease-in":
11823
12094
  return [0.42, 0, 1, 1];
11824
12095
  case "ease-out":
11825
- return [0.42, 0, 0.58, 1];
11826
- case "ease-in-out":
11827
12096
  return [0, 0, 0.58, 1];
12097
+ case "ease-in-out":
12098
+ return [0.42, 0, 0.58, 1];
11828
12099
  default: {
11829
12100
  var easing = parseCubicBezier(args[0]);
11830
12101
  if (easing) {
@@ -12181,25 +12452,25 @@ var RequestAnimationFrameTimeoutController = class {
12181
12452
  };
12182
12453
 
12183
12454
  // ../node_modules/recharts/es6/animation/JavascriptAnimate.js
12184
- function _slicedToArray6(r3, e3) {
12185
- return _arrayWithHoles6(r3) || _iterableToArrayLimit6(r3, e3) || _unsupportedIterableToArray6(r3, e3) || _nonIterableRest6();
12455
+ function _slicedToArray8(r3, e3) {
12456
+ return _arrayWithHoles8(r3) || _iterableToArrayLimit8(r3, e3) || _unsupportedIterableToArray8(r3, e3) || _nonIterableRest8();
12186
12457
  }
12187
- function _nonIterableRest6() {
12458
+ function _nonIterableRest8() {
12188
12459
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12189
12460
  }
12190
- function _unsupportedIterableToArray6(r3, a5) {
12461
+ function _unsupportedIterableToArray8(r3, a5) {
12191
12462
  if (r3) {
12192
- if ("string" == typeof r3) return _arrayLikeToArray6(r3, a5);
12463
+ if ("string" == typeof r3) return _arrayLikeToArray8(r3, a5);
12193
12464
  var t = {}.toString.call(r3).slice(8, -1);
12194
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray6(r3, a5) : void 0;
12465
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray8(r3, a5) : void 0;
12195
12466
  }
12196
12467
  }
12197
- function _arrayLikeToArray6(r3, a5) {
12468
+ function _arrayLikeToArray8(r3, a5) {
12198
12469
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
12199
12470
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
12200
12471
  return n5;
12201
12472
  }
12202
- function _iterableToArrayLimit6(r3, l3) {
12473
+ function _iterableToArrayLimit8(r3, l3) {
12203
12474
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
12204
12475
  if (null != t) {
12205
12476
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -12217,7 +12488,7 @@ function _iterableToArrayLimit6(r3, l3) {
12217
12488
  return a5;
12218
12489
  }
12219
12490
  }
12220
- function _arrayWithHoles6(r3) {
12491
+ function _arrayWithHoles8(r3) {
12221
12492
  if (Array.isArray(r3)) return r3;
12222
12493
  }
12223
12494
  var defaultJavascriptAnimateProps = {
@@ -12239,7 +12510,7 @@ function JavascriptAnimate(outsideProps) {
12239
12510
  var prefersReducedMotion = usePrefersReducedMotion();
12240
12511
  var isActive = isActiveProp === "auto" ? !Global.isSsr && !prefersReducedMotion : isActiveProp;
12241
12512
  var animationController = useAnimationController(props.animationController);
12242
- var _useState = useState(isActive ? from : to), _useState2 = _slicedToArray6(_useState, 2), style = _useState2[0], setStyle = _useState2[1];
12513
+ var _useState = useState(isActive ? from : to), _useState2 = _slicedToArray8(_useState, 2), style = _useState2[0], setStyle = _useState2[1];
12243
12514
  useEffect(() => {
12244
12515
  if (!isActive) {
12245
12516
  setStyle(to);
@@ -12281,7 +12552,7 @@ var getDashCase = (name) => name.replace(/([A-Z])/g, (v) => "-".concat(v.toLower
12281
12552
  var getTransitionVal = (props, duration2, easing) => props.map((prop) => "".concat(getDashCase(prop), " ").concat(duration2, "ms ").concat(easing)).join(",");
12282
12553
 
12283
12554
  // ../node_modules/recharts/es6/shape/Rectangle.js
12284
- var _excluded3 = ["radius"];
12555
+ var _excluded5 = ["radius"];
12285
12556
  var _excluded22 = ["radius"];
12286
12557
  var _templateObject;
12287
12558
  var _templateObject2;
@@ -12340,16 +12611,16 @@ function _extends5() {
12340
12611
  return n5;
12341
12612
  }, _extends5.apply(null, arguments);
12342
12613
  }
12343
- function _objectWithoutProperties3(e3, t) {
12614
+ function _objectWithoutProperties5(e3, t) {
12344
12615
  if (null == e3) return {};
12345
- var o5, r3, i3 = _objectWithoutPropertiesLoose3(e3, t);
12616
+ var o5, r3, i3 = _objectWithoutPropertiesLoose5(e3, t);
12346
12617
  if (Object.getOwnPropertySymbols) {
12347
12618
  var n5 = Object.getOwnPropertySymbols(e3);
12348
12619
  for (r3 = 0; r3 < n5.length; r3++) o5 = n5[r3], -1 === t.indexOf(o5) && {}.propertyIsEnumerable.call(e3, o5) && (i3[o5] = e3[o5]);
12349
12620
  }
12350
12621
  return i3;
12351
12622
  }
12352
- function _objectWithoutPropertiesLoose3(r3, e3) {
12623
+ function _objectWithoutPropertiesLoose5(r3, e3) {
12353
12624
  if (null == r3) return {};
12354
12625
  var t = {};
12355
12626
  for (var n5 in r3) if ({}.hasOwnProperty.call(r3, n5)) {
@@ -12358,25 +12629,25 @@ function _objectWithoutPropertiesLoose3(r3, e3) {
12358
12629
  }
12359
12630
  return t;
12360
12631
  }
12361
- function _slicedToArray7(r3, e3) {
12362
- return _arrayWithHoles7(r3) || _iterableToArrayLimit7(r3, e3) || _unsupportedIterableToArray7(r3, e3) || _nonIterableRest7();
12632
+ function _slicedToArray9(r3, e3) {
12633
+ return _arrayWithHoles9(r3) || _iterableToArrayLimit9(r3, e3) || _unsupportedIterableToArray9(r3, e3) || _nonIterableRest9();
12363
12634
  }
12364
- function _nonIterableRest7() {
12635
+ function _nonIterableRest9() {
12365
12636
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12366
12637
  }
12367
- function _unsupportedIterableToArray7(r3, a5) {
12638
+ function _unsupportedIterableToArray9(r3, a5) {
12368
12639
  if (r3) {
12369
- if ("string" == typeof r3) return _arrayLikeToArray7(r3, a5);
12640
+ if ("string" == typeof r3) return _arrayLikeToArray9(r3, a5);
12370
12641
  var t = {}.toString.call(r3).slice(8, -1);
12371
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray7(r3, a5) : void 0;
12642
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray9(r3, a5) : void 0;
12372
12643
  }
12373
12644
  }
12374
- function _arrayLikeToArray7(r3, a5) {
12645
+ function _arrayLikeToArray9(r3, a5) {
12375
12646
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
12376
12647
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
12377
12648
  return n5;
12378
12649
  }
12379
- function _iterableToArrayLimit7(r3, l3) {
12650
+ function _iterableToArrayLimit9(r3, l3) {
12380
12651
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
12381
12652
  if (null != t) {
12382
12653
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -12394,7 +12665,7 @@ function _iterableToArrayLimit7(r3, l3) {
12394
12665
  return a5;
12395
12666
  }
12396
12667
  }
12397
- function _arrayWithHoles7(r3) {
12668
+ function _arrayWithHoles9(r3) {
12398
12669
  if (Array.isArray(r3)) return r3;
12399
12670
  }
12400
12671
  function _taggedTemplateLiteral(e3, t) {
@@ -12452,10 +12723,10 @@ var defaultRectangleProps = {
12452
12723
  animationDuration: 1500,
12453
12724
  animationEasing: "ease"
12454
12725
  };
12455
- var Rectangle = (rectangleProps) => {
12726
+ var RectangleImpl = (rectangleProps) => {
12456
12727
  var props = resolveDefaultProps(rectangleProps, defaultRectangleProps);
12457
12728
  var pathRef = useRef(null);
12458
- var _useState = useState(-1), _useState2 = _slicedToArray7(_useState, 2), totalLength = _useState2[0], setTotalLength = _useState2[1];
12729
+ var _useState = useState(-1), _useState2 = _slicedToArray9(_useState, 2), totalLength = _useState2[0], setTotalLength = _useState2[1];
12459
12730
  useEffect(() => {
12460
12731
  if (pathRef.current && pathRef.current.getTotalLength) {
12461
12732
  try {
@@ -12481,12 +12752,21 @@ var Rectangle = (rectangleProps) => {
12481
12752
  radius
12482
12753
  }), [x4, y5, width, height, radius]);
12483
12754
  var animationId = useAnimationId(animationIdInput, "rectangle-");
12484
- if (x4 !== +x4 || y5 !== +y5 || width !== +width || height !== +height || width === 0 || height === 0) {
12755
+ var _useState3 = useState(0), _useState4 = _slicedToArray9(_useState3, 2), setAnimationEndTick = _useState4[1];
12756
+ var handleAnimationEnd = useCallback(() => {
12757
+ setAnimationEndTick((tick) => tick + 1);
12758
+ }, []);
12759
+ if (x4 !== +x4 || y5 !== +y5 || width !== +width || height !== +height) {
12760
+ return null;
12761
+ }
12762
+ var hasZeroDimension = width === 0 || height === 0;
12763
+ var wasVisibleBefore = prevWidthRef.current !== 0 && prevHeightRef.current !== 0;
12764
+ if (hasZeroDimension && !(isUpdateAnimationActive && wasVisibleBefore)) {
12485
12765
  return null;
12486
12766
  }
12487
12767
  var layerClass = clsx("recharts-rectangle", className);
12488
12768
  if (!isUpdateAnimationActive) {
12489
- var _svgPropertiesAndEven = svgPropertiesAndEvents(props); _svgPropertiesAndEven.radius; var otherPathProps = _objectWithoutProperties3(_svgPropertiesAndEven, _excluded3);
12769
+ var _svgPropertiesAndEven = svgPropertiesAndEvents(props); _svgPropertiesAndEven.radius; var otherPathProps = _objectWithoutProperties5(_svgPropertiesAndEven, _excluded5);
12490
12770
  return /* @__PURE__ */ D3.createElement("path", _extends5({}, otherPathProps, {
12491
12771
  x: round(x4),
12492
12772
  y: round(y5),
@@ -12511,7 +12791,8 @@ var Rectangle = (rectangleProps) => {
12511
12791
  duration: animationDuration,
12512
12792
  easing: animationEasing,
12513
12793
  isActive: isUpdateAnimationActive,
12514
- begin: animationBegin
12794
+ begin: animationBegin,
12795
+ onAnimationEnd: hasZeroDimension ? handleAnimationEnd : void 0
12515
12796
  }, (animationElapsedTime) => {
12516
12797
  var currWidth = interpolate(prevWidth, width, animationElapsedTime);
12517
12798
  var currHeight = interpolate(prevHeight, height, animationElapsedTime);
@@ -12538,7 +12819,7 @@ var Rectangle = (rectangleProps) => {
12538
12819
  strokeDasharray: from2
12539
12820
  };
12540
12821
  }
12541
- var _svgPropertiesAndEven2 = svgPropertiesAndEvents(props); _svgPropertiesAndEven2.radius; var otherPathProps2 = _objectWithoutProperties3(_svgPropertiesAndEven2, _excluded22);
12822
+ var _svgPropertiesAndEven2 = svgPropertiesAndEvents(props); _svgPropertiesAndEven2.radius; var otherPathProps2 = _objectWithoutProperties5(_svgPropertiesAndEven2, _excluded22);
12542
12823
  return /* @__PURE__ */ D3.createElement("path", _extends5({}, otherPathProps2, {
12543
12824
  radius: typeof radius === "number" ? radius : void 0,
12544
12825
  className: layerClass,
@@ -12548,6 +12829,18 @@ var Rectangle = (rectangleProps) => {
12548
12829
  }));
12549
12830
  });
12550
12831
  };
12832
+ var Rectangle = (props) => {
12833
+ var _props$width, _props$height;
12834
+ var fill = props.fill;
12835
+ return fill != null && typeof fill === "object" ? /* @__PURE__ */ D3.createElement(FillObjectPaint, {
12836
+ fill,
12837
+ bounds: getShapeBounds(Math.abs((_props$width = props.width) !== null && _props$width !== void 0 ? _props$width : 0), Math.abs((_props$height = props.height) !== null && _props$height !== void 0 ? _props$height : 0))
12838
+ }, (paint) => /* @__PURE__ */ D3.createElement(RectangleImpl, _extends5({}, props, {
12839
+ fill: paint
12840
+ }))) : /* @__PURE__ */ D3.createElement(RectangleImpl, _extends5({}, props, {
12841
+ fill
12842
+ }));
12843
+ };
12551
12844
 
12552
12845
  // ../node_modules/recharts/es6/util/PolarUtils.js
12553
12846
  var RADIAN = Math.PI / 180;
@@ -12602,8 +12895,8 @@ var getDeltaAngle = (startAngle, endAngle) => {
12602
12895
  var deltaAngle = Math.min(Math.abs(endAngle - startAngle), 359.999);
12603
12896
  return sign2 * deltaAngle;
12604
12897
  };
12605
- var getTangentCircle = (_ref) => {
12606
- var cx = _ref.cx, cy = _ref.cy, radius = _ref.radius, angle = _ref.angle, sign2 = _ref.sign, isExternal = _ref.isExternal, cornerRadius = _ref.cornerRadius, cornerIsExternal = _ref.cornerIsExternal;
12898
+ var getTangentCircle = (_ref2) => {
12899
+ var cx = _ref2.cx, cy = _ref2.cy, radius = _ref2.radius, angle = _ref2.angle, sign2 = _ref2.sign, isExternal = _ref2.isExternal, cornerRadius = _ref2.cornerRadius, cornerIsExternal = _ref2.cornerIsExternal;
12607
12900
  var centerRadius = cornerRadius * (isExternal ? 1 : -1) + radius;
12608
12901
  var theta = Math.asin(cornerRadius / centerRadius) / RADIAN;
12609
12902
  var centerAngle = cornerIsExternal ? angle : angle + sign2 * theta;
@@ -12637,13 +12930,18 @@ var getSectorPath = (_ref2) => {
12637
12930
  var getSectorWithCorner = (_ref3) => {
12638
12931
  var cx = _ref3.cx, cy = _ref3.cy, innerRadius = _ref3.innerRadius, outerRadius = _ref3.outerRadius, cornerRadius = _ref3.cornerRadius, forceCornerRadius = _ref3.forceCornerRadius, cornerIsExternal = _ref3.cornerIsExternal, startAngle = _ref3.startAngle, endAngle = _ref3.endAngle;
12639
12932
  var sign2 = mathSign(endAngle - startAngle);
12933
+ var deltaAngle = Math.abs(startAngle - endAngle);
12934
+ var shouldFitCorners = !forceCornerRadius && !cornerIsExternal && deltaAngle < 180;
12935
+ var sinHalfAngle = Math.sin(deltaAngle / 2 * RADIAN);
12936
+ var outerCornerRadius = shouldFitCorners ? Math.min(cornerRadius, outerRadius * sinHalfAngle / (1 + sinHalfAngle)) : cornerRadius;
12937
+ var innerCornerRadius = shouldFitCorners ? Math.min(cornerRadius, innerRadius * sinHalfAngle / (1 - sinHalfAngle)) : cornerRadius;
12640
12938
  var _getTangentCircle = getTangentCircle({
12641
12939
  cx,
12642
12940
  cy,
12643
12941
  radius: outerRadius,
12644
12942
  angle: startAngle,
12645
12943
  sign: sign2,
12646
- cornerRadius,
12944
+ cornerRadius: outerCornerRadius,
12647
12945
  cornerIsExternal
12648
12946
  }), soct = _getTangentCircle.circleTangency, solt = _getTangentCircle.lineTangency, sot = _getTangentCircle.theta;
12649
12947
  var _getTangentCircle2 = getTangentCircle({
@@ -12652,24 +12950,14 @@ var getSectorWithCorner = (_ref3) => {
12652
12950
  radius: outerRadius,
12653
12951
  angle: endAngle,
12654
12952
  sign: -sign2,
12655
- cornerRadius,
12953
+ cornerRadius: outerCornerRadius,
12656
12954
  cornerIsExternal
12657
12955
  }), eoct = _getTangentCircle2.circleTangency, eolt = _getTangentCircle2.lineTangency, eot = _getTangentCircle2.theta;
12658
12956
  var outerArcAngle = cornerIsExternal ? Math.abs(startAngle - endAngle) : Math.abs(startAngle - endAngle) - sot - eot;
12659
- if (outerArcAngle < 0) {
12660
- if (forceCornerRadius) {
12661
- return roundTemplateLiteral(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral2(["M ", ",", "\n a", ",", ",0,0,1,", ",0\n a", ",", ",0,0,1,", ",0\n "])), solt.x, solt.y, cornerRadius, cornerRadius, cornerRadius * 2, cornerRadius, cornerRadius, -cornerRadius * 2);
12662
- }
12663
- return getSectorPath({
12664
- cx,
12665
- cy,
12666
- innerRadius,
12667
- outerRadius,
12668
- startAngle,
12669
- endAngle
12670
- });
12957
+ if (outerArcAngle < 0 && forceCornerRadius) {
12958
+ return roundTemplateLiteral(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral2(["M ", ",", "\n a", ",", ",0,0,1,", ",0\n a", ",", ",0,0,1,", ",0\n "])), solt.x, solt.y, cornerRadius, cornerRadius, cornerRadius * 2, cornerRadius, cornerRadius, -cornerRadius * 2);
12671
12959
  }
12672
- var path2 = roundTemplateLiteral(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral2(["M ", ",", "\n A", ",", ",0,0,", ",", ",", "\n A", ",", ",0,", ",", ",", ",", "\n A", ",", ",0,0,", ",", ",", "\n "])), solt.x, solt.y, cornerRadius, cornerRadius, +(sign2 < 0), soct.x, soct.y, outerRadius, outerRadius, +(outerArcAngle > 180), +(sign2 < 0), eoct.x, eoct.y, cornerRadius, cornerRadius, +(sign2 < 0), eolt.x, eolt.y);
12960
+ var path2 = roundTemplateLiteral(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral2(["M ", ",", "\n A", ",", ",0,0,", ",", ",", "\n A", ",", ",0,", ",", ",", ",", "\n A", ",", ",0,0,", ",", ",", "\n "])), solt.x, solt.y, outerCornerRadius, outerCornerRadius, +(sign2 < 0), soct.x, soct.y, outerRadius, outerRadius, +(outerArcAngle > 180), +(sign2 < 0), eoct.x, eoct.y, outerCornerRadius, outerCornerRadius, +(sign2 < 0), eolt.x, eolt.y);
12673
12961
  if (innerRadius > 0) {
12674
12962
  var _getTangentCircle3 = getTangentCircle({
12675
12963
  cx,
@@ -12678,7 +12966,7 @@ var getSectorWithCorner = (_ref3) => {
12678
12966
  angle: startAngle,
12679
12967
  sign: sign2,
12680
12968
  isExternal: true,
12681
- cornerRadius,
12969
+ cornerRadius: innerCornerRadius,
12682
12970
  cornerIsExternal
12683
12971
  }), sict = _getTangentCircle3.circleTangency, silt = _getTangentCircle3.lineTangency, sit = _getTangentCircle3.theta;
12684
12972
  var _getTangentCircle4 = getTangentCircle({
@@ -12688,14 +12976,14 @@ var getSectorWithCorner = (_ref3) => {
12688
12976
  angle: endAngle,
12689
12977
  sign: -sign2,
12690
12978
  isExternal: true,
12691
- cornerRadius,
12979
+ cornerRadius: innerCornerRadius,
12692
12980
  cornerIsExternal
12693
12981
  }), eict = _getTangentCircle4.circleTangency, eilt = _getTangentCircle4.lineTangency, eit = _getTangentCircle4.theta;
12694
12982
  var innerArcAngle = cornerIsExternal ? Math.abs(startAngle - endAngle) : Math.abs(startAngle - endAngle) - sit - eit;
12695
12983
  if (innerArcAngle < 0 && cornerRadius === 0) {
12696
12984
  return "".concat(path2, "L").concat(cx, ",").concat(cy, "Z");
12697
12985
  }
12698
- path2 += roundTemplateLiteral(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral2(["L", ",", "\n A", ",", ",0,0,", ",", ",", "\n A", ",", ",0,", ",", ",", ",", "\n A", ",", ",0,0,", ",", ",", "Z"])), eilt.x, eilt.y, cornerRadius, cornerRadius, +(sign2 < 0), eict.x, eict.y, innerRadius, innerRadius, +(innerArcAngle > 180), +(sign2 > 0), sict.x, sict.y, cornerRadius, cornerRadius, +(sign2 < 0), silt.x, silt.y);
12986
+ path2 += roundTemplateLiteral(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral2(["L", ",", "\n A", ",", ",0,0,", ",", ",", "\n A", ",", ",0,", ",", ",", ",", "\n A", ",", ",0,0,", ",", ",", "Z"])), eilt.x, eilt.y, innerCornerRadius, innerCornerRadius, +(sign2 < 0), eict.x, eict.y, innerRadius, innerRadius, +(innerArcAngle > 180), +(sign2 > 0), sict.x, sict.y, innerCornerRadius, innerCornerRadius, +(sign2 < 0), silt.x, silt.y);
12699
12987
  } else {
12700
12988
  path2 += roundTemplateLiteral(_templateObject72 || (_templateObject72 = _taggedTemplateLiteral2(["L", ",", "Z"])), cx, cy);
12701
12989
  }
@@ -12712,7 +13000,7 @@ var defaultSectorProps = {
12712
13000
  forceCornerRadius: false,
12713
13001
  cornerIsExternal: false
12714
13002
  };
12715
- var Sector = (sectorProps) => {
13003
+ var SectorImpl = (sectorProps) => {
12716
13004
  var props = resolveDefaultProps(sectorProps, defaultSectorProps);
12717
13005
  var cx = props.cx, cy = props.cy, innerRadius = props.innerRadius, outerRadius = props.outerRadius, cornerRadius = props.cornerRadius, forceCornerRadius = props.forceCornerRadius, cornerIsExternal = props.cornerIsExternal, startAngle = props.startAngle, endAngle = props.endAngle, className = props.className;
12718
13006
  if (outerRadius < innerRadius || startAngle === endAngle) {
@@ -12749,6 +13037,16 @@ var Sector = (sectorProps) => {
12749
13037
  d: path2
12750
13038
  }));
12751
13039
  };
13040
+ var Sector = (props) => {
13041
+ var fill = props.fill;
13042
+ return fill != null && typeof fill === "object" ? /* @__PURE__ */ D3.createElement(FillObjectPaint, {
13043
+ fill
13044
+ }, (paint) => /* @__PURE__ */ D3.createElement(SectorImpl, _extends6({}, props, {
13045
+ fill: paint
13046
+ }))) : /* @__PURE__ */ D3.createElement(SectorImpl, _extends6({}, props, {
13047
+ fill
13048
+ }));
13049
+ };
12752
13050
 
12753
13051
  // ../node_modules/recharts/es6/util/cursor/getCursorPoints.js
12754
13052
  function getCursorPoints(layout, activeCoordinate, offset) {
@@ -12837,8 +13135,8 @@ var selectChartDataWithIndexesIfNotInPanoramaPosition4 = (state, _unused1, _unus
12837
13135
  }
12838
13136
  return selectChartDataWithIndexes(state);
12839
13137
  };
12840
- var selectChartDataSliceIfNotInPanorama = createSelector([selectChartDataWithIndexesIfNotInPanoramaPosition4], (_ref) => {
12841
- var chartData = _ref.chartData, dataStartIndex = _ref.dataStartIndex, dataEndIndex = _ref.dataEndIndex;
13138
+ var selectChartDataSliceIfNotInPanorama = createSelector([selectChartDataWithIndexesIfNotInPanoramaPosition4], (_ref2) => {
13139
+ var chartData = _ref2.chartData, dataStartIndex = _ref2.dataStartIndex, dataEndIndex = _ref2.dataEndIndex;
12842
13140
  return chartData != null ? chartData.slice(dataStartIndex, dataEndIndex + 1) : [];
12843
13141
  });
12844
13142
  createSelector([selectChartDataAndAlwaysIgnoreIndexes], (_ref2) => {
@@ -12851,25 +13149,25 @@ var selectChartDataSliceWithIndexes = createSelector([selectChartDataWithIndexes
12851
13149
  });
12852
13150
 
12853
13151
  // ../node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
12854
- function _slicedToArray8(r3, e3) {
12855
- return _arrayWithHoles8(r3) || _iterableToArrayLimit8(r3, e3) || _unsupportedIterableToArray8(r3, e3) || _nonIterableRest8();
13152
+ function _slicedToArray10(r3, e3) {
13153
+ return _arrayWithHoles10(r3) || _iterableToArrayLimit10(r3, e3) || _unsupportedIterableToArray10(r3, e3) || _nonIterableRest10();
12856
13154
  }
12857
- function _nonIterableRest8() {
13155
+ function _nonIterableRest10() {
12858
13156
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12859
13157
  }
12860
- function _unsupportedIterableToArray8(r3, a5) {
13158
+ function _unsupportedIterableToArray10(r3, a5) {
12861
13159
  if (r3) {
12862
- if ("string" == typeof r3) return _arrayLikeToArray8(r3, a5);
13160
+ if ("string" == typeof r3) return _arrayLikeToArray10(r3, a5);
12863
13161
  var t = {}.toString.call(r3).slice(8, -1);
12864
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray8(r3, a5) : void 0;
13162
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray10(r3, a5) : void 0;
12865
13163
  }
12866
13164
  }
12867
- function _arrayLikeToArray8(r3, a5) {
13165
+ function _arrayLikeToArray10(r3, a5) {
12868
13166
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
12869
13167
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
12870
13168
  return n5;
12871
13169
  }
12872
- function _iterableToArrayLimit8(r3, l3) {
13170
+ function _iterableToArrayLimit10(r3, l3) {
12873
13171
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
12874
13172
  if (null != t) {
12875
13173
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -12887,12 +13185,12 @@ function _iterableToArrayLimit8(r3, l3) {
12887
13185
  return a5;
12888
13186
  }
12889
13187
  }
12890
- function _arrayWithHoles8(r3) {
13188
+ function _arrayWithHoles10(r3) {
12891
13189
  if (Array.isArray(r3)) return r3;
12892
13190
  }
12893
13191
  function isWellFormedNumberDomain(v) {
12894
13192
  if (Array.isArray(v) && v.length === 2) {
12895
- var _v = _slicedToArray8(v, 2), min2 = _v[0], max2 = _v[1];
13193
+ var _v = _slicedToArray10(v, 2), min2 = _v[0], max2 = _v[1];
12896
13194
  if (isWellBehavedNumber(min2) && isWellBehavedNumber(max2)) {
12897
13195
  return true;
12898
13196
  }
@@ -12913,7 +13211,7 @@ function numericalDomainSpecifiedWithoutRequiringData(userDomain, allowDataOverf
12913
13211
  return void 0;
12914
13212
  }
12915
13213
  if (Array.isArray(userDomain) && userDomain.length === 2) {
12916
- var _userDomain = _slicedToArray8(userDomain, 2), providedMin = _userDomain[0], providedMax = _userDomain[1];
13214
+ var _userDomain = _slicedToArray10(userDomain, 2), providedMin = _userDomain[0], providedMax = _userDomain[1];
12917
13215
  var finalMin, finalMax;
12918
13216
  if (isWellBehavedNumber(providedMin)) {
12919
13217
  finalMin = providedMin;
@@ -12946,7 +13244,7 @@ function parseNumericalUserDomain(userDomain, dataDomain, allowDataOverflow) {
12946
13244
  }
12947
13245
  }
12948
13246
  if (Array.isArray(userDomain) && userDomain.length === 2) {
12949
- var _userDomain2 = _slicedToArray8(userDomain, 2), providedMin = _userDomain2[0], providedMax = _userDomain2[1];
13247
+ var _userDomain2 = _slicedToArray10(userDomain, 2), providedMin = _userDomain2[0], providedMax = _userDomain2[1];
12950
13248
  var finalMin, finalMax;
12951
13249
  if (providedMin === "auto") {
12952
13250
  if (dataDomain != null) {
@@ -13007,6 +13305,65 @@ function parseNumericalUserDomain(userDomain, dataDomain, allowDataOverflow) {
13007
13305
  return void 0;
13008
13306
  }
13009
13307
 
13308
+ // ../node_modules/recharts/es6/state/chartDataSlice.js
13309
+ var initialChartDataState = {
13310
+ chartData: void 0,
13311
+ computedData: void 0,
13312
+ dataStartIndex: 0,
13313
+ dataEndIndex: 0
13314
+ };
13315
+ function getBrushSliceIndexes(_ref2) {
13316
+ var chartData = _ref2.chartData, dataStartIndex = _ref2.dataStartIndex, dataEndIndex = _ref2.dataEndIndex;
13317
+ if (chartData == null || chartData.length === 0) {
13318
+ return [0, Infinity];
13319
+ }
13320
+ return [dataStartIndex, dataEndIndex];
13321
+ }
13322
+ var chartDataSlice = createSlice({
13323
+ name: "chartData",
13324
+ initialState: initialChartDataState,
13325
+ reducers: {
13326
+ setChartData(state, action) {
13327
+ state.chartData = castDraft(action.payload);
13328
+ if (action.payload == null) {
13329
+ state.dataStartIndex = 0;
13330
+ state.dataEndIndex = 0;
13331
+ return;
13332
+ }
13333
+ if (action.payload.length > 0 && state.dataEndIndex !== action.payload.length - 1) {
13334
+ state.dataEndIndex = action.payload.length - 1;
13335
+ }
13336
+ if (action.payload.length > 0) {
13337
+ state.dataStartIndex = Math.min(Math.max(state.dataStartIndex, 0), action.payload.length - 1);
13338
+ }
13339
+ },
13340
+ setComputedData(state, action) {
13341
+ state.computedData = action.payload;
13342
+ },
13343
+ setDataStartEndIndexes(state, action) {
13344
+ var _action$payload = action.payload, startIndex = _action$payload.startIndex, endIndex = _action$payload.endIndex;
13345
+ var lastIndex = state.chartData != null && state.chartData.length > 0 ? state.chartData.length - 1 : void 0;
13346
+ var clamp = (index) => {
13347
+ if (lastIndex == null) {
13348
+ return index;
13349
+ }
13350
+ return Math.min(Math.max(index, 0), lastIndex);
13351
+ };
13352
+ if (startIndex != null) {
13353
+ state.dataStartIndex = clamp(startIndex);
13354
+ }
13355
+ if (endIndex != null) {
13356
+ state.dataEndIndex = clamp(endIndex);
13357
+ }
13358
+ }
13359
+ }
13360
+ });
13361
+ var _chartDataSlice$actio = chartDataSlice.actions;
13362
+ _chartDataSlice$actio.setChartData;
13363
+ _chartDataSlice$actio.setDataStartEndIndexes;
13364
+ _chartDataSlice$actio.setComputedData;
13365
+ chartDataSlice.reducer;
13366
+
13010
13367
  // ../node_modules/recharts/es6/util/scale/getNiceTickValues.js
13011
13368
  var import_decimal2 = __toESM(require_decimal());
13012
13369
 
@@ -13034,25 +13391,25 @@ function rangeStep(start, end, step2) {
13034
13391
  }
13035
13392
 
13036
13393
  // ../node_modules/recharts/es6/util/scale/getNiceTickValues.js
13037
- function _slicedToArray9(r3, e3) {
13038
- return _arrayWithHoles9(r3) || _iterableToArrayLimit9(r3, e3) || _unsupportedIterableToArray9(r3, e3) || _nonIterableRest9();
13394
+ function _slicedToArray11(r3, e3) {
13395
+ return _arrayWithHoles11(r3) || _iterableToArrayLimit11(r3, e3) || _unsupportedIterableToArray11(r3, e3) || _nonIterableRest11();
13039
13396
  }
13040
- function _nonIterableRest9() {
13397
+ function _nonIterableRest11() {
13041
13398
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13042
13399
  }
13043
- function _unsupportedIterableToArray9(r3, a5) {
13400
+ function _unsupportedIterableToArray11(r3, a5) {
13044
13401
  if (r3) {
13045
- if ("string" == typeof r3) return _arrayLikeToArray9(r3, a5);
13402
+ if ("string" == typeof r3) return _arrayLikeToArray11(r3, a5);
13046
13403
  var t = {}.toString.call(r3).slice(8, -1);
13047
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray9(r3, a5) : void 0;
13404
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray11(r3, a5) : void 0;
13048
13405
  }
13049
13406
  }
13050
- function _arrayLikeToArray9(r3, a5) {
13407
+ function _arrayLikeToArray11(r3, a5) {
13051
13408
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
13052
13409
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
13053
13410
  return n5;
13054
13411
  }
13055
- function _iterableToArrayLimit9(r3, l3) {
13412
+ function _iterableToArrayLimit11(r3, l3) {
13056
13413
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
13057
13414
  if (null != t) {
13058
13415
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -13070,11 +13427,11 @@ function _iterableToArrayLimit9(r3, l3) {
13070
13427
  return a5;
13071
13428
  }
13072
13429
  }
13073
- function _arrayWithHoles9(r3) {
13430
+ function _arrayWithHoles11(r3) {
13074
13431
  if (Array.isArray(r3)) return r3;
13075
13432
  }
13076
- var getValidInterval = (_ref) => {
13077
- var _ref2 = _slicedToArray9(_ref, 2), min2 = _ref2[0], max2 = _ref2[1];
13433
+ var getValidInterval = (_ref2) => {
13434
+ var _ref22 = _slicedToArray11(_ref2, 2), min2 = _ref22[0], max2 = _ref22[1];
13078
13435
  var validMin = min2, validMax = max2;
13079
13436
  if (min2 > max2) {
13080
13437
  validMin = max2;
@@ -13152,7 +13509,8 @@ var _calculateStep = function calculateStep(min2, max2, tickCount, allowDecimals
13152
13509
  tickMax: new import_decimal2.default(0)
13153
13510
  };
13154
13511
  }
13155
- var step2 = stepFn(new import_decimal2.default(max2).sub(min2).div(tickCount - 1), allowDecimals, correctionFactor);
13512
+ var count = min2 < 0 && max2 > 0 ? Math.max(tickCount, 3) : tickCount;
13513
+ var step2 = stepFn(new import_decimal2.default(max2).sub(min2).div(count - 1), allowDecimals, correctionFactor);
13156
13514
  var middle;
13157
13515
  if (min2 <= 0 && max2 >= 0) {
13158
13516
  middle = new import_decimal2.default(0);
@@ -13163,12 +13521,12 @@ var _calculateStep = function calculateStep(min2, max2, tickCount, allowDecimals
13163
13521
  var belowCount = Math.ceil(middle.sub(min2).div(step2).toNumber());
13164
13522
  var upCount = Math.ceil(new import_decimal2.default(max2).sub(middle).div(step2).toNumber());
13165
13523
  var scaleCount = belowCount + upCount + 1;
13166
- if (scaleCount > tickCount) {
13167
- return _calculateStep(min2, max2, tickCount, allowDecimals, correctionFactor + 1, stepFn);
13524
+ if (scaleCount > count) {
13525
+ return _calculateStep(min2, max2, count, allowDecimals, correctionFactor + 1, stepFn);
13168
13526
  }
13169
- if (scaleCount < tickCount) {
13170
- upCount = max2 > 0 ? upCount + (tickCount - scaleCount) : upCount;
13171
- belowCount = max2 > 0 ? belowCount : belowCount + (tickCount - scaleCount);
13527
+ if (scaleCount < count) {
13528
+ upCount = max2 > 0 ? upCount + (count - scaleCount) : upCount;
13529
+ belowCount = max2 > 0 ? belowCount : belowCount + (count - scaleCount);
13172
13530
  }
13173
13531
  return {
13174
13532
  step: step2,
@@ -13177,12 +13535,12 @@ var _calculateStep = function calculateStep(min2, max2, tickCount, allowDecimals
13177
13535
  };
13178
13536
  };
13179
13537
  var getNiceTickValues = function getNiceTickValues2(_ref3) {
13180
- var _ref4 = _slicedToArray9(_ref3, 2), min2 = _ref4[0], max2 = _ref4[1];
13538
+ var _ref4 = _slicedToArray11(_ref3, 2), min2 = _ref4[0], max2 = _ref4[1];
13181
13539
  var tickCount = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6;
13182
13540
  var allowDecimals = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
13183
13541
  var niceTicksMode = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto";
13184
13542
  var count = Math.max(tickCount, 2);
13185
- var _getValidInterval = getValidInterval([min2, max2]), _getValidInterval2 = _slicedToArray9(_getValidInterval, 2), cormin = _getValidInterval2[0], cormax = _getValidInterval2[1];
13543
+ var _getValidInterval = getValidInterval([min2, max2]), _getValidInterval2 = _slicedToArray11(_getValidInterval, 2), cormin = _getValidInterval2[0], cormax = _getValidInterval2[1];
13186
13544
  if (cormin === -Infinity || cormax === Infinity) {
13187
13545
  var _values = cormax === Infinity ? [cormin, ...Array(tickCount - 1).fill(Infinity)] : [...Array(tickCount - 1).fill(-Infinity), cormax];
13188
13546
  return min2 > max2 ? _values.reverse() : _values;
@@ -13196,10 +13554,10 @@ var getNiceTickValues = function getNiceTickValues2(_ref3) {
13196
13554
  return min2 > max2 ? values.reverse() : values;
13197
13555
  };
13198
13556
  var getTickValuesFixedDomain = function getTickValuesFixedDomain2(_ref5, tickCount) {
13199
- var _ref6 = _slicedToArray9(_ref5, 2), min2 = _ref6[0], max2 = _ref6[1];
13557
+ var _ref6 = _slicedToArray11(_ref5, 2), min2 = _ref6[0], max2 = _ref6[1];
13200
13558
  var allowDecimals = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
13201
13559
  var niceTicksMode = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto";
13202
- var _getValidInterval3 = getValidInterval([min2, max2]), _getValidInterval4 = _slicedToArray9(_getValidInterval3, 2), cormin = _getValidInterval4[0], cormax = _getValidInterval4[1];
13560
+ var _getValidInterval3 = getValidInterval([min2, max2]), _getValidInterval4 = _slicedToArray11(_getValidInterval3, 2), cormin = _getValidInterval4[0], cormax = _getValidInterval4[1];
13203
13561
  if (cormin === -Infinity || cormax === Infinity) {
13204
13562
  return [min2, max2];
13205
13563
  }
@@ -13250,8 +13608,10 @@ var DefaultZIndexes = {
13250
13608
  area: 100,
13251
13609
  /**
13252
13610
  * Cursor is embedded inside Tooltip and controlled by it.
13253
- * The Tooltip itself has a separate portal and is not included in the zIndex system;
13254
- * Cursor is the decoration inside the chart area. CursorRectangle is a rectangle box.
13611
+ *
13612
+ * The `Tooltip` itself has a separate portal and is not included in the zIndex system;
13613
+ *
13614
+ * `Cursor` is the decoration inside the chart area. CursorRectangle is a rectangle box.
13255
13615
  * It renders below bar so that in a stacked bar chart the cursor rectangle does not hide the other bars.
13256
13616
  */
13257
13617
  cursorRectangle: 200,
@@ -13260,7 +13620,7 @@ var DefaultZIndexes = {
13260
13620
  */
13261
13621
  bar: 300,
13262
13622
  /**
13263
- * Line and ReferenceLine, and ErrorBor
13623
+ * Line and ReferenceLine, and ErrorBar
13264
13624
  */
13265
13625
  line: 400,
13266
13626
  /**
@@ -13278,20 +13638,31 @@ var DefaultZIndexes = {
13278
13638
  activeBar: 1e3,
13279
13639
  /**
13280
13640
  * Cursor is embedded inside Tooltip and controlled by it.
13641
+ *
13281
13642
  * The Tooltip itself has a separate portal and is not included in the zIndex system;
13282
- * Cursor is the decoration inside the chart area, usually a cross or a box.
13283
- * CursorLine is a line cursor rendered in Line, Area, Scatter, Radar charts.
13284
- * It renders above the Line and Scatter so that it is always visible.
13285
- * It renders below active dot so that the dot is always visible and shows the current point.
13286
- * We're also assuming that the active dot is small enough that it does not fully cover the cursor line.
13287
13643
  *
13288
- * This also applies to the radial cursor in RadialBarChart.
13644
+ * `Cursor` is the decoration inside the chart area, usually a cross or a box.
13645
+ *
13646
+ * `CursorLine` is a line cursor rendered in Line, Area, Scatter, Radar charts.
13647
+ * - It renders above the Line and Scatter so that it is always visible.
13648
+ * - It renders below active dot so that the dot is always visible and shows the current point.
13649
+ * - We're also assuming that the active dot is small enough that it does not fully cover the cursor line.
13650
+ *
13651
+ * This zIndex also applies to the radial cursor in RadialBarChart.
13289
13652
  */
13290
13653
  cursorLine: 1100,
13291
13654
  /**
13292
13655
  * Hovering over a Point in Line, Area, Scatter, Radar renders a highlight dot
13293
13656
  */
13294
13657
  activeDot: 1200,
13658
+ /**
13659
+ * Backgrounds of LabelList and Label, when they have `background` set.
13660
+ * All backgrounds render below all label texts, so overlapping labels stay readable.
13661
+ * The gap to `label` leaves room for your own layers between backgrounds and texts.
13662
+ * A label with a custom zIndex keeps the same gap: zIndex 500 puts its background at 400.
13663
+ * Set `zIndex` in the `background` object to choose the layer yourself.
13664
+ */
13665
+ labelBackground: 1900,
13295
13666
  /**
13296
13667
  * LabelList and Label, including Axis labels
13297
13668
  */
@@ -13479,7 +13850,7 @@ var selectRadiusAxisRange = createSelector([selectMaxRadius, selectInnerRadius,
13479
13850
  return [innerRadius, outerRadius];
13480
13851
  });
13481
13852
  createSelector([selectRadiusAxis, selectRadiusAxisRange], combineAxisRangeWithReverse);
13482
- createSelector([selectChartLayout, selectPolarOptions, selectInnerRadius, selectOuterRadius, selectChartWidth, selectChartHeight], (layout, polarOptions, innerRadius, outerRadius, width, height) => {
13853
+ var selectPolarViewBox = createSelector([selectChartLayout, selectPolarOptions, selectInnerRadius, selectOuterRadius, selectChartWidth, selectChartHeight], (layout, polarOptions, innerRadius, outerRadius, width, height) => {
13483
13854
  if (layout !== "centric" && layout !== "radial" || polarOptions == null || innerRadius == null || outerRadius == null) {
13484
13855
  return void 0;
13485
13856
  }
@@ -13508,8 +13879,8 @@ function getStackSeriesIdentifier(graphicalItem) {
13508
13879
  }
13509
13880
 
13510
13881
  // ../node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
13511
- function combineDisplayedStackedData(stackedGraphicalItems, _ref, tooltipAxisSettings) {
13512
- var _ref$chartData = _ref.chartData, chartData = _ref$chartData === void 0 ? [] : _ref$chartData;
13882
+ function combineDisplayedStackedData(stackedGraphicalItems, _ref2, tooltipAxisSettings) {
13883
+ var _ref$chartData = _ref2.chartData, chartData = _ref$chartData === void 0 ? [] : _ref$chartData;
13513
13884
  var allowDuplicatedCategory = tooltipAxisSettings.allowDuplicatedCategory, tooltipDataKey = tooltipAxisSettings.dataKey;
13514
13885
  var knownItemsByDataKey = /* @__PURE__ */ new Map();
13515
13886
  stackedGraphicalItems.forEach((item) => {
@@ -13541,6 +13912,9 @@ function combineDisplayedStackedData(stackedGraphicalItems, _ref, tooltipAxisSet
13541
13912
  function isStacked(graphicalItem) {
13542
13913
  return "stackId" in graphicalItem && graphicalItem.stackId != null && graphicalItem.dataKey != null;
13543
13914
  }
13915
+ function isStackedGraphicalItem(graphicalItem) {
13916
+ return "type" in graphicalItem && (graphicalItem.type === "area" || graphicalItem.type === "bar" || graphicalItem.type === "radialBar") && isStacked(graphicalItem);
13917
+ }
13544
13918
 
13545
13919
  // ../node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
13546
13920
  var numberDomainEqualityCheck = (a5, b3) => {
@@ -13587,6 +13961,43 @@ var selectTooltipAxisType = (state) => {
13587
13961
  return "radiusAxis";
13588
13962
  };
13589
13963
 
13964
+ // ../node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
13965
+ var selectAllUnfilteredGraphicalItems = createSelector([(state) => state.graphicalItems.cartesianItems, (state) => state.graphicalItems.polarItems], (cartesianItems, polarItems) => [...cartesianItems, ...polarItems]);
13966
+
13967
+ // ../node_modules/recharts/es6/state/selectors/effectiveDataKeySelectors.js
13968
+ function isValueAxis(layout, axisType) {
13969
+ return layout === "horizontal" && axisType === "yAxis" || layout === "vertical" && axisType === "xAxis" || layout === "centric" && axisType === "radiusAxis" || layout === "radial" && axisType === "angleAxis";
13970
+ }
13971
+ function getDataKeyOnAxis(itemDataKey, axisDataKey, layout, axisType) {
13972
+ if (isValueAxis(layout, axisType)) {
13973
+ return itemDataKey !== null && itemDataKey !== void 0 ? itemDataKey : axisDataKey;
13974
+ }
13975
+ return axisDataKey !== null && axisDataKey !== void 0 ? axisDataKey : itemDataKey;
13976
+ }
13977
+ function getValueAxisDataKey(item, layout, _ref2) {
13978
+ var _cartesianAxis$yAxis$, _cartesianAxis$xAxis$, _polarAxis$radiusAxis, _polarAxis$angleAxis$;
13979
+ var cartesianAxis = _ref2.cartesianAxis, polarAxis = _ref2.polarAxis;
13980
+ switch (layout) {
13981
+ case "horizontal":
13982
+ return item.yAxisId == null ? void 0 : (_cartesianAxis$yAxis$ = cartesianAxis.yAxis[item.yAxisId]) === null || _cartesianAxis$yAxis$ === void 0 ? void 0 : _cartesianAxis$yAxis$.dataKey;
13983
+ case "vertical":
13984
+ return item.xAxisId == null ? void 0 : (_cartesianAxis$xAxis$ = cartesianAxis.xAxis[item.xAxisId]) === null || _cartesianAxis$xAxis$ === void 0 ? void 0 : _cartesianAxis$xAxis$.dataKey;
13985
+ case "centric":
13986
+ return item.radiusAxisId == null ? void 0 : (_polarAxis$radiusAxis = polarAxis.radiusAxis[item.radiusAxisId]) === null || _polarAxis$radiusAxis === void 0 ? void 0 : _polarAxis$radiusAxis.dataKey;
13987
+ case "radial":
13988
+ return item.angleAxisId == null ? void 0 : (_polarAxis$angleAxis$ = polarAxis.angleAxis[item.angleAxisId]) === null || _polarAxis$angleAxis$ === void 0 ? void 0 : _polarAxis$angleAxis$.dataKey;
13989
+ default:
13990
+ return void 0;
13991
+ }
13992
+ }
13993
+ createSelector([selectAllUnfilteredGraphicalItems, selectChartLayout, (state) => state.cartesianAxis, (state) => state.polarAxis], (graphicalItems, layout, cartesianAxis, polarAxis) => graphicalItems.map((item) => {
13994
+ var _item$dataKey2;
13995
+ return (_item$dataKey2 = item.dataKey) !== null && _item$dataKey2 !== void 0 ? _item$dataKey2 : getValueAxisDataKey(item, layout, {
13996
+ cartesianAxis,
13997
+ polarAxis
13998
+ });
13999
+ }).filter(isNotNil));
14000
+
13590
14001
  // ../node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js
13591
14002
  var selectTooltipAxisId = (state) => state.tooltip.settings.axisId;
13592
14003
 
@@ -13640,6 +14051,101 @@ function rechartsScaleFactory(d3Scale) {
13640
14051
  };
13641
14052
  }
13642
14053
 
14054
+ // ../node_modules/recharts/es6/util/zoom/viewport.js
14055
+ function _slicedToArray12(r3, e3) {
14056
+ return _arrayWithHoles12(r3) || _iterableToArrayLimit12(r3, e3) || _unsupportedIterableToArray12(r3, e3) || _nonIterableRest12();
14057
+ }
14058
+ function _nonIterableRest12() {
14059
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14060
+ }
14061
+ function _unsupportedIterableToArray12(r3, a5) {
14062
+ if (r3) {
14063
+ if ("string" == typeof r3) return _arrayLikeToArray12(r3, a5);
14064
+ var t = {}.toString.call(r3).slice(8, -1);
14065
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray12(r3, a5) : void 0;
14066
+ }
14067
+ }
14068
+ function _arrayLikeToArray12(r3, a5) {
14069
+ (null == a5 || a5 > r3.length) && (a5 = r3.length);
14070
+ for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
14071
+ return n5;
14072
+ }
14073
+ function _iterableToArrayLimit12(r3, l3) {
14074
+ var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
14075
+ if (null != t) {
14076
+ var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
14077
+ try {
14078
+ if (i3 = (t = t.call(r3)).next, 0 === l3) ; else for (; !(f3 = (e3 = i3.call(t)).done) && (a5.push(e3.value), a5.length !== l3); f3 = true) ;
14079
+ } catch (r4) {
14080
+ o5 = true, n5 = r4;
14081
+ } finally {
14082
+ try {
14083
+ if (!f3 && null != t.return && (u9 = t.return(), Object(u9) !== u9)) return;
14084
+ } finally {
14085
+ if (o5) throw n5;
14086
+ }
14087
+ }
14088
+ return a5;
14089
+ }
14090
+ }
14091
+ function _arrayWithHoles12(r3) {
14092
+ if (Array.isArray(r3)) return r3;
14093
+ }
14094
+ var FULL_VIEWPORT = {
14095
+ startRatio: 0,
14096
+ endRatio: 1
14097
+ };
14098
+ var MIN_VIEWPORT_WIDTH = 1e-4;
14099
+ var EPSILON = 1e-9;
14100
+ function clampRatio(ratio) {
14101
+ if (Number.isNaN(ratio)) {
14102
+ return 0;
14103
+ }
14104
+ if (ratio < 0) {
14105
+ return 0;
14106
+ }
14107
+ if (ratio > 1) {
14108
+ return 1;
14109
+ }
14110
+ return ratio;
14111
+ }
14112
+ function getViewportWidth(viewport) {
14113
+ return viewport.endRatio - viewport.startRatio;
14114
+ }
14115
+ function isFullViewport(viewport) {
14116
+ return viewport.startRatio <= EPSILON && viewport.endRatio >= 1 - EPSILON;
14117
+ }
14118
+ function clampViewport(viewport) {
14119
+ var start = clampRatio(viewport.startRatio);
14120
+ var end = clampRatio(viewport.endRatio);
14121
+ if (end < start) {
14122
+ var _ref2 = [end, start];
14123
+ start = _ref2[0];
14124
+ end = _ref2[1];
14125
+ }
14126
+ if (end - start < MIN_VIEWPORT_WIDTH) {
14127
+ var mid = (start + end) / 2;
14128
+ start = Math.max(0, mid - MIN_VIEWPORT_WIDTH / 2);
14129
+ end = Math.min(1, start + MIN_VIEWPORT_WIDTH);
14130
+ start = Math.max(0, end - MIN_VIEWPORT_WIDTH);
14131
+ }
14132
+ return {
14133
+ startRatio: start,
14134
+ endRatio: end
14135
+ };
14136
+ }
14137
+ function applyViewportToRange(range3, viewport) {
14138
+ var width = getViewportWidth(viewport);
14139
+ if (isFullViewport(viewport) || width <= 0) {
14140
+ return [range3[0], range3[1]];
14141
+ }
14142
+ var _range2 = _slicedToArray12(range3, 2), a5 = _range2[0], b3 = _range2[1];
14143
+ var span = b3 - a5;
14144
+ var stretchedSpan = span / width;
14145
+ var start = a5 - viewport.startRatio * stretchedSpan;
14146
+ return [start, start + stretchedSpan];
14147
+ }
14148
+
13643
14149
  // ../node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
13644
14150
  var combineCheckedDomain = (realScaleType, axisDomain) => {
13645
14151
  if (axisDomain == null) {
@@ -16721,25 +17227,25 @@ function _toPrimitive12(t, r3) {
16721
17227
  }
16722
17228
  return ("string" === r3 ? String : Number)(t);
16723
17229
  }
16724
- function _slicedToArray10(r3, e3) {
16725
- return _arrayWithHoles10(r3) || _iterableToArrayLimit10(r3, e3) || _unsupportedIterableToArray10(r3, e3) || _nonIterableRest10();
17230
+ function _slicedToArray13(r3, e3) {
17231
+ return _arrayWithHoles13(r3) || _iterableToArrayLimit13(r3, e3) || _unsupportedIterableToArray13(r3, e3) || _nonIterableRest13();
16726
17232
  }
16727
- function _nonIterableRest10() {
17233
+ function _nonIterableRest13() {
16728
17234
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16729
17235
  }
16730
- function _unsupportedIterableToArray10(r3, a5) {
17236
+ function _unsupportedIterableToArray13(r3, a5) {
16731
17237
  if (r3) {
16732
- if ("string" == typeof r3) return _arrayLikeToArray10(r3, a5);
17238
+ if ("string" == typeof r3) return _arrayLikeToArray13(r3, a5);
16733
17239
  var t = {}.toString.call(r3).slice(8, -1);
16734
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray10(r3, a5) : void 0;
17240
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray13(r3, a5) : void 0;
16735
17241
  }
16736
17242
  }
16737
- function _arrayLikeToArray10(r3, a5) {
17243
+ function _arrayLikeToArray13(r3, a5) {
16738
17244
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
16739
17245
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
16740
17246
  return n5;
16741
17247
  }
16742
- function _iterableToArrayLimit10(r3, l3) {
17248
+ function _iterableToArrayLimit13(r3, l3) {
16743
17249
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
16744
17250
  if (null != t) {
16745
17251
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -16757,7 +17263,7 @@ function _iterableToArrayLimit10(r3, l3) {
16757
17263
  return a5;
16758
17264
  }
16759
17265
  }
16760
- function _arrayWithHoles10(r3) {
17266
+ function _arrayWithHoles13(r3) {
16761
17267
  if (Array.isArray(r3)) return r3;
16762
17268
  }
16763
17269
  var defaultNumericDomain = [0, "auto"];
@@ -16946,7 +17452,7 @@ var selectCartesianItemsSettings = createSelector([selectUnfilteredCartesianItem
16946
17452
  }
16947
17453
  });
16948
17454
  var selectStackedCartesianItemsSettings = createSelector([selectCartesianItemsSettings], (cartesianItems) => {
16949
- return cartesianItems.filter((item) => item.type === "area" || item.type === "bar").filter(isStacked);
17455
+ return cartesianItems.filter(isStackedGraphicalItem);
16950
17456
  });
16951
17457
  var filterGraphicalNotStackedItems = (cartesianItems) => cartesianItems.filter((item) => !("stackId" in item) || item.stackId === void 0);
16952
17458
  var selectCartesianItemsSettingsExceptStacked = createSelector([selectCartesianItemsSettings], filterGraphicalNotStackedItems);
@@ -16957,15 +17463,24 @@ var selectCartesianGraphicalItemsData = createSelector([selectCartesianItemsSett
16957
17463
  resultEqualityCheck: emptyArraysAreEqualCheck
16958
17464
  }
16959
17465
  });
16960
- var combineDisplayedData = (graphicalItemsData, _ref) => {
16961
- var _ref$chartData = _ref.chartData, chartData = _ref$chartData === void 0 ? [] : _ref$chartData, dataStartIndex = _ref.dataStartIndex, dataEndIndex = _ref.dataEndIndex;
17466
+ var combineDisplayedData = (graphicalItemsData, _ref2) => {
17467
+ var _ref$chartData = _ref2.chartData, chartData = _ref$chartData === void 0 ? [] : _ref$chartData, dataStartIndex = _ref2.dataStartIndex, dataEndIndex = _ref2.dataEndIndex;
16962
17468
  if (graphicalItemsData.length > 0) {
16963
17469
  return graphicalItemsData;
16964
17470
  }
16965
17471
  return chartData.slice(dataStartIndex, dataEndIndex + 1);
16966
17472
  };
16967
17473
  var selectDisplayedData = createSelector([selectCartesianGraphicalItemsData, selectChartDataWithIndexesIfNotInPanoramaPosition4], combineDisplayedData);
16968
- var combineAppliedValues = (data, axisSettings, items) => {
17474
+ var combineAppliedValues = (data, axisSettings, items, layout, axisType) => {
17475
+ if (isValueAxis(layout, axisType) && items.some((item) => item.dataKey != null)) {
17476
+ var dataKeys = new Set(items.map((item) => {
17477
+ var _item$dataKey;
17478
+ return (_item$dataKey = item.dataKey) !== null && _item$dataKey !== void 0 ? _item$dataKey : axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey;
17479
+ }));
17480
+ return Array.from(dataKeys).flatMap((dataKey) => data.map((entry) => ({
17481
+ value: getValueByDataKey(entry, dataKey)
17482
+ })));
17483
+ }
16969
17484
  if ((axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey) != null) {
16970
17485
  return data.map((item) => ({
16971
17486
  value: getValueByDataKey(item, axisSettings.dataKey)
@@ -16980,19 +17495,19 @@ var combineAppliedValues = (data, axisSettings, items) => {
16980
17495
  value: entry
16981
17496
  }));
16982
17497
  };
16983
- var combineAllAppliedValues = (displayedData, axisSettings, items, _ref2, anyItemUsesChartData, graphicalItemsData) => {
17498
+ var combineAllAppliedValues = (displayedData, axisSettings, items, _ref2, anyItemUsesChartData, graphicalItemsData, layout, axisType) => {
16984
17499
  var _ref2$chartData = _ref2.chartData, chartData = _ref2$chartData === void 0 ? [] : _ref2$chartData, dataStartIndex = _ref2.dataStartIndex, dataEndIndex = _ref2.dataEndIndex;
16985
- var appliedValues = combineAppliedValues(displayedData, axisSettings, items);
17500
+ var appliedValues = combineAppliedValues(displayedData, axisSettings, items, layout, axisType);
16986
17501
  if (anyItemUsesChartData && (axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey) != null && graphicalItemsData.length > 0) {
16987
- var chartDataSlice = chartData.slice(dataStartIndex, dataEndIndex + 1);
16988
- var chartAppliedValues = chartDataSlice.map((item) => ({
17502
+ var chartDataSlice2 = chartData.slice(dataStartIndex, dataEndIndex + 1);
17503
+ var chartAppliedValues = chartDataSlice2.map((item) => ({
16989
17504
  value: getValueByDataKey(item, axisSettings.dataKey)
16990
17505
  })).filter((av) => av.value != null);
16991
17506
  return [...chartAppliedValues, ...appliedValues];
16992
17507
  }
16993
17508
  return appliedValues;
16994
17509
  };
16995
- var selectAllAppliedValues = createSelector([selectDisplayedData, selectBaseAxis, selectCartesianItemsSettings, selectChartDataWithIndexesIfNotInPanoramaPosition4, selectAnyCartesianItemsUsesChartData, selectCartesianGraphicalItemsData], combineAllAppliedValues);
17510
+ var selectAllAppliedValues = createSelector([selectDisplayedData, selectBaseAxis, selectCartesianItemsSettings, selectChartDataWithIndexesIfNotInPanoramaPosition4, selectAnyCartesianItemsUsesChartData, selectCartesianGraphicalItemsData, selectChartLayout, pickAxisType], combineAllAppliedValues);
16996
17511
  function makeNumber(val) {
16997
17512
  if (isNumOrStr(val) || val instanceof Date) {
16998
17513
  var n5 = Number(val);
@@ -17053,10 +17568,8 @@ function getErrorDomainByDataKey(entry, appliedValue, relevantErrorBars) {
17053
17568
  if (!relevantErrorBars.length) {
17054
17569
  return [];
17055
17570
  }
17056
- var appliedNumericValue;
17057
- if (typeof appliedValue === "number" && !isNan(appliedValue)) {
17058
- appliedNumericValue = appliedValue;
17059
- } else if (Array.isArray(appliedValue)) {
17571
+ var appliedNumericValue = makeNumber(appliedValue);
17572
+ if (appliedNumericValue == null && Array.isArray(appliedValue)) {
17060
17573
  var numericRangeValues = onlyAllowNumbers(appliedValue);
17061
17574
  if (numericRangeValues.length > 0) {
17062
17575
  appliedNumericValue = Math.max(...numericRangeValues);
@@ -17069,16 +17582,18 @@ function getErrorDomainByDataKey(entry, appliedValue, relevantErrorBars) {
17069
17582
  var errorValue = getValueByDataKey(entry, eb.dataKey);
17070
17583
  var lowBound, highBound;
17071
17584
  if (Array.isArray(errorValue)) {
17072
- var _errorValue = _slicedToArray10(errorValue, 2);
17585
+ var _errorValue = _slicedToArray13(errorValue, 2);
17073
17586
  lowBound = _errorValue[0];
17074
17587
  highBound = _errorValue[1];
17075
17588
  } else {
17076
17589
  lowBound = highBound = errorValue;
17077
17590
  }
17078
- if (!isWellBehavedNumber(lowBound) || !isWellBehavedNumber(highBound)) {
17591
+ var low = makeNumber(lowBound);
17592
+ var high = makeNumber(highBound);
17593
+ if (low == null || high == null) {
17079
17594
  return void 0;
17080
17595
  }
17081
- return [appliedNumericValue - lowBound, appliedNumericValue + highBound];
17596
+ return [appliedNumericValue - low, appliedNumericValue + high];
17082
17597
  }));
17083
17598
  }
17084
17599
  var selectTooltipAxis = (state) => {
@@ -17103,7 +17618,7 @@ var combineStackGroups = (displayedData, items, stackOffsetType, reverseStackOrd
17103
17618
  return acc;
17104
17619
  }, initialItemsGroups);
17105
17620
  return Object.fromEntries(Object.entries(itemsGroup).map((_ref3) => {
17106
- var _ref4 = _slicedToArray10(_ref3, 2), stackId = _ref4[0], graphicalItems = _ref4[1];
17621
+ var _ref4 = _slicedToArray13(_ref3, 2), stackId = _ref4[0], graphicalItems = _ref4[1];
17107
17622
  var orderedGraphicalItems = reverseStackOrder ? [...graphicalItems].reverse() : graphicalItems;
17108
17623
  var dataKeys = orderedGraphicalItems.map(getStackSeriesIdentifier);
17109
17624
  return [stackId, {
@@ -17114,15 +17629,40 @@ var combineStackGroups = (displayedData, items, stackOffsetType, reverseStackOrd
17114
17629
  }));
17115
17630
  };
17116
17631
  var selectStackGroups = createSelector([selectDisplayedStackedData, selectStackedCartesianItemsSettings, selectStackOffsetType, selectReverseStackOrder], combineStackGroups);
17117
- var combineDomainOfStackGroups = (stackGroups, _ref5, axisType, domainFromUserPreference) => {
17118
- var dataStartIndex = _ref5.dataStartIndex, dataEndIndex = _ref5.dataEndIndex;
17632
+ var selectAllErrorBarSettings = (state) => state.errorBars;
17633
+ function extendDomainToStackedErrorBars(domainOfStackGroups, stackGroups, _ref5, errorBars, axisType) {
17634
+ var chartData = _ref5.chartData, dataStartIndex = _ref5.dataStartIndex, dataEndIndex = _ref5.dataEndIndex;
17635
+ var _ref6 = domainOfStackGroups !== null && domainOfStackGroups !== void 0 ? domainOfStackGroups : [Infinity, -Infinity], _ref7 = _slicedToArray13(_ref6, 2), lowerEnd = _ref7[0], upperEnd = _ref7[1];
17636
+ Object.values(stackGroups !== null && stackGroups !== void 0 ? stackGroups : {}).forEach((_ref8) => {
17637
+ var stackedData = _ref8.stackedData, graphicalItems = _ref8.graphicalItems;
17638
+ graphicalItems.forEach((item, seriesIndex) => {
17639
+ var _errorBars$item$id, _item$data;
17640
+ var relevantErrorBars = (_errorBars$item$id = errorBars[item.id]) === null || _errorBars$item$id === void 0 ? void 0 : _errorBars$item$id.filter((errorBar) => isErrorBarRelevantForAxisType(axisType, errorBar));
17641
+ if (!(relevantErrorBars !== null && relevantErrorBars !== void 0 && relevantErrorBars.length)) {
17642
+ return;
17643
+ }
17644
+ var entries = (_item$data = item.data) !== null && _item$data !== void 0 && _item$data.length ? item.data : chartData === null || chartData === void 0 ? void 0 : chartData.slice(dataStartIndex, dataEndIndex + 1);
17645
+ entries === null || entries === void 0 || entries.forEach((entry, index) => {
17646
+ var _stackedData$seriesIn;
17647
+ var stackedValue = (_stackedData$seriesIn = stackedData[seriesIndex]) === null || _stackedData$seriesIn === void 0 ? void 0 : _stackedData$seriesIn[index + dataStartIndex];
17648
+ getErrorDomainByDataKey(entry, stackedValue === null || stackedValue === void 0 ? void 0 : stackedValue[1], relevantErrorBars).forEach((value2) => {
17649
+ lowerEnd = Math.min(lowerEnd, value2);
17650
+ upperEnd = Math.max(upperEnd, value2);
17651
+ });
17652
+ });
17653
+ });
17654
+ });
17655
+ return isWellBehavedNumber(lowerEnd) && isWellBehavedNumber(upperEnd) ? [lowerEnd, upperEnd] : void 0;
17656
+ }
17657
+ var combineDomainOfStackGroups = (stackGroups, chartDataState, axisType, domainFromUserPreference, errorBars) => {
17119
17658
  if (domainFromUserPreference != null) {
17120
17659
  return void 0;
17121
17660
  }
17122
17661
  if (axisType === "zAxis") {
17123
17662
  return void 0;
17124
17663
  }
17125
- return getDomainOfStackGroups(stackGroups, dataStartIndex, dataEndIndex);
17664
+ var _getBrushSliceIndexes = getBrushSliceIndexes(chartDataState), _getBrushSliceIndexes2 = _slicedToArray13(_getBrushSliceIndexes, 2), startIndex = _getBrushSliceIndexes2[0], endIndex = _getBrushSliceIndexes2[1];
17665
+ return extendDomainToStackedErrorBars(getDomainOfStackGroups(stackGroups, startIndex, endIndex), stackGroups, chartDataState, errorBars, axisType);
17126
17666
  };
17127
17667
  var selectAllowsDataOverflow = createSelector([selectBaseAxis], (axisSettings) => axisSettings.allowDataOverflow);
17128
17668
  var getDomainDefinition = (axisSettings) => {
@@ -17146,12 +17686,11 @@ var getDomainDefinition = (axisSettings) => {
17146
17686
  };
17147
17687
  var selectDomainDefinition = createSelector([selectBaseAxis], getDomainDefinition);
17148
17688
  var selectDomainFromUserPreference = createSelector([selectDomainDefinition, selectAllowsDataOverflow], numericalDomainSpecifiedWithoutRequiringData);
17149
- var selectDomainOfStackGroups = createSelector([selectStackGroups, selectChartDataWithIndexes, pickAxisType, selectDomainFromUserPreference], combineDomainOfStackGroups, {
17689
+ var selectDomainOfStackGroups = createSelector([selectStackGroups, selectChartDataWithIndexes, pickAxisType, selectDomainFromUserPreference, selectAllErrorBarSettings], combineDomainOfStackGroups, {
17150
17690
  memoizeOptions: {
17151
17691
  resultEqualityCheck: numberDomainEqualityCheck
17152
17692
  }
17153
17693
  });
17154
- var selectAllErrorBarSettings = (state) => state.errorBars;
17155
17694
  var combineRelevantErrorBarSettings = (cartesianItemsSettings, allErrorBarSettings, axisType) => {
17156
17695
  return cartesianItemsSettings.flatMap((item) => {
17157
17696
  return allErrorBarSettings[item.id];
@@ -17172,17 +17711,16 @@ var mergeDomains = function mergeDomains2() {
17172
17711
  var max2 = Math.max(...allValues);
17173
17712
  return [min2, max2];
17174
17713
  };
17175
- var combineDomainOfAllAppliedNumericalValuesIncludingErrorValues = function combineDomainOfAllAppliedNumericalValuesIncludingErrorValues2(displayedData, axisSettings, items, errorBars, axisType) {
17176
- var chartDataSlice = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : [];
17714
+ var combineDomainOfAllAppliedNumericalValuesIncludingErrorValues = (displayedData, axisSettings, items, errorBars, axisType, chartDataSlice2, layout) => {
17177
17715
  var lowerEnd, upperEnd;
17178
17716
  if (items.length > 0) {
17179
17717
  items.forEach((item) => {
17180
- var _errorBars$item$id;
17181
- var itemData = item.data != null ? [...item.data] : chartDataSlice;
17182
- var relevantErrorBars = (_errorBars$item$id = errorBars[item.id]) === null || _errorBars$item$id === void 0 ? void 0 : _errorBars$item$id.filter((errorBar) => isErrorBarRelevantForAxisType(axisType, errorBar));
17718
+ var _errorBars$item$id2;
17719
+ var itemData = item.data != null ? [...item.data] : chartDataSlice2 !== null && chartDataSlice2 !== void 0 ? chartDataSlice2 : [];
17720
+ var dataKey = getDataKeyOnAxis(item.dataKey, axisSettings.dataKey, layout, axisType);
17721
+ var relevantErrorBars = (_errorBars$item$id2 = errorBars[item.id]) === null || _errorBars$item$id2 === void 0 ? void 0 : _errorBars$item$id2.filter((errorBar) => isErrorBarRelevantForAxisType(axisType, errorBar));
17183
17722
  itemData.forEach((entry) => {
17184
- var _axisSettings$dataKey;
17185
- var valueByDataKey = getValueByDataKey(entry, (_axisSettings$dataKey = axisSettings.dataKey) !== null && _axisSettings$dataKey !== void 0 ? _axisSettings$dataKey : item.dataKey);
17723
+ var valueByDataKey = getValueByDataKey(entry, dataKey);
17186
17724
  var errorDomain = getErrorDomainByDataKey(entry, valueByDataKey, relevantErrorBars);
17187
17725
  if (errorDomain.length >= 2) {
17188
17726
  var localLower = Math.min(...errorDomain);
@@ -17216,7 +17754,7 @@ var combineDomainOfAllAppliedNumericalValuesIncludingErrorValues = function comb
17216
17754
  }
17217
17755
  return void 0;
17218
17756
  };
17219
- var selectDomainOfAllAppliedNumericalValuesIncludingErrorValues = createSelector([selectDisplayedData, selectBaseAxis, selectCartesianItemsSettingsExceptStacked, selectAllErrorBarSettings, pickAxisType, selectChartDataSliceIfNotInPanorama], combineDomainOfAllAppliedNumericalValuesIncludingErrorValues, {
17757
+ var selectDomainOfAllAppliedNumericalValuesIncludingErrorValues = createSelector([selectDisplayedData, selectBaseAxis, selectCartesianItemsSettingsExceptStacked, selectAllErrorBarSettings, pickAxisType, selectChartDataSliceIfNotInPanorama, selectChartLayout], combineDomainOfAllAppliedNumericalValuesIncludingErrorValues, {
17220
17758
  memoizeOptions: {
17221
17759
  resultEqualityCheck: numberDomainEqualityCheck
17222
17760
  }
@@ -17314,7 +17852,7 @@ var combineNumericalDomain = (axisSettings, domainDefinition, domainFromUserPref
17314
17852
  if (domainFromUserPreference != null) {
17315
17853
  return domainFromUserPreference;
17316
17854
  }
17317
- var shouldIncludeDomainOfStackGroups = layout === "vertical" && axisType === "xAxis" || layout === "horizontal" && axisType === "yAxis";
17855
+ var shouldIncludeDomainOfStackGroups = layout === "vertical" && axisType === "xAxis" || layout === "horizontal" && axisType === "yAxis" || layout === "radial" && axisType === "angleAxis" || layout === "centric" && axisType === "radiusAxis";
17318
17856
  var mergedDomains = shouldIncludeDomainOfStackGroups ? mergeDomains(domainOfStackGroups, referenceElementsDomain, dataAndErrorBarsDomain) : mergeDomains(referenceElementsDomain, dataAndErrorBarsDomain);
17319
17857
  var parsedDomain = parseNumericalUserDomain(domainDefinition, mergedDomains, axisSettings.allowDataOverflow);
17320
17858
  if (parsedDomain != null) {
@@ -17364,7 +17902,9 @@ var combineAxisDomain = (axisSettings, layout, displayedData, allAppliedValues,
17364
17902
  }
17365
17903
  return numericalDomain;
17366
17904
  };
17367
- var selectAxisDomain = createSelector([selectBaseAxis, selectChartLayout, selectDisplayedData, selectAllAppliedValues, selectStackOffsetType, pickAxisType, selectNumericalDomain], combineAxisDomain);
17905
+ var combineStackOffsetTypeOfAxis = (stackOffsetType, graphicalItems, axisPredicate) => graphicalItems.some((item) => axisPredicate(item) && isStackedGraphicalItem(item)) ? stackOffsetType : "none";
17906
+ var selectStackOffsetTypeOfAxis = createSelector([selectStackOffsetType, selectUnfilteredCartesianItems, selectAxisPredicate], combineStackOffsetTypeOfAxis);
17907
+ var selectAxisDomain = createSelector([selectBaseAxis, selectChartLayout, selectDisplayedData, selectAllAppliedValues, selectStackOffsetTypeOfAxis, pickAxisType, selectNumericalDomain], combineAxisDomain);
17368
17908
  var selectRealScaleType = createSelector([selectBaseAxis, selectHasBar, selectChartName], combineRealScaleType);
17369
17909
  var combineNiceTicks = (axisDomain, axisSettings, realScaleType) => {
17370
17910
  var niceTicks = axisSettings.niceTicks;
@@ -17507,15 +18047,15 @@ var selectYAxisPadding = createSelector(selectYAxisSettings, selectCalculatedYAx
17507
18047
  bottom: ((_padding$bottom = padding.bottom) !== null && _padding$bottom !== void 0 ? _padding$bottom : 0) + calculated
17508
18048
  };
17509
18049
  });
17510
- var selectXAxisRange = createSelector([selectChartOffsetInternal, selectXAxisPadding, selectBrushDimensions, selectBrushSettings, (_state, _axisId, isPanorama) => isPanorama], (offset, padding, brushDimensions, _ref6, isPanorama) => {
17511
- var brushPadding = _ref6.padding;
18050
+ var selectXAxisRange = createSelector([selectChartOffsetInternal, selectXAxisPadding, selectBrushDimensions, selectBrushSettings, (_state, _axisId, isPanorama) => isPanorama], (offset, padding, brushDimensions, _ref9, isPanorama) => {
18051
+ var brushPadding = _ref9.padding;
17512
18052
  if (isPanorama) {
17513
18053
  return [brushPadding.left, brushDimensions.width - brushPadding.right];
17514
18054
  }
17515
18055
  return [offset.left + padding.left, offset.left + offset.width - padding.right];
17516
18056
  });
17517
- var selectYAxisRange = createSelector([selectChartOffsetInternal, selectChartLayout, selectYAxisPadding, selectBrushDimensions, selectBrushSettings, (_state, _axisId, isPanorama) => isPanorama], (offset, layout, padding, brushDimensions, _ref7, isPanorama) => {
17518
- var brushPadding = _ref7.padding;
18057
+ var selectYAxisRange = createSelector([selectChartOffsetInternal, selectChartLayout, selectYAxisPadding, selectBrushDimensions, selectBrushSettings, (_state, _axisId, isPanorama) => isPanorama], (offset, layout, padding, brushDimensions, _ref0, isPanorama) => {
18058
+ var brushPadding = _ref0.padding;
17519
18059
  if (isPanorama) {
17520
18060
  return [brushDimensions.height - brushPadding.bottom, brushPadding.top];
17521
18061
  }
@@ -17543,7 +18083,22 @@ var selectAxisRange = (state, axisType, axisId, isPanorama) => {
17543
18083
  };
17544
18084
  var selectAxisRangeWithReverse = createSelector([selectBaseAxis, selectAxisRange], combineAxisRangeWithReverse);
17545
18085
  var selectCheckedAxisDomain = createSelector([selectRealScaleType, selectAxisDomainIncludingNiceTicks], combineCheckedDomain);
17546
- var selectConfiguredScale = createSelector([selectBaseAxis, selectRealScaleType, selectCheckedAxisDomain, selectAxisRangeWithReverse], combineConfiguredScale);
18086
+ var selectViewportForAxisType = (state, axisType) => {
18087
+ if (axisType === "xAxis") {
18088
+ return state.zoom.x;
18089
+ }
18090
+ if (axisType === "yAxis") {
18091
+ return state.zoom.y;
18092
+ }
18093
+ return FULL_VIEWPORT;
18094
+ };
18095
+ var selectZoomedAxisRangeWithReverse = createSelector([selectAxisRangeWithReverse, selectViewportForAxisType, (_state, _axisType, _axisId, isPanorama) => isPanorama], (axisRange, viewport, isPanorama) => {
18096
+ if (axisRange == null || isPanorama || isFullViewport(viewport)) {
18097
+ return axisRange;
18098
+ }
18099
+ return applyViewportToRange(axisRange, viewport);
18100
+ });
18101
+ var selectConfiguredScale = createSelector([selectBaseAxis, selectRealScaleType, selectCheckedAxisDomain, selectZoomedAxisRangeWithReverse], combineConfiguredScale);
17547
18102
  var combineCategoricalDomain = (layout, appliedValues, axis, axisType) => {
17548
18103
  if (axis == null || axis.dataKey == null) {
17549
18104
  return void 0;
@@ -17740,7 +18295,9 @@ var combineAxisTicks = (layout, axis, realScaleType, scale, niceTicks, axisRange
17740
18295
  realScaleType === "scaleBand" && typeof scale.bandwidth === "function" ? scale.bandwidth() / 2 : 2
17741
18296
  );
17742
18297
  var offset = type === "category" && scale.bandwidth ? scale.bandwidth() / offsetForBand : 0;
17743
- offset = axisType === "angleAxis" && axisRange != null && axisRange.length >= 2 ? mathSign(axisRange[0] - axisRange[1]) * 2 * offset : offset;
18298
+ if (axisType === "angleAxis" && axisRange != null && axisRange.length >= 2) {
18299
+ offset = axisRange[0] > axisRange[1] ? 2 * offset : 0;
18300
+ }
17744
18301
  var ticksOrNiceTicks = ticks2 || niceTicks;
17745
18302
  if (ticksOrNiceTicks) {
17746
18303
  return ticksOrNiceTicks.map((entry, index) => {
@@ -17799,7 +18356,15 @@ var combineAxisTicks = (layout, axis, realScaleType, scale, niceTicks, axisRange
17799
18356
  };
17800
18357
  }).filter(isNotNil);
17801
18358
  };
17802
- createSelector([selectChartLayout, selectRenderableAxisSettings, selectRealScaleType, selectAxisScale, selectNiceTicks, selectAxisRange, selectDuplicateDomain, selectCategoricalDomain, pickAxisType], combineAxisTicks);
18359
+ var selectUnfilteredTicksOfAxis = createSelector([selectChartLayout, selectRenderableAxisSettings, selectRealScaleType, selectAxisScale, selectNiceTicks, selectAxisRange, selectDuplicateDomain, selectCategoricalDomain, pickAxisType], combineAxisTicks);
18360
+ createSelector([selectUnfilteredTicksOfAxis, selectAxisRange, selectViewportForAxisType], (ticks2, axisRange, viewport) => {
18361
+ if (ticks2 == null || axisRange == null || isFullViewport(viewport)) {
18362
+ return ticks2;
18363
+ }
18364
+ var min2 = Math.min(axisRange[0], axisRange[1]) - 0.5;
18365
+ var max2 = Math.max(axisRange[0], axisRange[1]) + 0.5;
18366
+ return ticks2.filter((tick) => tick.coordinate >= min2 && tick.coordinate <= max2);
18367
+ });
17803
18368
  var combineGraphicalItemTicks = (layout, axis, scale, axisRange, duplicateDomain, categoricalDomain, axisType) => {
17804
18369
  if (axis == null || scale == null || axisRange == null || axisRange[0] === axisRange[1]) {
17805
18370
  return void 0;
@@ -18238,7 +18803,45 @@ var combineActiveTooltipIndex = (tooltipInteraction, chartData, axisDataKey, dom
18238
18803
  };
18239
18804
 
18240
18805
  // ../node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js
18241
- var combineCoordinateForDefaultIndex = (width, height, layout, offset, tooltipTicks, defaultIndex, tooltipConfigurations) => {
18806
+ function ownKeys13(e3, r3) {
18807
+ var t = Object.keys(e3);
18808
+ if (Object.getOwnPropertySymbols) {
18809
+ var o5 = Object.getOwnPropertySymbols(e3);
18810
+ r3 && (o5 = o5.filter(function(r4) {
18811
+ return Object.getOwnPropertyDescriptor(e3, r4).enumerable;
18812
+ })), t.push.apply(t, o5);
18813
+ }
18814
+ return t;
18815
+ }
18816
+ function _objectSpread13(e3) {
18817
+ for (var r3 = 1; r3 < arguments.length; r3++) {
18818
+ var t = null != arguments[r3] ? arguments[r3] : {};
18819
+ r3 % 2 ? ownKeys13(Object(t), true).forEach(function(r4) {
18820
+ _defineProperty14(e3, r4, t[r4]);
18821
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys13(Object(t)).forEach(function(r4) {
18822
+ Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t, r4));
18823
+ });
18824
+ }
18825
+ return e3;
18826
+ }
18827
+ function _defineProperty14(e3, r3, t) {
18828
+ return (r3 = _toPropertyKey14(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
18829
+ }
18830
+ function _toPropertyKey14(t) {
18831
+ var i3 = _toPrimitive14(t, "string");
18832
+ return "symbol" == typeof i3 ? i3 : i3 + "";
18833
+ }
18834
+ function _toPrimitive14(t, r3) {
18835
+ if ("object" != typeof t || !t) return t;
18836
+ var e3 = t[Symbol.toPrimitive];
18837
+ if (void 0 !== e3) {
18838
+ var i3 = e3.call(t, r3);
18839
+ if ("object" != typeof i3) return i3;
18840
+ throw new TypeError("@@toPrimitive must return a primitive value.");
18841
+ }
18842
+ return ("string" === r3 ? String : Number)(t);
18843
+ }
18844
+ var combineCoordinateForDefaultIndex = (width, height, layout, offset, tooltipTicks, defaultIndex, tooltipConfigurations, polarViewBox) => {
18242
18845
  if (defaultIndex == null) {
18243
18846
  return void 0;
18244
18847
  }
@@ -18258,6 +18861,39 @@ var combineCoordinateForDefaultIndex = (width, height, layout, offset, tooltipTi
18258
18861
  y: (offset.top + height) / 2
18259
18862
  };
18260
18863
  }
18864
+ case "radial": {
18865
+ if (polarViewBox) {
18866
+ var cx = polarViewBox.cx, cy = polarViewBox.cy, innerRadius = polarViewBox.innerRadius, outerRadius = polarViewBox.outerRadius, startAngle = polarViewBox.startAngle, endAngle = polarViewBox.endAngle;
18867
+ var radius = tick.coordinate;
18868
+ var angle = (startAngle + endAngle) / 2;
18869
+ return _objectSpread13(_objectSpread13({}, polarToCartesian(cx, cy, outerRadius, angle)), {}, {
18870
+ cx,
18871
+ cy,
18872
+ radius,
18873
+ angle,
18874
+ startAngle,
18875
+ endAngle,
18876
+ innerRadius,
18877
+ outerRadius,
18878
+ clockWise: false
18879
+ });
18880
+ }
18881
+ return {
18882
+ x: (offset.left + width) / 2,
18883
+ y: tick.coordinate
18884
+ };
18885
+ }
18886
+ case "centric": {
18887
+ if (polarViewBox == null) {
18888
+ return void 0;
18889
+ }
18890
+ var _cx = polarViewBox.cx, _cy = polarViewBox.cy, _outerRadius = polarViewBox.outerRadius;
18891
+ var _angle = tick.coordinate;
18892
+ return _objectSpread13(_objectSpread13(_objectSpread13({}, polarViewBox), polarToCartesian(_cx, _cy, _outerRadius, _angle)), {}, {
18893
+ angle: _angle,
18894
+ radius: _outerRadius
18895
+ });
18896
+ }
18261
18897
  default: {
18262
18898
  return {
18263
18899
  x: (offset.left + width) / 2,
@@ -18267,6 +18903,9 @@ var combineCoordinateForDefaultIndex = (width, height, layout, offset, tooltipTi
18267
18903
  }
18268
18904
  };
18269
18905
 
18906
+ // ../node_modules/recharts/es6/state/selectors/zoomSelectors.js
18907
+ var selectIsZoomed = (state) => !isFullViewport(state.zoom.x) || !isFullViewport(state.zoom.y);
18908
+
18270
18909
  // ../node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js
18271
18910
  var combineTooltipPayloadConfigurations = (tooltipState, tooltipEventType, trigger, defaultIndex) => {
18272
18911
  if (tooltipEventType === "axis") {
@@ -18304,7 +18943,7 @@ var selectTooltipPayloadSearcher = (state) => state.options.tooltipPayloadSearch
18304
18943
  var selectTooltipState = (state) => state.tooltip;
18305
18944
 
18306
18945
  // ../node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
18307
- function ownKeys13(e3, r3) {
18946
+ function ownKeys14(e3, r3) {
18308
18947
  var t = Object.keys(e3);
18309
18948
  if (Object.getOwnPropertySymbols) {
18310
18949
  var o5 = Object.getOwnPropertySymbols(e3);
@@ -18314,25 +18953,25 @@ function ownKeys13(e3, r3) {
18314
18953
  }
18315
18954
  return t;
18316
18955
  }
18317
- function _objectSpread13(e3) {
18956
+ function _objectSpread14(e3) {
18318
18957
  for (var r3 = 1; r3 < arguments.length; r3++) {
18319
18958
  var t = null != arguments[r3] ? arguments[r3] : {};
18320
- r3 % 2 ? ownKeys13(Object(t), true).forEach(function(r4) {
18321
- _defineProperty14(e3, r4, t[r4]);
18322
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys13(Object(t)).forEach(function(r4) {
18959
+ r3 % 2 ? ownKeys14(Object(t), true).forEach(function(r4) {
18960
+ _defineProperty15(e3, r4, t[r4]);
18961
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys14(Object(t)).forEach(function(r4) {
18323
18962
  Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t, r4));
18324
18963
  });
18325
18964
  }
18326
18965
  return e3;
18327
18966
  }
18328
- function _defineProperty14(e3, r3, t) {
18329
- return (r3 = _toPropertyKey14(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
18967
+ function _defineProperty15(e3, r3, t) {
18968
+ return (r3 = _toPropertyKey15(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
18330
18969
  }
18331
- function _toPropertyKey14(t) {
18332
- var i3 = _toPrimitive14(t, "string");
18970
+ function _toPropertyKey15(t) {
18971
+ var i3 = _toPrimitive15(t, "string");
18333
18972
  return "symbol" == typeof i3 ? i3 : i3 + "";
18334
18973
  }
18335
- function _toPrimitive14(t, r3) {
18974
+ function _toPrimitive15(t, r3) {
18336
18975
  if ("object" != typeof t || !t) return t;
18337
18976
  var e3 = t[Symbol.toPrimitive];
18338
18977
  if (void 0 !== e3) {
@@ -18342,6 +18981,45 @@ function _toPrimitive14(t, r3) {
18342
18981
  }
18343
18982
  return ("string" === r3 ? String : Number)(t);
18344
18983
  }
18984
+ function _slicedToArray14(r3, e3) {
18985
+ return _arrayWithHoles14(r3) || _iterableToArrayLimit14(r3, e3) || _unsupportedIterableToArray14(r3, e3) || _nonIterableRest14();
18986
+ }
18987
+ function _nonIterableRest14() {
18988
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18989
+ }
18990
+ function _unsupportedIterableToArray14(r3, a5) {
18991
+ if (r3) {
18992
+ if ("string" == typeof r3) return _arrayLikeToArray14(r3, a5);
18993
+ var t = {}.toString.call(r3).slice(8, -1);
18994
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray14(r3, a5) : void 0;
18995
+ }
18996
+ }
18997
+ function _arrayLikeToArray14(r3, a5) {
18998
+ (null == a5 || a5 > r3.length) && (a5 = r3.length);
18999
+ for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
19000
+ return n5;
19001
+ }
19002
+ function _iterableToArrayLimit14(r3, l3) {
19003
+ var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
19004
+ if (null != t) {
19005
+ var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
19006
+ try {
19007
+ if (i3 = (t = t.call(r3)).next, 0 === l3) ; else for (; !(f3 = (e3 = i3.call(t)).done) && (a5.push(e3.value), a5.length !== l3); f3 = true) ;
19008
+ } catch (r4) {
19009
+ o5 = true, n5 = r4;
19010
+ } finally {
19011
+ try {
19012
+ if (!f3 && null != t.return && (u9 = t.return(), Object(u9) !== u9)) return;
19013
+ } finally {
19014
+ if (o5) throw n5;
19015
+ }
19016
+ }
19017
+ return a5;
19018
+ }
19019
+ }
19020
+ function _arrayWithHoles14(r3) {
19021
+ if (Array.isArray(r3)) return r3;
19022
+ }
18345
19023
  function parseName(value2) {
18346
19024
  if (typeof value2 === "string" || typeof value2 === "number") {
18347
19025
  return value2;
@@ -18378,14 +19056,16 @@ function parseTooltipPayloadItem(item) {
18378
19056
  var dataKey = "dataKey" in item ? parseDataKey(item.dataKey) : void 0;
18379
19057
  var payload = "payload" in item ? item.payload : void 0;
18380
19058
  var color2 = "color" in item ? parseColor(item.color) : void 0;
18381
- var fill = "fill" in item ? parseColor(item.fill) : void 0;
19059
+ var fill = readEntryFill(item).color;
19060
+ var stroke = "stroke" in item ? parseColor(item.stroke) : void 0;
18382
19061
  return {
18383
19062
  name,
18384
19063
  unit: unit2,
18385
19064
  dataKey,
18386
19065
  payload,
18387
19066
  color: color2,
18388
- fill
19067
+ fill,
19068
+ stroke
18389
19069
  };
18390
19070
  }
18391
19071
  function selectFinalData(dataDefinedOnItem, dataDefinedOnChart) {
@@ -18398,13 +19078,14 @@ var combineTooltipPayload = (tooltipPayloadConfigurations, activeIndex, chartDat
18398
19078
  if (activeIndex == null || tooltipPayloadSearcher == null) {
18399
19079
  return void 0;
18400
19080
  }
18401
- var chartData = chartDataState.chartData, computedData = chartDataState.computedData, dataStartIndex = chartDataState.dataStartIndex, dataEndIndex = chartDataState.dataEndIndex;
19081
+ var chartData = chartDataState.chartData, computedData = chartDataState.computedData;
19082
+ var _getBrushSliceIndexes = getBrushSliceIndexes(chartDataState), _getBrushSliceIndexes2 = _slicedToArray14(_getBrushSliceIndexes, 2), sliceStartIndex = _getBrushSliceIndexes2[0], sliceEndIndex = _getBrushSliceIndexes2[1];
18402
19083
  var init = [];
18403
- return tooltipPayloadConfigurations.reduce((agg, _ref) => {
19084
+ return tooltipPayloadConfigurations.reduce((agg, configuration) => {
18404
19085
  var _settings$dataKey;
18405
- var dataDefinedOnItem = _ref.dataDefinedOnItem, settings = _ref.settings;
19086
+ var dataDefinedOnItem = configuration.dataDefinedOnItem, settings = configuration.settings, getEntryColor = configuration.getEntryColor;
18406
19087
  var finalData = selectFinalData(dataDefinedOnItem, chartData);
18407
- var sliced = Array.isArray(finalData) ? getSliced(finalData, dataStartIndex, dataEndIndex) : finalData;
19088
+ var sliced = Array.isArray(finalData) ? getSliced(finalData, sliceStartIndex, sliceEndIndex) : finalData;
18408
19089
  var finalDataKey = (_settings$dataKey = settings === null || settings === void 0 ? void 0 : settings.dataKey) !== null && _settings$dataKey !== void 0 ? _settings$dataKey : tooltipAxisDataKey;
18409
19090
  var finalNameKey = settings === null || settings === void 0 ? void 0 : settings.nameKey;
18410
19091
  var tooltipPayload;
@@ -18431,25 +19112,23 @@ var combineTooltipPayload = (tooltipPayloadConfigurations, activeIndex, chartDat
18431
19112
  */
18432
19113
  tooltipEventType === "axis") {
18433
19114
  tooltipPayload = findEntryInArray(sliced, tooltipAxisDataKey, activeLabel);
18434
- if (tooltipPayload == null) {
18435
- tooltipPayload = tooltipPayloadSearcher(sliced, activeIndex, computedData, finalNameKey);
18436
- }
18437
19115
  } else {
18438
19116
  tooltipPayload = tooltipPayloadSearcher(sliced, activeIndex, computedData, finalNameKey);
18439
19117
  }
18440
19118
  if (Array.isArray(tooltipPayload)) {
18441
19119
  tooltipPayload.forEach((item) => {
18442
- var _parsedItem$color, _parsedItem$fill;
18443
- var parsedItem = parseTooltipPayloadItem(item);
18444
- var itemName = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.name;
18445
- var itemDataKey = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.dataKey;
18446
- var itemPayload = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.payload;
18447
- var newSettings = _objectSpread13(_objectSpread13({}, settings), {}, {
19120
+ var _parsedItem$color, _parsedItem$fill, _parsedItem$stroke;
19121
+ var parsedItem2 = parseTooltipPayloadItem(item);
19122
+ var itemName = parsedItem2 === null || parsedItem2 === void 0 ? void 0 : parsedItem2.name;
19123
+ var itemDataKey = parsedItem2 === null || parsedItem2 === void 0 ? void 0 : parsedItem2.dataKey;
19124
+ var itemPayload = parsedItem2 === null || parsedItem2 === void 0 ? void 0 : parsedItem2.payload;
19125
+ var newSettings = _objectSpread14(_objectSpread14({}, settings), {}, {
18448
19126
  name: itemName,
18449
- unit: parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.unit,
19127
+ unit: parsedItem2 === null || parsedItem2 === void 0 ? void 0 : parsedItem2.unit,
18450
19128
  // Preserve item-level color/fill from graphical items.
18451
- color: (_parsedItem$color = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.color) !== null && _parsedItem$color !== void 0 ? _parsedItem$color : settings === null || settings === void 0 ? void 0 : settings.color,
18452
- fill: (_parsedItem$fill = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.fill) !== null && _parsedItem$fill !== void 0 ? _parsedItem$fill : settings === null || settings === void 0 ? void 0 : settings.fill
19129
+ color: (_parsedItem$color = parsedItem2 === null || parsedItem2 === void 0 ? void 0 : parsedItem2.color) !== null && _parsedItem$color !== void 0 ? _parsedItem$color : settings.color,
19130
+ fill: (_parsedItem$fill = parsedItem2 === null || parsedItem2 === void 0 ? void 0 : parsedItem2.fill) !== null && _parsedItem$fill !== void 0 ? _parsedItem$fill : settings.fill,
19131
+ stroke: (_parsedItem$stroke = parsedItem2 === null || parsedItem2 === void 0 ? void 0 : parsedItem2.stroke) !== null && _parsedItem$stroke !== void 0 ? _parsedItem$stroke : settings.stroke
18453
19132
  });
18454
19133
  agg.push(getTooltipEntry({
18455
19134
  tooltipEntrySettings: newSettings,
@@ -18460,9 +19139,16 @@ var combineTooltipPayload = (tooltipPayloadConfigurations, activeIndex, chartDat
18460
19139
  }));
18461
19140
  });
18462
19141
  } else {
18463
- var _getValueByDataKey;
19142
+ var _ref2, _parsedItem$color2, _parsedItem$fill2, _parsedItem$stroke2, _getValueByDataKey;
19143
+ var parsedItem = settings.ignoreDataEntryColors ? void 0 : parseTooltipPayloadItem(tooltipPayload);
19144
+ var entryColor = getEntryColor == null ? (_ref2 = (_parsedItem$color2 = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.color) !== null && _parsedItem$color2 !== void 0 ? _parsedItem$color2 : parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.fill) !== null && _ref2 !== void 0 ? _ref2 : parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.stroke : getEntryColor(tooltipPayload);
19145
+ var tooltipEntrySettings = _objectSpread14(_objectSpread14({}, settings), {}, {
19146
+ color: entryColor !== null && entryColor !== void 0 ? entryColor : settings.color,
19147
+ fill: (_parsedItem$fill2 = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.fill) !== null && _parsedItem$fill2 !== void 0 ? _parsedItem$fill2 : settings.fill,
19148
+ stroke: (_parsedItem$stroke2 = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.stroke) !== null && _parsedItem$stroke2 !== void 0 ? _parsedItem$stroke2 : settings.stroke
19149
+ });
18464
19150
  agg.push(getTooltipEntry({
18465
- tooltipEntrySettings: settings,
19151
+ tooltipEntrySettings,
18466
19152
  dataKey: finalDataKey,
18467
19153
  payload: tooltipPayload,
18468
19154
  // getValueByDataKey does not validate the output type
@@ -18475,16 +19161,93 @@ var combineTooltipPayload = (tooltipPayloadConfigurations, activeIndex, chartDat
18475
19161
  }, init);
18476
19162
  };
18477
19163
 
19164
+ // ../node_modules/recharts/es6/util/zoom/transform.js
19165
+ var cameraZoomModes = {
19166
+ FunnelChart: "independent",
19167
+ PieChart: "uniform",
19168
+ RadarChart: "uniform",
19169
+ RadialBarChart: "uniform",
19170
+ Sankey: "independent",
19171
+ Sunburst: "uniform",
19172
+ Treemap: "independent"
19173
+ };
19174
+ function getViewportCenter(viewport) {
19175
+ return (viewport.startRatio + viewport.endRatio) / 2;
19176
+ }
19177
+ function resizeViewportAroundCenter(viewport, targetWidth) {
19178
+ var width = Math.max(Math.min(targetWidth, 1), 0);
19179
+ if (!Number.isFinite(width) || width <= 0) {
19180
+ return clampViewport(viewport);
19181
+ }
19182
+ var center = getViewportCenter(viewport);
19183
+ var startRatio = center - width / 2;
19184
+ var endRatio = center + width / 2;
19185
+ return clampViewport({
19186
+ startRatio,
19187
+ endRatio
19188
+ });
19189
+ }
19190
+ function getUniformZoomState(zoom2) {
19191
+ var xWidth = getViewportWidth(zoom2.x);
19192
+ var yWidth = getViewportWidth(zoom2.y);
19193
+ var targetWidth = Math.min(xWidth, yWidth);
19194
+ if (!Number.isFinite(targetWidth) || targetWidth >= 1) {
19195
+ return {
19196
+ x: FULL_VIEWPORT,
19197
+ y: FULL_VIEWPORT
19198
+ };
19199
+ }
19200
+ return {
19201
+ x: resizeViewportAroundCenter(zoom2.x, targetWidth),
19202
+ y: resizeViewportAroundCenter(zoom2.y, targetWidth)
19203
+ };
19204
+ }
19205
+ function getCameraZoomState(chartName, zoom2) {
19206
+ var cameraZoomMode = chartName == null ? void 0 : cameraZoomModes[chartName];
19207
+ if (cameraZoomMode == null) {
19208
+ return void 0;
19209
+ }
19210
+ return cameraZoomMode === "uniform" ? getUniformZoomState(zoom2) : zoom2;
19211
+ }
19212
+ function getZoomTransformForPlot(plot, zoom2) {
19213
+ if (plot.width <= 0 || plot.height <= 0 || isFullViewport(zoom2.x) && isFullViewport(zoom2.y)) {
19214
+ return null;
19215
+ }
19216
+ var scaleX = 1 / getViewportWidth(zoom2.x);
19217
+ var scaleY = 1 / getViewportWidth(zoom2.y);
19218
+ var translateX = -plot.x - zoom2.x.startRatio * plot.width;
19219
+ var translateY = -plot.y - zoom2.y.startRatio * plot.height;
19220
+ return "translate(".concat(plot.x, " ").concat(plot.y, ") scale(").concat(scaleX, " ").concat(scaleY, ") translate(").concat(translateX, " ").concat(translateY, ")");
19221
+ }
19222
+ function transformCoordinateByZoom(coordinate, plot, zoom2) {
19223
+ if (coordinate == null) {
19224
+ return void 0;
19225
+ }
19226
+ var transform = getZoomTransformForPlot(plot, zoom2);
19227
+ if (transform == null) {
19228
+ return coordinate;
19229
+ }
19230
+ var scaleX = 1 / getViewportWidth(zoom2.x);
19231
+ var scaleY = 1 / getViewportWidth(zoom2.y);
19232
+ return {
19233
+ x: plot.x + (coordinate.x - plot.x - zoom2.x.startRatio * plot.width) * scaleX,
19234
+ y: plot.y + (coordinate.y - plot.y - zoom2.y.startRatio * plot.height) * scaleY
19235
+ };
19236
+ }
19237
+ function transformCoordinateByCameraZoom(coordinate, plot, chartName, zoom2) {
19238
+ var cameraZoomState = getCameraZoomState(chartName, zoom2);
19239
+ return cameraZoomState == null ? coordinate : transformCoordinateByZoom(coordinate, plot, cameraZoomState);
19240
+ }
19241
+
18478
19242
  // ../node_modules/recharts/es6/state/selectors/tooltipSelectors.js
18479
19243
  var selectTooltipAxisRealScaleType = createSelector([selectTooltipAxis, selectHasBar, selectChartName], combineRealScaleType);
18480
- var selectAllUnfilteredGraphicalItems = createSelector([(state) => state.graphicalItems.cartesianItems, (state) => state.graphicalItems.polarItems], (cartesianItems, polarItems) => [...cartesianItems, ...polarItems]);
18481
19244
  var selectTooltipAxisPredicate = createSelector([selectTooltipAxisType, selectTooltipAxisId], itemAxisPredicate);
18482
19245
  var selectAllGraphicalItemsSettings = createSelector([selectAllUnfilteredGraphicalItems, selectTooltipAxis, selectTooltipAxisPredicate], combineGraphicalItemsSettings, {
18483
19246
  memoizeOptions: {
18484
19247
  resultEqualityCheck: emptyArraysAreEqualCheck
18485
19248
  }
18486
19249
  });
18487
- var selectAllStackedGraphicalItemsSettings = createSelector([selectAllGraphicalItemsSettings], (graphicalItems) => graphicalItems.filter(isStacked));
19250
+ var selectAllStackedGraphicalItemsSettings = createSelector([selectAllGraphicalItemsSettings], (graphicalItems) => graphicalItems.filter(isStackedGraphicalItem));
18488
19251
  var selectTooltipGraphicalItemsData = createSelector([selectAllGraphicalItemsSettings], combineGraphicalItemsData, {
18489
19252
  memoizeOptions: {
18490
19253
  resultEqualityCheck: emptyArraysAreEqualCheck
@@ -18493,15 +19256,15 @@ var selectTooltipGraphicalItemsData = createSelector([selectAllGraphicalItemsSet
18493
19256
  var selectAnyTooltipItemUsesChartData = createSelector([selectAllGraphicalItemsSettings], (items) => items.some((item) => !item.data));
18494
19257
  var selectTooltipDisplayedData = createSelector([selectTooltipGraphicalItemsData, selectChartDataWithIndexes], combineDisplayedData);
18495
19258
  var selectTooltipStackedData = createSelector([selectAllStackedGraphicalItemsSettings, selectChartDataWithIndexes, selectTooltipAxis], combineDisplayedStackedData);
18496
- var selectAllTooltipAppliedValues = createSelector([selectTooltipDisplayedData, selectTooltipAxis, selectAllGraphicalItemsSettings, selectChartDataWithIndexes, selectAnyTooltipItemUsesChartData, selectTooltipGraphicalItemsData], combineAllAppliedValues);
19259
+ var selectAllTooltipAppliedValues = createSelector([selectTooltipDisplayedData, selectTooltipAxis, selectAllGraphicalItemsSettings, selectChartDataWithIndexes, selectAnyTooltipItemUsesChartData, selectTooltipGraphicalItemsData, selectChartLayout, selectTooltipAxisType], combineAllAppliedValues);
18497
19260
  var selectTooltipAxisDomainDefinition = createSelector([selectTooltipAxis], getDomainDefinition);
18498
19261
  var selectTooltipDataOverflow = createSelector([selectTooltipAxis], (axisSettings) => axisSettings.allowDataOverflow);
18499
19262
  var selectTooltipDomainFromUserPreferences = createSelector([selectTooltipAxisDomainDefinition, selectTooltipDataOverflow], numericalDomainSpecifiedWithoutRequiringData);
18500
- var selectAllStackedGraphicalItems = createSelector([selectAllGraphicalItemsSettings], (graphicalItems) => graphicalItems.filter(isStacked));
19263
+ var selectAllStackedGraphicalItems = createSelector([selectAllGraphicalItemsSettings], (graphicalItems) => graphicalItems.filter(isStackedGraphicalItem));
18501
19264
  var selectTooltipStackGroups = createSelector([selectTooltipStackedData, selectAllStackedGraphicalItems, selectStackOffsetType, selectReverseStackOrder], combineStackGroups);
18502
- var selectTooltipDomainOfStackGroups = createSelector([selectTooltipStackGroups, selectChartDataWithIndexes, selectTooltipAxisType, selectTooltipDomainFromUserPreferences], combineDomainOfStackGroups);
19265
+ var selectTooltipDomainOfStackGroups = createSelector([selectTooltipStackGroups, selectChartDataWithIndexes, selectTooltipAxisType, selectTooltipDomainFromUserPreferences, selectAllErrorBarSettings], combineDomainOfStackGroups);
18503
19266
  var selectTooltipItemsSettingsExceptStacked = createSelector([selectAllGraphicalItemsSettings], filterGraphicalNotStackedItems);
18504
- var selectDomainOfAllAppliedNumericalValuesIncludingErrorValues2 = createSelector([selectTooltipDisplayedData, selectTooltipAxis, selectTooltipItemsSettingsExceptStacked, selectAllErrorBarSettings, selectTooltipAxisType, selectChartDataSliceWithIndexes], combineDomainOfAllAppliedNumericalValuesIncludingErrorValues, {
19267
+ var selectDomainOfAllAppliedNumericalValuesIncludingErrorValues2 = createSelector([selectTooltipDisplayedData, selectTooltipAxis, selectTooltipItemsSettingsExceptStacked, selectAllErrorBarSettings, selectTooltipAxisType, selectChartDataSliceWithIndexes, selectChartLayout], combineDomainOfAllAppliedNumericalValuesIncludingErrorValues, {
18505
19268
  memoizeOptions: {
18506
19269
  resultEqualityCheck: numberDomainEqualityCheck
18507
19270
  }
@@ -18524,7 +19287,19 @@ var selectTooltipAxisRange = (state) => {
18524
19287
  return selectAxisRange(state, axisType, axisId, isPanorama);
18525
19288
  };
18526
19289
  var selectTooltipAxisRangeWithReverse = createSelector([selectTooltipAxis, selectTooltipAxisRange], combineAxisRangeWithReverse);
18527
- var selectTooltipConfiguredScale = createSelector([selectTooltipAxis, selectTooltipAxisRealScaleType, selectTooltipAxisDomainIncludingNiceTicks, selectTooltipAxisRangeWithReverse], combineConfiguredScale);
19290
+ var selectTooltipZoomedAxisRangeWithReverse = createSelector([selectTooltipAxisRangeWithReverse, selectTooltipAxisType, (state) => state.zoom], (range3, axisType, zoom2) => {
19291
+ if (range3 == null) {
19292
+ return range3;
19293
+ }
19294
+ var viewport = FULL_VIEWPORT;
19295
+ if (axisType === "xAxis") {
19296
+ viewport = zoom2.x;
19297
+ } else if (axisType === "yAxis") {
19298
+ viewport = zoom2.y;
19299
+ }
19300
+ return isFullViewport(viewport) ? range3 : applyViewportToRange(range3, viewport);
19301
+ });
19302
+ var selectTooltipConfiguredScale = createSelector([selectTooltipAxis, selectTooltipAxisRealScaleType, selectTooltipAxisDomainIncludingNiceTicks, selectTooltipZoomedAxisRangeWithReverse], combineConfiguredScale);
18528
19303
  var selectTooltipAxisScale = createSelector([selectTooltipConfiguredScale], rechartsScaleFactory);
18529
19304
  var selectTooltipDuplicateDomain = createSelector([selectChartLayout, selectAllTooltipAppliedValues, selectTooltipAxis, selectTooltipAxisType], combineDuplicateDomain);
18530
19305
  var selectTooltipCategoricalDomain = createSelector([selectChartLayout, selectAllTooltipAppliedValues, selectTooltipAxis, selectTooltipAxisType], combineCategoricalDomain);
@@ -18539,7 +19314,9 @@ var combineTicksOfTooltipAxis = (layout, axis, realScaleType, scale, range3, dup
18539
19314
  }
18540
19315
  var offsetForBand = realScaleType === "scaleBand" && scale.bandwidth ? scale.bandwidth() / 2 : 2;
18541
19316
  var offset = type === "category" && scale.bandwidth ? scale.bandwidth() / offsetForBand : 0;
18542
- offset = axisType === "angleAxis" && range3 != null && (range3 === null || range3 === void 0 ? void 0 : range3.length) >= 2 ? mathSign(range3[0] - range3[1]) * 2 * offset : offset;
19317
+ if (axisType === "angleAxis" && range3 != null && (range3 === null || range3 === void 0 ? void 0 : range3.length) >= 2) {
19318
+ offset = range3[0] > range3[1] ? 2 * offset : 0;
19319
+ }
18543
19320
  if (isCategorical && categoricalDomain) {
18544
19321
  return categoricalDomain.map((entry, index) => {
18545
19322
  var scaled = scale.map(entry);
@@ -18568,7 +19345,7 @@ var combineTicksOfTooltipAxis = (layout, axis, realScaleType, scale, range3, dup
18568
19345
  };
18569
19346
  }).filter(isNotNil);
18570
19347
  };
18571
- var selectTooltipAxisTicks = createSelector([selectChartLayout, selectTooltipAxis, selectTooltipAxisRealScaleType, selectTooltipAxisScale, selectTooltipAxisRange, selectTooltipDuplicateDomain, selectTooltipCategoricalDomain, selectTooltipAxisType], combineTicksOfTooltipAxis);
19348
+ var selectTooltipAxisTicks = createSelector([selectChartLayout, selectTooltipAxis, selectTooltipAxisRealScaleType, selectTooltipAxisScale, selectTooltipAxisRangeWithReverse, selectTooltipDuplicateDomain, selectTooltipCategoricalDomain, selectTooltipAxisType], combineTicksOfTooltipAxis);
18572
19349
  var selectTooltipEventType2 = createSelector([selectDefaultTooltipEventType, selectValidateTooltipEventTypes, selectTooltipSettings], (defaultTooltipEventType, validateTooltipEventType, settings) => combineTooltipEventType(settings.shared, defaultTooltipEventType, validateTooltipEventType));
18573
19350
  var selectTooltipTrigger = (state) => state.tooltip.settings.trigger;
18574
19351
  var selectDefaultIndex = (state) => state.tooltip.settings.defaultIndex;
@@ -18588,13 +19365,38 @@ var selectActiveTooltipGraphicalItemId = createSelector([selectTooltipInteractio
18588
19365
  return tooltipInteraction.graphicalItemId;
18589
19366
  });
18590
19367
  var selectTooltipPayloadConfigurations = createSelector([selectTooltipState, selectTooltipEventType2, selectTooltipTrigger, selectDefaultIndex], combineTooltipPayloadConfigurations);
18591
- var selectTooltipCoordinateForDefaultIndex = createSelector([selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, selectDefaultIndex, selectTooltipPayloadConfigurations], combineCoordinateForDefaultIndex);
18592
- createSelector([selectTooltipInteractionState, selectTooltipCoordinateForDefaultIndex], (tooltipInteractionState, defaultIndexCoordinate) => {
18593
- if (tooltipInteractionState !== null && tooltipInteractionState !== void 0 && tooltipInteractionState.coordinate) {
18594
- return tooltipInteractionState.coordinate;
19368
+ var selectTooltipCoordinateForDefaultIndex = createSelector([selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, selectDefaultIndex, selectTooltipPayloadConfigurations, selectPolarViewBox], combineCoordinateForDefaultIndex);
19369
+ var selectActiveTooltipCoordinateFromIndex = createSelector([selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, selectActiveTooltipIndex, selectTooltipPayloadConfigurations, selectPolarViewBox], (width, height, layout, offset, ticks2, activeIndex, configurations, polarViewBox) => combineCoordinateForDefaultIndex(width, height, layout, offset, ticks2, activeIndex !== null && activeIndex !== void 0 ? activeIndex : void 0, configurations, polarViewBox));
19370
+ var selectTooltipPointerCoordinate = createSelector([selectTooltipInteractionState, selectTooltipCoordinateForDefaultIndex, selectActiveTooltipCoordinateFromIndex, selectChartLayout, selectIsZoomed], (tooltipInteractionState, defaultIndexCoordinate, activeIndexCoordinate, layout, isZoomed) => {
19371
+ var stored = tooltipInteractionState === null || tooltipInteractionState === void 0 ? void 0 : tooltipInteractionState.coordinate;
19372
+ if (isZoomed && activeIndexCoordinate != null) {
19373
+ if (stored != null && (layout === "horizontal" || layout === "vertical")) {
19374
+ return layout === "horizontal" ? {
19375
+ x: activeIndexCoordinate.x,
19376
+ y: stored.y
19377
+ } : {
19378
+ x: stored.x,
19379
+ y: activeIndexCoordinate.y
19380
+ };
19381
+ }
19382
+ return activeIndexCoordinate;
19383
+ }
19384
+ if (stored) {
19385
+ return stored;
18595
19386
  }
18596
19387
  return defaultIndexCoordinate;
18597
19388
  });
19389
+ createSelector([selectTooltipPointerCoordinate, selectChartName, selectChartOffsetInternal, (state) => state.zoom], (coordinate, chartName, offset, zoom2) => {
19390
+ if (coordinate == null || offset == null) {
19391
+ return coordinate;
19392
+ }
19393
+ return transformCoordinateByCameraZoom(coordinate, {
19394
+ x: offset.left,
19395
+ y: offset.top,
19396
+ width: offset.width,
19397
+ height: offset.height
19398
+ }, chartName, zoom2);
19399
+ });
18598
19400
  createSelector([selectTooltipInteractionState], (tooltipInteractionState) => {
18599
19401
  var _tooltipInteractionSt;
18600
19402
  return (_tooltipInteractionSt = tooltipInteractionState === null || tooltipInteractionState === void 0 ? void 0 : tooltipInteractionState.active) !== null && _tooltipInteractionSt !== void 0 ? _tooltipInteractionSt : false;
@@ -18609,7 +19411,7 @@ createSelector([selectActiveTooltipPayload], (payload) => {
18609
19411
  });
18610
19412
 
18611
19413
  // ../node_modules/recharts/es6/context/useTooltipAxis.js
18612
- function ownKeys14(e3, r3) {
19414
+ function ownKeys15(e3, r3) {
18613
19415
  var t = Object.keys(e3);
18614
19416
  if (Object.getOwnPropertySymbols) {
18615
19417
  var o5 = Object.getOwnPropertySymbols(e3);
@@ -18619,25 +19421,25 @@ function ownKeys14(e3, r3) {
18619
19421
  }
18620
19422
  return t;
18621
19423
  }
18622
- function _objectSpread14(e3) {
19424
+ function _objectSpread15(e3) {
18623
19425
  for (var r3 = 1; r3 < arguments.length; r3++) {
18624
19426
  var t = null != arguments[r3] ? arguments[r3] : {};
18625
- r3 % 2 ? ownKeys14(Object(t), true).forEach(function(r4) {
18626
- _defineProperty15(e3, r4, t[r4]);
18627
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys14(Object(t)).forEach(function(r4) {
19427
+ r3 % 2 ? ownKeys15(Object(t), true).forEach(function(r4) {
19428
+ _defineProperty16(e3, r4, t[r4]);
19429
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys15(Object(t)).forEach(function(r4) {
18628
19430
  Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t, r4));
18629
19431
  });
18630
19432
  }
18631
19433
  return e3;
18632
19434
  }
18633
- function _defineProperty15(e3, r3, t) {
18634
- return (r3 = _toPropertyKey15(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
19435
+ function _defineProperty16(e3, r3, t) {
19436
+ return (r3 = _toPropertyKey16(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
18635
19437
  }
18636
- function _toPropertyKey15(t) {
18637
- var i3 = _toPrimitive15(t, "string");
19438
+ function _toPropertyKey16(t) {
19439
+ var i3 = _toPrimitive16(t, "string");
18638
19440
  return "symbol" == typeof i3 ? i3 : i3 + "";
18639
19441
  }
18640
- function _toPrimitive15(t, r3) {
19442
+ function _toPrimitive16(t, r3) {
18641
19443
  if ("object" != typeof t || !t) return t;
18642
19444
  var e3 = t[Symbol.toPrimitive];
18643
19445
  if (void 0 !== e3) {
@@ -18655,7 +19457,7 @@ var useTooltipAxisBandSize = () => {
18655
19457
  if (!tooltipAxis || !tooltipAxisScale) {
18656
19458
  return getBandSizeOfAxis(void 0, tooltipTicks);
18657
19459
  }
18658
- return getBandSizeOfAxis(_objectSpread14(_objectSpread14({}, tooltipAxis), {}, {
19460
+ return getBandSizeOfAxis(_objectSpread15(_objectSpread15({}, tooltipAxis), {}, {
18659
19461
  scale: tooltipAxisScale
18660
19462
  }), tooltipTicks);
18661
19463
  };
@@ -18687,7 +19489,7 @@ var selectTooltipDataKey = (state, tooltipEventType, trigger) => {
18687
19489
  return tooltipState.itemInteraction.click.dataKey;
18688
19490
  };
18689
19491
  var selectTooltipPayloadConfigurations2 = createSelector([selectTooltipState, pickTooltipEventType, pickTrigger, pickDefaultIndex], combineTooltipPayloadConfigurations);
18690
- var selectCoordinateForDefaultIndex = createSelector([selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, pickDefaultIndex, selectTooltipPayloadConfigurations2], combineCoordinateForDefaultIndex);
19492
+ var selectCoordinateForDefaultIndex = createSelector([selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, pickDefaultIndex, selectTooltipPayloadConfigurations2, selectPolarViewBox], combineCoordinateForDefaultIndex);
18691
19493
  var selectActiveCoordinate = createSelector([selectTooltipInteractionState2, selectCoordinateForDefaultIndex], (tooltipInteractionState, defaultIndexCoordinate) => {
18692
19494
  var _tooltipInteractionSt;
18693
19495
  return (_tooltipInteractionSt = tooltipInteractionState.coordinate) !== null && _tooltipInteractionSt !== void 0 ? _tooltipInteractionSt : defaultIndexCoordinate;
@@ -18700,6 +19502,10 @@ var selectIsTooltipActive2 = createSelector([selectTooltipInteractionState2, sel
18700
19502
  activeIndex
18701
19503
  };
18702
19504
  });
19505
+ var ClipPathIdContext = /* @__PURE__ */ createContext(void 0);
19506
+ var useClipPathId = () => {
19507
+ return useContext(ClipPathIdContext);
19508
+ };
18703
19509
 
18704
19510
  // ../node_modules/recharts/es6/zIndex/zIndexSelectors.js
18705
19511
  var selectZIndexPortalElement = createSelector((state) => state.zIndex.zIndexMap, (_, zIndex) => zIndex, (_, _zIndex, isPanorama) => isPanorama, (zIndexMap, zIndex, isPanorama) => {
@@ -18726,7 +19532,7 @@ createSelector((state) => state.zIndex.zIndexMap, (zIndexMap) => {
18726
19532
  });
18727
19533
 
18728
19534
  // ../node_modules/recharts/es6/state/zIndexSlice.js
18729
- function ownKeys15(e3, r3) {
19535
+ function ownKeys16(e3, r3) {
18730
19536
  var t = Object.keys(e3);
18731
19537
  if (Object.getOwnPropertySymbols) {
18732
19538
  var o5 = Object.getOwnPropertySymbols(e3);
@@ -18736,25 +19542,25 @@ function ownKeys15(e3, r3) {
18736
19542
  }
18737
19543
  return t;
18738
19544
  }
18739
- function _objectSpread15(e3) {
19545
+ function _objectSpread16(e3) {
18740
19546
  for (var r3 = 1; r3 < arguments.length; r3++) {
18741
19547
  var t = null != arguments[r3] ? arguments[r3] : {};
18742
- r3 % 2 ? ownKeys15(Object(t), true).forEach(function(r4) {
18743
- _defineProperty16(e3, r4, t[r4]);
18744
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys15(Object(t)).forEach(function(r4) {
19548
+ r3 % 2 ? ownKeys16(Object(t), true).forEach(function(r4) {
19549
+ _defineProperty17(e3, r4, t[r4]);
19550
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys16(Object(t)).forEach(function(r4) {
18745
19551
  Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t, r4));
18746
19552
  });
18747
19553
  }
18748
19554
  return e3;
18749
19555
  }
18750
- function _defineProperty16(e3, r3, t) {
18751
- return (r3 = _toPropertyKey16(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
19556
+ function _defineProperty17(e3, r3, t) {
19557
+ return (r3 = _toPropertyKey17(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
18752
19558
  }
18753
- function _toPropertyKey16(t) {
18754
- var i3 = _toPrimitive16(t, "string");
19559
+ function _toPropertyKey17(t) {
19560
+ var i3 = _toPrimitive17(t, "string");
18755
19561
  return "symbol" == typeof i3 ? i3 : i3 + "";
18756
19562
  }
18757
- function _toPrimitive16(t, r3) {
19563
+ function _toPrimitive17(t, r3) {
18758
19564
  if ("object" != typeof t || !t) return t;
18759
19565
  var e3 = t[Symbol.toPrimitive];
18760
19566
  if (void 0 !== e3) {
@@ -18766,7 +19572,7 @@ function _toPrimitive16(t, r3) {
18766
19572
  }
18767
19573
  var seed = {};
18768
19574
  var initialState2 = {
18769
- zIndexMap: Object.values(DefaultZIndexes).reduce((acc, current2) => _objectSpread15(_objectSpread15({}, acc), {}, {
19575
+ zIndexMap: Object.values(DefaultZIndexes).reduce((acc, current2) => _objectSpread16(_objectSpread16({}, acc), {}, {
18770
19576
  [current2]: {
18771
19577
  element: void 0,
18772
19578
  panoramaElement: void 0,
@@ -18851,8 +19657,8 @@ _zIndexSlice$actions.unregisterZIndexPortalElement;
18851
19657
  zIndexSlice.reducer;
18852
19658
 
18853
19659
  // ../node_modules/recharts/es6/zIndex/ZIndexLayer.js
18854
- function ZIndexLayer(_ref) {
18855
- var zIndex = _ref.zIndex, children = _ref.children;
19660
+ function ZIndexLayer(_ref2) {
19661
+ var zIndex = _ref2.zIndex, children = _ref2.children;
18856
19662
  var isInChartContext = useIsInChartContext();
18857
19663
  var shouldRenderInPortal = isInChartContext && zIndex !== void 0 && zIndex !== 0;
18858
19664
  var isPanorama = useIsPanorama();
@@ -18922,7 +19728,7 @@ function _extends7() {
18922
19728
  return n5;
18923
19729
  }, _extends7.apply(null, arguments);
18924
19730
  }
18925
- function ownKeys16(e3, r3) {
19731
+ function ownKeys17(e3, r3) {
18926
19732
  var t = Object.keys(e3);
18927
19733
  if (Object.getOwnPropertySymbols) {
18928
19734
  var o5 = Object.getOwnPropertySymbols(e3);
@@ -18932,25 +19738,25 @@ function ownKeys16(e3, r3) {
18932
19738
  }
18933
19739
  return t;
18934
19740
  }
18935
- function _objectSpread16(e3) {
19741
+ function _objectSpread17(e3) {
18936
19742
  for (var r3 = 1; r3 < arguments.length; r3++) {
18937
19743
  var t = null != arguments[r3] ? arguments[r3] : {};
18938
- r3 % 2 ? ownKeys16(Object(t), true).forEach(function(r4) {
18939
- _defineProperty17(e3, r4, t[r4]);
18940
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys16(Object(t)).forEach(function(r4) {
19744
+ r3 % 2 ? ownKeys17(Object(t), true).forEach(function(r4) {
19745
+ _defineProperty18(e3, r4, t[r4]);
19746
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys17(Object(t)).forEach(function(r4) {
18941
19747
  Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t, r4));
18942
19748
  });
18943
19749
  }
18944
19750
  return e3;
18945
19751
  }
18946
- function _defineProperty17(e3, r3, t) {
18947
- return (r3 = _toPropertyKey17(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
19752
+ function _defineProperty18(e3, r3, t) {
19753
+ return (r3 = _toPropertyKey18(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
18948
19754
  }
18949
- function _toPropertyKey17(t) {
18950
- var i3 = _toPrimitive17(t, "string");
19755
+ function _toPropertyKey18(t) {
19756
+ var i3 = _toPrimitive18(t, "string");
18951
19757
  return "symbol" == typeof i3 ? i3 : i3 + "";
18952
19758
  }
18953
- function _toPrimitive17(t, r3) {
19759
+ function _toPrimitive18(t, r3) {
18954
19760
  if ("object" != typeof t || !t) return t;
18955
19761
  var e3 = t[Symbol.toPrimitive];
18956
19762
  if (void 0 !== e3) {
@@ -18960,16 +19766,32 @@ function _toPrimitive17(t, r3) {
18960
19766
  }
18961
19767
  return ("string" === r3 ? String : Number)(t);
18962
19768
  }
18963
- function RenderCursor(_ref) {
18964
- var cursor = _ref.cursor, cursorComp = _ref.cursorComp, cursorProps = _ref.cursorProps;
19769
+ var defaultLegacyCursorThemeProps = {
19770
+ stroke: "#ccc",
19771
+ fill: "#ccc"
19772
+ };
19773
+ function RenderCursor(_ref2) {
19774
+ var cursor = _ref2.cursor, cursorComp = _ref2.cursorComp, cursorProps = _ref2.cursorProps;
18965
19775
  if (/* @__PURE__ */ isValidElement(cursor)) {
18966
19776
  return /* @__PURE__ */ cloneElement(cursor, cursorProps);
18967
19777
  }
18968
19778
  return /* @__PURE__ */ createElement(cursorComp, cursorProps);
18969
19779
  }
18970
19780
  function CursorInternal(props) {
18971
- var _props$zIndex;
19781
+ var _svgPropertiesNoEvent, _useAppSelector, _props$zIndex;
18972
19782
  var coordinate = props.coordinate, payload = props.payload, index = props.index, offset = props.offset, tooltipAxisBandSize = props.tooltipAxisBandSize, layout = props.layout, cursor = props.cursor, tooltipEventType = props.tooltipEventType, chartName = props.chartName;
19783
+ var cursorPropsFromDefinition = (_svgPropertiesNoEvent = svgPropertiesNoEventsFromUnknown(cursor)) !== null && _svgPropertiesNoEvent !== void 0 ? _svgPropertiesNoEvent : {};
19784
+ var activeTheme = useRechartsTheme();
19785
+ var cursorThemeProps = useBackwardsCompatibleTheme((theme) => {
19786
+ if (/* @__PURE__ */ isValidElement(cursor)) {
19787
+ return void 0;
19788
+ }
19789
+ return chartName === "ScatterChart" ? withFillColor(theme.cursor) : theme.cursor;
19790
+ }, cursorPropsFromDefinition, defaultLegacyCursorThemeProps);
19791
+ var cursorPropsBeforeGeometry = activeTheme == null ? cursorThemeProps : {};
19792
+ var cursorPropsAfterGeometry = (activeTheme === null || activeTheme === void 0 ? void 0 : activeTheme.cursor) != null && !/* @__PURE__ */ isValidElement(cursor) ? cursorThemeProps : {};
19793
+ var clipPathId = useClipPathId();
19794
+ var isZoomed = (_useAppSelector = useAppSelector(selectIsZoomed)) !== null && _useAppSelector !== void 0 ? _useAppSelector : false;
18973
19795
  var activeCoordinate = coordinate;
18974
19796
  var activePayload = payload;
18975
19797
  var activeTooltipIndex = index;
@@ -19005,21 +19827,23 @@ function CursorInternal(props) {
19005
19827
  preferredZIndex = DefaultZIndexes.cursorLine;
19006
19828
  }
19007
19829
  var extraClassName = typeof cursor === "object" && "className" in cursor ? cursor.className : void 0;
19008
- var cursorProps = _objectSpread16(_objectSpread16(_objectSpread16(_objectSpread16({
19009
- stroke: "#ccc",
19830
+ var cursorProps = _objectSpread17(_objectSpread17(_objectSpread17(_objectSpread17(_objectSpread17(_objectSpread17({}, cursorPropsBeforeGeometry), {}, {
19010
19831
  pointerEvents: "none"
19011
- }, offset), restProps), svgPropertiesNoEventsFromUnknown(cursor)), {}, {
19832
+ }, offset), restProps), cursorPropsFromDefinition), cursorPropsAfterGeometry), {}, {
19012
19833
  payload: activePayload,
19013
19834
  payloadIndex: activeTooltipIndex,
19014
19835
  className: clsx("recharts-tooltip-cursor", extraClassName)
19015
19836
  });
19016
- return /* @__PURE__ */ D3.createElement(ZIndexLayer, {
19017
- zIndex: (_props$zIndex = props.zIndex) !== null && _props$zIndex !== void 0 ? _props$zIndex : preferredZIndex
19018
- }, /* @__PURE__ */ D3.createElement(RenderCursor, {
19837
+ var cursorElement = /* @__PURE__ */ D3.createElement(RenderCursor, {
19019
19838
  cursor,
19020
19839
  cursorComp,
19021
19840
  cursorProps
19022
- }));
19841
+ });
19842
+ return /* @__PURE__ */ D3.createElement(ZIndexLayer, {
19843
+ zIndex: (_props$zIndex = props.zIndex) !== null && _props$zIndex !== void 0 ? _props$zIndex : preferredZIndex
19844
+ }, isZoomed && clipPathId ? /* @__PURE__ */ D3.createElement("g", {
19845
+ clipPath: "url(#".concat(clipPathId, ")")
19846
+ }, cursorElement) : cursorElement);
19023
19847
  }
19024
19848
  function Cursor(props) {
19025
19849
  var tooltipAxisBandSize = useTooltipAxisBandSize();
@@ -19062,8 +19886,29 @@ function useTooltipChartSynchronisation(tooltipEventType, trigger, activeCoordin
19062
19886
  var tooltipState = useAppSelector(selectSynchronisedTooltipState);
19063
19887
  var isReceivingSynchronisation = (tooltipState === null || tooltipState === void 0 ? void 0 : tooltipState.sourceViewBox) != null;
19064
19888
  var viewBox = useViewBox();
19889
+ var lastSentActiveRef = useRef(false);
19890
+ useEffect(() => {
19891
+ if (syncId == null || eventEmitterSymbol == null) {
19892
+ return noop;
19893
+ }
19894
+ return () => {
19895
+ if (lastSentActiveRef.current) {
19896
+ lastSentActiveRef.current = false;
19897
+ eventCenter.emit(TOOLTIP_SYNC_EVENT, syncId, setSyncInteraction({
19898
+ active: false,
19899
+ coordinate: void 0,
19900
+ dataKey: void 0,
19901
+ index: null,
19902
+ label: void 0,
19903
+ sourceViewBox: void 0,
19904
+ graphicalItemId: void 0
19905
+ }), eventEmitterSymbol);
19906
+ }
19907
+ };
19908
+ }, [syncId, eventEmitterSymbol]);
19065
19909
  useEffect(() => {
19066
19910
  if (isReceivingSynchronisation) {
19911
+ lastSentActiveRef.current = false;
19067
19912
  return;
19068
19913
  }
19069
19914
  if (syncId == null) {
@@ -19081,12 +19926,13 @@ function useTooltipChartSynchronisation(tooltipEventType, trigger, activeCoordin
19081
19926
  sourceViewBox: viewBox,
19082
19927
  graphicalItemId: activeGraphicalItemId
19083
19928
  });
19929
+ lastSentActiveRef.current = isTooltipActive;
19084
19930
  eventCenter.emit(TOOLTIP_SYNC_EVENT, syncId, syncAction, eventEmitterSymbol);
19085
19931
  }, [isReceivingSynchronisation, activeCoordinate, activeDataKey, activeGraphicalItemId, activeIndex, activeLabel, eventEmitterSymbol, syncId, syncMethod, isTooltipActive, viewBox]);
19086
19932
  }
19087
19933
 
19088
19934
  // ../node_modules/recharts/es6/component/Tooltip.js
19089
- function ownKeys17(e3, r3) {
19935
+ function ownKeys18(e3, r3) {
19090
19936
  var t = Object.keys(e3);
19091
19937
  if (Object.getOwnPropertySymbols) {
19092
19938
  var o5 = Object.getOwnPropertySymbols(e3);
@@ -19096,25 +19942,25 @@ function ownKeys17(e3, r3) {
19096
19942
  }
19097
19943
  return t;
19098
19944
  }
19099
- function _objectSpread17(e3) {
19945
+ function _objectSpread18(e3) {
19100
19946
  for (var r3 = 1; r3 < arguments.length; r3++) {
19101
19947
  var t = null != arguments[r3] ? arguments[r3] : {};
19102
- r3 % 2 ? ownKeys17(Object(t), true).forEach(function(r4) {
19103
- _defineProperty18(e3, r4, t[r4]);
19104
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys17(Object(t)).forEach(function(r4) {
19948
+ r3 % 2 ? ownKeys18(Object(t), true).forEach(function(r4) {
19949
+ _defineProperty19(e3, r4, t[r4]);
19950
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys18(Object(t)).forEach(function(r4) {
19105
19951
  Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t, r4));
19106
19952
  });
19107
19953
  }
19108
19954
  return e3;
19109
19955
  }
19110
- function _defineProperty18(e3, r3, t) {
19111
- return (r3 = _toPropertyKey18(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
19956
+ function _defineProperty19(e3, r3, t) {
19957
+ return (r3 = _toPropertyKey19(r3)) in e3 ? Object.defineProperty(e3, r3, { value: t, enumerable: true, configurable: true, writable: true }) : e3[r3] = t, e3;
19112
19958
  }
19113
- function _toPropertyKey18(t) {
19114
- var i3 = _toPrimitive18(t, "string");
19959
+ function _toPropertyKey19(t) {
19960
+ var i3 = _toPrimitive19(t, "string");
19115
19961
  return "symbol" == typeof i3 ? i3 : i3 + "";
19116
19962
  }
19117
- function _toPrimitive18(t, r3) {
19963
+ function _toPrimitive19(t, r3) {
19118
19964
  if ("object" != typeof t || !t) return t;
19119
19965
  var e3 = t[Symbol.toPrimitive];
19120
19966
  if (void 0 !== e3) {
@@ -19124,25 +19970,25 @@ function _toPrimitive18(t, r3) {
19124
19970
  }
19125
19971
  return ("string" === r3 ? String : Number)(t);
19126
19972
  }
19127
- function _slicedToArray11(r3, e3) {
19128
- return _arrayWithHoles11(r3) || _iterableToArrayLimit11(r3, e3) || _unsupportedIterableToArray11(r3, e3) || _nonIterableRest11();
19973
+ function _slicedToArray15(r3, e3) {
19974
+ return _arrayWithHoles15(r3) || _iterableToArrayLimit15(r3, e3) || _unsupportedIterableToArray15(r3, e3) || _nonIterableRest15();
19129
19975
  }
19130
- function _nonIterableRest11() {
19976
+ function _nonIterableRest15() {
19131
19977
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
19132
19978
  }
19133
- function _unsupportedIterableToArray11(r3, a5) {
19979
+ function _unsupportedIterableToArray15(r3, a5) {
19134
19980
  if (r3) {
19135
- if ("string" == typeof r3) return _arrayLikeToArray11(r3, a5);
19981
+ if ("string" == typeof r3) return _arrayLikeToArray15(r3, a5);
19136
19982
  var t = {}.toString.call(r3).slice(8, -1);
19137
- return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray11(r3, a5) : void 0;
19983
+ return "Object" === t && r3.constructor && (t = r3.constructor.name), "Map" === t || "Set" === t ? Array.from(r3) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray15(r3, a5) : void 0;
19138
19984
  }
19139
19985
  }
19140
- function _arrayLikeToArray11(r3, a5) {
19986
+ function _arrayLikeToArray15(r3, a5) {
19141
19987
  (null == a5 || a5 > r3.length) && (a5 = r3.length);
19142
19988
  for (var e3 = 0, n5 = Array(a5); e3 < a5; e3++) n5[e3] = r3[e3];
19143
19989
  return n5;
19144
19990
  }
19145
- function _iterableToArrayLimit11(r3, l3) {
19991
+ function _iterableToArrayLimit15(r3, l3) {
19146
19992
  var t = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
19147
19993
  if (null != t) {
19148
19994
  var e3, n5, i3, u9, a5 = [], f3 = true, o5 = false;
@@ -19160,7 +20006,7 @@ function _iterableToArrayLimit11(r3, l3) {
19160
20006
  return a5;
19161
20007
  }
19162
20008
  }
19163
- function _arrayWithHoles11(r3) {
20009
+ function _arrayWithHoles15(r3) {
19164
20010
  if (Array.isArray(r3)) return r3;
19165
20011
  }
19166
20012
  function defaultUniqBy(entry) {
@@ -19220,14 +20066,14 @@ function Tooltip2(outsideProps) {
19220
20066
  var viewBox = useViewBox();
19221
20067
  var accessibilityLayer = useAccessibilityLayer();
19222
20068
  var tooltipEventType = useTooltipEventType(shared);
19223
- var _ref = (_useAppSelector = useAppSelector((state) => selectIsTooltipActive2(state, tooltipEventType, trigger, defaultIndexAsString))) !== null && _useAppSelector !== void 0 ? _useAppSelector : {}, activeIndex = _ref.activeIndex, isActive = _ref.isActive;
20069
+ var _ref3 = (_useAppSelector = useAppSelector((state) => selectIsTooltipActive2(state, tooltipEventType, trigger, defaultIndexAsString))) !== null && _useAppSelector !== void 0 ? _useAppSelector : {}, activeIndex = _ref3.activeIndex, isActive = _ref3.isActive;
19224
20070
  var payloadFromRedux = useAppSelector((state) => selectTooltipPayload(state, tooltipEventType, trigger, defaultIndexAsString));
19225
20071
  var labelFromRedux = useAppSelector((state) => selectActiveLabel2(state, tooltipEventType, trigger, defaultIndexAsString));
19226
20072
  var coordinate = useAppSelector((state) => selectActiveCoordinate(state, tooltipEventType, trigger, defaultIndexAsString));
19227
20073
  var payload = payloadFromRedux;
19228
20074
  var tooltipPortalFromContext = useTooltipPortal();
19229
20075
  var finalIsActive = (_ref2 = activeFromProps !== null && activeFromProps !== void 0 ? activeFromProps : isActive) !== null && _ref2 !== void 0 ? _ref2 : false;
19230
- var _useElementOffset = useElementOffset([payload, finalIsActive]), _useElementOffset2 = _slicedToArray11(_useElementOffset, 2), lastBoundingBox = _useElementOffset2[0], updateBoundingBox = _useElementOffset2[1];
20076
+ var _useElementOffset = useElementOffset([payload, finalIsActive]), _useElementOffset2 = _slicedToArray15(_useElementOffset, 2), lastBoundingBox = _useElementOffset2[0], updateBoundingBox = _useElementOffset2[1];
19231
20077
  var finalLabel = tooltipEventType === "axis" ? labelFromRedux : void 0;
19232
20078
  useTooltipChartSynchronisation(tooltipEventType, trigger, coordinate, finalLabel, activeIndex, finalIsActive);
19233
20079
  var tooltipPortal = portalFromProps !== null && portalFromProps !== void 0 ? portalFromProps : tooltipPortalFromContext;
@@ -19242,7 +20088,7 @@ function Tooltip2(outsideProps) {
19242
20088
  finalPayload = getUniqPayload(finalPayload.filter((entry) => entry.value != null && (entry.hide !== true || props.includeHidden)), payloadUniqBy, defaultUniqBy);
19243
20089
  }
19244
20090
  var hasPayload = finalPayload.length > 0;
19245
- var tooltipContentProps = _objectSpread17(_objectSpread17({}, props), {}, {
20091
+ var tooltipContentProps = _objectSpread18(_objectSpread18({}, props), {}, {
19246
20092
  payload: finalPayload,
19247
20093
  label: finalLabel,
19248
20094
  active: finalIsActive,
@@ -20217,6 +21063,66 @@ var SelectOptions = ({
20217
21063
  ] }) });
20218
21064
  };
20219
21065
  var SelectOptions_default = SelectOptions;
21066
+ var SearchWithTags = ({
21067
+ children,
21068
+ onSearchChange,
21069
+ defaultSearchValue,
21070
+ showTagFilter = false,
21071
+ availableTagOptions = []
21072
+ }) => {
21073
+ const { formatMessage } = useIntl();
21074
+ const { query, push } = useRouter();
21075
+ const handleTagChange = (value2) => {
21076
+ const { skip, tags, ...rest } = query;
21077
+ push({
21078
+ query: isTruthy(value2) ? normalizeQuery(rest, value2.join(","), "tags") : normalizeQuery(rest)
21079
+ });
21080
+ };
21081
+ return /* @__PURE__ */ jsxs("div", { children: [
21082
+ /* @__PURE__ */ jsx("div", { className: "my-3 flex flex-col gap-3", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col sm:flex-row sm:items-start gap-3", children: [
21083
+ /* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx(
21084
+ SearchField_default,
21085
+ {
21086
+ onInputChange: onSearchChange,
21087
+ defaultValue: defaultSearchValue
21088
+ }
21089
+ ) }),
21090
+ showTagFilter && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 flex-1 sm:border-l sm:border-border-default sm:pl-3", children: [
21091
+ /* @__PURE__ */ jsx("div", { className: "max-w-xs", children: /* @__PURE__ */ jsx(
21092
+ TagInput_default,
21093
+ {
21094
+ buttonText: formatMessage({
21095
+ id: "apply",
21096
+ defaultMessage: "Apply"
21097
+ }),
21098
+ placeholder: formatMessage({
21099
+ id: "enter_tag",
21100
+ defaultMessage: "Enter tag..."
21101
+ }),
21102
+ tagList: query?.tags?.split(","),
21103
+ onChange: handleTagChange,
21104
+ selectOptions: availableTagOptions,
21105
+ showTagsInline: false
21106
+ }
21107
+ ) }),
21108
+ query?.tags?.split(",").filter(Boolean).length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: query?.tags?.split(",").filter(Boolean).map((tag) => /* @__PURE__ */ jsx(
21109
+ Badge_default,
21110
+ {
21111
+ text: tag,
21112
+ color: "slate",
21113
+ onClick: () => {
21114
+ const newTags = query?.tags?.split(",").filter((t) => t !== tag);
21115
+ handleTagChange(newTags.length > 0 ? newTags : null);
21116
+ }
21117
+ },
21118
+ tag
21119
+ )) })
21120
+ ] })
21121
+ ] }) }),
21122
+ children
21123
+ ] });
21124
+ };
21125
+ var SearchWithTags_default = SearchWithTags;
20220
21126
  /*! Bundled license information:
20221
21127
 
20222
21128
  use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
@@ -20245,4 +21151,4 @@ decimal.js-light/decimal.js:
20245
21151
  (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *)
20246
21152
  */
20247
21153
 
20248
- export { Accordion_default as Accordion, AccordionHeader_default as AccordionHeader, AccordionItem_default as AccordionItem, ActiveInActive_default as ActiveInActive, AnimatedCounter_default as AnimatedCounter, BreadCrumbs_default as BreadCrumbs, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartStyle, ChartTooltip, ChartTooltipContent, CopyableText_default as CopyableText, DateInput_default as DateInput, DateRangeFilterInput_default as DateRangeFilterInput, DetailHeader_default as DetailHeader, ErrorBoundary_default as ErrorBoundary, ErrorFallback_default as ErrorFallback, InfoTextBanner_default as InfoTextBanner, ListHeader_default as ListHeader, Loading_default as Loading, LocaleWrapper_default as LocaleWrapper, MediaAvatar_default as MediaAvatar, NoImage_default as NoImage, PageHeader_default as PageHeader, Pagination_default as Pagination, Portal_default as Portal, SearchField_default as SearchField, SelectOptions_default as SelectOptions, Skeleton, Table_default as Table, TagList_default as TagList, TagListForm_default as TagListForm, Toggle_default as Toggle, ToolTip_default as ToolTip };
21154
+ export { Accordion_default as Accordion, AccordionHeader_default as AccordionHeader, AccordionItem_default as AccordionItem, ActiveInActive_default as ActiveInActive, AnimatedCounter_default as AnimatedCounter, BreadCrumbs_default as BreadCrumbs, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartStyle, ChartTooltip, ChartTooltipContent, CopyableText_default as CopyableText, DateInput_default as DateInput, DateRangeFilterInput_default as DateRangeFilterInput, DetailHeader_default as DetailHeader, ErrorBoundary_default as ErrorBoundary, ErrorFallback_default as ErrorFallback, InfoTextBanner_default as InfoTextBanner, ListHeader_default as ListHeader, Loading_default as Loading, LocaleWrapper_default as LocaleWrapper, MediaAvatar_default as MediaAvatar, NoImage_default as NoImage, PageHeader_default as PageHeader, Pagination_default as Pagination, Portal_default as Portal, SearchField_default as SearchField, SearchWithTags_default as SearchWithTags, SelectOptions_default as SelectOptions, Skeleton, Table_default as Table, TagList_default as TagList, TagListForm_default as TagListForm, Toggle_default as Toggle, ToolTip_default as ToolTip };