chainlesschain 0.161.2 → 0.161.4
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 +6 -6
- package/src/assets/web-panel/.build-hash +1 -1
- package/src/assets/web-panel/assets/AIOps-K85peDCg.js +1 -0
- package/src/assets/web-panel/assets/{ActionButton-BvMi4awy.js → ActionButton-DoRABhmk.js} +1 -1
- package/src/assets/web-panel/assets/{Analytics-hRk2ziup.js → Analytics-B7p7X_lS.js} +2 -2
- package/src/assets/web-panel/assets/AppLayout-BQb9-BUE.js +1 -0
- package/src/assets/web-panel/assets/AppLayout-P7jhSfLy.css +1 -0
- package/src/assets/web-panel/assets/Audit-CHj8w38X.js +1 -0
- package/src/assets/web-panel/assets/Backup-BsgPajcJ.js +1 -0
- package/src/assets/web-panel/assets/BaseInput-kGeksnCj.js +1 -0
- package/src/assets/web-panel/assets/Chat-2e3EGiwk.js +7 -0
- package/src/assets/web-panel/assets/Chat-D4oAhi11.css +1 -0
- package/src/assets/web-panel/assets/{Checkbox-C9dkWb-7.js → Checkbox-DirndeMM.js} +1 -1
- package/src/assets/web-panel/assets/Codegen-UQuEF6rH.js +1 -0
- package/src/assets/web-panel/assets/{Col-JyQOivHb.js → Col-myVf7h0M.js} +1 -1
- package/src/assets/web-panel/assets/Community-C3Gt4JNP.js +1 -0
- package/src/assets/web-panel/assets/Compact-B4TJcIuz.js +1 -0
- package/src/assets/web-panel/assets/Compliance-DKye9lMe.js +1 -0
- package/src/assets/web-panel/assets/{Cowork-V-tDxtrt.js → Cowork-bD9Z8K9J.js} +3 -3
- package/src/assets/web-panel/assets/{Cron-YgEeQvdV.js → Cron-BrQZ3zwQ.js} +2 -2
- package/src/assets/web-panel/assets/Crosschain-C7m4dIrR.js +1 -0
- package/src/assets/web-panel/assets/{DID-swdBCdMZ.js → DID-CGniRypj.js} +2 -2
- package/src/assets/web-panel/assets/Dashboard-BqQfrJLe.js +3 -0
- package/src/assets/web-panel/assets/{Dropdown-mlITwb7d.js → Dropdown-Csici42Z.js} +1 -1
- package/src/assets/web-panel/assets/Federation-D2boc2WU.js +1 -0
- package/src/assets/web-panel/assets/{FormItemContext-BYmWDwAT.js → FormItemContext-BpXHcM06.js} +1 -1
- package/src/assets/web-panel/assets/{Git-Du1k1iHz.js → Git-C7QHt3Hy.js} +2 -2
- package/src/assets/web-panel/assets/Governance-DPBJNo9u.js +1 -0
- package/src/assets/web-panel/assets/Inference-Ca8VokDu.js +1 -0
- package/src/assets/web-panel/assets/KnowledgeGraph-CrFGz4u2.js +1 -0
- package/src/assets/web-panel/assets/{Logs-CElvIBBJ.js → Logs-DMhNTvH6.js} +2 -2
- package/src/assets/web-panel/assets/Marketplace-DB0lVRRk.js +1 -0
- package/src/assets/web-panel/assets/{McpTools-BpHkrlka.js → McpTools-BmFQp5wQ.js} +3 -3
- package/src/assets/web-panel/assets/{Memory-DeU9ys_m.js → Memory-DDooyF2l.js} +2 -2
- package/src/assets/web-panel/assets/Mtc-Ci6BDiRi.js +6 -0
- package/src/assets/web-panel/assets/Mtc-DHwbdUqA.css +1 -0
- package/src/assets/web-panel/assets/MtcAudit-B0x8gahq.css +1 -0
- package/src/assets/web-panel/assets/MtcAudit-J-DgVOwR.js +19 -0
- package/src/assets/web-panel/assets/NLProgramming-Uv0jicWQ.js +1 -0
- package/src/assets/web-panel/assets/Notes-BHauapxR.css +1 -0
- package/src/assets/web-panel/assets/Notes-SGtdMwfH.js +7 -0
- package/src/assets/web-panel/assets/NotificationSettings-Cg4yXikq.js +1 -0
- package/src/assets/web-panel/assets/NotificationSettings-Co0e0uEO.css +1 -0
- package/src/assets/web-panel/assets/{Organization-B_SHESSc.js → Organization-Bij8W2mU.js} +4 -4
- package/src/assets/web-panel/assets/{Overflow-R2SOGT0l.js → Overflow-DNGM4vCD.js} +1 -1
- package/src/assets/web-panel/assets/{OverrideContext-Nubhv68k.js → OverrideContext-DSwW21YS.js} +1 -1
- package/src/assets/web-panel/assets/{P2P-IYYy3cEd.js → P2P-9DlPC_rr.js} +2 -2
- package/src/assets/web-panel/assets/{Permissions-CR1N42yW.js → Permissions-BVJwnBDW.js} +3 -3
- package/src/assets/web-panel/assets/Pipeline-lWCcdQ9k.js +1 -0
- package/src/assets/web-panel/assets/Privacy-BN60IEMG.js +1 -0
- package/src/assets/web-panel/assets/{ProjectSettings-CEDhpgbs.js → ProjectSettings-GJoyBlLy.js} +2 -2
- package/src/assets/web-panel/assets/{Projects-DABi6ylb.js → Projects-Dvs_UqGv.js} +2 -2
- package/src/assets/web-panel/assets/{Providers-HzrcE8ma.js → Providers-A5KukRrJ.js} +2 -2
- package/src/assets/web-panel/assets/QuickAsk-D4K2pIHJ.js +1 -0
- package/src/assets/web-panel/assets/Recommend-DQKR520B.js +1 -0
- package/src/assets/web-panel/assets/Reputation-BVntfhQV.js +1 -0
- package/src/assets/web-panel/assets/Row-Do4ULXpm.js +1 -0
- package/src/assets/web-panel/assets/RssFeed-FAHzJo-E.js +3 -0
- package/src/assets/web-panel/assets/Search-DsOTkKd1.js +1 -0
- package/src/assets/web-panel/assets/{Security-DdW4hu_4.js → Security-hglxmoVZ.js} +3 -3
- package/src/assets/web-panel/assets/{Services-CnzEzGFN.js → Services-C6Rv4i8z.js} +2 -2
- package/src/assets/web-panel/assets/{Skeleton-D6RevdW2.js → Skeleton-D-dXFspp.js} +2 -2
- package/src/assets/web-panel/assets/Skills-D6sVDuOT.js +1 -0
- package/src/assets/web-panel/assets/Sla-8O-JYjQq.js +1 -0
- package/src/assets/web-panel/assets/SpeechSettings-DSOYsk6R.js +1 -0
- package/src/assets/web-panel/assets/SyncSettings-C5nhT_6b.js +1 -0
- package/src/assets/web-panel/assets/SyncSettings-C6cDrwDR.css +1 -0
- package/src/assets/web-panel/assets/Tasks-NrpJCUFD.js +1 -0
- package/src/assets/web-panel/assets/Templates-Ca2HO-Ff.js +1 -0
- package/src/assets/web-panel/assets/Tenant-BWXC1pLX.js +1 -0
- package/src/assets/web-panel/assets/Tokens-DUtMwWxZ.js +1 -0
- package/src/assets/web-panel/assets/{Trigger-DkSZjOlY.js → Trigger-TyynxipZ.js} +1 -1
- package/src/assets/web-panel/assets/Trust-b4KDouFb.js +1 -0
- package/src/assets/web-panel/assets/UkeySign-CJpVhu8c.js +1 -0
- package/src/assets/web-panel/assets/VideoEditing-Bpn0V8T2.js +1 -0
- package/src/assets/web-panel/assets/{Wallet-DHbi5dHt.js → Wallet-CzBLjCnl.js} +4 -4
- package/src/assets/web-panel/assets/{WebAuthn-BkGDI33-.js → WebAuthn-HnRCEu5Q.js} +5 -5
- package/src/assets/web-panel/assets/WorkflowEditor-CMWDod4n.js +1 -0
- package/src/assets/web-panel/assets/{_getTag-CWA3v-Ds.js → _getTag-BVc6NQ_K.js} +1 -1
- package/src/assets/web-panel/assets/chat-D7QE42qx.js +1 -0
- package/src/assets/web-panel/assets/{collapseMotion-BIjDVXtT.js → collapseMotion-6-_FbiKl.js} +1 -1
- package/src/assets/web-panel/assets/{colors-D2tTvuDI.js → colors-BO5nQJrH.js} +1 -1
- package/src/assets/web-panel/assets/{compact-item-CqCEUZiy.js → compact-item-By0t_ZDX.js} +1 -1
- package/src/assets/web-panel/assets/{createContext-C6HFlAQP.js → createContext-CHZw2WQy.js} +1 -1
- package/src/assets/web-panel/assets/{debounce-Q0BOJsYd.js → debounce-D9xTw4Sx.js} +1 -1
- package/src/assets/web-panel/assets/{echarts-DmBLM6YO.js → echarts-BrEnqXDv.js} +1 -1
- package/src/assets/web-panel/assets/{hasIn-yp2CbhYc.js → hasIn-CHScXGSD.js} +1 -1
- package/src/assets/web-panel/assets/icons-B2G69bhT.js +57 -0
- package/src/assets/web-panel/assets/index-B-VML4Pz.js +1 -0
- package/src/assets/web-panel/assets/index-B6FaCH6K.js +55 -0
- package/src/assets/web-panel/assets/index-BCoEssNV.js +1 -0
- package/src/assets/web-panel/assets/index-BFMpMM1y.js +21 -0
- package/src/assets/web-panel/assets/index-BIoymtmG.js +1 -0
- package/src/assets/web-panel/assets/{index-B2qFUwGb.js → index-BVL4FbJ3.js} +2 -2
- package/src/assets/web-panel/assets/{index-B0jkl2Zb.js → index-BXXqtwrw.js} +1 -1
- package/src/assets/web-panel/assets/{index-Cpfx7-LN.js → index-BY-BnqWj.js} +2 -2
- package/src/assets/web-panel/assets/{index-DnehXcB-.js → index-Bbf4Smm-.js} +1 -1
- package/src/assets/web-panel/assets/{index-w1xShUDf.js → index-BdOG1g8i.js} +1 -1
- package/src/assets/web-panel/assets/{index-DlgMVieO.js → index-BgAPyeU5.js} +1 -1
- package/src/assets/web-panel/assets/index-Bn_0bupT.js +69 -0
- package/src/assets/web-panel/assets/index-BnaKc6VJ.js +1 -0
- package/src/assets/web-panel/assets/index-BqMhh2pY.js +1 -0
- package/src/assets/web-panel/assets/{index-CucxAdwN.js → index-BuzilAPw.js} +2 -2
- package/src/assets/web-panel/assets/{index-BTL2yIvT.js → index-By3TOq5w.js} +1 -1
- package/src/assets/web-panel/assets/index-C1ssAFdz.js +1 -0
- package/src/assets/web-panel/assets/{index-DEKuiAPQ.js → index-CAPiTJT4.js} +2 -2
- package/src/assets/web-panel/assets/{index-BlVnFOFL.js → index-CCOGrBpN.js} +1 -1
- package/src/assets/web-panel/assets/{index-JszcDpsT.js → index-COVlQxSz.js} +2 -2
- package/src/assets/web-panel/assets/{index-Dj4P0iWm.js → index-CYCwDDoS.js} +1 -1
- package/src/assets/web-panel/assets/{index-D34iabcS.js → index-C_EIwaP7.js} +8 -8
- package/src/assets/web-panel/assets/{index-CXf0zL5i.js → index-CfZqQ0JR.js} +3 -3
- package/src/assets/web-panel/assets/{index-CcwZodUl.js → index-CpHzrw8g.js} +1 -1
- package/src/assets/web-panel/assets/index-CszhN_r3.js +1 -0
- package/src/assets/web-panel/assets/index-Czk89HQF.js +1 -0
- package/src/assets/web-panel/assets/{index-BxSsO6Sm.js → index-D3WrGn-J.js} +2 -2
- package/src/assets/web-panel/assets/index-DS0o68gc.js +3 -0
- package/src/assets/web-panel/assets/{index-NNymVAza.js → index-DZ4t_1f-.js} +2 -2
- package/src/assets/web-panel/assets/{index-B8Qxu0q2.js → index-D_QlAaj5.js} +1 -1
- package/src/assets/web-panel/assets/index-DgWJBqLh.js +13 -0
- package/src/assets/web-panel/assets/{index-CFoFkVUt.js → index-DiHryOr_.js} +4 -4
- package/src/assets/web-panel/assets/index-DqPwMq7i.js +1 -0
- package/src/assets/web-panel/assets/{index-Blq49aTW.js → index-Qm6Kn3iq.js} +1 -1
- package/src/assets/web-panel/assets/index-U1O0AXXH.js +1 -0
- package/src/assets/web-panel/assets/index-jRQNL6Yj.js +12 -0
- package/src/assets/web-panel/assets/index-sgVQrC2c.js +1 -0
- package/src/assets/web-panel/assets/{index-CrEEL63u.js → index-yLdzB8i-.js} +1 -1
- package/src/assets/web-panel/assets/{initDefaultProps-DfdVxwz6.js → initDefaultProps-CMFUJGsa.js} +1 -1
- package/src/assets/web-panel/assets/{isPlainObject-DSTnI585.js → isPlainObject-_gz-soRW.js} +1 -1
- package/src/assets/web-panel/assets/isSymbol-DAy2hlR5.js +1 -0
- package/src/assets/web-panel/assets/{motion-CL0bdvJg.js → motion-CTtMugIF.js} +2 -2
- package/src/assets/web-panel/assets/{move-Bo9Fgzv7.js → move-DHjaLqhq.js} +1 -1
- package/src/assets/web-panel/assets/mtc-parser-Cc3pB9Xm.js +1 -0
- package/src/assets/web-panel/assets/{omit-C-cc6wHr.js → omit-COm0v71g.js} +1 -1
- package/src/assets/web-panel/assets/operationUnit-vCu2co3e.js +1 -0
- package/src/assets/web-panel/assets/{pickAttrs-CjLp5RN-.js → pickAttrs-C3Ftf-sl.js} +1 -1
- package/src/assets/web-panel/assets/{placementArrow-CJa8gsqa.js → placementArrow-IJhTwCmF.js} +1 -1
- package/src/assets/web-panel/assets/{responsiveObserve-CcDj3P-p.js → responsiveObserve-Cmu2mrKT.js} +1 -1
- package/src/assets/web-panel/assets/{slide-CpvbHO26.js → slide-CnWCDeu_.js} +1 -1
- package/src/assets/web-panel/assets/{statusUtils-BK69kP1U.js → statusUtils-CSOJeZ-L.js} +1 -1
- package/src/assets/web-panel/assets/{styleChecker-CDvBRzsG.js → styleChecker-94VBD7Xs.js} +1 -1
- package/src/assets/web-panel/assets/useFlexGapSupport-CBjbWuc9.js +1 -0
- package/src/assets/web-panel/assets/useFs-DfXp51Mk.js +1 -0
- package/src/assets/web-panel/assets/{useMergedState-TP9VIF2K.js → useMergedState-n0f81Aew.js} +1 -1
- package/src/assets/web-panel/assets/{useRefs-BhIz_lC3.js → useRefs-CTh0C9xI.js} +1 -1
- package/src/assets/web-panel/assets/{useState-CpKsyozn.js → useState-4T1Ntfpx.js} +1 -1
- package/src/assets/web-panel/assets/{vendor-B6ToihkA.js → vendor-Ci2pTZ_t.js} +1 -1
- package/src/assets/web-panel/assets/{vnode-Bzp-FsbB.js → vnode-CGY3YRLi.js} +1 -1
- package/src/assets/web-panel/assets/{zoom-BHqpWXJV.js → zoom-CZllDiMO.js} +1 -1
- package/src/assets/web-panel/index.html +3 -3
- package/src/commands/mtc.js +2 -0
- package/src/gateways/ws/chat-intent-protocol.js +192 -0
- package/src/gateways/ws/message-dispatcher.js +6 -0
- package/src/gateways/ws/ws-server.js +20 -0
- package/src/lib/chat-intent-service.js +530 -0
- package/src/lib/config-manager.js +3 -1
- package/src/lib/governance-v2-helpers.js +1 -1
- package/src/lib/sync-manager.js +119 -25
- package/src/assets/web-panel/assets/AIOps-CoZ9bIqF.js +0 -1
- package/src/assets/web-panel/assets/AppLayout-CtGprHSx.css +0 -1
- package/src/assets/web-panel/assets/AppLayout-_JR3Gko8.js +0 -1
- package/src/assets/web-panel/assets/Audit-D8WmaHdX.js +0 -1
- package/src/assets/web-panel/assets/Backup-CogYVeiE.js +0 -1
- package/src/assets/web-panel/assets/BaseInput-NAp5_OPY.js +0 -1
- package/src/assets/web-panel/assets/Chat-ByiYUboW.css +0 -1
- package/src/assets/web-panel/assets/Chat-DkQnhjfk.js +0 -2
- package/src/assets/web-panel/assets/Codegen-BHyJ3j-p.js +0 -1
- package/src/assets/web-panel/assets/Community-UMq5QuBA.js +0 -1
- package/src/assets/web-panel/assets/Compact-DGlwooBJ.js +0 -1
- package/src/assets/web-panel/assets/Compliance-2rWGO55k.js +0 -1
- package/src/assets/web-panel/assets/Crosschain-Cgd5cRKn.js +0 -1
- package/src/assets/web-panel/assets/Dashboard-ClnWtxsT.js +0 -3
- package/src/assets/web-panel/assets/Federation-DtUN3wQa.js +0 -1
- package/src/assets/web-panel/assets/Governance-B2TFaWsf.js +0 -1
- package/src/assets/web-panel/assets/Inference-Cm_hmXla.js +0 -1
- package/src/assets/web-panel/assets/KnowledgeGraph-DLaLMo4r.js +0 -1
- package/src/assets/web-panel/assets/Marketplace-BlR3RCDV.js +0 -1
- package/src/assets/web-panel/assets/Mtc-CCJZpnJo.js +0 -6
- package/src/assets/web-panel/assets/Mtc-Cc8OJxe_.css +0 -1
- package/src/assets/web-panel/assets/NLProgramming-B_Tie6j1.js +0 -1
- package/src/assets/web-panel/assets/Notes-BcpuirPj.js +0 -7
- package/src/assets/web-panel/assets/Notes-DKkPfXlY.css +0 -1
- package/src/assets/web-panel/assets/Pipeline-nwFpKsU_.js +0 -1
- package/src/assets/web-panel/assets/Privacy-BGpz72PX.js +0 -1
- package/src/assets/web-panel/assets/QuickAsk-6FgX9DC6.js +0 -1
- package/src/assets/web-panel/assets/Recommend-BPhQwye7.js +0 -1
- package/src/assets/web-panel/assets/Reputation-BL6hTN1s.js +0 -1
- package/src/assets/web-panel/assets/Row-2akLU3YS.js +0 -1
- package/src/assets/web-panel/assets/RssFeed-D6qNq6Ht.js +0 -3
- package/src/assets/web-panel/assets/Search-R_b-u9oL.js +0 -1
- package/src/assets/web-panel/assets/Skills-DD5ReHH7.js +0 -1
- package/src/assets/web-panel/assets/Sla-CaQOOsjD.js +0 -1
- package/src/assets/web-panel/assets/SpeechSettings-D-pGIn9Z.js +0 -1
- package/src/assets/web-panel/assets/Tasks-BbdO_i4Q.js +0 -1
- package/src/assets/web-panel/assets/Templates-CupAugDn.js +0 -1
- package/src/assets/web-panel/assets/Tenant-rseAzHcY.js +0 -1
- package/src/assets/web-panel/assets/Tokens-DXMokNbR.js +0 -1
- package/src/assets/web-panel/assets/Trust-CKb7QDH1.js +0 -1
- package/src/assets/web-panel/assets/UkeySign-Cux8_Ib_.js +0 -1
- package/src/assets/web-panel/assets/VideoEditing-CSOjdBZg.js +0 -1
- package/src/assets/web-panel/assets/WorkflowEditor-BFZ3RYva.js +0 -1
- package/src/assets/web-panel/assets/chat-BQ-Nk2XY.js +0 -1
- package/src/assets/web-panel/assets/icons-DvZE-RKs.js +0 -57
- package/src/assets/web-panel/assets/index-4cn1LmJ9.js +0 -1
- package/src/assets/web-panel/assets/index-B74gWYqD.js +0 -1
- package/src/assets/web-panel/assets/index-B9b_mz4I.js +0 -55
- package/src/assets/web-panel/assets/index-BAA1SFp1.js +0 -1
- package/src/assets/web-panel/assets/index-BJeE7n_I.js +0 -12
- package/src/assets/web-panel/assets/index-BJoK7MkB.js +0 -13
- package/src/assets/web-panel/assets/index-CA3g3EpL.js +0 -1
- package/src/assets/web-panel/assets/index-CWhXxdyo.js +0 -1
- package/src/assets/web-panel/assets/index-Cd6m6ynF.js +0 -1
- package/src/assets/web-panel/assets/index-Cfy9l115.js +0 -1
- package/src/assets/web-panel/assets/index-CijiVpfO.js +0 -1
- package/src/assets/web-panel/assets/index-CvuBD5TK.js +0 -3
- package/src/assets/web-panel/assets/index-Cw4v7ezB.js +0 -65
- package/src/assets/web-panel/assets/index-DjeNNVwu.js +0 -1
- package/src/assets/web-panel/assets/index-KdFFI-p3.js +0 -1
- package/src/assets/web-panel/assets/index-aw2DwKj-.js +0 -21
- package/src/assets/web-panel/assets/index-nzDx0JAR.js +0 -1
- package/src/assets/web-panel/assets/isSymbol-CsP9Ob42.js +0 -1
- package/src/assets/web-panel/assets/mtc-parser-pGMSt10g.js +0 -1
- package/src/assets/web-panel/assets/useFlexGapSupport-CRN_hzJt.js +0 -1
- package/src/assets/web-panel/assets/useFs-BD-YRwbU.js +0 -1
- package/src/assets/web-panel/assets/ws-D_5-FRIb.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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(`
|
|
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-Ci2pTZ_t.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
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
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
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(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{l as O,M as y,b as v,i as T}from"./Trigger-TyynxipZ.js";import{a as s,S as f,l as x,d as w,p as C}from"./_getTag-BVc6NQ_K.js";import{i as c}from"./isSymbol-DAy2hlR5.js";function _(n,r){for(var e=-1,i=n==null?0:n.length,t=Array(i);++e<i;)t[e]=r(n[e],e,n);return t}var p=f?f.prototype:void 0,d=p?p.toString:void 0;function S(n){if(typeof n=="string")return n;if(s(n))return _(n,S)+"";if(c(n))return d?d.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function I(n){return n}function E(n,r,e){switch(e.length){case 0:return n.call(r);case 1:return n.call(r,e[0]);case 2:return n.call(r,e[0],e[1]);case 3:return n.call(r,e[0],e[1],e[2])}return n.apply(r,e)}var M=800,A=16,N=Date.now;function R(n){var r=0,e=0;return function(){var i=N(),t=A-(i-e);if(e=i,t>0){if(++r>=M)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}function z(n){return function(){return n}}var l=(function(){try{var n=x(Object,"defineProperty");return n({},"",{}),n}catch{}})(),$=l?function(n,r){return l(n,"toString",{configurable:!0,enumerable:!1,value:z(r),writable:!0})}:I,F=R($);function H(n,r,e){r=="__proto__"&&l?l(n,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[r]=e}var V=Object.prototype,D=V.hasOwnProperty;function un(n,r,e){var i=n[r];(!(D.call(n,r)&&O(i,e))||e===void 0&&!(r in n))&&H(n,r,e)}var g=Math.max;function K(n,r,e){return r=g(r===void 0?n.length-1:r,0),function(){for(var i=arguments,t=-1,a=g(i.length-r,0),u=Array(a);++t<a;)u[t]=i[r+t];t=-1;for(var o=Array(r+1);++t<r;)o[t]=i[t];return o[r]=e(u),E(n,this,o)}}var U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/;function Z(n,r){if(s(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||c(n)?!0:X.test(n)||!U.test(n)||r!=null&&n in Object(r)}var q="Expected a function";function h(n,r){if(typeof n!="function"||r!=null&&typeof r!="function")throw new TypeError(q);var e=function(){var i=arguments,t=r?r.apply(this,i):i[0],a=e.cache;if(a.has(t))return a.get(t);var u=n.apply(this,i);return e.cache=a.set(t,u)||a,u};return e.cache=new(h.Cache||y),e}h.Cache=y;var G=500;function L(n){var r=h(n,function(i){return e.size===G&&e.clear(),i}),e=r.cache;return r}var B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/\\(\\)?/g,Q=L(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(B,function(e,i,t,a){r.push(t?a.replace(J,"$1"):i||e)}),r});function W(n){return n==null?"":S(n)}function P(n,r){return s(n)?n:Z(n,r)?[n]:Q(W(n))}function b(n){if(typeof n=="string"||c(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function on(n,r){r=P(r,n);for(var e=0,i=r.length;n!=null&&e<i;)n=n[b(r[e++])];return e&&e==i?n:void 0}var m=f?f.isConcatSpreadable:void 0;function Y(n){return s(n)||w(n)||!!(m&&n&&n[m])}function k(n,r,e,i,t){var a=-1,u=n.length;for(e||(e=Y),t||(t=[]);++a<u;){var o=n[a];e(o)?v(t,o):t[t.length]=o}return t}function j(n){var r=n==null?0:n.length;return r?k(n):[]}function sn(n){return F(K(n,void 0,j),n+"")}function nn(n,r){return n!=null&&r in Object(n)}function rn(n,r,e){r=P(r,n);for(var i=-1,t=r.length,a=!1;++i<t;){var u=b(r[i]);if(!(a=n!=null&&e(n,u)))break;n=n[u]}return a||++i!=t?a:(t=n==null?0:n.length,!!t&&C(t)&&T(u,t)&&(s(n)||w(n)))}function fn(n,r){return n!=null&&rn(n,r,nn)}export{un as a,on as b,P as c,H as d,Z as e,sn as f,_ as g,fn as h,I as i,K as o,F as s,b as t};
|