chainlesschain 0.159.0 → 0.160.1
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/package.json +1 -1
- package/src/assets/web-panel/.build-hash +1 -1
- package/src/assets/web-panel/assets/AIOps-BHiKMxFI.js +1 -0
- package/src/assets/web-panel/assets/AIOps-Cchx1iXI.css +1 -0
- package/src/assets/web-panel/assets/ActionButton-5QD5uzWP.js +1 -0
- package/src/assets/web-panel/assets/Analytics-C1-TXmTC.css +1 -0
- package/src/assets/web-panel/assets/Analytics-D1JxsGBN.js +3 -0
- package/src/assets/web-panel/assets/AppLayout-CtGprHSx.css +1 -0
- package/src/assets/web-panel/assets/AppLayout-DykU9tOE.js +1 -0
- package/src/assets/web-panel/assets/Audit-6ZMsXmrO.css +1 -0
- package/src/assets/web-panel/assets/Audit-TGBqld9c.js +1 -0
- package/src/assets/web-panel/assets/Backup-CY9QozR7.css +1 -0
- package/src/assets/web-panel/assets/Backup-DjpzIwA6.js +1 -0
- package/src/assets/web-panel/assets/BaseInput-joQlVauq.js +1 -0
- package/src/assets/web-panel/assets/Chat-9TYfosy-.js +2 -0
- package/src/assets/web-panel/assets/{Chat-DmX5bWvL.css → Chat-ByiYUboW.css} +1 -1
- package/src/assets/web-panel/assets/Checkbox-OEOFA9GM.js +1 -0
- package/src/assets/web-panel/assets/Codegen-5H5UgHJu.js +1 -0
- package/src/assets/web-panel/assets/Codegen-BLP7id2a.css +1 -0
- package/src/assets/web-panel/assets/Col-BnLUipDp.js +1 -0
- package/src/assets/web-panel/assets/Community-BF3R5GAl.js +1 -0
- package/src/assets/web-panel/assets/Community-C2RejeOY.css +1 -0
- package/src/assets/web-panel/assets/Compact-C1EkTFek.js +1 -0
- package/src/assets/web-panel/assets/Compliance-CpP-ODRU.js +1 -0
- package/src/assets/web-panel/assets/Compliance-DOys4Ov1.css +1 -0
- package/src/assets/web-panel/assets/{Cowork-CFkkMMDK.js → Cowork-CCgGSKVR.js} +4 -4
- package/src/assets/web-panel/assets/Cron-CZ5pjRxn.js +2 -0
- package/src/assets/web-panel/assets/Crosschain-C0P-5sm3.js +1 -0
- package/src/assets/web-panel/assets/Crosschain-C7Le4Pte.css +1 -0
- package/src/assets/web-panel/assets/DID-BX6k3jZi.css +1 -0
- package/src/assets/web-panel/assets/DID-DPZKMApP.js +2 -0
- package/src/assets/web-panel/assets/Dashboard-G-BDDAov.js +3 -0
- package/src/assets/web-panel/assets/Dashboard-MFDcsVcM.css +1 -0
- package/src/assets/web-panel/assets/Dropdown-CeywCcVQ.js +1 -0
- package/src/assets/web-panel/assets/Federation-CgmfLbx1.css +1 -0
- package/src/assets/web-panel/assets/Federation-DuFRY867.js +1 -0
- package/src/assets/web-panel/assets/{FormItemContext-Be6TSNxz.js → FormItemContext-CFSiPqbu.js} +1 -1
- package/src/assets/web-panel/assets/Git-CjVRJDLg.js +2 -0
- package/src/assets/web-panel/assets/{Git-DGcuBXST.css → Git-DPuaGtg7.css} +1 -1
- package/src/assets/web-panel/assets/Governance-BoipmXaM.css +1 -0
- package/src/assets/web-panel/assets/Governance-C0lyocJc.js +1 -0
- package/src/assets/web-panel/assets/Inference-BVSAexgk.js +1 -0
- package/src/assets/web-panel/assets/Inference-BWxYJF9-.css +1 -0
- package/src/assets/web-panel/assets/KnowledgeGraph-CztPDA96.css +1 -0
- package/src/assets/web-panel/assets/KnowledgeGraph-SE4jCwIn.js +1 -0
- package/src/assets/web-panel/assets/Logs-BD5C-wTx.js +2 -0
- package/src/assets/web-panel/assets/Marketplace-CL93dFBs.js +1 -0
- package/src/assets/web-panel/assets/Marketplace-Djp5q9dS.css +1 -0
- package/src/assets/web-panel/assets/McpTools-CDjHmzxH.css +1 -0
- package/src/assets/web-panel/assets/McpTools-x-Tibae-.js +5 -0
- package/src/assets/web-panel/assets/Memory-Bcc2hxOA.css +1 -0
- package/src/assets/web-panel/assets/Memory-CR8LXq37.js +2 -0
- package/src/assets/web-panel/assets/Mtc-C-PfF5B3.css +1 -0
- package/src/assets/web-panel/assets/Mtc-CEtRtMcc.js +1 -0
- package/src/assets/web-panel/assets/NLProgramming-B09F6gt2.js +1 -0
- package/src/assets/web-panel/assets/NLProgramming-CLOvy-35.css +1 -0
- package/src/assets/web-panel/assets/Notes-BYIn2GOe.js +7 -0
- package/src/assets/web-panel/assets/Organization-BX-cIO8M.css +1 -0
- package/src/assets/web-panel/assets/Organization-CybJTFN9.js +4 -0
- package/src/assets/web-panel/assets/Overflow-W4YLQ7yY.js +1 -0
- package/src/assets/web-panel/assets/{OverrideContext-GHsJf9ok.js → OverrideContext-Nubhv68k.js} +1 -1
- package/src/assets/web-panel/assets/P2P-Cx88UaiD.css +1 -0
- package/src/assets/web-panel/assets/P2P-kVj43R4j.js +2 -0
- package/src/assets/web-panel/assets/Permissions-CfYE4XFJ.js +4 -0
- package/src/assets/web-panel/assets/Pipeline-BVLo32Ak.js +1 -0
- package/src/assets/web-panel/assets/Pipeline-DxkXqrH2.css +1 -0
- package/src/assets/web-panel/assets/Privacy-CrsfSFKd.css +1 -0
- package/src/assets/web-panel/assets/Privacy-Efyb3xpJ.js +1 -0
- package/src/assets/web-panel/assets/ProjectSettings-cBqrIhNN.js +2 -0
- package/src/assets/web-panel/assets/Projects-B5IgXt-x.css +1 -0
- package/src/assets/web-panel/assets/Projects-BYY38oZd.js +2 -0
- package/src/assets/web-panel/assets/Providers-BsS27cWs.js +2 -0
- package/src/assets/web-panel/assets/QuickAsk-6FgX9DC6.js +1 -0
- package/src/assets/web-panel/assets/Recommend-BvMXwWFN.js +1 -0
- package/src/assets/web-panel/assets/Recommend-CH6wKzGo.css +1 -0
- package/src/assets/web-panel/assets/Reputation-D6VPNEd0.css +1 -0
- package/src/assets/web-panel/assets/Reputation-DmwTtBfl.js +1 -0
- package/src/assets/web-panel/assets/Row-N-X7EJ3w.js +1 -0
- package/src/assets/web-panel/assets/RssFeed-D9TjnwgF.js +3 -0
- package/src/assets/web-panel/assets/Search-B6RalzTB.css +1 -0
- package/src/assets/web-panel/assets/Search-Hapv-QkV.js +1 -0
- package/src/assets/web-panel/assets/Security-13K57V_v.css +1 -0
- package/src/assets/web-panel/assets/Security-DWbFJK10.js +4 -0
- package/src/assets/web-panel/assets/Services-BPUmhVoH.js +2 -0
- package/src/assets/web-panel/assets/Skeleton-Bo5qPHbE.js +8 -0
- package/src/assets/web-panel/assets/Skills-JJ8uInMW.js +1 -0
- package/src/assets/web-panel/assets/Sla-CEDF9zdV.js +1 -0
- package/src/assets/web-panel/assets/Sla-K19oOyQc.css +1 -0
- package/src/assets/web-panel/assets/SpeechSettings-DYPJTDKz.css +1 -0
- package/src/assets/web-panel/assets/SpeechSettings-oIoX_vCx.js +1 -0
- package/src/assets/web-panel/assets/Tasks-Cx5wgv5Z.js +1 -0
- package/src/assets/web-panel/assets/Templates-BWTV8-2E.css +1 -0
- package/src/assets/web-panel/assets/Templates-BomcBlkN.js +1 -0
- package/src/assets/web-panel/assets/Tenant-BxSQZUNh.js +1 -0
- package/src/assets/web-panel/assets/Tenant-D3zkSAV0.css +1 -0
- package/src/assets/web-panel/assets/Tokens-BBOdNRHQ.css +1 -0
- package/src/assets/web-panel/assets/Tokens-BlPPoB3C.js +1 -0
- package/src/assets/web-panel/assets/Trigger-Bhjmjsc5.js +1 -0
- package/src/assets/web-panel/assets/Trust-DeOo0xAh.css +1 -0
- package/src/assets/web-panel/assets/Trust-Dsjv7rkb.js +1 -0
- package/src/assets/web-panel/assets/UkeySign-Cux8_Ib_.js +1 -0
- package/src/assets/web-panel/assets/VideoEditing-BsVR1PN8.js +1 -0
- package/src/assets/web-panel/assets/VideoEditing-DksiizfS.css +1 -0
- package/src/assets/web-panel/assets/Wallet-dcRAYsdL.js +4 -0
- package/src/assets/web-panel/assets/Wallet-gR0ZvZbK.css +1 -0
- package/src/assets/web-panel/assets/WebAuthn-SSh5VhVO.css +1 -0
- package/src/assets/web-panel/assets/WebAuthn-oqIS5PCi.js +5 -0
- package/src/assets/web-panel/assets/WorkflowEditor-C_fYMBvB.js +1 -0
- package/src/assets/web-panel/assets/WorkflowEditor-IiwsD8Kh.css +1 -0
- package/src/assets/web-panel/assets/{chat-DY27mJje.js → chat-BQ-Nk2XY.js} +1 -1
- package/src/assets/web-panel/assets/{collapseMotion-CyadT_6x.js → collapseMotion-BIjDVXtT.js} +1 -1
- package/src/assets/web-panel/assets/{colors-B7fDvuJc.js → colors-D2P6CqS5.js} +1 -1
- package/src/assets/web-panel/assets/{compact-item-DgthOVXi.js → compact-item-CG7qutT_.js} +1 -1
- package/src/assets/web-panel/assets/{createContext-Blw2vgkG.js → createContext-y4UPKgbA.js} +1 -1
- package/src/assets/web-panel/assets/echarts-DmBLM6YO.js +19 -0
- package/src/assets/web-panel/assets/{hasIn-BfL1HJZl.js → hasIn-Butbu9jZ.js} +1 -1
- package/src/assets/web-panel/assets/icons-DvZE-RKs.js +57 -0
- package/src/assets/web-panel/assets/index-38mVlGHc.js +1 -0
- package/src/assets/web-panel/assets/{index-x8iHfZRd.js → index-89HJLKZ-.js} +3 -3
- package/src/assets/web-panel/assets/index-B4Jfv4EB.js +1 -0
- package/src/assets/web-panel/assets/index-B5FRjJMb.js +1 -0
- package/src/assets/web-panel/assets/{index-00RNC3ZQ.js → index-B6U6cYUa.js} +8 -8
- package/src/assets/web-panel/assets/index-B7FV5EnN.js +1 -0
- package/src/assets/web-panel/assets/index-BCQ0WlB2.js +1 -0
- package/src/assets/web-panel/assets/index-BEfvpbz-.js +1 -0
- package/src/assets/web-panel/assets/index-BJN_3RTO.js +1 -0
- package/src/assets/web-panel/assets/index-BQfow_sh.js +1 -0
- package/src/assets/web-panel/assets/index-BQr8Y0o5.js +1 -0
- package/src/assets/web-panel/assets/index-BYZPJS7A.js +1 -0
- package/src/assets/web-panel/assets/index-Bs9aHxDD.js +13 -0
- package/src/assets/web-panel/assets/index-BtuwtDUE.js +1 -0
- package/src/assets/web-panel/assets/index-BvJgRWBq.js +3 -0
- package/src/assets/web-panel/assets/index-C1mK1Ga3.js +1 -0
- package/src/assets/web-panel/assets/index-C1ucrJLg.js +1 -0
- package/src/assets/web-panel/assets/index-C2K61jP8.js +55 -0
- package/src/assets/web-panel/assets/index-CAeKBs9n.js +1 -0
- package/src/assets/web-panel/assets/{index-CiN4NEAa.js → index-CWh3IxEh.js} +2 -2
- package/src/assets/web-panel/assets/{index-DyRzaN4b.js → index-CYlDKn3O.js} +3 -3
- package/src/assets/web-panel/assets/index-C_8hWf5_.js +6 -0
- package/src/assets/web-panel/assets/index-Cc77JZKd.js +1 -0
- package/src/assets/web-panel/assets/index-Ceaxjpqh.js +13 -0
- package/src/assets/web-panel/assets/index-CfX1DEtk.css +1 -0
- package/src/assets/web-panel/assets/index-Ci6jXp3l.js +7 -0
- package/src/assets/web-panel/assets/index-CyqU4Tck.js +65 -0
- package/src/assets/web-panel/assets/{index-BuEOhTAw.js → index-DLMJy9pE.js} +5 -5
- package/src/assets/web-panel/assets/index-DdgjeX4z.js +1 -0
- package/src/assets/web-panel/assets/index-DnI4Aq0q.js +3 -0
- package/src/assets/web-panel/assets/index-DrVnyYpX.js +1 -0
- package/src/assets/web-panel/assets/index-DtNHlrxp.js +1 -0
- package/src/assets/web-panel/assets/index-Dx_ZTZo_.js +1 -0
- package/src/assets/web-panel/assets/{index-BHnaIQEm.js → index-YmGOWX7h.js} +2 -2
- package/src/assets/web-panel/assets/index-gWmZm8_Q.js +21 -0
- package/src/assets/web-panel/assets/index-hSilB_Q-.js +12 -0
- package/src/assets/web-panel/assets/index-qXvwlbkq.js +3 -0
- package/src/assets/web-panel/assets/index-rIbVsjde.js +12 -0
- package/src/assets/web-panel/assets/{index-BsleJWGy.js → index-vC5cTycG.js} +2 -2
- package/src/assets/web-panel/assets/{initDefaultProps-BeWIEzBr.js → initDefaultProps-CZRZ-1bk.js} +1 -1
- package/src/assets/web-panel/assets/motion-CvU8SiWF.js +11 -0
- package/src/assets/web-panel/assets/move-ipAfWhya.js +4 -0
- package/src/assets/web-panel/assets/mtc-parser-pGMSt10g.js +1 -0
- package/src/assets/web-panel/assets/{omit-BS0H_YEP.js → omit-D6bJEjz9.js} +1 -1
- package/src/assets/web-panel/assets/{pickAttrs-BOGgGau8.js → pickAttrs-Dpvzf7sL.js} +1 -1
- package/src/assets/web-panel/assets/{placementArrow--c5TQkDQ.js → placementArrow-D_tEolP1.js} +1 -1
- package/src/assets/web-panel/assets/{responsiveObserve-CrHOX7jp.js → responsiveObserve-BEFI7neO.js} +1 -1
- package/src/assets/web-panel/assets/slide-Bte_KOqM.js +4 -0
- package/src/assets/web-panel/assets/statusUtils-K4xaDRuO.js +1 -0
- package/src/assets/web-panel/assets/{styleChecker-CiDrXnbi.js → styleChecker-Cl9YgOVY.js} +1 -1
- package/src/assets/web-panel/assets/useFlexGapSupport-DNstl1wK.js +1 -0
- package/src/assets/web-panel/assets/useFs-BD-YRwbU.js +1 -0
- package/src/assets/web-panel/assets/{useMergedState-CLY-UHry.js → useMergedState-TP9VIF2K.js} +1 -1
- package/src/assets/web-panel/assets/{useRefs-HzOoMkZk.js → useRefs-BhIz_lC3.js} +1 -1
- package/src/assets/web-panel/assets/{useState-yWVBuz1S.js → useState-CpKsyozn.js} +1 -1
- package/src/assets/web-panel/assets/vendor-B6ToihkA.js +1 -0
- package/src/assets/web-panel/assets/vnode-ChB-8cXr.js +1 -0
- package/src/assets/web-panel/assets/{ws-4ur1fGsk.js → ws-D_5-FRIb.js} +1 -1
- package/src/assets/web-panel/assets/zoom-meTNBulL.js +4 -0
- package/src/assets/web-panel/index.html +4 -4
- package/src/commands/audit.js +296 -0
- package/src/commands/init.js +16 -1
- package/src/commands/mtc.js +1401 -86
- package/src/lib/audit-mtc.js +504 -0
- package/src/assets/web-panel/assets/AIOps-Bfzpnnlg.css +0 -1
- package/src/assets/web-panel/assets/AIOps-ztGJppiG.js +0 -1
- package/src/assets/web-panel/assets/ActionButton-DCuat-R-.js +0 -1
- package/src/assets/web-panel/assets/Analytics-BFI7jbwM.css +0 -1
- package/src/assets/web-panel/assets/Analytics-m_EtU-RR.js +0 -3
- package/src/assets/web-panel/assets/AppLayout-8HizVjee.css +0 -1
- package/src/assets/web-panel/assets/AppLayout-Crz8jbEC.js +0 -1
- package/src/assets/web-panel/assets/Audit-CNLWjMXN.js +0 -1
- package/src/assets/web-panel/assets/Audit-kU7vbN-D.css +0 -1
- package/src/assets/web-panel/assets/Backup-CggaSq9O.js +0 -1
- package/src/assets/web-panel/assets/Backup-DxLiJzmk.css +0 -1
- package/src/assets/web-panel/assets/BaseInput-BssiYvl6.js +0 -1
- package/src/assets/web-panel/assets/Chat-tuVfpQUO.js +0 -2
- package/src/assets/web-panel/assets/Checkbox-BUUkXdQg.js +0 -1
- package/src/assets/web-panel/assets/Codegen-AVAcL7NA.css +0 -1
- package/src/assets/web-panel/assets/Codegen-CHu-7YGr.js +0 -1
- package/src/assets/web-panel/assets/Col-2IaMFwmX.js +0 -1
- package/src/assets/web-panel/assets/Community-CYL7Fvjq.js +0 -1
- package/src/assets/web-panel/assets/Community-DqDfLQui.css +0 -1
- package/src/assets/web-panel/assets/Compact-5yRVELhA.js +0 -1
- package/src/assets/web-panel/assets/Compliance-CKuIDJHK.js +0 -1
- package/src/assets/web-panel/assets/Compliance-CKxw6vIq.css +0 -1
- package/src/assets/web-panel/assets/Cron-DIfkI7vf.js +0 -2
- package/src/assets/web-panel/assets/Crosschain-BkjY-lst.js +0 -1
- package/src/assets/web-panel/assets/Crosschain-DThGgQk8.css +0 -1
- package/src/assets/web-panel/assets/DID-BDvsVa08.css +0 -1
- package/src/assets/web-panel/assets/DID-ChzRkgNy.js +0 -2
- package/src/assets/web-panel/assets/Dashboard-Cviwdc26.css +0 -1
- package/src/assets/web-panel/assets/Dashboard-DKrbXVNn.js +0 -3
- package/src/assets/web-panel/assets/Dropdown-BYGoxH1z.js +0 -1
- package/src/assets/web-panel/assets/Federation-B8QX-IaA.js +0 -1
- package/src/assets/web-panel/assets/Federation-BftELHDw.css +0 -1
- package/src/assets/web-panel/assets/Git-BBnGgbBR.js +0 -2
- package/src/assets/web-panel/assets/Governance-BfmfQBGB.css +0 -1
- package/src/assets/web-panel/assets/Governance-CxUHZMsp.js +0 -1
- package/src/assets/web-panel/assets/Inference-BlnOG71q.js +0 -1
- package/src/assets/web-panel/assets/Inference-EFFc7eNZ.css +0 -1
- package/src/assets/web-panel/assets/Keyframes-C7fCrnlS.js +0 -1
- package/src/assets/web-panel/assets/KnowledgeGraph-U8ps3aGJ.css +0 -1
- package/src/assets/web-panel/assets/KnowledgeGraph-vkVq38kC.js +0 -19
- package/src/assets/web-panel/assets/Logs-Bxx7WARH.js +0 -2
- package/src/assets/web-panel/assets/Marketplace-B-4uYu_j.css +0 -1
- package/src/assets/web-panel/assets/Marketplace-Bh8ExT9_.js +0 -1
- package/src/assets/web-panel/assets/McpTools-CTQrNVAQ.css +0 -1
- package/src/assets/web-panel/assets/McpTools-Djj_a3ko.js +0 -5
- package/src/assets/web-panel/assets/Memory-DRghrGJr.css +0 -1
- package/src/assets/web-panel/assets/Memory-DlgNgAov.js +0 -2
- package/src/assets/web-panel/assets/NLProgramming-BN3jaoen.js +0 -1
- package/src/assets/web-panel/assets/NLProgramming-jURs-f-a.css +0 -1
- package/src/assets/web-panel/assets/Notes-De7mIkkV.js +0 -7
- package/src/assets/web-panel/assets/Organization-B-98mdK2.js +0 -4
- package/src/assets/web-panel/assets/Organization-DdOOM4ic.css +0 -1
- package/src/assets/web-panel/assets/Overflow-G0I8IlY3.js +0 -1
- package/src/assets/web-panel/assets/P2P-DIUgHZ1z.js +0 -2
- package/src/assets/web-panel/assets/P2P-OEzOeMZX.css +0 -1
- package/src/assets/web-panel/assets/Permissions-B8XycCVk.js +0 -4
- package/src/assets/web-panel/assets/Pipeline-DyqCLFVr.css +0 -1
- package/src/assets/web-panel/assets/Pipeline-cUpETlXS.js +0 -1
- package/src/assets/web-panel/assets/Portal-SsPhn64D.js +0 -1
- package/src/assets/web-panel/assets/Privacy-B6J89UBw.js +0 -1
- package/src/assets/web-panel/assets/Privacy-B_cAicd1.css +0 -1
- package/src/assets/web-panel/assets/ProjectSettings-2Ftw0zt_.js +0 -2
- package/src/assets/web-panel/assets/Projects-CcOdFpgr.js +0 -2
- package/src/assets/web-panel/assets/Projects-DxKelI5h.css +0 -1
- package/src/assets/web-panel/assets/Providers-D0r2qSf-.js +0 -2
- package/src/assets/web-panel/assets/QuickAsk-CwsPpfkq.js +0 -1
- package/src/assets/web-panel/assets/Recommend-BYEDetJm.js +0 -1
- package/src/assets/web-panel/assets/Recommend-DgNSCgRX.css +0 -1
- package/src/assets/web-panel/assets/Reputation-Bli4hBGH.js +0 -1
- package/src/assets/web-panel/assets/Reputation-y-46ThW8.css +0 -1
- package/src/assets/web-panel/assets/Row-DTW9_BYi.js +0 -1
- package/src/assets/web-panel/assets/RssFeed-kwj_himl.js +0 -3
- package/src/assets/web-panel/assets/Search-BTk9rglb.css +0 -1
- package/src/assets/web-panel/assets/Search-DymcqASO.js +0 -1
- package/src/assets/web-panel/assets/Security-Bh3yvyNN.js +0 -4
- package/src/assets/web-panel/assets/Security-Dwxw7rfP.css +0 -1
- package/src/assets/web-panel/assets/Services-O4UZaYur.js +0 -2
- package/src/assets/web-panel/assets/Skeleton-B82oQZTz.js +0 -8
- package/src/assets/web-panel/assets/Skills-BfkrC05g.js +0 -1
- package/src/assets/web-panel/assets/Sla-C1WYuQKf.css +0 -1
- package/src/assets/web-panel/assets/Sla-DEs5XCIf.js +0 -1
- package/src/assets/web-panel/assets/SpeechSettings-BWMhb10j.js +0 -1
- package/src/assets/web-panel/assets/SpeechSettings-CiKvsIyV.css +0 -1
- package/src/assets/web-panel/assets/Tasks-CIBUb9M1.js +0 -1
- package/src/assets/web-panel/assets/Templates-DAkzr0xS.css +0 -1
- package/src/assets/web-panel/assets/Templates-iqSuJY-O.js +0 -1
- package/src/assets/web-panel/assets/Tenant-BJr-h-_0.css +0 -1
- package/src/assets/web-panel/assets/Tenant-CLqZjkVq.js +0 -1
- package/src/assets/web-panel/assets/Tokens-Bwz8aQtK.js +0 -1
- package/src/assets/web-panel/assets/Tokens-KvJRHQcl.css +0 -1
- package/src/assets/web-panel/assets/Trigger-CxnChVoS.js +0 -1
- package/src/assets/web-panel/assets/Trust-BLI308Ik.css +0 -1
- package/src/assets/web-panel/assets/Trust-Bp23lyZl.js +0 -1
- package/src/assets/web-panel/assets/UkeySign-_VAMquoh.js +0 -1
- package/src/assets/web-panel/assets/VideoEditing-BA1N-5kq.css +0 -1
- package/src/assets/web-panel/assets/VideoEditing-Bxqwg4zW.js +0 -1
- package/src/assets/web-panel/assets/Wallet-Cvht6Yrh.js +0 -4
- package/src/assets/web-panel/assets/Wallet-DnIumafl.css +0 -1
- package/src/assets/web-panel/assets/WebAuthn-CNPl2VQR.css +0 -1
- package/src/assets/web-panel/assets/WebAuthn-DD4EomJu.js +0 -5
- package/src/assets/web-panel/assets/WorkflowEditor-CEKNTS5G.css +0 -1
- package/src/assets/web-panel/assets/WorkflowEditor-CJy5e0fl.js +0 -1
- package/src/assets/web-panel/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
- package/src/assets/web-panel/assets/icons-CJACPYXu.js +0 -57
- package/src/assets/web-panel/assets/index-B9B9Zbf3.js +0 -1
- package/src/assets/web-panel/assets/index-BAsMNMbh.js +0 -1
- package/src/assets/web-panel/assets/index-BB5y5Y0z.js +0 -14
- package/src/assets/web-panel/assets/index-BVjDIZQ4.js +0 -1
- package/src/assets/web-panel/assets/index-BZeRnzuY.js +0 -55
- package/src/assets/web-panel/assets/index-BZfoAtZC.js +0 -1
- package/src/assets/web-panel/assets/index-Bl2nXm2J.js +0 -13
- package/src/assets/web-panel/assets/index-Bw1dwHWm.js +0 -1
- package/src/assets/web-panel/assets/index-Bw_UV2ez.js +0 -13
- package/src/assets/web-panel/assets/index-C8GYpC65.js +0 -1
- package/src/assets/web-panel/assets/index-CBHlKa-J.js +0 -3
- package/src/assets/web-panel/assets/index-CL-7KCFI.js +0 -3
- package/src/assets/web-panel/assets/index-CqjUUbil.js +0 -12
- package/src/assets/web-panel/assets/index-Cqtt1N0F.js +0 -1
- package/src/assets/web-panel/assets/index-CyGyEIVX.css +0 -1
- package/src/assets/web-panel/assets/index-D1QP9Ue1.js +0 -1
- package/src/assets/web-panel/assets/index-D6BUjL6I.js +0 -1
- package/src/assets/web-panel/assets/index-DN7ywgBJ.js +0 -1
- package/src/assets/web-panel/assets/index-DasW8LIs.js +0 -1
- package/src/assets/web-panel/assets/index-Dd9McFt_.js +0 -1
- package/src/assets/web-panel/assets/index-DdzLEdL6.js +0 -7
- package/src/assets/web-panel/assets/index-DhML6F3z.js +0 -1
- package/src/assets/web-panel/assets/index-DjN0nHiV.js +0 -1
- package/src/assets/web-panel/assets/index-DjhWpiZW.js +0 -1
- package/src/assets/web-panel/assets/index-DouFuKIR.js +0 -1
- package/src/assets/web-panel/assets/index-DzWwjWYN.js +0 -21
- package/src/assets/web-panel/assets/index-Dza_w3kG.js +0 -1
- package/src/assets/web-panel/assets/index-Q4qgOtOe.js +0 -12
- package/src/assets/web-panel/assets/index-U4Zd5IK6.js +0 -8
- package/src/assets/web-panel/assets/index-Vit9TJBu.js +0 -36
- package/src/assets/web-panel/assets/index-lkJllVbJ.js +0 -6
- package/src/assets/web-panel/assets/index-uMWaXVtR.js +0 -3
- package/src/assets/web-panel/assets/index-uwh_ikIt.js +0 -1
- package/src/assets/web-panel/assets/motion-CIQOKmi6.js +0 -11
- package/src/assets/web-panel/assets/move-ZgRPlBji.js +0 -4
- package/src/assets/web-panel/assets/slide-Dd2mJUD0.js +0 -4
- package/src/assets/web-panel/assets/statusUtils-5QFvAofV.js +0 -1
- package/src/assets/web-panel/assets/transition-CVd2ueaJ.js +0 -1
- package/src/assets/web-panel/assets/useConfigInject-DIkkDpt1.js +0 -2
- package/src/assets/web-panel/assets/useFlexGapSupport-rrtj6f1h.js +0 -1
- package/src/assets/web-panel/assets/useFs-CK8VYPus.js +0 -1
- package/src/assets/web-panel/assets/vendor-D0Qjn73K.js +0 -1
- package/src/assets/web-panel/assets/vnode-xRp-KMjS.js +0 -1
- package/src/assets/web-panel/assets/zoom-CrI_kdTW.js +0 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{d as Uy,h as Yy,i as Ua,t as Wy,g as Xy,w as Ya,b as Md,o as $y,e as Zy,s as os,f as Di,n as qy,j as Ky,u as Qy}from"./vendor-B6ToihkA.js";var Au=function(r,t){return Au=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Au(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Au(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var jy=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Jy=(function(){function r(){this.browser=new jy,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),G=new Jy;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(G.wxa=!0,G.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?G.worker=!0:!G.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(G.node=!0,G.svgSupported=!0):tm(navigator.userAgent,G);function tm(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in u||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var Gl=12,em="sans-serif",fr=Gl+"px "+em,rm=20,im=100,nm="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function am(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-rm)/im;t[i]=n}return t}var om=am(nm),Ze={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=Ze.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||fr),r.measureText(e);e=e||"",i=i||fr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Gl,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=om[e[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},Ad=Ui(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Pd=Ui(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Jn=Object.prototype.toString,Oo=Array.prototype,sm=Oo.forEach,um=Oo.filter,Ul=Oo.slice,lm=Oo.map,eh=(function(){}).constructor,oa=eh?eh.prototype:null,Yl="__proto__",fm=2311;function Rd(){return fm++}function Wl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function X(r){if(r==null||typeof r!="object")return r;var t=r,e=Jn.call(r);if(e==="[object Array]"){if(!bn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=X(r[i])}}else if(Pd[e]){if(!bn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!Ad[e]&&!bn(r)&&!On(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Yl&&(t[o]=X(r[o]))}return t}function vt(r,t,e){if(!F(t)||!F(r))return e?X(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Yl){var n=r[i],a=t[i];F(a)&&F(n)&&!k(a)&&!k(n)&&!On(a)&&!On(n)&&!rh(a)&&!rh(n)&&!bn(a)&&!bn(n)?vt(n,a,e):(e||!(i in r))&&(r[i]=X(t[i]))}return r}function R(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Yl&&(r[e]=t[e]);return r}function ct(r,t,e){for(var i=pt(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function st(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function hm(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function de(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else ct(r,t)}function Wt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,t,e){if(r&&t)if(r.forEach&&r.forEach===sm)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function j(r,t,e){if(!r)return[];if(!t)return Xl(r);if(r.map&&r.map===lm)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function Ui(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function Kt(r,t,e){if(!r)return[];if(!t)return Xl(r);if(r.filter&&r.filter===um)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function pt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function vm(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Ul.call(arguments)))}}var it=oa&&Q(oa.bind)?oa.call.bind(oa.bind):vm;function mt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Ul.call(arguments)))}}function k(r){return Array.isArray?Array.isArray(r):Jn.call(r)==="[object Array]"}function Q(r){return typeof r=="function"}function z(r){return typeof r=="string"}function Pu(r){return Jn.call(r)==="[object String]"}function ut(r){return typeof r=="number"}function F(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function rh(r){return!!Ad[Jn.call(r)]}function Xt(r){return!!Pd[Jn.call(r)]}function On(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ko(r){return r.colorStops!=null}function cm(r){return r.image!=null}function dm(r){return r!==r}function Bi(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function V(r,t){return r??t}function Xe(r,t,e){return r??t??e}function Xl(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Ul.apply(r,t)}function $l(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Ee(r,t){if(!r)throw new Error(t)}function Ie(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ed="__ec_primitive__";function Ru(r){r[Ed]=!0}function bn(r){return r[Ed]}var pm=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return pt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),Od=typeof Map=="function";function gm(){return Od?new Map:new pm}var ym=(function(){function r(t){var e=k(t);this.data=gm();var i=this;t instanceof r?t.each(n):t&&I(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return Od?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Y(r){return new ym(r)}function mm(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function Bo(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&R(e,t),e}function kd(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ve(r,t){return r.hasOwnProperty(t)}function Dt(){}var _m=180/Math.PI;function ei(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Rt(r,t){return r[0]=t[0],r[1]=t[1],r}function $e(r){return[r[0],r[1]]}function Sm(r,t,e){return r[0]=t,r[1]=e,r}function ih(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Eu(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function Ur(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Ou(r){return Math.sqrt(wm(r))}function wm(r){return r[0]*r[0]+r[1]*r[1]}function Wa(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Yi(r,t){var e=Ou(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function ku(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Tm=ku;function bm(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var qr=bm;function jt(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Li(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Mi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var oi=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),xm=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new oi(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new oi(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new oi(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new oi(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new oi(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new oi(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),pe=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),Cm=Math.log(2);function Bu(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/Cm);return r[e][u]}for(var l=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(h+=(c%2?-1:1)*r[e][v]*Bu(r,t-1,f,l,n|d,a),c++)}return a[o]=h,h}function nh(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=Bu(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Bu(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var so="___zrEVENTSAVED",ss=[];function Dm(r,t,e,i,n){return Nu(ss,t,i,n,!0)&&Nu(r,e,ss[0],ss[1])}function Im(r,t){r&&e(r),t&&e(t);function e(i){var n=i[so];n&&(n.clearMarkers&&n.clearMarkers(),delete i[so])}}function Nu(r,t,e,i,n){if(t.getBoundingClientRect&&G.domSupported&&!Bd(t)){var a=t[so]||(t[so]={}),o=Lm(t,a),s=Mm(o,a,n);if(s)return s(r,e,i),!0}return!1}function Lm(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){I(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function Mm(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,v=f.left,c=f.top;o.push(v,c),u=u&&a&&v===a[h]&&c===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=e?nh(s,o):nh(o,s))}function Bd(r){return r.nodeName.toUpperCase()==="CANVAS"}var Am=/([&<>"'])/g,Pm={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ft(r){return r==null?"":(r+"").replace(Am,function(t,e){return Pm[e]})}var Rm=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,us=[],Em=G.browser.firefox&&+G.browser.version.split(".")[0]<39;function zu(r,t,e,i){return e=e||{},i?ah(r,t,e):Em&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):ah(r,t,e),e}function ah(r,t,e){if(G.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Bd(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(Nu(us,r,i,n)){e.zrX=us[0],e.zrY=us[1];return}}e.zrX=e.zrY=0}function Zl(r){return r||window.event}function re(r,t,e){if(t=Zl(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&zu(r,o,t,e)}else{zu(r,t,t,e);var a=Om(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Rm.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Om(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function km(r,t,e,i){r.addEventListener(t,e,i)}function Bm(r,t,e,i){r.removeEventListener(t,e,i)}var uo=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function oh(r){return r.which===2||r.which===3}var Nm=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=zu(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in ls)if(ls.hasOwnProperty(e)){var i=ls[e](this._track,t);if(i)return i}},r})();function sh(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function zm(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ls={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=sh(i)/sh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=zm(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Me(){return[1,0,0,1,0,0]}function ql(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Kl(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function xn(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function Fu(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Ql(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-i[0])+f*(l-i[1])+i[0],r[5]=h*(l-i[1])-f*(o-i[0])+i[1],r}function Fm(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function ta(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*i;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-i*u,r[3]=e*u,r[4]=(i*s-o*n)*u,r[5]=(a*n-e*s)*u,r):null}var nt=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),Yr=Math.min,Ai=Math.max,Hu=Math.abs,uh=["x","y"],Hm=["width","height"],yr=new nt,mr=new nt,_r=new nt,Sr=new nt,qt=Nd(),dn=qt.minTv,Vu=qt.maxTv,Cn=[0,0],W=(function(){function r(t,e,i,n){r.set(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=Yr(t.x,this.x),i=Yr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ai(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ai(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=Me();return Fu(a,a,[-e.x,-e.y]),Fm(a,a,[i,n]),Fu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&nt.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(Vm,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(Gm,e.x,e.y,e.width,e.height));var s=!!i;qt.reset(n,s);var u=qt.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,v=t.y+t.height-u,c=e.x+u,d=e.x+e.width-u,y=e.y+u,g=e.y+e.height-u;if(l>f||h>v||c>d||y>g)return!1;var p=!(f<c||d<l||v<y||g<h);return(s||a)&&(Cn[0]=1/0,Cn[1]=0,lh(l,f,c,d,0,s,a,o),lh(h,v,y,g,1,s,a,o),s&&nt.copy(i,p?qt.useDir?qt.dirMinTv:dn:Vu)),p},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}yr.x=_r.x=e.x,yr.y=Sr.y=e.y,mr.x=Sr.x=e.x+e.width,mr.y=_r.y=e.y+e.height,yr.transform(i),Sr.transform(i),mr.transform(i),_r.transform(i),t.x=Yr(yr.x,mr.x,_r.x,Sr.x),t.y=Yr(yr.y,mr.y,_r.y,Sr.y);var u=Ai(yr.x,mr.x,_r.x,Sr.x),l=Ai(yr.y,mr.y,_r.y,Sr.y);t.width=u-t.x,t.height=l-t.y},r})(),Vm=new W(0,0,0,0),Gm=new W(0,0,0,0);function lh(r,t,e,i,n,a,o,s){var u=Hu(t-e),l=Hu(i-r),f=Yr(u,l),h=uh[n],v=uh[1-n],c=Hm[n];t<e||i<r?u<l?(a&&(Vu[h]=-u),s&&(o[h]=t,o[c]=0)):(a&&(Vu[h]=l),s&&(o[h]=r,o[c]=0)):(o&&(o[h]=Ai(r,e),o[c]=Yr(t,i)-o[h]),a&&(f<Cn[0]||qt.useDir)&&(Cn[0]=Yr(f,Cn[0]),(u<l||!qt.bidirectional)&&(dn[h]=u,dn[v]=0,qt.useDir&&qt.calcDirMTV()),(u>=l||!qt.bidirectional)&&(dn[h]=-l,dn[v]=0,qt.useDir&&qt.calcDirMTV())))}function Nd(){var r=0,t=new nt,e=new nt,i={minTv:new nt,maxTv:new nt,useDir:!1,dirMinTv:new nt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Ai(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(r),l=Math.cos(r),f=u*a.y+l*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*l/f,e.y=s*u/f,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return Hu(a)<1e-10}return i}var zd="silent";function Um(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:Ym}}function Ym(){uo(this.event)}var Wm=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(pe),Wi=(function(){function r(t,e){this.x=t,this.y=e}return r})(),Xm=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fs=new W(0,0,0,0),Fd=(function(r){N(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Wi(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Wm,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new xm(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(Xm,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Hd(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Wi(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Wi(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=Um(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Wi(e,i);if(fh(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new W(e-l,i-l,u,u),h=a.length-1;h>=0;h--){var v=a[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(fs.copy(v.getBoundingRect()),v.transform&&fs.applyTransform(v.transform),fs.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,y=Math.PI*2,g=0;g<l;g+=c)for(var p=0;p<y;p+=d){var m=e+g*Math.cos(p),_=i+g*Math.sin(p);if(fh(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new Nm);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Wi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(pe);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Fd.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Hd(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Tm(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function $m(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?zd:!0}return!1}function fh(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=$m(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==zd)){t.target=o;break}}}function Hd(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Vd=32,Xi=7;function Zm(r){for(var t=0;r>=Vd;)t|=r&1,r>>=1;return r+t}function hh(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;qm(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function qm(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function vh(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,r[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function hs(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])>0){for(s=i-n;u<s&&a(r,t[e+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(r,t[e+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function vs(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])<0){for(s=n+1;u<s&&a(r,t[e+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(r,t[e+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function Km(r,t){var e=Xi,i,n,a=0,o=[];i=[],n=[];function s(c,d){i[a]=c,n[a]=d,a+=1}function u(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function l(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var d=i[c],y=n[c],g=i[c+1],p=n[c+1];n[c]=y+p,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var m=vs(r[g],r,d,y,0,t);d+=m,y-=m,y!==0&&(p=hs(r[d+y-1],r,g,p,p-1,t),p!==0&&(y<=p?h(d,y,g,p):v(d,y,g,p)))}function h(c,d,y,g){var p=0;for(p=0;p<d;p++)o[p]=r[c+p];var m=0,_=y,S=c;if(r[S++]=r[_++],--g===0){for(p=0;p<d;p++)r[S+p]=o[m+p];return}if(d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[m];return}for(var T=e,w,b,C;;){w=0,b=0,C=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],b++,w=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],w++,b=0,--d===1){C=!0;break}while((w|b)<T);if(C)break;do{if(w=vs(r[_],o,m,d,0,t),w!==0){for(p=0;p<w;p++)r[S+p]=o[m+p];if(S+=w,m+=w,d-=w,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(b=hs(o[m],r,_,g,0,t),b!==0){for(p=0;p<b;p++)r[S+p]=r[_+p];if(S+=b,_+=b,g-=b,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}T--}while(w>=Xi||b>=Xi);if(C)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[m]}else{if(d===0)throw new Error;for(p=0;p<d;p++)r[S+p]=o[m+p]}}function v(c,d,y,g){var p=0;for(p=0;p<g;p++)o[p]=r[y+p];var m=c+d-1,_=g-1,S=y+g-1,T=0,w=0;if(r[S--]=r[m--],--d===0){for(T=S-(g-1),p=0;p<g;p++)r[T+p]=o[p];return}if(g===1){for(S-=d,m-=d,w=S+1,T=m+1,p=d-1;p>=0;p--)r[w+p]=r[T+p];r[S]=o[_];return}for(var b=e;;){var C=0,x=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,x=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],x++,C=0,--g===1){D=!0;break}while((C|x)<b);if(D)break;do{if(C=d-vs(o[_],r,c,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,w=S+1,T=m+1,p=C-1;p>=0;p--)r[w+p]=r[T+p];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(x=g-hs(r[m],o,0,g,g-1,t),x!==0){for(S-=x,_-=x,g-=x,w=S+1,T=_+1,p=0;p<x;p++)r[w+p]=o[T+p];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}b--}while(C>=Xi||x>=Xi);if(D)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),g===1){for(S-=d,m-=d,w=S+1,T=m+1,p=d-1;p>=0;p--)r[w+p]=r[T+p];r[S]=o[_]}else{if(g===0)throw new Error;for(T=S-(g-1),p=0;p<g;p++)r[T+p]=o[p]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Xa(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<Vd){a=hh(r,e,i,t),vh(r,e,i,e+a,t);return}var o=Km(r,t),s=Zm(n);do{if(a=hh(r,e,i,t),a<s){var u=n;u>s&&(u=s),vh(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var Qt=1,pn=2,Ii=4,ch=!1;function cs(){ch||(ch=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function dh(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Qm=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=dh}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Xa(i,dh)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<e.length;u++)s[o++]=e[u];for(var l=n,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),v=0;v<h.length;v++){var c=h[v];t.__dirty&&(c.__dirty|=Qt),this._updateAndAddDisplayable(c,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(cs(),d.z=0),isNaN(d.z2)&&(cs(),d.z2=0),isNaN(d.zlevel)&&(cs(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,s,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=st(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),lo;lo=G.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Dn={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Dn.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Dn.bounceIn(r*2)*.5:Dn.bounceOut(r*2-1)*.5+.5}},sa=Math.pow,or=Math.sqrt,fo=1e-8,Gd=1e-4,ph=or(3),ua=1/3,De=ei(),ae=ei(),Oi=ei();function nr(r){return r>-fo&&r<fo}function Ud(r){return r>fo||r<-fo}function Ot(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function gh(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Yd(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-n,f=s*s-3*o*u,h=s*u-9*o*l,v=u*u-3*s*l,c=0;if(nr(f)&&nr(h))if(nr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[c++]=d)}else{var y=h*h-4*f*v;if(nr(y)){var g=h/f,d=-s/o+g,p=-g/2;d>=0&&d<=1&&(a[c++]=d),p>=0&&p<=1&&(a[c++]=p)}else if(y>0){var m=or(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-sa(-_,ua):_=sa(_,ua),S<0?S=-sa(-S,ua):S=sa(S,ua);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var T=(2*f*s-3*o*h)/(2*or(f*f*f)),w=Math.acos(T)/3,b=or(f),C=Math.cos(w),d=(-s-2*b*C)/(3*o),p=(-s+b*(C+ph*Math.sin(w)))/(3*o),x=(-s+b*(C-ph*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[c++]=d),p>=0&&p<=1&&(a[c++]=p),x>=0&&x<=1&&(a[c++]=x)}}return c}function Wd(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,u=0;if(nr(o)){if(Ud(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(nr(f))n[0]=-a/(2*o);else if(f>0){var h=or(f),l=(-a+h)/(2*o),v=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),v>=0&&v<=1&&(n[u++]=v)}}return u}function ho(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,u=(i-e)*n+e,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function jm(r,t,e,i,n,a,o,s,u,l,f){var h,v=.005,c=1/0,d,y,g,p;De[0]=u,De[1]=l;for(var m=0;m<1;m+=.05)ae[0]=Ot(r,e,n,o,m),ae[1]=Ot(t,i,a,s,m),g=qr(De,ae),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<Gd);_++)d=h-v,y=h+v,ae[0]=Ot(r,e,n,o,d),ae[1]=Ot(t,i,a,s,d),g=qr(ae,De),d>=0&&g<c?(h=d,c=g):(Oi[0]=Ot(r,e,n,o,y),Oi[1]=Ot(t,i,a,s,y),p=qr(Oi,De),y<=1&&p<c?(h=y,c=p):v*=.5);return or(c)}function Jm(r,t,e,i,n,a,o,s,u){for(var l=r,f=t,h=0,v=1/u,c=1;c<=u;c++){var d=c*v,y=Ot(r,e,n,o,d),g=Ot(t,i,a,s,d),p=y-l,m=g-f;h+=Math.sqrt(p*p+m*m),l=y,f=g}return h}function kt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function yh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function t_(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,u=0;if(nr(a)){if(Ud(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(nr(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=or(f),l=(-o+h)/(2*a),v=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),v>=0&&v<=1&&(n[u++]=v)}}return u}function Xd(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function kn(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function e_(r,t,e,i,n,a,o,s,u){var l,f=.005,h=1/0;De[0]=o,De[1]=s;for(var v=0;v<1;v+=.05){ae[0]=kt(r,e,n,v),ae[1]=kt(t,i,a,v);var c=qr(De,ae);c<h&&(l=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Gd);d++){var y=l-f,g=l+f;ae[0]=kt(r,e,n,y),ae[1]=kt(t,i,a,y);var c=qr(ae,De);if(y>=0&&c<h)l=y,h=c;else{Oi[0]=kt(r,e,n,g),Oi[1]=kt(t,i,a,g);var p=qr(Oi,De);g<=1&&p<h?(l=g,h=p):f*=.5}}return or(h)}function r_(r,t,e,i,n,a,o){for(var s=r,u=t,l=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=kt(r,e,n,v),d=kt(t,i,a,v),y=c-s,g=d-u;l+=Math.sqrt(y*y+g*g),s=c,u=d}return l}var i_=/cubic-bezier\(([0-9,\.e ]+)\)/;function $d(r){var t=r&&i_.exec(r);if(t){var e=t[1].split(","),i=+Ie(e[0]),n=+Ie(e[1]),a=+Ie(e[2]),o=+Ie(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Yd(0,i,a,1,u,s)&&Ot(0,n,o,1,s[0])}}}var n_=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Dt,this.ondestroy=t.ondestroy||Dt,this.onrestart=t.onrestart||Dt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Q(t)?t:Dn[t]||$d(t)},r})(),Zd=(function(){function r(t){this.value=t}return r})(),a_=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Zd(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Ni=(function(){function r(t){this._list=new a_,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new Zd(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),mh={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function In(r){return r=Math.round(r),r<0?0:r>255?255:r}function _h(r){return r<0?0:r>1?1:r}function ds(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?In(parseFloat(t)/100*255):In(parseInt(t,10))}function Kr(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?_h(parseFloat(t)/100):_h(parseFloat(t))}function ps(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function ee(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Gu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var qd=new Ni(20),la=null;function si(r,t){la&&Gu(la,t),la=qd.put(r,la||t.slice())}function sr(r,t){if(r){t=t||[];var e=qd.get(r);if(e)return Gu(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in mh)return Gu(t,mh[i]),si(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ee(t,0,0,0,1);return}return ee(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),si(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ee(t,0,0,0,1);return}return ee(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),si(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?ee(t,+l[0],+l[1],+l[2],1):ee(t,0,0,0,1);f=Kr(l.pop());case"rgb":if(l.length>=3)return ee(t,ds(l[0]),ds(l[1]),ds(l[2]),l.length===3?f:Kr(l[3])),si(r,t),t;ee(t,0,0,0,1);return;case"hsla":if(l.length!==4){ee(t,0,0,0,1);return}return l[3]=Kr(l[3]),Uu(l,t),si(r,t),t;case"hsl":if(l.length!==3){ee(t,0,0,0,1);return}return Uu(l,t),si(r,t),t;default:return}}ee(t,0,0,0,1)}}function Uu(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=Kr(r[1]),n=Kr(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ee(t,In(ps(o,a,e+1/3)*255),In(ps(o,a,e)*255),In(ps(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function o_(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,v=((a-i)/6+o/2)/o;t===a?u=v-h:e===a?u=1/3+f-v:i===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var c=[u*360,l,s];return r[3]!=null&&c.push(r[3]),c}}function Sh(r,t){var e=sr(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return No(e,e.length===4?"rgba":"rgb")}}function Yu(r,t,e,i){var n=sr(r);if(r)return n=o_(n),e!=null&&(n[1]=Kr(Q(e)?e(n[1]):e)),i!=null&&(n[2]=Kr(Q(i)?i(n[2]):i)),No(Uu(n),"rgba")}function No(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function vo(r,t){var e=sr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var wh=new Ni(100);function Th(r){if(z(r)){var t=wh.get(r);return t||(t=Sh(r,-.1),wh.put(r,t)),t}else if(ko(r)){var e=R({},r);return e.colorStops=j(r.colorStops,function(i){return{offset:i.offset,color:Sh(i.color,-.1)}}),e}return r}function s_(r){return r.type==="linear"}function u_(r){return r.type==="radial"}(function(){return G.hasGlobalWindow&&Q(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Wu=Array.prototype.slice;function Ge(r,t,e){return(t-r)*e+r}function gs(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Ge(t[a],e[a],i);return r}function l_(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Ge(t[o][s],e[o][s],i)}return r}function fa(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function bh(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function f_(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function h_(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(e===1?n[u]:Wu.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(e===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function $a(r){if(Wt(r)){var t=r.length;if(Wt(r[0])){for(var e=[],i=0;i<t;i++)e.push(Wu.call(r[i]));return e}return Wu.call(r)}return r}function Za(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function v_(r){return Wt(r&&r[0])?2:1}var ha=0,qa=1,Kd=2,gn=3,Xu=4,$u=5,xh=6;function Ch(r){return r===Xu||r===$u}function va(r){return r===qa||r===Kd}var $i=[0,0,0,0],c_=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=xh,u=e;if(Wt(e)){var l=v_(e);s=l,(l===1&&!ut(e[0])||l===2&&!ut(e[0][0]))&&(o=!0)}else if(ut(e)&&!dm(e))s=ha;else if(z(e))if(!isNaN(+e))s=ha;else{var f=sr(e);f&&(u=f,s=gn)}else if(ko(e)){var h=R({},u);h.colorStops=j(e.colorStops,function(c){return{offset:c.offset,color:sr(c.color)}}),s_(e)?s=Xu:u_(e)&&(s=$u),u=h}a===0?this.valType=s:(s!==this.valType||s===xh)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:u,rawValue:e,percent:0};return i&&(v.easing=i,v.easingFunc=Q(i)?i:Dn[i]||$d(i)),n.push(v),v},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(y,g){return y.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=va(n),l=Ch(n),f=0;f<a;f++){var h=i[f],v=h.value,c=o.value;h.percent=h.time/t,s||(u&&f!==a-1?h_(v,c,n):l&&f_(v.colorStops,c.colorStops))}if(!s&&n!==$u&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<a;f++)n===ha?i[f].additiveValue=i[f].value-d:n===gn?i[f].additiveValue=fa([],i[f].value,d,-1):va(n)&&(i[f].additiveValue=n===qa?fa([],i[f].value,d,-1):bh([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===gn,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var y=v(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-c.percent,p=g===0?1:v((e-c.percent)/g,1);d.easingFunc&&(p=d.easingFunc(p));var m=i?this._additiveValue:l?$i:t[u];if((va(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=p<1?c.rawValue:d.rawValue;else if(va(a))a===qa?gs(m,c[n],d[n],p):l_(m,c[n],d[n],p);else if(Ch(a)){var _=c[n],S=d[n],T=a===Xu;t[u]={type:T?"linear":"radial",x:Ge(_.x,S.x,p),y:Ge(_.y,S.y,p),colorStops:j(_.colorStops,function(b,C){var x=S.colorStops[C];return{offset:Ge(b.offset,x.offset,p),color:Za(gs([],b.color,x.color,p))}}),global:S.global},T?(t[u].x2=Ge(_.x2,S.x2,p),t[u].y2=Ge(_.y2,S.y2,p)):t[u].r=Ge(_.r,S.r,p)}else if(l)gs(m,c[n],d[n],p),i||(t[u]=Za(m));else{var w=Ge(c[n],d[n],p);i?this._additiveValue=w:t[u]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===ha?t[i]=t[i]+n:e===gn?(sr(t[i],$i),fa($i,$i,n,1),t[i]=Za($i)):e===qa?fa(t[i],t[i],n,1):e===Kd&&bh(t[i],t[i],n,1)},r})(),jl=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Wl("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,pt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new c_(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];l=v&&v.value,f.valType===gn&&l&&(l=Za(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,$a(l),n),this._trackKeys.push(s)}u.addKeyframe(t,$a(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new n_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var d=e._additiveAnimators;if(d){for(var y=!1,g=0;g<d.length;g++)if(d[g]._clip){y=!0;break}y||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,c);var p=e._onframeCbs;if(p)for(var g=0;g<p.length;g++)p[g](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return j(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=$a(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||pt(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function Pi(){return new Date().getTime()}var d_=(function(r){N(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Pi()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(lo(i),!e._paused&&e.update())}lo(i)},t.prototype.start=function(){this._running||(this._time=Pi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Pi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Pi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new jl(e,i.loop);return this.addAnimator(n),n},t})(pe),p_=300,ys=G.domSupported,ms=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=j(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),Dh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ih=!1;function Zu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function g_(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function _s(r){r&&(r.zrByTouch=!0)}function y_(r,t){return re(r.dom,new m_(r,t),!0)}function Qd(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var m_=(function(){function r(t,e){this.stopPropagation=Dt,this.stopImmediatePropagation=Dt,this.preventDefault=Dt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),le={mousedown:function(r){r=re(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=re(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=re(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=re(this.dom,r);var t=r.toElement||r.relatedTarget;Qd(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ih=!0,r=re(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ih||(r=re(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=re(this.dom,r),_s(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),le.mousemove.call(this,r),le.mousedown.call(this,r)},touchmove:function(r){r=re(this.dom,r),_s(r),this.handler.processGesture(r,"change"),le.mousemove.call(this,r)},touchend:function(r){r=re(this.dom,r),_s(r),this.handler.processGesture(r,"end"),le.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<p_&&le.click.call(this,r)},pointerdown:function(r){le.mousedown.call(this,r)},pointermove:function(r){Zu(r)||le.mousemove.call(this,r)},pointerup:function(r){le.mouseup.call(this,r)},pointerout:function(r){Zu(r)||le.mouseout.call(this,r)}};I(["click","dblclick","contextmenu"],function(r){le[r]=function(t){t=re(this.dom,t),this.trigger(r,t)}});var qu={pointermove:function(r){Zu(r)||qu.mousemove.call(this,r)},pointerup:function(r){qu.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function __(r,t){var e=t.domHandlers;G.pointerEventsSupported?I(ms.pointer,function(i){Ka(t,i,function(n){e[i].call(r,n)})}):(G.touchEventsSupported&&I(ms.touch,function(i){Ka(t,i,function(n){e[i].call(r,n),g_(t)})}),I(ms.mouse,function(i){Ka(t,i,function(n){n=Zl(n),t.touching||e[i].call(r,n)})}))}function S_(r,t){G.pointerEventsSupported?I(Dh.pointer,e):G.touchEventsSupported||I(Dh.mouse,e);function e(i){function n(a){a=Zl(a),Qd(r,a.target)||(a=y_(r,a),t.domHandlers[i].call(r,a))}Ka(t,i,n,{capture:!0})}}function Ka(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,km(r.domTarget,t,e,i)}function Ss(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Bm(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Lh=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),w_=(function(r){N(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Lh(e,le),ys&&(n._globalHandlerScope=new Lh(document,qu)),__(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Ss(this._localHandlerScope),ys&&Ss(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ys&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?S_(this,i):Ss(i)}},t})(pe),jd=1;G.hasGlobalWindow&&(jd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var co=jd,Ku=.4,Qu="#333",ju="#ccc",T_="#eee",Mh=ql,Ah=5e-5;function wr(r){return r>Ah||r<-Ah}var Tr=[],ui=[],ws=Me(),Ts=Math.abs,Wr=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return wr(this.rotation)||wr(this.x)||wr(this.y)||wr(this.scaleX-1)||wr(this.scaleY-1)||wr(this.skewX)||wr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(Mh(i),this.invTransform=null);return}i=i||Me(),e?this.getLocalTransform(i):Mh(i),t&&(e?xn(i,t,i):Kl(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Tr);var i=Tr[0]<0?-1:1,n=Tr[1]<0?-1:1,a=((Tr[0]-i)*e+i)/Tr[0]||0,o=((Tr[1]-n)*e+n)/Tr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Me(),ta(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Me(),xn(ui,t.invTransform,e),e=ui);var i=this.originX,n=this.originY;(i||n)&&(ws[4]=i,ws[5]=n,xn(ui,e,ws),ui[4]-=i,ui[5]-=n,e=ui),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&jt(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&jt(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Ts(t[0]-1)>1e-10&&Ts(t[3]-1)>1e-10?Math.sqrt(Ts(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Ju(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var d=i+s,y=n+u;e[4]=-d*a-v*y*o,e[5]=-y*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,l&&Ql(e,e,l),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),Bn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ju(r,t){for(var e=0;e<Bn.length;e++){var i=Bn[e];r[i]=t[i]}}function Ae(r){ca||(ca=new Ni(100)),r=r||fr;var t=ca.get(r);return t||(t={font:r,strWidthCache:new Ni(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Ze.measureText("国",r).width,asciiCharWidth:Ze.measureText("a",r).width},ca.put(r,t)),t}var ca;function b_(r){if(!(bs>=Ph)){r=r||fr;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=Ze.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?bs=Ph:n>2&&bs++,t}}var bs=0,Ph=5;function Jd(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=b_(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Pe(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=Ze.measureText(t,r.font).width,e.put(t,i)),i}function Rh(r,t,e,i){var n=Pe(Ae(t),r),a=zo(t),o=zi(0,n,e),s=Qr(0,a,i),u=new W(o,s,n,a);return u}function x_(r,t,e,i){var n=((r||"")+"").split(`
|
|
2
|
+
`),a=n.length;if(a===1)return Rh(n[0],t,e,i);for(var o=new W(0,0,0,0),s=0;s<n.length;s++){var u=Rh(n[s],t,e,i);s===0?o.copy(u):o.union(u)}return o}function zi(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function Qr(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function zo(r){return Ae(r).stWideCharWidth}function Nn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function tp(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(i instanceof Array)u+=Nn(i[0],e.width),l+=Nn(i[1],e.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var xs="__zr_normal__",Cs=Bn.concat(["ignore"]),C_=Ui(Bn,function(r,t){return r[t]=!0,r},{ignore:!1}),li={},D_=new W(0,0,0,0),da=[],Fo=(function(){function r(t){this.id=Rd(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(e);var f=i.position!=null,h=i.autoOverflowArea,v=void 0;if((h||f)&&(v=D_,i.layoutRect?v.copy(i.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(li,i,v):tp(li,i,v),a.x=li.x,a.y=li.y,o=li.align,s=li.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var d=void 0,y=void 0;c==="center"?(d=v.width*.5,y=v.height*.5):(d=Nn(c[0],v.width),y=Nn(c[1],v.height)),l=!0,a.originX=-a.x+d+(n?0:v.x),a.originY=-a.y+y+(n?0:v.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],l||(a.originX=-g[0],a.originY=-g[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=p.overflowRect=p.overflowRect||new W(0,0,0,0);a.getLocalTransform(da),ta(da,da),W.copy(m,v),m.applyTransform(da)}else p.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,T=void 0,w=void 0;_&&this.canBeInsideText()?(S=i.insideFill,T=i.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(T==null||T==="auto")&&(T=this.getInsideTextStroke(S),w=!0)):(S=i.outsideFill,T=i.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(T==null||T==="auto")&&(T=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==p.fill||T!==p.stroke||w!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=S,p.stroke=T,p.autoStroke=w,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=Qt,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ju:Qu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&sr(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,No(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},R(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(F(t))for(var i=t,n=pt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==xs)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Cs)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(xs,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===xs,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(st(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Wl("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,i,f),v&&v.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Qt),l}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&n.push(f)}var h=n[o-1],v=!!(h&&h.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,g=this._textGuide;y&&y.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Qt)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=st(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=st(n,t),o=st(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];R(e,a),a.textConfig&&(i=i||{},R(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=R({},n?this.textConfig:i.textConfig),R(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<Cs.length;f++){var h=Cs[f],v=a&&C_[h];e&&e[h]!=null?v?(l=!0,u[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(v?(l=!0,u[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(e||i)[d]:e||i)}l&&this._transitionState(t,u,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Wr,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),R(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Qt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new jl(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=st(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){Ds(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){Ds(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=Ds(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Qt;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var u=this[n]=[];s(this,u)}return this[n]},set:function(u){this[a]=u[0],this[o]=u[1],this[n]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();de(Fo,pe);de(Fo,Wr);function Ds(r,t,e,i,n){e=e||{};var a=[];ep(r,"",r,t,e,i,a,n);var o=a.length,s=!1,u=e.done,l=e.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&e.during&&a[0].during(function(d,y){e.during(y)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function Is(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function I_(r){return Wt(r[0])}function L_(r,t,e){if(Wt(t[e]))if(Wt(r[e])||(r[e]=[]),Xt(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),Is(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(I_(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?Is(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else Is(a,n,o);a.length=n.length}else r[e]=t[e]}function M_(r,t){return r===t||Wt(r)&&Wt(t)&&A_(r,t)}function A_(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function ep(r,t,e,i,n,a,o,s){for(var u=pt(i),l=n.duration,f=n.delay,h=n.additive,v=n.setToFinal,c=!F(a),d=r.animators,y=[],g=0;g<u.length;g++){var p=u[g],m=i[p];if(m!=null&&e[p]!=null&&(c||a[p]))if(F(m)&&!Wt(m)&&!ko(m)){if(t){s||(e[p]=m,r.updateDuringAnimation(t));continue}ep(r,p,e[p],m,n,a&&a[p],o,s)}else y.push(p);else s||(e[p]=m,r.updateDuringAnimation(t),y.push(p))}var _=y.length;if(!h&&_)for(var S=0;S<d.length;S++){var T=d[S];if(T.targetName===t){var w=T.stopTracks(y);if(w){var b=st(d,T);d.splice(b,1)}}}if(n.force||(y=Kt(y,function(L){return!M_(i[L],e[L])}),_=y.length),_>0||n.force&&!o.length){var C=void 0,x=void 0,D=void 0;if(s){x={},v&&(C={});for(var S=0;S<_;S++){var p=y[S];x[p]=e[p],v?C[p]=i[p]:e[p]=i[p]}}else if(v){D={};for(var S=0;S<_;S++){var p=y[S];D[p]=$a(e[p]),L_(e,i,p)}}var T=new jl(e,!1,!1,h?Kt(d,function(A){return A.targetName===t}):null);T.targetName=t,n.scope&&(T.scope=n.scope),v&&C&&T.whenWithKeys(0,C,y),D&&T.whenWithKeys(0,D,y),T.whenWithKeys(l??500,s?x:i,y).delay(f||0),r.addAnimator(T,t),o.push(T)}}var St=(function(r){N(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=st(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=st(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new W(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(W.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t})(Fo);St.prototype.type="group";var Qa={},rp={};function P_(r){delete rp[r]}function R_(r){if(!r)return!1;if(typeof r=="string")return vo(r,1)<Ku;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=vo(t[n].color,1);return e/=i,e<Ku}return!1}var E_=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new Qm,o=i.renderer||"canvas";Qa[o]||(o=pt(Qa)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Qa[o](e,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!G.node&&!G.worker&&!u?new w_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?G.touchEventsSupported:!!f,v=44,c;h&&(c=V(i.pointerSize,v)),this.handler=new Fd(a,s,l,s.root,c),this.animation=new d_({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=R_(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=Pi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Pi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof St&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,P_(this.id))},r})();function Eh(r,t){var e=new E_(Rd(),r,t);return rp[e.id]=e,e}function O_(r,t){Qa[r]=t}var Oh=1e-4,ip=20;function k_(r){return r.replace(/^\s+|\s+$/g,"")}var zn=Math.min,he=Math.max,Ye=Math.abs;function kh(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;{if(r===n)return o;if(r===a)return s}return(r-n)/u*l+o}var Ht=B_;function B_(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return N_(r,t,e)}function N_(r,t,e){return z(r)?k_(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function np(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ip),r=(+r).toFixed(t),e?r:+r}function Bh(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return z_(r)}function z_(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function F_(r,t){var e=Math.max(Bh(r),Bh(t)),i=r+t;return e>ip?i:np(i,e)}function ap(r){var t=Math.PI*2;return(r%t+t)%t}function po(r){return r>-Oh&&r<Oh}var H_=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ho(r){if(r instanceof Date)return r;if(z(r)){var t=H_.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function go(r){var t=parseFloat(r);return t==r&&(t!==0||!z(r)||r.indexOf("x")<=0)?t:NaN}function V_(r){return!isNaN(go(r))}function op(){return Math.round(Math.random()*9)}function sp(r,t){return t===0?r:sp(t,r%t)}function Nh(r,t){return r==null?t:t==null?r:r*t/sp(r,t)}var G_="[ECharts] ",U_=typeof console<"u"&&console.warn&&console.log;function Y_(r,t,e){U_&&console[r](G_+t)}function up(r,t){Y_("error",r)}function Vt(r){throw new Error(r)}var lp="series\0",W_="\0_ec_\0";function Bt(r){return r instanceof Array?r:r==null?[]:[r]}function tl(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var zh=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function ea(r){return F(r)&&!k(r)&&!(r instanceof Date)?r.value:r}function X_(r){return F(r)&&!(r instanceof Array)}function $_(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Y();I(t,function(u,l){if(!F(u)){t[l]=null;return}});var s=Z_(r,o,e);return(i||n)&&q_(s,r,o,t),i&&K_(s,t),i||n?Q_(s,t,n):a&&j_(s,t),J_(s),s}function Z_(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||Fn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function q_(r,t,e,i){I(i,function(n,a){if(!(!n||n.id==null)){var o=Ln(n.id),s=e.get(o);if(s!=null){var u=r[s];Ee(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function K_(r,t){I(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!Fn(e)&&!Fn(a)&&fp("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function Q_(r,t,e){I(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||Fn(n.existing)||n.existing&&i.id!=null&&!fp("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function j_(r,t){I(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function J_(r){var t=Y();I(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),I(r,function(e){var i=e.newOption;Ee(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),I(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(F(a)){if(o.name=a.name!=null?Ln(a.name):n?n.name:lp+i,n)o.id=Ln(n.id);else if(a.id!=null)o.id=Ln(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function fp(r,t,e){var i=ce(t[r],null),n=ce(e[r],null);return i!=null&&n!=null&&i===n}function Ln(r){return ce(r,"")}function ce(r,t){return r==null?t:z(r)?r:ut(r)||Pu(r)?r+"":t}function Jl(r){var t=r.name;return!!(t&&t.indexOf(lp))}function Fn(r){return r&&r.id!=null&&Ln(r.id).indexOf(W_)===0}function t0(r,t,e){I(r,function(i){var n=i.newOption;F(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=e0(t,n,i.existing,e))})}function e0(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function ra(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return k(t.dataIndex)?j(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return k(t.name)?j(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ft(){var r="__ec_inner_"+r0++;return function(t){return t[r]||(t[r]={})}}var r0=op();function Ls(r,t,e){var i=tf(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=e?e.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=ia(r,f,l,{useDefault:u===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function tf(r,t){var e;if(z(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=Y(),a={},o=!1;return I(e,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&st(t.includeMainTypes,f)<0)){o=o||!!f;var v=n.get(f)||n.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var ir={useDefault:!0,enableAll:!1,enableNone:!1};function ia(r,t,e,i){i=i||ir;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=r.getComponent(t))?[u]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s}function hp(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function i0(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function n0(r){return r==="auto"?G.domSupported?"html":"richText":r||"html"}var a0=".",br="___EC__COMPONENT__CONTAINER___",vp="___EC__EXTENDED_CLASS___";function Le(r){var t={main:"",sub:""};if(r){var e=r.split(a0);t.main=e[0]||"",t.sub=e[1]||""}return t}function o0(r){Ee(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function s0(r){return!!(r&&r[vp])}function ef(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return u0(i)?n=(function(a){N(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(e.$constructor||i).apply(this,arguments)},hm(n,this)),R(n.prototype,e),n[vp]=!0,n.extend=this.extend,n.superCall=h0,n.superApply=v0,n.superClass=i,n}}function u0(r){return Q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function cp(r,t){r.extend=t.extend}var l0=Math.round(Math.random()*10);function f0(r){var t=["__\0is_clz",l0++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function h0(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function v0(r,t,e){return this.superClass.prototype[t].apply(r,e)}function rf(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){o0(n),i.prototype.type=n;var a=Le(n);if(!a.sub)t[a.main]=i;else if(a.sub!==br){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[br]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=Le(i),a=[],o=t[n.main];return o&&o[br]?I(o,function(s,u){u!==br&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Le(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return I(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=Le(i),a=t[n.main];return a&&a[br]};function e(i){var n=t[i.main];return(!n||!n[br])&&(n=t[i.main]={},n[br]=!0),n}}function Hn(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var u=r[s][1];if(!(n&&st(n,u)>=0||a&&st(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var c0=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],d0=Hn(c0),p0=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return d0(this,t,e)},r})(),el=new Ni(50);function g0(r){if(typeof r=="string"){var t=el.get(r);return t&&t.image}else return r}function dp(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=el.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!Vo(t)&&a.pending.push(o)):(t=Ze.loadImage(r,Fh,Fh),t.__zrImageSrc=r,el.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Fh(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Vo(r){return r&&r.width&&r.height}var Ms=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function y0(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
|
|
3
|
+
`);a=pp(e,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)gp(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;r.text=o.join(`
|
|
4
|
+
`),r.isTruncated=s}function pp(r,t,e,i){i=i||{};var n=R({},i);e=V(e,"..."),n.maxIterations=V(i.maxIterations,2);var a=n.minChar=V(i.minChar,0),o=n.fontMeasureInfo=Ae(t),s=o.asciiCharWidth;n.placeholder=V(i.placeholder,"");for(var u=r=Math.max(0,r-1),l=0;l<a&&u>=s;l++)u-=s;var f=Pe(o,e);return f>u&&(e="",f=0),u=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=u,n.containerWidth=r,n}function gp(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Pe(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var u=s===0?m0(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,u),o=Pe(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function m0(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=Jd(e,r.charCodeAt(n));return n}function _0(r,t,e,i){var n=nf(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,f=a==="truncate",h=zo(l),v=V(t.lineHeight,h),c=t.lineOverflow==="truncate",d=!1,y=t.width;y==null&&e!=null&&(y=e-s);var g=t.height;g==null&&i!=null&&(g=i-u);var p;y!=null&&(a==="break"||a==="breakAll")?p=n?yp(n,t.font,y,a==="breakAll",0).lines:[]:p=n?n.split(`
|
|
5
|
+
`):[];var m=p.length*v;if(g==null&&(g=m),m>g&&c){var _=Math.floor(g/v);d=d||p.length>_,p=p.slice(0,_),m=p.length*v}if(n&&f&&y!=null)for(var S=pp(y,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),T={},w=0;w<p.length;w++)gp(T,p[w],S),p[w]=T.textLine,d=d||T.isTruncated;for(var b=g,C=0,x=Ae(l),w=0;w<p.length;w++)C=Math.max(Pe(x,p[w]),C);y==null&&(y=C);var D=y;return b+=u,D+=s,{lines:p,height:g,outerWidth:D,outerHeight:b,lineHeight:v,calculatedLineHeight:h,contentWidth:C,contentHeight:m,width:y,isTruncated:d}}var S0=(function(){function r(){}return r})(),Hh=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),w0=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function T0(r,t,e,i,n){var a=new w0,o=nf(r);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-u);var h=t.height;h==null&&i!=null&&(h=i-l);for(var v=t.overflow,c=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=Ms.lastIndex=0,y;(y=Ms.exec(o))!=null;){var g=y.index;g>d&&As(a,o.substring(d,g),t,c),As(a,y[2],t,c,y[1]),d=Ms.lastIndex}d<o.length&&As(a,o.substring(d,o.length),t,c);var p=[],m=0,_=0,S=v==="truncate",T=t.lineOverflow==="truncate",w={};function b(_e,Se,Ne){_e.width=Se,_e.lineHeight=Ne,m+=Ne,_=Math.max(_,Se)}t:for(var C=0;C<a.lines.length;C++){for(var x=a.lines[C],D=0,L=0,A=0;A<x.tokens.length;A++){var M=x.tokens[A],P=M.styleName&&t.rich[M.styleName]||{},O=M.textPadding=P.padding,B=O?O[1]+O[3]:0,$=M.font=P.font||t.font;M.contentHeight=zo($);var K=V(P.height,M.contentHeight);if(M.innerHeight=K,O&&(K+=O[0]+O[2]),M.height=K,M.lineHeight=Xe(P.lineHeight,t.lineHeight,K),M.align=P&&P.align||n,M.verticalAlign=P&&P.verticalAlign||"middle",T&&h!=null&&m+M.lineHeight>h){var J=a.lines.length;A>0?(x.tokens=x.tokens.slice(0,A),b(x,L,D),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<J;break t}var Z=P.width,gt=Z==null||Z==="auto";if(typeof Z=="string"&&Z.charAt(Z.length-1)==="%")M.percentWidth=Z,p.push(M),M.contentWidth=Pe(Ae($),M.text);else{if(gt){var et=P.backgroundColor,wt=et&&et.image;wt&&(wt=g0(wt),Vo(wt)&&(M.width=Math.max(M.width,wt.width*K/wt.height)))}var xt=S&&f!=null?f-L:null;xt!=null&&xt<M.width?!gt||xt<B?(M.text="",M.width=M.contentWidth=0):(y0(w,M.text,xt-B,$,t.ellipsis,{minChar:t.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=Pe(Ae($),M.text)):M.contentWidth=Pe(Ae($),M.text)}M.width+=B,L+=M.width,P&&(D=Math.max(D,M.lineHeight))}b(x,L,D)}a.outerWidth=a.width=V(f,_),a.outerHeight=a.height=V(h,m),a.contentHeight=m,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var C=0;C<p.length;C++){var M=p[C],me=M.percentWidth;M.width=parseInt(me,10)/100*a.width}return a}function As(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,u=o.font||e.font,l=!1,f,h;if(i){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Nn(o.width,i.width)+c;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
|
|
6
|
+
`),l=!0),i.accumWidth=d}else{var y=yp(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+c,h=y.linesWidths,f=y.lines}}f||(f=t.split(`
|
|
7
|
+
`));for(var g=Ae(u),p=0;p<f.length;p++){var m=f[p],_=new S0;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:Pe(g,m),!p&&!l){var S=(s[s.length-1]||(s[0]=new Hh)).tokens,T=S.length;T===1&&S[0].isLineHolder?S[0]=_:(m||!T||a)&&S.push(_)}else s.push(new Hh([_]))}}function b0(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var x0=Ui(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function C0(r){return b0(r)?!!x0[r]:!0}function yp(r,t,e,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=Ae(t),v=0;v<r.length;v++){var c=r.charAt(v);if(c===`
|
|
8
|
+
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=Jd(h,c.charCodeAt(0)),y=i?!1:!C0(c);if(a.length?f+d>e:n+f+d>e){f?(s||u)&&(y?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=d)):y?(a.push(u),o.push(l),u=c,l=d):(a.push(c),o.push(d));continue}f+=d,y?(u+=c,l+=d):(u&&(s+=u,u="",l=0),s+=c)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function Vh(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;W.set(Gh,zi(e,o,n),Qr(i,s,a),o,s),W.intersect(t,Gh,null,Uh);var u=Uh.outIntersectRect;r.outerWidth=u.width,r.outerHeight=u.height,r.baseX=zi(u.x,u.width,n,!0),r.baseY=Qr(u.y,u.height,a,!0)}}var Gh=new W(0,0,0,0),Uh={outIntersectRect:{},clamp:!0};function nf(r){return r!=null?r+="":r=""}function D0(r){var t=nf(r.text),e=r.font,i=Pe(Ae(e),t),n=zo(e);return rl(r,i,n,null)}function rl(r,t,e,i){var n=new W(zi(r.x||0,t,r.textAlign),Qr(r.y||0,e,r.textBaseline),t,e),a=i??(mp(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function mp(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var il="__zr_style_"+Math.round(Math.random()*10),jr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Go={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jr[il]=!0;var Yh=["z","z2","invisible"],I0=["invisible"],na=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=pt(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&L0(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new W(0,0,0,0)),i?W.applyTransform(e,n,i):e.copy(n),(o||s||u)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(u),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+u-o));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+l*2),e.height=Math.ceil(e.height+1+l*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new W(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:R(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=pn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&pn)},t.prototype.styleUpdated=function(){this.__dirty&=~pn},t.prototype.createStyle=function(e){return Bo(jr,e)},t.prototype.useStyle=function(e){e[il]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[il]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Yh)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.style?o?a?l=i.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,i.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(l,i.style)):u&&(l=n.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=pt(f),v=0;v<h.length;v++){var c=h[v];c in l&&(l[c]=l[c],this.style[c]=f[c])}for(var d=pt(l),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var y=this.__inHover?I0:Yh,v=0;v<y.length;v++){var c=y[v];i&&i[c]!=null?this[c]=i[c]:u&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return R(e,i),e},t.prototype.getAnimationStyleProps=function(){return Go},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Qt|pn})(),t})(Fo),Ps=new W(0,0,0,0),Rs=new W(0,0,0,0);function L0(r,t,e){return Ps.copy(r.getBoundingRect()),r.transform&&Ps.applyTransform(r.transform),Rs.width=t,Rs.height=e,!Ps.intersect(Rs)}var Gt=Math.min,Ut=Math.max,Es=Math.sin,Os=Math.cos,xr=Math.PI*2,pa=ei(),ga=ei(),ya=ei();function M0(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],u=1;u<r.length;u++)i=r[u],n=Gt(n,i[0]),a=Ut(a,i[0]),o=Gt(o,i[1]),s=Ut(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function Wh(r,t,e,i,n,a){n[0]=Gt(r,e),n[1]=Gt(t,i),a[0]=Ut(r,e),a[1]=Ut(t,i)}var Xh=[],$h=[];function A0(r,t,e,i,n,a,o,s,u,l){var f=Wd,h=Ot,v=f(r,e,n,o,Xh);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var c=0;c<v;c++){var d=h(r,e,n,o,Xh[c]);u[0]=Gt(d,u[0]),l[0]=Ut(d,l[0])}v=f(t,i,a,s,$h);for(var c=0;c<v;c++){var y=h(t,i,a,s,$h[c]);u[1]=Gt(y,u[1]),l[1]=Ut(y,l[1])}u[0]=Gt(r,u[0]),l[0]=Ut(r,l[0]),u[0]=Gt(o,u[0]),l[0]=Ut(o,l[0]),u[1]=Gt(t,u[1]),l[1]=Ut(t,l[1]),u[1]=Gt(s,u[1]),l[1]=Ut(s,l[1])}function P0(r,t,e,i,n,a,o,s){var u=Xd,l=kt,f=Ut(Gt(u(r,e,n),1),0),h=Ut(Gt(u(t,i,a),1),0),v=l(r,e,n,f),c=l(t,i,a,h);o[0]=Gt(r,n,v),o[1]=Gt(t,a,c),s[0]=Ut(r,n,v),s[1]=Ut(t,a,c)}function R0(r,t,e,i,n,a,o,s,u){var l=Li,f=Mi,h=Math.abs(n-a);if(h%xr<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,u[0]=r+e,u[1]=t+i;return}if(pa[0]=Os(n)*e+r,pa[1]=Es(n)*i+t,ga[0]=Os(a)*e+r,ga[1]=Es(a)*i+t,l(s,pa,ga),f(u,pa,ga),n=n%xr,n<0&&(n=n+xr),a=a%xr,a<0&&(a=a+xr),n>a&&!o?a+=xr:n<a&&o&&(n+=xr),o){var v=a;a=n,n=v}for(var c=0;c<a;c+=Math.PI/2)c>n&&(ya[0]=Os(c)*e+r,ya[1]=Es(c)*i+t,l(s,ya,s),f(u,ya,u))}var tt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Cr=[],Dr=[],we=[],Ke=[],Te=[],be=[],ks=Math.min,Bs=Math.max,Ir=Math.cos,Lr=Math.sin,ze=Math.abs,nl=Math.PI,er=nl*2,Ns=typeof Float32Array<"u",Zi=[];function zs(r){var t=Math.round(r/nl*1e8)/1e8;return t%2*nl}function E0(r,t){var e=zs(r[0]);e<0&&(e+=er);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=er?n=e+er:t&&e-n>=er?n=e-er:!t&&e>n?n=e+(er-zs(e-n)):t&&e<n&&(n=e-(er-zs(n-e))),r[0]=e,r[1]=n}var Fi=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=ze(i/co/t)||0,this._uy=ze(i/co/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(tt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=ze(t-this._xi),n=ze(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(tt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(tt.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(tt.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Zi[0]=n,Zi[1]=a,E0(Zi,o),n=Zi[0],a=Zi[1];var s=a-n;return this.addData(tt.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Ir(a)*i+t,this._yi=Lr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(tt.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(tt.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&Ns&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(Ns&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var u=t[a].data,s=0;s<u.length;s++)this.data[n++]=u[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ns&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){we[0]=we[1]=Te[0]=Te[1]=Number.MAX_VALUE,Ke[0]=Ke[1]=be[0]=be[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(e=t[o],i=t[o+1],n=e,a=i),s){case tt.M:e=n=t[o++],i=a=t[o++],Te[0]=n,Te[1]=a,be[0]=n,be[1]=a;break;case tt.L:Wh(e,i,t[o],t[o+1],Te,be),e=t[o++],i=t[o++];break;case tt.C:A0(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Te,be),e=t[o++],i=t[o++];break;case tt.Q:P0(e,i,t[o++],t[o++],t[o],t[o+1],Te,be),e=t[o++],i=t[o++];break;case tt.A:var l=t[o++],f=t[o++],h=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var y=!t[o++];u&&(n=Ir(c)*h+l,a=Lr(c)*v+f),R0(l,f,h,v,c,d,y,Te,be),e=Ir(d)*h+l,i=Lr(d)*v+f;break;case tt.R:n=e=t[o++],a=i=t[o++];var g=t[o++],p=t[o++];Wh(n,a,n+g,a+p,Te,be);break;case tt.Z:e=n,i=a;break}Li(we,we,Te),Mi(Ke,Ke,be)}return o===0&&(we[0]=we[1]=Ke[0]=Ke[1]=0),new W(we[0],we[1],Ke[0]-we[0],Ke[1]-we[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,v=0;v<e;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,u=o);var y=-1;switch(c){case tt.M:a=s=t[v++],o=u=t[v++];break;case tt.L:{var g=t[v++],p=t[v++],m=g-a,_=p-o;(ze(m)>i||ze(_)>n||v===e-1)&&(y=Math.sqrt(m*m+_*_),a=g,o=p);break}case tt.C:{var S=t[v++],T=t[v++],g=t[v++],p=t[v++],w=t[v++],b=t[v++];y=Jm(a,o,S,T,g,p,w,b,10),a=w,o=b;break}case tt.Q:{var S=t[v++],T=t[v++],g=t[v++],p=t[v++];y=r_(a,o,S,T,g,p,10),a=g,o=p;break}case tt.A:var C=t[v++],x=t[v++],D=t[v++],L=t[v++],A=t[v++],M=t[v++],P=M+A;v+=1,d&&(s=Ir(A)*D+C,u=Lr(A)*L+x),y=Bs(D,L)*ks(er,Math.abs(M)),a=Ir(P)*D+C,o=Lr(P)*L+x;break;case tt.R:{s=a=t[v++],u=o=t[v++];var O=t[v++],B=t[v++];y=O*2+B*2;break}case tt.Z:{var m=s-a,_=u-o;y=Math.sqrt(m*m+_*_),a=s,o=u;break}}y>=0&&(l[h++]=y,f+=y)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,f,h,v,c=e<1,d,y,g=0,p=0,m,_=0,S,T;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=e*y,!m)))t:for(var w=0;w<o;){var b=i[w++],C=w===1;switch(C&&(l=i[w],f=i[w+1],s=l,u=f),b!==tt.L&&_>0&&(t.lineTo(S,T),_=0),b){case tt.M:s=l=i[w++],u=f=i[w++],t.moveTo(l,f);break;case tt.L:{h=i[w++],v=i[w++];var x=ze(h-l),D=ze(v-f);if(x>n||D>a){if(c){var L=d[p++];if(g+L>m){var A=(m-g)/L;t.lineTo(l*(1-A)+h*A,f*(1-A)+v*A);break t}g+=L}t.lineTo(h,v),l=h,f=v,_=0}else{var M=x*x+D*D;M>_&&(S=h,T=v,_=M)}break}case tt.C:{var P=i[w++],O=i[w++],B=i[w++],$=i[w++],K=i[w++],J=i[w++];if(c){var L=d[p++];if(g+L>m){var A=(m-g)/L;ho(l,P,B,K,A,Cr),ho(f,O,$,J,A,Dr),t.bezierCurveTo(Cr[1],Dr[1],Cr[2],Dr[2],Cr[3],Dr[3]);break t}g+=L}t.bezierCurveTo(P,O,B,$,K,J),l=K,f=J;break}case tt.Q:{var P=i[w++],O=i[w++],B=i[w++],$=i[w++];if(c){var L=d[p++];if(g+L>m){var A=(m-g)/L;kn(l,P,B,A,Cr),kn(f,O,$,A,Dr),t.quadraticCurveTo(Cr[1],Dr[1],Cr[2],Dr[2]);break t}g+=L}t.quadraticCurveTo(P,O,B,$),l=B,f=$;break}case tt.A:var Z=i[w++],gt=i[w++],et=i[w++],wt=i[w++],xt=i[w++],me=i[w++],_e=i[w++],Se=!i[w++],Ne=et>wt?et:wt,$t=ze(et-wt)>.001,Ct=xt+me,U=!1;if(c){var L=d[p++];g+L>m&&(Ct=xt+me*(m-g)/L,U=!0),g+=L}if($t&&t.ellipse?t.ellipse(Z,gt,et,wt,_e,xt,Ct,Se):t.arc(Z,gt,Ne,xt,Ct,Se),U)break t;C&&(s=Ir(xt)*et+Z,u=Lr(xt)*wt+gt),l=Ir(Ct)*et+Z,f=Lr(Ct)*wt+gt;break;case tt.R:s=l=i[w],u=f=i[w+1],h=i[w++],v=i[w++];var q=i[w++],gr=i[w++];if(c){var L=d[p++];if(g+L>m){var Pt=m-g;t.moveTo(h,v),t.lineTo(h+ks(Pt,q),v),Pt-=q,Pt>0&&t.lineTo(h+q,v+ks(Pt,gr)),Pt-=gr,Pt>0&&t.lineTo(h+Bs(q-Pt,0),v+gr),Pt-=q,Pt>0&&t.lineTo(h,v+Bs(gr-Pt,0));break t}g+=L}t.rect(h,v,q,gr);break;case tt.Z:if(c){var L=d[p++];if(g+L>m){var A=(m-g)/L;t.lineTo(l*(1-A)+s*A,f*(1-A)+u*A);break t}g+=L}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=tt,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function fi(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)u=(t-i)/(r-e),l=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function O0(r,t,e,i,n,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||l>r+h&&l>e+h&&l>n+h&&l>o+h||l<r-h&&l<e-h&&l<n-h&&l<o-h)return!1;var v=jm(r,t,e,i,n,a,o,s,l,f);return v<=h/2}function k0(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>r+l&&s>e+l&&s>n+l||s<r-l&&s<e-l&&s<n-l)return!1;var f=e_(r,t,e,i,n,a,s,u);return f<=l/2}var Zh=Math.PI*2;function ma(r){return r%=Zh,r<0&&(r+=Zh),r}var qi=Math.PI*2;function B0(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=r,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>e||f+l<e)return!1;if(Math.abs(i-n)%qi<1e-4)return!0;if(a){var h=i;i=ma(n),n=ma(h)}else i=ma(i),n=ma(n);i>n&&(n+=qi);var v=Math.atan2(u,s);return v<0&&(v+=qi),v>=i&&v<=n||v+qi>=i&&v+qi<=n}function Mr(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var u=o*(e-r)+r;return u===n?1/0:u>n?s:0}var Qe=Fi.CMD,Ar=Math.PI*2,N0=1e-4;function z0(r,t){return Math.abs(r-t)<N0}var Et=[-1,-1,-1],ne=[-1,-1];function F0(){var r=ne[0];ne[0]=ne[1],ne[1]=r}function H0(r,t,e,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var f=Yd(t,i,a,s,l,Et);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,y=0;y<f;y++){var g=Et[y],p=g===0||g===1?.5:1,m=Ot(r,e,n,o,g);m<u||(v<0&&(v=Wd(t,i,a,s,ne),ne[1]<ne[0]&&v>1&&F0(),c=Ot(t,i,a,s,ne[0]),v>1&&(d=Ot(t,i,a,s,ne[1]))),v===2?g<ne[0]?h+=c<t?p:-p:g<ne[1]?h+=d<c?p:-p:h+=s<d?p:-p:g<ne[0]?h+=c<t?p:-p:h+=s<c?p:-p)}return h}function V0(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=t_(t,i,a,s,Et);if(u===0)return 0;var l=Xd(t,i,a);if(l>=0&&l<=1){for(var f=0,h=kt(t,i,a,l),v=0;v<u;v++){var c=Et[v]===0||Et[v]===1?.5:1,d=kt(r,e,n,Et[v]);d<o||(Et[v]<l?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=Et[0]===0||Et[0]===1?.5:1,d=kt(r,e,n,Et[0]);return d<o?0:a<t?c:-c}}function G0(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Et[0]=-u,Et[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Ar-1e-4){i=0,n=Ar;var f=a?1:-1;return o>=Et[0]+r&&o<=Et[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Ar,n+=Ar);for(var v=0,c=0;c<2;c++){var d=Et[c];if(d+r>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=Ar+y),(y>=i&&y<=n||y+Ar>=i&&y+Ar<=n)&&(y>Math.PI/2&&y<Math.PI*1.5&&(f=-f),v+=f)}}return v}function _p(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,u=0,l=0,f=0,h=0,v,c,d=0;d<o;){var y=a[d++],g=d===1;switch(y===Qe.M&&d>1&&(e||(s+=Mr(u,l,f,h,i,n))),g&&(u=a[d],l=a[d+1],f=u,h=l),y){case Qe.M:f=a[d++],h=a[d++],u=f,l=h;break;case Qe.L:if(e){if(fi(u,l,a[d],a[d+1],t,i,n))return!0}else s+=Mr(u,l,a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Qe.C:if(e){if(O0(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=H0(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Qe.Q:if(e){if(k0(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=V0(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Qe.A:var p=a[d++],m=a[d++],_=a[d++],S=a[d++],T=a[d++],w=a[d++];d+=1;var b=!!(1-a[d++]);v=Math.cos(T)*_+p,c=Math.sin(T)*S+m,g?(f=v,h=c):s+=Mr(u,l,v,c,i,n);var C=(i-p)*S/_+p;if(e){if(B0(p,m,S,T,T+w,b,t,C,n))return!0}else s+=G0(p,m,S,T,T+w,b,C,n);u=Math.cos(T+w)*_+p,l=Math.sin(T+w)*S+m;break;case Qe.R:f=u=a[d++],h=l=a[d++];var x=a[d++],D=a[d++];if(v=f+x,c=h+D,e){if(fi(f,h,v,h,t,i,n)||fi(v,h,v,c,t,i,n)||fi(v,c,f,c,t,i,n)||fi(f,c,f,h,t,i,n))return!0}else s+=Mr(v,h,v,c,i,n),s+=Mr(f,c,f,h,i,n);break;case Qe.Z:if(e){if(fi(u,l,f,h,t,i,n))return!0}else s+=Mr(u,l,f,h,i,n);u=f,l=h;break}}return!e&&!z0(l,h)&&(s+=Mr(u,l,f,h,i,n)||0),s!==0}function U0(r,t,e){return _p(r,0,!1,t,e)}function Y0(r,t,e,i){return _p(r,t,!0,e,i)}var Sp=ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},jr),W0={style:ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Go.style)},Fs=Bn.concat(["invisible","culling","z","z2","zlevel","parent"]),lt=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(u){e.buildPath(u,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Fs.length;++s)n[Fs[s]]=this[Fs[s]];n.__dirty|=Qt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=pt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?R(this.style,s):this.useStyle(s):o==="shape"?R(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(z(e)){var i=vo(e,0);return i>.5?Qu:i>.2?T_:ju}else if(e)return ju}return Qu},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=vo(e,0)<Ku;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Ii},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Fi(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ii)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),Y0(s,u/l,e,i)))return!0}if(this.hasFill())return U0(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ii,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:R(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ii)},t.prototype.createStyle=function(e){return Bo(Sp,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=R({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=R({},n.shape),R(l,i.shape)):(l=R({},a?this.shape:n.shape),R(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=R({},this.shape);for(var f={},h=pt(l),v=0;v<h.length;v++){var c=h[v];typeof l[c]=="object"?this.shape[c]=l[c]:f[c]=l[c]}this._transitionState(e,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return W0},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){N(o,a);function o(s){var u=a.call(this,s)||this;return e.init&&e.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return X(e.style)},o.prototype.getDefaultShape=function(){return X(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Qt|pn|Ii})(),t})(na),X0=ct({strokeFirst:!0,font:fr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Sp),yo=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return mp(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Bo(X0,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=D0(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(na);yo.prototype.type="tspan";var $0=ct({x:0,y:0},jr),Z0={style:ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Go.style)};function q0(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var dr=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Bo($0,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=q0(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Z0},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new W(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(na);dr.prototype.type="image";function K0(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>n&&(h=s+u,s*=n/h,u*=n/h),l+f>n&&(h=l+f,l*=n/h,f*=n/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-u,i),u!==0&&r.arc(e+n-u,i+u,u,-Math.PI/2,0),r.lineTo(e+n,i+a-l),l!==0&&r.arc(e+n-l,i+a-l,l,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Ri=Math.round;function wp(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Ri(i*2)===Ri(n*2)&&(r.x1=r.x2=Xr(i,s,!0)),Ri(a*2)===Ri(o*2)&&(r.y1=r.y2=Xr(a,s,!0))),r}}function Tp(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Xr(i,s,!0),r.y=Xr(n,s,!0),r.width=Math.max(Xr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Xr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Xr(r,t,e){if(!t)return r;var i=Ri(r*2);return(i+Ri(t))%2===0?i/2:(i+(e?1:-1))/2}var Q0=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),j0={},It=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Q0},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=Tp(j0,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?K0(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(lt);It.prototype.type="rect";var qh={fill:"#000"},Kh=2,xe={},J0={style:ct({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Go.style)},Nt=(function(r){N(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=qh,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,nS(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new W(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(e.copy(u),e.applyTransform(l),a=a||e.clone(),a.union(e)):(a=a||u.clone(),a.union(u))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||qh},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return R(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=pt(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},R(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return J0},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||fr,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,u=e.align||a.align||"left",l=e.verticalAlign||a.verticalAlign||"top";Vh(xe,a.overflowRect,o,s,u,l),o=xe.baseX,s=xe.baseY;var f=iv(e),h=_0(f,e,xe.outerWidth,xe.outerHeight),v=Hs(e),c=!!e.backgroundColor,d=h.outerHeight,y=h.outerWidth,g=h.lines,p=h.lineHeight;this.isTruncated=!!h.isTruncated;var m=o,_=Qr(s,h.contentHeight,l);if(v||n){var S=zi(o,y,u),T=Qr(s,d,l);v&&this._renderBackground(e,e,S,T,y,d)}_+=p/2,n&&(m=rv(o,u,n),l==="top"?_+=n[0]:l==="bottom"&&(_-=n[2]));for(var w=0,b=!1,C=!1,x=ev("fill"in e?e.fill:(C=!0,a.fill)),D=tv("stroke"in e?e.stroke:!c&&(!a.autoStroke||C)?(w=Kh,b=!0,a.stroke):null),L=e.textShadowBlur>0,A=0;A<g.length;A++){var M=this._getOrCreateChild(yo),P=M.createStyle();M.useStyle(P),P.text=g[A],P.x=m,P.y=_,P.textAlign=u,P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,L&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=D,P.fill=x,D&&(P.lineWidth=e.lineWidth||w,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=i,jh(P,e),_+=p,M.setBoundingRect(rl(P,h.contentWidth,h.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;Vh(xe,i.overflowRect,o,s,n,a),o=xe.baseX,s=xe.baseY;var u=iv(e),l=T0(u,e,xe.outerWidth,xe.outerHeight,n),f=l.width,h=l.outerWidth,v=l.outerHeight,c=e.padding;this.isTruncated=!!l.isTruncated;var d=zi(o,h,n),y=Qr(s,v,a),g=d,p=y;c&&(g+=c[3],p+=c[0]);var m=g+f;Hs(e)&&this._renderBackground(e,e,d,y,h,v);for(var _=!!e.backgroundColor,S=0;S<l.lines.length;S++){for(var T=l.lines[S],w=T.tokens,b=w.length,C=T.lineHeight,x=T.width,D=0,L=g,A=m,M=b-1,P=void 0;D<b&&(P=w[D],!P.align||P.align==="left");)this._placeToken(P,e,C,p,L,"left",_),x-=P.width,L+=P.width,D++;for(;M>=0&&(P=w[M],P.align==="right");)this._placeToken(P,e,C,p,A,"right",_),x-=P.width,A-=P.width,M--;for(L+=(f-(L-g)-(m-A)-x)/2;D<=M;)P=w[D],this._placeToken(P,e,C,p,L+P.width/2,"center",_),L+=P.width,D++;p+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,u){var l=i.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var v=!e.isLineHolder&&Hs(l);v&&this._renderBackground(l,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!l.backgroundColor,d=e.textPadding;d&&(o=rv(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var y=this._getOrCreateChild(yo),g=y.createStyle();y.useStyle(g);var p=this._defaultStyle,m=!1,_=0,S=!1,T=ev("fill"in l?l.fill:"fill"in i?i.fill:(m=!0,p.fill)),w=tv("stroke"in l?l.stroke:"stroke"in i?i.stroke:!c&&!u&&(!p.autoStroke||m)?(_=Kh,S=!0,p.stroke):null),b=l.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,b&&(g.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,g.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||fr,g.opacity=Xe(l.opacity,i.opacity,1),jh(g,l),w&&(g.lineWidth=Xe(l.lineWidth,i.lineWidth,_),g.lineDash=V(l.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=w),T&&(g.fill=T),y.setBoundingRect(rl(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,v=u&&!h,c=e.borderRadius,d=this,y,g;if(v||e.lineHeight||l&&f){y=this._getOrCreateChild(It),y.useStyle(y.createStyle()),y.style.fill=null;var p=y.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,y.dirtyShape()}if(v){var m=y.style;m.fill=u||null,m.fillOpacity=V(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(dr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=u.image,_.x=n,_.y=a,_.width=o,_.height=s}if(l&&f){var m=y.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=V(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(y||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Xe(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return iS(e)&&(i=[e.fontStyle,e.fontWeight,rS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Ie(i)||e.textFont||e.font},t})(na),tS={left:!0,right:1,center:1},eS={top:1,bottom:1,middle:1},Qh=["fontStyle","fontWeight","fontSize","fontFamily"];function rS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Gl+"px":r+"px"}function jh(r,t){for(var e=0;e<Qh.length;e++){var i=Qh[e],n=t[i];n!=null&&(r[i]=n)}}function iS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function nS(r){return Jh(r),I(r.rich,Jh),r}function Jh(r){if(r){r.font=Nt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||tS[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||eS[e]?e:"top";var i=r.padding;i&&(r.padding=$l(r.padding))}}function tv(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function ev(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function rv(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function iv(r){var t=r.text;return t!=null&&(t+=""),t}function Hs(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var rt=ft(),aS=function(r,t,e,i){if(i){var n=rt(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=rt(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},nv=1,av={},bp=ft(),af=ft(),xp=0,of=1,sf=2,Oe=["emphasis","blur","select"],ov=["normal","emphasis","blur","select"],oS=10,sS=9,Jr="highlight",ja="downplay",mo="select",al="unselect",_o="toggleSelect",uf="selectchanged";function hi(r){return r!=null&&r!=="none"}function Uo(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Cp(r){Uo(r,"emphasis",sf)}function Dp(r){r.hoverState===sf&&Uo(r,"normal",xp)}function lf(r){Uo(r,"blur",of)}function Ip(r){r.hoverState===of&&Uo(r,"normal",xp)}function uS(r){r.selected=!0}function lS(r){r.selected=!1}function sv(r,t,e){t(r,e)}function qe(r,t,e){sv(r,t,e),r.isGroup&&r.traverse(function(i){sv(i,t,e)})}function fS(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var l=r.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(e)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function hS(r,t,e,i){var n=e&&st(e,"select")>=0,a=!1;if(r instanceof lt){var o=bp(r),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(hi(s)||hi(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=R({},i),l=R({},l),l.fill=s):!hi(l.fill)&&hi(s)?(a=!0,i=R({},i),l=R({},l),l.fill=Th(s)):!hi(l.stroke)&&hi(u)&&(a||(i=R({},i),l=R({},l)),l.stroke=Th(u)),i.style=l}}if(i&&i.z2==null){a||(i=R({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??oS)}return i}function vS(r,t,e){if(e&&e.z2==null){e=R({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??sS)}return e}function cS(r,t,e){var i=st(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:fS(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=R({},e),o=R({opacity:i?n:a.opacity*.1},o),e.style=o),e}function Vs(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return hS(this,r,t,e);if(r==="blur")return cS(this,r,e);if(r==="select")return vS(this,r,e)}return e}function dS(r){r.stateProxy=Vs;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Vs),e&&(e.stateProxy=Vs)}function uv(r,t){!Pp(r,t)&&!r.__highByOuter&&qe(r,Cp)}function lv(r,t){!Pp(r,t)&&!r.__highByOuter&&qe(r,Dp)}function Vn(r,t){r.__highByOuter|=1<<(t||0),qe(r,Cp)}function Gn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&qe(r,Dp)}function pS(r){qe(r,lf)}function Lp(r){qe(r,Ip)}function Mp(r){qe(r,uS)}function Ap(r){qe(r,lS)}function Pp(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Rp(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=af(a),s=n==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){Ip(l)}),s&&e.push(a)),o.isBlured=!1}),I(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function ol(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var v=l.getItemGraphicEl(f[h]);v&&Lp(v)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!v||t==="series"&&f)){var c=i.getViewOfSeriesModel(l);if(c.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||lf(g)}),Wt(t))a(l.getData(),t);else if(F(t))for(var d=pt(t),y=0;y<d.length;y++)a(l.getData(d[y]),t[d[y]]);u.push(l),af(l).isBlured=!0}}),n.eachComponent(function(l,f){if(l!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,n)}})}}function sl(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){af(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){lf(a)})}}}function gS(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=ra(n,t);a=(k(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=rt(o);ol(i,l.focus,l.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&ol(i,f,h,e)}}}function ff(r,t,e,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),u,l=0;l<s.length;l++)if(rt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function yS(r,t,e){var i=rt(r),n=ff(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&sl(i.componentMainType,i.componentIndex,e),I(a,function(s){return uv(s,t)})):(ol(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&sl(i.componentMainType,i.componentIndex,e),uv(r,t))}function mS(r,t,e){Rp(e);var i=rt(r),n=ff(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?I(n,function(a){return lv(a,t)}):lv(r,t)}function _S(r,t,e){if(fl(t)){var i=t.dataType,n=r.getData(i),a=ra(n,t);k(a)||(a=[a]),r[t.type===_o?"toggleSelect":t.type===mo?"select":"unselect"](a,i)}}function fv(r){var t=r.getAllData();I(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?Mp(a):Ap(a)})})}function SS(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();I(i,function(n){n.data;var a=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function ul(r,t,e){Op(r,!0),qe(r,dS),TS(r,t,e)}function wS(r){Op(r,!1)}function Ep(r,t,e,i){i?wS(r):ul(r,t,e)}function TS(r,t,e){var i=rt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}function Op(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function ll(r){return!!(r&&r.__highDownDispatcher)}function bS(r){var t=av[r];return t==null&&nv<=32&&(t=av[r]=nv++),t}function fl(r){var t=r.type;return t===mo||t===al||t===_o}function hv(r){var t=r.type;return t===Jr||t===ja}function xS(r){var t=bp(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var vi=Fi.CMD,CS=[[],[],[]],vv=Math.sqrt,DS=Math.atan2;function IS(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,u,l,f=vi.M,h=vi.C,v=vi.L,c=vi.R,d=vi.A,y=vi.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case v:a=1;break;case h:a=3;break;case y:a=2;break;case d:var g=t[4],p=t[5],m=vv(t[0]*t[0]+t[1]*t[1]),_=vv(t[2]*t[2]+t[3]*t[3]),S=DS(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=p,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case c:l[0]=e[o++],l[1]=e[o++],jt(l,l,t),e[s++]=l[0],e[s++]=l[1],l[0]+=e[o++],l[1]+=e[o++],jt(l,l,t),e[s++]=l[0],e[s++]=l[1]}for(u=0;u<a;u++){var T=CS[u];T[0]=e[o++],T[1]=e[o++],jt(T,T,t),e[s++]=T[0],e[s++]=T[1]}}r.increaseVersion()}}var Gs=Math.sqrt,_a=Math.sin,Sa=Math.cos,Ki=Math.PI;function cv(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function hl(r,t){return(r[0]*t[0]+r[1]*t[1])/(cv(r)*cv(t))}function dv(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(hl(r,t))}function pv(r,t,e,i,n,a,o,s,u,l,f){var h=u*(Ki/180),v=Sa(h)*(r-e)/2+_a(h)*(t-i)/2,c=-1*_a(h)*(r-e)/2+Sa(h)*(t-i)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Gs(d),s*=Gs(d));var y=(n===a?-1:1)*Gs((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=y*o*c/s,p=y*-s*v/o,m=(r+e)/2+Sa(h)*g-_a(h)*p,_=(t+i)/2+_a(h)*g+Sa(h)*p,S=dv([1,0],[(v-g)/o,(c-p)/s]),T=[(v-g)/o,(c-p)/s],w=[(-1*v-g)/o,(-1*c-p)/s],b=dv(T,w);if(hl(T,w)<=-1&&(b=Ki),hl(T,w)>=1&&(b=0),b<0){var C=Math.round(b/Ki*1e6)/1e6;b=Ki*2+C%2*Ki}f.addData(l,m,_,o,s,S,b,h,a)}var LS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,MS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function AS(r){var t=new Fi;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=Fi.CMD,u=r.match(LS);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),v=void 0,c=f.match(MS)||[],d=c.length,y=0;y<d;y++)c[y]=parseFloat(c[y]);for(var g=0;g<d;){var p=void 0,m=void 0,_=void 0,S=void 0,T=void 0,w=void 0,b=void 0,C=e,x=i,D=void 0,L=void 0;switch(h){case"l":e+=c[g++],i+=c[g++],v=s.L,t.addData(v,e,i);break;case"L":e=c[g++],i=c[g++],v=s.L,t.addData(v,e,i);break;case"m":e+=c[g++],i+=c[g++],v=s.M,t.addData(v,e,i),n=e,a=i,h="l";break;case"M":e=c[g++],i=c[g++],v=s.M,t.addData(v,e,i),n=e,a=i,h="L";break;case"h":e+=c[g++],v=s.L,t.addData(v,e,i);break;case"H":e=c[g++],v=s.L,t.addData(v,e,i);break;case"v":i+=c[g++],v=s.L,t.addData(v,e,i);break;case"V":i=c[g++],v=s.L,t.addData(v,e,i);break;case"C":v=s.C,t.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),e=c[g-2],i=c[g-1];break;case"c":v=s.C,t.addData(v,c[g++]+e,c[g++]+i,c[g++]+e,c[g++]+i,c[g++]+e,c[g++]+i),e+=c[g-2],i+=c[g-1];break;case"S":p=e,m=i,D=t.len(),L=t.data,o===s.C&&(p+=e-L[D-4],m+=i-L[D-3]),v=s.C,C=c[g++],x=c[g++],e=c[g++],i=c[g++],t.addData(v,p,m,C,x,e,i);break;case"s":p=e,m=i,D=t.len(),L=t.data,o===s.C&&(p+=e-L[D-4],m+=i-L[D-3]),v=s.C,C=e+c[g++],x=i+c[g++],e+=c[g++],i+=c[g++],t.addData(v,p,m,C,x,e,i);break;case"Q":C=c[g++],x=c[g++],e=c[g++],i=c[g++],v=s.Q,t.addData(v,C,x,e,i);break;case"q":C=c[g++]+e,x=c[g++]+i,e+=c[g++],i+=c[g++],v=s.Q,t.addData(v,C,x,e,i);break;case"T":p=e,m=i,D=t.len(),L=t.data,o===s.Q&&(p+=e-L[D-4],m+=i-L[D-3]),e=c[g++],i=c[g++],v=s.Q,t.addData(v,p,m,e,i);break;case"t":p=e,m=i,D=t.len(),L=t.data,o===s.Q&&(p+=e-L[D-4],m+=i-L[D-3]),e+=c[g++],i+=c[g++],v=s.Q,t.addData(v,p,m,e,i);break;case"A":_=c[g++],S=c[g++],T=c[g++],w=c[g++],b=c[g++],C=e,x=i,e=c[g++],i=c[g++],v=s.A,pv(C,x,e,i,w,b,_,S,T,v,t);break;case"a":_=c[g++],S=c[g++],T=c[g++],w=c[g++],b=c[g++],C=e,x=i,e+=c[g++],i+=c[g++],v=s.A,pv(C,x,e,i,w,b,_,S,T,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),e=n,i=a),o=v}return t.toStatic(),t}var kp=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(lt);function Bp(r){return r.setData!=null}function Np(r,t){var e=AS(r),i=R({},t);return i.buildPath=function(n){var a=Bp(n);if(a&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&e.rebuildPath(o,1)}},i.applyTransform=function(n){IS(e,n),this.dirtyShape()},i}function PS(r,t){return new kp(Np(r,t))}function RS(r,t){var e=Np(r,t),i=(function(n){N(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(kp);return i}function ES(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new lt(t);return o.createPathProxy(),o.buildPath=function(s){if(Bp(s)){s.appendPath(e);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var OS=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Yo=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new OS},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(lt);Yo.prototype.type="circle";var kS=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),hf=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kS},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),e.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),e.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),e.closePath()},t})(lt);hf.prototype.type="ellipse";var zp=Math.PI,Us=zp*2,Pr=Math.sin,ci=Math.cos,BS=Math.acos,Lt=Math.atan2,gv=Math.abs,Mn=Math.sqrt,yn=Math.max,Ce=Math.min,ue=1e-4;function NS(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,v=h*u-f*l;if(!(v*v<ue))return v=(f*(t-a)-h*(r-n))/v,[r+v*u,t+v*l]}function wa(r,t,e,i,n,a,o){var s=r-e,u=t-i,l=(o?a:-a)/Mn(s*s+u*u),f=l*u,h=-l*s,v=r+f,c=t+h,d=e+f,y=i+h,g=(v+d)/2,p=(c+y)/2,m=d-v,_=y-c,S=m*m+_*_,T=n-a,w=v*y-d*c,b=(_<0?-1:1)*Mn(yn(0,T*T*S-w*w)),C=(w*_-m*b)/S,x=(-w*m-_*b)/S,D=(w*_+m*b)/S,L=(-w*m+_*b)/S,A=C-g,M=x-p,P=D-g,O=L-p;return A*A+M*M>P*P+O*O&&(C=D,x=L),{cx:C,cy:x,x0:-f,y0:-h,x1:C*(n/T-1),y1:x*(n/T-1)}}function zS(r){var t;if(k(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function FS(r,t){var e,i=yn(t.r,0),n=yn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=gv(l-u),d=c>Us&&c%Us;if(d>ue&&(c=d),!(i>ue))r.moveTo(f,h);else if(c>Us-ue)r.moveTo(f+i*ci(u),h+i*Pr(u)),r.arc(f,h,i,u,l,!v),n>ue&&(r.moveTo(f+n*ci(l),h+n*Pr(l)),r.arc(f,h,n,l,u,v));else{var y=void 0,g=void 0,p=void 0,m=void 0,_=void 0,S=void 0,T=void 0,w=void 0,b=void 0,C=void 0,x=void 0,D=void 0,L=void 0,A=void 0,M=void 0,P=void 0,O=i*ci(u),B=i*Pr(u),$=n*ci(l),K=n*Pr(l),J=c>ue;if(J){var Z=t.cornerRadius;Z&&(e=zS(Z),y=e[0],g=e[1],p=e[2],m=e[3]);var gt=gv(i-n)/2;if(_=Ce(gt,p),S=Ce(gt,m),T=Ce(gt,y),w=Ce(gt,g),x=b=yn(_,S),D=C=yn(T,w),(b>ue||C>ue)&&(L=i*ci(l),A=i*Pr(l),M=n*ci(u),P=n*Pr(u),c<zp)){var et=NS(O,B,M,P,L,A,$,K);if(et){var wt=O-et[0],xt=B-et[1],me=L-et[0],_e=A-et[1],Se=1/Pr(BS((wt*me+xt*_e)/(Mn(wt*wt+xt*xt)*Mn(me*me+_e*_e)))/2),Ne=Mn(et[0]*et[0]+et[1]*et[1]);x=Ce(b,(i-Ne)/(Se+1)),D=Ce(C,(n-Ne)/(Se-1))}}}if(!J)r.moveTo(f+O,h+B);else if(x>ue){var $t=Ce(p,x),Ct=Ce(m,x),U=wa(M,P,O,B,i,$t,v),q=wa(L,A,$,K,i,Ct,v);r.moveTo(f+U.cx+U.x0,h+U.cy+U.y0),x<b&&$t===Ct?r.arc(f+U.cx,h+U.cy,x,Lt(U.y0,U.x0),Lt(q.y0,q.x0),!v):($t>0&&r.arc(f+U.cx,h+U.cy,$t,Lt(U.y0,U.x0),Lt(U.y1,U.x1),!v),r.arc(f,h,i,Lt(U.cy+U.y1,U.cx+U.x1),Lt(q.cy+q.y1,q.cx+q.x1),!v),Ct>0&&r.arc(f+q.cx,h+q.cy,Ct,Lt(q.y1,q.x1),Lt(q.y0,q.x0),!v))}else r.moveTo(f+O,h+B),r.arc(f,h,i,u,l,!v);if(!(n>ue)||!J)r.lineTo(f+$,h+K);else if(D>ue){var $t=Ce(y,D),Ct=Ce(g,D),U=wa($,K,L,A,n,-Ct,v),q=wa(O,B,M,P,n,-$t,v);r.lineTo(f+U.cx+U.x0,h+U.cy+U.y0),D<C&&$t===Ct?r.arc(f+U.cx,h+U.cy,D,Lt(U.y0,U.x0),Lt(q.y0,q.x0),!v):(Ct>0&&r.arc(f+U.cx,h+U.cy,Ct,Lt(U.y0,U.x0),Lt(U.y1,U.x1),!v),r.arc(f,h,n,Lt(U.cy+U.y1,U.cx+U.x1),Lt(q.cy+q.y1,q.cx+q.x1),v),$t>0&&r.arc(f+q.cx,h+q.cy,$t,Lt(q.y1,q.x1),Lt(q.y0,q.x0),!v))}else r.lineTo(f+$,h+K),r.arc(f,h,n,l,u,v)}r.closePath()}}}var HS=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),vf=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new HS},t.prototype.buildPath=function(e,i){FS(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(lt);vf.prototype.type="sector";var VS=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),cf=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new VS},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(lt);cf.prototype.type="ring";function GS(r,t,e,i){var n=[],a=[],o=[],s=[],u,l,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Li(f,f,r[v]),Mi(h,h,r[v]);Li(f,f,i[0]),Mi(h,h,i[1])}for(var v=0,c=r.length;v<c;v++){var d=r[v];if(e)u=r[v?v-1:c-1],l=r[(v+1)%c];else if(v===0||v===c-1){n.push($e(r[v]));continue}else u=r[v-1],l=r[v+1];Ur(a,l,u),Wa(a,a,t);var y=ku(d,u),g=ku(d,l),p=y+g;p!==0&&(y/=p,g/=p),Wa(o,a,-y),Wa(s,a,g);var m=ih([],d,o),_=ih([],d,s);i&&(Mi(m,m,f),Li(m,m,h),Mi(_,_,f),Li(_,_,h)),n.push(m),n.push(_)}return e&&n.push(n.shift()),n}function Fp(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=GS(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var US=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),df=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new US},t.prototype.buildPath=function(e,i){Fp(e,i,!0)},t})(lt);df.prototype.type="polygon";var YS=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),pf=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YS},t.prototype.buildPath=function(e,i){Fp(e,i,!1)},t})(lt);pf.prototype.type="polyline";var WS={},XS=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),ri=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new XS},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=wp(WS,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(e.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(lt);ri.prototype.type="line";var zt=[],$S=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function yv(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?gh:Ot)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?gh:Ot)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?yh:kt)(r.x1,r.cpx1,r.x2,t),(e?yh:kt)(r.y1,r.cpy1,r.y2,t)]}var Wo=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $S},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,f=i.cpx2,h=i.cpy2,v=i.percent;v!==0&&(e.moveTo(n,a),f==null||h==null?(v<1&&(kn(n,u,o,v,zt),u=zt[1],o=zt[2],kn(a,l,s,v,zt),l=zt[1],s=zt[2]),e.quadraticCurveTo(u,l,o,s)):(v<1&&(ho(n,u,f,o,v,zt),u=zt[1],f=zt[2],o=zt[3],ho(a,l,h,s,v,zt),l=zt[1],h=zt[2],s=zt[3]),e.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(e){return yv(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=yv(this.shape,e,!0);return Yi(i,i)},t})(lt);Wo.prototype.type="bezier-curve";var ZS=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Xo=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ZS},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,u,!l)},t})(lt);Xo.prototype.type="arc";var qS=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),lt.prototype.getBoundingRect.call(this)},t})(lt),Hp=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),KS=(function(r){N(t,r);function t(e,i,n,a,o,s){var u=r.call(this,o)||this;return u.x=e??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(Hp),QS=(function(r){N(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(Hp),Ys=Math.min,jS=Math.max,Ta=Math.abs,Rr=[0,0],Er=[0,0],bt=Nd(),ba=bt.minTv,xa=bt.maxTv,Vp=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new nt;for(var i=0;i<2;i++)this._axes[i]=new nt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),e)for(var l=0;l<4;l++)i[l].transform(e);nt.sub(n[0],i[1],i[0]),nt.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},r.prototype.intersect=function(t,e,i){var n=!0,a=!e;return e&&nt.set(e,0,0),bt.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!bt.negativeSize&&nt.copy(e,n?bt.useDir?bt.dirMinTv:ba:xa),n},r.prototype._intersectCheckOneSide=function(t,e,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Rr),t._getProjMinMaxOnAxis(o,e._corners,Er),bt.negativeSize||Rr[1]<Er[0]||Rr[0]>Er[1]){if(a=!1,bt.negativeSize||i)return a;var u=Ta(Er[0]-Rr[1]),l=Ta(Rr[0]-Er[1]);Ys(u,l)>xa.len()&&(u<l?nt.scale(xa,s,-u*n):nt.scale(xa,s,l*n))}else if(!i){var u=Ta(Er[0]-Rr[1]),l=Ta(Rr[0]-Er[1]);(bt.useDir||Ys(u,l)<ba.len())&&((u<l||!bt.bidirectional)&&(nt.scale(ba,s,u*n),bt.useDir&&bt.calcDirMTV()),(u>=l||!bt.bidirectional)&&(nt.scale(ba,s,-l*n),bt.useDir&&bt.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,u=o,l=1;l<e.length;l++){var f=e[l].dot(n)+a[t];s=Ys(f,s),u=jS(f,u)}i[0]=s+bt.touchThreshold,i[1]=u-bt.touchThreshold,bt.negativeSize=i[1]<i[0]},r})(),JS=[],t1=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new W(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(JS)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(na),e1=ft();function r1(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=r==="update";if(s){var l=void 0,f=void 0,h=void 0;i?(l=V(i.duration,200),f=V(i.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),Q(h)&&(h=h(e,n)),Q(l)&&(l=l(e));var v={duration:l||0,delay:h,easing:f};return v}else return null}function gf(r,t,e,i,n,a,o){var s=!1,u;Q(n)?(o=a,a=n,n=null):F(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=r==="leave";l||t.stopAnimation("leave");var f=r1(r,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function pr(r,t,e,i,n,a){gf("update",r,t,e,i,n,a)}function yf(r,t,e,i,n,a){gf("enter",r,t,e,i,n,a)}function An(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function So(r,t,e,i,n,a){An(r)||gf("leave",r,t,e,i,n,a)}function mv(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),So(r,{style:{opacity:0}},t,e,i)}function i1(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||mv(n,t,e,i)}):mv(r,t,e,i)}function n1(r){e1(r).oldStyle=r.style}var vl={},a1=["x","y"],o1=["width","height"];function s1(r){return lt.extend(r)}var u1=RS;function l1(r,t){return u1(r,t)}function ge(r,t){vl[r]=t}function f1(r){if(vl.hasOwnProperty(r))return vl[r]}function mf(r,t,e,i){var n=PS(r,t);return e&&(i==="center"&&(e=Up(e,n.getBoundingRect())),Yp(n,e)),n}function Gp(r,t,e){var i=new dr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(Up(t,a))}}});return i}function Up(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var h1=ES;function Yp(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function _f(r,t){return wp(r,r,{lineWidth:t}),r}function v1(r,t){return Tp(r,r,t),r}var c1=Xr;function d1(r,t){for(var e=ql([]);r&&r!==t;)xn(e,r.getLocalTransform(),e),r=r.parent;return e}function Sf(r,t,e){return t&&!Wt(t)&&(t=Wr.getLocalTransform(t)),e&&(t=ta([],t)),jt([],r,t)}function p1(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Ye(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Ye(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=Sf(a,t,e),Ye(a[0])>Ye(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function _v(r){return!r.isGroup}function g1(r){return r.shape!=null}function y1(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(u){_v(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return g1(o)&&(s.shape=X(o.shape)),s}var a=i(r);t.traverse(function(o){if(_v(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),pr(o,u,e,rt(o).dataIndex)}}})}function m1(r,t){return j(r,function(e){var i=e[0];i=he(i,t.x),i=zn(i,t.x+t.width);var n=e[1];return n=he(n,t.y),n=zn(n,t.y+t.height),[i,n]})}function _1(r,t){var e=he(r.x,t.x),i=zn(r.x+r.width,t.x+t.width),n=he(r.y,t.y),a=zn(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function wf(r,t,e){var i=R({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ct(n,e),new dr(i)):mf(r.replace("path://",""),i,e,"center")}function S1(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(Wp(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Wp(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,v=Ws(f,h,u,l);if(w1(v))return!1;var c=r-n,d=t-a,y=Ws(c,d,u,l)/v;if(y<0||y>1)return!1;var g=Ws(c,d,f,h)/v;return!(g<0||g>1)}function Ws(r,t,e,i){return r*i-e*t}function w1(r){return r<=1e-6&&r>=-1e-6}function cl(r,t,e,i,n){return t==null||(ut(t)?ot[0]=ot[1]=ot[2]=ot[3]=t:(ot[0]=t[0],ot[1]=t[1],ot[2]=t[2],ot[3]=t[3]),i&&(ot[0]=he(0,ot[0]),ot[1]=he(0,ot[1]),ot[2]=he(0,ot[2]),ot[3]=he(0,ot[3])),e&&(ot[0]=-ot[0],ot[1]=-ot[1],ot[2]=-ot[2],ot[3]=-ot[3]),Sv(r,ot,"x","width",3,1,n&&n[0]||0),Sv(r,ot,"y","height",0,2,n&&n[1]||0)),r}var ot=[0,0,0,0];function Sv(r,t,e,i,n,a,o){var s=t[a]+t[n],u=r[i];r[i]+=s,o=he(0,zn(o,u)),r[i]<o?(r[i]=o,r[e]+=t[n]>=0?-t[n]:t[a]>=0?u+t[a]:Ye(s)>1e-8?(u-o)*t[n]/s:0):r[e]-=t[n]}function $o(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=z(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&I(pt(u),function(f){ve(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=rt(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:ct({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function dl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Zo(r,t){if(r)if(k(r))for(var e=0;e<r.length;e++)dl(r[e],t);else dl(r,t)}function Tf(r){return!r||Ye(r[1])<Ca&&Ye(r[2])<Ca||Ye(r[0])<Ca&&Ye(r[3])<Ca}var Ca=1e-5;function Un(r,t){return r?W.copy(r,t):t.clone()}function bf(r,t){return t?Kl(r||Me(),t):void 0}function Yn(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function T1(r){var t=-1/0,e=1/0;dl(r,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function Xp(r,t,e){$p(r,t,e,-1/0)}function $p(r,t,e,i){if(r.ignoreModelZ)return i;var n=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),u=0;u<s.length;u++)i=he($p(s[u],t,e,i),i);else r.z=t,r.zlevel=e,i=he(r.z2||0,i);if(n&&(n.z=t,n.zlevel=e,isFinite(i)&&(n.z2=i+2)),a){var l=r.textGuideLineConfig;a.z=t,a.zlevel=e,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}ge("circle",Yo);ge("ellipse",hf);ge("sector",vf);ge("ring",cf);ge("polygon",df);ge("polyline",pf);ge("rect",It);ge("line",ri);ge("bezierCurve",Wo);ge("arc",Xo);const b1=Object.freeze(Object.defineProperty({__proto__:null,Arc:Xo,BezierCurve:Wo,BoundingRect:W,Circle:Yo,CompoundPath:qS,Ellipse:hf,Group:St,Image:dr,IncrementalDisplayable:t1,Line:ri,LinearGradient:KS,OrientedBoundingRect:Vp,Path:lt,Point:nt,Polygon:df,Polyline:pf,RadialGradient:QS,Rect:It,Ring:cf,Sector:vf,Text:Nt,WH:o1,XY:a1,applyTransform:Sf,calcZ2Range:T1,clipPointsByRect:m1,clipRectByRect:_1,createIcon:wf,ensureCopyRect:Un,ensureCopyTransform:bf,expandOrShrinkRect:cl,extendPath:l1,extendShape:s1,getShapeClass:f1,getTransform:d1,groupTransition:y1,initProps:yf,isBoundingRectAxisAligned:Tf,isElementRemoved:An,lineLineIntersect:Wp,linePolygonIntersect:S1,makeImage:Gp,makePath:mf,mergePath:h1,registerShape:ge,removeElement:So,removeElementWithFadeOut:i1,resizePath:Yp,retrieveZInfo:Yn,setTooltipConfig:$o,subPixelOptimize:c1,subPixelOptimizeLine:_f,subPixelOptimizeRect:v1,transformDirection:p1,traverseElements:Zo,traverseUpdateZ:Xp,updateProps:pr},Symbol.toStringTag,{value:"Module"}));var qo={};function x1(r,t){for(var e=0;e<Oe.length;e++){var i=Oe[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function wv(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=Q(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var u={normal:s},l=0;l<Oe.length;l++){var f=Oe[l],h=t[f];u[f]=V(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return u}function xf(r,t,e,i){e=e||qo;for(var n=r instanceof Nt,a=!1,o=0;o<ov.length;o++){var s=t[ov[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?r:r.getTextContent();if(a){n||(u||(u=new Nt,r.setTextContent(u)),r.stateProxy&&(u.stateProxy=r.stateProxy));var l=wv(e,t),f=t.normal,h=!!f.getShallow("show"),v=hr(f,i,e,!1,!n);v.text=l.normal,n||r.setTextConfig(Tv(f,e,!1));for(var o=0;o<Oe.length;o++){var c=Oe[o],s=t[c];if(s){var d=u.ensureState(c),y=!!V(s.getShallow("show"),h);if(y!==h&&(d.ignore=!y),d.style=hr(s,i,e,!0,!n),d.style.text=l[c],!n){var g=r.ensureState(c);g.textConfig=Tv(s,e,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(v.x=u.style.x),u.style.y!=null&&(v.y=u.style.y),u.ignore=!h,u.useStyle(v),u.dirty(),e.enableTextSetter&&(L1(u).setLabelText=function(p){var m=wv(e,t,p);x1(u,m)})}else u&&(u.ignore=!0);r.dirty()}function Ko(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<Oe.length;i++){var n=Oe[i];e[n]=r.getModel([n,t])}return e}function hr(r,t,e,i,n){var a={};return C1(a,r,e,i,n),t&&R(a,t),a}function Tv(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=V(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function C1(r,t,e,i,n){e=e||qo;var a=t.ecModel,o=a&&a.option.textStyle,s=D1(t),u;if(s){u={};var l="richInheritPlainLabel",f=V(t.get(l),a?a.get(l):void 0);for(var h in s)if(s.hasOwnProperty(h)){var v=t.getModel(["rich",h]);Dv(u[h]={},v,o,t,f,e,i,n,!1,!0)}}u&&(r.rich=u);var c=t.get("overflow");c&&(r.overflow=c);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var y=r,g=t.get("minMargin");if(g!=null)g=ut(g)?g/2:0,y.margin=[g,g,g,g],y.__marginType=Ei.minMargin;else{var p=t.get("textMargin");p!=null&&(y.margin=$l(p),y.__marginType=Ei.textMargin)}Dv(r,t,o,null,null,e,i,n,!0,!1)}function D1(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||qo).rich;if(e){t=t||{};for(var i=pt(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var bv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],xv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Cv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Dv(r,t,e,i,n,a,o,s,u,l){e=!o&&e||qo;var f=a&&a.inheritColor,h=t.getShallow("color"),v=t.getShallow("textBorderColor"),c=V(t.getShallow("opacity"),e.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(h=h||e.color,v=v||e.textBorderColor),h!=null&&(r.fill=h),v!=null&&(r.stroke=v);var d=V(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var y=V(t.getShallow("textBorderType"),e.textBorderType);y!=null&&(r.lineDash=y);var g=V(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&c==null&&!l&&(c=a&&a.defaultOpacity),c!=null&&(r.opacity=c),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<bv.length;p++){var m=bv[p],_=n!==!1&&i?Xe(t.getShallow(m),i.getShallow(m),e[m]):V(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var p=0;p<xv.length;p++){var m=xv[p],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!u||!a.disableBox){for(var p=0;p<Cv.length;p++){var m=Cv[p],_=t.getShallow(m);_!=null&&(r[m]=_)}var T=t.getShallow("borderType");T!=null&&(r.borderDash=T),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function I1(r,t){var e=t&&t.getModel("textStyle");return Ie([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var L1=ft(),Ei={minMargin:1,textMargin:2},M1=["textStyle","color"],Xs=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$s=new Nt,A1=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(M1):null)},r.prototype.getFont=function(){return I1({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Xs.length;i++)e[Xs[i]]=this.getShallow(Xs[i]);return $s.useStyle(e),$s.update(),$s.getBoundingRect()},r})(),Zp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],P1=Hn(Zp),R1=(function(){function r(){}return r.prototype.getLineStyle=function(t){return P1(this,t)},r})(),qp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],E1=Hn(qp),O1=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return E1(this,t,e)},r})(),ht=(function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){},r.prototype.mergeOption=function(t,e){vt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(X(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!G.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r})();ef(ht);f0(ht);de(ht,R1);de(ht,O1);de(ht,p0);de(ht,A1);var k1=Math.round(Math.random()*10);function Qo(r){return[r||"",k1++].join("_")}function B1(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=Le(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=Le(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function N1(r,t){r.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=e(o),f=l.graph,h=l.noEntryList,v={};for(I(a,function(m){v[m]=!0});h.length;){var c=h.pop(),d=f[c],y=!!v[c];y&&(s.call(u,c,d.originalDeps.slice()),delete v[c]),I(d.successor,y?p:g)}I(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function p(m){v[m]=!0,g(m)}};function e(a){var o={},s=[];return I(a,function(u){var l=i(o,u),f=l.originalDeps=t(u),h=n(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),I(h,function(v){st(l.predecessor,v)<0&&l.predecessor.push(v);var c=i(o,v);st(c.successor,v)<0&&c.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return I(a,function(u){st(o,u)>=0&&s.push(u)}),s}}function z1(r,t){return vt(vt({},r,!0),t,!0)}const F1={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},H1={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var wo="ZH",Cf="EN",ki=Cf,Ja={},Df={},Kp=G.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ki).toUpperCase();return r.indexOf(wo)>-1?wo:ki})():ki;function Qp(r,t){r=r.toUpperCase(),Df[r]=new ht(t),Ja[r]=t}function V1(r){if(z(r)){var t=Ja[r.toUpperCase()]||{};return r===wo||r===Cf?X(t):vt(X(t),X(Ja[ki]),!1)}else return vt(X(r),X(Ja[ki]),!1)}function G1(r){return Df[r]}function U1(){return Df[ki]}Qp(Cf,F1);Qp(wo,H1);function je(r,t){return r+="","0000".substr(0,t-r.length)+r}function jp(r,t,e,i){var n=Ho(r),a=n[Y1(e)](),o=n[W1(e)]()+1,s=Math.floor((o-1)/3)+1,u=n[X1(e)](),l=n["get"+(e?"UTC":"")+"Day"](),f=n[$1(e)](),h=(f-1)%12+1,v=n[Z1(e)](),c=n[q1(e)](),d=n[K1(e)](),y=f>=12?"pm":"am",g=y.toUpperCase(),p=i instanceof ht?i:G1(Kp)||U1(),m=p.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),T=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,je(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,je(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,je(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,T[l]).replace(/{ee}/g,w[l]).replace(/{e}/g,l+"").replace(/{HH}/g,je(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,je(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,je(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,je(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,je(d,3)).replace(/{S}/g,d+"")}function Y1(r){return r?"getUTCFullYear":"getFullYear"}function W1(r){return r?"getUTCMonth":"getMonth"}function X1(r){return r?"getUTCDate":"getDate"}function $1(r){return r?"getUTCHours":"getHours"}function Z1(r){return r?"getUTCMinutes":"getMinutes"}function q1(r){return r?"getUTCSeconds":"getSeconds"}function K1(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Q1(r){if(!V_(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Jp(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var jo=$l;function pl(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Ie(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?Ho(r):r;if(isNaN(+u)){if(s)return"-"}else return jp(u,i,e)}if(t==="ordinal")return Pu(r)?n(r):ut(r)&&a(r)?r+"":"-";var l=go(r);return a(l)?Q1(l):Pu(r)?n(r):typeof r=="boolean"?r+"":"-"}var Iv=["a","b","c","d","e","f","g"],Zs=function(r,t){return"{"+r+(t??"")+"}"};function tg(r,t,e){k(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Iv[a];r=r.replace(Zs(o),Zs(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];r=r.replace(Zs(Iv[u],s),e?Ft(l):l)}return r}function j1(r,t){var e=z(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ft(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ft(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Wn(r,t){return t=t||"transparent",z(r)?r:F(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Lv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var to={},qs={},Jo=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=i(to),this._normalMasterList=i(qs);function i(n,a){var o=[];return I(n,function(s,u){var l=s.create(t,e);o=o.concat(l||[])}),o}},r.prototype.update=function(t,e){I(this._normalMasterList,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){to[t]=e;return}qs[t]=e},r.get=function(t){return qs[t]||to[t]},r})();function J1(r){return!!to[r]}var Mv={coord:1,coord2:2},tw=Y();function ew(r){var t=r.getShallow("coord",!0),e=Mv.coord;if(t==null){var i=tw.get(r.type);i&&i.getCoord2&&(e=Mv.coord2,t=i.getCoord2(r))}return{coord:t,from:e}}var Ue={none:0,dataCoordSys:1,boxCoordSys:2};function rw(r,t){var e=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),n=Ue.none;if(e){var a=r.mainType==="series";i==null&&(i=a?"data":"box"),i==="data"?(n=Ue.dataCoordSys,a||(n=Ue.none)):i==="box"&&(n=Ue.boxCoordSys,!a&&!J1(e)&&(n=Ue.none))}return{coordSysType:e,kind:n}}function iw(r){var t=r.targetModel,e=r.coordSysType,i=r.coordSysProvider,n=rw(t),a=n.kind,o=n.coordSysType;if(a!==Ue.dataCoordSys&&(a=Ue.dataCoordSys,o=e),a===Ue.none||o!==e)return!1;var s=i(e,t);return s?(a===Ue.dataCoordSys?t.coordinateSystem=s:t.boxCoordinateSystem=s,!0):!1}var eo=I,nw=["left","right","top","bottom","width","height"],Da=[["width","left","right"],["height","top","bottom"]];function If(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var y=f.width+(v?-v.x+f.x:0);c=a+y,c>i||u.newline?(a=0,c=y,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||u.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var Pn=If;mt(If,"vertical");mt(If,"horizontal");function aw(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function Hi(r,t,e){e=jo(e||0);var i=t.width,n=t.height,a=Ht(r.left,i),o=Ht(r.top,n),s=Ht(r.right,i),u=Ht(r.bottom,n),l=Ht(r.width,i),f=Ht(r.height,n),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(l)&&(l=i-s-v-a),isNaN(f)&&(f=n-u-h-o),c!=null&&(isNaN(l)&&isNaN(f)&&(c>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=c*f),isNaN(f)&&(f=l/c)),isNaN(a)&&(a=i-s-l-v),isNaN(o)&&(o=n-u-f-h),r.left||r.right){case"center":a=i/2-l/2-e[3];break;case"right":a=i-l-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=i-v-a-(s||0)),isNaN(f)&&(f=n-h-o-(u||0));var d=new W((t.x||0)+a+e[3],(t.y||0)+o+e[0],l,f);return d.margin=e,d}function ow(r,t,e){var i=r.getShallow("preserveAspect",!0);if(!i)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var a=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},u=i==="cover";return n>e&&!u||n<e&&u?(s.width=t.height*e,a==="left"?s.left=0:a==="right"?s.right=0:s.left="center"):(s.height=t.width/e,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),Hi(s,t)}var Ks={rect:1};function Lf(r,t,e){var i,n,a,o=r.boxCoordinateSystem,s;if(o){var u=ew(r),l=u.coord,f=u.from;if(o.dataToLayout){a=Ks.rect,s=f;var h=o.dataToLayout(l);i=h.contentRect||h.rect}}return a==null&&(a=Ks.rect),a===Ks.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function To(r){var t=r.layoutMode||r.constructor.layoutMode;return F(t)?t:t?{type:t}:null}function Xn(r,t,e){var i=e&&e.ignoreSize;!k(i)&&(i=[i,i]);var n=o(Da[0],0),a=o(Da[1],1);u(Da[0],r,n),u(Da[1],r,a);function o(l,f){var h={},v=0,c={},d=0,y=2;if(eo(l,function(m){c[m]=r[m]}),eo(l,function(m){ve(t,m)&&(h[m]=c[m]=t[m]),s(h,m)&&v++,s(c,m)&&d++}),i[f])return s(t,l[1])?c[l[2]]=null:s(t,l[2])&&(c[l[1]]=null),c;if(d===y||!v)return c;if(v>=y)return h;for(var g=0;g<l.length;g++){var p=l[g];if(!ve(h,p)&&ve(r,p)){h[p]=r[p];break}}return h}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,h){eo(l,function(v){f[v]=h[v]})}}function Mf(r){return sw({},r)}function sw(r,t){return t&&r&&eo(nw,function(e){ve(t,e)&&(r[e]=t[e])}),r}var uw=ft(),at=(function(r){N(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=Qo("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=To(this),a=n?Mf(e):{},o=i.getTheme();vt(e,o.get(this.mainType)),vt(e,this.getDefaultOption()),n&&Xn(e,a,n)},t.prototype.mergeOption=function(e,i){vt(this.option,e,!0);var n=To(this);n&&Xn(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!s0(e))return e.defaultOption;var i=uw(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=vt(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return ia(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return aw(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(ht);cp(at,ht);rf(at);B1(at);N1(at,lw);function lw(r){var t=[];return I(at.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=j(t,function(e){return Le(e).main}),r!=="dataset"&&st(t,"dataset")<=0&&t.unshift("dataset"),t}var H={color:{},darkColor:{},size:{}},dt=H.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};R(dt,{primary:dt.neutral80,secondary:dt.neutral70,tertiary:dt.neutral60,quaternary:dt.neutral50,disabled:dt.neutral20,border:dt.neutral30,borderTint:dt.neutral20,borderShade:dt.neutral40,background:dt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:dt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:dt.neutral70,axisLineTint:dt.neutral40,axisTick:dt.neutral70,axisTickMinor:dt.neutral60,axisLabel:dt.neutral70,axisSplitLine:dt.neutral15,axisMinorSplitLine:dt.neutral05});for(var Or in dt)if(dt.hasOwnProperty(Or)){var Av=dt[Or];Or==="theme"?H.darkColor.theme=dt.theme.slice():Or==="highlight"?H.darkColor.highlight="rgba(255,231,130,0.4)":Or.indexOf("accent")===0?H.darkColor[Or]=Yu(Av,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):H.darkColor[Or]=Yu(Av,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}H.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var eg="";typeof navigator<"u"&&(eg=navigator.platform||"");var di="rgba(0, 0, 0, 0.2)",rg=H.color.theme[0],fw=Yu(rg,null,null,.9);const hw={darkMode:"auto",colorBy:"series",color:H.color.theme,gradientColor:[fw,rg],aria:{decal:{decals:[{color:di,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:di,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:di,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:di,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:di,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:di,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:eg.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var ig=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Jt="original",At="arrayRows",ye="objectRows",Be="keyedColumns",ur="typedArray",ng="unknown",Re="column",ii="row",Zt={Must:1,Might:2,Not:3},ag=ft();function vw(r){ag(r).datasetMap=Y()}function cw(r,t,e){var i={},n=og(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,u=ag(s).datasetMap,l=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),I(r,function(y,g){var p=F(y)?y:r[g]={name:y};p.type==="ordinal"&&f==null&&(f=g,h=d(p)),i[p.name]=[]});var v=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});I(r,function(y,g){var p=y.name,m=d(y);if(f==null){var _=v.valueWayDim;c(i[p],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(i[p],0,m),c(a,0,m);else{var _=v.categoryWayDim;c(i[p],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(y,g,p){for(var m=0;m<p;m++)y.push(g+m)}function d(y){var g=y.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function og(r){var t=r.get("data",!0);if(!t)return ia(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ir).models[0]}function dw(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ia(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ir).models}function sg(r,t){return pw(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function pw(r,t,e,i,n,a){var o,s=5;if(Xt(r))return Zt.Not;var u,l;if(i){var f=i[a];F(f)?(u=f.name,l=f.type):z(f)&&(u=f)}if(l!=null)return l==="ordinal"?Zt.Must:Zt.Not;if(t===At){var h=r;if(e===ii){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[n+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[n+c];if(d&&(o=S(d[a]))!=null)return o}}else if(t===ye){var y=r;if(!u)return Zt.Not;for(var c=0;c<y.length&&c<s;c++){var g=y[c];if(g&&(o=S(g[u]))!=null)return o}}else if(t===Be){var p=r;if(!u)return Zt.Not;var v=p[u];if(!v||Xt(v))return Zt.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(t===Jt)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=ea(g);if(!k(_))return Zt.Not;if((o=S(_[a]))!=null)return o}function S(T){var w=z(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return w?Zt.Might:Zt.Not;if(w&&T!=="-")return Zt.Must}return Zt.Not}var gw=Y();function yw(r,t,e){var i=gw.get(t);if(!i)return e;var n=i(r);return n?e.concat(n):e}var Pv=ft();ft();var Af=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=Bt(this.get("color",!0)),a=this.get("colorLayer",!0);return _w(this,Pv,n,a,t,e,i)},r.prototype.clearColorPalette=function(){Sw(this,Pv)},r})();function mw(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function _w(r,t,e,i,n,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?e:mw(i,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function Sw(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ia,Qi,Rv,Ev="\0_ec_inner",ww=1,Pf=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new ht(a),this._locale=new ht(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=Bv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Bv(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Rv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&I(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=Y(),l=i&&i.replaceMergeMainTypeMap;vw(this),I(e,function(h,v){h!=null&&(at.hasClass(v)?v&&(s.push(v),u.set(v,!0)):n[v]=n[v]==null?X(h):vt(n[v],h,!0))}),l&&l.each(function(h,v){at.hasClass(v)&&!u.get(v)&&(s.push(v),u.set(v,!0))}),at.topologicalTravel(s,at.getAllClassMainTypes(),f,this);function f(h){var v=yw(this,h,Bt(e[h])),c=a.get(h),d=c?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=$_(c,v,d);t0(y,h,at),n[h]=null,a.set(h,null),o.set(h,0);var g=[],p=[],m=0,_;I(y,function(S,T){var w=S.existing,b=S.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=h==="series",x=at.getClass(h,S.keyInfo.subType,!C);if(!x)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===x)w.name=S.keyInfo.name,w.mergeOption(b,this),w.optionUpdated(b,!1);else{var D=R({componentIndex:T},S.keyInfo);w=new x(b,this,this,D),R(w,D),S.brandNew&&(w.__requireNewView=!0),w.init(b,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),p.push(w),m++):(g.push(void 0),p.push(void 0))},this),n[h]=g,a.set(h,p),o.set(h,m),h==="series"&&Ia(this)}this._seriesIndices||Ia(this)},t.prototype.getOption=function(){var e=X(this.option);return I(e,function(i,n){if(at.hasClass(n)){for(var a=Bt(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Fn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[Ev],e},t.prototype.setTheme=function(e){this._theme=new ht(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],I(Bt(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=Ov("id",a,s):o!=null?u=Ov("name",o,s):u=Kt(s,function(l){return!!l}),kv(u,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):Kt(this._componentsMap.get(n),function(l){return!!l});return u(kv(o,e));function s(l){var f=n+"Index",h=n+"Id",v=n+"Name";return l&&(l[f]!=null||l[h]!=null||l[v]!=null)?{mainType:n,index:l[f],id:l[h],name:l[v]}:null}function u(l){return e.filter?Kt(l,e.filter):l}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(Q(e)){var o=i,s=e;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var u=z(e)?a.get(e):F(e)?this.findComponents(e):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=ce(e,null);return Kt(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Kt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return Kt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){Qi(this),I(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){I(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){Qi(this),I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return I(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return Qi(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){Qi(this);var n=[];I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},t.prototype.restoreData=function(e){Ia(this);var i=this._componentsMap,n=[];i.each(function(a,o){at.hasClass(o)&&n.push(o)}),at.topologicalTravel(n,at.getAllClassMainTypes(),function(a){I(i.get(a),function(o){o&&(a!=="series"||!Tw(o,e))&&o.restoreData()})})},t.internalField=(function(){Ia=function(e){var i=e._seriesIndices=[];I(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=Y(i)},Qi=function(e){},Rv=function(e,i){e.option={},e.option[Ev]=ww,e._componentsMap=Y({series:[]}),e._componentsCount=Y();var n=i.aria;F(n)&&n.enabled==null&&(n.enabled=!0),bw(i,e._theme.option),vt(i,hw,!1),e._mergeOption(i,null)}})(),t})(ht);function Tw(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function bw(r,t){var e=r.color&&!r.colorLayer;I(t,function(i,n){n==="colorLayer"&&e||n==="color"&&r.color||at.hasClass(n)||(typeof i=="object"?r[n]=r[n]?vt(r[n],i,!1):X(i):r[n]==null&&(r[n]=i))})}function Ov(r,t,e){if(k(t)){var i=Y();return I(t,function(a){if(a!=null){var o=ce(a,null);o!=null&&i.set(a,!0)}}),Kt(e,function(a){return a&&i.get(a[r])})}else{var n=ce(t,null);return Kt(e,function(a){return a&&n!=null&&a[r]===n})}}function kv(r,t){return t.hasOwnProperty("subType")?Kt(r,function(e){return e&&e.subType===t.subType}):r}function Bv(r){var t=Y();return r&&I(Bt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}de(Pf,Af);var xw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ug=(function(){function r(t){I(xw,function(e){this[e]=it(t[e],t)},this)}return r})(),Cw=/^(min|max)?(.+)$/,Dw=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(I(Bt(t.series),function(o){o&&o.data&&Xt(o.data)&&Ru(o.data)}),I(Bt(t.dataset),function(o){o&&o.source&&Xt(o.source)&&Ru(o.source)})),t=X(t);var n=this._optionBackup,a=Iw(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],X(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=X(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)Lw(n[u].query,e,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!Aw(o,this._currentMediaIndices)&&(s=j(o,function(f){return X(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function Iw(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,u=r.options,l=r.media,f=!!r.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&k(l)&&I(l,function(c){c&&c.option&&(c.query?i.push(c):n||(n=c))}),v(a),I(u,function(c){return v(c)}),I(i,function(c){return v(c.option)});function v(c){I(t,function(d){d(c,e)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function Lw(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return I(r,function(a,o){var s=o.match(Cw);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();Mw(i[l],a,u)||(n=!1)}}),n}function Mw(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function Aw(r,t){return r.join(",")===t.join(",")}var se=I,$n=F,Nv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Qs(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=Nv.length;e<i;e++){var n=Nv[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?vt(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?vt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Mt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,ct(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function mn(r){Mt(r,"itemStyle"),Mt(r,"lineStyle"),Mt(r,"areaStyle"),Mt(r,"label"),Mt(r,"labelLine"),Mt(r,"upperLabel"),Mt(r,"edgeLabel")}function yt(r,t){var e=$n(r)&&r[t],i=$n(e)&&e.textStyle;if(i)for(var n=0,a=zh.length;n<a;n++){var o=zh[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function ie(r){r&&(mn(r),yt(r,"label"),r.emphasis&&yt(r.emphasis,"label"))}function Pw(r){if($n(r)){Qs(r),mn(r),yt(r,"label"),yt(r,"upperLabel"),yt(r,"edgeLabel"),r.emphasis&&(yt(r.emphasis,"label"),yt(r.emphasis,"upperLabel"),yt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Qs(t),ie(t));var e=r.markLine;e&&(Qs(e),ie(e));var i=r.markArea;i&&ie(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!Xt(a))for(var o=0;o<a.length;o++)ie(a[o]);I(r.categories,function(l){mn(l)})}if(n&&!Xt(n))for(var o=0;o<n.length;o++)ie(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ie(s[o]);if(e=r.markLine,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)k(u[o])?(ie(u[o][0]),ie(u[o][1])):ie(u[o]);r.type==="gauge"?(yt(r,"axisLabel"),yt(r,"title"),yt(r,"detail")):r.type==="treemap"?(Mt(r.breadcrumb,"itemStyle"),I(r.levels,function(l){mn(l)})):r.type==="tree"&&mn(r.leaves)}}function Fe(r){return k(r)?r:r?[r]:[]}function zv(r){return(k(r)?r[0]:r)||{}}function Rw(r,t){se(Fe(r.series),function(i){$n(i)&&Pw(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),se(e,function(i){se(Fe(r[i]),function(n){n&&(yt(n,"axisLabel"),yt(n.axisPointer,"label"))})}),se(Fe(r.parallel),function(i){var n=i&&i.parallelAxisDefault;yt(n,"axisLabel"),yt(n&&n.axisPointer,"label")}),se(Fe(r.calendar),function(i){Mt(i,"itemStyle"),yt(i,"dayLabel"),yt(i,"monthLabel"),yt(i,"yearLabel")}),se(Fe(r.radar),function(i){yt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),se(Fe(r.geo),function(i){$n(i)&&(ie(i),se(Fe(i.regions),function(n){ie(n)}))}),se(Fe(r.timeline),function(i){ie(i),Mt(i,"label"),Mt(i,"itemStyle"),Mt(i,"controlStyle",!0);var n=i.data;k(n)&&I(n,function(a){F(a)&&(Mt(a,"label"),Mt(a,"itemStyle"))})}),se(Fe(r.toolbox),function(i){Mt(i,"iconStyle"),se(i.feature,function(n){Mt(n,"iconStyle")})}),yt(zv(r.axisPointer),"label"),yt(zv(r.tooltip).axisPointer,"label")}function Ew(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function Ow(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=e)}function Fv(r){r&&I(kw,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var kw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Bw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],js=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ji(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<js.length;e++){var i=js[e][1],n=js[e][0];t[i]!=null&&(t[n]=t[i])}}function Hv(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Vv(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function Nw(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function lg(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&lg(r[e].children,t)}function fg(r,t){Rw(r,t),r.series=Bt(r.series),I(r.series,function(e){if(F(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Hv(e.label);var n=e.data;if(n&&!Xt(n))for(var a=0;a<n.length;a++)Hv(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=Ew(e,"pointer.color");o!=null&&Ow(e,"itemStyle.color",o)}else if(i==="bar"){ji(e),ji(e.backgroundStyle),ji(e.emphasis);var n=e.data;if(n&&!Xt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(ji(n[a]),ji(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Vv(e),lg(e.data,Vv)}else i==="graph"||i==="sankey"?Nw(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ct(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Fv(e)}}),r.dataRange&&(r.visualMap=r.dataRange),I(Bw,function(e){var i=r[e];i&&(k(i)||(i=[i]),I(i,function(n){Fv(n)}))})}function zw(r){var t=Y();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var i=e[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),I(e,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),Fw(e)}})}function Fw(r){I(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return n;var c,d;s?d=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var y=NaN,g=e-1;g>=0;g--){var p=r[g];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,c)),d>=0){var m=p.data.getByRawIndex(p.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&v>=0&&m>0||u==="samesign"&&v<=0&&m<0){v=F_(v,m),y=m;break}}}return i[0]=v,i[1]=y,i})})}var ts=(function(){function r(t){this.data=t.data||(t.sourceFormat===Be?{}:[]),this.sourceFormat=t.sourceFormat||ng,this.seriesLayoutBy=t.seriesLayoutBy||Re,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&sg(this,i)===Zt.Must&&(n.type="ordinal")}}return r})();function Rf(r){return r instanceof ts}function gl(r,t,e){e=e||hg(r);var i=t.seriesLayoutBy,n=Vw(r,e,i,t.sourceHeader,t.dimensions),a=new ts({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:X(t)});return a}function Ef(r){return new ts({data:r,sourceFormat:Xt(r)?ur:Jt})}function Hw(r){return new ts({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:X(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function hg(r){var t=ng;if(Xt(r))t=ur;else if(k(r)){r.length===0&&(t=At);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(k(n)||Xt(n)){t=At;break}else if(F(n)){t=ye;break}}}}else if(F(r)){for(var a in r)if(ve(r,a)&&Wt(r[a])){t=Be;break}}return t}function Vw(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:Gv(n),startIndex:o,dimensionsDetectedCount:a};if(t===At){var s=r;i==="auto"||i==null?Uv(function(l){l!=null&&l!=="-"&&(z(l)?o==null&&(o=1):o=0)},e,s,10):o=ut(i)?i:i?1:0,!n&&o===1&&(n=[],Uv(function(l,f){n[f]=l!=null?l+"":""},e,s,1/0)),a=n?n.length:e===ii?s.length:s[0]?s[0].length:null}else if(t===ye)n||(n=Gw(r));else if(t===Be)n||(n=[],I(r,function(l,f){n.push(f)}));else if(t===Jt){var u=ea(r[0]);a=k(u)&&u.length||1}return{startIndex:o,dimensionsDefine:Gv(n),dimensionsDetectedCount:a}}function Gw(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return pt(e)}function Gv(r){if(r){var t=Y();return j(r,function(e,i){e=F(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function Uv(r,t,e,i){if(t===ii)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function vg(r){var t=r.sourceFormat;return t===ye||t===Be}var kr,Br,Nr,zr,Yv,Wv,cg=(function(){function r(t,e){var i=Rf(t)?t:Ef(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat;i.seriesLayoutBy,a===ur&&(this._offset=0,this._dimSize=e,this._data=n),Wv(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;Wv=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,v=u.dimensionsDefine,c=Yv[Of(l,f)];if(R(o,c),l===ur)o.getItem=e,o.count=n,o.fillStorage=i;else{var d=dg(l,f);o.getItem=it(d,null,s,h,v);var y=pg(l,f);o.count=it(y,null,s,h,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},i=function(o,s,u,l){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=l[v],d=c[0]==null?1/0:c[0],y=c[1]==null?-1/0:c[1],g=s-o,p=u[v],m=0;m<g;m++){var _=f[m*h+v];p[o+m]=_,_<d&&(d=_),_>y&&(y=_)}c[0]=d,c[1]=y}},n=function(){return this._data?this._data.length/this._dimSize:0};Yv=(t={},t[At+"_"+Re]={pure:!0,appendData:a},t[At+"_"+ii]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ye]={pure:!0,appendData:a},t[Be]={pure:!0,appendData:function(o){var s=this._data;I(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Jt]={appendData:a},t[ur]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),La=function(r){k(r)||up("series.data or dataset.source must be an array.")};kr={},kr[At+"_"+Re]=La,kr[At+"_"+ii]=La,kr[ye]=La,kr[Be]=function(r,t){for(var e=0;e<t.length;e++){var i=t[e].name;i==null&&up("dimension name must not be null/undefined.")}},kr[Jt]=La;var Xv=function(r,t,e,i){return r[i]},Uw=(Br={},Br[At+"_"+Re]=function(r,t,e,i){return r[i+t]},Br[At+"_"+ii]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Br[ye]=Xv,Br[Be]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,u=s!=null?r[s]:null;a[o]=u?u[i]:null}return a},Br[Jt]=Xv,Br);function dg(r,t){var e=Uw[Of(r,t)];return e}var $v=function(r,t,e){return r.length},Yw=(Nr={},Nr[At+"_"+Re]=function(r,t,e){return Math.max(0,r.length-t)},Nr[At+"_"+ii]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Nr[ye]=$v,Nr[Be]=function(r,t,e){var i=e[0].name,n=i!=null?r[i]:null;return n?n.length:0},Nr[Jt]=$v,Nr);function pg(r,t){var e=Yw[Of(r,t)];return e}var Js=function(r,t,e){return r[t]},Ww=(zr={},zr[At]=Js,zr[ye]=function(r,t,e){return r[e]},zr[Be]=Js,zr[Jt]=function(r,t,e){var i=ea(r);return i instanceof Array?i[t]:i},zr[ur]=Js,zr);function gg(r){var t=Ww[r];return t}function Of(r,t){return r===At?r+"_"+t:r}function Vi(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return gg(a)(i,o,s)}else{var u=i;return a===Jt&&(u=ea(i)),u}}}}var Xw=/\{@(.+?)\}/g,$w=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),u=i.getItemVisual(t,"style"),l=u&&u[i.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,v=h==="series",c=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:l,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&k(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(Q(a))return u.status=e,u.dimensionIndex=n,a(u);if(z(a)){var f=tg(a,u);return f.replace(Xw,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var y=Vi(s,t,d);if(o&&k(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(y=o.interpolatedValue[g])}return y!=null?y+"":""})}},r.prototype.getRawValue=function(t,e){return Vi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r})();function Zv(r){var t,e;return F(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Rn(r){return new Zw(r)}var Zw=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=u,this._modDataCount=l;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!i&&(h||c<d)){var y=this._progress;if(k(y))for(var g=0;g<y.length;g++)this._doProgress(y[g],c,d,u,l);else this._doProgress(y,c,d,u,l)}this._dueIndex=d;var p=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){qv.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:qv.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),k(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),qv=(function(){var r,t,e,i,n,a={reset:function(u,l,f,h){t=u,r=l,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var u=t%n*e+Math.ceil(t/n),l=t>=r?null:u<i?u:t;return t++,l}})();function ro(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!ut(r)&&r!=null&&r!=="-"&&(r=+Ho(r)),r==null||r===""?NaN:Number(r))}Y({number:function(r){return parseFloat(r)},time:function(r){return+Ho(r)},trim:function(r){return z(r)?Ie(r):r}});var qw=(function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=ut(t)?t:go(t),n=ut(e)?e:go(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(t),u=z(e);s&&(i=u?t:0),u&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})(),Kw=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ro(t,e)},r})();function Qw(r,t){var e=new Kw,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Re&&Vt(o);var s=[],u={},l=r.dimensionsDefine;if(l)I(l,function(y,g){var p=y.name,m={index:g,name:p,displayName:y.displayName};if(s.push(m),p!=null){var _="";ve(u,p)&&Vt(_),u[p]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=dg(n,Re);t.__isBuiltIn&&(e.getRawDataItem=function(y){return h(i,a,s,y)},e.getRawData=it(jw,null,r)),e.cloneRawData=it(Jw,null,r);var v=pg(n,Re);e.count=it(v,null,i,a,s);var c=gg(n);e.retrieveValue=function(y,g){var p=h(i,a,s,y);return d(p,g)};var d=e.retrieveValueFromItem=function(y,g){if(y!=null){var p=s[g];if(p)return c(y,g,p.name)}};return e.getDimensionInfo=it(tT,null,s,u),e.cloneAllDimensionInfo=it(eT,null,s),e}function jw(r){var t=r.sourceFormat;if(!kf(t)){var e="";Vt(e)}return r.data}function Jw(r){var t=r.sourceFormat,e=r.data;if(!kf(t)){var i="";Vt(i)}if(t===At){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===ye){for(var n=[],a=0,o=e.length;a<o;a++)n.push(R({},e[a]));return n}}function tT(r,t,e){if(e!=null){if(ut(e)||!isNaN(e)&&!ve(t,e))return r[e];if(ve(t,e))return t[e]}}function eT(r){return X(r)}var yg=Y();function rT(r){r=X(r);var t=r.type,e="";t||Vt(e);var i=t.split(":");i.length!==2&&Vt(e);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,yg.set(t,r)}function iT(r,t,e){var i=Bt(r),n=i.length,a="";n||Vt(a);for(var o=0,s=n;o<s;o++){var u=i[o];t=nT(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function nT(r,t,e,i){var n="";t.length||Vt(n),F(r)||Vt(n);var a=r.type,o=yg.get(a);o||Vt(n);var s=j(t,function(l){return Qw(l,o)}),u=Bt(o.transform({upstream:s[0],upstreamList:s,config:X(r.config)}));return j(u,function(l,f){var h="";F(l)||Vt(h),l.data||Vt(h);var v=hg(l.data);kf(v)||Vt(h);var c,d=t[0];if(d&&f===0&&!l.dimensions){var y=d.startIndex;y&&(l.data=d.data.slice(0,y).concat(l.data)),c={seriesLayoutBy:Re,sourceHeader:y,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:Re,sourceHeader:0,dimensions:l.dimensions};return gl(l.data,c,null)})}function kf(r){return r===At||r===ye}var es="undefined",aT=typeof Uint32Array===es?Array:Uint32Array,oT=typeof Uint16Array===es?Array:Uint16Array,mg=typeof Int32Array===es?Array:Int32Array,Kv=typeof Float64Array===es?Array:Float64Array,_g={float:Kv,int:mg,ordinal:Array,number:Array,time:Kv},tu;function pi(r){return r>65535?aT:oT}function gi(){return[1/0,-1/0]}function sT(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Qv(r,t,e,i,n){var a=_g[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];r[t]=u}}else r[t]=new a(i)}var yl=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=tu[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],vg(n),this._dimensions=j(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new _g[e||"float"](this._rawCount),this._rawExtent[a]=gi(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=gi());for(var u=a[t],l=o;l<s;l++){var f=i[l]=e.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<a;l++){var f=n[l];Qv(i,l,f.type,u,!0)}for(var h=[],v=s;v<u;v++)for(var c=v-s,d=0;d<a;d++){var f=n[d],y=tu.arrayRows.call(this,t[c]||h,f.property,c,d);i[d][v]=y;var g=o[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=j(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=gi()),Qv(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,u);else for(var v=[],c=t;c<e;c++){v=n.getItem(c,v);for(var d=0;d<s;d++){var y=a[d],g=this._dimValueGetter(v,l[d],c,d);y[c]=g;var p=u[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=pi(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=pi(i._rawCount),o=new a(n),s=[],u=t.length,l=0,f=t[0],h=i._chunks,v=0;v<n;v++){var c=void 0,d=i.getRawIndex(v);if(u===0)c=e(v);else if(u===1){var y=h[f][d];c=e(y,v)}else{for(var g=0;g<u;g++)s[g]=h[t[g]][d];s[g]=v,c=e.apply(null,s)}c&&(o[l++]=d)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=pt(t),a=n.length;if(!a)return this;var o=e.count(),s=pi(e._rawCount),u=new s(o),l=0,f=n[0],h=t[f][0],v=t[f][1],c=e._chunks,d=!1;if(!e._indices){var y=0;if(a===1){for(var g=c[n[0]],p=0;p<i;p++){var m=g[p];(m>=h&&m<=v||isNaN(m))&&(u[l++]=y),y++}d=!0}else if(a===2){for(var g=c[n[0]],_=c[n[1]],S=t[n[1]][0],T=t[n[1]][1],p=0;p<i;p++){var m=g[p],w=_[p];(m>=h&&m<=v||isNaN(m))&&(w>=S&&w<=T||isNaN(w))&&(u[l++]=y),y++}d=!0}}if(!d)if(a===1)for(var p=0;p<o;p++){var b=e.getRawIndex(p),m=c[n[0]][b];(m>=h&&m<=v||isNaN(m))&&(u[l++]=b)}else for(var p=0;p<o;p++){for(var C=!0,b=e.getRawIndex(p),x=0;x<a;x++){var D=n[x],m=c[D][b];(m<t[D][0]||m>t[D][1])&&(C=!1)}C&&(u[l++]=e.getRawIndex(p))}return l<o&&(e._indices=u),e._count=l,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<e.length;f++)l[e[f]]=gi();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)u[c]=n[e[c]][v];u[o]=h;var d=i&&i.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var y=e[f],g=d[f],p=l[y],m=n[y];m&&(m[v]=g),g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,v,c=new(pi(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));c[s++]=l;for(var d=1;d<o-1;d+=u){for(var y=Math.min(d+u,o-1),g=Math.min(d+u*2,o),p=(g+y)/2,m=0,_=y;_<g;_++){var S=this.getRawIndex(_),T=a[S];isNaN(T)||(m+=T)}m/=g-y;var w=d,b=Math.min(d+u,o),C=d-1,x=a[l];f=-1,v=w;for(var D=-1,L=0,_=w;_<b;_++){var S=this.getRawIndex(_),T=a[S];if(isNaN(T)){L++,D<0&&(D=S);continue}h=Math.abs((C-p)*(T-x)-(C-_)*(m-x)),h>f&&(f=h,v=S)}L>0&&L<b-w&&(c[s++]=Math.min(D,v),v=Math.max(D,v)),c[s++]=v,l=v}return c[s++]=this.getRawIndex(o-1),i._count=s,i._indices=c,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/e),o=n[t],s=this.count(),u=new(pi(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,v=o[this.getRawIndex(h)],c=f,d=o[this.getRawIndex(c)],y=a;f+a>s&&(y=s-f);for(var g=0;g<y;g++){var p=this.getRawIndex(f+g),m=o[p];m<v&&(v=m,h=f+g),m>d&&(d=m,c=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(c);h<c?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/e),l=o[t],f=this.count(),h=a._rawExtent[t]=gi(),v=new(pi(this._rawCount))(Math.ceil(f/u)),c=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var y=0;y<u;y++){var g=this.getRawIndex(d+y);s[y]=l[g]}var p=i(s),m=this.getRawIndex(Math.min(d+n(s,p)||0,f-1));l[m]=p,p<h[0]&&(h[0]=p),p>h[1]&&(h[1]=p),v[c++]=m}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,e.apply(null,l)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=gi();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],u=o[1],l=0;l<n;l++){var f=this.getRawIndex(l),h=e[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&Ui(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?sT(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=X(this._extent),t._rawExtent=X(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,i,n,a){return ro(e[a],this._dimensions[a])}tu={arrayRows:t,objectRows:function(e,i,n,a){return ro(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return ro(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}})(),r})(),uT=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(Ma(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Xt(s)?ur:Jt,a=[];var h=this._getSourceMetaRawOption()||{},v=l&&l.metaRawOption||{},c=V(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=V(h.sourceHeader,v.sourceHeader),y=V(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||y;n=g?[gl(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:y},u)]:[]}else{var p=t;if(i){var m=this._applyTransform(e);n=m.sourceList,a=m.upstreamSignList}else{var _=p.get("source",!0);n=[gl(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&jv(a)}var o,s=[],u=[];return I(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&jv(h),s.push(f),u.push(l._getVersionSign())}),i?o=iT(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[Hw(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];Ma(this._sourceHost)&&u?s=u._innerGetDataStore(t,e,i):(s=new yl,s.initData(new cg(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ma(t)){var e=og(t);return e?[e.getSourceManager()]:[]}else return j(dw(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(Ma(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r})();function Ma(r){return r.mainType==="series"}function jv(r){throw new Error(r)}var lT="line-height:1";function Sg(r){var t=r.lineHeight;return t==null?lT:"line-height:"+Ft(t+"")+"px"}function wg(r,t){var e=r.color||H.color.tertiary,i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||H.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ft(i+"")+"px;color:"+Ft(e)+";font-weight:"+Ft(n+""),valueStyle:"font-size:"+Ft(o+"")+"px;color:"+Ft(a)+";font-weight:"+Ft(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var fT=[0,10,20,30],hT=["",`
|
|
9
|
+
`,`
|
|
10
|
+
|
|
11
|
+
`,`
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
`];function Gi(r,t){return t.type=r,t}function ml(r){return r.type==="section"}function Tg(r){return ml(r)?vT:cT}function bg(r){if(ml(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return I(r.blocks,function(n){var a=bg(n);a>=t&&(t=a+ +(i&&(!a||ml(n)&&!n.noHeader)))}),t}return 0}function vT(r,t,e,i){var n=t.noHeader,a=dT(bg(t)),o=[],s=t.blocks||[];Ee(!s||k(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(ve(l,u)){var f=new qw(l[u],null);s.sort(function(y,g){return f.evaluate(y.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}I(s,function(y,g){var p=t.valueFormatter,m=Tg(y)(p?R(R({},r),{valueFormatter:p}):r,y,g>0?a.html:0,i);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):_l(i,o.join(""),n?e:a.html);if(n)return h;var v=pl(t.header,"ordinal",r.useUTC),c=wg(i,r.renderMode).nameStyle,d=Sg(i);return r.renderMode==="richText"?xg(r,v,c)+a.richText+h:_l(i,'<div style="'+c+";"+d+';">'+Ft(v)+"</div>"+h,e)}function cT(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=k(S)?S:[S],j(S,function(T,w){return pl(T,k(c)?c[w]:c,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||H.color.secondary,n),v=a?"":pl(u,"ordinal",l),c=t.valueType,d=o?[]:f(t.value,t.dataIndex),y=!s||!a,g=!s&&a,p=wg(i,n),m=p.nameStyle,_=p.valueStyle;return n==="richText"?(s?"":h)+(a?"":xg(r,v,m))+(o?"":yT(r,d,y,g,_)):_l(i,(s?"":h)+(a?"":pT(v,!s,m))+(o?"":gT(d,y,g,_)),e)}}function Jv(r,t,e,i,n,a){if(r){var o=Tg(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function dT(r){return{html:fT[r],richText:hT[r]}}function _l(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=Sg(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function pT(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+Ft(r)+"</span>"}function gT(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=k(r)?r:[r],'<span style="'+a+";"+i+'">'+j(r,function(o){return Ft(o)}).join(" ")+"</span>"}function xg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function yT(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(k(t)?t.join(" "):t,a)}function mT(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return Wn(i)}function Cg(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var eu=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=op()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=j1({color:e,type:t,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};k(e)?I(e,function(a){return R(i,a)}):R(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r})();function Dg(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=k(s),l=mT(t,e),f,h,v,c;if(o>1||u&&!o){var d=_T(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var y=n.getDimensionInfo(a[0]);c=f=Vi(n,e,a[0]),h=y.type}else c=f=u?s[0]:s;var g=Jl(t),p=g&&t.name||"",m=n.getName(e),_=i?p:m;return Gi("section",{header:p,noHeader:i||!g,sortParam:c,blocks:[Gi("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ie(_),value:f,valueType:h,dataIndex:e})].concat(v||[])})}function _T(r,t,e,i,n){var a=t.getData(),o=Ui(r,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];i.length?I(i,function(h){f(Vi(a,e,h),h)}):I(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?l.push(Gi("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),u.push(c.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Je=ft();function Aa(r,t){return r.getName(t)||r.getId(t)}var ST="__universalTransitionEnabled",vr=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Rn({count:TT,reset:bT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=Je(this).sourceManager=new uT(this);a.prepareSource();var o=this.getInitialData(e,n);ec(o,this),this.dataTask.context.data=o,Je(this).dataBeforeProcessed=o,tc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=To(this),a=n?Mf(e):{},o=this.subType;at.hasClass(o)&&(o+="Series"),vt(e,i.getTheme().get(this.subType)),vt(e,this.getDefaultOption()),tl(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Xn(e,a,n)},t.prototype.mergeOption=function(e,i){e=vt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=To(this);n&&Xn(this.option,e,n);var a=Je(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);ec(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Je(this).dataBeforeProcessed=o,tc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Xt(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&tl(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=Sl(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Je(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=Sl(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}Je(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Y(e)},t.prototype.getSourceManager=function(){return Je(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Je(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,i,n,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(e);if(!s||!u)return[];var l=u.dataToCoord(n);a==null&&(a=1/0);var f=[],h=1/0,v=-1,c=0;return o.each(i,function(d,y){var g=u.dataToCoord(d),p=l-g,m=Math.abs(p);m<=a&&((m<h||m===h&&p>=0&&v<0)&&(h=m,v=p,c=0),p===v&&(f[c++]=y))}),f.length=c,f},t.prototype.formatTooltip=function(e,i,n){return Dg({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(G.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=Af.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var u=e[s],l=Aa(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=pt(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Aa(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ST])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){F(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=i[f],v=Aa(e,h);l[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=i[u-1],v=Aa(e,c);o.selectedMap=(n={},n[v]=!0,n),this._selectedDataIndicesMap=(a={},a[v]=e.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return at.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(at);de(vr,$w);de(vr,Af);cp(vr,at);function tc(r){var t=r.name;Jl(r)||(r.name=wT(r)||t)}function wT(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return I(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function TT(r){return r.model.getRawData().count()}function bT(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),xT}function xT(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ec(r,t){I(mm(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,mt(CT,t))})}function CT(r,t){var e=Sl(r);return e&&e.setOutputEnd((t||this).count()),t}function Sl(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var ke=(function(){function r(){this.group=new St,this.uid=Qo("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();ef(ke);rf(ke);function DT(){var r=ft();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Ig=ft(),IT=DT(),lr=(function(){function r(){this.group=new St,this.uid=Qo("viewChart"),this.renderTask=Rn({plan:LT,reset:MT}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&ic(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&ic(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){Zo(this.group,t)},r.markUpdateMethod=function(t,e){Ig(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function rc(r,t,e){r&&ll(r)&&(t==="emphasis"?Vn:Gn)(r,e)}function ic(r,t,e){var i=ra(r,t),n=t&&t.highlightKey!=null?bS(t.highlightKey):null;i!=null?I(Bt(i),function(a){rc(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){rc(a,e,n)})}ef(lr);rf(lr);function LT(r){return IT(r.model)}function MT(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&Ig(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,i,n),AT[u]}var AT={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},bo="\0__throttleOriginMethod",nc="\0__throttleRate",ac="\0__throttleType";function Bf(r,t,e){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];i=new Date().getTime(),u=this,l=c;var y=f||t,g=f||e;f=null,s=i-(g?n:a)-y,clearTimeout(o),g?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),n=i};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Lg(r,t,e,i){var n=r[t];if(n){var a=n[bo]||n,o=n[ac],s=n[nc];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Bf(a,e,i==="debounce"),n[bo]=a,n[ac]=i,n[nc]=e}return n}}function wl(r,t){var e=r[t];e&&e[bo]&&(e.clear&&e.clear(),r[t]=e[bo])}var oc=ft(),sc={itemStyle:Hn(qp,!0),lineStyle:Hn(Zp,!0)},PT={lineStyle:"stroke",itemStyle:"fill"};function Mg(r,t){var e=r.visualStyleMapper||sc[t];return e||(console.warn("Unknown style type '"+t+"'."),sc.itemStyle)}function Ag(r,t){var e=r.visualDrawType||PT[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var RT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=Mg(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=Ag(r,i),l=o[u],f=Q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var y=r.getDataParams(d),g=R({},o);g[u]=f(y),c.setItemVisual(d,"style",g)}}}},Ji=new ht,ET={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=Mg(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){Ji.option=u[i];var l=n(Ji),f=o.ensureUniqueItemVisual(s,"style");R(f,l),Ji.option.decal&&(o.setItemVisual(s,"decal",Ji.option.decal),Ji.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},OT={performRawSeries:!0,overallReset:function(r){var t=Y();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),oc(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=oc(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=Ag(e,s);a.each(function(l){var f=a.getRawIndex(l);n[f]=l}),i.each(function(l){var f=n[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=i.getName(l)||l+"",d=i.count();v[u]=e.getColorFromPalette(c,o,d)}})}})}},Pa=Math.PI;function kT(r,t){t=t||{},ct(t,{text:"loading",textColor:H.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:H.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new St,i=new It({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Nt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new It({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Xo({shape:{startAngle:-Pa/2,endAngle:-Pa/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Pa*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Pa*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Pg=(function(){function r(t,e,i,n){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Y();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;I(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Ee(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;I(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,i);var y=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(y)}),v.perform(y)&&(a=!0)}else h&&h.each(function(g,p){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!u.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Y(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Rn({plan:HT,reset:VT,count:UT}));c.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||Rn({reset:BT});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=Y(),l=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";Ee(!t.createOnAllSeries,c),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,I(i.getSeries(),d));function d(y){var g=y.uid,p=u.set(g,s&&s.get(g)||(v=!0,Rn({reset:NT,onDirty:FT})));p.context={model:y,overallProgress:h},p.agent=o,p.__block=h,a._pipe(y,p)}v&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return Q(t)&&(t={overallReset:t,seriesType:YT(t)}),t.uid=Qo("stageHandler"),e&&(t.visualType=e),t},r})();function BT(r){r.overallReset(r.ecModel,r.api,r.payload)}function NT(r){return r.overallProgress&&zT}function zT(){this.agent.dirty(),this.getDownstream().dirty()}function FT(){this.agent&&this.agent.dirty()}function HT(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function VT(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Bt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?j(t,function(e,i){return Rg(i)}):GT}var GT=Rg(0);function Rg(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function UT(r){return r.data.count()}function YT(r){xo=null;try{r(Zn,Eg)}catch{}return xo}var Zn={},Eg={},xo;Og(Zn,Pf);Og(Eg,ug);Zn.eachSeriesByType=Zn.eachRawSeriesByType=function(r){xo=r};Zn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(xo=r.subType)};function Og(r,t){for(var e in t.prototype)r[e]=Dt}var E=H.darkColor,WT=E.background,tn=function(){return{axisLine:{lineStyle:{color:E.axisLine}},splitLine:{lineStyle:{color:E.axisSplitLine}},splitArea:{areaStyle:{color:[E.backgroundTint,E.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:E.axisMinorSplitLine}},axisLabel:{color:E.axisLabel},axisName:{}}},uc={label:{color:E.secondary},itemStyle:{borderColor:E.borderTint},dividerLineStyle:{color:E.border}},kg={darkMode:!0,color:E.theme,backgroundColor:WT,axisPointer:{lineStyle:{color:E.border},crossStyle:{color:E.borderShade},label:{color:E.tertiary}},legend:{textStyle:{color:E.secondary},pageTextStyle:{color:E.tertiary}},textStyle:{color:E.secondary},title:{textStyle:{color:E.primary},subtextStyle:{color:E.quaternary}},toolbox:{iconStyle:{borderColor:E.accent50}},tooltip:{backgroundColor:E.neutral20,defaultBorderColor:E.border,textStyle:{color:E.tertiary}},dataZoom:{borderColor:E.accent10,textStyle:{color:E.tertiary},brushStyle:{color:E.backgroundTint},handleStyle:{color:E.neutral00,borderColor:E.accent20},moveHandleStyle:{color:E.accent40},emphasis:{handleStyle:{borderColor:E.accent50}},dataBackground:{lineStyle:{color:E.accent30},areaStyle:{color:E.accent20}},selectedDataBackground:{lineStyle:{color:E.accent50},areaStyle:{color:E.accent30}}},visualMap:{textStyle:{color:E.secondary},handleStyle:{borderColor:E.neutral30}},timeline:{lineStyle:{color:E.accent10},label:{color:E.tertiary},controlStyle:{color:E.accent30,borderColor:E.accent30}},calendar:{itemStyle:{color:E.neutral00,borderColor:E.neutral20},dayLabel:{color:E.tertiary},monthLabel:{color:E.secondary},yearLabel:{color:E.secondary}},matrix:{x:uc,y:uc,backgroundColor:{borderColor:E.axisLine},body:{itemStyle:{borderColor:E.borderTint}}},timeAxis:tn(),logAxis:tn(),valueAxis:tn(),categoryAxis:tn(),line:{symbol:"circle"},graph:{color:E.theme},gauge:{title:{color:E.secondary},axisLine:{lineStyle:{color:[[1,E.neutral05]]}},axisLabel:{color:E.axisLabel},detail:{color:E.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:E.background}},radar:(function(){var r=tn();return r.axisName={color:E.axisLabel},r.axisLine.lineStyle.color=E.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:E.neutral20,textStyle:{color:E.secondary}},emphasis:{itemStyle:{color:E.neutral30}}}},sunburst:{itemStyle:{borderColor:E.background}},map:{itemStyle:{borderColor:E.border,areaColor:E.neutral10},label:{color:E.tertiary},emphasis:{label:{color:E.primary},itemStyle:{areaColor:E.highlight}},select:{label:{color:E.primary},itemStyle:{areaColor:E.highlight}}},geo:{itemStyle:{borderColor:E.border,areaColor:E.neutral10},emphasis:{label:{color:E.primary},itemStyle:{areaColor:E.highlight}},select:{label:{color:E.primary},itemStyle:{color:E.highlight}}}};kg.categoryAxis.splitLine.show=!1;var XT=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(z(t)){var a=Le(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};I(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=l.lastIndexOf(v);if(c>0&&c===l.length-v.length){var d=l.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),Tl=["symbol","symbolSize","symbolRotate","symbolOffset"],lc=Tl.concat(["symbolKeepAspect"]),$T={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Tl.length;o++){var s=Tl[o],u=r.get(s);Q(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(R({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var l=pt(n);function f(h,v){for(var c=r.getRawValue(v),d=r.getDataParams(v),y=0;y<l.length;y++){var g=l[y];h.setItemVisual(v,g,n[g](c,d))}}return{dataEach:a?f:null}}},ZT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<lc.length;s++){var u=lc[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:e.hasItemOption?i:null}}};function qT(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function KT(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function yi(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),v=ra(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:k(v)?h.getName(v[0]):h.getName(v),selected:z(u)?u:R({},u)})}})}function QT(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(yi("map","selectchanged",t,n,i),yi("pie","selectchanged",t,n,i)):i.fromAction==="select"?(yi("map","selected",t,n,i),yi("pie","selected",t,n,i)):i.fromAction==="unselect"&&(yi("map","unselected",t,n,i),yi("pie","unselected",t,n,i))})}function _n(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var jT=Math.round(Math.random()*9),JT=typeof Object.defineProperty=="function",tb=(function(){function r(){this._id="__ec_inner_"+jT++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return JT?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),eb=lt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),rb=lt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),ib=lt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),v=Math.cos(l),c=o*.6,d=o*.7;r.moveTo(e-f,u+s),r.arc(e,u,o,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(e+f-h*c,u+s+v*c,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*c,u+s+v*c,e-f,u+s),r.closePath()}}),nb=lt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),ab={line:ri,rect:It,roundRect:It,square:It,circle:Yo,diamond:rb,pin:ib,arrow:nb,triangle:eb},ob={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},bl={};I(ab,function(r,t){bl[t]=new r});var sb=lt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=tp(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=bl[i];n||(i="rect",n=bl[i]),ob[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function ub(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||H.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function aa(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var u;return r.indexOf("image://")===0?u=Gp(r.slice(8),new W(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?u=mf(r.slice(7),{},new W(t,e,i,n),o?"center":"cover"):u=new sb({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=ub,a&&u.setColor(a),u}function Nf(r){return k(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function rs(r,t){if(r!=null)return k(r)||(r=[r,r]),[Ht(r[0],t[0])||0,Ht(V(r[1],r[0]),t[1])||0]}function $r(r){return isFinite(r)}function lb(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=$r(i)?i:0,n=$r(n)?n:1,a=$r(a)?a:0,o=$r(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function fb(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,u=u*a),o=$r(o)?o:.5,s=$r(s)?s:.5,u=u>=0&&$r(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function xl(r,t,e){for(var i=t.type==="radial"?fb(r,t,e):lb(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function hb(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Ra(r){return parseInt(r,10)}function Ea(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Ra(s[i])||Ra(r.style[i]))-(Ra(s[a])||0)-(Ra(s[o])||0)|0}function vb(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ut(r)?[r]:k(r)?r:null}function Bg(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&vb(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=j(e,function(a){return a/n}),i/=n)}return[e,i]}var cb=new Fi(!0);function Co(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function fc(r){return typeof r=="string"&&r!=="none"}function Do(r){var t=r.fill;return t!=null&&t!=="none"}function hc(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function vc(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Cl(r,t,e){var i=dp(t.image,t.__image,e);if(Vo(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*_m),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function db(r,t,e,i){var n,a=Co(e),o=Do(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||cb,h=t.__dirty;if(!i){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,y=a&&!!c.colorStops,g=o&&!!v.image,p=a&&!!c.image,m=void 0,_=void 0,S=void 0,T=void 0,w=void 0;(d||y)&&(w=t.getBoundingRect()),d&&(m=h?xl(r,v,w):t.__canvasFillGradient,t.__canvasFillGradient=m),y&&(_=h?xl(r,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Cl(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),p&&(T=h||!t.__canvasStrokePattern?Cl(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),y?r.strokeStyle=_:p&&(T?r.strokeStyle=T:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var C,x;r.setLineDash&&e.lineDash&&(n=Bg(t),C=n[0],x=n[1]);var D=!0;(l||h&Ii)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,u?s:1),C&&(r.setLineDash(C),r.lineDashOffset=x),i||(e.strokeFirst?(a&&vc(r,e),o&&hc(r,e)):(o&&hc(r,e),a&&vc(r,e))),C&&r.setLineDash([])}function pb(r,t,e){var i=t.__image=dp(e.image,t.__image,t,t.onload);if(!(!i||!Vo(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(i,l,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,v=s-f;r.drawImage(i,l,f,h,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function gb(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||fr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=Bg(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Co(e)&&r.strokeText(n,e.x,e.y),Do(e)&&r.fillText(n,e.x,e.y)):(Do(e)&&r.fillText(n,e.x,e.y),Co(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var cc=["shadowBlur","shadowOffsetX","shadowOffsetY"],dc=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ng(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Yt(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?jr.opacity:o}(i||t.blend!==e.blend)&&(a||(Yt(r,n),a=!0),r.globalCompositeOperation=t.blend||jr.blend);for(var s=0;s<cc.length;s++){var u=cc[s];(i||t[u]!==e[u])&&(a||(Yt(r,n),a=!0),r[u]=r.dpr*(t[u]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(Yt(r,n),a=!0),r.shadowColor=t.shadowColor||jr.shadowColor),a}function pc(r,t,e,i,n){var a=qn(t,n.inHover),o=i?null:e&&qn(e,n.inHover)||{};if(a===o)return!1;var s=Ng(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Yt(r,n),s=!0),fc(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Yt(r,n),s=!0),fc(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Yt(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==l&&(s||(Yt(r,n),s=!0),r.lineWidth=l)}for(var f=0;f<dc.length;f++){var h=dc[f],v=h[0];(i||a[v]!==o[v])&&(s||(Yt(r,n),s=!0),r[v]=a[v]||h[1])}return s}function yb(r,t,e,i,n){return Ng(r,qn(t,n.inHover),e&&qn(e,n.inHover),i,n)}function zg(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function mb(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),zg(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function _b(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var gc=1,yc=2,mc=3,_c=4;function Sb(r){var t=Do(r),e=Co(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Yt(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function qn(r,t){return t&&r.__hoverStyle||r.style}function Fg(r,t){Zr(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zr(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Qt,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,u=!1;if((!o||hb(a,o))&&(o&&o.length&&(Yt(r,e),r.restore(),u=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(Yt(r,e),r.save(),mb(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=e.prevEl;l||(u=s=!0);var f=t instanceof lt&&t.autoBatch&&Sb(t.style);s||_b(n,l.transform)?(Yt(r,e),zg(r,t)):f||Yt(r,e);var h=qn(t,e.inHover);t instanceof lt?(e.lastDrawType!==gc&&(u=!0,e.lastDrawType=gc),pc(r,t,l,u,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),db(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof yo?(e.lastDrawType!==mc&&(u=!0,e.lastDrawType=mc),pc(r,t,l,u,e),gb(r,t,h)):t instanceof dr?(e.lastDrawType!==yc&&(u=!0,e.lastDrawType=yc),yb(r,t,l,u,e),pb(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==_c&&(u=!0,e.lastDrawType=_c),wb(r,t,e)),f&&i&&Yt(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function wb(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Zr(r,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=n.length;l<f;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Zr(r,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var ru=new tb,Sc=new Ni(100),wc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Dl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&ru.delete(r);var a=ru.get(r);if(a)return a;var o=ct(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,ru.set(r,s),r.dirty=!1,s;function u(l){for(var f=[e],h=!0,v=0;v<wc.length;++v){var c=o[wc[v]];if(c!=null&&!k(c)&&!z(c)&&!ut(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(n?"-svg":"");var y=Sc.get(d);y&&(n?l.svgElement=y:l.image=y)}var g=Vg(o.dashArrayX),p=Tb(o.dashArrayY),m=Hg(o.symbol),_=bb(g),S=Gg(p),T=!n&&Ze.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},b=x(),C;T&&(T.width=b.width*e,T.height=b.height*e,C=T.getContext("2d")),D(),h&&Sc.put(d,T||w),l.image=T,l.svgElement=w,l.svgWidth=b.width,l.svgHeight=b.height;function x(){for(var L=1,A=0,M=_.length;A<M;++A)L=Nh(L,_[A]);for(var P=1,A=0,M=m.length;A<M;++A)P=Nh(P,m[A].length);L*=P;var O=S*_.length*m.length;return{width:Math.max(1,Math.min(L,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,T.width,T.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,T.width,T.height)));for(var L=0,A=0;A<p.length;++A)L+=p[A];if(L<=0)return;for(var M=-S,P=0,O=0,B=0;M<b.height;){if(P%2===0){for(var $=O/2%m.length,K=0,J=0,Z=0;K<b.width*2;){for(var gt=0,A=0;A<g[B].length;++A)gt+=g[B][A];if(gt<=0)break;if(J%2===0){var et=(1-o.symbolSize)*.5,wt=K+g[B][J]*et,xt=M+p[P]*et,me=g[B][J]*o.symbolSize,_e=p[P]*o.symbolSize,Se=Z/2%m[$].length;Ne(wt,xt,me,_e,m[$][Se])}K+=g[B][J],++Z,++J,J===g[B].length&&(J=0)}++B,B===g.length&&(B=0)}M+=p[P],++O,++P,P===p.length&&(P=0)}function Ne($t,Ct,U,q,gr){var Pt=n?1:e,Jf=aa(gr,$t*Pt,Ct*Pt,U*Pt,q*Pt,o.color,o.symbolKeepAspect);if(n){var th=i.painter.renderOneToVNode(Jf);th&&w.children.push(th)}else Fg(C,Jf)}}}}function Hg(r){if(!r||r.length===0)return[["rect"]];if(z(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!z(r[e])){t=!1;break}if(t)return Hg([r]);for(var i=[],e=0;e<r.length;++e)z(r[e])?i.push([r[e]]):i.push(r[e]);return i}function Vg(r){if(!r||r.length===0)return[[0,0]];if(ut(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!ut(r[i])){e=!1;break}if(e)return Vg([r]);for(var n=[],i=0;i<r.length;++i)if(ut(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=j(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function Tb(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ut(r)){var t=Math.ceil(r);return[t,t]}var e=j(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function bb(r){return j(r,function(t){return Gg(t)})}function Gg(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function xb(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=Dl(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Dl(n,t)}}})}var fe=new pe,Ug={};function Cb(r,t){Ug[r]=t}function Db(r){return Ug[r]}var Ib=1,Lb=800,Mb=900,Ab=1e3,Pb=2e3,Rb=5e3,Yg=1e3,Eb=1100,zf=2e3,Wg=3e3,Ob=4e3,is=4500,kb=4600,Bb=5e3,Nb=6e3,Xg=7e3,zb={PROCESSOR:{FILTER:Ab,SERIES_FILTER:Lb,STATISTIC:Rb},VISUAL:{LAYOUT:Yg,PROGRESSIVE_LAYOUT:Eb,GLOBAL:zf,CHART:Wg,POST_CHART_LAYOUT:kb,COMPONENT:Ob,BRUSH:Bb,CHART_ITEM:is,ARIA:Nb,DECAL:Xg}},_t="__flagInMainProcess",Oa="__mainProcessVersion",Tt="__pendingUpdate",iu="__needsUpdateStatus",Tc=/^[a-zA-Z0-9_]+$/,nu="__connectUpdateStatus",bc=0,Fb=1,Hb=2;function $g(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return qg(this,r,t)}}function Zg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return qg(this,r,t)}}function qg(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),pe.prototype[t].apply(r,e)}var Kg=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(pe),Qg=Kg.prototype;Qg.on=Zg("on");Qg.off=Zg("off");var Fr,au,ka,He,Ba,ou,su,mi,_i,xc,Cc,uu,Dc,Na,Ic,jg,te,Lc,Si,Jg=(function(r){N(t,r);function t(e,i,n){var a=r.call(this,new XT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a._dom=e;var o="canvas",s="auto",u=!1;a[Oa]=1,n.ssr;var l=a._zr=Eh(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:V(n.useDirtyRect,u),useCoarsePointer:V(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Bf(it(l.flush,l),17),a._updateTheme(i),a._locale=V1(n.locale||Kp),a._coordSysMgr=new Jo;var f=a._api=Ic(a);function h(v,c){return v.__prio-c.__prio}return Xa(Lo,h),Xa(Ml,h),a._scheduler=new Pg(a,f,Ml,Lo),a._messageCenter=new Kg,a._initEvents(),a.resize=it(a.resize,a),l.animation.on("frame",a._onframe,a),xc(l,a),Cc(l,a),Ru(a),a}return t.prototype._onframe=function(){if(!this._disposed){Lc(this);var e=this._scheduler;if(this[Tt]){var i=this[Tt].silent;this[_t]=!0,Si(this);try{Fr(this),He.update.call(this,null,this[Tt].updateParams)}catch(u){throw this[_t]=!1,this[Tt]=null,u}this._zr.flush(),this[_t]=!1,this[Tt]=null,mi.call(this,i),_i.call(this,i)}else if(e.unfinished){var n=Ib,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),ou(this,a),e.performVisualTasks(a),Na(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[_t]){if(this._disposed){this.id;return}var a,o,s;if(F(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[_t]=!0,Si(this),!this._model||i){var u=new Dw(this._api),l=this._theme,f=this._model=new Pf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},Al);var h={seriesTransition:s,optionChanged:!0};if(n)this[Tt]={silent:a,updateParams:h},this[_t]=!1,this.getZr().wakeUp();else{try{Fr(this),He.update.call(this,null,h)}catch(v){throw this[Tt]=null,this[_t]=!1,v}this._ssr||this._zr.flush(),this[Tt]=null,this[_t]=!1,mi.call(this,a),_i.call(this,a)}}},t.prototype.setTheme=function(e,i){if(!this[_t]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[Tt]&&(a==null&&(a=this[Tt].silent),o=this[Tt].updateParams,this[Tt]=null),this[_t]=!0,Si(this);try{this._updateTheme(e),n.setTheme(this._theme),Fr(this),He.update.call(this,{type:"setTheme"},o)}catch(s){throw this[_t]=!1,s}this[_t]=!1,mi.call(this,a),_i.call(this,a)}}},t.prototype._updateTheme=function(e){z(e)&&(e=ty[e]),e&&(e=X(e),e&&fg(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||G.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,i=e.storage.getDisplayList();return I(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;I(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Mc[n]){var u=s,l=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();I(En,function(_,S){if(_.group===n){var T=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(X(e)),w=_.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),f=o(w.right,f),h=o(w.bottom,h),v.push({dom:T,left:w.left,top:w.top})}}),u*=c,l*=c,f*=c,h*=c;var d=f-u,y=h-l,g=Ze.createCanvas(),p=Eh(g,{renderer:i?"svg":"canvas"});if(p.resize({width:d,height:y}),i){var m="";return I(v,function(_){var S=_.left-u,T=_.top-l;m+='<g transform="translate('+S+","+T+')">'+_.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&p.painter.setBackgroundColor(e.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return e.connectedBackgroundColor&&p.add(new It({shape:{x:0,y:0,width:d,height:y},style:{fill:e.connectedBackgroundColor}})),I(v,function(_){var S=new dr({style:{x:_.left*c-u,y:_.top*c-l,image:_.dom}});p.add(S)}),p.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i,n){return Ba(this,"convertToPixel",e,i,n)},t.prototype.convertToLayout=function(e,i,n){return Ba(this,"convertToLayout",e,i,n)},t.prototype.convertFromPixel=function(e,i,n){return Ba(this,"convertFromPixel",e,i,n)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=Ls(n,e);return I(o,function(s,u){u.indexOf("Models")>=0&&I(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,l))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=Ls(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?qT(s,u,i):KT(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;I(Vb,function(n){var a=function(o){var s=e.getModel(),u=o.target,l,f=n==="globalout";if(f?l={}:u&&_n(u,function(y){var g=rt(y);if(g&&g.dataIndex!=null){var p=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,u)||{},!0}else if(g.eventData)return l=R({},g.eventData),!0},!0),l){var h=l.componentType,v=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",v=l.seriesIndex);var c=h&&v!=null&&s.getComponent(h,v),d=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=o,l.type=n,e._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:c,view:d},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)});var i=this._messageCenter;I(Ll,function(n,a){i.on(a,function(o){e.trigger(a,o)})}),QT(i,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&hp(this.getDom(),Hf,"");var i=this,n=i._api,a=i._model;I(i._componentsViews,function(o){o.dispose(a,n)}),I(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete En[i.id]},t.prototype.resize=function(e){if(!this[_t]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[Tt]&&(a==null&&(a=this[Tt].silent),n=!0,this[Tt]=null),this[_t]=!0,Si(this);try{n&&Fr(this),He.update.call(this,{type:"resize",animation:R({duration:0},e&&e.animation)})}catch(o){throw this[_t]=!1,o}this[_t]=!1,mi.call(this,a),_i.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(F(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Pl[e]){var n=Pl[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=R({},e);return i.type=Il[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(F(i)||(i={silent:!!i}),!!Io[e.type]&&this._model){if(this[_t]){this._pendingActions.push(e);return}var n=i.silent;su.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&G.browser.weChat&&this._throttledZrFlush(),mi.call(this,n),_i.call(this,n)}},t.prototype.updateLabelLayout=function(){fe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Fr=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),au(h,!0),au(h,!1),v.plan()},au=function(h,v){for(var c=h._model,d=h._scheduler,y=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,p=h._zr,m=h._api,_=0;_<y.length;_++)y[_].__alive=!1;v?c.eachComponent(function(w,b){w!=="series"&&S(b)}):c.eachSeries(S);function S(w){var b=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,x=!b&&g[C];if(!x){var D=Le(w.type),L=v?ke.getClass(D.main,D.sub):lr.getClass(D.sub);x=new L,x.init(c,m),g[C]=x,y.push(x),p.add(x.group)}w.__viewId=x.__id=C,x.__alive=!0,x.__model=w,x.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(x,w,c,m)}for(var _=0;_<y.length;){var T=y[_];T.__alive?_++:(!v&&T.renderTask.dispose(),p.remove(T.group),T.dispose(c,m),y.splice(_,1),g[T.__id]===T&&delete g[T.__id],T.__id=T.group.__ecComponentInfo=null)}},ka=function(h,v,c,d,y){var g=h._model;if(g.setUpdatePayload(c),!d){I([].concat(h._componentsViews).concat(h._chartsViews),T);return}var p={};p[d+"Id"]=c[d+"Id"],p[d+"Index"]=c[d+"Index"],p[d+"Name"]=c[d+"Name"];var m={mainType:d,query:p};y&&(m.subType=y);var _=c.excludeSeriesId,S;_!=null&&(S=Y(),I(Bt(_),function(w){var b=ce(w,null);b!=null&&S.set(b,!0)})),g&&g.eachComponent(m,function(w){var b=S&&S.get(w.id)!=null;if(!b)if(hv(c))if(w instanceof vr)c.type===Jr&&!c.notBlur&&!w.get(["emphasis","disabled"])&&gS(w,c,h._api);else{var C=ff(w.mainType,w.componentIndex,c.name,h._api),x=C.focusSelf,D=C.dispatchers;c.type===Jr&&x&&!c.notBlur&&sl(w.mainType,w.componentIndex,h._api),D&&I(D,function(L){c.type===Jr?Vn(L):Gn(L)})}else fl(c)&&w instanceof vr&&(_S(w,c,h._api),fv(w),te(h))},h),g&&g.eachComponent(m,function(w){var b=S&&S.get(w.id)!=null;b||T(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function T(w){w&&w.__alive&&w[v]&&w[v](w.__model,g,h._api,c)}},He={prepareAndUpdate:function(h){Fr(this),He.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,y=this._zr,g=this._coordSysMgr,p=this._scheduler;if(c){c.setUpdatePayload(h),p.restoreData(c,h),p.performSeriesTasks(c),g.create(c,d),p.performDataProcessorTasks(c,h),ou(this,c),g.update(c,d),i(c),p.performVisualTasks(c,h);var m=c.get("backgroundColor")||"transparent";y.setBackgroundColor(m);var _=c.get("darkMode");_!=null&&_!=="auto"&&y.setDarkMode(_),uu(this,c,d,h,v),fe.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var y=[];c.eachComponent(function(p,m){if(p!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,d,h);S&&S.update&&y.push(_)}else y.push(_)}});var g=Y();c.eachSeries(function(p){var m=v._chartsMap[p.__viewId];if(m.updateTransform){var _=m.updateTransform(p,c,d,h);_&&_.update&&g.set(p.uid,1)}else g.set(p.uid,1)}),i(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),Na(this,c,d,h,{},g),fe.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),lr.markUpdateMethod(h,"updateView"),i(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),uu(this,v,this._api,h,{}),fe.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),lr.markUpdateMethod(h,"updateVisual"),i(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,y){if(d!=="series"){var g=v.getViewOfComponentModel(y);g&&g.__alive&&g.updateVisual(y,c,v._api,h)}}),c.eachSeries(function(d){var y=v._chartsMap[d.__viewId];y.updateVisual(d,c,v._api,h)}),fe.trigger("afterupdate",c,this._api))},updateLayout:function(h){He.update.call(this,h)}};function e(h,v,c,d,y){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),m,_=Ls(g,c),S=0;S<p.length;S++){var T=p[S];if(T[v]&&(m=T[v](g,_,d,y))!=null)return m}}Ba=e,ou=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(y){d.updateStreamModes(y,c[y.__viewId])})},su=function(h,v){var c=this,d=this.getModel(),y=h.type,g=h.escapeConnect,p=Io[y],m=(p.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&Le(m[0]);this[_t]=!0,Si(this);var T=[h],w=!1;h.batch&&(w=!0,T=j(h.batch,function(B){return B=ct(R({},B),h),B.batch=null,B}));var b=[],C,x=[],D=p.nonRefinedEventType,L=fl(h),A=hv(h);if(A&&Rp(this._api),I(T,function(B){var $=p.action(B,d,c._api);if(p.refineEvent?x.push($):C=$,C=C||R({},B),C.type=D,b.push(C),A){var K=tf(h),J=K.queryOptionMap,Z=K.mainTypeSpecified,gt=Z?J.keys()[0]:"series";ka(c,_,B,gt),te(c)}else L?(ka(c,_,B,"series"),te(c)):S&&ka(c,_,B,S.main,S.sub)}),_!=="none"&&!A&&!L&&!S)try{this[Tt]?(Fr(this),He.update.call(this,h),this[Tt]=null):He[_].call(this,h)}catch(B){throw this[_t]=!1,B}if(w?C={type:D,escapeConnect:g,batch:b}:C=b[0],this[_t]=!1,!v){var M=void 0;if(p.refineEvent){var P=p.refineEvent(x,h,d,this._api).eventContent;Ee(F(P)),M=ct({type:p.refinedEventType},P),M.fromAction=h.type,M.fromActionPayload=h,M.escapeConnect=!0}var O=this._messageCenter;O.trigger(C.type,C),M&&O.trigger(M.type,M)}},mi=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();su.call(this,c,h)}},_i=function(h){!h&&this.trigger("updated")},xc=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[Tt]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Cc=function(h,v){h.on("mouseover",function(c){var d=c.target,y=_n(d,ll);y&&(yS(y,c,v._api),te(v))}).on("mouseout",function(c){var d=c.target,y=_n(d,ll);y&&(mS(y,c,v._api),te(v))}).on("click",function(c){var d=c.target,y=_n(d,function(m){return rt(m).dataIndex!=null},!0);if(y){var g=y.selected?"unselect":"select",p=rt(y);v._api.dispatchAction({type:g,dataType:p.dataType,dataIndexInside:p.dataIndex,seriesIndex:p.seriesIndex,isFromClick:!0})}})};function i(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(h){var v=[],c=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,T=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?c:v).push({zlevel:S,z:T,idx:_.componentIndex,type:m,key:w})}),d){var y=v.concat(c),g,p;Xa(y,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),I(y,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,T=m.key;g!=null&&(S=Math.max(g,S)),T?(S===g&&T!==p&&S++,p=T):p&&(S===g&&S++,p=""),g=S,_.setZLevel(S)})}}uu=function(h,v,c,d,y){n(v),Dc(h,v,c,d,y),I(h._chartsViews,function(g){g.__alive=!1}),Na(h,v,c,d,y),I(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},Dc=function(h,v,c,d,y,g){I(g||h._componentsViews,function(p){var m=p.__model;l(m,p),p.render(m,v,c,d),u(m,p),f(m,p)})},Na=function(h,v,c,d,y,g){var p=h._scheduler;y=R(y||{},{updatedSeries:v.getSeries()}),fe.trigger("series:beforeupdate",v,c,y);var m=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var T=S.renderTask;p.updatePayload(T,d),l(_,S),g&&g.get(_.uid)&&T.dirty(),T.perform(p.getPerformArgs(T))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),fv(_)}),p.unfinished=m||p.unfinished,fe.trigger("series:layoutlabels",v,c,y),fe.trigger("series:transition",v,c,y),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(h,v),fe.trigger("series:afterupdate",v,c,y)},te=function(h){h[iu]=!0,h.getZr().wakeUp()},Si=function(h){h[Oa]=(h[Oa]+1)%1e3},Lc=function(h){h[iu]&&(h.getZr().storage.traverse(function(v){An(v)||a(v)}),h[iu]=!1)};function a(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var y=c[d];y==="emphasis"||y==="blur"||y==="select"||v.push(y)}h.selected&&h.states.select&&v.push("select"),h.hoverState===sf&&h.states.emphasis?v.push("emphasis"):h.hoverState===of&&h.states.blur&&v.push("blur"),h.useStates(v)}function o(h,v){var c=h._zr,d=c.storage,y=0;d.traverse(function(g){g.isGroup||y++}),y>v.get("hoverLayerThreshold")&&!G.node&&!G.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var p=h._chartsMap[g.__viewId];p.__alive&&p.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function u(h,v){if(!h.preventAutoZ){var c=Yn(h);v.eachRendered(function(d){return Xp(d,c.z,c.zlevel),!0})}}function l(h,v){v.eachRendered(function(c){if(!An(c)){var d=c.getTextContent(),y=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),y=c.get("duration"),g=y>0?{duration:y,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(p){if(p.states&&p.states.emphasis){if(An(p))return;if(p instanceof lt&&xS(p),p.__dirty){var m=p.prevStates;m&&p.useStates(m)}if(d){p.stateTransition=g;var _=p.getTextContent(),S=p.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}p.__dirty&&a(p)}})}Ic=function(h){return new((function(v){N(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},c.prototype.enterEmphasis=function(d,y){Vn(d,y),te(h)},c.prototype.leaveEmphasis=function(d,y){Gn(d,y),te(h)},c.prototype.enterBlur=function(d){pS(d),te(h)},c.prototype.leaveBlur=function(d){Lp(d),te(h)},c.prototype.enterSelect=function(d){Mp(d),te(h)},c.prototype.leaveSelect=function(d){Ap(d),te(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c.prototype.getMainProcessVersion=function(){return h[Oa]},c})(ug))(h)},jg=function(h){function v(c,d){for(var y=0;y<c.length;y++){var g=c[y];g[nu]=d}}I(Il,function(c,d){h._messageCenter.on(d,function(y){if(Mc[h.group]&&h[nu]!==bc){if(y&&y.escapeConnect)return;var g=h.makeActionFromEvent(y),p=[];I(En,function(m){m!==h&&m.group===h.group&&p.push(m)}),v(p,bc),I(p,function(m){m[nu]!==Fb&&m.dispatchAction(g)}),v(p,Hb)}})})}})(),t})(pe),Ff=Jg.prototype;Ff.on=$g("on");Ff.off=$g("off");Ff.one=function(r,t,e){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var Vb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Io={},Il={},Ll={},Ml=[],Al=[],Lo=[],ty={},Pl={},En={},Mc={},Gb=+new Date-0,Hf="_echarts_instance_";function Ub(r,t,e){var i=!(e&&e.ssr);if(i){var n=Yb(r);if(n)return n}var a=new Jg(r,t,e);return a.id="ec_"+Gb++,En[a.id]=a,i&&hp(r,Hf,a.id),jg(a),fe.trigger("afterinit",a),a}function Yb(r){return En[i0(r,Hf)]}function ey(r,t){ty[r]=t}function ry(r){st(Al,r)<0&&Al.push(r)}function iy(r,t){Gf(Ml,r,t,Pb)}function Wb(r){Vf("afterinit",r)}function Xb(r){Vf("afterupdate",r)}function Vf(r,t){fe.on(r,t)}function ni(r,t,e){var i,n,a,o,s;Q(t)&&(e=t,t=""),F(r)?(i=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),a=r.refineEvent):(i=r,n=t);function u(f){return f.toLowerCase()}n=u(n||i);var l=a?u(i):n;Io[i]||(Ee(Tc.test(i)&&Tc.test(n)),a&&Ee(n!==i),Io[i]={actionType:i,refinedEventType:n,nonRefinedEventType:l,update:o,action:e,refineEvent:a},Ll[n]=1,a&&s&&(Ll[l]=1),Il[l]=i)}function $b(r,t){Jo.register(r,t)}function Zb(r,t){Gf(Lo,r,t,Yg,"layout")}function ai(r,t){Gf(Lo,r,t,Wg,"visual")}var Ac=[];function Gf(r,t,e,i,n){if((Q(t)||F(t))&&(e=t,t=i),!(st(Ac,e)>=0)){Ac.push(e);var a=Pg.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function ny(r,t){Pl[r]=t}function qb(r,t,e){var i=Db("registerMap");i&&i(r,t,e)}var Kb=rT;ai(zf,RT);ai(is,ET);ai(is,OT);ai(zf,$T);ai(is,ZT);ai(Xg,xb);ry(fg);iy(Mb,zw);ny("default",kT);ni({type:Jr,event:Jr,update:Jr},Dt);ni({type:ja,event:ja,update:ja},Dt);ni({type:mo,event:uf,update:mo,action:Dt,refineEvent:Uf,publishNonRefinedEvent:!0});ni({type:al,event:uf,update:al,action:Dt,refineEvent:Uf,publishNonRefinedEvent:!0});ni({type:_o,event:uf,update:_o,action:Dt,refineEvent:Uf,publishNonRefinedEvent:!0});function Uf(r,t,e,i){return{eventContent:{selected:SS(e),isFromClick:t.isFromClick||!1}}}ey("default",{});ey("dark",kg);function en(r){return r==null?0:r.length||1}function Pc(r){return r}var Qb=(function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||Pc,this._newKeyGetter=n||Pc,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=en(u);if(l>1){var f=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],f=n[u],h=en(l),v=en(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,l),n[u]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(h===1&&v===1)this._update&&this._update(f,l),n[u]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(l[c]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=en(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[n]=null}},r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var u=e[s],l=en(u);l===0?(e[s]=o,a&&i.push(s)):l===1?e[s]=[u,o]:u.push(o)}}},r})(),jb=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Jb(r,t){var e={},i=e.encode={},n=Y(),a=[],o=[],s={};I(r.dimensions,function(v){var c=r.getDimensionInfo(v),d=c.coordDim;if(d){var y=c.coordDimIndex;lu(i,d)[y]=v,c.isExtraCoord||(n.set(d,1),ex(c.type)&&(a[0]=v),lu(s,d)[y]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}ig.each(function(g,p){var m=lu(i,p),_=c.otherDims[p];_!=null&&_!==!1&&(m[_]=c.name)})});var u=[],l={};n.each(function(v,c){var d=i[c];l[c]=d[0],u=u.concat(d)}),e.dataDimsOnCoord=u,e.dataDimIndicesOnCoord=j(u,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=l;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new jb(s,t),e}function lu(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function tx(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function ex(r){return!(r==="ordinal"||r==="time")}var io=(function(){function r(t){this.otherDims={},t!=null&&R(this,t)}return r})(),rx=ft(),ix={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ay=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=uy(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return V(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=vg(this.source),i=!ly(t),n="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=e?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(u=e?v.name:null,l=v.type)}a.push({property:u,type:l,ordinalMeta:f}),e&&u!=null&&(!h||!h.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=ix[l]||"f",f&&(n+=f.uid),n+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,n].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function oy(r){return r instanceof ay}function sy(r){for(var t=Y(),e=0;e<(r||[]).length;e++){var i=r[e],n=F(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function uy(r){var t=rx(r);return t.dimNameMap||(t.dimNameMap=sy(r.dimensionsDefine))}function ly(r){return r>30}var rn=F,tr=j,nx=typeof Int32Array>"u"?Array:Int32Array,ax="e\0\0",Rc=-1,ox=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sx=["_approximateExtent"],Ec,za,nn,an,fu,on,hu,Mo=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;oy(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<i.length;f++){var h=i[f],v=z(h)?new io({name:h}):h instanceof io?h:new io(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,l[c]!=null&&(u=!0),v.createInvertedIndices&&(s[c]=[]);var y=f;ut(v.storeDimIndex)&&(y=v.storeDimIndex),d.itemName===0&&(this._nameDimIdx=y),d.itemId===0&&(this._idDimIdx=y),n&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Y();I(o,function(p){g.set(a[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(ut(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof yl&&(a=t),!a){var o=this.dimensions,s=Rf(t)||Wt(t)?new cg(t,o.length):t;a=new yl;var u=tr(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Jb(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=e[u],o&&hu(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ur&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===Jt;if(u&&!n.pure)for(var l=[],f=t;f<e;f++){var h=n.getItem(f,l);if(!this.hasItemOption&&X_(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=ce(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=ce(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)hu(this,f);Ec(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){rn(t)?R(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=nn(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return za(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return k(t)?n.getValues(tr(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i&&i[e];return n==null||isNaN(n)?Rc:n},r.prototype.each=function(t,e,i){Q(t)&&(i=e,e=t,t=[]);var n=i||this,a=tr(an(t),this._getStoreDimIndex,this);this._store.each(a,n?it(e,n):e)},r.prototype.filterSelf=function(t,e,i){Q(t)&&(i=e,e=t,t=[]);var n=i||this,a=tr(an(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?it(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=pt(t);return I(n,function(a){var o=e._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){Q(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){var a=i||n||this,o=tr(an(t),this._getStoreDimIndex,this),s=on(this);return s._store=this._store.map(o,a?it(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=i||n||this,o=tr(an(t),this._getStoreDimIndex,this);this._store.modify(o,a?it(e,a):e)},r.prototype.downSample=function(t,e,i,n){var a=on(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.minmaxDownSample=function(t,e){var i=on(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},r.prototype.lttbDownSample=function(t,e){var i=on(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new ht(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Qb(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return za(t,i)},function(i){return za(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},rn(t)?R(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),k(a)?a=a.slice():rn(a)&&(a=R({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,rn(e)?R(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){rn(t)?R(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?R(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;aS(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){I(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:tr(this.dimensions,this._getDimInfo,this),this.hostModel)),fu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];Q(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(Xl(arguments)))})},r.internalField=(function(){Ec=function(t){var e=t._invertedIndicesMap;I(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new nx(o.categories.length);for(var u=0;u<i.length;u++)i[u]=Rc;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},nn=function(t,e,i){return ce(t._getCategory(e,i),null)},za=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=nn(t,t._idDimIdx,e)),i==null&&(i=ax+e),i},an=function(t){return k(t)||(t=t!=null?[t]:[]),t},on=function(t){var e=new r(t._schema?t._schema:tr(t.dimensions,t._getDimInfo,t),t.hostModel);return fu(e,t),e},fu=function(t,e){I(ox.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,I(sx,function(i){t[i]=X(e[i])}),t._calculationInfo=R({},e._calculationInfo)},hu=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],u=n[e];if(s==null&&a!=null&&(i[e]=s=nn(t,a,e)),u==null&&o!=null&&(n[e]=u=nn(t,o,e)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[e]=u}}})(),r})();function fy(r,t){Rf(r)||(r=Ef(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Y(),a=[],o=lx(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ly(o),u=i===r.dimensionsDefine,l=u?uy(r):sy(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Y(f),v=new mg(o),c=0;c<v.length;c++)v[c]=-1;function d(x){var D=v[x];if(D<0){var L=i[x],A=F(L)?L:{name:L},M=new io,P=A.name;P!=null&&l.get(P)!=null&&(M.name=M.displayName=P),A.type!=null&&(M.type=A.type),A.displayName!=null&&(M.displayName=A.displayName);var O=a.length;return v[x]=O,M.storeDimIndex=x,a.push(M),M}return a[D]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(x,D){var L=Bt(x).slice();if(L.length===1&&!z(L[0])&&L[0]<0){h.set(D,!1);return}var A=h.set(D,[]);I(L,function(M,P){var O=z(M)?l.get(M):M;O!=null&&O<o&&(A[P]=O,g(d(O),D,P))})});var y=0;I(e,function(x){var D,L,A,M;if(z(x))D=x,M={};else{M=x,D=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=R({},M),M.ordinalMeta=P,L=M.dimsDef,A=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var O=h.get(D);if(O!==!1){if(O=Bt(O),!O.length)for(var B=0;B<(L&&L.length||1);B++){for(;y<o&&d(y).coordDim!=null;)y++;y<o&&O.push(y++)}I(O,function($,K){var J=d($);if(u&&M.type!=null&&(J.type=M.type),g(ct(J,M),D,K),J.name==null&&L){var Z=L[K];!F(Z)&&(Z={name:Z}),J.name=J.displayName=Z.name,J.defaultTooltip=Z.defaultTooltip}A&&ct(J.otherDims,A)})}});function g(x,D,L){ig.get(D)!=null?x.otherDims[D]=L:(x.coordDim=D,x.coordDimIndex=L,n.set(D,!0))}var p=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=p?m||1:0;var S=p||"value";function T(x){x.name==null&&(x.name=x.coordDim)}if(s)I(a,function(x){T(x)}),a.sort(function(x,D){return x.storeDimIndex-D.storeDimIndex});else for(var w=0;w<o;w++){var b=d(w),C=b.coordDim;C==null&&(b.coordDim=fx(S,n,_),b.coordDimIndex=0,(!p||m<=0)&&(b.isExtraCoord=!0),m--),T(b),b.type==null&&(sg(r,w)===Zt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return ux(a),new ay({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function ux(r){for(var t=Y(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function lx(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return I(t,function(a){var o;F(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function fx(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var hx=(function(){function r(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return r})();function vx(r){var t=r.get("coordinateSystem"),e=new hx(t),i=cx[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var cx={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",ir).models[0],a=r.getReferringComponents("yAxis",ir).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),wi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),wi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",ir).models[0];t.coordSysDims=["single"],e.set("single",n),wi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",ir).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),wi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),wi(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(s,u){var l=n.getComponent("parallelAxis",s),f=o[u];e.set(f,l),wi(l)&&(i.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(r,t,e,i){var n=r.getReferringComponents("matrix",ir).models[0];t.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",a),e.set("y",o),i.set("x",a),i.set("y",o)}};function wi(r){return r.get("type")==="category"}function dx(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;px(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,v;if(I(a,function(m,_){z(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!i&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!l&&(i=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var c=f.coordDim,d=f.type,y=0;I(a,function(m){m.coordDim===c&&y++});var g={name:h,coordDim:c,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:v,coordDim:v,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),p.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(p)):(a.push(g),a.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:v,stackResultDimension:h}}function px(r){return!oy(r.schema)}function gx(r,t){var e=r.get("coordinateSystem"),i=Jo.get(e),n;return t&&t.coordSysDims&&(n=j(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=tx(u)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function yx(r,t,e){var i,n;return e&&I(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(i==null&&(i=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function mx(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=Ef(r)):(n=i.getSource(),a=n.sourceFormat===Jt);var o=vx(t),s=gx(t,o),u=e.useEncodeDefaulter,l=Q(u)?u:u?mt(cw,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=fy(n,f),v=yx(h.dimensions,e.createInvertedIndices,o),c=a?null:i.getSharedDataStore(h),d=dx(t,{schema:h,store:c}),y=new Mo(h,t);y.setCalculationInfo(d);var g=v!=null&&_x(n)?function(p,m,_,S){return S===v?_:this.defaultDimValueGetter(p,m,_,S)}:null;return y.hasItemOption=!1,y.initData(a?n:c,null,g),y}function _x(r){if(r.sourceFormat===Jt){var t=Sx(r.data||[]);return!k(ea(t))}}function Sx(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function hy(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Tx(r){var t=r.get("interval");return t??"auto"}function bx(r){return r.type==="category"&&Tx(r.getLabelModel())===0}function Ao(r){return r==="middle"||r==="center"}var Oc=[],xx={registerPreprocessor:ry,registerProcessor:iy,registerPostInit:Wb,registerPostUpdate:Xb,registerUpdateLifecycle:Vf,registerAction:ni,registerCoordinateSystem:$b,registerLayout:Zb,registerVisual:ai,registerTransform:Kb,registerLoading:ny,registerMap:qb,registerImpl:Cb,PRIORITY:zb,ComponentModel:at,ComponentView:ke,SeriesModel:vr,ChartView:lr,registerComponentModel:function(r){at.registerClass(r)},registerComponentView:function(r){ke.registerClass(r)},registerSeriesModel:function(r){vr.registerClass(r)},registerChartView:function(r){lr.registerClass(r)},registerCustomSeries:function(r,t){},registerSubTypeDefaulter:function(r,t){at.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){O_(r,t)}};function Kn(r){if(k(r)){I(r,function(t){Kn(t)});return}st(Oc,r)>=0||(Oc.push(r),Q(r)&&(r={install:r}),r.install(xx))}ft();ft();var kc={estimate:1,determine:2};function Cx(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}var Bc=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Dx=1,Po=2,vy=Dx|Po;function Ro(r,t,e){e=e||vy,t?r.dirty|=e:r.dirty&=~e}function cy(r,t){return t=t||vy,r.dirty==null||!!(r.dirty&t)}function cr(r){if(r)return cy(r)&&Ix(r,r.label,r),r}function Ix(r,t,e){var i=t.getComputedTransform();r.transform=bf(r.transform,i);var n=r.localRect=Un(r.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=e&&e.marginForce,u=e&&e.minMarginForce,l=e&&e.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=Ei.textMargin);for(var h=0;h<4;h++)vu[h]=f===Ei.minMargin&&u&&u[h]!=null?u[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===Ei.textMargin&&cl(n,vu,!1,!1);var v=r.rect=Un(r.rect,n);return i&&v.applyTransform(i),f===Ei.minMargin&&cl(v,vu,!1,!1),r.axisAligned=Tf(i),(r.label=r.label||{}).ignore=t.ignore,Ro(r,!1),Ro(r,!0,Po),r}var vu=[0,0,0,0];function Lx(r,t,e){return r.transform=bf(r.transform,e),r.localRect=Un(r.localRect,t),r.rect=Un(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=Tf(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Mx(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var i=r.rect;i&&(i.x+=t.x,i.y+=t.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,e)}}function Nc(r,t){for(var e=0;e<Bc.length;e++){var i=Bc[e];r[i]==null&&(r[i]=t[i])}return cr(r)}function zc(r){var t=r.obb;return(!t||cy(r,Po))&&(r.obb=t=t||new Vp,t.fromBoundingRect(r.localRect,r.transform),Ro(r,!1,Po)),t}function Ax(r){var t=[];r.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function e(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var i=0;i<r.length;i++){var n=cr(r[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,u=0;u<t.length;u++)if(Yf(n,t[u],null,{touchThreshold:.05})){s=!0;break}s?(e(a),o&&e(o)):t.push(n)}}}function Yf(r,t,e,i){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,i)?!1:r.axisAligned&&t.axisAligned?!0:zc(r).intersect(zc(t),e,i)}const Px=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Rx(r){function t(i){return(...n)=>{if(!r.value)throw new Error("ECharts is not initialized yet.");return r.value[i].apply(r.value,n)}}function e(){const i=Object.create(null);return Px.forEach(n=>{i[n]=t(n)}),i}return e()}function Ex(r,t,e){Ya([e,r,t],([i,n,a],o,s)=>{let u=null;if(i&&n&&a){const{offsetWidth:l,offsetHeight:f}=i,h=a===!0?{}:a,{throttle:v=100,onResize:c}=h;let d=!1;const y=()=>{n.resize(),c?.()},g=v?Bf(y,v):y;u=new ResizeObserver(()=>{!d&&(d=!0,i.offsetWidth===l&&i.offsetHeight===f)||g()}),u.observe(i)}s(()=>{u&&(u.disconnect(),u=null)})})}const Ox={autoresize:[Boolean,Object]},kx=/^on[^a-z]/,dy=r=>kx.test(r);function Bx(r){const t={};for(const e in r)dy(e)||(t[e]=r[e]);return t}function no(r,t){const e=Ky(r)?Qy(r):r;return e&&typeof e=="object"&&"value"in e?e.value||t:e||t}const Nx="ecLoadingOptions";function zx(r,t,e){const i=Ua(Nx,{}),n=Di(()=>({...no(i,{}),...e?.value}));Md(()=>{const a=r.value;a&&(t.value?a.showLoading(n.value):a.hideLoading())})}const Fx={loading:Boolean,loadingOptions:Object};let sn=null;const py="x-vue-echarts";function Hx(){if(sn!=null)return sn;if(typeof HTMLElement>"u"||typeof customElements>"u")return sn=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(py)}catch{return sn=!1}return sn=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
|
|
15
|
+
`;const Vx=Hx(),Gx="ecTheme",Ux="ecInitOptions",Yx="ecUpdateOptions",Fc=/(^&?~?!?)native:/;var yI=Uy({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Ox,...Fx},emits:{},inheritAttrs:!1,setup(r,{attrs:t}){const e=os(),i=os(),n=os(),a=Ua(Gx,null),o=Ua(Ux,null),s=Ua(Yx,null),{autoresize:u,manualUpdate:l,loading:f,loadingOptions:h}=Wy(r),v=Di(()=>n.value||r.option||null),c=Di(()=>r.theme||no(a,{})),d=Di(()=>r.initOptions||no(o,{})),y=Di(()=>r.updateOptions||no(s,{})),g=Di(()=>Bx(t)),p={},m=Xy().proxy.$listeners,_={};m?Object.keys(m).forEach(x=>{Fc.test(x)?p[x.replace(Fc,"$1")]=m[x]:_[x]=m[x]}):Object.keys(t).filter(x=>dy(x)).forEach(x=>{let D=x.charAt(2).toLowerCase()+x.slice(3);if(D.indexOf("native:")===0){const L=`on${D.charAt(7).toUpperCase()}${D.slice(8)}`;p[L]=t[x];return}D.substring(D.length-4)==="Once"&&(D=`~${D.substring(0,D.length-4)}`),_[D]=t[x]});function S(x){if(!e.value)return;const D=i.value=Ub(e.value,c.value,d.value);r.group&&(D.group=r.group),Object.keys(_).forEach(M=>{let P=_[M];if(!P)return;let O=M.toLowerCase();O.charAt(0)==="~"&&(O=O.substring(1),P.__once__=!0);let B=D;if(O.indexOf("zr:")===0&&(B=D.getZr(),O=O.substring(3)),P.__once__){delete P.__once__;const $=P;P=(...K)=>{$(...K),B.off(O,P)}}B.on(O,P)});function L(){D&&!D.isDisposed()&&D.resize()}function A(){const M=x||v.value;M&&D.setOption(M,y.value)}u.value?qy(()=>{L(),A()}):A()}function T(x,D){r.manualUpdate&&(n.value=x),i.value?i.value.setOption(x,D||{}):S(x)}function w(){i.value&&(i.value.dispose(),i.value=void 0)}let b=null;Ya(l,x=>{typeof b=="function"&&(b(),b=null),x||(b=Ya(()=>r.option,(D,L)=>{D&&(i.value?i.value.setOption(D,{notMerge:D!==L,...y.value}):S())},{deep:!0}))},{immediate:!0}),Ya([c,d],()=>{w(),S()},{deep:!0}),Md(()=>{r.group&&i.value&&(i.value.group=r.group)});const C=Rx(i);return zx(i,f,h),Ex(i,u,e),$y(()=>{S()}),Zy(()=>{Vx&&e.value?e.value.__dispose=w:w()}),{chart:i,root:e,setOption:T,nonEventAttrs:g,nativeListeners:p,...C}},render(){const r={...this.nonEventAttrs,...this.nativeListeners};return r.ref="root",r.class=r.class?["echarts"].concat(r.class):"echarts",Yy(py,r)}});function Hc(r,t,e){var i=Ze.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var cu=(function(r){N(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||co,typeof e=="string"?o=Hc(e,i,n):F(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(kd(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Hc("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new W(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new W(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,T=1/0,w=0,b=0;b<o.length;++b){var C=o[b];if(C.intersect(m)){var x=new W(0,0,0,0);x.copy(C),x.union(m),o[b]=x,S=!0;break}else if(u){l.copy(m),l.union(C);var D=m.width*m.height,L=C.width*C.height,A=l.width*l.height,M=A-D-L;M<T&&(T=M,w=b)}}if(u&&(o[w].union(m),S=!0),!S){var _=new W(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=e[h];if(v){var c=v.shouldBePainted(n,a,!0,!0),d=v.__isRendered&&(v.__dirty&Qt||!c)?v.getPrevPaintRect():null;d&&f(d);var y=c&&(v.__dirty&Qt||!v.__isRendered)?v.getPaintRect():null;y&&f(y)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=i[h],c=v&&v.shouldBePainted(n,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var p=h+1;p<o.length;)o[h].intersect(o[p])?(g=!0,o[h].union(o[p]),o.splice(p,1)):p++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,v=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var c=this.domBack;function d(y,g,p,m){if(o.clearRect(y,g,p,m),i&&i!=="transparent"){var _=void 0;if(ko(i)){var S=i.global||i.__width===p&&i.__height===m;_=S&&i.__canvasGradient||xl(o,i,{x:0,y:0,width:p,height:m}),i.__canvasGradient=_,i.__width=p,i.__height=m}else cm(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=Cl(o,i,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(y,g,p,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(c,y,g,p,m),o.restore())}!n||l?d(0,0,s,u):n.length&&I(n,function(y){d(y.x*h,y.y*h,y.width*h,y.height*h)})},t})(pe),Vc=1e5,Hr=314159,Fa=.01,Wx=.001;function Xx(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function $x(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var Zx=(function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=R({},i||{}),this.dpr=i.devicePixelRatio||co,this._singleCanvas=a,this.root=t;var o=t.style;o&&(kd(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,v=f.height;i.width!=null&&(h=i.width),i.height!=null&&(v=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new cu(f,this,this.dpr);c.__builtin__=!0,c.initContext(),u[Hr]=c,c.zlevel=Hr,s.push(Hr),this._domRoot=t}else{this._width=Ea(t,0,i),this._height=Ea(t,1,i);var l=this._domRoot=$x(this._width,this._height);t.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(Vc)),a||(a=i.ctx,a.save()),Zr(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Vc)},r.prototype.paintOne=function(t,e){Fg(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;lo(function(){u._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Hr).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&a.push(l)}for(var f=!0,h=!1,v=function(y){var g=a[y],p=g.ctx,m=o&&g.createRepaintRects(t,e,c._width,c._height),_=i?g.__startIndex:g.__drawIndex,S=!i&&g.incremental&&Date.now,T=S&&Date.now(),w=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,m);else if(_===g.__startIndex){var b=t[_];(!b.incremental||!b.notClear||i)&&g.clear(!1,w,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,x=function(M){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=_;C<g.__endIndex;C++){var O=t[C];if(O.__inHover&&(h=!0),n._doPaintEl(O,g,o,M,P,C===g.__endIndex-1),S){var B=Date.now()-T;if(B>15)break}}P.prevElClipPaths&&p.restore()};if(m)if(m.length===0)C=g.__endIndex;else for(var D=c.dpr,L=0;L<m.length;++L){var A=m[L];p.save(),p.beginPath(),p.rect(A.x*D,A.y*D,A.width*D,A.height*D),p.clip(),x(A),p.restore()}else p.save(),x(),p.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<a.length;d++)v(d);return G.wxa&&I(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var u=t.getPaintRect();(!n||u&&u.intersect(n))&&(Zr(s,t,a,o),t.setPrevPaintRect(u))}else Zr(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Hr);var i=this._layers[t];return i||(i=new cu("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?vt(i,this._layerConfig[t],!0):this._layerConfig[t-Fa]&&vt(i,this._layerConfig[t-Fa],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,u=-1;if(!i[t]&&Xx(e)){if(a>0&&t>n[0]){for(u=0;u<a-1&&!(n[u]<t&&n[u+1]>t);u++);s=i[n[u]]}if(n.splice(u+1,0,t),i[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var n=t[u],l=n.zlevel,f=void 0;s!==l&&(s=l,o=0),n.incremental?(f=this.getLayer(l+Wx,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?Fa:0),this._needsManuallyCompositing),f.__builtin__||Wl("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),n.__dirty&Qt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,I(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?vt(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Fa){var o=this._layers[a];vt(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(st(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=Ea(a,0,n),e=Ea(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Hr).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Hr].dom;var e=new cu("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];Zr(i,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function mI(r){r.registerPainter("canvas",Zx)}function qx(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=Vi(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(Vi(r,t,e[o]));return a.join(" ")}}var Kx=(function(r){N(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o,s){this.removeAll();var u=aa(e,-1,-1,2,2,null,s);u.attr({z2:V(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),u.drift=Qx,this._symbolType=e,this.add(u)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Vn(this.childAt(0))},t.prototype.downplay=function(){Gn(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,i),l=t.getSymbolZ2(e,i),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var v=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,u,l,v)}else{var c=this.childAt(0);c.silent=!1;var d={scaleX:u[0]/2,scaleY:u[1]/2};h?c.attr(d):pr(c,d,s,i),n1(c)}if(this._updateCommon(e,i,u,n,a),f){var c=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,yf(c,d,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,v,c,d,y,g,p;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,y=a.labelStatesModels,g=a.hoverScale,p=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=m.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),y=Ko(m),g=_.getShallow("scale"),p=m.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var T=rs(e.getItemVisual(i,"symbolOffset"),n);T&&(s.x=T[0],s.y=T[1]),p&&s.attr("cursor",p);var w=e.getItemVisual(i,"style"),b=w.fill;if(s instanceof dr){var C=s.style;s.useStyle(R({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(R({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=e.getItemVisual(i,"liftZ"),D=this._z2;x!=null?D==null&&(this._z2=s.z2,s.z2+=x):D!=null&&(s.z2=D,this._z2=null);var L=o&&o.useNameLabel;xf(s,y,{labelFetcher:u,labelDataIndex:i,defaultText:A,inheritColor:b,defaultOpacity:w.opacity});function A(O){return L?e.getName(O):qx(e,O)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),Ep(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=rt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var u=a.getTextContent();u&&So(u,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();So(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return Nf(e.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(e,i){return e.getItemVisual(i,"z2")},t})(St);function Qx(r,t){this.parent.drift(r,t)}function du(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Gc(r){return r!=null&&!F(r)&&(r={isIgnore:r}),r||{}}function Uc(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ko(t),cursorStyle:t.get("cursor")}}var jx=(function(){function r(t){this.group=new St,this._SymbolCtor=t||Kx}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Gc(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=Uc(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var v=f(h);if(du(t,v,h,e)){var c=new o(t,h,u,l);c.setPosition(v),t.setItemGraphicEl(h,c),i.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!du(t,d,h,e)){i.remove(c);return}var y=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==y)i.remove(c),c=new o(t,h,u,l),c.setPosition(d);else{c.updateData(t,h,u,l);var p={x:d[0],y:d[1]};s?c.attr(p):pr(c,p,n)}i.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){i.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Uc(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Gc(i);function n(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(du(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Zo(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},i.hostModel)}):e.removeAll()},r})(),Jx=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},r})(),tC=null;function eC(){return tC}var rC="expandAxisBreak",ar=Math.PI,iC=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],nC=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Eo=ft(),gy=ft(),aC=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,i=t.componentIndex,n=this.recordMap,a=n[e]||(n[e]=[]);return a[i]||(a[i]={ready:{}})},r})();function oC(r,t,e,i){var n=e.axis,a=t.ensureRecord(e),o=[],s,u=Wf(r.axisName)&&Ao(r.nameLocation);I(i,function(d){var y=cr(d);if(!(!y||y.label.ignore)){o.push(y);var g=a.transGroup;u&&(g.transform?ta(un,g.transform):ql(un),y.transform&&xn(un,un,y.transform),W.copy(Ha,y.localRect),Ha.applyTransform(un),s?s.union(Ha):W.copy(s=new W(0,0,0,0),Ha))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,y){return Math.abs(d.label[l]-f)-Math.abs(y.label[l]-f)}),u&&s){var h=n.getExtent(),v=Math.min(h[0],h[1]),c=Math.max(h[0],h[1])-v;s.union(new W(v,0,c,1))}a.stOccupiedRect=s,a.labelInfoList=o}var un=Me(),Ha=new W(0,0,0,0),sC=function(r,t,e,i,n,a){if(Ao(r.nameLocation)){var o=a.stOccupiedRect;o&&yy(Lx({},o,a.transGroup.transform),i,n)}else uC(a.labelInfoList,a.dirVec,i,n)};function yy(r,t,e){var i=new nt;Yf(r,t,i,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&Mx(t,i)}function uC(r,t,e,i){for(var n=nt.dot(i,t)>=0,a=0,o=r.length;a<o;a++){var s=r[n?a:o-1-a];s.label.ignore||yy(s,e,i)}}var ti=(function(){function r(t,e,i,n){this.group=new St,this._axisModel=t,this._api=e,this._local={},this._shared=n||new aC(sC),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,i=e.getDefaultOption?e.getDefaultOption():{},n=V(t.axisName,e.get("name")),a=e.get("nameMoveOverlap");(a==null||a==="auto")&&(a=V(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:V(t.nameDirection,1),tickDirection:V(t.tickDirection,1),labelDirection:V(t.labelDirection,1),labelOffset:V(t.labelOffset,0),silent:V(t.silent,!0),axisName:n,nameLocation:Xe(e.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Wf(n)&&a,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new St({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(e);u.transGroup=this._transformGroup,u.dirVec=new nt(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),I(lC,function(n){t[n]&&fC[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,e||{})}),this},r.innerTextLayout=function(t,e,i){var n=ap(e-t),a,o;return po(n)?(o=i>0?"top":"bottom",a="center"):po(n-ar)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<ar?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),lC=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],fC={axisLine:function(r,t,e,i,n,a,o){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var u=i.axis.getExtent(),l=a.transform,f=[u[0],0],h=[u[1],0],v=f[0]>h[0];l&&(jt(f,f,l),jt(h,h,l));var c=R({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:c};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())eC().buildAxisBreakLine(i,n,a,d);else{var y=new ri(R({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));_f(y.shape,y.style.lineWidth),y.anid="line",n.add(y)}var g=i.get(["axisLine","symbol"]);if(g!=null){var p=i.get(["axisLine","symbolSize"]);z(g)&&(g=[g,g]),(z(p)||ut(p))&&(p=[p,p]);var m=rs(i.get(["axisLine","symbolOffset"])||0,p),_=p[0],S=p[1];I([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(T,w){if(g[w]!=="none"&&g[w]!=null){var b=aa(g[w],-_/2,-S/2,_,S,c.stroke,!0),C=T.r+T.offset,x=v?h:f;b.attr({rotation:T.rotate,x:x[0]+C*Math.cos(r.rotation),y:x[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),n.add(b)}})}}},axisTickLabelEstimate:function(r,t,e,i,n,a,o,s){var u=Wc(t,n,s);u&&Yc(r,t,e,i,n,a,o,kc.estimate)},axisTickLabelDetermine:function(r,t,e,i,n,a,o,s){var u=Wc(t,n,s);u&&Yc(r,t,e,i,n,a,o,kc.determine);var l=dC(r,n,a,i);cC(r,t.labelLayoutList,l),pC(r,n,a,i,r.tickDirection)},axisName:function(r,t,e,i,n,a,o,s){var u=e.ensureRecord(i);t.nameEl&&(n.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var l=r.axisName;if(Wf(l)){var f=r.nameLocation,h=r.nameDirection,v=i.getModel("nameTextStyle"),c=i.get("nameGap")||0,d=i.axis.getExtent(),y=i.axis.inverse?-1:1,g=new nt(0,0),p=new nt(0,0);f==="start"?(g.x=d[0]-y*c,p.x=-y):f==="end"?(g.x=d[1]+y*c,p.x=y):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+h*c,p.y=h);var m=Me();p.transform(Ql(m,m,r.rotation));var _=i.get("nameRotate");_!=null&&(_=_*ar/180);var S,T;Ao(f)?S=ti.innerTextLayout(r.rotation,_??r.rotation,h):(S=hC(r.rotation,f,_||0,d),T=r.raw.axisNameAvailableWidth,T!=null&&(T=Math.abs(T/Math.sin(S.rotation)),!isFinite(T)&&(T=null)));var w=v.getFont(),b=i.get("nameTruncate",!0)||{},C=b.ellipsis,x=Bi(r.raw.nameTruncateMaxWidth,b.maxWidth,T),D=s.nameMarginLevel||0,L=new Nt({x:g.x,y:g.y,rotation:S.rotation,silent:ti.isLabelSilent(i),style:hr(v,{text:l,font:w,overflow:"truncate",width:x,ellipsis:C,fill:v.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if($o({el:L,componentModel:i,itemName:l}),L.__fullText=l,L.anid="name",i.get("triggerEvent")){var A=ti.makeAxisEventDataBase(i);A.targetType="axisName",A.name=l,rt(L).eventData=A}a.add(L),L.updateTransform(),t.nameEl=L;var M=u.nameLayout=cr({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:Ao(f)?iC[D]:nC[D]});if(u.nameLocation=f,n.add(L),L.decomposeTransform(),r.shouldNameMoveOverlap&&M){var P=e.ensureRecord(i);e.resolveAxisNameOverlap(r,e,i,M,p,P)}}}};function Yc(r,t,e,i,n,a,o,s){_y(t)||gC(r,t,n,s,i,o);var u=t.labelLayoutList;yC(r,i,u,a),r.rotation;var l=r.optionHideOverlap;vC(i,u,l),l&&Ax(Kt(u,function(f){return f&&!f.label.ignore})),oC(r,e,i,u)}function hC(r,t,e,i){var n=ap(e-r),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return po(n-ar/2)?(o=u?"bottom":"top",a="center"):po(n-ar*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<ar*1.5&&n>ar/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function vC(r,t,e){if(bx(r.axis))return;function i(s,u,l){var f=cr(t[u]),h=cr(t[l]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){Sn(f.label);return}if(h.suggestIgnore){Sn(h.label);return}var v=.1;if(!e){var c=[0,0,0,0];f=Nc({marginForce:c},f),h=Nc({marginForce:c},h)}Yf(f,h,null,{touchThreshold:v})&&Sn(s?h.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]),o=t.length;i(n,0,1),i(a,o-1,o-2)}function cC(r,t,e){r.showMinorTicks||I(t,function(i){if(i&&i.label.ignore)for(var n=0;n<e.length;n++){var a=e[n],o=gy(a),s=Eo(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Sn(a);return}}})}function Sn(r){r&&(r.ignore=!0)}function my(r,t,e,i,n){for(var a=[],o=[],s=[],u=0;u<r.length;u++){var l=r[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=e,t&&(jt(o,o,t),jt(s,s,t));var f=new ri({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});_f(f.shape,f.style.lineWidth),f.anid=n+"_"+r[u].tickValue,a.push(f);var h=gy(f);h.onBand=!!r[u].onBand,h.tickValue=r[u].tickValue}return a}function dC(r,t,e,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=r.tickDirection*a.get("length"),l=n.getTicksCoords(),f=my(l,e.transform,u,ct(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function pC(r,t,e,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=n*o.get("length"),f=ct(u.getLineStyle(),ct(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var v=my(s[h],e.transform,l,f,"minorticks_"+h),c=0;c<v.length;c++)t.add(v[c])}}function Wc(r,t,e){if(_y(r)){var i=r.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(e.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(t.remove(r.labelGroup),Rl(r,null,null,null))}return!0}function gC(r,t,e,i,n,a){var o=n.axis,s=Bi(r.raw.axisLabelShow,n.get(["axisLabel","show"])),u=new St;e.add(u);var l=Cx(i);if(!s||o.scale.isBlank()){Rl(t,[],u,l);return}var f=n.getModel("axisLabel"),h=o.getViewLabels(l),v=(Bi(r.raw.labelRotate,f.get("rotate"))||0)*ar/180,c=ti.innerTextLayout(r.rotation,v,r.labelDirection),d=n.getCategories&&n.getCategories(!0),y=[],g=n.get("triggerEvent"),p=1/0,m=-1/0;I(h,function(S,T){var w,b=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,C=S.formattedLabel,x=S.rawLabel,D=f;if(d&&d[b]){var L=d[b];F(L)&&L.textStyle&&(D=new ht(L.textStyle,f,n.ecModel))}var A=D.getTextColor()||n.get(["axisLine","lineStyle","color"]),M=D.getShallow("align",!0)||c.textAlign,P=V(D.getShallow("alignMinLabel",!0),M),O=V(D.getShallow("alignMaxLabel",!0),M),B=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||c.textVerticalAlign,$=V(D.getShallow("verticalAlignMinLabel",!0),B),K=V(D.getShallow("verticalAlignMaxLabel",!0),B),J=10+(((w=S.time)===null||w===void 0?void 0:w.level)||0);p=Math.min(p,J),m=Math.max(m,J);var Z=new Nt({x:0,y:0,rotation:0,silent:ti.isLabelSilent(n),z2:J,style:hr(D,{text:C,align:T===0?P:T===h.length-1?O:M,verticalAlign:T===0?$:T===h.length-1?K:B,fill:Q(A)?A(o.type==="category"?x:o.type==="value"?b+"":b,T):A})});Z.anid="label_"+b;var gt=Eo(Z);if(gt.break=S.break,gt.tickValue=b,gt.layoutRotation=c.rotation,$o({el:Z,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return Z.isTruncated},value:x,tickIndex:T}}),g){var et=ti.makeAxisEventDataBase(n);et.targetType="axisLabel",et.value=x,et.tickIndex=T,S.break&&(et.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(et.dataIndex=b),rt(Z).eventData=et,S.break&&_C(n,a,Z,S.break)}y.push(Z),u.add(Z)});var _=j(y,function(S){return{label:S,priority:Eo(S).break?S.z2+(m-p+1):S.z2,defaultAttr:{ignore:S.ignore}}});Rl(t,_,u,l)}function _y(r){return!!r.labelLayoutList}function Rl(r,t,e,i){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=i}function yC(r,t,e,i){var n=t.get(["axisLabel","margin"]);I(e,function(a,o){var s=cr(a);if(s){var u=s.label,l=Eo(u);s.suggestIgnore=u.ignore,u.ignore=!1,Ju(Ve,mC),Ve.x=t.axis.dataToCoord(l.tickValue),Ve.y=r.labelOffset+r.labelDirection*n,Ve.rotation=l.layoutRotation,i.add(Ve),Ve.updateTransform(),i.remove(Ve),Ve.decomposeTransform(),Ju(u,Ve),u.markRedraw(),Ro(s,!0),cr(s)}})}var Ve=new It,mC=new It;function Wf(r){return!!r}function _C(r,t,e,i){e.on("click",function(n){var a={type:rC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(a)})}function Xc(r,t,e){e=e||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,u=i.dim,l=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[l[2]-h,l[3]+h]:[l[0]-h,l[1]+h];if(a){var c=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(c,v[1]),v[0])}n.position=[u==="y"?v[f[s]]:l[0],u==="x"?v[f[s]]:l[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=a?v[f[o]]-v[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Bi(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-y:y,n.z2=1,n}function SC(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return wC(e,r,t),e.seriesInvolved&&bC(e,r),e}function wC(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];I(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Qn(s.model),l=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",i);if(I(s.getAxes(),mt(y,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&I(d.baseAxes,mt(y,c?"cross":!0,v)),c&&I(d.otherAxes,mt(y,"cross",!1))}function y(g,p,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!El(_))){p==null&&(p=_.get("triggerTooltip")),_=g?TC(m,h,n,t,g,p):_;var T=_.get("snap"),w=_.get("triggerEmphasis"),b=Qn(m.model),C=p||T||m.type==="category",x=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:p,triggerEmphasis:w,involveSeries:C,snap:T,useHandle:El(_),seriesModels:[],linkGroup:null};l[b]=x,r.seriesInvolved=r.seriesInvolved||C;var D=xC(a,m);if(D!=null){var L=o[D]||(o[D]={axesInfo:{}});L.axesInfo[b]=x,L.mapper=a[D].mapper,x.linkGroup=L}}}})}function TC(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};I(s,function(v){u[v]=X(o.get(v))}),u.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&ct(l,h.textStyle)}}return r.model.getModel("axisPointer",new ht(u,e,i))}function bC(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||I(r.coordSysAxesInfo[Qn(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function xC(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(pu(a[i+"AxisId"],e.id)||pu(a[i+"AxisIndex"],e.componentIndex)||pu(a[i+"AxisName"],e.name))return n}}function pu(r,t){return r==="all"||k(r)&&st(r,t)>=0||r===t}function CC(r){var t=Xf(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=El(e);a==null&&(n.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Xf(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Qn(r)]}function DC(r){var t=Xf(r);return t&&t.axisPointerModel}function El(r){return!!r.get(["handle","show"])}function Qn(r){return r.type+"||"+r.id}var $c={},IC=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&CC(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=DC(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){$c[e]=i},t.getAxisPointerClass=function(e){return e&&$c[e]},t.type="axis",t})(ke),LC=ft();function Zc(r,t){return!!LC(r)[t]}ni({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Dt);var MC={axisPointer:1,tooltip:1,brush:1};function AC(r,t,e){var i=t.getComponentByElement(r.topTarget);if(!i||i===e||MC.hasOwnProperty(i.mainType))return!1;var n=i.coordinateSystem;if(!n||n.model===e)return!1;var a=Yn(i),o=Yn(e);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var PC=(function(r){N(t,r);function t(e){var i=r.call(this)||this;i._zr=e;var n=it(i._mousedownHandler,i),a=it(i._mousemoveHandler,i),o=it(i._mouseupHandler,i),s=it(i._mousewheelHandler,i),u=it(i._pinchHandler,i);return i.enable=function(l,f){var h=f.zInfo,v=Yn(h.component),c=v.z,d=v.zlevel,y={component:h.component,z:c,zlevel:d,z2:V(h.z2,-1/0)},g=R({},f.triggerInfo);this._opt=ct(R({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:y,triggerInfo:g}),l==null&&(l=!0),(!this._enabled||this._controlType!==l)&&(this._enabled=!0,this.disable(),(l===!0||l==="move"||l==="pan")&&(fn(e,"mousedown",n,y),fn(e,"mousemove",a,y),fn(e,"mouseup",o,y)),(l===!0||l==="scale"||l==="zoom")&&(fn(e,"mousewheel",s,y),fn(e,"pinch",u,y)))},i.disable=function(){this._enabled=!1,hn(e,"mousedown",n),hn(e,"mousemove",a),hn(e,"mouseup",o),hn(e,"mousewheel",s),hn(e,"pinch",u)},i}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,i,n){var a=this._opt,o=a.zInfoParsed;if(AC(e,a.api,o.component))return!1;var s=a.triggerInfo,u=s.roamTrigger,l=!1;return u==="global"&&(l=!0),l||(l=s.isInSelf(e,i,n)),l&&s.isInClip&&!s.isInClip(e,i,n)&&(l=!1),l},t.prototype._decideCursorStyle=function(e,i,n,a){var o=e.target;if(!o&&this._checkPointer(e,i,n))return"grab";if(a)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(oh(e)||ln(e))){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=e.offsetX,a=e.offsetY;this._checkPointer(e,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var i=this._zr;if(!(e.gestureEvent==="pinch"||Zc(i,"globalPan")||ln(e))){var n=e.offsetX,a=e.offsetY;if(!this._dragging||!ao("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,a,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle("grabbing");var s=this._x,u=this._y,l=n-s,f=a-u;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&uo(e.event),e.__ecRoamConsumed=!0,qc(this,"pan","moveOnMouseMove",e,{dx:l,dy:f,oldX:s,oldY:u,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!ln(e)){var i=this._zr;if(!oh(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&i.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!ln(e)){var i=ao("zoomOnMouseWheel",e,this._opt),n=ao("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,u=e.offsetY;if(!(a===0||!i&&!n)){if(i){var l=o>3?1.4:o>1?1.2:1.1,f=a>0?l:1/l;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:u,isAvailableBehavior:null})}if(n){var h=Math.abs(a),v=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:u,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Zc(this._zr,"globalPan")||ln(e))){var i=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,i,n,a,o){e._checkPointer(a,o.originX,o.originY)&&(uo(a.event),a.__ecRoamConsumed=!0,qc(e,i,n,a,o))},t})(pe);function ln(r){return r.__ecRoamConsumed}var RC=ft();function ns(r){var t=RC(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function fn(r,t,e,i){for(var n=ns(r),a=n.roam,o=a[t]=a[t]||[],s=0;s<o.length;s++){var u=o[s].zInfoParsed;if((u.zlevel-i.zlevel||u.z-i.z||u.z2-i.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:i}),EC(r,t)}function hn(r,t,e){for(var i=ns(r),n=i.roam[t]||[],a=0;a<n.length;a++)if(n[a].listener===e){n.splice(a,1),n.length||OC(r,t);return}}function EC(r,t){var e=ns(r);e.uniform[t]||r.on(t,e.uniform[t]=function(i){var n=e.roam[t];if(n)for(var a=0;a<n.length;a++)n[a].listener(i)})}function OC(r,t){var e=ns(r),i=e.uniform;i[t]&&(r.off(t,i[t]),i[t]=null)}function qc(r,t,e,i,n){n.isAvailableBehavior=it(ao,null,e,i),r.trigger(t,n)}function ao(r,t,e){var i=e[r];return!r||i&&(!z(i)||t.event[i+"Key"])}function kC(r,t,e){var i=r.target;i.x+=t,i.y+=e,i.dirty()}function BC(r,t,e,i){var n=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;o*=t,o=$f(o,a);var s=o/r.zoom;r.zoom=o,Sy(n,e,i,s),n.dirty()}function Kc(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function NC(r,t,e){var i=r.getZoom(),n=r.getCenter(),a=t.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,r.setCenter(Kc(r,o))),a!=null&&(a=$f(i*a,e)/i,Sy(r,t.originX,t.originY,a),r.updateTransform(),r.setCenter(Kc(r,o)),r.setZoom(a*i)),{center:r.getCenter(),zoom:r.getZoom()}}function Sy(r,t,e,i){r.x-=(t-r.x)*(i-1),r.y-=(e-r.y)*(i-1),r.scaleX*=i,r.scaleY*=i}function $f(r,t){if(t){var e=t.min||0,i=t.max||1/0;r=Math.max(Math.min(i,r),e)}return r}var Qc=jt,wy=(function(r){N(t,r);function t(e,i){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Wr,n._rawTransformable=new Wr,n.name=e,n._opt=i,n}return t.prototype.setBoundingRect=function(e,i,n,a){return this._rect=new W(e,i,n,a),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,i,n,a){this._transformTo(e,i,n,a),this._viewRect=new W(e,i,n,a)},t.prototype._transformTo=function(e,i,n,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new W(e,i,n,a));var u=s.parent;s.parent=null,s.decomposeTransform(),s.parent=u,this._updateTransform()},t.prototype.setCenter=function(e){var i=this._opt;i&&i.api&&i.ecModel&&i.ecModel.getShallow("legacyViewCoordSysCenterBase")&&e&&(e=[Ht(e[0],i.api.getWidth()),Ht(e[1],i.api.getWidth())]),this._centerOption=X(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=$f(e||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),i=e.x+e.width/2,n=e.y+e.height/2;return[i,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._centerOption,i=this._rect;e&&i&&(this._center=[Ht(e[0],i.width,i.x),Ht(e[1],i.height,i.y)]);var n=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),u=this.getZoom();s=jt([],s,n),o=jt([],o,n),a.originX=s[0],a.originY=s[1],a.x=o[0]-s[0],a.y=o[1]-s[1],a.scaleX=a.scaleY=u,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,i=this._rawTransformable;i.parent=e,e.updateTransform(),i.updateTransform(),Kl(this.transform||(this.transform=[]),i.transform||Me()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],ta(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,i=this._roamTransformable,n=new Wr;return n.transform=i.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,i,n){var a=i?this._rawTransform:this.transform;return n=n||[],a?Qc(n,e,a):Rt(n,e)},t.prototype.pointToData=function(e,i,n){n=n||[];var a=this.invTransform;return a?Qc(n,e,a):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,i,n){var a=jc(i);return a===this?a.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,i,n){var a=jc(i);return a===this?a.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t})(Wr);function jc(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var oe=ft();function zC(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,Ty(t,e,r),I(e,function(i){I(t.TRANSFERABLE_METHODS,function(n){i.wrapMethod(n,mt(FC,r))})}),t.wrapMethod("cloneShallow",mt(VC,r)),I(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,mt(HC,r))}),Ee(e[t.dataType]===t)}function FC(r,t){if(YC(this)){var e=R({},oe(this).datas);e[this.dataType]=t,Ty(t,e,r)}else Zf(t,this.dataType,oe(this).mainData,r);return t}function HC(r,t){return r.struct&&r.struct.update(),t}function VC(r,t){return I(oe(t).datas,function(e,i){e!==t&&Zf(e.cloneShallow(),i,t,r)}),t}function GC(r){var t=oe(this).mainData;return r==null||t==null?t:oe(t).datas[r]}function UC(){var r=oe(this).mainData;return r==null?[{data:r}]:j(pt(oe(r).datas),function(t){return{type:t,data:oe(r).datas[t]}})}function YC(r){return oe(r).mainData===r}function Ty(r,t,e){oe(r).datas={},I(t,function(i,n){Zf(i,n,r,e)})}function Zf(r,t,e,i){oe(e).datas[t]=r,oe(r).mainData=e,r.dataType=t,i.struct&&(r[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=r),r.getLinkedData=GC,r.getLinkedDataAll=UC}function WC(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var i=e.getCategoriesData(),n=e.getGraph(),a=n.data,o=i.mapArray(i.getName);a.filterSelf(function(s){var u=a.getItemModel(s),l=u.getShallow("category");if(l!=null){ut(l)&&(l=o[l]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(l))return!1}return!0})})}function XC(r){var t={};r.eachSeriesByType("graph",function(e){var i=e.getCategoriesData(),n=e.getData(),a={};i.each(function(o){var s=i.getName(o);a["ec-"+s]=o;var u=i.getItemModel(o),l=u.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e.getColorFromPalette(s,t)),i.setItemVisual(o,"style",l);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++){var v=u.getShallow(f[h],!0);v!=null&&i.setItemVisual(o,f[h],v)}}),i.count()&&n.each(function(o){var s=n.getItemModel(o),u=s.getShallow("category");if(u!=null){z(u)&&(u=a["ec-"+u]);var l=i.getItemVisual(u,"style"),f=n.ensureUniqueItemVisual(o,"style");R(f,l);for(var h=["symbol","symbolSize","symbolKeepAspect"],v=0;v<h.length;v++)n.setItemVisual(o,h[v],i.getItemVisual(u,h[v]))}})})}function Va(r){return r instanceof Array||(r=[r,r]),r}function $C(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),i=t.getEdgeData(),n=Va(t.get("edgeSymbol")),a=Va(t.get("edgeSymbolSize"));i.setVisual("fromSymbol",n&&n[0]),i.setVisual("toSymbol",n&&n[1]),i.setVisual("fromSymbolSize",a&&a[0]),i.setVisual("toSymbolSize",a&&a[1]),i.setVisual("style",t.getModel("lineStyle").getLineStyle()),i.each(function(o){var s=i.getItemModel(o),u=e.getEdgeByIndex(o),l=Va(s.getShallow("symbol",!0)),f=Va(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),v=i.ensureUniqueItemVisual(o,"style");switch(R(v,h),v.stroke){case"source":{var c=u.node1.getVisual("style");v.stroke=c&&c.fill;break}case"target":{var c=u.node2.getVisual("style");v.stroke=c&&c.fill;break}}l[0]&&u.setVisual("fromSymbol",l[0]),l[1]&&u.setVisual("toSymbol",l[1]),f[0]&&u.setVisual("fromSymbolSize",f[0]),f[1]&&u.setVisual("toSymbolSize",f[1])})})}var Ol="-->",as=function(r){return r.get("autoCurveness")||null},by=function(r,t){var e=as(r),i=20,n=[];if(ut(e))i=e;else if(k(e)){r.__curvenessList=e;return}t>i&&(i=t);var a=i%2?i+2:i+3;n=[];for(var o=0;o<a;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},jn=function(r,t,e){var i=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,i,n].join(Ol)},xy=function(r){var t=r.split(Ol);return[t[0],t[2],t[1]].join(Ol)},ZC=function(r,t){var e=jn(r.node1,r.node2,t);return t.__edgeMap[e]},qC=function(r,t){var e=kl(jn(r.node1,r.node2,t),t),i=kl(jn(r.node2,r.node1,t),t);return e+i},kl=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function KC(r){as(r)&&(r.__curvenessList=[],r.__edgeMap={},by(r))}function QC(r,t,e,i){if(as(e)){var n=jn(r,t,e),a=e.__edgeMap,o=a[xy(n)];a[n]&&!o?a[n].isForward=!0:o&&a[n]&&(o.isForward=!0,a[n].isForward=!1),a[n]=a[n]||[],a[n].push(i)}}function qf(r,t,e,i){var n=as(t),a=k(n);if(!n)return null;var o=ZC(r,t);if(!o)return null;for(var s=-1,u=0;u<o.length;u++)if(o[u]===e){s=u;break}var l=qC(r,t);by(t,l),r.lineStyle=r.lineStyle||{};var f=jn(r.node1,r.node2,t),h=t.__curvenessList,v=a||l%2?0:1;if(o.isForward)return h[v+s];var c=xy(f),d=kl(c,t),y=h[s+d+v];return i?a?n&&n[0]===0?(d+v)%2?y:-y:((d%2?0:1)+v)%2?y:-y:(d+v)%2?y:-y:h[s+d+v]}function Cy(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(i){var n=i.getModel();i.setLayout([+n.get("x"),+n.get("y")])}),Kf(e,r)}}function Kf(r,t){r.eachEdge(function(e,i){var n=Xe(e.getModel().get(["lineStyle","curveness"]),-qf(e,t,i,!0),0),a=$e(e.node1.getLayout()),o=$e(e.node2.getLayout()),s=[a,o];+n&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*n,(a[1]+o[1])/2-(o[0]-a[0])*n]),e.setLayout(s)})}function jC(r,t){r.eachSeriesByType("graph",function(e){var i=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var a=e.getData(),o=[];I(n.dimensions,function(v){o=o.concat(a.mapDimensionsAll(v))});for(var s=0;s<a.count();s++){for(var u=[],l=!1,f=0;f<o.length;f++){var h=a.get(o[f],s);isNaN(h)||(l=!0),u.push(h)}l?a.setItemLayout(s,n.dataToPoint(u)):a.setItemLayout(s,[NaN,NaN])}Kf(a.graph,e)}else(!i||i==="none")&&Cy(e)})}function wn(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,i=t.scaleX,n=t.getZoom(),a=(n-1)*e+1;return a/i}function Tn(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Jc=Math.PI,gu=[];function Qf(r,t,e,i){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var a=n.getBoundingRect(),o=r.getData(),s=o.graph,u=a.width/2+a.x,l=a.height/2+a.y,f=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:u,cy:l}),!!h){if(e){var v=n.pointToData(i),c=v[0],d=v[1],y=[c-u,d-l];Yi(y,y),Wa(y,y,f),e.setLayout([u+y[0],l+y[1]],!0);var g=r.get(["circular","rotateLabel"]);Dy(e,g,u,l)}JC[t](r,s,o,f,u,l,h),s.eachEdge(function(p,m){var _=Xe(p.getModel().get(["lineStyle","curveness"]),qf(p,r,m),0),S=$e(p.node1.getLayout()),T=$e(p.node2.getLayout()),w,b=(S[0]+T[0])/2,C=(S[1]+T[1])/2;+_&&(_*=3,w=[u*_+b*(1-_),l*_+C*(1-_)]),p.setLayout([S,T,w])})}}}var JC={value:function(r,t,e,i,n,a,o){var s=0,u=e.getSum("value"),l=Math.PI*2/(u||o);t.eachNode(function(f){var h=f.getValue("value"),v=l*(u?h:1)/2;s+=v,f.setLayout([i*Math.cos(s)+n,i*Math.sin(s)+a]),s+=v})},symbolSize:function(r,t,e,i,n,a,o){var s=0;gu.length=o;var u=wn(r);t.eachNode(function(h){var v=Tn(h);isNaN(v)&&(v=2),v<0&&(v=0),v*=u;var c=Math.asin(v/2/i);isNaN(c)&&(c=Jc/2),gu[h.dataIndex]=c,s+=c*2});var l=(2*Jc-s)/o/2,f=0;t.eachNode(function(h){var v=l+gu[h.dataIndex];f+=v,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([i*Math.cos(f)+n,i*Math.sin(f)+a]),f+=v})}};function Dy(r,t,e,i){var n=r.getGraphicEl();if(n){var a=r.getModel(),o=a.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var u=r.getLayout(),l=Math.atan2(u[1]-i,u[0]-e);l<0&&(l=Math.PI*2+l);var f=u[0]<e;f&&(l=l-Math.PI);var h=f?"left":"right";s.setTextConfig({rotation:-l,position:h,origin:"center"});var v=s.ensureState("emphasis");R(v.textConfig||(v.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function tD(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&Qf(t,"symbolSize")})}var Ti=Eu;function eD(r,t,e){for(var i=r,n=t,a=e.rect,o=a.width,s=a.height,u=[a.x+o/2,a.y+s/2],l=e.gravity==null?.1:e.gravity,f=0;f<i.length;f++){var h=i[f];h.p||(h.p=ei(o*(Math.random()-.5)+u[0],s*(Math.random()-.5)+u[1])),h.pp=$e(h.p),h.edges=null}var v=e.friction==null?.6:e.friction,c=v,d,y;return{warmUp:function(){c=v*.8},setFixed:function(g){i[g].fixed=!0},setUnfixed:function(g){i[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){y=g},step:function(g){d&&d(i,n);for(var p=[],m=i.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var T=S.n1,w=S.n2;Ur(p,w.p,T.p);var b=Ou(p)-S.d,C=w.w/(T.w+w.w);isNaN(C)&&(C=0),Yi(p,p),!T.fixed&&Ti(T.p,T.p,p,C*b*c),!w.fixed&&Ti(w.p,w.p,p,-(1-C)*b*c)}}for(var _=0;_<m;_++){var x=i[_];x.fixed||(Ur(p,u,x.p),Ti(x.p,x.p,p,l*c))}for(var _=0;_<m;_++)for(var T=i[_],D=_+1;D<m;D++){var w=i[D];Ur(p,w.p,T.p);var b=Ou(p);b===0&&(Sm(p,Math.random()-.5,Math.random()-.5),b=1);var L=(T.rep+w.rep)/b/b;!T.fixed&&Ti(T.pp,T.pp,p,L),!w.fixed&&Ti(w.pp,w.pp,p,-L)}for(var A=[],_=0;_<m;_++){var x=i[_];x.fixed||(Ur(A,x.p,x.pp),Ti(x.p,x.p,A,c),Rt(x.pp,x.p))}c=c*.992;var M=c<.01;y&&y(i,n,M),g&&g(M)}}}function rD(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var i=t.preservedPoints||{},n=t.getGraph(),a=n.data,o=n.edgeData,s=t.getModel("force"),u=s.get("initLayout");t.preservedPoints?a.each(function(_){var S=a.getId(_);a.setItemLayout(_,i[S]||[NaN,NaN])}):!u||u==="none"?Cy(t):u==="circular"&&Qf(t,"value");var l=a.getDataExtent("value"),f=o.getDataExtent("value"),h=s.get("repulsion"),v=s.get("edgeLength"),c=k(h)?h:[h,h],d=k(v)?v:[v,v];d=[d[1],d[0]];var y=a.mapArray("value",function(_,S){var T=a.getItemLayout(S),w=kh(_,l,c);return isNaN(w)&&(w=(c[0]+c[1])/2),{w,rep:w,fixed:a.getItemModel(S).get("fixed"),p:!T||isNaN(T[0])||isNaN(T[1])?null:T}}),g=o.mapArray("value",function(_,S){var T=n.getEdgeByIndex(S),w=kh(_,f,d);isNaN(w)&&(w=(d[0]+d[1])/2);var b=T.getModel(),C=Xe(T.getModel().get(["lineStyle","curveness"]),-qf(T,t,S,!0),0);return{n1:y[T.node1.dataIndex],n2:y[T.node2.dataIndex],d:w,curveness:C,ignoreForceLayout:b.get("ignoreForceLayout")}}),p=e.getBoundingRect(),m=eD(y,g,{rect:p,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var T=0,w=_.length;T<w;T++)_[T].fixed&&Rt(_[T].p,n.getNodeByIndex(T).getLayout())}),m.afterStep(function(_,S,T){for(var w=0,b=_.length;w<b;w++)_[w].fixed||n.getNodeByIndex(w).setLayout(_[w].p),i[a.getId(w)]=_[w].p;for(var w=0,b=S.length;w<b;w++){var C=S[w],x=n.getEdgeByIndex(w),D=C.n1.p,L=C.n2.p,A=x.getLayout();A=A?A.slice():[],A[0]=A[0]||[],A[1]=A[1]||[],Rt(A[0],D),Rt(A[1],L),+C.curveness&&(A[2]=[(D[0]+L[0])/2-(D[1]-L[1])*C.curveness,(D[1]+L[1])/2-(L[0]-D[0])*C.curveness]),x.setLayout(A)}}),t.forceLayout=m,t.preservedPoints=i,m.step()}else t.forceLayout=null})}function iD(r,t,e){var i=Lf(r,t),n=R(r.getBoxLayoutParams(),{aspect:e}),a=Hi(n,i.refContainer);return ow(r,a,e)}function nD(r,t){var e=[];return r.eachSeriesByType("graph",function(i){iw({targetModel:i,coordSysType:"view",coordSysProvider:n});function n(){var a=i.getData(),o=a.mapArray(function(d){var y=a.getItemModel(d);return[+y.get("x"),+y.get("y")]}),s=[],u=[];M0(o,s,u),u[0]-s[0]===0&&(u[0]+=1,s[0]-=1),u[1]-s[1]===0&&(u[1]+=1,s[1]-=1);var l=(u[0]-s[0])/(u[1]-s[1]),f=iD(i,t,l);isNaN(l)&&(s=[f.x,f.y],u=[f.x+f.width,f.y+f.height]);var h=u[0]-s[0],v=u[1]-s[1],c=new wy(null,{api:t,ecModel:r});return c.zoomLimit=i.get("scaleLimit"),c.setBoundingRect(s[0],s[1],h,v),c.setViewRect(f.x,f.y,f.width,f.height),c.setCenter(i.get("center")),c.setZoom(i.get("zoom")),e.push(c),c}}),e}var td=ri.prototype,yu=Wo.prototype,Iy=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Iy);function mu(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Ly=(function(r){N(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-line",i}return t.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Iy},t.prototype.buildPath=function(e,i){mu(i)?td.buildPath.call(this,e,i):yu.buildPath.call(this,e,i)},t.prototype.pointAt=function(e){return mu(this.shape)?td.pointAt.call(this,e):yu.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var i=this.shape,n=mu(i)?[i.x2-i.x1,i.y2-i.y1]:yu.tangentAt.call(this,e);return Yi(n,n)},t})(lt),_u=["fromSymbol","toSymbol"];function ed(r){return"_"+r+"Type"}function rd(r,t,e){var i=t.getItemVisual(e,r);if(!i||i==="none")return i;var n=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),u=Nf(n),l=rs(o||0,u);return i+u+l+(a||"")+(s||"")}function id(r,t,e){var i=t.getItemVisual(e,r);if(!(!i||i==="none")){var n=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),u=Nf(n),l=rs(o||0,u),f=aa(i,-u[0]/2+l[0],-u[1]/2+l[1],u[0],u[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function aD(r){var t=new Ly({name:"line",subPixelOptimize:!0});return Bl(t.shape,r),t}function Bl(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var oD=(function(r){N(t,r);function t(e,i,n){var a=r.call(this)||this;return a._createLine(e,i,n),a}return t.prototype._createLine=function(e,i,n){var a=e.hostModel,o=e.getItemLayout(i),s=e.getItemVisual(i,"z2"),u=aD(o);u.shape.percent=0,yf(u,{z2:V(s,0),shape:{percent:1}},a,i),this.add(u),I(_u,function(l){var f=id(l,e,i);this.add(f),this[ed(l)]=rd(l,e,i)},this),this._updateCommonStl(e,i,n)},t.prototype.updateData=function(e,i,n){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(i),u={shape:{}};Bl(u.shape,s),pr(o,u,a,i),I(_u,function(l){var f=rd(l,e,i),h=ed(l);if(this[h]!==f){this.remove(this.childOfName(l));var v=id(l,e,i);this.add(v)}this[h]=f},this),this._updateCommonStl(e,i,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,i,n){var a=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,u=n&&n.blurLineStyle,l=n&&n.selectLineStyle,f=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,v=n&&n.focus,c=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(i),y=d.getModel("emphasis");s=y.getModel("lineStyle").getLineStyle(),u=d.getModel(["blur","lineStyle"]).getLineStyle(),l=d.getModel(["select","lineStyle"]).getLineStyle(),h=y.get("disabled"),v=y.get("focus"),c=y.get("blurScope"),f=Ko(d)}var g=e.getItemVisual(i,"style"),p=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=u,o.ensureState("select").style=l,I(_u,function(w){var b=this.childOfName(w);if(b){b.setColor(p),b.style.opacity=g.opacity;for(var C=0;C<Oe.length;C++){var x=Oe[C],D=o.getState(x);if(D){var L=D.style||{},A=b.ensureState(x),M=A.style||(A.style={});L.stroke!=null&&(M[b.__isEmptyBrush?"stroke":"fill"]=L.stroke),L.opacity!=null&&(M.opacity=L.opacity)}}b.markRedraw()}},this);var m=a.getRawValue(i);xf(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(w,b){return a.getFormattedLabel(w,b,e.dataType)}},inheritColor:p||H.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?e.getName(i):isFinite(m)?np(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var T=S.get("distance");k(T)||(T=[T,T]),_.__labelDistance=T}this.setTextConfig({position:null,local:!0,inside:!1}),Ep(this,v,c,h)},t.prototype.highlight=function(){Vn(this)},t.prototype.downplay=function(){Gn(this)},t.prototype.updateLayout=function(e,i){this.setLinePoints(e.getItemLayout(i))},t.prototype.setLinePoints=function(e){var i=this.childOfName("line");Bl(i.shape,e),i.dirty()},t.prototype.beforeUpdate=function(){var e=this,i=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),a=e.getTextContent();if(!i&&!n&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var u=e.childOfName("line");if(!this.__dirty&&!u.__dirty)return;var l=u.shape.percent,f=u.pointAt(0),h=u.pointAt(l),v=Ur([],h,f);Yi(v,v);function c(D,L){var A=D.__specifiedRotation;if(A==null){var M=u.tangentAt(L);D.attr("rotation",(L===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else D.attr("rotation",A)}if(i&&(i.setPosition(f),c(i,0),i.scaleX=i.scaleY=o*l,i.markRedraw()),n&&(n.setPosition(h),c(n,1),n.scaleX=n.scaleY=o*l,n.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,y=void 0,g=a.__labelDistance,p=g[0]*o,m=g[1]*o,_=l/2,S=u.tangentAt(_),T=[S[1],-S[0]],w=u.pointAt(_);T[1]>0&&(T[0]=-T[0],T[1]=-T[1]);var b=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(C=Math.PI+C),a.rotation=C}var x=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-m,y="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=m,y="top";break;default:x=0,y="middle"}switch(a.__position){case"end":a.x=v[0]*p+h[0],a.y=v[1]*m+h[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",y=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":a.x=-v[0]*p+f[0],a.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",y=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=p*b+f[0],a.y=f[1]+x,d=S[0]<0?"right":"left",a.originX=-p*b,a.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=w[0],a.y=w[1]+x,d="center",a.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-p*b+h[0],a.y=h[1]+x,d=S[0]>=0?"right":"left",a.originX=p*b,a.originY=-x;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||y,align:a.__align||d})}},t})(St),sD=(function(){function r(t){this.group=new St,this._LineCtor=t||oD}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var i=this,n=i.group,a=i._lineData;i._lineData=t,a||n.removeAll();var o=nd(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,u){e._doUpdate(a,t,u,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=nd(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function i(s){!s.isGroup&&!uD(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var a=e.getItemLayout(n);if(Su(a)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(i),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Zo(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,i){var n=t.getItemLayout(e);if(Su(n)){var a=new this._LineCtor(t,e,i);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,i,n,a){var o=t.getItemGraphicEl(i);if(!Su(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,a):o=new this._LineCtor(e,n,a),e.setItemGraphicEl(n,o),this.group.add(o)},r})();function uD(r){return r.animators&&r.animators.length>0}function nd(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Ko(t)}}function ad(r){return isNaN(r[0])||isNaN(r[1])}function Su(r){return r&&!ad(r[0])&&!ad(r[1])}var wu=[],Tu=[],bu=[],bi=kt,xu=qr,od=Math.abs;function sd(r,t,e){for(var i=r[0],n=r[1],a=r[2],o=1/0,s,u=e*e,l=.1,f=.1;f<=.9;f+=.1){wu[0]=bi(i[0],n[0],a[0],f),wu[1]=bi(i[1],n[1],a[1],f);var h=od(xu(wu,t)-u);h<o&&(o=h,s=f)}for(var v=0;v<32;v++){var c=s+l;Tu[0]=bi(i[0],n[0],a[0],s),Tu[1]=bi(i[1],n[1],a[1],s),bu[0]=bi(i[0],n[0],a[0],c),bu[1]=bi(i[1],n[1],a[1],c);var h=xu(Tu,t)-u;if(od(h)<.01)break;var d=xu(bu,t)-u;l/=2,h<0?d>=0?s=s+l:s=s-l:d>=0?s=s-l:s=s+l}return s}function Cu(r,t){var e=[],i=kn,n=[[],[],[]],a=[[],[]],o=[];t/=2,r.eachEdge(function(s,u){var l=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");l.__original||(l.__original=[$e(l[0]),$e(l[1])],l[2]&&l.__original.push($e(l[2])));var v=l.__original;if(l[2]!=null){if(Rt(n[0],v[0]),Rt(n[1],v[2]),Rt(n[2],v[1]),f&&f!=="none"){var c=Tn(s.node1),d=sd(n,v[0],c*t);i(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],i(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(h&&h!=="none"){var c=Tn(s.node2),d=sd(n,v[1],c*t);i(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],i(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}Rt(l[0],n[0]),Rt(l[1],n[2]),Rt(l[2],n[1])}else{if(Rt(a[0],v[0]),Rt(a[1],v[1]),Ur(o,a[1],a[0]),Yi(o,o),f&&f!=="none"){var c=Tn(s.node1);Eu(a[0],a[0],o,c*t)}if(h&&h!=="none"){var c=Tn(s.node2);Eu(a[1],a[1],o,-c*t)}Rt(l[0],a[0]),Rt(l[1],a[1])}})}var lD=ft();function fD(r){if(r)return lD(r).bridge}function ud(r){return r.type==="view"}var hD=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){var n=new jx,a=new sD,o=this.group,s=new St;this._controller=new PC(i.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(a.group),o.add(s),this._symbolDraw=n,this._lineDraw=a,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,i,n){var a=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var u=this._getThumbnailInfo();u&&u.bridge.reset(n);var l=this._symbolDraw,f=this._lineDraw;if(ud(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(h):pr(this._mainGroup,h,e)}Cu(e.getGraph(),wn(e));var v=e.getData();l.updateData(v);var c=e.getEdgeData();f.updateData(c),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,y=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,y));var g=e.get("layout");v.graph.eachNode(function(S){var T=S.dataIndex,w=S.getGraphicEl(),b=S.getModel();if(w){w.off("drag").off("dragend");var C=b.get("draggable");C&&w.on("drag",function(D){switch(g){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,n,y),d.setFixed(T),v.setItemLayout(T,[w.x,w.y]);break;case"circular":v.setItemLayout(T,[w.x,w.y]),S.setLayout({fixed:!0},!0),Qf(e,"symbolSize",S,[D.offsetX,D.offsetY]),a.updateLayout(e);break;default:v.setItemLayout(T,[w.x,w.y]),Kf(e.getGraph(),e),a.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(T)}),w.setDraggable(C,!!b.get("cursor"));var x=b.get(["emphasis","focus"]);x==="adjacency"&&(rt(w).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var T=S.getGraphicEl(),w=S.getModel().get(["emphasis","focus"]);T&&w==="adjacency"&&(rt(T).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=v.getLayout("cx"),_=v.getLayout("cy");v.graph.eachNode(function(S){Dy(S,p,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,i,n){var a=this,o=!1;(function s(){e.step(function(u){a.updateLayout(a._model),(u||!o)&&(o=!0,a._renderThumbnail(a._model,i,a._symbolDraw,a._lineDraw)),(a._layouting=!u)&&(n?a._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(e,i,n){var a=this._controller,o=this._controllerHost,s=i.coordinateSystem;if(!ud(s)){a.disable();return}a.enable(i.get("roam"),{api:n,zInfo:{component:i},triggerInfo:{roamTrigger:i.get("roamTrigger"),isInSelf:function(u,l,f){return s.containPoint([l,f])},isInClip:function(u,l,f){return!e||e.contain(l,f)}}}),o.zoomLimit=i.get("scaleLimit"),o.zoom=s.getZoom(),a.off("pan").off("zoom").on("pan",function(u){n.dispatchAction({seriesId:i.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){n.dispatchAction({seriesId:i.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY})})},t.prototype.updateViewOnPan=function(e,i,n){this._active&&(kC(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,i,n){this._active&&(BC(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Cu(e.getGraph(),wn(e)),this._lineDraw.updateLayout(),i.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,i=e.getData(),n=wn(e);i.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(Cu(e.getGraph(),wn(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,i=e.coordinateSystem;if(i.type==="view"){var n=fD(e);if(n)return{bridge:n,coordSys:i}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,i,n,a){var o=this._getThumbnailInfo();if(o){var s=new St,u=n.group.children(),l=a.group.children(),f=new St,h=new St;s.add(h),s.add(f);for(var v=0;v<u.length;v++){var c=u[v],d=c.children()[0],y=c.x,g=c.y,p=X(d.shape),m=R(p,{width:d.scaleX,height:d.scaleY,x:y-d.scaleX/2,y:g-d.scaleY/2}),_=X(d.style),S=new d.constructor({shape:m,style:_,z2:151});h.add(S)}for(var v=0;v<l.length;v++){var c=l[v],T=c.children()[0],_=X(T.style),m=X(T.shape),w=new Ly({style:_,shape:m,z2:151});f.add(w)}o.bridge.renderContent({api:i,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},t.type="graph",t})(lr);function xi(r){return"_EC_"+r}var vD=(function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var i=this._nodesMap;if(!i[xi(t)]){var n=new Vr(t,e);return n.hostGraph=this,this.nodes.push(n),i[xi(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[xi(t)]},r.prototype.addEdge=function(t,e,i){var n=this._nodesMap,a=this._edgesMap;if(ut(t)&&(t=this.nodes[t]),ut(e)&&(e=this.nodes[e]),t instanceof Vr||(t=n[xi(t)]),e instanceof Vr||(e=n[xi(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new My(t,e,i);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),a[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof Vr&&(t=t.id),e instanceof Vr&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var i=this.nodes,n=i.length,a=0;a<n;a++)i[a].dataIndex>=0&&t.call(e,i[a],a)},r.prototype.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a<n;a++)i[a].dataIndex>=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},r.prototype.breadthFirstTraverse=function(t,e,i,n){if(e instanceof Vr||(e=this._nodesMap[xi(e)]),!!e){for(var a=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var u=s.shift(),l=u[a],o=0;o<l.length;o++){var f=l[o],h=f.node1===u?f.node2:f.node1;if(!h.__visited){if(t.call(n,h,u))return;s.push(h),h.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,n=this.edges,a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)i[t.getRawIndex(a)].dataIndex=a;e.filterSelf(function(s){var u=n[e.getRawIndex(s)];return u.node1.dataIndex>=0&&u.node2.dataIndex>=0});for(var a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,i=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<i.length;n++){var a=i[n];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},r})(),Vr=(function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,i=e.data.getItemModel(this.dataIndex);return i.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var i=this.edges[e];i.dataIndex<0||(t.edge.push(i.dataIndex),t.node.push(i.node1.dataIndex,i.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=Y(),e=Y(),i=0,n=this.edges.length;i<n;i++){var a=this.edges[i];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var o=[a.node1],s=[a.node2],u=0;u<o.length;){var l=o[u];u++,e.set(l.dataIndex,!0);for(var f=l.inEdges,h=0,v=f.length,c=void 0,d=void 0;h<v;h++)c=f[h],d=c.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(c.node1))}for(u=0;u<s.length;){var y=s[u];u++,e.set(y.dataIndex,!0);for(var g=y.outEdges,h=0,p=g.length,m=void 0,_=void 0;h<p;h++)m=g[h],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r})(),My=(function(){function r(t,e,i){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=i??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,i=e.edgeData.getItemModel(this.dataIndex);return i.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=Y(),e=Y();t.set(this.dataIndex,!0);for(var i=[this.node1],n=[this.node2],a=0;a<i.length;){var o=i[a];a++,e.set(o.dataIndex,!0);for(var s=o.inEdges,u=0,l=s.length,f=void 0,h=void 0;u<l;u++)f=o.inEdges[u],h=f.dataIndex,h>=0&&!t.hasKey(h)&&(t.set(h,!0),i.push(f.node1))}for(a=0;a<n.length;){var v=n[a];a++,e.set(v.dataIndex,!0);for(var c=v.outEdges,u=0,l=c.length,d=void 0,y=void 0;u<l;u++)d=v.outEdges[u],y=d.dataIndex,y>=0&&!t.hasKey(y)&&(t.set(y,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r})();function Ay(r,t){return{getValue:function(e){var i=this[r][t];return i.getStore().get(i.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,i){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,i)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,i){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,i)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}de(Vr,Ay("hostGraph","data"));de(My,Ay("hostGraph","edgeData"));function cD(r,t,e,i,n){for(var a=new vD(i),o=0;o<r.length;o++)a.addNode(Bi(r[o].id,r[o].name,o),o);for(var s=[],u=[],l=0,o=0;o<t.length;o++){var f=t[o],h=f.source,v=f.target;a.addEdge(h,v,l)&&(u.push(f),s.push(Bi(ce(f.id,null),h+" > "+v)),l++)}var c=e.get("coordinateSystem"),d;if(c==="cartesian2d"||c==="polar"||c==="matrix")d=mx(r,e);else{var y=Jo.get(c),g=y?y.dimensions||[]:[];st(g,"value")<0&&g.concat(["value"]);var p=fy(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new Mo(p,e),d.initData(r)}var m=new Mo(["value"],e);return m.initData(u,s),n&&n(d,m),zC({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var dD=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var i=this;function n(){return i._categoriesData}this.legendVisualProvider=new Jx(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),tl(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,i){var n=e.edges||e.links||[],a=e.data||e.nodes||[],o=this;if(a&&n){KC(this);var s=cD(a,n,this,!0,u);return I(s.edges,function(l){QC(l.node1,l.node2,this,l.dataIndex)},this),s.data}function u(l,f){l.wrapMethod("getItemModel",function(d){var y=o._categoriesModels,g=d.getShallow("category"),p=y[g];return p&&(p.parentModel=d.parentModel,d.parentModel=p),d});var h=ht.prototype.getModel;function v(d,y){var g=h.call(this,d,y);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=c,d.getModel=v,d});function c(d){if(d&&(d[0]==="label"||d[1]==="label")){var y=d.slice();return d[0]==="label"?y[0]="edgeLabel":d[1]==="label"&&(y[1]="edgeLabel"),y}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,i,n){if(n==="edge"){var a=this.getData(),o=this.getDataParams(e,n),s=a.graph.getEdgeByIndex(e),u=a.getName(s.node1.dataIndex),l=a.getName(s.node2.dataIndex),f=[];return u!=null&&f.push(u),l!=null&&f.push(l),Gi("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=Dg({series:this,dataIndex:e,multipleSeries:i});return h},t.prototype._updateCategoriesData=function(){var e=j(this.option.categories||[],function(n){return n.value!=null?n:R({value:0},n)}),i=new Mo(["value"],this);i.initData(e),this._categoriesData=i,this._categoriesModels=i.mapArray(function(n){return i.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:H.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:H.color.primary}}},t})(vr);function _I(r){r.registerChartView(hD),r.registerSeriesModel(dD),r.registerProcessor(WC),r.registerVisual(XC),r.registerVisual($C),r.registerLayout(jC),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,tD),r.registerLayout(rD),r.registerCoordinateSystem("graphView",{dimensions:wy.dimensions,create:nD}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Dt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Dt),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,i){e.eachComponent({mainType:"series",query:t},function(n){var a=i.getViewOfSeriesModel(n);a&&(t.dx!=null&&t.dy!=null&&a.updateViewOnPan(n,i,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&a.updateViewOnZoom(n,i,t));var o=n.coordinateSystem,s=NC(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var Gr=ft(),ld=X,Du=it,pD=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,e,i);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new St,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),i.getZr().add(s);else{var v=mt(fd,e,h);this.updatePointerEl(s,l,v),this.updateLabelEl(s,l,v,e)}vd(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var u=Xf(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=Gr(t).pointerEl=new b1[a.type](ld(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Gr(t).labelEl=new Nt(ld(e.label));t.add(a),hd(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Gr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=Gr(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),hd(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=wf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){uo(l.event)},onmousedown:Du(this._onHandleDragMove,this,0,0),drift:Du(this._onHandleDragMove,this),ondragend:Du(this._onHandleDragEnd,this)}),i.add(n)),vd(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");k(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,Lg(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){fd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Iu(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Iu(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Iu(n)),Gr(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),wl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r})();function fd(r,t,e,i){Py(Gr(e).lastProp,i)||(Gr(e).lastProp=i,t?pr(e,i,r):(e.stopAnimation(),e.attr(i)))}function Py(r,t){if(F(r)&&F(t)){var e=!0;return I(t,function(i,n){e=e&&Py(r[n],i)}),!!e}else return r===t}function hd(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Iu(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function vd(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function gD(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function yD(r,t,e,i,n){var a=e.get("value"),o=Ry(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=jo(s.get("padding")||0),l=s.getFont(),f=x_(o,l),h=n.position,v=f.width+u[1]+u[3],c=f.height+u[0]+u[2],d=n.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var y=n.verticalAlign;y==="bottom"&&(h[1]-=c),y==="middle"&&(h[1]-=c/2),mD(h,v,c,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:hr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function mD(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Ry(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:hy(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(i,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?a=o.replace("{value}",a):Q(o)&&(a=o(s))}return a}function Ey(r,t,e){var i=Me();return Ql(i,i,e.rotation),Fu(i,i,e.position),Sf([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function _D(r,t,e,i,n,a){var o=ti.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),yD(t,i,n,a,{position:Ey(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function SD(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function wD(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var TD=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,u=s.grid,l=a.get("type"),f=cd(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var v=gD(a),c=bD[l](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=Xc(u.getRect(),n);_D(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=Xc(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Ey(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=cd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var v=(l[1]+l[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[f]}},t})(pD);function cd(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var bD={line:function(r,t,e){var i=SD([t,e[0]],[t,e[1]],dd(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:wD([t-i/2,e[0]],[i,n],dd(r))}}};function dd(r){return r.dim==="x"?0:1}var xD=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:"dashed"},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:H.color.accent40,throttle:40}},t})(at),We=ft(),CD=I;function Oy(r,t,e){if(!G.node){var i=t.getZr();We(i).records||(We(i).records={}),DD(i,t);var n=We(i).records[r]||(We(i).records[r]={});n.handler=e}}function DD(r,t){if(We(r).initialized)return;We(r).initialized=!0,e("click",mt(pd,"click")),e("mousemove",mt(pd,"mousemove")),e("globalout",LD);function e(i,n){r.on(i,function(a){var o=MD(t);CD(We(r).records,function(s){s&&n(s,a,o.dispatchAction)}),ID(o.pendings,t)})}}function ID(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function LD(r,t,e){r.handler("leave",null,e)}function pd(r,t,e,i){t.handler(r,e,i)}function MD(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function Nl(r,t){if(!G.node){var e=t.getZr(),i=(We(e).records||{})[r];i&&(We(e).records[r]=null)}}var AD=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Oy("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,i){Nl("axisPointer",i)},t.prototype.dispose=function(e,i){Nl("axisPointer",i)},t.type="axisPointer",t})(ke);function ky(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ra(a,r);if(o==null||o<0||k(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,v=l.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),y=[];y[c]=a.get(d,o),y[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(y)||[]}else e=u.dataToPoint(a.getValues(j(u.dimensions,function(p){return a.mapDimension(p)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var gd=ft();function PD(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||it(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){oo(n)&&(n=ky({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=oo(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||oo(n),v={},c={},d={list:[],map:{}},y={showPointer:mt(ED,c),showTooltip:mt(OD,d)};I(s.coordSysMap,function(p,m){var _=u||p.containPoint(n);I(s.coordSysAxesInfo[m],function(S,T){var w=S.axis,b=zD(l,S);if(!h&&_&&(!l||b)){var C=b&&b.value;C==null&&!u&&(C=w.pointToData(n)),C!=null&&yd(S,C,y,!1,v)}})});var g={};return I(f,function(p,m){var _=p.linkGroup;_&&!c[m]&&I(_.axesInfo,function(S,T){var w=c[T];if(S!==p&&w){var b=w.value;_.mapper&&(b=p.axis.scale.parse(_.mapper(b,md(S),md(p)))),g[p.key]=b}})}),I(g,function(p,m){yd(f[m],p,y,!0,v)}),kD(c,f,v),BD(d,n,r,o),ND(f,o,e),v}}function yd(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=RD(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&R(n,s[0]),!i&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function RD(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,v;if(u.getAxisTooltipData){var c=u.getAxisTooltipData(f,r,e);v=c.dataIndices,h=c.nestestValue}else{if(v=u.indicesOfNearest(i,f[0],r,e.type==="category"?.5:null),!v.length)return;h=u.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,y=Math.abs(d);y<=o&&((y<o||d>=0&&s<0)&&(o=y,s=d,n=h,a.length=0),I(v,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function ED(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function OD(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=Qn(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function kD(r,t,e){var i=e.axesInfo=[];I(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function BD(r,t,e,i){if(oo(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function ND(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=gd(i)[n]||{},o=gd(i)[n]={};I(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&I(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],u=[];I(a,function(l,f){!o[f]&&u.push(l)}),I(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function zD(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function md(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function oo(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function FD(r){IC.registerAxisPointerClass("CartesianAxisPointer",TD),r.registerComponentModel(xD),r.registerComponentView(AD),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!k(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=SC(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},PD)}function HD(r,t){var e=jo(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var n=new It({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var VD=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:H.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:H.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},t})(at);function By(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Ny(r){if(G.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var zy=Ny(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),GD=Ny(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Fy(r,t){if(!r)return t;t=Jp(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function UD(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var YD=Fy(GD,"transition"),jf=Fy(zy,"transform"),WD="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(G.transform3dSupported?"will-change:transform;":"");function XD(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function $D(r,t,e){if(!z(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=Wn(t);var a=XD(e),o=Math.max(Math.round(n)*1.5,6),s="",u=jf+":",l;st(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+n+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function ZD(r,t,e){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return e&&(n=" "+r/2+"s "+i,a="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+i,a+=(a.length?",":"")+(G.transformSupported?""+jf+n:",left"+n+",top"+n)),YD+":"+a}function _d(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!G.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=G.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+jf+":"+o+";":[["top",0],["left",0],[zy,o]]}function qD(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=V(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,u=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),I(["decoration","align"],function(l){var f=r.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function KD(r,t,e,i){var n=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),u=r.get("shadowColor"),l=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),h=r.getModel("textStyle"),v=Cg(r,"html"),c=l+"px "+f+"px "+s+"px "+u;return n.push("box-shadow:"+c),t&&a>0&&n.push(ZD(a,e,i)),o&&n.push("background-color:"+o),I(["width","color","radius"],function(d){var y="border-"+d,g=Jp(y),p=r.get(g);p!=null&&n.push(y+":"+p+(d==="color"?"":"px"))}),n.push(qD(h)),v!=null&&n.push("padding:"+jo(v).join("px ")+"px"),n.join(";")+";"}function Sd(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&Dm(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var QD=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,G.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(z(a)?document.querySelector(a):On(a)?a:Q(a)&&a(t.getDom()));Sd(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=n.handler,f=n.painter.getViewportRoot();re(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=UD(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=WD+KD(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+_d(a[0],a[1],!0)+("border-color:"+Wn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(z(a)&&i.get("trigger")==="item"&&!By(i)&&(s=$D(i,n,a)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",k(t)||(t=[t]);for(var u=0;u<t.length;u++)On(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(Sd(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=_d(i[0],i[1]);I(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",G.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;Im(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var i=e.parentNode;i&&i.removeChild(e)}this.el=this._container=null},r})(),jD=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Td(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,n,a){var o=this;F(t)&&Vt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Nt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Cg(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=wd(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;Td(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=rr(a.borderWidth||0),s=wd(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function rr(r){return Math.max(0,r)}function wd(r){var t=rr(r.shadowBlur||0),e=rr(r.shadowOffsetX||0),i=rr(r.shadowOffsetY||0);return{left:rr(t-e),right:rr(t+e),top:rr(t-i),bottom:rr(t+i)}}function Td(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var JD=new It({shape:{x:-1,y:-1,width:2,height:2}}),tI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(G.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=n0(n.get("renderMode"));this._tooltipContent=a==="richText"?new jD(i):new QD(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(G.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Lg(this,"_updatePosition",50,"fixRate"):wl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");Oy("itemTooltip",this._api,it(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||G.node||!n.getDom())){var o=bd(a,n);this._ticket="";var s=a.dataByCoordSys,u=nI(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=JD;f.x=a.x,f.y=a.y,f.update(),rt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=ky(a,i),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(bd(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var f=l.getData(),h=vn([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=rt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;_n(n,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(rt(f).dataIndex!=null?u=f:rt(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(e,u,i):l?this._showComponentItemTooltip(e,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=it(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=vn([i.tooltipOption],a),u=this._renderMode,l=[],f=Gi("section",{blocks:[],noHeader:!0}),h=[],v=new eu;I(e,function(m){I(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),T=_.value;if(!(!S||T==null)){var w=Ry(T,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),b=Gi("section",{header:w,noHeader:!Ie(w),sortBlocks:!0,blocks:[]});f.blocks.push(b),I(_.seriesDataIndices,function(C){var x=n.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,L=x.getDataParams(D);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=hy(S.axis,{value:T}),L.axisValueLabel=w,L.marker=v.makeTooltipMarker("item",Wn(L.color),u);var A=Zv(x.formatTooltip(D,!0,null)),M=A.frag;if(M){var P=vn([x],a).get("valueFormatter");b.blocks.push(P?R({valueFormatter:P},M):M)}A.text&&h.push(A.text),l.push(L)}})}})}),f.blocks.reverse(),h.reverse();var c=i.position,d=s.get("order"),y=Jv(f,v,u,d,n.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var g=u==="richText"?`
|
|
16
|
+
|
|
17
|
+
`:"<br/>",p=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,p,l,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=rt(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,v=l.getData(h),c=this._renderMode,d=e.positionDefault,y=vn([v.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=y.get("trigger");if(!(g!=null&&g!=="item")){var p=l.getDataParams(f,h),m=new eu;p.marker=m.makeTooltipMarker("item",Wn(p.color),c);var _=Zv(l.formatTooltip(f,!1,h)),S=y.get("order"),T=y.get("valueFormatter"),w=_.frag,b=w?Jv(T?R({valueFormatter:T},w):w,m,c,S,a.get("useUTC"),y.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,b,p,C,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=rt(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(z(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=X(u),u.content=Ft(u.content));var h=[u],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:u.content});var c=e.positionDefault,d=vn(h,this._tooltipModel,c?{position:c}:null),y=d.get("content"),g=Math.random()+"",p=new eu;this._showOrMove(d,function(){var m=X(d.get("formatterParams")||{});this._showTooltipContent(d,y,m,g,e.offsetX,e.offsetY,e.position,i,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");u=u||e.get("position");var c=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),y=d.color;if(v)if(z(v)){var g=e.ecModel.get("useUTC"),p=k(n)?n[0]:n,m=p&&p.axisType&&p.axisType.indexOf("time")>=0;c=v,m&&(c=jp(p.axisValue,c,g)),c=tg(c,n,!0)}else if(Q(v)){var _=it(function(S,T){S===this._ticket&&(h.setContent(T,f,e,y,u),this._updatePosition(e,u,o,s,h,n,l))},this);this._ticket=a,c=v(n,a,_)}else c=v;h.setContent(c,f,e,y,u),h.show(e,y),this._updatePosition(e,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(e,i,n,a,o){if(n==="axis"||k(i))return{color:a||o};if(!k(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),Q(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),k(i))n=Ht(i[0],l),a=Ht(i[1],f);else if(F(i)){var y=i;y.width=h[0],y.height=h[1];var g=Hi(y,{width:l,height:f});n=g.x,a=g.y,v=null,c=null}else if(z(i)&&u){var p=iI(i,d,h,e.get("borderWidth"));n=p[0],a=p[1]}else{var p=eI(n,a,o,l,f,v?null:20,c?null:20);n=p[0],a=p[1]}if(v&&(n-=xd(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=xd(c)?h[1]/2:c==="bottom"?h[1]:0),By(e)){var p=rI(n,a,o,l,f);n=p[0],a=p[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&I(n,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&I(l,function(v,c){var d=h[c]||{},y=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&y.length===g.length,o&&I(y,function(p,m){var _=g[m];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&I(v.seriesDataIndices,function(p){var m=p.seriesIndex,_=i[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){G.node||!i.getDom()||(wl(this,"_updatePosition"),this._tooltipContent.dispose(),Nl("itemTooltip",i))},t.type="tooltip",t})(ke);function vn(r,t,e){var i=t.ecModel,n;e?(n=new ht(e,i,i),n=new ht(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof ht&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new ht(o,n,i)))}return n}function bd(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function eI(r,t,e,i,n,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>i?r-=u+a:r+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[r,t]}function rI(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function iI(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-n/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+f+o;break;case"left":s=t.x-n-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function xd(r){return r==="center"||r==="middle"}function nI(r,t,e){var i=tf(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=ia(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=rt(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function SI(r){Kn(FD),r.registerComponentModel(VD),r.registerComponentView(tI),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Dt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Dt)}var aI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:H.size.m,backgroundColor:H.color.transparent,borderColor:H.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:H.color.primary},subtextStyle:{fontSize:12,color:H.color.quaternary}},t})(at),oI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=V(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Nt({style:hr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new Nt({style:hr(s,{text:v,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),y=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!y&&!g,d&&f.on("click",function(){Lv(d,"_"+e.get("target"))}),y&&c.on("click",function(){Lv(y,"_"+e.get("subtarget"))}),rt(f).eventData=rt(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),v&&a.add(c);var p=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=p.width,m.height=p.height;var _=Lf(e,n),S=Hi(m,_.refContainer,e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?S.x+=S.width:u==="center"&&(S.x+=S.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?S.y+=S.height:l==="middle"&&(S.y+=S.height/2),l=l||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var T={align:u,verticalAlign:l};f.setStyle(T),c.setStyle(T),p=a.getBoundingRect();var w=S.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var C=new It({shape:{x:p.x-w[3],y:p.y-w[0],width:p.width+w[1]+w[3],height:p.height+w[0]+w[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(C)}},t.type="title",t})(ke);function wI(r){r.registerComponentModel(aI),r.registerComponentView(oI)}var sI=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},zl=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),k(i)&&I(i,function(a,o){z(a)&&(a={type:a}),i[o]=vt(a,sI(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<e.length;n++){var a=e[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],n=[];e.eachRawSeries(function(u){var l=u.name;n.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,v=h.getAllNames();e.isSeriesFiltered(u)||(n=n.concat(v)),v.length?i=i.concat(v):f=!0}else f=!0;f&&Jl(u)&&i.push(u.name)}),this._availableNames=n;var a=this.get("data")||i,o=Y(),s=j(a,function(u){return(z(u)||ut(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new ht(u,this,this.ecModel))},this);this._data=Kt(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;I(a,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;I(e,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;I(e,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&st(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:H.size.m,align:"auto",backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:H.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(at),Ci=mt,Fl=I,Ga=St,Hy=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ga),this.group.add(this._selectorGroup=new Ga),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,u,s,l);var f=Lf(e,n).refContainer,h=e.getBoxLayoutParams(),v=e.get("padding"),c=Hi(h,f,v),d=this.layoutInner(e,o,c,a,u,l),y=Hi(ct({width:d.width,height:d.height},h),f,v);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=HD(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,u){var l=this.getContentGroup(),f=Y(),h=i.get("selectedMode"),v=i.get("triggerEvent"),c=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&c.push(d.id)}),Fl(i.getData(),function(d,y){var g=this,p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
|
|
18
|
+
`)){var m=new Ga;m.newline=!0,l.add(m);return}var _=n.getSeriesByName(p)[0];if(!f.get(p))if(_){var S=_.getData(),T=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),b=S.getVisual("style"),C=this._createItem(_,p,y,d,i,e,T,b,w,h,a);C.on("click",Ci(Cd,p,null,a,c)).on("mouseover",Ci(Hl,_.name,null,a,c)).on("mouseout",Ci(Vl,_.name,null,a,c)),n.ssr&&C.eachChild(function(x){var D=rt(x);D.seriesIndex=_.seriesIndex,D.dataIndex=y,D.ssrType="legend"}),v&&C.eachChild(function(x){g.packEventData(x,i,_,y,p)}),f.set(p,!0)}else n.eachRawSeries(function(x){var D=this;if(!f.get(p)&&x.legendVisualProvider){var L=x.legendVisualProvider;if(!L.containName(p))return;var A=L.indexOfName(p),M=L.getItemVisual(A,"style"),P=L.getItemVisual(A,"legendIcon"),O=sr(M.fill);O&&O[3]===0&&(O[3]=.2,M=R(R({},M),{fill:No(O,"rgba")}));var B=this._createItem(x,p,y,d,i,e,{},M,P,h,a);B.on("click",Ci(Cd,null,p,a,c)).on("mouseover",Ci(Hl,null,p,a,c)).on("mouseout",Ci(Vl,null,p,a,c)),n.ssr&&B.eachChild(function($){var K=rt($);K.seriesIndex=x.seriesIndex,K.dataIndex=y,K.ssrType="legend"}),v&&B.eachChild(function($){D.packEventData($,i,x,y,p)}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,i,a,s,u)},t.prototype.packEventData=function(e,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};rt(e).eventData=s},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();Fl(e,function(l){var f=l.type,h=new Nt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var v=i.getModel("selectorLabel"),c=i.getModel(["emphasis","selectorLabel"]);xf(h,{normal:v,emphasis:c},{defaultText:l.title}),ul(h)})},t.prototype._createItem=function(e,i,n,a,o,s,u,l,f,h,v){var c=e.visualDrawType,d=o.get("itemWidth"),y=o.get("itemHeight"),g=o.isSelected(i),p=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=uI(f,a,u,l,c,g,v),T=new Ga,w=a.getModel("textStyle");if(Q(e.getLegendIcon)&&(!_||_==="inherit"))T.add(e.getLegendIcon({itemWidth:d,itemHeight:y,icon:f,iconRotate:p,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?p==="inherit"?e.getData().getVisual("symbolRotate"):p:0;T.add(lI({itemWidth:d,itemHeight:y,icon:f,iconRotate:b,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,x=s,D=o.get("formatter"),L=i;z(D)&&D?L=D.replace("{name}",i??""):Q(D)&&(L=D(i));var A=g?w.getTextColor():a.get("inactiveColor");T.add(new Nt({style:hr(w,{text:L,x:C,y:y/2,fill:A,align:x,verticalAlign:"middle"},{inheritColor:A})}));var M=new It({shape:T.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&$o({el:M,componentModel:o,itemName:i,itemTooltipOption:P.option}),T.add(M),T.eachChild(function(O){O.silent=!0}),M.silent=!h,this.getContentGroup().add(T),ul(T),T.__legendDataIndex=n,T},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Pn(e.get("orient"),u,e.get("itemGap"),n.width,n.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Pn("horizontal",l,e.get("selectorItemGap",!0));var v=l.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),y=e.getOrient().index,g=y===0?"width":"height",p=y===0?"height":"width",m=y===0?"y":"x";s==="end"?c[y]+=f[g]+d:h[y]+=v[g]+d,c[1-y]+=f[p]/2-v[p]/2,l.x=c[0],l.y=c[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[p]=Math.max(f[p],v[p]),_[m]=Math.min(0,v[m]+c[1-y]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(ke);function uI(r,t,e,i,n,a,o){function s(g,p){g.lineWidth==="auto"&&(g.lineWidth=p.lineWidth>0?2:0),Fl(g,function(m,_){g[_]==="inherit"&&(g[_]=p[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?i.decal:Dl(h,o),l.fill==="inherit"&&(l.fill=i[n]),l.stroke==="inherit"&&(l.stroke=i[f]),l.opacity==="inherit"&&(l.opacity=(n==="fill"?i:e).opacity),s(l,i);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),l.fill==="auto"&&(l.fill=i.fill),l.stroke==="auto"&&(l.stroke=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),y=l[f];l.lineWidth=d==="auto"?i.lineWidth>0&&y?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:l,lineStyle:c}}function lI(r){var t=r.icon||"roundRect",e=aa(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=H.color.neutral00,e.style.lineWidth=2),e}function Cd(r,t,e,i){Vl(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Hl(r,t,e,i)}function Vy(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;i<n&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function Hl(r,t,e,i){Vy(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function Vl(r,t,e,i){Vy(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function fI(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function cn(r,t,e){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[r]():s[r](t.name),Dd(s,n),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){I(n,function(u,l){s[u?"select":"unSelect"](l)}),Dd(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Dd(r,t){var e=t||{};return I(r.getData(),function(i){var n=i.get("name");if(!(n===`
|
|
19
|
+
`||n==="")){var a=r.isSelected(n);ve(e,n)?e[n]=e[n]&&a:e[n]=a}}),e}function hI(r){r.registerAction("legendToggleSelect","legendselectchanged",mt(cn,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",mt(cn,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",mt(cn,"inverseSelect")),r.registerAction("legendSelect","legendselected",mt(cn,"select")),r.registerAction("legendUnSelect","legendunselected",mt(cn,"unSelect"))}function Gy(r){r.registerComponentModel(zl),r.registerComponentView(Hy),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,fI),r.registerSubTypeDefaulter("legend",function(){return"plain"}),hI(r)}var vI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=Mf(e);r.prototype.init.call(this,e,i,n),Id(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),Id(this,this.option,e)},t.type="legend.scroll",t.defaultOption=z1(zl.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:H.color.accent50,pageIconInactiveColor:H.color.accent10,pageIconSize:15,pageTextStyle:{color:H.color.tertiary},animationDurationUpdate:800}),t})(zl);function Id(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,Xn(t,e,{type:"box",ignoreSize:!!n})}var Ld=St,Lu=["width","height"],Mu=["x","y"],cI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Ld),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Ld)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,u){var l=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,u);var f=this._controllerGroup,h=i.get("pageIconSize",!0),v=k(h)?h:[h,h];d("pagePrev",0);var c=i.getModel("pageTextStyle");f.add(new Nt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(y,g){var p=y+"DataIndex",m=wf(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:it(l._pageGo,l,p,i,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=y,f.add(m)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=Lu[l],h=Mu[l],v=Lu[1-l],c=Mu[1-l];o&&Pn("horizontal",u,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),y=u.getBoundingRect(),g=[-y.x,-y.y],p=X(n);o&&(p[f]=n[f]-y[f]-d);var m=this._layoutContentAndController(e,a,p,l,f,v,c,h);if(o){if(s==="end")g[l]+=m[f]+d;else{var _=y[f]+d;g[l]-=_,m[h]-=_}m[f]+=y[f]+d,g[1-l]+=m[c]+m[v]/2-y[v]/2,m[v]=Math.max(m[v],y[v]),m[c]=Math.min(m[c],y[c]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Pn(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),Pn("horizontal",v,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),y=this._showController=c[o]>n[o],g=[-c.x,-c.y];i||(g[a]=f[l]);var p=[0,0],m=[-d.x,-d.y],_=V(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(y){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=n[o]-d[o]:p[a]+=d[o]+_}m[1-a]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(p),v.setPosition(m);var T={x:0,y:0};if(T[o]=y?n[o]:c[o],T[s]=Math.max(c[s],d[s]),T[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=n[o],y){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=T[s],h.setClipPath(new It({shape:w})),h.__rectSize=w[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&pr(f,{x:b.contentPosition[0],y:b.contentPosition[1]},y?e:null),this._updatePageInfoView(e,b),T},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;I(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=i[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,u=s!=null?s+1:0,l=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Lu[o],u=Mu[o],l=this._findTargetItemIndex(i),f=n.children(),h=f[l],v=f.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var y=S(h);d.contentPosition[o]=-y.s;for(var g=l+1,p=y,m=y,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>p.s+a||_&&!T(_,p.s))&&(m.i>p.i?p=m:p=_,p&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=p.i),++d.pageCount)),m=_;for(var g=l-1,p=y,m=y,_=null;g>=-1;--g)_=S(f[g]),(!_||!T(m,_.s))&&p.i<m.i&&(m=p,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=p.i),++d.pageCount,++d.pageIndex),p=_;return d;function S(w){if(w){var b=w.getBoundingRect(),C=b[u]+w[u];return{s:C,e:C+b[s],i:w.__legendDataIndex}}}function T(w,b){return w.e>=b&&w.s<=b+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(i=s)}),i??a},t.type="legend.scroll",t})(Hy);function dI(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function pI(r){Kn(Gy),r.registerComponentModel(vI),r.registerComponentView(cI),dI(r)}function TI(r){Kn(Gy),Kn(pI)}export{yI as E,_I as a,SI as b,TI as c,wI as d,mI as i,Kn as u};
|