cli-jaw 2.17.17 → 2.17.18

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 (289) hide show
  1. package/dist/bin/commands/skill.js +10 -11
  2. package/dist/bin/commands/skill.js.map +1 -1
  3. package/dist/bin/commands/status.js +40 -6
  4. package/dist/bin/commands/status.js.map +1 -1
  5. package/dist/lib/mcp/skills-reset.js +8 -7
  6. package/dist/lib/mcp/skills-reset.js.map +1 -1
  7. package/dist/lib/mcp/skills-utils.js +44 -0
  8. package/dist/lib/mcp/skills-utils.js.map +1 -1
  9. package/dist/scripts/check-deps-audit.js +89 -0
  10. package/dist/scripts/check-deps-audit.js.map +1 -0
  11. package/dist/src/discord/send-only-client.js +2 -1
  12. package/dist/src/discord/send-only-client.js.map +1 -1
  13. package/dist/src/manager/memory/federation.js +5 -0
  14. package/dist/src/manager/memory/federation.js.map +1 -1
  15. package/dist/src/manager/memory/instance-discovery.js +27 -4
  16. package/dist/src/manager/memory/instance-discovery.js.map +1 -1
  17. package/dist/src/manager/server.js +1 -0
  18. package/dist/src/manager/server.js.map +1 -1
  19. package/dist/src/prompt/builder.js +8 -7
  20. package/dist/src/prompt/builder.js.map +1 -1
  21. package/dist/src/prompt/templates/a1-system.md +5 -1
  22. package/dist/src/prompt/templates/skills.md +6 -0
  23. package/dist/src/slack/api.js +7 -0
  24. package/dist/src/slack/api.js.map +1 -1
  25. package/dist/src/slack/slack-file.js +8 -0
  26. package/dist/src/slack/slack-file.js.map +1 -1
  27. package/dist/src/telegram/bot.js +32 -3
  28. package/dist/src/telegram/bot.js.map +1 -1
  29. package/dist/src/telegram/rich-message.js +40 -12
  30. package/dist/src/telegram/rich-message.js.map +1 -1
  31. package/package.json +4 -3
  32. package/public/dist/assets/{AdvancedExport-IOkupLFE.js → AdvancedExport-tXydxVAh.js} +1 -1
  33. package/public/dist/assets/{Agent-CVt8RCVj.js → Agent-BjxJRsKG.js} +1 -1
  34. package/public/dist/assets/{Browser-J4TPo4bX.js → Browser-Dm5J1gXP.js} +1 -1
  35. package/public/dist/assets/{ChannelEnablementControl-Da_t_jq6.js → ChannelEnablementControl-B9KiYDZZ.js} +1 -1
  36. package/public/dist/assets/{ChannelsDiscord-kNjCCJcA.js → ChannelsDiscord-D6jmfyHe.js} +1 -1
  37. package/public/dist/assets/{ChannelsSlack-U0_Sfkz0.js → ChannelsSlack-BcykASIN.js} +1 -1
  38. package/public/dist/assets/{ChannelsTelegram-DBIFDz4R.js → ChannelsTelegram-XkNtVi8o.js} +1 -1
  39. package/public/dist/assets/{CodeCanvas-CaeLVtZi.js → CodeCanvas-D-JH2Ikl.js} +2 -2
  40. package/public/dist/assets/{DashboardMeta-Dsj8kEuW.js → DashboardMeta-D6nJsY8n.js} +1 -1
  41. package/public/dist/assets/{Display-nkXitDjD.js → Display-B25HqCMH.js} +1 -1
  42. package/public/dist/assets/{DocPanel-ogNttSee.js → DocPanel-qiqo6365.js} +1 -1
  43. package/public/dist/assets/{Employees-CU_1YnrA.js → Employees-CR41RcWo.js} +1 -1
  44. package/public/dist/assets/{Heartbeat-BeGhWW4a.js → Heartbeat-B8c_YvS7.js} +1 -1
  45. package/public/dist/assets/{MarkdownRenderer-Cd3kkg_s.js → MarkdownRenderer-DZ-hWmCB.js} +3 -3
  46. package/public/dist/assets/MarkdownRenderer-uwE0Wam5.js +1 -0
  47. package/public/dist/assets/{Mcp-2HD1qR7F.js → Mcp-DSIEQZfH.js} +1 -1
  48. package/public/dist/assets/{Memory-I30i-svi.js → Memory-BY88ur_h.js} +1 -1
  49. package/public/dist/assets/{MilkdownWysiwygEditor-BkEzO5cz.js → MilkdownWysiwygEditor-DanGAZL5.js} +1 -1
  50. package/public/dist/assets/{ModelProvider-B96RCkFb.js → ModelProvider-mtAtYLmW.js} +1 -1
  51. package/public/dist/assets/{Network-DfzqHi9q.js → Network-ByNu-VCZ.js} +1 -1
  52. package/public/dist/assets/{NotesGraphWorkspace-BRIiraP9.js → NotesGraphWorkspace-Be6ctzYE.js} +1 -1
  53. package/public/dist/assets/Permissions-B-74b-nO.js +1 -0
  54. package/public/dist/assets/{Permissions-RgyF1O6q.js → Permissions-x_6_kLC1.js} +1 -1
  55. package/public/dist/assets/{Profile-DXKtAzfg.js → Profile-Bf9-QN2Y.js} +1 -1
  56. package/public/dist/assets/{Prompts-C7njPWCu.js → Prompts-DGDw56NQ.js} +1 -1
  57. package/public/dist/assets/{SpeechKeys-B7SDWzo9.js → SpeechKeys-CIq4c1iz.js} +1 -1
  58. package/public/dist/assets/{TelegramHub-C61X3f-H.js → TelegramHub-BrCeAZEf.js} +1 -1
  59. package/public/dist/assets/abnfDiagram-VCTEODGH-DOF68zXc.js +1 -0
  60. package/public/dist/assets/{app-wKiMVlyi.js → app-DhDdCs_s.js} +5 -5
  61. package/public/dist/assets/architecture-7GRP2DOG-DxLizWvy.js +1 -0
  62. package/public/dist/assets/architectureDiagram-5GKGNRK7-BpxFEoT5.js +36 -0
  63. package/public/dist/assets/{bgtask-badge-BM93vlbj.js → bgtask-badge-CT6s6rND.js} +1 -1
  64. package/public/dist/assets/bgtask-badge-CidVvjWb.js +1 -0
  65. package/public/dist/assets/blockDiagram-OSKFZWR5-CRNzDJwU.js +129 -0
  66. package/public/dist/assets/c4Diagram-7LVT6UL2-Bg0DdRYW.js +38 -0
  67. package/public/dist/assets/channel-BjgXjYj8.js +1 -0
  68. package/public/dist/assets/chunk-2Q5K7J3B-BClkI2P5.js +1 -0
  69. package/public/dist/assets/chunk-2ZTRR5NV-DF9qGbFc.js +2 -0
  70. package/public/dist/assets/chunk-3NF5O7KM-DXOprKA_.js +168 -0
  71. package/public/dist/assets/chunk-3Z5EZCMW-D-umBnbE.js +1 -0
  72. package/public/dist/assets/chunk-4HAMMTFA-BzeIXjef.js +62 -0
  73. package/public/dist/assets/chunk-5V3GS4D5-DB7RMaO_.js +1 -0
  74. package/public/dist/assets/{chunk-FMBD7UC4-BEz4FhFn.js → chunk-5VM5RSS4-CEUkek2W.js} +1 -1
  75. package/public/dist/assets/chunk-6AZGARVD-qPN7cVYY.js +1 -0
  76. package/public/dist/assets/{chunk-N66VUXT2-DJVNyglo.js → chunk-6EIED4P4-Bt6lS0r9.js} +1 -1
  77. package/public/dist/assets/chunk-6K3QC6MW-BC_6hNGf.js +1 -0
  78. package/public/dist/assets/chunk-6TQVIW2G-NQr1OdRE.js +1 -0
  79. package/public/dist/assets/chunk-747NJXEK-CukETSeX.js +2 -0
  80. package/public/dist/assets/chunk-75Z2AOVW-BLiFJXcr.js +2 -0
  81. package/public/dist/assets/chunk-CLGD4ZFX-B5zkZ8n6.js +1 -0
  82. package/public/dist/assets/chunk-DU6HZSFF-CqT8wcBs.js +126 -0
  83. package/public/dist/assets/{chunk-ND2GUHAM-1k8TCCsJ.js → chunk-F27PBJKO-Ccrogyxp.js} +1 -1
  84. package/public/dist/assets/chunk-FOHPRMQF--f9XSh-3.js +161 -0
  85. package/public/dist/assets/chunk-GMAD6QVW-BJLz4nC-.js +13 -0
  86. package/public/dist/assets/chunk-GVQU2GXP-BlVn1fMW.js +1 -0
  87. package/public/dist/assets/chunk-H2I77ZZE-BXf4_vA2.js +1 -0
  88. package/public/dist/assets/{chunk-727SXJPM-CUOujQg0.js → chunk-HLEWEB6X-BKWwzzZJ.js} +2 -2
  89. package/public/dist/assets/chunk-I5DQTOEV-B46sdKHC.js +1 -0
  90. package/public/dist/assets/chunk-ICYGCRZG-CSu4gXtC.js +1 -0
  91. package/public/dist/assets/chunk-IH6LHLGP-B2m3mWfU.js +1 -0
  92. package/public/dist/assets/{chunk-4BX2VUAB-DU36Vmpr.js → chunk-JWPE2WC7-D-FE5omP.js} +1 -1
  93. package/public/dist/assets/chunk-KI3K4JFJ-Bfn6wbch.js +1 -0
  94. package/public/dist/assets/chunk-L3NEJ4N5-FGXu31jw.js +1 -0
  95. package/public/dist/assets/chunk-LNGE3PJU-Dyjtq0ks.js +34 -0
  96. package/public/dist/assets/chunk-LQGUR6SS-qUTD5FMI.js +2 -0
  97. package/public/dist/assets/chunk-OSK3NFVY-CrXjNywV.js +10 -0
  98. package/public/dist/assets/chunk-OUJLGHUK-DkWSHliq.js +2 -0
  99. package/public/dist/assets/chunk-P2QGCYS3-B-9ymCdr.js +1 -0
  100. package/public/dist/assets/chunk-POPQ4Y6H-Df0_Odad.js +1 -0
  101. package/public/dist/assets/chunk-PWAF6VOD-B1cuaLs-.js +1 -0
  102. package/public/dist/assets/chunk-SVP7TREG-DCh4QTp-.js +88 -0
  103. package/public/dist/assets/chunk-UY3FDG6J--uyeDRt4.js +1 -0
  104. package/public/dist/assets/chunk-X3CZISLH-C1s9nTVF.js +1 -0
  105. package/public/dist/assets/chunk-XHIXRSVI-CQtpMKYq.js +1 -0
  106. package/public/dist/assets/chunk-XXDRQBXY-DEwmqeYc.js +1 -0
  107. package/public/dist/assets/chunk-Y2CYZVJY-DlLjK0OJ.js +1 -0
  108. package/public/dist/assets/chunk-ZLD2IHE6-DOKyEMMC.js +231 -0
  109. package/public/dist/assets/classDiagram-CYGNFDIV-hbaxbeYd.js +1 -0
  110. package/public/dist/assets/classDiagram-v2-TLXNO2FR-_OfX3b6Y.js +1 -0
  111. package/public/dist/assets/cose-bilkent-JH36ORCC-HnUYAhwC.js +1 -0
  112. package/public/dist/assets/cynefin-OW5HDTMX-VXYSLvft.js +1 -0
  113. package/public/dist/assets/cynefinDiagram-5FMLGOSQ-D0dmg5fA.js +62 -0
  114. package/public/dist/assets/cytoscape.esm-CS3SmpXd.js +321 -0
  115. package/public/dist/assets/dagre-DDTOgfwg.js +1 -0
  116. package/public/dist/assets/dagre-OS7QT2EB-c-JkA4ju.js +4 -0
  117. package/public/dist/assets/diagram-S7CK7UJ4-CgObZnGW.js +30 -0
  118. package/public/dist/assets/diagram-UQ7AKVKN-DTiko3yH.js +41 -0
  119. package/public/dist/assets/{diagram-KO2AKTUF-uRuKS97A.js → diagram-VSXAHHWV-BtwoQsOH.js} +2 -2
  120. package/public/dist/assets/diagram-VX7I27RA-BvFpphqo.js +24 -0
  121. package/public/dist/assets/diagram-Z3DM3KII-Zq8iJClC.js +24 -0
  122. package/public/dist/assets/ebnfDiagram-PWID7BFC-_fcO3z5G.js +1 -0
  123. package/public/dist/assets/{employees-C0CQgpI9.js → employees-DCju7V1x.js} +1 -1
  124. package/public/dist/assets/erDiagram-2YWLMYGG-YIq0Go-p.js +99 -0
  125. package/public/dist/assets/eventmodeling-NTZA5JFV-Csqcv5T_.js +1 -0
  126. package/public/dist/assets/flowDiagram-T62WH6J4-Del9dfOW.js +1 -0
  127. package/public/dist/assets/ganttDiagram-EL5Y4UJY-CezfIvti.js +292 -0
  128. package/public/dist/assets/gitGraph-4MIJSDKK-D_1mlgPm.js +1 -0
  129. package/public/dist/assets/gitGraphDiagram-WWUBYQGX-Bg3OM_0S.js +106 -0
  130. package/public/dist/assets/{graphlib-B06FTUqA.js → graphlib-Cjg_soTo.js} +1 -1
  131. package/public/dist/assets/{iframe-renderer-CgCPbWs-.js → iframe-renderer-LZp7Nqm1.js} +3 -3
  132. package/public/dist/assets/iframe-renderer-aFXUtTXX.js +1 -0
  133. package/public/dist/assets/info-A6RAGUB7-ce7F80NR.js +1 -0
  134. package/public/dist/assets/infoDiagram-FKFFQAWI-Dbi9pIPw.js +2 -0
  135. package/public/dist/assets/{ishikawaDiagram-YF4QCWOH-fyJrRZTW.js → ishikawaDiagram-5VMMS53U-C1FUP-sO.js} +1 -1
  136. package/public/dist/assets/{journeyDiagram-JHISSGLW-Dd6CvR-c.js → journeyDiagram-EYS64GPL-CaEEa3uT.js} +1 -1
  137. package/public/dist/assets/{kanban-definition-UN3LZRKU-C2ZH4LXA.js → kanban-definition-UXKFOSKX-DQjqFxtj.js} +2 -2
  138. package/public/dist/assets/katex-BoGadFcG.js +1 -0
  139. package/public/dist/assets/{manager-C_EnQ0Fc.js → manager-BEvw_3H1.js} +5 -5
  140. package/public/dist/assets/memory-BcZdf_oz.js +1 -0
  141. package/public/dist/assets/{memory-8-eJn9cp.js → memory-V5caYbpS.js} +1 -1
  142. package/public/dist/assets/mermaid-loader-BcReSszT.js +1 -0
  143. package/public/dist/assets/mermaid-parser.core-CBiGpWk6.js +3 -0
  144. package/public/dist/assets/{mermaid-preprocess-0hqEN7sn.js → mermaid-preprocess-4oGDpf1X.js} +1 -1
  145. package/public/dist/assets/mermaid.core-BJIXJ0Ir.js +11 -0
  146. package/public/dist/assets/mermaid.core-J6tiqiVK.js +1 -0
  147. package/public/dist/assets/{message-history-BEy8JQHJ.js → message-history-Bp_sUDSx.js} +1 -1
  148. package/public/dist/assets/message-history-DrEPUdTy.js +1 -0
  149. package/public/dist/assets/{mindmap-definition-RKZ34NQL-DUQBUbUA.js → mindmap-definition-THT77NOG-CXOyjall.js} +1 -1
  150. package/public/dist/assets/packet-AYTQ26CC-86oNpyWh.js +1 -0
  151. package/public/dist/assets/pegDiagram-XKGWAZYB-DVD3P7WU.js +1 -0
  152. package/public/dist/assets/pie-WAS4IAKB-CMzmzfvT.js +1 -0
  153. package/public/dist/assets/pieDiagram-E7YTZNPT-DEH6UJP4.js +39 -0
  154. package/public/dist/assets/{quadrantDiagram-W4KKPZXB-lbpz07e4.js → quadrantDiagram-AXDQQJYC-CAbCNOON.js} +3 -3
  155. package/public/dist/assets/radar-RG4KPBEZ-CsDBxCx4.js +1 -0
  156. package/public/dist/assets/railroad-74A4TZTK-B6s85Oul.js +1 -0
  157. package/public/dist/assets/railroad-abnf-HS5TGJTU-jnABoAnr.js +1 -0
  158. package/public/dist/assets/railroad-ebnf-LZEXJU2U-C_VWXbk9.js +1 -0
  159. package/public/dist/assets/railroad-peg-WCYAUIDC-y3jeoP_s.js +1 -0
  160. package/public/dist/assets/railroadDiagram-O6MQD6OU-CEs81LrU.js +1 -0
  161. package/public/dist/assets/{render-B-8i-Rxq.js → render-Cd4frZ2U.js} +3 -3
  162. package/public/dist/assets/{requirementDiagram-4Y6WPE33-CrApoE_l.js → requirementDiagram-IS5BZ75X-DsPApdKv.js} +3 -3
  163. package/public/dist/assets/{sankeyDiagram-5OEKKPKP-Df1lU-mT.js → sankeyDiagram-P5KCCOFB-Im52Eou9.js} +3 -3
  164. package/public/dist/assets/{sequenceDiagram-3UESZ5HK-CelQN5jY.js → sequenceDiagram-WJ2MYXX4-BChOR6yh.js} +3 -3
  165. package/public/dist/assets/{settings-dDNt6x3f.js → settings-a0blK1fr.js} +1 -1
  166. package/public/dist/assets/{settings-core-DQCWldQD.js → settings-core-C5qo8giT.js} +1 -1
  167. package/public/dist/assets/settings-core-Cm-CmVLA.js +1 -0
  168. package/public/dist/assets/settings-mbGEtP5B.js +1 -0
  169. package/public/dist/assets/{sidebar-BDAnwLnk.js → sidebar-FbI4udzs.js} +4 -4
  170. package/public/dist/assets/sizeCapture-INFHLROL-D9Rpk-aA.js +1 -0
  171. package/public/dist/assets/{skills-BNbUv5Ty.js → skills-DeG9lWF2.js} +1 -1
  172. package/public/dist/assets/skills-G8KUeHBV.js +1 -0
  173. package/public/dist/assets/slash-commands-BYv3yboz.js +1 -0
  174. package/public/dist/assets/{slash-commands-BP2nZDmp.js → slash-commands-FoQuZXga.js} +1 -1
  175. package/public/dist/assets/stateDiagram-XQSTLZYL-B5CxGVqv.js +1 -0
  176. package/public/dist/assets/stateDiagram-v2-IH3M54BS-BmdRqxzy.js +1 -0
  177. package/public/dist/assets/swimlanes-V6O3JKXN-Ckem4dQh.js +1 -0
  178. package/public/dist/assets/swimlanesDiagram-JKAHXJPX-DW_0PiOk.js +8 -0
  179. package/public/dist/assets/{timeline-definition-PNZ67QCA-DP0lPzQ_.js → timeline-definition-24CTP7MA-CJRsjFnd.js} +2 -2
  180. package/public/dist/assets/{trace-drawer-CT83NUo4.js → trace-drawer-CWs8ydMO.js} +1 -1
  181. package/public/dist/assets/treeView-Q6P3EWNA-ChnMvz2a.js +1 -0
  182. package/public/dist/assets/treemap-WGGIJYW6-DZJ4jE42.js +1 -0
  183. package/public/dist/assets/{ui-NdMDA7kW.js → ui-Cd8etFwN.js} +2 -2
  184. package/public/dist/assets/ui-yrn3s72A.js +1 -0
  185. package/public/dist/assets/vendor-render-BpGO1zp3.js +383 -0
  186. package/public/dist/assets/vendor-render-kIxHrxDV.css +1 -0
  187. package/public/dist/assets/{vendor-utils-BK07iQND.js → vendor-utils-BUFU5ypz.js} +1 -1
  188. package/public/dist/assets/vennDiagram-4TSXK5OY-fVndHq7T.js +34 -0
  189. package/public/dist/assets/wardley-WFR3VGLG-CGM_JiX0.js +1 -0
  190. package/public/dist/assets/{wardleyDiagram-YWT4CUSO-CapVnCz5.js → wardleyDiagram-VM6X3IG4-CXIfS7ZF.js} +2 -2
  191. package/public/dist/assets/{wiki-link-resolver-N9fDy5zP.js → wiki-link-resolver-BGpGBLMp.js} +1 -1
  192. package/public/dist/assets/xychartDiagram-S5SC5T6Z-CqC-Uvuc.js +7 -0
  193. package/public/dist/index.html +2 -2
  194. package/public/dist/manager/index.html +2 -2
  195. package/scripts/audit-allowlist.json +81 -0
  196. package/scripts/check-deps-audit.ts +97 -0
  197. package/public/dist/assets/MarkdownRenderer-B6HbiZ6i.js +0 -1
  198. package/public/dist/assets/Permissions-ByUy_5DT.js +0 -1
  199. package/public/dist/assets/architecture-7EHR7CIX-Byg-B8Sh.js +0 -1
  200. package/public/dist/assets/architectureDiagram-3BPJPVTR-DA7niVYs.js +0 -36
  201. package/public/dist/assets/bgtask-badge-BjVnOXkr.js +0 -1
  202. package/public/dist/assets/blockDiagram-GPEHLZMM-czRsW1WP.js +0 -132
  203. package/public/dist/assets/c4Diagram-AAUBKEIU-zoRyRo1y.js +0 -10
  204. package/public/dist/assets/channel-Cr7Dmg2t.js +0 -1
  205. package/public/dist/assets/chunk-2J33WTMH-DMaZjiDe.js +0 -1
  206. package/public/dist/assets/chunk-3OPIFGDE-fm0Uteda.js +0 -62
  207. package/public/dist/assets/chunk-4EGX6M5U-CYPeQu4F.js +0 -1
  208. package/public/dist/assets/chunk-55IACEB6-Dkm6BnqN.js +0 -1
  209. package/public/dist/assets/chunk-5DO6E6H7-CIcLA1n6.js +0 -1
  210. package/public/dist/assets/chunk-5ZQYHXKU-NjOvV6Nd.js +0 -2
  211. package/public/dist/assets/chunk-AGHRB4JF-Cdp9MZGh.js +0 -1
  212. package/public/dist/assets/chunk-AQP2D5EJ-2nFXTQ0W.js +0 -231
  213. package/public/dist/assets/chunk-BR22UD5L-BoyFFQuR.js +0 -1
  214. package/public/dist/assets/chunk-BSJP7CBP-B1MMwNrU.js +0 -1
  215. package/public/dist/assets/chunk-CSCIHK7Q-C0MOgWVt.js +0 -123
  216. package/public/dist/assets/chunk-FHYWG6QK-CmUWtJPn.js +0 -1
  217. package/public/dist/assets/chunk-KSCS5N6A-B2XGqWQY.js +0 -10
  218. package/public/dist/assets/chunk-L5ZTLDWV-CfZ2hrJ2.js +0 -1
  219. package/public/dist/assets/chunk-LZXEDZCA-BXuFCBsZ.js +0 -2
  220. package/public/dist/assets/chunk-MPE355IW-BdSiU-oV.js +0 -1
  221. package/public/dist/assets/chunk-MZUSXYTE-VYfI8Uwx.js +0 -1
  222. package/public/dist/assets/chunk-NNHCCRGN-ChI2WAS0.js +0 -159
  223. package/public/dist/assets/chunk-NZK2D7GU-CkYWftT8.js +0 -1
  224. package/public/dist/assets/chunk-O5CBEL6O-B5g0NbhD.js +0 -11
  225. package/public/dist/assets/chunk-PUPMXCY4-DJKmByz8.js +0 -1
  226. package/public/dist/assets/chunk-QZHKN3VN-C6ktI6EQ.js +0 -1
  227. package/public/dist/assets/chunk-UIBZB4QT-DgLbPJ3_.js +0 -1
  228. package/public/dist/assets/chunk-WCWK7LTN-DWxi0w0a.js +0 -1
  229. package/public/dist/assets/chunk-WU5MYG2G-Cwe6QZ3_.js +0 -1
  230. package/public/dist/assets/chunk-XPW4576I-CaTDAC52.js +0 -32
  231. package/public/dist/assets/classDiagram-4FO5ZUOK-BzLBk9sv.js +0 -1
  232. package/public/dist/assets/classDiagram-v2-Q7XG4LA2-9K8wUz3g.js +0 -1
  233. package/public/dist/assets/cose-bilkent-S5V4N54A-B9Tcz6qW.js +0 -1
  234. package/public/dist/assets/cytoscape.esm-PBXWcYR1.js +0 -321
  235. package/public/dist/assets/dagre-BM42HDAG-OH37BMnf.js +0 -4
  236. package/public/dist/assets/dagre-BsKKQnyU.js +0 -1
  237. package/public/dist/assets/diagram-2AECGRRQ-B1t73Wn1.js +0 -43
  238. package/public/dist/assets/diagram-5GNKFQAL-DBGIcSxH.js +0 -10
  239. package/public/dist/assets/diagram-LMA3HP47-XMEHnr3B.js +0 -24
  240. package/public/dist/assets/diagram-OG6HWLK6-B_vRUJSJ.js +0 -24
  241. package/public/dist/assets/erDiagram-TEJ5UH35-CTHxg4ER.js +0 -85
  242. package/public/dist/assets/eventmodeling-FCH6USID-LckY84Wp.js +0 -1
  243. package/public/dist/assets/flowDiagram-I6XJVG4X-DgCs6PPU.js +0 -162
  244. package/public/dist/assets/ganttDiagram-6RSMTGT7-DGjdFJRc.js +0 -292
  245. package/public/dist/assets/gitGraph-WXDBUCRP-DXhEIZXY.js +0 -1
  246. package/public/dist/assets/gitGraphDiagram-PVQCEYII-DvCWiClL.js +0 -106
  247. package/public/dist/assets/iframe-renderer-CRPZFtWm.js +0 -1
  248. package/public/dist/assets/info-J43DQDTF-iXM3vzuR.js +0 -1
  249. package/public/dist/assets/infoDiagram-5YYISTIA-DxkbyTf_.js +0 -2
  250. package/public/dist/assets/katex-BT6jmGul.js +0 -1
  251. package/public/dist/assets/memory-h1JXRpv9.js +0 -1
  252. package/public/dist/assets/mermaid-loader-CylkLQP5.js +0 -1
  253. package/public/dist/assets/mermaid-parser.core-C-9KB617.js +0 -3
  254. package/public/dist/assets/mermaid.core-8XY13b72.js +0 -9
  255. package/public/dist/assets/mermaid.core-BEuf6y5_.js +0 -1
  256. package/public/dist/assets/message-history-BWh1dvBM.js +0 -1
  257. package/public/dist/assets/packet-YPE3B663-SclsNpNx.js +0 -1
  258. package/public/dist/assets/pie-LRSECV5Y-CF43gDO6.js +0 -1
  259. package/public/dist/assets/pieDiagram-4H26LBE5-ChOXpmZ5.js +0 -30
  260. package/public/dist/assets/radar-GUYGQ44K-BsylzLX_.js +0 -1
  261. package/public/dist/assets/settings-C2zm9EZp.js +0 -1
  262. package/public/dist/assets/settings-core-D72OTH7d.js +0 -1
  263. package/public/dist/assets/skills-DmzEkIbU.js +0 -1
  264. package/public/dist/assets/slash-commands-XwCb5ACm.js +0 -1
  265. package/public/dist/assets/stateDiagram-AJRCARHV-CeyXWXrg.js +0 -1
  266. package/public/dist/assets/stateDiagram-v2-BHNVJYJU-Bhb8zTjh.js +0 -1
  267. package/public/dist/assets/treeView-BLDUP644-DHq0vQpf.js +0 -1
  268. package/public/dist/assets/treemap-LRROVOQU-vKngXIla.js +0 -1
  269. package/public/dist/assets/ui-BVvHzdHI.js +0 -1
  270. package/public/dist/assets/vendor-render-Bjnw0wQ6.css +0 -1
  271. package/public/dist/assets/vendor-render-DCb9B75Q.js +0 -383
  272. package/public/dist/assets/vennDiagram-CIIHVFJN-WB9mzv1f.js +0 -34
  273. package/public/dist/assets/wardley-L42UT6IY-B1jQOSA5.js +0 -1
  274. package/public/dist/assets/xychartDiagram-2RQKCTM6-DduDB3Cd.js +0 -7
  275. /package/public/dist/assets/{BrowserPanel-C0aa2gja.js → BrowserPanel-CsYKexNf.js} +0 -0
  276. /package/public/dist/assets/{DashboardEmbeddingSection-DiqlLiLj.js → DashboardEmbeddingSection-CIOwsVB5.js} +0 -0
  277. /package/public/dist/assets/{DesignPanel-B8CAf6sH.js → DesignPanel-SuUOoyQN.js} +0 -0
  278. /package/public/dist/assets/{DiffPanel-BTZRq6eG.js → DiffPanel-ZaDoV7qS.js} +0 -0
  279. /package/public/dist/assets/{FolderPanel-D0w_zD66.js → FolderPanel-BkggPdTP.js} +0 -0
  280. /package/public/dist/assets/{HealthBadge-CiNMS-1k.js → HealthBadge-D7BQ-LHD.js} +0 -0
  281. /package/public/dist/assets/{InlineWarn-D-fmcQXD.js → InlineWarn-B3bJfG-Z.js} +0 -0
  282. /package/public/dist/assets/{TerminalPanel-DlUFPyzc.js → TerminalPanel-gXH7bTXQ.js} +0 -0
  283. /package/public/dist/assets/{agent-meta-DrYdO9lB.js → agent-meta-_Idad3qq.js} +0 -0
  284. /package/public/dist/assets/{dist-CuL30i1H.js → dist-CX7KjpF3.js} +0 -0
  285. /package/public/dist/assets/{dist-BbhtVnRz.js → dist-uSfGXqs6.js} +0 -0
  286. /package/public/dist/assets/{fields-BwOMlwS0.js → fields-E1L8aEhU.js} +0 -0
  287. /package/public/dist/assets/{page-shell-GpE8A-FA.js → page-shell-DZ1lls_P.js} +0 -0
  288. /package/public/dist/assets/{path-utils-CHwADH-r.js → path-utils-QbjARuCC.js} +0 -0
  289. /package/public/dist/assets/{rough.esm-DeGVhNS9.js → rough.esm-DQG0wzX4.js} +0 -0
