@datalayer/agent-runtimes 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed/chunks/{AgentDetails-Bo0dD1KS.js → AgentDetails-KezohVQI.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-JjCHYxMG.js → AgentDetailsDialog-CklhMnk7.js} +1 -1
- package/dist-embed/chunks/{AgentInspector-37Onz4of.js → AgentInspector-CtCaRc1L.js} +1 -1
- package/dist-embed/chunks/{AgentInspectorDialog-CCzGVAtX.js → AgentInspectorDialog-DB9cx3Gd.js} +1 -1
- package/dist-embed/chunks/Avatar-9MpXENSs.js +1 -0
- package/dist-embed/chunks/{CellSidebarExtension-CQlXdanG.js → CellSidebarExtension-CfaJL6DQ.js} +6 -6
- package/dist-embed/chunks/{ChatView-CaBuPTyG.js → ChatView-B3QqHhAP.js} +4 -4
- package/dist-embed/chunks/{ContextPie-DBIUoPrq.js → ContextPie-1vP4f-3N.js} +1 -1
- package/dist-embed/chunks/DatalayerAgentBridge-D54Z9BZ3.js +1 -0
- package/dist-embed/chunks/{DeckComponent-cRJJMGgt.js → DeckComponent-82GVdsoi.js} +2 -2
- package/dist-embed/chunks/{DocumentView-CiqN9ze6.js → DocumentView-SrJloJDo.js} +2 -2
- package/dist-embed/chunks/{EphemeralDocument-BjJfn7J-.js → EphemeralDocument-t1KulOH8.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-DbS4f6yr.js → EphemeralNotebook-Co-WQWCc.js} +2 -2
- package/dist-embed/chunks/{ExcalidrawComponent-BtNXWUN8.js → ExcalidrawComponent-5NeLUYVB.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-C6SEKFlD.js → ExcalidrawModal-9ZnOB03n.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-BuRLImy5.js → JupyterLexicalExtension-Cize8RXy.js} +29 -29
- package/dist-embed/chunks/{KernelVariables-KCUfxhF4.js → KernelVariables-Cl57Zze1.js} +2 -2
- package/dist-embed/chunks/{LexicalToolRegistry-CXLITkMD.js → LexicalToolRegistry-CoM9ROsx.js} +3 -3
- package/dist-embed/chunks/{NotebookSkeleton-HdM76lOj.js → NotebookSkeleton-CI7ovjNW.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-ktcGRm7d.js → NotebookToolSurfaces-CWfppxBN.js} +1 -1
- package/dist-embed/chunks/{NotebookToolbar-DMKCe3c2.js → NotebookToolbar-rtMQZWHQ.js} +1 -1
- package/dist-embed/chunks/{NotebookView-Pps9dPZ7.js → NotebookView-DOf_K74b.js} +1 -1
- package/dist-embed/chunks/{Output-BscOPLqE.js → Output-9DKTscSv.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-pkvlbdM2.js → SandboxDetailsDialog-BCfDm6MB.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-Bqor7hh8.js → SchemaForm-BOYPrvf8.js} +1 -1
- package/dist-embed/chunks/{Toolbar-6Hdi_m3T.js → Toolbar-CGQDY041.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-CJTAKqh1.js → WidgetVariableView-BTOwHP78.js} +1 -1
- package/dist-embed/chunks/YouTubePlugin-Bs4zZIB1.js +1 -0
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CWj4pFxo.js → abnfDiagram-VCTEODGH-D5p59vS_.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-B4x7mfou.js → abnfDiagram-VCTEODGH-DRYbUvhc.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-BB82iKLz.js → ar-SA-G6X2FPQ2-D6XRzkBS.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CRIN999O.js → architectureDiagram-5GKGNRK7-B7ITKDup.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-B2D6lZbf.js → architectureDiagram-5GKGNRK7-DQGv0imf.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-DsMRKXlw.js → az-AZ-76LH7QW2-DBTdUiqp.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-43Y1kPxa.js → bg-BG-XCXSNQG7-DuhcsaSL.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-bBp9uGVj.js → blockDiagram-868be97b-DYe-XTjy.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DNdo_mUi.js → blockDiagram-I7D4REHJ-IltJXCd6.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CPHEppLa.js → blockDiagram-I7D4REHJ-y7tEFo3j.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-CLqPJBll.js → bn-BD-2XOGV67Q-CPFeLVSN.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-cYZlcE7E.js → c4Diagram-3f4bdde3-Bybp0wky.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DTmVwmmb.js → c4Diagram-7LVT6UL2-CizxVqqX.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BM2g5U7R.js → c4Diagram-7LVT6UL2-DpaHndz8.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-CDFGSEh3.js → ca-ES-6MX7JW3Y-gDR_kEC6.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-D67W4XWx.js → celltoolbartracker-DLF4PWyW.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-CsB-r261.js → chunk-2Q5K7J3B-BI6lURun.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-CuegvedF.js → chunk-2Q5K7J3B-DWoLSrj9.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-D4Ed2_vW.js → chunk-5VM5RSS4-CDh4wYym.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-MJQ9uhYe.js → chunk-5VM5RSS4-SleuNqDC.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DnjXjdOV.js → chunk-F27PBJKO-AvWsNGYY.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BKTrewOm.js → chunk-F27PBJKO-h_FwJMTr.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-Bf7PlvQM.js → chunk-IMKFNOWR-DGRceKiU.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-BiXdYxxk.js → chunk-IMKFNOWR-Hx4a5yny.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DcVyhh3j.js → chunk-JWPE2WC7-A4gy2qc4.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DmWR08qa.js → chunk-JWPE2WC7-BuJactJo.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-Bw6JH9TT.js → chunk-POPQ4Y6H-CFM-817s.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-snvBGTqY.js → chunk-POPQ4Y6H-CmRF80iG.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-DLZdx--b.js → chunk-SVP7TREG-CryZx9JE.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-dE58fUkJ.js → chunk-SVP7TREG-DSNzmytH.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-DNXzQOV5.js → chunk-TICWLB2K-CEaDF8ZJ.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-4NdGhPfF.js → chunk-TICWLB2K-DyGS3fIj.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-OKsVfhjO.js → chunk-XXDRQBXY-8Cnzpdjz.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-D57w8SHP.js → chunk-XXDRQBXY-DxQBcVOz.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-oYXGLbJe.js → classDiagram-ZZMXUADV-BQkO1UYr.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-D35oEC_r.js → classDiagram-ZZMXUADV-yvP3zMO3.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-DWY2Ws4r.js → classDiagram-f62afe4f-AYfpYKtp.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-By5ijR28.js → classDiagram-v2-604399ef-BWyNcT_y.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-oYXGLbJe.js → classDiagram-v2-VYDZK3BY-BQkO1UYr.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-D35oEC_r.js → classDiagram-v2-VYDZK3BY-yvP3zMO3.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-DvUhQbDq.js → code-block-IT6T5CEO-F4BSIGY6.js} +1 -1
- package/dist-embed/chunks/{component-DquJEKgN.js → component-DMQ8W8n1.js} +3 -3
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-j33onHvG.js → cose-bilkent-JH36ORCC-C3HC0XIY.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CfuJvtzg.js → cose-bilkent-JH36ORCC-MVxlcfpd.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-DvlG46OI.js → createText-aed3d8b3-CEJODAXJ.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-ByNB8eZd.js → cs-CZ-2BRQDIVT-BXQxcYp6.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-YhGHtmc4.js → cynefinDiagram-5FMLGOSQ-D87ENxS0.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CPb2yRsU.js → cynefinDiagram-5FMLGOSQ-DNRKTIHx.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-B7MrVwy8.js → da-DK-5WZEPLOC-Ck3vidj3.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-CSSSVwOB.js → dagre-GXQ25YYZ-BOhThFKd.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-bjTeZGWE.js → dagre-GXQ25YYZ-DscCD5Uq.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-CN1cdk94.js → de-DE-XR44H4JA-CPZgrOuc.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-CFdSwdyc.js → diagram-S7CK7UJ4-CUhme3Bl.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-CFDVHfda.js → diagram-S7CK7UJ4-zDQduoQy.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-DDaeau23.js → diagram-UQ7AKVKN-BxhQPjAM.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-GZbDy6ob.js → diagram-UQ7AKVKN-Byi-v8UN.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-nXDiS81a.js → diagram-VSXAHHWV-CqihYkDH.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-C6q67wko.js → diagram-VSXAHHWV-au-v2v9D.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DQUkfMrD.js → diagram-VX7I27RA-Cd5PaF_n.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-CYLfpYa4.js → diagram-VX7I27RA-ETzwrw79.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DZziYptV.js → diagram-Z3DM3KII-AcMuRFo5.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-v-9naUk_.js → diagram-Z3DM3KII-DkbsvY2A.js} +1 -1
- package/dist-embed/chunks/{document-BpXPH_dr.js → document-Dluvp7zl.js} +1 -1
- package/dist-embed/chunks/{drivecontents-Bg9_6Kmo.js → drivecontents-CxwZz_5W.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-EvDUmZgJ.js → ebnfDiagram-PWID7BFC-BrEs-SB2.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CDmryeYY.js → ebnfDiagram-PWID7BFC-DuWfMZcD.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-CTakYT6h.js → edges-b2856ca0-Czd3-xvj.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-DnaGhWD1.js → el-GR-BZB4AONW-CjQSkw0P.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-CpiBBm7t.js → erDiagram-5d81789a-JegaF4gy.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-B2QZDDaO.js → erDiagram-RLTQ6QDP-Cpn6_cd1.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-hsnql-YF.js → erDiagram-RLTQ6QDP-xubaXuKR.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-DE1vZzDE.js → es-ES-U4NZUMDT-CQz3Tsxk.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-DmHB0zpm.js → eu-ES-A7QVB2H4-DPwxHXvP.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-CNzE8tJj.js → fa-IR-HGAKTJCU-DlQyRFJP.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-Ca2vTFQC.js → fi-FI-Z5N7JZ37-BL9Dv0rT.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-D4uRRPhl.js → flowDb-185abca5-BN_8lgCO.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-B999anFV.js → flowDiagram-1629c991-YRlRqB59.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DY4I6lzA.js → flowDiagram-HODETNUW-CzRvxVGK.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-D4E8W9uH.js → flowDiagram-HODETNUW-lW-icIxi.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-2W9bzV_S.js → flowDiagram-v2-1d953310-DBFSFroi.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-Cz-ICcxz.js → flowchart-elk-definition-6df44142-RjL83g27.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-B0yWFX3_.js → fr-FR-RHASNOE6-xB7HyFVv.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-CR9gwUWB.js → ganttDiagram-3b0b3873-Dowe9cKl.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-CoCfE73i.js → ganttDiagram-EL5Y4UJY-CLaynGwe.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-cZgkz4jA.js → ganttDiagram-EL5Y4UJY-CNQPBdAP.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CZEgVaQ_.js → gitGraphDiagram-WWUBYQGX-CDuBbPX3.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-xXoxdFf9.js → gitGraphDiagram-WWUBYQGX-CupHqYWl.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-NdofvPL5.js → gitGraphDiagram-f01e8bc2-C06Sje1n.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-2_3FMVJq.js → gl-ES-HMX3MZ6V-BX50ltap.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-BW1lby00.js → he-IL-6SHJWFNN-DR3hLzYG.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-DTixfSwB.js → hi-IN-IWLTKZ5I-C3bSDqVc.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-DOfYwLWP.js → hu-HU-A5ZG7DT2--mRUDQG6.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-Cwtdtkvg.js → id-ID-SAP4L64H-D6psdwdp.js} +1 -1
- package/dist-embed/chunks/{index-Dyh5xopp.js → index-3O3ob63z.js} +15 -15
- package/dist-embed/chunks/{index-KgE-JGae.js → index-7F_pA42X.js} +4 -4
- package/dist-embed/chunks/{index-9bae90f3-D4JbZiwv.js → index-9bae90f3-BY7E8HZU.js} +1 -1
- package/dist-embed/chunks/{index-DYkwi0aX.js → index-Azo_wV3K.js} +1 -1
- package/dist-embed/chunks/{index-BFPUYxvD.js → index-B063q-PC.js} +4 -4
- package/dist-embed/chunks/index-B0KVfQGJ.js +1 -0
- package/dist-embed/chunks/{index-BRBFWMMG.js → index-B2He8CnP.js} +1 -1
- package/dist-embed/chunks/{index-BAr0Q6NS.js → index-BExwmtFS.js} +1 -1
- package/dist-embed/chunks/{index-B3WvcNQa.js → index-BJhxZF_K.js} +1 -1
- package/dist-embed/chunks/{index-CXL3UCHy.js → index-BYMZi_1t.js} +1 -1
- package/dist-embed/chunks/{index-wovGU2zp.js → index-BblwlEJB.js} +1 -1
- package/dist-embed/chunks/{index-DvpdAlVH.js → index-BdvS7Q4t.js} +1 -1
- package/dist-embed/chunks/{index-S-sjhoD3.js → index-BhU2ra4k.js} +3 -3
- package/dist-embed/chunks/{index-j-oeqTuo.js → index-BipXK1tF.js} +1 -1
- package/dist-embed/chunks/{index-B_9UD0bt.js → index-BlWZloLe.js} +3 -3
- package/dist-embed/chunks/{index-B-UP9DlM.js → index-BzXMsI1v.js} +1 -1
- package/dist-embed/chunks/{index-CPY91aGL.js → index-BzxtV5-v.js} +1 -1
- package/dist-embed/chunks/{index-C17RrmNV.js → index-C01nR1dW.js} +1 -1
- package/dist-embed/chunks/{index-t_gNTVoL.js → index-C643Hfu1.js} +1 -1
- package/dist-embed/chunks/{index-BAwsCLGT.js → index-C6wF35Kk.js} +10 -10
- package/dist-embed/chunks/{index--qMT5k1q.js → index-C8IekrmL.js} +1 -1
- package/dist-embed/chunks/{index-BxjlpSy4.js → index-C9CpG6Nf.js} +1 -1
- package/dist-embed/chunks/{index-BITOMOWN.js → index-CA8D7U2s.js} +2 -2
- package/dist-embed/chunks/{index-DEn5R18M.js → index-CUL9WiLS.js} +5 -5
- package/dist-embed/chunks/{index-DFEBhySA.js → index-Cknn3VQD.js} +1 -1
- package/dist-embed/chunks/{index-BJ7Yskx5.js → index-CpcHHQd7.js} +1 -1
- package/dist-embed/chunks/{index-wzK_9qZx.js → index-CvBxCcaE.js} +1 -1
- package/dist-embed/chunks/{index-DkUimZI8.js → index-CzXnKkqM.js} +1 -1
- package/dist-embed/chunks/{index-Ck-wonpc.js → index-D0DBuFMt.js} +1 -1
- package/dist-embed/chunks/{index-CMUTS_sA.js → index-D1lY79hS.js} +4 -4
- package/dist-embed/chunks/{index-sQy5cmWo.js → index-DB46n9Tf.js} +2 -2
- package/dist-embed/chunks/{index-Cgf7tlW3.js → index-DToDguC3.js} +1 -1
- package/dist-embed/chunks/{index-Bi5hexj-.js → index-DVDREi21.js} +1 -1
- package/dist-embed/chunks/{index-TRLGqZaF.js → index-DVUMPcVw.js} +1 -1
- package/dist-embed/chunks/{index-YcqCoWJl.js → index-DcZQ2Oqj.js} +1 -1
- package/dist-embed/chunks/{index-bRwN_nxZ.js → index-DvWWLOj6.js} +1 -1
- package/dist-embed/chunks/{index-Clp8quV1.js → index-Dv_XGY6Q.js} +1 -1
- package/dist-embed/chunks/{index-C3oDHYfa.js → index-DxsDy6PY.js} +1 -1
- package/dist-embed/chunks/{index-Jt4bWLoz.js → index-EpYurdzk.js} +6 -6
- package/dist-embed/chunks/{index-CzuLxFBK.js → index-MTdX216X.js} +1 -1
- package/dist-embed/chunks/{index-B2OWWcCj.js → index-YqGHzM2S.js} +1 -1
- package/dist-embed/chunks/{index-BvvaLLhn.js → index-a51XM5L8.js} +3 -3
- package/dist-embed/chunks/{index-CrNfUmIU.js → index-jy9kOmqu.js} +1 -1
- package/dist-embed/chunks/{index-e5PkgYFg.js → index-kpqZuE4J.js} +1 -1
- package/dist-embed/chunks/{index-BgFbP5P0.js → index-qsUgit40.js} +1 -1
- package/dist-embed/chunks/{index-Cq19rGjf.js → index-rfsiH_M6.js} +1 -1
- package/dist-embed/chunks/{index-BYQwy0Zx.js → index-s3hayhRS.js} +2 -2
- package/dist-embed/chunks/{index.esm-RCuogyl2.js → index.esm-CWygaJYM.js} +1 -1
- package/dist-embed/chunks/{index.esm-CVNfNVDy.js → index.esm-DYeUXS4c.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DpFWmHEH.js → infoDiagram-27XIBGKW-Ctm-zk09.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DRf2y76w.js → infoDiagram-27XIBGKW-DRzH33_4.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-CehVkLUM.js → infoDiagram-a29d40f1-c78-ZMuT.js} +1 -1
- package/dist-embed/chunks/{isEqual-BybBNsZK.js → isEqual-niFNV5MZ.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-C_d1mmp3.js → ishikawaDiagram-5VMMS53U-CILSTTqm.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-B534qRQJ.js → ishikawaDiagram-5VMMS53U-DKv5KL85.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-C3xZ61-6.js → it-IT-JPQ66NNP-BfrG_atL.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-CeTmglEb.js → ja-JP-DBVTYXUO-sahpmNGY.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DEeA8WJr.js → journeyDiagram-3NMN7TZE-CSMQRlsr.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-C0GQLJYz.js → journeyDiagram-3NMN7TZE-DlMPiHSP.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-Cwx_BI95.js → journeyDiagram-95396277-VzHClVrX.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-D6Jr6B6Y.js → kaa-6HZHGXH3-BrkhtXQj.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-pEXBqeuG.js → kab-KAB-ZGHBKWFO-DwtFIV_I.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DucvIyR1.js → kanban-definition-UXKFOSKX-BkxvAXq2.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-Dww2l0wQ.js → kanban-definition-UXKFOSKX-esf1amn7.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-BRJunmHm.js → kk-KZ-P5N5QNE5-UxN1LGH5.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z--GJgT9rN.js → km-KH-HSX4SM5Z-B7lolfpy.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-Bjnez4qR.js → ko-KR-MTYHY66A-CnxefCaN.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-DgOdYJrS.js → ku-TR-6OUDTVRD-Bt7bmFnv.js} +1 -1
- package/dist-embed/chunks/{layout-DiAMrtPi.js → layout-D7Mk1riq.js} +1 -1
- package/dist-embed/chunks/{layout-LNJhMVxV.js → layout-Sl9Lf6Ae.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-DEzWXVZY.js → lexicalHooks-DKF-DsxG.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-BMwhrtjM.js → lt-LT-XHIRWOB4-D6qkXs9m.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-0pxW7YE0.js → lv-LV-5QDEKY6T-D8g27j86.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-huvnfV8t.js → mermaid.core-BhiOhb5K.js} +3 -3
- package/dist-embed/chunks/{mermaid.core-Dw1n-Hii.js → mermaid.core-CRlujv29.js} +5 -5
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DWUezf-k.js → mindmap-definition-YA3MSWOX-BJQsz4H1.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DKQu2lXp.js → mindmap-definition-YA3MSWOX-eCxs0BsL.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-DSDPusnk.js → mindmap-definition-e4c1d938-DoGG9eDO.js} +1 -1
- package/dist-embed/chunks/{model-BHONoBA6.js → model-BziAhKNp.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-tndp8BXC.js → mr-IN-CRQNXWMA-CMbVGyJm.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-sispDhO4.js → my-MM-5M5IBNSE-B-KPsx1j.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-CjBurOuS.js → nb-NO-T6EIAALU-Cl7QLAt7.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-B58EVmr3.js → nl-NL-IS3SIHDZ-Brzte_o2.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-D1p7LZSq.js → nn-NO-6E72VCQL-CzCKEx02.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-C1M8sddP.js → oc-FR-POXYY2M6-DA72PkVY.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-D8ESzASl.js → pa-IN-N4M65BXN-CzkFYtL0.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-ChXFZFas.js → pegDiagram-XKGWAZYB-CD3xZvKE.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BUPTGFu3.js → pegDiagram-XKGWAZYB-CV-d6HkK.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-BihMTsFR.js → percentages-BXMCSKIN-mjCCp4uI.js} +6 -6
- package/dist-embed/chunks/{pica-BQREYloS.js → pica-5TeyVfIV.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-DAuVz3z-.js → pieDiagram-E7YTZNPT-DipS--g7.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BORvsKK0.js → pieDiagram-E7YTZNPT-toANOh_O.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-FM1PHjj3.js → pieDiagram-c941bede-DytniBrW.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-DQGe6LHC.js → pl-PL-T2D74RX3-F4ebFTYK.js} +1 -1
- package/dist-embed/chunks/{plugin-BoxsYxwM.js → plugin-Cf3g-jak.js} +1 -1
- package/dist-embed/chunks/plugin-DA_NCYQX.js +1 -0
- package/dist-embed/chunks/{pt-BR-5N22H2LF-CvXBgZQs.js → pt-BR-5N22H2LF-B5i8LuE4.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BMnnlIUJ.js → pt-PT-UZXXM6DQ-BQ7hfRRg.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DpGcSrR9.js → quadrantDiagram-AXDQQJYC-D_j5dzK-.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-CZe_C7e2.js → quadrantDiagram-AXDQQJYC-DlhtjZ-k.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-DZNznYqD.js → quadrantDiagram-cf8b8fe0-BQ2yjLYu.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CuL_zbZ8.js → railroadDiagram-O6MQD6OU-CZFkdwSz.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BnCn-tIV.js → railroadDiagram-O6MQD6OU-aWlxxhLc.js} +1 -1
- package/dist-embed/chunks/{renderer-lVFw9lw7.js → renderer-2D5v6hpK.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-BLToEv8I.js → requirementDiagram-53bda41b-CWV_b9FE.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-KU7DW76t.js → requirementDiagram-BXWQKSXE-BSF51uZZ.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-W6Oaw9v0.js → requirementDiagram-BXWQKSXE-EVwiX2gg.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-DZ-9UUH7.js → ro-RO-JPDTUUEW-BdcZRS6h.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-JlRBwjob.js → ru-RU-B4JR7IUQ-Cta1z8f6.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-y5tPDHfE.js → sankeyDiagram-P5KCCOFB-BqD6w06O.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-1UXJ4wHP.js → sankeyDiagram-P5KCCOFB-t6rHaBZJ.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-6gF3bcjb.js → sankeyDiagram-c3ef121a-C9O52Zx9.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-CglVrG1T.js → sequenceDiagram-82a5b84f-Dga-BwWi.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CG-4aOyN.js → sequenceDiagram-WJ2MYXX4-DphVeQVS.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DVcXqRnq.js → sequenceDiagram-WJ2MYXX4-ih6W0378.js} +1 -1
- package/dist-embed/chunks/{sessions-3PQsLINe.js → sessions-APuuDN3K.js} +2 -2
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-Bx8kHnkd.js → si-LK-N5RQ5JYF-DYy_OKHx.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-e294GOp7.js → sizeCapture-INFHLROL-CxIMCruL.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-CCZ7JXfm.js → sizeCapture-INFHLROL-o0dzt8-T.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-xsfEfbZb.js → sk-SK-C5VTKIMK-B4A8rgzq.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-SQYUECnr.js → sl-SI-NN7IZMDC-Dn2yU1RA.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-DktiQR1L.js → stateDiagram-43e79a5f-RBFnM6HD.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-Czz7slb9.js → stateDiagram-D77RDMKH-DUbaZs3a.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-DvgDxPXs.js → stateDiagram-D77RDMKH-R5RRRvFY.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-CGEkaZYz.js → stateDiagram-v2-2041ed4f-O5FpnsEz.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-CbzbC1qh.js → stateDiagram-v2-MP3YSRHH-CxTXB7mT.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-DGG9ROyK.js → stateDiagram-v2-MP3YSRHH-xKTLvXGN.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-BpfBULhz.js → styles-455b33cd-D4Xv2qYx.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-DsM5quNh.js → styles-f932cba9-BRIqeB8k.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-bC7I59Fx.js → styles-fcc2142b-CSNd2DtU.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-Ch6j8nKC.js → subset-shared.chunk-SugOGKH0.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-pJjck5pR.js → subset-worker.chunk-CHn-RJwQ.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-BxcjSHE2.js → sv-SE-XGPEYMSR-DIGNKjA1.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-OC_CIhNw.js → svgDrawCommon-148a3cd9-ioBjWI45.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DLiqjxvc.js → swimlanes-42K2YHIH-BPXSOfWl.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-nfpJsGfW.js → swimlanes-42K2YHIH-DID4P1mJ.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-DVkRheaE.js → swimlanesDiagram-VR7AAH4N-B216TpFb.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-DjeQ0TlI.js → swimlanesDiagram-VR7AAH4N-C5LAWW5q.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-rItSkDUS.js → ta-IN-2NMHFXQM-h5n2V9ms.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-B7UzESFj.js → th-TH-HPSO5L25-DPUFV7b6.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CapVlXMl.js → timeline-definition-24CTP7MA-CsrTDzso.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-eOK0mNc7.js → timeline-definition-24CTP7MA-Y3tUsmSp.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-afx9iuZR.js → timeline-definition-7545f45a-Dwe7O50H.js} +1 -1
- package/dist-embed/chunks/{tokens-BfuLIPUq.js → tokens-DTIgYcNS.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-Ci6oNfEX.js → tr-TR-DEFEU3FU-BezJkdMx.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-C9csqvO6.js → uk-UA-QMV73CPH-CqILlosm.js} +1 -1
- package/dist-embed/chunks/{usePrimerThemeBridge-D_1NuGKb.js → usePrimerThemeBridge-CoHussa9.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-D12hHdDQ.js → vennDiagram-4TSXK5OY-BhVdyHxt.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CJ0VIZqI.js → vennDiagram-4TSXK5OY-ClTlC2ql.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-DRAj2kZj.js → vi-VN-M7AON7JQ-CnkPVQ0a.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-B1FfO2GD.js → wardleyDiagram-VM6X3IG4-DbWIMpvU.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-BfuBJbTV.js → wardleyDiagram-VM6X3IG4-kS16z5iB.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-BMDhPCCG.js → xychartDiagram-3f383b91-DYoT_EjG.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-xLO3w9Bz.js → xychartDiagram-S5SC5T6Z-CdwuwQAF.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DZ-XUHKl.js → xychartDiagram-S5SC5T6Z-KeQp-cQ1.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-DLOyW8hH.js → zh-CN-LNUGB5OW-CNdfctAT.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-DwC6_2Ws.js → zh-HK-E62DVLB3-DEXwa5-T.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-DEMugIwa.js → zh-TW-RAJ6MFWO-BF7cCYAK.js} +1 -1
- package/dist-embed/datalayer-app-main.js +21 -21
- package/lib/apps/core/index.d.ts +16 -0
- package/lib/apps/index.d.ts +2 -2
- package/lib/apps/index.js +1 -1
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +9 -14
- package/lib/apps/plugins/agents/index.d.ts +1 -1
- package/lib/apps/plugins/agents/index.js +1 -1
- package/lib/apps/plugins/agents/plugin.d.ts +10 -0
- package/lib/apps/plugins/agents/plugin.js +10 -0
- package/lib/apps/plugins/chat/ChatView.js +13 -1
- package/lib/apps/shell/LoopWorkspace.d.ts +8 -1
- package/lib/apps/shell/LoopWorkspace.js +5 -3
- package/lib/chat/header/ChatHeaderBase.d.ts +3 -1
- package/lib/chat/header/ChatHeaderBase.js +2 -2
- package/lib/chat/header/ChatViewModeToggle.d.ts +7 -1
- package/lib/chat/header/ChatViewModeToggle.js +5 -2
- package/lib/protocols/agentProtocols.js +3 -1
- package/lib/protocols/pap/index.d.ts +4 -0
- package/lib/protocols/pap/index.js +41 -0
- package/package.json +2 -2
- package/dist-embed/chunks/Avatar-DbU3YP4x.js +0 -1
- package/dist-embed/chunks/DatalayerAgentBridge-Bz2KWRXK.js +0 -1
- package/dist-embed/chunks/YouTubePlugin-xBjNr2Iu.js +0 -1
- package/dist-embed/chunks/index-DlK9qLPz.js +0 -1
- package/dist-embed/chunks/plugin-Dz5L6Xn8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{sa as Ov,sW as lhe,sX as _f,a8 as uhe}from"../datalayer-app-main.js";import{k as xme}from"./index-BJ7Yskx5.js";import{i as che,b as bme,d as wme,n as Tme,o as Ame,a as Sme}from"./round-BfLWjAu-.js";import{h as lN,n as ap,f as Mme,g as kme,i as Cme,a as Eme,r as Lme,j as Ime,b as Pme,e as Rme,d as Dme}from"./index-atSsKceW.js";import{R as fhe,r as zme,d as Fme,e as Bme,f as CV,g as EV,C as Ome,h as LV}from"./color-CG7_7V2-.js";import{d as Nme,r as qme,l as IV,i as Ume,h as Vme}from"./hcl-DhKDpa4Z.js";import{r as Hme}from"./index-jGGzfal6.js";function jme(r,i){for(var h=0;h<i.length;h++){const c=i[h];if(typeof c!="string"&&!Array.isArray(c)){for(const a in c)if(a!=="default"&&!(a in r)){const o=Object.getOwnPropertyDescriptor(c,a);o&&Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>c[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var hhe=-.14861,uN=1.78277,cN=-.29227,I2=-.90649,z_=1.97294,PV=z_*I2,RV=z_*uN,DV=uN*cN-I2*hhe;function Gme(r){if(r instanceof iy)return new iy(r.h,r.s,r.l,r.opacity);r instanceof fhe||(r=zme(r));var i=r.r/255,h=r.g/255,c=r.b/255,a=(DV*c+PV*i-RV*h)/(DV+PV-RV),o=c-a,e=(z_*(h-a)-cN*o)/I2,t=Math.sqrt(e*e+o*o)/(z_*a*(1-a)),n=t?Math.atan2(e,o)*Nme-120:NaN;return new iy(n<0?n+360:n,t,a,r.opacity)}function e9(r,i,h,c){return arguments.length===1?Gme(r):new iy(r,i,h,c??1)}function iy(r,i,h,c){this.h=+r,this.s=+i,this.l=+h,this.opacity=+c}Fme(iy,e9,Bme(Ome,{brighter(r){return r=r==null?EV:Math.pow(EV,r),new iy(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?CV:Math.pow(CV,r),new iy(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=isNaN(this.h)?0:(this.h+120)*qme,i=+this.l,h=isNaN(this.s)?0:this.s*i*(1-i),c=Math.cos(r),a=Math.sin(r);return new fhe(255*(i+h*(hhe*c+uN*a)),255*(i+h*(cN*c+I2*a)),255*(i+h*(z_*c)),this.opacity)}}));var lA={},uA={},zV;function fN(){return zV||(zV=1,uA.version="2.35.3"),uA}var nw={exports:{}};var Wme=nw.exports,FV;function Zme(){return FV||(FV=1,(function(r){(function(h,c,a){c[h]=c[h]||a(),r.exports&&(r.exports=c[h])})("Promise",typeof globalThis<"u"?globalThis:Wme,function(){var h,c,a,o=Object.prototype.toString,e=typeof setImmediate<"u"?function(S){return setImmediate(S)}:setTimeout;try{Object.defineProperty({},"x",{}),h=function(S,A,M,m){return Object.defineProperty(S,A,{value:M,writable:!0,configurable:m!==!1})}}catch{h=function(A,M,m){return A[M]=m,A}}a=(function(){var S,A,M;function m(k,b){this.fn=k,this.self=b,this.next=void 0}return{add:function(b,_){M=new m(b,_),A?A.next=M:S=M,A=M,M=void 0},drain:function(){var b=S;for(S=A=c=void 0;b;)b.fn.call(b.self),b=b.next}}})();function t(y,S){a.add(y,S),c||(c=e(a.drain))}function n(y){var S,A=typeof y;return y!=null&&(A=="object"||A=="function")&&(S=y.then),typeof S=="function"?S:!1}function s(){for(var y=0;y<this.chain.length;y++)l(this,this.state===1?this.chain[y].success:this.chain[y].failure,this.chain[y]);this.chain.length=0}function l(y,S,A){var M,m;try{S===!1?A.reject(y.msg):(S===!0?M=y.msg:M=S.call(void 0,y.msg),M===A.promise?A.reject(TypeError("Promise-chain cycle")):(m=n(M))?m.call(M,A.resolve,A.reject):A.resolve(M))}catch(k){A.reject(k)}}function u(y){var S,A=this;if(!A.triggered){A.triggered=!0,A.def&&(A=A.def);try{(S=n(y))?t(function(){var M=new p(A);try{S.call(y,function(){u.apply(M,arguments)},function(){f.apply(M,arguments)})}catch(m){f.call(M,m)}}):(A.msg=y,A.state=1,A.chain.length>0&&t(s,A))}catch(M){f.call(new p(A),M)}}}function f(y){var S=this;S.triggered||(S.triggered=!0,S.def&&(S=S.def),S.msg=y,S.state=2,S.chain.length>0&&t(s,S))}function d(y,S,A,M){for(var m=0;m<S.length;m++)(function(b){y.resolve(S[b]).then(function(x){A(b,x)},M)})(m)}function p(y){this.def=y,this.triggered=!1}function g(y){this.promise=y,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function w(y){if(typeof y!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var S=new g(this);this.then=function(M,m){var k={success:typeof M=="function"?M:!0,failure:typeof m=="function"?m:!1};return k.promise=new this.constructor(function(_,x){if(typeof _!="function"||typeof x!="function")throw TypeError("Not a function");k.resolve=_,k.reject=x}),S.chain.push(k),S.state!==0&&t(s,S),k.promise},this.catch=function(M){return this.then(void 0,M)};try{y.call(void 0,function(M){u.call(S,M)},function(M){f.call(S,M)})}catch(A){f.call(S,A)}}var v=h({},"constructor",w,!1);return w.prototype=v,h(v,"__NPO__",0,!1),h(w,"resolve",function(S){var A=this;return S&&typeof S=="object"&&S.__NPO__===1?S:new A(function(m,k){if(typeof m!="function"||typeof k!="function")throw TypeError("Not a function");m(S)})}),h(w,"reject",function(S){return new this(function(M,m){if(typeof M!="function"||typeof m!="function")throw TypeError("Not a function");m(S)})}),h(w,"all",function(S){var A=this;return o.call(S)!="[object Array]"?A.reject(TypeError("Not an array")):S.length===0?A.resolve([]):new A(function(m,k){if(typeof m!="function"||typeof k!="function")throw TypeError("Not a function");var b=S.length,_=Array(b),x=0;d(A,S,function(P,D){_[P]=D,++x===b&&m(_)},k)})}),h(w,"race",function(S){var A=this;return o.call(S)!="[object Array]"?A.reject(TypeError("Not an array")):new A(function(m,k){if(typeof m!="function"||typeof k!="function")throw TypeError("Not a function");d(A,S,function(_,x){m(x)},k)})}),w})})(nw)),nw.exports}var BV={},cA={exports:{}},fA={exports:{}},OV;function Kn(){return OV||(OV=1,(function(r){(function(){var i={version:"3.8.2"},h=[].slice,c=function(fe){return h.call(fe)},a=self.document;function o(fe){return fe&&(fe.ownerDocument||fe.document||fe).documentElement}function e(fe){return fe&&(fe.ownerDocument&&fe.ownerDocument.defaultView||fe.document&&fe||fe.defaultView)}if(a)try{c(a.documentElement.childNodes)[0].nodeType}catch{c=function(Se){for(var Be=Se.length,Ze=new Array(Be);Be--;)Ze[Be]=Se[Be];return Ze}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch{var t=this.Element.prototype,n=t.setAttribute,s=t.setAttributeNS,l=this.CSSStyleDeclaration.prototype,u=l.setProperty;t.setAttribute=function(Se,Be){n.call(this,Se,Be+"")},t.setAttributeNS=function(Se,Be,Ze){s.call(this,Se,Be,Ze+"")},l.setProperty=function(Se,Be,Ze){u.call(this,Se,Be+"",Ze)}}i.ascending=f;function f(fe,Se){return fe<Se?-1:fe>Se?1:fe>=Se?0:NaN}i.descending=function(fe,Se){return Se<fe?-1:Se>fe?1:Se>=fe?0:NaN},i.min=function(fe,Se){var Be=-1,Ze=fe.length,tt,at;if(arguments.length===1){for(;++Be<Ze;)if((at=fe[Be])!=null&&at>=at){tt=at;break}for(;++Be<Ze;)(at=fe[Be])!=null&&tt>at&&(tt=at)}else{for(;++Be<Ze;)if((at=Se.call(fe,fe[Be],Be))!=null&&at>=at){tt=at;break}for(;++Be<Ze;)(at=Se.call(fe,fe[Be],Be))!=null&&tt>at&&(tt=at)}return tt},i.max=function(fe,Se){var Be=-1,Ze=fe.length,tt,at;if(arguments.length===1){for(;++Be<Ze;)if((at=fe[Be])!=null&&at>=at){tt=at;break}for(;++Be<Ze;)(at=fe[Be])!=null&&at>tt&&(tt=at)}else{for(;++Be<Ze;)if((at=Se.call(fe,fe[Be],Be))!=null&&at>=at){tt=at;break}for(;++Be<Ze;)(at=Se.call(fe,fe[Be],Be))!=null&&at>tt&&(tt=at)}return tt},i.extent=function(fe,Se){var Be=-1,Ze=fe.length,tt,at,Lt;if(arguments.length===1){for(;++Be<Ze;)if((at=fe[Be])!=null&&at>=at){tt=Lt=at;break}for(;++Be<Ze;)(at=fe[Be])!=null&&(tt>at&&(tt=at),Lt<at&&(Lt=at))}else{for(;++Be<Ze;)if((at=Se.call(fe,fe[Be],Be))!=null&&at>=at){tt=Lt=at;break}for(;++Be<Ze;)(at=Se.call(fe,fe[Be],Be))!=null&&(tt>at&&(tt=at),Lt<at&&(Lt=at))}return[tt,Lt]};function d(fe){return fe===null?NaN:+fe}function p(fe){return!isNaN(fe)}i.sum=function(fe,Se){var Be=0,Ze=fe.length,tt,at=-1;if(arguments.length===1)for(;++at<Ze;)p(tt=+fe[at])&&(Be+=tt);else for(;++at<Ze;)p(tt=+Se.call(fe,fe[at],at))&&(Be+=tt);return Be},i.mean=function(fe,Se){var Be=0,Ze=fe.length,tt,at=-1,Lt=Ze;if(arguments.length===1)for(;++at<Ze;)p(tt=d(fe[at]))?Be+=tt:--Lt;else for(;++at<Ze;)p(tt=d(Se.call(fe,fe[at],at)))?Be+=tt:--Lt;if(Lt)return Be/Lt},i.quantile=function(fe,Se){var Be=(fe.length-1)*Se+1,Ze=Math.floor(Be),tt=+fe[Ze-1],at=Be-Ze;return at?tt+at*(fe[Ze]-tt):tt},i.median=function(fe,Se){var Be=[],Ze=fe.length,tt,at=-1;if(arguments.length===1)for(;++at<Ze;)p(tt=d(fe[at]))&&Be.push(tt);else for(;++at<Ze;)p(tt=d(Se.call(fe,fe[at],at)))&&Be.push(tt);if(Be.length)return i.quantile(Be.sort(f),.5)},i.variance=function(fe,Se){var Be=fe.length,Ze=0,tt,at,Lt=0,vt=-1,qt=0;if(arguments.length===1)for(;++vt<Be;)p(tt=d(fe[vt]))&&(at=tt-Ze,Ze+=at/++qt,Lt+=at*(tt-Ze));else for(;++vt<Be;)p(tt=d(Se.call(fe,fe[vt],vt)))&&(at=tt-Ze,Ze+=at/++qt,Lt+=at*(tt-Ze));if(qt>1)return Lt/(qt-1)},i.deviation=function(){var fe=i.variance.apply(this,arguments);return fe&&Math.sqrt(fe)};function g(fe){return{left:function(Se,Be,Ze,tt){for(arguments.length<3&&(Ze=0),arguments.length<4&&(tt=Se.length);Ze<tt;){var at=Ze+tt>>>1;fe(Se[at],Be)<0?Ze=at+1:tt=at}return Ze},right:function(Se,Be,Ze,tt){for(arguments.length<3&&(Ze=0),arguments.length<4&&(tt=Se.length);Ze<tt;){var at=Ze+tt>>>1;fe(Se[at],Be)>0?tt=at:Ze=at+1}return Ze}}}var w=g(f);i.bisectLeft=w.left,i.bisect=i.bisectRight=w.right,i.bisector=function(fe){return g(fe.length===1?function(Se,Be){return f(fe(Se),Be)}:fe)},i.shuffle=function(fe,Se,Be){(Ze=arguments.length)<3&&(Be=fe.length,Ze<2&&(Se=0));for(var Ze=Be-Se,tt,at;Ze;)at=Math.random()*Ze--|0,tt=fe[Ze+Se],fe[Ze+Se]=fe[at+Se],fe[at+Se]=tt;return fe},i.permute=function(fe,Se){for(var Be=Se.length,Ze=new Array(Be);Be--;)Ze[Be]=fe[Se[Be]];return Ze},i.pairs=function(fe){for(var Se=0,Be=fe.length-1,Ze=fe[0],tt=new Array(Be<0?0:Be);Se<Be;)tt[Se]=[Ze,Ze=fe[++Se]];return tt},i.transpose=function(fe){if(!(at=fe.length))return[];for(var Se=-1,Be=i.min(fe,v),Ze=new Array(Be);++Se<Be;)for(var tt=-1,at,Lt=Ze[Se]=new Array(at);++tt<at;)Lt[tt]=fe[tt][Se];return Ze};function v(fe){return fe.length}i.zip=function(){return i.transpose(arguments)},i.keys=function(fe){var Se=[];for(var Be in fe)Se.push(Be);return Se},i.values=function(fe){var Se=[];for(var Be in fe)Se.push(fe[Be]);return Se},i.entries=function(fe){var Se=[];for(var Be in fe)Se.push({key:Be,value:fe[Be]});return Se},i.merge=function(fe){for(var Se=fe.length,Be,Ze=-1,tt=0,at,Lt;++Ze<Se;)tt+=fe[Ze].length;for(at=new Array(tt);--Se>=0;)for(Lt=fe[Se],Be=Lt.length;--Be>=0;)at[--tt]=Lt[Be];return at};var y=Math.abs;i.range=function(fe,Se,Be){if(arguments.length<3&&(Be=1,arguments.length<2&&(Se=fe,fe=0)),(Se-fe)/Be===1/0)throw new Error("infinite range");var Ze=[],tt=S(y(Be)),at=-1,Lt;if(fe*=tt,Se*=tt,Be*=tt,Be<0)for(;(Lt=fe+Be*++at)>Se;)Ze.push(Lt/tt);else for(;(Lt=fe+Be*++at)<Se;)Ze.push(Lt/tt);return Ze};function S(fe){for(var Se=1;fe*Se%1;)Se*=10;return Se}function A(fe,Se){for(var Be in Se)Object.defineProperty(fe.prototype,Be,{value:Se[Be],enumerable:!1})}i.map=function(fe,Se){var Be=new M;if(fe instanceof M)fe.forEach(function(vt,qt){Be.set(vt,qt)});else if(Array.isArray(fe)){var Ze=-1,tt=fe.length,at;if(arguments.length===1)for(;++Ze<tt;)Be.set(Ze,fe[Ze]);else for(;++Ze<tt;)Be.set(Se.call(fe,at=fe[Ze],Ze),at)}else for(var Lt in fe)Be.set(Lt,fe[Lt]);return Be};function M(){this._=Object.create(null)}var m="__proto__",k="\0";A(M,{has:x,get:function(fe){return this._[b(fe)]},set:function(fe,Se){return this._[b(fe)]=Se},remove:T,keys:P,values:function(){var fe=[];for(var Se in this._)fe.push(this._[Se]);return fe},entries:function(){var fe=[];for(var Se in this._)fe.push({key:_(Se),value:this._[Se]});return fe},size:D,empty:F,forEach:function(fe){for(var Se in this._)fe.call(this,_(Se),this._[Se])}});function b(fe){return(fe+="")===m||fe[0]===k?k+fe:fe}function _(fe){return(fe+="")[0]===k?fe.slice(1):fe}function x(fe){return b(fe)in this._}function T(fe){return(fe=b(fe))in this._&&delete this._[fe]}function P(){var fe=[];for(var Se in this._)fe.push(_(Se));return fe}function D(){var fe=0;for(var Se in this._)++fe;return fe}function F(){for(var fe in this._)return!1;return!0}i.nest=function(){var fe={},Se=[],Be=[],Ze,tt;function at(vt,qt,dr){if(dr>=Se.length)return tt?tt.call(fe,qt):Ze?qt.sort(Ze):qt;for(var _r=-1,Ir=qt.length,Rr=Se[dr++],ei,Hr,qr,Kr=new M,ri;++_r<Ir;)(ri=Kr.get(ei=Rr(Hr=qt[_r])))?ri.push(Hr):Kr.set(ei,[Hr]);return vt?(Hr=vt(),qr=function(ui,si){Hr.set(ui,at(vt,si,dr))}):(Hr={},qr=function(ui,si){Hr[ui]=at(vt,si,dr)}),Kr.forEach(qr),Hr}function Lt(vt,qt){if(qt>=Se.length)return vt;var dr=[],_r=Be[qt++];return vt.forEach(function(Ir,Rr){dr.push({key:Ir,values:Lt(Rr,qt)})}),_r?dr.sort(function(Ir,Rr){return _r(Ir.key,Rr.key)}):dr}return fe.map=function(vt,qt){return at(qt,vt,0)},fe.entries=function(vt){return Lt(at(i.map,vt,0),0)},fe.key=function(vt){return Se.push(vt),fe},fe.sortKeys=function(vt){return Be[Se.length-1]=vt,fe},fe.sortValues=function(vt){return Ze=vt,fe},fe.rollup=function(vt){return tt=vt,fe},fe},i.set=function(fe){var Se=new N;if(fe)for(var Be=0,Ze=fe.length;Be<Ze;++Be)Se.add(fe[Be]);return Se};function N(){this._=Object.create(null)}A(N,{has:x,add:function(fe){return this._[b(fe+="")]=!0,fe},remove:T,values:P,size:D,empty:F,forEach:function(fe){for(var Se in this._)fe.call(this,_(Se))}}),i.behavior={};function O(fe){return fe}i.rebind=function(fe,Se){for(var Be=1,Ze=arguments.length,tt;++Be<Ze;)fe[tt=arguments[Be]]=B(fe,Se,Se[tt]);return fe};function B(fe,Se,Be){return function(){var Ze=Be.apply(Se,arguments);return Ze===Se?fe:Ze}}function R(fe,Se){if(Se in fe)return Se;Se=Se.charAt(0).toUpperCase()+Se.slice(1);for(var Be=0,Ze=q.length;Be<Ze;++Be){var tt=q[Be]+Se;if(tt in fe)return tt}}var q=["webkit","ms","moz","Moz","o","O"];function G(){}i.dispatch=function(){for(var fe=new Z,Se=-1,Be=arguments.length;++Se<Be;)fe[arguments[Se]]=$(fe);return fe};function Z(){}Z.prototype.on=function(fe,Se){var Be=fe.indexOf("."),Ze="";if(Be>=0&&(Ze=fe.slice(Be+1),fe=fe.slice(0,Be)),fe)return arguments.length<2?this[fe].on(Ze):this[fe].on(Ze,Se);if(arguments.length===2){if(Se==null)for(fe in this)this.hasOwnProperty(fe)&&this[fe].on(Ze,null);return this}};function $(fe){var Se=[],Be=new M;function Ze(){for(var tt=Se,at=-1,Lt=tt.length,vt;++at<Lt;)(vt=tt[at].on)&&vt.apply(this,arguments);return fe}return Ze.on=function(tt,at){var Lt=Be.get(tt),vt;return arguments.length<2?Lt&&Lt.on:(Lt&&(Lt.on=null,Se=Se.slice(0,vt=Se.indexOf(Lt)).concat(Se.slice(vt+1)),Be.remove(tt)),at&&Se.push(Be.set(tt,{on:at})),fe)},Ze}i.event=null;function ae(){i.event.preventDefault()}function ne(){for(var fe=i.event,Se;Se=fe.sourceEvent;)fe=Se;return fe}function oe(fe){for(var Se=new Z,Be=0,Ze=arguments.length;++Be<Ze;)Se[arguments[Be]]=$(Se);return Se.of=function(tt,at){return function(Lt){try{var vt=Lt.sourceEvent=i.event;Lt.target=fe,i.event=Lt,Se[Lt.type].apply(tt,at)}finally{i.event=vt}}},Se}i.requote=function(fe){return fe.replace(J,"\\$&")};var J=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,he={}.__proto__?function(fe,Se){fe.__proto__=Se}:function(fe,Se){for(var Be in Se)fe[Be]=Se[Be]};function re(fe){return he(fe,ee),fe}var j=function(fe,Se){return Se.querySelector(fe)},Y=function(fe,Se){return Se.querySelectorAll(fe)},te=function(fe,Se){var Be=fe.matches||fe[R(fe,"matchesSelector")];return te=function(Ze,tt){return Be.call(Ze,tt)},te(fe,Se)};typeof Sizzle=="function"&&(j=function(fe,Se){return Sizzle(fe,Se)[0]||null},Y=Sizzle,te=Sizzle.matchesSelector),i.selection=function(){return i.select(a.documentElement)};var ee=i.selection.prototype=[];ee.select=function(fe){var Se=[],Be,Ze,tt,at;fe=Q(fe);for(var Lt=-1,vt=this.length;++Lt<vt;){Se.push(Be=[]),Be.parentNode=(tt=this[Lt]).parentNode;for(var qt=-1,dr=tt.length;++qt<dr;)(at=tt[qt])?(Be.push(Ze=fe.call(at,at.__data__,qt,Lt)),Ze&&"__data__"in at&&(Ze.__data__=at.__data__)):Be.push(null)}return re(Se)};function Q(fe){return typeof fe=="function"?fe:function(){return j(fe,this)}}ee.selectAll=function(fe){var Se=[],Be,Ze;fe=ue(fe);for(var tt=-1,at=this.length;++tt<at;)for(var Lt=this[tt],vt=-1,qt=Lt.length;++vt<qt;)(Ze=Lt[vt])&&(Se.push(Be=c(fe.call(Ze,Ze.__data__,vt,tt))),Be.parentNode=Ze);return re(Se)};function ue(fe){return typeof fe=="function"?fe:function(){return Y(fe,this)}}var se="http://www.w3.org/1999/xhtml",me={svg:"http://www.w3.org/2000/svg",xhtml:se,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};i.ns={prefix:me,qualify:function(fe){var Se=fe.indexOf(":"),Be=fe;return Se>=0&&(Be=fe.slice(0,Se))!=="xmlns"&&(fe=fe.slice(Se+1)),me.hasOwnProperty(Be)?{space:me[Be],local:fe}:fe}},ee.attr=function(fe,Se){if(arguments.length<2){if(typeof fe=="string"){var Be=this.node();return fe=i.ns.qualify(fe),fe.local?Be.getAttributeNS(fe.space,fe.local):Be.getAttribute(fe)}for(Se in fe)this.each(we(Se,fe[Se]));return this}return this.each(we(fe,Se))};function we(fe,Se){fe=i.ns.qualify(fe);function Be(){this.removeAttribute(fe)}function Ze(){this.removeAttributeNS(fe.space,fe.local)}function tt(){this.setAttribute(fe,Se)}function at(){this.setAttributeNS(fe.space,fe.local,Se)}function Lt(){var qt=Se.apply(this,arguments);qt==null?this.removeAttribute(fe):this.setAttribute(fe,qt)}function vt(){var qt=Se.apply(this,arguments);qt==null?this.removeAttributeNS(fe.space,fe.local):this.setAttributeNS(fe.space,fe.local,qt)}return Se==null?fe.local?Ze:Be:typeof Se=="function"?fe.local?vt:Lt:fe.local?at:tt}function Pe(fe){return fe.trim().replace(/\s+/g," ")}ee.classed=function(fe,Se){if(arguments.length<2){if(typeof fe=="string"){var Be=this.node(),Ze=(fe=Fe(fe)).length,tt=-1;if(Se=Be.classList){for(;++tt<Ze;)if(!Se.contains(fe[tt]))return!1}else for(Se=Be.getAttribute("class");++tt<Ze;)if(!Ie(fe[tt]).test(Se))return!1;return!0}for(Se in fe)this.each(je(Se,fe[Se]));return this}return this.each(je(fe,Se))};function Ie(fe){return new RegExp("(?:^|\\s+)"+i.requote(fe)+"(?:\\s+|$)","g")}function Fe(fe){return(fe+"").trim().split(/^|\s+/)}function je(fe,Se){fe=Fe(fe).map(Ke);var Be=fe.length;function Ze(){for(var at=-1;++at<Be;)fe[at](this,Se)}function tt(){for(var at=-1,Lt=Se.apply(this,arguments);++at<Be;)fe[at](this,Lt)}return typeof Se=="function"?tt:Ze}function Ke(fe){var Se=Ie(fe);return function(Be,Ze){if(tt=Be.classList)return Ze?tt.add(fe):tt.remove(fe);var tt=Be.getAttribute("class")||"";Ze?(Se.lastIndex=0,Se.test(tt)||Be.setAttribute("class",Pe(tt+" "+fe))):Be.setAttribute("class",Pe(tt.replace(Se," ")))}}ee.style=function(fe,Se,Be){var Ze=arguments.length;if(Ze<3){if(typeof fe!="string"){Ze<2&&(Se="");for(Be in fe)this.each(rt(Be,fe[Be],Se));return this}if(Ze<2){var tt=this.node();return e(tt).getComputedStyle(tt,null).getPropertyValue(fe)}Be=""}return this.each(rt(fe,Se,Be))};function rt(fe,Se,Be){function Ze(){this.style.removeProperty(fe)}function tt(){this.style.setProperty(fe,Se,Be)}function at(){var Lt=Se.apply(this,arguments);Lt==null?this.style.removeProperty(fe):this.style.setProperty(fe,Lt,Be)}return Se==null?Ze:typeof Se=="function"?at:tt}ee.property=function(fe,Se){if(arguments.length<2){if(typeof fe=="string")return this.node()[fe];for(Se in fe)this.each(it(Se,fe[Se]));return this}return this.each(it(fe,Se))};function it(fe,Se){function Be(){delete this[fe]}function Ze(){this[fe]=Se}function tt(){var at=Se.apply(this,arguments);at==null?delete this[fe]:this[fe]=at}return Se==null?Be:typeof Se=="function"?tt:Ze}ee.text=function(fe){return arguments.length?this.each(typeof fe=="function"?function(){var Se=fe.apply(this,arguments);this.textContent=Se??""}:fe==null?function(){this.textContent=""}:function(){this.textContent=fe}):this.node().textContent},ee.html=function(fe){return arguments.length?this.each(typeof fe=="function"?function(){var Se=fe.apply(this,arguments);this.innerHTML=Se??""}:fe==null?function(){this.innerHTML=""}:function(){this.innerHTML=fe}):this.node().innerHTML},ee.append=function(fe){return fe=ze(fe),this.select(function(){return this.appendChild(fe.apply(this,arguments))})};function ze(fe){function Se(){var Ze=this.ownerDocument,tt=this.namespaceURI;return tt===se&&Ze.documentElement.namespaceURI===se?Ze.createElement(fe):Ze.createElementNS(tt,fe)}function Be(){return this.ownerDocument.createElementNS(fe.space,fe.local)}return typeof fe=="function"?fe:(fe=i.ns.qualify(fe)).local?Be:Se}ee.insert=function(fe,Se){return fe=ze(fe),Se=Q(Se),this.select(function(){return this.insertBefore(fe.apply(this,arguments),Se.apply(this,arguments)||null)})},ee.remove=function(){return this.each($e)};function $e(){var fe=this.parentNode;fe&&fe.removeChild(this)}ee.data=function(fe,Se){var Be=-1,Ze=this.length,tt,at;if(!arguments.length){for(fe=new Array(Ze=(tt=this[0]).length);++Be<Ze;)(at=tt[Be])&&(fe[Be]=at.__data__);return fe}function Lt(_r,Ir){var Rr,ei=_r.length,Hr=Ir.length,qr=Math.min(ei,Hr),Kr=new Array(Hr),ri=new Array(Hr),ui=new Array(ei),si,ti;if(Se){var ji=new M,vn=new Array(ei),Ln;for(Rr=-1;++Rr<ei;)(si=_r[Rr])&&(ji.has(Ln=Se.call(si,si.__data__,Rr))?ui[Rr]=si:ji.set(Ln,si),vn[Rr]=Ln);for(Rr=-1;++Rr<Hr;)(si=ji.get(Ln=Se.call(Ir,ti=Ir[Rr],Rr)))?si!==!0&&(Kr[Rr]=si,si.__data__=ti):ri[Rr]=Me(ti),ji.set(Ln,!0);for(Rr=-1;++Rr<ei;)Rr in vn&&ji.get(vn[Rr])!==!0&&(ui[Rr]=_r[Rr])}else{for(Rr=-1;++Rr<qr;)si=_r[Rr],ti=Ir[Rr],si?(si.__data__=ti,Kr[Rr]=si):ri[Rr]=Me(ti);for(;Rr<Hr;++Rr)ri[Rr]=Me(Ir[Rr]);for(;Rr<ei;++Rr)ui[Rr]=_r[Rr]}ri.update=Kr,ri.parentNode=Kr.parentNode=ui.parentNode=_r.parentNode,vt.push(ri),qt.push(Kr),dr.push(ui)}var vt=Ue([]),qt=re([]),dr=re([]);if(typeof fe=="function")for(;++Be<Ze;)Lt(tt=this[Be],fe.call(tt,tt.parentNode.__data__,Be));else for(;++Be<Ze;)Lt(tt=this[Be],fe);return qt.enter=function(){return vt},qt.exit=function(){return dr},qt};function Me(fe){return{__data__:fe}}ee.datum=function(fe){return arguments.length?this.property("__data__",fe):this.property("__data__")},ee.filter=function(fe){var Se=[],Be,Ze,tt;typeof fe!="function"&&(fe=Ae(fe));for(var at=0,Lt=this.length;at<Lt;at++){Se.push(Be=[]),Be.parentNode=(Ze=this[at]).parentNode;for(var vt=0,qt=Ze.length;vt<qt;vt++)(tt=Ze[vt])&&fe.call(tt,tt.__data__,vt,at)&&Be.push(tt)}return re(Se)};function Ae(fe){return function(){return te(this,fe)}}ee.order=function(){for(var fe=-1,Se=this.length;++fe<Se;)for(var Be=this[fe],Ze=Be.length-1,tt=Be[Ze],at;--Ze>=0;)(at=Be[Ze])&&(tt&&tt!==at.nextSibling&&tt.parentNode.insertBefore(at,tt),tt=at);return this},ee.sort=function(fe){fe=be.apply(this,arguments);for(var Se=-1,Be=this.length;++Se<Be;)this[Se].sort(fe);return this.order()};function be(fe){return arguments.length||(fe=f),function(Se,Be){return Se&&Be?fe(Se.__data__,Be.__data__):!Se-!Be}}ee.each=function(fe){return Ne(this,function(Se,Be,Ze){fe.call(Se,Se.__data__,Be,Ze)})};function Ne(fe,Se){for(var Be=0,Ze=fe.length;Be<Ze;Be++)for(var tt=fe[Be],at=0,Lt=tt.length,vt;at<Lt;at++)(vt=tt[at])&&Se(vt,at,Be);return fe}ee.call=function(fe){var Se=c(arguments);return fe.apply(Se[0]=this,Se),this},ee.empty=function(){return!this.node()},ee.node=function(){for(var fe=0,Se=this.length;fe<Se;fe++)for(var Be=this[fe],Ze=0,tt=Be.length;Ze<tt;Ze++){var at=Be[Ze];if(at)return at}return null},ee.size=function(){var fe=0;return Ne(this,function(){++fe}),fe};function Ue(fe){return he(fe,dt),fe}var dt=[];i.selection.enter=Ue,i.selection.enter.prototype=dt,dt.append=ee.append,dt.empty=ee.empty,dt.node=ee.node,dt.call=ee.call,dt.size=ee.size,dt.select=function(fe){for(var Se=[],Be,Ze,tt,at,Lt,vt=-1,qt=this.length;++vt<qt;){tt=(at=this[vt]).update,Se.push(Be=[]),Be.parentNode=at.parentNode;for(var dr=-1,_r=at.length;++dr<_r;)(Lt=at[dr])?(Be.push(tt[dr]=Ze=fe.call(at.parentNode,Lt.__data__,dr,vt)),Ze.__data__=Lt.__data__):Be.push(null)}return re(Se)},dt.insert=function(fe,Se){return arguments.length<2&&(Se=yt(this)),ee.insert.call(this,fe,Se)};function yt(fe){var Se,Be;return function(Ze,tt,at){var Lt=fe[at].update,vt=Lt.length,qt;for(at!=Be&&(Be=at,Se=0),tt>=Se&&(Se=tt+1);!(qt=Lt[Se])&&++Se<vt;);return qt}}i.select=function(fe){var Se;return typeof fe=="string"?(Se=[j(fe,a)],Se.parentNode=a.documentElement):(Se=[fe],Se.parentNode=o(fe)),re([Se])},i.selectAll=function(fe){var Se;return typeof fe=="string"?(Se=c(Y(fe,a)),Se.parentNode=a.documentElement):(Se=c(fe),Se.parentNode=null),re([Se])},ee.on=function(fe,Se,Be){var Ze=arguments.length;if(Ze<3){if(typeof fe!="string"){Ze<2&&(Se=!1);for(Be in fe)this.each(St(Be,fe[Be],Se));return this}if(Ze<2)return(Ze=this.node()["__on"+fe])&&Ze._;Be=!1}return this.each(St(fe,Se,Be))};function St(fe,Se,Be){var Ze="__on"+fe,tt=fe.indexOf("."),at=nr;tt>0&&(fe=fe.slice(0,tt));var Lt=Et.get(fe);Lt&&(fe=Lt,at=Ht);function vt(){var _r=this[Ze];_r&&(this.removeEventListener(fe,_r,_r.$),delete this[Ze])}function qt(){var _r=at(Se,c(arguments));vt.call(this),this.addEventListener(fe,this[Ze]=_r,_r.$=Be),_r._=Se}function dr(){var _r=new RegExp("^__on([^.]+)"+i.requote(fe)+"$"),Ir;for(var Rr in this)if(Ir=Rr.match(_r)){var ei=this[Rr];this.removeEventListener(Ir[1],ei,ei.$),delete this[Rr]}}return tt?Se?qt:vt:Se?G:dr}var Et=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Et.forEach(function(fe){"on"+fe in a&&Et.remove(fe)});function nr(fe,Se){return function(Be){var Ze=i.event;i.event=Be,Se[0]=this.__data__;try{fe.apply(this,Se)}finally{i.event=Ze}}}function Ht(fe,Se){var Be=nr(fe,Se);return function(Ze){var tt=this,at=Ze.relatedTarget;(!at||at!==tt&&!(at.compareDocumentPosition(tt)&8))&&Be.call(tt,Ze)}}var vr,sr=0;function hr(fe){var Se=".dragsuppress-"+ ++sr,Be="click"+Se,Ze=i.select(e(fe)).on("touchmove"+Se,ae).on("dragstart"+Se,ae).on("selectstart"+Se,ae);if(vr==null&&(vr="onselectstart"in fe?!1:R(fe.style,"userSelect")),vr){var tt=o(fe).style,at=tt[vr];tt[vr]="none"}return function(Lt){if(Ze.on(Se,null),vr&&(tt[vr]=at),Lt){var vt=function(){Ze.on(Be,null)};Ze.on(Be,function(){ae(),vt()},!0),setTimeout(vt,0)}}}i.mouse=function(fe){return bt(fe,ne())};var Vt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function bt(fe,Se){Se.changedTouches&&(Se=Se.changedTouches[0]);var Be=fe.ownerSVGElement||fe;if(Be.createSVGPoint){var Ze=Be.createSVGPoint();if(Vt<0){var tt=e(fe);if(tt.scrollX||tt.scrollY){Be=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var at=Be[0][0].getScreenCTM();Vt=!(at.f||at.e),Be.remove()}}return Vt?(Ze.x=Se.pageX,Ze.y=Se.pageY):(Ze.x=Se.clientX,Ze.y=Se.clientY),Ze=Ze.matrixTransform(fe.getScreenCTM().inverse()),[Ze.x,Ze.y]}var Lt=fe.getBoundingClientRect();return[Se.clientX-Lt.left-fe.clientLeft,Se.clientY-Lt.top-fe.clientTop]}i.touch=function(fe,Se,Be){if(arguments.length<3&&(Be=Se,Se=ne().changedTouches),Se){for(var Ze=0,tt=Se.length,at;Ze<tt;++Ze)if((at=Se[Ze]).identifier===Be)return bt(fe,at)}},i.behavior.drag=function(){var fe=oe(tt,"drag","dragstart","dragend"),Se=null,Be=at(G,i.mouse,e,"mousemove","mouseup"),Ze=at(Mt,i.touch,O,"touchmove","touchend");function tt(){this.on("mousedown.drag",Be).on("touchstart.drag",Ze)}function at(Lt,vt,qt,dr,_r){return function(){var Ir=this,Rr=i.event.target.correspondingElement||i.event.target,ei=Ir.parentNode,Hr=fe.of(Ir,arguments),qr=0,Kr=Lt(),ri=".drag"+(Kr==null?"":"-"+Kr),ui,si=i.select(qt(Rr)).on(dr+ri,vn).on(_r+ri,Ln),ti=hr(Rr),ji=vt(ei,Kr);Se?(ui=Se.apply(Ir,arguments),ui=[ui.x-ji[0],ui.y-ji[1]]):ui=[0,0],Hr({type:"dragstart"});function vn(){var gn=vt(ei,Kr),Nn,qn;gn&&(Nn=gn[0]-ji[0],qn=gn[1]-ji[1],qr|=Nn|qn,ji=gn,Hr({type:"drag",x:gn[0]+ui[0],y:gn[1]+ui[1],dx:Nn,dy:qn}))}function Ln(){vt(ei,Kr)&&(si.on(dr+ri,null).on(_r+ri,null),ti(qr),Hr({type:"dragend"}))}}}return tt.origin=function(Lt){return arguments.length?(Se=Lt,tt):Se},i.rebind(tt,fe,"on")};function Mt(){return i.event.changedTouches[0].identifier}i.touches=function(fe,Se){return arguments.length<2&&(Se=ne().touches),Se?c(Se).map(function(Be){var Ze=bt(fe,Be);return Ze.identifier=Be.identifier,Ze}):[]};var Dt=1e-6,Ve=Dt*Dt,De=Math.PI,Oe=2*De,Re=Oe-Dt,et=De/2,ct=De/180,lt=180/De;function Ft(fe,Se,Be){return(Se[0]-fe[0])*(Be[1]-fe[1])-(Se[1]-fe[1])*(Be[0]-fe[0])}function tr(fe){return fe>1?et:fe<-1?-et:Math.asin(fe)}function xr(fe){return((fe=Math.exp(fe))-1/fe)/2}function cr(fe){return((fe=Math.exp(fe))+1/fe)/2}function ar(fe){return((fe=Math.exp(2*fe))-1)/(fe+1)}var lr=Math.SQRT2,Wr=2,di=4;i.interpolateZoom=function(fe,Se){var Be=fe[0],Ze=fe[1],tt=fe[2],at=Se[0],Lt=Se[1],vt=Se[2],qt=at-Be,dr=Lt-Ze,_r=qt*qt+dr*dr,Ir,Rr;if(_r<Ve)Rr=Math.log(vt/tt)/lr,Ir=function(ui){return[Be+ui*qt,Ze+ui*dr,tt*Math.exp(lr*ui*Rr)]};else{var ei=Math.sqrt(_r),Hr=(vt*vt-tt*tt+di*_r)/(2*tt*Wr*ei),qr=(vt*vt-tt*tt-di*_r)/(2*vt*Wr*ei),Kr=Math.log(Math.sqrt(Hr*Hr+1)-Hr),ri=Math.log(Math.sqrt(qr*qr+1)-qr);Rr=(ri-Kr)/lr,Ir=function(ui){var si=ui*Rr,ti=cr(Kr),ji=tt/(Wr*ei)*(ti*ar(lr*si+Kr)-xr(Kr));return[Be+ji*qt,Ze+ji*dr,tt*ti/cr(lr*si+Kr)]}}return Ir.duration=Rr*1e3,Ir},i.behavior.zoom=function(){var fe={x:0,y:0,k:1},Se,Be,Ze,tt=[960,500],at=Ut,Lt=250,vt=0,qt="mousedown.zoom",dr="mousemove.zoom",_r="mouseup.zoom",Ir,Rr="touchstart.zoom",ei,Hr=oe(si,"zoomstart","zoom","zoomend"),qr,Kr,ri,ui;kt||(kt="onwheel"in a?(Tt=function(){return-i.event.deltaY*(i.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Tt=function(){return i.event.wheelDelta},"mousewheel"):(Tt=function(){return-i.event.detail},"MozMousePixelScroll"));function si(Mn){Mn.on(qt,fa).on(kt+".zoom",Bo).on("dblclick.zoom",Oo).on(Rr,Wa)}si.event=function(Mn){Mn.each(function(){var Ca=Hr.of(this,arguments),Xa=fe;lc?i.select(this).transition().each("start.zoom",function(){fe=this.__chart__||{x:0,y:0,k:1},qn(Ca)}).tween("zoom:zoom",function(){var io=tt[0],No=tt[1],Yo=Be?Be[0]:io/2,ms=Be?Be[1]:No/2,qa=i.interpolateZoom([(Yo-fe.x)/fe.k,(ms-fe.y)/fe.k,io/fe.k],[(Yo-Xa.x)/Xa.k,(ms-Xa.y)/Xa.k,io/Xa.k]);return function(Rl){var Al=qa(Rl),Ss=io/Al[2];this.__chart__=fe={x:Yo-Al[0]*Ss,y:ms-Al[1]*Ss,k:Ss},Aa(Ca)}}).each("interrupt.zoom",function(){aa(Ca)}).each("end.zoom",function(){aa(Ca)}):(this.__chart__=fe,qn(Ca),Aa(Ca),aa(Ca))})},si.translate=function(Mn){return arguments.length?(fe={x:+Mn[0],y:+Mn[1],k:fe.k},Nn(),si):[fe.x,fe.y]},si.scale=function(Mn){return arguments.length?(fe={x:fe.x,y:fe.y,k:null},vn(+Mn),Nn(),si):fe.k},si.scaleExtent=function(Mn){return arguments.length?(at=Mn==null?Ut:[+Mn[0],+Mn[1]],si):at},si.center=function(Mn){return arguments.length?(Ze=Mn&&[+Mn[0],+Mn[1]],si):Ze},si.size=function(Mn){return arguments.length?(tt=Mn&&[+Mn[0],+Mn[1]],si):tt},si.duration=function(Mn){return arguments.length?(Lt=+Mn,si):Lt},si.x=function(Mn){return arguments.length?(Kr=Mn,qr=Mn.copy(),fe={x:0,y:0,k:1},si):Kr},si.y=function(Mn){return arguments.length?(ui=Mn,ri=Mn.copy(),fe={x:0,y:0,k:1},si):ui};function ti(Mn){return[(Mn[0]-fe.x)/fe.k,(Mn[1]-fe.y)/fe.k]}function ji(Mn){return[Mn[0]*fe.k+fe.x,Mn[1]*fe.k+fe.y]}function vn(Mn){fe.k=Math.max(at[0],Math.min(at[1],Mn))}function Ln(Mn,Ca){Ca=ji(Ca),fe.x+=Mn[0]-Ca[0],fe.y+=Mn[1]-Ca[1]}function gn(Mn,Ca,Xa,io){Mn.__chart__={x:fe.x,y:fe.y,k:fe.k},vn(Math.pow(2,io)),Ln(Be=Ca,Xa),Mn=i.select(Mn),Lt>0&&(Mn=Mn.transition().duration(Lt)),Mn.call(si.event)}function Nn(){Kr&&Kr.domain(qr.range().map(function(Mn){return(Mn-fe.x)/fe.k}).map(qr.invert)),ui&&ui.domain(ri.range().map(function(Mn){return(Mn-fe.y)/fe.k}).map(ri.invert))}function qn(Mn){vt++||Mn({type:"zoomstart"})}function Aa(Mn){Nn(),Mn({type:"zoom",scale:fe.k,translate:[fe.x,fe.y]})}function aa(Mn){--vt||(Mn({type:"zoomend"}),Be=null)}function fa(){var Mn=this,Ca=Hr.of(Mn,arguments),Xa=0,io=i.select(e(Mn)).on(dr,ms).on(_r,qa),No=ti(i.mouse(Mn)),Yo=hr(Mn);Rh.call(Mn),qn(Ca);function ms(){Xa=1,Ln(i.mouse(Mn),No),Aa(Ca)}function qa(){io.on(dr,null).on(_r,null),Yo(Xa),aa(Ca)}}function Wa(){var Mn=this,Ca=Hr.of(Mn,arguments),Xa={},io=0,No,Yo=".zoom-"+i.event.changedTouches[0].identifier,ms="touchmove"+Yo,qa="touchend"+Yo,Rl=[],Al=i.select(Mn),Ss=hr(Mn);jr(),qn(Ca),Al.on(qt,null).on(Rr,jr);function Wt(){var Fi=i.touches(Mn);return No=fe.k,Fi.forEach(function(Nr){Nr.identifier in Xa&&(Xa[Nr.identifier]=ti(Nr))}),Fi}function jr(){var Fi=i.event.target;i.select(Fi).on(ms,$r).on(qa,Ei),Rl.push(Fi);for(var Nr=i.event.changedTouches,oi=0,yn=Nr.length;oi<yn;++oi)Xa[Nr[oi].identifier]=null;var pn=Wt(),_n=Date.now();if(pn.length===1){if(_n-ei<500){var Tn=pn[0];gn(Mn,Tn,Xa[Tn.identifier],Math.floor(Math.log(fe.k)/Math.LN2)+1),ae()}ei=_n}else if(pn.length>1){var Tn=pn[0],Jn=pn[1],Zn=Tn[0]-Jn[0],Qi=Tn[1]-Jn[1];io=Zn*Zn+Qi*Qi}}function $r(){var Fi=i.touches(Mn),Nr,oi,yn,pn;Rh.call(Mn);for(var _n=0,Tn=Fi.length;_n<Tn;++_n,pn=null)if(yn=Fi[_n],pn=Xa[yn.identifier]){if(oi)break;Nr=yn,oi=pn}if(pn){var Jn=(Jn=yn[0]-Nr[0])*Jn+(Jn=yn[1]-Nr[1])*Jn,Zn=io&&Math.sqrt(Jn/io);Nr=[(Nr[0]+yn[0])/2,(Nr[1]+yn[1])/2],oi=[(oi[0]+pn[0])/2,(oi[1]+pn[1])/2],vn(Zn*No)}ei=null,Ln(Nr,oi),Aa(Ca)}function Ei(){if(i.event.touches.length){for(var Fi=i.event.changedTouches,Nr=0,oi=Fi.length;Nr<oi;++Nr)delete Xa[Fi[Nr].identifier];for(var yn in Xa)return void Wt()}i.selectAll(Rl).on(Yo,null),Al.on(qt,fa).on(Rr,Wa),Ss(),aa(Ca)}}function Bo(){var Mn=Hr.of(this,arguments);Ir?clearTimeout(Ir):(Rh.call(this),Se=ti(Be=Ze||i.mouse(this)),qn(Mn)),Ir=setTimeout(function(){Ir=null,aa(Mn)},50),ae(),vn(Math.pow(2,Tt()*.002)*fe.k),Ln(Be,Se),Aa(Mn)}function Oo(){var Mn=i.mouse(this),Ca=Math.log(fe.k)/Math.LN2;gn(this,Mn,ti(Mn),i.event.shiftKey?Math.ceil(Ca)-1:Math.floor(Ca)+1)}return i.rebind(si,Hr,"on")};var Ut=[0,1/0],Tt,kt;i.color=It;function It(){}It.prototype.toString=function(){return this.rgb()+""},i.hsl=Qt;function Qt(fe,Se,Be){return this instanceof Qt?(this.h=+fe,this.s=+Se,void(this.l=+Be)):arguments.length<2?fe instanceof Qt?new Qt(fe.h,fe.s,fe.l):Tr(""+fe,Yt,Qt):new Qt(fe,Se,Be)}var Er=Qt.prototype=new It;Er.brighter=function(fe){return fe=Math.pow(.7,arguments.length?fe:1),new Qt(this.h,this.s,this.l/fe)},Er.darker=function(fe){return fe=Math.pow(.7,arguments.length?fe:1),new Qt(this.h,this.s,fe*this.l)},Er.rgb=function(){return Br(this.h,this.s,this.l)};function Br(fe,Se,Be){var Ze,tt;fe=isNaN(fe)?0:(fe%=360)<0?fe+360:fe,Se=isNaN(Se)||Se<0?0:Se>1?1:Se,Be=Be<0?0:Be>1?1:Be,tt=Be<=.5?Be*(1+Se):Be+Se-Be*Se,Ze=2*Be-tt;function at(vt){return vt>360?vt-=360:vt<0&&(vt+=360),vt<60?Ze+(tt-Ze)*vt/60:vt<180?tt:vt<240?Ze+(tt-Ze)*(240-vt)/60:Ze}function Lt(vt){return Math.round(at(vt)*255)}return new Zt(Lt(fe+120),Lt(fe),Lt(fe-120))}i.hcl=wr;function wr(fe,Se,Be){return this instanceof wr?(this.h=+fe,this.c=+Se,void(this.l=+Be)):arguments.length<2?fe instanceof wr?new wr(fe.h,fe.c,fe.l):fe instanceof _t?Ur(fe.l,fe.a,fe.b):Ur((fe=Sr((fe=i.rgb(fe)).r,fe.g,fe.b)).l,fe.a,fe.b):new wr(fe,Se,Be)}var ht=wr.prototype=new It;ht.brighter=function(fe){return new wr(this.h,this.c,Math.min(100,this.l+At*(arguments.length?fe:1)))},ht.darker=function(fe){return new wr(this.h,this.c,Math.max(0,this.l-At*(arguments.length?fe:1)))},ht.rgb=function(){return ot(this.h,this.c,this.l).rgb()};function ot(fe,Se,Be){return isNaN(fe)&&(fe=0),isNaN(Se)&&(Se=0),new _t(Be,Math.cos(fe*=ct)*Se,Math.sin(fe)*Se)}i.lab=_t;function _t(fe,Se,Be){return this instanceof _t?(this.l=+fe,this.a=+Se,void(this.b=+Be)):arguments.length<2?fe instanceof _t?new _t(fe.l,fe.a,fe.b):fe instanceof wr?ot(fe.h,fe.c,fe.l):Sr((fe=Zt(fe)).r,fe.g,fe.b):new _t(fe,Se,Be)}var At=18,Ot=.95047,yr=1,Lr=1.08883,Pr=_t.prototype=new It;Pr.brighter=function(fe){return new _t(Math.min(100,this.l+At*(arguments.length?fe:1)),this.a,this.b)},Pr.darker=function(fe){return new _t(Math.max(0,this.l-At*(arguments.length?fe:1)),this.a,this.b)},Pr.rgb=function(){return Dr(this.l,this.a,this.b)};function Dr(fe,Se,Be){var Ze=(fe+16)/116,tt=Ze+Se/500,at=Ze-Be/200;return tt=Cr(tt)*Ot,Ze=Cr(Ze)*yr,at=Cr(at)*Lr,new Zt(Ge(3.2404542*tt-1.5371385*Ze-.4985314*at),Ge(-.969266*tt+1.8760108*Ze+.041556*at),Ge(.0556434*tt-.2040259*Ze+1.0572252*at))}function Ur(fe,Se,Be){return fe>0?new wr(Math.atan2(Be,Se)*lt,Math.sqrt(Se*Se+Be*Be),fe):new wr(NaN,NaN,fe)}function Cr(fe){return fe>.206893034?fe*fe*fe:(fe-4/29)/7.787037}function Je(fe){return fe>.008856?Math.pow(fe,1/3):7.787037*fe+4/29}function Ge(fe){return Math.round(255*(fe<=.00304?12.92*fe:1.055*Math.pow(fe,1/2.4)-.055))}i.rgb=Zt;function Zt(fe,Se,Be){return this instanceof Zt?(this.r=~~fe,this.g=~~Se,void(this.b=~~Be)):arguments.length<2?fe instanceof Zt?new Zt(fe.r,fe.g,fe.b):Tr(""+fe,Zt,Br):new Zt(fe,Se,Be)}function fr(fe){return new Zt(fe>>16,fe>>8&255,fe&255)}function jt(fe){return fr(fe)+""}var Kt=Zt.prototype=new It;Kt.brighter=function(fe){fe=Math.pow(.7,arguments.length?fe:1);var Se=this.r,Be=this.g,Ze=this.b,tt=30;return!Se&&!Be&&!Ze?new Zt(tt,tt,tt):(Se&&Se<tt&&(Se=tt),Be&&Be<tt&&(Be=tt),Ze&&Ze<tt&&(Ze=tt),new Zt(Math.min(255,Se/fe),Math.min(255,Be/fe),Math.min(255,Ze/fe)))},Kt.darker=function(fe){return fe=Math.pow(.7,arguments.length?fe:1),new Zt(fe*this.r,fe*this.g,fe*this.b)},Kt.hsl=function(){return Yt(this.r,this.g,this.b)},Kt.toString=function(){return"#"+gr(this.r)+gr(this.g)+gr(this.b)};function gr(fe){return fe<16?"0"+Math.max(0,fe).toString(16):Math.min(255,fe).toString(16)}function Tr(fe,Se,Be){var Ze=0,tt=0,at=0,Lt,vt,qt;if(Lt=/([a-z]+)\((.*)\)/.exec(fe=fe.toLowerCase()),Lt)switch(vt=Lt[2].split(","),Lt[1]){case"hsl":return Be(parseFloat(vt[0]),parseFloat(vt[1])/100,parseFloat(vt[2])/100);case"rgb":return Se(ni(vt[0]),ni(vt[1]),ni(vt[2]))}return(qt=ii.get(fe))?Se(qt.r,qt.g,qt.b):(fe!=null&&fe.charAt(0)==="#"&&!isNaN(qt=parseInt(fe.slice(1),16))&&(fe.length===4?(Ze=(qt&3840)>>4,Ze=Ze>>4|Ze,tt=qt&240,tt=tt>>4|tt,at=qt&15,at=at<<4|at):fe.length===7&&(Ze=(qt&16711680)>>16,tt=(qt&65280)>>8,at=qt&255)),Se(Ze,tt,at))}function Yt(fe,Se,Be){var Ze=Math.min(fe/=255,Se/=255,Be/=255),tt=Math.max(fe,Se,Be),at=tt-Ze,Lt,vt,qt=(tt+Ze)/2;return at?(vt=qt<.5?at/(tt+Ze):at/(2-tt-Ze),fe==tt?Lt=(Se-Be)/at+(Se<Be?6:0):Se==tt?Lt=(Be-fe)/at+2:Lt=(fe-Se)/at+4,Lt*=60):(Lt=NaN,vt=qt>0&&qt<1?0:Lt),new Qt(Lt,vt,qt)}function Sr(fe,Se,Be){fe=Or(fe),Se=Or(Se),Be=Or(Be);var Ze=Je((.4124564*fe+.3575761*Se+.1804375*Be)/Ot),tt=Je((.2126729*fe+.7151522*Se+.072175*Be)/yr),at=Je((.0193339*fe+.119192*Se+.9503041*Be)/Lr);return _t(116*tt-16,500*(Ze-tt),200*(tt-at))}function Or(fe){return(fe/=255)<=.04045?fe/12.92:Math.pow((fe+.055)/1.055,2.4)}function ni(fe){var Se=parseFloat(fe);return fe.charAt(fe.length-1)==="%"?Math.round(Se*2.55):Se}var ii=i.map({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});ii.forEach(function(fe,Se){ii.set(fe,fr(Se))});function vi(fe){return typeof fe=="function"?fe:function(){return fe}}i.functor=vi,i.xhr=mi(O);function mi(fe){return function(Se,Be,Ze){return arguments.length===2&&typeof Be=="function"&&(Ze=Be,Be=null),cn(Se,Be,fe,Ze)}}function cn(fe,Se,Be,Ze){var tt={},at=i.dispatch("beforesend","progress","load","error"),Lt={},vt=new XMLHttpRequest,qt=null;self.XDomainRequest&&!("withCredentials"in vt)&&/^(http(s)?:)?\/\//.test(fe)&&(vt=new XDomainRequest),"onload"in vt?vt.onload=vt.onerror=dr:vt.onreadystatechange=function(){vt.readyState>3&&dr()};function dr(){var _r=vt.status,Ir;if(!_r&&ln(vt)||_r>=200&&_r<300||_r===304){try{Ir=Be.call(tt,vt)}catch(Rr){at.error.call(tt,Rr);return}at.load.call(tt,Ir)}else at.error.call(tt,vt)}return vt.onprogress=function(_r){var Ir=i.event;i.event=_r;try{at.progress.call(tt,vt)}finally{i.event=Ir}},tt.header=function(_r,Ir){return _r=(_r+"").toLowerCase(),arguments.length<2?Lt[_r]:(Ir==null?delete Lt[_r]:Lt[_r]=Ir+"",tt)},tt.mimeType=function(_r){return arguments.length?(Se=_r==null?null:_r+"",tt):Se},tt.responseType=function(_r){return arguments.length?(qt=_r,tt):qt},tt.response=function(_r){return Be=_r,tt},["get","post"].forEach(function(_r){tt[_r]=function(){return tt.send.apply(tt,[_r].concat(c(arguments)))}}),tt.send=function(_r,Ir,Rr){if(arguments.length===2&&typeof Ir=="function"&&(Rr=Ir,Ir=null),vt.open(_r,fe,!0),Se!=null&&!("accept"in Lt)&&(Lt.accept=Se+",*/*"),vt.setRequestHeader)for(var ei in Lt)vt.setRequestHeader(ei,Lt[ei]);return Se!=null&&vt.overrideMimeType&&vt.overrideMimeType(Se),qt!=null&&(vt.responseType=qt),Rr!=null&&tt.on("error",Rr).on("load",function(Hr){Rr(null,Hr)}),at.beforesend.call(tt,vt),vt.send(Ir??null),tt},tt.abort=function(){return vt.abort(),tt},i.rebind(tt,at,"on"),Ze==null?tt:tt.get(zi(Ze))}function zi(fe){return fe.length===1?function(Se,Be){fe(Se==null?Be:null)}:fe}function ln(fe){var Se=fe.responseType;return Se&&Se!=="text"?fe.response:fe.responseText}i.dsv=function(fe,Se){var Be=new RegExp('["'+fe+`
|
|
1
|
+
import{sb as Ov,sX as lhe,sY as _f,a8 as uhe}from"../datalayer-app-main.js";import{k as xme}from"./index-CpcHHQd7.js";import{i as che,b as bme,d as wme,n as Tme,o as Ame,a as Sme}from"./round-BfLWjAu-.js";import{h as lN,n as ap,f as Mme,g as kme,i as Cme,a as Eme,r as Lme,j as Ime,b as Pme,e as Rme,d as Dme}from"./index-atSsKceW.js";import{R as fhe,r as zme,d as Fme,e as Bme,f as CV,g as EV,C as Ome,h as LV}from"./color-CG7_7V2-.js";import{d as Nme,r as qme,l as IV,i as Ume,h as Vme}from"./hcl-DhKDpa4Z.js";import{r as Hme}from"./index-jGGzfal6.js";function jme(r,i){for(var h=0;h<i.length;h++){const c=i[h];if(typeof c!="string"&&!Array.isArray(c)){for(const a in c)if(a!=="default"&&!(a in r)){const o=Object.getOwnPropertyDescriptor(c,a);o&&Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>c[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var hhe=-.14861,uN=1.78277,cN=-.29227,I2=-.90649,z_=1.97294,PV=z_*I2,RV=z_*uN,DV=uN*cN-I2*hhe;function Gme(r){if(r instanceof iy)return new iy(r.h,r.s,r.l,r.opacity);r instanceof fhe||(r=zme(r));var i=r.r/255,h=r.g/255,c=r.b/255,a=(DV*c+PV*i-RV*h)/(DV+PV-RV),o=c-a,e=(z_*(h-a)-cN*o)/I2,t=Math.sqrt(e*e+o*o)/(z_*a*(1-a)),n=t?Math.atan2(e,o)*Nme-120:NaN;return new iy(n<0?n+360:n,t,a,r.opacity)}function e9(r,i,h,c){return arguments.length===1?Gme(r):new iy(r,i,h,c??1)}function iy(r,i,h,c){this.h=+r,this.s=+i,this.l=+h,this.opacity=+c}Fme(iy,e9,Bme(Ome,{brighter(r){return r=r==null?EV:Math.pow(EV,r),new iy(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?CV:Math.pow(CV,r),new iy(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=isNaN(this.h)?0:(this.h+120)*qme,i=+this.l,h=isNaN(this.s)?0:this.s*i*(1-i),c=Math.cos(r),a=Math.sin(r);return new fhe(255*(i+h*(hhe*c+uN*a)),255*(i+h*(cN*c+I2*a)),255*(i+h*(z_*c)),this.opacity)}}));var lA={},uA={},zV;function fN(){return zV||(zV=1,uA.version="2.35.3"),uA}var nw={exports:{}};var Wme=nw.exports,FV;function Zme(){return FV||(FV=1,(function(r){(function(h,c,a){c[h]=c[h]||a(),r.exports&&(r.exports=c[h])})("Promise",typeof globalThis<"u"?globalThis:Wme,function(){var h,c,a,o=Object.prototype.toString,e=typeof setImmediate<"u"?function(S){return setImmediate(S)}:setTimeout;try{Object.defineProperty({},"x",{}),h=function(S,A,M,m){return Object.defineProperty(S,A,{value:M,writable:!0,configurable:m!==!1})}}catch{h=function(A,M,m){return A[M]=m,A}}a=(function(){var S,A,M;function m(k,b){this.fn=k,this.self=b,this.next=void 0}return{add:function(b,_){M=new m(b,_),A?A.next=M:S=M,A=M,M=void 0},drain:function(){var b=S;for(S=A=c=void 0;b;)b.fn.call(b.self),b=b.next}}})();function t(y,S){a.add(y,S),c||(c=e(a.drain))}function n(y){var S,A=typeof y;return y!=null&&(A=="object"||A=="function")&&(S=y.then),typeof S=="function"?S:!1}function s(){for(var y=0;y<this.chain.length;y++)l(this,this.state===1?this.chain[y].success:this.chain[y].failure,this.chain[y]);this.chain.length=0}function l(y,S,A){var M,m;try{S===!1?A.reject(y.msg):(S===!0?M=y.msg:M=S.call(void 0,y.msg),M===A.promise?A.reject(TypeError("Promise-chain cycle")):(m=n(M))?m.call(M,A.resolve,A.reject):A.resolve(M))}catch(k){A.reject(k)}}function u(y){var S,A=this;if(!A.triggered){A.triggered=!0,A.def&&(A=A.def);try{(S=n(y))?t(function(){var M=new p(A);try{S.call(y,function(){u.apply(M,arguments)},function(){f.apply(M,arguments)})}catch(m){f.call(M,m)}}):(A.msg=y,A.state=1,A.chain.length>0&&t(s,A))}catch(M){f.call(new p(A),M)}}}function f(y){var S=this;S.triggered||(S.triggered=!0,S.def&&(S=S.def),S.msg=y,S.state=2,S.chain.length>0&&t(s,S))}function d(y,S,A,M){for(var m=0;m<S.length;m++)(function(b){y.resolve(S[b]).then(function(x){A(b,x)},M)})(m)}function p(y){this.def=y,this.triggered=!1}function g(y){this.promise=y,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function w(y){if(typeof y!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var S=new g(this);this.then=function(M,m){var k={success:typeof M=="function"?M:!0,failure:typeof m=="function"?m:!1};return k.promise=new this.constructor(function(_,x){if(typeof _!="function"||typeof x!="function")throw TypeError("Not a function");k.resolve=_,k.reject=x}),S.chain.push(k),S.state!==0&&t(s,S),k.promise},this.catch=function(M){return this.then(void 0,M)};try{y.call(void 0,function(M){u.call(S,M)},function(M){f.call(S,M)})}catch(A){f.call(S,A)}}var v=h({},"constructor",w,!1);return w.prototype=v,h(v,"__NPO__",0,!1),h(w,"resolve",function(S){var A=this;return S&&typeof S=="object"&&S.__NPO__===1?S:new A(function(m,k){if(typeof m!="function"||typeof k!="function")throw TypeError("Not a function");m(S)})}),h(w,"reject",function(S){return new this(function(M,m){if(typeof M!="function"||typeof m!="function")throw TypeError("Not a function");m(S)})}),h(w,"all",function(S){var A=this;return o.call(S)!="[object Array]"?A.reject(TypeError("Not an array")):S.length===0?A.resolve([]):new A(function(m,k){if(typeof m!="function"||typeof k!="function")throw TypeError("Not a function");var b=S.length,_=Array(b),x=0;d(A,S,function(P,D){_[P]=D,++x===b&&m(_)},k)})}),h(w,"race",function(S){var A=this;return o.call(S)!="[object Array]"?A.reject(TypeError("Not an array")):new A(function(m,k){if(typeof m!="function"||typeof k!="function")throw TypeError("Not a function");d(A,S,function(_,x){m(x)},k)})}),w})})(nw)),nw.exports}var BV={},cA={exports:{}},fA={exports:{}},OV;function Kn(){return OV||(OV=1,(function(r){(function(){var i={version:"3.8.2"},h=[].slice,c=function(fe){return h.call(fe)},a=self.document;function o(fe){return fe&&(fe.ownerDocument||fe.document||fe).documentElement}function e(fe){return fe&&(fe.ownerDocument&&fe.ownerDocument.defaultView||fe.document&&fe||fe.defaultView)}if(a)try{c(a.documentElement.childNodes)[0].nodeType}catch{c=function(Se){for(var Be=Se.length,Ze=new Array(Be);Be--;)Ze[Be]=Se[Be];return Ze}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch{var t=this.Element.prototype,n=t.setAttribute,s=t.setAttributeNS,l=this.CSSStyleDeclaration.prototype,u=l.setProperty;t.setAttribute=function(Se,Be){n.call(this,Se,Be+"")},t.setAttributeNS=function(Se,Be,Ze){s.call(this,Se,Be,Ze+"")},l.setProperty=function(Se,Be,Ze){u.call(this,Se,Be+"",Ze)}}i.ascending=f;function f(fe,Se){return fe<Se?-1:fe>Se?1:fe>=Se?0:NaN}i.descending=function(fe,Se){return Se<fe?-1:Se>fe?1:Se>=fe?0:NaN},i.min=function(fe,Se){var Be=-1,Ze=fe.length,tt,at;if(arguments.length===1){for(;++Be<Ze;)if((at=fe[Be])!=null&&at>=at){tt=at;break}for(;++Be<Ze;)(at=fe[Be])!=null&&tt>at&&(tt=at)}else{for(;++Be<Ze;)if((at=Se.call(fe,fe[Be],Be))!=null&&at>=at){tt=at;break}for(;++Be<Ze;)(at=Se.call(fe,fe[Be],Be))!=null&&tt>at&&(tt=at)}return tt},i.max=function(fe,Se){var Be=-1,Ze=fe.length,tt,at;if(arguments.length===1){for(;++Be<Ze;)if((at=fe[Be])!=null&&at>=at){tt=at;break}for(;++Be<Ze;)(at=fe[Be])!=null&&at>tt&&(tt=at)}else{for(;++Be<Ze;)if((at=Se.call(fe,fe[Be],Be))!=null&&at>=at){tt=at;break}for(;++Be<Ze;)(at=Se.call(fe,fe[Be],Be))!=null&&at>tt&&(tt=at)}return tt},i.extent=function(fe,Se){var Be=-1,Ze=fe.length,tt,at,Lt;if(arguments.length===1){for(;++Be<Ze;)if((at=fe[Be])!=null&&at>=at){tt=Lt=at;break}for(;++Be<Ze;)(at=fe[Be])!=null&&(tt>at&&(tt=at),Lt<at&&(Lt=at))}else{for(;++Be<Ze;)if((at=Se.call(fe,fe[Be],Be))!=null&&at>=at){tt=Lt=at;break}for(;++Be<Ze;)(at=Se.call(fe,fe[Be],Be))!=null&&(tt>at&&(tt=at),Lt<at&&(Lt=at))}return[tt,Lt]};function d(fe){return fe===null?NaN:+fe}function p(fe){return!isNaN(fe)}i.sum=function(fe,Se){var Be=0,Ze=fe.length,tt,at=-1;if(arguments.length===1)for(;++at<Ze;)p(tt=+fe[at])&&(Be+=tt);else for(;++at<Ze;)p(tt=+Se.call(fe,fe[at],at))&&(Be+=tt);return Be},i.mean=function(fe,Se){var Be=0,Ze=fe.length,tt,at=-1,Lt=Ze;if(arguments.length===1)for(;++at<Ze;)p(tt=d(fe[at]))?Be+=tt:--Lt;else for(;++at<Ze;)p(tt=d(Se.call(fe,fe[at],at)))?Be+=tt:--Lt;if(Lt)return Be/Lt},i.quantile=function(fe,Se){var Be=(fe.length-1)*Se+1,Ze=Math.floor(Be),tt=+fe[Ze-1],at=Be-Ze;return at?tt+at*(fe[Ze]-tt):tt},i.median=function(fe,Se){var Be=[],Ze=fe.length,tt,at=-1;if(arguments.length===1)for(;++at<Ze;)p(tt=d(fe[at]))&&Be.push(tt);else for(;++at<Ze;)p(tt=d(Se.call(fe,fe[at],at)))&&Be.push(tt);if(Be.length)return i.quantile(Be.sort(f),.5)},i.variance=function(fe,Se){var Be=fe.length,Ze=0,tt,at,Lt=0,vt=-1,qt=0;if(arguments.length===1)for(;++vt<Be;)p(tt=d(fe[vt]))&&(at=tt-Ze,Ze+=at/++qt,Lt+=at*(tt-Ze));else for(;++vt<Be;)p(tt=d(Se.call(fe,fe[vt],vt)))&&(at=tt-Ze,Ze+=at/++qt,Lt+=at*(tt-Ze));if(qt>1)return Lt/(qt-1)},i.deviation=function(){var fe=i.variance.apply(this,arguments);return fe&&Math.sqrt(fe)};function g(fe){return{left:function(Se,Be,Ze,tt){for(arguments.length<3&&(Ze=0),arguments.length<4&&(tt=Se.length);Ze<tt;){var at=Ze+tt>>>1;fe(Se[at],Be)<0?Ze=at+1:tt=at}return Ze},right:function(Se,Be,Ze,tt){for(arguments.length<3&&(Ze=0),arguments.length<4&&(tt=Se.length);Ze<tt;){var at=Ze+tt>>>1;fe(Se[at],Be)>0?tt=at:Ze=at+1}return Ze}}}var w=g(f);i.bisectLeft=w.left,i.bisect=i.bisectRight=w.right,i.bisector=function(fe){return g(fe.length===1?function(Se,Be){return f(fe(Se),Be)}:fe)},i.shuffle=function(fe,Se,Be){(Ze=arguments.length)<3&&(Be=fe.length,Ze<2&&(Se=0));for(var Ze=Be-Se,tt,at;Ze;)at=Math.random()*Ze--|0,tt=fe[Ze+Se],fe[Ze+Se]=fe[at+Se],fe[at+Se]=tt;return fe},i.permute=function(fe,Se){for(var Be=Se.length,Ze=new Array(Be);Be--;)Ze[Be]=fe[Se[Be]];return Ze},i.pairs=function(fe){for(var Se=0,Be=fe.length-1,Ze=fe[0],tt=new Array(Be<0?0:Be);Se<Be;)tt[Se]=[Ze,Ze=fe[++Se]];return tt},i.transpose=function(fe){if(!(at=fe.length))return[];for(var Se=-1,Be=i.min(fe,v),Ze=new Array(Be);++Se<Be;)for(var tt=-1,at,Lt=Ze[Se]=new Array(at);++tt<at;)Lt[tt]=fe[tt][Se];return Ze};function v(fe){return fe.length}i.zip=function(){return i.transpose(arguments)},i.keys=function(fe){var Se=[];for(var Be in fe)Se.push(Be);return Se},i.values=function(fe){var Se=[];for(var Be in fe)Se.push(fe[Be]);return Se},i.entries=function(fe){var Se=[];for(var Be in fe)Se.push({key:Be,value:fe[Be]});return Se},i.merge=function(fe){for(var Se=fe.length,Be,Ze=-1,tt=0,at,Lt;++Ze<Se;)tt+=fe[Ze].length;for(at=new Array(tt);--Se>=0;)for(Lt=fe[Se],Be=Lt.length;--Be>=0;)at[--tt]=Lt[Be];return at};var y=Math.abs;i.range=function(fe,Se,Be){if(arguments.length<3&&(Be=1,arguments.length<2&&(Se=fe,fe=0)),(Se-fe)/Be===1/0)throw new Error("infinite range");var Ze=[],tt=S(y(Be)),at=-1,Lt;if(fe*=tt,Se*=tt,Be*=tt,Be<0)for(;(Lt=fe+Be*++at)>Se;)Ze.push(Lt/tt);else for(;(Lt=fe+Be*++at)<Se;)Ze.push(Lt/tt);return Ze};function S(fe){for(var Se=1;fe*Se%1;)Se*=10;return Se}function A(fe,Se){for(var Be in Se)Object.defineProperty(fe.prototype,Be,{value:Se[Be],enumerable:!1})}i.map=function(fe,Se){var Be=new M;if(fe instanceof M)fe.forEach(function(vt,qt){Be.set(vt,qt)});else if(Array.isArray(fe)){var Ze=-1,tt=fe.length,at;if(arguments.length===1)for(;++Ze<tt;)Be.set(Ze,fe[Ze]);else for(;++Ze<tt;)Be.set(Se.call(fe,at=fe[Ze],Ze),at)}else for(var Lt in fe)Be.set(Lt,fe[Lt]);return Be};function M(){this._=Object.create(null)}var m="__proto__",k="\0";A(M,{has:x,get:function(fe){return this._[b(fe)]},set:function(fe,Se){return this._[b(fe)]=Se},remove:T,keys:P,values:function(){var fe=[];for(var Se in this._)fe.push(this._[Se]);return fe},entries:function(){var fe=[];for(var Se in this._)fe.push({key:_(Se),value:this._[Se]});return fe},size:D,empty:F,forEach:function(fe){for(var Se in this._)fe.call(this,_(Se),this._[Se])}});function b(fe){return(fe+="")===m||fe[0]===k?k+fe:fe}function _(fe){return(fe+="")[0]===k?fe.slice(1):fe}function x(fe){return b(fe)in this._}function T(fe){return(fe=b(fe))in this._&&delete this._[fe]}function P(){var fe=[];for(var Se in this._)fe.push(_(Se));return fe}function D(){var fe=0;for(var Se in this._)++fe;return fe}function F(){for(var fe in this._)return!1;return!0}i.nest=function(){var fe={},Se=[],Be=[],Ze,tt;function at(vt,qt,dr){if(dr>=Se.length)return tt?tt.call(fe,qt):Ze?qt.sort(Ze):qt;for(var _r=-1,Ir=qt.length,Rr=Se[dr++],ei,Hr,qr,Kr=new M,ri;++_r<Ir;)(ri=Kr.get(ei=Rr(Hr=qt[_r])))?ri.push(Hr):Kr.set(ei,[Hr]);return vt?(Hr=vt(),qr=function(ui,si){Hr.set(ui,at(vt,si,dr))}):(Hr={},qr=function(ui,si){Hr[ui]=at(vt,si,dr)}),Kr.forEach(qr),Hr}function Lt(vt,qt){if(qt>=Se.length)return vt;var dr=[],_r=Be[qt++];return vt.forEach(function(Ir,Rr){dr.push({key:Ir,values:Lt(Rr,qt)})}),_r?dr.sort(function(Ir,Rr){return _r(Ir.key,Rr.key)}):dr}return fe.map=function(vt,qt){return at(qt,vt,0)},fe.entries=function(vt){return Lt(at(i.map,vt,0),0)},fe.key=function(vt){return Se.push(vt),fe},fe.sortKeys=function(vt){return Be[Se.length-1]=vt,fe},fe.sortValues=function(vt){return Ze=vt,fe},fe.rollup=function(vt){return tt=vt,fe},fe},i.set=function(fe){var Se=new N;if(fe)for(var Be=0,Ze=fe.length;Be<Ze;++Be)Se.add(fe[Be]);return Se};function N(){this._=Object.create(null)}A(N,{has:x,add:function(fe){return this._[b(fe+="")]=!0,fe},remove:T,values:P,size:D,empty:F,forEach:function(fe){for(var Se in this._)fe.call(this,_(Se))}}),i.behavior={};function O(fe){return fe}i.rebind=function(fe,Se){for(var Be=1,Ze=arguments.length,tt;++Be<Ze;)fe[tt=arguments[Be]]=B(fe,Se,Se[tt]);return fe};function B(fe,Se,Be){return function(){var Ze=Be.apply(Se,arguments);return Ze===Se?fe:Ze}}function R(fe,Se){if(Se in fe)return Se;Se=Se.charAt(0).toUpperCase()+Se.slice(1);for(var Be=0,Ze=q.length;Be<Ze;++Be){var tt=q[Be]+Se;if(tt in fe)return tt}}var q=["webkit","ms","moz","Moz","o","O"];function G(){}i.dispatch=function(){for(var fe=new Z,Se=-1,Be=arguments.length;++Se<Be;)fe[arguments[Se]]=$(fe);return fe};function Z(){}Z.prototype.on=function(fe,Se){var Be=fe.indexOf("."),Ze="";if(Be>=0&&(Ze=fe.slice(Be+1),fe=fe.slice(0,Be)),fe)return arguments.length<2?this[fe].on(Ze):this[fe].on(Ze,Se);if(arguments.length===2){if(Se==null)for(fe in this)this.hasOwnProperty(fe)&&this[fe].on(Ze,null);return this}};function $(fe){var Se=[],Be=new M;function Ze(){for(var tt=Se,at=-1,Lt=tt.length,vt;++at<Lt;)(vt=tt[at].on)&&vt.apply(this,arguments);return fe}return Ze.on=function(tt,at){var Lt=Be.get(tt),vt;return arguments.length<2?Lt&&Lt.on:(Lt&&(Lt.on=null,Se=Se.slice(0,vt=Se.indexOf(Lt)).concat(Se.slice(vt+1)),Be.remove(tt)),at&&Se.push(Be.set(tt,{on:at})),fe)},Ze}i.event=null;function ae(){i.event.preventDefault()}function ne(){for(var fe=i.event,Se;Se=fe.sourceEvent;)fe=Se;return fe}function oe(fe){for(var Se=new Z,Be=0,Ze=arguments.length;++Be<Ze;)Se[arguments[Be]]=$(Se);return Se.of=function(tt,at){return function(Lt){try{var vt=Lt.sourceEvent=i.event;Lt.target=fe,i.event=Lt,Se[Lt.type].apply(tt,at)}finally{i.event=vt}}},Se}i.requote=function(fe){return fe.replace(J,"\\$&")};var J=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,he={}.__proto__?function(fe,Se){fe.__proto__=Se}:function(fe,Se){for(var Be in Se)fe[Be]=Se[Be]};function re(fe){return he(fe,ee),fe}var j=function(fe,Se){return Se.querySelector(fe)},Y=function(fe,Se){return Se.querySelectorAll(fe)},te=function(fe,Se){var Be=fe.matches||fe[R(fe,"matchesSelector")];return te=function(Ze,tt){return Be.call(Ze,tt)},te(fe,Se)};typeof Sizzle=="function"&&(j=function(fe,Se){return Sizzle(fe,Se)[0]||null},Y=Sizzle,te=Sizzle.matchesSelector),i.selection=function(){return i.select(a.documentElement)};var ee=i.selection.prototype=[];ee.select=function(fe){var Se=[],Be,Ze,tt,at;fe=Q(fe);for(var Lt=-1,vt=this.length;++Lt<vt;){Se.push(Be=[]),Be.parentNode=(tt=this[Lt]).parentNode;for(var qt=-1,dr=tt.length;++qt<dr;)(at=tt[qt])?(Be.push(Ze=fe.call(at,at.__data__,qt,Lt)),Ze&&"__data__"in at&&(Ze.__data__=at.__data__)):Be.push(null)}return re(Se)};function Q(fe){return typeof fe=="function"?fe:function(){return j(fe,this)}}ee.selectAll=function(fe){var Se=[],Be,Ze;fe=ue(fe);for(var tt=-1,at=this.length;++tt<at;)for(var Lt=this[tt],vt=-1,qt=Lt.length;++vt<qt;)(Ze=Lt[vt])&&(Se.push(Be=c(fe.call(Ze,Ze.__data__,vt,tt))),Be.parentNode=Ze);return re(Se)};function ue(fe){return typeof fe=="function"?fe:function(){return Y(fe,this)}}var se="http://www.w3.org/1999/xhtml",me={svg:"http://www.w3.org/2000/svg",xhtml:se,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};i.ns={prefix:me,qualify:function(fe){var Se=fe.indexOf(":"),Be=fe;return Se>=0&&(Be=fe.slice(0,Se))!=="xmlns"&&(fe=fe.slice(Se+1)),me.hasOwnProperty(Be)?{space:me[Be],local:fe}:fe}},ee.attr=function(fe,Se){if(arguments.length<2){if(typeof fe=="string"){var Be=this.node();return fe=i.ns.qualify(fe),fe.local?Be.getAttributeNS(fe.space,fe.local):Be.getAttribute(fe)}for(Se in fe)this.each(we(Se,fe[Se]));return this}return this.each(we(fe,Se))};function we(fe,Se){fe=i.ns.qualify(fe);function Be(){this.removeAttribute(fe)}function Ze(){this.removeAttributeNS(fe.space,fe.local)}function tt(){this.setAttribute(fe,Se)}function at(){this.setAttributeNS(fe.space,fe.local,Se)}function Lt(){var qt=Se.apply(this,arguments);qt==null?this.removeAttribute(fe):this.setAttribute(fe,qt)}function vt(){var qt=Se.apply(this,arguments);qt==null?this.removeAttributeNS(fe.space,fe.local):this.setAttributeNS(fe.space,fe.local,qt)}return Se==null?fe.local?Ze:Be:typeof Se=="function"?fe.local?vt:Lt:fe.local?at:tt}function Pe(fe){return fe.trim().replace(/\s+/g," ")}ee.classed=function(fe,Se){if(arguments.length<2){if(typeof fe=="string"){var Be=this.node(),Ze=(fe=Fe(fe)).length,tt=-1;if(Se=Be.classList){for(;++tt<Ze;)if(!Se.contains(fe[tt]))return!1}else for(Se=Be.getAttribute("class");++tt<Ze;)if(!Ie(fe[tt]).test(Se))return!1;return!0}for(Se in fe)this.each(je(Se,fe[Se]));return this}return this.each(je(fe,Se))};function Ie(fe){return new RegExp("(?:^|\\s+)"+i.requote(fe)+"(?:\\s+|$)","g")}function Fe(fe){return(fe+"").trim().split(/^|\s+/)}function je(fe,Se){fe=Fe(fe).map(Ke);var Be=fe.length;function Ze(){for(var at=-1;++at<Be;)fe[at](this,Se)}function tt(){for(var at=-1,Lt=Se.apply(this,arguments);++at<Be;)fe[at](this,Lt)}return typeof Se=="function"?tt:Ze}function Ke(fe){var Se=Ie(fe);return function(Be,Ze){if(tt=Be.classList)return Ze?tt.add(fe):tt.remove(fe);var tt=Be.getAttribute("class")||"";Ze?(Se.lastIndex=0,Se.test(tt)||Be.setAttribute("class",Pe(tt+" "+fe))):Be.setAttribute("class",Pe(tt.replace(Se," ")))}}ee.style=function(fe,Se,Be){var Ze=arguments.length;if(Ze<3){if(typeof fe!="string"){Ze<2&&(Se="");for(Be in fe)this.each(rt(Be,fe[Be],Se));return this}if(Ze<2){var tt=this.node();return e(tt).getComputedStyle(tt,null).getPropertyValue(fe)}Be=""}return this.each(rt(fe,Se,Be))};function rt(fe,Se,Be){function Ze(){this.style.removeProperty(fe)}function tt(){this.style.setProperty(fe,Se,Be)}function at(){var Lt=Se.apply(this,arguments);Lt==null?this.style.removeProperty(fe):this.style.setProperty(fe,Lt,Be)}return Se==null?Ze:typeof Se=="function"?at:tt}ee.property=function(fe,Se){if(arguments.length<2){if(typeof fe=="string")return this.node()[fe];for(Se in fe)this.each(it(Se,fe[Se]));return this}return this.each(it(fe,Se))};function it(fe,Se){function Be(){delete this[fe]}function Ze(){this[fe]=Se}function tt(){var at=Se.apply(this,arguments);at==null?delete this[fe]:this[fe]=at}return Se==null?Be:typeof Se=="function"?tt:Ze}ee.text=function(fe){return arguments.length?this.each(typeof fe=="function"?function(){var Se=fe.apply(this,arguments);this.textContent=Se??""}:fe==null?function(){this.textContent=""}:function(){this.textContent=fe}):this.node().textContent},ee.html=function(fe){return arguments.length?this.each(typeof fe=="function"?function(){var Se=fe.apply(this,arguments);this.innerHTML=Se??""}:fe==null?function(){this.innerHTML=""}:function(){this.innerHTML=fe}):this.node().innerHTML},ee.append=function(fe){return fe=ze(fe),this.select(function(){return this.appendChild(fe.apply(this,arguments))})};function ze(fe){function Se(){var Ze=this.ownerDocument,tt=this.namespaceURI;return tt===se&&Ze.documentElement.namespaceURI===se?Ze.createElement(fe):Ze.createElementNS(tt,fe)}function Be(){return this.ownerDocument.createElementNS(fe.space,fe.local)}return typeof fe=="function"?fe:(fe=i.ns.qualify(fe)).local?Be:Se}ee.insert=function(fe,Se){return fe=ze(fe),Se=Q(Se),this.select(function(){return this.insertBefore(fe.apply(this,arguments),Se.apply(this,arguments)||null)})},ee.remove=function(){return this.each($e)};function $e(){var fe=this.parentNode;fe&&fe.removeChild(this)}ee.data=function(fe,Se){var Be=-1,Ze=this.length,tt,at;if(!arguments.length){for(fe=new Array(Ze=(tt=this[0]).length);++Be<Ze;)(at=tt[Be])&&(fe[Be]=at.__data__);return fe}function Lt(_r,Ir){var Rr,ei=_r.length,Hr=Ir.length,qr=Math.min(ei,Hr),Kr=new Array(Hr),ri=new Array(Hr),ui=new Array(ei),si,ti;if(Se){var ji=new M,vn=new Array(ei),Ln;for(Rr=-1;++Rr<ei;)(si=_r[Rr])&&(ji.has(Ln=Se.call(si,si.__data__,Rr))?ui[Rr]=si:ji.set(Ln,si),vn[Rr]=Ln);for(Rr=-1;++Rr<Hr;)(si=ji.get(Ln=Se.call(Ir,ti=Ir[Rr],Rr)))?si!==!0&&(Kr[Rr]=si,si.__data__=ti):ri[Rr]=Me(ti),ji.set(Ln,!0);for(Rr=-1;++Rr<ei;)Rr in vn&&ji.get(vn[Rr])!==!0&&(ui[Rr]=_r[Rr])}else{for(Rr=-1;++Rr<qr;)si=_r[Rr],ti=Ir[Rr],si?(si.__data__=ti,Kr[Rr]=si):ri[Rr]=Me(ti);for(;Rr<Hr;++Rr)ri[Rr]=Me(Ir[Rr]);for(;Rr<ei;++Rr)ui[Rr]=_r[Rr]}ri.update=Kr,ri.parentNode=Kr.parentNode=ui.parentNode=_r.parentNode,vt.push(ri),qt.push(Kr),dr.push(ui)}var vt=Ue([]),qt=re([]),dr=re([]);if(typeof fe=="function")for(;++Be<Ze;)Lt(tt=this[Be],fe.call(tt,tt.parentNode.__data__,Be));else for(;++Be<Ze;)Lt(tt=this[Be],fe);return qt.enter=function(){return vt},qt.exit=function(){return dr},qt};function Me(fe){return{__data__:fe}}ee.datum=function(fe){return arguments.length?this.property("__data__",fe):this.property("__data__")},ee.filter=function(fe){var Se=[],Be,Ze,tt;typeof fe!="function"&&(fe=Ae(fe));for(var at=0,Lt=this.length;at<Lt;at++){Se.push(Be=[]),Be.parentNode=(Ze=this[at]).parentNode;for(var vt=0,qt=Ze.length;vt<qt;vt++)(tt=Ze[vt])&&fe.call(tt,tt.__data__,vt,at)&&Be.push(tt)}return re(Se)};function Ae(fe){return function(){return te(this,fe)}}ee.order=function(){for(var fe=-1,Se=this.length;++fe<Se;)for(var Be=this[fe],Ze=Be.length-1,tt=Be[Ze],at;--Ze>=0;)(at=Be[Ze])&&(tt&&tt!==at.nextSibling&&tt.parentNode.insertBefore(at,tt),tt=at);return this},ee.sort=function(fe){fe=be.apply(this,arguments);for(var Se=-1,Be=this.length;++Se<Be;)this[Se].sort(fe);return this.order()};function be(fe){return arguments.length||(fe=f),function(Se,Be){return Se&&Be?fe(Se.__data__,Be.__data__):!Se-!Be}}ee.each=function(fe){return Ne(this,function(Se,Be,Ze){fe.call(Se,Se.__data__,Be,Ze)})};function Ne(fe,Se){for(var Be=0,Ze=fe.length;Be<Ze;Be++)for(var tt=fe[Be],at=0,Lt=tt.length,vt;at<Lt;at++)(vt=tt[at])&&Se(vt,at,Be);return fe}ee.call=function(fe){var Se=c(arguments);return fe.apply(Se[0]=this,Se),this},ee.empty=function(){return!this.node()},ee.node=function(){for(var fe=0,Se=this.length;fe<Se;fe++)for(var Be=this[fe],Ze=0,tt=Be.length;Ze<tt;Ze++){var at=Be[Ze];if(at)return at}return null},ee.size=function(){var fe=0;return Ne(this,function(){++fe}),fe};function Ue(fe){return he(fe,dt),fe}var dt=[];i.selection.enter=Ue,i.selection.enter.prototype=dt,dt.append=ee.append,dt.empty=ee.empty,dt.node=ee.node,dt.call=ee.call,dt.size=ee.size,dt.select=function(fe){for(var Se=[],Be,Ze,tt,at,Lt,vt=-1,qt=this.length;++vt<qt;){tt=(at=this[vt]).update,Se.push(Be=[]),Be.parentNode=at.parentNode;for(var dr=-1,_r=at.length;++dr<_r;)(Lt=at[dr])?(Be.push(tt[dr]=Ze=fe.call(at.parentNode,Lt.__data__,dr,vt)),Ze.__data__=Lt.__data__):Be.push(null)}return re(Se)},dt.insert=function(fe,Se){return arguments.length<2&&(Se=yt(this)),ee.insert.call(this,fe,Se)};function yt(fe){var Se,Be;return function(Ze,tt,at){var Lt=fe[at].update,vt=Lt.length,qt;for(at!=Be&&(Be=at,Se=0),tt>=Se&&(Se=tt+1);!(qt=Lt[Se])&&++Se<vt;);return qt}}i.select=function(fe){var Se;return typeof fe=="string"?(Se=[j(fe,a)],Se.parentNode=a.documentElement):(Se=[fe],Se.parentNode=o(fe)),re([Se])},i.selectAll=function(fe){var Se;return typeof fe=="string"?(Se=c(Y(fe,a)),Se.parentNode=a.documentElement):(Se=c(fe),Se.parentNode=null),re([Se])},ee.on=function(fe,Se,Be){var Ze=arguments.length;if(Ze<3){if(typeof fe!="string"){Ze<2&&(Se=!1);for(Be in fe)this.each(St(Be,fe[Be],Se));return this}if(Ze<2)return(Ze=this.node()["__on"+fe])&&Ze._;Be=!1}return this.each(St(fe,Se,Be))};function St(fe,Se,Be){var Ze="__on"+fe,tt=fe.indexOf("."),at=nr;tt>0&&(fe=fe.slice(0,tt));var Lt=Et.get(fe);Lt&&(fe=Lt,at=Ht);function vt(){var _r=this[Ze];_r&&(this.removeEventListener(fe,_r,_r.$),delete this[Ze])}function qt(){var _r=at(Se,c(arguments));vt.call(this),this.addEventListener(fe,this[Ze]=_r,_r.$=Be),_r._=Se}function dr(){var _r=new RegExp("^__on([^.]+)"+i.requote(fe)+"$"),Ir;for(var Rr in this)if(Ir=Rr.match(_r)){var ei=this[Rr];this.removeEventListener(Ir[1],ei,ei.$),delete this[Rr]}}return tt?Se?qt:vt:Se?G:dr}var Et=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Et.forEach(function(fe){"on"+fe in a&&Et.remove(fe)});function nr(fe,Se){return function(Be){var Ze=i.event;i.event=Be,Se[0]=this.__data__;try{fe.apply(this,Se)}finally{i.event=Ze}}}function Ht(fe,Se){var Be=nr(fe,Se);return function(Ze){var tt=this,at=Ze.relatedTarget;(!at||at!==tt&&!(at.compareDocumentPosition(tt)&8))&&Be.call(tt,Ze)}}var vr,sr=0;function hr(fe){var Se=".dragsuppress-"+ ++sr,Be="click"+Se,Ze=i.select(e(fe)).on("touchmove"+Se,ae).on("dragstart"+Se,ae).on("selectstart"+Se,ae);if(vr==null&&(vr="onselectstart"in fe?!1:R(fe.style,"userSelect")),vr){var tt=o(fe).style,at=tt[vr];tt[vr]="none"}return function(Lt){if(Ze.on(Se,null),vr&&(tt[vr]=at),Lt){var vt=function(){Ze.on(Be,null)};Ze.on(Be,function(){ae(),vt()},!0),setTimeout(vt,0)}}}i.mouse=function(fe){return bt(fe,ne())};var Vt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function bt(fe,Se){Se.changedTouches&&(Se=Se.changedTouches[0]);var Be=fe.ownerSVGElement||fe;if(Be.createSVGPoint){var Ze=Be.createSVGPoint();if(Vt<0){var tt=e(fe);if(tt.scrollX||tt.scrollY){Be=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var at=Be[0][0].getScreenCTM();Vt=!(at.f||at.e),Be.remove()}}return Vt?(Ze.x=Se.pageX,Ze.y=Se.pageY):(Ze.x=Se.clientX,Ze.y=Se.clientY),Ze=Ze.matrixTransform(fe.getScreenCTM().inverse()),[Ze.x,Ze.y]}var Lt=fe.getBoundingClientRect();return[Se.clientX-Lt.left-fe.clientLeft,Se.clientY-Lt.top-fe.clientTop]}i.touch=function(fe,Se,Be){if(arguments.length<3&&(Be=Se,Se=ne().changedTouches),Se){for(var Ze=0,tt=Se.length,at;Ze<tt;++Ze)if((at=Se[Ze]).identifier===Be)return bt(fe,at)}},i.behavior.drag=function(){var fe=oe(tt,"drag","dragstart","dragend"),Se=null,Be=at(G,i.mouse,e,"mousemove","mouseup"),Ze=at(Mt,i.touch,O,"touchmove","touchend");function tt(){this.on("mousedown.drag",Be).on("touchstart.drag",Ze)}function at(Lt,vt,qt,dr,_r){return function(){var Ir=this,Rr=i.event.target.correspondingElement||i.event.target,ei=Ir.parentNode,Hr=fe.of(Ir,arguments),qr=0,Kr=Lt(),ri=".drag"+(Kr==null?"":"-"+Kr),ui,si=i.select(qt(Rr)).on(dr+ri,vn).on(_r+ri,Ln),ti=hr(Rr),ji=vt(ei,Kr);Se?(ui=Se.apply(Ir,arguments),ui=[ui.x-ji[0],ui.y-ji[1]]):ui=[0,0],Hr({type:"dragstart"});function vn(){var gn=vt(ei,Kr),Nn,qn;gn&&(Nn=gn[0]-ji[0],qn=gn[1]-ji[1],qr|=Nn|qn,ji=gn,Hr({type:"drag",x:gn[0]+ui[0],y:gn[1]+ui[1],dx:Nn,dy:qn}))}function Ln(){vt(ei,Kr)&&(si.on(dr+ri,null).on(_r+ri,null),ti(qr),Hr({type:"dragend"}))}}}return tt.origin=function(Lt){return arguments.length?(Se=Lt,tt):Se},i.rebind(tt,fe,"on")};function Mt(){return i.event.changedTouches[0].identifier}i.touches=function(fe,Se){return arguments.length<2&&(Se=ne().touches),Se?c(Se).map(function(Be){var Ze=bt(fe,Be);return Ze.identifier=Be.identifier,Ze}):[]};var Dt=1e-6,Ve=Dt*Dt,De=Math.PI,Oe=2*De,Re=Oe-Dt,et=De/2,ct=De/180,lt=180/De;function Ft(fe,Se,Be){return(Se[0]-fe[0])*(Be[1]-fe[1])-(Se[1]-fe[1])*(Be[0]-fe[0])}function tr(fe){return fe>1?et:fe<-1?-et:Math.asin(fe)}function xr(fe){return((fe=Math.exp(fe))-1/fe)/2}function cr(fe){return((fe=Math.exp(fe))+1/fe)/2}function ar(fe){return((fe=Math.exp(2*fe))-1)/(fe+1)}var lr=Math.SQRT2,Wr=2,di=4;i.interpolateZoom=function(fe,Se){var Be=fe[0],Ze=fe[1],tt=fe[2],at=Se[0],Lt=Se[1],vt=Se[2],qt=at-Be,dr=Lt-Ze,_r=qt*qt+dr*dr,Ir,Rr;if(_r<Ve)Rr=Math.log(vt/tt)/lr,Ir=function(ui){return[Be+ui*qt,Ze+ui*dr,tt*Math.exp(lr*ui*Rr)]};else{var ei=Math.sqrt(_r),Hr=(vt*vt-tt*tt+di*_r)/(2*tt*Wr*ei),qr=(vt*vt-tt*tt-di*_r)/(2*vt*Wr*ei),Kr=Math.log(Math.sqrt(Hr*Hr+1)-Hr),ri=Math.log(Math.sqrt(qr*qr+1)-qr);Rr=(ri-Kr)/lr,Ir=function(ui){var si=ui*Rr,ti=cr(Kr),ji=tt/(Wr*ei)*(ti*ar(lr*si+Kr)-xr(Kr));return[Be+ji*qt,Ze+ji*dr,tt*ti/cr(lr*si+Kr)]}}return Ir.duration=Rr*1e3,Ir},i.behavior.zoom=function(){var fe={x:0,y:0,k:1},Se,Be,Ze,tt=[960,500],at=Ut,Lt=250,vt=0,qt="mousedown.zoom",dr="mousemove.zoom",_r="mouseup.zoom",Ir,Rr="touchstart.zoom",ei,Hr=oe(si,"zoomstart","zoom","zoomend"),qr,Kr,ri,ui;kt||(kt="onwheel"in a?(Tt=function(){return-i.event.deltaY*(i.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Tt=function(){return i.event.wheelDelta},"mousewheel"):(Tt=function(){return-i.event.detail},"MozMousePixelScroll"));function si(Mn){Mn.on(qt,fa).on(kt+".zoom",Bo).on("dblclick.zoom",Oo).on(Rr,Wa)}si.event=function(Mn){Mn.each(function(){var Ca=Hr.of(this,arguments),Xa=fe;lc?i.select(this).transition().each("start.zoom",function(){fe=this.__chart__||{x:0,y:0,k:1},qn(Ca)}).tween("zoom:zoom",function(){var io=tt[0],No=tt[1],Yo=Be?Be[0]:io/2,ms=Be?Be[1]:No/2,qa=i.interpolateZoom([(Yo-fe.x)/fe.k,(ms-fe.y)/fe.k,io/fe.k],[(Yo-Xa.x)/Xa.k,(ms-Xa.y)/Xa.k,io/Xa.k]);return function(Rl){var Al=qa(Rl),Ss=io/Al[2];this.__chart__=fe={x:Yo-Al[0]*Ss,y:ms-Al[1]*Ss,k:Ss},Aa(Ca)}}).each("interrupt.zoom",function(){aa(Ca)}).each("end.zoom",function(){aa(Ca)}):(this.__chart__=fe,qn(Ca),Aa(Ca),aa(Ca))})},si.translate=function(Mn){return arguments.length?(fe={x:+Mn[0],y:+Mn[1],k:fe.k},Nn(),si):[fe.x,fe.y]},si.scale=function(Mn){return arguments.length?(fe={x:fe.x,y:fe.y,k:null},vn(+Mn),Nn(),si):fe.k},si.scaleExtent=function(Mn){return arguments.length?(at=Mn==null?Ut:[+Mn[0],+Mn[1]],si):at},si.center=function(Mn){return arguments.length?(Ze=Mn&&[+Mn[0],+Mn[1]],si):Ze},si.size=function(Mn){return arguments.length?(tt=Mn&&[+Mn[0],+Mn[1]],si):tt},si.duration=function(Mn){return arguments.length?(Lt=+Mn,si):Lt},si.x=function(Mn){return arguments.length?(Kr=Mn,qr=Mn.copy(),fe={x:0,y:0,k:1},si):Kr},si.y=function(Mn){return arguments.length?(ui=Mn,ri=Mn.copy(),fe={x:0,y:0,k:1},si):ui};function ti(Mn){return[(Mn[0]-fe.x)/fe.k,(Mn[1]-fe.y)/fe.k]}function ji(Mn){return[Mn[0]*fe.k+fe.x,Mn[1]*fe.k+fe.y]}function vn(Mn){fe.k=Math.max(at[0],Math.min(at[1],Mn))}function Ln(Mn,Ca){Ca=ji(Ca),fe.x+=Mn[0]-Ca[0],fe.y+=Mn[1]-Ca[1]}function gn(Mn,Ca,Xa,io){Mn.__chart__={x:fe.x,y:fe.y,k:fe.k},vn(Math.pow(2,io)),Ln(Be=Ca,Xa),Mn=i.select(Mn),Lt>0&&(Mn=Mn.transition().duration(Lt)),Mn.call(si.event)}function Nn(){Kr&&Kr.domain(qr.range().map(function(Mn){return(Mn-fe.x)/fe.k}).map(qr.invert)),ui&&ui.domain(ri.range().map(function(Mn){return(Mn-fe.y)/fe.k}).map(ri.invert))}function qn(Mn){vt++||Mn({type:"zoomstart"})}function Aa(Mn){Nn(),Mn({type:"zoom",scale:fe.k,translate:[fe.x,fe.y]})}function aa(Mn){--vt||(Mn({type:"zoomend"}),Be=null)}function fa(){var Mn=this,Ca=Hr.of(Mn,arguments),Xa=0,io=i.select(e(Mn)).on(dr,ms).on(_r,qa),No=ti(i.mouse(Mn)),Yo=hr(Mn);Rh.call(Mn),qn(Ca);function ms(){Xa=1,Ln(i.mouse(Mn),No),Aa(Ca)}function qa(){io.on(dr,null).on(_r,null),Yo(Xa),aa(Ca)}}function Wa(){var Mn=this,Ca=Hr.of(Mn,arguments),Xa={},io=0,No,Yo=".zoom-"+i.event.changedTouches[0].identifier,ms="touchmove"+Yo,qa="touchend"+Yo,Rl=[],Al=i.select(Mn),Ss=hr(Mn);jr(),qn(Ca),Al.on(qt,null).on(Rr,jr);function Wt(){var Fi=i.touches(Mn);return No=fe.k,Fi.forEach(function(Nr){Nr.identifier in Xa&&(Xa[Nr.identifier]=ti(Nr))}),Fi}function jr(){var Fi=i.event.target;i.select(Fi).on(ms,$r).on(qa,Ei),Rl.push(Fi);for(var Nr=i.event.changedTouches,oi=0,yn=Nr.length;oi<yn;++oi)Xa[Nr[oi].identifier]=null;var pn=Wt(),_n=Date.now();if(pn.length===1){if(_n-ei<500){var Tn=pn[0];gn(Mn,Tn,Xa[Tn.identifier],Math.floor(Math.log(fe.k)/Math.LN2)+1),ae()}ei=_n}else if(pn.length>1){var Tn=pn[0],Jn=pn[1],Zn=Tn[0]-Jn[0],Qi=Tn[1]-Jn[1];io=Zn*Zn+Qi*Qi}}function $r(){var Fi=i.touches(Mn),Nr,oi,yn,pn;Rh.call(Mn);for(var _n=0,Tn=Fi.length;_n<Tn;++_n,pn=null)if(yn=Fi[_n],pn=Xa[yn.identifier]){if(oi)break;Nr=yn,oi=pn}if(pn){var Jn=(Jn=yn[0]-Nr[0])*Jn+(Jn=yn[1]-Nr[1])*Jn,Zn=io&&Math.sqrt(Jn/io);Nr=[(Nr[0]+yn[0])/2,(Nr[1]+yn[1])/2],oi=[(oi[0]+pn[0])/2,(oi[1]+pn[1])/2],vn(Zn*No)}ei=null,Ln(Nr,oi),Aa(Ca)}function Ei(){if(i.event.touches.length){for(var Fi=i.event.changedTouches,Nr=0,oi=Fi.length;Nr<oi;++Nr)delete Xa[Fi[Nr].identifier];for(var yn in Xa)return void Wt()}i.selectAll(Rl).on(Yo,null),Al.on(qt,fa).on(Rr,Wa),Ss(),aa(Ca)}}function Bo(){var Mn=Hr.of(this,arguments);Ir?clearTimeout(Ir):(Rh.call(this),Se=ti(Be=Ze||i.mouse(this)),qn(Mn)),Ir=setTimeout(function(){Ir=null,aa(Mn)},50),ae(),vn(Math.pow(2,Tt()*.002)*fe.k),Ln(Be,Se),Aa(Mn)}function Oo(){var Mn=i.mouse(this),Ca=Math.log(fe.k)/Math.LN2;gn(this,Mn,ti(Mn),i.event.shiftKey?Math.ceil(Ca)-1:Math.floor(Ca)+1)}return i.rebind(si,Hr,"on")};var Ut=[0,1/0],Tt,kt;i.color=It;function It(){}It.prototype.toString=function(){return this.rgb()+""},i.hsl=Qt;function Qt(fe,Se,Be){return this instanceof Qt?(this.h=+fe,this.s=+Se,void(this.l=+Be)):arguments.length<2?fe instanceof Qt?new Qt(fe.h,fe.s,fe.l):Tr(""+fe,Yt,Qt):new Qt(fe,Se,Be)}var Er=Qt.prototype=new It;Er.brighter=function(fe){return fe=Math.pow(.7,arguments.length?fe:1),new Qt(this.h,this.s,this.l/fe)},Er.darker=function(fe){return fe=Math.pow(.7,arguments.length?fe:1),new Qt(this.h,this.s,fe*this.l)},Er.rgb=function(){return Br(this.h,this.s,this.l)};function Br(fe,Se,Be){var Ze,tt;fe=isNaN(fe)?0:(fe%=360)<0?fe+360:fe,Se=isNaN(Se)||Se<0?0:Se>1?1:Se,Be=Be<0?0:Be>1?1:Be,tt=Be<=.5?Be*(1+Se):Be+Se-Be*Se,Ze=2*Be-tt;function at(vt){return vt>360?vt-=360:vt<0&&(vt+=360),vt<60?Ze+(tt-Ze)*vt/60:vt<180?tt:vt<240?Ze+(tt-Ze)*(240-vt)/60:Ze}function Lt(vt){return Math.round(at(vt)*255)}return new Zt(Lt(fe+120),Lt(fe),Lt(fe-120))}i.hcl=wr;function wr(fe,Se,Be){return this instanceof wr?(this.h=+fe,this.c=+Se,void(this.l=+Be)):arguments.length<2?fe instanceof wr?new wr(fe.h,fe.c,fe.l):fe instanceof _t?Ur(fe.l,fe.a,fe.b):Ur((fe=Sr((fe=i.rgb(fe)).r,fe.g,fe.b)).l,fe.a,fe.b):new wr(fe,Se,Be)}var ht=wr.prototype=new It;ht.brighter=function(fe){return new wr(this.h,this.c,Math.min(100,this.l+At*(arguments.length?fe:1)))},ht.darker=function(fe){return new wr(this.h,this.c,Math.max(0,this.l-At*(arguments.length?fe:1)))},ht.rgb=function(){return ot(this.h,this.c,this.l).rgb()};function ot(fe,Se,Be){return isNaN(fe)&&(fe=0),isNaN(Se)&&(Se=0),new _t(Be,Math.cos(fe*=ct)*Se,Math.sin(fe)*Se)}i.lab=_t;function _t(fe,Se,Be){return this instanceof _t?(this.l=+fe,this.a=+Se,void(this.b=+Be)):arguments.length<2?fe instanceof _t?new _t(fe.l,fe.a,fe.b):fe instanceof wr?ot(fe.h,fe.c,fe.l):Sr((fe=Zt(fe)).r,fe.g,fe.b):new _t(fe,Se,Be)}var At=18,Ot=.95047,yr=1,Lr=1.08883,Pr=_t.prototype=new It;Pr.brighter=function(fe){return new _t(Math.min(100,this.l+At*(arguments.length?fe:1)),this.a,this.b)},Pr.darker=function(fe){return new _t(Math.max(0,this.l-At*(arguments.length?fe:1)),this.a,this.b)},Pr.rgb=function(){return Dr(this.l,this.a,this.b)};function Dr(fe,Se,Be){var Ze=(fe+16)/116,tt=Ze+Se/500,at=Ze-Be/200;return tt=Cr(tt)*Ot,Ze=Cr(Ze)*yr,at=Cr(at)*Lr,new Zt(Ge(3.2404542*tt-1.5371385*Ze-.4985314*at),Ge(-.969266*tt+1.8760108*Ze+.041556*at),Ge(.0556434*tt-.2040259*Ze+1.0572252*at))}function Ur(fe,Se,Be){return fe>0?new wr(Math.atan2(Be,Se)*lt,Math.sqrt(Se*Se+Be*Be),fe):new wr(NaN,NaN,fe)}function Cr(fe){return fe>.206893034?fe*fe*fe:(fe-4/29)/7.787037}function Je(fe){return fe>.008856?Math.pow(fe,1/3):7.787037*fe+4/29}function Ge(fe){return Math.round(255*(fe<=.00304?12.92*fe:1.055*Math.pow(fe,1/2.4)-.055))}i.rgb=Zt;function Zt(fe,Se,Be){return this instanceof Zt?(this.r=~~fe,this.g=~~Se,void(this.b=~~Be)):arguments.length<2?fe instanceof Zt?new Zt(fe.r,fe.g,fe.b):Tr(""+fe,Zt,Br):new Zt(fe,Se,Be)}function fr(fe){return new Zt(fe>>16,fe>>8&255,fe&255)}function jt(fe){return fr(fe)+""}var Kt=Zt.prototype=new It;Kt.brighter=function(fe){fe=Math.pow(.7,arguments.length?fe:1);var Se=this.r,Be=this.g,Ze=this.b,tt=30;return!Se&&!Be&&!Ze?new Zt(tt,tt,tt):(Se&&Se<tt&&(Se=tt),Be&&Be<tt&&(Be=tt),Ze&&Ze<tt&&(Ze=tt),new Zt(Math.min(255,Se/fe),Math.min(255,Be/fe),Math.min(255,Ze/fe)))},Kt.darker=function(fe){return fe=Math.pow(.7,arguments.length?fe:1),new Zt(fe*this.r,fe*this.g,fe*this.b)},Kt.hsl=function(){return Yt(this.r,this.g,this.b)},Kt.toString=function(){return"#"+gr(this.r)+gr(this.g)+gr(this.b)};function gr(fe){return fe<16?"0"+Math.max(0,fe).toString(16):Math.min(255,fe).toString(16)}function Tr(fe,Se,Be){var Ze=0,tt=0,at=0,Lt,vt,qt;if(Lt=/([a-z]+)\((.*)\)/.exec(fe=fe.toLowerCase()),Lt)switch(vt=Lt[2].split(","),Lt[1]){case"hsl":return Be(parseFloat(vt[0]),parseFloat(vt[1])/100,parseFloat(vt[2])/100);case"rgb":return Se(ni(vt[0]),ni(vt[1]),ni(vt[2]))}return(qt=ii.get(fe))?Se(qt.r,qt.g,qt.b):(fe!=null&&fe.charAt(0)==="#"&&!isNaN(qt=parseInt(fe.slice(1),16))&&(fe.length===4?(Ze=(qt&3840)>>4,Ze=Ze>>4|Ze,tt=qt&240,tt=tt>>4|tt,at=qt&15,at=at<<4|at):fe.length===7&&(Ze=(qt&16711680)>>16,tt=(qt&65280)>>8,at=qt&255)),Se(Ze,tt,at))}function Yt(fe,Se,Be){var Ze=Math.min(fe/=255,Se/=255,Be/=255),tt=Math.max(fe,Se,Be),at=tt-Ze,Lt,vt,qt=(tt+Ze)/2;return at?(vt=qt<.5?at/(tt+Ze):at/(2-tt-Ze),fe==tt?Lt=(Se-Be)/at+(Se<Be?6:0):Se==tt?Lt=(Be-fe)/at+2:Lt=(fe-Se)/at+4,Lt*=60):(Lt=NaN,vt=qt>0&&qt<1?0:Lt),new Qt(Lt,vt,qt)}function Sr(fe,Se,Be){fe=Or(fe),Se=Or(Se),Be=Or(Be);var Ze=Je((.4124564*fe+.3575761*Se+.1804375*Be)/Ot),tt=Je((.2126729*fe+.7151522*Se+.072175*Be)/yr),at=Je((.0193339*fe+.119192*Se+.9503041*Be)/Lr);return _t(116*tt-16,500*(Ze-tt),200*(tt-at))}function Or(fe){return(fe/=255)<=.04045?fe/12.92:Math.pow((fe+.055)/1.055,2.4)}function ni(fe){var Se=parseFloat(fe);return fe.charAt(fe.length-1)==="%"?Math.round(Se*2.55):Se}var ii=i.map({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});ii.forEach(function(fe,Se){ii.set(fe,fr(Se))});function vi(fe){return typeof fe=="function"?fe:function(){return fe}}i.functor=vi,i.xhr=mi(O);function mi(fe){return function(Se,Be,Ze){return arguments.length===2&&typeof Be=="function"&&(Ze=Be,Be=null),cn(Se,Be,fe,Ze)}}function cn(fe,Se,Be,Ze){var tt={},at=i.dispatch("beforesend","progress","load","error"),Lt={},vt=new XMLHttpRequest,qt=null;self.XDomainRequest&&!("withCredentials"in vt)&&/^(http(s)?:)?\/\//.test(fe)&&(vt=new XDomainRequest),"onload"in vt?vt.onload=vt.onerror=dr:vt.onreadystatechange=function(){vt.readyState>3&&dr()};function dr(){var _r=vt.status,Ir;if(!_r&&ln(vt)||_r>=200&&_r<300||_r===304){try{Ir=Be.call(tt,vt)}catch(Rr){at.error.call(tt,Rr);return}at.load.call(tt,Ir)}else at.error.call(tt,vt)}return vt.onprogress=function(_r){var Ir=i.event;i.event=_r;try{at.progress.call(tt,vt)}finally{i.event=Ir}},tt.header=function(_r,Ir){return _r=(_r+"").toLowerCase(),arguments.length<2?Lt[_r]:(Ir==null?delete Lt[_r]:Lt[_r]=Ir+"",tt)},tt.mimeType=function(_r){return arguments.length?(Se=_r==null?null:_r+"",tt):Se},tt.responseType=function(_r){return arguments.length?(qt=_r,tt):qt},tt.response=function(_r){return Be=_r,tt},["get","post"].forEach(function(_r){tt[_r]=function(){return tt.send.apply(tt,[_r].concat(c(arguments)))}}),tt.send=function(_r,Ir,Rr){if(arguments.length===2&&typeof Ir=="function"&&(Rr=Ir,Ir=null),vt.open(_r,fe,!0),Se!=null&&!("accept"in Lt)&&(Lt.accept=Se+",*/*"),vt.setRequestHeader)for(var ei in Lt)vt.setRequestHeader(ei,Lt[ei]);return Se!=null&&vt.overrideMimeType&&vt.overrideMimeType(Se),qt!=null&&(vt.responseType=qt),Rr!=null&&tt.on("error",Rr).on("load",function(Hr){Rr(null,Hr)}),at.beforesend.call(tt,vt),vt.send(Ir??null),tt},tt.abort=function(){return vt.abort(),tt},i.rebind(tt,at,"on"),Ze==null?tt:tt.get(zi(Ze))}function zi(fe){return fe.length===1?function(Se,Be){fe(Se==null?Be:null)}:fe}function ln(fe){var Se=fe.responseType;return Se&&Se!=="text"?fe.response:fe.responseText}i.dsv=function(fe,Se){var Be=new RegExp('["'+fe+`
|
|
2
2
|
]`),Ze=fe.charCodeAt(0);function tt(dr,_r,Ir){arguments.length<3&&(Ir=_r,_r=null);var Rr=cn(dr,Se,_r==null?at:Lt(_r),Ir);return Rr.row=function(ei){return arguments.length?Rr.response((_r=ei)==null?at:Lt(ei)):_r},Rr}function at(dr){return tt.parse(dr.responseText)}function Lt(dr){return function(_r){return tt.parse(_r.responseText,dr)}}tt.parse=function(dr,_r){var Ir;return tt.parseRows(dr,function(Rr,ei){if(Ir)return Ir(Rr,ei-1);var Hr=function(qr){for(var Kr={},ri=Rr.length,ui=0;ui<ri;++ui)Kr[Rr[ui]]=qr[ui];return Kr};Ir=_r?function(qr,Kr){return _r(Hr(qr),Kr)}:Hr})},tt.parseRows=function(dr,_r){var Ir={},Rr={},ei=[],Hr=dr.length,qr=0,Kr=0,ri,ui;function si(){if(qr>=Hr)return Rr;if(ui)return ui=!1,Ir;var ji=qr;if(dr.charCodeAt(ji)===34){for(var vn=ji;vn++<Hr;)if(dr.charCodeAt(vn)===34){if(dr.charCodeAt(vn+1)!==34)break;++vn}qr=vn+2;var Ln=dr.charCodeAt(vn+1);return Ln===13?(ui=!0,dr.charCodeAt(vn+2)===10&&++qr):Ln===10&&(ui=!0),dr.slice(ji+1,vn).replace(/""/g,'"')}for(;qr<Hr;){var Ln=dr.charCodeAt(qr++),gn=1;if(Ln===10)ui=!0;else if(Ln===13)ui=!0,dr.charCodeAt(qr)===10&&(++qr,++gn);else if(Ln!==Ze)continue;return dr.slice(ji,qr-gn)}return dr.slice(ji)}for(;(ri=si())!==Rr;){for(var ti=[];ri!==Ir&&ri!==Rr;)ti.push(ri),ri=si();_r&&(ti=_r(ti,Kr++))==null||ei.push(ti)}return ei},tt.format=function(dr){if(Array.isArray(dr[0]))return tt.formatRows(dr);var _r=new N,Ir=[];return dr.forEach(function(Rr){for(var ei in Rr)_r.has(ei)||Ir.push(_r.add(ei))}),[Ir.map(qt).join(fe)].concat(dr.map(function(Rr){return Ir.map(function(ei){return qt(Rr[ei])}).join(fe)})).join(`
|
|
3
3
|
`)},tt.formatRows=function(dr){return dr.map(vt).join(`
|
|
4
4
|
`)};function vt(dr){return dr.map(qt).join(fe)}function qt(dr){return Be.test(dr)?'"'+dr.replace(/\"/g,'""')+'"':dr}return tt},i.csv=i.dsv(",","text/csv"),i.tsv=i.dsv(" ","text/tab-separated-values");var qi,Gi,Xi,fn,tn=this[R(this,"requestAnimationFrame")]||function(fe){setTimeout(fe,17)};i.timer=function(){Ra.apply(this,arguments)};function Ra(fe,Se,Be){var Ze=arguments.length;Ze<2&&(Se=0),Ze<3&&(Be=Date.now());var tt=Be+Se,at={c:fe,t:tt,n:null};return Gi?Gi.n=at:qi=at,Gi=at,Xi||(fn=clearTimeout(fn),Xi=1,tn(Si)),at}function Si(){var fe=ya(),Se=Ao()-fe;Se>24?(isFinite(Se)&&(clearTimeout(fn),fn=setTimeout(Si,Se)),Xi=0):(Xi=1,tn(Si))}i.timer.flush=function(){ya(),Ao()};function ya(){for(var fe=Date.now(),Se=qi;Se;)fe>=Se.t&&Se.c(fe-Se.t)&&(Se.c=null),Se=Se.n;return fe}function Ao(){for(var fe,Se=qi,Be=1/0;Se;)Se.c?(Se.t<Be&&(Be=Se.t),Se=(fe=Se).n):Se=fe?fe.n=Se.n:qi=Se.n;return Gi=fe,Be}i.round=function(fe,Se){return Se?Math.round(fe*(Se=Math.pow(10,Se)))/Se:Math.round(fe)},i.geom={};function Go(fe){return fe[0]}function ja(fe){return fe[1]}i.geom.hull=function(fe){var Se=Go,Be=ja;if(arguments.length)return Ze(fe);function Ze(tt){if(tt.length<3)return[];var at=vi(Se),Lt=vi(Be),vt,qt=tt.length,dr=[],_r=[];for(vt=0;vt<qt;vt++)dr.push([+at.call(this,tt[vt],vt),+Lt.call(this,tt[vt],vt),vt]);for(dr.sort(nn),vt=0;vt<qt;vt++)_r.push([dr[vt][0],-dr[vt][1]]);var Ir=hn(dr),Rr=hn(_r),ei=Rr[0]===Ir[0],Hr=Rr[Rr.length-1]===Ir[Ir.length-1],qr=[];for(vt=Ir.length-1;vt>=0;--vt)qr.push(tt[dr[Ir[vt]][2]]);for(vt=+ei;vt<Rr.length-Hr;++vt)qr.push(tt[dr[Rr[vt]][2]]);return qr}return Ze.x=function(tt){return arguments.length?(Se=tt,Ze):Se},Ze.y=function(tt){return arguments.length?(Be=tt,Ze):Be},Ze};function hn(fe){for(var Se=fe.length,Be=[0,1],Ze=2,tt=2;tt<Se;tt++){for(;Ze>1&&Ft(fe[Be[Ze-2]],fe[Be[Ze-1]],fe[tt])<=0;)--Ze;Be[Ze++]=tt}return Be.slice(0,Ze)}function nn(fe,Se){return fe[0]-Se[0]||fe[1]-Se[1]}i.geom.polygon=function(fe){return he(fe,la),fe};var la=i.geom.polygon.prototype=[];la.area=function(){for(var fe=-1,Se=this.length,Be,Ze=this[Se-1],tt=0;++fe<Se;)Be=Ze,Ze=this[fe],tt+=Be[1]*Ze[0]-Be[0]*Ze[1];return tt*.5},la.centroid=function(fe){var Se=-1,Be=this.length,Ze=0,tt=0,at,Lt=this[Be-1],vt;for(arguments.length||(fe=-1/(6*this.area()));++Se<Be;)at=Lt,Lt=this[Se],vt=at[0]*Lt[1]-Lt[0]*at[1],Ze+=(at[0]+Lt[0])*vt,tt+=(at[1]+Lt[1])*vt;return[Ze*fe,tt*fe]},la.clip=function(fe){for(var Se,Be=Pn(fe),Ze=-1,tt=this.length-Pn(this),at,Lt,vt=this[tt-1],qt,dr,_r;++Ze<tt;){for(Se=fe.slice(),fe.length=0,qt=this[Ze],dr=Se[(Lt=Se.length-Be)-1],at=-1;++at<Lt;)_r=Se[at],to(_r,vt,qt)?(to(dr,vt,qt)||fe.push(Wo(dr,_r,vt,qt)),fe.push(_r)):to(dr,vt,qt)&&fe.push(Wo(dr,_r,vt,qt)),dr=_r;Be&&fe.push(fe[0]),vt=qt}return fe};function to(fe,Se,Be){return(Be[0]-Se[0])*(fe[1]-Se[1])<(Be[1]-Se[1])*(fe[0]-Se[0])}function Wo(fe,Se,Be,Ze){var tt=fe[0],at=Be[0],Lt=Se[0]-tt,vt=Ze[0]-at,qt=fe[1],dr=Be[1],_r=Se[1]-qt,Ir=Ze[1]-dr,Rr=(vt*(qt-dr)-Ir*(tt-at))/(Ir*Lt-vt*_r);return[tt+Rr*Lt,qt+Rr*_r]}function Pn(fe){var Se=fe[0],Be=fe[fe.length-1];return!(Se[0]-Be[0]||Se[1]-Be[1])}var co,jn,za,Ja=[],Ro,So,ro=[];function $a(){Cu(this),this.edge=this.site=this.circle=null}function Fs(fe){var Se=Ja.pop()||new $a;return Se.site=fe,Se}function qo(fe){Jo(fe),za.remove(fe),Ja.push(fe),Cu(fe)}function Xs(fe){var Se=fe.circle,Be=Se.x,Ze=Se.cy,tt={x:Be,y:Ze},at=fe.P,Lt=fe.N,vt=[fe];qo(fe);for(var qt=at;qt.circle&&y(Be-qt.circle.x)<Dt&&y(Ze-qt.circle.cy)<Dt;)at=qt.P,vt.unshift(qt),qo(qt),qt=at;vt.unshift(qt),Jo(qt);for(var dr=Lt;dr.circle&&y(Be-dr.circle.x)<Dt&&y(Ze-dr.circle.cy)<Dt;)Lt=dr.N,vt.push(dr),qo(dr),dr=Lt;vt.push(dr),Jo(dr);var _r=vt.length,Ir;for(Ir=1;Ir<_r;++Ir)dr=vt[Ir],qt=vt[Ir-1],$s(dr.edge,qt.site,dr.site,tt);qt=vt[0],dr=vt[_r-1],dr.edge=On(qt.site,dr.site,null,tt),Bs(qt),Bs(dr)}function fo(fe){for(var Se=fe.x,Be=fe.y,Ze,tt,at,Lt,vt=za._;vt;)if(at=Zo(vt,Be)-Se,at>Dt)vt=vt.L;else if(Lt=Se-Hi(vt,Be),Lt>Dt){if(!vt.R){Ze=vt;break}vt=vt.R}else{at>-Dt?(Ze=vt.P,tt=vt):Lt>-Dt?(Ze=vt,tt=vt.N):Ze=tt=vt;break}var qt=Fs(fe);if(za.insert(Ze,qt),!(!Ze&&!tt)){if(Ze===tt){Jo(Ze),tt=Fs(Ze.site),za.insert(qt,tt),qt.edge=tt.edge=On(Ze.site,qt.site),Bs(Ze),Bs(tt);return}if(!tt){qt.edge=On(Ze.site,qt.site);return}Jo(Ze),Jo(tt);var dr=Ze.site,_r=dr.x,Ir=dr.y,Rr=fe.x-_r,ei=fe.y-Ir,Hr=tt.site,qr=Hr.x-_r,Kr=Hr.y-Ir,ri=2*(Rr*Kr-ei*qr),ui=Rr*Rr+ei*ei,si=qr*qr+Kr*Kr,ti={x:(Kr*ui-ei*si)/ri+_r,y:(Rr*si-qr*ui)/ri+Ir};$s(tt.edge,dr,Hr,ti),qt.edge=On(dr,fe,null,ti),tt.edge=On(fe,Hr,null,ti),Bs(Ze),Bs(tt)}}function Zo(fe,Se){var Be=fe.site,Ze=Be.x,tt=Be.y,at=tt-Se;if(!at)return Ze;var Lt=fe.P;if(!Lt)return-1/0;Be=Lt.site;var vt=Be.x,qt=Be.y,dr=qt-Se;if(!dr)return vt;var _r=vt-Ze,Ir=1/at-1/dr,Rr=_r/dr;return Ir?(-Rr+Math.sqrt(Rr*Rr-2*Ir*(_r*_r/(-2*dr)-qt+dr/2+tt-at/2)))/Ir+Ze:(Ze+vt)/2}function Hi(fe,Se){var Be=fe.N;if(Be)return Zo(Be,Se);var Ze=fe.site;return Ze.y===Se?Ze.x:1/0}function Bn(fe){this.site=fe,this.edges=[]}Bn.prototype.prepare=function(){for(var fe=this.edges,Se=fe.length,Be;Se--;)Be=fe[Se].edge,(!Be.b||!Be.a)&&fe.splice(Se,1);return fe.sort(Ys),fe.length};function bl(fe){for(var Se=fe[0][0],Be=fe[1][0],Ze=fe[0][1],tt=fe[1][1],at,Lt,vt,qt,dr=jn,_r=dr.length,Ir,Rr,ei,Hr,qr,Kr;_r--;)if(Ir=dr[_r],!(!Ir||!Ir.prepare()))for(ei=Ir.edges,Hr=ei.length,Rr=0;Rr<Hr;)Kr=ei[Rr].end(),vt=Kr.x,qt=Kr.y,qr=ei[++Rr%Hr].start(),at=qr.x,Lt=qr.y,(y(vt-at)>Dt||y(qt-Lt)>Dt)&&(ei.splice(Rr,0,new Ga(Mo(Ir.site,Kr,y(vt-Se)<Dt&&tt-qt>Dt?{x:Se,y:y(at-Se)<Dt?Lt:tt}:y(qt-tt)<Dt&&Be-vt>Dt?{x:y(Lt-tt)<Dt?at:Be,y:tt}:y(vt-Be)<Dt&&qt-Ze>Dt?{x:Be,y:y(at-Be)<Dt?Lt:Ze}:y(qt-Ze)<Dt&&vt-Se>Dt?{x:y(Lt-Ze)<Dt?at:Se,y:Ze}:null),Ir.site,null)),++Hr)}function Ys(fe,Se){return Se.angle-fe.angle}function Qa(){Cu(this),this.x=this.y=this.arc=this.site=this.cy=null}function Bs(fe){var Se=fe.P,Be=fe.N;if(!(!Se||!Be)){var Ze=Se.site,tt=fe.site,at=Be.site;if(Ze!==at){var Lt=tt.x,vt=tt.y,qt=Ze.x-Lt,dr=Ze.y-vt,_r=at.x-Lt,Kr=at.y-vt,Ir=2*(qt*Kr-dr*_r);if(!(Ir>=-Ve)){var Rr=qt*qt+dr*dr,ei=_r*_r+Kr*Kr,Hr=(Kr*Rr-dr*ei)/Ir,qr=(qt*ei-_r*Rr)/Ir,Kr=qr+vt,ri=ro.pop()||new Qa;ri.arc=fe,ri.site=tt,ri.x=Hr+Lt,ri.y=Kr+Math.sqrt(Hr*Hr+qr*qr),ri.cy=Kr,fe.circle=ri;for(var ui=null,si=So._;si;)if(ri.y<si.y||ri.y===si.y&&ri.x<=si.x)if(si.L)si=si.L;else{ui=si.P;break}else if(si.R)si=si.R;else{ui=si;break}So.insert(ui,ri),ui||(Ro=ri)}}}}function Jo(fe){var Se=fe.circle;Se&&(Se.P||(Ro=Se.N),So.remove(Se),ro.push(Se),Cu(Se),fe.circle=null)}function bs(fe,Se,Be,Ze){return function(tt){var at=tt.a,Lt=tt.b,vt=at.x,qt=at.y,dr=Lt.x,_r=Lt.y,Ir=0,Rr=1,ei=dr-vt,Hr=_r-qt,qr;if(qr=fe-vt,!(!ei&&qr>0)){if(qr/=ei,ei<0){if(qr<Ir)return;qr<Rr&&(Rr=qr)}else if(ei>0){if(qr>Rr)return;qr>Ir&&(Ir=qr)}if(qr=Be-vt,!(!ei&&qr<0)){if(qr/=ei,ei<0){if(qr>Rr)return;qr>Ir&&(Ir=qr)}else if(ei>0){if(qr<Ir)return;qr<Rr&&(Rr=qr)}if(qr=Se-qt,!(!Hr&&qr>0)){if(qr/=Hr,Hr<0){if(qr<Ir)return;qr<Rr&&(Rr=qr)}else if(Hr>0){if(qr>Rr)return;qr>Ir&&(Ir=qr)}if(qr=Ze-qt,!(!Hr&&qr<0)){if(qr/=Hr,Hr<0){if(qr>Rr)return;qr>Ir&&(Ir=qr)}else if(Hr>0){if(qr<Ir)return;qr<Rr&&(Rr=qr)}return Ir>0&&(tt.a={x:vt+Ir*ei,y:qt+Ir*Hr}),Rr<1&&(tt.b={x:vt+Rr*ei,y:qt+Rr*Hr}),tt}}}}}}function dl(fe){for(var Se=co,Be=bs(fe[0][0],fe[0][1],fe[1][0],fe[1][1]),Ze=Se.length,tt;Ze--;)tt=Se[Ze],(!mn(tt,fe)||!Be(tt)||y(tt.a.x-tt.b.x)<Dt&&y(tt.a.y-tt.b.y)<Dt)&&(tt.a=tt.b=null,Se.splice(Ze,1))}function mn(fe,Se){var Be=fe.b;if(Be)return!0;var Ze=fe.a,tt=Se[0][0],at=Se[1][0],Lt=Se[0][1],vt=Se[1][1],qt=fe.l,dr=fe.r,_r=qt.x,Ir=qt.y,Rr=dr.x,ei=dr.y,Hr=(_r+Rr)/2,qr=(Ir+ei)/2,Kr,ri;if(ei===Ir){if(Hr<tt||Hr>=at)return;if(_r>Rr){if(!Ze)Ze={x:Hr,y:Lt};else if(Ze.y>=vt)return;Be={x:Hr,y:vt}}else{if(!Ze)Ze={x:Hr,y:vt};else if(Ze.y<Lt)return;Be={x:Hr,y:Lt}}}else if(Kr=(_r-Rr)/(ei-Ir),ri=qr-Kr*Hr,Kr<-1||Kr>1)if(_r>Rr){if(!Ze)Ze={x:(Lt-ri)/Kr,y:Lt};else if(Ze.y>=vt)return;Be={x:(vt-ri)/Kr,y:vt}}else{if(!Ze)Ze={x:(vt-ri)/Kr,y:vt};else if(Ze.y<Lt)return;Be={x:(Lt-ri)/Kr,y:Lt}}else if(Ir<ei){if(!Ze)Ze={x:tt,y:Kr*tt+ri};else if(Ze.x>=at)return;Be={x:at,y:Kr*at+ri}}else{if(!Ze)Ze={x:at,y:Kr*at+ri};else if(Ze.x<tt)return;Be={x:tt,y:Kr*tt+ri}}return fe.a=Ze,fe.b=Be,!0}function Ta(fe,Se){this.l=fe,this.r=Se,this.a=this.b=null}function On(fe,Se,Be,Ze){var tt=new Ta(fe,Se);return co.push(tt),Be&&$s(tt,fe,Se,Be),Ze&&$s(tt,Se,fe,Ze),jn[fe.i].edges.push(new Ga(tt,fe,Se)),jn[Se.i].edges.push(new Ga(tt,Se,fe)),tt}function Mo(fe,Se,Be){var Ze=new Ta(fe,null);return Ze.a=Se,Ze.b=Be,co.push(Ze),Ze}function $s(fe,Se,Be,Ze){!fe.a&&!fe.b?(fe.a=Ze,fe.l=Se,fe.r=Be):fe.l===Be?fe.b=Ze:fe.a=Ze}function Ga(fe,Se,Be){var Ze=fe.a,tt=fe.b;this.edge=fe,this.site=Se,this.angle=Be?Math.atan2(Be.y-Se.y,Be.x-Se.x):fe.l===Se?Math.atan2(tt.x-Ze.x,Ze.y-tt.y):Math.atan2(Ze.x-tt.x,tt.y-Ze.y)}Ga.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function ec(){this._=null}function Cu(fe){fe.U=fe.C=fe.L=fe.R=fe.P=fe.N=null}ec.prototype={insert:function(fe,Se){var Be,Ze,tt;if(fe){if(Se.P=fe,Se.N=fe.N,fe.N&&(fe.N.P=Se),fe.N=Se,fe.R){for(fe=fe.R;fe.L;)fe=fe.L;fe.L=Se}else fe.R=Se;Be=fe}else this._?(fe=Gl(this._),Se.P=null,Se.N=fe,fe.P=fe.L=Se,Be=fe):(Se.P=Se.N=null,this._=Se,Be=null);for(Se.L=Se.R=null,Se.U=Be,Se.C=!0,fe=Se;Be&&Be.C;)Ze=Be.U,Be===Ze.L?(tt=Ze.R,tt&&tt.C?(Be.C=tt.C=!1,Ze.C=!0,fe=Ze):(fe===Be.R&&(El(this,Be),fe=Be,Be=fe.U),Be.C=!1,Ze.C=!0,tc(this,Ze))):(tt=Ze.L,tt&&tt.C?(Be.C=tt.C=!1,Ze.C=!0,fe=Ze):(fe===Be.L&&(tc(this,Be),fe=Be,Be=fe.U),Be.C=!1,Ze.C=!0,El(this,Ze))),Be=fe.U;this._.C=!1},remove:function(fe){fe.N&&(fe.N.P=fe.P),fe.P&&(fe.P.N=fe.N),fe.N=fe.P=null;var Se=fe.U,Be,Ze=fe.L,tt=fe.R,at,Lt;if(Ze?tt?at=Gl(tt):at=Ze:at=tt,Se?Se.L===fe?Se.L=at:Se.R=at:this._=at,Ze&&tt?(Lt=at.C,at.C=fe.C,at.L=Ze,Ze.U=at,at!==tt?(Se=at.U,at.U=fe.U,fe=at.R,Se.L=fe,at.R=tt,tt.U=at):(at.U=Se,Se=at,fe=at.R)):(Lt=fe.C,fe=at),fe&&(fe.U=Se),!Lt){if(fe&&fe.C){fe.C=!1;return}do{if(fe===this._)break;if(fe===Se.L){if(Be=Se.R,Be.C&&(Be.C=!1,Se.C=!0,El(this,Se),Be=Se.R),Be.L&&Be.L.C||Be.R&&Be.R.C){(!Be.R||!Be.R.C)&&(Be.L.C=!1,Be.C=!0,tc(this,Be),Be=Se.R),Be.C=Se.C,Se.C=Be.R.C=!1,El(this,Se),fe=this._;break}}else if(Be=Se.L,Be.C&&(Be.C=!1,Se.C=!0,tc(this,Se),Be=Se.L),Be.L&&Be.L.C||Be.R&&Be.R.C){(!Be.L||!Be.L.C)&&(Be.R.C=!1,Be.C=!0,El(this,Be),Be=Se.L),Be.C=Se.C,Se.C=Be.L.C=!1,tc(this,Se),fe=this._;break}Be.C=!0,fe=Se,Se=Se.U}while(!fe.C);fe&&(fe.C=!1)}}};function El(fe,Se){var Be=Se,Ze=Se.R,tt=Be.U;tt?tt.L===Be?tt.L=Ze:tt.R=Ze:fe._=Ze,Ze.U=tt,Be.U=Ze,Be.R=Ze.L,Be.R&&(Be.R.U=Be),Ze.L=Be}function tc(fe,Se){var Be=Se,Ze=Se.L,tt=Be.U;tt?tt.L===Be?tt.L=Ze:tt.R=Ze:fe._=Ze,Ze.U=tt,Be.U=Ze,Be.L=Ze.R,Be.L&&(Be.L.U=Be),Ze.R=Be}function Gl(fe){for(;fe.L;)fe=fe.L;return fe}function as(fe,Se){var Be=fe.sort(yc).pop(),Ze,tt,at;for(co=[],jn=new Array(fe.length),za=new ec,So=new ec;;)if(at=Ro,Be&&(!at||Be.y<at.y||Be.y===at.y&&Be.x<at.x))(Be.x!==Ze||Be.y!==tt)&&(jn[Be.i]=new Bn(Be),fo(Be),Ze=Be.x,tt=Be.y),Be=fe.pop();else if(at)Xs(at.arc);else break;Se&&(dl(Se),bl(Se));var Lt={cells:jn,edges:co};return za=So=co=jn=null,Lt}function yc(fe,Se){return Se.y-fe.y||Se.x-fe.x}i.geom.voronoi=function(fe){var Se=Go,Be=ja,Ze=Se,tt=Be,at=Ll;if(fe)return Lt(fe);function Lt(qt){var dr=new Array(qt.length),_r=at[0][0],Ir=at[0][1],Rr=at[1][0],ei=at[1][1];return as(vt(qt),at).cells.forEach(function(Hr,qr){var Kr=Hr.edges,ri=Hr.site,ui=dr[qr]=Kr.length?Kr.map(function(si){var ti=si.start();return[ti.x,ti.y]}):ri.x>=_r&&ri.x<=Rr&&ri.y>=Ir&&ri.y<=ei?[[_r,ei],[Rr,ei],[Rr,Ir],[_r,Ir]]:[];ui.point=qt[qr]}),dr}function vt(qt){return qt.map(function(dr,_r){return{x:Math.round(Ze(dr,_r)/Dt)*Dt,y:Math.round(tt(dr,_r)/Dt)*Dt,i:_r}})}return Lt.links=function(qt){return as(vt(qt)).edges.filter(function(dr){return dr.l&&dr.r}).map(function(dr){return{source:qt[dr.l.i],target:qt[dr.r.i]}})},Lt.triangles=function(qt){var dr=[];return as(vt(qt)).cells.forEach(function(_r,Ir){for(var Rr=_r.site,ei=_r.edges.sort(Ys),Hr=-1,qr=ei.length,Kr,ri=ei[qr-1].edge,ui=ri.l===Rr?ri.r:ri.l;++Hr<qr;)Kr=ui,ri=ei[Hr].edge,ui=ri.l===Rr?ri.r:ri.l,Ir<Kr.i&&Ir<ui.i&&Pd(Rr,Kr,ui)<0&&dr.push([qt[Ir],qt[Kr.i],qt[ui.i]])}),dr},Lt.x=function(qt){return arguments.length?(Ze=vi(Se=qt),Lt):Se},Lt.y=function(qt){return arguments.length?(tt=vi(Be=qt),Lt):Be},Lt.clipExtent=function(qt){return arguments.length?(at=qt??Ll,Lt):at===Ll?null:at},Lt.size=function(qt){return arguments.length?Lt.clipExtent(qt&&[[0,0],qt]):at===Ll?null:at&&at[1]},Lt};var Ll=[[-1e6,-1e6],[1e6,1e6]];function Pd(fe,Se,Be){return(fe.x-Be.x)*(Se.y-fe.y)-(fe.x-Se.x)*(Be.y-fe.y)}i.geom.delaunay=function(fe){return i.geom.voronoi().triangles(fe)},i.geom.quadtree=function(fe,Se,Be,Ze,tt){var at=Go,Lt=ja,vt;if(vt=arguments.length)return at=Tf,Lt=ws,vt===3&&(tt=Be,Ze=Se,Be=Se=0),qt(fe);function qt(dr){var _r,Ir=vi(at),Rr=vi(Lt),ei,Hr,qr,Kr,ri,ui,si,ti;if(Se!=null)ri=Se,ui=Be,si=Ze,ti=tt;else if(si=ti=-(ri=ui=1/0),ei=[],Hr=[],Kr=dr.length,vt)for(qr=0;qr<Kr;++qr)_r=dr[qr],_r.x<ri&&(ri=_r.x),_r.y<ui&&(ui=_r.y),_r.x>si&&(si=_r.x),_r.y>ti&&(ti=_r.y),ei.push(_r.x),Hr.push(_r.y);else for(qr=0;qr<Kr;++qr){var ji=+Ir(_r=dr[qr],qr),vn=+Rr(_r,qr);ji<ri&&(ri=ji),vn<ui&&(ui=vn),ji>si&&(si=ji),vn>ti&&(ti=vn),ei.push(ji),Hr.push(vn)}var Ln=si-ri,gn=ti-ui;Ln>gn?ti=ui+Ln:si=ri+gn;function Nn(aa,fa,Wa,Bo,Oo,Mn,Ca,Xa){if(!(isNaN(Wa)||isNaN(Bo)))if(aa.leaf){var io=aa.x,No=aa.y;if(io!=null)if(y(io-Wa)+y(No-Bo)<.01)qn(aa,fa,Wa,Bo,Oo,Mn,Ca,Xa);else{var Yo=aa.point;aa.x=aa.y=aa.point=null,qn(aa,Yo,io,No,Oo,Mn,Ca,Xa),qn(aa,fa,Wa,Bo,Oo,Mn,Ca,Xa)}else aa.x=Wa,aa.y=Bo,aa.point=fa}else qn(aa,fa,Wa,Bo,Oo,Mn,Ca,Xa)}function qn(aa,fa,Wa,Bo,Oo,Mn,Ca,Xa){var io=(Oo+Ca)*.5,No=(Mn+Xa)*.5,Yo=Wa>=io,ms=Bo>=No,qa=ms<<1|Yo;aa.leaf=!1,aa=aa.nodes[qa]||(aa.nodes[qa]=$h()),Yo?Oo=io:Ca=io,ms?Mn=No:Xa=No,Nn(aa,fa,Wa,Bo,Oo,Mn,Ca,Xa)}var Aa=$h();if(Aa.add=function(aa){Nn(Aa,aa,+Ir(aa,++qr),+Rr(aa,qr),ri,ui,si,ti)},Aa.visit=function(aa){Fo(aa,Aa,ri,ui,si,ti)},Aa.find=function(aa){return Jl(Aa,aa[0],aa[1],ri,ui,si,ti)},qr=-1,Se==null){for(;++qr<Kr;)Nn(Aa,dr[qr],ei[qr],Hr[qr],ri,ui,si,ti);--qr}else dr.forEach(Aa.add);return ei=Hr=dr=_r=null,Aa}return qt.x=function(dr){return arguments.length?(at=dr,qt):at},qt.y=function(dr){return arguments.length?(Lt=dr,qt):Lt},qt.extent=function(dr){return arguments.length?(dr==null?Se=Be=Ze=tt=null:(Se=+dr[0][0],Be=+dr[0][1],Ze=+dr[1][0],tt=+dr[1][1]),qt):Se==null?null:[[Se,Be],[Ze,tt]]},qt.size=function(dr){return arguments.length?(dr==null?Se=Be=Ze=tt=null:(Se=Be=0,Ze=+dr[0],tt=+dr[1]),qt):Se==null?null:[Ze-Se,tt-Be]},qt};function Tf(fe){return fe.x}function ws(fe){return fe.y}function $h(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Fo(fe,Se,Be,Ze,tt,at){if(!fe(Se,Be,Ze,tt,at)){var Lt=(Be+tt)*.5,vt=(Ze+at)*.5,qt=Se.nodes;qt[0]&&Fo(fe,qt[0],Be,Ze,Lt,vt),qt[1]&&Fo(fe,qt[1],Lt,Ze,tt,vt),qt[2]&&Fo(fe,qt[2],Be,vt,Lt,at),qt[3]&&Fo(fe,qt[3],Lt,vt,tt,at)}}function Jl(fe,Se,Be,Ze,tt,at,Lt){var vt=1/0,qt;return(function dr(_r,Ir,Rr,ei,Hr){if(!(Ir>at||Rr>Lt||ei<Ze||Hr<tt)){if(qr=_r.point){var qr,Kr=Se-_r.x,ri=Be-_r.y,ui=Kr*Kr+ri*ri;if(ui<vt){var si=Math.sqrt(vt=ui);Ze=Se-si,tt=Be-si,at=Se+si,Lt=Be+si,qt=qr}}for(var ti=_r.nodes,ji=(Ir+ei)*.5,vn=(Rr+Hr)*.5,Ln=Se>=ji,gn=Be>=vn,Nn=gn<<1|Ln,qn=Nn+4;Nn<qn;++Nn)if(_r=ti[Nn&3])switch(Nn&3){case 0:dr(_r,Ir,Rr,ji,vn);break;case 1:dr(_r,ji,Rr,ei,vn);break;case 2:dr(_r,Ir,vn,ji,Hr);break;case 3:dr(_r,ji,vn,ei,Hr);break}}})(fe,Ze,tt,at,Lt),qt}i.interpolateRgb=Ql;function Ql(fe,Se){fe=i.rgb(fe),Se=i.rgb(Se);var Be=fe.r,Ze=fe.g,tt=fe.b,at=Se.r-Be,Lt=Se.g-Ze,vt=Se.b-tt;return function(qt){return"#"+gr(Math.round(Be+at*qt))+gr(Math.round(Ze+Lt*qt))+gr(Math.round(tt+vt*qt))}}i.interpolateObject=Ol;function Ol(fe,Se){var Be={},Ze={},tt;for(tt in fe)tt in Se?Be[tt]=ss(fe[tt],Se[tt]):Ze[tt]=fe[tt];for(tt in Se)tt in fe||(Ze[tt]=Se[tt]);return function(at){for(tt in Be)Ze[tt]=Be[tt](at);return Ze}}i.interpolateNumber=os;function os(fe,Se){return fe=+fe,Se=+Se,function(Be){return fe*(1-Be)+Se*Be}}i.interpolateString=yu;function yu(fe,Se){var Be=mc.lastIndex=Gs.lastIndex=0,Ze,tt,at,Lt=-1,vt=[],qt=[];for(fe=fe+"",Se=Se+"";(Ze=mc.exec(fe))&&(tt=Gs.exec(Se));)(at=tt.index)>Be&&(at=Se.slice(Be,at),vt[Lt]?vt[Lt]+=at:vt[++Lt]=at),(Ze=Ze[0])===(tt=tt[0])?vt[Lt]?vt[Lt]+=tt:vt[++Lt]=tt:(vt[++Lt]=null,qt.push({i:Lt,x:os(Ze,tt)})),Be=Gs.lastIndex;return Be<Se.length&&(at=Se.slice(Be),vt[Lt]?vt[Lt]+=at:vt[++Lt]=at),vt.length<2?qt[0]?(Se=qt[0].x,function(dr){return Se(dr)+""}):function(){return Se}:(Se=qt.length,function(dr){for(var _r=0,Ir;_r<Se;++_r)vt[(Ir=qt[_r]).i]=Ir.x(dr);return vt.join("")})}var mc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gs=new RegExp(mc.source,"g");i.interpolate=ss;function ss(fe,Se){for(var Be=i.interpolators.length,Ze;--Be>=0&&!(Ze=i.interpolators[Be](fe,Se)););return Ze}i.interpolators=[function(fe,Se){var Be=typeof Se;return(Be==="string"?ii.has(Se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Se)?Ql:yu:Se instanceof It?Ql:Array.isArray(Se)?Is:Be==="object"&&isNaN(Se)?Ol:os)(fe,Se)}],i.interpolateArray=Is;function Is(fe,Se){var Be=[],Ze=[],tt=fe.length,at=Se.length,Lt=Math.min(fe.length,Se.length),vt;for(vt=0;vt<Lt;++vt)Be.push(ss(fe[vt],Se[vt]));for(;vt<tt;++vt)Ze[vt]=fe[vt];for(;vt<at;++vt)Ze[vt]=Se[vt];return function(qt){for(vt=0;vt<Lt;++vt)Ze[vt]=Be[vt](qt);return Ze}}var Ts=function(){return O},rl=i.map({linear:Ts,poly:Ho,quad:function(){return Bu},cubic:function(){return qv},sin:function(){return Kh},exp:function(){return xc},circle:function(){return uu},elastic:Wf,back:Rd,bounce:function(){return fv}}),Nl=i.map({in:O,out:_c,"in-out":Dc,"out-in":function(fe){return Dc(_c(fe))}});i.ease=function(fe){var Se=fe.indexOf("-"),Be=Se>=0?fe.slice(0,Se):fe,Ze=Se>=0?fe.slice(Se+1):"in";return Be=rl.get(Be)||Ts,Ze=Nl.get(Ze)||O,Il(Ze(Be.apply(null,h.call(arguments,1))))};function Il(fe){return function(Se){return Se<=0?0:Se>=1?1:fe(Se)}}function _c(fe){return function(Se){return 1-fe(1-Se)}}function Dc(fe){return function(Se){return .5*(Se<.5?fe(2*Se):2-fe(2-2*Se))}}function Bu(fe){return fe*fe}function qv(fe){return fe*fe*fe}function lu(fe){if(fe<=0)return 0;if(fe>=1)return 1;var Se=fe*fe,Be=Se*fe;return 4*(fe<.5?Be:3*(fe-Se)+Be-.75)}function Ho(fe){return function(Se){return Math.pow(Se,fe)}}function Kh(fe){return 1-Math.cos(fe*et)}function xc(fe){return Math.pow(2,10*(fe-1))}function uu(fe){return 1-Math.sqrt(1-fe*fe)}function Wf(fe,Se){var Be;return arguments.length<2&&(Se=.45),arguments.length?Be=Se/Oe*Math.asin(1/fe):(fe=1,Be=Se/4),function(Ze){return 1+fe*Math.pow(2,-10*Ze)*Math.sin((Ze-Be)*Oe/Se)}}function Rd(fe){return fe||(fe=1.70158),function(Se){return Se*Se*((fe+1)*Se-fe)}}function fv(fe){return fe<1/2.75?7.5625*fe*fe:fe<2/2.75?7.5625*(fe-=1.5/2.75)*fe+.75:fe<2.5/2.75?7.5625*(fe-=2.25/2.75)*fe+.9375:7.5625*(fe-=2.625/2.75)*fe+.984375}i.interpolateHcl=Zf;function Zf(fe,Se){fe=i.hcl(fe),Se=i.hcl(Se);var Be=fe.h,Ze=fe.c,tt=fe.l,at=Se.h-Be,Lt=Se.c-Ze,vt=Se.l-tt;return isNaN(Lt)&&(Lt=0,Ze=isNaN(Ze)?Se.c:Ze),isNaN(at)?(at=0,Be=isNaN(Be)?Se.h:Be):at>180?at-=360:at<-180&&(at+=360),function(qt){return ot(Be+at*qt,Ze+Lt*qt,tt+vt*qt)+""}}i.interpolateHsl=Dd;function Dd(fe,Se){fe=i.hsl(fe),Se=i.hsl(Se);var Be=fe.h,Ze=fe.s,tt=fe.l,at=Se.h-Be,Lt=Se.s-Ze,vt=Se.l-tt;return isNaN(Lt)&&(Lt=0,Ze=isNaN(Ze)?Se.s:Ze),isNaN(at)?(at=0,Be=isNaN(Be)?Se.h:Be):at>180?at-=360:at<-180&&(at+=360),function(qt){return Br(Be+at*qt,Ze+Lt*qt,tt+vt*qt)+""}}i.interpolateLab=Jh;function Jh(fe,Se){fe=i.lab(fe),Se=i.lab(Se);var Be=fe.l,Ze=fe.a,tt=fe.b,at=Se.l-Be,Lt=Se.a-Ze,vt=Se.b-tt;return function(qt){return Dr(Be+at*qt,Ze+Lt*qt,tt+vt*qt)+""}}i.interpolateRound=zd;function zd(fe,Se){return Se-=fe,function(Be){return Math.round(fe+Se*Be)}}i.transform=function(fe){var Se=a.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(Be){if(Be!=null){Se.setAttribute("transform",Be);var Ze=Se.transform.baseVal.consolidate()}return new Qh(Ze?Ze.matrix:Xf)})(fe)};function Qh(fe){var Se=[fe.a,fe.b],Be=[fe.c,fe.d],Ze=dv(Se),tt=hv(Se,Be),at=dv(vv(Be,Se,-tt))||0;Se[0]*Be[1]<Be[0]*Se[1]&&(Se[0]*=-1,Se[1]*=-1,Ze*=-1,tt*=-1),this.rotate=(Ze?Math.atan2(Se[1],Se[0]):Math.atan2(-Be[0],Be[1]))*lt,this.translate=[fe.e,fe.f],this.scale=[Ze,at],this.skew=at?Math.atan2(tt,at)*lt:0}Qh.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function hv(fe,Se){return fe[0]*Se[0]+fe[1]*Se[1]}function dv(fe){var Se=Math.sqrt(hv(fe,fe));return Se&&(fe[0]/=Se,fe[1]/=Se),Se}function vv(fe,Se,Be){return fe[0]+=Be*Se[0],fe[1]+=Be*Se[1],fe}var Xf={a:1,b:0,c:0,d:1,e:0,f:0};i.interpolateTransform=_o;function Jc(fe){return fe.length?fe.pop()+",":""}function ed(fe,Se,Be,Ze){if(fe[0]!==Se[0]||fe[1]!==Se[1]){var tt=Be.push("translate(",null,",",null,")");Ze.push({i:tt-4,x:os(fe[0],Se[0])},{i:tt-2,x:os(fe[1],Se[1])})}else(Se[0]||Se[1])&&Be.push("translate("+Se+")")}function Af(fe,Se,Be,Ze){fe!==Se?(fe-Se>180?Se+=360:Se-fe>180&&(fe+=360),Ze.push({i:Be.push(Jc(Be)+"rotate(",null,")")-2,x:os(fe,Se)})):Se&&Be.push(Jc(Be)+"rotate("+Se+")")}function _h(fe,Se,Be,Ze){fe!==Se?Ze.push({i:Be.push(Jc(Be)+"skewX(",null,")")-2,x:os(fe,Se)}):Se&&Be.push(Jc(Be)+"skewX("+Se+")")}function ql(fe,Se,Be,Ze){if(fe[0]!==Se[0]||fe[1]!==Se[1]){var tt=Be.push(Jc(Be)+"scale(",null,",",null,")");Ze.push({i:tt-4,x:os(fe[0],Se[0])},{i:tt-2,x:os(fe[1],Se[1])})}else(Se[0]!==1||Se[1]!==1)&&Be.push(Jc(Be)+"scale("+Se+")")}function _o(fe,Se){var Be=[],Ze=[];return fe=i.transform(fe),Se=i.transform(Se),ed(fe.translate,Se.translate,Be,Ze),Af(fe.rotate,Se.rotate,Be,Ze),_h(fe.skew,Se.skew,Be,Ze),ql(fe.scale,Se.scale,Be,Ze),fe=Se=null,function(tt){for(var at=-1,Lt=Ze.length,vt;++at<Lt;)Be[(vt=Ze[at]).i]=vt.x(tt);return Be.join("")}}function Fd(fe,Se){return Se=(Se-=fe=+fe)||1/Se,function(Be){return(Be-fe)/Se}}function Yf(fe,Se){return Se=(Se-=fe=+fe)||1/Se,function(Be){return Math.max(0,Math.min(1,(Be-fe)/Se))}}i.layout={},i.layout.bundle=function(){return function(fe){for(var Se=[],Be=-1,Ze=fe.length;++Be<Ze;)Se.push(Bd(fe[Be]));return Se}};function Bd(fe){for(var Se=fe.source,Be=fe.target,Ze=Uv(Se,Be),tt=[Se];Se!==Ze;)Se=Se.parent,tt.push(Se);for(var at=tt.length;Be!==Ze;)tt.splice(at,0,Be),Be=Be.parent;return tt}function pv(fe){for(var Se=[],Be=fe.parent;Be!=null;)Se.push(fe),fe=Be,Be=Be.parent;return Se.push(fe),Se}function Uv(fe,Se){if(fe===Se)return fe;for(var Be=pv(fe),Ze=pv(Se),tt=Be.pop(),at=Ze.pop(),Lt=null;tt===at;)Lt=tt,tt=Be.pop(),at=Ze.pop();return Lt}i.layout.chord=function(){var fe={},Se,Be,Ze,tt,at=0,Lt,vt,qt;function dr(){var Ir={},Rr=[],ei=i.range(tt),Hr=[],qr,Kr,ri,ui,si;for(Se=[],Be=[],qr=0,ui=-1;++ui<tt;){for(Kr=0,si=-1;++si<tt;)Kr+=Ze[ui][si];Rr.push(Kr),Hr.push(i.range(tt)),qr+=Kr}for(Lt&&ei.sort(function(Aa,aa){return Lt(Rr[Aa],Rr[aa])}),vt&&Hr.forEach(function(Aa,aa){Aa.sort(function(fa,Wa){return vt(Ze[aa][fa],Ze[aa][Wa])})}),qr=(Oe-at*tt)/qr,Kr=0,ui=-1;++ui<tt;){for(ri=Kr,si=-1;++si<tt;){var ti=ei[ui],ji=Hr[ti][si],vn=Ze[ti][ji],Ln=Kr,gn=Kr+=vn*qr;Ir[ti+"-"+ji]={index:ti,subindex:ji,startAngle:Ln,endAngle:gn,value:vn}}Be[ti]={index:ti,startAngle:ri,endAngle:Kr,value:Rr[ti]},Kr+=at}for(ui=-1;++ui<tt;)for(si=ui-1;++si<tt;){var Nn=Ir[ui+"-"+si],qn=Ir[si+"-"+ui];(Nn.value||qn.value)&&Se.push(Nn.value<qn.value?{source:qn,target:Nn}:{source:Nn,target:qn})}qt&&_r()}function _r(){Se.sort(function(Ir,Rr){return qt((Ir.source.value+Ir.target.value)/2,(Rr.source.value+Rr.target.value)/2)})}return fe.matrix=function(Ir){return arguments.length?(tt=(Ze=Ir)&&Ze.length,Se=Be=null,fe):Ze},fe.padding=function(Ir){return arguments.length?(at=Ir,Se=Be=null,fe):at},fe.sortGroups=function(Ir){return arguments.length?(Lt=Ir,Se=Be=null,fe):Lt},fe.sortSubgroups=function(Ir){return arguments.length?(vt=Ir,Se=null,fe):vt},fe.sortChords=function(Ir){return arguments.length?(qt=Ir,Se&&_r(),fe):qt},fe.chords=function(){return Se||dr(),Se},fe.groups=function(){return Be||dr(),Be},fe},i.layout.force=function(){var fe={},Se=i.dispatch("start","tick","end"),Be,Ze=[1,1],tt,at,Lt=.9,vt=tu,qt=rd,dr=-30,_r=Qc,Ir=.1,Rr=.64,ei=[],Hr=[],qr,Kr,ri;function ui(ti){return function(ji,vn,Ln,gn){if(ji.point!==ti){var Nn=ji.cx-ti.x,qn=ji.cy-ti.y,Aa=gn-vn,aa=Nn*Nn+qn*qn;if(Aa*Aa/Rr<aa){if(aa<_r){var fa=ji.charge/aa;ti.px-=Nn*fa,ti.py-=qn*fa}return!0}if(ji.point&&aa&&aa<_r){var fa=ji.pointCharge/aa;ti.px-=Nn*fa,ti.py-=qn*fa}}return!ji.charge}}fe.tick=function(){if((at*=.99)<.005)return Be=null,Se.end({type:"end",alpha:at=0}),!0;var ti=ei.length,ji=Hr.length,vn,Ln,gn,Nn,qn,Aa,aa,fa,Wa;for(Ln=0;Ln<ji;++Ln)gn=Hr[Ln],Nn=gn.source,qn=gn.target,fa=qn.x-Nn.x,Wa=qn.y-Nn.y,(Aa=fa*fa+Wa*Wa)&&(Aa=at*Kr[Ln]*((Aa=Math.sqrt(Aa))-qr[Ln])/Aa,fa*=Aa,Wa*=Aa,qn.x-=fa*(aa=Nn.weight+qn.weight?Nn.weight/(Nn.weight+qn.weight):.5),qn.y-=Wa*aa,Nn.x+=fa*(aa=1-aa),Nn.y+=Wa*aa);if((aa=at*Ir)&&(fa=Ze[0]/2,Wa=Ze[1]/2,Ln=-1,aa))for(;++Ln<ti;)gn=ei[Ln],gn.x+=(fa-gn.x)*aa,gn.y+=(Wa-gn.y)*aa;if(dr)for(zc(vn=i.geom.quadtree(ei),at,ri),Ln=-1;++Ln<ti;)(gn=ei[Ln]).fixed||vn.visit(ui(gn));for(Ln=-1;++Ln<ti;)gn=ei[Ln],gn.fixed?(gn.x=gn.px,gn.y=gn.py):(gn.x-=(gn.px-(gn.px=gn.x))*Lt,gn.y-=(gn.py-(gn.py=gn.y))*Lt);Se.tick({type:"tick",alpha:at})},fe.nodes=function(ti){return arguments.length?(ei=ti,fe):ei},fe.links=function(ti){return arguments.length?(Hr=ti,fe):Hr},fe.size=function(ti){return arguments.length?(Ze=ti,fe):Ze},fe.linkDistance=function(ti){return arguments.length?(vt=typeof ti=="function"?ti:+ti,fe):vt},fe.distance=fe.linkDistance,fe.linkStrength=function(ti){return arguments.length?(qt=typeof ti=="function"?ti:+ti,fe):qt},fe.friction=function(ti){return arguments.length?(Lt=+ti,fe):Lt},fe.charge=function(ti){return arguments.length?(dr=typeof ti=="function"?ti:+ti,fe):dr},fe.chargeDistance=function(ti){return arguments.length?(_r=ti*ti,fe):Math.sqrt(_r)},fe.gravity=function(ti){return arguments.length?(Ir=+ti,fe):Ir},fe.theta=function(ti){return arguments.length?(Rr=ti*ti,fe):Math.sqrt(Rr)},fe.alpha=function(ti){return arguments.length?(ti=+ti,at?ti>0?at=ti:(Be.c=null,Be.t=NaN,Be=null,Se.end({type:"end",alpha:at=0})):ti>0&&(Se.start({type:"start",alpha:at=ti}),Be=Ra(fe.tick)),fe):at},fe.start=function(){var ti,ji=ei.length,vn=Hr.length,Ln=Ze[0],gn=Ze[1],Nn,qn;for(ti=0;ti<ji;++ti)(qn=ei[ti]).index=ti,qn.weight=0;for(ti=0;ti<vn;++ti)qn=Hr[ti],typeof qn.source=="number"&&(qn.source=ei[qn.source]),typeof qn.target=="number"&&(qn.target=ei[qn.target]),++qn.source.weight,++qn.target.weight;for(ti=0;ti<ji;++ti)qn=ei[ti],isNaN(qn.x)&&(qn.x=Aa("x",Ln)),isNaN(qn.y)&&(qn.y=Aa("y",gn)),isNaN(qn.px)&&(qn.px=qn.x),isNaN(qn.py)&&(qn.py=qn.y);if(qr=[],typeof vt=="function")for(ti=0;ti<vn;++ti)qr[ti]=+vt.call(this,Hr[ti],ti);else for(ti=0;ti<vn;++ti)qr[ti]=vt;if(Kr=[],typeof qt=="function")for(ti=0;ti<vn;++ti)Kr[ti]=+qt.call(this,Hr[ti],ti);else for(ti=0;ti<vn;++ti)Kr[ti]=qt;if(ri=[],typeof dr=="function")for(ti=0;ti<ji;++ti)ri[ti]=+dr.call(this,ei[ti],ti);else for(ti=0;ti<ji;++ti)ri[ti]=dr;function Aa(aa,fa){if(!Nn){for(Nn=new Array(ji),Oo=0;Oo<ji;++Oo)Nn[Oo]=[];for(Oo=0;Oo<vn;++Oo){var Wa=Hr[Oo];Nn[Wa.source.index].push(Wa.target),Nn[Wa.target.index].push(Wa.source)}}for(var Bo=Nn[ti],Oo=-1,Mn=Bo.length,Ca;++Oo<Mn;)if(!isNaN(Ca=Bo[Oo][aa]))return Ca;return Math.random()*fa}return fe.resume()},fe.resume=function(){return fe.alpha(.1)},fe.stop=function(){return fe.alpha(0)},fe.drag=function(){if(tt||(tt=i.behavior.drag().origin(O).on("dragstart.force",rc).on("drag.force",si).on("dragend.force",td)),!arguments.length)return tt;this.on("mouseover.force",eu).on("mouseout.force",$f).call(tt)};function si(ti){ti.px=i.event.x,ti.py=i.event.y,fe.resume()}return i.rebind(fe,Se,"on")};function rc(fe){fe.fixed|=2}function td(fe){fe.fixed&=-7}function eu(fe){fe.fixed|=4,fe.px=fe.x,fe.py=fe.y}function $f(fe){fe.fixed&=-5}function zc(fe,Se,Be){var Ze=0,tt=0;if(fe.charge=0,!fe.leaf)for(var at=fe.nodes,Lt=at.length,vt=-1,qt;++vt<Lt;)qt=at[vt],qt!=null&&(zc(qt,Se,Be),fe.charge+=qt.charge,Ze+=qt.charge*qt.cx,tt+=qt.charge*qt.cy);if(fe.point){fe.leaf||(fe.point.x+=Math.random()-.5,fe.point.y+=Math.random()-.5);var dr=Se*Be[fe.point.index];fe.charge+=fe.pointCharge=dr,Ze+=dr*fe.point.x,tt+=dr*fe.point.y}fe.cx=Ze/fe.charge,fe.cy=tt/fe.charge}var tu=20,rd=1,Qc=1/0;i.layout.hierarchy=function(){var fe=Hv,Se=Vv,Be=id;function Ze(tt){var at=[tt],Lt=[],vt;for(tt.depth=0;(vt=at.pop())!=null;)if(Lt.push(vt),(dr=Se.call(Ze,vt,vt.depth))&&(qt=dr.length)){for(var qt,dr,_r;--qt>=0;)at.push(_r=dr[qt]),_r.parent=vt,_r.depth=vt.depth+1;Be&&(vt.value=0),vt.children=dr}else Be&&(vt.value=+Be.call(Ze,vt,vt.depth)||0),delete vt.children;return cu(tt,function(Ir){var Rr,ei;fe&&(Rr=Ir.children)&&Rr.sort(fe),Be&&(ei=Ir.parent)&&(ei.value+=Ir.value)}),Lt}return Ze.sort=function(tt){return arguments.length?(fe=tt,Ze):fe},Ze.children=function(tt){return arguments.length?(Se=tt,Ze):Se},Ze.value=function(tt){return arguments.length?(Be=tt,Ze):Be},Ze.revalue=function(tt){return Be&&(Ws(tt,function(at){at.children&&(at.value=0)}),cu(tt,function(at){var Lt;at.children||(at.value=+Be.call(Ze,at,at.depth)||0),(Lt=at.parent)&&(Lt.value+=at.value)})),tt},Ze};function Eu(fe,Se){return i.rebind(fe,Se,"sort","children","value"),fe.nodes=fe,fe.links=jv,fe}function Ws(fe,Se){for(var Be=[fe];(fe=Be.pop())!=null;)if(Se(fe),(tt=fe.children)&&(Ze=tt.length))for(var Ze,tt;--Ze>=0;)Be.push(tt[Ze])}function cu(fe,Se){for(var Be=[fe],Ze=[];(fe=Be.pop())!=null;)if(Ze.push(fe),(Lt=fe.children)&&(at=Lt.length))for(var tt=-1,at,Lt;++tt<at;)Be.push(Lt[tt]);for(;(fe=Ze.pop())!=null;)Se(fe)}function Vv(fe){return fe.children}function id(fe){return fe.value}function Hv(fe,Se){return Se.value-fe.value}function jv(fe){return i.merge(fe.map(function(Se){return(Se.children||[]).map(function(Be){return{source:Se,target:Be}})}))}i.layout.partition=function(){var fe=i.layout.hierarchy(),Se=[1,1];function Be(at,Lt,vt,qt){var dr=at.children;if(at.x=Lt,at.y=at.depth*qt,at.dx=vt,at.dy=qt,dr&&(Ir=dr.length)){var _r=-1,Ir,Rr,ei;for(vt=at.value?vt/at.value:0;++_r<Ir;)Be(Rr=dr[_r],Lt,ei=Rr.value*vt,qt),Lt+=ei}}function Ze(at){var Lt=at.children,vt=0;if(Lt&&(dr=Lt.length))for(var qt=-1,dr;++qt<dr;)vt=Math.max(vt,Ze(Lt[qt]));return 1+vt}function tt(at,Lt){var vt=fe.call(this,at,Lt);return Be(vt[0],0,Se[0],Se[1]/Ze(vt[0])),vt}return tt.size=function(at){return arguments.length?(Se=at,tt):Se},Eu(tt,fe)},i.layout.pie=function(){var fe=Number,Se=Od,Be=0,Ze=Oe,tt=0;function at(Lt){var vt=Lt.length,qt=Lt.map(function(ui,si){return+fe.call(at,ui,si)}),dr=+(typeof Be=="function"?Be.apply(this,arguments):Be),_r=(typeof Ze=="function"?Ze.apply(this,arguments):Ze)-dr,Ir=Math.min(Math.abs(_r)/vt,+(typeof tt=="function"?tt.apply(this,arguments):tt)),Rr=Ir*(_r<0?-1:1),ei=i.sum(qt),Hr=ei?(_r-vt*Rr)/ei:0,qr=i.range(vt),Kr=[],ri;return Se!=null&&qr.sort(Se===Od?function(ui,si){return qt[si]-qt[ui]}:function(ui,si){return Se(Lt[ui],Lt[si])}),qr.forEach(function(ui){Kr[ui]={data:Lt[ui],value:ri=qt[ui],startAngle:dr,endAngle:dr+=ri*Hr+Rr,padAngle:Ir}}),Kr}return at.value=function(Lt){return arguments.length?(fe=Lt,at):fe},at.sort=function(Lt){return arguments.length?(Se=Lt,at):Se},at.startAngle=function(Lt){return arguments.length?(Be=Lt,at):Be},at.endAngle=function(Lt){return arguments.length?(Ze=Lt,at):Ze},at.padAngle=function(Lt){return arguments.length?(tt=Lt,at):tt},at};var Od={};i.layout.stack=function(){var fe=O,Se=nd,Be=Lu,Ze=Nd,tt=gv,at=ef;function Lt(vt,qt){if(!(Hr=vt.length))return vt;var dr=vt.map(function(ui,si){return fe.call(Lt,ui,si)}),_r=dr.map(function(ui){return ui.map(function(si,ti){return[tt.call(Lt,si,ti),at.call(Lt,si,ti)]})}),Ir=Se.call(Lt,_r,qt);dr=i.permute(dr,Ir),_r=i.permute(_r,Ir);var Rr=Be.call(Lt,_r,qt),ei=dr[0].length,Hr,qr,Kr,ri;for(Kr=0;Kr<ei;++Kr)for(Ze.call(Lt,dr[0][Kr],ri=Rr[Kr],_r[0][Kr][1]),qr=1;qr<Hr;++qr)Ze.call(Lt,dr[qr][Kr],ri+=_r[qr-1][Kr][1],_r[qr][Kr][1]);return vt}return Lt.values=function(vt){return arguments.length?(fe=vt,Lt):fe},Lt.order=function(vt){return arguments.length?(Se=typeof vt=="function"?vt:xh.get(vt)||nd,Lt):Se},Lt.offset=function(vt){return arguments.length?(Be=typeof vt=="function"?vt:bh.get(vt)||Lu,Lt):Be},Lt.x=function(vt){return arguments.length?(tt=vt,Lt):tt},Lt.y=function(vt){return arguments.length?(at=vt,Lt):at},Lt.out=function(vt){return arguments.length?(Ze=vt,Lt):Ze},Lt};function gv(fe){return fe.x}function ef(fe){return fe.y}function Nd(fe,Se,Be){fe.y0=Se,fe.y=Be}var xh=i.map({"inside-out":function(fe){var Se=fe.length,Be,Ze,tt=fe.map(qd),at=fe.map(Sf),Lt=i.range(Se).sort(function(Ir,Rr){return tt[Ir]-tt[Rr]}),vt=0,qt=0,dr=[],_r=[];for(Be=0;Be<Se;++Be)Ze=Lt[Be],vt<qt?(vt+=at[Ze],dr.push(Ze)):(qt+=at[Ze],_r.push(Ze));return _r.reverse().concat(dr)},reverse:function(fe){return i.range(fe.length).reverse()},default:nd}),bh=i.map({silhouette:function(fe){var Se=fe.length,Be=fe[0].length,Ze=[],tt=0,at,Lt,vt,qt=[];for(Lt=0;Lt<Be;++Lt){for(at=0,vt=0;at<Se;at++)vt+=fe[at][Lt][1];vt>tt&&(tt=vt),Ze.push(vt)}for(Lt=0;Lt<Be;++Lt)qt[Lt]=(tt-Ze[Lt])/2;return qt},wiggle:function(fe){var Se=fe.length,Be=fe[0],Ze=Be.length,tt,at,Lt,vt,qt,dr,_r,Ir,Rr,ei=[];for(ei[0]=Ir=Rr=0,at=1;at<Ze;++at){for(tt=0,vt=0;tt<Se;++tt)vt+=fe[tt][at][1];for(tt=0,qt=0,_r=Be[at][0]-Be[at-1][0];tt<Se;++tt){for(Lt=0,dr=(fe[tt][at][1]-fe[tt][at-1][1])/(2*_r);Lt<tt;++Lt)dr+=(fe[Lt][at][1]-fe[Lt][at-1][1])/_r;qt+=dr*fe[tt][at][1]}ei[at]=Ir-=vt?qt/vt*_r:0,Ir<Rr&&(Rr=Ir)}for(at=0;at<Ze;++at)ei[at]-=Rr;return ei},expand:function(fe){var Se=fe.length,Be=fe[0].length,Ze=1/Se,tt,at,Lt,vt=[];for(at=0;at<Be;++at){for(tt=0,Lt=0;tt<Se;tt++)Lt+=fe[tt][at][1];if(Lt)for(tt=0;tt<Se;tt++)fe[tt][at][1]/=Lt;else for(tt=0;tt<Se;tt++)fe[tt][at][1]=Ze}for(at=0;at<Be;++at)vt[at]=0;return vt},zero:Lu});function nd(fe){return i.range(fe.length)}function Lu(fe){for(var Se=-1,Be=fe[0].length,Ze=[];++Se<Be;)Ze[Se]=0;return Ze}function qd(fe){for(var Se=1,Be=0,Ze=fe[0][1],tt,at=fe.length;Se<at;++Se)(tt=fe[Se][1])>Ze&&(Be=Se,Ze=tt);return Be}function Sf(fe){return fe.reduce(ad,0)}function ad(fe,Se){return fe+Se[1]}i.layout.histogram=function(){var fe=!0,Se=Number,Be=Os,Ze=yv;function tt(at,Rr){for(var vt=[],qt=at.map(Se,this),dr=Be.call(this,qt,Rr),_r=Ze.call(this,dr,qt,Rr),Ir,Rr=-1,ei=qt.length,Hr=_r.length-1,qr=fe?1:1/ei,Kr;++Rr<Hr;)Ir=vt[Rr]=[],Ir.dx=_r[Rr+1]-(Ir.x=_r[Rr]),Ir.y=0;if(Hr>0)for(Rr=-1;++Rr<ei;)Kr=qt[Rr],Kr>=dr[0]&&Kr<=dr[1]&&(Ir=vt[i.bisect(_r,Kr,1,Hr)-1],Ir.y+=qr,Ir.push(at[Rr]));return vt}return tt.value=function(at){return arguments.length?(Se=at,tt):Se},tt.range=function(at){return arguments.length?(Be=vi(at),tt):Be},tt.bins=function(at){return arguments.length?(Ze=typeof at=="number"?function(Lt){return Ud(Lt,at)}:vi(at),tt):Ze},tt.frequency=function(at){return arguments.length?(fe=!!at,tt):fe},tt};function yv(fe,Se){return Ud(fe,Math.ceil(Math.log(Se.length)/Math.LN2+1))}function Ud(fe,Se){for(var Be=-1,Ze=+fe[0],tt=(fe[1]-Ze)/Se,at=[];++Be<=Se;)at[Be]=tt*Be+Ze;return at}function Os(fe){return[i.min(fe),i.max(fe)]}i.layout.pack=function(){var fe=i.layout.hierarchy().sort(od),Se=0,Be=[1,1],Ze;function tt(at,Lt){var vt=fe.call(this,at,Lt),qt=vt[0],dr=Be[0],_r=Be[1],Ir=Ze==null?Math.sqrt:typeof Ze=="function"?Ze:function(){return Ze};if(qt.x=qt.y=0,cu(qt,function(ei){ei.r=+Ir(ei.value)}),cu(qt,bc),Se){var Rr=Se*(Ze?1:Math.max(2*qt.r/dr,2*qt.r/_r))/2;cu(qt,function(ei){ei.r+=Rr}),cu(qt,bc),cu(qt,function(ei){ei.r-=Rr})}return Ul(qt,dr/2,_r/2,Ze?1:1/Math.max(2*qt.r/dr,2*qt.r/_r)),vt}return tt.size=function(at){return arguments.length?(Be=at,tt):Be},tt.radius=function(at){return arguments.length?(Ze=at==null||typeof at=="function"?at:+at,tt):Ze},tt.padding=function(at){return arguments.length?(Se=+at,tt):Se},Eu(tt,fe)};function od(fe,Se){return fe.value-Se.value}function Fc(fe,Se){var Be=fe._pack_next;fe._pack_next=Se,Se._pack_prev=fe,Se._pack_next=Be,Be._pack_prev=Se}function Vd(fe,Se){fe._pack_next=Se,Se._pack_prev=fe}function Hd(fe,Se){var Be=Se.x-fe.x,Ze=Se.y-fe.y,tt=fe.r+Se.r;return .999*tt*tt>Be*Be+Ze*Ze}function bc(fe){if(!(Se=fe.children)||!(Rr=Se.length))return;var Se,Be=1/0,Ze=-1/0,tt=1/0,at=-1/0,Lt,vt,qt,dr,_r,Ir,Rr;function ei(ti){Be=Math.min(ti.x-ti.r,Be),Ze=Math.max(ti.x+ti.r,Ze),tt=Math.min(ti.y-ti.r,tt),at=Math.max(ti.y+ti.r,at)}if(Se.forEach(sd),Lt=Se[0],Lt.x=-Lt.r,Lt.y=0,ei(Lt),Rr>1&&(vt=Se[1],vt.x=vt.r,vt.y=0,ei(vt),Rr>2))for(qt=Se[2],wh(Lt,vt,qt),ei(qt),Fc(Lt,qt),Lt._pack_prev=qt,Fc(qt,vt),vt=Lt._pack_next,dr=3;dr<Rr;dr++){wh(Lt,vt,qt=Se[dr]);var Hr=0,qr=1,Kr=1;for(_r=vt._pack_next;_r!==vt;_r=_r._pack_next,qr++)if(Hd(_r,qt)){Hr=1;break}if(Hr==1)for(Ir=Lt._pack_prev;Ir!==_r._pack_prev&&!Hd(Ir,qt);Ir=Ir._pack_prev,Kr++);Hr?(qr<Kr||qr==Kr&&vt.r<Lt.r?Vd(Lt,vt=_r):Vd(Lt=Ir,vt),dr--):(Fc(Lt,qt),vt=qt,ei(qt))}var ri=(Be+Ze)/2,ui=(tt+at)/2,si=0;for(dr=0;dr<Rr;dr++)qt=Se[dr],qt.x-=ri,qt.y-=ui,si=Math.max(si,qt.r+Math.sqrt(qt.x*qt.x+qt.y*qt.y));fe.r=si,Se.forEach(Kf)}function sd(fe){fe._pack_next=fe._pack_prev=fe}function Kf(fe){delete fe._pack_next,delete fe._pack_prev}function Ul(fe,Se,Be,Ze){var tt=fe.children;if(fe.x=Se+=Ze*fe.x,fe.y=Be+=Ze*fe.y,fe.r*=Ze,tt)for(var at=-1,Lt=tt.length;++at<Lt;)Ul(tt[at],Se,Be,Ze)}function wh(fe,Se,Be){var Ze=fe.r+Be.r,tt=Se.x-fe.x,at=Se.y-fe.y;if(Ze&&(tt||at)){var Lt=Se.r+Be.r,vt=tt*tt+at*at;Lt*=Lt,Ze*=Ze;var qt=.5+(Ze-Lt)/(2*vt),dr=Math.sqrt(Math.max(0,2*Lt*(Ze+vt)-(Ze-=vt)*Ze-Lt*Lt))/(2*vt);Be.x=fe.x+qt*tt+dr*at,Be.y=fe.y+qt*at-dr*tt}else Be.x=fe.x+Ze,Be.y=fe.y}i.layout.tree=function(){var fe=i.layout.hierarchy().sort(null).value(null),Se=Bc,Be=[1,1],Ze=null;function tt(_r,Ir){var Rr=fe.call(this,_r,Ir),ei=Rr[0],Hr=at(ei);if(cu(Hr,Lt),Hr.parent.m=-Hr.z,Ws(Hr,vt),Ze)Ws(ei,dr);else{var qr=ei,Kr=ei,ri=ei;Ws(ei,function(ji){ji.x<qr.x&&(qr=ji),ji.x>Kr.x&&(Kr=ji),ji.depth>ri.depth&&(ri=ji)});var ui=Se(qr,Kr)/2-qr.x,si=Be[0]/(Kr.x+Se(Kr,qr)/2+ui),ti=Be[1]/(ri.depth||1);Ws(ei,function(ji){ji.x=(ji.x+ui)*si,ji.y=ji.depth*ti})}return Rr}function at(_r){for(var Ir={A:null,children:[_r]},Rr=[Ir],ei;(ei=Rr.pop())!=null;)for(var Hr=ei.children,qr,Kr=0,ri=Hr.length;Kr<ri;++Kr)Rr.push((Hr[Kr]=qr={_:Hr[Kr],parent:ei,children:(qr=Hr[Kr].children)&&qr.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Kr}).a=qr);return Ir.children[0]}function Lt(_r){var Ir=_r.children,Rr=_r.parent.children,ei=_r.i?Rr[_r.i-1]:null;if(Ir.length){wc(_r);var Hr=(Ir[0].z+Ir[Ir.length-1].z)/2;ei?(_r.z=ei.z+Se(_r._,ei._),_r.m=_r.z-Hr):_r.z=Hr}else ei&&(_r.z=ei.z+Se(_r._,ei._));_r.parent.A=qt(_r,ei,_r.parent.A||Rr[0])}function vt(_r){_r._.x=_r.z+_r.parent.m,_r.m+=_r.parent.m}function qt(_r,Ir,Rr){if(Ir){for(var ei=_r,Hr=_r,qr=Ir,Kr=ei.parent.children[0],ri=ei.m,ui=Hr.m,si=qr.m,ti=Kr.m,ji;qr=Nc(qr),ei=Oc(ei),qr&&ei;)Kr=Oc(Kr),Hr=Nc(Hr),Hr.a=_r,ji=qr.z+si-ei.z-ri+Se(qr._,ei._),ji>0&&(tf(Wl(qr,_r,Rr),_r,ji),ri+=ji,ui+=ji),si+=qr.m,ri+=ei.m,ti+=Kr.m,ui+=Hr.m;qr&&!Nc(Hr)&&(Hr.t=qr,Hr.m+=si-ui),ei&&!Oc(Kr)&&(Kr.t=ei,Kr.m+=ri-ti,Rr=_r)}return Rr}function dr(_r){_r.x*=Be[0],_r.y=_r.depth*Be[1]}return tt.separation=function(_r){return arguments.length?(Se=_r,tt):Se},tt.size=function(_r){return arguments.length?(Ze=(Be=_r)==null?dr:null,tt):Ze?null:Be},tt.nodeSize=function(_r){return arguments.length?(Ze=(Be=_r)==null?null:dr,tt):Ze?Be:null},Eu(tt,fe)};function Bc(fe,Se){return fe.parent==Se.parent?1:2}function Oc(fe){var Se=fe.children;return Se.length?Se[0]:fe.t}function Nc(fe){var Se=fe.children,Be;return(Be=Se.length)?Se[Be-1]:fe.t}function tf(fe,Se,Be){var Ze=Be/(Se.i-fe.i);Se.c-=Ze,Se.s+=Be,fe.c+=Ze,Se.z+=Be,Se.m+=Be}function wc(fe){for(var Se=0,Be=0,Ze=fe.children,tt=Ze.length,at;--tt>=0;)at=Ze[tt],at.z+=Se,at.m+=Se,Se+=at.s+(Be+=at.c)}function Wl(fe,Se,Be){return fe.a.parent===Se.parent?fe.a:Be}i.layout.cluster=function(){var fe=i.layout.hierarchy().sort(null).value(null),Se=Bc,Be=[1,1],Ze=!1;function tt(at,Lt){var vt=fe.call(this,at,Lt),qt=vt[0],dr,_r=0;cu(qt,function(qr){var Kr=qr.children;Kr&&Kr.length?(qr.x=nf(Kr),qr.y=rf(Kr)):(qr.x=dr?_r+=Se(qr,dr):0,qr.y=0,dr=qr)});var Ir=ld(qt),Rr=mv(qt),ei=Ir.x-Se(Ir,Rr)/2,Hr=Rr.x+Se(Rr,Ir)/2;return cu(qt,Ze?function(qr){qr.x=(qr.x-qt.x)*Be[0],qr.y=(qt.y-qr.y)*Be[1]}:function(qr){qr.x=(qr.x-ei)/(Hr-ei)*Be[0],qr.y=(1-(qt.y?qr.y/qt.y:1))*Be[1]}),vt}return tt.separation=function(at){return arguments.length?(Se=at,tt):Se},tt.size=function(at){return arguments.length?(Ze=(Be=at)==null,tt):Ze?null:Be},tt.nodeSize=function(at){return arguments.length?(Ze=(Be=at)!=null,tt):Ze?Be:null},Eu(tt,fe)};function rf(fe){return 1+i.max(fe,function(Se){return Se.y})}function nf(fe){return fe.reduce(function(Se,Be){return Se+Be.x},0)/fe.length}function ld(fe){var Se=fe.children;return Se&&Se.length?ld(Se[0]):fe}function mv(fe){var Se=fe.children,Be;return Se&&(Be=Se.length)?mv(Se[Be-1]):fe}i.layout.treemap=function(){var fe=i.layout.hierarchy(),Se=Math.round,Be=[1,1],Ze=null,tt=_v,at=!1,Lt,vt="squarify",qt=.5*(1+Math.sqrt(5));function dr(qr,Kr){for(var ri=-1,ui=qr.length,si,ti;++ri<ui;)ti=(si=qr[ri]).value*(Kr<0?0:Kr),si.area=isNaN(ti)||ti<=0?0:ti}function _r(qr){var Kr=qr.children;if(Kr&&Kr.length){var ri=tt(qr),ui=[],si=Kr.slice(),ti,ji=1/0,vn,Ln=vt==="slice"?ri.dx:vt==="dice"?ri.dy:vt==="slice-dice"?qr.depth&1?ri.dy:ri.dx:Math.min(ri.dx,ri.dy),gn;for(dr(si,ri.dx*ri.dy/qr.value),ui.area=0;(gn=si.length)>0;)ui.push(ti=si[gn-1]),ui.area+=ti.area,vt!=="squarify"||(vn=Rr(ui,Ln))<=ji?(si.pop(),ji=vn):(ui.area-=ui.pop().area,ei(ui,Ln,ri,!1),Ln=Math.min(ri.dx,ri.dy),ui.length=ui.area=0,ji=1/0);ui.length&&(ei(ui,Ln,ri,!0),ui.length=ui.area=0),Kr.forEach(_r)}}function Ir(qr){var Kr=qr.children;if(Kr&&Kr.length){var ri=tt(qr),ui=Kr.slice(),si,ti=[];for(dr(ui,ri.dx*ri.dy/qr.value),ti.area=0;si=ui.pop();)ti.push(si),ti.area+=si.area,si.z!=null&&(ei(ti,si.z?ri.dx:ri.dy,ri,!ui.length),ti.length=ti.area=0);Kr.forEach(Ir)}}function Rr(qr,Kr){for(var ri=qr.area,ui,si=0,ti=1/0,ji=-1,vn=qr.length;++ji<vn;)(ui=qr[ji].area)&&(ui<ti&&(ti=ui),ui>si&&(si=ui));return ri*=ri,Kr*=Kr,ri?Math.max(Kr*si*qt/ri,ri/(Kr*ti*qt)):1/0}function ei(qr,Kr,ri,ui){var si=-1,ti=qr.length,ji=ri.x,vn=ri.y,Ln=Kr?Se(qr.area/Kr):0,gn;if(Kr==ri.dx){for((ui||Ln>ri.dy)&&(Ln=ri.dy);++si<ti;)gn=qr[si],gn.x=ji,gn.y=vn,gn.dy=Ln,ji+=gn.dx=Math.min(ri.x+ri.dx-ji,Ln?Se(gn.area/Ln):0);gn.z=!0,gn.dx+=ri.x+ri.dx-ji,ri.y+=Ln,ri.dy-=Ln}else{for((ui||Ln>ri.dx)&&(Ln=ri.dx);++si<ti;)gn=qr[si],gn.x=ji,gn.y=vn,gn.dx=Ln,vn+=gn.dy=Math.min(ri.y+ri.dy-vn,Ln?Se(gn.area/Ln):0);gn.z=!1,gn.dy+=ri.y+ri.dy-vn,ri.x+=Ln,ri.dx-=Ln}}function Hr(qr){var Kr=Lt||fe(qr),ri=Kr[0];return ri.x=ri.y=0,ri.value?(ri.dx=Be[0],ri.dy=Be[1]):ri.dx=ri.dy=0,Lt&&fe.revalue(ri),dr([ri],ri.dx*ri.dy/ri.value),(Lt?Ir:_r)(ri),at&&(Lt=Kr),Kr}return Hr.size=function(qr){return arguments.length?(Be=qr,Hr):Be},Hr.padding=function(qr){if(!arguments.length)return Ze;function Kr(si){var ti=qr.call(Hr,si,si.depth);return ti==null?_v(si):Mf(si,typeof ti=="number"?[ti,ti,ti,ti]:ti)}function ri(si){return Mf(si,qr)}var ui;return tt=(Ze=qr)==null?_v:(ui=typeof qr)=="function"?Kr:(ui==="number"&&(qr=[qr,qr,qr,qr]),ri),Hr},Hr.round=function(qr){return arguments.length?(Se=qr?Math.round:Number,Hr):Se!=Number},Hr.sticky=function(qr){return arguments.length?(at=qr,Lt=null,Hr):at},Hr.ratio=function(qr){return arguments.length?(qt=qr,Hr):qt},Hr.mode=function(qr){return arguments.length?(vt=qr+"",Hr):vt},Eu(Hr,fe)};function _v(fe){return{x:fe.x,y:fe.y,dx:fe.dx,dy:fe.dy}}function Mf(fe,Se){var Be=fe.x+Se[3],Ze=fe.y+Se[0],tt=fe.dx-Se[1]-Se[3],at=fe.dy-Se[0]-Se[2];return tt<0&&(Be+=tt/2,tt=0),at<0&&(Ze+=at/2,at=0),{x:Be,y:Ze,dx:tt,dy:at}}i.random={normal:function(fe,Se){var Be=arguments.length;return Be<2&&(Se=1),Be<1&&(fe=0),function(){var Ze,tt,at;do Ze=Math.random()*2-1,tt=Math.random()*2-1,at=Ze*Ze+tt*tt;while(!at||at>1);return fe+Se*Ze*Math.sqrt(-2*Math.log(at)/at)}},logNormal:function(){var fe=i.random.normal.apply(i,arguments);return function(){return Math.exp(fe())}},bates:function(fe){var Se=i.random.irwinHall(fe);return function(){return Se()/fe}},irwinHall:function(fe){return function(){for(var Se=0,Be=0;Be<fe;Be++)Se+=Math.random();return Se}}},i.scale={};function ud(fe){var Se=fe[0],Be=fe[fe.length-1];return Se<Be?[Se,Be]:[Be,Se]}function jd(fe){return fe.rangeExtent?fe.rangeExtent():ud(fe.range())}function Gv(fe,Se,Be,Ze){var tt=Be(fe[0],fe[1]),at=Ze(Se[0],Se[1]);return function(Lt){return at(tt(Lt))}}function Ks(fe,Se){var Be=0,Ze=fe.length-1,tt=fe[Be],at=fe[Ze],Lt;return at<tt&&(Lt=Be,Be=Ze,Ze=Lt,Lt=tt,tt=at,at=Lt),fe[Be]=Se.floor(tt),fe[Ze]=Se.ceil(at),fe}function kf(fe){return fe?{floor:function(Se){return Math.floor(Se/fe)*fe},ceil:function(Se){return Math.ceil(Se/fe)*fe}}:af}var af={floor:O,ceil:O};function xv(fe,Se,Be,Ze){var tt=[],at=[],Lt=0,vt=Math.min(fe.length,Se.length)-1;for(fe[vt]<fe[0]&&(fe=fe.slice().reverse(),Se=Se.slice().reverse());++Lt<=vt;)tt.push(Be(fe[Lt-1],fe[Lt])),at.push(Ze(Se[Lt-1],Se[Lt]));return function(qt){var dr=i.bisect(fe,qt,1,vt)-1;return at[dr](tt[dr](qt))}}i.scale.linear=function(){return Cf([0,1],[0,1],ss,!1)};function Cf(fe,Se,Be,Ze){var tt,at;function Lt(){var qt=Math.min(fe.length,Se.length)>2?xv:Gv,dr=Ze?Yf:Fd;return tt=qt(fe,Se,dr,Be),at=qt(Se,fe,dr,ss),vt}function vt(qt){return tt(qt)}return vt.invert=function(qt){return at(qt)},vt.domain=function(qt){return arguments.length?(fe=qt.map(Number),Lt()):fe},vt.range=function(qt){return arguments.length?(Se=qt,Lt()):Se},vt.rangeRound=function(qt){return vt.range(qt).interpolate(zd)},vt.clamp=function(qt){return arguments.length?(Ze=qt,Lt()):Ze},vt.interpolate=function(qt){return arguments.length?(Be=qt,Lt()):Be},vt.ticks=function(qt){return Ah(fe,qt)},vt.tickFormat=function(qt,dr){return d3_scale_linearTickFormat(fe,qt,dr)},vt.nice=function(qt){return Ou(fe,qt),Lt()},vt.copy=function(){return Cf(fe,Se,Be,Ze)},Lt()}function bv(fe,Se){return i.rebind(fe,Se,"range","rangeRound","interpolate","clamp")}function Ou(fe,Se){return Ks(fe,kf(Th(fe,Se)[2])),Ks(fe,kf(Th(fe,Se)[2])),fe}function Th(fe,Se){Se==null&&(Se=10);var Be=ud(fe),Ze=Be[1]-Be[0],tt=Math.pow(10,Math.floor(Math.log(Ze/Se)/Math.LN10)),at=Se/Ze*tt;return at<=.15?tt*=10:at<=.35?tt*=5:at<=.75&&(tt*=2),Be[0]=Math.ceil(Be[0]/tt)*tt,Be[1]=Math.floor(Be[1]/tt)*tt+tt*.5,Be[2]=tt,Be}function Ah(fe,Se){return i.range.apply(i,Th(fe,Se))}i.scale.log=function(){return Sh(i.scale.linear().domain([0,1]),10,!0,[1,10])};function Sh(fe,Se,Be,Ze){function tt(vt){return(Be?Math.log(vt<0?0:vt):-Math.log(vt>0?0:-vt))/Math.log(Se)}function at(vt){return Be?Math.pow(Se,vt):-Math.pow(Se,-vt)}function Lt(vt){return fe(tt(vt))}return Lt.invert=function(vt){return at(fe.invert(vt))},Lt.domain=function(vt){return arguments.length?(Be=vt[0]>=0,fe.domain((Ze=vt.map(Number)).map(tt)),Lt):Ze},Lt.base=function(vt){return arguments.length?(Se=+vt,fe.domain(Ze.map(tt)),Lt):Se},Lt.nice=function(){var vt=Ks(Ze.map(tt),Be?Math:cd);return fe.domain(vt),Ze=vt.map(at),Lt},Lt.ticks=function(){var vt=ud(Ze),qt=[],dr=vt[0],_r=vt[1],Ir=Math.floor(tt(dr)),Rr=Math.ceil(tt(_r)),ei=Se%1?2:Se;if(isFinite(Rr-Ir)){if(Be){for(;Ir<Rr;Ir++)for(var Hr=1;Hr<ei;Hr++)qt.push(at(Ir)*Hr);qt.push(at(Ir))}else for(qt.push(at(Ir));Ir++<Rr;)for(var Hr=ei-1;Hr>0;Hr--)qt.push(at(Ir)*Hr);for(Ir=0;qt[Ir]<dr;Ir++);for(Rr=qt.length;qt[Rr-1]>_r;Rr--);qt=qt.slice(Ir,Rr)}return qt},Lt.copy=function(){return Sh(fe.copy(),Se,Be,Ze)},bv(Lt,fe)}var cd={floor:function(fe){return-Math.ceil(-fe)},ceil:function(fe){return-Math.floor(-fe)}};i.scale.pow=function(){return Mh(i.scale.linear(),1,[0,1])};function Mh(fe,Se,Be){var Ze=Ef(Se),tt=Ef(1/Se);function at(Lt){return fe(Ze(Lt))}return at.invert=function(Lt){return tt(fe.invert(Lt))},at.domain=function(Lt){return arguments.length?(fe.domain((Be=Lt.map(Number)).map(Ze)),at):Be},at.ticks=function(Lt){return Ah(Be,Lt)},at.tickFormat=function(Lt,vt){return d3_scale_linearTickFormat(Be,Lt,vt)},at.nice=function(Lt){return at.domain(Ou(Be,Lt))},at.exponent=function(Lt){return arguments.length?(Ze=Ef(Se=Lt),tt=Ef(1/Se),fe.domain(Be.map(Ze)),at):Se},at.copy=function(){return Mh(fe.copy(),Se,Be)},bv(at,fe)}function Ef(fe){return function(Se){return Se<0?-Math.pow(-Se,fe):Math.pow(Se,fe)}}i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return ic([],{t:"range",a:[[]]})};function ic(fe,Se){var Be,Ze,tt;function at(vt){return Ze[((Be.get(vt)||(Se.t==="range"?Be.set(vt,fe.push(vt)):NaN))-1)%Ze.length]}function Lt(vt,qt){return i.range(fe.length).map(function(dr){return vt+qt*dr})}return at.domain=function(vt){if(!arguments.length)return fe;fe=[],Be=new M;for(var qt=-1,dr=vt.length,_r;++qt<dr;)Be.has(_r=vt[qt])||Be.set(_r,fe.push(_r));return at[Se.t].apply(at,Se.a)},at.range=function(vt){return arguments.length?(Ze=vt,tt=0,Se={t:"range",a:arguments},at):Ze},at.rangePoints=function(vt,qt){arguments.length<2&&(qt=0);var dr=vt[0],_r=vt[1],Ir=fe.length<2?(dr=(dr+_r)/2,0):(_r-dr)/(fe.length-1+qt);return Ze=Lt(dr+Ir*qt/2,Ir),tt=0,Se={t:"rangePoints",a:arguments},at},at.rangeRoundPoints=function(vt,qt){arguments.length<2&&(qt=0);var dr=vt[0],_r=vt[1],Ir=fe.length<2?(dr=_r=Math.round((dr+_r)/2),0):(_r-dr)/(fe.length-1+qt)|0;return Ze=Lt(dr+Math.round(Ir*qt/2+(_r-dr-(fe.length-1+qt)*Ir)/2),Ir),tt=0,Se={t:"rangeRoundPoints",a:arguments},at},at.rangeBands=function(vt,qt,dr){arguments.length<2&&(qt=0),arguments.length<3&&(dr=qt);var _r=vt[1]<vt[0],Ir=vt[_r-0],Rr=vt[1-_r],ei=(Rr-Ir)/(fe.length-qt+2*dr);return Ze=Lt(Ir+ei*dr,ei),_r&&Ze.reverse(),tt=ei*(1-qt),Se={t:"rangeBands",a:arguments},at},at.rangeRoundBands=function(vt,qt,dr){arguments.length<2&&(qt=0),arguments.length<3&&(dr=qt);var _r=vt[1]<vt[0],Ir=vt[_r-0],Rr=vt[1-_r],ei=Math.floor((Rr-Ir)/(fe.length-qt+2*dr));return Ze=Lt(Ir+Math.round((Rr-Ir-(fe.length-qt)*ei)/2),ei),_r&&Ze.reverse(),tt=Math.round(ei*(1-qt)),Se={t:"rangeRoundBands",a:arguments},at},at.rangeBand=function(){return tt},at.rangeExtent=function(){return ud(Se.a[0])},at.copy=function(){return ic(fe,Se)},at.domain(fe)}i.scale.category10=function(){return i.scale.ordinal().range(fu)},i.scale.category20=function(){return i.scale.ordinal().range(of)},i.scale.category20b=function(){return i.scale.ordinal().range(Jf)},i.scale.category20c=function(){return i.scale.ordinal().range(qc)};var fu=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(jt),of=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(jt),Jf=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(jt),qc=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(jt);i.scale.quantile=function(){return Uo([],[])};function Uo(fe,Se){var Be;function Ze(){var at=0,Lt=Se.length;for(Be=[];++at<Lt;)Be[at-1]=i.quantile(fe,at/Lt);return tt}function tt(at){if(!isNaN(at=+at))return Se[i.bisect(Be,at)]}return tt.domain=function(at){return arguments.length?(fe=at.map(d).filter(p).sort(f),Ze()):fe},tt.range=function(at){return arguments.length?(Se=at,Ze()):Se},tt.quantiles=function(){return Be},tt.invertExtent=function(at){return at=Se.indexOf(at),at<0?[NaN,NaN]:[at>0?Be[at-1]:fe[0],at<Be.length?Be[at]:fe[fe.length-1]]},tt.copy=function(){return Uo(fe,Se)},Ze()}i.scale.quantize=function(){return kh(0,1,[0,1])};function kh(fe,Se,Be){var Ze,tt;function at(vt){return Be[Math.max(0,Math.min(tt,Math.floor(Ze*(vt-fe))))]}function Lt(){return Ze=Be.length/(Se-fe),tt=Be.length-1,at}return at.domain=function(vt){return arguments.length?(fe=+vt[0],Se=+vt[vt.length-1],Lt()):[fe,Se]},at.range=function(vt){return arguments.length?(Be=vt,Lt()):Be},at.invertExtent=function(vt){return vt=Be.indexOf(vt),vt=vt<0?NaN:vt/Ze+fe,[vt,vt+1/Ze]},at.copy=function(){return kh(fe,Se,Be)},Lt()}i.scale.threshold=function(){return mu([.5],[0,1])};function mu(fe,Se){function Be(Ze){if(Ze<=Ze)return Se[i.bisect(fe,Ze)]}return Be.domain=function(Ze){return arguments.length?(fe=Ze,Be):fe},Be.range=function(Ze){return arguments.length?(Se=Ze,Be):Se},Be.invertExtent=function(Ze){return Ze=Se.indexOf(Ze),[fe[Ze-1],fe[Ze]]},Be.copy=function(){return mu(fe,Se)},Be}i.scale.identity=function(){return Lf([0,1])};function Lf(fe){function Se(Be){return+Be}return Se.invert=Se,Se.domain=Se.range=function(Be){return arguments.length?(fe=Be.map(Se),Se):fe},Se.ticks=function(Be){return Ah(fe,Be)},Se.tickFormat=function(Be,Ze){return d3_scale_linearTickFormat(fe,Be,Ze)},Se.copy=function(){return Lf(fe)},Se}i.svg={};function If(){return 0}i.svg.arc=function(){var fe=Gd,Se=Wd,Be=If,Ze=Uc,tt=hs,at=Qf,Lt=Zd;function vt(){var dr=Math.max(0,+fe.apply(this,arguments)),_r=Math.max(0,+Se.apply(this,arguments)),Ir=tt.apply(this,arguments)-et,Rr=at.apply(this,arguments)-et,ei=Math.abs(Rr-Ir),Hr=Ir>Rr?0:1;if(_r<dr&&(qr=_r,_r=dr,dr=qr),ei>=Re)return qt(_r,Hr)+(dr?qt(dr,1-Hr):"")+"Z";var qr,Kr,ri,ui,si=0,ti=0,ji,vn,Ln,gn,Nn,qn,Aa,aa,fa=[];if((ui=(+Lt.apply(this,arguments)||0)/2)&&(ri=Ze===Uc?Math.sqrt(dr*dr+_r*_r):+Ze.apply(this,arguments),Hr||(ti*=-1),_r&&(ti=tr(ri/_r*Math.sin(ui))),dr&&(si=tr(ri/dr*Math.sin(ui)))),_r){ji=_r*Math.cos(Ir+ti),vn=_r*Math.sin(Ir+ti),Ln=_r*Math.cos(Rr-ti),gn=_r*Math.sin(Rr-ti);var Wa=Math.abs(Rr-Ir-2*ti)<=De?0:1;if(ti&&sf(ji,vn,Ln,gn)===Hr^Wa){var Bo=(Ir+Rr)/2;ji=_r*Math.cos(Bo),vn=_r*Math.sin(Bo),Ln=gn=null}}else ji=vn=0;if(dr){Nn=dr*Math.cos(Rr-si),qn=dr*Math.sin(Rr-si),Aa=dr*Math.cos(Ir+si),aa=dr*Math.sin(Ir+si);var Oo=Math.abs(Ir-Rr+2*si)<=De?0:1;if(si&&sf(Nn,qn,Aa,aa)===1-Hr^Oo){var Mn=(Ir+Rr)/2;Nn=dr*Math.cos(Mn),qn=dr*Math.sin(Mn),Aa=aa=null}}else Nn=qn=0;if(ei>Dt&&(qr=Math.min(Math.abs(_r-dr)/2,+Be.apply(this,arguments)))>.001){Kr=dr<_r^Hr?0:1;var Ca=qr,Xa=qr;if(ei<De){var io=Aa==null?[Nn,qn]:Ln==null?[ji,vn]:Wo([ji,vn],[Aa,aa],[Ln,gn],[Nn,qn]),No=ji-io[0],Yo=vn-io[1],ms=Ln-io[0],qa=gn-io[1],Rl=1/Math.sin(Math.acos((No*ms+Yo*qa)/(Math.sqrt(No*No+Yo*Yo)*Math.sqrt(ms*ms+qa*qa)))/2),Al=Math.sqrt(io[0]*io[0]+io[1]*io[1]);Xa=Math.min(qr,(dr-Al)/(Rl-1)),Ca=Math.min(qr,(_r-Al)/(Rl+1))}if(Ln!=null){var Ss=Nu(Aa==null?[Nn,qn]:[Aa,aa],[ji,vn],_r,Ca,Hr),Wt=Nu([Ln,gn],[Nn,qn],_r,Ca,Hr);qr===Ca?fa.push("M",Ss[0],"A",Ca,",",Ca," 0 0,",Kr," ",Ss[1],"A",_r,",",_r," 0 ",1-Hr^sf(Ss[1][0],Ss[1][1],Wt[1][0],Wt[1][1]),",",Hr," ",Wt[1],"A",Ca,",",Ca," 0 0,",Kr," ",Wt[0]):fa.push("M",Ss[0],"A",Ca,",",Ca," 0 1,",Kr," ",Wt[0])}else fa.push("M",ji,",",vn);if(Aa!=null){var jr=Nu([ji,vn],[Aa,aa],dr,-Xa,Hr),$r=Nu([Nn,qn],Ln==null?[ji,vn]:[Ln,gn],dr,-Xa,Hr);qr===Xa?fa.push("L",$r[0],"A",Xa,",",Xa," 0 0,",Kr," ",$r[1],"A",dr,",",dr," 0 ",Hr^sf($r[1][0],$r[1][1],jr[1][0],jr[1][1]),",",1-Hr," ",jr[1],"A",Xa,",",Xa," 0 0,",Kr," ",jr[0]):fa.push("L",$r[0],"A",Xa,",",Xa," 0 0,",Kr," ",jr[0])}else fa.push("L",Nn,",",qn)}else fa.push("M",ji,",",vn),Ln!=null&&fa.push("A",_r,",",_r," 0 ",Wa,",",Hr," ",Ln,",",gn),fa.push("L",Nn,",",qn),Aa!=null&&fa.push("A",dr,",",dr," 0 ",Oo,",",1-Hr," ",Aa,",",aa);return fa.push("Z"),fa.join("")}function qt(dr,_r){return"M0,"+dr+"A"+dr+","+dr+" 0 1,"+_r+" 0,"+-dr+"A"+dr+","+dr+" 0 1,"+_r+" 0,"+dr}return vt.innerRadius=function(dr){return arguments.length?(fe=vi(dr),vt):fe},vt.outerRadius=function(dr){return arguments.length?(Se=vi(dr),vt):Se},vt.cornerRadius=function(dr){return arguments.length?(Be=vi(dr),vt):Be},vt.padRadius=function(dr){return arguments.length?(Ze=dr==Uc?Uc:vi(dr),vt):Ze},vt.startAngle=function(dr){return arguments.length?(tt=vi(dr),vt):tt},vt.endAngle=function(dr){return arguments.length?(at=vi(dr),vt):at},vt.padAngle=function(dr){return arguments.length?(Lt=vi(dr),vt):Lt},vt.centroid=function(){var dr=(+fe.apply(this,arguments)+ +Se.apply(this,arguments))/2,_r=(+tt.apply(this,arguments)+ +at.apply(this,arguments))/2-et;return[Math.cos(_r)*dr,Math.sin(_r)*dr]},vt};var Uc="auto";function Gd(fe){return fe.innerRadius}function Wd(fe){return fe.outerRadius}function hs(fe){return fe.startAngle}function Qf(fe){return fe.endAngle}function Zd(fe){return fe&&fe.padAngle}function sf(fe,Se,Be,Ze){return(fe-Be)*Se-(Se-Ze)*fe>0?0:1}function Nu(fe,Se,Be,Ze,tt){var at=fe[0]-Se[0],Lt=fe[1]-Se[1],vt=(tt?Ze:-Ze)/Math.sqrt(at*at+Lt*Lt),qt=vt*Lt,dr=-vt*at,_r=fe[0]+qt,Ir=fe[1]+dr,Rr=Se[0]+qt,ei=Se[1]+dr,Hr=(_r+Rr)/2,qr=(Ir+ei)/2,Kr=Rr-_r,ri=ei-Ir,ui=Kr*Kr+ri*ri,si=Be-Ze,ti=_r*ei-Rr*Ir,ji=(ri<0?-1:1)*Math.sqrt(Math.max(0,si*si*ui-ti*ti)),vn=(ti*ri-Kr*ji)/ui,Ln=(-ti*Kr-ri*ji)/ui,gn=(ti*ri+Kr*ji)/ui,Nn=(-ti*Kr+ri*ji)/ui,qn=vn-Hr,Aa=Ln-qr,aa=gn-Hr,fa=Nn-qr;return qn*qn+Aa*Aa>aa*aa+fa*fa&&(vn=gn,Ln=Nn),[[vn-qt,Ln-dr],[vn*Be/si,Ln*Be/si]]}function eh(){return!0}function Xd(fe){var Se=Go,Be=ja,Ze=eh,tt=nc,at=tt.key,Lt=.7;function vt(qt){var dr=[],_r=[],Ir=-1,Rr=qt.length,ei,Hr=vi(Se),qr=vi(Be);function Kr(){dr.push("M",tt(fe(_r),Lt))}for(;++Ir<Rr;)Ze.call(this,ei=qt[Ir],Ir)?_r.push([+Hr.call(this,ei,Ir),+qr.call(this,ei,Ir)]):_r.length&&(Kr(),_r=[]);return _r.length&&Kr(),dr.length?dr.join(""):null}return vt.x=function(qt){return arguments.length?(Se=qt,vt):Se},vt.y=function(qt){return arguments.length?(Be=qt,vt):Be},vt.defined=function(qt){return arguments.length?(Ze=qt,vt):Ze},vt.interpolate=function(qt){return arguments.length?(typeof qt=="function"?at=tt=qt:at=(tt=Ch.get(qt)||nc).key,vt):at},vt.tension=function(qt){return arguments.length?(Lt=qt,vt):Lt},vt}i.svg.line=function(){return Xd(O)};var Ch=i.map({linear:nc,"linear-closed":fd,step:qu,"step-before":Uu,"step-after":wl,basis:Pf,"basis-open":th,"basis-closed":lf,bundle:Pl,cardinal:oc,"cardinal-open":Tc,"cardinal-closed":ac,monotone:Wv});Ch.forEach(function(fe,Se){Se.key=fe,Se.closed=/-closed$/.test(fe)});function nc(fe){return fe.length>1?fe.join("L"):fe+"Z"}function fd(fe){return fe.join("L")+"Z"}function qu(fe){for(var Se=0,Be=fe.length,Ze=fe[0],tt=[Ze[0],",",Ze[1]];++Se<Be;)tt.push("H",(Ze[0]+(Ze=fe[Se])[0])/2,"V",Ze[1]);return Be>1&&tt.push("H",Ze[0]),tt.join("")}function Uu(fe){for(var Se=0,Be=fe.length,Ze=fe[0],tt=[Ze[0],",",Ze[1]];++Se<Be;)tt.push("V",(Ze=fe[Se])[1],"H",Ze[0]);return tt.join("")}function wl(fe){for(var Se=0,Be=fe.length,Ze=fe[0],tt=[Ze[0],",",Ze[1]];++Se<Be;)tt.push("H",(Ze=fe[Se])[0],"V",Ze[1]);return tt.join("")}function Tc(fe,Se){return fe.length<4?nc(fe):fe[1]+Ac(fe.slice(1,-1),Iu(fe,Se))}function ac(fe,Se){return fe.length<3?fd(fe):fe[0]+Ac((fe.push(fe[0]),fe),Iu([fe[fe.length-2]].concat(fe,[fe[1]]),Se))}function oc(fe,Se){return fe.length<3?nc(fe):fe[0]+Ac(fe,Iu(fe,Se))}function Ac(fe,Se){if(Se.length<1||fe.length!=Se.length&&fe.length!=Se.length+2)return nc(fe);var Be=fe.length!=Se.length,Ze="",tt=fe[0],at=fe[1],Lt=Se[0],vt=Lt,qt=1;if(Be&&(Ze+="Q"+(at[0]-Lt[0]*2/3)+","+(at[1]-Lt[1]*2/3)+","+at[0]+","+at[1],tt=fe[1],qt=2),Se.length>1){vt=Se[1],at=fe[qt],qt++,Ze+="C"+(tt[0]+Lt[0])+","+(tt[1]+Lt[1])+","+(at[0]-vt[0])+","+(at[1]-vt[1])+","+at[0]+","+at[1];for(var dr=2;dr<Se.length;dr++,qt++)at=fe[qt],vt=Se[dr],Ze+="S"+(at[0]-vt[0])+","+(at[1]-vt[1])+","+at[0]+","+at[1]}if(Be){var _r=fe[qt];Ze+="Q"+(at[0]+vt[0]*2/3)+","+(at[1]+vt[1]*2/3)+","+_r[0]+","+_r[1]}return Ze}function Iu(fe,Se){for(var Be=[],Ze=(1-Se)/2,tt,at=fe[0],Lt=fe[1],vt=1,qt=fe.length;++vt<qt;)tt=at,at=Lt,Lt=fe[vt],Be.push([Ze*(Lt[0]-tt[0]),Ze*(Lt[1]-tt[1])]);return Be}function Pf(fe){if(fe.length<3)return nc(fe);var Se=1,Be=fe.length,Ze=fe[0],tt=Ze[0],at=Ze[1],Lt=[tt,tt,tt,(Ze=fe[1])[0]],vt=[at,at,at,Ze[1]],qt=[tt,",",at,"L",vl(Tl,Lt),",",vl(Tl,vt)];for(fe.push(fe[Be-1]);++Se<=Be;)Ze=fe[Se],Lt.shift(),Lt.push(Ze[0]),vt.shift(),vt.push(Ze[1]),Eh(qt,Lt,vt);return fe.pop(),qt.push("L",Ze),qt.join("")}function th(fe){if(fe.length<4)return nc(fe);for(var Se=[],Be=-1,Ze=fe.length,tt,at=[0],Lt=[0];++Be<3;)tt=fe[Be],at.push(tt[0]),Lt.push(tt[1]);for(Se.push(vl(Tl,at)+","+vl(Tl,Lt)),--Be;++Be<Ze;)tt=fe[Be],at.shift(),at.push(tt[0]),Lt.shift(),Lt.push(tt[1]),Eh(Se,at,Lt);return Se.join("")}function lf(fe){for(var Se,Be=-1,Ze=fe.length,tt=Ze+4,at,Lt=[],vt=[];++Be<4;)at=fe[Be%Ze],Lt.push(at[0]),vt.push(at[1]);for(Se=[vl(Tl,Lt),",",vl(Tl,vt)],--Be;++Be<tt;)at=fe[Be%Ze],Lt.shift(),Lt.push(at[0]),vt.shift(),vt.push(at[1]),Eh(Se,Lt,vt);return Se.join("")}function Pl(fe,Se){var Be=fe.length-1;if(Be)for(var Ze=fe[0][0],tt=fe[0][1],at=fe[Be][0]-Ze,Lt=fe[Be][1]-tt,vt=-1,qt,dr;++vt<=Be;)qt=fe[vt],dr=vt/Be,qt[0]=Se*qt[0]+(1-Se)*(Ze+dr*at),qt[1]=Se*qt[1]+(1-Se)*(tt+dr*Lt);return Pf(fe)}function vl(fe,Se){return fe[0]*Se[0]+fe[1]*Se[1]+fe[2]*Se[2]+fe[3]*Se[3]}var Rf=[0,2/3,1/3,0],sc=[0,1/3,2/3,0],Tl=[0,1/6,2/3,1/6];function Eh(fe,Se,Be){fe.push("C",vl(Rf,Se),",",vl(Rf,Be),",",vl(sc,Se),",",vl(sc,Be),",",vl(Tl,Se),",",vl(Tl,Be))}function rh(fe,Se){return(Se[1]-fe[1])/(Se[0]-fe[0])}function Co(fe){for(var Se=0,Be=fe.length-1,Ze=[],tt=fe[0],at=fe[1],Lt=Ze[0]=rh(tt,at);++Se<Be;)Ze[Se]=(Lt+(Lt=rh(tt=at,at=fe[Se+1])))/2;return Ze[Se]=Lt,Ze}function Sc(fe){for(var Se=[],Be,Ze,tt,at,Lt=Co(fe),vt=-1,qt=fe.length-1;++vt<qt;)Be=rh(fe[vt],fe[vt+1]),y(Be)<Dt?Lt[vt]=Lt[vt+1]=0:(Ze=Lt[vt]/Be,tt=Lt[vt+1]/Be,at=Ze*Ze+tt*tt,at>9&&(at=Be*3/Math.sqrt(at),Lt[vt]=at*Ze,Lt[vt+1]=at*tt));for(vt=-1;++vt<=qt;)at=(fe[Math.min(qt,vt+1)][0]-fe[Math.max(0,vt-1)][0])/(6*(1+Lt[vt]*Lt[vt])),Se.push([at||0,Lt[vt]*at||0]);return Se}function Wv(fe){return fe.length<3?nc(fe):fe[0]+Ac(fe,Sc(fe))}i.svg.line.radial=function(){var fe=Xd(ih);return fe.radius=fe.x,delete fe.x,fe.angle=fe.y,delete fe.y,fe};function ih(fe){for(var Se,Be=-1,Ze=fe.length,tt,at;++Be<Ze;)Se=fe[Be],tt=Se[0],at=Se[1]-et,Se[0]=tt*Math.cos(at),Se[1]=tt*Math.sin(at);return fe}function Ps(fe){var Se=Go,Be=Go,Ze=0,tt=ja,at=eh,Lt=nc,vt=Lt.key,qt=Lt,dr="L",_r=.7;function Ir(Rr){var ei=[],Hr=[],qr=[],Kr=-1,ri=Rr.length,ui,si=vi(Se),ti=vi(Ze),ji=Se===Be?function(){return Ln}:vi(Be),vn=Ze===tt?function(){return gn}:vi(tt),Ln,gn;function Nn(){ei.push("M",Lt(fe(qr),_r),dr,qt(fe(Hr.reverse()),_r),"Z")}for(;++Kr<ri;)at.call(this,ui=Rr[Kr],Kr)?(Hr.push([Ln=+si.call(this,ui,Kr),gn=+ti.call(this,ui,Kr)]),qr.push([+ji.call(this,ui,Kr),+vn.call(this,ui,Kr)])):Hr.length&&(Nn(),Hr=[],qr=[]);return Hr.length&&Nn(),ei.length?ei.join(""):null}return Ir.x=function(Rr){return arguments.length?(Se=Be=Rr,Ir):Be},Ir.x0=function(Rr){return arguments.length?(Se=Rr,Ir):Se},Ir.x1=function(Rr){return arguments.length?(Be=Rr,Ir):Be},Ir.y=function(Rr){return arguments.length?(Ze=tt=Rr,Ir):tt},Ir.y0=function(Rr){return arguments.length?(Ze=Rr,Ir):Ze},Ir.y1=function(Rr){return arguments.length?(tt=Rr,Ir):tt},Ir.defined=function(Rr){return arguments.length?(at=Rr,Ir):at},Ir.interpolate=function(Rr){return arguments.length?(typeof Rr=="function"?vt=Lt=Rr:vt=(Lt=Ch.get(Rr)||nc).key,qt=Lt.reverse||Lt,dr=Lt.closed?"M":"L",Ir):vt},Ir.tension=function(Rr){return arguments.length?(_r=Rr,Ir):_r},Ir}Uu.reverse=wl,wl.reverse=Uu,i.svg.area=function(){return Ps(O)},i.svg.area.radial=function(){var fe=Ps(ih);return fe.radius=fe.x,delete fe.x,fe.innerRadius=fe.x0,delete fe.x0,fe.outerRadius=fe.x1,delete fe.x1,fe.angle=fe.y,delete fe.y,fe.startAngle=fe.y0,delete fe.y0,fe.endAngle=fe.y1,delete fe.y1,fe};function Lh(fe){return fe.source}function Ih(fe){return fe.target}i.svg.chord=function(){var fe=Lh,Se=Ih,Be=To,Ze=hs,tt=Qf;function at(_r,Ir){var Rr=Lt(this,fe,_r,Ir),ei=Lt(this,Se,_r,Ir);return"M"+Rr.p0+qt(Rr.r,Rr.p1,Rr.a1-Rr.a0)+(vt(Rr,ei)?dr(Rr.r,Rr.p1,Rr.r,Rr.p0):dr(Rr.r,Rr.p1,ei.r,ei.p0)+qt(ei.r,ei.p1,ei.a1-ei.a0)+dr(ei.r,ei.p1,Rr.r,Rr.p0))+"Z"}function Lt(_r,Ir,Rr,ei){var Hr=Ir.call(_r,Rr,ei),qr=Be.call(_r,Hr,ei),Kr=Ze.call(_r,Hr,ei)-et,ri=tt.call(_r,Hr,ei)-et;return{r:qr,a0:Kr,a1:ri,p0:[qr*Math.cos(Kr),qr*Math.sin(Kr)],p1:[qr*Math.cos(ri),qr*Math.sin(ri)]}}function vt(_r,Ir){return _r.a0==Ir.a0&&_r.a1==Ir.a1}function qt(_r,Ir,Rr){return"A"+_r+","+_r+" 0 "+ +(Rr>De)+",1 "+Ir}function dr(_r,Ir,Rr,ei){return"Q 0,0 "+ei}return at.radius=function(_r){return arguments.length?(Be=vi(_r),at):Be},at.source=function(_r){return arguments.length?(fe=vi(_r),at):fe},at.target=function(_r){return arguments.length?(Se=vi(_r),at):Se},at.startAngle=function(_r){return arguments.length?(Ze=vi(_r),at):Ze},at.endAngle=function(_r){return arguments.length?(tt=vi(_r),at):tt},at};function To(fe){return fe.radius}i.svg.diagonal=function(){var fe=Lh,Se=Ih,Be=nh;function Ze(tt,at){var Lt=fe.call(this,tt,at),vt=Se.call(this,tt,at),qt=(Lt.y+vt.y)/2,dr=[Lt,{x:Lt.x,y:qt},{x:vt.x,y:qt},vt];return dr=dr.map(Be),"M"+dr[0]+"C"+dr[1]+" "+dr[2]+" "+dr[3]}return Ze.source=function(tt){return arguments.length?(fe=vi(tt),Ze):fe},Ze.target=function(tt){return arguments.length?(Se=vi(tt),Ze):Se},Ze.projection=function(tt){return arguments.length?(Be=tt,Ze):Be},Ze};function nh(fe){return[fe.x,fe.y]}i.svg.diagonal.radial=function(){var fe=i.svg.diagonal(),Se=nh,Be=fe.projection;return fe.projection=function(Ze){return arguments.length?Be(Ph(Se=Ze)):Se},fe};function Ph(fe){return function(){var Se=fe.apply(this,arguments),Be=Se[0],Ze=Se[1]-et;return[Be*Math.cos(Ze),Be*Math.sin(Ze)]}}i.svg.symbol=function(){var fe=Df,Se=As;function Be(Ze,tt){return(ls.get(fe.call(this,Ze,tt))||zf)(Se.call(this,Ze,tt))}return Be.type=function(Ze){return arguments.length?(fe=vi(Ze),Be):fe},Be.size=function(Ze){return arguments.length?(Se=vi(Ze),Be):Se},Be};function As(){return 64}function Df(){return"circle"}function zf(fe){var Se=Math.sqrt(fe/De);return"M0,"+Se+"A"+Se+","+Se+" 0 1,1 0,"+-Se+"A"+Se+","+Se+" 0 1,1 0,"+Se+"Z"}var ls=i.map({circle:zf,cross:function(fe){var Se=Math.sqrt(fe/5)/2;return"M"+-3*Se+","+-Se+"H"+-Se+"V"+-3*Se+"H"+Se+"V"+-Se+"H"+3*Se+"V"+Se+"H"+Se+"V"+3*Se+"H"+-Se+"V"+Se+"H"+-3*Se+"Z"},diamond:function(fe){var Se=Math.sqrt(fe/(2*Yd)),Be=Se*Yd;return"M0,"+-Se+"L"+Be+",0 0,"+Se+" "+-Be+",0Z"},square:function(fe){var Se=Math.sqrt(fe)/2;return"M"+-Se+","+-Se+"L"+Se+","+-Se+" "+Se+","+Se+" "+-Se+","+Se+"Z"},"triangle-down":function(fe){var Se=Math.sqrt(fe/Mc),Be=Se*Mc/2;return"M0,"+Be+"L"+Se+","+-Be+" "+-Se+","+-Be+"Z"},"triangle-up":function(fe){var Se=Math.sqrt(fe/Mc),Be=Se*Mc/2;return"M0,"+-Be+"L"+Se+","+Be+" "+-Se+","+Be+"Z"}});i.svg.symbolTypes=ls.keys();var Mc=Math.sqrt(3),Yd=Math.tan(30*ct);ee.transition=function(fe){for(var Se=lc||++Dh,Be=oh(fe),Ze=[],tt,at,Lt=uf||{time:Date.now(),ease:lu,delay:0,duration:250},vt=-1,qt=this.length;++vt<qt;){Ze.push(tt=[]);for(var dr=this[vt],_r=-1,Ir=dr.length;++_r<Ir;)(at=dr[_r])&&Zl(at,_r,Be,Se,Lt),tt.push(at)}return Vc(Ze,Be,Se)},ee.interrupt=function(fe){return this.each(fe==null?Rh:ah(oh(fe)))};var Rh=ah(oh());function ah(fe){return function(){var Se,Be,Ze;(Se=this[fe])&&(Ze=Se[Be=Se.active])&&(Ze.timer.c=null,Ze.timer.t=NaN,--Se.count?delete Se[Be]:delete this[fe],Se.active+=.5,Ze.event&&Ze.event.interrupt.call(this,this.__data__,Ze.index))}}function Vc(fe,Se,Be){return he(fe,Ns),fe.namespace=Se,fe.id=Be,fe}var Ns=[],Dh=0,lc,uf;Ns.call=ee.call,Ns.empty=ee.empty,Ns.node=ee.node,Ns.size=ee.size,i.transition=function(fe,Se){return fe&&fe.transition?lc?fe.transition(Se):fe:i.selection().transition(fe)},i.transition.prototype=Ns,Ns.select=function(fe){var Se=this.id,Be=this.namespace,Ze=[],tt,at,Lt;fe=Q(fe);for(var vt=-1,qt=this.length;++vt<qt;){Ze.push(tt=[]);for(var dr=this[vt],_r=-1,Ir=dr.length;++_r<Ir;)(Lt=dr[_r])&&(at=fe.call(Lt,Lt.__data__,_r,vt))?("__data__"in Lt&&(at.__data__=Lt.__data__),Zl(at,_r,Be,Se,Lt[Be][Se]),tt.push(at)):tt.push(null)}return Vc(Ze,Be,Se)},Ns.selectAll=function(fe){var Se=this.id,Be=this.namespace,Ze=[],tt,at,Lt,vt,qt;fe=ue(fe);for(var dr=-1,_r=this.length;++dr<_r;)for(var Ir=this[dr],Rr=-1,ei=Ir.length;++Rr<ei;)if(Lt=Ir[Rr]){qt=Lt[Be][Se],at=fe.call(Lt,Lt.__data__,Rr,dr),Ze.push(tt=[]);for(var Hr=-1,qr=at.length;++Hr<qr;)(vt=at[Hr])&&Zl(vt,Hr,Be,Se,qt),tt.push(vt)}return Vc(Ze,Be,Se)},Ns.filter=function(fe){var Se=[],Be,Ze,tt;typeof fe!="function"&&(fe=Ae(fe));for(var at=0,Lt=this.length;at<Lt;at++){Se.push(Be=[]);for(var Ze=this[at],vt=0,qt=Ze.length;vt<qt;vt++)(tt=Ze[vt])&&fe.call(tt,tt.__data__,vt,at)&&Be.push(tt)}return Vc(Se,this.namespace,this.id)},Ns.tween=function(fe,Se){var Be=this.id,Ze=this.namespace;return arguments.length<2?this.node()[Ze][Be].tween.get(fe):Ne(this,Se==null?function(tt){tt[Ze][Be].tween.remove(fe)}:function(tt){tt[Ze][Be].tween.set(fe,Se)})};function $d(fe,Se,Be,Ze){var tt=fe.id,at=fe.namespace;return Ne(fe,typeof Be=="function"?function(Lt,vt,qt){Lt[at][tt].tween.set(Se,Ze(Be.call(Lt,Lt.__data__,vt,qt)))}:(Be=Ze(Be),function(Lt){Lt[at][tt].tween.set(Se,Be)}))}Ns.attr=function(fe,Se){if(arguments.length<2){for(Se in fe)this.attr(Se,fe[Se]);return this}var Be=fe=="transform"?_o:ss,Ze=i.ns.qualify(fe);function tt(){this.removeAttribute(Ze)}function at(){this.removeAttributeNS(Ze.space,Ze.local)}function Lt(qt){return qt==null?tt:(qt+="",function(){var dr=this.getAttribute(Ze),_r;return dr!==qt&&(_r=Be(dr,qt),function(Ir){this.setAttribute(Ze,_r(Ir))})})}function vt(qt){return qt==null?at:(qt+="",function(){var dr=this.getAttributeNS(Ze.space,Ze.local),_r;return dr!==qt&&(_r=Be(dr,qt),function(Ir){this.setAttributeNS(Ze.space,Ze.local,_r(Ir))})})}return $d(this,"attr."+fe,Se,Ze.local?vt:Lt)},Ns.attrTween=function(fe,Se){var Be=i.ns.qualify(fe);function Ze(at,Lt){var vt=Se.call(this,at,Lt,this.getAttribute(Be));return vt&&function(qt){this.setAttribute(Be,vt(qt))}}function tt(at,Lt){var vt=Se.call(this,at,Lt,this.getAttributeNS(Be.space,Be.local));return vt&&function(qt){this.setAttributeNS(Be.space,Be.local,vt(qt))}}return this.tween("attr."+fe,Be.local?tt:Ze)},Ns.style=function(fe,Se,Be){var Ze=arguments.length;if(Ze<3){if(typeof fe!="string"){Ze<2&&(Se="");for(Be in fe)this.style(Be,fe[Be],Se);return this}Be=""}function tt(){this.style.removeProperty(fe)}function at(Lt){return Lt==null?tt:(Lt+="",function(){var vt=e(this).getComputedStyle(this,null).getPropertyValue(fe),qt;return vt!==Lt&&(qt=ss(vt,Lt),function(dr){this.style.setProperty(fe,qt(dr),Be)})})}return $d(this,"style."+fe,Se,at)},Ns.styleTween=function(fe,Se,Be){arguments.length<3&&(Be="");function Ze(tt,at){var Lt=Se.call(this,tt,at,e(this).getComputedStyle(this,null).getPropertyValue(fe));return Lt&&function(vt){this.style.setProperty(fe,Lt(vt),Be)}}return this.tween("style."+fe,Ze)},Ns.text=function(fe){return $d(this,"text",fe,zh)};function zh(fe){return fe==null&&(fe=""),function(){this.textContent=fe}}Ns.remove=function(){var fe=this.namespace;return this.each("end.transition",function(){var Se;this[fe].count<2&&(Se=this.parentNode)&&Se.removeChild(this)})},Ns.ease=function(fe){var Se=this.id,Be=this.namespace;return arguments.length<1?this.node()[Be][Se].ease:(typeof fe!="function"&&(fe=i.ease.apply(i,arguments)),Ne(this,function(Ze){Ze[Be][Se].ease=fe}))},Ns.delay=function(fe){var Se=this.id,Be=this.namespace;return arguments.length<1?this.node()[Be][Se].delay:Ne(this,typeof fe=="function"?function(Ze,tt,at){Ze[Be][Se].delay=+fe.call(Ze,Ze.__data__,tt,at)}:(fe=+fe,function(Ze){Ze[Be][Se].delay=fe}))},Ns.duration=function(fe){var Se=this.id,Be=this.namespace;return arguments.length<1?this.node()[Be][Se].duration:Ne(this,typeof fe=="function"?function(Ze,tt,at){Ze[Be][Se].duration=Math.max(1,fe.call(Ze,Ze.__data__,tt,at))}:(fe=Math.max(1,fe),function(Ze){Ze[Be][Se].duration=fe}))},Ns.each=function(fe,Se){var Be=this.id,Ze=this.namespace;if(arguments.length<2){var tt=uf,at=lc;try{lc=Be,Ne(this,function(Lt,vt,qt){uf=Lt[Ze][Be],fe.call(Lt,Lt.__data__,vt,qt)})}finally{uf=tt,lc=at}}else Ne(this,function(Lt){var vt=Lt[Ze][Be];(vt.event||(vt.event=i.dispatch("start","end","interrupt"))).on(fe,Se)});return this},Ns.transition=function(){for(var fe=this.id,Se=++Dh,Be=this.namespace,Ze=[],tt,at,Lt,vt,qt=0,dr=this.length;qt<dr;qt++){Ze.push(tt=[]);for(var at=this[qt],_r=0,Ir=at.length;_r<Ir;_r++)(Lt=at[_r])&&(vt=Lt[Be][fe],Zl(Lt,_r,Be,Se,{time:vt.time,ease:vt.ease,delay:vt.delay+vt.duration,duration:vt.duration})),tt.push(Lt)}return Vc(Ze,Be,Se)};function oh(fe){return fe==null?"__transition__":"__transition_"+fe+"__"}function Zl(fe,Se,Be,Ze,tt){var at=fe[Be]||(fe[Be]={active:0,count:0}),Lt=at[Ze],vt,qt,dr,_r,Ir;function Rr(qr){var Kr=Lt.delay;if(qt.t=Kr+vt,Kr<=qr)return ei(qr-Kr);qt.c=ei}function ei(qr){var Kr=at.active,ri=at[Kr];ri&&(ri.timer.c=null,ri.timer.t=NaN,--at.count,delete at[Kr],ri.event&&ri.event.interrupt.call(fe,fe.__data__,ri.index));for(var ui in at)if(+ui<Ze){var si=at[ui];si.timer.c=null,si.timer.t=NaN,--at.count,delete at[ui]}qt.c=Hr,Ra(function(){return qt.c&&Hr(qr||1)&&(qt.c=null,qt.t=NaN),1},0,vt),at.active=Ze,Lt.event&&Lt.event.start.call(fe,fe.__data__,Se),Ir=[],Lt.tween.forEach(function(ti,ji){(ji=ji.call(fe,fe.__data__,Se))&&Ir.push(ji)}),_r=Lt.ease,dr=Lt.duration}function Hr(qr){for(var Kr=qr/dr,ri=_r(Kr),ui=Ir.length;ui>0;)Ir[--ui].call(fe,ri);if(Kr>=1)return Lt.event&&Lt.event.end.call(fe,fe.__data__,Se),--at.count?delete at[Ze]:delete fe[Be],1}Lt||(vt=tt.time,qt=Ra(Rr,0,vt),Lt=at[Ze]={tween:new M,time:vt,timer:qt,delay:tt.delay,duration:tt.duration,ease:tt.ease,index:Se},tt=null,++at.count)}i.svg.axis=function(){var fe=i.scale.linear(),Se=ys,Be=6,Ze=6,tt=3,at=[10],Lt=null,vt;function qt(dr){dr.each(function(){var _r=i.select(this),Ir=this.__chart__||fe,Rr=this.__chart__=fe.copy(),ei=Lt??(Rr.ticks?Rr.ticks.apply(Rr,at):Rr.domain()),Hr=vt??(Rr.tickFormat?Rr.tickFormat.apply(Rr,at):O),qr=_r.selectAll(".tick").data(ei,Rr),Kr=qr.enter().insert("g",".domain").attr("class","tick").style("opacity",Dt),ri=i.transition(qr.exit()).style("opacity",Dt).remove(),ui=i.transition(qr.order()).style("opacity",1),si=Math.max(Be,0)+tt,ti,ji=jd(Rr),vn=_r.selectAll(".domain").data([0]),Ln=(vn.enter().append("path").attr("class","domain"),i.transition(vn));Kr.append("line"),Kr.append("text");var gn=Kr.select("line"),Nn=ui.select("line"),qn=qr.select("text").text(Hr),Aa=Kr.select("text"),aa=ui.select("text"),fa=Se==="top"||Se==="left"?-1:1,Wa,Bo,Oo,Mn;if(Se==="bottom"||Se==="top"?(ti=cf,Wa="x",Oo="y",Bo="x2",Mn="y2",qn.attr("dy",fa<0?"0em":".71em").style("text-anchor","middle"),Ln.attr("d","M"+ji[0]+","+fa*Ze+"V0H"+ji[1]+"V"+fa*Ze)):(ti=_u,Wa="y",Oo="x",Bo="y2",Mn="x2",qn.attr("dy",".32em").style("text-anchor",fa<0?"end":"start"),Ln.attr("d","M"+fa*Ze+","+ji[0]+"H0V"+ji[1]+"H"+fa*Ze)),gn.attr(Mn,fa*Be),Aa.attr(Oo,fa*si),Nn.attr(Bo,0).attr(Mn,fa*Be),aa.attr(Wa,0).attr(Oo,fa*si),Rr.rangeBand){var Ca=Rr,Xa=Ca.rangeBand()/2;Ir=Rr=function(io){return Ca(io)+Xa}}else Ir.rangeBand?Ir=Rr:ri.call(ti,Rr,Ir);Kr.call(ti,Ir,Rr),ui.call(ti,Rr,Rr)})}return qt.scale=function(dr){return arguments.length?(fe=dr,qt):fe},qt.orient=function(dr){return arguments.length?(Se=dr in Vu?dr+"":ys,qt):Se},qt.ticks=function(){return arguments.length?(at=c(arguments),qt):at},qt.tickValues=function(dr){return arguments.length?(Lt=dr,qt):Lt},qt.tickFormat=function(dr){return arguments.length?(vt=dr,qt):vt},qt.tickSize=function(dr){var _r=arguments.length;return _r?(Be=+dr,Ze=+arguments[_r-1],qt):Be},qt.innerTickSize=function(dr){return arguments.length?(Be=+dr,qt):Be},qt.outerTickSize=function(dr){return arguments.length?(Ze=+dr,qt):Ze},qt.tickPadding=function(dr){return arguments.length?(tt=+dr,qt):tt},qt.tickSubdivide=function(){return arguments.length&&qt},qt};var ys="bottom",Vu={top:1,right:1,bottom:1,left:1};function cf(fe,Se,Be){fe.attr("transform",function(Ze){var tt=Se(Ze);return"translate("+(isFinite(tt)?tt:Be(Ze))+",0)"})}function _u(fe,Se,Be){fe.attr("transform",function(Ze){var tt=Se(Ze);return"translate(0,"+(isFinite(tt)?tt:Be(Ze))+")"})}i.svg.brush=function(){var fe=oe(_r,"brushstart","brush","brushend"),Se=null,Be=null,Ze=[0,0],tt=[0,0],at,Lt,vt=!0,qt=!0,dr=Xo[0];function _r(qr){qr.each(function(){var Kr=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Hr).on("touchstart.brush",Hr),ri=Kr.selectAll(".background").data([0]);ri.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Kr.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ui=Kr.selectAll(".resize").data(dr,O);ui.exit().remove(),ui.enter().append("g").attr("class",function(vn){return"resize "+vn}).style("cursor",function(vn){return Vo[vn]}).append("rect").attr("x",function(vn){return/[ew]$/.test(vn)?-3:null}).attr("y",function(vn){return/^[ns]/.test(vn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ui.style("display",_r.empty()?"none":null);var si=i.transition(Kr),ti=i.transition(ri),ji;Se&&(ji=jd(Se),ti.attr("x",ji[0]).attr("width",ji[1]-ji[0]),Rr(si)),Be&&(ji=jd(Be),ti.attr("y",ji[0]).attr("height",ji[1]-ji[0]),ei(si)),Ir(si)})}_r.event=function(qr){qr.each(function(){var Kr=fe.of(this,arguments),ri={x:Ze,y:tt,i:at,j:Lt},ui=this.__chart__||ri;this.__chart__=ri,lc?i.select(this).transition().each("start.brush",function(){at=ui.i,Lt=ui.j,Ze=ui.x,tt=ui.y,Kr({type:"brushstart"})}).tween("brush:brush",function(){var si=Is(Ze,ri.x),ti=Is(tt,ri.y);return at=Lt=null,function(ji){Ze=ri.x=si(ji),tt=ri.y=ti(ji),Kr({type:"brush",mode:"resize"})}}).each("end.brush",function(){at=ri.i,Lt=ri.j,Kr({type:"brush",mode:"resize"}),Kr({type:"brushend"})}):(Kr({type:"brushstart"}),Kr({type:"brush",mode:"resize"}),Kr({type:"brushend"}))})};function Ir(qr){qr.selectAll(".resize").attr("transform",function(Kr){return"translate("+Ze[+/e$/.test(Kr)]+","+tt[+/^s/.test(Kr)]+")"})}function Rr(qr){qr.select(".extent").attr("x",Ze[0]),qr.selectAll(".extent,.n>rect,.s>rect").attr("width",Ze[1]-Ze[0])}function ei(qr){qr.select(".extent").attr("y",tt[0]),qr.selectAll(".extent,.e>rect,.w>rect").attr("height",tt[1]-tt[0])}function Hr(){var qr=this,Kr=i.select(i.event.target),ri=fe.of(qr,arguments),ui=i.select(qr),si=Kr.datum(),ti=!/^(n|s)$/.test(si)&&Se,ji=!/^(e|w)$/.test(si)&&Be,vn=Kr.classed("extent"),Ln=hr(qr),gn,Nn=i.mouse(qr),qn,Aa=i.select(e(qr)).on("keydown.brush",Wa).on("keyup.brush",Bo);if(i.event.changedTouches?Aa.on("touchmove.brush",Oo).on("touchend.brush",Ca):Aa.on("mousemove.brush",Oo).on("mouseup.brush",Ca),ui.interrupt().selectAll("*").interrupt(),vn)Nn[0]=Ze[0]-Nn[0],Nn[1]=tt[0]-Nn[1];else if(si){var aa=+/w$/.test(si),fa=+/^n/.test(si);qn=[Ze[1-aa]-Nn[0],tt[1-fa]-Nn[1]],Nn[0]=Ze[aa],Nn[1]=tt[fa]}else i.event.altKey&&(gn=Nn.slice());ui.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",Kr.style("cursor")),ri({type:"brushstart"}),Oo();function Wa(){i.event.keyCode==32&&(vn||(gn=null,Nn[0]-=Ze[1],Nn[1]-=tt[1],vn=2),ae())}function Bo(){i.event.keyCode==32&&vn==2&&(Nn[0]+=Ze[1],Nn[1]+=tt[1],vn=0,ae())}function Oo(){var Xa=i.mouse(qr),io=!1;qn&&(Xa[0]+=qn[0],Xa[1]+=qn[1]),vn||(i.event.altKey?(gn||(gn=[(Ze[0]+Ze[1])/2,(tt[0]+tt[1])/2]),Nn[0]=Ze[+(Xa[0]<gn[0])],Nn[1]=tt[+(Xa[1]<gn[1])]):gn=null),ti&&Mn(Xa,Se,0)&&(Rr(ui),io=!0),ji&&Mn(Xa,Be,1)&&(ei(ui),io=!0),io&&(Ir(ui),ri({type:"brush",mode:vn?"move":"resize"}))}function Mn(Xa,io,No){var Yo=jd(io),ms=Yo[0],qa=Yo[1],Rl=Nn[No],Al=No?tt:Ze,Ss=Al[1]-Al[0],Wt,jr;if(vn&&(ms-=Rl,qa-=Ss+Rl),Wt=(No?qt:vt)?Math.max(ms,Math.min(qa,Xa[No])):Xa[No],vn?jr=(Wt+=Rl)+Ss:(gn&&(Rl=Math.max(ms,Math.min(qa,2*gn[No]-Wt))),Rl<Wt?(jr=Wt,Wt=Rl):jr=Rl),Al[0]!=Wt||Al[1]!=jr)return No?Lt=null:at=null,Al[0]=Wt,Al[1]=jr,!0}function Ca(){Oo(),ui.style("pointer-events","all").selectAll(".resize").style("display",_r.empty()?"none":null),i.select("body").style("cursor",null),Aa.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Ln(),ri({type:"brushend"})}}return _r.x=function(qr){return arguments.length?(Se=qr,dr=Xo[!Se<<1|!Be],_r):Se},_r.y=function(qr){return arguments.length?(Be=qr,dr=Xo[!Se<<1|!Be],_r):Be},_r.clamp=function(qr){return arguments.length?(Se&&Be?(vt=!!qr[0],qt=!!qr[1]):Se?vt=!!qr:Be&&(qt=!!qr),_r):Se&&Be?[vt,qt]:Se?vt:Be?qt:null},_r.extent=function(qr){var Kr,ri,ui,si,ti;return arguments.length?(Se&&(Kr=qr[0],ri=qr[1],Be&&(Kr=Kr[0],ri=ri[0]),at=[Kr,ri],Se.invert&&(Kr=Se(Kr),ri=Se(ri)),ri<Kr&&(ti=Kr,Kr=ri,ri=ti),(Kr!=Ze[0]||ri!=Ze[1])&&(Ze=[Kr,ri])),Be&&(ui=qr[0],si=qr[1],Se&&(ui=ui[1],si=si[1]),Lt=[ui,si],Be.invert&&(ui=Be(ui),si=Be(si)),si<ui&&(ti=ui,ui=si,si=ti),(ui!=tt[0]||si!=tt[1])&&(tt=[ui,si])),_r):(Se&&(at?(Kr=at[0],ri=at[1]):(Kr=Ze[0],ri=Ze[1],Se.invert&&(Kr=Se.invert(Kr),ri=Se.invert(ri)),ri<Kr&&(ti=Kr,Kr=ri,ri=ti))),Be&&(Lt?(ui=Lt[0],si=Lt[1]):(ui=tt[0],si=tt[1],Be.invert&&(ui=Be.invert(ui),si=Be.invert(si)),si<ui&&(ti=ui,ui=si,si=ti))),Se&&Be?[[Kr,ui],[ri,si]]:Se?[Kr,ri]:Be&&[ui,si])},_r.clear=function(){return _r.empty()||(Ze=[0,0],tt=[0,0],at=Lt=null),_r},_r.empty=function(){return!!Se&&Ze[0]==Ze[1]||!!Be&&tt[0]==tt[1]},i.rebind(_r,fe,"on")};var Vo={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Xo=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];i.text=mi(function(fe){return fe.responseText}),i.json=function(fe,Se){return cn(fe,"application/json",Fh,Se)};function Fh(fe){return JSON.parse(fe.responseText)}i.html=function(fe,Se){return cn(fe,"text/html",Hc,Se)};function Hc(fe){var Se=a.createRange();return Se.selectNode(a.body),Se.createContextualFragment(fe.responseText)}i.xml=mi(function(fe){return fe.responseXML}),r.exports?r.exports=i:this.d3=i}).apply(self)})(fA)),fA.exports}var hA=new Date,dA=new Date;function xf(r,i,h,c){function a(o){return r(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=function(o){return r(o=new Date(+o)),o},a.ceil=function(o){return r(o=new Date(o-1)),i(o,1),r(o),o},a.round=function(o){var e=a(o),t=a.ceil(o);return o-e<t-o?e:t},a.offset=function(o,e){return i(o=new Date(+o),e==null?1:Math.floor(e)),o},a.range=function(o,e,t){var n=[],s;if(o=a.ceil(o),t=t==null?1:Math.floor(t),!(o<e)||!(t>0))return n;do n.push(s=new Date(+o)),i(o,t),r(o);while(s<o&&o<e);return n},a.filter=function(o){return xf(function(e){if(e>=e)for(;r(e),!o(e);)e.setTime(e-1)},function(e,t){if(e>=e)if(t<0)for(;++t<=0;)for(;i(e,-1),!o(e););else for(;--t>=0;)for(;i(e,1),!o(e););})},h&&(a.count=function(o,e){return hA.setTime(+o),dA.setTime(+e),r(hA),r(dA),Math.floor(h(hA,dA))},a.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(c?function(e){return c(e)%o===0}:function(e){return a.count(0,e)%o===0}):a}),a}var F_=xf(function(){},function(r,i){r.setTime(+r+i)},function(r,i){return i-r});F_.every=function(r){return r=Math.floor(r),!isFinite(r)||!(r>0)?null:r>1?xf(function(i){i.setTime(Math.floor(i/r)*r)},function(i,h){i.setTime(+i+h*r)},function(i,h){return(h-i)/r}):F_};var NV=F_.range,mw=1e3,ny=6e4,_w=36e5,dhe=864e5,vhe=6048e5,t9=xf(function(r){r.setTime(r-r.getMilliseconds())},function(r,i){r.setTime(+r+i*mw)},function(r,i){return(i-r)/mw},function(r){return r.getUTCSeconds()}),qV=t9.range,phe=xf(function(r){r.setTime(r-r.getMilliseconds()-r.getSeconds()*mw)},function(r,i){r.setTime(+r+i*ny)},function(r,i){return(i-r)/ny},function(r){return r.getMinutes()}),Xme=phe.range,ghe=xf(function(r){r.setTime(r-r.getMilliseconds()-r.getSeconds()*mw-r.getMinutes()*ny)},function(r,i){r.setTime(+r+i*_w)},function(r,i){return(i-r)/_w},function(r){return r.getHours()}),Yme=ghe.range,P2=xf(function(r){r.setHours(0,0,0,0)},function(r,i){r.setDate(r.getDate()+i)},function(r,i){return(i-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*ny)/dhe},function(r){return r.getDate()-1}),$me=P2.range;function fy(r){return xf(function(i){i.setDate(i.getDate()-(i.getDay()+7-r)%7),i.setHours(0,0,0,0)},function(i,h){i.setDate(i.getDate()+h*7)},function(i,h){return(h-i-(h.getTimezoneOffset()-i.getTimezoneOffset())*ny)/vhe})}var xw=fy(0),B_=fy(1),yhe=fy(2),mhe=fy(3),ay=fy(4),_he=fy(5),xhe=fy(6),UV=xw.range,Kme=B_.range,Jme=yhe.range,Qme=mhe.range,e1e=ay.range,t1e=_he.range,r1e=xhe.range,bhe=xf(function(r){r.setDate(1),r.setHours(0,0,0,0)},function(r,i){r.setMonth(r.getMonth()+i)},function(r,i){return i.getMonth()-r.getMonth()+(i.getFullYear()-r.getFullYear())*12},function(r){return r.getMonth()}),i1e=bhe.range,f0=xf(function(r){r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,i){r.setFullYear(r.getFullYear()+i)},function(r,i){return i.getFullYear()-r.getFullYear()},function(r){return r.getFullYear()});f0.every=function(r){return!isFinite(r=Math.floor(r))||!(r>0)?null:xf(function(i){i.setFullYear(Math.floor(i.getFullYear()/r)*r),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,h){i.setFullYear(i.getFullYear()+h*r)})};var n1e=f0.range,whe=xf(function(r){r.setUTCSeconds(0,0)},function(r,i){r.setTime(+r+i*ny)},function(r,i){return(i-r)/ny},function(r){return r.getUTCMinutes()}),a1e=whe.range,The=xf(function(r){r.setUTCMinutes(0,0,0)},function(r,i){r.setTime(+r+i*_w)},function(r,i){return(i-r)/_w},function(r){return r.getUTCHours()}),o1e=The.range,R2=xf(function(r){r.setUTCHours(0,0,0,0)},function(r,i){r.setUTCDate(r.getUTCDate()+i)},function(r,i){return(i-r)/dhe},function(r){return r.getUTCDate()-1}),s1e=R2.range;function hy(r){return xf(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-r)%7),i.setUTCHours(0,0,0,0)},function(i,h){i.setUTCDate(i.getUTCDate()+h*7)},function(i,h){return(h-i)/vhe})}var bw=hy(0),O_=hy(1),Ahe=hy(2),She=hy(3),oy=hy(4),Mhe=hy(5),khe=hy(6),VV=bw.range,l1e=O_.range,u1e=Ahe.range,c1e=She.range,f1e=oy.range,h1e=Mhe.range,d1e=khe.range,Che=xf(function(r){r.setUTCDate(1),r.setUTCHours(0,0,0,0)},function(r,i){r.setUTCMonth(r.getUTCMonth()+i)},function(r,i){return i.getUTCMonth()-r.getUTCMonth()+(i.getUTCFullYear()-r.getUTCFullYear())*12},function(r){return r.getUTCMonth()}),v1e=Che.range,h0=xf(function(r){r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,i){r.setUTCFullYear(r.getUTCFullYear()+i)},function(r,i){return i.getUTCFullYear()-r.getUTCFullYear()},function(r){return r.getUTCFullYear()});h0.every=function(r){return!isFinite(r=Math.floor(r))||!(r>0)?null:xf(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/r)*r),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,h){i.setUTCFullYear(i.getUTCFullYear()+h*r)})};var p1e=h0.range;const g1e=Object.freeze(Object.defineProperty({__proto__:null,timeDay:P2,timeDays:$me,timeFriday:_he,timeFridays:t1e,timeHour:ghe,timeHours:Yme,timeInterval:xf,timeMillisecond:F_,timeMilliseconds:NV,timeMinute:phe,timeMinutes:Xme,timeMonday:B_,timeMondays:Kme,timeMonth:bhe,timeMonths:i1e,timeSaturday:xhe,timeSaturdays:r1e,timeSecond:t9,timeSeconds:qV,timeSunday:xw,timeSundays:UV,timeThursday:ay,timeThursdays:e1e,timeTuesday:yhe,timeTuesdays:Jme,timeWednesday:mhe,timeWednesdays:Qme,timeWeek:xw,timeWeeks:UV,timeYear:f0,timeYears:n1e,utcDay:R2,utcDays:s1e,utcFriday:Mhe,utcFridays:h1e,utcHour:The,utcHours:o1e,utcMillisecond:F_,utcMilliseconds:NV,utcMinute:whe,utcMinutes:a1e,utcMonday:O_,utcMondays:l1e,utcMonth:Che,utcMonths:v1e,utcSaturday:khe,utcSaturdays:d1e,utcSecond:t9,utcSeconds:qV,utcSunday:bw,utcSundays:VV,utcThursday:oy,utcThursdays:f1e,utcTuesday:Ahe,utcTuesdays:u1e,utcWednesday:She,utcWednesdays:c1e,utcWeek:bw,utcWeeks:VV,utcYear:h0,utcYears:p1e},Symbol.toStringTag,{value:"Module"}));function vA(r){if(0<=r.y&&r.y<100){var i=new Date(-1,r.m,r.d,r.H,r.M,r.S,r.L);return i.setFullYear(r.y),i}return new Date(r.y,r.m,r.d,r.H,r.M,r.S,r.L)}function pA(r){if(0<=r.y&&r.y<100){var i=new Date(Date.UTC(-1,r.m,r.d,r.H,r.M,r.S,r.L));return i.setUTCFullYear(r.y),i}return new Date(Date.UTC(r.y,r.m,r.d,r.H,r.M,r.S,r.L))}function K1(r,i,h){return{y:r,m:i,d:h,H:0,M:0,S:0,L:0}}function Ehe(r){var i=r.dateTime,h=r.date,c=r.time,a=r.periods,o=r.days,e=r.shortDays,t=r.months,n=r.shortMonths,s=J1(a),l=Q1(a),u=J1(o),f=Q1(o),d=J1(e),p=Q1(e),g=J1(t),w=Q1(t),v=J1(n),y=Q1(n),S={a:B,A:R,b:q,B:G,c:null,d:XV,e:XV,f:N1e,g:Y1e,G:K1e,H:F1e,I:B1e,j:O1e,L:Lhe,m:q1e,M:U1e,p:Z,q:$,Q:KV,s:JV,S:V1e,u:H1e,U:j1e,V:G1e,w:W1e,W:Z1e,x:null,X:null,y:X1e,Y:$1e,Z:J1e,"%":$V},A={a:ae,A:ne,b:oe,B:J,c:null,d:YV,e:YV,f:r_e,g:h_e,G:v_e,H:Q1e,I:e_e,j:t_e,L:Phe,m:i_e,M:n_e,p:he,q:re,Q:KV,s:JV,S:a_e,u:o_e,U:s_e,V:l_e,w:u_e,W:c_e,x:null,X:null,y:f_e,Y:d_e,Z:p_e,"%":$V},M={a:x,A:T,b:P,B:D,c:F,d:WV,e:WV,f:P1e,g:GV,G:jV,H:ZV,I:ZV,j:C1e,L:I1e,m:k1e,M:E1e,p:_,q:M1e,Q:D1e,s:z1e,S:L1e,u:b1e,U:w1e,V:T1e,w:x1e,W:A1e,x:N,X:O,y:GV,Y:jV,Z:S1e,"%":R1e};S.x=m(h,S),S.X=m(c,S),S.c=m(i,S),A.x=m(h,A),A.X=m(c,A),A.c=m(i,A);function m(j,Y){return function(te){var ee=[],Q=-1,ue=0,se=j.length,me,we,Pe;for(te instanceof Date||(te=new Date(+te));++Q<se;)j.charCodeAt(Q)===37&&(ee.push(j.slice(ue,Q)),(we=HV[me=j.charAt(++Q)])!=null?me=j.charAt(++Q):we=me==="e"?" ":"0",(Pe=Y[me])&&(me=Pe(te,we)),ee.push(me),ue=Q+1);return ee.push(j.slice(ue,Q)),ee.join("")}}function k(j,Y){return function(te){var ee=K1(1900,void 0,1),Q=b(ee,j,te+="",0),ue,se;if(Q!=te.length)return null;if("Q"in ee)return new Date(ee.Q);if("s"in ee)return new Date(ee.s*1e3+("L"in ee?ee.L:0));if(Y&&!("Z"in ee)&&(ee.Z=0),"p"in ee&&(ee.H=ee.H%12+ee.p*12),ee.m===void 0&&(ee.m="q"in ee?ee.q:0),"V"in ee){if(ee.V<1||ee.V>53)return null;"w"in ee||(ee.w=1),"Z"in ee?(ue=pA(K1(ee.y,0,1)),se=ue.getUTCDay(),ue=se>4||se===0?O_.ceil(ue):O_(ue),ue=R2.offset(ue,(ee.V-1)*7),ee.y=ue.getUTCFullYear(),ee.m=ue.getUTCMonth(),ee.d=ue.getUTCDate()+(ee.w+6)%7):(ue=vA(K1(ee.y,0,1)),se=ue.getDay(),ue=se>4||se===0?B_.ceil(ue):B_(ue),ue=P2.offset(ue,(ee.V-1)*7),ee.y=ue.getFullYear(),ee.m=ue.getMonth(),ee.d=ue.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),se="Z"in ee?pA(K1(ee.y,0,1)).getUTCDay():vA(K1(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(se+5)%7:ee.w+ee.U*7-(se+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,pA(ee)):vA(ee)}}function b(j,Y,te,ee){for(var Q=0,ue=Y.length,se=te.length,me,we;Q<ue;){if(ee>=se)return-1;if(me=Y.charCodeAt(Q++),me===37){if(me=Y.charAt(Q++),we=M[me in HV?Y.charAt(Q++):me],!we||(ee=we(j,te,ee))<0)return-1}else if(me!=te.charCodeAt(ee++))return-1}return ee}function _(j,Y,te){var ee=s.exec(Y.slice(te));return ee?(j.p=l[ee[0].toLowerCase()],te+ee[0].length):-1}function x(j,Y,te){var ee=d.exec(Y.slice(te));return ee?(j.w=p[ee[0].toLowerCase()],te+ee[0].length):-1}function T(j,Y,te){var ee=u.exec(Y.slice(te));return ee?(j.w=f[ee[0].toLowerCase()],te+ee[0].length):-1}function P(j,Y,te){var ee=v.exec(Y.slice(te));return ee?(j.m=y[ee[0].toLowerCase()],te+ee[0].length):-1}function D(j,Y,te){var ee=g.exec(Y.slice(te));return ee?(j.m=w[ee[0].toLowerCase()],te+ee[0].length):-1}function F(j,Y,te){return b(j,i,Y,te)}function N(j,Y,te){return b(j,h,Y,te)}function O(j,Y,te){return b(j,c,Y,te)}function B(j){return e[j.getDay()]}function R(j){return o[j.getDay()]}function q(j){return n[j.getMonth()]}function G(j){return t[j.getMonth()]}function Z(j){return a[+(j.getHours()>=12)]}function $(j){return 1+~~(j.getMonth()/3)}function ae(j){return e[j.getUTCDay()]}function ne(j){return o[j.getUTCDay()]}function oe(j){return n[j.getUTCMonth()]}function J(j){return t[j.getUTCMonth()]}function he(j){return a[+(j.getUTCHours()>=12)]}function re(j){return 1+~~(j.getUTCMonth()/3)}return{format:function(j){var Y=m(j+="",S);return Y.toString=function(){return j},Y},parse:function(j){var Y=k(j+="",!1);return Y.toString=function(){return j},Y},utcFormat:function(j){var Y=m(j+="",A);return Y.toString=function(){return j},Y},utcParse:function(j){var Y=k(j+="",!0);return Y.toString=function(){return j},Y}}}var HV={"-":"",_:" ",0:"0"},jf=/^\s*\d+/,y1e=/^%/,m1e=/[\\^$*+?|[\]().{}]/g;function _l(r,i,h){var c=r<0?"-":"",a=(c?-r:r)+"",o=a.length;return c+(o<h?new Array(h-o+1).join(i)+a:a)}function _1e(r){return r.replace(m1e,"\\$&")}function J1(r){return new RegExp("^(?:"+r.map(_1e).join("|")+")","i")}function Q1(r){for(var i={},h=-1,c=r.length;++h<c;)i[r[h].toLowerCase()]=h;return i}function x1e(r,i,h){var c=jf.exec(i.slice(h,h+1));return c?(r.w=+c[0],h+c[0].length):-1}function b1e(r,i,h){var c=jf.exec(i.slice(h,h+1));return c?(r.u=+c[0],h+c[0].length):-1}function w1e(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.U=+c[0],h+c[0].length):-1}function T1e(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.V=+c[0],h+c[0].length):-1}function A1e(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.W=+c[0],h+c[0].length):-1}function jV(r,i,h){var c=jf.exec(i.slice(h,h+4));return c?(r.y=+c[0],h+c[0].length):-1}function GV(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.y=+c[0]+(+c[0]>68?1900:2e3),h+c[0].length):-1}function S1e(r,i,h){var c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(h,h+6));return c?(r.Z=c[1]?0:-(c[2]+(c[3]||"00")),h+c[0].length):-1}function M1e(r,i,h){var c=jf.exec(i.slice(h,h+1));return c?(r.q=c[0]*3-3,h+c[0].length):-1}function k1e(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.m=c[0]-1,h+c[0].length):-1}function WV(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.d=+c[0],h+c[0].length):-1}function C1e(r,i,h){var c=jf.exec(i.slice(h,h+3));return c?(r.m=0,r.d=+c[0],h+c[0].length):-1}function ZV(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.H=+c[0],h+c[0].length):-1}function E1e(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.M=+c[0],h+c[0].length):-1}function L1e(r,i,h){var c=jf.exec(i.slice(h,h+2));return c?(r.S=+c[0],h+c[0].length):-1}function I1e(r,i,h){var c=jf.exec(i.slice(h,h+3));return c?(r.L=+c[0],h+c[0].length):-1}function P1e(r,i,h){var c=jf.exec(i.slice(h,h+6));return c?(r.L=Math.floor(c[0]/1e3),h+c[0].length):-1}function R1e(r,i,h){var c=y1e.exec(i.slice(h,h+1));return c?h+c[0].length:-1}function D1e(r,i,h){var c=jf.exec(i.slice(h));return c?(r.Q=+c[0],h+c[0].length):-1}function z1e(r,i,h){var c=jf.exec(i.slice(h));return c?(r.s=+c[0],h+c[0].length):-1}function XV(r,i){return _l(r.getDate(),i,2)}function F1e(r,i){return _l(r.getHours(),i,2)}function B1e(r,i){return _l(r.getHours()%12||12,i,2)}function O1e(r,i){return _l(1+P2.count(f0(r),r),i,3)}function Lhe(r,i){return _l(r.getMilliseconds(),i,3)}function N1e(r,i){return Lhe(r,i)+"000"}function q1e(r,i){return _l(r.getMonth()+1,i,2)}function U1e(r,i){return _l(r.getMinutes(),i,2)}function V1e(r,i){return _l(r.getSeconds(),i,2)}function H1e(r){var i=r.getDay();return i===0?7:i}function j1e(r,i){return _l(xw.count(f0(r)-1,r),i,2)}function Ihe(r){var i=r.getDay();return i>=4||i===0?ay(r):ay.ceil(r)}function G1e(r,i){return r=Ihe(r),_l(ay.count(f0(r),r)+(f0(r).getDay()===4),i,2)}function W1e(r){return r.getDay()}function Z1e(r,i){return _l(B_.count(f0(r)-1,r),i,2)}function X1e(r,i){return _l(r.getFullYear()%100,i,2)}function Y1e(r,i){return r=Ihe(r),_l(r.getFullYear()%100,i,2)}function $1e(r,i){return _l(r.getFullYear()%1e4,i,4)}function K1e(r,i){var h=r.getDay();return r=h>=4||h===0?ay(r):ay.ceil(r),_l(r.getFullYear()%1e4,i,4)}function J1e(r){var i=r.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+_l(i/60|0,"0",2)+_l(i%60,"0",2)}function YV(r,i){return _l(r.getUTCDate(),i,2)}function Q1e(r,i){return _l(r.getUTCHours(),i,2)}function e_e(r,i){return _l(r.getUTCHours()%12||12,i,2)}function t_e(r,i){return _l(1+R2.count(h0(r),r),i,3)}function Phe(r,i){return _l(r.getUTCMilliseconds(),i,3)}function r_e(r,i){return Phe(r,i)+"000"}function i_e(r,i){return _l(r.getUTCMonth()+1,i,2)}function n_e(r,i){return _l(r.getUTCMinutes(),i,2)}function a_e(r,i){return _l(r.getUTCSeconds(),i,2)}function o_e(r){var i=r.getUTCDay();return i===0?7:i}function s_e(r,i){return _l(bw.count(h0(r)-1,r),i,2)}function Rhe(r){var i=r.getUTCDay();return i>=4||i===0?oy(r):oy.ceil(r)}function l_e(r,i){return r=Rhe(r),_l(oy.count(h0(r),r)+(h0(r).getUTCDay()===4),i,2)}function u_e(r){return r.getUTCDay()}function c_e(r,i){return _l(O_.count(h0(r)-1,r),i,2)}function f_e(r,i){return _l(r.getUTCFullYear()%100,i,2)}function h_e(r,i){return r=Rhe(r),_l(r.getUTCFullYear()%100,i,2)}function d_e(r,i){return _l(r.getUTCFullYear()%1e4,i,4)}function v_e(r,i){var h=r.getUTCDay();return r=h>=4||h===0?oy(r):oy.ceil(r),_l(r.getUTCFullYear()%1e4,i,4)}function p_e(){return"+0000"}function $V(){return"%"}function KV(r){return+r}function JV(r){return Math.floor(+r/1e3)}var om,Dhe,zhe,hN,dN;Fhe({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 Fhe(r){return om=Ehe(r),Dhe=om.format,zhe=om.parse,hN=om.utcFormat,dN=om.utcParse,om}var Bhe="%Y-%m-%dT%H:%M:%S.%LZ";function g_e(r){return r.toISOString()}var y_e=Date.prototype.toISOString?g_e:hN(Bhe);function m_e(r){var i=new Date(r);return isNaN(i)?null:i}var __e=+new Date("2000-01-01T00:00:00.000Z")?m_e:dN(Bhe);const x_e=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:y_e,isoParse:__e,get timeFormat(){return Dhe},timeFormatDefaultLocale:Fhe,timeFormatLocale:Ehe,get timeParse(){return zhe},get utcFormat(){return hN},get utcParse(){return dN}},Symbol.toStringTag,{value:"Module"})),N_=Ov(x_e);function b_e(r){return Math.abs(r=Math.round(r))>=1e21?r.toLocaleString("en").replace(/,/g,""):r.toString(10)}function ww(r,i){if((h=(r=i?r.toExponential(i-1):r.toExponential()).indexOf("e"))<0)return null;var h,c=r.slice(0,h);return[c.length>1?c[0]+c.slice(2):c,+r.slice(h+1)]}function wm(r){return r=ww(Math.abs(r)),r?r[1]:NaN}function w_e(r,i){return function(h,c){for(var a=h.length,o=[],e=0,t=r[0],n=0;a>0&&t>0&&(n+t+1>c&&(t=Math.max(1,c-n)),o.push(h.substring(a-=t,a+t)),!((n+=t+1)>c));)t=r[e=(e+1)%r.length];return o.reverse().join(i)}}function T_e(r){return function(i){return i.replace(/[0-9]/g,function(h){return r[+h]})}}var A_e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tw(r){if(!(i=A_e.exec(r)))throw new Error("invalid format: "+r);var i;return new D2({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}Tw.prototype=D2.prototype;function D2(r){this.fill=r.fill===void 0?" ":r.fill+"",this.align=r.align===void 0?">":r.align+"",this.sign=r.sign===void 0?"-":r.sign+"",this.symbol=r.symbol===void 0?"":r.symbol+"",this.zero=!!r.zero,this.width=r.width===void 0?void 0:+r.width,this.comma=!!r.comma,this.precision=r.precision===void 0?void 0:+r.precision,this.trim=!!r.trim,this.type=r.type===void 0?"":r.type+""}D2.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 S_e(r){e:for(var i=r.length,h=1,c=-1,a;h<i;++h)switch(r[h]){case".":c=a=h;break;case"0":c===0&&(c=h),a=h;break;default:if(!+r[h])break e;c>0&&(c=0);break}return c>0?r.slice(0,c)+r.slice(a+1):r}var Ohe;function M_e(r,i){var h=ww(r,i);if(!h)return r+"";var c=h[0],a=h[1],o=a-(Ohe=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,e=c.length;return o===e?c:o>e?c+new Array(o-e+1).join("0"):o>0?c.slice(0,o)+"."+c.slice(o):"0."+new Array(1-o).join("0")+ww(r,Math.max(0,i+o-1))[0]}function QV(r,i){var h=ww(r,i);if(!h)return r+"";var c=h[0],a=h[1];return a<0?"0."+new Array(-a).join("0")+c:c.length>a+1?c.slice(0,a+1)+"."+c.slice(a+1):c+new Array(a-c.length+2).join("0")}const eH={"%":function(r,i){return(r*100).toFixed(i)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:b_e,e:function(r,i){return r.toExponential(i)},f:function(r,i){return r.toFixed(i)},g:function(r,i){return r.toPrecision(i)},o:function(r){return Math.round(r).toString(8)},p:function(r,i){return QV(r*100,i)},r:QV,s:M_e,X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}};function tH(r){return r}var rH=Array.prototype.map,iH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Nhe(r){var i=r.grouping===void 0||r.thousands===void 0?tH:w_e(rH.call(r.grouping,Number),r.thousands+""),h=r.currency===void 0?"":r.currency[0]+"",c=r.currency===void 0?"":r.currency[1]+"",a=r.decimal===void 0?".":r.decimal+"",o=r.numerals===void 0?tH:T_e(rH.call(r.numerals,String)),e=r.percent===void 0?"%":r.percent+"",t=r.minus===void 0?"-":r.minus+"",n=r.nan===void 0?"NaN":r.nan+"";function s(u){u=Tw(u);var f=u.fill,d=u.align,p=u.sign,g=u.symbol,w=u.zero,v=u.width,y=u.comma,S=u.precision,A=u.trim,M=u.type;M==="n"?(y=!0,M="g"):eH[M]||(S===void 0&&(S=12),A=!0,M="g"),(w||f==="0"&&d==="=")&&(w=!0,f="0",d="=");var m=g==="$"?h:g==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",k=g==="$"?c:/[%p]/.test(M)?e:"",b=eH[M],_=/[defgprs%]/.test(M);S=S===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function x(T){var P=m,D=k,F,N,O;if(M==="c")D=b(T)+D,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?n:b(Math.abs(T),S),A&&(T=S_e(T)),B&&+T==0&&p!=="+"&&(B=!1),P=(B?p==="("?p:t:p==="-"||p==="("?"":p)+P,D=(M==="s"?iH[8+Ohe/3]:"")+D+(B&&p==="("?")":""),_){for(F=-1,N=T.length;++F<N;)if(O=T.charCodeAt(F),48>O||O>57){D=(O===46?a+T.slice(F+1):T.slice(F))+D,T=T.slice(0,F);break}}}y&&!w&&(T=i(T,1/0));var R=P.length+T.length+D.length,q=R<v?new Array(v-R+1).join(f):"";switch(y&&w&&(T=i(q+T,q.length?v-D.length:1/0),q=""),d){case"<":T=P+T+D+q;break;case"=":T=P+q+T+D;break;case"^":T=q.slice(0,R=q.length>>1)+P+T+D+q.slice(R);break;default:T=q+P+T+D;break}return o(T)}return x.toString=function(){return u+""},x}function l(u,f){var d=s((u=Tw(u),u.type="f",u)),p=Math.max(-8,Math.min(8,Math.floor(wm(f)/3)))*3,g=Math.pow(10,-p),w=iH[8+p/3];return function(v){return d(g*v)+w}}return{format:s,formatPrefix:l}}var _b,qhe,Uhe;Vhe({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Vhe(r){return _b=Nhe(r),qhe=_b.format,Uhe=_b.formatPrefix,_b}function k_e(r){return Math.max(0,-wm(Math.abs(r)))}function C_e(r,i){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wm(i)/3)))*3-wm(Math.abs(r)))}function E_e(r,i){return r=Math.abs(r),i=Math.abs(i)-r,Math.max(0,wm(i)-wm(r))+1}const L_e=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:D2,get format(){return qhe},formatDefaultLocale:Vhe,formatLocale:Nhe,get formatPrefix(){return Uhe},formatSpecifier:Tw,precisionFixed:k_e,precisionPrefix:C_e,precisionRound:E_e},Symbol.toStringTag,{value:"Module"})),Hhe=Ov(L_e);var gA,nH;function I_e(){return nH||(nH=1,gA=function(r){for(var i=r.length,h,c=0;c<i;c++)if(h=r.charCodeAt(c),(h<9||h>13)&&h!==32&&h!==133&&h!==160&&h!==5760&&h!==6158&&(h<8192||h>8205)&&h!==8232&&h!==8233&&h!==8239&&h!==8287&&h!==8288&&h!==12288&&h!==65279)return!1;return!0}),gA}var yA,aH;function La(){if(aH)return yA;aH=1;var r=I_e();return yA=function(i){var h=typeof i;if(h==="string"){var c=i;if(i=+i,i===0&&r(c))return!1}else if(h!=="number")return!1;return i-i<1},yA}var mA,oH;function mo(){return oH||(oH=1,mA={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"}),mA}var ep={},ym="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p_=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var xb=0;xb<ym.length;xb++)p_[ym.charCodeAt(xb)]=xb;var P_e=function(r){var i=new Uint8Array(r),h,c=i.length,a="";for(h=0;h<c;h+=3)a+=ym[i[h]>>2],a+=ym[(i[h]&3)<<4|i[h+1]>>4],a+=ym[(i[h+1]&15)<<2|i[h+2]>>6],a+=ym[i[h+2]&63];return c%3===2?a=a.substring(0,a.length-1)+"=":c%3===1&&(a=a.substring(0,a.length-2)+"=="),a},R_e=function(r){var i=r.length*.75,h=r.length,c,a=0,o,e,t,n;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);var s=new ArrayBuffer(i),l=new Uint8Array(s);for(c=0;c<h;c+=4)o=p_[r.charCodeAt(c)],e=p_[r.charCodeAt(c+1)],t=p_[r.charCodeAt(c+2)],n=p_[r.charCodeAt(c+3)],l[a++]=o<<2|e>>4,l[a++]=(e&15)<<4|t>>2,l[a++]=(t&3)<<6|n&63;return s};const D_e=Object.freeze(Object.defineProperty({__proto__:null,decode:R_e,encode:P_e},Symbol.toStringTag,{value:"Module"})),jhe=Ov(D_e);var _A,sH;function d0(){return sH||(sH=1,_A=function(i){return window&&window.process&&window.process.versions?Object.prototype.toString.call(i)==="[object Object]":Object.prototype.toString.call(i)==="[object Object]"&&Object.getPrototypeOf(i).hasOwnProperty("hasOwnProperty")}),_A}var lH;function Wh(){if(lH)return ep;lH=1;var r=jhe.decode,i=d0(),h=Array.isArray,c=ArrayBuffer,a=DataView;function o(f){return c.isView(f)&&!(f instanceof a)}ep.isTypedArray=o;function e(f){return h(f)||o(f)}ep.isArrayOrTypedArray=e;function t(f){return!e(f[0])}ep.isArray1D=t,ep.ensureArray=function(f,d){return h(f)||(f=[]),f.length=d,f};var n={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};n.uint8c=n.u1c,n.uint8=n.u1,n.int8=n.i1,n.uint16=n.u2,n.int16=n.i2,n.uint32=n.u4,n.int32=n.i4,n.float32=n.f4,n.float64=n.f8;function s(f){return f.constructor===ArrayBuffer}ep.isArrayBuffer=s,ep.decodeTypedArraySpec=function(f){var d=[],p=l(f),g=p.dtype,w=n[g];if(!w)throw new Error('Error in dtype: "'+g+'"');var v=w.BYTES_PER_ELEMENT,y=p.bdata;s(y)||(y=r(y));var S=p.shape===void 0?[y.byteLength/v]:(""+p.shape).split(",");S.reverse();var A=S.length,M,m,k=+S[0],b=v*k,_=0;if(A===1)d=new w(y);else if(A===2)for(M=+S[1],m=0;m<M;m++)d[m]=new w(y,_,k),_+=b;else if(A===3){M=+S[1];for(var x=+S[2],T=0;T<x;T++)for(d[T]=[],m=0;m<M;m++)d[T][m]=new w(y,_,k),_+=b}else throw new Error("ndim: "+A+'is not supported with the shape:"'+p.shape+'"');return d.bdata=p.bdata,d.dtype=p.dtype,d.shape=S.reverse().join(","),f._inputArray=d,d},ep.isTypedArraySpec=function(f){return i(f)&&f.hasOwnProperty("dtype")&&typeof f.dtype=="string"&&f.hasOwnProperty("bdata")&&(typeof f.bdata=="string"||s(f.bdata))&&(f.shape===void 0||f.hasOwnProperty("shape")&&(typeof f.shape=="string"||typeof f.shape=="number"))};function l(f){return{bdata:f.bdata,dtype:f.dtype,shape:f.shape}}ep.concat=function(){var f=[],d=!0,p=0,g,w,v,y,S,A,M,m;for(v=0;v<arguments.length;v++)y=arguments[v],A=y.length,A&&(w?f.push(y):(w=y,S=A),h(y)?g=!1:(d=!1,p?g!==y.constructor&&(g=!1):g=y.constructor),p+=A);if(!p)return[];if(!f.length)return w;if(d)return w.concat.apply(w,f);if(g){for(M=new g(p),M.set(w),v=0;v<f.length;v++)y=f[v],M.set(y,S),S+=y.length;return M}for(M=new Array(p),m=0;m<w.length;m++)M[m]=w[m];for(v=0;v<f.length;v++){for(y=f[v],m=0;m<y.length;m++)M[S+m]=y[m];S+=m}return M},ep.maxRowLength=function(f){return u(f,Math.max,0)},ep.minRowLength=function(f){return u(f,Math.min,1/0)};function u(f,d,p){if(e(f))if(e(f[0])){for(var g=p,w=0;w<f.length;w++)g=d(g,f[w].length);return g}else return f.length;return 0}return ep}var xA,uH;function z2(){if(uH)return xA;uH=1;var r=La(),i=Wh().isArrayOrTypedArray;xA=function(u,f){if(r(f))f=String(f);else if(typeof f!="string"||f.substr(f.length-4)==="[-1]")throw"bad property string";var d=f.split("."),p,g,w,v;for(v=0;v<d.length;v++)if(String(d[v]).slice(0,2)==="__")throw"bad property string";for(v=0;v<d.length;){if(p=String(d[v]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),p){if(p[1])d[v]=p[1];else if(v===0)d.splice(0,1);else throw"bad property string";for(g=p[2].substr(1,p[2].length-2).split("]["),w=0;w<g.length;w++)v++,d.splice(v,0,Number(g[w]))}v++}return typeof u!="object"?s(u,f,d):{set:o(u,d,f),get:h(u,d),astr:f,parts:d,obj:u}};function h(l,u){return function(){var f=l,d,p,g,w,v;for(w=0;w<u.length-1;w++){if(d=u[w],d===-1){for(p=!0,g=[],v=0;v<f.length;v++)g[v]=h(f[v],u.slice(w+1))(),g[v]!==g[0]&&(p=!1);return p?g[0]:g}if(typeof d=="number"&&!i(f)||(f=f[d],typeof f!="object"||f===null))return}if(!(typeof f!="object"||f===null)&&(g=f[u[w]],g!==null))return g}}var c=/(^|\.)args\[/;function a(l,u){return l===void 0||l===null&&!u.match(c)}function o(l,u,f){return function(d){var p=l,g="",w=a(d,f),v,y;for(y=0;y<u.length-1;y++){if(v=u[y],typeof v=="number"&&!i(p))throw"array index but container is not an array";if(v===-1){if(w=!t(p,u.slice(y+1),d,f),w)break;return}if(!n(p,v,u[y+1],w))break;if(p=p[v],typeof p!="object"||p===null)throw"container is not an object";g=e(g,v)}if(w){if(y===u.length-1&&(delete p[u[y]],Array.isArray(p)&&+u[y]===p.length-1))for(;p.length&&p[p.length-1]===void 0;)p.pop()}else p[u[y]]=d}}function e(l,u){var f=u;return r(u)?f="["+u+"]":l&&(f="."+u),l+f}function t(l,u,f,d){var p=i(f),g=!0,w=f,v=d.replace("-1",0),y=p?!1:a(f,v),S=u[0],A;for(A=0;A<l.length;A++)v=d.replace("-1",A),p&&(w=f[A%f.length],y=a(w,v)),y&&(g=!1),n(l,A,S,y)&&o(l[A],u,d.replace("-1",A))(w);return g}function n(l,u,f,d){if(l[u]===void 0){if(d)return!1;typeof f=="number"?l[u]=[]:l[u]={}}return!0}function s(l,u,f){return{set:function(){throw"bad container"},get:function(){},astr:u,parts:f,obj:l}}return xA}var bA,cH;function z_e(){if(cH)return bA;cH=1;var r=z2(),i=/^\w*$/,h=0,c=1,a=2,o=3,e=4;return bA=function(n,s,l,u){l=l||"name",u=u||"value";var f,d,p,g={};s&&s.length?(p=r(n,s),d=p.get()):d=n,s=s||"";var w={};if(d)for(f=0;f<d.length;f++)w[d[f][l]]=f;var v=i.test(u),y={set:function(S,A){var M=A===null?e:h;if(!d){if(!p||M===e)return;d=[],p.set(d)}var m=w[S];if(m===void 0){if(M===e)return;M=M|o,m=d.length,w[S]=m}else A!==(v?d[m][u]:r(d[m],u).get())&&(M=M|a);var k=d[m]=d[m]||{};return k[l]=S,v?k[u]=A:r(k,u).set(A),A!==null&&(M=M&~e),g[m]=g[m]|M,y},get:function(S){if(d){var A=w[S];if(A!==void 0)return v?d[A][u]:r(d[A],u).get()}},rename:function(S,A){var M=w[S];return M===void 0||(g[M]=g[M]|c,w[A]=M,delete w[S],d[M][l]=A),y},remove:function(S){var A=w[S];if(A===void 0)return y;var M=d[A];if(Object.keys(M).length>2)return g[A]=g[A]|a,y.set(S,null);if(v){for(f=A;f<d.length;f++)g[f]=g[f]|o;for(f=A;f<d.length;f++)w[d[f][l]]--;d.splice(A,1),delete w[S]}else r(M,u).set(null),g[A]=g[A]|a|e;return y},constructUpdate:function(){for(var S,A,M={},m=Object.keys(g),k=0;k<m.length;k++)A=m[k],S=s+"["+A+"]",d[A]?(g[A]&c&&(M[S+"."+l]=d[A][l]),g[A]&a&&(v?M[S+"."+u]=g[A]&e?null:d[A][u]:M[S+"."+u]=g[A]&e?null:r(d[A],u).get())):M[S]=null;return M}};return y},bA}var wA,fH;function F_e(){if(fH)return wA;fH=1;var r=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;return wA=function(h,c){for(;c;){var a=h.match(r);if(a)h=a[1];else if(h.match(i))h="";else throw new Error("bad relativeAttr call:"+[h,c]);if(c.charAt(0)==="^")c=c.slice(1);else break}return h&&c.charAt(0)!=="["?h+"."+c:h+c},wA}var TA,hH;function vN(){if(hH)return TA;hH=1;var r=La();return TA=function(h,c){if(h>0)return Math.log(h)/Math.LN10;var a=Math.log(Math.min(c[0],c[1]))/Math.LN10;return r(a)||(a=Math.log(Math.max(c[0],c[1]))/Math.LN10-6),a},TA}var AA,dH;function B_e(){if(dH)return AA;dH=1;var r=Wh().isArrayOrTypedArray,i=d0();return AA=function h(c,a){for(var o in a){var e=a[o],t=c[o];if(t!==e)if(o.charAt(0)==="_"||typeof e=="function"){if(o in c)continue;c[o]=e}else if(r(e)&&r(t)&&i(e[0])){if(o==="customdata"||o==="ids")continue;for(var n=Math.min(e.length,t.length),s=0;s<n;s++)t[s]!==e[s]&&i(e[s])&&i(t[s])&&h(t[s],e[s])}else i(e)&&i(t)&&(h(t,e),Object.keys(t).length||delete c[o])}},AA}var SA,vH;function Y_(){if(vH)return SA;vH=1;function r(h,c){var a=h%c;return a<0?a+c:a}function i(h,c){return Math.abs(h)>c/2?h-Math.round(h/c)*c:h}return SA={mod:r,modHalf:i},SA}var MA={},aw={exports:{}},O_e=aw.exports,pH;function bf(){return pH||(pH=1,(function(r,i){(function(h,c){r.exports=c()})(O_e,(function(){function h(re){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},h(re)}var c=/^\s+/,a=/\s+$/;function o(re,j){if(re=re||"",j=j||{},re instanceof o)return re;if(!(this instanceof o))return new o(re,j);var Y=e(re);this._originalInput=re,this._r=Y.r,this._g=Y.g,this._b=Y.b,this._a=Y.a,this._roundA=Math.round(100*this._a)/100,this._format=j.format||Y.format,this._gradientType=j.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Y.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),Y,te,ee,Q,ue,se;return Y=j.r/255,te=j.g/255,ee=j.b/255,Y<=.03928?Q=Y/12.92:Q=Math.pow((Y+.055)/1.055,2.4),te<=.03928?ue=te/12.92:ue=Math.pow((te+.055)/1.055,2.4),ee<=.03928?se=ee/12.92:se=Math.pow((ee+.055)/1.055,2.4),.2126*Q+.7152*ue+.0722*se},setAlpha:function(j){return this._a=F(j),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var j=l(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=l(this._r,this._g,this._b),Y=Math.round(j.h*360),te=Math.round(j.s*100),ee=Math.round(j.v*100);return this._a==1?"hsv("+Y+", "+te+"%, "+ee+"%)":"hsva("+Y+", "+te+"%, "+ee+"%, "+this._roundA+")"},toHsl:function(){var j=n(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=n(this._r,this._g,this._b),Y=Math.round(j.h*360),te=Math.round(j.s*100),ee=Math.round(j.l*100);return this._a==1?"hsl("+Y+", "+te+"%, "+ee+"%)":"hsla("+Y+", "+te+"%, "+ee+"%, "+this._roundA+")"},toHex:function(j){return f(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return d(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(N(this._r,255)*100)+"%",g:Math.round(N(this._g,255)*100)+"%",b:Math.round(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(N(this._r,255)*100)+"%, "+Math.round(N(this._g,255)*100)+"%, "+Math.round(N(this._b,255)*100)+"%)":"rgba("+Math.round(N(this._r,255)*100)+"%, "+Math.round(N(this._g,255)*100)+"%, "+Math.round(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[f(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var Y="#"+p(this._r,this._g,this._b,this._a),te=Y,ee=this._gradientType?"GradientType = 1, ":"";if(j){var Q=o(j);te="#"+p(Q._r,Q._g,Q._b,Q._a)}return"progid:DXImageTransform.Microsoft.gradient("+ee+"startColorstr="+Y+",endColorstr="+te+")"},toString:function(j){var Y=!!j;j=j||this._format;var te=!1,ee=this._a<1&&this._a>=0,Q=!Y&&ee&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return Q?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(te=this.toRgbString()),j==="prgb"&&(te=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(te=this.toHexString()),j==="hex3"&&(te=this.toHexString(!0)),j==="hex4"&&(te=this.toHex8String(!0)),j==="hex8"&&(te=this.toHex8String()),j==="name"&&(te=this.toName()),j==="hsl"&&(te=this.toHslString()),j==="hsv"&&(te=this.toHsvString()),te||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(j,Y){var te=j.apply(null,[this].concat([].slice.call(Y)));return this._r=te._r,this._g=te._g,this._b=te._b,this.setAlpha(te._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(j,Y){return j.apply(null,[this].concat([].slice.call(Y)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(k,[3])},tetrad:function(){return this._applyCombination(k,[4])}},o.fromRatio=function(re,j){if(h(re)=="object"){var Y={};for(var te in re)re.hasOwnProperty(te)&&(te==="a"?Y[te]=re[te]:Y[te]=Z(re[te]));re=Y}return o(re,j)};function e(re){var j={r:0,g:0,b:0},Y=1,te=null,ee=null,Q=null,ue=!1,se=!1;return typeof re=="string"&&(re=J(re)),h(re)=="object"&&(oe(re.r)&&oe(re.g)&&oe(re.b)?(j=t(re.r,re.g,re.b),ue=!0,se=String(re.r).substr(-1)==="%"?"prgb":"rgb"):oe(re.h)&&oe(re.s)&&oe(re.v)?(te=Z(re.s),ee=Z(re.v),j=u(re.h,te,ee),ue=!0,se="hsv"):oe(re.h)&&oe(re.s)&&oe(re.l)&&(te=Z(re.s),Q=Z(re.l),j=s(re.h,te,Q),ue=!0,se="hsl"),re.hasOwnProperty("a")&&(Y=re.a)),Y=F(Y),{ok:ue,format:re.format||se,r:Math.min(255,Math.max(j.r,0)),g:Math.min(255,Math.max(j.g,0)),b:Math.min(255,Math.max(j.b,0)),a:Y}}function t(re,j,Y){return{r:N(re,255)*255,g:N(j,255)*255,b:N(Y,255)*255}}function n(re,j,Y){re=N(re,255),j=N(j,255),Y=N(Y,255);var te=Math.max(re,j,Y),ee=Math.min(re,j,Y),Q,ue,se=(te+ee)/2;if(te==ee)Q=ue=0;else{var me=te-ee;switch(ue=se>.5?me/(2-te-ee):me/(te+ee),te){case re:Q=(j-Y)/me+(j<Y?6:0);break;case j:Q=(Y-re)/me+2;break;case Y:Q=(re-j)/me+4;break}Q/=6}return{h:Q,s:ue,l:se}}function s(re,j,Y){var te,ee,Q;re=N(re,360),j=N(j,100),Y=N(Y,100);function ue(we,Pe,Ie){return Ie<0&&(Ie+=1),Ie>1&&(Ie-=1),Ie<1/6?we+(Pe-we)*6*Ie:Ie<1/2?Pe:Ie<2/3?we+(Pe-we)*(2/3-Ie)*6:we}if(j===0)te=ee=Q=Y;else{var se=Y<.5?Y*(1+j):Y+j-Y*j,me=2*Y-se;te=ue(me,se,re+1/3),ee=ue(me,se,re),Q=ue(me,se,re-1/3)}return{r:te*255,g:ee*255,b:Q*255}}function l(re,j,Y){re=N(re,255),j=N(j,255),Y=N(Y,255);var te=Math.max(re,j,Y),ee=Math.min(re,j,Y),Q,ue,se=te,me=te-ee;if(ue=te===0?0:me/te,te==ee)Q=0;else{switch(te){case re:Q=(j-Y)/me+(j<Y?6:0);break;case j:Q=(Y-re)/me+2;break;case Y:Q=(re-j)/me+4;break}Q/=6}return{h:Q,s:ue,v:se}}function u(re,j,Y){re=N(re,360)*6,j=N(j,100),Y=N(Y,100);var te=Math.floor(re),ee=re-te,Q=Y*(1-j),ue=Y*(1-ee*j),se=Y*(1-(1-ee)*j),me=te%6,we=[Y,ue,Q,Q,se,Y][me],Pe=[se,Y,Y,ue,Q,Q][me],Ie=[Q,Q,se,Y,Y,ue][me];return{r:we*255,g:Pe*255,b:Ie*255}}function f(re,j,Y,te){var ee=[G(Math.round(re).toString(16)),G(Math.round(j).toString(16)),G(Math.round(Y).toString(16))];return te&&ee[0].charAt(0)==ee[0].charAt(1)&&ee[1].charAt(0)==ee[1].charAt(1)&&ee[2].charAt(0)==ee[2].charAt(1)?ee[0].charAt(0)+ee[1].charAt(0)+ee[2].charAt(0):ee.join("")}function d(re,j,Y,te,ee){var Q=[G(Math.round(re).toString(16)),G(Math.round(j).toString(16)),G(Math.round(Y).toString(16)),G($(te))];return ee&&Q[0].charAt(0)==Q[0].charAt(1)&&Q[1].charAt(0)==Q[1].charAt(1)&&Q[2].charAt(0)==Q[2].charAt(1)&&Q[3].charAt(0)==Q[3].charAt(1)?Q[0].charAt(0)+Q[1].charAt(0)+Q[2].charAt(0)+Q[3].charAt(0):Q.join("")}function p(re,j,Y,te){var ee=[G($(te)),G(Math.round(re).toString(16)),G(Math.round(j).toString(16)),G(Math.round(Y).toString(16))];return ee.join("")}o.equals=function(re,j){return!re||!j?!1:o(re).toRgbString()==o(j).toRgbString()},o.random=function(){return o.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function g(re,j){j=j===0?0:j||10;var Y=o(re).toHsl();return Y.s-=j/100,Y.s=O(Y.s),o(Y)}function w(re,j){j=j===0?0:j||10;var Y=o(re).toHsl();return Y.s+=j/100,Y.s=O(Y.s),o(Y)}function v(re){return o(re).desaturate(100)}function y(re,j){j=j===0?0:j||10;var Y=o(re).toHsl();return Y.l+=j/100,Y.l=O(Y.l),o(Y)}function S(re,j){j=j===0?0:j||10;var Y=o(re).toRgb();return Y.r=Math.max(0,Math.min(255,Y.r-Math.round(255*-(j/100)))),Y.g=Math.max(0,Math.min(255,Y.g-Math.round(255*-(j/100)))),Y.b=Math.max(0,Math.min(255,Y.b-Math.round(255*-(j/100)))),o(Y)}function A(re,j){j=j===0?0:j||10;var Y=o(re).toHsl();return Y.l-=j/100,Y.l=O(Y.l),o(Y)}function M(re,j){var Y=o(re).toHsl(),te=(Y.h+j)%360;return Y.h=te<0?360+te:te,o(Y)}function m(re){var j=o(re).toHsl();return j.h=(j.h+180)%360,o(j)}function k(re,j){if(isNaN(j)||j<=0)throw new Error("Argument to polyad must be a positive number");for(var Y=o(re).toHsl(),te=[o(re)],ee=360/j,Q=1;Q<j;Q++)te.push(o({h:(Y.h+Q*ee)%360,s:Y.s,l:Y.l}));return te}function b(re){var j=o(re).toHsl(),Y=j.h;return[o(re),o({h:(Y+72)%360,s:j.s,l:j.l}),o({h:(Y+216)%360,s:j.s,l:j.l})]}function _(re,j,Y){j=j||6,Y=Y||30;var te=o(re).toHsl(),ee=360/Y,Q=[o(re)];for(te.h=(te.h-(ee*j>>1)+720)%360;--j;)te.h=(te.h+ee)%360,Q.push(o(te));return Q}function x(re,j){j=j||6;for(var Y=o(re).toHsv(),te=Y.h,ee=Y.s,Q=Y.v,ue=[],se=1/j;j--;)ue.push(o({h:te,s:ee,v:Q})),Q=(Q+se)%1;return ue}o.mix=function(re,j,Y){Y=Y===0?0:Y||50;var te=o(re).toRgb(),ee=o(j).toRgb(),Q=Y/100,ue={r:(ee.r-te.r)*Q+te.r,g:(ee.g-te.g)*Q+te.g,b:(ee.b-te.b)*Q+te.b,a:(ee.a-te.a)*Q+te.a};return o(ue)},o.readability=function(re,j){var Y=o(re),te=o(j);return(Math.max(Y.getLuminance(),te.getLuminance())+.05)/(Math.min(Y.getLuminance(),te.getLuminance())+.05)},o.isReadable=function(re,j,Y){var te=o.readability(re,j),ee,Q;switch(Q=!1,ee=he(Y),ee.level+ee.size){case"AAsmall":case"AAAlarge":Q=te>=4.5;break;case"AAlarge":Q=te>=3;break;case"AAAsmall":Q=te>=7;break}return Q},o.mostReadable=function(re,j,Y){var te=null,ee=0,Q,ue,se,me;Y=Y||{},ue=Y.includeFallbackColors,se=Y.level,me=Y.size;for(var we=0;we<j.length;we++)Q=o.readability(re,j[we]),Q>ee&&(ee=Q,te=o(j[we]));return o.isReadable(re,te,{level:se,size:me})||!ue?te:(Y.includeFallbackColors=!1,o.mostReadable(re,["#fff","#000"],Y))};var T=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=o.hexNames=D(T);function D(re){var j={};for(var Y in re)re.hasOwnProperty(Y)&&(j[re[Y]]=Y);return j}function F(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function N(re,j){R(re)&&(re="100%");var Y=q(re);return re=Math.min(j,Math.max(0,parseFloat(re))),Y&&(re=parseInt(re*j,10)/100),Math.abs(re-j)<1e-6?1:re%j/parseFloat(j)}function O(re){return Math.min(1,Math.max(0,re))}function B(re){return parseInt(re,16)}function R(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function q(re){return typeof re=="string"&&re.indexOf("%")!=-1}function G(re){return re.length==1?"0"+re:""+re}function Z(re){return re<=1&&(re=re*100+"%"),re}function $(re){return Math.round(parseFloat(re)*255).toString(16)}function ae(re){return B(re)/255}var ne=(function(){var re="[-\\+]?\\d+%?",j="[-\\+]?\\d*\\.\\d+%?",Y="(?:"+j+")|(?:"+re+")",te="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",ee="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?";return{CSS_UNIT:new RegExp(Y),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function oe(re){return!!ne.CSS_UNIT.exec(re)}function J(re){re=re.replace(c,"").replace(a,"").toLowerCase();var j=!1;if(T[re])re=T[re],j=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Y;return(Y=ne.rgb.exec(re))?{r:Y[1],g:Y[2],b:Y[3]}:(Y=ne.rgba.exec(re))?{r:Y[1],g:Y[2],b:Y[3],a:Y[4]}:(Y=ne.hsl.exec(re))?{h:Y[1],s:Y[2],l:Y[3]}:(Y=ne.hsla.exec(re))?{h:Y[1],s:Y[2],l:Y[3],a:Y[4]}:(Y=ne.hsv.exec(re))?{h:Y[1],s:Y[2],v:Y[3]}:(Y=ne.hsva.exec(re))?{h:Y[1],s:Y[2],v:Y[3],a:Y[4]}:(Y=ne.hex8.exec(re))?{r:B(Y[1]),g:B(Y[2]),b:B(Y[3]),a:ae(Y[4]),format:j?"name":"hex8"}:(Y=ne.hex6.exec(re))?{r:B(Y[1]),g:B(Y[2]),b:B(Y[3]),format:j?"name":"hex"}:(Y=ne.hex4.exec(re))?{r:B(Y[1]+""+Y[1]),g:B(Y[2]+""+Y[2]),b:B(Y[3]+""+Y[3]),a:ae(Y[4]+""+Y[4]),format:j?"name":"hex8"}:(Y=ne.hex3.exec(re))?{r:B(Y[1]+""+Y[1]),g:B(Y[2]+""+Y[2]),b:B(Y[3]+""+Y[3]),format:j?"name":"hex"}:!1}function he(re){var j,Y;return re=re||{level:"AA",size:"small"},j=(re.level||"AA").toUpperCase(),Y=(re.size||"small").toLowerCase(),j!=="AA"&&j!=="AAA"&&(j="AA"),Y!=="small"&&Y!=="large"&&(Y="small"),{level:j,size:Y}}return o}))})(aw)),aw.exports}var sm={},gH;function ka(){if(gH)return sm;gH=1;var r=d0(),i=Array.isArray;function h(a,o){var e,t;for(e=0;e<a.length;e++){if(t=a[e],t!==null&&typeof t=="object")return!1;t!==void 0&&(o[e]=t)}return!0}sm.extendFlat=function(){return c(arguments,!1,!1,!1)},sm.extendDeep=function(){return c(arguments,!0,!1,!1)},sm.extendDeepAll=function(){return c(arguments,!0,!0,!1)},sm.extendDeepNoArrays=function(){return c(arguments,!0,!1,!0)};function c(a,o,e,t){var n=a[0],s=a.length,l,u,f,d,p,g,w;if(s===2&&i(n)&&i(a[1])&&n.length===0){if(w=h(a[1],n),w)return n;n.splice(0,n.length)}for(var v=1;v<s;v++){l=a[v];for(u in l)f=n[u],d=l[u],t&&i(d)?n[u]=d:o&&d&&(r(d)||(p=i(d)))?(p?(p=!1,g=f&&i(f)?f:[]):g=f&&r(f)?f:{},n[u]=c([g,d],o,e,t)):(typeof d<"u"||e)&&(n[u]=d)}return n}return sm}var kA,yH;function Cl(){return yH||(yH=1,kA=function(r){var i=r.variantValues,h=r.editType,c=r.colorEditType;c===void 0&&(c=h);var a={editType:h,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal",description:["Sets the weight (or boldness) of the font."].join(" ")};r.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:h,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",min:1,editType:h},color:{valType:"color",editType:c},weight:a,style:{editType:h,valType:"enumerated",values:["normal","italic"],dflt:"normal",description:["Sets whether a font should be styled with a normal or italic face from its family."].join(" ")},variant:r.noFontVariant?void 0:{editType:h,valType:"enumerated",values:i||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal",description:["Sets the variant of the font."].join(" ")},textcase:r.noFontTextcase?void 0:{editType:h,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal",description:["Sets capitalization of text.","It can be used to make text appear in all-uppercase or all-lowercase,","or with each word capitalized."].join(" ")},lineposition:r.noFontLineposition?void 0:{editType:h,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none",description:["Sets the kind of decoration line(s) with text,","such as an *under*, *over* or *through*","as well as combinations e.g. *under+over*, etc."].join(" ")},shadow:r.noFontShadow?void 0:{editType:h,valType:"string",dflt:r.autoShadowDflt?"auto":"none",description:["Sets the shape and color of the shadow behind text.","*auto* places minimal shadow and applies contrast text font color.","See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options."].join(" ")},editType:h,description:""+(r.description||"")};return r.autoSize&&(o.size.dflt="auto"),r.autoColor&&(o.color.dflt="auto"),r.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,r.noFontVariant||(o.variant.arrayOk=!0),r.noFontTextcase||(o.textcase.arrayOk=!0),r.noFontLineposition||(o.lineposition.arrayOk=!0),r.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}),kA}var CA,mH;function F2(){return mH||(mH=1,CA={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}),CA}var EA,_H;function v0(){if(_H)return EA;_H=1;var r=F2(),i=Cl(),h=i({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});return h.family.dflt=r.HOVERFONT,h.size.dflt=r.HOVERFONTSIZE,EA={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled."].join(" ")},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none",description:["Determines expansion of hover effects to other subplots","If *single* just the axis pair of the primary point is included without overlaying subplots.","If *overlaying* all subplots using the main axis and occupying the same space are included.","If *axis*, also include stacked subplots using the same axis","when `hovermode` is set to *x*, *x unified*, *y* or *y unified*."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:h,grouptitlefont:i({editType:"none",description:["Sets the font for group titles in hover (unified modes).","Defaults to `hoverlabel.font`."].join(" ")}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}},EA}var LA,xH;function $_(){if(xH)return LA;xH=1;var r=Cl(),i=v0().hoverlabel,h=ka().extendFlat;return LA={hoverlabel:{bgcolor:h({},i.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:h({},i.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:r({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:h({},i.align,{arrayOk:!0}),namelength:h({},i.namelength,{arrayOk:!0}),editType:"none"}},LA}var IA,bH;function Ls(){if(bH)return IA;bH=1;var r=Cl(),i=$_();return IA={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legend:{valType:"subplotid",dflt:"legend",editType:"style",description:["Sets the reference to a legend to show this trace in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")},legendgroup:{valType:"string",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style",description:["Sets the title of the legend group."].join(" ")},font:r({editType:"style",description:["Sets this legend group's title font."].join(" ")}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style",description:["Sets the legend rank for this trace.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")},legendwidth:{valType:"number",min:0,editType:"style",description:"Sets the width (in px or fraction) of the legend for this trace."},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",editType:"style",description:["Sets the trace name.","The trace name appears as the legend item and on hover."].join(" ")},uid:{valType:"string",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:i.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["WARNING: All transforms are deprecated and may be removed from the API in next major version.","An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}},IA}var PA,wH;function Fm(){if(wH)return PA;wH=1;var r=bf(),i={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},h=i.RdBu;function c(e,t){if(t||(t=h),!e)return t;function n(){try{e=i[e]||JSON.parse(e)}catch{e=t}}return typeof e=="string"&&(n(),typeof e=="string"&&n()),a(e)?e:t}function a(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var n=0;n<e.length;n++){var s=e[n];if(s.length!==2||+s[0]<t||!r(s[1]).isValid())return!1;t=+s[0]}return!0}function o(e){return i[e]!==void 0?!0:a(e)}return PA={scales:i,defaultScale:h,get:c,isValid:o},PA}var RA={exports:{}},t0={},TH;function Pc(){return TH||(TH=1,t0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t0.defaultLine="#444",t0.lightLine="#eee",t0.background="#fff",t0.borderLine="#BEC8D9",t0.lightFraction=1e3/11),t0}var AH;function Wn(){if(AH)return RA.exports;AH=1;var r=bf(),i=La(),h=Wh().isTypedArray,c=RA.exports={},a=Pc();c.defaults=a.defaults;var o=c.defaultLine=a.defaultLine;c.lightLine=a.lightLine;var e=c.background=a.background;c.tinyRGB=function(n){var s=n.toRgb();return"rgb("+Math.round(s.r)+", "+Math.round(s.g)+", "+Math.round(s.b)+")"},c.rgb=function(n){return c.tinyRGB(r(n))},c.opacity=function(n){return n?r(n).getAlpha():0},c.addOpacity=function(n,s){var l=r(n).toRgb();return"rgba("+Math.round(l.r)+", "+Math.round(l.g)+", "+Math.round(l.b)+", "+s+")"},c.combine=function(n,s){var l=r(n).toRgb();if(l.a===1)return r(n).toRgbString();var u=r(s||e).toRgb(),f=u.a===1?u:{r:255*(1-u.a)+u.r*u.a,g:255*(1-u.a)+u.g*u.a,b:255*(1-u.a)+u.b*u.a},d={r:f.r*(1-l.a)+l.r*l.a,g:f.g*(1-l.a)+l.g*l.a,b:f.b*(1-l.a)+l.b*l.a};return r(d).toRgbString()},c.interpolate=function(n,s,l){var u=r(n).toRgb(),f=r(s).toRgb(),d={r:l*u.r+(1-l)*f.r,g:l*u.g+(1-l)*f.g,b:l*u.b+(1-l)*f.b};return r(d).toRgbString()},c.contrast=function(n,s,l){var u=r(n);u.getAlpha()!==1&&(u=r(c.combine(n,e)));var f=u.isDark()?s?u.lighten(s):e:l?u.darken(l):o;return f.toString()},c.stroke=function(n,s){var l=r(s);n.style({stroke:c.tinyRGB(l),"stroke-opacity":l.getAlpha()})},c.fill=function(n,s){var l=r(s);n.style({fill:c.tinyRGB(l),"fill-opacity":l.getAlpha()})},c.clean=function(n){if(!(!n||typeof n!="object")){var s=Object.keys(n),l,u,f,d;for(l=0;l<s.length;l++)if(f=s[l],d=n[f],f.substr(f.length-5)==="color")if(Array.isArray(d))for(u=0;u<d.length;u++)d[u]=t(d[u]);else n[f]=t(d);else if(f.substr(f.length-10)==="colorscale"&&Array.isArray(d))for(u=0;u<d.length;u++)Array.isArray(d[u])&&(d[u][1]=t(d[u][1]));else if(Array.isArray(d)){var p=d[0];if(!Array.isArray(p)&&p&&typeof p=="object")for(u=0;u<d.length;u++)c.clean(d[u])}else d&&typeof d=="object"&&!h(d)&&c.clean(d)}};function t(n){if(i(n)||typeof n!="string")return n;var s=n.trim();if(s.substr(0,3)!=="rgb")return n;var l=s.match(/^rgba?\s*\(([^()]*)\)$/);if(!l)return n;var u=l[1].trim().split(/\s*[\s,]\s*/),f=s.charAt(3)==="a"&&u.length===4;if(!f&&u.length!==3)return n;for(var d=0;d<u.length;d++){if(!u[d].length||(u[d]=Number(u[d]),!(u[d]>=0)))return n;if(d===3)u[d]>1&&(u[d]=1);else if(u[d]>=1)return n}var p=Math.round(u[0]*255)+", "+Math.round(u[1]*255)+", "+Math.round(u[2]*255);return f?"rgba("+p+", "+u[3]+")":"rgb("+p+")"}return RA.exports}var DA,SH;function dy(){return SH||(SH=1,DA={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}),DA}var zA={},MH;function K_(){return MH||(MH=1,zA.counter=function(r,i,h,c){var a=(i||"")+(h?"":"$"),o=c===!1?"":"^";return r==="xy"?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+r+"([2-9]|[1-9][0-9]+)?"+a)}),zA}var kH;function N_e(){return kH||(kH=1,(function(r){var i=La(),h=bf(),c=ka().extendFlat,a=Ls(),o=Fm(),e=Wn(),t=dy().DESELECTDIM,n=z2(),s=K_().counter,l=Y_().modHalf,u=Wh().isArrayOrTypedArray,f=Wh().isTypedArraySpec,d=Wh().decodeTypedArraySpec;r.valObjectMeta={data_array:{description:["An {array} of data.","The value must represent an {array} or it will be ignored,","but this array can be provided in several forms:","(1) a regular {array} object","(2) a typed array (e.g. Float32Array)","(3) an object with keys dtype, bdata, and optionally shape.","In this 3rd form, dtype is one of","*f8*, *f4*.","*i4*, *u4*,","*i2*, *u2*,","*i1*, *u1* or *u1c* for Uint8ClampedArray.","In addition to shorthand `dtype` above one could also use the following forms:","*float64*, *float32*,","*int32*, *uint32*,","*int16*, *uint16*,","*int8*, *uint8* or *uint8c* for Uint8ClampedArray.","`bdata` is either a base64-encoded string or the ArrayBuffer of","an integer or float typed array.","For either multi-dimensional arrays you must also","provide its dimensions separated by comma via `shape`.","For example using `dtype`: *f4* and `shape`: *5,100* you can","declare a 2-D array that has 5 rows and 100 columns","containing float32 values i.e. 4 bits per value.","`shape` is optional for one dimensional arrays."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(g,w,v){w.set(u(g)?g:f(g)?d(g):v)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(g,w,v,y){y.coerceNumber&&(g=+g),y.values.indexOf(g)===-1?w.set(v):w.set(g)},validateFunction:function(g,w){w.coerceNumber&&(g=+g);for(var v=w.values,y=0;y<v.length;y++){var S=String(v[y]);if(S.charAt(0)==="/"&&S.charAt(S.length-1)==="/"){var A=new RegExp(S.substr(1,S.length-2));if(A.test(g))return!0}else if(g===v[y])return!0}return!1}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(g,w,v){g===!0||g===!1?w.set(g):w.set(v)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(g,w,v,y){f(g)&&(g=d(g)),!i(g)||y.min!==void 0&&g<y.min||y.max!==void 0&&g>y.max?w.set(v):w.set(+g)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk","extras"],coerceFunction:function(g,w,v,y){if((y.extras||[]).indexOf(g)!==-1){w.set(g);return}f(g)&&(g=d(g)),g%1||!i(g)||y.min!==void 0&&g<y.min||y.max!==void 0&&g>y.max?w.set(v):w.set(+g)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(g,w,v,y){if(typeof g!="string"){var S=typeof g=="number";y.strict===!0||!S?w.set(v):w.set(String(g))}else y.noBlank&&!g?w.set(v):w.set(g)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(g,w,v){f(g)&&(g=d(g)),h(g).isValid()?w.set(g):w.set(v)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(g,w,v){function y(S){return h(S).isValid()}!Array.isArray(g)||!g.length?w.set(v):g.every(y)?w.set(g):w.set(v)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(o.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(g,w,v){w.set(o.get(g,v))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(g,w,v){f(g)&&(g=d(g)),g==="auto"?w.set("auto"):i(g)?w.set(l(+g,360)):w.set(v)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(g,w,v,y){var S=y.regex||s(v);if(typeof g=="string"&&S.test(g)){w.set(g);return}w.set(v)},validateFunction:function(g,w){var v=w.dflt;return g===v?!0:typeof g!="string"?!1:!!s(v).test(g)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(g,w,v,y){if((y.extras||[]).indexOf(g)!==-1){w.set(g);return}if(typeof g!="string"){w.set(v);return}for(var S=g.split("+"),A=0;A<S.length;){var M=S[A];y.flags.indexOf(M)===-1||S.indexOf(M)<A?S.splice(A,1):A++}S.length?w.set(S.join("+")):w.set(v)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(g,w,v){g===void 0?w.set(v):w.set(f(g)?d(g):g)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength","dimensions"],coerceFunction:function(g,w,v,y){function S(B,R,q){var G,Z={set:function($){G=$}};return q===void 0&&(q=R.dflt),r.valObjectMeta[R.valType].coerceFunction(B,Z,q,R),G}if(f(g)&&(g=d(g)),!u(g)){w.set(v);return}var A=y.dimensions===2||y.dimensions==="1-2"&&Array.isArray(g)&&u(g[0]),M=y.items,m=[],k=Array.isArray(M),b=k&&A&&u(M[0]),_=A&&k&&!b,x=k&&!_?M.length:g.length,T,P,D,F,N,O;if(v=Array.isArray(v)?v:[],A)for(T=0;T<x;T++)for(m[T]=[],D=u(g[T])?g[T]:[],_?N=M.length:k?N=M[T].length:N=D.length,P=0;P<N;P++)_?F=M[P]:k?F=M[T][P]:F=M,O=S(D[P],F,(v[T]||[])[P]),O!==void 0&&(m[T][P]=O);else for(T=0;T<x;T++)O=S(g[T],k?M[T]:M,v[T]),O!==void 0&&(m[T]=O);w.set(m)},validateFunction:function(g,w){if(!u(g))return!1;var v=w.items,y=Array.isArray(v),S=w.dimensions===2;if(!w.freeLength&&g.length!==v.length)return!1;for(var A=0;A<g.length;A++)if(S){if(!u(g[A])||!w.freeLength&&g[A].length!==v[A].length)return!1;for(var M=0;M<g[A].length;M++)if(!p(g[A][M],y?v[A][M]:v))return!1}else if(!p(g[A],y?v[A]:v))return!1;return!0}}},r.coerce=function(g,w,v,y,S){var A=n(v,y).get(),M=n(g,y),m=n(w,y),k=M.get(),b=w._template;if(k===void 0&&b&&(k=n(b,y).get(),b=0),S===void 0&&(S=A.dflt),A.arrayOk){if(u(k))return m.set(k),k;if(f(k))return k=d(k),m.set(k),k}var _=r.valObjectMeta[A.valType].coerceFunction;_(k,m,S,A);var x=m.get();return b&&x===S&&!p(k,A)&&(k=n(b,y).get(),_(k,m,S,A),x=m.get()),x},r.coerce2=function(g,w,v,y,S){var A=n(g,y),M=r.coerce(g,w,v,y,S),m=A.get();return m!=null?M:!1},r.coerceFont=function(g,w,v,y){y||(y={}),v=c({},v),v=c(v,y.overrideDflt||{});var S={family:g(w+".family",v.family),size:g(w+".size",v.size),color:g(w+".color",v.color),weight:g(w+".weight",v.weight),style:g(w+".style",v.style)};if(y.noFontVariant||(S.variant=g(w+".variant",v.variant)),y.noFontLineposition||(S.lineposition=g(w+".lineposition",v.lineposition)),y.noFontTextcase||(S.textcase=g(w+".textcase",v.textcase)),!y.noFontShadow){var A=v.shadow;A==="none"&&y.autoShadowDflt&&(A="auto"),S.shadow=g(w+".shadow",A)}return S},r.coercePattern=function(g,w,v,y){var S=g(w+".shape");if(S){g(w+".solidity"),g(w+".size");var A=g(w+".fillmode"),M=A==="overlay";if(!y){var m=g(w+".bgcolor",M?v:void 0);g(w+".fgcolor",M?e.contrast(m):v)}g(w+".fgopacity",M?.5:1)}},r.coerceHoverinfo=function(g,w,v){var y=w._module.attributes,S=y.hoverinfo?y:a,A=S.hoverinfo,M;if(v._dataLength===1){var m=A.dflt==="all"?A.flags.slice():A.dflt.split("+");m.splice(m.indexOf("name"),1),M=m.join("+")}return r.coerce(g,w,S,"hoverinfo",M)},r.coerceSelectionMarkerOpacity=function(g,w){if(g.marker){var v=g.marker.opacity;if(v!==void 0){var y,S;!u(v)&&!g.selected&&!g.unselected&&(y=v,S=t*v),w("selected.marker.opacity",y),w("unselected.marker.opacity",S)}}};function p(g,w){var v=r.valObjectMeta[w.valType];if(w.arrayOk&&u(g))return!0;if(v.validateFunction)return v.validateFunction(g,w);var y={},S=y,A={set:function(M){S=M}};return v.coerceFunction(g,A,y,w),S!==y}r.validate=p})(MA)),MA}var FA={},BA={exports:{}},OA,CH;function Bm(){if(CH)return OA;CH=1;var r={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},typesetMath:{valType:"boolean",dflt:!0,description:["Determines whether math should be typeset or not,","when MathJax (either v2 or v3) is present on the page."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},editSelection:{valType:"boolean",dflt:!0,description:"Enables moving selections."},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v3, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo, mapbox and map subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo, mapbox and map) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments.","To enable predefined modebar buttons e.g. shape drawing, hover and spikelines,","simply provide their string name(s). This could include:","*v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*,","*drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*.","Please note that these predefined buttons will only be shown if they are compatible","with all trace types used in a graph."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export.","This config option was formerly named `plot3dPixelRatio`","which is now deprecated."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","<path-to-plotly.js>/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},i={};function h(c,a){for(var o in c){var e=c[o];e.valType?a[o]=e.dflt:(a[o]||(a[o]={}),h(e,a[o]))}}return h(r,i),OA={configAttributes:r,dfltConfig:i},OA}var NA,EH;function Ghe(){if(EH)return NA;EH=1;var r=Kn(),i=La(),h=[];return NA=function(c,a){if(h.indexOf(c)!==-1)return;h.push(c);var o=1e3;i(a)?o=a:a==="long"&&(o=3e3);var e=r.select("body").selectAll(".plotly-notifier").data([0]);e.enter().append("div").classed("plotly-notifier",!0);var t=e.selectAll(".notifier-note").data(h);function n(s){s.duration(700).style("opacity",0).each("end",function(l){var u=h.indexOf(l);u!==-1&&h.splice(u,1),r.select(this).remove()})}t.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var l=r.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(n)});for(var u=l.append("p"),f=s.split(/<br\s*\/?>/g),d=0;d<f.length;d++)d&&u.append("br"),u.append("span").text(f[d]);a==="stick"?l.transition().duration(350).style("opacity",1):l.transition().duration(700).style("opacity",1).transition().delay(o).call(n)})},NA}var LH;function vy(){if(LH)return BA.exports;LH=1;var r=Bm().dfltConfig,i=Ghe(),h=BA.exports={};return h.log=function(){var c;if(r.logging>1){var a=["LOG:"];for(c=0;c<arguments.length;c++)a.push(arguments[c]);console.trace.apply(console,a)}if(r.notifyOnLogging>1){var o=[];for(c=0;c<arguments.length;c++)o.push(arguments[c]);i(o.join("<br>"),"long")}},h.warn=function(){var c;if(r.logging>0){var a=["WARN:"];for(c=0;c<arguments.length;c++)a.push(arguments[c]);console.trace.apply(console,a)}if(r.notifyOnLogging>0){var o=[];for(c=0;c<arguments.length;c++)o.push(arguments[c]);i(o.join("<br>"),"stick")}},h.error=function(){var c;if(r.logging>0){var a=["ERROR:"];for(c=0;c<arguments.length;c++)a.push(arguments[c]);console.error.apply(console,a)}if(r.notifyOnLogging>0){var o=[];for(c=0;c<arguments.length;c++)o.push(arguments[c]);i(o.join("<br>"),"stick")}},BA.exports}var qA={},UA,IH;function pN(){return IH||(IH=1,UA=function(){}),UA}var VA,PH;function Whe(){return PH||(PH=1,VA=function(i,h){if(h instanceof RegExp){for(var c=h.toString(),a=0;a<i.length;a++)if(i[a]instanceof RegExp&&i[a].toString()===c)return i;i.push(h)}else(h||h===0)&&i.indexOf(h)===-1&&i.push(h);return i}),VA}var HA={},jA,RH;function q_e(){if(RH)return jA;RH=1,jA=r;function r(){var i=new Float32Array(16);return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}return jA}var GA,DH;function U_e(){if(DH)return GA;DH=1,GA=r;function r(i){var h=new Float32Array(16);return h[0]=i[0],h[1]=i[1],h[2]=i[2],h[3]=i[3],h[4]=i[4],h[5]=i[5],h[6]=i[6],h[7]=i[7],h[8]=i[8],h[9]=i[9],h[10]=i[10],h[11]=i[11],h[12]=i[12],h[13]=i[13],h[14]=i[14],h[15]=i[15],h}return GA}var WA,zH;function V_e(){if(zH)return WA;zH=1,WA=r;function r(i,h){return i[0]=h[0],i[1]=h[1],i[2]=h[2],i[3]=h[3],i[4]=h[4],i[5]=h[5],i[6]=h[6],i[7]=h[7],i[8]=h[8],i[9]=h[9],i[10]=h[10],i[11]=h[11],i[12]=h[12],i[13]=h[13],i[14]=h[14],i[15]=h[15],i}return WA}var ZA,FH;function Zhe(){if(FH)return ZA;FH=1,ZA=r;function r(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}return ZA}var XA,BH;function H_e(){if(BH)return XA;BH=1,XA=r;function r(i,h){if(i===h){var c=h[1],a=h[2],o=h[3],e=h[6],t=h[7],n=h[11];i[1]=h[4],i[2]=h[8],i[3]=h[12],i[4]=c,i[6]=h[9],i[7]=h[13],i[8]=a,i[9]=e,i[11]=h[14],i[12]=o,i[13]=t,i[14]=n}else i[0]=h[0],i[1]=h[4],i[2]=h[8],i[3]=h[12],i[4]=h[1],i[5]=h[5],i[6]=h[9],i[7]=h[13],i[8]=h[2],i[9]=h[6],i[10]=h[10],i[11]=h[14],i[12]=h[3],i[13]=h[7],i[14]=h[11],i[15]=h[15];return i}return XA}var YA,OH;function j_e(){if(OH)return YA;OH=1,YA=r;function r(i,h){var c=h[0],a=h[1],o=h[2],e=h[3],t=h[4],n=h[5],s=h[6],l=h[7],u=h[8],f=h[9],d=h[10],p=h[11],g=h[12],w=h[13],v=h[14],y=h[15],S=c*n-a*t,A=c*s-o*t,M=c*l-e*t,m=a*s-o*n,k=a*l-e*n,b=o*l-e*s,_=u*w-f*g,x=u*v-d*g,T=u*y-p*g,P=f*v-d*w,D=f*y-p*w,F=d*y-p*v,N=S*F-A*D+M*P+m*T-k*x+b*_;return N?(N=1/N,i[0]=(n*F-s*D+l*P)*N,i[1]=(o*D-a*F-e*P)*N,i[2]=(w*b-v*k+y*m)*N,i[3]=(d*k-f*b-p*m)*N,i[4]=(s*T-t*F-l*x)*N,i[5]=(c*F-o*T+e*x)*N,i[6]=(v*M-g*b-y*A)*N,i[7]=(u*b-d*M+p*A)*N,i[8]=(t*D-n*T+l*_)*N,i[9]=(a*T-c*D-e*_)*N,i[10]=(g*k-w*M+y*S)*N,i[11]=(f*M-u*k-p*S)*N,i[12]=(n*x-t*P-s*_)*N,i[13]=(c*P-a*x+o*_)*N,i[14]=(w*A-g*m-v*S)*N,i[15]=(u*m-f*A+d*S)*N,i):null}return YA}var $A,NH;function G_e(){if(NH)return $A;NH=1,$A=r;function r(i,h){var c=h[0],a=h[1],o=h[2],e=h[3],t=h[4],n=h[5],s=h[6],l=h[7],u=h[8],f=h[9],d=h[10],p=h[11],g=h[12],w=h[13],v=h[14],y=h[15];return i[0]=n*(d*y-p*v)-f*(s*y-l*v)+w*(s*p-l*d),i[1]=-(a*(d*y-p*v)-f*(o*y-e*v)+w*(o*p-e*d)),i[2]=a*(s*y-l*v)-n*(o*y-e*v)+w*(o*l-e*s),i[3]=-(a*(s*p-l*d)-n*(o*p-e*d)+f*(o*l-e*s)),i[4]=-(t*(d*y-p*v)-u*(s*y-l*v)+g*(s*p-l*d)),i[5]=c*(d*y-p*v)-u*(o*y-e*v)+g*(o*p-e*d),i[6]=-(c*(s*y-l*v)-t*(o*y-e*v)+g*(o*l-e*s)),i[7]=c*(s*p-l*d)-t*(o*p-e*d)+u*(o*l-e*s),i[8]=t*(f*y-p*w)-u*(n*y-l*w)+g*(n*p-l*f),i[9]=-(c*(f*y-p*w)-u*(a*y-e*w)+g*(a*p-e*f)),i[10]=c*(n*y-l*w)-t*(a*y-e*w)+g*(a*l-e*n),i[11]=-(c*(n*p-l*f)-t*(a*p-e*f)+u*(a*l-e*n)),i[12]=-(t*(f*v-d*w)-u*(n*v-s*w)+g*(n*d-s*f)),i[13]=c*(f*v-d*w)-u*(a*v-o*w)+g*(a*d-o*f),i[14]=-(c*(n*v-s*w)-t*(a*v-o*w)+g*(a*s-o*n)),i[15]=c*(n*d-s*f)-t*(a*d-o*f)+u*(a*s-o*n),i}return $A}var KA,qH;function W_e(){if(qH)return KA;qH=1,KA=r;function r(i){var h=i[0],c=i[1],a=i[2],o=i[3],e=i[4],t=i[5],n=i[6],s=i[7],l=i[8],u=i[9],f=i[10],d=i[11],p=i[12],g=i[13],w=i[14],v=i[15],y=h*t-c*e,S=h*n-a*e,A=h*s-o*e,M=c*n-a*t,m=c*s-o*t,k=a*s-o*n,b=l*g-u*p,_=l*w-f*p,x=l*v-d*p,T=u*w-f*g,P=u*v-d*g,D=f*v-d*w;return y*D-S*P+A*T+M*x-m*_+k*b}return KA}var JA,UH;function Z_e(){if(UH)return JA;UH=1,JA=r;function r(i,h,c){var a=h[0],o=h[1],e=h[2],t=h[3],n=h[4],s=h[5],l=h[6],u=h[7],f=h[8],d=h[9],p=h[10],g=h[11],w=h[12],v=h[13],y=h[14],S=h[15],A=c[0],M=c[1],m=c[2],k=c[3];return i[0]=A*a+M*n+m*f+k*w,i[1]=A*o+M*s+m*d+k*v,i[2]=A*e+M*l+m*p+k*y,i[3]=A*t+M*u+m*g+k*S,A=c[4],M=c[5],m=c[6],k=c[7],i[4]=A*a+M*n+m*f+k*w,i[5]=A*o+M*s+m*d+k*v,i[6]=A*e+M*l+m*p+k*y,i[7]=A*t+M*u+m*g+k*S,A=c[8],M=c[9],m=c[10],k=c[11],i[8]=A*a+M*n+m*f+k*w,i[9]=A*o+M*s+m*d+k*v,i[10]=A*e+M*l+m*p+k*y,i[11]=A*t+M*u+m*g+k*S,A=c[12],M=c[13],m=c[14],k=c[15],i[12]=A*a+M*n+m*f+k*w,i[13]=A*o+M*s+m*d+k*v,i[14]=A*e+M*l+m*p+k*y,i[15]=A*t+M*u+m*g+k*S,i}return JA}var QA,VH;function X_e(){if(VH)return QA;VH=1,QA=r;function r(i,h,c){var a=c[0],o=c[1],e=c[2],t,n,s,l,u,f,d,p,g,w,v,y;return h===i?(i[12]=h[0]*a+h[4]*o+h[8]*e+h[12],i[13]=h[1]*a+h[5]*o+h[9]*e+h[13],i[14]=h[2]*a+h[6]*o+h[10]*e+h[14],i[15]=h[3]*a+h[7]*o+h[11]*e+h[15]):(t=h[0],n=h[1],s=h[2],l=h[3],u=h[4],f=h[5],d=h[6],p=h[7],g=h[8],w=h[9],v=h[10],y=h[11],i[0]=t,i[1]=n,i[2]=s,i[3]=l,i[4]=u,i[5]=f,i[6]=d,i[7]=p,i[8]=g,i[9]=w,i[10]=v,i[11]=y,i[12]=t*a+u*o+g*e+h[12],i[13]=n*a+f*o+w*e+h[13],i[14]=s*a+d*o+v*e+h[14],i[15]=l*a+p*o+y*e+h[15]),i}return QA}var eS,HH;function Y_e(){if(HH)return eS;HH=1,eS=r;function r(i,h,c){var a=c[0],o=c[1],e=c[2];return i[0]=h[0]*a,i[1]=h[1]*a,i[2]=h[2]*a,i[3]=h[3]*a,i[4]=h[4]*o,i[5]=h[5]*o,i[6]=h[6]*o,i[7]=h[7]*o,i[8]=h[8]*e,i[9]=h[9]*e,i[10]=h[10]*e,i[11]=h[11]*e,i[12]=h[12],i[13]=h[13],i[14]=h[14],i[15]=h[15],i}return eS}var tS,jH;function $_e(){if(jH)return tS;jH=1,tS=r;function r(i,h,c,a){var o=a[0],e=a[1],t=a[2],n=Math.sqrt(o*o+e*e+t*t),s,l,u,f,d,p,g,w,v,y,S,A,M,m,k,b,_,x,T,P,D,F,N,O;return Math.abs(n)<1e-6?null:(n=1/n,o*=n,e*=n,t*=n,s=Math.sin(c),l=Math.cos(c),u=1-l,f=h[0],d=h[1],p=h[2],g=h[3],w=h[4],v=h[5],y=h[6],S=h[7],A=h[8],M=h[9],m=h[10],k=h[11],b=o*o*u+l,_=e*o*u+t*s,x=t*o*u-e*s,T=o*e*u-t*s,P=e*e*u+l,D=t*e*u+o*s,F=o*t*u+e*s,N=e*t*u-o*s,O=t*t*u+l,i[0]=f*b+w*_+A*x,i[1]=d*b+v*_+M*x,i[2]=p*b+y*_+m*x,i[3]=g*b+S*_+k*x,i[4]=f*T+w*P+A*D,i[5]=d*T+v*P+M*D,i[6]=p*T+y*P+m*D,i[7]=g*T+S*P+k*D,i[8]=f*F+w*N+A*O,i[9]=d*F+v*N+M*O,i[10]=p*F+y*N+m*O,i[11]=g*F+S*N+k*O,h!==i&&(i[12]=h[12],i[13]=h[13],i[14]=h[14],i[15]=h[15]),i)}return tS}var rS,GH;function K_e(){if(GH)return rS;GH=1,rS=r;function r(i,h,c){var a=Math.sin(c),o=Math.cos(c),e=h[4],t=h[5],n=h[6],s=h[7],l=h[8],u=h[9],f=h[10],d=h[11];return h!==i&&(i[0]=h[0],i[1]=h[1],i[2]=h[2],i[3]=h[3],i[12]=h[12],i[13]=h[13],i[14]=h[14],i[15]=h[15]),i[4]=e*o+l*a,i[5]=t*o+u*a,i[6]=n*o+f*a,i[7]=s*o+d*a,i[8]=l*o-e*a,i[9]=u*o-t*a,i[10]=f*o-n*a,i[11]=d*o-s*a,i}return rS}var iS,WH;function J_e(){if(WH)return iS;WH=1,iS=r;function r(i,h,c){var a=Math.sin(c),o=Math.cos(c),e=h[0],t=h[1],n=h[2],s=h[3],l=h[8],u=h[9],f=h[10],d=h[11];return h!==i&&(i[4]=h[4],i[5]=h[5],i[6]=h[6],i[7]=h[7],i[12]=h[12],i[13]=h[13],i[14]=h[14],i[15]=h[15]),i[0]=e*o-l*a,i[1]=t*o-u*a,i[2]=n*o-f*a,i[3]=s*o-d*a,i[8]=e*a+l*o,i[9]=t*a+u*o,i[10]=n*a+f*o,i[11]=s*a+d*o,i}return iS}var nS,ZH;function Q_e(){if(ZH)return nS;ZH=1,nS=r;function r(i,h,c){var a=Math.sin(c),o=Math.cos(c),e=h[0],t=h[1],n=h[2],s=h[3],l=h[4],u=h[5],f=h[6],d=h[7];return h!==i&&(i[8]=h[8],i[9]=h[9],i[10]=h[10],i[11]=h[11],i[12]=h[12],i[13]=h[13],i[14]=h[14],i[15]=h[15]),i[0]=e*o+l*a,i[1]=t*o+u*a,i[2]=n*o+f*a,i[3]=s*o+d*a,i[4]=l*o-e*a,i[5]=u*o-t*a,i[6]=f*o-n*a,i[7]=d*o-s*a,i}return nS}var aS,XH;function exe(){if(XH)return aS;XH=1,aS=r;function r(i,h,c){var a,o,e,t=c[0],n=c[1],s=c[2],l=Math.sqrt(t*t+n*n+s*s);return Math.abs(l)<1e-6?null:(l=1/l,t*=l,n*=l,s*=l,a=Math.sin(h),o=Math.cos(h),e=1-o,i[0]=t*t*e+o,i[1]=n*t*e+s*a,i[2]=s*t*e-n*a,i[3]=0,i[4]=t*n*e-s*a,i[5]=n*n*e+o,i[6]=s*n*e+t*a,i[7]=0,i[8]=t*s*e+n*a,i[9]=n*s*e-t*a,i[10]=s*s*e+o,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i)}return aS}var oS,YH;function txe(){if(YH)return oS;YH=1,oS=r;function r(i,h,c){var a=h[0],o=h[1],e=h[2],t=h[3],n=a+a,s=o+o,l=e+e,u=a*n,f=a*s,d=a*l,p=o*s,g=o*l,w=e*l,v=t*n,y=t*s,S=t*l;return i[0]=1-(p+w),i[1]=f+S,i[2]=d-y,i[3]=0,i[4]=f-S,i[5]=1-(u+w),i[6]=g+v,i[7]=0,i[8]=d+y,i[9]=g-v,i[10]=1-(u+p),i[11]=0,i[12]=c[0],i[13]=c[1],i[14]=c[2],i[15]=1,i}return oS}var sS,$H;function rxe(){if($H)return sS;$H=1,sS=r;function r(i,h){return i[0]=h[0],i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=h[1],i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=h[2],i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}return sS}var lS,KH;function ixe(){if(KH)return lS;KH=1,lS=r;function r(i,h){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=h[0],i[13]=h[1],i[14]=h[2],i[15]=1,i}return lS}var uS,JH;function nxe(){if(JH)return uS;JH=1,uS=r;function r(i,h){var c=Math.sin(h),a=Math.cos(h);return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=a,i[6]=c,i[7]=0,i[8]=0,i[9]=-c,i[10]=a,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}return uS}var cS,QH;function axe(){if(QH)return cS;QH=1,cS=r;function r(i,h){var c=Math.sin(h),a=Math.cos(h);return i[0]=a,i[1]=0,i[2]=-c,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=c,i[9]=0,i[10]=a,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}return cS}var fS,ej;function oxe(){if(ej)return fS;ej=1,fS=r;function r(i,h){var c=Math.sin(h),a=Math.cos(h);return i[0]=a,i[1]=c,i[2]=0,i[3]=0,i[4]=-c,i[5]=a,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}return fS}var hS,tj;function Xhe(){if(tj)return hS;tj=1,hS=r;function r(i,h){var c=h[0],a=h[1],o=h[2],e=h[3],t=c+c,n=a+a,s=o+o,l=c*t,u=a*t,f=a*n,d=o*t,p=o*n,g=o*s,w=e*t,v=e*n,y=e*s;return i[0]=1-f-g,i[1]=u+y,i[2]=d-v,i[3]=0,i[4]=u-y,i[5]=1-l-g,i[6]=p+w,i[7]=0,i[8]=d+v,i[9]=p-w,i[10]=1-l-f,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}return hS}var dS,rj;function sxe(){if(rj)return dS;rj=1,dS=r;function r(i,h,c,a,o,e,t){var n=1/(c-h),s=1/(o-a),l=1/(e-t);return i[0]=e*2*n,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=e*2*s,i[6]=0,i[7]=0,i[8]=(c+h)*n,i[9]=(o+a)*s,i[10]=(t+e)*l,i[11]=-1,i[12]=0,i[13]=0,i[14]=t*e*2*l,i[15]=0,i}return dS}var vS,ij;function lxe(){if(ij)return vS;ij=1,vS=r;function r(i,h,c,a,o){var e=1/Math.tan(h/2),t=1/(a-o);return i[0]=e/c,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=e,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=(o+a)*t,i[11]=-1,i[12]=0,i[13]=0,i[14]=2*o*a*t,i[15]=0,i}return vS}var pS,nj;function uxe(){if(nj)return pS;nj=1,pS=r;function r(i,h,c,a){var o=Math.tan(h.upDegrees*Math.PI/180),e=Math.tan(h.downDegrees*Math.PI/180),t=Math.tan(h.leftDegrees*Math.PI/180),n=Math.tan(h.rightDegrees*Math.PI/180),s=2/(t+n),l=2/(o+e);return i[0]=s,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=l,i[6]=0,i[7]=0,i[8]=-((t-n)*s*.5),i[9]=(o-e)*l*.5,i[10]=a/(c-a),i[11]=-1,i[12]=0,i[13]=0,i[14]=a*c/(c-a),i[15]=0,i}return pS}var gS,aj;function cxe(){if(aj)return gS;aj=1,gS=r;function r(i,h,c,a,o,e,t){var n=1/(h-c),s=1/(a-o),l=1/(e-t);return i[0]=-2*n,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*s,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*l,i[11]=0,i[12]=(h+c)*n,i[13]=(o+a)*s,i[14]=(t+e)*l,i[15]=1,i}return gS}var yS,oj;function fxe(){if(oj)return yS;oj=1;var r=Zhe();yS=i;function i(h,c,a,o){var e,t,n,s,l,u,f,d,p,g,w=c[0],v=c[1],y=c[2],S=o[0],A=o[1],M=o[2],m=a[0],k=a[1],b=a[2];return Math.abs(w-m)<1e-6&&Math.abs(v-k)<1e-6&&Math.abs(y-b)<1e-6?r(h):(f=w-m,d=v-k,p=y-b,g=1/Math.sqrt(f*f+d*d+p*p),f*=g,d*=g,p*=g,e=A*p-M*d,t=M*f-S*p,n=S*d-A*f,g=Math.sqrt(e*e+t*t+n*n),g?(g=1/g,e*=g,t*=g,n*=g):(e=0,t=0,n=0),s=d*n-p*t,l=p*e-f*n,u=f*t-d*e,g=Math.sqrt(s*s+l*l+u*u),g?(g=1/g,s*=g,l*=g,u*=g):(s=0,l=0,u=0),h[0]=e,h[1]=s,h[2]=f,h[3]=0,h[4]=t,h[5]=l,h[6]=d,h[7]=0,h[8]=n,h[9]=u,h[10]=p,h[11]=0,h[12]=-(e*w+t*v+n*y),h[13]=-(s*w+l*v+u*y),h[14]=-(f*w+d*v+p*y),h[15]=1,h)}return yS}var mS,sj;function hxe(){if(sj)return mS;sj=1,mS=r;function r(i){return"mat4("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+", "+i[4]+", "+i[5]+", "+i[6]+", "+i[7]+", "+i[8]+", "+i[9]+", "+i[10]+", "+i[11]+", "+i[12]+", "+i[13]+", "+i[14]+", "+i[15]+")"}return mS}var _S,lj;function Yhe(){return lj||(lj=1,_S={create:q_e(),clone:U_e(),copy:V_e(),identity:Zhe(),transpose:H_e(),invert:j_e(),adjoint:G_e(),determinant:W_e(),multiply:Z_e(),translate:X_e(),scale:Y_e(),rotate:$_e(),rotateX:K_e(),rotateY:J_e(),rotateZ:Q_e(),fromRotation:exe(),fromRotationTranslation:txe(),fromScaling:rxe(),fromTranslation:ixe(),fromXRotation:nxe(),fromYRotation:axe(),fromZRotation:oxe(),fromQuat:Xhe(),frustum:sxe(),perspective:lxe(),perspectiveFromFieldOfView:uxe(),ortho:cxe(),lookAt:fxe(),str:hxe()}),_S}var uj;function gN(){return uj||(uj=1,(function(r){var i=Yhe();r.init2dArray=function(h,c){for(var a=new Array(h),o=0;o<h;o++)a[o]=new Array(c);return a},r.transposeRagged=function(h){var c=0,a=h.length,o,e;for(o=0;o<a;o++)c=Math.max(c,h[o].length);var t=new Array(c);for(o=0;o<c;o++)for(t[o]=new Array(a),e=0;e<a;e++)t[o][e]=h[e][o];return t},r.dot=function(h,c){if(!(h.length&&c.length)||h.length!==c.length)return null;var a=h.length,o,e;if(h[0].length)for(o=new Array(a),e=0;e<a;e++)o[e]=r.dot(h[e],c);else if(c[0].length){var t=r.transposeRagged(c);for(o=new Array(t.length),e=0;e<t.length;e++)o[e]=r.dot(h,t[e])}else for(o=0,e=0;e<a;e++)o+=h[e]*c[e];return o},r.translationMatrix=function(h,c){return[[1,0,h],[0,1,c],[0,0,1]]},r.rotationMatrix=function(h){var c=h*Math.PI/180;return[[Math.cos(c),-Math.sin(c),0],[Math.sin(c),Math.cos(c),0],[0,0,1]]},r.rotationXYMatrix=function(h,c,a){return r.dot(r.dot(r.translationMatrix(c,a),r.rotationMatrix(h)),r.translationMatrix(-c,-a))},r.apply3DTransform=function(h){return function(){var c=arguments,a=arguments.length===1?c[0]:[c[0],c[1],c[2]||0];return r.dot(h,[a[0],a[1],a[2],1]).slice(0,3)}},r.apply2DTransform=function(h){return function(){var c=arguments;c.length===3&&(c=c[0]);var a=arguments.length===1?c[0]:[c[0],c[1]];return r.dot(h,[a[0],a[1],1]).slice(0,2)}},r.apply2DTransform2=function(h){var c=r.apply2DTransform(h);return function(a){return c(a.slice(0,2)).concat(c(a.slice(2,4)))}},r.convertCssMatrix=function(h){if(h){var c=h.length;if(c===16)return h;if(c===6)return[h[0],h[1],0,0,h[2],h[3],0,0,0,0,1,0,h[4],h[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(h){var c=[];return i.invert(c,h),[[c[0],c[1],c[2],c[3]],[c[4],c[5],c[6],c[7]],[c[8],c[9],c[10],c[11]],[c[12],c[13],c[14],c[15]]]}})(HA)),HA}var xS,cj;function B2(){if(cj)return xS;cj=1;var r=Kn(),i=vy(),h=gN(),c=Yhe();function a(g){var w;if(typeof g=="string"){if(w=document.getElementById(g),w===null)throw new Error("No DOM element with id '"+g+"' exists on the page.");return w}else if(g==null)throw new Error("DOM element provided is null or undefined");return g}function o(g){var w=r.select(g);return w.node()instanceof HTMLElement&&w.size()&&w.classed("js-plotly-plot")}function e(g){var w=g&&g.parentNode;w&&w.removeChild(g)}function t(g,w){n("global",g,w)}function n(g,w,v){var y="plotly.js-style-"+g,S=document.getElementById(y);S||(S=document.createElement("style"),S.setAttribute("id",y),S.appendChild(document.createTextNode("")),document.head.appendChild(S));var A=S.sheet;A.insertRule?A.insertRule(w+"{"+v+"}",0):A.addRule?A.addRule(w,v,0):i.warn("addStyleRule failed")}function s(g){var w="plotly.js-style-"+g,v=document.getElementById(w);v&&e(v)}function l(g){var w=f(g),v=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return w.forEach(function(y){var S=u(y);if(S){var A=h.convertCssMatrix(S);v=c.multiply(v,v,A)}}),v}function u(g){var w=window.getComputedStyle(g,null),v=w.getPropertyValue("-webkit-transform")||w.getPropertyValue("-moz-transform")||w.getPropertyValue("-ms-transform")||w.getPropertyValue("-o-transform")||w.getPropertyValue("transform");return v==="none"?null:v.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(y){return+y})}function f(g){for(var w=[];d(g);)w.push(g),g=g.parentNode,typeof ShadowRoot=="function"&&g instanceof ShadowRoot&&(g=g.host);return w}function d(g){return g&&(g instanceof Element||g instanceof HTMLElement)}function p(g,w){return g&&w&&g.top===w.top&&g.left===w.left&&g.right===w.right&&g.bottom===w.bottom}return xS={getGraphDiv:a,isPlotDiv:o,removeElement:e,addStyleRule:t,addRelatedStyleRule:n,deleteRelatedStyleRule:s,getFullTransformMatrix:l,getElementTransformMatrix:u,getElementAndAncestors:f,equalDomRects:p},xS}var bS,fj;function O2(){return fj||(fj=1,bS={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}),bS}var wS,hj;function xl(){if(hj)return wS;hj=1;var r=ka().extendFlat,i=d0(),h={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* (re)plots but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},c={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* (re)plots but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},a=h.flags.slice().concat(["fullReplot"]),o=c.flags.slice().concat("layoutReplot");wS={traces:h,layout:c,traceFlags:function(){return e(a)},layoutFlags:function(){return e(o)},update:function(s,l){var u=l.editType;if(u&&u!=="none")for(var f=u.split("+"),d=0;d<f.length;d++)s[f[d]]=!0},overrideAll:t};function e(s){for(var l={},u=0;u<s.length;u++)l[s[u]]=!1;return l}function t(s,l,u){var f=r({},s);for(var d in f){var p=f[d];i(p)&&(f[d]=n(p,l,u,d))}return u==="from-root"&&(f.editType=l),f}function n(s,l,u,f){if(s.valType){var d=r({},s);if(d.editType=l,Array.isArray(s.items)){d.items=new Array(s.items.length);for(var p=0;p<s.items.length;p++)d.items[p]=n(s.items[p],l)}return d}else return t(s,l,f.charAt(0)==="_"?"nested":"from-root")}return wS}var bb={},dj;function Hf(){return dj||(dj=1,bb.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")},bb.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style",description:["Sets the shape of the pattern fill.","By default, no pattern is used for filling the area."].join(" ")},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style",description:["Determines whether `marker.color` should be used","as a default to `bgcolor` or a `fgcolor`."].join(" ")},bgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of background pattern fill.","Defaults to a `marker.color` background when `fillmode` is *overlay*.","Otherwise, defaults to a transparent background."].join(" ")},fgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of foreground pattern fill.","Defaults to a `marker.color` background when `fillmode` is *replace*.","Otherwise, defaults to dark grey or white","to increase contrast with the `bgcolor`."].join(" ")},fgopacity:{valType:"number",editType:"style",min:0,max:1,description:["Sets the opacity of the foreground pattern fill.","Defaults to a 0.5 when `fillmode` is *overlay*.","Otherwise, defaults to 1."].join(" ")},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style",description:["Sets the size of unit squares of the pattern fill in pixels,","which corresponds to the interval of repetition of the pattern."].join(" ")},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style",description:["Sets the solidity of the pattern fill.","Solidity is roughly the fraction of the area filled by the pattern.","Solidity of 0 shows only the background color without pattern","and solidty of 1 shows only the foreground color without pattern."].join(" ")},editType:"style",description:["Sets the pattern within the marker."].join(" ")}),bb}var e_={},TS,vj;function $he(){return vj||(vj=1,TS={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}),TS}var pj;function uo(){if(pj)return e_;pj=1;var r=$he(),i=r.FORMAT_LINK,h=r.DATE_FORMAT_LINK;function c(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,i,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,h,"for details on the date formatting syntax."].join(" ")}function a(){return["Variables are inserted using %{variable},",'for example "x0: %{x0}".',`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{x0:$.2f}". See`,i,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{x0|%m %b %Y}". See`,h,"for details on the date formatting syntax.","A single multiplication or division operation may be applied to numeric variables, and combined with",'d3 number formatting, for example "Length in cm: %{x0*2.54}", "%{slope*60:.1f} meters per second."',"For log axes, variable values are given in log units.","For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms."].join(" ")}function o(e){var t=e.description?" "+e.description:"",n=e.keys||[];if(n.length>0){for(var s=[],l=0;l<n.length;l++)s[l]="`"+n[l]+"`";t=t+"Finally, the template string has access to ",n.length===1?t=t+"variable "+s[0]:t=t+"variables "+s.slice(0,-1).join(", ")+" and "+s.slice(-1)+"."}return t}return e_.hovertemplateAttrs=function(e,t){e=e||{},t=t||{};var n=o(t),s={valType:"string",dflt:"",editType:e.editType||"none",description:["Template string used for rendering the information that appear on hover box.","Note that this will override `hoverinfo`.",c({supportOther:!0}),"The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.","Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n,'Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>".',"To hide the secondary box completely, use an empty tag `<extra></extra>`."].join(" ")};return e.arrayOk!==!1&&(s.arrayOk=!0),s},e_.texttemplateAttrs=function(e,t){e=e||{},t=t||{};var n=o(t),s={valType:"string",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",c(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n].join(" ")};return e.arrayOk!==!1&&(s.arrayOk=!0),s},e_.shapeTexttemplateAttrs=function(e,t){e=e||{},t=t||{};var n=e.newshape?"new ":"",s=o(t),l={valType:"string",dflt:"",editType:e.editType||"arraydraw",description:["Template string used for rendering the "+n+"shape's label.","Note that this will override `text`.",a(),s].join(" ")};return l},e_}var AS,gj;function yN(){if(gj)return AS;gj=1;function r(y,S){return S?S.d2l(y):y}function i(y,S){return S?S.l2d(y):y}function h(y){return y.x0}function c(y){return y.x1}function a(y){return y.y0}function o(y){return y.y1}function e(y){return y.x0shift||0}function t(y){return y.x1shift||0}function n(y){return y.y0shift||0}function s(y){return y.y1shift||0}function l(y,S){return r(y.x1,S)+t(y)-r(y.x0,S)-e(y)}function u(y,S,A){return r(y.y1,A)+s(y)-r(y.y0,A)-n(y)}function f(y,S){return Math.abs(l(y,S))}function d(y,S,A){return Math.abs(u(y,S,A))}function p(y,S,A){return y.type!=="line"?void 0:Math.sqrt(Math.pow(l(y,S),2)+Math.pow(u(y,S,A),2))}function g(y,S){return i((r(y.x1,S)+t(y)+r(y.x0,S)+e(y))/2,S)}function w(y,S,A){return i((r(y.y1,A)+s(y)+r(y.y0,A)+n(y))/2,A)}function v(y,S,A){return y.type!=="line"?void 0:u(y,S,A)/l(y,S)}return AS={x0:h,x1:c,y0:a,y1:o,slope:v,dx:l,dy:u,width:f,height:d,length:p,xcenter:g,ycenter:w},AS}var SS,yj;function dxe(){if(yj)return SS;yj=1;var r=xl().overrideAll,i=Ls(),h=Cl(),c=Hf().dash,a=ka().extendFlat,o=uo().shapeTexttemplateAttrs,e=yN();return SS=r({newshape:{visible:a({},i.visible,{description:["Determines whether or not new shape is visible.","If *legendonly*, the shape is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")}),showlegend:{valType:"boolean",dflt:!1,description:["Determines whether or not new","shape is shown in the legend."].join(" ")},legend:a({},i.legend,{description:["Sets the reference to a legend to show new shape in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendgroup:a({},i.legendgroup,{description:["Sets the legend group for new shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:a({},i.legendgrouptitle.text,{}),font:h({description:["Sets this legend group's title font."].join(" ")})},legendrank:a({},i.legendrank,{description:["Sets the legend rank for new shape.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items."].join(" ")}),legendwidth:a({},i.legendwidth,{description:"Sets the width (in px or fraction) of the legend for new shape."}),line:{color:{valType:"color",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,description:"Sets the line width (in px)."},dash:a({},c,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",description:["Specifies whether new shapes are drawn below gridlines (*below*),","between gridlines and traces (*between*) or above traces (*above*)."].join(" ")},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},name:a({},i.name,{description:["Sets new shape name.","The name appears as the legend item."].join(" ")}),label:{text:{valType:"string",dflt:"",description:["Sets the text to display with the new shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:o({newshape:!0},{keys:Object.keys(e)}),font:h({description:"Sets the new shape label text font."}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],description:["Sets the position of the label text relative to the new shape.","Supported values for rectangles, circles and paths are","*top left*, *top center*, *top right*, *middle left*,","*middle center*, *middle right*, *bottom left*, *bottom center*,","and *bottom right*.","Supported values for lines are *start*, *middle*, and *end*.","Default: *middle center* for rectangles, circles, and paths; *middle* for lines."].join(" ")},textangle:{valType:"angle",dflt:"auto",description:["Sets the angle at which the label text is drawn","with respect to the horizontal. For lines, angle *auto*","is the same angle as the line. For all other shapes,","angle *auto* is horizontal."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",description:["Sets the label's horizontal position anchor","This anchor binds the specified `textposition` to the *left*, *center*","or *right* of the label text.","For example, if `textposition` is set to *top right* and","`xanchor` to *right* then the right-most portion of the","label text lines up with the right-most edge of the","new shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets the label's vertical position anchor","This anchor binds the specified `textposition` to the *top*, *middle*","or *bottom* of the label text.","For example, if `textposition` is set to *top right* and","`yanchor` to *top* then the top-most portion of the","label text lines up with the top-most edge of the","new shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,description:"Sets padding (in px) between edge of label and edge of new shape."}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,description:"Sets the opacity of the active shape."}}},"none","from-root"),SS}var MS,mj;function vxe(){if(mj)return MS;mj=1;var r=Hf().dash,i=ka().extendFlat;return MS={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none",description:["Describes how a new selection is created.","If `immediate`, a new selection is created after first mouse up.","If `gradual`, a new selection is not created after first mouse.","By adding to and subtracting from the initial selection,","this option allows declaring extra outlines of the selection."].join(" ")},line:{color:{valType:"color",editType:"none",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:1,dflt:1,editType:"none",description:"Sets the line width (in px)."},dash:i({},r,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none",description:"Sets the color filling the active selection' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none",description:"Sets the opacity of the active selection."},editType:"none"}},MS}var kS,_j;function mN(){return _j||(_j=1,kS=function(r){var i=r.editType;return{t:{valType:"number",dflt:0,editType:i,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,editType:i,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,editType:i,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,editType:i,description:"The amount of padding (in px) on the left side of the component."},editType:i}}),kS}var CS,xj;function Om(){if(xj)return CS;xj=1;var r=Cl(),i=O2(),h=Pc(),c=dxe(),a=vxe(),o=mN(),e=ka().extendFlat,t=r({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});return t.family.dflt='"Open Sans", verdana, arial, sans-serif',t.size.dflt=12,t.color.dflt=h.defaultLine,CS={font:t,title:{text:{valType:"string",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:r({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),subtitle:{text:{valType:"string",editType:"layoutstyle",description:"Sets the plot's subtitle."},font:r({editType:"layoutstyle",description:"Sets the subtitle font."}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:e(o({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether the title can automatically push the figure margins.","If `yref='paper'` then the margin will expand to ensure that the title doesn’t","overlap with the edges of the container. If `yref='container'` then the margins","will ensure that the title doesn’t overlap with the plot area, tick labels,","and axis titles. If `automargin=true` and the margins need to be expanded,","then y will be set to a default 1 and yanchor will be set to an appropriate","default to ensure that minimal margin space is needed. Note that when `yref='paper'`,","only 1 or 0 are allowed y values. Invalid values will be reset to the default 1."].join(" ")},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum width of the plot with margin.automargin applied (in px)"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum height of the plot with margin.automargin applied (in px)"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},computed:{valType:"any",editType:"none",description:["Placeholder for exporting automargin-impacting values namely","`margin.t`, `margin.b`, `margin.l` and `margin.r` in *full-json* mode."].join(" ")},paper_bgcolor:{valType:"color",dflt:h.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",dflt:h.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","This is the default value; however it could be overridden for individual axes."].join(" ")},separators:{valType:"string",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:h.defaults,editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},newshape:c.newshape,activeshape:c.activeshape,newselection:a.newselection,activeselection:a.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:e({},i.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:r({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}},CS}var bj;function $n(){return bj||(bj=1,(function(r){var i=vy(),h=pN(),c=Whe(),a=d0(),o=B2().addStyleRule,e=ka(),t=Ls(),n=Om(),s=e.extendFlat,l=e.extendDeepAll;r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(m){if(r.collectableSubplotTypes=null,m)m&&!Array.isArray(m)&&(m=[m]);else throw new Error("No argument passed to Plotly.register.");for(var k=0;k<m.length;k++){var b=m[k];if(!b)throw new Error("Invalid module was attempted to be registered!");switch(b.moduleType){case"trace":u(b);break;case"transform":p(b);break;case"component":d(b);break;case"locale":g(b);break;case"apiMethod":var _=b.name;r.apiMethodRegistry[_]=b.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},r.getModule=function(M){var m=r.modules[A(M)];return m?m._module:!1},r.traceIs=function(M,m){if(M=A(M),M==="various")return!1;var k=r.modules[M];return k||(M&&i.log("Unrecognized trace type "+M+"."),k=r.modules[t.type.dflt]),!!k.categories[m]},r.getTransformIndices=function(M,m){for(var k=[],b=M.transforms||[],_=0;_<b.length;_++)b[_].type===m&&k.push(_);return k},r.hasTransform=function(M,m){for(var k=M.transforms||[],b=0;b<k.length;b++)if(k[b].type===m)return!0;return!1},r.getComponentMethod=function(M,m){var k=r.componentsRegistry[M];return k&&k[m]||h},r.call=function(){var M=arguments[0],m=[].slice.call(arguments,1);return r.apiMethodRegistry[M].apply(null,m)};function u(M){var m=M.name,k=M.categories,b=M.meta;if(r.modules[m]){i.log("Type "+m+" already registered");return}r.subplotsRegistry[M.basePlotModule.name]||f(M.basePlotModule);for(var _={},x=0;x<k.length;x++)_[k[x]]=!0,r.allCategories[k[x]]=!0;r.modules[m]={_module:M,categories:_},b&&Object.keys(b).length&&(r.modules[m].meta=b),r.allTypes.push(m);for(var T in r.componentsRegistry)v(T,m);M.layoutAttributes&&s(r.traceLayoutAttributes,M.layoutAttributes);var P=M.basePlotModule,D=P.name;if(D==="mapbox"){var F=P.constants.styleRules;for(var N in F)o(".js-plotly-plot .plotly .mapboxgl-"+N,F[N])}(D==="geo"||D==="mapbox"||D==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function f(M){var m=M.name;if(r.subplotsRegistry[m]){i.log("Plot type "+m+" already registered.");return}w(M),r.subplotsRegistry[m]=M;for(var k in r.componentsRegistry)S(k,M.name)}function d(M){if(typeof M.name!="string")throw new Error("Component module *name* must be a string.");var m=M.name;r.componentsRegistry[m]=M,M.layoutAttributes&&(M.layoutAttributes._isLinkedToArray&&c(r.layoutArrayContainers,m),w(M));for(var k in r.modules)v(m,k);for(var b in r.subplotsRegistry)S(m,b);for(var _ in r.transformsRegistry)y(m,_);M.schema&&M.schema.layout&&l(n,M.schema.layout)}function p(M){if(typeof M.name!="string")throw new Error("Transform module *name* must be a string.");var m="Transform module "+M.name,k=typeof M.transform=="function",b=typeof M.calcTransform=="function";if(!k&&!b)throw new Error(m+" is missing a *transform* or *calcTransform* method.");k&&b&&i.log([m+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),a(M.attributes)||i.log(m+" registered without an *attributes* object."),typeof M.supplyDefaults!="function"&&i.log(m+" registered without a *supplyDefaults* method."),r.transformsRegistry[M.name]=M;for(var _ in r.componentsRegistry)y(_,M.name)}function g(M){var m=M.name,k=m.split("-")[0],b=M.dictionary,_=M.format,x=b&&Object.keys(b).length,T=_&&Object.keys(_).length,P=r.localeRegistry,D=P[m];if(D||(P[m]=D={}),k!==m){var F=P[k];F||(P[k]=F={}),x&&F.dictionary===D.dictionary&&(F.dictionary=b),T&&F.format===D.format&&(F.format=_)}x&&(D.dictionary=b),T&&(D.format=_)}function w(M){if(M.layoutAttributes){var m=M.layoutAttributes._arrayAttrRegexps;if(m)for(var k=0;k<m.length;k++)c(r.layoutArrayRegexes,m[k])}}function v(M,m){var k=r.componentsRegistry[M].schema;if(!(!k||!k.traces)){var b=k.traces[m];b&&l(r.modules[m]._module.attributes,b)}}function y(M,m){var k=r.componentsRegistry[M].schema;if(!(!k||!k.transforms)){var b=k.transforms[m];b&&l(r.transformsRegistry[m].attributes,b)}}function S(M,m){var k=r.componentsRegistry[M].schema;if(!(!k||!k.subplots)){var b=r.subplotsRegistry[m],_=b.layoutAttributes,x=b.attr==="subplot"?b.name:b.attr;Array.isArray(x)&&(x=x[0]);var T=k.subplots[x];_&&T&&l(_,T)}}function A(M){return typeof M=="object"&&(M=M.type),M}})(qA)),qA}var wj;function pxe(){return wj||(wj=1,(function(r){var i=N_.timeFormat,h=La(),c=vy(),a=Y_().mod,o=mo(),e=o.BADNUM,t=o.ONEDAY,n=o.ONEHOUR,s=o.ONEMIN,l=o.ONESEC,u=o.EPOCHJD,f=$n(),d=N_.utcFormat,p=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,g=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,w=new Date().getFullYear()-70;function v(B){return B&&f.componentsRegistry.calendars&&typeof B=="string"&&B!=="gregorian"}r.dateTick0=function(B,R){var q=y(B,!!R);if(R<2)return q;var G=r.dateTime2ms(q,B);return G+=t*(R-1),r.ms2DateTime(G,0,B)};function y(B,R){return v(B)?R?f.getComponentMethod("calendars","CANONICAL_SUNDAY")[B]:f.getComponentMethod("calendars","CANONICAL_TICK")[B]:R?"2000-01-02":"2000-01-01"}r.dfltRange=function(B){return v(B)?f.getComponentMethod("calendars","DFLTRANGE")[B]:["2000-01-01","2001-01-01"]},r.isJSDate=function(B){return typeof B=="object"&&B!==null&&typeof B.getTime=="function"};var S,A;r.dateTime2ms=function(B,R){if(r.isJSDate(B)){var q=B.getTimezoneOffset()*s,G=(B.getUTCMinutes()-B.getMinutes())*s+(B.getUTCSeconds()-B.getSeconds())*l+(B.getUTCMilliseconds()-B.getMilliseconds());if(G){var Z=3*s;q=q-Z/2+a(G-q+Z/2,Z)}return B=Number(B)-q,B>=S&&B<=A?B:e}if(typeof B!="string"&&typeof B!="number")return e;B=String(B);var $=v(R),ae=B.charAt(0);$&&(ae==="G"||ae==="g")&&(B=B.substr(1),R="");var ne=$&&R.substr(0,7)==="chinese",oe=B.match(ne?g:p);if(!oe)return e;var J=oe[1],he=oe[3]||"1",re=Number(oe[5]||1),j=Number(oe[7]||0),Y=Number(oe[9]||0),te=Number(oe[11]||0);if($){if(J.length===2)return e;J=Number(J);var ee;try{var Q=f.getComponentMethod("calendars","getCal")(R);if(ne){var ue=he.charAt(he.length-1)==="i";he=parseInt(he,10),ee=Q.newDate(J,Q.toMonthIndex(J,he,ue),re)}else ee=Q.newDate(J,Number(he),re)}catch{return e}return ee?(ee.toJD()-u)*t+j*n+Y*s+te*l:e}J.length===2?J=(Number(J)+2e3-w)%100+w:J=Number(J),he-=1;var se=new Date(Date.UTC(2e3,he,re,j,Y));return se.setUTCFullYear(J),se.getUTCMonth()!==he||se.getUTCDate()!==re?e:se.getTime()+te*l},S=r.MIN_MS=r.dateTime2ms("-9999"),A=r.MAX_MS=r.dateTime2ms("9999-12-31 23:59:59.9999"),r.isDateTime=function(B,R){return r.dateTime2ms(B,R)!==e};function M(B,R){return String(B+Math.pow(10,R)).substr(1)}var m=90*t,k=3*n,b=5*s;r.ms2DateTime=function(B,R,q){if(typeof B!="number"||!(B>=S&&B<=A))return e;R||(R=0);var G=Math.floor(a(B+.05,1)*10),Z=Math.round(B-G/10),$,ae,ne,oe,J,he;if(v(q)){var re=Math.floor(Z/t)+u,j=Math.floor(a(B,t));try{$=f.getComponentMethod("calendars","getCal")(q).fromJD(re).formatDate("yyyy-mm-dd")}catch{$=d("G%Y-%m-%d")(new Date(Z))}if($.charAt(0)==="-")for(;$.length<11;)$="-0"+$.substr(1);else for(;$.length<10;)$="0"+$;ae=R<m?Math.floor(j/n):0,ne=R<m?Math.floor(j%n/s):0,oe=R<k?Math.floor(j%s/l):0,J=R<b?j%l*10+G:0}else he=new Date(Z),$=d("%Y-%m-%d")(he),ae=R<m?he.getUTCHours():0,ne=R<m?he.getUTCMinutes():0,oe=R<k?he.getUTCSeconds():0,J=R<b?he.getUTCMilliseconds()*10+G:0;return _($,ae,ne,oe,J)},r.ms2DateTimeLocal=function(B){if(!(B>=S+t&&B<=A-t))return e;var R=Math.floor(a(B+.05,1)*10),q=new Date(Math.round(B-R/10)),G=i("%Y-%m-%d")(q),Z=q.getHours(),$=q.getMinutes(),ae=q.getSeconds(),ne=q.getUTCMilliseconds()*10+R;return _(G,Z,$,ae,ne)};function _(B,R,q,G,Z){if((R||q||G||Z)&&(B+=" "+M(R,2)+":"+M(q,2),(G||Z)&&(B+=":"+M(G,2),Z))){for(var $=4;Z%10===0;)$-=1,Z/=10;B+="."+M(Z,$)}return B}r.cleanDate=function(B,R,q){if(B===e)return R;if(r.isJSDate(B)||typeof B=="number"&&isFinite(B)){if(v(q))return c.error("JS Dates and milliseconds are incompatible with world calendars",B),R;if(B=r.ms2DateTimeLocal(+B),!B&&R!==void 0)return R}else if(!r.isDateTime(B,q))return c.error("unrecognized date",B),R;return B};var x=/%\d?f/g,T=/%h/g,P={1:"1",2:"1",3:"2",4:"2"};function D(B,R,q,G){B=B.replace(x,function($){var ae=Math.min(+$.charAt(1)||6,6),ne=(R/1e3%1+2).toFixed(ae).substr(2).replace(/0+$/,"")||"0";return ne});var Z=new Date(Math.floor(R+.05));if(B=B.replace(T,function(){return P[q("%q")(Z)]}),v(G))try{B=f.getComponentMethod("calendars","worldCalFmt")(B,R,G)}catch{return"Invalid"}return q(B)(Z)}var F=[59,59.9,59.99,59.999,59.9999];function N(B,R){var q=a(B+.05,t),G=M(Math.floor(q/n),2)+":"+M(a(Math.floor(q/s),60),2);if(R!=="M"){h(R)||(R=0);var Z=Math.min(a(B/l,60),F[R]),$=(100+Z).toFixed(R).substr(1);R>0&&($=$.replace(/0+$/,"").replace(/[\.]$/,"")),G+=":"+$}return G}r.formatDate=function(B,R,q,G,Z,$){if(Z=v(Z)&&Z,!R)if(q==="y")R=$.year;else if(q==="m")R=$.month;else if(q==="d")R=$.dayMonth+`
|