@@ -1 +1 @@
1
- function e(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function t(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function n(n){let i,a,o;n.length===2?(i=n===e||n===t?n:r,a=n,o=n):(i=e,a=(t,r)=>e(n(t),r),o=(e,t)=>n(e)-t);function s(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<0?n=i+1:r=i}while(n<r)}return n}function c(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<=0?n=i+1:r=i}while(n<r)}return n}function l(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i}return{left:s,center:l,right:c}}function r(){return 0}function i(e){return e===null?NaN:+e}var a=n(e),o=a.right;a.left,n(i).center;var s=class extends Map{constructor(e,t=d){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(c(this,e))}has(e){return super.has(c(this,e))}set(e,t){return super.set(l(this,e),t)}delete(e){return super.delete(u(this,e))}};function c({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function l({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function u({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function d(e){return typeof e==`object`&&e?e.valueOf():e}var f=Math.sqrt(50),p=Math.sqrt(10),m=Math.sqrt(2);function h(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=f?10:a>=p?5:a>=m?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?h(e,t,n*2):[s,c,l]}function g(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?h(t,e,n):h(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function _(e,t,n){return t=+t,e=+e,n=+n,h(e,t,n)[2]}function v(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?_(t,e,n):_(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function y(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function b(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function x(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function S(e){return e}var C=1,w=2,T=3,E=4,D=1e-6;function O(e){return`translate(`+e+`,0)`}function k(e){return`translate(0,`+e+`)`}function ee(e){return t=>+e(t)}function te(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function ne(){return!this.__axis}function A(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===C||e===E?-1:1,u=e===E||e===w?`x`:`y`,d=e===C||e===T?O:k;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):S),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?te:ee)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),O=b.selectAll(`.tick`).data(p,t).order(),k=O.exit(),A=O.enter().append(`g`).attr(`class`,`tick`),j=O.select(`line`),M=O.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),O=O.merge(A),j=j.merge(A.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),M=M.merge(A.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===C?`0em`:e===T?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),O=O.transition(f),j=j.transition(f),M=M.transition(f),k=k.transition(f).attr(`opacity`,D).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),A.attr(`opacity`,D).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),k.remove(),x.attr(`d`,e===E||e===w?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),O.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),j.attr(u+`2`,l*a),M.attr(u,l*h).text(m),b.filter(ne).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===w?`start`:e===E?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function j(e){return A(C,e)}function M(e){return A(T,e)}var re={value:()=>{}};function ie(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new ae(n)}function ae(e){this._=e}function oe(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}ae.prototype=ie.prototype={constructor:ae,on:function(e,t){var n=this._,r=oe(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=N(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=se(n[i],e.name,t);else if(t==null)for(i in n)n[i]=se(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ae(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function N(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function se(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=re,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ce={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function le(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),ce.hasOwnProperty(t)?{space:ce[t],local:e}:e}function ue(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function de(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function fe(e){var t=le(e);return(t.local?de:ue)(t)}function pe(){}function me(e){return e==null?pe:function(){return this.querySelector(e)}}function he(e){typeof e!=`function`&&(e=me(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new P(r,this._parents)}function ge(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function _e(){return[]}function ve(e){return e==null?_e:function(){return this.querySelectorAll(e)}}function ye(e){return function(){return ge(e.apply(this,arguments))}}function be(e){e=typeof e==`function`?ye(e):ve(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new P(r,i)}function xe(e){return function(){return this.matches(e)}}function Se(e){return function(t){return t.matches(e)}}var Ce=Array.prototype.find;function we(e){return function(){return Ce.call(this.children,e)}}function Te(){return this.firstElementChild}function Ee(e){return this.select(e==null?Te:we(typeof e==`function`?e:Se(e)))}var De=Array.prototype.filter;function Oe(){return Array.from(this.children)}function ke(e){return function(){return De.call(this.children,e)}}function Ae(e){return this.selectAll(e==null?Oe:ke(typeof e==`function`?e:Se(e)))}function je(e){typeof e!=`function`&&(e=xe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new P(r,this._parents)}function Me(e){return Array(e.length)}function Ne(){return new P(this._enter||this._groups.map(Me),this._parents)}function Pe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Pe.prototype={constructor:Pe,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fe(e){return function(){return e}}function Ie(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Pe(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Le(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Pe(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Re(e){return e.__data__}function ze(e,t){if(!arguments.length)return Array.from(this,Re);var n=t?Le:Ie,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Fe(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Be(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new P(o,r),o._enter=s,o._exit=c,o}function Be(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Ve(){return new P(this._exit||this._groups.map(Me),this._parents)}function He(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ue(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new P(s,this._parents)}function We(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Ge(e){e||=Ke;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new P(i,this._parents).order()}function Ke(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function qe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Je(){return Array.from(this)}function Ye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Xe(){let e=0;for(let t of this)++e;return e}function Ze(){return!this.node()}function Qe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function $e(e){return function(){this.removeAttribute(e)}}function et(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tt(e,t){return function(){this.setAttribute(e,t)}}function nt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function it(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function at(e,t){var n=le(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?et:$e:typeof t==`function`?n.local?it:rt:n.local?nt:tt)(n,t))}function ot(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function st(e){return function(){this.style.removeProperty(e)}}function ct(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ut(e,t,n){return arguments.length>1?this.each((t==null?st:typeof t==`function`?lt:ct)(e,t,n??``)):dt(this.node(),e)}function dt(e,t){return e.style.getPropertyValue(t)||ot(e).getComputedStyle(e,null).getPropertyValue(t)}function ft(e){return function(){delete this[e]}}function pt(e,t){return function(){this[e]=t}}function mt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function ht(e,t){return arguments.length>1?this.each((t==null?ft:typeof t==`function`?mt:pt)(e,t)):this.node()[e]}function gt(e){return e.trim().split(/^|\s+/)}function _t(e){return e.classList||new vt(e)}function vt(e){this._node=e,this._names=gt(e.getAttribute(`class`)||``)}vt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function yt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function bt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function xt(e){return function(){yt(this,e)}}function St(e){return function(){bt(this,e)}}function Ct(e,t){return function(){(t.apply(this,arguments)?yt:bt)(this,e)}}function wt(e,t){var n=gt(e+``);if(arguments.length<2){for(var r=_t(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Ct:t?xt:St)(n,t))}function Tt(){this.textContent=``}function Et(e){return function(){this.textContent=e}}function Dt(e){return function(){this.textContent=e.apply(this,arguments)??``}}function Ot(e){return arguments.length?this.each(e==null?Tt:(typeof e==`function`?Dt:Et)(e)):this.node().textContent}function kt(){this.innerHTML=``}function At(e){return function(){this.innerHTML=e}}function jt(e){return function(){this.innerHTML=e.apply(this,arguments)??``}}function Mt(e){return arguments.length?this.each(e==null?kt:(typeof e==`function`?jt:At)(e)):this.node().innerHTML}function Nt(){this.nextSibling&&this.parentNode.appendChild(this)}function Pt(){return this.each(Nt)}function Ft(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function It(){return this.each(Ft)}function Lt(e){var t=typeof e==`function`?e:fe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Rt(){return null}function zt(e,t){var n=typeof e==`function`?e:fe(e),r=t==null?Rt:typeof t==`function`?t:me(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Bt(){var e=this.parentNode;e&&e.removeChild(this)}function Vt(){return this.each(Bt)}function Ht(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ut(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wt(e){return this.select(e?Ut:Ht)}function Gt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Kt(e){return function(t){e.call(this,t,this.__data__)}}function qt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Jt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Yt(e,t,n){return function(){var r=this.__on,i,a=Kt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Xt(e,t,n){var r=qt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Yt:Jt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Zt(e,t,n){var r=ot(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Qt(e,t){return function(){return Zt(this,e,t)}}function $t(e,t){return function(){return Zt(this,e,t.apply(this,arguments))}}function en(e,t){return this.each((typeof t==`function`?$t:Qt)(e,t))}function*tn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var nn=[null];function P(e,t){this._groups=e,this._parents=t}function rn(){return new P([[document.documentElement]],nn)}function an(){return this}P.prototype=rn.prototype={constructor:P,select:he,selectAll:be,selectChild:Ee,selectChildren:Ae,filter:je,data:ze,enter:Ne,exit:Ve,join:He,merge:Ue,selection:an,order:We,sort:Ge,call:qe,nodes:Je,node:Ye,size:Xe,empty:Ze,each:Qe,attr:at,style:ut,property:ht,classed:wt,text:Ot,html:Mt,raise:Pt,lower:It,append:Lt,insert:zt,remove:Vt,clone:Wt,datum:Gt,on:Xt,dispatch:en,[Symbol.iterator]:tn};function on(e){return typeof e==`string`?new P([[document.querySelector(e)]],[document.documentElement]):new P([[e]],nn)}function sn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function cn(e,t){if(e=sn(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var ln={passive:!1},un={capture:!0,passive:!1};function dn(e){e.stopImmediatePropagation()}function fn(e){e.preventDefault(),e.stopImmediatePropagation()}function pn(e){var t=e.document.documentElement,n=on(e).on(`dragstart.drag`,fn,un);`onselectstart`in t?n.on(`selectstart.drag`,fn,un):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function mn(e,t){var n=e.document.documentElement,r=on(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,fn,un),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var hn=e=>()=>e;function gn(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}gn.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _n(e){return!e.ctrlKey&&!e.button}function vn(){return this.parentNode}function yn(e,t){return t??{x:e.x,y:e.y}}function bn(){return navigator.maxTouchPoints||`ontouchstart`in this}function xn(){var e=_n,t=vn,n=yn,r=bn,i={},a=ie(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,ln).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(on(n.view).on(`mousemove.drag`,m,un).on(`mouseup.drag`,h,un),pn(n.view),dn(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(fn(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){on(e.view).on(`mousemove.drag mouseup.drag`,null),mn(e.view,l),fn(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(dn(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(fn(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.length,r,a;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),r=0;r<n;++r)(a=i[t[r].identifier])&&(dn(e),a(`end`,e,t[r]))}function y(e,t,r,s,c,l){var u=a.copy(),d=cn(l||r,t),p,m,h;if((h=n.call(e,new gn(`beforestart`,{sourceEvent:r,target:f,identifier:c,active:o,x:d[0],y:d[1],dx:0,dy:0,dispatch:u}),s))!=null)return p=h.x-d[0]||0,m=h.y-d[1]||0,function n(r,a,l){var g=d,_;switch(r){case`start`:i[c]=n,_=o++;break;case`end`:delete i[c],--o;case`drag`:d=cn(l||a,t),_=o;break}u.call(r,e,new gn(r,{sourceEvent:a,subject:h,target:f,identifier:c,active:_,x:d[0]+p,y:d[1]+m,dx:d[0]-g[0],dy:d[1]-g[1],dispatch:u}),s)}}return f.filter=function(t){return arguments.length?(e=typeof t==`function`?t:hn(!!t),f):e},f.container=function(e){return arguments.length?(t=typeof e==`function`?e:hn(e),f):t},f.subject=function(e){return arguments.length?(n=typeof e==`function`?e:hn(e),f):n},f.touchable=function(e){return arguments.length?(r=typeof e==`function`?e:hn(!!e),f):r},f.on=function(){var e=a.on.apply(a,arguments);return e===a?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}function Sn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Cn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function wn(){}var Tn=.7,En=1/Tn,Dn=`\\s*([+-]?\\d+)\\s*`,On=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,kn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,An=/^#([0-9a-f]{3,8})$/,jn=RegExp(`^rgb\\(${Dn},${Dn},${Dn}\\)$`),Mn=RegExp(`^rgb\\(${kn},${kn},${kn}\\)$`),Nn=RegExp(`^rgba\\(${Dn},${Dn},${Dn},${On}\\)$`),Pn=RegExp(`^rgba\\(${kn},${kn},${kn},${On}\\)$`),Fn=RegExp(`^hsl\\(${On},${kn},${kn}\\)$`),In=RegExp(`^hsla\\(${On},${kn},${kn},${On}\\)$`),Ln={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Sn(wn,Hn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rn,formatHex:Rn,formatHex8:zn,formatHsl:Bn,formatRgb:Vn,toString:Vn});function Rn(){return this.rgb().formatHex()}function zn(){return this.rgb().formatHex8()}function Bn(){return er(this).formatHsl()}function Vn(){return this.rgb().formatRgb()}function Hn(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=An.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Un(t):n===3?new F(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Wn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Wn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=jn.exec(e))?new F(t[1],t[2],t[3],1):(t=Mn.exec(e))?new F(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Nn.exec(e))?Wn(t[1],t[2],t[3],t[4]):(t=Pn.exec(e))?Wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fn.exec(e))?$n(t[1],t[2]/100,t[3]/100,1):(t=In.exec(e))?$n(t[1],t[2]/100,t[3]/100,t[4]):Ln.hasOwnProperty(e)?Un(Ln[e]):e===`transparent`?new F(NaN,NaN,NaN,0):null}function Un(e){return new F(e>>16&255,e>>8&255,e&255,1)}function Wn(e,t,n,r){return r<=0&&(e=t=n=NaN),new F(e,t,n,r)}function Gn(e){return e instanceof wn||(e=Hn(e)),e?(e=e.rgb(),new F(e.r,e.g,e.b,e.opacity)):new F}function Kn(e,t,n,r){return arguments.length===1?Gn(e):new F(e,t,n,r??1)}function F(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Sn(F,Kn,Cn(wn,{brighter(e){return e=e==null?En:En**+e,new F(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tn:Tn**+e,new F(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new F(Zn(this.r),Zn(this.g),Zn(this.b),Xn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qn,formatHex:qn,formatHex8:Jn,formatRgb:Yn,toString:Yn}));function qn(){return`#${Qn(this.r)}${Qn(this.g)}${Qn(this.b)}`}function Jn(){return`#${Qn(this.r)}${Qn(this.g)}${Qn(this.b)}${Qn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yn(){let e=Xn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Zn(this.r)}, ${Zn(this.g)}, ${Zn(this.b)}${e===1?`)`:`, ${e})`}`}function Xn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qn(e){return e=Zn(e),(e<16?`0`:``)+e.toString(16)}function $n(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function er(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof wn||(e=Hn(e)),!e)return new I;if(e instanceof I)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new I(o,s,c,e.opacity)}function tr(e,t,n,r){return arguments.length===1?er(e):new I(e,t,n,r??1)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Sn(I,tr,Cn(wn,{brighter(e){return e=e==null?En:En**+e,new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tn:Tn**+e,new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new F(ir(e>=240?e-240:e+120,i,r),ir(e,i,r),ir(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(nr(this.h),rr(this.s),rr(this.l),Xn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Xn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${nr(this.h)}, ${rr(this.s)*100}%, ${rr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function nr(e){return e=(e||0)%360,e<0?e+360:e}function rr(e){return Math.max(0,Math.min(1,e||0))}function ir(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var ar=Math.PI/180,or=180/Math.PI,sr=18,cr=.96422,lr=1,ur=.82521,dr=4/29,fr=6/29,pr=3*fr*fr,mr=fr*fr*fr;function hr(e){if(e instanceof _r)return new _r(e.l,e.a,e.b,e.opacity);if(e instanceof wr)return Tr(e);e instanceof F||(e=Gn(e));var t=xr(e.r),n=xr(e.g),r=xr(e.b),i=vr((.2225045*t+.7168786*n+.0606169*r)/lr),a,o;return t===n&&n===r?a=o=i:(a=vr((.4360747*t+.3850649*n+.1430804*r)/cr),o=vr((.0139322*t+.0971045*n+.7141733*r)/ur)),new _r(116*i-16,500*(a-i),200*(i-o),e.opacity)}function gr(e,t,n,r){return arguments.length===1?hr(e):new _r(e,t,n,r??1)}function _r(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Sn(_r,gr,Cn(wn,{brighter(e){return new _r(this.l+sr*(e??1),this.a,this.b,this.opacity)},darker(e){return new _r(this.l-sr*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=cr*yr(t),e=lr*yr(e),n=ur*yr(n),new F(br(3.1338561*t-1.6168667*e-.4906146*n),br(-.9787684*t+1.9161415*e+.033454*n),br(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function vr(e){return e>mr?e**(1/3):e/pr+dr}function yr(e){return e>fr?e*e*e:pr*(e-dr)}function br(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function xr(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Sr(e){if(e instanceof wr)return new wr(e.h,e.c,e.l,e.opacity);if(e instanceof _r||(e=hr(e)),e.a===0&&e.b===0)return new wr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*or;return new wr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Cr(e,t,n,r){return arguments.length===1?Sr(e):new wr(e,t,n,r??1)}function wr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Tr(e){if(isNaN(e.h))return new _r(e.l,0,0,e.opacity);var t=e.h*ar;return new _r(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Sn(wr,Cr,Cn(wn,{brighter(e){return new wr(this.h,this.c,this.l+sr*(e??1),this.opacity)},darker(e){return new wr(this.h,this.c,this.l-sr*(e??1),this.opacity)},rgb(){return Tr(this).rgb()}}));var Er=e=>()=>e;function Dr(e,t){return function(n){return e+n*t}}function Or(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function kr(e,t){var n=t-e;return n?Dr(e,n>180||n<-180?n-360*Math.round(n/360):n):Er(isNaN(e)?t:e)}function Ar(e){return(e=+e)==1?jr:function(t,n){return n-t?Or(t,n,e):Er(isNaN(t)?n:t)}}function jr(e,t){var n=t-e;return n?Dr(e,n):Er(isNaN(e)?t:e)}var Mr=(function e(t){var n=Ar(t);function r(e,t){var r=n((e=Kn(e)).r,(t=Kn(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=jr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Nr(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Pr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Fr(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=Ur(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Ir(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function L(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Lr(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Ur(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Rr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zr=new RegExp(Rr.source,`g`);function Br(e){return function(){return e}}function Vr(e){return function(t){return e(t)+``}}function Hr(e,t){var n=Rr.lastIndex=zr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Rr.exec(e))&&(i=zr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:L(r,i)})),n=zr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Vr(c[0].x):Br(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function Ur(e,t){var n=typeof t,r;return t==null||n===`boolean`?Er(t):(n===`number`?L:n===`string`?(r=Hn(t))?(t=r,Mr):Hr:t instanceof Hn?Mr:t instanceof Date?Ir:Pr(t)?Nr:Array.isArray(t)?Fr:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Lr:L)(e,t)}function Wr(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Gr=180/Math.PI,Kr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qr(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Gr,skewX:Math.atan(c)*Gr,scaleX:o,scaleY:s}}var Jr;function Yr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Kr:qr(t.a,t.b,t.c,t.d,t.e,t.f)}function Xr(e){return e==null||(Jr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Jr.setAttribute(`transform`,e),!(e=Jr.transform.baseVal.consolidate()))?Kr:(e=e.matrix,qr(e.a,e.b,e.c,e.d,e.e,e.f))}function Zr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:L(e,i)},{i:c-2,x:L(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:L(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:L(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:L(e,n)},{i:s-2,x:L(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Qr=Zr(Yr,`px, `,`px)`,`deg)`),$r=Zr(Xr,`, `,`)`,`)`),ei=1e-12;function ti(e){return((e=Math.exp(e))+1/e)/2}function ni(e){return((e=Math.exp(e))-1/e)/2}function ri(e){return((e=Math.exp(2*e))-1)/(e+1)}var ii=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<ei)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=ti(y),c=s/(n*g)*(i*ri(t*r+y)-ni(y));return[a+c*d,o+c*f,s*i/ti(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4);function ai(e){return function(t,n){var r=e((t=Cr(t)).h,(n=Cr(n)).h),i=jr(t.c,n.c),a=jr(t.l,n.l),o=jr(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var oi=ai(kr),si=0,ci=0,li=0,ui=1e3,di,fi,pi=0,mi=0,hi=0,gi=typeof performance==`object`&&performance.now?performance:Date,_i=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function vi(){return mi||=(_i(yi),gi.now()+hi)}function yi(){mi=0}function bi(){this._call=this._time=this._next=null}bi.prototype=xi.prototype={constructor:bi,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?vi():+n)+(t==null?0:+t),!this._next&&fi!==this&&(fi?fi._next=this:di=this,fi=this),this._call=e,this._time=n,Ei()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ei())}};function xi(e,t,n){var r=new bi;return r.restart(e,t,n),r}function Si(){vi(),++si;for(var e=di,t;e;)(t=mi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--si}function Ci(){mi=(pi=gi.now())+hi,si=ci=0;try{Si()}finally{si=0,Ti(),mi=0}}function wi(){var e=gi.now(),t=e-pi;t>ui&&(hi-=t,pi=e)}function Ti(){for(var e,t=di,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:di=n);fi=e,Ei(r)}function Ei(e){si||(ci&&=clearTimeout(ci),e-mi>24?(e<1/0&&(ci=setTimeout(Ci,e-gi.now()-hi)),li&&=clearInterval(li)):(li||=(pi=gi.now(),setInterval(wi,ui)),si=1,_i(Ci)))}function Di(e,t,n){var r=new bi;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Oi=ie(`start`,`end`,`cancel`,`interrupt`),ki=[];function Ai(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Ni(e,n,{name:t,index:r,group:i,on:Oi,tween:ki,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function ji(e,t){var n=R(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Mi(e,t){var n=R(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function R(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Ni(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=xi(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Di(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Di(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Pi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Fi(e){return this.each(function(){Pi(this,e)})}function Ii(e,t){var n,r;return function(){var i=Mi(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Li(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Mi(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ri(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=R(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ii:Li)(n,e,t))}function zi(e,t,n){var r=e._id;return e.each(function(){var e=Mi(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return R(e,r).value[t]}}function Bi(e,t){var n;return(typeof t==`number`?L:t instanceof Hn?Mr:(n=Hn(t))?(t=n,Mr):Hr)(e,t)}function Vi(e){return function(){this.removeAttribute(e)}}function Hi(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ui(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Wi(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Gi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ki(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function qi(e,t){var n=le(e),r=n===`transform`?$r:Bi;return this.attrTween(e,typeof t==`function`?(n.local?Ki:Gi)(n,r,zi(this,`attr.`+e,t)):t==null?(n.local?Hi:Vi)(n):(n.local?Wi:Ui)(n,r,t))}function Ji(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Yi(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Xi(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Yi(e,i)),n}return i._value=t,i}function Zi(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ji(e,i)),n}return i._value=t,i}function Qi(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=le(e);return this.tween(n,(r.local?Xi:Zi)(r,t))}function $i(e,t){return function(){ji(this,e).delay=+t.apply(this,arguments)}}function ea(e,t){return t=+t,function(){ji(this,e).delay=t}}function ta(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?$i:ea)(t,e)):R(this.node(),t).delay}function na(e,t){return function(){Mi(this,e).duration=+t.apply(this,arguments)}}function ra(e,t){return t=+t,function(){Mi(this,e).duration=t}}function ia(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?na:ra)(t,e)):R(this.node(),t).duration}function aa(e,t){if(typeof t!=`function`)throw Error();return function(){Mi(this,e).ease=t}}function oa(e){var t=this._id;return arguments.length?this.each(aa(t,e)):R(this.node(),t).ease}function sa(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Mi(this,e).ease=n}}function ca(e){if(typeof e!=`function`)throw Error();return this.each(sa(this._id,e))}function la(e){typeof e!=`function`&&(e=xe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Ra(r,this._parents,this._name,this._id)}function ua(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Ra(o,this._parents,this._name,this._id)}function da(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function fa(e,t,n){var r,i,a=da(t)?ji:Mi;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function pa(e,t){var n=this._id;return arguments.length<2?R(this.node(),n).on.on(e):this.each(fa(n,e,t))}function ma(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ha(){return this.on(`end.remove`,ma(this._id))}function ga(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=me(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Ai(l[f],t,n,f,l,R(u,n)));return new Ra(a,this._parents,t,n)}function _a(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ve(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=R(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Ai(p,t,n,h,f,m);a.push(f),o.push(u)}return new Ra(a,o,t,n)}var va=rn.prototype.constructor;function ya(){return new va(this._groups,this._parents)}function ba(e,t){var n,r,i;return function(){var a=dt(this,e),o=(this.style.removeProperty(e),dt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function xa(e){return function(){this.style.removeProperty(e)}}function Sa(e,t,n){var r,i=n+``,a;return function(){var o=dt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ca(e,t,n){var r,i,a;return function(){var o=dt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),dt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function wa(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Mi(this,e),l=c.on,u=c.value[a]==null?s||=xa(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Ta(e,t,n){var r=(e+=``)==`transform`?Qr:Bi;return t==null?this.styleTween(e,ba(e,r)).on(`end.style.`+e,xa(e)):typeof t==`function`?this.styleTween(e,Ca(e,r,zi(this,`style.`+e,t))).each(wa(this._id,e)):this.styleTween(e,Sa(e,r,t),n).on(`end.style.`+e,null)}function Ea(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Da(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ea(e,a,n)),r}return a._value=t,a}function Oa(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Da(e,t,n??``))}function ka(e){return function(){this.textContent=e}}function Aa(e){return function(){this.textContent=e(this)??``}}function ja(e){return this.tween(`text`,typeof e==`function`?Aa(zi(this,`text`,e)):ka(e==null?``:e+``))}function Ma(e){return function(t){this.textContent=e.call(this,t)}}function Na(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ma(r)),t}return r._value=e,r}function Pa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Na(e))}function Fa(){for(var e=this._name,t=this._id,n=Ba(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=R(c,t);Ai(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ra(r,this._parents,e,n)}function Ia(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Mi(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var La=0;function Ra(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function za(e){return rn().transition(e)}function Ba(){return++La}var Va=rn.prototype;Ra.prototype=za.prototype={constructor:Ra,select:ga,selectAll:_a,selectChild:Va.selectChild,selectChildren:Va.selectChildren,filter:la,merge:ua,selection:ya,transition:Fa,call:Va.call,nodes:Va.nodes,node:Va.node,size:Va.size,empty:Va.empty,each:Va.each,on:pa,attr:qi,attrTween:Qi,style:Ta,styleTween:Oa,text:ja,textTween:Pa,remove:ha,tween:Ri,delay:ta,duration:ia,ease:oa,easeVarying:ca,end:Ia,[Symbol.iterator]:Va[Symbol.iterator]};function Ha(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Ua={time:null,delay:0,duration:250,ease:Ha};function Wa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Ga(e){var t,n;e instanceof Ra?(t=e._id,e=e._name):(t=Ba(),(n=Ua).time=vi(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Ai(c,e,t,l,o,n||Wa(c,t));return new Ra(r,this._parents,e,t)}rn.prototype.interrupt=Fi,rn.prototype.transition=Ga;var{abs:Ka,max:qa,min:Ja}=Math;[`w`,`e`].map(Ya),[`n`,`s`].map(Ya),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(Ya);function Ya(e){return{type:e}}var Xa=Math.PI,Za=2*Xa,Qa=1e-6,$a=Za-Qa;function eo(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function to(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return eo;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var no=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?eo:to(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Qa)if(!(Math.abs(u*s-c*l)>Qa)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Xa-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Qa&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Qa||Math.abs(this._y1-l)>Qa)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Za+Za),d>$a?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Qa&&this._append`A${n},${n},0,${+(d>=Xa)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function ro(){return new no}ro.prototype=no.prototype;function io(e,t){var n,r=1;e??=0,t??=0;function i(){var i,a=n.length,o,s=0,c=0;for(i=0;i<a;++i)o=n[i],s+=o.x,c+=o.y;for(s=(s/a-e)*r,c=(c/a-t)*r,i=0;i<a;++i)o=n[i],o.x-=s,o.y-=c}return i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.strength=function(e){return arguments.length?(r=+e,i):r},i}function ao(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return oo(this.cover(t,n),t,n,e)}function oo(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a=e._root,o={data:r},s=e._x0,c=e._y0,l=e._x1,u=e._y1,d,f,p,m,h,g,_,v;if(!a)return e._root=o,e;for(;a.length;)if((h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f,i=a,!(a=a[_=g<<1|h]))return i[_]=o,e;if(p=+e._x.call(null,a.data),m=+e._y.call(null,a.data),t===p&&n===m)return o.next=a,i?i[_]=o:e._root=o,e;do i=i?i[_]=[,,,,]:e._root=[,,,,],(h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f;while((_=g<<1|h)==(v=(m>=f)<<1|p>=d));return i[v]=a,i[_]=o,e}function so(e){var t,n,r=e.length,i,a,o=Array(r),s=Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(o[n]=i,s[n]=a,i<c&&(c=i),i>u&&(u=i),a<l&&(l=a),a>d&&(d=a));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),n=0;n<r;++n)oo(this,o[n],s[n],e[n]);return this}function co(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{for(var o=i-n||1,s=this._root,c,l;n>e||e>=i||r>t||t>=a;)switch(l=(t<r)<<1|e<n,c=[,,,,],c[l]=s,s=c,o*=2,l){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o;break}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function lo(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function uo(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function z(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function fo(e,t,n){var r,i=this._x0,a=this._y0,o,s,c,l,u=this._x1,d=this._y1,f=[],p=this._root,m,h;for(p&&f.push(new z(p,i,a,u,d)),n==null?n=1/0:(i=e-n,a=t-n,u=e+n,d=t+n,n*=n);m=f.pop();)if(!(!(p=m.node)||(o=m.x0)>u||(s=m.y0)>d||(c=m.x1)<i||(l=m.y1)<a))if(p.length){var g=(o+c)/2,_=(s+l)/2;f.push(new z(p[3],g,_,c,l),new z(p[2],o,_,g,l),new z(p[1],g,s,c,_),new z(p[0],o,s,g,_)),(h=(t>=_)<<1|e>=g)&&(m=f[f.length-1],f[f.length-1]=f[f.length-1-h],f[f.length-1-h]=m)}else{var v=e-+this._x.call(null,p.data),y=t-+this._y.call(null,p.data),b=v*v+y*y;if(b<n){var x=Math.sqrt(n=b);i=e-x,a=t-x,u=e+x,d=t+x,r=p.data}}return r}function po(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._y0,c=this._x1,l=this._y1,u,d,f,p,m,h,g,_;if(!n)return this;if(n.length)for(;;){if((m=u>=(f=(o+c)/2))?o=f:c=f,(h=d>=(p=(s+l)/2))?s=p:l=p,t=n,!(n=n[g=h<<1|m]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,_=g)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[g]=a:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[_]=n:this._root=n),this):(this._root=a,this)}function mo(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function ho(){return this._root}function go(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function _o(e){var t=[],n,r=this._root,i,a,o,s,c;for(r&&t.push(new z(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,s=n.x1,c=n.y1)&&r.length){var l=(a+s)/2,u=(o+c)/2;(i=r[3])&&t.push(new z(i,l,u,s,c)),(i=r[2])&&t.push(new z(i,a,u,l,c)),(i=r[1])&&t.push(new z(i,l,o,s,u)),(i=r[0])&&t.push(new z(i,a,o,l,u))}return this}function vo(e){var t=[],n=[],r;for(this._root&&t.push(new z(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,c=r.x1,l=r.y1,u=(o+c)/2,d=(s+l)/2;(a=i[0])&&t.push(new z(a,o,s,u,d)),(a=i[1])&&t.push(new z(a,u,s,c,d)),(a=i[2])&&t.push(new z(a,o,d,u,l)),(a=i[3])&&t.push(new z(a,u,d,c,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function yo(e){return e[0]}function bo(e){return arguments.length?(this._x=e,this):this._x}function xo(e){return e[1]}function So(e){return arguments.length?(this._y=e,this):this._y}function Co(e,t,n){var r=new wo(t??yo,n??xo,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function wo(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function To(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var B=Co.prototype=wo.prototype;B.copy=function(){var e=new wo(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=To(t),e;for(n=[{source:t,target:e._root=[,,,,]}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=[,,,,]}):t.target[i]=To(r));return e},B.add=ao,B.addAll=so,B.cover=co,B.data=lo,B.extent=uo,B.find=fo,B.remove=po,B.removeAll=mo,B.root=ho,B.size=go,B.visit=_o,B.visitAfter=vo,B.x=bo,B.y=So;function Eo(e){return function(){return e}}function Do(e){return(e()-.5)*1e-6}function Oo(e){return e.x+e.vx}function ko(e){return e.y+e.vy}function Ao(e){var t,n,r,i=1,a=1;typeof e!=`function`&&(e=Eo(e==null?1:+e));function o(){for(var e,o=t.length,c,l,u,d,f,p,m=0;m<a;++m)for(c=Co(t,Oo,ko).visitAfter(s),e=0;e<o;++e)l=t[e],f=n[l.index],p=f*f,u=l.x+l.vx,d=l.y+l.vy,c.visit(h);function h(e,t,n,a,o){var s=e.data,c=e.r,m=f+c;if(s){if(s.index>l.index){var h=u-s.x-s.vx,g=d-s.y-s.vy,_=h*h+g*g;_<m*m&&(h===0&&(h=Do(r),_+=h*h),g===0&&(g=Do(r),_+=g*g),_=(m-(_=Math.sqrt(_)))/_*i,l.vx+=(h*=_)*(m=(c*=c)/(p+c)),l.vy+=(g*=_)*m,s.vx-=h*(m=1-m),s.vy-=g*m)}return}return t>u+m||a<u-m||n>d+m||o<d-m}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function c(){if(t){var r,i=t.length,a;for(n=Array(i),r=0;r<i;++r)a=t[r],n[a.index]=+e(a,r,t)}}return o.initialize=function(e,n){t=e,r=n,c()},o.iterations=function(e){return arguments.length?(a=+e,o):a},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e=typeof t==`function`?t:Eo(+t),c(),o):e},o}function jo(e){return e.index}function Mo(e,t){var n=e.get(t);if(!n)throw Error(`node not found: `+t);return n}function No(e){var t=jo,n=d,r,i=Eo(30),a,o,s,c,l,u=1;e??=[];function d(e){return 1/Math.min(s[e.source.index],s[e.target.index])}function f(t){for(var n=0,i=e.length;n<u;++n)for(var o=0,s,d,f,p,m,h,g;o<i;++o)s=e[o],d=s.source,f=s.target,p=f.x+f.vx-d.x-d.vx||Do(l),m=f.y+f.vy-d.y-d.vy||Do(l),h=Math.sqrt(p*p+m*m),h=(h-a[o])/h*t*r[o],p*=h,m*=h,f.vx-=p*(g=c[o]),f.vy-=m*g,d.vx+=p*(g=1-g),d.vy+=m*g}function p(){if(o){var n,i=o.length,l=e.length,u=new Map(o.map((e,n)=>[t(e,n,o),e])),d;for(n=0,s=Array(i);n<l;++n)d=e[n],d.index=n,typeof d.source!=`object`&&(d.source=Mo(u,d.source)),typeof d.target!=`object`&&(d.target=Mo(u,d.target)),s[d.source.index]=(s[d.source.index]||0)+1,s[d.target.index]=(s[d.target.index]||0)+1;for(n=0,c=Array(l);n<l;++n)d=e[n],c[n]=s[d.source.index]/(s[d.source.index]+s[d.target.index]);r=Array(l),m(),a=Array(l),h()}}function m(){if(o)for(var t=0,i=e.length;t<i;++t)r[t]=+n(e[t],t,e)}function h(){if(o)for(var t=0,n=e.length;t<n;++t)a[t]=+i(e[t],t,e)}return f.initialize=function(e,t){o=e,l=t,p()},f.links=function(t){return arguments.length?(e=t,p(),f):e},f.id=function(e){return arguments.length?(t=e,f):t},f.iterations=function(e){return arguments.length?(u=+e,f):u},f.strength=function(e){return arguments.length?(n=typeof e==`function`?e:Eo(+e),m(),f):n},f.distance=function(e){return arguments.length?(i=typeof e==`function`?e:Eo(+e),h(),f):i},f}var Po=1664525,Fo=1013904223,Io=4294967296;function Lo(){let e=1;return()=>(e=(Po*e+Fo)%Io)/Io}function Ro(e){return e.x}function zo(e){return e.y}var Bo=10,Vo=Math.PI*(3-Math.sqrt(5));function Ho(e){var t,n=1,r=.001,i=1-r**(1/300),a=0,o=.6,s=new Map,c=xi(d),l=ie(`tick`,`end`),u=Lo();e??=[];function d(){f(),l.call(`tick`,t),n<r&&(c.stop(),l.call(`end`,t))}function f(r){var c,l=e.length,u;r===void 0&&(r=1);for(var d=0;d<r;++d)for(n+=(a-n)*i,s.forEach(function(e){e(n)}),c=0;c<l;++c)u=e[c],u.fx==null?u.x+=u.vx*=o:(u.x=u.fx,u.vx=0),u.fy==null?u.y+=u.vy*=o:(u.y=u.fy,u.vy=0);return t}function p(){for(var t=0,n=e.length,r;t<n;++t){if(r=e[t],r.index=t,r.fx!=null&&(r.x=r.fx),r.fy!=null&&(r.y=r.fy),isNaN(r.x)||isNaN(r.y)){var i=Bo*Math.sqrt(.5+t),a=t*Vo;r.x=i*Math.cos(a),r.y=i*Math.sin(a)}(isNaN(r.vx)||isNaN(r.vy))&&(r.vx=r.vy=0)}}function m(t){return t.initialize&&t.initialize(e,u),t}return p(),t={tick:f,restart:function(){return c.restart(d),t},stop:function(){return c.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),s.forEach(m),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(a=+e,t):a},velocityDecay:function(e){return arguments.length?(o=1-e,t):1-o},randomSource:function(e){return arguments.length?(u=e,s.forEach(m),t):u},force:function(e,n){return arguments.length>1?(n==null?s.delete(e):s.set(e,m(n)),t):s.get(e)},find:function(t,n,r){var i=0,a=e.length,o,s,c,l,u;for(r==null?r=1/0:r*=r,i=0;i<a;++i)l=e[i],o=t-l.x,s=n-l.y,c=o*o+s*s,c<r&&(u=l,r=c);return u},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}}function Uo(){var e,t,n,r,i=Eo(-30),a,o=1,s=1/0,c=.81;function l(n){var i,a=e.length,o=Co(e,Ro,zo).visitAfter(d);for(r=n,i=0;i<a;++i)t=e[i],o.visit(f)}function u(){if(e){var t,n=e.length,r;for(a=Array(n),t=0;t<n;++t)r=e[t],a[r.index]=+i(r,t,e)}}function d(e){var t=0,n,r,i=0,o,s,c;if(e.length){for(o=s=c=0;c<4;++c)(n=e[c])&&(r=Math.abs(n.value))&&(t+=n.value,i+=r,o+=r*n.x,s+=r*n.y);e.x=o/i,e.y=s/i}else{n=e,n.x=n.data.x,n.y=n.data.y;do t+=a[n.data.index];while(n=n.next)}e.value=t}function f(e,i,l,u){if(!e.value)return!0;var d=e.x-t.x,f=e.y-t.y,p=u-i,m=d*d+f*f;if(p*p/c<m)return m<s&&(d===0&&(d=Do(n),m+=d*d),f===0&&(f=Do(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)),t.vx+=d*e.value*r/m,t.vy+=f*e.value*r/m),!0;if(!(e.length||m>=s)){(e.data!==t||e.next)&&(d===0&&(d=Do(n),m+=d*d),f===0&&(f=Do(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)));do e.data!==t&&(p=a[e.data.index]*r/m,t.vx+=d*p,t.vy+=f*p);while(e=e.next)}}return l.initialize=function(t,r){e=t,n=r,u()},l.strength=function(e){return arguments.length?(i=typeof e==`function`?e:Eo(+e),u(),l):i},l.distanceMin=function(e){return arguments.length?(o=e*e,l):Math.sqrt(o)},l.distanceMax=function(e){return arguments.length?(s=e*e,l):Math.sqrt(s)},l.theta=function(e){return arguments.length?(c=e*e,l):Math.sqrt(c)},l}function Wo(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Go(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ko(e){return e=Go(Math.abs(e)),e?e[1]:NaN}function qo(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Jo(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Yo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xo(e){if(!(t=Yo.exec(e)))throw Error(`invalid format: `+e);var t;return new Zo({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Xo.prototype=Zo.prototype;function Zo(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}Zo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function Qo(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var $o;function es(e,t){var n=Go(e,t);if(!n)return $o=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-($o=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Go(e,Math.max(0,t+a-1))[0]}function ts(e,t){var n=Go(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var ns={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Wo,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ts(e*100,t),r:ts,s:es,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function rs(e){return e}var is=Array.prototype.map,as=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function os(e){var t=e.grouping===void 0||e.thousands===void 0?rs:qo(is.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?rs:Jo(is.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Xo(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):ns[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=ns[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=Qo(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&$o!==void 0?as[8+$o/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Ko(t)/3)))*3,r=10**-n,i=l((e=Xo(e),e.type=`f`,e),{suffix:as[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var ss,cs,ls;us({thousands:`,`,grouping:[3],currency:[`$`,``]});function us(e){return ss=os(e),cs=ss.format,ls=ss.formatPrefix,ss}function ds(e){return Math.max(0,-Ko(Math.abs(e)))}function fs(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ko(t)/3)))*3-Ko(Math.abs(e)))}function ps(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ko(t)-Ko(e))+1}function ms(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function hs(){return this.eachAfter(ms)}function gs(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function _s(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function vs(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function ys(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function bs(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function xs(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Ss(e){for(var t=this,n=Cs(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Cs(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function ws(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Ts(){return Array.from(this)}function Es(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Ds(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Os(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function ks(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Ms)):t===void 0&&(t=js);for(var n=new Fs(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new Fs(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Ps)}function As(){return ks(this).eachBefore(Ns)}function js(e){return e.children}function Ms(e){return Array.isArray(e)?e[1]:null}function Ns(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ps(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Fs(e){this.data=e,this.depth=this.height=0,this.parent=null}Fs.prototype=ks.prototype={constructor:Fs,count:hs,each:gs,eachAfter:vs,eachBefore:_s,find:ys,sum:bs,sort:xs,path:Ss,ancestors:ws,descendants:Ts,leaves:Es,links:Ds,copy:As,[Symbol.iterator]:Os};function Is(e){if(typeof e!=`function`)throw Error();return e}function Ls(){return 0}function Rs(e){return function(){return e}}function zs(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Bs(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function Vs(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var Hs=(1+Math.sqrt(5))/2;function Us(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?Bs(c,n,r,i,h?r+=m*g/h:a):Vs(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var Ws=(function e(t){function n(e,n,r,i,a){Us(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(Hs);function Gs(){var e=Ws,t=!1,n=1,r=1,i=[0],a=Ls,o=Ls,s=Ls,c=Ls,l=Ls;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(zs),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=Is(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:Rs(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:Rs(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:Rs(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:Rs(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:Rs(+e),u):l},u}function Ks(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var qs=Symbol(`implicit`);function Js(){var e=new s,t=[],n=[],r=qs;function i(i){let a=e.get(i);if(a===void 0){if(r!==qs)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new s;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Js(t,n).unknown(r)},Ks.apply(i,arguments),i}function Ys(){var e=Js().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=x(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return Ys(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},Ks.apply(d(),arguments)}function Xs(e){return function(){return e}}function Zs(e){return+e}var Qs=[0,1];function $s(e){return e}function ec(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Xs(isNaN(t)?NaN:.5)}function tc(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function nc(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=ec(i,r),a=n(o,a)):(r=ec(r,i),a=n(a,o)),function(e){return a(r(e))}}function rc(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=ec(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=o(e,t,1,r)-1;return a[n](i[n](t))}}function ic(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ac(){var e=Qs,t=Qs,n=Ur,r,i,a,o=$s,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==$s&&(o=tc(e[0],e[n-1])),s=n>2?rc:nc,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),L))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Zs),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Wr,u()},d.clamp=function(e){return arguments.length?(o=e?!0:$s,u()):o!==$s},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function oc(){return ac()($s,$s)}function sc(e,t,n,r){var i=v(e,t,n),a;switch(r=Xo(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=fs(i,o))&&(r.precision=a),ls(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=ps(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=ds(i))&&(r.precision=a-(r.type===`%`)*2);break}return cs(r)}function cc(e){var t=e.domain;return e.ticks=function(e){var n=t();return g(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return sc(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=_(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function lc(){var e=oc();return e.copy=function(){return ic(e,lc())},Ks.apply(e,arguments),cc(e)}function uc(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var dc=new Date,fc=new Date;function V(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>V(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(dc.setTime(+t),fc.setTime(+r),e(dc),e(fc),Math.floor(n(dc,fc))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var pc=V(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?V(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):pc),pc.range;var mc=1e3,H=mc*60,hc=H*60,gc=hc*24,_c=gc*7,vc=gc*30,yc=gc*365,bc=V(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*mc)},(e,t)=>(t-e)/mc,e=>e.getUTCSeconds());bc.range;var xc=V(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mc)},(e,t)=>{e.setTime(+e+t*H)},(e,t)=>(t-e)/H,e=>e.getMinutes());xc.range;var Sc=V(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*H)},(e,t)=>(t-e)/H,e=>e.getUTCMinutes());Sc.range;var Cc=V(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mc-e.getMinutes()*H)},(e,t)=>{e.setTime(+e+t*hc)},(e,t)=>(t-e)/hc,e=>e.getHours());Cc.range;var wc=V(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*hc)},(e,t)=>(t-e)/hc,e=>e.getUTCHours());wc.range;var Tc=V(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*H)/gc,e=>e.getDate()-1);Tc.range;var Ec=V(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gc,e=>e.getUTCDate()-1);Ec.range;var Dc=V(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gc,e=>Math.floor(e/gc));Dc.range;function Oc(e){return V(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*H)/_c)}var kc=Oc(0),Ac=Oc(1),jc=Oc(2),Mc=Oc(3),Nc=Oc(4),Pc=Oc(5),Fc=Oc(6);kc.range,Ac.range,jc.range,Mc.range,Nc.range,Pc.range,Fc.range;function Ic(e){return V(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/_c)}var Lc=Ic(0),Rc=Ic(1),zc=Ic(2),Bc=Ic(3),Vc=Ic(4),Hc=Ic(5),Uc=Ic(6);Lc.range,Rc.range,zc.range,Bc.range,Vc.range,Hc.range,Uc.range;var Wc=V(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Wc.range;var Gc=V(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Gc.range;var Kc=V(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Kc.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:V(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Kc.range;var qc=V(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());qc.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:V(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),qc.range;function Jc(e,t,r,i,a,o){let s=[[bc,1,mc],[bc,5,5*mc],[bc,15,15*mc],[bc,30,30*mc],[o,1,H],[o,5,5*H],[o,15,15*H],[o,30,30*H],[a,1,hc],[a,3,3*hc],[a,6,6*hc],[a,12,12*hc],[i,1,gc],[i,2,2*gc],[r,1,_c],[t,1,vc],[t,3,3*vc],[e,1,yc]];function c(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:l(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function l(t,r,i){let a=Math.abs(r-t)/i,o=n(([,,e])=>e).right(s,a);if(o===s.length)return e.every(v(t/yc,r/yc,i));if(o===0)return pc.every(Math.max(v(t,r,i),1));let[c,l]=s[a/s[o-1][2]<s[o][2]/a?o-1:o];return c.every(l)}return[c,l]}var[Yc,Xc]=Jc(qc,Gc,Lc,Dc,wc,Sc),[Zc,Qc]=Jc(Kc,Wc,kc,Tc,Cc,xc);function $c(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function el(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nl(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=sl(i),u=cl(i),d=sl(a),f=cl(a),p=sl(o),m=cl(o),h=sl(s),g=cl(s),_=sl(c),v=cl(c),y={a:A,A:j,b:M,B:re,c:null,d:kl,e:kl,f:Pl,g:Gl,G:ql,H:Al,I:jl,j:Ml,L:Nl,m:Fl,M:Il,p:ie,q:ae,Q:gu,s:_u,S:Ll,u:Rl,U:zl,V:Vl,w:Hl,W:Ul,x:null,X:null,y:Wl,Y:Kl,Z:Jl,"%":hu},b={a:oe,A:N,b:se,B:ce,c:null,d:Yl,e:Yl,f:eu,g:du,G:pu,H:Xl,I:Zl,j:Ql,L:$l,m:tu,M:nu,p:le,q:ue,Q:gu,s:_u,S:ru,u:iu,U:au,V:su,w:cu,W:lu,x:null,X:null,y:uu,Y:fu,Z:mu,"%":hu},x={a:E,A:D,b:O,B:k,c:ee,d:yl,e:yl,f:Tl,g:hl,G:ml,H:xl,I:xl,j:bl,L:wl,m:vl,M:Sl,p:T,q:_l,Q:Dl,s:Ol,S:Cl,u:ul,U:dl,V:fl,w:ll,W:pl,x:te,X:ne,y:hl,Y:ml,Z:gl,"%":El};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=rl[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=tl(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=el(tl(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Rc.ceil(a):Rc(a),a=Ec.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=$c(tl(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Ac.ceil(a):Ac(a),a=Tc.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?el(tl(r.y,0,1)).getUTCDay():$c(tl(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,el(r)):$c(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in rl?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,n,r){return w(e,t,n,r)}function te(e,t,r){return w(e,n,t,r)}function ne(e,t,n){return w(e,r,t,n)}function A(e){return o[e.getDay()]}function j(e){return a[e.getDay()]}function M(e){return c[e.getMonth()]}function re(e){return s[e.getMonth()]}function ie(e){return i[+(e.getHours()>=12)]}function ae(e){return 1+~~(e.getMonth()/3)}function oe(e){return o[e.getUTCDay()]}function N(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function le(e){return i[+(e.getUTCHours()>=12)]}function ue(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var rl={"-":``,_:` `,0:`0`},U=/^\s*\d+/,il=/^%/,al=/[\\^$*+?|[\]().{}]/g;function W(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function ol(e){return e.replace(al,`\\$&`)}function sl(e){return RegExp(`^(?:`+e.map(ol).join(`|`)+`)`,`i`)}function cl(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ll(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ul(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function dl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ml(e,t,n){var r=U.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function gl(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function _l(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function yl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function bl(e,t,n){var r=U.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function xl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Sl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Cl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wl(e,t,n){var r=U.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=U.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function El(e,t,n){var r=il.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Dl(e,t,n){var r=U.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ol(e,t,n){var r=U.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function kl(e,t){return W(e.getDate(),t,2)}function Al(e,t){return W(e.getHours(),t,2)}function jl(e,t){return W(e.getHours()%12||12,t,2)}function Ml(e,t){return W(1+Tc.count(Kc(e),e),t,3)}function Nl(e,t){return W(e.getMilliseconds(),t,3)}function Pl(e,t){return Nl(e,t)+`000`}function Fl(e,t){return W(e.getMonth()+1,t,2)}function Il(e,t){return W(e.getMinutes(),t,2)}function Ll(e,t){return W(e.getSeconds(),t,2)}function Rl(e){var t=e.getDay();return t===0?7:t}function zl(e,t){return W(kc.count(Kc(e)-1,e),t,2)}function Bl(e){var t=e.getDay();return t>=4||t===0?Nc(e):Nc.ceil(e)}function Vl(e,t){return e=Bl(e),W(Nc.count(Kc(e),e)+(Kc(e).getDay()===4),t,2)}function Hl(e){return e.getDay()}function Ul(e,t){return W(Ac.count(Kc(e)-1,e),t,2)}function Wl(e,t){return W(e.getFullYear()%100,t,2)}function Gl(e,t){return e=Bl(e),W(e.getFullYear()%100,t,2)}function Kl(e,t){return W(e.getFullYear()%1e4,t,4)}function ql(e,t){var n=e.getDay();return e=n>=4||n===0?Nc(e):Nc.ceil(e),W(e.getFullYear()%1e4,t,4)}function Jl(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+W(t/60|0,`0`,2)+W(t%60,`0`,2)}function Yl(e,t){return W(e.getUTCDate(),t,2)}function Xl(e,t){return W(e.getUTCHours(),t,2)}function Zl(e,t){return W(e.getUTCHours()%12||12,t,2)}function Ql(e,t){return W(1+Ec.count(qc(e),e),t,3)}function $l(e,t){return W(e.getUTCMilliseconds(),t,3)}function eu(e,t){return $l(e,t)+`000`}function tu(e,t){return W(e.getUTCMonth()+1,t,2)}function nu(e,t){return W(e.getUTCMinutes(),t,2)}function ru(e,t){return W(e.getUTCSeconds(),t,2)}function iu(e){var t=e.getUTCDay();return t===0?7:t}function au(e,t){return W(Lc.count(qc(e)-1,e),t,2)}function ou(e){var t=e.getUTCDay();return t>=4||t===0?Vc(e):Vc.ceil(e)}function su(e,t){return e=ou(e),W(Vc.count(qc(e),e)+(qc(e).getUTCDay()===4),t,2)}function cu(e){return e.getUTCDay()}function lu(e,t){return W(Rc.count(qc(e)-1,e),t,2)}function uu(e,t){return W(e.getUTCFullYear()%100,t,2)}function du(e,t){return e=ou(e),W(e.getUTCFullYear()%100,t,2)}function fu(e,t){return W(e.getUTCFullYear()%1e4,t,4)}function pu(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Vc(e):Vc.ceil(e),W(e.getUTCFullYear()%1e4,t,4)}function mu(){return`+0000`}function hu(){return`%`}function gu(e){return+e}function _u(e){return Math.floor(e/1e3)}var vu,yu;bu({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function bu(e){return vu=nl(e),yu=vu.format,vu.parse,vu.utcFormat,vu.utcParse,vu}function xu(e){return new Date(e)}function Su(e){return e instanceof Date?+e:+new Date(+e)}function Cu(e,t,n,r,i,a,o,s,c,l){var u=oc(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,Su)):f().map(xu)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(uc(n,e)):u},u.copy=function(){return ic(u,Cu(e,t,n,r,i,a,o,s,c,l))},u}function wu(){return Ks.apply(Cu(Zc,Qc,Kc,Wc,kc,Tc,Cc,xc,bc,yu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Tu(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var Eu=Tu(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`);function G(e){return function(){return e}}var Du=Math.abs,K=Math.atan2,Ou=Math.cos,ku=Math.max,Au=Math.min,ju=Math.sin,Mu=Math.sqrt,Nu=Math.PI,Pu=Nu/2,Fu=2*Nu;function Iu(e){return e>1?0:e<-1?Nu:Math.acos(e)}function Lu(e){return e>=1?Pu:e<=-1?-Pu:Math.asin(e)}function Ru(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new no(t)}function zu(e){return e.innerRadius}function Bu(e){return e.outerRadius}function Vu(e){return e.startAngle}function Hu(e){return e.endAngle}function Uu(e){return e&&e.padAngle}function Wu(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Gu(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Mu(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Mu(ku(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,ee=E-g,te=D-_;return O*O+k*k>ee*ee+te*te&&(w=E,T=D),{cx:w,cy:T,x01:-u,y01:-d,x11:w*(i/x-1),y11:T*(i/x-1)}}function Ku(){var e=zu,t=Bu,n=G(0),r=null,i=Vu,a=Hu,o=Uu,s=null,c=Ru(l);function l(){var l,u,d=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-Pu,m=a.apply(this,arguments)-Pu,h=Du(m-p),g=m>p;if(s||=l=c(),f<d&&(u=f,f=d,d=u),!(f>1e-12))s.moveTo(0,0);else if(h>Fu-1e-12)s.moveTo(f*Ou(p),f*ju(p)),s.arc(0,0,f,p,m,!g),d>1e-12&&(s.moveTo(d*Ou(m),d*ju(m)),s.arc(0,0,d,m,p,g));else{var _=p,v=m,y=p,b=m,x=h,S=h,C=o.apply(this,arguments)/2,w=C>1e-12&&(r?+r.apply(this,arguments):Mu(d*d+f*f)),T=Au(Du(f-d)/2,+n.apply(this,arguments)),E=T,D=T,O,k;if(w>1e-12){var ee=Lu(w/d*ju(C)),te=Lu(w/f*ju(C));(x-=ee*2)>1e-12?(ee*=g?1:-1,y+=ee,b-=ee):(x=0,y=b=(p+m)/2),(S-=te*2)>1e-12?(te*=g?1:-1,_+=te,v-=te):(S=0,_=v=(p+m)/2)}var ne=f*Ou(_),A=f*ju(_),j=d*Ou(b),M=d*ju(b);if(T>1e-12){var re=f*Ou(v),ie=f*ju(v),ae=d*Ou(y),oe=d*ju(y),N;if(h<Nu)if(N=Wu(ne,A,ae,oe,re,ie,j,M)){var se=ne-N[0],ce=A-N[1],le=re-N[0],ue=ie-N[1],de=1/ju(Iu((se*le+ce*ue)/(Mu(se*se+ce*ce)*Mu(le*le+ue*ue)))/2),fe=Mu(N[0]*N[0]+N[1]*N[1]);E=Au(T,(d-fe)/(de-1)),D=Au(T,(f-fe)/(de+1))}else E=D=0}S>1e-12?D>1e-12?(O=Gu(ae,oe,ne,A,f,D,g),k=Gu(re,ie,j,M,f,D,g),s.moveTo(O.cx+O.x01,O.cy+O.y01),D<T?s.arc(O.cx,O.cy,D,K(O.y01,O.x01),K(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,D,K(O.y01,O.x01),K(O.y11,O.x11),!g),s.arc(0,0,f,K(O.cy+O.y11,O.cx+O.x11),K(k.cy+k.y11,k.cx+k.x11),!g),s.arc(k.cx,k.cy,D,K(k.y11,k.x11),K(k.y01,k.x01),!g))):(s.moveTo(ne,A),s.arc(0,0,f,_,v,!g)):s.moveTo(ne,A),!(d>1e-12)||!(x>1e-12)?s.lineTo(j,M):E>1e-12?(O=Gu(j,M,re,ie,d,-E,g),k=Gu(ne,A,ae,oe,d,-E,g),s.lineTo(O.cx+O.x01,O.cy+O.y01),E<T?s.arc(O.cx,O.cy,E,K(O.y01,O.x01),K(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,E,K(O.y01,O.x01),K(O.y11,O.x11),!g),s.arc(0,0,d,K(O.cy+O.y11,O.cx+O.x11),K(k.cy+k.y11,k.cx+k.x11),g),s.arc(k.cx,k.cy,E,K(k.y11,k.x11),K(k.y01,k.x01),!g))):s.arc(0,0,d,b,y,g)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Nu/2;return[Ou(r)*n,ju(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:G(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:G(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:G(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:G(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:G(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:G(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:G(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}Array.prototype.slice;function qu(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Ju(e){this._context=e}Ju.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Yu(e){return new Ju(e)}function Xu(e){return e[0]}function Zu(e){return e[1]}function Qu(e,t){var n=G(!0),r=null,i=Yu,a=null,o=Ru(s);e=typeof e==`function`?e:e===void 0?Xu:G(e),t=typeof t==`function`?t:t===void 0?Zu:G(t);function s(s){var c,l=(s=qu(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:G(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:G(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:G(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function $u(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ed(e){return e}function td(){var e=ed,t=$u,n=null,r=G(0),i=G(Fu),a=G(0);function o(o){var s,c=(o=qu(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(Fu,Math.max(-Fu,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s<c;++s)(y=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s<c;++s,m=g)l=f[s],y=p[l],g=m+(y>0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:G(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:G(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:G(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:G(+e),o):a},o}var nd=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function rd(e){return new nd(e,!0)}function id(e){return new nd(e,!1)}function ad(){}function od(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function sd(e){this._context=e}sd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:od(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:od(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cd(e){return new sd(e)}function ld(e){this._context=e}ld.prototype={areaStart:ad,areaEnd:ad,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:od(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ud(e){return new ld(e)}function dd(e){this._context=e}dd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:od(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fd(e){return new dd(e)}function pd(e,t){this._basis=new sd(e),this._beta=t}pd.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var md=(function e(t){function n(e){return t===1?new sd(e):new pd(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function hd(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function gd(e,t){this._context=e,this._k=(1-t)/6}gd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:hd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:hd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _d=(function e(t){function n(e){return new gd(e,t)}return n.tension=function(t){return e(+t)},n})(0);function vd(e,t){this._context=e,this._k=(1-t)/6}vd.prototype={areaStart:ad,areaEnd:ad,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:hd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var yd=(function e(t){function n(e){return new vd(e,t)}return n.tension=function(t){return e(+t)},n})(0);function bd(e,t){this._context=e,this._k=(1-t)/6}bd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xd=(function e(t){function n(e){return new bd(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Sd(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Cd(e,t){this._context=e,this._alpha=t}Cd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Sd(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var wd=(function e(t){function n(e){return t?new Cd(e,t):new gd(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Td(e,t){this._context=e,this._alpha=t}Td.prototype={areaStart:ad,areaEnd:ad,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Sd(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ed=(function e(t){function n(e){return t?new Td(e,t):new vd(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Dd(e,t){this._context=e,this._alpha=t}Dd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sd(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Od=(function e(t){function n(e){return t?new Dd(e,t):new bd(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function kd(e){this._context=e}kd.prototype={areaStart:ad,areaEnd:ad,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ad(e){return new kd(e)}function jd(e){return e<0?-1:1}function Md(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(jd(a)+jd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Nd(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Pd(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Fd(e){this._context=e}Fd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pd(this,this._t0,Nd(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Pd(this,Nd(this,n=Md(this,e,t)),n);break;default:Pd(this,this._t0,n=Md(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Id(e){this._context=new Ld(e)}(Id.prototype=Object.create(Fd.prototype)).point=function(e,t){Fd.prototype.point.call(this,t,e)};function Ld(e){this._context=e}Ld.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Rd(e){return new Fd(e)}function zd(e){return new Id(e)}function Bd(e){this._context=e}Bd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Vd(e),i=Vd(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Vd(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Hd(e){return new Bd(e)}function Ud(e,t){this._context=e,this._t=t}Ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Wd(e){return new Ud(e,.5)}function Gd(e){return new Ud(e,0)}function Kd(e){return new Ud(e,1)}var qd=e=>()=>e;function Jd(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Yd(e,t,n){this.k=e,this.x=t,this.y=n}Yd.prototype={constructor:Yd,scale:function(e){return e===1?this:new Yd(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Yd(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Xd=new Yd(1,0,0);Zd.prototype=Yd.prototype;function Zd(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Xd;return e.__zoom}function Qd(e){e.stopImmediatePropagation()}function $d(e){e.preventDefault(),e.stopImmediatePropagation()}function ef(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function tf(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function nf(){return this.__zoom||Xd}function rf(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function af(){return navigator.maxTouchPoints||`ontouchstart`in this}function of(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function sf(){var e=ef,t=tf,n=of,r=rf,i=af,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=ii,l=ie(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,nf).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,k).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,nf),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Xd.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Yd(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Yd(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Yd(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=on(this.that).datum();l.call(e,this.that,new Jd(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=cn(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Pi(this),s.start();$d(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=on(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=cn(t,i),l=t.clientX,u=t.clientY;pn(t.view),Qd(t),a.mouse=[c,this.__zoom.invert(c)],Pi(this),a.start();function d(e){if($d(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=cn(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),mn(e.view,a.moved),$d(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=cn(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);$d(r),s>0?on(this).transition().duration(s).call(x,d,c,r):on(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Qd(t),s=0;s<i;++s)c=r[s],l=cn(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Pi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for($d(e),s=0;s<a;++s)c=i[s],l=cn(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function k(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Qd(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=cn(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=on(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:qd(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:qd(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:qd(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:qd([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var cf=typeof global==`object`&&global&&global.Object===Object&&global,lf=typeof self==`object`&&self&&self.Object===Object&&self,q=cf||lf||Function(`return this`)(),J=q.Symbol,uf=Object.prototype,df=uf.hasOwnProperty,ff=uf.toString,pf=J?J.toStringTag:void 0;function mf(e){var t=df.call(e,pf),n=e[pf];try{e[pf]=void 0;var r=!0}catch{}var i=ff.call(e);return r&&(t?e[pf]=n:delete e[pf]),i}var hf=Object.prototype.toString;function gf(e){return hf.call(e)}var _f=`[object Null]`,vf=`[object Undefined]`,yf=J?J.toStringTag:void 0;function bf(e){return e==null?e===void 0?vf:_f:yf&&yf in Object(e)?mf(e):gf(e)}function Y(e){return typeof e==`object`&&!!e}var xf=`[object Symbol]`;function Sf(e){return typeof e==`symbol`||Y(e)&&bf(e)==xf}function Cf(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var X=Array.isArray,wf=1/0,Tf=J?J.prototype:void 0,Ef=Tf?Tf.toString:void 0;function Df(e){if(typeof e==`string`)return e;if(X(e))return Cf(e,Df)+``;if(Sf(e))return Ef?Ef.call(e):``;var t=e+``;return t==`0`&&1/e==-wf?`-0`:t}var Of=/\s/;function kf(e){for(var t=e.length;t--&&Of.test(e.charAt(t)););return t}var Af=/^\s+/;function jf(e){return e&&e.slice(0,kf(e)+1).replace(Af,``)}function Z(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Mf=NaN,Nf=/^[-+]0x[0-9a-f]+$/i,Pf=/^0b[01]+$/i,Ff=/^0o[0-7]+$/i,If=parseInt;function Lf(e){if(typeof e==`number`)return e;if(Sf(e))return Mf;if(Z(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Z(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=jf(e);var n=Pf.test(e);return n||Ff.test(e)?If(e.slice(2),n?2:8):Nf.test(e)?Mf:+e}var Rf=1/0,zf=17976931348623157e292;function Bf(e){return e?(e=Lf(e),e===Rf||e===-Rf?(e<0?-1:1)*zf:e===e?e:0):e===0?e:0}function Vf(e){var t=Bf(e),n=t%1;return t===t?n?t-n:t:0}function Hf(e){return e}var Uf=`[object AsyncFunction]`,Wf=`[object Function]`,Gf=`[object GeneratorFunction]`,Kf=`[object Proxy]`;function qf(e){if(!Z(e))return!1;var t=bf(e);return t==Wf||t==Gf||t==Uf||t==Kf}var Jf=q[`__core-js_shared__`],Yf=function(){var e=/[^.]+$/.exec(Jf&&Jf.keys&&Jf.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Xf(e){return!!Yf&&Yf in e}var Zf=Function.prototype.toString;function Qf(e){if(e!=null){try{return Zf.call(e)}catch{}try{return e+``}catch{}}return``}var $f=/[\\^$.*+?()[\]{}|]/g,ep=/^\[object .+?Constructor\]$/,tp=Function.prototype,np=Object.prototype,rp=tp.toString,ip=np.hasOwnProperty,ap=RegExp(`^`+rp.call(ip).replace($f,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function op(e){return!Z(e)||Xf(e)?!1:(qf(e)?ap:ep).test(Qf(e))}function sp(e,t){return e?.[t]}function cp(e,t){var n=sp(e,t);return op(n)?n:void 0}var lp=cp(q,`WeakMap`),up=Object.create,dp=function(){function e(){}return function(t){if(!Z(t))return{};if(up)return up(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function fp(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function pp(){}function mp(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var hp=800,gp=16,_p=Date.now;function vp(e){var t=0,n=0;return function(){var r=_p(),i=gp-(r-n);if(n=r,i>0){if(++t>=hp)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yp(e){return function(){return e}}var bp=function(){try{var e=cp(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),xp=vp(bp?function(e,t){return bp(e,`toString`,{configurable:!0,enumerable:!1,value:yp(t),writable:!0})}:Hf);function Sp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Cp(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function wp(e){return e!==e}function Tp(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Ep(e,t,n){return t===t?Tp(e,t,n):Cp(e,wp,n)}function Dp(e,t){return!!(e!=null&&e.length)&&Ep(e,t,0)>-1}var Op=9007199254740991,kp=/^(?:0|[1-9]\d*)$/;function Ap(e,t){var n=typeof e;return t??=Op,!!t&&(n==`number`||n!=`symbol`&&kp.test(e))&&e>-1&&e%1==0&&e<t}function jp(e,t,n){t==`__proto__`&&bp?bp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Mp(e,t){return e===t||e!==e&&t!==t}var Np=Object.prototype.hasOwnProperty;function Pp(e,t,n){var r=e[t];(!(Np.call(e,t)&&Mp(r,n))||n===void 0&&!(t in e))&&jp(e,t,n)}function Fp(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?jp(n,s,c):Pp(n,s,c)}return n}var Ip=Math.max;function Lp(e,t,n){return t=Ip(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Ip(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),fp(e,this,s)}}function Rp(e,t){return xp(Lp(e,t,Hf),e+``)}var zp=9007199254740991;function Bp(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=zp}function Vp(e){return e!=null&&Bp(e.length)&&!qf(e)}function Hp(e,t,n){if(!Z(n))return!1;var r=typeof t;return(r==`number`?Vp(n)&&Ap(t,n.length):r==`string`&&t in n)?Mp(n[t],e):!1}function Up(e){return Rp(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Hp(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var Wp=Object.prototype;function Gp(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Wp)}function Kp(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var qp=`[object Arguments]`;function Jp(e){return Y(e)&&bf(e)==qp}var Yp=Object.prototype,Xp=Yp.hasOwnProperty,Zp=Yp.propertyIsEnumerable,Qp=Jp(function(){return arguments}())?Jp:function(e){return Y(e)&&Xp.call(e,`callee`)&&!Zp.call(e,`callee`)};function $p(){return!1}var em=typeof exports==`object`&&exports&&!exports.nodeType&&exports,tm=em&&typeof module==`object`&&module&&!module.nodeType&&module,nm=tm&&tm.exports===em?q.Buffer:void 0,rm=(nm?nm.isBuffer:void 0)||$p,im=`[object Arguments]`,am=`[object Array]`,om=`[object Boolean]`,sm=`[object Date]`,cm=`[object Error]`,lm=`[object Function]`,um=`[object Map]`,dm=`[object Number]`,fm=`[object Object]`,pm=`[object RegExp]`,mm=`[object Set]`,hm=`[object String]`,gm=`[object WeakMap]`,_m=`[object ArrayBuffer]`,vm=`[object DataView]`,ym=`[object Float32Array]`,bm=`[object Float64Array]`,xm=`[object Int8Array]`,Sm=`[object Int16Array]`,Cm=`[object Int32Array]`,wm=`[object Uint8Array]`,Tm=`[object Uint8ClampedArray]`,Em=`[object Uint16Array]`,Dm=`[object Uint32Array]`,Q={};Q[ym]=Q[bm]=Q[xm]=Q[Sm]=Q[Cm]=Q[wm]=Q[Tm]=Q[Em]=Q[Dm]=!0,Q[im]=Q[am]=Q[_m]=Q[om]=Q[vm]=Q[sm]=Q[cm]=Q[lm]=Q[um]=Q[dm]=Q[fm]=Q[pm]=Q[mm]=Q[hm]=Q[gm]=!1;function Om(e){return Y(e)&&Bp(e.length)&&!!Q[bf(e)]}function km(e){return function(t){return e(t)}}var Am=typeof exports==`object`&&exports&&!exports.nodeType&&exports,jm=Am&&typeof module==`object`&&module&&!module.nodeType&&module,Mm=jm&&jm.exports===Am&&cf.process,Nm=function(){try{return jm&&jm.require&&jm.require(`util`).types||Mm&&Mm.binding&&Mm.binding(`util`)}catch{}}(),Pm=Nm&&Nm.isTypedArray,Fm=Pm?km(Pm):Om,Im=Object.prototype.hasOwnProperty;function Lm(e,t){var n=X(e),r=!n&&Qp(e),i=!n&&!r&&rm(e),a=!n&&!r&&!i&&Fm(e),o=n||r||i||a,s=o?Kp(e.length,String):[],c=s.length;for(var l in e)(t||Im.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ap(l,c)))&&s.push(l);return s}function Rm(e,t){return function(n){return e(t(n))}}var zm=Rm(Object.keys,Object),Bm=Object.prototype.hasOwnProperty;function Vm(e){if(!Gp(e))return zm(e);var t=[];for(var n in Object(e))Bm.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Hm(e){return Vp(e)?Lm(e):Vm(e)}function Um(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Wm=Object.prototype.hasOwnProperty;function Gm(e){if(!Z(e))return Um(e);var t=Gp(e),n=[];for(var r in e)r==`constructor`&&(t||!Wm.call(e,r))||n.push(r);return n}function Km(e){return Vp(e)?Lm(e,!0):Gm(e)}var qm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jm=/^\w*$/;function Ym(e,t){if(X(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Sf(e)?!0:Jm.test(e)||!qm.test(e)||t!=null&&e in Object(t)}var Xm=cp(Object,`create`);function Zm(){this.__data__=Xm?Xm(null):{},this.size=0}function Qm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var $m=`__lodash_hash_undefined__`,eh=Object.prototype.hasOwnProperty;function th(e){var t=this.__data__;if(Xm){var n=t[e];return n===$m?void 0:n}return eh.call(t,e)?t[e]:void 0}var nh=Object.prototype.hasOwnProperty;function rh(e){var t=this.__data__;return Xm?t[e]!==void 0:nh.call(t,e)}var ih=`__lodash_hash_undefined__`;function ah(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Xm&&t===void 0?ih:t,this}function oh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oh.prototype.clear=Zm,oh.prototype.delete=Qm,oh.prototype.get=th,oh.prototype.has=rh,oh.prototype.set=ah;function sh(){this.__data__=[],this.size=0}function ch(e,t){for(var n=e.length;n--;)if(Mp(e[n][0],t))return n;return-1}var lh=Array.prototype.splice;function uh(e){var t=this.__data__,n=ch(t,e);return n<0?!1:(n==t.length-1?t.pop():lh.call(t,n,1),--this.size,!0)}function dh(e){var t=this.__data__,n=ch(t,e);return n<0?void 0:t[n][1]}function fh(e){return ch(this.__data__,e)>-1}function ph(e,t){var n=this.__data__,r=ch(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function mh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mh.prototype.clear=sh,mh.prototype.delete=uh,mh.prototype.get=dh,mh.prototype.has=fh,mh.prototype.set=ph;var hh=cp(q,`Map`);function gh(){this.size=0,this.__data__={hash:new oh,map:new(hh||mh),string:new oh}}function _h(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function vh(e,t){var n=e.__data__;return _h(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function yh(e){var t=vh(this,e).delete(e);return this.size-=+!!t,t}function bh(e){return vh(this,e).get(e)}function xh(e){return vh(this,e).has(e)}function Sh(e,t){var n=vh(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ch(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ch.prototype.clear=gh,Ch.prototype.delete=yh,Ch.prototype.get=bh,Ch.prototype.has=xh,Ch.prototype.set=Sh;var wh=`Expected a function`;function Th(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(wh);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Th.Cache||Ch),n}Th.Cache=Ch;var Eh=500;function Dh(e){var t=Th(e,function(e){return n.size===Eh&&n.clear(),e}),n=t.cache;return t}var Oh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kh=/\\(\\)?/g,Ah=Dh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Oh,function(e,n,r,i){t.push(r?i.replace(kh,`$1`):n||e)}),t});function jh(e){return e==null?``:Df(e)}function Mh(e,t){return X(e)?e:Ym(e,t)?[e]:Ah(jh(e))}var Nh=1/0;function Ph(e){if(typeof e==`string`||Sf(e))return e;var t=e+``;return t==`0`&&1/e==-Nh?`-0`:t}function Fh(e,t){t=Mh(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ph(t[n++])];return n&&n==r?e:void 0}function Ih(e,t,n){var r=e==null?void 0:Fh(e,t);return r===void 0?n:r}function Lh(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Rh=J?J.isConcatSpreadable:void 0;function zh(e){return X(e)||Qp(e)||!!(Rh&&e&&e[Rh])}function Bh(e,t,n,r,i){var a=-1,o=e.length;for(n||=zh,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Bh(s,t-1,n,r,i):Lh(i,s):r||(i[i.length]=s)}return i}function Vh(e){return e!=null&&e.length?Bh(e,1):[]}function Hh(e){return xp(Lp(e,void 0,Vh),e+``)}var Uh=Rm(Object.getPrototypeOf,Object),Wh=`[object Object]`,Gh=Function.prototype,Kh=Object.prototype,qh=Gh.toString,Jh=Kh.hasOwnProperty,Yh=qh.call(Object);function Xh(e){if(!Y(e)||bf(e)!=Wh)return!1;var t=Uh(e);if(t===null)return!0;var n=Jh.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&qh.call(n)==Yh}var Zh=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Qh(e){return Zh.test(e)}function $h(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function eg(){this.__data__=new mh,this.size=0}function tg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ng(e){return this.__data__.get(e)}function rg(e){return this.__data__.has(e)}var ig=200;function ag(e,t){var n=this.__data__;if(n instanceof mh){var r=n.__data__;if(!hh||r.length<ig-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ch(r)}return n.set(e,t),this.size=n.size,this}function og(e){this.size=(this.__data__=new mh(e)).size}og.prototype.clear=eg,og.prototype.delete=tg,og.prototype.get=ng,og.prototype.has=rg,og.prototype.set=ag;function sg(e,t){return e&&Fp(t,Hm(t),e)}function cg(e,t){return e&&Fp(t,Km(t),e)}var lg=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ug=lg&&typeof module==`object`&&module&&!module.nodeType&&module,dg=ug&&ug.exports===lg?q.Buffer:void 0,fg=dg?dg.allocUnsafe:void 0;function pg(e,t){if(t)return e.slice();var n=e.length,r=fg?fg(n):new e.constructor(n);return e.copy(r),r}function mg(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function hg(){return[]}var gg=Object.prototype.propertyIsEnumerable,_g=Object.getOwnPropertySymbols,vg=_g?function(e){return e==null?[]:(e=Object(e),mg(_g(e),function(t){return gg.call(e,t)}))}:hg;function yg(e,t){return Fp(e,vg(e),t)}var bg=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Lh(t,vg(e)),e=Uh(e);return t}:hg;function xg(e,t){return Fp(e,bg(e),t)}function Sg(e,t,n){var r=t(e);return X(e)?r:Lh(r,n(e))}function Cg(e){return Sg(e,Hm,vg)}function wg(e){return Sg(e,Km,bg)}var Tg=cp(q,`DataView`),Eg=cp(q,`Promise`),Dg=cp(q,`Set`),Og=`[object Map]`,kg=`[object Object]`,Ag=`[object Promise]`,jg=`[object Set]`,Mg=`[object WeakMap]`,Ng=`[object DataView]`,Pg=Qf(Tg),Fg=Qf(hh),Ig=Qf(Eg),Lg=Qf(Dg),Rg=Qf(lp),zg=bf;(Tg&&zg(new Tg(new ArrayBuffer(1)))!=Ng||hh&&zg(new hh)!=Og||Eg&&zg(Eg.resolve())!=Ag||Dg&&zg(new Dg)!=jg||lp&&zg(new lp)!=Mg)&&(zg=function(e){var t=bf(e),n=t==kg?e.constructor:void 0,r=n?Qf(n):``;if(r)switch(r){case Pg:return Ng;case Fg:return Og;case Ig:return Ag;case Lg:return jg;case Rg:return Mg}return t});var Bg=zg,Vg=Object.prototype.hasOwnProperty;function Hg(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Vg.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var Ug=q.Uint8Array;function Wg(e){var t=new e.constructor(e.byteLength);return new Ug(t).set(new Ug(e)),t}function Gg(e,t){var n=t?Wg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Kg=/\w*$/;function qg(e){var t=new e.constructor(e.source,Kg.exec(e));return t.lastIndex=e.lastIndex,t}var Jg=J?J.prototype:void 0,Yg=Jg?Jg.valueOf:void 0;function Xg(e){return Yg?Object(Yg.call(e)):{}}function Zg(e,t){var n=t?Wg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Qg=`[object Boolean]`,$g=`[object Date]`,e_=`[object Map]`,t_=`[object Number]`,n_=`[object RegExp]`,r_=`[object Set]`,i_=`[object String]`,a_=`[object Symbol]`,o_=`[object ArrayBuffer]`,s_=`[object DataView]`,c_=`[object Float32Array]`,l_=`[object Float64Array]`,u_=`[object Int8Array]`,d_=`[object Int16Array]`,f_=`[object Int32Array]`,p_=`[object Uint8Array]`,m_=`[object Uint8ClampedArray]`,h_=`[object Uint16Array]`,g_=`[object Uint32Array]`;function __(e,t,n){var r=e.constructor;switch(t){case o_:return Wg(e);case Qg:case $g:return new r(+e);case s_:return Gg(e,n);case c_:case l_:case u_:case d_:case f_:case p_:case m_:case h_:case g_:return Zg(e,n);case e_:return new r;case t_:case i_:return new r(e);case n_:return qg(e);case r_:return new r;case a_:return Xg(e)}}function v_(e){return typeof e.constructor==`function`&&!Gp(e)?dp(Uh(e)):{}}var y_=`[object Map]`;function b_(e){return Y(e)&&Bg(e)==y_}var x_=Nm&&Nm.isMap,S_=x_?km(x_):b_,C_=`[object Set]`;function w_(e){return Y(e)&&Bg(e)==C_}var T_=Nm&&Nm.isSet,E_=T_?km(T_):w_,D_=1,O_=2,k_=4,A_=`[object Arguments]`,j_=`[object Array]`,M_=`[object Boolean]`,N_=`[object Date]`,P_=`[object Error]`,F_=`[object Function]`,I_=`[object GeneratorFunction]`,L_=`[object Map]`,R_=`[object Number]`,z_=`[object Object]`,B_=`[object RegExp]`,V_=`[object Set]`,H_=`[object String]`,U_=`[object Symbol]`,W_=`[object WeakMap]`,G_=`[object ArrayBuffer]`,K_=`[object DataView]`,q_=`[object Float32Array]`,J_=`[object Float64Array]`,Y_=`[object Int8Array]`,X_=`[object Int16Array]`,Z_=`[object Int32Array]`,Q_=`[object Uint8Array]`,$_=`[object Uint8ClampedArray]`,ev=`[object Uint16Array]`,tv=`[object Uint32Array]`,$={};$[A_]=$[j_]=$[G_]=$[K_]=$[M_]=$[N_]=$[q_]=$[J_]=$[Y_]=$[X_]=$[Z_]=$[L_]=$[R_]=$[z_]=$[B_]=$[V_]=$[H_]=$[U_]=$[Q_]=$[$_]=$[ev]=$[tv]=!0,$[P_]=$[F_]=$[W_]=!1;function nv(e,t,n,r,i,a){var o,s=t&D_,c=t&O_,l=t&k_;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Z(e))return e;var u=X(e);if(u){if(o=Hg(e),!s)return mp(e,o)}else{var d=Bg(e),f=d==F_||d==I_;if(rm(e))return pg(e,s);if(d==z_||d==A_||f&&!i){if(o=c||f?{}:v_(e),!s)return c?xg(e,cg(o,e)):yg(e,sg(o,e))}else{if(!$[d])return i?e:{};o=__(e,d,s)}}a||=new og;var p=a.get(e);if(p)return p;a.set(e,o),E_(e)?e.forEach(function(r){o.add(nv(r,t,n,r,e,a))}):S_(e)&&e.forEach(function(r,i){o.set(i,nv(r,t,n,i,e,a))});var m=u?void 0:(l?c?wg:Cg:c?Km:Hm)(e);return Sp(m||e,function(r,i){m&&(i=r,r=e[i]),Pp(o,i,nv(r,t,n,i,e,a))}),o}var rv=4;function iv(e){return nv(e,rv)}var av=1,ov=4;function sv(e){return nv(e,av|ov)}var cv=`__lodash_hash_undefined__`;function lv(e){return this.__data__.set(e,cv),this}function uv(e){return this.__data__.has(e)}function dv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ch;++t<n;)this.add(e[t])}dv.prototype.add=dv.prototype.push=lv,dv.prototype.has=uv;function fv(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function pv(e,t){return e.has(t)}var mv=1,hv=2;function gv(e,t,n,r,i,a){var o=n&mv,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&hv?new dv:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!fv(t,function(e,t){if(!pv(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function _v(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function vv(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var yv=1,bv=2,xv=`[object Boolean]`,Sv=`[object Date]`,Cv=`[object Error]`,wv=`[object Map]`,Tv=`[object Number]`,Ev=`[object RegExp]`,Dv=`[object Set]`,Ov=`[object String]`,kv=`[object Symbol]`,Av=`[object ArrayBuffer]`,jv=`[object DataView]`,Mv=J?J.prototype:void 0,Nv=Mv?Mv.valueOf:void 0;function Pv(e,t,n,r,i,a,o){switch(n){case jv:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Av:return!(e.byteLength!=t.byteLength||!a(new Ug(e),new Ug(t)));case xv:case Sv:case Tv:return Mp(+e,+t);case Cv:return e.name==t.name&&e.message==t.message;case Ev:case Ov:return e==t+``;case wv:var s=_v;case Dv:var c=r&yv;if(s||=vv,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=bv,o.set(e,t);var u=gv(s(e),s(t),r,i,a,o);return o.delete(e),u;case kv:if(Nv)return Nv.call(e)==Nv.call(t)}return!1}var Fv=1,Iv=Object.prototype.hasOwnProperty;function Lv(e,t,n,r,i,a){var o=n&Fv,s=Cg(e),c=s.length;if(c!=Cg(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Iv.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var Rv=1,zv=`[object Arguments]`,Bv=`[object Array]`,Vv=`[object Object]`,Hv=Object.prototype.hasOwnProperty;function Uv(e,t,n,r,i,a){var o=X(e),s=X(t),c=o?Bv:Bg(e),l=s?Bv:Bg(t);c=c==zv?Vv:c,l=l==zv?Vv:l;var u=c==Vv,d=l==Vv,f=c==l;if(f&&rm(e)){if(!rm(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new og,o||Fm(e)?gv(e,t,n,r,i,a):Pv(e,t,c,n,r,i,a);if(!(n&Rv)){var p=u&&Hv.call(e,`__wrapped__`),m=d&&Hv.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new og,i(h,g,n,r,a)}}return f?(a||=new og,Lv(e,t,n,r,i,a)):!1}function Wv(e,t,n,r,i){return e===t?!0:e==null||t==null||!Y(e)&&!Y(t)?e!==e&&t!==t:Uv(e,t,n,r,Wv,i)}var Gv=1,Kv=2;function qv(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new og;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?Wv(u,l,Gv|Kv,r,d):f))return!1}}return!0}function Jv(e){return e===e&&!Z(e)}function Yv(e){for(var t=Hm(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Jv(i)]}return t}function Xv(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Zv(e){var t=Yv(e);return t.length==1&&t[0][2]?Xv(t[0][0],t[0][1]):function(n){return n===e||qv(n,e,t)}}function Qv(e,t){return e!=null&&t in Object(e)}function $v(e,t,n){t=Mh(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Ph(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Bp(i)&&Ap(o,i)&&(X(e)||Qp(e)))}function ey(e,t){return e!=null&&$v(e,t,Qv)}var ty=1,ny=2;function ry(e,t){return Ym(e)&&Jv(t)?Xv(Ph(e),t):function(n){var r=Ih(n,e);return r===void 0&&r===t?ey(n,e):Wv(t,r,ty|ny)}}function iy(e){return function(t){return t?.[e]}}function ay(e){return function(t){return Fh(t,e)}}function oy(e){return Ym(e)?iy(Ph(e)):ay(e)}function sy(e){return typeof e==`function`?e:e==null?Hf:typeof e==`object`?X(e)?ry(e[0],e[1]):Zv(e):oy(e)}function cy(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var ly=cy();function uy(e,t){return e&&ly(e,t,Hm)}function dy(e,t){return function(n,r){if(n==null)return n;if(!Vp(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var fy=dy(uy),py=function(){return q.Date.now()},my=`Expected a function`,hy=Math.max,gy=Math.min;function _y(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(my);t=Lf(t)||0,Z(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?hy(Lf(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?gy(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=py();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(py())}function x(){var e=py(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var vy=Object.prototype,yy=vy.hasOwnProperty,by=Rp(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Hp(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=Km(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(u===void 0||Mp(u,vy[l])&&!yy.call(e,l))&&(e[l]=a[l])}return e});function xy(e,t,n){(n!==void 0&&!Mp(e[t],n)||n===void 0&&!(t in e))&&jp(e,t,n)}function Sy(e){return Y(e)&&Vp(e)}function Cy(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function wy(e){return Fp(e,Km(e))}function Ty(e,t,n,r,i,a,o){var s=Cy(e,n),c=Cy(t,n),l=o.get(c);if(l){xy(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=X(c),p=!f&&rm(c),m=!f&&!p&&Fm(c);u=c,f||p||m?X(s)?u=s:Sy(s)?u=mp(s):p?(d=!1,u=pg(c,!0)):m?(d=!1,u=Zg(c,!0)):u=[]:Xh(c)||Qp(c)?(u=s,Qp(s)?u=wy(s):(!Z(s)||qf(s))&&(u=v_(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),xy(e,n,u)}function Ey(e,t,n,r,i){e!==t&&ly(t,function(a,o){if(i||=new og,Z(a))Ty(e,t,o,n,Ey,r,i);else{var s=r?r(Cy(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),xy(e,o,s)}},Km)}function Dy(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Oy(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function ky(e){return typeof e==`function`?e:Hf}function Ay(e,t){return(X(e)?Sp:fy)(e,ky(t))}function jy(e,t){var n=[];return fy(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function My(e,t){return(X(e)?mg:jy)(e,sy(t,3))}function Ny(e){return function(t,n,r){var i=Object(t);if(!Vp(t)){var a=sy(n,3);t=Hm(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var Py=Math.max;function Fy(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Vf(n);return i<0&&(i=Py(r+i,0)),Cp(e,sy(t,3),i)}var Iy=Ny(Fy);function Ly(e,t){var n=-1,r=Vp(e)?Array(e.length):[];return fy(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Ry(e,t){return(X(e)?Cf:Ly)(e,sy(t,3))}function zy(e,t){return e==null?e:ly(e,ky(t),Km)}function By(e,t){return e&&uy(e,ky(t))}function Vy(e,t){return e>t}var Hy=Object.prototype.hasOwnProperty;function Uy(e,t){return e!=null&&Hy.call(e,t)}function Wy(e,t){return e!=null&&$v(e,t,Uy)}var Gy=`[object String]`;function Ky(e){return typeof e==`string`||!X(e)&&Y(e)&&bf(e)==Gy}function qy(e,t){return Cf(t,function(t){return e[t]})}function Jy(e){return e==null?[]:qy(e,Hm(e))}var Yy=`[object Map]`,Xy=`[object Set]`,Zy=Object.prototype.hasOwnProperty;function Qy(e){if(e==null)return!0;if(Vp(e)&&(X(e)||typeof e==`string`||typeof e.splice==`function`||rm(e)||Fm(e)||Qp(e)))return!e.length;var t=Bg(e);if(t==Yy||t==Xy)return!e.size;if(Gp(e))return!Vm(e).length;for(var n in e)if(Zy.call(e,n))return!1;return!0}function $y(e){return e===void 0}function eb(e,t){return e<t}function tb(e,t){var n={};return t=sy(t,3),uy(e,function(e,r,i){jp(n,r,t(e,r,i))}),n}function nb(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(s===void 0?o===o&&!Sf(o):n(o,s)))var s=o,c=a}return c}function rb(e){return e&&e.length?nb(e,Hf,Vy):void 0}var ib=Up(function(e,t,n){Ey(e,t,n)});function ab(e){return e&&e.length?nb(e,Hf,eb):void 0}function ob(e,t){return e&&e.length?nb(e,sy(t,2),eb):void 0}function sb(e,t,n,r){if(!Z(e))return e;t=Mh(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=Ph(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=Z(u)?u:Ap(t[i+1])?[]:{})}Pp(s,c,l),s=s[c]}return e}function cb(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Fh(e,o);n(s,o)&&sb(a,Mh(o,e),s)}return a}function lb(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ub(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Sf(e),o=t!==void 0,s=t===null,c=t===t,l=Sf(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function db(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=ub(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function fb(e,t,n){t=t.length?Cf(t,function(e){return X(e)?function(t){return Fh(t,e.length===1?e[0]:e)}:e}):[Hf];var r=-1;return t=Cf(t,km(sy)),lb(Ly(e,function(e,n,i){return{criteria:Cf(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return db(e,t,n)})}var pb=iy(`length`),mb=`\\ud800-\\udfff`,hb=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,gb=`\\ufe0e\\ufe0f`,_b=`[`+mb+`]`,vb=`[`+hb+`]`,yb=`\\ud83c[\\udffb-\\udfff]`,bb=`(?:`+vb+`|`+yb+`)`,xb=`[^`+mb+`]`,Sb=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Cb=`[\\ud800-\\udbff][\\udc00-\\udfff]`,wb=`\\u200d`,Tb=bb+`?`,Eb=`[`+gb+`]?`,Db=`(?:`+wb+`(?:`+[xb,Sb,Cb].join(`|`)+`)`+Eb+Tb+`)*`,Ob=Eb+Tb+Db,kb=`(?:`+[xb+vb+`?`,vb,Sb,Cb,_b].join(`|`)+`)`,Ab=RegExp(yb+`(?=`+yb+`)|`+kb+Ob,`g`);function jb(e){for(var t=Ab.lastIndex=0;Ab.test(e);)++t;return t}function Mb(e){return Qh(e)?jb(e):pb(e)}function Nb(e,t){return cb(e,t,function(t,n){return ey(e,n)})}var Pb=Hh(function(e,t){return e==null?{}:Nb(e,t)}),Fb=Math.ceil,Ib=Math.max;function Lb(e,t,n,r){for(var i=-1,a=Ib(Fb((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function Rb(e){return function(t,n,r){return r&&typeof r!=`number`&&Hp(t,n,r)&&(n=r=void 0),t=Bf(t),n===void 0?(n=t,t=0):n=Bf(n),r=r===void 0?t<n?1:-1:Bf(r),Lb(t,n,r,e)}}var zb=Rb();function Bb(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Vb(e,t,n){var r=X(e)?$h:Bb,i=arguments.length<3;return r(e,sy(t,4),n,i,fy)}var Hb=`[object Map]`,Ub=`[object Set]`;function Wb(e){if(e==null)return 0;if(Vp(e))return Ky(e)?Mb(e):e.length;var t=Bg(e);return t==Hb||t==Ub?e.size:Vm(e).length}var Gb=Rp(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Hp(e,t[0],t[1])?t=[]:n>2&&Hp(t[0],t[1],t[2])&&(t=[t[0]]),fb(e,Bh(t,1),[])}),Kb=Dg&&1/vv(new Dg([,-0]))[1]==1/0?function(e){return new Dg(e)}:pp,qb=200;function Jb(e,t,n){var r=-1,i=Dp,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=Dy;else if(a>=qb){var l=t?null:Kb(e);if(l)return vv(l);o=!1,i=pv,c=new dv}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var Yb=Rp(function(e){return Jb(Bh(e,1,Sy,!0))}),Xb=0;function Zb(e){var t=++Xb;return jh(e)+t}function Qb(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function $b(e,t){return Qb(e||[],t||[],Pp)}function ex(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function tx(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function nx(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function rx(e){return e.target.depth}function ix(e){return e.depth}function ax(e,t){return t-1-e.height}function ox(e,t){return e.sourceLinks.length?e.depth:t-1}function sx(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?tx(e.sourceLinks,rx)-1:0}function cx(e){return function(){return e}}function lx(e,t){return dx(e.source,t.source)||e.index-t.index}function ux(e,t){return dx(e.target,t.target)||e.index-t.index}function dx(e,t){return e.y0-t.y0}function fx(e){return e.value}function px(e){return e.index}function mx(e){return e.nodes}function hx(e){return e.links}function gx(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function _x({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function vx(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=px,c=ox,l,u,d=mx,f=hx,p=6;function m(){let e={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return h(e),g(e),_(e),v(e),x(e),_x(e),e}m.update=function(e){return _x(e),e},m.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:cx(e),m):s},m.nodeAlign=function(e){return arguments.length?(c=typeof e==`function`?e:cx(e),m):c},m.nodeSort=function(e){return arguments.length?(l=e,m):l},m.nodeWidth=function(e){return arguments.length?(i=+e,m):i},m.nodePadding=function(e){return arguments.length?(a=o=+e,m):a},m.nodes=function(e){return arguments.length?(d=typeof e==`function`?e:cx(e),m):d},m.links=function(e){return arguments.length?(f=typeof e==`function`?e:cx(e),m):f},m.linkSort=function(e){return arguments.length?(u=e,m):u},m.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],m):[n-e,r-t]},m.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],m):[[e,t],[n,r]]},m.iterations=function(e){return arguments.length?(p=+e,m):p};function h({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=gx(n,t)),typeof i!=`object`&&(i=r.target=gx(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(u!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(u),n.sort(u)}function g({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(nx(t.sourceLinks,fx),nx(t.targetLinks,fx)):t.fixedValue}function _({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:t}){let r=ex(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(c.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(l)for(let e of o)e.sort(l);return o}function b(e){let n=tx(e,e=>(r-t-(e.length-1)*o)/nx(e,fx));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}O(i)}}function x(e){let n=y(e);o=Math.min(a,(r-t)/(ex(n,e=>e.length)-1)),b(n);for(let e=0;e<p;++e){let t=.99**e,r=Math.max(1-t,(e+1)/p);C(n,t,r),S(n,t,r)}}function S(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=k(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,D(e)}l===void 0&&i.sort(dx),w(i,n)}}function C(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=ee(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,D(e)}l===void 0&&i.sort(dx),w(i,n)}}function w(e,n){let i=e.length>>1,a=e[i];E(e,a.y0-o,i-1,n),T(e,a.y1+o,i+1,n),E(e,r,e.length-1,n),T(e,t,0,n)}function T(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function E(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function D({sourceLinks:e,targetLinks:t}){if(u===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(ux);for(let{target:{targetLinks:t}}of e)t.sort(lx)}}function O(e){if(u===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(ux),n.sort(lx)}function k(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function ee(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return m}var yx=Math.PI,bx=2*yx,xx=1e-6,Sx=bx-xx;function Cx(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function wx(){return new Cx}Cx.prototype=wx.prototype={constructor:Cx,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>xx)if(!(Math.abs(u*s-c*l)>xx)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((yx-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>xx&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>xx||Math.abs(this._y1-l)>xx)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%bx+bx),d>Sx?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>xx&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=yx)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}};function Tx(e){return function(){return e}}function Ex(e){return e[0]}function Dx(e){return e[1]}var Ox=Array.prototype.slice;function kx(e){return e.source}function Ax(e){return e.target}function jx(e){var t=kx,n=Ax,r=Ex,i=Dx,a=null;function o(){var o,s=Ox.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||=o=wx(),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:Tx(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:Tx(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function Mx(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Nx(){return jx(Mx)}function Px(e){return[e.source.x1,e.y0]}function Fx(e){return[e.target.x0,e.y1]}function Ix(){return Nx().source(Px).target(Fx)}export{xd as $,Oy as A,Js as At,X as B,xn as Bt,Wy as C,Tc as Ct,Iy as D,pc as Dt,Ry as E,bc as Et,iv as F,Ho as Ft,Wd as G,y as Gt,Xd as H,M as Ht,Vh as I,No as It,zd as J,Hd as K,Hm as L,Ao as Lt,_y as M,ks as Mt,py as N,cs as Nt,My as O,lc as Ot,sv as P,Uo as Pt,wd as Q,yp as R,io as Rt,Jy as S,Mc as St,zy as T,xc as Tt,Kd as U,j as Ut,sf as V,on as Vt,Gd as W,b as Wt,Od as X,Ad as Y,Ed as Z,ib as _,Ac as _t,ix as a,cd as at,$y as b,Nc as bt,Zb as c,td as ct,Wb as d,Ku as dt,yd as et,Vb as f,Eu as ft,ab as g,Pc as gt,ob as h,Wc as ht,ox as i,ud as it,by as j,Gs as jt,Ay as k,Ys as kt,Yb as l,Qu as lt,Pb as m,yu as mt,vx as n,md as nt,ax as o,rd as ot,zb as p,wu as pt,Rd as q,sx as r,fd as rt,$b as s,id as st,Ix as t,_d as tt,Gb as u,Yu as ut,rb as v,Fc as vt,By as w,Cc as wt,Qy as x,jc as xt,tb as y,kc as yt,qf as z,oi as zt};
1
+ function e(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function t(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function n(n){let i,a,o;n.length===2?(i=n===e||n===t?n:r,a=n,o=n):(i=e,a=(t,r)=>e(n(t),r),o=(e,t)=>n(e)-t);function s(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<0?n=i+1:r=i}while(n<r)}return n}function c(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<=0?n=i+1:r=i}while(n<r)}return n}function l(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i}return{left:s,center:l,right:c}}function r(){return 0}function i(e){return e===null?NaN:+e}var a=n(e),o=a.right;a.left,n(i).center;var s=class extends Map{constructor(e,t=d){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(c(this,e))}has(e){return super.has(c(this,e))}set(e,t){return super.set(l(this,e),t)}delete(e){return super.delete(u(this,e))}};function c({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function l({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function u({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function d(e){return typeof e==`object`&&e?e.valueOf():e}var f=Math.sqrt(50),p=Math.sqrt(10),m=Math.sqrt(2);function h(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=f?10:a>=p?5:a>=m?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?h(e,t,n*2):[s,c,l]}function g(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?h(t,e,n):h(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function _(e,t,n){return t=+t,e=+e,n=+n,h(e,t,n)[2]}function v(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?_(t,e,n):_(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function y(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function b(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function x(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function S(e){return e}var C=1,w=2,T=3,E=4,D=1e-6;function O(e){return`translate(`+e+`,0)`}function k(e){return`translate(0,`+e+`)`}function ee(e){return t=>+e(t)}function te(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function ne(){return!this.__axis}function A(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===C||e===E?-1:1,u=e===E||e===w?`x`:`y`,d=e===C||e===T?O:k;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):S),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?te:ee)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),O=b.selectAll(`.tick`).data(p,t).order(),k=O.exit(),A=O.enter().append(`g`).attr(`class`,`tick`),j=O.select(`line`),M=O.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),O=O.merge(A),j=j.merge(A.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),M=M.merge(A.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===C?`0em`:e===T?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),O=O.transition(f),j=j.transition(f),M=M.transition(f),k=k.transition(f).attr(`opacity`,D).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),A.attr(`opacity`,D).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),k.remove(),x.attr(`d`,e===E||e===w?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),O.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),j.attr(u+`2`,l*a),M.attr(u,l*h).text(m),b.filter(ne).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===w?`start`:e===E?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function j(e){return A(C,e)}function M(e){return A(T,e)}var re={value:()=>{}};function ie(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new ae(n)}function ae(e){this._=e}function oe(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}ae.prototype=ie.prototype={constructor:ae,on:function(e,t){var n=this._,r=oe(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=N(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=se(n[i],e.name,t);else if(t==null)for(i in n)n[i]=se(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ae(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function N(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function se(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=re,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ce={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function le(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),ce.hasOwnProperty(t)?{space:ce[t],local:e}:e}function ue(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function de(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function fe(e){var t=le(e);return(t.local?de:ue)(t)}function pe(){}function me(e){return e==null?pe:function(){return this.querySelector(e)}}function he(e){typeof e!=`function`&&(e=me(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new P(r,this._parents)}function ge(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function _e(){return[]}function ve(e){return e==null?_e:function(){return this.querySelectorAll(e)}}function ye(e){return function(){return ge(e.apply(this,arguments))}}function be(e){e=typeof e==`function`?ye(e):ve(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new P(r,i)}function xe(e){return function(){return this.matches(e)}}function Se(e){return function(t){return t.matches(e)}}var Ce=Array.prototype.find;function we(e){return function(){return Ce.call(this.children,e)}}function Te(){return this.firstElementChild}function Ee(e){return this.select(e==null?Te:we(typeof e==`function`?e:Se(e)))}var De=Array.prototype.filter;function Oe(){return Array.from(this.children)}function ke(e){return function(){return De.call(this.children,e)}}function Ae(e){return this.selectAll(e==null?Oe:ke(typeof e==`function`?e:Se(e)))}function je(e){typeof e!=`function`&&(e=xe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new P(r,this._parents)}function Me(e){return Array(e.length)}function Ne(){return new P(this._enter||this._groups.map(Me),this._parents)}function Pe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Pe.prototype={constructor:Pe,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fe(e){return function(){return e}}function Ie(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Pe(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Le(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Pe(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Re(e){return e.__data__}function ze(e,t){if(!arguments.length)return Array.from(this,Re);var n=t?Le:Ie,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Fe(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Be(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new P(o,r),o._enter=s,o._exit=c,o}function Be(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Ve(){return new P(this._exit||this._groups.map(Me),this._parents)}function He(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ue(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new P(s,this._parents)}function We(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Ge(e){e||=Ke;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new P(i,this._parents).order()}function Ke(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function qe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Je(){return Array.from(this)}function Ye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Xe(){let e=0;for(let t of this)++e;return e}function Ze(){return!this.node()}function Qe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function $e(e){return function(){this.removeAttribute(e)}}function et(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tt(e,t){return function(){this.setAttribute(e,t)}}function nt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function it(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function at(e,t){var n=le(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?et:$e:typeof t==`function`?n.local?it:rt:n.local?nt:tt)(n,t))}function ot(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function st(e){return function(){this.style.removeProperty(e)}}function ct(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ut(e,t,n){return arguments.length>1?this.each((t==null?st:typeof t==`function`?lt:ct)(e,t,n??``)):dt(this.node(),e)}function dt(e,t){return e.style.getPropertyValue(t)||ot(e).getComputedStyle(e,null).getPropertyValue(t)}function ft(e){return function(){delete this[e]}}function pt(e,t){return function(){this[e]=t}}function mt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function ht(e,t){return arguments.length>1?this.each((t==null?ft:typeof t==`function`?mt:pt)(e,t)):this.node()[e]}function gt(e){return e.trim().split(/^|\s+/)}function _t(e){return e.classList||new vt(e)}function vt(e){this._node=e,this._names=gt(e.getAttribute(`class`)||``)}vt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function yt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function bt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function xt(e){return function(){yt(this,e)}}function St(e){return function(){bt(this,e)}}function Ct(e,t){return function(){(t.apply(this,arguments)?yt:bt)(this,e)}}function wt(e,t){var n=gt(e+``);if(arguments.length<2){for(var r=_t(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Ct:t?xt:St)(n,t))}function Tt(){this.textContent=``}function Et(e){return function(){this.textContent=e}}function Dt(e){return function(){this.textContent=e.apply(this,arguments)??``}}function Ot(e){return arguments.length?this.each(e==null?Tt:(typeof e==`function`?Dt:Et)(e)):this.node().textContent}function kt(){this.innerHTML=``}function At(e){return function(){this.innerHTML=e}}function jt(e){return function(){this.innerHTML=e.apply(this,arguments)??``}}function Mt(e){return arguments.length?this.each(e==null?kt:(typeof e==`function`?jt:At)(e)):this.node().innerHTML}function Nt(){this.nextSibling&&this.parentNode.appendChild(this)}function Pt(){return this.each(Nt)}function Ft(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function It(){return this.each(Ft)}function Lt(e){var t=typeof e==`function`?e:fe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Rt(){return null}function zt(e,t){var n=typeof e==`function`?e:fe(e),r=t==null?Rt:typeof t==`function`?t:me(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Bt(){var e=this.parentNode;e&&e.removeChild(this)}function Vt(){return this.each(Bt)}function Ht(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ut(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wt(e){return this.select(e?Ut:Ht)}function Gt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Kt(e){return function(t){e.call(this,t,this.__data__)}}function qt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Jt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Yt(e,t,n){return function(){var r=this.__on,i,a=Kt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Xt(e,t,n){var r=qt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Yt:Jt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Zt(e,t,n){var r=ot(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Qt(e,t){return function(){return Zt(this,e,t)}}function $t(e,t){return function(){return Zt(this,e,t.apply(this,arguments))}}function en(e,t){return this.each((typeof t==`function`?$t:Qt)(e,t))}function*tn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var nn=[null];function P(e,t){this._groups=e,this._parents=t}function rn(){return new P([[document.documentElement]],nn)}function an(){return this}P.prototype=rn.prototype={constructor:P,select:he,selectAll:be,selectChild:Ee,selectChildren:Ae,filter:je,data:ze,enter:Ne,exit:Ve,join:He,merge:Ue,selection:an,order:We,sort:Ge,call:qe,nodes:Je,node:Ye,size:Xe,empty:Ze,each:Qe,attr:at,style:ut,property:ht,classed:wt,text:Ot,html:Mt,raise:Pt,lower:It,append:Lt,insert:zt,remove:Vt,clone:Wt,datum:Gt,on:Xt,dispatch:en,[Symbol.iterator]:tn};function on(e){return typeof e==`string`?new P([[document.querySelector(e)]],[document.documentElement]):new P([[e]],nn)}function sn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function cn(e,t){if(e=sn(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var ln={passive:!1},un={capture:!0,passive:!1};function dn(e){e.stopImmediatePropagation()}function fn(e){e.preventDefault(),e.stopImmediatePropagation()}function pn(e){var t=e.document.documentElement,n=on(e).on(`dragstart.drag`,fn,un);`onselectstart`in t?n.on(`selectstart.drag`,fn,un):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function mn(e,t){var n=e.document.documentElement,r=on(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,fn,un),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var hn=e=>()=>e;function gn(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}gn.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _n(e){return!e.ctrlKey&&!e.button}function vn(){return this.parentNode}function yn(e,t){return t??{x:e.x,y:e.y}}function bn(){return navigator.maxTouchPoints||`ontouchstart`in this}function xn(){var e=_n,t=vn,n=yn,r=bn,i={},a=ie(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,ln).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(on(n.view).on(`mousemove.drag`,m,un).on(`mouseup.drag`,h,un),pn(n.view),dn(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(fn(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){on(e.view).on(`mousemove.drag mouseup.drag`,null),mn(e.view,l),fn(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(dn(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(fn(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.length,r,a;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),r=0;r<n;++r)(a=i[t[r].identifier])&&(dn(e),a(`end`,e,t[r]))}function y(e,t,r,s,c,l){var u=a.copy(),d=cn(l||r,t),p,m,h;if((h=n.call(e,new gn(`beforestart`,{sourceEvent:r,target:f,identifier:c,active:o,x:d[0],y:d[1],dx:0,dy:0,dispatch:u}),s))!=null)return p=h.x-d[0]||0,m=h.y-d[1]||0,function n(r,a,l){var g=d,_;switch(r){case`start`:i[c]=n,_=o++;break;case`end`:delete i[c],--o;case`drag`:d=cn(l||a,t),_=o;break}u.call(r,e,new gn(r,{sourceEvent:a,subject:h,target:f,identifier:c,active:_,x:d[0]+p,y:d[1]+m,dx:d[0]-g[0],dy:d[1]-g[1],dispatch:u}),s)}}return f.filter=function(t){return arguments.length?(e=typeof t==`function`?t:hn(!!t),f):e},f.container=function(e){return arguments.length?(t=typeof e==`function`?e:hn(e),f):t},f.subject=function(e){return arguments.length?(n=typeof e==`function`?e:hn(e),f):n},f.touchable=function(e){return arguments.length?(r=typeof e==`function`?e:hn(!!e),f):r},f.on=function(){var e=a.on.apply(a,arguments);return e===a?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}function Sn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Cn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function wn(){}var Tn=.7,En=1/Tn,Dn=`\\s*([+-]?\\d+)\\s*`,On=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,kn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,An=/^#([0-9a-f]{3,8})$/,jn=RegExp(`^rgb\\(${Dn},${Dn},${Dn}\\)$`),Mn=RegExp(`^rgb\\(${kn},${kn},${kn}\\)$`),Nn=RegExp(`^rgba\\(${Dn},${Dn},${Dn},${On}\\)$`),Pn=RegExp(`^rgba\\(${kn},${kn},${kn},${On}\\)$`),Fn=RegExp(`^hsl\\(${On},${kn},${kn}\\)$`),In=RegExp(`^hsla\\(${On},${kn},${kn},${On}\\)$`),Ln={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Sn(wn,Hn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rn,formatHex:Rn,formatHex8:zn,formatHsl:Bn,formatRgb:Vn,toString:Vn});function Rn(){return this.rgb().formatHex()}function zn(){return this.rgb().formatHex8()}function Bn(){return er(this).formatHsl()}function Vn(){return this.rgb().formatRgb()}function Hn(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=An.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Un(t):n===3?new F(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Wn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Wn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=jn.exec(e))?new F(t[1],t[2],t[3],1):(t=Mn.exec(e))?new F(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Nn.exec(e))?Wn(t[1],t[2],t[3],t[4]):(t=Pn.exec(e))?Wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fn.exec(e))?$n(t[1],t[2]/100,t[3]/100,1):(t=In.exec(e))?$n(t[1],t[2]/100,t[3]/100,t[4]):Ln.hasOwnProperty(e)?Un(Ln[e]):e===`transparent`?new F(NaN,NaN,NaN,0):null}function Un(e){return new F(e>>16&255,e>>8&255,e&255,1)}function Wn(e,t,n,r){return r<=0&&(e=t=n=NaN),new F(e,t,n,r)}function Gn(e){return e instanceof wn||(e=Hn(e)),e?(e=e.rgb(),new F(e.r,e.g,e.b,e.opacity)):new F}function Kn(e,t,n,r){return arguments.length===1?Gn(e):new F(e,t,n,r??1)}function F(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Sn(F,Kn,Cn(wn,{brighter(e){return e=e==null?En:En**+e,new F(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tn:Tn**+e,new F(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new F(Zn(this.r),Zn(this.g),Zn(this.b),Xn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qn,formatHex:qn,formatHex8:Jn,formatRgb:Yn,toString:Yn}));function qn(){return`#${Qn(this.r)}${Qn(this.g)}${Qn(this.b)}`}function Jn(){return`#${Qn(this.r)}${Qn(this.g)}${Qn(this.b)}${Qn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yn(){let e=Xn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Zn(this.r)}, ${Zn(this.g)}, ${Zn(this.b)}${e===1?`)`:`, ${e})`}`}function Xn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qn(e){return e=Zn(e),(e<16?`0`:``)+e.toString(16)}function $n(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function er(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof wn||(e=Hn(e)),!e)return new I;if(e instanceof I)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new I(o,s,c,e.opacity)}function tr(e,t,n,r){return arguments.length===1?er(e):new I(e,t,n,r??1)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Sn(I,tr,Cn(wn,{brighter(e){return e=e==null?En:En**+e,new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tn:Tn**+e,new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new F(ir(e>=240?e-240:e+120,i,r),ir(e,i,r),ir(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(nr(this.h),rr(this.s),rr(this.l),Xn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Xn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${nr(this.h)}, ${rr(this.s)*100}%, ${rr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function nr(e){return e=(e||0)%360,e<0?e+360:e}function rr(e){return Math.max(0,Math.min(1,e||0))}function ir(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var ar=Math.PI/180,or=180/Math.PI,sr=18,cr=.96422,lr=1,ur=.82521,dr=4/29,fr=6/29,pr=3*fr*fr,mr=fr*fr*fr;function hr(e){if(e instanceof _r)return new _r(e.l,e.a,e.b,e.opacity);if(e instanceof wr)return Tr(e);e instanceof F||(e=Gn(e));var t=xr(e.r),n=xr(e.g),r=xr(e.b),i=vr((.2225045*t+.7168786*n+.0606169*r)/lr),a,o;return t===n&&n===r?a=o=i:(a=vr((.4360747*t+.3850649*n+.1430804*r)/cr),o=vr((.0139322*t+.0971045*n+.7141733*r)/ur)),new _r(116*i-16,500*(a-i),200*(i-o),e.opacity)}function gr(e,t,n,r){return arguments.length===1?hr(e):new _r(e,t,n,r??1)}function _r(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Sn(_r,gr,Cn(wn,{brighter(e){return new _r(this.l+sr*(e??1),this.a,this.b,this.opacity)},darker(e){return new _r(this.l-sr*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=cr*yr(t),e=lr*yr(e),n=ur*yr(n),new F(br(3.1338561*t-1.6168667*e-.4906146*n),br(-.9787684*t+1.9161415*e+.033454*n),br(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function vr(e){return e>mr?e**(1/3):e/pr+dr}function yr(e){return e>fr?e*e*e:pr*(e-dr)}function br(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function xr(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Sr(e){if(e instanceof wr)return new wr(e.h,e.c,e.l,e.opacity);if(e instanceof _r||(e=hr(e)),e.a===0&&e.b===0)return new wr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*or;return new wr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Cr(e,t,n,r){return arguments.length===1?Sr(e):new wr(e,t,n,r??1)}function wr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Tr(e){if(isNaN(e.h))return new _r(e.l,0,0,e.opacity);var t=e.h*ar;return new _r(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Sn(wr,Cr,Cn(wn,{brighter(e){return new wr(this.h,this.c,this.l+sr*(e??1),this.opacity)},darker(e){return new wr(this.h,this.c,this.l-sr*(e??1),this.opacity)},rgb(){return Tr(this).rgb()}}));var Er=e=>()=>e;function Dr(e,t){return function(n){return e+n*t}}function Or(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function kr(e,t){var n=t-e;return n?Dr(e,n>180||n<-180?n-360*Math.round(n/360):n):Er(isNaN(e)?t:e)}function Ar(e){return(e=+e)==1?jr:function(t,n){return n-t?Or(t,n,e):Er(isNaN(t)?n:t)}}function jr(e,t){var n=t-e;return n?Dr(e,n):Er(isNaN(e)?t:e)}var Mr=(function e(t){var n=Ar(t);function r(e,t){var r=n((e=Kn(e)).r,(t=Kn(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=jr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Nr(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Pr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Fr(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=Ur(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Ir(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function L(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Lr(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Ur(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Rr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zr=new RegExp(Rr.source,`g`);function Br(e){return function(){return e}}function Vr(e){return function(t){return e(t)+``}}function Hr(e,t){var n=Rr.lastIndex=zr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Rr.exec(e))&&(i=zr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:L(r,i)})),n=zr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Vr(c[0].x):Br(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function Ur(e,t){var n=typeof t,r;return t==null||n===`boolean`?Er(t):(n===`number`?L:n===`string`?(r=Hn(t))?(t=r,Mr):Hr:t instanceof Hn?Mr:t instanceof Date?Ir:Pr(t)?Nr:Array.isArray(t)?Fr:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Lr:L)(e,t)}function Wr(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Gr=180/Math.PI,Kr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qr(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Gr,skewX:Math.atan(c)*Gr,scaleX:o,scaleY:s}}var Jr;function Yr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Kr:qr(t.a,t.b,t.c,t.d,t.e,t.f)}function Xr(e){return e==null||(Jr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Jr.setAttribute(`transform`,e),!(e=Jr.transform.baseVal.consolidate()))?Kr:(e=e.matrix,qr(e.a,e.b,e.c,e.d,e.e,e.f))}function Zr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:L(e,i)},{i:c-2,x:L(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:L(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:L(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:L(e,n)},{i:s-2,x:L(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Qr=Zr(Yr,`px, `,`px)`,`deg)`),$r=Zr(Xr,`, `,`)`,`)`),ei=1e-12;function ti(e){return((e=Math.exp(e))+1/e)/2}function ni(e){return((e=Math.exp(e))-1/e)/2}function ri(e){return((e=Math.exp(2*e))-1)/(e+1)}var ii=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<ei)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=ti(y),c=s/(n*g)*(i*ri(t*r+y)-ni(y));return[a+c*d,o+c*f,s*i/ti(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4);function ai(e){return function(t,n){var r=e((t=Cr(t)).h,(n=Cr(n)).h),i=jr(t.c,n.c),a=jr(t.l,n.l),o=jr(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var oi=ai(kr),si=0,ci=0,li=0,ui=1e3,di,fi,pi=0,mi=0,hi=0,gi=typeof performance==`object`&&performance.now?performance:Date,_i=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function vi(){return mi||=(_i(yi),gi.now()+hi)}function yi(){mi=0}function bi(){this._call=this._time=this._next=null}bi.prototype=xi.prototype={constructor:bi,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?vi():+n)+(t==null?0:+t),!this._next&&fi!==this&&(fi?fi._next=this:di=this,fi=this),this._call=e,this._time=n,Ei()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ei())}};function xi(e,t,n){var r=new bi;return r.restart(e,t,n),r}function Si(){vi(),++si;for(var e=di,t;e;)(t=mi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--si}function Ci(){mi=(pi=gi.now())+hi,si=ci=0;try{Si()}finally{si=0,Ti(),mi=0}}function wi(){var e=gi.now(),t=e-pi;t>ui&&(hi-=t,pi=e)}function Ti(){for(var e,t=di,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:di=n);fi=e,Ei(r)}function Ei(e){si||(ci&&=clearTimeout(ci),e-mi>24?(e<1/0&&(ci=setTimeout(Ci,e-gi.now()-hi)),li&&=clearInterval(li)):(li||=(pi=gi.now(),setInterval(wi,ui)),si=1,_i(Ci)))}function Di(e,t,n){var r=new bi;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Oi=ie(`start`,`end`,`cancel`,`interrupt`),ki=[];function Ai(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Ni(e,n,{name:t,index:r,group:i,on:Oi,tween:ki,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function ji(e,t){var n=R(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Mi(e,t){var n=R(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function R(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Ni(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=xi(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Di(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Di(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Pi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Fi(e){return this.each(function(){Pi(this,e)})}function Ii(e,t){var n,r;return function(){var i=Mi(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Li(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Mi(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ri(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=R(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ii:Li)(n,e,t))}function zi(e,t,n){var r=e._id;return e.each(function(){var e=Mi(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return R(e,r).value[t]}}function Bi(e,t){var n;return(typeof t==`number`?L:t instanceof Hn?Mr:(n=Hn(t))?(t=n,Mr):Hr)(e,t)}function Vi(e){return function(){this.removeAttribute(e)}}function Hi(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ui(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Wi(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Gi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ki(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function qi(e,t){var n=le(e),r=n===`transform`?$r:Bi;return this.attrTween(e,typeof t==`function`?(n.local?Ki:Gi)(n,r,zi(this,`attr.`+e,t)):t==null?(n.local?Hi:Vi)(n):(n.local?Wi:Ui)(n,r,t))}function Ji(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Yi(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Xi(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Yi(e,i)),n}return i._value=t,i}function Zi(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ji(e,i)),n}return i._value=t,i}function Qi(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=le(e);return this.tween(n,(r.local?Xi:Zi)(r,t))}function $i(e,t){return function(){ji(this,e).delay=+t.apply(this,arguments)}}function ea(e,t){return t=+t,function(){ji(this,e).delay=t}}function ta(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?$i:ea)(t,e)):R(this.node(),t).delay}function na(e,t){return function(){Mi(this,e).duration=+t.apply(this,arguments)}}function ra(e,t){return t=+t,function(){Mi(this,e).duration=t}}function ia(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?na:ra)(t,e)):R(this.node(),t).duration}function aa(e,t){if(typeof t!=`function`)throw Error();return function(){Mi(this,e).ease=t}}function oa(e){var t=this._id;return arguments.length?this.each(aa(t,e)):R(this.node(),t).ease}function sa(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Mi(this,e).ease=n}}function ca(e){if(typeof e!=`function`)throw Error();return this.each(sa(this._id,e))}function la(e){typeof e!=`function`&&(e=xe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Ra(r,this._parents,this._name,this._id)}function ua(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Ra(o,this._parents,this._name,this._id)}function da(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function fa(e,t,n){var r,i,a=da(t)?ji:Mi;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function pa(e,t){var n=this._id;return arguments.length<2?R(this.node(),n).on.on(e):this.each(fa(n,e,t))}function ma(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ha(){return this.on(`end.remove`,ma(this._id))}function ga(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=me(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Ai(l[f],t,n,f,l,R(u,n)));return new Ra(a,this._parents,t,n)}function _a(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ve(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=R(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Ai(p,t,n,h,f,m);a.push(f),o.push(u)}return new Ra(a,o,t,n)}var va=rn.prototype.constructor;function ya(){return new va(this._groups,this._parents)}function ba(e,t){var n,r,i;return function(){var a=dt(this,e),o=(this.style.removeProperty(e),dt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function xa(e){return function(){this.style.removeProperty(e)}}function Sa(e,t,n){var r,i=n+``,a;return function(){var o=dt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ca(e,t,n){var r,i,a;return function(){var o=dt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),dt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function wa(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Mi(this,e),l=c.on,u=c.value[a]==null?s||=xa(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Ta(e,t,n){var r=(e+=``)==`transform`?Qr:Bi;return t==null?this.styleTween(e,ba(e,r)).on(`end.style.`+e,xa(e)):typeof t==`function`?this.styleTween(e,Ca(e,r,zi(this,`style.`+e,t))).each(wa(this._id,e)):this.styleTween(e,Sa(e,r,t),n).on(`end.style.`+e,null)}function Ea(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Da(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ea(e,a,n)),r}return a._value=t,a}function Oa(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Da(e,t,n??``))}function ka(e){return function(){this.textContent=e}}function Aa(e){return function(){this.textContent=e(this)??``}}function ja(e){return this.tween(`text`,typeof e==`function`?Aa(zi(this,`text`,e)):ka(e==null?``:e+``))}function Ma(e){return function(t){this.textContent=e.call(this,t)}}function Na(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ma(r)),t}return r._value=e,r}function Pa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Na(e))}function Fa(){for(var e=this._name,t=this._id,n=Ba(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=R(c,t);Ai(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ra(r,this._parents,e,n)}function Ia(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Mi(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var La=0;function Ra(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function za(e){return rn().transition(e)}function Ba(){return++La}var Va=rn.prototype;Ra.prototype=za.prototype={constructor:Ra,select:ga,selectAll:_a,selectChild:Va.selectChild,selectChildren:Va.selectChildren,filter:la,merge:ua,selection:ya,transition:Fa,call:Va.call,nodes:Va.nodes,node:Va.node,size:Va.size,empty:Va.empty,each:Va.each,on:pa,attr:qi,attrTween:Qi,style:Ta,styleTween:Oa,text:ja,textTween:Pa,remove:ha,tween:Ri,delay:ta,duration:ia,ease:oa,easeVarying:ca,end:Ia,[Symbol.iterator]:Va[Symbol.iterator]};function Ha(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Ua={time:null,delay:0,duration:250,ease:Ha};function Wa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Ga(e){var t,n;e instanceof Ra?(t=e._id,e=e._name):(t=Ba(),(n=Ua).time=vi(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Ai(c,e,t,l,o,n||Wa(c,t));return new Ra(r,this._parents,e,t)}rn.prototype.interrupt=Fi,rn.prototype.transition=Ga;var{abs:Ka,max:qa,min:Ja}=Math;[`w`,`e`].map(Ya),[`n`,`s`].map(Ya),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(Ya);function Ya(e){return{type:e}}var Xa=Math.PI,Za=2*Xa,Qa=1e-6,$a=Za-Qa;function eo(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function to(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return eo;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var no=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?eo:to(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Qa)if(!(Math.abs(u*s-c*l)>Qa)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Xa-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Qa&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Qa||Math.abs(this._y1-l)>Qa)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Za+Za),d>$a?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Qa&&this._append`A${n},${n},0,${+(d>=Xa)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function ro(){return new no}ro.prototype=no.prototype;function io(e,t){var n,r=1;e??=0,t??=0;function i(){var i,a=n.length,o,s=0,c=0;for(i=0;i<a;++i)o=n[i],s+=o.x,c+=o.y;for(s=(s/a-e)*r,c=(c/a-t)*r,i=0;i<a;++i)o=n[i],o.x-=s,o.y-=c}return i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.strength=function(e){return arguments.length?(r=+e,i):r},i}function ao(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return oo(this.cover(t,n),t,n,e)}function oo(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a=e._root,o={data:r},s=e._x0,c=e._y0,l=e._x1,u=e._y1,d,f,p,m,h,g,_,v;if(!a)return e._root=o,e;for(;a.length;)if((h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f,i=a,!(a=a[_=g<<1|h]))return i[_]=o,e;if(p=+e._x.call(null,a.data),m=+e._y.call(null,a.data),t===p&&n===m)return o.next=a,i?i[_]=o:e._root=o,e;do i=i?i[_]=[,,,,]:e._root=[,,,,],(h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f;while((_=g<<1|h)==(v=(m>=f)<<1|p>=d));return i[v]=a,i[_]=o,e}function so(e){var t,n,r=e.length,i,a,o=Array(r),s=Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(o[n]=i,s[n]=a,i<c&&(c=i),i>u&&(u=i),a<l&&(l=a),a>d&&(d=a));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),n=0;n<r;++n)oo(this,o[n],s[n],e[n]);return this}function co(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{for(var o=i-n||1,s=this._root,c,l;n>e||e>=i||r>t||t>=a;)switch(l=(t<r)<<1|e<n,c=[,,,,],c[l]=s,s=c,o*=2,l){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o;break}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function lo(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function uo(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function z(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function fo(e,t,n){var r,i=this._x0,a=this._y0,o,s,c,l,u=this._x1,d=this._y1,f=[],p=this._root,m,h;for(p&&f.push(new z(p,i,a,u,d)),n==null?n=1/0:(i=e-n,a=t-n,u=e+n,d=t+n,n*=n);m=f.pop();)if(!(!(p=m.node)||(o=m.x0)>u||(s=m.y0)>d||(c=m.x1)<i||(l=m.y1)<a))if(p.length){var g=(o+c)/2,_=(s+l)/2;f.push(new z(p[3],g,_,c,l),new z(p[2],o,_,g,l),new z(p[1],g,s,c,_),new z(p[0],o,s,g,_)),(h=(t>=_)<<1|e>=g)&&(m=f[f.length-1],f[f.length-1]=f[f.length-1-h],f[f.length-1-h]=m)}else{var v=e-+this._x.call(null,p.data),y=t-+this._y.call(null,p.data),b=v*v+y*y;if(b<n){var x=Math.sqrt(n=b);i=e-x,a=t-x,u=e+x,d=t+x,r=p.data}}return r}function po(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._y0,c=this._x1,l=this._y1,u,d,f,p,m,h,g,_;if(!n)return this;if(n.length)for(;;){if((m=u>=(f=(o+c)/2))?o=f:c=f,(h=d>=(p=(s+l)/2))?s=p:l=p,t=n,!(n=n[g=h<<1|m]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,_=g)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[g]=a:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[_]=n:this._root=n),this):(this._root=a,this)}function mo(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function ho(){return this._root}function go(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function _o(e){var t=[],n,r=this._root,i,a,o,s,c;for(r&&t.push(new z(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,s=n.x1,c=n.y1)&&r.length){var l=(a+s)/2,u=(o+c)/2;(i=r[3])&&t.push(new z(i,l,u,s,c)),(i=r[2])&&t.push(new z(i,a,u,l,c)),(i=r[1])&&t.push(new z(i,l,o,s,u)),(i=r[0])&&t.push(new z(i,a,o,l,u))}return this}function vo(e){var t=[],n=[],r;for(this._root&&t.push(new z(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,c=r.x1,l=r.y1,u=(o+c)/2,d=(s+l)/2;(a=i[0])&&t.push(new z(a,o,s,u,d)),(a=i[1])&&t.push(new z(a,u,s,c,d)),(a=i[2])&&t.push(new z(a,o,d,u,l)),(a=i[3])&&t.push(new z(a,u,d,c,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function yo(e){return e[0]}function bo(e){return arguments.length?(this._x=e,this):this._x}function xo(e){return e[1]}function So(e){return arguments.length?(this._y=e,this):this._y}function Co(e,t,n){var r=new wo(t??yo,n??xo,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function wo(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function To(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var B=Co.prototype=wo.prototype;B.copy=function(){var e=new wo(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=To(t),e;for(n=[{source:t,target:e._root=[,,,,]}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=[,,,,]}):t.target[i]=To(r));return e},B.add=ao,B.addAll=so,B.cover=co,B.data=lo,B.extent=uo,B.find=fo,B.remove=po,B.removeAll=mo,B.root=ho,B.size=go,B.visit=_o,B.visitAfter=vo,B.x=bo,B.y=So;function Eo(e){return function(){return e}}function Do(e){return(e()-.5)*1e-6}function Oo(e){return e.x+e.vx}function ko(e){return e.y+e.vy}function Ao(e){var t,n,r,i=1,a=1;typeof e!=`function`&&(e=Eo(e==null?1:+e));function o(){for(var e,o=t.length,c,l,u,d,f,p,m=0;m<a;++m)for(c=Co(t,Oo,ko).visitAfter(s),e=0;e<o;++e)l=t[e],f=n[l.index],p=f*f,u=l.x+l.vx,d=l.y+l.vy,c.visit(h);function h(e,t,n,a,o){var s=e.data,c=e.r,m=f+c;if(s){if(s.index>l.index){var h=u-s.x-s.vx,g=d-s.y-s.vy,_=h*h+g*g;_<m*m&&(h===0&&(h=Do(r),_+=h*h),g===0&&(g=Do(r),_+=g*g),_=(m-(_=Math.sqrt(_)))/_*i,l.vx+=(h*=_)*(m=(c*=c)/(p+c)),l.vy+=(g*=_)*m,s.vx-=h*(m=1-m),s.vy-=g*m)}return}return t>u+m||a<u-m||n>d+m||o<d-m}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function c(){if(t){var r,i=t.length,a;for(n=Array(i),r=0;r<i;++r)a=t[r],n[a.index]=+e(a,r,t)}}return o.initialize=function(e,n){t=e,r=n,c()},o.iterations=function(e){return arguments.length?(a=+e,o):a},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e=typeof t==`function`?t:Eo(+t),c(),o):e},o}function jo(e){return e.index}function Mo(e,t){var n=e.get(t);if(!n)throw Error(`node not found: `+t);return n}function No(e){var t=jo,n=d,r,i=Eo(30),a,o,s,c,l,u=1;e??=[];function d(e){return 1/Math.min(s[e.source.index],s[e.target.index])}function f(t){for(var n=0,i=e.length;n<u;++n)for(var o=0,s,d,f,p,m,h,g;o<i;++o)s=e[o],d=s.source,f=s.target,p=f.x+f.vx-d.x-d.vx||Do(l),m=f.y+f.vy-d.y-d.vy||Do(l),h=Math.sqrt(p*p+m*m),h=(h-a[o])/h*t*r[o],p*=h,m*=h,f.vx-=p*(g=c[o]),f.vy-=m*g,d.vx+=p*(g=1-g),d.vy+=m*g}function p(){if(o){var n,i=o.length,l=e.length,u=new Map(o.map((e,n)=>[t(e,n,o),e])),d;for(n=0,s=Array(i);n<l;++n)d=e[n],d.index=n,typeof d.source!=`object`&&(d.source=Mo(u,d.source)),typeof d.target!=`object`&&(d.target=Mo(u,d.target)),s[d.source.index]=(s[d.source.index]||0)+1,s[d.target.index]=(s[d.target.index]||0)+1;for(n=0,c=Array(l);n<l;++n)d=e[n],c[n]=s[d.source.index]/(s[d.source.index]+s[d.target.index]);r=Array(l),m(),a=Array(l),h()}}function m(){if(o)for(var t=0,i=e.length;t<i;++t)r[t]=+n(e[t],t,e)}function h(){if(o)for(var t=0,n=e.length;t<n;++t)a[t]=+i(e[t],t,e)}return f.initialize=function(e,t){o=e,l=t,p()},f.links=function(t){return arguments.length?(e=t,p(),f):e},f.id=function(e){return arguments.length?(t=e,f):t},f.iterations=function(e){return arguments.length?(u=+e,f):u},f.strength=function(e){return arguments.length?(n=typeof e==`function`?e:Eo(+e),m(),f):n},f.distance=function(e){return arguments.length?(i=typeof e==`function`?e:Eo(+e),h(),f):i},f}var Po=1664525,Fo=1013904223,Io=4294967296;function Lo(){let e=1;return()=>(e=(Po*e+Fo)%Io)/Io}function Ro(e){return e.x}function zo(e){return e.y}var Bo=10,Vo=Math.PI*(3-Math.sqrt(5));function Ho(e){var t,n=1,r=.001,i=1-r**(1/300),a=0,o=.6,s=new Map,c=xi(d),l=ie(`tick`,`end`),u=Lo();e??=[];function d(){f(),l.call(`tick`,t),n<r&&(c.stop(),l.call(`end`,t))}function f(r){var c,l=e.length,u;r===void 0&&(r=1);for(var d=0;d<r;++d)for(n+=(a-n)*i,s.forEach(function(e){e(n)}),c=0;c<l;++c)u=e[c],u.fx==null?u.x+=u.vx*=o:(u.x=u.fx,u.vx=0),u.fy==null?u.y+=u.vy*=o:(u.y=u.fy,u.vy=0);return t}function p(){for(var t=0,n=e.length,r;t<n;++t){if(r=e[t],r.index=t,r.fx!=null&&(r.x=r.fx),r.fy!=null&&(r.y=r.fy),isNaN(r.x)||isNaN(r.y)){var i=Bo*Math.sqrt(.5+t),a=t*Vo;r.x=i*Math.cos(a),r.y=i*Math.sin(a)}(isNaN(r.vx)||isNaN(r.vy))&&(r.vx=r.vy=0)}}function m(t){return t.initialize&&t.initialize(e,u),t}return p(),t={tick:f,restart:function(){return c.restart(d),t},stop:function(){return c.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),s.forEach(m),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(a=+e,t):a},velocityDecay:function(e){return arguments.length?(o=1-e,t):1-o},randomSource:function(e){return arguments.length?(u=e,s.forEach(m),t):u},force:function(e,n){return arguments.length>1?(n==null?s.delete(e):s.set(e,m(n)),t):s.get(e)},find:function(t,n,r){var i=0,a=e.length,o,s,c,l,u;for(r==null?r=1/0:r*=r,i=0;i<a;++i)l=e[i],o=t-l.x,s=n-l.y,c=o*o+s*s,c<r&&(u=l,r=c);return u},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}}function Uo(){var e,t,n,r,i=Eo(-30),a,o=1,s=1/0,c=.81;function l(n){var i,a=e.length,o=Co(e,Ro,zo).visitAfter(d);for(r=n,i=0;i<a;++i)t=e[i],o.visit(f)}function u(){if(e){var t,n=e.length,r;for(a=Array(n),t=0;t<n;++t)r=e[t],a[r.index]=+i(r,t,e)}}function d(e){var t=0,n,r,i=0,o,s,c;if(e.length){for(o=s=c=0;c<4;++c)(n=e[c])&&(r=Math.abs(n.value))&&(t+=n.value,i+=r,o+=r*n.x,s+=r*n.y);e.x=o/i,e.y=s/i}else{n=e,n.x=n.data.x,n.y=n.data.y;do t+=a[n.data.index];while(n=n.next)}e.value=t}function f(e,i,l,u){if(!e.value)return!0;var d=e.x-t.x,f=e.y-t.y,p=u-i,m=d*d+f*f;if(p*p/c<m)return m<s&&(d===0&&(d=Do(n),m+=d*d),f===0&&(f=Do(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)),t.vx+=d*e.value*r/m,t.vy+=f*e.value*r/m),!0;if(!(e.length||m>=s)){(e.data!==t||e.next)&&(d===0&&(d=Do(n),m+=d*d),f===0&&(f=Do(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)));do e.data!==t&&(p=a[e.data.index]*r/m,t.vx+=d*p,t.vy+=f*p);while(e=e.next)}}return l.initialize=function(t,r){e=t,n=r,u()},l.strength=function(e){return arguments.length?(i=typeof e==`function`?e:Eo(+e),u(),l):i},l.distanceMin=function(e){return arguments.length?(o=e*e,l):Math.sqrt(o)},l.distanceMax=function(e){return arguments.length?(s=e*e,l):Math.sqrt(s)},l.theta=function(e){return arguments.length?(c=e*e,l):Math.sqrt(c)},l}function Wo(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Go(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ko(e){return e=Go(Math.abs(e)),e?e[1]:NaN}function qo(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Jo(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Yo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xo(e){if(!(t=Yo.exec(e)))throw Error(`invalid format: `+e);var t;return new Zo({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Xo.prototype=Zo.prototype;function Zo(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}Zo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function Qo(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var $o;function es(e,t){var n=Go(e,t);if(!n)return $o=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-($o=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Go(e,Math.max(0,t+a-1))[0]}function ts(e,t){var n=Go(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var ns={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Wo,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ts(e*100,t),r:ts,s:es,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function rs(e){return e}var is=Array.prototype.map,as=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function os(e){var t=e.grouping===void 0||e.thousands===void 0?rs:qo(is.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?rs:Jo(is.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Xo(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):ns[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=ns[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=Qo(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&$o!==void 0?as[8+$o/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Ko(t)/3)))*3,r=10**-n,i=l((e=Xo(e),e.type=`f`,e),{suffix:as[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var ss,cs,ls;us({thousands:`,`,grouping:[3],currency:[`$`,``]});function us(e){return ss=os(e),cs=ss.format,ls=ss.formatPrefix,ss}function ds(e){return Math.max(0,-Ko(Math.abs(e)))}function fs(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ko(t)/3)))*3-Ko(Math.abs(e)))}function ps(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ko(t)-Ko(e))+1}function ms(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function hs(){return this.eachAfter(ms)}function gs(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function _s(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function vs(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function ys(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function bs(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function xs(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Ss(e){for(var t=this,n=Cs(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Cs(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function ws(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Ts(){return Array.from(this)}function Es(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Ds(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Os(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function ks(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Ms)):t===void 0&&(t=js);for(var n=new Fs(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new Fs(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Ps)}function As(){return ks(this).eachBefore(Ns)}function js(e){return e.children}function Ms(e){return Array.isArray(e)?e[1]:null}function Ns(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ps(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Fs(e){this.data=e,this.depth=this.height=0,this.parent=null}Fs.prototype=ks.prototype={constructor:Fs,count:hs,each:gs,eachAfter:vs,eachBefore:_s,find:ys,sum:bs,sort:xs,path:Ss,ancestors:ws,descendants:Ts,leaves:Es,links:Ds,copy:As,[Symbol.iterator]:Os};function Is(e){if(typeof e!=`function`)throw Error();return e}function Ls(){return 0}function Rs(e){return function(){return e}}function zs(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Bs(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function Vs(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var Hs=(1+Math.sqrt(5))/2;function Us(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?Bs(c,n,r,i,h?r+=m*g/h:a):Vs(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var Ws=(function e(t){function n(e,n,r,i,a){Us(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(Hs);function Gs(){var e=Ws,t=!1,n=1,r=1,i=[0],a=Ls,o=Ls,s=Ls,c=Ls,l=Ls;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(zs),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=Is(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:Rs(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:Rs(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:Rs(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:Rs(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:Rs(+e),u):l},u}function Ks(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var qs=Symbol(`implicit`);function Js(){var e=new s,t=[],n=[],r=qs;function i(i){let a=e.get(i);if(a===void 0){if(r!==qs)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new s;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Js(t,n).unknown(r)},Ks.apply(i,arguments),i}function Ys(){var e=Js().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=x(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return Ys(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},Ks.apply(d(),arguments)}function Xs(e){return function(){return e}}function Zs(e){return+e}var Qs=[0,1];function $s(e){return e}function ec(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Xs(isNaN(t)?NaN:.5)}function tc(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function nc(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=ec(i,r),a=n(o,a)):(r=ec(r,i),a=n(a,o)),function(e){return a(r(e))}}function rc(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=ec(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=o(e,t,1,r)-1;return a[n](i[n](t))}}function ic(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ac(){var e=Qs,t=Qs,n=Ur,r,i,a,o=$s,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==$s&&(o=tc(e[0],e[n-1])),s=n>2?rc:nc,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),L))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Zs),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Wr,u()},d.clamp=function(e){return arguments.length?(o=e?!0:$s,u()):o!==$s},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function oc(){return ac()($s,$s)}function sc(e,t,n,r){var i=v(e,t,n),a;switch(r=Xo(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=fs(i,o))&&(r.precision=a),ls(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=ps(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=ds(i))&&(r.precision=a-(r.type===`%`)*2);break}return cs(r)}function cc(e){var t=e.domain;return e.ticks=function(e){var n=t();return g(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return sc(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=_(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function lc(){var e=oc();return e.copy=function(){return ic(e,lc())},Ks.apply(e,arguments),cc(e)}function uc(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var dc=new Date,fc=new Date;function V(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>V(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(dc.setTime(+t),fc.setTime(+r),e(dc),e(fc),Math.floor(n(dc,fc))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var pc=V(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?V(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):pc),pc.range;var mc=1e3,H=mc*60,hc=H*60,gc=hc*24,_c=gc*7,vc=gc*30,yc=gc*365,bc=V(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*mc)},(e,t)=>(t-e)/mc,e=>e.getUTCSeconds());bc.range;var xc=V(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mc)},(e,t)=>{e.setTime(+e+t*H)},(e,t)=>(t-e)/H,e=>e.getMinutes());xc.range;var Sc=V(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*H)},(e,t)=>(t-e)/H,e=>e.getUTCMinutes());Sc.range;var Cc=V(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mc-e.getMinutes()*H)},(e,t)=>{e.setTime(+e+t*hc)},(e,t)=>(t-e)/hc,e=>e.getHours());Cc.range;var wc=V(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*hc)},(e,t)=>(t-e)/hc,e=>e.getUTCHours());wc.range;var Tc=V(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*H)/gc,e=>e.getDate()-1);Tc.range;var Ec=V(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gc,e=>e.getUTCDate()-1);Ec.range;var Dc=V(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gc,e=>Math.floor(e/gc));Dc.range;function Oc(e){return V(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*H)/_c)}var kc=Oc(0),Ac=Oc(1),jc=Oc(2),Mc=Oc(3),Nc=Oc(4),Pc=Oc(5),Fc=Oc(6);kc.range,Ac.range,jc.range,Mc.range,Nc.range,Pc.range,Fc.range;function Ic(e){return V(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/_c)}var Lc=Ic(0),Rc=Ic(1),zc=Ic(2),Bc=Ic(3),Vc=Ic(4),Hc=Ic(5),Uc=Ic(6);Lc.range,Rc.range,zc.range,Bc.range,Vc.range,Hc.range,Uc.range;var Wc=V(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Wc.range;var Gc=V(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Gc.range;var Kc=V(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Kc.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:V(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Kc.range;var qc=V(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());qc.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:V(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),qc.range;function Jc(e,t,r,i,a,o){let s=[[bc,1,mc],[bc,5,5*mc],[bc,15,15*mc],[bc,30,30*mc],[o,1,H],[o,5,5*H],[o,15,15*H],[o,30,30*H],[a,1,hc],[a,3,3*hc],[a,6,6*hc],[a,12,12*hc],[i,1,gc],[i,2,2*gc],[r,1,_c],[t,1,vc],[t,3,3*vc],[e,1,yc]];function c(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:l(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function l(t,r,i){let a=Math.abs(r-t)/i,o=n(([,,e])=>e).right(s,a);if(o===s.length)return e.every(v(t/yc,r/yc,i));if(o===0)return pc.every(Math.max(v(t,r,i),1));let[c,l]=s[a/s[o-1][2]<s[o][2]/a?o-1:o];return c.every(l)}return[c,l]}var[Yc,Xc]=Jc(qc,Gc,Lc,Dc,wc,Sc),[Zc,Qc]=Jc(Kc,Wc,kc,Tc,Cc,xc);function $c(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function el(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nl(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=sl(i),u=cl(i),d=sl(a),f=cl(a),p=sl(o),m=cl(o),h=sl(s),g=cl(s),_=sl(c),v=cl(c),y={a:A,A:j,b:M,B:re,c:null,d:kl,e:kl,f:Pl,g:Gl,G:ql,H:Al,I:jl,j:Ml,L:Nl,m:Fl,M:Il,p:ie,q:ae,Q:gu,s:_u,S:Ll,u:Rl,U:zl,V:Vl,w:Hl,W:Ul,x:null,X:null,y:Wl,Y:Kl,Z:Jl,"%":hu},b={a:oe,A:N,b:se,B:ce,c:null,d:Yl,e:Yl,f:eu,g:du,G:pu,H:Xl,I:Zl,j:Ql,L:$l,m:tu,M:nu,p:le,q:ue,Q:gu,s:_u,S:ru,u:iu,U:au,V:su,w:cu,W:lu,x:null,X:null,y:uu,Y:fu,Z:mu,"%":hu},x={a:E,A:D,b:O,B:k,c:ee,d:yl,e:yl,f:Tl,g:hl,G:ml,H:xl,I:xl,j:bl,L:wl,m:vl,M:Sl,p:T,q:_l,Q:Dl,s:Ol,S:Cl,u:ul,U:dl,V:fl,w:ll,W:pl,x:te,X:ne,y:hl,Y:ml,Z:gl,"%":El};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=rl[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=tl(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=el(tl(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Rc.ceil(a):Rc(a),a=Ec.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=$c(tl(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Ac.ceil(a):Ac(a),a=Tc.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?el(tl(r.y,0,1)).getUTCDay():$c(tl(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,el(r)):$c(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in rl?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,n,r){return w(e,t,n,r)}function te(e,t,r){return w(e,n,t,r)}function ne(e,t,n){return w(e,r,t,n)}function A(e){return o[e.getDay()]}function j(e){return a[e.getDay()]}function M(e){return c[e.getMonth()]}function re(e){return s[e.getMonth()]}function ie(e){return i[+(e.getHours()>=12)]}function ae(e){return 1+~~(e.getMonth()/3)}function oe(e){return o[e.getUTCDay()]}function N(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function le(e){return i[+(e.getUTCHours()>=12)]}function ue(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var rl={"-":``,_:` `,0:`0`},U=/^\s*\d+/,il=/^%/,al=/[\\^$*+?|[\]().{}]/g;function W(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function ol(e){return e.replace(al,`\\$&`)}function sl(e){return RegExp(`^(?:`+e.map(ol).join(`|`)+`)`,`i`)}function cl(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ll(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ul(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function dl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ml(e,t,n){var r=U.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function gl(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function _l(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function yl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function bl(e,t,n){var r=U.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function xl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Sl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Cl(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wl(e,t,n){var r=U.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=U.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function El(e,t,n){var r=il.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Dl(e,t,n){var r=U.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ol(e,t,n){var r=U.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function kl(e,t){return W(e.getDate(),t,2)}function Al(e,t){return W(e.getHours(),t,2)}function jl(e,t){return W(e.getHours()%12||12,t,2)}function Ml(e,t){return W(1+Tc.count(Kc(e),e),t,3)}function Nl(e,t){return W(e.getMilliseconds(),t,3)}function Pl(e,t){return Nl(e,t)+`000`}function Fl(e,t){return W(e.getMonth()+1,t,2)}function Il(e,t){return W(e.getMinutes(),t,2)}function Ll(e,t){return W(e.getSeconds(),t,2)}function Rl(e){var t=e.getDay();return t===0?7:t}function zl(e,t){return W(kc.count(Kc(e)-1,e),t,2)}function Bl(e){var t=e.getDay();return t>=4||t===0?Nc(e):Nc.ceil(e)}function Vl(e,t){return e=Bl(e),W(Nc.count(Kc(e),e)+(Kc(e).getDay()===4),t,2)}function Hl(e){return e.getDay()}function Ul(e,t){return W(Ac.count(Kc(e)-1,e),t,2)}function Wl(e,t){return W(e.getFullYear()%100,t,2)}function Gl(e,t){return e=Bl(e),W(e.getFullYear()%100,t,2)}function Kl(e,t){return W(e.getFullYear()%1e4,t,4)}function ql(e,t){var n=e.getDay();return e=n>=4||n===0?Nc(e):Nc.ceil(e),W(e.getFullYear()%1e4,t,4)}function Jl(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+W(t/60|0,`0`,2)+W(t%60,`0`,2)}function Yl(e,t){return W(e.getUTCDate(),t,2)}function Xl(e,t){return W(e.getUTCHours(),t,2)}function Zl(e,t){return W(e.getUTCHours()%12||12,t,2)}function Ql(e,t){return W(1+Ec.count(qc(e),e),t,3)}function $l(e,t){return W(e.getUTCMilliseconds(),t,3)}function eu(e,t){return $l(e,t)+`000`}function tu(e,t){return W(e.getUTCMonth()+1,t,2)}function nu(e,t){return W(e.getUTCMinutes(),t,2)}function ru(e,t){return W(e.getUTCSeconds(),t,2)}function iu(e){var t=e.getUTCDay();return t===0?7:t}function au(e,t){return W(Lc.count(qc(e)-1,e),t,2)}function ou(e){var t=e.getUTCDay();return t>=4||t===0?Vc(e):Vc.ceil(e)}function su(e,t){return e=ou(e),W(Vc.count(qc(e),e)+(qc(e).getUTCDay()===4),t,2)}function cu(e){return e.getUTCDay()}function lu(e,t){return W(Rc.count(qc(e)-1,e),t,2)}function uu(e,t){return W(e.getUTCFullYear()%100,t,2)}function du(e,t){return e=ou(e),W(e.getUTCFullYear()%100,t,2)}function fu(e,t){return W(e.getUTCFullYear()%1e4,t,4)}function pu(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Vc(e):Vc.ceil(e),W(e.getUTCFullYear()%1e4,t,4)}function mu(){return`+0000`}function hu(){return`%`}function gu(e){return+e}function _u(e){return Math.floor(e/1e3)}var vu,yu;bu({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function bu(e){return vu=nl(e),yu=vu.format,vu.parse,vu.utcFormat,vu.utcParse,vu}function xu(e){return new Date(e)}function Su(e){return e instanceof Date?+e:+new Date(+e)}function Cu(e,t,n,r,i,a,o,s,c,l){var u=oc(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,Su)):f().map(xu)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(uc(n,e)):u},u.copy=function(){return ic(u,Cu(e,t,n,r,i,a,o,s,c,l))},u}function wu(){return Ks.apply(Cu(Zc,Qc,Kc,Wc,kc,Tc,Cc,xc,bc,yu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Tu(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var Eu=Tu(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`);function G(e){return function(){return e}}var Du=Math.abs,K=Math.atan2,Ou=Math.cos,ku=Math.max,Au=Math.min,ju=Math.sin,Mu=Math.sqrt,Nu=Math.PI,Pu=Nu/2,Fu=2*Nu;function Iu(e){return e>1?0:e<-1?Nu:Math.acos(e)}function Lu(e){return e>=1?Pu:e<=-1?-Pu:Math.asin(e)}function Ru(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new no(t)}function zu(e){return e.innerRadius}function Bu(e){return e.outerRadius}function Vu(e){return e.startAngle}function Hu(e){return e.endAngle}function Uu(e){return e&&e.padAngle}function Wu(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Gu(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Mu(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Mu(ku(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,ee=E-g,te=D-_;return O*O+k*k>ee*ee+te*te&&(w=E,T=D),{cx:w,cy:T,x01:-u,y01:-d,x11:w*(i/x-1),y11:T*(i/x-1)}}function Ku(){var e=zu,t=Bu,n=G(0),r=null,i=Vu,a=Hu,o=Uu,s=null,c=Ru(l);function l(){var l,u,d=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-Pu,m=a.apply(this,arguments)-Pu,h=Du(m-p),g=m>p;if(s||=l=c(),f<d&&(u=f,f=d,d=u),!(f>1e-12))s.moveTo(0,0);else if(h>Fu-1e-12)s.moveTo(f*Ou(p),f*ju(p)),s.arc(0,0,f,p,m,!g),d>1e-12&&(s.moveTo(d*Ou(m),d*ju(m)),s.arc(0,0,d,m,p,g));else{var _=p,v=m,y=p,b=m,x=h,S=h,C=o.apply(this,arguments)/2,w=C>1e-12&&(r?+r.apply(this,arguments):Mu(d*d+f*f)),T=Au(Du(f-d)/2,+n.apply(this,arguments)),E=T,D=T,O,k;if(w>1e-12){var ee=Lu(w/d*ju(C)),te=Lu(w/f*ju(C));(x-=ee*2)>1e-12?(ee*=g?1:-1,y+=ee,b-=ee):(x=0,y=b=(p+m)/2),(S-=te*2)>1e-12?(te*=g?1:-1,_+=te,v-=te):(S=0,_=v=(p+m)/2)}var ne=f*Ou(_),A=f*ju(_),j=d*Ou(b),M=d*ju(b);if(T>1e-12){var re=f*Ou(v),ie=f*ju(v),ae=d*Ou(y),oe=d*ju(y),N;if(h<Nu)if(N=Wu(ne,A,ae,oe,re,ie,j,M)){var se=ne-N[0],ce=A-N[1],le=re-N[0],ue=ie-N[1],de=1/ju(Iu((se*le+ce*ue)/(Mu(se*se+ce*ce)*Mu(le*le+ue*ue)))/2),fe=Mu(N[0]*N[0]+N[1]*N[1]);E=Au(T,(d-fe)/(de-1)),D=Au(T,(f-fe)/(de+1))}else E=D=0}S>1e-12?D>1e-12?(O=Gu(ae,oe,ne,A,f,D,g),k=Gu(re,ie,j,M,f,D,g),s.moveTo(O.cx+O.x01,O.cy+O.y01),D<T?s.arc(O.cx,O.cy,D,K(O.y01,O.x01),K(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,D,K(O.y01,O.x01),K(O.y11,O.x11),!g),s.arc(0,0,f,K(O.cy+O.y11,O.cx+O.x11),K(k.cy+k.y11,k.cx+k.x11),!g),s.arc(k.cx,k.cy,D,K(k.y11,k.x11),K(k.y01,k.x01),!g))):(s.moveTo(ne,A),s.arc(0,0,f,_,v,!g)):s.moveTo(ne,A),!(d>1e-12)||!(x>1e-12)?s.lineTo(j,M):E>1e-12?(O=Gu(j,M,re,ie,d,-E,g),k=Gu(ne,A,ae,oe,d,-E,g),s.lineTo(O.cx+O.x01,O.cy+O.y01),E<T?s.arc(O.cx,O.cy,E,K(O.y01,O.x01),K(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,E,K(O.y01,O.x01),K(O.y11,O.x11),!g),s.arc(0,0,d,K(O.cy+O.y11,O.cx+O.x11),K(k.cy+k.y11,k.cx+k.x11),g),s.arc(k.cx,k.cy,E,K(k.y11,k.x11),K(k.y01,k.x01),!g))):s.arc(0,0,d,b,y,g)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Nu/2;return[Ou(r)*n,ju(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:G(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:G(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:G(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:G(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:G(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:G(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:G(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}Array.prototype.slice;function qu(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Ju(e){this._context=e}Ju.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Yu(e){return new Ju(e)}function Xu(e){return e[0]}function Zu(e){return e[1]}function Qu(e,t){var n=G(!0),r=null,i=Yu,a=null,o=Ru(s);e=typeof e==`function`?e:e===void 0?Xu:G(e),t=typeof t==`function`?t:t===void 0?Zu:G(t);function s(s){var c,l=(s=qu(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:G(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:G(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:G(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function $u(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ed(e){return e}function td(){var e=ed,t=$u,n=null,r=G(0),i=G(Fu),a=G(0);function o(o){var s,c=(o=qu(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(Fu,Math.max(-Fu,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s<c;++s)(y=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s<c;++s,m=g)l=f[s],y=p[l],g=m+(y>0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:G(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:G(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:G(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:G(+e),o):a},o}var nd=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function rd(e){return new nd(e,!0)}function id(e){return new nd(e,!1)}function ad(){}function od(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function sd(e){this._context=e}sd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:od(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:od(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cd(e){return new sd(e)}function ld(e){this._context=e}ld.prototype={areaStart:ad,areaEnd:ad,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:od(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ud(e){return new ld(e)}function dd(e){this._context=e}dd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:od(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fd(e){return new dd(e)}function pd(e,t){this._basis=new sd(e),this._beta=t}pd.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var md=(function e(t){function n(e){return t===1?new sd(e):new pd(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function hd(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function gd(e,t){this._context=e,this._k=(1-t)/6}gd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:hd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:hd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _d=(function e(t){function n(e){return new gd(e,t)}return n.tension=function(t){return e(+t)},n})(0);function vd(e,t){this._context=e,this._k=(1-t)/6}vd.prototype={areaStart:ad,areaEnd:ad,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:hd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var yd=(function e(t){function n(e){return new vd(e,t)}return n.tension=function(t){return e(+t)},n})(0);function bd(e,t){this._context=e,this._k=(1-t)/6}bd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xd=(function e(t){function n(e){return new bd(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Sd(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Cd(e,t){this._context=e,this._alpha=t}Cd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Sd(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var wd=(function e(t){function n(e){return t?new Cd(e,t):new gd(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Td(e,t){this._context=e,this._alpha=t}Td.prototype={areaStart:ad,areaEnd:ad,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Sd(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ed=(function e(t){function n(e){return t?new Td(e,t):new vd(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Dd(e,t){this._context=e,this._alpha=t}Dd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sd(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Od=(function e(t){function n(e){return t?new Dd(e,t):new bd(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function kd(e){this._context=e}kd.prototype={areaStart:ad,areaEnd:ad,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ad(e){return new kd(e)}function jd(e){return e<0?-1:1}function Md(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(jd(a)+jd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Nd(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Pd(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Fd(e){this._context=e}Fd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pd(this,this._t0,Nd(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Pd(this,Nd(this,n=Md(this,e,t)),n);break;default:Pd(this,this._t0,n=Md(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Id(e){this._context=new Ld(e)}(Id.prototype=Object.create(Fd.prototype)).point=function(e,t){Fd.prototype.point.call(this,t,e)};function Ld(e){this._context=e}Ld.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Rd(e){return new Fd(e)}function zd(e){return new Id(e)}function Bd(e){this._context=e}Bd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Vd(e),i=Vd(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Vd(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Hd(e){return new Bd(e)}function Ud(e,t){this._context=e,this._t=t}Ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Wd(e){return new Ud(e,.5)}function Gd(e){return new Ud(e,0)}function Kd(e){return new Ud(e,1)}var qd=e=>()=>e;function Jd(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Yd(e,t,n){this.k=e,this.x=t,this.y=n}Yd.prototype={constructor:Yd,scale:function(e){return e===1?this:new Yd(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Yd(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Xd=new Yd(1,0,0);Zd.prototype=Yd.prototype;function Zd(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Xd;return e.__zoom}function Qd(e){e.stopImmediatePropagation()}function $d(e){e.preventDefault(),e.stopImmediatePropagation()}function ef(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function tf(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function nf(){return this.__zoom||Xd}function rf(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function af(){return navigator.maxTouchPoints||`ontouchstart`in this}function of(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function sf(){var e=ef,t=tf,n=of,r=rf,i=af,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=ii,l=ie(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,nf).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,k).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,nf),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Xd.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Yd(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Yd(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Yd(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=on(this.that).datum();l.call(e,this.that,new Jd(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=cn(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Pi(this),s.start();$d(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=on(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=cn(t,i),l=t.clientX,u=t.clientY;pn(t.view),Qd(t),a.mouse=[c,this.__zoom.invert(c)],Pi(this),a.start();function d(e){if($d(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=cn(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),mn(e.view,a.moved),$d(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=cn(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);$d(r),s>0?on(this).transition().duration(s).call(x,d,c,r):on(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Qd(t),s=0;s<i;++s)c=r[s],l=cn(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Pi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for($d(e),s=0;s<a;++s)c=i[s],l=cn(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function k(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Qd(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=cn(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=on(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:qd(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:qd(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:qd(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:qd([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var cf=typeof global==`object`&&global&&global.Object===Object&&global,lf=typeof self==`object`&&self&&self.Object===Object&&self,q=cf||lf||Function(`return this`)(),J=q.Symbol,uf=Object.prototype,df=uf.hasOwnProperty,ff=uf.toString,pf=J?J.toStringTag:void 0;function mf(e){var t=df.call(e,pf),n=e[pf];try{e[pf]=void 0;var r=!0}catch{}var i=ff.call(e);return r&&(t?e[pf]=n:delete e[pf]),i}var hf=Object.prototype.toString;function gf(e){return hf.call(e)}var _f=`[object Null]`,vf=`[object Undefined]`,yf=J?J.toStringTag:void 0;function bf(e){return e==null?e===void 0?vf:_f:yf&&yf in Object(e)?mf(e):gf(e)}function Y(e){return typeof e==`object`&&!!e}var xf=`[object Symbol]`;function Sf(e){return typeof e==`symbol`||Y(e)&&bf(e)==xf}function Cf(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var X=Array.isArray,wf=1/0,Tf=J?J.prototype:void 0,Ef=Tf?Tf.toString:void 0;function Df(e){if(typeof e==`string`)return e;if(X(e))return Cf(e,Df)+``;if(Sf(e))return Ef?Ef.call(e):``;var t=e+``;return t==`0`&&1/e==-wf?`-0`:t}var Of=/\s/;function kf(e){for(var t=e.length;t--&&Of.test(e.charAt(t)););return t}var Af=/^\s+/;function jf(e){return e&&e.slice(0,kf(e)+1).replace(Af,``)}function Z(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Mf=NaN,Nf=/^[-+]0x[0-9a-f]+$/i,Pf=/^0b[01]+$/i,Ff=/^0o[0-7]+$/i,If=parseInt;function Lf(e){if(typeof e==`number`)return e;if(Sf(e))return Mf;if(Z(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Z(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=jf(e);var n=Pf.test(e);return n||Ff.test(e)?If(e.slice(2),n?2:8):Nf.test(e)?Mf:+e}var Rf=1/0,zf=17976931348623157e292;function Bf(e){return e?(e=Lf(e),e===Rf||e===-Rf?(e<0?-1:1)*zf:e===e?e:0):e===0?e:0}function Vf(e){var t=Bf(e),n=t%1;return t===t?n?t-n:t:0}function Hf(e){return e}var Uf=`[object AsyncFunction]`,Wf=`[object Function]`,Gf=`[object GeneratorFunction]`,Kf=`[object Proxy]`;function qf(e){if(!Z(e))return!1;var t=bf(e);return t==Wf||t==Gf||t==Uf||t==Kf}var Jf=q[`__core-js_shared__`],Yf=function(){var e=/[^.]+$/.exec(Jf&&Jf.keys&&Jf.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Xf(e){return!!Yf&&Yf in e}var Zf=Function.prototype.toString;function Qf(e){if(e!=null){try{return Zf.call(e)}catch{}try{return e+``}catch{}}return``}var $f=/[\\^$.*+?()[\]{}|]/g,ep=/^\[object .+?Constructor\]$/,tp=Function.prototype,np=Object.prototype,rp=tp.toString,ip=np.hasOwnProperty,ap=RegExp(`^`+rp.call(ip).replace($f,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function op(e){return!Z(e)||Xf(e)?!1:(qf(e)?ap:ep).test(Qf(e))}function sp(e,t){return e?.[t]}function cp(e,t){var n=sp(e,t);return op(n)?n:void 0}var lp=cp(q,`WeakMap`),up=Object.create,dp=function(){function e(){}return function(t){if(!Z(t))return{};if(up)return up(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function fp(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function pp(){}function mp(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var hp=800,gp=16,_p=Date.now;function vp(e){var t=0,n=0;return function(){var r=_p(),i=gp-(r-n);if(n=r,i>0){if(++t>=hp)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yp(e){return function(){return e}}var bp=function(){try{var e=cp(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),xp=vp(bp?function(e,t){return bp(e,`toString`,{configurable:!0,enumerable:!1,value:yp(t),writable:!0})}:Hf);function Sp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Cp(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function wp(e){return e!==e}function Tp(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Ep(e,t,n){return t===t?Tp(e,t,n):Cp(e,wp,n)}function Dp(e,t){return!!(e!=null&&e.length)&&Ep(e,t,0)>-1}var Op=9007199254740991,kp=/^(?:0|[1-9]\d*)$/;function Ap(e,t){var n=typeof e;return t??=Op,!!t&&(n==`number`||n!=`symbol`&&kp.test(e))&&e>-1&&e%1==0&&e<t}function jp(e,t,n){t==`__proto__`&&bp?bp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Mp(e,t){return e===t||e!==e&&t!==t}var Np=Object.prototype.hasOwnProperty;function Pp(e,t,n){var r=e[t];(!(Np.call(e,t)&&Mp(r,n))||n===void 0&&!(t in e))&&jp(e,t,n)}function Fp(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?jp(n,s,c):Pp(n,s,c)}return n}var Ip=Math.max;function Lp(e,t,n){return t=Ip(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Ip(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),fp(e,this,s)}}function Rp(e,t){return xp(Lp(e,t,Hf),e+``)}var zp=9007199254740991;function Bp(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=zp}function Vp(e){return e!=null&&Bp(e.length)&&!qf(e)}function Hp(e,t,n){if(!Z(n))return!1;var r=typeof t;return(r==`number`?Vp(n)&&Ap(t,n.length):r==`string`&&t in n)?Mp(n[t],e):!1}function Up(e){return Rp(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Hp(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var Wp=Object.prototype;function Gp(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Wp)}function Kp(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var qp=`[object Arguments]`;function Jp(e){return Y(e)&&bf(e)==qp}var Yp=Object.prototype,Xp=Yp.hasOwnProperty,Zp=Yp.propertyIsEnumerable,Qp=Jp(function(){return arguments}())?Jp:function(e){return Y(e)&&Xp.call(e,`callee`)&&!Zp.call(e,`callee`)};function $p(){return!1}var em=typeof exports==`object`&&exports&&!exports.nodeType&&exports,tm=em&&typeof module==`object`&&module&&!module.nodeType&&module,nm=tm&&tm.exports===em?q.Buffer:void 0,rm=(nm?nm.isBuffer:void 0)||$p,im=`[object Arguments]`,am=`[object Array]`,om=`[object Boolean]`,sm=`[object Date]`,cm=`[object Error]`,lm=`[object Function]`,um=`[object Map]`,dm=`[object Number]`,fm=`[object Object]`,pm=`[object RegExp]`,mm=`[object Set]`,hm=`[object String]`,gm=`[object WeakMap]`,_m=`[object ArrayBuffer]`,vm=`[object DataView]`,ym=`[object Float32Array]`,bm=`[object Float64Array]`,xm=`[object Int8Array]`,Sm=`[object Int16Array]`,Cm=`[object Int32Array]`,wm=`[object Uint8Array]`,Tm=`[object Uint8ClampedArray]`,Em=`[object Uint16Array]`,Dm=`[object Uint32Array]`,Q={};Q[ym]=Q[bm]=Q[xm]=Q[Sm]=Q[Cm]=Q[wm]=Q[Tm]=Q[Em]=Q[Dm]=!0,Q[im]=Q[am]=Q[_m]=Q[om]=Q[vm]=Q[sm]=Q[cm]=Q[lm]=Q[um]=Q[dm]=Q[fm]=Q[pm]=Q[mm]=Q[hm]=Q[gm]=!1;function Om(e){return Y(e)&&Bp(e.length)&&!!Q[bf(e)]}function km(e){return function(t){return e(t)}}var Am=typeof exports==`object`&&exports&&!exports.nodeType&&exports,jm=Am&&typeof module==`object`&&module&&!module.nodeType&&module,Mm=jm&&jm.exports===Am&&cf.process,Nm=function(){try{return jm&&jm.require&&jm.require(`util`).types||Mm&&Mm.binding&&Mm.binding(`util`)}catch{}}(),Pm=Nm&&Nm.isTypedArray,Fm=Pm?km(Pm):Om,Im=Object.prototype.hasOwnProperty;function Lm(e,t){var n=X(e),r=!n&&Qp(e),i=!n&&!r&&rm(e),a=!n&&!r&&!i&&Fm(e),o=n||r||i||a,s=o?Kp(e.length,String):[],c=s.length;for(var l in e)(t||Im.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ap(l,c)))&&s.push(l);return s}function Rm(e,t){return function(n){return e(t(n))}}var zm=Rm(Object.keys,Object),Bm=Object.prototype.hasOwnProperty;function Vm(e){if(!Gp(e))return zm(e);var t=[];for(var n in Object(e))Bm.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Hm(e){return Vp(e)?Lm(e):Vm(e)}function Um(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Wm=Object.prototype.hasOwnProperty;function Gm(e){if(!Z(e))return Um(e);var t=Gp(e),n=[];for(var r in e)r==`constructor`&&(t||!Wm.call(e,r))||n.push(r);return n}function Km(e){return Vp(e)?Lm(e,!0):Gm(e)}var qm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jm=/^\w*$/;function Ym(e,t){if(X(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Sf(e)?!0:Jm.test(e)||!qm.test(e)||t!=null&&e in Object(t)}var Xm=cp(Object,`create`);function Zm(){this.__data__=Xm?Xm(null):{},this.size=0}function Qm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var $m=`__lodash_hash_undefined__`,eh=Object.prototype.hasOwnProperty;function th(e){var t=this.__data__;if(Xm){var n=t[e];return n===$m?void 0:n}return eh.call(t,e)?t[e]:void 0}var nh=Object.prototype.hasOwnProperty;function rh(e){var t=this.__data__;return Xm?t[e]!==void 0:nh.call(t,e)}var ih=`__lodash_hash_undefined__`;function ah(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Xm&&t===void 0?ih:t,this}function oh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oh.prototype.clear=Zm,oh.prototype.delete=Qm,oh.prototype.get=th,oh.prototype.has=rh,oh.prototype.set=ah;function sh(){this.__data__=[],this.size=0}function ch(e,t){for(var n=e.length;n--;)if(Mp(e[n][0],t))return n;return-1}var lh=Array.prototype.splice;function uh(e){var t=this.__data__,n=ch(t,e);return n<0?!1:(n==t.length-1?t.pop():lh.call(t,n,1),--this.size,!0)}function dh(e){var t=this.__data__,n=ch(t,e);return n<0?void 0:t[n][1]}function fh(e){return ch(this.__data__,e)>-1}function ph(e,t){var n=this.__data__,r=ch(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function mh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mh.prototype.clear=sh,mh.prototype.delete=uh,mh.prototype.get=dh,mh.prototype.has=fh,mh.prototype.set=ph;var hh=cp(q,`Map`);function gh(){this.size=0,this.__data__={hash:new oh,map:new(hh||mh),string:new oh}}function _h(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function vh(e,t){var n=e.__data__;return _h(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function yh(e){var t=vh(this,e).delete(e);return this.size-=+!!t,t}function bh(e){return vh(this,e).get(e)}function xh(e){return vh(this,e).has(e)}function Sh(e,t){var n=vh(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ch(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ch.prototype.clear=gh,Ch.prototype.delete=yh,Ch.prototype.get=bh,Ch.prototype.has=xh,Ch.prototype.set=Sh;var wh=`Expected a function`;function Th(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(wh);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Th.Cache||Ch),n}Th.Cache=Ch;var Eh=500;function Dh(e){var t=Th(e,function(e){return n.size===Eh&&n.clear(),e}),n=t.cache;return t}var Oh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kh=/\\(\\)?/g,Ah=Dh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Oh,function(e,n,r,i){t.push(r?i.replace(kh,`$1`):n||e)}),t});function jh(e){return e==null?``:Df(e)}function Mh(e,t){return X(e)?e:Ym(e,t)?[e]:Ah(jh(e))}var Nh=1/0;function Ph(e){if(typeof e==`string`||Sf(e))return e;var t=e+``;return t==`0`&&1/e==-Nh?`-0`:t}function Fh(e,t){t=Mh(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ph(t[n++])];return n&&n==r?e:void 0}function Ih(e,t,n){var r=e==null?void 0:Fh(e,t);return r===void 0?n:r}function Lh(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Rh=J?J.isConcatSpreadable:void 0;function zh(e){return X(e)||Qp(e)||!!(Rh&&e&&e[Rh])}function Bh(e,t,n,r,i){var a=-1,o=e.length;for(n||=zh,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Bh(s,t-1,n,r,i):Lh(i,s):r||(i[i.length]=s)}return i}function Vh(e){return e!=null&&e.length?Bh(e,1):[]}function Hh(e){return xp(Lp(e,void 0,Vh),e+``)}var Uh=Rm(Object.getPrototypeOf,Object),Wh=`[object Object]`,Gh=Function.prototype,Kh=Object.prototype,qh=Gh.toString,Jh=Kh.hasOwnProperty,Yh=qh.call(Object);function Xh(e){if(!Y(e)||bf(e)!=Wh)return!1;var t=Uh(e);if(t===null)return!0;var n=Jh.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&qh.call(n)==Yh}var Zh=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Qh(e){return Zh.test(e)}function $h(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function eg(){this.__data__=new mh,this.size=0}function tg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ng(e){return this.__data__.get(e)}function rg(e){return this.__data__.has(e)}var ig=200;function ag(e,t){var n=this.__data__;if(n instanceof mh){var r=n.__data__;if(!hh||r.length<ig-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ch(r)}return n.set(e,t),this.size=n.size,this}function og(e){this.size=(this.__data__=new mh(e)).size}og.prototype.clear=eg,og.prototype.delete=tg,og.prototype.get=ng,og.prototype.has=rg,og.prototype.set=ag;function sg(e,t){return e&&Fp(t,Hm(t),e)}function cg(e,t){return e&&Fp(t,Km(t),e)}var lg=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ug=lg&&typeof module==`object`&&module&&!module.nodeType&&module,dg=ug&&ug.exports===lg?q.Buffer:void 0,fg=dg?dg.allocUnsafe:void 0;function pg(e,t){if(t)return e.slice();var n=e.length,r=fg?fg(n):new e.constructor(n);return e.copy(r),r}function mg(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function hg(){return[]}var gg=Object.prototype.propertyIsEnumerable,_g=Object.getOwnPropertySymbols,vg=_g?function(e){return e==null?[]:(e=Object(e),mg(_g(e),function(t){return gg.call(e,t)}))}:hg;function yg(e,t){return Fp(e,vg(e),t)}var bg=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Lh(t,vg(e)),e=Uh(e);return t}:hg;function xg(e,t){return Fp(e,bg(e),t)}function Sg(e,t,n){var r=t(e);return X(e)?r:Lh(r,n(e))}function Cg(e){return Sg(e,Hm,vg)}function wg(e){return Sg(e,Km,bg)}var Tg=cp(q,`DataView`),Eg=cp(q,`Promise`),Dg=cp(q,`Set`),Og=`[object Map]`,kg=`[object Object]`,Ag=`[object Promise]`,jg=`[object Set]`,Mg=`[object WeakMap]`,Ng=`[object DataView]`,Pg=Qf(Tg),Fg=Qf(hh),Ig=Qf(Eg),Lg=Qf(Dg),Rg=Qf(lp),zg=bf;(Tg&&zg(new Tg(new ArrayBuffer(1)))!=Ng||hh&&zg(new hh)!=Og||Eg&&zg(Eg.resolve())!=Ag||Dg&&zg(new Dg)!=jg||lp&&zg(new lp)!=Mg)&&(zg=function(e){var t=bf(e),n=t==kg?e.constructor:void 0,r=n?Qf(n):``;if(r)switch(r){case Pg:return Ng;case Fg:return Og;case Ig:return Ag;case Lg:return jg;case Rg:return Mg}return t});var Bg=zg,Vg=Object.prototype.hasOwnProperty;function Hg(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Vg.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var Ug=q.Uint8Array;function Wg(e){var t=new e.constructor(e.byteLength);return new Ug(t).set(new Ug(e)),t}function Gg(e,t){var n=t?Wg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Kg=/\w*$/;function qg(e){var t=new e.constructor(e.source,Kg.exec(e));return t.lastIndex=e.lastIndex,t}var Jg=J?J.prototype:void 0,Yg=Jg?Jg.valueOf:void 0;function Xg(e){return Yg?Object(Yg.call(e)):{}}function Zg(e,t){var n=t?Wg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Qg=`[object Boolean]`,$g=`[object Date]`,e_=`[object Map]`,t_=`[object Number]`,n_=`[object RegExp]`,r_=`[object Set]`,i_=`[object String]`,a_=`[object Symbol]`,o_=`[object ArrayBuffer]`,s_=`[object DataView]`,c_=`[object Float32Array]`,l_=`[object Float64Array]`,u_=`[object Int8Array]`,d_=`[object Int16Array]`,f_=`[object Int32Array]`,p_=`[object Uint8Array]`,m_=`[object Uint8ClampedArray]`,h_=`[object Uint16Array]`,g_=`[object Uint32Array]`;function __(e,t,n){var r=e.constructor;switch(t){case o_:return Wg(e);case Qg:case $g:return new r(+e);case s_:return Gg(e,n);case c_:case l_:case u_:case d_:case f_:case p_:case m_:case h_:case g_:return Zg(e,n);case e_:return new r;case t_:case i_:return new r(e);case n_:return qg(e);case r_:return new r;case a_:return Xg(e)}}function v_(e){return typeof e.constructor==`function`&&!Gp(e)?dp(Uh(e)):{}}var y_=`[object Map]`;function b_(e){return Y(e)&&Bg(e)==y_}var x_=Nm&&Nm.isMap,S_=x_?km(x_):b_,C_=`[object Set]`;function w_(e){return Y(e)&&Bg(e)==C_}var T_=Nm&&Nm.isSet,E_=T_?km(T_):w_,D_=1,O_=2,k_=4,A_=`[object Arguments]`,j_=`[object Array]`,M_=`[object Boolean]`,N_=`[object Date]`,P_=`[object Error]`,F_=`[object Function]`,I_=`[object GeneratorFunction]`,L_=`[object Map]`,R_=`[object Number]`,z_=`[object Object]`,B_=`[object RegExp]`,V_=`[object Set]`,H_=`[object String]`,U_=`[object Symbol]`,W_=`[object WeakMap]`,G_=`[object ArrayBuffer]`,K_=`[object DataView]`,q_=`[object Float32Array]`,J_=`[object Float64Array]`,Y_=`[object Int8Array]`,X_=`[object Int16Array]`,Z_=`[object Int32Array]`,Q_=`[object Uint8Array]`,$_=`[object Uint8ClampedArray]`,ev=`[object Uint16Array]`,tv=`[object Uint32Array]`,$={};$[A_]=$[j_]=$[G_]=$[K_]=$[M_]=$[N_]=$[q_]=$[J_]=$[Y_]=$[X_]=$[Z_]=$[L_]=$[R_]=$[z_]=$[B_]=$[V_]=$[H_]=$[U_]=$[Q_]=$[$_]=$[ev]=$[tv]=!0,$[P_]=$[F_]=$[W_]=!1;function nv(e,t,n,r,i,a){var o,s=t&D_,c=t&O_,l=t&k_;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Z(e))return e;var u=X(e);if(u){if(o=Hg(e),!s)return mp(e,o)}else{var d=Bg(e),f=d==F_||d==I_;if(rm(e))return pg(e,s);if(d==z_||d==A_||f&&!i){if(o=c||f?{}:v_(e),!s)return c?xg(e,cg(o,e)):yg(e,sg(o,e))}else{if(!$[d])return i?e:{};o=__(e,d,s)}}a||=new og;var p=a.get(e);if(p)return p;a.set(e,o),E_(e)?e.forEach(function(r){o.add(nv(r,t,n,r,e,a))}):S_(e)&&e.forEach(function(r,i){o.set(i,nv(r,t,n,i,e,a))});var m=u?void 0:(l?c?wg:Cg:c?Km:Hm)(e);return Sp(m||e,function(r,i){m&&(i=r,r=e[i]),Pp(o,i,nv(r,t,n,i,e,a))}),o}var rv=1,iv=4;function av(e){return nv(e,rv|iv)}var ov=`__lodash_hash_undefined__`;function sv(e){return this.__data__.set(e,ov),this}function cv(e){return this.__data__.has(e)}function lv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ch;++t<n;)this.add(e[t])}lv.prototype.add=lv.prototype.push=sv,lv.prototype.has=cv;function uv(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function dv(e,t){return e.has(t)}var fv=1,pv=2;function mv(e,t,n,r,i,a){var o=n&fv,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&pv?new lv:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!uv(t,function(e,t){if(!dv(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function hv(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function gv(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var _v=1,vv=2,yv=`[object Boolean]`,bv=`[object Date]`,xv=`[object Error]`,Sv=`[object Map]`,Cv=`[object Number]`,wv=`[object RegExp]`,Tv=`[object Set]`,Ev=`[object String]`,Dv=`[object Symbol]`,Ov=`[object ArrayBuffer]`,kv=`[object DataView]`,Av=J?J.prototype:void 0,jv=Av?Av.valueOf:void 0;function Mv(e,t,n,r,i,a,o){switch(n){case kv:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ov:return!(e.byteLength!=t.byteLength||!a(new Ug(e),new Ug(t)));case yv:case bv:case Cv:return Mp(+e,+t);case xv:return e.name==t.name&&e.message==t.message;case wv:case Ev:return e==t+``;case Sv:var s=hv;case Tv:var c=r&_v;if(s||=gv,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=vv,o.set(e,t);var u=mv(s(e),s(t),r,i,a,o);return o.delete(e),u;case Dv:if(jv)return jv.call(e)==jv.call(t)}return!1}var Nv=1,Pv=Object.prototype.hasOwnProperty;function Fv(e,t,n,r,i,a){var o=n&Nv,s=Cg(e),c=s.length;if(c!=Cg(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Pv.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var Iv=1,Lv=`[object Arguments]`,Rv=`[object Array]`,zv=`[object Object]`,Bv=Object.prototype.hasOwnProperty;function Vv(e,t,n,r,i,a){var o=X(e),s=X(t),c=o?Rv:Bg(e),l=s?Rv:Bg(t);c=c==Lv?zv:c,l=l==Lv?zv:l;var u=c==zv,d=l==zv,f=c==l;if(f&&rm(e)){if(!rm(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new og,o||Fm(e)?mv(e,t,n,r,i,a):Mv(e,t,c,n,r,i,a);if(!(n&Iv)){var p=u&&Bv.call(e,`__wrapped__`),m=d&&Bv.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new og,i(h,g,n,r,a)}}return f?(a||=new og,Fv(e,t,n,r,i,a)):!1}function Hv(e,t,n,r,i){return e===t?!0:e==null||t==null||!Y(e)&&!Y(t)?e!==e&&t!==t:Vv(e,t,n,r,Hv,i)}var Uv=1,Wv=2;function Gv(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new og;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?Hv(u,l,Uv|Wv,r,d):f))return!1}}return!0}function Kv(e){return e===e&&!Z(e)}function qv(e){for(var t=Hm(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Kv(i)]}return t}function Jv(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Yv(e){var t=qv(e);return t.length==1&&t[0][2]?Jv(t[0][0],t[0][1]):function(n){return n===e||Gv(n,e,t)}}function Xv(e,t){return e!=null&&t in Object(e)}function Zv(e,t,n){t=Mh(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Ph(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Bp(i)&&Ap(o,i)&&(X(e)||Qp(e)))}function Qv(e,t){return e!=null&&Zv(e,t,Xv)}var $v=1,ey=2;function ty(e,t){return Ym(e)&&Kv(t)?Jv(Ph(e),t):function(n){var r=Ih(n,e);return r===void 0&&r===t?Qv(n,e):Hv(t,r,$v|ey)}}function ny(e){return function(t){return t?.[e]}}function ry(e){return function(t){return Fh(t,e)}}function iy(e){return Ym(e)?ny(Ph(e)):ry(e)}function ay(e){return typeof e==`function`?e:e==null?Hf:typeof e==`object`?X(e)?ty(e[0],e[1]):Yv(e):iy(e)}function oy(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var sy=oy();function cy(e,t){return e&&sy(e,t,Hm)}function ly(e,t){return function(n,r){if(n==null)return n;if(!Vp(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var uy=ly(cy),dy=function(){return q.Date.now()},fy=`Expected a function`,py=Math.max,my=Math.min;function hy(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(fy);t=Lf(t)||0,Z(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?py(Lf(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?my(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=dy();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(dy())}function x(){var e=dy(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var gy=Object.prototype,_y=gy.hasOwnProperty,vy=Rp(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Hp(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=Km(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(u===void 0||Mp(u,gy[l])&&!_y.call(e,l))&&(e[l]=a[l])}return e});function yy(e,t,n){(n!==void 0&&!Mp(e[t],n)||n===void 0&&!(t in e))&&jp(e,t,n)}function by(e){return Y(e)&&Vp(e)}function xy(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function Sy(e){return Fp(e,Km(e))}function Cy(e,t,n,r,i,a,o){var s=xy(e,n),c=xy(t,n),l=o.get(c);if(l){yy(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=X(c),p=!f&&rm(c),m=!f&&!p&&Fm(c);u=c,f||p||m?X(s)?u=s:by(s)?u=mp(s):p?(d=!1,u=pg(c,!0)):m?(d=!1,u=Zg(c,!0)):u=[]:Xh(c)||Qp(c)?(u=s,Qp(s)?u=Sy(s):(!Z(s)||qf(s))&&(u=v_(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),yy(e,n,u)}function wy(e,t,n,r,i){e!==t&&sy(t,function(a,o){if(i||=new og,Z(a))Cy(e,t,o,n,wy,r,i);else{var s=r?r(xy(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),yy(e,o,s)}},Km)}function Ty(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Ey(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Dy(e){return typeof e==`function`?e:Hf}function Oy(e,t){return(X(e)?Sp:uy)(e,Dy(t))}function ky(e,t){var n=[];return uy(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ay(e,t){return(X(e)?mg:ky)(e,ay(t,3))}function jy(e){return function(t,n,r){var i=Object(t);if(!Vp(t)){var a=ay(n,3);t=Hm(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var My=Math.max;function Ny(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Vf(n);return i<0&&(i=My(r+i,0)),Cp(e,ay(t,3),i)}var Py=jy(Ny);function Fy(e,t){var n=-1,r=Vp(e)?Array(e.length):[];return uy(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Iy(e,t){return(X(e)?Cf:Fy)(e,ay(t,3))}function Ly(e,t){return e==null?e:sy(e,Dy(t),Km)}function Ry(e,t){return e&&cy(e,Dy(t))}function zy(e,t){return e>t}var By=Object.prototype.hasOwnProperty;function Vy(e,t){return e!=null&&By.call(e,t)}function Hy(e,t){return e!=null&&Zv(e,t,Vy)}var Uy=`[object String]`;function Wy(e){return typeof e==`string`||!X(e)&&Y(e)&&bf(e)==Uy}function Gy(e,t){return Cf(t,function(t){return e[t]})}function Ky(e){return e==null?[]:Gy(e,Hm(e))}var qy=`[object Map]`,Jy=`[object Set]`,Yy=Object.prototype.hasOwnProperty;function Xy(e){if(e==null)return!0;if(Vp(e)&&(X(e)||typeof e==`string`||typeof e.splice==`function`||rm(e)||Fm(e)||Qp(e)))return!e.length;var t=Bg(e);if(t==qy||t==Jy)return!e.size;if(Gp(e))return!Vm(e).length;for(var n in e)if(Yy.call(e,n))return!1;return!0}function Zy(e){return e===void 0}function Qy(e,t){return e<t}function $y(e,t){var n={};return t=ay(t,3),cy(e,function(e,r,i){jp(n,r,t(e,r,i))}),n}function eb(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(s===void 0?o===o&&!Sf(o):n(o,s)))var s=o,c=a}return c}function tb(e){return e&&e.length?eb(e,Hf,zy):void 0}var nb=Up(function(e,t,n){wy(e,t,n)});function rb(e){return e&&e.length?eb(e,Hf,Qy):void 0}function ib(e,t){return e&&e.length?eb(e,ay(t,2),Qy):void 0}function ab(e,t,n,r){if(!Z(e))return e;t=Mh(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=Ph(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=Z(u)?u:Ap(t[i+1])?[]:{})}Pp(s,c,l),s=s[c]}return e}function ob(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Fh(e,o);n(s,o)&&ab(a,Mh(o,e),s)}return a}function sb(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function cb(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Sf(e),o=t!==void 0,s=t===null,c=t===t,l=Sf(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function lb(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=cb(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function ub(e,t,n){t=t.length?Cf(t,function(e){return X(e)?function(t){return Fh(t,e.length===1?e[0]:e)}:e}):[Hf];var r=-1;return t=Cf(t,km(ay)),sb(Fy(e,function(e,n,i){return{criteria:Cf(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return lb(e,t,n)})}var db=ny(`length`),fb=`\\ud800-\\udfff`,pb=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,mb=`\\ufe0e\\ufe0f`,hb=`[`+fb+`]`,gb=`[`+pb+`]`,_b=`\\ud83c[\\udffb-\\udfff]`,vb=`(?:`+gb+`|`+_b+`)`,yb=`[^`+fb+`]`,bb=`(?:\\ud83c[\\udde6-\\uddff]){2}`,xb=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Sb=`\\u200d`,Cb=vb+`?`,wb=`[`+mb+`]?`,Tb=`(?:`+Sb+`(?:`+[yb,bb,xb].join(`|`)+`)`+wb+Cb+`)*`,Eb=wb+Cb+Tb,Db=`(?:`+[yb+gb+`?`,gb,bb,xb,hb].join(`|`)+`)`,Ob=RegExp(_b+`(?=`+_b+`)|`+Db+Eb,`g`);function kb(e){for(var t=Ob.lastIndex=0;Ob.test(e);)++t;return t}function Ab(e){return Qh(e)?kb(e):db(e)}function jb(e,t){return ob(e,t,function(t,n){return Qv(e,n)})}var Mb=Hh(function(e,t){return e==null?{}:jb(e,t)}),Nb=Math.ceil,Pb=Math.max;function Fb(e,t,n,r){for(var i=-1,a=Pb(Nb((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function Ib(e){return function(t,n,r){return r&&typeof r!=`number`&&Hp(t,n,r)&&(n=r=void 0),t=Bf(t),n===void 0?(n=t,t=0):n=Bf(n),r=r===void 0?t<n?1:-1:Bf(r),Fb(t,n,r,e)}}var Lb=Ib();function Rb(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function zb(e,t,n){var r=X(e)?$h:Rb,i=arguments.length<3;return r(e,ay(t,4),n,i,uy)}var Bb=`[object Map]`,Vb=`[object Set]`;function Hb(e){if(e==null)return 0;if(Vp(e))return Wy(e)?Ab(e):e.length;var t=Bg(e);return t==Bb||t==Vb?e.size:Vm(e).length}var Ub=Rp(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Hp(e,t[0],t[1])?t=[]:n>2&&Hp(t[0],t[1],t[2])&&(t=[t[0]]),ub(e,Bh(t,1),[])}),Wb=Dg&&1/gv(new Dg([,-0]))[1]==1/0?function(e){return new Dg(e)}:pp,Gb=200;function Kb(e,t,n){var r=-1,i=Dp,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=Ty;else if(a>=Gb){var l=t?null:Wb(e);if(l)return gv(l);o=!1,i=dv,c=new lv}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var qb=Rp(function(e){return Kb(Bh(e,1,by,!0))}),Jb=0;function Yb(e){var t=++Jb;return jh(e)+t}function Xb(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function Zb(e,t){return Xb(e||[],t||[],Pp)}function Qb(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function $b(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ex(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function tx(e){return e.target.depth}function nx(e){return e.depth}function rx(e,t){return t-1-e.height}function ix(e,t){return e.sourceLinks.length?e.depth:t-1}function ax(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?$b(e.sourceLinks,tx)-1:0}function ox(e){return function(){return e}}function sx(e,t){return lx(e.source,t.source)||e.index-t.index}function cx(e,t){return lx(e.target,t.target)||e.index-t.index}function lx(e,t){return e.y0-t.y0}function ux(e){return e.value}function dx(e){return e.index}function fx(e){return e.nodes}function px(e){return e.links}function mx(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function hx({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function gx(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=dx,c=ix,l,u,d=fx,f=px,p=6;function m(){let e={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return h(e),g(e),_(e),v(e),x(e),hx(e),e}m.update=function(e){return hx(e),e},m.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:ox(e),m):s},m.nodeAlign=function(e){return arguments.length?(c=typeof e==`function`?e:ox(e),m):c},m.nodeSort=function(e){return arguments.length?(l=e,m):l},m.nodeWidth=function(e){return arguments.length?(i=+e,m):i},m.nodePadding=function(e){return arguments.length?(a=o=+e,m):a},m.nodes=function(e){return arguments.length?(d=typeof e==`function`?e:ox(e),m):d},m.links=function(e){return arguments.length?(f=typeof e==`function`?e:ox(e),m):f},m.linkSort=function(e){return arguments.length?(u=e,m):u},m.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],m):[n-e,r-t]},m.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],m):[[e,t],[n,r]]},m.iterations=function(e){return arguments.length?(p=+e,m):p};function h({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=mx(n,t)),typeof i!=`object`&&(i=r.target=mx(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(u!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(u),n.sort(u)}function g({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(ex(t.sourceLinks,ux),ex(t.targetLinks,ux)):t.fixedValue}function _({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:t}){let r=Qb(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(c.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(l)for(let e of o)e.sort(l);return o}function b(e){let n=$b(e,e=>(r-t-(e.length-1)*o)/ex(e,ux));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}O(i)}}function x(e){let n=y(e);o=Math.min(a,(r-t)/(Qb(n,e=>e.length)-1)),b(n);for(let e=0;e<p;++e){let t=.99**e,r=Math.max(1-t,(e+1)/p);C(n,t,r),S(n,t,r)}}function S(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=k(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,D(e)}l===void 0&&i.sort(lx),w(i,n)}}function C(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=ee(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,D(e)}l===void 0&&i.sort(lx),w(i,n)}}function w(e,n){let i=e.length>>1,a=e[i];E(e,a.y0-o,i-1,n),T(e,a.y1+o,i+1,n),E(e,r,e.length-1,n),T(e,t,0,n)}function T(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function E(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function D({sourceLinks:e,targetLinks:t}){if(u===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(cx);for(let{target:{targetLinks:t}}of e)t.sort(sx)}}function O(e){if(u===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(cx),n.sort(sx)}function k(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function ee(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return m}var _x=Math.PI,vx=2*_x,yx=1e-6,bx=vx-yx;function xx(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function Sx(){return new xx}xx.prototype=Sx.prototype={constructor:xx,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>yx)if(!(Math.abs(u*s-c*l)>yx)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((_x-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>yx&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>yx||Math.abs(this._y1-l)>yx)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%vx+vx),d>bx?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>yx&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=_x)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}};function Cx(e){return function(){return e}}function wx(e){return e[0]}function Tx(e){return e[1]}var Ex=Array.prototype.slice;function Dx(e){return e.source}function Ox(e){return e.target}function kx(e){var t=Dx,n=Ox,r=wx,i=Tx,a=null;function o(){var o,s=Ex.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||=o=Sx(),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:Cx(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:Cx(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function Ax(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function jx(){return kx(Ax)}function Mx(e){return[e.source.x1,e.y0]}function Nx(e){return[e.target.x0,e.y1]}function Px(){return jx().source(Mx).target(Nx)}export{yd as $,Ey as A,Gs as At,sf as B,on as Bt,Hy as C,Cc as Ct,Py as D,lc as Dt,Iy as E,pc as Et,Vh as F,No as Ft,Hd as G,Kd as H,j as Ht,Hm as I,Ao as It,Ad as J,Rd as K,yp as L,io as Lt,hy as M,cs as Mt,dy as N,Uo as Nt,Ay as O,Ys as Ot,av as P,Ho as Pt,xd as Q,qf as R,oi as Rt,Ky as S,Tc as St,Ly as T,bc as Tt,Gd as U,b as Ut,Xd as V,M as Vt,Wd as W,y as Wt,Ed as X,Od as Y,wd as Z,nb as _,Fc as _t,nx as a,rd as at,Zy as b,jc as bt,Yb as c,Qu as ct,Hb as d,Eu as dt,_d as et,zb as f,wu as ft,rb as g,Ac as gt,ib as h,Pc as ht,ix as i,cd as it,vy as j,ks as jt,Oy as k,Js as kt,qb as l,Yu as lt,Mb as m,Wc as mt,gx as n,fd as nt,rx as o,id as ot,Lb as p,yu as pt,zd as q,ax as r,ud as rt,Zb as s,td as st,Px as t,md as tt,Ub as u,Ku as ut,tb as v,kc as vt,Ry as w,xc as wt,Xy as x,Mc as xt,$y as y,Nc as yt,X as z,xn as zt};