@sheetxl/mcp 0.0.0-stage → 0.8.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +11 -0
- package/README.md +72 -2
- package/agent/instructions.md +66 -0
- package/assets/2zIY9Xuml4y8NI05.js +596 -0
- package/assets/33QTHR3r6ZujxFx8.js +18 -0
- package/assets/8vRAQlvTcvMLeio0.js +1131 -0
- package/assets/9MRZ5Yc2RBgcqZSp.js +594 -0
- package/assets/9dbZwzIWefGss7is.js +52 -0
- package/assets/B-1_xSqUFCJ6jNjn.js +9109 -0
- package/assets/B-jE7tAMA559MtNt.js +37 -0
- package/assets/B5xHa5bjZu5ONrm5.js +638 -0
- package/assets/B66aeGYrHLbGpuN9.js +9137 -0
- package/assets/B6BP5l2qmeZhqVV7.js +7 -0
- package/assets/B6b9ytNrHR-ijcOa.js +30 -0
- package/assets/B9QlqO6n3MCBsvoj.js +504 -0
- package/assets/B9qiPx_BXxo1jgcx.js +2368 -0
- package/assets/B9w1dNK8pNq-Z1P3.js +142 -0
- package/assets/BDZ1FGc1zFqO1nK7.js +4036 -0
- package/assets/BFwNQZVRnbNt-gRJ.js +2260 -0
- package/assets/BMnNvUCJu35tT_aO.js +19 -0
- package/assets/BNfBq8Eic3Cl-f6A.js +184 -0
- package/assets/BOF64A2D2KKcv_fo.js +15 -0
- package/assets/BOcWUnxWSG1d5Ljc.js +447 -0
- package/assets/BW8XjynUqlfvuQUV.js +37 -0
- package/assets/BWsXOU_jh_cA8m8I.js +12 -0
- package/assets/BXC6616BWEWNZ2-D.js +63 -0
- package/assets/BYtBi8vLoB41QkV8.js +656 -0
- package/assets/B_-VPqfsse8AlCTm.js +81 -0
- package/assets/BiAEoWSl8c6jcUnS.js +28 -0
- package/assets/BkBCkgPNrFR5N9fo.js +19 -0
- package/assets/BmxgDCZk_aMDms4i.js +639 -0
- package/assets/BoTScfjgygCozDVi.js +23 -0
- package/assets/BwisWvPpXRhyIP4O.js +15 -0
- package/assets/ByziR0Anm39Bw0Bc.js +1556 -0
- package/assets/C-5LlJ5qhC7Ef0gV.js +12996 -0
- package/assets/C-CNmTrzNS-ZlQ8j.js +1760 -0
- package/assets/C1rIlmARlinuie5E.js +45 -0
- package/assets/C1w8NQeox7_92swz.js +35 -0
- package/assets/C2Rgsb69SnMOohGt.js +23 -0
- package/assets/C55MTJ_5qW94RElE.js +7514 -0
- package/assets/CBNNl8igIyeHY4St.js +780 -0
- package/assets/CDGeuGB9CBXeCIm6.js +12 -0
- package/assets/CH9M37mRwnS0t9wM.js +104 -0
- package/assets/CHHJZPAuM3OjbzF6.js +402 -0
- package/assets/CMTDUipnLiOj5pbe.js +610 -0
- package/assets/COFze3jkZDQRSij9.js +4437 -0
- package/assets/CPDkdp0yI4DwUHGZ.js +119 -0
- package/assets/CULV-2mwmqYYpAjM.js +119 -0
- package/assets/CVFTQ0OwsUt03r4o.js +146 -0
- package/assets/CXM1IYmE-TDInPwr.js +118 -0
- package/assets/CcLPa6zB5PH3OG2O.js +10289 -0
- package/assets/CdF5MxGnISAZ41oQ.js +359 -0
- package/assets/CeDqeFLuUfN8UIGx.js +17 -0
- package/assets/CfiVUfpeONJ3rf31.js +28 -0
- package/assets/Cfvhcua4c6onouhP.js +14 -0
- package/assets/CgjR_TiVOcuxg5tO.js +16 -0
- package/assets/CjwzOAnab_dpAqiG.js +144 -0
- package/assets/Cm3Q_-DDdnVHRBxr.js +351 -0
- package/assets/CpOhY88x6AgVxvTz.js +49 -0
- package/assets/CtpcYuBFU6fxsUhs.js +71 -0
- package/assets/CutEBbZl8oFbTlXZ.js +171 -0
- package/assets/CwJyw5Yxpj4PGh14.js +28 -0
- package/assets/CwdOInoJwCxXnhog.js +7 -0
- package/assets/D2_T0KSaye0ncjQa.js +6294 -0
- package/assets/D2w3KjYuONW1G1kX.js +86 -0
- package/assets/D3BAmD-1AfFtHdC6.js +242 -0
- package/assets/D81iH5MJJfq2t9FP.js +32 -0
- package/assets/D94hlZEaHtGHdN_K.js +202 -0
- package/assets/DBFXsbIHDxbMBrzV.js +319 -0
- package/assets/DCHsM8bfVisYJFTT.js +1783 -0
- package/assets/DIy1659Yv5-fD69E.js +123 -0
- package/assets/DK0VM9-qrEXBm8Ud.js +223 -0
- package/assets/DPazQ_nZv-sXUwO3.js +45 -0
- package/assets/DSSrCrejjpWoszj7.js +33 -0
- package/assets/DTlvhtB9hvPdbdxu.js +60493 -0
- package/assets/DUUt1z6Y_cpxEpYY.js +24 -0
- package/assets/DUYoUViqY5U6uQX3.js +18 -0
- package/assets/DUzaW_op2vBTwOOI.js +18 -0
- package/assets/DWTpPijG5yeNFR0W.js +14 -0
- package/assets/DZRp3_yqPS6Lshho.js +32 -0
- package/assets/DZZ5R3msiytVNCqK.js +199 -0
- package/assets/Df2IAW-O7Gwl7V1l.js +7 -0
- package/assets/Dfd7kvLIFNqu-m-r.js +51 -0
- package/assets/Dg7xy50qHwqkYd4g.js +1135 -0
- package/assets/DihigEGfNCLR8UPN.js +8 -0
- package/assets/DkFK1iu4vqjLZMja.js +3011 -0
- package/assets/DkPXpv81Y5teMd-R.js +20 -0
- package/assets/Dl87mJoXDkCkzBi7.js +3917 -0
- package/assets/DnmjS548g7nY6EUS.js +1860 -0
- package/assets/DoIU_ohoCBwTZV9G.js +310 -0
- package/assets/Doqy_uDSQTCv6a6X.js +35 -0
- package/assets/DpGuA6U12gwyGHEM.js +369 -0
- package/assets/DuZ6DXQGttY3Lrhd.js +5220 -0
- package/assets/Du_JrYiYGJo5_B9H.js +12 -0
- package/assets/DvD_K4M5HgJ4uJ8L.js +7 -0
- package/assets/EeSGsbh_r4N-qs4w.js +96 -0
- package/assets/GnXTzeDYWWeEf5yV.js +55 -0
- package/assets/HKLw8b2xTdu5c1w5.js +63 -0
- package/assets/KpCEdfpsHnfkyqjx.js +37 -0
- package/assets/OU7gC5JF-lyDOOid.js +27 -0
- package/assets/PRSerWiAGYu8MVnd.js +304 -0
- package/assets/PmooYGqWqoTxPExF.js +449 -0
- package/assets/QXKcNTuZqOauSidr.js +58 -0
- package/assets/ThqyayHHaBxzfaAt.js +255 -0
- package/assets/TzsPqmpG77I4ewVt.js +173 -0
- package/assets/UX2ywz3gr7q-MlHr.js +105 -0
- package/assets/W-MzzQHZuRxr8adc.js +2346 -0
- package/assets/ZBYHyJs7CQgnnHfR.js +362 -0
- package/assets/ZTEO4JX22YIOkrJg.js +8338 -0
- package/assets/a7BoASyT8yQZY9hJ.js +22 -0
- package/assets/aqguaobnu61szXWM.js +22 -0
- package/assets/cdIvC9t9tYtVn4nc.js +405 -0
- package/assets/cv7k-VAIJtYeL9k4.js +23 -0
- package/assets/ddJqSu7gXUkXjGxZ.js +13 -0
- package/assets/eHAVGCUcMAfNjEGt.js +7 -0
- package/assets/hRLLK6I6m0uGKWo8.js +32 -0
- package/assets/mcFLzsOH35mvmd3C.js +145 -0
- package/assets/st-UQngeBG4hwKoy.js +47 -0
- package/assets/w8YWSMNTTn45ImnB.js +857 -0
- package/assets/yNiBIhsMP9BCWd67.js +28 -0
- package/assets/zu-72oKE_gCkrozc.js +540 -0
- package/index.js +8070 -0
- package/lib.js +7 -0
- package/licenses/dependencies.txt +1552 -0
- package/package.json +44 -3
- package/resources/contents.json +333 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/contents.json +646 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
- package/resources/locales/@sheetxl/formulas/contents.json +9 -0
- package/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
- package/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
- package/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
- package/resources/locales/@sheetxl/sdk/contents.json +19 -0
- package/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
- package/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
- package/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
- package/screenshot-page/assets/-cpi3yOZYn6GsYN4.js +9 -0
- package/screenshot-page/assets/-i_fTASJeu9NdNH_.js +7 -0
- package/screenshot-page/assets/04d8koPx6lzeMYRQ.js +39 -0
- package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +1 -0
- package/screenshot-page/assets/21oAESJyBGXeHegm.js +2 -0
- package/screenshot-page/assets/3Ls_kOvlQseMV8Q0.js +1 -0
- package/screenshot-page/assets/4qZpl2QCzneWdmJO.js +1 -0
- package/screenshot-page/assets/6IEV7KeOEbBdrthj.js +1 -0
- package/screenshot-page/assets/8QrkTrKHDnMBb7q4.js +1 -0
- package/screenshot-page/assets/9w0ECZmzGUyk3F_O.js +1 -0
- package/screenshot-page/assets/AjS2PipZDIH3BXB2.js +1 -0
- package/screenshot-page/assets/B-KIwD5F_5S-NsPg.js +1 -0
- package/screenshot-page/assets/B-sAzW5ROrhvMGM4.js +1 -0
- package/screenshot-page/assets/B0FQypGas6gbGT_U.js +1 -0
- package/screenshot-page/assets/B2IQMVqTZT1rUnib.js +1 -0
- package/screenshot-page/assets/B2g3jiFIQ4Qjh5gG.js +1 -0
- package/screenshot-page/assets/B4PbXdzBe9BsoZ0e.js +2 -0
- package/screenshot-page/assets/B5GO9v4p9L70Xb9i.js +1 -0
- package/screenshot-page/assets/B8y_eLNCGnXLEIaE.js +1 -0
- package/screenshot-page/assets/BCl5buf87xUgIfEB.js +2 -0
- package/screenshot-page/assets/BEuMvXYIa9A1JacY.js +1 -0
- package/screenshot-page/assets/BEwl-ucV9Jfr0RoC.js +1 -0
- package/screenshot-page/assets/BFaiQZKle44Rhyou.js +1 -0
- package/screenshot-page/assets/BHqg55S-4_OoAu3P.js +2 -0
- package/screenshot-page/assets/BNgLvS2bLOYKRguv.js +1 -0
- package/screenshot-page/assets/BQAN82ftWBiLJT3r.js +1 -0
- package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +1 -0
- package/screenshot-page/assets/BQnELVV0uR4T4ItQ.js +1 -0
- package/screenshot-page/assets/BRVZJ0OGJg9XJro6.js +1 -0
- package/screenshot-page/assets/BRqSWCr2mTVNFquQ.js +1 -0
- package/screenshot-page/assets/BTOQaSn9DDyJPUlX.js +1 -0
- package/screenshot-page/assets/BUGXf2DEBog16Slb.js +2 -0
- package/screenshot-page/assets/BUjI304IvdJnFXH3.js +1 -0
- package/screenshot-page/assets/BYRwTzX1q407lHUS.js +2 -0
- package/screenshot-page/assets/Baz0SC2AgGyxMX72.js +1 -0
- package/screenshot-page/assets/BbP9KThfrodyosvn.js +1 -0
- package/screenshot-page/assets/BcOdl17EeFSxnAiq.js +1 -0
- package/screenshot-page/assets/BclKeOKIOBjijhsu.js +1 -0
- package/screenshot-page/assets/Bf7xq8PyF4ohjMzP.js +2 -0
- package/screenshot-page/assets/BimyzECCZl-NESff.js +1 -0
- package/screenshot-page/assets/BkLH7JH3A93TXFJi.js +1 -0
- package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +3 -0
- package/screenshot-page/assets/Bor_tayB4yBfNOH5.js +2 -0
- package/screenshot-page/assets/BowRIybLgENunTOT.js +1 -0
- package/screenshot-page/assets/Bp7se0JaDGrzfSA_.js +1 -0
- package/screenshot-page/assets/Bwql3QifB2cv7Mqp.js +3 -0
- package/screenshot-page/assets/Bx61vmiWY0Xvx9qs.js +1 -0
- package/screenshot-page/assets/ByY3fmwyDPAyOLdo.js +1 -0
- package/screenshot-page/assets/Bz2U7weS0spa8Xbh.js +1 -0
- package/screenshot-page/assets/Bz5V1tmiy5gbT9ys.js +1 -0
- package/screenshot-page/assets/Bz9v1lgjvbu4QnOs.js +2 -0
- package/screenshot-page/assets/C1k_VrZqlpiUigCP.js +1 -0
- package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +1 -0
- package/screenshot-page/assets/C6oLDVnuCS9LGkkH.js +1 -0
- package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +1 -0
- package/screenshot-page/assets/C9SC-cEIt6gdhZRw.js +1 -0
- package/screenshot-page/assets/CE0MnsfMjqV2ICzk.js +57 -0
- package/screenshot-page/assets/CE8MCCIiwjOVwBBW.js +1 -0
- package/screenshot-page/assets/CFOaI8g7pJuPzsyk.js +1 -0
- package/screenshot-page/assets/CG3ynup87FmG-kkX.js +1 -0
- package/screenshot-page/assets/CHlWgOAlcRCjVuhg.js +1 -0
- package/screenshot-page/assets/CIged53b3hHKxa-o.js +1 -0
- package/screenshot-page/assets/CNQczIR5xcE5u5fT.js +1 -0
- package/screenshot-page/assets/CSUd8n1H0VBfREnk.js +2 -0
- package/screenshot-page/assets/CSlBTkRDITCC8JRB.js +1 -0
- package/screenshot-page/assets/CV2jr9hpQOG2OG0C.js +1 -0
- package/screenshot-page/assets/CXGgKVbVXjWzE0p6.js +1 -0
- package/screenshot-page/assets/CXKCmZ_TRyGaB9Ob.js +1 -0
- package/screenshot-page/assets/CXUO3vYip3JPSJ7A.js +1 -0
- package/screenshot-page/assets/CXwbGzavyvYgDbWU.js +1 -0
- package/screenshot-page/assets/CZf9s6otzzoaBlSs.js +1 -0
- package/screenshot-page/assets/CZvwQEeVhBilgKLG.js +1 -0
- package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +2 -0
- package/screenshot-page/assets/CbUDukmvDZmVfhJH.js +1 -0
- package/screenshot-page/assets/CbXtAM7H-Jg_J0dk.js +1 -0
- package/screenshot-page/assets/CctIRGMFmARVi2KT.js +1 -0
- package/screenshot-page/assets/Cenh1POxiGMxIQlv.js +1 -0
- package/screenshot-page/assets/ChSvXfVMLxZsP9zG.js +8 -0
- package/screenshot-page/assets/Ci5NtzhJLll1kxGf.js +10 -0
- package/screenshot-page/assets/CjngjJNheGaVRvZp.js +1 -0
- package/screenshot-page/assets/ClzdIJrFdInttVJA.js +1 -0
- package/screenshot-page/assets/CnPgk3HcIziOcskY.js +10 -0
- package/screenshot-page/assets/CnXLpFE_vFrJ5Jbf.js +1 -0
- package/screenshot-page/assets/CnZJ44ncMxZ4ivcB.js +586 -0
- package/screenshot-page/assets/CpbohdgEaEsVDi9J.js +1 -0
- package/screenshot-page/assets/CqR3hGrC956TkCMj.js +20 -0
- package/screenshot-page/assets/Cr1tQKUBVKOQl3QC.js +1 -0
- package/screenshot-page/assets/Cv8FG9PPBkkPw86e.js +1 -0
- package/screenshot-page/assets/CvL9XK3Ht1mP-rGz.js +4 -0
- package/screenshot-page/assets/CykecBozGGFl26KA.js +3940 -0
- package/screenshot-page/assets/CzTizxHhb-CI_ajE.js +1 -0
- package/screenshot-page/assets/CzzEl3lAkZopkwhC.js +1 -0
- package/screenshot-page/assets/D-LgRj0s-PAVqY-L.js +1 -0
- package/screenshot-page/assets/D-XR1MGhwn7Jqj60.js +1 -0
- package/screenshot-page/assets/D47ePD4x1lVazNdl.js +7 -0
- package/screenshot-page/assets/D6Jpaz2YkhOfzxDB.js +1 -0
- package/screenshot-page/assets/D9zCVZpnJBfNSNO2.js +1 -0
- package/screenshot-page/assets/DDQWM8rNYCYzKa9R.js +1 -0
- package/screenshot-page/assets/DDpAoGAPzo1c4vl5.js +27 -0
- package/screenshot-page/assets/DGXDfjkGZjMRAXPg.js +5 -0
- package/screenshot-page/assets/DHa5_U58lSwCnpmG.js +1 -0
- package/screenshot-page/assets/DKVB6ddRfDJatYid.js +1 -0
- package/screenshot-page/assets/DM9U7u7FQK0jcwh4.js +1 -0
- package/screenshot-page/assets/DNDaHmkQrQTaCHhV.js +1 -0
- package/screenshot-page/assets/DQ0kGd99-fXxuNYk.js +1 -0
- package/screenshot-page/assets/DQWHkaQeNXft9j8b.js +2 -0
- package/screenshot-page/assets/DRVfGdmVBvktrZ1t.js +1 -0
- package/screenshot-page/assets/DRrM-dY9nM7nDRpV.js +1 -0
- package/screenshot-page/assets/DT2x1gO3f2G5NfeB.js +1 -0
- package/screenshot-page/assets/DU3FmyUH0RjPIBd-.js +1 -0
- package/screenshot-page/assets/DUJzubL4qqOyizfu.js +1 -0
- package/screenshot-page/assets/DVueE--eOrZPrqrm.js +1 -0
- package/screenshot-page/assets/DWiI5I3RtoKvVT66.js +1 -0
- package/screenshot-page/assets/DYJSIlNxrNw8qk-w.js +1 -0
- package/screenshot-page/assets/DYRbCudWTaiE_Sjc.js +1 -0
- package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +1 -0
- package/screenshot-page/assets/D_H2dlsQ8PJ0r1WD.js +10 -0
- package/screenshot-page/assets/DaKZ4-Li_ULIIwnK.js +1 -0
- package/screenshot-page/assets/DadZXeaVK5UXSHIi.js +1 -0
- package/screenshot-page/assets/Db_VGqQo2G2JgXWW.js +1 -0
- package/screenshot-page/assets/DceNHPrRLok2At-X.js +1 -0
- package/screenshot-page/assets/DcrVJCyDwGKeil2U.js +1 -0
- package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +1 -0
- package/screenshot-page/assets/DmMZ4pd492HPw_3_.js +1 -0
- package/screenshot-page/assets/DmbuCapSSCYIa3yk.js +1 -0
- package/screenshot-page/assets/Dpepompn_NhpSncR.js +1 -0
- package/screenshot-page/assets/DqM1wwsmN1J4MXMm.js +1 -0
- package/screenshot-page/assets/DqYhS4mcQfOe96hU.js +1 -0
- package/screenshot-page/assets/DsL71n5SxCVjL6Ho.js +2 -0
- package/screenshot-page/assets/DyGpT6t96jrvgJes.js +1 -0
- package/screenshot-page/assets/DyLWQxXXTw5uwPVy.js +30 -0
- package/screenshot-page/assets/DyYVf8O1rhg3YmjW.js +1 -0
- package/screenshot-page/assets/DyxJBLjUkeDuu96F.js +1 -0
- package/screenshot-page/assets/DzZRUd0p22CBa27b.js +1 -0
- package/screenshot-page/assets/HclGiUj8dZXDFmoM.js +1 -0
- package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +2 -0
- package/screenshot-page/assets/IfF7Tv-nhz6Ikpn0.js +1 -0
- package/screenshot-page/assets/J73KTOmdZGNmnq-z.js +1 -0
- package/screenshot-page/assets/J_xJVgE7YlmeU-ZO.js +6 -0
- package/screenshot-page/assets/KoxRo2J_cwB_yOd5.js +2 -0
- package/screenshot-page/assets/LVtV_IPhPQroHRui.js +1 -0
- package/screenshot-page/assets/MNoPOsydrUv1UGU8.js +2 -0
- package/screenshot-page/assets/Miyn0clMq0rovRIo.js +1 -0
- package/screenshot-page/assets/Rm5Sf5E6t8bk_Y3r.js +1 -0
- package/screenshot-page/assets/b3AbgxQkoaCiBi15.js +1 -0
- package/screenshot-page/assets/fGlPAximvsxzPzGA.js +1 -0
- package/screenshot-page/assets/gG0AFZ45VxS_moMw.js +2 -0
- package/screenshot-page/assets/nHThFXCAZFOM_npq.js +1 -0
- package/screenshot-page/assets/pRykm05ElquZBk_a.js +1 -0
- package/screenshot-page/assets/qm3VY0bH7F7EgSdi.js +2 -0
- package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +1 -0
- package/screenshot-page/assets/w3bV7wggRayUYTd-.js +1 -0
- package/screenshot-page/assets/zFbb8ESzwR_bE7IQ.js +1 -0
- package/screenshot-page/assets/zHHZFbk5RXnrxbOc.js +42 -0
- package/screenshot-page/index.html +44 -0
- package/screenshot-page/resources/contents.json +333 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/contents.json +646 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas/contents.json +9 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/contents.json +19 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
- package/types/index.d.ts +1 -0
- package/types/lib.d.ts +2 -0
- package/types/scripting-api.json +10855 -0
- package/types/scripting-enums.json +1339 -0
- package/types/scripting.d.ts +49295 -0
- package/types/src/SessionRegistry.d.ts +630 -0
- package/types/src/index.d.ts +3 -0
- package/types/src/instances.d.ts +104 -0
- package/types/src/lib/Types.d.ts +17 -0
- package/types/src/lib/index.d.ts +2 -0
- package/types/src/lib/runReport.d.ts +158 -0
- package/types/src/lib.d.ts +2 -0
- package/types/src/prepareRun.d.ts +56 -0
- package/types/src/relay.d.ts +102 -0
- package/types/src/screenshot.d.ts +23 -0
- package/types/src/server.d.ts +37 -0
- package/types/src/taskStore.d.ts +28 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{n as e,t}from"./DKVB6ddRfDJatYid.js";import{G as n,Lt as r,Y as i}from"./Ca6nxdhEuLLty3d7.js";import{r as a}from"./CZf9s6otzzoaBlSs.js";var o={pct5:`0040000000040000`,pct10:`0004004000040040`,pct20:`0044001100440011`,pct25:`1144114411441144`,pct30:`8855225588552255`,pct40:`8A55AA55A855AA55`,pct50:`AA55AA55AA55AA55`,pct60:`AA77AADDAA77AADD`,pct70:`EEBBEEBBEEBBEEBB`,pct75:`FFBBFFEEFFBBFFEE`,pct80:`FF7FFFF7FF7FFFF7`,pct90:`BFFFFFFFFBFFFFFF`,dkHorz:`00FFFF0000FFFF00`,dkVert:`6666666666666666`,dkDnDiag:`CC663399CC663399`,dkUpDiag:`CC993366CC993366`,smCheck:`CCCC3333CCCC3333`,trellis:`CCFF33FFCCFF33FF`,ltHorz:`00FF000000FF0000`,ltVert:`4444444444444444`,ltDnDiag:`8844221188442211`,ltUpDiag:`4488112244881122`,smGrid:`44FF444444FF4444`,dotDmnd:`0040001100040011`,wdDnDiag:`C1E070381C0E0783`,wdUpDiag:`E0C183070E1C3870`,dashUpDiag:`1122440000000088`,dashDnDiag:`2211880000000044`,narVert:`AAAAAAAAAAAAAAAA`,narHorz:`00FF00FF00FF00FF`,dashVert:`0440404040040404`,dashHorz:`0078000000870000`,lgConfetti:`D8C606606C8D8118`,lgGrid:`0404040404FF0404`,horzBrick:`04FF404040FF0404`,lgCheck:`8778787878878787`,smConfetti:`1080080120044002`,zigZag:`C00C1221C00C1221`,solidDmnd:`F7E3C1800080C1E3`,diagBrick:`40C021120C081020`,openDmnd:`8041221408142241`,plaid:`AA8787878755AA55`,sphere:`7CBBC4C7C7BB4C7C`,weave:`2A44A0118A44A211`,dotGrid:`0004000400550004`,divot:`8000040804008040`,shingle:`8160100808182442`,wave:`0600C0290600C029`},s=e=>{let t=e?o[e]:void 0;if(!t)return null;let n=[];for(let e=0;e<8;e++){let r=parseInt(t.slice(2*e,2*e+2),16);n.push(Array.from({length:8},(e,t)=>!!(r&128>>t)))}return n},c=(e,t,n)=>{let r=``;return e.forEach((e,t)=>e.forEach((e,n)=>{e&&(r+=`M${n} ${t}h1v1h-1z`)})),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" shape-rendering="crispEdges"><rect width="8" height="8" fill="${n}"/><path d="${r}" fill="${t}"/></svg>`)}`},l=e=>Math.max(0,Math.min(1,e??0)),u=e=>{let t=(e=>{let t=e.stops??[],n=Math.max(1,t.length-1);return t.map((e,t)=>({offset:l(typeof e==`object`&&typeof e.offset==`number`?e.offset:t/n),color:typeof e==`string`?e:String(e.color)})).sort((e,t)=>e.offset-t.offset)})(e);if((e.gradientType??n.GradientType.Linear)===n.GradientType.Linear){let n=((e.angle??90)-90)%360*Math.PI/180,r=Math.cos(n),i=Math.sin(n),a=(Math.abs(r)+Math.abs(i))/2,o=e=>Math.round(1e9*e)/1e9;return{type:`linear`,x:o(.5-r*a),y:o(.5-i*a),x2:o(.5+r*a),y2:o(.5+i*a),colorStops:t,global:!1}}let r=e.focus,i=(l(r?.left)+l(r?.right??r?.left))/2,a=(l(r?.top)+l(r?.bottom??r?.top))/2;return{type:`radial`,x:i,y:a,r:Math.hypot(Math.max(i,1-i),Math.max(a,1-a)),colorStops:t,global:!1}},d=(e,t=`transparent`)=>{if(!e)return t;switch(e.type){case n.Type.Solid:return e.color??t;case n.Type.Gradient:return(e.stops?.length??0)>0?u(e):t;case n.Type.Pattern:{let t=String(e.foreground??`#000000`),n=String(e.background??`#FFFFFF`);return{image:c(s(e.patternType)??s(`pct50`),t,n),repeat:`repeat`,imageWidth:8,imageHeight:8}}default:return t}},f=e=>e?.width??0,p=e=>i.toDashLengths(e.dash)?.map(t=>t*f(e)),m=e=>e.font?.family??`Calibri`,h=e=>(e.weight??400)>=600,g=e=>e.style===`italic`,_=e=>e.size??0,v=e=>typeof e.color==`string`?e.color:d(e.color,`#000000`),y=e=>({fontFamily:m(e),fontSize:_(e),color:v(e),fontWeight:h(e)?`bold`:`normal`,fontStyle:g(e)?`italic`:`normal`}),b=(e,t=_(e))=>{return`${g(e)?`italic `:``}${h(e)?`bold `:``}${t}px ${n=m(e),n.includes(` `)?`'${n}'`:n}`;var n},x=e=>e?{stroke:d(e.fill,`none`),lineWidth:f(e),lineCap:e.lineCap??`butt`,lineDash:p(e)}:{stroke:`none`,lineWidth:0},S=e=>e?{color:d(e.fill),width:f(e),cap:e.lineCap??`butt`,join:`round`,type:p(e)??`solid`}:{width:0},C={x:[[0,0,1,1],[1,0,0,1]],star:[[0,0,1,1],[1,0,0,1],[.5,0,.5,1]],plus:[[.5,0,.5,1],[0,.5,1,.5]]},w=e=>{let t=e.size,n=f(e.stroke),r=C[e.symbol];if(r)return{symbol:`path://`+r.map(([e,t,n,r])=>`M${e} ${t}L${n} ${r}`).join(``),symbolSize:t};switch(e.symbol){case`circle`:return{symbol:`circle`,symbolSize:t-n};case`square`:return{symbol:`rect`,symbolSize:t-n};case`dash`:return{symbol:`rect`,symbolSize:[t-n,t/5-n]};case`dot`:return{symbol:`rect`,symbolSize:[t/2,t/5-n],symbolOffset:[t/4,0]};case`triangle`:return{symbol:`triangle`,symbolSize:t};default:return{symbol:`diamond`,symbolSize:t}}},T=e=>e&&C[e.symbol]&&e.fill?e.fill:null,E=(e,t,n,r)=>{let i=e.size,a=i/2,o={fill:d(e.fill),...x(e.stroke)},s=C[e.symbol];if(s){let o=T(e);return[...o?[{type:`rect`,silent:!0,z:r,shape:{x:t-a,y:n-a,width:i,height:i},style:{fill:d(o)}}]:[],...s.map(([o,s,c,l])=>({type:`line`,silent:!0,z:r,shape:{x1:t-a+o*i,y1:n-a+s*i,x2:t-a+c*i,y2:n-a+l*i},style:x(e.stroke)}))]}let c=f(e.stroke),l=i-c,u=i/5-c;switch(e.symbol){case`circle`:return[{type:`circle`,silent:!0,z:r,shape:{cx:t,cy:n,r:l/2},style:o}];case`square`:return[{type:`rect`,silent:!0,z:r,shape:{x:t-l/2,y:n-l/2,width:l,height:l},style:o}];case`dash`:return[{type:`rect`,silent:!0,z:r,shape:{x:t-l/2,y:n-u/2,width:l,height:u},style:o}];case`dot`:return[{type:`rect`,silent:!0,z:r,shape:{x:t,y:n-u/2,width:a,height:u},style:o}];case`triangle`:return[{type:`polygon`,silent:!0,z:r,shape:{points:[[t,n-a],[t+a,n+a],[t-a,n+a]]},style:o}];default:return[{type:`polygon`,silent:!0,z:r,shape:{points:[[t,n-a],[t+a,n],[t,n+a],[t-a,n]]},style:o}]}},D=(e,t,n,r)=>{let{rect:i,font:a}=e,o=[];return(t||n)&&o.push({type:`rect`,silent:!0,z:59,shape:{x:i.x,y:i.y,width:i.width,height:i.height},style:{fill:d(t),...x(n)}}),o.push({type:`text`,silent:!0,z:60,x:i.x+i.width/2,y:i.y+i.height/2,rotation:(e.rotation??0)*Math.PI/180,style:{x:0,y:0,text:e.text,fill:v(a),font:b(a),align:`center`,verticalAlign:`middle`,...r?{lineHeight:r}:{}}}),o},O=e=>(e?.segments??[]).map(t=>({type:`line`,silent:!0,z:3,shape:{x1:t.from.x,y1:t.from.y,x2:t.to.x,y2:t.to.y},style:{fill:`none`,...x(e.stroke)}})),k=e=>(e?.bars??[]).map(t=>{let n=t.up?e.up:e.down;return{type:`rect`,silent:!0,z:3,shape:{x:t.rect.x,y:t.rect.y,width:t.rect.width,height:t.rect.height},style:{fill:d(n.fill,`none`),...x(n.stroke)}}}),A={types:[`bar`],horizontal:e=>e.type===`bar`&&e.barDir===`bar`,series:(e,t)=>e.type===`bar`?((e,t)=>{let n=t.cartesian(e),r=e.grouping===`clustered`?void 0:`bar:${e.axisIds.join(`:`)}`,i=e.series.map((i,a)=>({...n.base(i),type:`bar`,data:n.placed(i,i.plotted.map((e,t)=>e===i.values[t]?e:{value:e,source:i.values[t]})),...r?{stack:r,stackStrategy:`samesign`}:{},clip:!0,barWidth:e.barWidth,barMinWidth:1e-6,barGap:-e.overlap+`%`,z:2+a/e.series.length,itemStyle:{color:t.paint(i.fill),borderColor:t.paint(i.stroke?.fill),borderWidth:t.width(i.stroke)}}));return e.barDir===`bar`==!!t.axisOf(e.axisIds[0])?.reversed||r?i:i.reverse()})(e,t):[],graphic:(e,t)=>e.type===`bar`?t.lines(e.seriesLines):[]},j={types:[`waterfall`],graphic:(e,t)=>e.type===`waterfall`?((e,t)=>{let n=[];for(let r of e.series)for(let e of r.bars??[])e&&n.push({type:`rect`,silent:!0,z:2,shape:{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height},style:{fill:t.paint(e.fill,`none`),...t.stroke(e.stroke)}});return n.push(...t.lines(e.connectorLines)),n})(e,t):[]},ee={types:[`sunburst`],grid:!1,graphic:(e,t)=>e.type===`sunburst`?((e,t)=>{let n=[],r=[],{x:i,y:a}=e.center;for(let o of e.series)for(let e of o.segments??[])e.endAngle>e.startAngle&&(n.push({type:`sector`,silent:!0,z:2,shape:{cx:i,cy:a,r0:e.innerRadius,r:e.outerRadius,startAngle:(e.startAngle-90)*Math.PI/180,endAngle:(e.endAngle-90)*Math.PI/180,clockwise:!0},style:{fill:t.paint(e.fill,`none`),...t.stroke(e.stroke)}}),e.label&&r.push(...t.text(e.label,null,null)));return[...n,...r]})(e,t):[]},te={types:[`histogram`],graphic:(e,t)=>e.type===`histogram`?((e,t)=>{let n=[];for(let r of e.series){for(let e of r.bars)e&&n.push({type:`rect`,silent:!0,z:2,shape:{x:e.x,y:e.y,width:e.width,height:e.height},style:{fill:t.paint(r.fill,`none`),...t.stroke(r.stroke)}});if(r.line){let e=r.line.points.filter(e=>!!e);e.length>1&&n.push({type:`polyline`,silent:!0,z:3,shape:{points:e.map(e=>[e.x,e.y])},style:{fill:`none`,...t.stroke(r.stroke)}})}}return n})(e,t):[]},ne={types:[`boxWhisker`],graphic:(e,t)=>e.type===`boxWhisker`?((e,t)=>{let n=[],r=(e,n,r)=>({type:`line`,silent:!0,z:r,shape:{x1:e.from.x,y1:e.from.y,x2:e.to.x,y2:e.to.y},style:{fill:`none`,...t.stroke(n)}});for(let i of e.series){for(let e of i.boxes){if(!e)continue;let i=t.stroke(e.stroke);n.push({type:`rect`,silent:!0,z:2,shape:{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height},style:{fill:t.paint(e.fill,`none`),...i}}),n.push(r(e.median,e.stroke,3));for(let t of[e.whiskerHigh,e.whiskerLow])t&&n.push(r(t.line,e.stroke,3),r(t.cap,e.stroke,3));if(e.mean){let{center:t,size:i}=e.mean,a=i/2;n.push(r({from:{x:t.x-a,y:t.y-a},to:{x:t.x+a,y:t.y+a}},e.stroke,4),r({from:{x:t.x-a,y:t.y+a},to:{x:t.x+a,y:t.y-a}},e.stroke,4))}for(let r of e.outliers)n.push({type:`circle`,silent:!0,z:4,shape:{cx:r.center.x,cy:r.center.y,r:r.size/2},style:{fill:t.paint(e.fill,`none`),...i}});for(let r of e.innerPoints)n.push({type:`circle`,silent:!0,z:4,shape:{cx:r.center.x,cy:r.center.y,r:r.size/2},style:{fill:t.color(`#FFFFFF`),...i}})}n.push(...t.lines(i.meanLine))}return n})(e,t):[]},re={types:[`treemap`],grid:!1,graphic:(e,t)=>e.type===`treemap`?((e,t)=>{let n=[],r=[];for(let i of e.series){for(let e of i.tiles)e.rect.width>0&&e.rect.height>0&&(n.push({type:`rect`,silent:!0,z:2,shape:{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height},style:{fill:t.paint(e.fill,`none`),...t.stroke(e.stroke)}}),e.label&&r.push(...t.text(e.label,null,null)));for(let e of i.parents){if(e.banner){let{rect:r}=e.banner;n.push({type:`rect`,silent:!0,z:3,shape:{x:r.x,y:r.y,width:r.width,height:r.height},style:{fill:t.paint(e.banner.fill,`none`),...t.stroke(e.banner.stroke)}})}r.push(...t.text(e.label,null,null))}}return[...n,...r]})(e,t):[]},ie={types:[`funnel`],grid:!1,graphic:(e,t)=>e.type===`funnel`?((e,t)=>{let n=[];e.axisLine&&n.push({type:`line`,silent:!0,z:1,shape:{x1:e.axisLine.from.x,y1:e.axisLine.from.y,x2:e.axisLine.to.x,y2:e.axisLine.to.y},style:{fill:`none`,...t.stroke(e.axisStroke)}});for(let r of e.categoryLabels)r&&n.push(...t.text(r,null,null));for(let r of e.series)for(let e of r.bars)e&&n.push({type:`rect`,silent:!0,z:2,shape:{x:e.x,y:e.y,width:e.width,height:e.height},style:{fill:t.paint(r.fill,`none`),...t.stroke(r.stroke)}});return n})(e,t):[]},ae=(e,t,n)=>{let r=t.x+t.width/2,i=t.y+t.height/2,a=[];return e.stroke&&a.push({type:`line`,silent:!0,z:50,shape:{x1:t.x,y1:i,x2:t.x+t.width,y2:i},style:n.stroke(e.stroke)}),e.marker&&a.push(...n.marker.graphic(e.marker,r,i,51)),a},oe={types:[`line`],series:(e,t)=>e.type===`line`?((e,t)=>{let n=t.cartesian(e),r=e.grouping===`standard`?void 0:`line:${e.axisIds.join(`:`)}`;return e.series.flatMap(i=>t.withMarkerFills(i,{...n.base(i),...t.lineSeries(i,!1,e.spanBlanks),...r?{data:n.placed(i,i.plotted.map((e,t)=>e===i.values[t]?e:{value:e,source:i.values[t]})),stack:r}:{}}))})(e,t):[],graphic:(e,t)=>e.type===`line`?[...t.upDownBars(e.upDownBars),...t.lines(e.hiLowLines),...t.lines(e.dropLines)]:[],legendKey:(e,t,n,r,i)=>ae(t,r,i)},se={types:[`area`],series:(e,t)=>e.type===`area`?((e,t)=>{let n=t.cartesian(e),r=e.grouping===`standard`?void 0:`area:${e.axisIds.join(`:`)}`;return e.series.map(i=>({...n.base(i),...t.lineSeries(i,!1),data:n.placed(i,i.plotted.map((e,t)=>e===i.values[t]?e:{value:e,source:i.values[t]})),...r?{stack:r}:{},areaStyle:{color:t.paint(i.fill),opacity:1,origin:e.baseValue},z:1}))})(e,t):[],graphic:(e,t)=>e.type===`area`?t.lines(e.dropLines):[]},M={types:[`scatter`],series:(e,t)=>e.type===`scatter`?((e,t)=>{let n=t.cartesian(e);return e.series.flatMap(r=>t.withMarkerFills(r,{...n.base(r),...t.lineSeries(r,r.smooth,e.spanBlanks),data:r.values.map((e,t)=>[r.xValues[t],e])}))})(e,t):[],legendKey:(e,t,n,r,i)=>ae(t,r,i)},ce={types:[`bubble`],series:(e,t)=>e.type===`bubble`?((e,t)=>{let n=t.cartesian(e);return e.series.map(r=>({...n.base(r),type:`line`,showSymbol:!0,symbol:`circle`,lineStyle:{width:0,opacity:0},data:r.values.flatMap((n,i)=>{if(r.radii[i]===null)return[];let a=r.negative[i]?e.negative:{fill:r.fill,stroke:r.stroke};return[{value:[r.xValues[i],n],symbolSize:2*r.radii[i]-t.width(a.stroke),...r.negative[i]?{itemStyle:{color:t.paint(a.fill),borderColor:t.paint(a.stroke?.fill),borderWidth:t.width(a.stroke)}}:{}}]}),itemStyle:{color:t.paint(r.fill),borderColor:t.paint(r.stroke?.fill),borderWidth:t.width(r.stroke)},z:2}))})(e,t):[]},le=(e,t,n,r,i,a,o)=>{if(a.length===0)return[];let s=e=>e.center.x!==n.x||e.center.y!==n.y,c=(e,n,s)=>({type:`pie`,id:e,name:t,center:[n.x,n.y],radius:[r,i],startAngle:90-a[0].slice.startAngle,clockwise:!0,minAngle:0,stillShowZeroSum:!0,avoidLabelOverlap:!1,selectedMode:!1,label:{show:!1},labelLine:{show:!1},emphasis:{disabled:!0},animation:!1,data:a.map(e=>(({slice:e,name:t},n)=>({name:t,value:e.endAngle-e.startAngle,itemStyle:n?{color:o.paint(e.fill),borderColor:o.paint(e.stroke?.fill),borderWidth:o.width(e.stroke)}:{color:`transparent`,borderWidth:0},...n?{}:{tooltip:{show:!1}}}))(e,s(e.slice)))}),l=[c(e,n,e=>!s(e))];return a.forEach(({slice:t},n)=>{s(t)&&l.push(c(`${e}:${n}`,t.center,e=>e===t))}),l},ue=(e,t,n,r)=>[{type:`rect`,silent:!0,z:50,shape:{x:n.x,y:n.y,width:n.width,height:n.height},style:{fill:r.paint(e),...r.stroke(t??null)}}],de={types:[`pie`],series:(e,t)=>e.type===`pie`?((e,t)=>e.series.flatMap(n=>{let r=n.slices.flatMap((e,t)=>e?[{slice:e,name:String(t+1)}]:[]);return le(n.id,n.name,e.center,n.innerRadius,n.outerRadius,r,t)}))(e,t):[],legendKey:(e,t,n,r,i)=>{let a=e.pointIndex===void 0?void 0:t.slices[e.pointIndex];return a?ue(a.fill,a.stroke,r,i):void 0}},fe=(e,t)=>e.series.flatMap(e=>(e.bars??[]).flatMap(e=>e?[{type:`rect`,silent:!0,z:2,shape:{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height},style:{fill:t.paint(e.fill,`none`),...t.stroke(e.stroke)}}]:[])),N={types:[`ofPie`],series:(e,t)=>e.type===`ofPie`?((e,t)=>e.series.flatMap(n=>{let r=n.slices.flatMap((e,t)=>e?[{slice:e,name:String(t+1),k:t}]:[]),i=r.filter(({k:e})=>!n.second[e]);n.other&&i.unshift({slice:n.other,name:`Other`,k:-1});let a=le(n.id,n.name,e.center,0,e.radius,i,t);return e.second&&a.push(...le(`${n.id}:second`,n.name,e.second.center,0,e.second.radius,r.filter(({k:e})=>n.second[e]),t)),a}))(e,t):[],graphic:(e,t)=>e.type===`ofPie`?[...fe(e,t),...t.lines(e.seriesLines)]:[],legendKey:(e,t,n,r,i)=>{if(n.type!==`ofPie`||e.pointIndex===void 0)return;let a=n.series[0],o=a?.slices[e.pointIndex]??a?.bars?.[e.pointIndex];return o?ue(o.fill,o.stroke,r,i):void 0}},pe={types:[`radar`],grid:!1,graphic:(e,t)=>e.type===`radar`?((e,t)=>{let n=[];for(let r of e.rings)n.push({type:`polygon`,silent:!0,z:1,shape:{points:r.map(e=>[e.x,e.y])},style:{fill:`none`,...t.stroke(e.ringStroke)}});for(let r of e.spokes)n.push({type:`line`,silent:!0,z:1,shape:{x1:r.from.x,y1:r.from.y,x2:r.to.x,y2:r.to.y},style:t.stroke(e.spokeStroke)});e.series.forEach((r,i)=>{let a=2+i/Math.max(1,e.series.length),o=[[]];r.points.forEach(e=>{e?o[o.length-1].push(e):o.push([])}),e.filled?n.push({type:`polygon`,silent:!0,z:a,shape:{points:r.points.filter(e=>!!e).map(e=>[e.x,e.y])},style:{fill:t.paint(r.fill,`none`),...t.stroke(r.stroke)}}):r.stroke&&(r.points.length>1&&r.points.every(e=>!!e)?n.push({type:`polygon`,silent:!0,z:a,shape:{points:r.points.map(e=>[e.x,e.y])},style:{fill:`none`,...t.stroke(r.stroke),lineJoin:`round`}}):o.filter(e=>e.length>1).forEach(e=>n.push({type:`polyline`,silent:!0,z:a,shape:{points:e.map(e=>[e.x,e.y])},style:{fill:`none`,...t.stroke(r.stroke),lineJoin:`round`}}))),r.marker&&r.points.forEach(e=>{e&&n.push(...t.marker.graphic(r.marker,e.x,e.y,a+.5))})});for(let r of e.categoryLabels)r&&n.push(...t.text(r,null,null));for(let r of e.valueLabels)n.push(...t.text(r,null,null));return n})(e,t):[],legendKey:(e,t,n,r,i)=>n.type!==`radar`||n.filled?void 0:ae(t,r,i)},me={types:[`surface`],grid:!1,graphic:(e,t)=>e.type===`surface`?((e,t)=>{let n=[];e.bands.forEach(r=>{for(let i of r.polygons)n.push({type:`polygon`,silent:!0,z:2,shape:{points:i.map(e=>[e.x,e.y])},style:e.wireframe?{fill:`none`,...t.stroke(r.stroke)}:{fill:t.paint(r.fill,`none`),stroke:t.paint(r.fill,`none`),lineWidth:.5}})});for(let r of[...e.categoryLabels,...e.seriesLabels])n.push(...t.text(r,null,null));return n})(e,t):[],legendKey:(e,t,n,r,i)=>{let a=n.type===`surface`&&e.bandIndex!==void 0?n.bands[e.bandIndex]:void 0;return a?ue(a.fill,a.stroke,r,i):void 0}},he={types:[`regionMap`],grid:!1,graphic:e=>`label`in e&&e.label?D(e.label,null,null):[]};function ge(e){for(let t of[A,j,ee,te,ne,re,ie,oe,se,M,ce,de,N,pe,me,he])e(t)}var _e=new Map,ve=e=>{let t=_e.get(e);if(t===void 0){try{t=a.toConcreteCSS(new r(e),!0)}catch{t=e}_e.set(e,t)}return t},ye=new Set([`color`,`foreground`,`background`]),be=(e,t)=>{if(t===`data`)return e;if(typeof e==`string`)return t&&ye.has(t)?ve(e):e;if(Array.isArray(e))return e.map(e=>t===`stops`&&typeof e==`string`?ve(e):be(e));if(e&&typeof e==`object`){let t={};for(let[n,r]of Object.entries(e))t[n]=be(r,n);return t}return e};function xe(e,n){t.registerBuiltIns(ge);let r=n?.darkMode??!1,i=n?.background??`#FFFFFF`;e=((e,t)=>t?be(e):e)(e,r);let a=n?.interactive??!0,o=n?.legend??`graphic`,s=e=>t.of(e),c=e.axes.filter(e=>e.position===`bottom`||e.position===`top`),l=e.axes.filter(e=>e.position===`left`||e.position===`right`),u=we(e.groups,s),p=Te(e,e=>{let t=c.findIndex(t=>t.id===e);if(t>=0)return{dim:`x`,index:t};let n=l.findIndex(t=>t.id===e);if(n>=0)return{dim:`y`,index:n};throw Error(`chart layout names axis ${e}, which it does not have`)},r),h=[],g=e.chartArea.cornerRadius,_=e.chartArea.fill,S=_===void 0?i===`transparent`?null:{type:`solid`,color:r?ve(i):i}:_,C=!!S&&(g>0||S.type!==`solid`);if(C&&h.push({type:`rect`,silent:!0,z:-100,shape:{x:0,y:0,width:e.width,height:e.height,r:g},style:{fill:d(S,`none`)}}),e.chartArea.border){let t=f(e.chartArea.border);h.push({type:`rect`,silent:!0,z:100,shape:{x:t/2,y:t/2,width:e.width-t,height:e.height-t,r:Math.max(0,g-t/2)},style:{fill:`none`,...x(e.chartArea.border)}})}e.legend&&o===`graphic`&&h.push(...function(e,n,r){let i=e=>{for(let t of n){let n=t.series.find(t=>t.id===e);if(n)return{series:n,group:t}}},a=[];for(let n of e.entries){let o=i(n.seriesId),s=n.keyRect,c=n.trendlineIndex===void 0?void 0:o?.series.trendlines?.[n.trendlineIndex];if(c){let e=s.y+s.height/2;a.push({type:`line`,silent:!0,z:50,shape:{x1:s.x,y1:e,x2:s.x+s.width,y2:e},style:x(c.stroke)})}else{let e=o&&!n.swatch?t.of(o.group)?.legendKey?.(n,o.series,o.group,s,r):void 0;if(e)a.push(...e);else{let e=n.swatch??{fill:o?.series.fill??null,stroke:o?.series.stroke??null};a.push({type:`rect`,silent:!0,z:50,shape:{x:s.x,y:s.y,width:s.width,height:s.height},style:{fill:d(e.fill),...x(e.stroke)}})}}let l=s.x+s.width+(s.x-n.rect.x);a.push({type:`text`,silent:!0,z:50,style:{x:l,y:n.rect.y+n.rect.height/2,text:n.text,fill:v(e.font),font:b(e.font),verticalAlign:`middle`,align:`left`}})}return a}(e.legend,e.groups,p));for(let t of e.axes)h.push(...Ne(t)),h.push(...Me(t,e.plotArea.inner)),t.title&&!t.deleted&&h.push(...D(t.title,null,null)),t.unitLabel&&!t.deleted&&h.push(...D(t.unitLabel,null,null)),t.kind!==`category`||t.deleted||h.push(...ke(t)),t.labelVertical&&h.push(...je(t,e.plotArea.inner));for(let t of e.groups){h.push(...s(t)?.graphic?.(t,p)??[]);for(let e of t.series){for(let t of e.labels??[])t&&h.push(...D(t,t.fill,t.border));for(let t of e.trendlines??[])h.push(...Fe(t));for(let t of e.errorBars??[])h.push(...Pe(t))}}return{animation:!1,backgroundColor:C?`transparent`:d(S),textStyle:{fontFamily:m(e.axes.find(e=>e.labelFont)?.labelFont??{})},title:e.title?{show:!0,text:e.title.text,left:e.title.rect.x,top:e.title.rect.y,padding:[e.title.insets.top,e.title.insets.right,e.title.insets.bottom,e.title.insets.left],triggerEvent:!0,textStyle:{...y(e.title.font),lineHeight:e.title.rect.height-e.title.insets.top-e.title.insets.bottom}}:{show:!1},grid:[{id:`plot`,left:e.plotArea.inner.x,top:e.plotArea.inner.y,width:e.plotArea.inner.width,height:e.plotArea.inner.height,containLabel:!1,outerBoundsMode:`none`,show:!(!e.plotArea.fill&&!e.plotArea.border),backgroundColor:d(e.plotArea.fill),borderColor:d(e.plotArea.border?.fill),borderWidth:f(e.plotArea.border)},...e.axes.some(e=>u(e.id)===1)?[{id:`plot:vertical`,left:e.plotArea.inner.x,top:e.plotArea.inner.y,width:e.plotArea.inner.width,height:e.plotArea.inner.height,containLabel:!1,outerBoundsMode:`none`,show:!1}]:[]],xAxis:c.map(t=>Ee(t,e.plotArea.inner,u(t.id))),yAxis:l.map(t=>Ee(t,e.plotArea.inner,u(t.id))),series:e.groups.flatMap(e=>s(e)?.series?.(e,p)??[]),legend:e.legend&&o===`native`?Oe(e.legend):{show:!1},graphic:h,tooltip:a?{show:!0,trigger:`item`,formatter:e=>{let t=e.data?.source,n=t===void 0?Array.isArray(e.value)?e.value[1]:e.value:t;return`Series "${e.seriesName}" Point "${e.name}" Value: ${n}`}}:{show:!1}}}var Se=e=>t=>{let n=e.ticks.find(n=>Math.abs(n.value-t)<=(t=>e.logBase?1e-9*Math.abs(t):1e-6*e.majorUnit)(n.value));return n?n.label:``},Ce=(e,t)=>{let n=e.labelsAt??e.lineAt,r;switch(e.position){case`bottom`:r=n-(t.y+t.height);break;case`top`:r=t.y-n;break;case`left`:r=t.x-n;break;default:r=n-(t.x+t.width)}return Math.abs(r)<1e-6?0:r},we=(e,t)=>{let n=e=>t(e)?.horizontal?.(e)??!1,r=e.filter(e=>t(e)?.grid??(`axisIds`in e&&e.axisIds.length===2)),i=r.some(n)&&r.some(e=>!n(e)),a=new Set(i?r.filter(e=>!n(e)).flatMap(e=>e.axisIds):[]);return e=>+!!a.has(e)},Te=(e,t,n)=>{let r=t=>e.axes.find(e=>e.id===t);return{layout:e,darkMode:n,color:e=>n?ve(e):e,axisOf:r,cartesian:e=>{let n=t(e.axisIds[0]),i=t(e.axisIds[1]),a=n.dim===`x`?n.index:i.index,o=n.dim===`y`?n.index:i.index,s=r(e.axisIds[1]),c=s?.kind===`value`&&!!s.logBase,l=(e,t)=>{c&&(t=t.map(e=>{let t=typeof e==`object`&&e?e.value:e;return typeof t!=`number`||t>0?e:null}));let r=e.slots;if(!r)return t;let i=(e,t)=>n.dim===`x`?[e,t]:[t,e];return t.map((e,t)=>{let n=r[t];return n==null?null:typeof e==`object`&&e?{...e,value:i(n,e.value)}:i(n,e)}).filter(e=>e!==null)};return{xAxisIndex:a,yAxisIndex:o,isLog:c,placed:l,base:e=>({id:e.id,name:e.name,xAxisIndex:a,yAxisIndex:o,data:l(e,e.values),emphasis:{disabled:!0},label:{show:!1},animation:!1})}},paint:d,stroke:x,line:S,width:f,lineSeries:(e,t,n=!1)=>({type:`line`,smooth:t,connectNulls:n,showSymbol:!!e.marker,...e.marker?w(e.marker):{symbol:`none`,symbolSize:0},lineStyle:S(e.stroke),itemStyle:{color:e.marker&&!C[e.marker.symbol]?d(e.marker.fill):e.marker?`transparent`:d(e.stroke?.fill),borderColor:d(e.marker?.stroke?.fill),borderWidth:f(e.marker?.stroke)}}),withMarkerFills:(e,t)=>{let n=T(e.marker);return n?[{...t,id:`${e.id}:fill`,name:`${e.name}:fill`,silent:!0,tooltip:{show:!1},symbol:`rect`,symbolSize:e.marker.size,lineStyle:{width:0,opacity:0},itemStyle:{color:d(n),borderWidth:0},z:(t.z??2)-.5},t]:[t]},marker:{symbol:w,fill:T,graphic:E},text:D,lines:O,upDownBars:k}};function Ee(e,t,n){let r={id:String(e.id),gridIndex:n,position:e.position,offset:Ce(e,t),show:!e.deleted,inverse:e.reversed,axisLine:{show:!!e.line&&e.labelsAt===void 0,onZero:!1,lineStyle:S(e.line)},axisTick:{show:e.tickMark!==`none`&&!!e.line,inside:e.tickMark===`in`,length:e.tickLength,lineStyle:S(e.line)},splitLine:{show:!1},z:3,axisLabel:{show:!!e.labelFont&&!e.labelVertical,margin:e.labelMargin,...e.labelFont?y(e.labelFont):{},interval:0,hideOverlap:!1,showMinLabel:!0,showMaxLabel:!0},triggerEvent:!0};return e.kind===`category`?{...r,type:`category`,data:e.categories,boundaryGap:e.crossBetween===`between`,axisTick:{...r.axisTick,...e.dividers?{show:!1}:{},alignWithLabel:e.crossBetween===`midCat`},axisLabel:{...r.axisLabel,...De(e),formatter:(t,n)=>e.labels[n]??``,lineHeight:e.labelLineHeight,overflow:`none`}}:e.logBase?{...r,type:`log`,logBase:e.logBase,min:e.min,max:e.max,interval:Math.round(Math.log(e.majorUnit)/Math.log(e.logBase)),axisLabel:{...r.axisLabel,formatter:Se(e)}}:{...r,type:`value`,min:e.min,max:e.max,interval:e.majorUnit,alignTicks:!1,axisLabel:{...r.axisLabel,formatter:Se(e)}}}function De(e){let t=e.labelRotation;if(e.position===`left`||e.position===`right`)return{rotate:t,align:e.position===`left`?`right`:`left`,verticalAlign:`middle`};let n=e.position===`bottom`;return t===0?{rotate:t,align:`center`,verticalAlign:n?`top`:`bottom`}:{rotate:t,align:t>0===n?`right`:`left`,verticalAlign:n?`top`:`bottom`}}function Oe(e){let t=e.entries[0],n=e.entries.length>1?e.entries[1].rect.x-(t.rect.x+t.rect.width):0;return{show:!0,left:e.rect.x,top:e.rect.y,width:e.rect.width,height:e.rect.height,orient:e.orient,padding:0,itemGap:Math.max(0,n),itemWidth:t?.keyRect.width??10,itemHeight:t?.keyRect.height??10,align:`left`,selectedMode:!1,textStyle:y(e.font),data:e.entries.map(e=>({name:e.text}))}}function ke(e){let t=[];for(let n of e.levels??[])for(let e of n.labels)t.push(...D(e,null,null,e.lineHeight));if(e.line)for(let{from:n,to:r}of e.dividers??[])t.push({type:`line`,silent:!0,z:50,shape:{x1:n.x,y1:n.y,x2:r.x,y2:r.y},style:x(e.line)});return t}var Ae=.95;function je(e,t){let n=e.labelFont;if(!n||e.deleted)return[];let r=e.position===`bottom`||e.position===`top`,i=e.labelsAt??e.lineAt,a=e.labelLineHeight??_(n),o=r?t.x:t.y+t.height,s=r?t.width:t.height,c=e=>r?o+e*s:o-e*s,l=[];if(e.kind===`category`){let t=e.categories.length;e.labels.forEach((n,r)=>{if(n===null)return;let i=e.reversed?t-1-r:r,a=e.crossBetween===`between`?(i+.5)/t:t===1?.5:i/(t-1);l.push([n,c(a)])})}else{let[t,n]=e.logBase?[Math.log(e.min),Math.log(e.max)]:[e.min,e.max];for(let r of e.ticks){if(!r.label)continue;let i=e.logBase?Math.log(r.value):r.value,a=n===t?.5:(i-t)/(n-t);l.push([r.label,c(e.reversed?1-a:a)])}}let u={fill:v(n),font:b(n),lineHeight:a},d=[];for(let[t,a]of l){if(!r){d.push({type:`text`,silent:!0,z:3,x:e.position===`left`?i-e.labelMargin:i+e.labelMargin,y:a,style:{...u,text:t,align:e.position===`left`?`right`:`left`,verticalAlign:`middle`}});continue}let o=t.split(` `),s=Ae*_(n);o.forEach((t,n)=>d.push({type:`text`,silent:!0,z:3,x:a+(n-(o.length-1)/2)*s,y:e.position===`bottom`?i+e.labelMargin:i-e.labelMargin,style:{...u,text:t,align:`center`,verticalAlign:e.position===`bottom`?`top`:`bottom`}}))}return d}function Me(e,t){return e.labelsAt===void 0||!e.line||e.deleted?[]:[{type:`line`,silent:!0,z:3,shape:e.position===`bottom`||e.position===`top`?{x1:t.x,y1:e.lineAt,x2:t.x+t.width,y2:e.lineAt}:{x1:e.lineAt,y1:t.y,x2:e.lineAt,y2:t.y+t.height},style:x(e.line)}]}function Ne(e){return e.gridlines&&e.majorGridlines?e.gridlines.map(t=>({type:`line`,silent:!0,z:0,shape:{x1:t.from.x,y1:t.from.y,x2:t.to.x,y2:t.to.y},style:{fill:`none`,...x(e.majorGridlines)}})):[]}function Pe(e){return e.paths.map(t=>({type:`polyline`,silent:!0,z:29,shape:{points:t.map(e=>[e.x,e.y])},style:{fill:`none`,...x(e.stroke)}}))}function Fe(e){let t=e.paths.map(t=>({type:`polyline`,silent:!0,z:30,shape:{points:t.map(e=>[e.x,e.y])},style:{fill:`none`,...x(e.stroke),lineJoin:`round`}})),n=e.label;if(!n)return t;let{rect:r,font:i}=n;(n.fill||n.border)&&t.push({type:`rect`,silent:!0,z:59,shape:{x:r.x,y:r.y,width:r.width,height:r.height},style:{fill:d(n.fill),...x(n.border)}});let a=e=>b(i,e);return n.lines.forEach((e,o)=>{t.push({type:`text`,silent:!0,z:60,x:r.x+r.width/2,y:r.y+n.insets.top+(o+.5)*n.lineHeight,style:{x:0,y:0,text:e.map(e=>`{${e.superscript?`raised`:`plain`}|${e.text}}`).join(``),rich:{plain:{font:a(_(i)),fill:v(i),lineHeight:n.lineHeight},raised:{font:a(n.superscriptSize),fill:v(i),lineHeight:n.lineHeight,verticalAlign:`top`}},align:`center`,verticalAlign:`middle`}})}),t}var Ie=function(e,t){return Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ie(e,t)};function P(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}Ie(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Le=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},F=new function(){this.browser=new Le,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`};typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(F.wxa=!0,F.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?F.worker=!0:!F.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(F.node=!0,F.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,F);var Re,ze,Be=function(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++)t[String.fromCharCode(n+32)]=(e.charCodeAt(n)-20)/100;return t}(`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`),Ve={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:function(e,t){if(!Re){var n=Ve.createCanvas();Re=n&&n.getContext(`2d`)}if(Re)return ze!==t&&(ze=Re.font=t||`12px sans-serif`),Re.measureText(e);e||=``;var r=/((?:\d+)?\.?\d*)px/.exec(t||=`12px sans-serif`),i=r&&+r[1]||12,a=0;if(t.indexOf(`mono`)>=0)a=i*e.length;else for(var o=0;o<e.length;o++){var s=Be[e[o]];a+=s==null?i:s*i}return{width:a}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},He=st([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),Ue=st([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),We=Object.prototype.toString,Ge=Array.prototype,Ke=Ge.forEach,qe=Ge.filter,Je=Ge.slice,Ye=Ge.map,Xe=function(){}.constructor,Ze=Xe?Xe.prototype:null,Qe=`__proto__`,$e=2311,et=2**53-1;function tt(){return $e>=et&&($e=0),$e++}function nt(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function I(e){if(typeof e!=`object`||!e)return e;var t=e,n=We.call(e);if(n===`[object Array]`){if(!Et(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=I(e[r])}}else if(Ue[n]){if(!Et(e)){var a=e.constructor;if(a.from)t=a.from(e);else for(t=new a(e.length),r=0,i=e.length;r<i;r++)t[r]=e[r]}}else if(!He[n]&&!Et(e)&&!ht(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Qe&&(t[o]=I(e[o]));return t}function rt(e,t,n){if(!G(t)||!G(e))return n?I(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Qe){var i=e[r],a=t[r];!G(a)||!G(i)||H(a)||H(i)||ht(a)||ht(i)||pt(a)||pt(i)||Et(a)||Et(i)?!n&&r in e||(e[r]=I(t[r])):rt(i,a,n)}return e}function L(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Qe&&(e[n]=t[n]);return e}function it(e,t,n){for(var r=V(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}Ve.createCanvas;function R(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function at(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else it(e,t,n)}function ot(e){return!!e&&typeof e!=`string`&&typeof e.length==`number`}function z(e,t,n){if(e&&t){if(e.forEach&&e.forEach===Ke)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function B(e,t,n){if(!e)return[];if(!t)return bt(e);if(e.map&&e.map===Ye)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function st(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function ct(e,t,n){if(!e)return[];if(!t)return bt(e);if(e.filter&&e.filter===qe)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function V(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var lt=Ze&&U(Ze.bind)?Ze.call.bind(Ze.bind):function(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(Je.call(arguments)))}};function ut(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(Je.call(arguments)))}}function H(e){return Array.isArray?Array.isArray(e):We.call(e)===`[object Array]`}function U(e){return typeof e==`function`}function W(e){return typeof e==`string`}function dt(e){return We.call(e)===`[object String]`}function ft(e){return typeof e==`number`}function G(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function pt(e){return!!He[We.call(e)]}function mt(e){return!!Ue[We.call(e)]}function ht(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function gt(e){return e.colorStops!=null}function _t(e){return e!=e}function vt(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function K(e,t){return e??t}function yt(e,t,n){return e??t??n}function bt(e){var t=[...arguments].slice(1);return Je.apply(e,t)}function xt(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function St(e,t){if(!e)throw Error(t)}function Ct(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var wt=`__ec_primitive__`;function Tt(e){e[wt]=!0}function Et(e){return e[wt]}var Dt=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return V(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Ot=typeof Map==`function`,kt=function(){function e(t){var n=H(t);this.data=Ot?new Map:new Dt;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&z(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Ot?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function q(e){return new kt(e)}function At(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&L(n,t),n}function J(e,t){return e.hasOwnProperty(t)}function jt(){}var Mt=180/Math.PI;function Nt(e,t){return e??=0,t??=0,[e,t]}function Pt(e){return[e[0],e[1]]}function Ft(e,t,n){return e[0]=t,e[1]=n,e}function It(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Lt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Rt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function zt(e,t){var n=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Bt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Vt=Bt,Ht=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function Ut(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Wt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Gt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Kt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var qt=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},Jt=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new qt(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new qt(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new qt(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new qt(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new qt(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new qt(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Yt=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!r||!r.filter||s.query==null||r.filter(e,s.query))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!r||!r.filter||c.query==null||r.filter(e,c.query))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),Xt=Math.log(2);function Zt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/Xt);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Zt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Qt(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Zt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Zt(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var $t=`___zrEVENTSAVED`,en=[];function tn(e,t,n,r,i){if(t.getBoundingClientRect&&F.domSupported&&!nn(t)){var a=t[$t]||(t[$t]={}),o=function(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Qt(s,o):Qt(o,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=a%2,c=(a>>1)%2;o.style.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[s]+`:0`,i[c]+`:0`,r[1-s]+`:auto`,i[1-c]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){z(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function nn(e){return e.nodeName.toUpperCase()===`CANVAS`}var rn=/([&<>"'])/g,an={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function on(e){return e==null?``:(e+``).replace(rn,function(e,t){return an[t]})}var sn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cn=[],ln=F.browser.firefox&&+F.browser.version.split(`.`)[0]<39;function un(e,t,n,r){return n||={},r?dn(e,t,n):ln&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?dn(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function dn(e,t,n){if(F.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(nn(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(tn(cn,e,r,i))return n.zrX=cn[0],void(n.zrY=cn[1])}n.zrX=n.zrY=0}function fn(e){return e||window.event}function pn(e,t,n){if((t=fn(t)).zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&un(e,i,t,n)}else{un(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return n==null||r==null?t:3*Math.abs(r===0?n:r)*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&sn.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function mn(e,t,n,r){e.removeEventListener(t,n,r)}var hn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},gn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=un(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in vn)if(vn.hasOwnProperty(t)){var n=vn[t](this._track,e);if(n)return n}},e}();function _n(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var vn={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,a=(e[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var o=_n(i)/_n(a);!isFinite(o)&&(o=1),t.pinchScale=o;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:`pinch`,target:e[0].target,event:t}}}}};function yn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function xn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Sn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Cn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function wn(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var Y=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Tn=Math.min,En=Math.max,Dn=Math.abs,On=[`x`,`y`],kn=[`width`,`height`],An=new Y,jn=new Y,Mn=new Y,Nn=new Y,Pn=Gn(),Fn=Pn.minTv,In=Pn.maxTv,Ln=[0,0],X=function(){function e(e,t,n,r){Rn(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Tn(e.x,this.x),n=Tn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?En(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?En(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return Bn([1,0,0,1,0,0],this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Y.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Rn(Vn,t.x,t.y,t.width,t.height)),n instanceof e||(n=Rn(Hn,n.x,n.y,n.width,n.height));var s=!!r;Pn.reset(i,s);var c=Pn.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Ln[0]=1/0,Ln[1]=0,Wn(l,u,p,m,0,s,a,o),Wn(d,f,h,g,1,s,a,o),s&&Y.copy(r,_?Pn.useDir?Pn.dirMinTv:Fn:In)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){zn(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}An.x=Mn.x=t.x,An.y=Nn.y=t.y,jn.x=Nn.x=t.x+t.width,jn.y=Mn.y=t.y+t.height,An.transform(n),Nn.transform(n),jn.transform(n),Mn.transform(n),e.x=Tn(An.x,jn.x,Mn.x,Nn.x),e.y=Tn(An.y,jn.y,Mn.y,Nn.y);var s=En(An.x,jn.x,Mn.x,Nn.x),c=En(An.y,jn.y,Mn.y,Nn.y);e.width=s-e.x,e.height=c-e.y}else e!==t&&zn(e,t)},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return Sn(e=yn(e||[]),e,Ft(Un,-t.x,-t.y)),function(e,t,n){var r=n[0],i=n[1];e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i}(e,e,Ft(Un,r,i)),Sn(e,e,Ft(Un,n.x,n.y)),e},e}(),Rn=(X.create,X.set),zn=X.copy,Bn=X.calculateTransform,Vn=(X.applyTransform,X.contain,new X(0,0,0,0)),Hn=new X(0,0,0,0),Un=[];function Wn(e,t,n,r,i,a,o,s){var c=Dn(t-n),l=Dn(r-e),u=Tn(c,l),d=On[i],f=On[1-i],p=kn[i];t<n||r<e?c<l?(a&&(In[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(In[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=En(e,n),o[p]=Tn(t,r)-o[d]),a&&(u<Ln[0]||Pn.useDir)&&(Ln[0]=Tn(u,Ln[0]),(c<l||!Pn.bidirectional)&&(Fn[d]=c,Fn[f]=0,Pn.useDir&&Pn.calcDirMTV()),(c>=l||!Pn.bidirectional)&&(Fn[d]=-l,Fn[f]=0,Pn.useDir&&Pn.calcDirMTV())))}function Gn(){var e=0,t=new Y,n=new Y,r={minTv:new Y,maxTv:new Y,useDir:!1,dirMinTv:new Y,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=En(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n))}};function i(e){return Dn(e)<1e-10}return r}var Kn=`silent`;function qn(){hn(this.event)}var Jn=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return P(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Yt),Yn=function(e,t){this.x=e,this.y=t},Xn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Zn=new X(0,0,0,0),Qn=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Yn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new Jn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Jt(o),o}return P(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(z(Xn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=tr(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new Yn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new Yn(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e||={}).target;if(!r||!r.silent){for(var i=`on`+t,a=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:qn}}(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Yn(e,t);if(er(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new X(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Zn.copy(u.getBoundingRect()),u.transform&&Zn.applyTransform(u.transform),Zn.intersect(c)&&a.push(u))}if(a.length){for(var d=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=4)for(var m=0;m<f;m+=d)if(er(a,i,e+p*Math.cos(m),t+p*Math.sin(m),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new gn;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Yn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Yt);function $n(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||Kn}return!1}function er(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=$n(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Kn)){t.target=o;break}}}function tr(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}z([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Qn.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=tr(this,i,a);if(e===`mouseup`&&o||(r=(n=this.findHover(i,a)).target),e===`mousedown`)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if(e===`mouseup`)this._upEl=r;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Vt(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});function nr(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;(function(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}})(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function rr(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,c=r;s<c;)i(o,e[a=s+c>>>1])<0?c=a:s=a+1;var l=r-s;switch(l){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;l>0;)e[s+l]=e[s+l-1],l--}e[s]=o}}function ir(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function ar(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function or(e,t){var n,r,i=7,a=0,o=[];function s(s){var c=n[s],l=r[s],u=n[s+1],d=r[s+1];r[s]=l+d,s===a-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),a--;var f=ar(e[u],e,c,l,0,t);c+=f,(l-=f)!==0&&(d=ir(e[c+l-1],e,u,d,d-1,t))!==0&&(l<=d?function(n,r,a,s){var c=0;for(c=0;c<r;c++)o[c]=e[n+c];var l=0,u=a,d=n;if(e[d++]=e[u++],--s===0)for(c=0;c<r;c++)e[d+c]=o[l+c];else if(r===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{for(var f,p,m,h=i;;){f=0,p=0,m=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],p++,f=0,--s===0){m=!0;break}}else if(e[d++]=o[l++],f++,p=0,--r===1){m=!0;break}while((f|p)<h);if(m)break;do{if((f=ar(e[u],o,l,r,0,t))!==0){for(c=0;c<f;c++)e[d+c]=o[l+c];if(d+=f,l+=f,(r-=f)<=1){m=!0;break}}if(e[d++]=e[u++],--s===0){m=!0;break}if((p=ir(o[l],e,u,s,0,t))!==0){for(c=0;c<p;c++)e[d+c]=e[u+c];if(d+=p,u+=p,(s-=p)===0){m=!0;break}}if(e[d++]=o[l++],--r===1){m=!0;break}h--}while(f>=7||p>=7);if(m)break;h<0&&(h=0),h+=2}if((i=h)<1&&(i=1),r===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{if(r===0)throw Error();for(c=0;c<r;c++)e[d+c]=o[l+c]}}}(c,l,u,d):function(n,r,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=n+r-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--r===0)for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];else if(s===1){for(p=(d-=r)+1,f=(l-=r)+1,c=r-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=i;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--r===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if((h=r-ar(o[u],e,n,r,r-1,t))!==0){for(r-=h,p=(d-=h)+1,f=(l-=h)+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(r===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if((g=s-ir(e[l],o,0,s,s-1,t))!==0){for(s-=g,p=(d-=g)+1,f=(u-=g)+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--r===0){_=!0;break}m--}while(h>=7||g>=7);if(_)break;m<0&&(m=0),m+=2}if((i=m)<1&&(i=1),s===1){for(p=(d-=r)+1,f=(l-=r)+1,c=r-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{if(s===0)throw Error();for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}}}(c,l,u,d))}return n=[],r=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,r[a]=t,a+=1}}}function sr(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<32)rr(e,n,r,n+(a=nr(e,n,r,t)),t);else{var o=or(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((a=nr(e,n,r,t))<s){var c=i;c>s&&(c=s),rr(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var cr=!1;function lr(){cr||(cr=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function ur(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var dr=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ur}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,sr(n,ur)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(lr(),p.z=0),isNaN(p.z2)&&(lr(),p.z2=0),isNaN(p.zlevel)&&(lr(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=R(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),fr=F.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},pr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(2-2**(-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return e===0?0:e===1?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return e===0?0:e===1?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-pr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*pr.bounceIn(2*e):.5*pr.bounceOut(2*e-1)+.5}},mr=Math.pow,hr=Math.sqrt,gr=1e-8,_r=1e-4,vr=hr(3),yr=1/3,br=Nt(),xr=Nt(),Sr=Nt();function Cr(e){return e>-1e-8&&e<gr}function wr(e){return e>gr||e<-1e-8}function Tr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Er(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Dr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Cr(u)&&Cr(d))Cr(s)?a[0]=0:(w=-c/s)>=0&&w<=1&&(a[p++]=w);else{var m=d*d-4*u*f;if(Cr(m)){var h=d/u,g=-h/2;(w=-s/o+h)>=0&&w<=1&&(a[p++]=w),g>=0&&g<=1&&(a[p++]=g)}else if(m>0){var _=hr(m),v=u*s+1.5*o*(-d+_),y=u*s+1.5*o*(-d-_);(w=(-s-((v=v<0?-mr(-v,yr):mr(v,yr))+(y=y<0?-mr(-y,yr):mr(y,yr))))/(3*o))>=0&&w<=1&&(a[p++]=w)}else{var b=(2*u*s-3*o*d)/(2*hr(u*u*u)),x=Math.acos(b)/3,S=hr(u),C=Math.cos(x),w=(-s-2*S*C)/(3*o),T=(g=(-s+S*(C+vr*Math.sin(x)))/(3*o),(-s+S*(C-vr*Math.sin(x)))/(3*o));w>=0&&w<=1&&(a[p++]=w),g>=0&&g<=1&&(a[p++]=g),T>=0&&T<=1&&(a[p++]=T)}}return p}function Or(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Cr(o))wr(a)&&(u=-s/a)>=0&&u<=1&&(i[c++]=u);else{var l=a*a-4*o*s;if(Cr(l))i[0]=-a/(2*o);else if(l>0){var u,d=hr(l),f=(-a-d)/(2*o);(u=(-a+d)/(2*o))>=0&&u<=1&&(i[c++]=u),f>=0&&f<=1&&(i[c++]=f)}}return c}function kr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Ar(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Tr(e,n,i,o,m),g=Tr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function jr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Mr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Nr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Pr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Fr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=jr(e,n,i,f),m=jr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Ir=/cubic-bezier\(([0-9,\.e ]+)\)/;function Lr(e){var t=e&&Ir.exec(e);if(t){var n=t[1].split(`,`),r=+Ct(n[0]),i=+Ct(n[1]),a=+Ct(n[2]),o=+Ct(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Dr(0,r,a,1,e,s)&&Tr(0,i,o,1,s[0])}}}var Rr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||jt,this.ondestroy=e.ondestroy||jt,this.onrestart=e.onrestart||jt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=U(e)?e:pr[e]||Lr(e)},e}(),zr=function(e){this.value=e},Br=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new zr(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Vr=function(){function e(e){this._list=new Br,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new zr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Hr={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 Ur(e){return(e=Math.round(e))<0?0:e>255?255:e}function Wr(e){return e<0?0:e>1?1:e}function Gr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ur(parseFloat(t)/100*255):Ur(parseInt(t,10))}function Kr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Wr(parseFloat(t)/100):Wr(parseFloat(t))}function qr(e,t,n){return n<0?n+=1:n>1&&--n,6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Jr(e,t,n){return e+(t-e)*n}function Yr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Xr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Zr=new Vr(20),Qr=null;function $r(e,t){Qr&&Xr(Qr,t),Qr=Zr.put(e,Qr||t.slice())}function ei(e,t){if(e){t||=[];var n=Zr.get(e);if(n)return Xr(t,n);var r=(e+=``).replace(/ /g,``).toLowerCase();if(r in Hr)return Xr(t,Hr[r]),$r(e,t),t;var i,a=r.length;if(r.charAt(0)===`#`)return a===4||a===5?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Yr(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,a===5?parseInt(r.slice(4),16)/15:1),$r(e,t),t):void Yr(t,0,0,0,1):a===7||a===9?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Yr(t,(16711680&i)>>16,(65280&i)>>8,255&i,a===9?parseInt(r.slice(7),16)/255:1),$r(e,t),t):void Yr(t,0,0,0,1):void 0;var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===a){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Yr(t,+l[0],+l[1],+l[2],1):Yr(t,0,0,0,1);u=Kr(l.pop());case`rgb`:return l.length>=3?(Yr(t,Gr(l[0]),Gr(l[1]),Gr(l[2]),l.length===3?u:Kr(l[3])),$r(e,t),t):void Yr(t,0,0,0,1);case`hsla`:return l.length===4?(l[3]=Kr(l[3]),ti(l,t),$r(e,t),t):void Yr(t,0,0,0,1);case`hsl`:return l.length===3?(ti(l,t),$r(e,t),t):void Yr(t,0,0,0,1);default:return}}Yr(t,0,0,0,1)}}function ti(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Kr(e[1]),i=Kr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return Yr(t||=[],Ur(255*qr(o,a,n+1/3)),Ur(255*qr(o,a,n)),Ur(255*qr(o,a,n-1/3)),1),e.length===4&&(t[3]=e[3]),t}function ni(e,t){var n=ei(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ai(n,n.length===4?`rgba`:`rgb`)}}function ri(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=ei(t[i]),s=ei(t[a]),c=r-i,l=ai([Ur(Jr(o[0],s[0],c)),Ur(Jr(o[1],s[1],c)),Ur(Jr(o[2],s[2],c)),Wr(Jr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function ii(e,t,n,r){var i,a=ei(e);if(e)return a=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),c=s-o,l=(s+o)/2;if(c===0)t=0,n=0;else{n=l<.5?c/(s+o):c/(2-s-o);var u=((s-r)/6+c/2)/c,d=((s-i)/6+c/2)/c,f=((s-a)/6+c/2)/c;r===s?t=f-d:i===s?t=1/3+u-f:a===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&--t}var p=[360*t,n,l];return e[3]!=null&&p.push(e[3]),p}}(a),t!=null&&(a[0]=(i=U(t)?t(a[0]):t,(i=Math.round(i))<0?0:i>360?360:i)),n!=null&&(a[1]=Kr(U(n)?n(a[1]):n)),r!=null&&(a[2]=Kr(U(r)?r(a[2]):r)),ai(ti(a),`rgba`)}function ai(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return t!==`rgba`&&t!==`hsva`&&t!==`hsla`||(n+=`,`+e[3]),t+`(`+n+`)`}}function oi(e,t){var n=ei(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var si=new Vr(100);function ci(e){if(W(e)){var t=si.get(e);return t||(t=ni(e,-.1),si.put(e,t)),t}if(gt(e)){var n=L({},e);return n.colorStops=B(e.colorStops,function(e){return{offset:e.offset,color:ni(e.color,-.1)}}),n}return e}var li=Math.round;function ui(e){var t;if(e&&e!==`transparent`){if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=ei(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}}else e=`none`;return{color:e,opacity:t??1}}var di=1e-4;function fi(e){return e<di&&e>-1e-4}function pi(e){return li(1e3*e)/1e3}function mi(e){return li(1e4*e)/1e4}var hi={left:`start`,right:`end`,center:`middle`,middle:`middle`};function gi(e){return e&&!!e.image}function _i(e){return gi(e)||function(e){return e&&!!e.svgElement}(e)}function vi(e){return e.type===`linear`}function yi(e){return e.type===`radial`}function bi(e){return e&&(e.type===`linear`||e.type===`radial`)}function xi(e){return`url(#`+e+`)`}function Si(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ci(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Mt,i=K(e.scaleX,1),a=K(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),i===1&&a===1||c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+li(o*Mt)+`deg, `+li(s*Mt)+`deg)`),c.join(` `)}var wi=typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null},Ti=Array.prototype.slice;function Ei(e,t,n){return(t-e)*n+e}function Di(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Ei(t[a],n[a],r);return e}function Oi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ki(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Ai(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function ji(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Ti.call(i[s]))}var c=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Mi(e){if(ot(e)){var t=e.length;if(ot(e[0])){for(var n=[],r=0;r<t;r++)n.push(Ti.call(e[r]));return n}return Ti.call(e)}return e}function Ni(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Pi(e){return e===4||e===5}function Fi(e){return e===1||e===2}var Ii=[0,0,0,0],Li=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=6,s=t;if(ot(t)){var c=function(e){return ot(e&&e[0])?2:1}(t);o=c,(c===1&&!ft(t[0])||c===2&&!ft(t[0][0]))&&(a=!0)}else if(ft(t)&&!_t(t))o=0;else if(W(t)){if(isNaN(+t)){var l=ei(t);l&&(s=l,o=3)}else o=0}else if(gt(t)){var u=L({},s);u.colorStops=B(t.colorStops,function(e){return{offset:e.offset,color:ei(e.color)}}),vi(t)?o=4:yi(t)&&(o=5),s=u}i===0?this.valType=o:o===this.valType&&o!==6||(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=U(n)?n:pr[n]||Lr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Fi(r),c=Pi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?ji(d,f,r):c&&Ai(d.colorStops,f.colorStops))}if(!o&&r!==5&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(l=0;l<i;l++)r===0?n[l].additiveValue=n[l].value-p:r===3?n[l].additiveValue=Oi([],n[l].value,p,-1):Fi(r)&&(n[l].additiveValue=r===1?Oi([],n[l].value,p,-1):ki([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=this._additiveTrack!=null,o=a?`additiveValue`:`value`,s=this.valType,c=this.keyframes,l=c.length,u=this.propName,d=s===3,f=this._lastFr,p=Math.min;if(l===1)r=i=c[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(f+1,l-1);n>=0&&!(c[n].percent<=t);n--);n=p(n,l-2)}else{for(n=f;n<l&&!(c[n].percent>t);n++);n=p(n-1,l-2)}i=c[n+1],r=c[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var m=i.percent-r.percent,h=m===0?1:p((t-r.percent)/m,1);i.easingFunc&&(h=i.easingFunc(h));var g=a?this._additiveValue:d?Ii:e[u];if(!Fi(s)&&!d||g||(g=this._additiveValue=[]),this.discrete)e[u]=h<1?r.rawValue:i.rawValue;else if(Fi(s))s===1?Di(g,r[o],i[o],h):function(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ei(t[o][s],n[o][s],r)}}(g,r[o],i[o],h);else if(Pi(s)){var _=r[o],v=i[o],y=s===4;e[u]={type:y?`linear`:`radial`,x:Ei(_.x,v.x,h),y:Ei(_.y,v.y,h),colorStops:B(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Ei(e.offset,n.offset,h),color:Ni(Di([],e.color,n.color,h))}}),global:v.global},y?(e[u].x2=Ei(_.x2,v.x2,h),e[u].y2=Ei(_.y2,v.y2,h)):e[u].r=Ei(_.r,v.r,h)}else if(d)Di(g,r[o],i[o],h),a||(e[u]=Ni(g));else{var b=Ei(r[o],i[o],h);a?this._additiveValue=b:e[u]=b}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===0?e[n]=e[n]+r:t===3?(ei(e[n],Ii),Oi(Ii,Ii,r,1),e[n]=Ni(Ii)):t===1?Oi(e[n],e[n],r,1):t===2&&ki(e[n],e[n],r,1)},e}(),Ri=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?nt(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,V(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new Li(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===3&&c&&(c=Ni(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Mi(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Mi(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new Rr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}var o=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Mi(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=V(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function zi(){return new Date().getTime()}var Bi,Vi,Hi=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return P(t,e),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 t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=zi()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,fr(function t(){e._running&&(fr(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=zi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=zi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=zi()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Ri(e,t.loop);return this.addAnimator(n),n},t}(Yt),Ui=F.domSupported,Wi=(Vi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Bi=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],touch:[`touchstart`,`touchend`,`touchmove`],pointer:B(Bi,function(e){var t=e.replace(`mouse`,`pointer`);return Vi.hasOwnProperty(t)?t:e})}),Gi=[`mousemove`,`mouseup`],Ki=[`pointermove`,`pointerup`],qi=!1;function Ji(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Yi(e){e&&(e.zrByTouch=!0)}function Xi(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Zi=function(e,t){this.stopPropagation=jt,this.stopImmediatePropagation=jt,this.preventDefault=jt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},Qi={mousedown:function(e){e=pn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=pn(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=pn(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){Xi(this,(e=pn(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){qi=!0,e=pn(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){qi||(e=pn(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){Yi(e=pn(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Qi.mousemove.call(this,e),Qi.mousedown.call(this,e)},touchmove:function(e){Yi(e=pn(this.dom,e)),this.handler.processGesture(e,`change`),Qi.mousemove.call(this,e)},touchend:function(e){Yi(e=pn(this.dom,e)),this.handler.processGesture(e,`end`),Qi.mouseup.call(this,e),+new Date-this.__lastTouchMoment<300&&Qi.click.call(this,e)},pointerdown:function(e){Qi.mousedown.call(this,e)},pointermove:function(e){Ji(e)||Qi.mousemove.call(this,e)},pointerup:function(e){Qi.mouseup.call(this,e)},pointerout:function(e){Ji(e)||Qi.mouseout.call(this,e)}};z([`click`,`dblclick`,`contextmenu`],function(e){Qi[e]=function(t){t=pn(this.dom,t),this.trigger(e,t)}});var $i={pointermove:function(e){Ji(e)||$i.mousemove.call(this,e)},pointerup:function(e){$i.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function ea(e,t){var n=t.domHandlers;F.pointerEventsSupported?z(Wi.pointer,function(r){na(t,r,function(t){n[r].call(e,t)})}):(F.touchEventsSupported&&z(Wi.touch,function(r){na(t,r,function(i){n[r].call(e,i),function(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),z(Wi.mouse,function(r){na(t,r,function(i){i=fn(i),t.touching||n[r].call(e,i)})}))}function ta(e,t){function n(n){na(t,n,function(r){r=fn(r),Xi(e,r.target)||(r=function(e,t){return pn(e.dom,new Zi(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}F.pointerEventsSupported?z(Ki,n):F.touchEventsSupported||z(Gi,n)}function na(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,function(e,t,n,r){e.addEventListener(t,n,r)}(e.domTarget,t,n,r)}function ra(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&mn(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var ia=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},aa=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new ia(t,Qi),Ui&&(r._globalHandlerScope=new ia(document,$i)),ea(r,r._localHandlerScope),r}return P(t,e),t.prototype.dispose=function(){ra(this._localHandlerScope),Ui&&ra(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,Ui&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?ta(this,t):ra(t)}},t}(Yt),oa=1;F.hasGlobalWindow&&(oa=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var sa=oa,ca=`#333`,la=`#ccc`,ua=yn,da=5e-5;function fa(e){return e>da||e<-5e-5}var pa,ma=[],ha=[],ga=[1,0,0,1,0,0],_a=Math.abs,va=function(){function e(){}var t;return e.prototype.getLocalTransform=function(e){return ya(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return fa(this.rotation)||fa(this.x)||fa(this.y)||fa(this.scaleX-1)||fa(this.scaleY-1)||fa(this.skewX)||fa(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=[1,0,0,1,0,0],t?this.getLocalTransform(n):ua(n),e&&(t?xn(n,e,n):bn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||[1,0,0,1,0,0],wn(this.invTransform,n)):n&&(ua(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ma);var n=ma[0]<0?-1:1,r=ma[1]<0?-1:1,i=((ma[0]-n)*t+n)/ma[0]||0,a=((ma[1]-r)*t+r)/ma[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],xn(ha,e.invTransform,t),t=ha);var n=this.originX,r=this.originY;(n||r)&&(ga[4]=n,ga[5]=r,xn(ha,t,ga),ha[4]-=n,ha[5]-=r,t=ha),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Wt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Wt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&_a(e[0]-1)>1e-10&&_a(e[3]-1)>1e-10?Math.sqrt(_a(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){xa(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Cn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),ya=va.getLocalTransform,ba=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function xa(e,t){return function(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}(e,t,ba)}function Sa(e){pa||=new Vr(100),e||=`12px sans-serif`;var t=pa.get(e);return t||(t={font:e,strWidthCache:new Vr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Ve.measureText(`国`,e).width,asciiCharWidth:Ve.measureText(`a`,e).width},pa.put(e,t)),t}var Ca=0,wa=5;function Ta(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=function(e){if(!(Ca>=wa)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=Ve.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Ca=wa:i>2&&Ca++,t}}(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Ea(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=Ve.measureText(t,e.font).width,n.put(t,r)),r}function Da(e,t,n,r){var i=Ea(Sa(t),e),a=ja(t);return new X(ka(0,i,n),Aa(0,a,r),i,a)}function Oa(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
+
`);if(i.length===1)return Da(i[0],t,n,r);for(var a=new X(0,0,0,0),o=0;o<i.length;o++){var s=Da(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function ka(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function Aa(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function ja(e){return Sa(e).stWideCharWidth}function Ma(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Na(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Ma(r[0],n.width),l+=Ma(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return(e||={}).x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Pa=`__zr_normal__`,Fa=ba.concat([`ignore`]),Ia=st(ba,function(e,t){return e[t]=!0,e},{ignore:!1}),La={},Ra=new X(0,0,0,0),za=[],Ba=function(){function e(e){this.id=tt(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Ra,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(La,n,d):Na(La,n,d),i.x=La.x,i.y=La.y,a=La.align,o=La.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=.5*d.width,m=.5*d.height):(p=Ma(f[0],d.width),m=Ma(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new X(0,0,0,0);i.getLocalTransform(za),wn(za,za),X.copy(_,d),_.applyTransform(za)}else g.overflowRect=null;var v=void 0,y=void 0,b=void 0;(n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside)&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,v!=null&&v!==`auto`||(v=this.getInsideTextFill()),y!=null&&y!==`auto`||(y=this.getInsideTextStroke(v),b=!0)):(v=n.outsideFill,y=n.outsideStroke,v!=null&&v!==`auto`||(v=this.getOutsideFill()),y!=null&&y!==`auto`||(y=this.getOutsideStroke(v),b=!0)),(v||=`#000`)===g.fill&&y===g.stroke&&b===g.autoStroke&&a===g.align&&o===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=b,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?la:ca},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&ei(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,ai(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},L(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(G(e))for(var n=V(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Fa)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]==null||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Pa,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Pa;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(R(a,e)>=0)||!t&&a.length!==1){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],s||i){i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Ga(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,qa(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}nt(`State `+e+` not exists.`)}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Ga(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,qa(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=R(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=R(r,e),a=R(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];L(n,i),i.textConfig&&L(t||={},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=L({},r?this.textConfig:n.textConfig),L(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Fa.length;l++){var u=Fa[l],d=i&&Ia[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new va,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},L(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new Ri(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=R(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Va(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Va(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Va(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,r,i){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){return this[n]||a(this,this[n]=[]),this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}})}t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1,Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))}(),e}();function Va(e,t,n,r,i){var a=[];Wa(e,``,e,t,n||={},r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,--o<=0&&(s?c&&c():l&&l())},d=function(){--o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function Ha(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ua(e,t,n){if(ot(t[n])){if(ot(e[n])||(e[n]=[]),mt(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Ha(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ot(i[0]))for(var s=i[0].length,c=0;c<o;c++)a[c]?Ha(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Ha(a,i,o);a.length=i.length}}else e[n]=t[n]}function Wa(e,t,n,r,i,a,o,s){for(var c=V(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!G(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(!G(v)||ot(v)||gt(v))h.push(_);else{if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Wa(e,_,n[_],v,i,a&&a[_],o,s)}}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y){for(var b=0;b<m.length;b++)if((S=m[b]).targetName===t&&S.stopTracks(h)){var x=R(m,S);m.splice(x,1)}}if(i.force||(h=ct(h,function(e){return t=r[e],i=n[e],!(t===i||ot(t)&&ot(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i}),y=h.length),y>0||i.force&&!o.length){var S,C=void 0,w=void 0,T=void 0;if(s)for(w={},f&&(C={}),b=0;b<y;b++)w[_=h[b]]=n[_],f?C[_]=r[_]:n[_]=r[_];else if(f)for(T={},b=0;b<y;b++)T[_=h[b]]=Mi(n[_]),Ua(n,r,_);(S=new Ri(n,!1,!1,d?ct(m,function(e){return e.targetName===t}):null)).targetName=t,i.scope&&(S.scope=i.scope),f&&C&&S.whenWithKeys(0,C,h),T&&S.whenWithKeys(0,T,h),S.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(S,t),o.push(S)}}function Ga(e,t,n,r){return!(n&&n.hoverLayer||r)||Ka(e)||t&&Ka(t)?0:1}function Ka(e){return e.type===`text`||e.type===`tspan`}function qa(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}at(Ba,Yt),at(Ba,va);var Ja=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return P(t,e),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 t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[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,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=R(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=R(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new X(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(X.applyTransform(t,s,c),(i||=t.clone()).union(t)):(i||=s.clone()).union(s)}}return i||t},t}(Ba);Ja.prototype.type=`group`;var Ya={},Xa={},Za,Qa=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new dr,a=n.renderer||`canvas`;Ya[a]||(a=V(Ya)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new Ya[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c,l=F.node||F.worker||s?null:new aa(o.getViewportRoot(),o.root),u=n.useCoarsePointer;(u==null||u===`auto`?F.touchEventsSupported:u)&&(c=K(n.pointerSize,44)),this.handler=new Qn(i,o,l,o.root,c),this.animation=new Hi({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if(typeof e==`string`)return oi(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=oi(t[i].color,1);return(n/=r)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=zi(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=zi();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ja&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;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,e=this.id,delete Xa[e])},e}();function $a(e,t){var n=new Qa(tt(),e,t);return Xa[n.id]=n,n}var eo=1e-4,to=Math.min,no=Math.max,ro=Math.abs,io=Math.round,ao=Math.floor,oo=Math.ceil,so=Math.pow,co=Math.log,lo=Math.LN10,uo=Math.PI,fo=Math.random;function po(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var mo=function(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return ho(e,t,n)};function ho(e,t,n){return W(e)?function(e){return!!(t=e,t.replace(/^\s+|\s+$/g,``)).match(/%$/);var t}(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function go(e,t,n){return isNaN(t)?n?``+e:+e:(t=to(no(0,t),20),e=(+e).toFixed(t),n?e:+e)}function _o(e){return e.sort(function(e,t){return e-t}),e}function vo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(io(e*t)/t===e)return n}return function(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return no(0,(a<0?0:i-1-a)-r)}(e)}function yo(e,t){var n=no(vo(e),vo(t)),r=e+t;return n>20?r:go(r,n)}var bo=so(2,53)-1;function xo(e){var t=2*uo;return(e%t+t)%t}function So(e){return e>-1e-4&&e<eo}var Co=/^(?:(\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 wo(e){if(e instanceof Date)return e;if(W(e)){var t=Co.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}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)}return e==null?new Date(NaN):new Date(io(e))}function To(e){return so(10,Eo(e))}function Eo(e){if(e===0)return 0;var t=ao(co(e)/lo);return e/so(10,t)>=10&&t++,t}function Do(e,t){var n=Eo(e),r=so(10,n),i=e/r;return go(e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,-n)}function Oo(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf(`x`)<=0)?t:NaN}function ko(){return io(9*fo())}function Ao(e,t){return t===0?e:Ao(t,e%t)}function jo(e,t){return e==null?t:t==null?e:e*t/Ao(e,t)}function Mo(e){return e!=null&&isFinite(e)}var No={},Po=typeof console<`u`&&console.warn&&console.log;function Fo(e,t){(function(e,t,n){if(Po){if(n){if(No[t])return;No[t]=!0}console[e](`[ECharts] `+t)}})(`error`,e,t)}function Io(e){throw Error(e)}function Lo(e,t,n){return(t-e)*n+e}var Ro=`series\0`;function zo(e){return e instanceof Array?e:e==null?[]:[e]}function Bo(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Vo=`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`.split(`.`);function Ho(e){return!G(e)||H(e)||e instanceof Date?e:e.value}function Uo(e){return G(e)&&!(e instanceof Array)}function Wo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=q();z(t,function(e,n){G(e)||(t[n]=null)});var s,c,l=function(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Yo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(e,o,n);return(r||i)&&function(e,t,n,r){z(r,function(i,a){if(i&&i.id!=null){var o=Ko(i.id),s=n.get(o);if(s!=null){var c=e[s];St(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}(l,e,o,t),r&&function(e,t){z(t,function(n,r){if(n&&n.name!=null)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Yo(n)&&!Yo(a)&&Go(`name`,a,n))return e[i].newOption=n,void(t[r]=null)}})}(l,t),r||i?function(e,t,n){z(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Yo(r.existing)||r.existing&&t.id!=null&&!Go(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}(l,t,i):a&&function(e,t){z(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(l,t),s=l,c=q(),z(s,function(e){var t=e.existing;t&&c.set(t.id,e)}),z(s,function(e){var t=e.newOption;St(!t||t.id==null||!c.get(t.id)||c.get(t.id)===e,`id duplicates: `+(t&&t.id)),t&&t.id!=null&&c.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),z(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(G(r)){if(i.name=r.name==null?n?n.name:Ro+t:Ko(r.name),n)i.id=Ko(n.id);else if(r.id!=null)i.id=Ko(r.id);else{var a=0;do i.id=`\0`+i.name+`\0`+a++;while(c.get(i.id))}c.set(i.id,e)}}),l}function Go(e,t,n){var r=qo(t[e],null),i=qo(n[e],null);return r!=null&&i!=null&&r===i}function Ko(e){return qo(e,``)}function qo(e,t){return e==null?t:W(e)?e:ft(e)||dt(e)?e+``:t}function Jo(e){var t=e.name;return!(!t||!t.indexOf(Ro))}function Yo(e){return e&&e.id!=null&&Ko(e.id).indexOf(`\0_ec_\0`)===0}function Xo(e,t){return t.dataIndexInside==null?t.dataIndex==null?t.name==null?void 0:H(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):H(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):t.dataIndexInside}function Zo(){var e=`__ec_inner_`+Qo++;return function(t){return t[e]||(t[e]={})}}var Qo=ko();function $o(e,t,n){var r=es(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=ns(e,r,t,{useDefault:s===r,enableAll:!n||n.enableAll==null||n.enableAll,enableNone:!n||n.enableNone==null||n.enableNone});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function es(e,t){var n;if(W(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=q(),a={},o=!1;return z(n,function(e,n){if(n!==`dataIndex`&&n!==`dataIndexInside`){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();s&&c&&!(t&&t.includeMainTypes&&R(t.includeMainTypes,s)<0)&&(o||=!!s,(i.get(s)||i.set(s,{}))[c]=e)}else a[n]=e}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ts={useDefault:!0,enableAll:!1,enableNone:!1};function ns(e,t,n,r){r||=ts;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||!1===i){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function rs(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}(function(){function e(){}e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)}})();function is(){return[1/0,-1/0]}function as(e,t){cs(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function os(e,t){cs(t)&&t<e[0]&&(e[0]=t)}function ss(e,t){cs(t)&&t>e[1]&&(e[1]=t)}function cs(e){return e!=null&&isFinite(e)}function ls(e,t){return cs(e)&&cs(t)&&e<=t}function us(){var e=`__ec_once_`+ds++;return function(t,n){J(t,e)||(t[e]=1,n())}}var ds=ko();function fs(e,t,n){var r=q(),i=0;z(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),s||n||(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function ps(e){return e.value+``}function ms(e){return e+``}function hs(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function gs(e){return{overallReset:e}}var _s=`___EC__COMPONENT__CONTAINER___`,vs=`___EC__EXTENDED_CLASS___`;function ys(e){var t={main:``,sub:``};if(e){var n=e.split(`.`);t.main=n[0]||``,t.sub=n[1]||``}return t}function bs(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;return U(n=r)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return P(t,e),t}(r):(t=function(){(e.$constructor||r).apply(this,arguments)},function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(t,this)),L(t.prototype,e),t[vs]=!0,t.extend=this.extend,t.superCall=Cs,t.superApply=ws,t.superClass=r,t}}function xs(e,t){e.extend=t.extend}var Ss=Math.round(10*Math.random());function Cs(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function ws(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Ts(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){St(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),`componentType "`+n+`" illegal`),e.prototype.type=r;var i=ys(r);if(i.sub){if(i.sub!==_s){var a=function(e){var n=t[e.main];return n&&n[_s]||((n=t[e.main]={})[_s]=!0),n}(i);a[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[_s]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=ys(e),r=[],i=t[n.main];return i&&i[_s]?z(i,function(e,t){t!==_s&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[ys(e).main]},e.getAllClassMainTypes=function(){var e=[];return z(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[ys(e).main];return n&&n[_s]}}function Es(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&R(r,s)>=0||i&&R(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Ds=Es([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Os=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Ds(this,e,t)},e}(),ks=new Vr(50);function As(e){if(typeof e==`string`){var t=ks.get(e);return t&&t.image}return e}function js(e,t,n,r,i){if(e){if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=ks.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?!Ns(t=a.image)&&a.pending.push(o):((t=Ve.loadImage(e,Ms,Ms)).__zrImageSrc=e,ks.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}return t}function Ms(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Ns(e){return e&&e.width&&e.height}var Ps=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Fs(e,t,n,r,i,a){if(!n)return e.text=``,void(e.isTruncated=!1);var o=(t+``).split(`
|
|
3
|
+
`);a=Is(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Ls(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}function Is(e,t,n,r){var i=L({},r||={});n=K(n,`...`),i.maxIterations=K(r.maxIterations,2);var a=i.minChar=K(r.minChar,0),o=i.fontMeasureInfo=Sa(t),s=o.asciiCharWidth;i.placeholder=K(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Ea(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Ls(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)return e.textLine=``,void(e.isTruncated=!1);var o=Ea(a,t);if(o<=r)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Rs(t,i,a):o>0?Math.floor(t.length*i/o):0;o=Ea(a,t=t.substr(0,c))}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Rs(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Ta(n,e.charCodeAt(i));return i}var zs=function(){},Bs=function(e){this.tokens=[],e&&(this.tokens=e)},Vs=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Hs(e,t,n,r,i){var a,o,s=t===``,c=i&&n.rich[i]||{},l=e.lines,u=c.font||n.font,d=!1;if(r){var f=c.padding,p=f?f[1]+f[3]:0;if(c.width!=null&&c.width!==`auto`){var m=Ma(c.width,r.width)+p;l.length>0&&m+r.accumWidth>r.width&&(a=t.split(`
|
|
5
|
+
`),d=!0),r.accumWidth=m}else{var h=Gs(t,u,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,o=h.linesWidths,a=h.lines}}a||=t.split(`
|
|
6
|
+
`);for(var g=Sa(u),_=0;_<a.length;_++){var v=a[_],y=new zs;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!s,y.width=typeof c.width==`number`?c.width:o?o[_]:Ea(g,v),_||d)l.push(new Bs([y]));else{var b=(l[l.length-1]||(l[0]=new Bs)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||s)&&b.push(y)}}}var Us=st(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Ws(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!Us[e]}function Gs(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Sa(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p!==`
|
|
7
|
+
`){var m=Ta(d,p.charCodeAt(0)),h=!r&&!Ws(p);(a.length?u+m>n:i+u+m>n)?u?(s||c)&&(h?(s||(s=c,c=``,u=l=0),a.push(s),o.push(u-l),c+=p,s=``,u=l+=m):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m)):(u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p))}else c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function Ks(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=2*t.width,s=2*t.height;X.set(qs,ka(n,o,i),Aa(r,s,a),o,s),X.intersect(t,qs,null,Js);var c=Js.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=ka(c.x,c.width,i,!0),e.baseY=Aa(c.y,c.height,a,!0)}}var qs=new X(0,0,0,0),Js={outIntersectRect:{},clamp:!0};function Ys(e){return e==null?e=``:e+=``}function Xs(e,t,n,r){var i=new X(ka(e.x||0,t,e.textAlign),Aa(e.y||0,n,e.textBaseline),t,n),a=r??(Zs(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Zs(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Qs=`__zr_style_`+Math.round(10*Math.random()),$s={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},ec={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$s[Qs]=!0;var tc=[`z`,`z2`,`invisible`],nc=[`invisible`],rc=function(e){function t(t){return e.call(this,t)||this}var n;return P(t,e),t.prototype._init=function(t){for(var n=V(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&function(e,t,n){return ic.copy(e.getBoundingRect()),e.transform&&ic.applyTransform(e.transform),ac.width=t,ac.height=n,!ic.intersect(ac)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new X(0,0,0,0),t?X.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:L(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return At($s,e)},t.prototype.useStyle=function(e){e[Qs]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Qs]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,tc)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,c=!(n&&i),l=this.__inHover===1;if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):c&&(s=r.style),s){if(a){var u=this.style;if(this.style=this.createStyle(c?{}:u),c)for(var d=V(u),f=0;f<d.length;f++)(m=d[f])in s&&(s[m]=s[m],this.style[m]=u[m]);var p=V(s);for(f=0;f<p.length;f++){var m=p[f];this.style[m]=this.style[m]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else l?this._useHoverStyle(s):this.useStyle(s)}if(!l){var h=this.__inHover?nc:tc;for(f=0;f<h.length;f++)m=h[f],n&&n[m]!=null?this[m]=n[m]:c&&r[m]!=null&&(this[m]=r[m])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n||={},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return L(e,t),e},t.prototype.getAnimationStyleProps=function(){return ec},t.initDefaultProps=((n=t.prototype).type=`displayable`,n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor=`pointer`,n.rectHover=!1,n.incremental=0,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),t}(Ba),ic=new X(0,0,0,0),ac=new X(0,0,0,0),oc=Math.min,sc=Math.max,cc=Math.sin,lc=Math.cos,uc=2*Math.PI,dc=Nt(),fc=Nt(),pc=Nt();function mc(e,t,n,r,i,a){i[0]=oc(e,n),i[1]=oc(t,r),a[0]=sc(e,n),a[1]=sc(t,r)}var hc=[],gc=[];function _c(e,t,n,r,i,a,o,s,c,l){var u=Or,d=Tr,f=u(e,n,i,o,hc);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,hc[p]);c[0]=oc(m,c[0]),l[0]=sc(m,l[0])}for(f=u(t,r,a,s,gc),p=0;p<f;p++){var h=d(t,r,a,s,gc[p]);c[1]=oc(h,c[1]),l[1]=sc(h,l[1])}c[0]=oc(e,c[0]),l[0]=sc(e,l[0]),c[0]=oc(o,c[0]),l[0]=sc(o,l[0]),c[1]=oc(t,c[1]),l[1]=sc(t,l[1]),c[1]=oc(s,c[1]),l[1]=sc(s,l[1])}function vc(e,t,n,r,i,a,o,s){var c=Nr,l=jr,u=sc(oc(c(e,n,i),1),0),d=sc(oc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=oc(e,i,f),o[1]=oc(t,a,p),s[0]=sc(e,i,f),s[1]=sc(t,a,p)}function yc(e,t,n,r,i,a,o,s,c){var l=Gt,u=Kt,d=Math.abs(i-a);if(d%uc<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,c[0]=e+n,void(c[1]=t+r);if(dc[0]=lc(i)*n+e,dc[1]=cc(i)*r+t,fc[0]=lc(a)*n+e,fc[1]=cc(a)*r+t,l(s,dc,fc),u(c,dc,fc),(i%=uc)<0&&(i+=uc),(a%=uc)<0&&(a+=uc),i>a&&!o?a+=uc:i<a&&o&&(i+=uc),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(pc[0]=lc(p)*n+e,pc[1]=cc(p)*r+t,l(s,pc,s),u(c,pc,c))}var bc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xc=[],Sc=[],Cc=[],wc=[],Tc=[],Ec=[],Dc=Math.min,Oc=Math.max,kc=Math.cos,Ac=Math.sin,jc=Math.abs,Mc=Math.PI,Nc=2*Mc,Pc=typeof Float32Array<`u`,Fc=[];function Ic(e){return Math.round(e/Mc*1e8)/1e8%2*Mc}function Lc(e,t){var n=Ic(e[0]);n<0&&(n+=Nc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Nc?i=n+Nc:t&&n-i>=Nc?i=n-Nc:!t&&n>i?i=n+(Nc-Ic(n-i)):t&&n<i&&(i=n-(Nc-Ic(i-n))),e[0]=n,e[1]=i}var Rc=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n||=0)>0&&(this._ux=jc(n/sa/e)||0,this._uy=jc(n/sa/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(bc.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=jc(e-this._xi),r=jc(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(bc.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(bc.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(bc.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Fc[0]=r,Fc[1]=i,Lc(Fc,a),r=Fc[0];var o=(i=Fc[1])-r;return this.addData(bc.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=kc(i)*n+e,this._yi=Ac(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(bc.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(bc.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;this.data&&this.data.length===t||!Pc||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Pc&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(i=0;i<t;i++){var s=e[i].data;for(o=0;o<s.length;o++)this.data[r++]=s[o]}this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Pc&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Cc[0]=Cc[1]=Tc[0]=Tc[1]=Number.MAX_VALUE,wc[0]=wc[1]=Ec[0]=Ec[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(r=t=e[a],i=n=e[a+1]),o){case bc.M:t=r=e[a++],n=i=e[a++],Tc[0]=r,Tc[1]=i,Ec[0]=r,Ec[1]=i;break;case bc.L:mc(t,n,e[a],e[a+1],Tc,Ec),t=e[a++],n=e[a++];break;case bc.C:_c(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Tc,Ec),t=e[a++],n=e[a++];break;case bc.Q:vc(t,n,e[a++],e[a++],e[a],e[a+1],Tc,Ec),t=e[a++],n=e[a++];break;case bc.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=kc(f)*u+c,i=Ac(f)*d+l),yc(c,l,u,d,f,p,m,Tc,Ec),t=kc(p)*u+c,n=Ac(p)*d+l;break;case bc.R:mc(r=t=e[a++],i=n=e[a++],r+e[a++],i+e[a++],Tc,Ec);break;case bc.Z:t=r,n=i}Gt(Cc,Cc,Tc),Kt(wc,wc,Ec)}return a===0&&(Cc[0]=Cc[1]=wc[0]=wc[1]=0),new X(Cc[0],Cc[1],wc[0]-Cc[0],wc[1]-Cc[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(o=i=e[d],s=a=e[d+1]);var m=-1;switch(f){case bc.M:i=o=e[d++],a=s=e[d++];break;case bc.L:var h=e[d++],g=(y=e[d++])-a;(jc(k=h-i)>n||jc(g)>r||d===t-1)&&(m=Math.sqrt(k*k+g*g),i=h,a=y);break;case bc.C:var _=e[d++],v=e[d++],y=(h=e[d++],e[d++]),b=e[d++],x=e[d++];m=Ar(i,a,_,v,h,y,b,x,10),i=b,a=x;break;case bc.Q:m=Fr(i,a,_=e[d++],v=e[d++],h=e[d++],y=e[d++],10),i=h,a=y;break;case bc.A:var S=e[d++],C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=D+E;d+=1,p&&(o=kc(E)*w+S,s=Ac(E)*T+C),m=Oc(w,T)*Dc(Nc,Math.abs(D)),i=kc(O)*w+S,a=Ac(O)*T+C;break;case bc.R:o=i=e[d++],s=a=e[d++],m=2*e[d++]+2*e[d++];break;case bc.Z:var k=o-i;g=s-a,m=Math.sqrt(k*k+g*g),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,c,l,u,d,f=this.data,p=this._ux,m=this._uy,h=this._len,g=t<1,_=0,v=0,y=0;if(!g||(this._pathSegLen||this._calculateLength(),c=this._pathSegLen,l=t*this._pathLen))t:for(var b=0;b<h;){var x=f[b++],S=b===1;switch(S&&(n=i=f[b],r=a=f[b+1]),x!==bc.L&&y>0&&(e.lineTo(u,d),y=0),x){case bc.M:n=i=f[b++],r=a=f[b++],e.moveTo(i,a);break;case bc.L:o=f[b++],s=f[b++];var C=jc(o-i),w=jc(s-a);if(C>p||w>m){if(g){if(_+(me=c[v++])>l){var T=(l-_)/me;e.lineTo(i*(1-T)+o*T,a*(1-T)+s*T);break t}_+=me}e.lineTo(o,s),i=o,a=s,y=0}else{var E=C*C+w*w;E>y&&(u=o,d=s,y=E)}break;case bc.C:var D=f[b++],O=f[b++],k=f[b++],A=f[b++],j=f[b++],ee=f[b++];if(g){if(_+(me=c[v++])>l){kr(i,D,k,j,T=(l-_)/me,xc),kr(a,O,A,ee,T,Sc),e.bezierCurveTo(xc[1],Sc[1],xc[2],Sc[2],xc[3],Sc[3]);break t}_+=me}e.bezierCurveTo(D,O,k,A,j,ee),i=j,a=ee;break;case bc.Q:if(D=f[b++],O=f[b++],k=f[b++],A=f[b++],g){if(_+(me=c[v++])>l){Pr(i,D,k,T=(l-_)/me,xc),Pr(a,O,A,T,Sc),e.quadraticCurveTo(xc[1],Sc[1],xc[2],Sc[2]);break t}_+=me}e.quadraticCurveTo(D,O,k,A),i=k,a=A;break;case bc.A:var te=f[b++],ne=f[b++],re=f[b++],ie=f[b++],ae=f[b++],oe=f[b++],se=f[b++],M=!f[b++],ce=re>ie?re:ie,le=jc(re-ie)>.001,ue=ae+oe,de=!1;if(g&&(_+(me=c[v++])>l&&(ue=ae+oe*(l-_)/me,de=!0),_+=me),le&&e.ellipse?e.ellipse(te,ne,re,ie,se,ae,ue,M):e.arc(te,ne,ce,ae,ue,M),de)break t;S&&(n=kc(ae)*re+te,r=Ac(ae)*ie+ne),i=kc(ue)*re+te,a=Ac(ue)*ie+ne;break;case bc.R:n=i=f[b],r=a=f[b+1],o=f[b++],s=f[b++];var fe=f[b++],N=f[b++];if(g){if(_+(me=c[v++])>l){var pe=l-_;e.moveTo(o,s),e.lineTo(o+Dc(pe,fe),s),(pe-=fe)>0&&e.lineTo(o+fe,s+Dc(pe,N)),(pe-=N)>0&&e.lineTo(o+Oc(fe-pe,0),s+N),(pe-=fe)>0&&e.lineTo(o,s+Oc(N-pe,0));break t}_+=me}e.rect(o,s,fe,N);break;case bc.Z:if(g){var me;if(_+(me=c[v++])>l){T=(l-_)/me,e.lineTo(i*(1-T)+n*T,a*(1-T)+r*T);break t}_+=me}e.closePath(),i=n,a=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=bc,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function zc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;var l=(c=(t-r)/(e-n))*a-o+(e*r-n*t)/(e-n);return l*l/(c*c+1)<=s/2*s/2}function Bc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return!(u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d)&&function(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g=.005,_=1/0;br[0]=c,br[1]=l;for(var v=0;v<1;v+=.05)xr[0]=Tr(e,n,i,o,v),xr[1]=Tr(t,r,a,s,v),(m=Ht(br,xr))<_&&(d=v,_=m);_=1/0;for(var y=0;y<32&&!(g<_r);y++)f=d-g,p=d+g,xr[0]=Tr(e,n,i,o,f),xr[1]=Tr(t,r,a,s,f),m=Ht(xr,br),f>=0&&m<_?(d=f,_=m):(Sr[0]=Tr(e,n,i,o,p),Sr[1]=Tr(t,r,a,s,p),h=Ht(Sr,br),p<=1&&h<_?(d=p,_=h):g*=.5);return u&&(u[0]=Tr(e,n,i,o,d),u[1]=Tr(t,r,a,s,d)),hr(_)}(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Vc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return!(c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l)&&function(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;br[0]=o,br[1]=s;for(var f=0;f<1;f+=.05)xr[0]=jr(e,n,i,f),xr[1]=jr(t,r,a,f),(g=Ht(br,xr))<d&&(l=f,d=g);d=1/0;for(var p=0;p<32&&!(u<_r);p++){var m=l-u,h=l+u;xr[0]=jr(e,n,i,m),xr[1]=jr(t,r,a,m);var g=Ht(xr,br);if(m>=0&&g<d)l=m,d=g;else{Sr[0]=jr(e,n,i,h),Sr[1]=jr(t,r,a,h);var _=Ht(Sr,br);h<=1&&_<d?(l=h,d=_):u*=.5}}return c&&(c[0]=jr(e,n,i,l),c[1]=jr(t,r,a,l)),hr(d)}(e,t,n,r,i,a,s,c,null)<=l/2}var Hc=2*Math.PI;function Uc(e){return(e%=Hc)<0&&(e+=Hc),e}var Wc=2*Math.PI;function Gc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%Wc<1e-4)return!0;if(a){var d=r;r=Uc(i),i=Uc(d)}else r=Uc(r),i=Uc(i);r>i&&(i+=Wc);var f=Math.atan2(c,s);return f<0&&(f+=Wc),f>=r&&f<=i||f+Wc>=r&&f+Wc<=i}function Kc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;o!==1&&o!==0||(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var qc=Rc.CMD,Jc=2*Math.PI,Yc=[-1,-1,-1],Xc=[-1,-1];function Zc(){var e=Xc[0];Xc[0]=Xc[1],Xc[1]=e}function Qc(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Dr(t,r,a,s,l,Yc);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Yc[h],_=g===0||g===1?.5:1;Tr(e,n,i,o,g)<c||(f<0&&(f=Or(t,r,a,s,Xc),Xc[1]<Xc[0]&&f>1&&Zc(),p=Tr(t,r,a,s,Xc[0]),f>1&&(m=Tr(t,r,a,s,Xc[1]))),f===2?g<Xc[0]?d+=p<t?_:-_:g<Xc[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Xc[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function $c(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=function(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Cr(a))wr(o)&&(u=-s/o)>=0&&u<=1&&(i[c++]=u);else{var l=o*o-4*a*s;if(Cr(l))(u=-o/(2*a))>=0&&u<=1&&(i[c++]=u);else if(l>0){var u,d=hr(l),f=(-o-d)/(2*a);(u=(-o+d)/(2*a))>=0&&u<=1&&(i[c++]=u),f>=0&&f<=1&&(i[c++]=f)}}return c}(t,r,a,s,Yc);if(c===0)return 0;var l=Nr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=jr(t,r,a,l),f=0;f<c;f++){var p=Yc[f]===0||Yc[f]===1?.5:1;jr(e,n,i,Yc[f])<o||(Yc[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}return p=Yc[0]===0||Yc[0]===1?.5:1,jr(e,n,i,Yc[0])<o?0:a<t?p:-p}function el(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Yc[0]=-c,Yc[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Jc-1e-4){r=0,i=Jc;var u=a?1:-1;return o>=Yc[0]+e&&o<=Yc[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Jc,i+=Jc);for(var f=0,p=0;p<2;p++){var m=Yc[p];if(m+e>o){var h=Math.atan2(s,m);u=a?1:-1,h<0&&(h=Jc+h),(h>=r&&h<=i||h+Jc>=r&&h+Jc<=i)&&(h>Math.PI/2&&h<1.5*Math.PI&&(u=-u),f+=u)}}return f}function tl(e,t,n,r,i){for(var a,o,s,c,l=e.data,u=e.len(),d=0,f=0,p=0,m=0,h=0,g=0;g<u;){var _=l[g++],v=g===1;switch(_===qc.M&&g>1&&(n||(d+=Kc(f,p,m,h,r,i))),v&&(m=f=l[g],h=p=l[g+1]),_){case qc.M:f=m=l[g++],p=h=l[g++];break;case qc.L:if(n){if(zc(f,p,l[g],l[g+1],t,r,i))return!0}else d+=Kc(f,p,l[g],l[g+1],r,i)||0;f=l[g++],p=l[g++];break;case qc.C:if(n){if(Bc(f,p,l[g++],l[g++],l[g++],l[g++],l[g],l[g+1],t,r,i))return!0}else d+=Qc(f,p,l[g++],l[g++],l[g++],l[g++],l[g],l[g+1],r,i)||0;f=l[g++],p=l[g++];break;case qc.Q:if(n){if(Vc(f,p,l[g++],l[g++],l[g],l[g+1],t,r,i))return!0}else d+=$c(f,p,l[g++],l[g++],l[g],l[g+1],r,i)||0;f=l[g++],p=l[g++];break;case qc.A:var y=l[g++],b=l[g++],x=l[g++],S=l[g++],C=l[g++],w=l[g++];g+=1;var T=!!(1-l[g++]);a=Math.cos(C)*x+y,o=Math.sin(C)*S+b,v?(m=a,h=o):d+=Kc(f,p,a,o,r,i);var E=(r-y)*S/x+y;if(n){if(Gc(y,b,S,C,C+w,T,t,E,i))return!0}else d+=el(y,b,S,C,C+w,T,E,i);f=Math.cos(C+w)*x+y,p=Math.sin(C+w)*S+b;break;case qc.R:if(m=f=l[g++],h=p=l[g++],a=m+l[g++],o=h+l[g++],n){if(zc(m,h,a,h,t,r,i)||zc(a,h,a,o,t,r,i)||zc(a,o,m,o,t,r,i)||zc(m,o,m,h,t,r,i))return!0}else d+=Kc(a,h,a,o,r,i),d+=Kc(m,o,m,h,r,i);break;case qc.Z:if(n){if(zc(f,p,m,h,t,r,i))return!0}else d+=Kc(f,p,m,h,r,i);f=m,p=h}}return n||(s=p,c=h,Math.abs(s-c)<1e-4)||(d+=Kc(f,p,m,h,r,i)||0),d!==0}var nl=it({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$s),rl={style:it({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ec.style)},il=ba.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),al=function(e){function t(t){return e.call(this,t)||this}var n;return P(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<il.length;++s)i[il[s]]=this[il[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=V(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?L(this.style,o):this.useStyle(o):a===`shape`?L(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(W(e)){var t=oi(e,0);return t>.5?ca:t>.2?`#eee`:la}if(e)return la}return ca},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(W(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())==oi(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Rc(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),function(e,t,n,r){return tl(e,t,!0,n,r)}(a,o/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return tl(e,0,!1,t,n)}(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:L(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return At(nl,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=L({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s,c=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=L({},r.shape),L(s,n.shape)):(s=L({},i?this.shape:r.shape),L(s,n.shape)):c&&(s=r.shape),s){if(a){this.shape=L({},this.shape);for(var l={},u=V(s),d=0;d<u.length;d++){var f=u[d];typeof s[f]==`object`?this.shape[f]=s[f]:l[f]=s[f]}this._transitionState(t,{shape:l},o)}else this.shape=s,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n||={},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return rl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return P(n,t),n.prototype.getDefaultStyle=function(){return I(e.style)},n.prototype.getDefaultShape=function(){return I(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type=`path`,n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(rc),ol=it({strokeFirst:!0,font:`12px sans-serif`,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},nl),sl=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t.prototype.hasStroke=function(){return Zs(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return At(ol,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e,t,n;return this._rect||=(e=this.style,t=Ys(e.text),n=e.font,Xs(e,Ea(Sa(n),t),ja(n),null)),this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(rc);sl.prototype.type=`tspan`;var cl=it({x:0,y:0},$s),ll={style:it({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ec.style)},ul=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t.prototype.createStyle=function(e){return At(cl,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r,i=(r=t.image)&&typeof r!=`string`&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var a=e===`width`?`height`:`width`,o=t[a];return o==null?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return ll},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new X(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(rc);ul.prototype.type=`image`;var dl=Math.round;function fl(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(dl(2*r)===dl(2*i)&&(e.x1=e.x2=ml(r,s,!0)),dl(2*a)===dl(2*o)&&(e.y1=e.y2=ml(a,s,!0))),e}}function pl(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=ml(r,s,!0),e.y=ml(i,s,!0),e.width=Math.max(ml(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(ml(i+o,s,!1)-e.y,o===0?0:1)),e}}function ml(e,t,n){if(!t)return e;var r=dl(2*e);return(r+dl(t))%2==0?r/2:(r+(n?1:-1))/2}var hl=function(){this.x=0,this.y=0,this.width=0,this.height=0},gl={},_l=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultShape=function(){return new hl},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=pl(gl,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?function(e,t){var n,r,i,a,o,s=t.x,c=t.y,l=t.width,u=t.height,d=t.r;l<0&&(s+=l,l=-l),u<0&&(c+=u,u=-u),typeof d==`number`?n=r=i=a=d:d instanceof Array?d.length===1?n=r=i=a=d[0]:d.length===2?(n=i=d[0],r=a=d[1]):d.length===3?(n=d[0],r=a=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],a=d[3]):n=r=i=a=0,n+r>l&&(n*=l/(o=n+r),r*=l/o),i+a>l&&(i*=l/(o=i+a),a*=l/o),r+i>u&&(r*=u/(o=r+i),i*=u/o),n+a>u&&(n*=u/(o=n+a),a*=u/o),e.moveTo(s+n,c),e.lineTo(s+l-r,c),r!==0&&e.arc(s+l-r,c+r,r,-Math.PI/2,0),e.lineTo(s+l,c+u-i),i!==0&&e.arc(s+l-i,c+u-i,i,0,Math.PI/2),e.lineTo(s+a,c+u),a!==0&&e.arc(s+a,c+u-a,a,Math.PI/2,Math.PI),e.lineTo(s,c+n),n!==0&&e.arc(s+n,c+n,n,Math.PI,1.5*Math.PI),e.closePath()}(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(al);_l.prototype.type=`rect`;var vl={fill:`#000`},yl={},bl={style:it({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ec.style)},xl=function(e){function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=vl,n.attr(t),n}return P(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,Ol(e=this.style),z(e.rich,Ol),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new X(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),(r||=e.clone()).union(e)):(r||=o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||vl},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return L(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=V(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},L(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return bl},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;Ks(yl,r.overflowRect,i,a,o,s),i=yl.baseX,a=yl.baseY;var c=function(e,t,n,r){var i=Ys(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=ja(l),f=K(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g,_=t.height;_==null&&r!=null&&(_=r-c);var v=(g=h==null||a!==`break`&&a!==`breakAll`?i?i.split(`
|
|
8
|
+
`):[]:i?Gs(i,t.font,h,a===`breakAll`,0).lines:[]).length*f;if(_??=v,v>_&&p){var y=Math.floor(_/f);m||=g.length>y,v=(g=g.slice(0,y)).length*f}if(i&&u&&h!=null)for(var b=Is(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<g.length;S++)Ls(x,g[S],b),g[S]=x.textLine,m||=x.isTruncated;var C=_,w=0,T=Sa(l);for(S=0;S<g.length;S++)w=Math.max(Ea(T,g[S]),w);h??=w;var E=h;return{lines:g,height:_,outerWidth:E+=s,outerHeight:C+=c,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}(Ml(e),e,yl.outerWidth,yl.outerHeight),l=Nl(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=Aa(a,c.contentHeight,s);if(l||n){var _=ka(i,f,o),v=Aa(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=jl(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Al(`fill`in e?e.fill:(x=!0,r.fill)),C=kl(`stroke`in e?e.stroke:u||r.autoStroke&&!x?null:(y=2,b=!0,r.stroke)),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(sl),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,El(D,e),g+=m,E.setBoundingRect(Xs(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;Ks(yl,t.overflowRect,i,a,n,r),i=yl.baseX,a=yl.baseY;var o=function(e,t,n,r,i){var a=new Vs,o=Ys(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f,p=t.overflow,m=p!==`break`&&p!==`breakAll`||u==null?null:{width:u,accumWidth:0,breakAll:p===`breakAll`},h=Ps.lastIndex=0;(f=Ps.exec(o))!=null;){var g=f.index;g>h&&Hs(a,o.substring(h,g),t,m),Hs(a,f[2],t,m,f[1]),h=Ps.lastIndex}h<o.length&&Hs(a,o.substring(h,o.length),t,m);var _=[],v=0,y=0,b=p===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}t:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=(M=T.tokens[O]).styleName&&t.rich[M.styleName]||{},A=M.textPadding=k.padding,j=A?A[1]+A[3]:0,ee=M.font=k.font||t.font;M.contentHeight=ja(ee);var te=K(k.height,M.contentHeight);if(M.innerHeight=te,A&&(te+=A[0]+A[2]),M.height=te,M.lineHeight=yt(k.lineHeight,t.lineHeight,te),M.align=k&&k.align||i,M.verticalAlign=k&&k.verticalAlign||`middle`,x&&d!=null&&v+M.lineHeight>d){var ne=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<ne;break t}var re=k.width,ie=re==null||re===`auto`;if(typeof re==`string`&&re.charAt(re.length-1)===`%`)M.percentWidth=re,_.push(M),M.contentWidth=Ea(Sa(ee),M.text);else{if(ie){var ae=k.backgroundColor,oe=ae&&ae.image;oe&&Ns(oe=As(oe))&&(M.width=Math.max(M.width,oe.width*te/oe.height))}var se=b&&u!=null?u-D:null;se!=null&&se<M.width?!ie||se<j?(M.text=``,M.width=M.contentWidth=0):(Fs(S,M.text,se-j,ee,t.ellipsis,{minChar:t.truncateMinChar}),M.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,M.width=M.contentWidth=Ea(Sa(ee),M.text)):M.contentWidth=Ea(Sa(ee),M.text)}M.width+=j,D+=M.width,k&&(E=Math.max(E,M.lineHeight))}C(T,D,E)}for(a.outerWidth=a.width=K(u,y),a.outerHeight=a.height=K(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l,w=0;w<_.length;w++){var M,ce=(M=_[w]).percentWidth;M.width=parseInt(ce,10)/100*a.width}return a}(Ml(e),e,yl.outerWidth,yl.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=ka(i,c,n),f=Aa(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Nl(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(!(D=y[C]).align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E]).align===`right`;)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&Nl(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=jl(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(sl),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Al(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=kl(`stroke`in s?s.stroke:`stroke`in t?t.stroke:u||o||m.autoStroke&&!h?null:(g=2,_=!0,m.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=yt(s.opacity,t.opacity,1),El(p,s),y&&(p.lineWidth=yt(s.lineWidth,t.lineWidth,g),p.lineDash=K(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Xs(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,c,l=e.backgroundColor,u=e.borderWidth,d=e.borderColor,f=l&&l.image,p=l&&!f,m=e.borderRadius,h=this;if(p||e.lineHeight||u&&d){(o=this._getOrCreateChild(_l)).useStyle(o.createStyle()),o.style.fill=null;var g=o.shape;g.x=n,g.y=r,g.width=i,g.height=a,g.r=m,o.dirtyShape()}if(p)(c=o.style).fill=l||null,c.fillOpacity=K(e.fillOpacity,1);else if(f){(s=this._getOrCreateChild(ul)).onload=function(){h.dirtyStyle()};var _=s.style;_.image=l.image,_.x=n,_.y=r,_.width=i,_.height=a}u&&d&&((c=o.style).lineWidth=u,c.stroke=d,c.strokeOpacity=K(e.strokeOpacity,1),c.lineDash=e.borderDash,c.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2));var v=(o||s).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=yt(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Dl(e)&&(t=[e.fontStyle,e.fontWeight,Tl(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Ct(t)||e.textFont||e.font},t}(rc),Sl={left:!0,right:1,center:1},Cl={top:1,bottom:1,middle:1},wl=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Tl(e){return typeof e!=`string`||e.indexOf(`px`)===-1&&e.indexOf(`rem`)===-1&&e.indexOf(`em`)===-1?isNaN(+e)?`12px`:e+`px`:e}function El(e,t){for(var n=0;n<wl.length;n++){var r=wl[n],i=t[r];i!=null&&(e[r]=i)}}function Dl(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Ol(e){if(e){e.font=xl.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Sl[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Cl[n]?n:`top`,e.padding&&=xt(e.padding)}}function kl(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Al(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function jl(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Ml(e){var t=e.text;return t!=null&&(t+=``),t}function Nl(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Z=Zo(),Pl=q([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Fl=`original`,Il=`arrayRows`,Ll=`objectRows`,Rl=`keyedColumns`,zl=`typedArray`,Bl=`column`,Vl=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Hl=function(e){z(Vl,function(t){this[t]=lt(e[t],e)},this)},Ul=1,Wl={},Gl=Zo(),Kl=Zo(),ql=[`emphasis`,`blur`,`select`],Jl=[`normal`,`emphasis`,`blur`,`select`],Yl=`highlight`,Xl=`downplay`,Zl=`select`,Ql=`unselect`,$l=`toggleSelect`,eu=`selectchanged`;function tu(e){return e!=null&&e!==`none`}function nu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function ru(e){nu(e,`emphasis`,2)}function iu(e){e.hoverState===2&&nu(e,`normal`,0)}function au(e){nu(e,`blur`,1)}function ou(e){e.hoverState===1&&nu(e,`normal`,0)}function su(e){e.selected=!0}function cu(e){e.selected=!1}function lu(e,t,n){t(e,n)}function uu(e,t,n){lu(e,t,n),e.isGroup&&e.traverse(function(e){lu(e,t,n)})}function du(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function fu(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return function(e,t,n,r){var i=n&&R(n,`select`)>=0,a=!1;if(e instanceof al){var o=Gl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(tu(s)||tu(c)){var l=(r||={}).style||{};l.fill===`inherit`?(a=!0,r=L({},r),(l=L({},l)).fill=s):!tu(l.fill)&&tu(s)?(a=!0,r=L({},r),(l=L({},l)).fill=ci(s)):!tu(l.stroke)&&tu(c)&&(a||(r=L({},r),l=L({},l)),l.stroke=ci(c)),r.style=l}}if(r&&r.z2==null){a||(r=L({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}(this,0,t,n);if(e===`blur`)return function(e,t,n){var r=R(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}(e,[`opacity`],t,{opacity:1}),o=(n||={}).style||{};return o.opacity??(n=L({},n),o=L({opacity:r?i:.1*a.opacity},o),n.style=o),n}(this,e,n);if(e===`select`)return function(e,t,n){if(n&&n.z2==null){n=L({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}(this,0,n)}return n}function pu(e){e.stateProxy=fu;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=fu),n&&(n.stateProxy=fu)}function mu(e,t){!xu(e,t)&&!e.__highByOuter&&uu(e,ru)}function hu(e,t){!xu(e,t)&&!e.__highByOuter&&uu(e,iu)}function gu(e,t){e.__highByOuter|=1<<(t||0),uu(e,ru)}function _u(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&uu(e,iu)}function vu(e){uu(e,ou)}function yu(e){uu(e,su)}function bu(e){uu(e,cu)}function xu(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Su(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Kl(i),o=function(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){ou(e)}),s&&n.push(i)),a.isBlured=!1}),z(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Cu(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&vu(r)}}if(n||=`coordinateSystem`,e!=null&&t&&t!==`none`){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||au(e)}),ot(t))a(e.getData(),t);else if(G(t))for(var u=V(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Kl(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function wu(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Kl(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){au(e)})}}}function Tu(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s,c=o.findHighDownDispatchers(n),l=0;l<c.length;l++)if(Z(c[l]).focus===`self`){s=!0;break}return{focusSelf:s,dispatchers:c}}function Eu(e){z(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?yu(t):bu(t)})})}function Du(e){var t=[];return e.eachSeries(function(e){z(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Ou(e,t,n){Nu(e,!0),uu(e,pu),function(e,t,n){var r=Z(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}(e,t,n)}function ku(e,t,n,r){r?function(e){Nu(e,!1)}(e):Ou(e,t,n)}var Au=[`emphasis`,`blur`,`select`],ju={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Mu(e,t,n,r){n||=`itemStyle`;for(var i=0;i<Au.length;i++){var a=Au[i],o=t.getModel([a,n]);e.ensureState(a).style=r?r(o):o[ju[n]]()}}function Nu(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Pu(e){return!(!e||!e.__highDownDispatcher)}function Fu(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Iu(e){var t=e.type;return t===`highlight`||t===`downplay`}var Lu=Rc.CMD,Ru=[[],[],[]],zu=Math.sqrt,Bu=Math.atan2,Vu=Math.sqrt,Hu=Math.sin,Uu=Math.cos,Wu=Math.PI;function Gu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ku(e,t){return(e[0]*t[0]+e[1]*t[1])/(Gu(e)*Gu(t))}function qu(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ku(e,t))}function Ju(e,t,n,r,i,a,o,s,c,l,u){var d=Wu/180*c,f=Uu(d)*(e-n)/2+Hu(d)*(t-r)/2,p=-1*Hu(d)*(e-n)/2+Uu(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Vu(m),s*=Vu(m));var h=(i===a?-1:1)*Vu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Uu(d)*g-Hu(d)*_,y=(t+r)/2+Hu(d)*g+Uu(d)*_,b=qu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=qu(x,S);if(Ku(x,S)<=-1&&(C=Wu),Ku(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Wu*1e6)/1e6;C=2*Wu+w%2*Wu}u.addData(l,v,y,o,s,b,C,d,a)}var Yu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Zu=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t.prototype.applyTransform=function(e){},t}(al);function Qu(e){return e.setData!=null}function $u(e,t){var n=function(e){var t=new Rc;if(!e)return t;var n,r=0,i=0,a=r,o=i,s=Rc.CMD,c=e.match(Yu);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Xu)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=r,T=i,E=void 0,D=void 0;switch(d){case`l`:r+=p[g++],i+=p[g++],f=s.L,t.addData(f,r,i);break;case`L`:r=p[g++],i=p[g++],f=s.L,t.addData(f,r,i);break;case`m`:r+=p[g++],i+=p[g++],f=s.M,t.addData(f,r,i),a=r,o=i,d=`l`;break;case`M`:r=p[g++],i=p[g++],f=s.M,t.addData(f,r,i),a=r,o=i,d=`L`;break;case`h`:r+=p[g++],f=s.L,t.addData(f,r,i);break;case`H`:r=p[g++],f=s.L,t.addData(f,r,i);break;case`v`:i+=p[g++],f=s.L,t.addData(f,r,i);break;case`V`:i=p[g++],f=s.L,t.addData(f,r,i);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),r=p[g-2],i=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i),r+=p[g-2],i+=p[g-1];break;case`S`:_=r,v=i,E=t.len(),D=t.data,n===s.C&&(_+=r-D[E-4],v+=i-D[E-3]),f=s.C,w=p[g++],T=p[g++],r=p[g++],i=p[g++],t.addData(f,_,v,w,T,r,i);break;case`s`:_=r,v=i,E=t.len(),D=t.data,n===s.C&&(_+=r-D[E-4],v+=i-D[E-3]),f=s.C,w=r+p[g++],T=i+p[g++],r+=p[g++],i+=p[g++],t.addData(f,_,v,w,T,r,i);break;case`Q`:w=p[g++],T=p[g++],r=p[g++],i=p[g++],f=s.Q,t.addData(f,w,T,r,i);break;case`q`:w=p[g++]+r,T=p[g++]+i,r+=p[g++],i+=p[g++],f=s.Q,t.addData(f,w,T,r,i);break;case`T`:_=r,v=i,E=t.len(),D=t.data,n===s.Q&&(_+=r-D[E-4],v+=i-D[E-3]),r=p[g++],i=p[g++],f=s.Q,t.addData(f,_,v,r,i);break;case`t`:_=r,v=i,E=t.len(),D=t.data,n===s.Q&&(_+=r-D[E-4],v+=i-D[E-3]),r+=p[g++],i+=p[g++],f=s.Q,t.addData(f,_,v,r,i);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],Ju(w=r,T=i,r=p[g++],i=p[g++],S,C,y,b,x,f=s.A,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],Ju(w=r,T=i,r+=p[g++],i+=p[g++],S,C,y,b,x,f=s.A,t)}}d!==`z`&&d!==`Z`||(f=s.Z,t.addData(f),r=a,i=o),n=f}return t.toStatic(),t}(e),r=L({},t);return r.buildPath=function(e){var t,r=Qu(e);r&&e.canSave()?(e.appendPath(n),(t=e.getContext())&&e.rebuildPath(t,1)):(t=r?e.getContext():e)&&n.rebuildPath(t,1)},r.applyTransform=function(e){(function(e,t){if(t){var n,r,i,a,o,s,c=e.data,l=e.len(),u=Lu.M,d=Lu.C,f=Lu.L,p=Lu.R,m=Lu.A,h=Lu.Q;for(i=0,a=0;i<l;){switch(n=c[i++],a=i,r=0,n){case u:case f:r=1;break;case d:r=3;break;case h:r=2;break;case m:var g=t[4],_=t[5],v=zu(t[0]*t[0]+t[1]*t[1]),y=zu(t[2]*t[2]+t[3]*t[3]),b=Bu(-t[1]/y,t[0]/v);c[i]*=v,c[i++]+=g,c[i]*=y,c[i++]+=_,c[i++]*=v,c[i++]*=y,c[i++]+=b,c[i++]+=b,a=i+=2;break;case p:s[0]=c[i++],s[1]=c[i++],Wt(s,s,t),c[a++]=s[0],c[a++]=s[1],s[0]+=c[i++],s[1]+=c[i++],Wt(s,s,t),c[a++]=s[0],c[a++]=s[1]}for(o=0;o<r;o++){var x=Ru[o];x[0]=c[i++],x[1]=c[i++],Wt(x,x,t),c[a++]=x[0],c[a++]=x[1]}}e.increaseVersion()}})(n,e),this.dirtyShape()},r}var ed=function(){this.cx=0,this.cy=0,this.r=0},td=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultShape=function(){return new ed},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(al);td.prototype.type=`circle`;var nd=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},rd=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultShape=function(){return new nd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(al);rd.prototype.type=`ellipse`;var id=Math.PI,ad=2*id,od=Math.sin,sd=Math.cos,cd=Math.acos,ld=Math.atan2,ud=Math.abs,dd=Math.sqrt,fd=Math.max,pd=Math.min,md=1e-4;function hd(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/dd(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*dd(fd(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function gd(e,t){var n,r=fd(t.r,0),i=fd(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!isNaN(s)&&!isNaN(c)){var l=t.cx,u=t.cy,d=!!t.clockwise,f=ud(c-s),p=f>ad&&f%ad;if(p>md&&(f=p),r>md){if(f>ad-md)e.moveTo(l+r*sd(s),u+r*od(s)),e.arc(l,u,r,s,c,!d),i>md&&(e.moveTo(l+i*sd(c),u+i*od(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*sd(s),j=r*od(s),ee=i*sd(c),te=i*od(c),ne=f>md;if(ne){var re=t.cornerRadius;re&&(n=function(e){var t;if(H(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}(re),m=n[0],h=n[1],g=n[2],_=n[3]);var ie=ud(r-i)/2;if(v=pd(ie,g),y=pd(ie,_),b=pd(ie,m),x=pd(ie,h),w=S=fd(v,y),T=C=fd(b,x),(S>md||C>md)&&(E=r*sd(c),D=r*od(c),O=i*sd(s),k=i*od(s),f<id)){var ae=function(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<md))return[e+(f=(u*(t-a)-d*(e-i))/f)*c,t+f*l]}(A,j,O,k,E,D,ee,te);if(ae){var oe=A-ae[0],se=j-ae[1],M=E-ae[0],ce=D-ae[1],le=1/od(cd((oe*M+se*ce)/(dd(oe*oe+se*se)*dd(M*M+ce*ce)))/2),ue=dd(ae[0]*ae[0]+ae[1]*ae[1]);w=pd(S,(r-ue)/(le+1)),T=pd(C,(i-ue)/(le-1))}}}if(ne){if(w>md){var de=pd(g,w),fe=pd(_,w),N=hd(O,k,A,j,r,de,d),pe=hd(E,D,ee,te,r,fe,d);e.moveTo(l+N.cx+N.x0,u+N.cy+N.y0),w<S&&de===fe?e.arc(l+N.cx,u+N.cy,w,ld(N.y0,N.x0),ld(pe.y0,pe.x0),!d):(de>0&&e.arc(l+N.cx,u+N.cy,de,ld(N.y0,N.x0),ld(N.y1,N.x1),!d),e.arc(l,u,r,ld(N.cy+N.y1,N.cx+N.x1),ld(pe.cy+pe.y1,pe.cx+pe.x1),!d),fe>0&&e.arc(l+pe.cx,u+pe.cy,fe,ld(pe.y1,pe.x1),ld(pe.y0,pe.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d)}else e.moveTo(l+A,u+j);i>md&&ne?T>md?(de=pd(m,T),N=hd(ee,te,E,D,i,-(fe=pd(h,T)),d),pe=hd(A,j,O,k,i,-de,d),e.lineTo(l+N.cx+N.x0,u+N.cy+N.y0),T<C&&de===fe?e.arc(l+N.cx,u+N.cy,T,ld(N.y0,N.x0),ld(pe.y0,pe.x0),!d):(fe>0&&e.arc(l+N.cx,u+N.cy,fe,ld(N.y0,N.x0),ld(N.y1,N.x1),!d),e.arc(l,u,i,ld(N.cy+N.y1,N.cx+N.x1),ld(pe.cy+pe.y1,pe.cx+pe.x1),d),de>0&&e.arc(l+pe.cx,u+pe.cy,de,ld(pe.y1,pe.x1),ld(pe.y0,pe.x0),!d))):(e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)):e.lineTo(l+ee,u+te)}}else e.moveTo(l,u);e.closePath()}}}var _d=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},vd=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultShape=function(){return new _d},t.prototype.buildPath=function(e,t){gd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(al);vd.prototype.type=`sector`;var yd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},bd=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultShape=function(){return new yd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(al);function xd(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=function(e,t,n,r){var i,a,o,s,c=[],l=[],u=[],d=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Gt(o,o,e[f]),Kt(s,s,e[f]);Gt(o,o,r[0]),Kt(s,s,r[1])}for(f=0,p=e.length;f<p;f++){var m=e[f];if(n)i=e[f?f-1:p-1],a=e[(f+1)%p];else{if(f===0||f===p-1){c.push(Pt(e[f]));continue}i=e[f-1],a=e[f+1]}Lt(l,a,i),Rt(l,l,t);var h=Bt(m,i),g=Bt(m,a),_=h+g;_!==0&&(h/=_,g/=_),Rt(u,l,-h),Rt(d,l,g);var v=It([],m,u),y=It([],m,d);r&&(Kt(v,v,o),Gt(v,v,s),Kt(y,y,o),Gt(y,y,s)),c.push(v),c.push(y)}return n&&c.push(c.shift()),c}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[2*s],l=a[2*s+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]),s=1;for(var d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}bd.prototype.type=`ring`;var Sd=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Cd=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultShape=function(){return new Sd},t.prototype.buildPath=function(e,t){xd(e,t,!0)},t}(al);Cd.prototype.type=`polygon`;var wd=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Td=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new wd},t.prototype.buildPath=function(e,t){xd(e,t,!1)},t}(al);Td.prototype.type=`polyline`;var Ed={},Dd=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Od=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Dd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=fl(Ed,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(al);Od.prototype.type=`line`;var kd=[],Ad=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function jd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Er:Tr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Er:Tr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Mr:jr)(e.x1,e.cpx1,e.x2,t),(n?Mr:jr)(e.y1,e.cpy1,e.y2,t)]}var Md=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ad},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Pr(n,o,i,u,kd),o=kd[1],i=kd[2],Pr(r,s,a,u,kd),s=kd[1],a=kd[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(kr(n,o,c,i,u,kd),o=kd[1],c=kd[2],i=kd[3],kr(r,s,l,a,u,kd),s=kd[1],l=kd[2],a=kd[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return jd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=jd(this.shape,e,!0);return zt(t,t)},t}(al);Md.prototype.type=`bezier-curve`;var Nd=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Pd=function(e){function t(t){return e.call(this,t)||this}return P(t,e),t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Nd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(al);Pd.prototype.type=`arc`;var Fd=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return P(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),al.prototype.getBoundingRect.call(this)},t}(al),Id=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Ld=function(e){function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return P(t,e),t}(Id),Rd=function(e){function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return P(t,e),t}(Id),zd=Math.min,Bd=Math.max,Vd=Math.abs,Hd=[0,0],Ud=[0,0],Wd=Gn(),Gd=Wd.minTv,Kd=Wd.maxTv,qd=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Y;for(n=0;n<2;n++)this._axes[n]=new Y;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);for(Y.sub(r[0],n[1],n[0]),Y.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize(),c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Y.set(t,0,0),Wd.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||i||Wd.negativeSize||Y.copy(t,r?Wd.useDir?Wd.dirMinTv:Gd:Kd),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Hd),e._getProjMinMaxOnAxis(a,t._corners,Ud),Wd.negativeSize||Hd[1]<Ud[0]||Hd[0]>Ud[1]){if(i=!1,Wd.negativeSize||n)return i;var s=Vd(Ud[0]-Hd[1]),c=Vd(Hd[0]-Ud[1]);zd(s,c)>Kd.len()&&(s<c?Y.scale(Kd,o,-s*r):Y.scale(Kd,o,c*r))}else n||(s=Vd(Ud[0]-Hd[1]),c=Vd(Hd[0]-Ud[1]),(Wd.useDir||zd(s,c)<Gd.len())&&((s<c||!Wd.bidirectional)&&(Y.scale(Gd,o,s*r),Wd.useDir&&Wd.calcDirMTV()),(s>=c||!Wd.bidirectional)&&(Y.scale(Gd,o,-c*r),Wd.useDir&&Wd.calcDirMTV())))}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=zd(l,o),s=Bd(l,s)}n[0]=o+Wd.touchThreshold,n[1]=s-Wd.touchThreshold,Wd.negativeSize=n[1]<n[0]},e}(),Jd=[],Yd=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return P(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new X(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Jd)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(rc),Xd=Zo();function Zd(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=e===`update`;if(t&&t.isAnimationEnabled()){var c=void 0,l=void 0,u=void 0;return r?(c=K(r.duration,200),l=K(r.easing,`cubicOut`),u=0):(c=t.getShallow(s?`animationDurationUpdate`:`animationDuration`),l=t.getShallow(s?`animationEasingUpdate`:`animationEasing`),u=t.getShallow(s?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(c=a.duration),a.easing!=null&&(l=a.easing),a.delay!=null&&(u=a.delay)),U(u)&&(u=u(n,i)),U(c)&&(c=c(n)),{duration:c||0,delay:u,easing:l}}return null}function Qd(e,t,n,r,i,a,o){var s,c=!1;U(i)?(o=a,a=i,i=null):G(i)&&(a=i.cb,o=i.during,c=i.isFrom,s=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Zd(e,r,i,l?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d={duration:u.duration,delay:u.delay||0,easing:u.easing,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};c?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!c&&t.attr(n),o&&o(1),a&&a()}function $d(e,t,n,r,i,a){Qd(`update`,e,t,n,r,i,a)}function ef(e,t,n,r,i,a){Qd(`enter`,e,t,n,r,i,a)}function tf(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function nf(e,t,n,r,i,a){tf(e)||Qd(`leave`,e,t,n,r,i,a)}function rf(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),nf(e,{style:{opacity:0}},t,n,r)}function af(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||rf(e,t,n,r)}):rf(e,t,n,r)}function of(e){Xd(e).oldStyle=e.style}var sf=e({Arc:()=>Pd,BezierCurve:()=>Md,BoundingRect:()=>X,Circle:()=>td,CompoundPath:()=>Fd,Ellipse:()=>rd,Group:()=>Ja,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>ul,IncrementalDisplayable:()=>Yd,Line:()=>Od,LinearGradient:()=>Ld,OrientedBoundingRect:()=>qd,Path:()=>al,Point:()=>Y,Polygon:()=>Cd,Polyline:()=>Td,RadialGradient:()=>Rd,Rect:()=>_l,Ring:()=>bd,Sector:()=>vd,Text:()=>xl,WH:()=>uf,XY:()=>lf,applyTransform:()=>Tf,calcZ2Range:()=>Kf,clipPointsByRect:()=>kf,clipRectByRect:()=>Af,createIcon:()=>jf,decomposeTransform:()=>Xf,ensureCopyRect:()=>Uf,ensureCopyTransform:()=>Wf,expandOrShrinkRect:()=>Ff,extendPath:()=>pf,extendShape:()=>df,getCurrentCanvasPainter:()=>Qf,getShapeClass:()=>hf,getTransform:()=>wf,groupTransition:()=>Of,initProps:()=>ef,isBoundingRectAxisAligned:()=>Vf,isElementRemoved:()=>tf,lineLineIntersect:()=>Nf,linePolygonIntersect:()=>Mf,makeImage:()=>_f,makePath:()=>gf,mergePath:()=>yf,payloadDisableAnimation:()=>Yf,registerShape:()=>mf,removeElement:()=>nf,removeElementWithFadeOut:()=>af,resizePath:()=>bf,retrieveZInfo:()=>Gf,setTooltipConfig:()=>Rf,subPixelOptimize:()=>Cf,subPixelOptimizeLine:()=>xf,subPixelOptimizeRect:()=>Sf,transformDirection:()=>Ef,traverseElements:()=>Bf,traverseUpdateZ:()=>qf,updateProps:()=>$d}),cf={},lf=[`x`,`y`],uf=[`width`,`height`];function df(e){return al.extend(e)}var ff=function(e,t){var n=$u(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return P(t,e),t}(Zu)};function pf(e,t){return ff(e,t)}function mf(e,t){cf[e]=t}function hf(e){if(cf.hasOwnProperty(e))return cf[e]}function gf(e,t,n,r){var i=function(e,t){return new Zu($u(e,t))}(e,t);return n&&(r===`center`&&(n=vf(n,i.getBoundingRect())),bf(i,n)),i}function _f(e,t,n){var r=new ul({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(vf(t,i))}}});return r}function vf(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var yf=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new al(t);return o.createPathProxy(),o.buildPath=function(e){if(Qu(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o};function bf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function xf(e,t){return fl(e,e,{lineWidth:t}),e}function Sf(e,t){return pl(e,e,t),e}var Cf=ml;function wf(e,t){for(var n=yn([]);e&&e!==t;)xn(n,e.getLocalTransform(),n),e=e.parent;return n}function Tf(e,t,n){return t&&!ot(t)&&(t=va.getLocalTransform(t)),n&&(t=wn([],t)),Wt([],e,t)}function Ef(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:ro(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:ro(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Tf(a,t,n),ro(a[0])>ro(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Df(e){return!e.isGroup}function Of(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){Df(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(Df(e)&&e.anid){var t=i[e.anid];if(t){var r=a(e);e.attr(a(t)),$d(e,r,n,Z(e).dataIndex)}}})}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return e.shape!=null}(e)&&(t.shape=I(e.shape)),t}}function kf(e,t){return B(e,function(e){var n=e[0];n=no(n,t.x),n=to(n,t.x+t.width);var r=e[1];return r=no(r,t.y),[n,r=to(r,t.y+t.height)]})}function Af(e,t){var n=no(e.x,t.x),r=to(e.x+e.width,t.x+t.width),i=no(e.y,t.y),a=to(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function jf(e,t,n){var r=L({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),it(i,n),new ul(r)):gf(e.replace(`path://`,``),r,n,`center`)}function Mf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Nf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Nf(e,t,n,r,i,a,o,s){var c,l=n-e,u=r-t,d=o-i,f=s-a,p=Pf(d,f,l,u);if((c=p)<=1e-6&&c>=-1e-6)return!1;var m=e-i,h=t-a,g=Pf(m,h,l,u)/p;if(g<0||g>1)return!1;var _=Pf(m,h,d,f)/p;return!(_<0||_>1)}function Pf(e,t,n,r){return e*r-n*t}function Ff(e,t,n,r,i){return t==null||(ft(t)?If[0]=If[1]=If[2]=If[3]=t:(If[0]=t[0],If[1]=t[1],If[2]=t[2],If[3]=t[3]),r&&(If[0]=no(0,If[0]),If[1]=no(0,If[1]),If[2]=no(0,If[2]),If[3]=no(0,If[3])),n&&(If[0]=-If[0],If[1]=-If[1],If[2]=-If[2],If[3]=-If[3]),Lf(e,If,`x`,`width`,3,1,i&&i[0]||0),Lf(e,If,`y`,`height`,0,2,i&&i[1]||0)),e}var If=[0,0,0,0];function Lf(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=no(0,to(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:ro(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Rf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=W(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&z(V(c),function(e){J(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Z(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:it({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function zf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Bf(e,t){if(e){if(H(e))for(var n=0;n<e.length;n++)zf(e[n],t);else zf(e,t)}}function Vf(e){return!e||ro(e[1])<Hf&&ro(e[2])<Hf||ro(e[0])<Hf&&ro(e[3])<Hf}var Hf=1e-5;function Uf(e,t){return e?X.copy(e,t):t.clone()}function Wf(e,t){return t?bn(e||[1,0,0,1,0,0],t):void 0}function Gf(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Kf(e){var t=-1/0,n=1/0;function r(e){if(e&&!e.isGroup){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return zf(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())}),n>t&&(n=t=0),{min:n,max:t}}function qf(e,t,n){Jf(e,t,n,-1/0)}function Jf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=no(Jf(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=no(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function Yf(e){return e.animation={duration:0},e}function Xf(e,t){return t?bn(Zf.transform,t):yn(Zf.transform),Zf.decomposeTransform(),xa(e,Zf),e}var Zf=new va;function Qf(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Zf.transform=[1,0,0,1,0,0],mf(`circle`,td),mf(`ellipse`,rd),mf(`sector`,vd),mf(`ring`,bd),mf(`polygon`,Cd),mf(`polyline`,Td),mf(`rect`,_l),mf(`line`,Od),mf(`bezierCurve`,Md),mf(`arc`,Pd);var $f={};function ep(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(a,`normal`,null,o,s&&s.get(`formatter`),n==null?null:{interpolatedValue:n})),r??=U(e.defaultText)?e.defaultText(a,e,n):e.defaultText;for(var c={normal:r},l=0;l<ql.length;l++){var u=ql[l],d=t[u];c[u]=K(i?i.getFormattedLabel(a,u,null,o,d&&d.get(`formatter`)):null,r)}return c}function tp(e,t,n,r){n||=$f;for(var i=e instanceof xl,a=!1,o=0;o<Jl.length;o++)if((f=t[Jl[o]])&&f.getShallow(`show`)){a=!0;break}var s=i?e:e.getTextContent();if(a){i||(s||(s=new xl,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var c=ep(n,t),l=t.normal,u=!!l.getShallow(`show`),d=rp(l,r&&r.normal,n,!1,!i);for(d.text=c.normal,i||e.setTextConfig(ip(l,n,!1)),o=0;o<ql.length;o++){var f,p=ql[o];if(f=t[p]){var m=s.ensureState(p),h=!!K(f.getShallow(`show`),u);h!==u&&(m.ignore=!h),m.style=rp(f,r&&r[p],n,!0,!i),m.style.text=c[p],!i&&(e.ensureState(p).textConfig=ip(f,n,!0))}}s.silent=!!l.getShallow(`silent`),s.style.x!=null&&(d.x=s.style.x),s.style.y!=null&&(d.y=s.style.y),s.ignore=!u,s.useStyle(d),s.dirty(),n.enableTextSetter&&(lp(s).setLabelText=function(e){var r=ep(n,t,e);(function(e,t){for(var n=0;n<ql.length;n++){var r=ql[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)})(s,r)})}else s&&(s.ignore=!0);e.dirty()}function np(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<ql.length;r++){var i=ql[r];n[i]=e.getModel([i,t])}return n}function rp(e,t,n,r,i){var a={};return function(e,t,n,r,i){n||=$f;var a,o=t.ecModel,s=o&&o.option.textStyle,c=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||$f).rich;if(n){t||={};for(var r=V(n),i=0;i<r.length;i++)t[r[i]]=1}e=e.parentModel}return t}(t);if(c){a={};var l=`richInheritPlainLabel`,u=K(t.get(l),o?o.get(l):void 0);for(var d in c)if(c.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);cp(a[d]={},f,s,t,u,n,r,i,!1,!0)}}a&&(e.rich=a);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=ft(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=fp.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=xt(_),h.__marginType=fp.textMargin)}cp(e,t,s,null,null,n,r,i,!0,!1)}(a,e,n,r,i),t&&L(a,t),a}function ip(e,t,n){t||={};var r,i={},a=e.getShallow(`rotate`),o=K(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return(r=e.getShallow(`position`)||(n?null:`inside`))===`outside`&&(r=t.defaultOutsidePosition||`top`),r!=null&&(i.position=r),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}var ap=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],op=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],sp=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function cp(e,t,n,r,i,a,o,s,c,l){n=!o&&n||$f;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=K(t.getShallow(`opacity`),n.opacity);d!==`inherit`&&d!==`auto`||(d=u||null),f!==`inherit`&&f!==`auto`||(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=K(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=K(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=K(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),o||p!=null||l||(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),o||s||e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<ap.length;_++){var v=ap[_];(b=!1!==i&&r?yt(t.getShallow(v),r.getShallow(v),n[v]):K(t.getShallow(v),n[v]))!=null&&(e[v]=b)}for(_=0;_<op.length;_++)v=op[_],(b=t.getShallow(v))!=null&&(e[v]=b);if(e.verticalAlign==null){var y=t.getShallow(`baseline`);y!=null&&(e.verticalAlign=y)}if(!c||!a.disableBox){for(_=0;_<sp.length;_++){var b;v=sp[_],(b=t.getShallow(v))!=null&&(e[v]=b)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),e.backgroundColor!==`auto`&&e.backgroundColor!==`inherit`||!u||(e.backgroundColor=u),e.borderColor!==`auto`&&e.borderColor!==`inherit`||!u||(e.borderColor=u)}}var lp=Zo(),up,dp,fp={minMargin:1,textMargin:2},pp=[`textStyle`,`color`],mp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],hp=new xl,gp=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(pp):null)},e.prototype.getFont=function(){return e={fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},t=this.ecModel,n=t&&t.getModel(`textStyle`),Ct([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `));var e,t,n},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<mp.length;n++)t[mp[n]]=this.getShallow(mp[n]);return hp.useStyle(t),hp.update(),hp.getBoundingRect()},e}(),_p=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],vp=Es(_p),yp=function(){function e(){}return e.prototype.getLineStyle=function(e){return vp(this,e)},e}(),bp=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],xp=Es(bp),Sp=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return xp(this,e,t)},e}(),Cp=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){rt(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new this.constructor(I(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!F.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||(n=n&&typeof n==`object`?n[e[r]]:null)!=null);r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();bs(Cp),up=Cp,dp=[`__\0is_clz`,Ss++].join(`_`),up.prototype[dp]=!0,up.isInstance=function(e){return!(!e||!e[dp])},at(Cp,yp),at(Cp,Sp),at(Cp,Os),at(Cp,gp);var wp=Math.round(10*Math.random());function Tp(e){return[e||``,wp++].join(`_`)}function Ep(e,t){return rt(rt({},e,!0),t,!0)}var Dp=`ZH`,Op=`EN`,kp=Op,Ap={},jp={},Mp=F.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||kp).toUpperCase().indexOf(Dp)>-1?Dp:kp;function Np(e,t){e=e.toUpperCase(),jp[e]=new Cp(t),Ap[e]=t}Np(Op,{time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}}),Np(Dp,{time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}});function Pp(){return null}function Fp(e,t){return t.breakOption,t.breakParsed}function Ip(e){var t=e.brk;return t?t.breaks:[]}function Lp(e){var t=e.brk;return!!t&&t.hasBreaks()}var Rp=1e3,zp=6e4,Bp=36e5,Vp=864e5,Hp=31536e6,Up={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Wp={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Gp=`{yyyy}-{MM}-{dd}`,Kp={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Gp,hour:Gp+` `+Wp.hour,minute:Gp+` `+Wp.minute,second:Gp+` `+Wp.second,millisecond:`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`},qp=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Jp=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Yp(e){return W(e)||U(e)?e:function(e){e||={};var t={},n=!0;return z(qp,function(t){n&&=e[t]==null}),z(qp,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=qp[s],l=G(a)&&!H(a)?a[c]:a,u=void 0;H(l)?o=(u=l.slice())[0]||``:W(l)?u=[o=l]:(o==null?o=Wp[r]:Up[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}(e)}function Xp(e,t){return`0000`.substr(0,t-(e+=``).length)+e}function Zp(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Qp(e){return e===Zp(e)}function $p(e,t,n,r){var i=wo(e),a=i[nm(n)](),o=i[rm(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[im(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[am(n)](),d=(u-1)%12+1,f=i[om(n)](),p=i[sm(n)](),m=i[cm(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Cp?r:function(e){return jp[e]}(r||Mp)||jp[kp]).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Xp(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Xp(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Xp(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Xp(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Xp(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Xp(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Xp(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Xp(m,3)).replace(/{S}/g,m+``)}function em(e,t){var n=wo(e),r=n[rm(t)]()+1,i=n[im(t)](),a=n[am(t)](),o=n[om(t)](),s=n[sm(t)](),c=n[cm(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function tm(e,t,n){switch(t){case`year`:e[um(n)](0);case`month`:e[dm(n)](1);case`day`:e[fm(n)](0);case`hour`:e[pm(n)](0);case`minute`:e[mm(n)](0);case`second`:e[hm(n)](0)}return e}function nm(e){return e?`getUTCFullYear`:`getFullYear`}function rm(e){return e?`getUTCMonth`:`getMonth`}function im(e){return e?`getUTCDate`:`getDate`}function am(e){return e?`getUTCHours`:`getHours`}function om(e){return e?`getUTCMinutes`:`getMinutes`}function sm(e){return e?`getUTCSeconds`:`getSeconds`}function cm(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function lm(e){return e?`setUTCFullYear`:`setFullYear`}function um(e){return e?`setUTCMonth`:`setMonth`}function dm(e){return e?`setUTCDate`:`setDate`}function fm(e){return e?`setUTCHours`:`setHours`}function pm(e){return e?`setUTCMinutes`:`setMinutes`}function mm(e){return e?`setUTCSeconds`:`setSeconds`}function hm(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function gm(e){if(isNaN(Oo(e)))return W(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function _m(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var vm=xt;function ym(e,t,n){function r(e){return e&&Ct(e)?e:`-`}function i(e){return Mo(e)}var a=t===`time`,o=e instanceof Date;if(a||o){var s=a?wo(e):e;if(!isNaN(+s))return $p(s,`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`,n);if(o)return`-`}if(t===`ordinal`)return dt(e)?r(e):ft(e)&&i(e)?e+``:`-`;var c=Oo(e);return i(c)?gm(c):dt(e)?r(e):typeof e==`boolean`?e+``:`-`}var bm=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],xm=function(e,t){return`{`+e+(t??``)+`}`};function Sm(e,t,n){H(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=bm[a];e=e.replace(xm(o),xm(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(xm(bm[c],s),n?on(l):l)}return e}function Cm(e,t){return t||=`transparent`,W(e)?e:G(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function wm(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Tm={},Em={},Dm=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){function n(n,r){var i=[];return z(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}this._nonSeriesBoxMasterList=n(Tm,!0),this._normalMasterList=n(Em,!1)},e.prototype.update=function(e,t){z(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){e!==`matrix`&&e!==`calendar`?Em[e]=t:Tm[e]=t},e.get=function(e){return Em[e]||Tm[e]},e}(),Om=q();function km(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Om.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function Am(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,a||function(e){return!!Tm[e]}(n)||(i=0))}return{coordSysType:n,kind:i}}var jm=z,Mm=[`left`,`right`,`top`,`bottom`,`width`,`height`],Nm=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Pm(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u,d,f=c.getBoundingRect(),p=t.childAt(l+1),m=p&&p.getBoundingRect();if(e===`horizontal`){var h=f.width+(m?-m.x+f.x:0);(u=a+h)>r||c.newline?(a=0,u=h,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(m?-m.y+f.y:0);(d=o+g)>i||c.newline?(a+=s+n,o=0,d=g,s=f.width):s=Math.max(s,f.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=u+n:o=d+n)})}var Fm=Pm;ut(Pm,`vertical`),ut(Pm,`horizontal`);function Im(e,t){var n=function(e,t){var n,r,i=zm(e,t,{enableLayoutOnlyByCenter:!0}),a=e.getBoxLayoutParams();if(i.type===Rm.point)r=i.refPoint,n=Lm(a,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=H(o)?o:[o,o];n=Lm(a,i.refContainer),r=i.boxCoordFrom===2?i.refPoint:[mo(s[0],n.width)+n.x,mo(s[1],n.height)+n.y]}return{viewRect:n,center:r}}(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);H(a)||(a=[0,a]);var o=mo(r.width,t.getWidth()),s=mo(r.height,t.getHeight()),c=Math.min(o,s),l=mo(a[0],c/2),u=mo(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function Lm(e,t,n){n=vm(n||0);var r=t.width,i=t.height,a=mo(e.left,r),o=mo(e.top,i),s=mo(e.right,r),c=mo(e.bottom,i),l=mo(e.width,r),u=mo(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=.8*r:u=.8*i),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new X((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var Rm={rect:1,point:2};function zm(e,t,n){var r,i,a,o,s=e.boxCoordinateSystem;if(s){var c=km(e),l=c.coord,u=c.from;if(s.dataToLayout){a=Rm.rect,o=u;var d=s.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(a=Rm.point,o=u,i=s.dataToPoint(l))}return a??=Rm.rect,a===Rm.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:o}}function Bm(e,t,n,r,i,a){var o,s=!i||!i.hv||i.hv[0],c=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||`all`;if((a||=e).x=e.x,a.y=e.y,!s&&!c)return!1;if(l===`raw`)o=e.type===`group`?new X(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(o=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();(o=o.clone()).applyTransform(u)}var d=Lm(it({width:o.width,height:o.height},t),n,r),f=s?d.x-o.x:0,p=c?d.y-o.y:0;return l===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Vm(e){var t=e.layoutMode||e.constructor.layoutMode;return G(t)?t:t?{type:t}:null}function Hm(e,t,n){var r=n&&n.ignoreSize;!H(r)&&(r=[r,r]);var i=o(Nm[0],0),a=o(Nm[1],1);function o(n,i){var a={},o=0,c={},l=0;if(jm(n,function(t){c[t]=e[t]}),jm(n,function(e){J(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l!==2&&o){if(o>=2)return a;for(var u=0;u<n.length;u++){var d=n[u];if(!J(a,d)&&J(e,d)){a[d]=e[d];break}}return a}return c}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){jm(e,function(e){t[e]=n[e]})}c(Nm[0],e,i),c(Nm[1],e,a)}function Um(e){return Wm({},e)}function Wm(e,t){return t&&e&&jm(Mm,function(n){J(t,n)&&(e[n]=t[n])}),e}var Gm=Zo(),Km=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Tp(`ec_cpt_model`),i}var n;return P(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vm(this),r=n?Um(e):{};rt(e,t.getTheme().get(this.mainType)),rt(e,this.getDefaultOption()),n&&Hm(e,r,n)},t.prototype.mergeOption=function(e,t){rt(this.option,e,!0);var n=Vm(this);n&&Hm(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[vs])}(e))return e.defaultOption;var t=Gm(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=rt(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return ns(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return t=!1,{left:(e=this).getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)};var e,t},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type=`component`,n.id=``,n.name=``,n.mainType=``,n.subType=``,void(n.componentIndex=0)),t}(Cp);xs(Km,Cp),Ts(Km),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=ys(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=ys(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}(Km),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,a){if(e.length){var o=function(e){var r={},i=[];return z(e,function(a){var o=n(r,a),s=function(e,t){var n=[];return z(e,function(e){R(t,e)>=0&&n.push(e)}),n}(o.originalDeps=t(a),e);o.entryCount=s.length,o.entryCount===0&&i.push(a),z(s,function(e){R(o.predecessor,e)<0&&o.predecessor.push(e);var t=n(r,e);R(t.successor,e)<0&&t.successor.push(a)})}),{graph:r,noEntryList:i}}(r),s=o.graph,c=o.noEntryList,l={};for(z(e,function(e){l[e]=!0});c.length;){var u=c.pop(),d=s[u],f=!!l[u];f&&(i.call(a,u,d.originalDeps.slice()),delete l[u]),z(d.successor,f?m:p)}z(l,function(){throw Error(``)})}function p(e){s[e].entryCount--,s[e].entryCount===0&&c.push(e)}function m(e){l[e]=!0,p(e)}}}(Km,function(e){var t=[];return z(Km.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=B(t,function(e){return ys(e).main}),e!==`dataset`&&R(t,`dataset`)<=0&&t.unshift(`dataset`),t});var Q={color:{},darkColor:{},size:{}},qm=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var Jm in L(qm,{primary:qm.neutral80,secondary:qm.neutral70,tertiary:qm.neutral60,quaternary:qm.neutral50,disabled:qm.neutral20,border:qm.neutral30,borderTint:qm.neutral20,borderShade:qm.neutral40,background:qm.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:qm.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:qm.neutral70,axisLineTint:qm.neutral40,axisTick:qm.neutral70,axisTickMinor:qm.neutral60,axisLabel:qm.neutral70,axisSplitLine:qm.neutral15,axisMinorSplitLine:qm.neutral05}),qm)if(qm.hasOwnProperty(Jm)){var Ym=qm[Jm];Jm===`theme`?Q.darkColor.theme=qm.theme.slice():Jm===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:Jm.indexOf(`accent`)===0?Q.darkColor[Jm]=ii(Ym,null,function(e){return .5*e},function(e){return Math.min(1,1.3-e)}):Q.darkColor[Jm]=ii(Ym,null,function(e){return .9*e},function(e){return 1-e**1.5})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Xm=``;typeof navigator<`u`&&(Xm=navigator.platform||``);var Zm=`rgba(0, 0, 0, 0.2)`,Qm=Q.color.theme[0],$m=ii(Qm,null,null,.9),eh={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[$m,Qm],aria:{decal:{decals:[{color:Zm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zm,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zm,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xm.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},th=1,nh=2,rh=3,ih=Zo();function ah(e,t,n){var r={},i=sh(t);if(!i||!e)return r;var a,o,s=[],c=[],l=t.ecModel,u=ih(l).datasetMap,d=i.uid+`_`+n.seriesLayoutBy;z(e=e.slice(),function(t,n){var i=G(t)?t:e[n]={name:t};i.type===`ordinal`&&a==null&&(a=n,o=m(i)),r[i.name]=[]});var f=u.get(d)||u.set(d,{categoryWayDim:o,valueWayDim:0});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return z(e,function(e,t){var n=e.name,i=m(e);if(a==null){var o=f.valueWayDim;p(r[n],o,i),p(c,o,i),f.valueWayDim+=i}else a===t?(p(r[n],0,i),p(s,0,i)):(o=f.categoryWayDim,p(r[n],o,i),p(c,o,i),f.categoryWayDim+=i)}),s.length&&(r.itemName=s),c.length&&(r.seriesName=c),r}function oh(e,t,n){var r={};if(!sh(e))return r;var i,a=t.sourceFormat,o=t.dimensionsDefine;a!==`objectRows`&&a!==`keyedColumns`||z(o,function(e,t){(G(e)?e.name:e)===`name`&&(i=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=lh(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);s.push(u);var d=u===rh;if(d&&e.v==null&&c!==i&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===rh)&&(e.n=c),f(e)&&s[e.n]!==rh)return e;d||(u===nh&&r.v==null&&c!==i&&(r.v=c),r.n!=null&&r.n!==r.v||(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=i??s.n;r.itemName=[c],r.seriesName=[c]}return r}function sh(e){if(!e.get(`data`,!0))return ns(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},ts).models[0]}function ch(e,t){return lh(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function lh(e,t,n,r,i,a){var o,s,c;if(mt(e))return rh;if(r){var l=r[a];G(l)?(s=l.name,c=l.type):W(l)&&(s=l)}if(c!=null)return c===`ordinal`?th:rh;if(t===`arrayRows`){var u=e;if(n===`row`){for(var d=u[a],f=0;f<(d||[]).length&&f<5;f++)if((o=v(d[i+f]))!=null)return o}else for(f=0;f<u.length&&f<5;f++){var p=u[i+f];if(p&&(o=v(p[a]))!=null)return o}}else if(t===`objectRows`){var m=e;if(!s)return rh;for(f=0;f<m.length&&f<5;f++)if((g=m[f])&&(o=v(g[s]))!=null)return o}else if(t===`keyedColumns`){if(!s||!(d=e[s])||mt(d))return rh;for(f=0;f<d.length&&f<5;f++)if((o=v(d[f]))!=null)return o}else if(t===`original`){var h=e;for(f=0;f<h.length&&f<5;f++){var g,_=Ho(g=h[f]);if(!H(_))return rh;if((o=v(_[a]))!=null)return o}}function v(e){var t=W(e);return e!=null&&isFinite(Number(e))&&e!==``?t?nh:rh:t&&e!==`-`?th:void 0}return rh}var uh=q(),dh,fh,ph,mh=Zo(),hh=(Zo(),function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=zo(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return function(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o!=null&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;if(u||=n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}(this,mh,r,i,e,t,n)},e.prototype.clearColorPalette=function(){(function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}})(this,mh)},e}()),gh=`\0_ec_inner`,_h=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Cp(r),this._locale=new Cp(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=bh(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,bh(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);this.option&&e!==`recreate`?(this.restoreData(),this._mergeOption(i,t)):ph(this,i),n=!0}if(e!==`timeline`&&e!==`media`||this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&z(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=q(),s=t&&t.replaceMergeMainTypeMap;ih(this).datasetMap=q(),z(e,function(e,t){e!=null&&(Km.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?I(e):rt(n[t],e,!0))}),s&&s.each(function(e,t){Km.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Km.topologicalTravel(a,Km.getAllClassMainTypes(),function(t){var a=function(e,t,n){var r=uh.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,zo(e[t])),o=r.get(t),c=Wo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);(function(e,t,n){z(e,function(e){var r=e.newOption;G(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(c,t,Km),n[t]=null,r.set(t,null),i.set(t,0);var l,u=[],d=[],f=0;z(c,function(e,n){var r=e.existing,i=e.newOption;if(i){var a=t===`series`,o=Km.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(l)return;l=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=L({componentIndex:n},e.keyInfo);L(r=new o(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(u.push(r.option),d.push(r),f++):(u.push(void 0),d.push(void 0))},this),n[t]=u,r.set(t,d),i.set(t,f),t===`series`&&dh(this)},this),this._seriesIndices||dh(this)},t.prototype.getOption=function(){var e=I(this.option);return z(e,function(t,n){if(Km.hasClass(n)){for(var r=zo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Yo(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[gh],e},t.prototype.setTheme=function(e){this._theme=new Cp(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(t);return o&&o.length?(r==null?n=i==null?a==null?ct(o,function(e){return!!e}):vh(`name`,a,o):vh(`id`,i,o):(n=[],z(zo(r),function(e){o[e]&&n.push(o[e])})),yh(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,a,o=e.query,s=e.mainType,c=(n=s+`Index`,r=s+`Id`,i=s+`Name`,!(t=o)||t[n]==null&&t[r]==null&&t[i]==null?null:{mainType:s,index:t[n],id:t[r],name:t[i]});return a=yh(c?this.queryComponents(c):ct(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?ct(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(U(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=W(e)?r.get(e):G(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=qo(e,null);return ct(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return ct(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return ct(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){fh(this),z(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){z(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){fh(this),z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return z(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return fh(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){fh(this);var n=[];z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=q(n)},t.prototype.restoreData=function(e){dh(this);var t=this._componentsMap,n=[];t.each(function(e,t){Km.hasClass(t)&&n.push(t)}),Km.topologicalTravel(n,Km.getAllClassMainTypes(),function(n){z(t.get(n),function(t){!t||n===`series`&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}(t,e)||t.restoreData()})})},t.internalField=(dh=function(e){var t=e._seriesIndices=[];z(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=q(t)},fh=function(e){},void(ph=function(e,t){e.option={},e.option[gh]=1,e._componentsMap=q({series:[]}),e._componentsCount=q();var n=t.aria;G(n)&&n.enabled==null&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;z(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Km.hasClass(r)||(typeof t==`object`?e[r]=e[r]?rt(e[r],t,!1):I(t):e[r]??(e[r]=t))})}(t,e._theme.option),rt(t,eh,!1),e._mergeOption(t,null)})),t}(Cp);function vh(e,t,n){if(H(t)){var r=q();return z(t,function(e){e!=null&&qo(e,null)!=null&&r.set(e,!0)}),ct(n,function(t){return t&&r.get(t[e])})}var i=qo(t,null);return ct(n,function(t){return t&&i!=null&&t[e]===i})}function yh(e,t){return t.hasOwnProperty(`subType`)?ct(e,function(e){return e&&e.subType===t.subType}):e}function bh(e){var t=q();return e&&z(zo(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}at(_h,hh);var xh=/^(min|max)?(.+)$/,Sh=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(z(zo(e.series),function(e){e&&e.data&&mt(e.data)&&Tt(e.data)}),z(zo(e.dataset),function(e){e&&e.source&&mt(e.source)&&Tt(e.source)})),e=I(e);var r=this._optionBackup,i=function(e,t,n){var r,i,a=[],o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(i=o).timeline||(i.timeline=s):((d||u)&&(e.options=e.media=null),i=e),u&&H(l)&&z(l,function(e){e&&e.option&&(e.query?a.push(e):r||=e)});function f(e){z(t,function(t){t(e,n)})}return f(i),z(c,function(e){return f(e)}),z(a,function(e){return f(e.option)}),{baseOption:i,timelineOptions:c||[],mediaDefault:r,mediaList:a}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],I(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=I(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],c=[];if(!a.length&&!o)return c;for(var l=0,u=a.length;l<u;l++)Ch(a[l].query,r,i)&&s.push(l);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(`,`)!==n.join(`,`))&&(c=B(s,function(e){return I(e===-1?o.option:a[e].option)})),this._currentMediaIndices=s,c},e}();function Ch(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return z(e,function(e,t){var n=t.match(xh);if(n&&n[1]&&n[2]){var a=n[1];(function(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t})(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}var wh=z,Th=G,Eh=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function Dh(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Eh.length;n<r;n++){var i=Eh[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?rt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?rt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Oh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,it(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function kh(e){Oh(e,`itemStyle`),Oh(e,`lineStyle`),Oh(e,`areaStyle`),Oh(e,`label`),Oh(e,`labelLine`),Oh(e,`upperLabel`),Oh(e,`edgeLabel`)}function Ah(e,t){var n=Th(e)&&e[t],r=Th(n)&&n.textStyle;if(r)for(var i=0,a=Vo.length;i<a;i++){var o=Vo[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function jh(e){e&&(kh(e),Ah(e,`label`),e.emphasis&&Ah(e.emphasis,`label`))}function Mh(e){return H(e)?e:e?[e]:[]}function Nh(e){return(H(e)?e[0]:e)||{}}function Ph(e,t){wh(Mh(e.series),function(e){Th(e)&&function(e){if(Th(e)){Dh(e),kh(e),Ah(e,`label`),Ah(e,`upperLabel`),Ah(e,`edgeLabel`),e.emphasis&&(Ah(e.emphasis,`label`),Ah(e.emphasis,`upperLabel`),Ah(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(Dh(t),jh(t));var n=e.markLine;n&&(Dh(n),jh(n));var r=e.markArea;r&&jh(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!mt(a))for(var o=0;o<a.length;o++)jh(a[o]);z(e.categories,function(e){kh(e)})}if(i&&!mt(i))for(o=0;o<i.length;o++)jh(i[o]);if((t=e.markPoint)&&t.data){var s=t.data;for(o=0;o<s.length;o++)jh(s[o])}if((n=e.markLine)&&n.data){var c=n.data;for(o=0;o<c.length;o++)H(c[o])?(jh(c[o][0]),jh(c[o][1])):jh(c[o])}e.type===`gauge`?(Ah(e,`axisLabel`),Ah(e,`title`),Ah(e,`detail`)):e.type===`treemap`?(Oh(e.breadcrumb,`itemStyle`),z(e.levels,function(e){kh(e)})):e.type===`tree`&&kh(e.leaves)}}(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),wh(n,function(t){wh(Mh(e[t]),function(e){e&&(Ah(e,`axisLabel`),Ah(e.axisPointer,`label`))})}),wh(Mh(e.parallel),function(e){var t=e&&e.parallelAxisDefault;Ah(t,`axisLabel`),Ah(t&&t.axisPointer,`label`)}),wh(Mh(e.calendar),function(e){Oh(e,`itemStyle`),Ah(e,`dayLabel`),Ah(e,`monthLabel`),Ah(e,`yearLabel`)}),wh(Mh(e.radar),function(e){Ah(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),wh(Mh(e.geo),function(e){Th(e)&&(jh(e),wh(Mh(e.regions),function(e){jh(e)}))}),wh(Mh(e.timeline),function(e){jh(e),Oh(e,`label`),Oh(e,`itemStyle`),Oh(e,`controlStyle`,!0);var t=e.data;H(t)&&z(t,function(e){G(e)&&(Oh(e,`label`),Oh(e,`itemStyle`))})}),wh(Mh(e.toolbox),function(e){Oh(e,`iconStyle`),wh(e.feature,function(e){Oh(e,`iconStyle`)})}),Ah(Nh(e.axisPointer),`label`),Ah(Nh(e.tooltip).axisPointer,`label`)}function Fh(e){e&&z(Ih,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Ih=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Lh=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Rh=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function zh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Rh.length;n++){var r=Rh[n][1],i=Rh[n][0];t[r]!=null&&(t[i]=t[r])}}function Bh(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Vh(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Hh(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Hh(e[n].children,t)}function Uh(e,t){Ph(e,t),e.series=zo(e.series),z(e.series,function(e){if(G(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){if(e.clockWise!=null&&(e.clockwise=e.clockWise),Bh(e.label),(i=e.data)&&!mt(i))for(var n=0;n<i.length;n++)Bh(i[n]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var r=function(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]])!=null;i++);return r}(e,`pointer.color`);r!=null&&function(e,t,n,r){for(var i,a=t.split(`,`),o=e,s=0;s<a.length-1;s++)o[i=a[s]]??(o[i]={}),o=o[i];(r||o[a[s]]==null)&&(o[a[s]]=n)}(e,`itemStyle.color`,r)}else if(t===`bar`){var i;if(zh(e),zh(e.backgroundStyle),zh(e.emphasis),(i=e.data)&&!mt(i))for(n=0;n<i.length;n++)typeof i[n]==`object`&&(zh(i[n]),zh(i[n]&&i[n].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Vh(e),Hh(e.data,Vh)}else t===`graph`||t===`sankey`?function(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&it(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Fh(e)}}),e.dataRange&&(e.visualMap=e.dataRange),z(Lh,function(t){var n=e[t];n&&(H(n)||(n=[n]),z(n,function(e){Fh(e)}))})}var Wh=gs(function(e){var t=q();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),z(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),function(e){z(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d,f,p=o.get(t.stackedDimension,u);if(isNaN(p))return i;s?f=o.getRawIndex(u):d=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(f=g.data.rawIndexOf(g.stackedByDimension,d)),f>=0){var _=g.data.getByRawIndex(g.stackResultDimension,f);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&p>=0&&_>0||c===`samesign`&&p<=0&&_<0){p=yo(p,_),m=_;break}}}return r[0]=p,r[1]=m,r})})}(e))})}),Gh,Kh,qh,Jh,Yh,Xh,Zh=function(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&ch(this,n)===th&&(r.type=`ordinal`)}};function Qh(e){return e instanceof Zh}function $h(e,t,n){n||=tg(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:ng(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?rg(function(e){e!=null&&e!==`-`&&(W(e)?o??=1:o=0)},n,s,10):o=ft(r)?r:+!!r,i||o!==1||(i=[],rg(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return V(t)}(e);else if(t===`keyedColumns`)i||(i=[],z(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Ho(e[0]);a=H(c)&&c.length||1}return{startIndex:o,dimensionsDefine:ng(i),dimensionsDetectedCount:a}}(e,n,r,t.sourceHeader,t.dimensions);return new Zh({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:I(t)})}function eg(e){return new Zh({data:e,sourceFormat:mt(e)?zl:Fl})}function tg(e){var t=`unknown`;if(mt(e))t=zl;else if(H(e)){e.length===0&&(t=Il);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(H(i)||mt(i)){t=Il;break}if(G(i)){t=Ll;break}}}}else if(G(e)){for(var a in e)if(J(e,a)&&ot(e[a])){t=Rl;break}}return t}function ng(e){if(e){var t=q();return B(e,function(e,n){var r={name:(e=G(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function rg(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var a=n[0]||[];for(i=0;i<a.length&&i<r;i++)e(a[i],i)}}function ig(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var ag=function(){function e(e,t){var n=Qh(e)?e:eg(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Xh(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;Xh=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine;L(e,Yh[gg(o,s)]),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=lt(lg(o,s),null,i,c,l),e.count=lt(fg(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[Il+`_`+Bl]={pure:!0,appendData:i},e[Il+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Ll]={pure:!0,appendData:i},e[Rl]={pure:!0,appendData:function(e){var t=this._data;z(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Fl]={appendData:i},e[zl]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Yh=e}(),e}(),og=function(e){H(e)||Fo(`series.data or dataset.source must be an array.`)};(Gh={})[Il+`_`+Bl]=og,Gh[Il+`_row`]=og,Gh[Ll]=og,Gh[Rl]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Fo(`dimension name must not be null/undefined.`)},Gh[Fl]=og;var sg=function(e,t,n,r){return e[r]},cg=((Kh={})[Il+`_`+Bl]=function(e,t,n,r){return e[r+t]},Kh[Il+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Kh[Ll]=sg,Kh[Rl]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Kh[Fl]=sg,Kh);function lg(e,t){return cg[gg(e,t)]}var ug=function(e,t,n){return e.length},dg=((qh={})[Il+`_`+Bl]=function(e,t,n){return Math.max(0,e.length-t)},qh[Il+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},qh[Ll]=ug,qh[Rl]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},qh[Fl]=ug,qh);function fg(e,t){return dg[gg(e,t)]}var pg=function(e,t,n){return e[t]},mg=((Jh={})[Il]=pg,Jh[Ll]=function(e,t,n){return e[n]},Jh[Rl]=pg,Jh[Fl]=function(e,t,n){var r=Ho(e);return r instanceof Array?r[t]:r},Jh[zl]=pg,Jh);function hg(e){return mg[e]}function gg(e,t){return e===`arrayRows`?e+`_`+t:e}function _g(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return hg(a)(r,o,s)}var c=r;return a===`original`&&(c=Ho(r)),c}}}var vg=/\{@(.+?)\}/g,yg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);return a&&(s.value=a.interpolatedValue),r!=null&&H(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),U(i)?(s.status=t,s.dimensionIndex=r,i(s)):W(i)?Sm(i,s).replace(vg,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=_g(o,e,i);if(a&&H(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``}):void 0},e.prototype.getRawValue=function(e,t){return _g(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function bg(e){var t,n;return G(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function xg(e){return new Sg(e)}var Sg=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,o=u(this._modBy),s=this._modDataCount||0,c=u(e&&e.modBy),l=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}o===c&&s===l||(t=`reset`),(this._dirty||t===`reset`)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=c,this._modDataCount=l;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!r&&(a||f<p)){var m=this._progress;if(H(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,c,l);else this._doProgress(m,f,p,c,l)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Cg.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Cg.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),H(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Cg=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function wg(e,t){var n=t&&t.type;return n===`ordinal`?e:(n!==`time`||ft(e)||e==null||e===`-`||(e=+wo(e)),e==null||e===``?NaN:Number(e))}q({number:function(e){return parseFloat(e)},time:function(e){return+wo(e)},trim:function(e){return W(e)?Ct(e):e}});var Tg={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Eg=(function(){function e(e,t){ft(t)||Io(``),this._opFn=Tg[e],this._rvalFloat=Oo(t)}e.prototype.evaluate=function(e){return ft(e)?this._opFn(e,this._rvalFloat):this._opFn(Oo(e),this._rvalFloat)}}(),function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ft(e)?e:Oo(e),r=ft(t)?t:Oo(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=W(e),s=W(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}());(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Oo(t)}e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||n!==`number`&&this._rvalTypeof!==`number`||(t=Oo(e)===this._rvalFloat)}return this._isEQ?t:!t}})();function Dg(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function Og(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var kg=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return wg(e,t)},e}();function Ag(e){return Ig(e.sourceFormat)||Io(``),e.data}function jg(e){var t=e.sourceFormat,n=e.data;if(Ig(t)||Io(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(r=[],i=0,a=n.length;i<a;i++)r.push(L({},n[i]));return r}}function Mg(e,t,n){if(n!=null)return ft(n)||!isNaN(n)&&!J(t,n)?e[n]:J(t,n)?t[n]:void 0}function Ng(e){return I(e)}var Pg=q();function Fg(e,t,n,r){t.length||Io(``),G(e)||Io(``);var i=e.type,a=Pg.get(i);a||Io(``);var o=B(t,function(e){return function(e,t){var n=new kg,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Io(``);var o=[],s={},c=e.dimensionsDefine;if(c)z(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(J(s,n)&&Io(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=lg(i,Bl);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=lt(Ag,null,e)),n.cloneRawData=lt(jg,null,e),n.count=lt(fg(i,Bl),null,r,a,o);var d=hg(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];return n?d(e,t,n.name):void 0}};return n.getDimensionInfo=lt(Mg,null,o,s),n.cloneAllDimensionInfo=lt(Ng,null,o),n}(e,a)});return B(zo(a.transform({upstream:o[0],upstreamList:o,config:I(e.config)})),function(e,n){var r;G(e)||Io(``),e.data||Io(``),Ig(tg(e.data))||Io(``);var i=t[0];if(i&&n===0&&!e.dimensions){var a=i.startIndex;a&&(e.data=i.data.slice(0,a).concat(e.data)),r={seriesLayoutBy:Bl,sourceHeader:a,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:Bl,sourceHeader:0,dimensions:e.dimensions};return $h(e.data,r,null)})}function Ig(e){return e===`arrayRows`||e===`objectRows`}var Lg,Rg=typeof Uint32Array>`u`?Array:Uint32Array,zg=typeof Uint16Array>`u`?Array:Uint16Array,Bg=typeof Int32Array>`u`?Array:Int32Array,Vg=typeof Float64Array>`u`?Array:Float64Array,Hg={float:Vg,int:Bg,ordinal:Array,number:Array,time:Vg};function Ug(e){return e>65535?Rg:zg}function Wg(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Gg(e,t,n,r,i){var a=Hg[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Kg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Lg[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],ig(r),this._dimensions=B(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Hg[t||`float`](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=[1/0,-1/0]);for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++)Gg(n,c,(p=r[c]).type,s,!0);for(var l=[],u=o;u<s;u++)for(var d=u-o,f=0;f<i;f++){var p=r[f],m=Lg.arrayRows.call(this,e[d]||l,p.property,d,f);n[f][u]=m;var h=a[f];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=B(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=is()),Gg(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),_o(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else{if(!(t[a]>e))return a;i=a-1}}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else for(e=new(n=(Ug(this._rawCount)))(this.count()),i=0;i<e.length;i++)e[i]=i;return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Ug(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1)d=t(l[c][f],u);else{for(var p=0;p<o;p++)a[p]=l[e[p]][f];a[p]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=V(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Ug(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++)((y=m[h])>=l&&y<=u||isNaN(y))&&(o[s++]=p),p++;f=!0}else if(i===2){m=d[r[0]];var g=d[r[1]],_=e[r[1]][0],v=e[r[1]][1];for(h=0;h<n;h++){var y=m[h],b=g[h];(y>=l&&y<=u||isNaN(y))&&(b>=_&&b<=v||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(h=0;h<a;h++){var x=t.getRawIndex(h);((y=d[r[0]][x])>=l&&y<=u||isNaN(y))&&(o[s++]=x)}else for(h=0;h<a;h++){for(var S=!0,C=(x=t.getRawIndex(h),0);C<i;C++){var w=r[C];((y=d[w][x])<e[w][0]||y>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=is();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null)for(typeof p!=`object`&&(i[0]=p,p=i),l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),c=0,l=Math.floor(1/t),u=this.getRawIndex(0),d=new(Ug(this._rawCount))(Math.min(2*(Math.ceil(s/l)+2),s));d[c++]=u;for(var f=1;f<s-1;f+=l){for(var p=Math.min(f+l,s-1),m=Math.min(f+2*l,s),h=(m+p)/2,g=0,_=p;_<m;_++){var v=o[T=this.getRawIndex(_)];isNaN(v)||(g+=v)}g/=m-p;var y=f,b=Math.min(f+l,s),x=f-1,S=o[u];n=-1,i=y;var C=-1,w=0;for(_=y;_<b;_++){var T;v=o[T=this.getRawIndex(_)],isNaN(v)?(w++,C<0&&(C=T)):(r=Math.abs((x-h)*(v-S)-(x-_)*(g-S)))>n&&(n=r,i=T)}w>0&&w<b-y&&(d[c++]=Math.min(C,i),i=Math.max(C,i)),d[c++]=i,u=i}return d[c++]=this.getRawIndex(s-1),a._count=c,a._indices=d,a.getRawIndex=this._getRawIdx,a},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Ug(this._rawCount))(2*Math.ceil(o/i)),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=[1/0,-1/0],d=new(Ug(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=[1/0,-1/0];if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=Dg(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];t&&!Og(s,p)||(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&st(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Wg(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=I(this._extent),e._rawExtent=I(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return wg(e[r],this._dimensions[r])}Lg={arrayRows:e,objectRows:function(e,t,n,r){return wg(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return wg(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),qg=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Jg(n)){var a=n,o=void 0,s=void 0,c=void 0;if(i){var l=r[0];l.prepareSource(),o=(c=l.getSource()).data,s=c.sourceFormat,t=[l._getVersionSign()]}else s=mt(o=a.get(`data`,!0))?zl:Fl,t=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=K(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=K(u.sourceHeader,d.sourceHeader),m=K(u.dimensions,d.dimensions);e=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[$h(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=n;if(i){var g=this._applyTransform(r);e=g.sourceList,t=g.upstreamSignList}else e=[$h(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],t=[]}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get(`transform`,!0),i=n.get(`fromTransformResult`,!0);i!=null&&e.length!==1&&Yg(``);var a,o=[],s=[];return z(e,function(e){e.prepareSource();var t=e.getSource(i||0);i==null||t||Yg(``),o.push(t),s.push(e._getVersionSign())}),r?t=function(e,t){var n=zo(e),r=n.length;r||Io(``);for(var i=0,a=r;i<a;i++)t=Fg(n[i],t),i!==a-1&&(t.length=Math.max(t.length,1));return t}(r,o,n.componentIndex):i!=null&&(t=[(a=o[0],new Zh({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:I(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||=r[0]={};var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];Jg(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new Kg).initData(new ag(t,e.length),e),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Jg(e)){var t=sh(e);return t?[t.getSourceManager()]:[]}return B(function(e){return e.get(`transform`,!0)||e.get(`fromTransformResult`,!0)?ns(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},ts).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Jg(r))e=r.get(`seriesLayoutBy`,!0),t=r.get(`sourceHeader`,!0),n=r.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get(`seriesLayoutBy`,!0),t=i.get(`sourceHeader`,!0),n=i.get(`dimensions`,!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Jg(e){return e.mainType===`series`}function Yg(e){throw Error(e)}function Xg(e){var t=e.lineHeight;return t==null?`line-height:1`:`line-height:`+on(t+``)+`px`}function Zg(e,t){var n=e.color||Q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+on(r+``)+`px;color:`+on(n)+`;font-weight:`+on(i+``),valueStyle:`font-size:`+on(o+``)+`px;color:`+on(a)+`;font-weight:`+on(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Qg=[0,10,20,30],$g=[``,`
|
|
9
|
+
`,`
|
|
10
|
+
|
|
11
|
+
`,`
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
`];function e_(e,t){return t.type=e,t}function t_(e){return e.type===`section`}function n_(e){return t_(e)?i_:a_}function r_(e){if(t_(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return z(e.blocks,function(e){var n=r_(e);n>=t&&(t=n+ +(r&&(!n||t_(e)&&!e.noHeader)))}),t}return 0}function i_(e,t,n,r){var i,a=t.noHeader,o=(i=r_(t),{html:Qg[i],richText:$g[i]}),s=[],c=t.blocks||[];St(!c||H(c)),c||=[];var l=e.orderMode;if(t.sortBlocks&&l){c=c.slice();var u={valueAsc:`asc`,valueDesc:`desc`};if(J(u,l)){var d=new Eg(u[l],null);c.sort(function(e,t){return d.evaluate(e.sortParam,t.sortParam)})}else l===`seriesDesc`&&c.reverse()}z(c,function(n,i){var a=t.valueFormatter,c=n_(n)(a?L(L({},e),{valueFormatter:a}):e,n,i>0?o.html:0,r);c!=null&&s.push(c)});var f=e.renderMode===`richText`?s.join(o.richText):s_(r,s.join(``),a?n:o.html);if(a)return f;var p=ym(t.header,`ordinal`,e.useUTC),m=Zg(r,e.renderMode).nameStyle,h=Xg(r);return e.renderMode===`richText`?c_(e,p,m)+o.richText+f:s_(r,`<div style="`+m+`;`+h+`;">`+on(p)+`</div>`+f,n)}function a_(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return B(e=H(e)?e:[e],function(e,t){return ym(e,H(p)?p[t]:p,l)})};if(!a||!o){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:ym(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Zg(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:c_(e,f,v))+(o?``:function(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(H(t)?t.join(` `):t,a)}(e,m,h,g,y)):s_(r,(s?``:d)+(a?``:function(e,t,n){return`<span style="`+n+`;`+(t?`margin-left:2px`:``)+`">`+on(e)+`</span>`}(f,!s,v))+(o?``:function(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=H(e)?e:[e],`<span style="`+i+`;`+r+`">`+B(e,function(e){return on(e)}).join(` `)+`</span>`}(m,h,g,y)),n)}}function o_(e,t,n,r,i,a){if(e)return n_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function s_(e,t,n){return`<div style="`+(`margin: `+n+`px 0 0`)+`;`+Xg(e)+`;">`+t+`<div style="clear:both"></div></div>`}function c_(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function l_(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var u_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ko()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=function(e,t){var n=W(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+on(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+on(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}({color:t,type:e,renderMode:n,markerId:r});return W(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?z(t,function(e){return L(n,e)}):L(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function d_(e){var t,n,r,i,a=e.series,o=e.dataIndex,s=e.multipleSeries,c=a.getData(),l=c.mapDimensionsAll(`defaultedTooltip`),u=l.length,d=a.getRawValue(o),f=H(d),p=function(e,t){return Cm(e.getData().getItemVisual(t,`style`)[e.visualDrawType])}(a,o);if(u>1||f&&!u){var m=function(e,t,n,r,i){var a=t.getData(),o=st(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&r.displayName!=null},!1),s=[],c=[],l=[];function u(e,t){var n=a.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(o?l.push(e_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return r.length?z(r,function(e){u(_g(a,n,e),e)}):z(e,u),{inlineValues:s,inlineValueTypes:c,blocks:l}}(d,a,o,l,p);t=m.inlineValues,n=m.inlineValueTypes,r=m.blocks,i=m.inlineValues[0]}else if(u){var h=c.getDimensionInfo(l[0]);i=t=_g(c,o,l[0]),n=h.type}else i=t=f?d[0]:d;var g=Jo(a),_=g&&a.name||``,v=c.getName(o),y=s?_:v;return e_(`section`,{header:_,noHeader:s||!g,sortParam:i,blocks:[e_(`nameValue`,{markerType:`item`,markerColor:p,name:y,noName:!Ct(y),value:t,valueType:n,rawDataIndex:c.getRawIndex(o)})].concat(r||[])})}var f_=Zo();function p_(e,t){return e.getName(t)||e.getId(t)}var m_=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return P(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=xg({count:g_,reset:__}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(f_(this).sourceManager=new qg(this)).prepareSource();var r=this.getInitialData(e,n);y_(r,this),this.dataTask.context.data=r,f_(this).dataBeforeProcessed=r,h_(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vm(this),r=n?Um(e):{},i=this.subType;Km.hasClass(i)&&(i+=`Series`),rt(e,t.getTheme().get(this.subType)),rt(e,this.getDefaultOption()),Bo(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Hm(e,r,n)},t.prototype.mergeOption=function(e,t){e=rt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Vm(this);n&&Hm(this.option,e,n);var r=f_(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);y_(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,f_(this).dataBeforeProcessed=i,h_(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!mt(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Bo(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=x_(this);if(t){var n=t.context.data;return e!=null&&n.getLinkedData?n.getLinkedData(e):n}return f_(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=x_(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}f_(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return q(e)},t.prototype.getSourceManager=function(){return f_(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return f_(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return d_({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(F.node&&(!e||!e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=hh.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<e.length;a++){var o=p_(i,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=V(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[p_(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){G(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c];s[d=p_(e,l)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(l)}}else if(a===`single`||!0===a){var u=t[o-1],d=p_(e,u);i.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=e.getRawIndex(u),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Km.registerClass(e)},t.protoInitialize=((n=t.prototype).type=`series.__base__`,n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol=`circle`,n.visualStyleAccessPath=`itemStyle`,void(n.visualDrawType=`fill`)),t}(Km);function h_(e){var t=e.name;Jo(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return z(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}(e)||t)}function g_(e){return e.model.getRawData().count()}function __(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),v_}function v_(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function y_(e,t){z(function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ut(b_,t))})}function b_(e,t){var n=x_(e);return n&&n.setOutputEnd((t||this).count()),t}function x_(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}at(m_,yg),at(m_,hh),xs(m_,Km);var S_=function(){function e(){this.group=new Ja,this.uid=Tp(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();function C_(){var e=Zo();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return(i!==o||a!==s)&&`reset`}}bs(S_),Ts(S_);var w_=Zo(),T_=C_(),E_=function(){function e(){this.group=new Ja,this.uid=Tp(`viewChart`),this.renderTask=xg({plan:k_,reset:A_}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&O_(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&O_(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Bf(this.group,e)},e.markUpdateMethod=function(e,t){w_(e).updateMethod=t},e.protoInitialize=void(e.prototype.type=`chart`),e}();function D_(e,t,n){e&&Pu(e)&&(t===`emphasis`?gu:_u)(e,n)}function O_(e,t,n){var r=Xo(e,t),i=t&&t.highlightKey!=null?function(e){var t=Wl[e];return t==null&&Ul<=32&&(t=Wl[e]=Ul++),t}(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){D_(e,n,i)}):z(zo(r),function(t){D_(e.getItemGraphicEl(t),n,i)})}function k_(e){return T_(e.model)}function A_(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&w_(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),j_[c]}bs(E_),Ts(E_);var j_={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},M_=`\0__throttleOriginMethod`,N_=`\0__throttleRate`,P_=`\0__throttleType`;function F_(e,t,n){var r,i,a,o,s,c=0,l=0,u=null;function d(){l=new Date().getTime(),u=null,e.apply(a,o||[])}t||=0;var f=function(){var e=[...arguments];r=new Date().getTime(),a=this,o=e;var f=s||t,p=s||n;s=null,i=r-(p?c:l)-f,clearTimeout(u),p?u=setTimeout(d,f):i>=0?d():u=setTimeout(d,-i),c=r};return f.clear=function(){u&&=(clearTimeout(u),null)},f.debounceNextCall=function(e){s=e},f}function I_(e,t,n,r){var i=e[t];if(i){var a=i[M_]||i,o=i[P_];if(i[N_]!==n||o!==r){if(n==null||!r)return e[t]=a;(i=e[t]=F_(a,n,r===`debounce`))[M_]=a,i[P_]=r,i[N_]=n}return i}}function L_(e,t){var n=e[t];n&&n[M_]&&(n.clear&&n.clear(),e[t]=n[M_])}var R_=Zo(),z_={itemStyle:Es(bp,!0),lineStyle:Es(_p,!0)},B_={lineStyle:`stroke`,itemStyle:`fill`};function V_(e,t){return e.visualStyleMapper||z_[t]||(console.warn(`Unknown style type '`+t+`'.`),z_.itemStyle)}function H_(e,t){return e.visualDrawType||B_[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var U_={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=V_(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=H_(e,r),c=a[s],l=U(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||U(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||U(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=L({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},W_=new Cp,G_={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=V_(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){W_.option=n[r];var o=i(W_);L(e.ensureUniqueItemVisual(t,`style`),o),W_.option.decal&&(e.setItemVisual(t,`decal`,W_.option.decal),W_.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},K_={performRawSeries:!0,overallReset:function(e){var t=q();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();R_(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=R_(e).scope,a=H_(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},q_=Math.PI,J_=function(){function e(e,t,n,r){this._stageTaskMap=q(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):hs(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=q();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;z(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});St(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}z(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}}),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=q(),s=e.seriesType,c=e.getTargetSeries;function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||xg({plan:$_,reset:ev,count:rv}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||xg({reset:Y_});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=q(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,xg({reset:X_,onDirty:Q_})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}St(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):z(n.getSeries(),f),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return U(e)&&(e={overallReset:e,seriesType:iv(e)}),e.uid=Tp(`stageHandler`),t&&(e.visualType=t),e},e}();function Y_(e){e.overallReset(e.ecModel,e.api,e.payload)}function X_(e){return e.dirtyOnOverallProgress&&Z_}function Z_(){this.agent.dirty(),this.getDownstream().dirty()}function Q_(){this.agent&&this.agent.dirty()}function $_(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ev(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=zo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?B(t,function(e,t){return nv(t)}):tv}var tv=nv(0);function nv(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function rv(e){return e.data.count()}function iv(e){av=null;try{e(ov,sv)}catch{}return av}var av,ov={},sv={};function cv(e,t){for(var n in t.prototype)e[n]=jt}cv(ov,_h),cv(sv,Hl),ov.eachSeriesByType=ov.eachRawSeriesByType=function(e){av=e},ov.eachComponent=function(e){e.mainType===`series`&&e.subType&&(av=e.subType)};var lv,$=Q.darkColor,uv=$.background,dv=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},fv={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},pv={darkMode:!0,color:$.theme,backgroundColor:uv,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:uv,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:fv,y:fv,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:dv(),logAxis:dv(),valueAxis:dv(),categoryAxis:dv(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:(lv=dv(),lv.axisName={color:$.axisLabel},lv.axisLine.lineStyle.color=$.neutral20,lv),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};pv.categoryAxis.splitLine.show=!1;var mv=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(W(e)){var i=ys(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};z(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),hv=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],gv=hv.concat([`symbolKeepAspect`]),_v={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<hv.length;o++){var s=hv[o],c=e.get(s);U(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(L({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),!t.isSeriesFiltered(e)){var l=V(i);return{dataEach:a?function(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}:null}}}}},vv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<gv.length;r++){var i=gv[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}:null}}};function yv(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Xo(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:H(l)?c.getName(l[0]):c.getName(l),selected:W(r)?r:L({},r)})}})}function bv(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var xv=new Yt,Sv={},Cv={},wv=Zo();function Tv(e){return wv(e).fullUpdate}var Ev=Math.round(9*Math.random()),Dv=typeof Object.defineProperty==`function`,Ov=function(){function e(){this._id=`__ec_inner_`+Ev++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Dv?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),kv=al.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Av=al.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),jv=al.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=.6*o,m=.7*o;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,2*Math.PI+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),Mv=al.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),Nv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Pv={};z({line:Od,rect:_l,roundRect:_l,square:_l,circle:td,diamond:Av,pin:jv,arrow:Mv,triangle:kv},function(e,t){Pv[t]=new e});var Fv=al.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Na(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Pv[r];i||=Pv[r=`rect`],Nv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Iv(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Lv(e,t,n,r,i,a,o){var s,c=e.indexOf(`empty`)===0;return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=e.indexOf(`image://`)===0?_f(e.slice(8),new X(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?gf(e.slice(7),{},new X(t,n,r,i),o?`center`:`cover`):new Fv({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=c,s.setColor=Iv,a&&s.setColor(a),s}function Rv(e,t){if(e!=null)return H(e)||(e=[e,e]),[mo(e[0],t[0])||0,mo(K(e[1],e[0]),t[1])||0]}function zv(e){return isFinite(e)}function Bv(e,t,n){for(var r=t.type===`radial`?function(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=zv(o)?o:.5,s=zv(s)?s:.5,c=c>=0&&zv(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}(e,t,n):function(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=zv(r)?r:0,i=zv(i)?i:1,a=zv(a)?a:0,o=zv(o)?o:0,e.createLinearGradient(r,a,i,o)}(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Vv(e){return parseInt(e,10)}function Hv(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Vv(s[r])||Vv(e.style[r]))-(Vv(s[a])||0)-(Vv(s[o])||0)||0}function Uv(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&t!==`solid`&&n>0?t===`dashed`?[4*n,2*n]:t===`dotted`?[n]:ft(t)?[t]:H(t)?t:null:null),a=r.lineDashOffset;if(i){var o=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(i=B(i,function(e){return e/o}),a/=o)}return[i,a]}var Wv=new Rc(!0);function Gv(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function Kv(e){return typeof e==`string`&&e!==`none`}function qv(e){var t=e.fill;return t!=null&&t!==`none`}function Jv(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Yv(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Xv(e,t,n){var r=js(t.image,t.__image,n);if(Ns(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Mt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}var Zv=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Qv=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function $v(e,t,n,r,i){var a=!1;if(!r&&t===(n||={}))return!1;if(r||t.opacity!==n.opacity){ny(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?$s.opacity:o}(r||t.blend!==n.blend)&&(a||=(ny(e,i),!0),e.globalCompositeOperation=t.blend||$s.blend);for(var s=0;s<Zv.length;s++){var c=Zv[s];(r||t[c]!==n[c])&&(a||=(ny(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(ny(e,i),!0),e.shadowColor=t.shadowColor||$s.shadowColor),a}function ey(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=$v(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(ny(e,i),!0),Kv(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(ny(e,i),!0),Kv(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(ny(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(ny(e,i),!0),e.lineWidth=c)}for(var l=0;l<Qv.length;l++){var u=Qv[l],d=u[0];(r||a[d]!==o[d])&&(s||=(ny(e,i),!0),e[d]=a[d]||u[1])}return s}function ty(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function ny(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function ry(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(i,a)||(a&&(ny(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(ny(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),ty(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped)return t.__dirty&=-2,void(t.__isRendered=!1);t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u,d,f=t instanceof al&&t.autoBatch&&function(e){var t=qv(e),n=Gv(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(o);s||(u=r,d=l.transform,u&&d?u[0]!==d[0]||u[1]!==d[1]||u[2]!==d[2]||u[3]!==d[3]||u[4]!==d[4]||u[5]!==d[5]:u||d)?(ny(e,n),ty(e,t)):f||ny(e,n),t instanceof al?(n.lastDrawType!==1&&(c=!0,n.lastDrawType=1),ey(e,t,l,c,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r,i){var a,o=Gv(n),s=qv(n),c=n.strokePercent,l=c<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var d=t.path||Wv,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?Bv(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?Bv(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?Xv(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?Xv(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w,T,E=t.getGlobalScale();d.setScale(E[0],E[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(w=(a=Uv(t))[0],T=a[1]);var D=!0;(u||4&f)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&Yv(e,n),s&&Jv(e,n)):(s&&Jv(e,n),o&&Yv(e,n)),w&&e.setLineDash([])}(e,t,o,f,n)):t instanceof sl?(n.lastDrawType!==3&&(c=!0,n.lastDrawType=3),ey(e,t,l,c,n),function(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(a=(r=Uv(t))[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Gv(n)&&e.strokeText(i,n.x,n.y),qv(n)&&e.fillText(i,n.x,n.y)):(qv(n)&&e.fillText(i,n.x,n.y),Gv(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}(e,t,o)):t instanceof ul?(n.lastDrawType!==2&&(c=!0,n.lastDrawType=2),function(e,t,n,r,i){$v(e,t.style,n&&n.style,r,i)}(e,t,l,c,n),function(e,t,n){var r=t.__image=js(n.image,t.__image,t,t.onload);if(r&&Ns(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var d=o-(l=n.sx),f=s-(u=n.sy);e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==4&&(c=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}};for(a=t.getCursor(),o=r.length;a<o;a++)(u=r[a]).beforeBrush&&u.beforeBrush(n.beforeBrushParam),u.innerBeforeBrush(),ry(e,u,s),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u;iy(e,s);for(var c=0,l=i.length;c<l;c++){var u;(u=i[c]).beforeBrush&&u.beforeBrush(n.beforeBrushParam),u.innerBeforeBrush(),ry(e,u,s),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}iy(e,s),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(f&&ny(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function iy(e,t){ny(e,t),t.prevElClipPaths&&e.restore()}var ay=new Ov,oy=new Vr(100),sy=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function cy(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&ay.delete(e);var a=ay.get(e);if(a)return a;var o=it(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return function(e){for(var t,a=[n],s=!0,c=0;c<sy.length;++c){var l=o[sy[c]];if(l!=null&&!H(l)&&!W(l)&&!ft(l)&&typeof l!=`boolean`){s=!1;break}a.push(l)}if(s){t=a.join(`,`)+(i?`-svg`:``);var u=oy.get(t);u&&(i?e.svgElement=u:e.image=u)}var d,f=uy(o.dashArrayX),p=function(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(ft(e)){var t=Math.ceil(e);return[t,t]}var n=B(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),m=ly(o.symbol),h=(b=f,B(b,function(e){return dy(e)})),g=dy(p),_=!i&&Ve.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=function(){for(var e=1,t=0,n=h.length;t<n;++t)e=jo(e,h[t]);var r=1;for(t=0,n=m.length;t<n;++t)r=jo(r,m[t].length);e*=r;var i=g*h.length*m.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}(),b;_&&(_.width=y.width*n,_.height=y.height*n,d=_.getContext(`2d`)),(function(){d&&(d.clearRect(0,0,_.width,_.height),o.backgroundColor&&(d.fillStyle=o.backgroundColor,d.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%m.length,h=0,b=0,x=0;h<2*y.width;){var S=0;for(t=0;t<f[l].length;++t)S+=f[l][t];if(S<=0)break;if(b%2==0){var C=.5*(1-o.symbolSize),w=h+f[l][b]*C,T=a+p[s]*C,E=f[l][b]*o.symbolSize,D=p[s]*o.symbolSize,O=x/2%m[u].length;k(w,T,E,D,m[u][O])}h+=f[l][b],++x,++b===f[l].length&&(b=0)}++l===f.length&&(l=0)}a+=p[s],++c,++s===p.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=Lv(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var f=r.painter.renderOneToVNode(u);f&&v.children.push(f)}else(function(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};ry(e,t,n),iy(e,n)})(d,u)}})(),s&&oy.put(t,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,ay.set(e,s),e.dirty=!1,s}function ly(e){if(!e||e.length===0)return[[`rect`]];if(W(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!W(e[n])){t=!1;break}if(t)return ly([e]);var r=[];for(n=0;n<e.length;++n)W(e[n])?r.push([e[n]]):r.push(e[n]);return r}function uy(e){if(!e||e.length===0)return[[0,0]];if(ft(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!ft(e[n])){t=!1;break}if(t)return uy([e]);var r=[];for(n=0;n<e.length;++n)if(ft(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else(i=B(e[n],function(e){return Math.ceil(e)})).length%2==1?r.push(i.concat(i)):r.push(i);return r}function dy(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var fy=gs(function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);n&&(r.ensureUniqueItemVisual(e,`style`).decal=cy(n,t))});var i=r.getVisual(`decal`);i&&(r.getVisual(`style`).decal=cy(i,t))}})}),py=2e3,my=4500,hy={PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:py,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:my,ARIA:6e3,DECAL:7e3}},gy=`__flagInMainProcess`,_y=`__mainProcessVersion`,vy=`__pendingUpdate`,yy=`__needsUpdateStatus`,by=/^[a-zA-Z0-9_]+$/,xy=`__connectUpdateStatus`;function Sy(e){return function(){var t=[...arguments];if(!this.isDisposed())return wy(this,e,t);this.id}}function Cy(e){return function(){var t=[...arguments];return wy(this,e,t)}}function wy(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Yt.prototype[t].apply(e,n)}var Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t}(Yt),Gy=Wy.prototype;Gy.on=Cy(`on`),Gy.off=Cy(`off`);var Ky=function(e){function t(t,n,r){var i=e.call(this,new mv)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t,i[_y]=1,r.ssr&&(Za=function(e){var t=Z(e),n=t.dataIndex;if(n!=null){var r=q();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var a=i._zr=$a(t,{renderer:r.renderer||`canvas`,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:K(r.useDirtyRect,!1),useCoarsePointer:K(r.useCoarsePointer,`auto`),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=F_(lt(a.flush,a),17),i._updateTheme(n),i._locale=function(e){if(W(e)){var t=Ap[e.toUpperCase()]||{};return e===Dp||e===Op?I(t):rt(I(t),I(Ap[kp]),!1)}return rt(I(e),I(Ap[kp]),!1)}(r.locale||Mp),i._coordSysMgr=new Dm;var o=i._api=zy(i);function s(e,t){return e.__prio-t.__prio}return sr(eb,s),sr(Qy,s),i._scheduler=new J_(i,o,Qy,eb),i._messageCenter=new Wy,i._initEvents(),i.resize=lt(i.resize,i),a.animation.on(`frame`,i._onframe,i),Py(a,i),Fy(a,i),Tt(i),i}return P(t,e),t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(Hy(this),this[vy]){var r=this[vy].silent;this[gy]=!0,Uy(this);try{Ty(this),Oy.update.call(this,null,this[vy].updateParams)}catch(e){throw this[gy]=!1,this[vy]=null,e}this._zr.flush(),this[gy]=!1,this[vy]=null,My.call(this,r),Ny.call(this,r)}else if(e.unfinished){var i=1;do{e.unfinished=!1;var a=Ve.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),Ay(this,t),e.performVisualTasks(t),Ry(this,this._model,n,`remain`,{}),i-=Ve.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[gy]){if(this._disposed)this.id;else{var r,i,a;if(G(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[gy]=!0,Uy(this),!this._model||t){var o=new Sh(this._api),s=this._theme,c=this._model=new _h;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},$y);var l={seriesTransition:a,optionChanged:!0};if(n)this[vy]={silent:r,updateParams:l},this[gy]=!1,this.getZr().wakeUp();else{try{Ty(this),Oy.update.call(this,null,l)}catch(e){throw this[vy]=null,this[gy]=!1,e}this._ssr||this._zr.flush(),this[vy]=null,this[gy]=!1,My.call(this,r),Ny.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[gy]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[vy]&&(r??=this[vy].silent,i=this[vy].updateParams,this[vy]=null),this[gy]=!0,Uy(this);try{this._updateTheme(e),n.setTheme(this._theme),Ty(this),Oy.update.call(this,{type:`setTheme`},i)}catch(e){throw this[gy]=!1,e}this[gy]=!1,My.call(this,r),Ny.call(this,r)}}}},t.prototype._updateTheme=function(e){W(e)&&(e=tb[e]),e&&((e=I(e))&&Uh(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||F.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return z(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e||={}).excludeComponents,n=this._model,r=[],i=this;z(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return z(r,function(e){e.group.ignore=!1}),a}this.id},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(ib[n]){var o=a,s=a,c=-1/0,l=-1/0,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();z(rb,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(I(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}});var f=(c*=d)-(o*=d),p=(l*=d)-(s*=d),m=Ve.createCanvas(),h=$a(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return z(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new _l({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),z(u,function(e){var t=new ul({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}this.id},t.prototype.convertToPixel=function(e,t,n){return ky(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return ky(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return ky(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return z($o(this._model,e),function(e,r){r.indexOf(`Models`)>=0&&z(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n||=!!i.containPoint(t);else if(r===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n||=a.containPoint(t,e))}},this)},this),!!n;this.id},t.prototype.getVisual=function(e,t){var n=$o(this._model,e,{defaultMainType:`series`}),r=n.seriesModel.getData(),i=n.hasOwnProperty(`dataIndexInside`)?n.dataIndexInside:n.hasOwnProperty(`dataIndex`)?r.indexOfRawIndex(n.dataIndex):null;return i==null?function(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}(r,t):function(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}(r,i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;z(Jy,function(t){var n=function(n){var r,i=e.getModel(),a=n.target;if(t===`globalout`?r={}:a&&bv(a,function(e){var t=Z(e);if(t&&t.dataIndex!=null){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return r=L({},t.eventData),!0},!0),r){var o=r.componentType,s=r.componentIndex;o!==`markLine`&&o!==`markPoint`&&o!==`markArea`||(o=`series`,s=r.seriesIndex);var c=o&&s!=null&&i.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:c,view:l},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;z(Zy,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),function(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(yv(`map`,`selectchanged`,t,r,e),yv(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(yv(`map`,`selected`,t,r,e),yv(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(yv(`map`,`unselected`,t,r,e),yv(`pie`,`unselected`,t,r,e))})}(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&rs(this.getDom(),ob,``);var e=this,t=e._api,n=e._model;z(e._componentsViews,function(e){e.dispose(n,t)}),z(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete rb[e.id]}},t.prototype.resize=function(e){if(!this[gy]){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[vy]&&(r??=this[vy].silent,n=!0,this[vy]=null),this[gy]=!0,Uy(this);try{n&&Ty(this),Oy.update.call(this,{type:`resize`,animation:L({duration:0},e&&e.animation)})}catch(e){throw this[gy]=!1,e}this[gy]=!1,My.call(this,r),Ny.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(G(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),nb[e]){var n=nb[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=L({},e);return t.type=Xy[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(G(t)||(t={silent:!!t}),Yy[e.type]&&this._model){if(this[gy])this._pendingActions.push(e);else{var n=t.silent;jy.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&F.browser.weChat&&this._throttledZrFlush(),My.call(this,n),Ny.call(this,n)}}},t.prototype.updateLabelLayout=function(){xv.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=Gf(e);t.eachRendered(function(e){return qf(e,n.z,n.zlevel),!0})}}function r(e,t){t.eachRendered(function(e){if(!tf(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function i(e,n){var r=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=r.get(`duration`),o=a>0?{duration:a,delay:r.get(`delay`),easing:r.get(`easing`)}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis){if(tf(e))return;if(e instanceof al&&function(e){var t=Gl(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=o;var r=e.getTextContent(),a=e.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&t(e)}})}Ty=function(e){var t=e._model;wv(t).prepare={};var n=e._scheduler;n.restorePipelines(e._zr,e._model),n.prepareStageTasks(),Ey(e,!0),Ey(e,!1),n.plan()},Ey=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=ys(e.type);(u=new(t?S_.getClass(d.main,d.sub):E_.getClass(d.sub))).init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l),c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},Dy=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),r){var o,s=function(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}(n,r,i),c=n.excludeSeriesId;c!=null&&(o=q(),z(zo(c),function(e){var t=qo(e,null);t!=null&&o.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!o||o.get(t.id)==null){if(Iu(n)){if(t instanceof m_)n.type!==`highlight`||n.notBlur||t.get([`emphasis`,`disabled`])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Xo(i,t);a=(H(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Z(o);Cu(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Cu(r,u,d,n)}}}(t,n,e._api);else{var r=Tu(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&wu(t.mainType,t.componentIndex,e._api),a&&z(a,function(e){n.type===`highlight`?gu(e):_u(e)})}}else Fu(n)&&t instanceof m_&&(function(e,t){if(Fu(t)){var n=t.dataType,r=Xo(e.getData(n),t);H(r)||(r=[r]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](r,n)}}(t,n,e._api),Eu(t),Vy(e))}},e),a&&a.eachComponent(s,function(t){o&&o.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e)}else z([].concat(e._componentsViews,e._chartsViews),l);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},Oy={prepareAndUpdate:function(e){Ty(this),Oy.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){(function(e){wv(e).fullUpdate={}})(r),r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),xv.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,t),Ay(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),Iy(this,r,i,t,n),xv.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=q();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),Ry(t,n,r,e,{},a),xv.trigger(`afterupdate`,n,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),E_.markUpdateMethod(t,`updateView`),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Iy(this,n,this._api,t,{}),xv.trigger(`afterupdate`,n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),E_.markUpdateMethod(t,`updateVisual`),e(r),this._scheduler.performVisualTasks(r,t,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(e,i){if(e!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),xv.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){Oy.update.call(this,e)}},ky=function(e,t,n,r,i){if(e._disposed)e.id;else for(var a,o=e._model,s=e._coordSysMgr.getCoordinateSystems(),c=$o(o,n),l=0;l<s.length;l++){var u=s[l];if(u[t]&&(a=u[t](o,c,r,i))!=null)return a}},Ay=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},jy=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=Yy[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&ys(s[0]);this[gy]=!0,Uy(this);var u=[e],d=!1;e.batch&&(d=!0,u=B(e.batch,function(t){return(t=it(L({},t),e)).batch=null,t}));var f,p=[],m=[],h=o.nonRefinedEventType,g=Fu(e),_=Iu(e);if(_&&Su(this._api),z(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):f=i,(f||=L({},t)).type=h,p.push(f),_){var a=es(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;Dy(n,c,t,u),Vy(n)}else g?(Dy(n,c,t,`series`),Vy(n)):l&&Dy(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[vy]?(Ty(this),Oy.update.call(this,e),this[vy]=null):Oy[c].call(this,e)}catch(e){throw this[gy]=!1,e}if(f=d?{type:h,escapeConnect:a,batch:p}:p[0],this[gy]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;St(G(y)),(v=it({type:o.refinedEventType},y)).fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(f.type,f),v&&b.trigger(v.type,v)}},My=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();jy.call(this,n,e)}},Ny=function(e){!e&&this.trigger(`updated`)},Py=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),!e.animation.isFinished()||t[vy]||t._scheduler.unfinished||t._pendingActions.length?e.refresh():t.trigger(`finished`)})},Fy=function(e,t){e.on(`mouseover`,function(e){var n=bv(e.target,Pu);n&&(function(e,t,n){var r=Z(e),i=Tu(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&wu(r.componentMainType,r.componentIndex,n),z(a,function(e){return mu(e,t)})):(Cu(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&wu(r.componentMainType,r.componentIndex,n),mu(e,t))}(n,e,t._api),Vy(t))}).on(`mouseout`,function(e){var n=bv(e.target,Pu);n&&(function(e,t,n){Su(n);var r=Z(e),i=Tu(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?z(i,function(e){return hu(e,t)}):hu(e,t)}(n,e,t._api),Vy(t))}).on(`click`,function(e){var n=bv(e.target,function(e){return Z(e).dataIndex!=null},!0);if(n){var r=n.selected?`unselect`:`select`,i=Z(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Iy=function(e,t,n,r,i){(function(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i,a,o=t.concat(n);sr(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),z(o,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;i!=null&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&=(r===i&&r++,``),i=r,n.setZLevel(r)})}})(t),Ly(e,t,n,r,i),z(e._chartsViews,function(e){e.__alive=!1}),Ry(e,t,n,r,i),z(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Ly=function(e,t,a,o,s,c){z(c||e._componentsViews,function(e){var s=e.__model;r(s,e),e.render(s,t,a,o),n(s,e),i(s,e)})},Ry=function(e,t,a,o,s,c){var l=e._scheduler;s=L(s||{},{updatedSeries:t.getSeries()}),xv.trigger(`series:beforeupdate`,t,a,s);var u=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;l.updatePayload(i,o),r(t,n),c&&c.get(t.uid)&&i.dirty(),i.perform(l.getPerformArgs(i))&&(u=!0),n.group.silent=!!t.get(`silent`),function(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}(t,n),Eu(t)}),l.unfinished=u||l.unfinished,xv.trigger(`series:layoutlabels`,t,a,s),xv.trigger(`series:transition`,t,a,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),i(t,r)}),function(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>K(t.get(`hoverLayerThreshold`),eh.hoverLayerThreshold)&&!F.node&&!F.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}(e,t),xv.trigger(`series:afterupdate`,t,a,s)},Vy=function(e){e[yy]=!0,e.getZr().wakeUp()},Uy=function(e){e[_y]=(e[_y]+1)%1e6},Hy=function(e){e[yy]&&(e.getZr().storage.traverse(function(e){tf(e)||t(e)}),e[yy]=!1)},zy=function(e){return new(function(t){function n(){return t!==null&&t.apply(this,arguments)||this}return P(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){gu(t,n),Vy(e)},n.prototype.leaveEmphasis=function(t,n){_u(t,n),Vy(e)},n.prototype.enterBlur=function(t){(function(e){uu(e,au)})(t),Vy(e)},n.prototype.leaveBlur=function(t){vu(t),Vy(e)},n.prototype.enterSelect=function(t){yu(t),Vy(e)},n.prototype.leaveSelect=function(t){bu(t),Vy(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[_y]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Hl))(e)},By=function(e){function t(e,t){for(var n=0;n<e.length;n++)e[n][xy]=t}z(Xy,function(n,r){e._messageCenter.on(r,function(n){if(ib[e.group]&&e[xy]!==0){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];z(rb,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),z(i,function(e){e[xy]!==1&&e.dispatchAction(r)}),t(i,2)}})})}}(),t}(Yt),qy=Ky.prototype;qy.on=Sy(`on`),qy.off=Sy(`off`),qy.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){var i=[...arguments];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var Jy=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],Yy={},Xy={},Zy={},Qy=[],$y=[],eb=[],tb={},nb={},rb={},ib={},ab=new Date-0,ob=`_echarts_instance_`;function sb(e,t,n){var r=!(n&&n.ssr);if(r){var i=function(e){return rb[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,ob)]}(e);if(i)return i}var a=new Ky(e,t,n);return a.id=`ec_`+ab++,rb[a.id]=a,r&&rs(e,ob,a.id),By(a),xv.trigger(`afterinit`,a),a}function cb(e,t){tb[e]=t}function lb(e){R($y,e)<0&&$y.push(e)}function ub(e,t){hb(Qy,e,t,2e3)}function db(e,t){xv.on(e,t)}function fb(e,t,n){var r,i,a,o,s;function c(e){return e.toLowerCase()}U(t)&&(n=t,t=``),G(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t),i=c(i||r);var l=a?c(r):i;Yy[r]||(St(by.test(r)&&by.test(i)),a&&St(i!==r),Yy[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},Zy[i]=1,a&&s&&(Zy[l]=1),Xy[l]=r)}function pb(e,t){hb(eb,e,t,3e3,`visual`,!0)}var mb=[];function hb(e,t,n,r,i,a){if((U(t)||G(t))&&(n=t,t=r),!(R(mb,n)>=0)){mb.push(n);var o=J_.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function gb(e,t){nb[e]=t}var _b=function(e){var t=(e=I(e)).type;t||Io(``);var n=t.split(`:`);n.length!==2&&Io(``);var r=!1;n[0]===`echarts`&&(t=n[1],r=!0),e.__isBuiltIn=r,Pg.set(t,e)};function vb(e,t,n,r){return{eventContent:{selected:Du(n),isFromClick:t.isFromClick||!1}}}function yb(e){return e==null?0:e.length||1}function bb(e){return e}pb(py,U_),pb(my,G_),pb(my,K_),pb(py,_v),pb(my,vv),pb(7e3,fy),lb(Uh),ub(900,Wh),gb(`default`,function(e,t){it(t||={},{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ja,r=new _l({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new xl({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new _l({style:{fill:`none`},textContent:a,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});return n.add(o),t.showSpinner&&((i=new Pd({shape:{startAngle:-q_/2,endAngle:-q_/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*q_/2}).start(`circularInOut`),i.animateShape(!0).when(1e3,{startAngle:3*q_/2}).delay(300).start(`circularInOut`),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&i.setShape({cx:c,cy:l}),o.setShape({x:c-s,y:l-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),fb({type:Yl,event:Yl,update:Yl},jt),fb({type:Xl,event:Xl,update:Xl},jt),fb({type:Zl,event:eu,update:Zl,action:jt,refineEvent:vb,publishNonRefinedEvent:!0}),fb({type:Ql,event:eu,update:Ql,action:jt,refineEvent:vb,publishNonRefinedEvent:!0}),fb({type:$l,event:eu,update:$l,action:jt,refineEvent:vb,publishNonRefinedEvent:!0}),cb(`default`,{}),cb(`dark`,pv);var xb=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||bb,this._newKeyGetter=r||bb,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=yb(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=yb(c),d=yb(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=yb(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=yb(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),Sb=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function Cb(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var wb=function(e){this.otherDims={},e!=null&&L(this,e)},Tb=Zo(),Eb={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Db=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=Ab(this.source))},e.prototype.getSourceDimensionIndex=function(e){return K(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=ig(this.source),n=!jb(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),!t||s==null||u&&u.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=Eb[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Ob(e){return e instanceof Db}function kb(e){for(var t=q(),n=0;n<(e||[]).length;n++){var r=e[n],i=G(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function Ab(e){var t=Tb(e);return t.dimNameMap||=kb(e.dimensionsDefine)}function jb(e){return e>30}var Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb=G,Bb=B,Vb=typeof Int32Array>`u`?Array:Int32Array,Hb=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Ub=[`_approximateExtent`],Wb=function(){function e(e,t){var n;this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var r=!1;Ob(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=W(u)?new wb({name:u}):u instanceof wb?u:new wb(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=q();z(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(ft(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof Kg&&(r=e),!r){var a=this.dimensions,o=Qh(e)||ot(e)?new ag(e,a.length):e;r=new Kg;var s=Bb(a,function(e){return{type:i._dimInfos[e].type,property:e}});r.initData(o,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=q(),a=[],o=[],s={};z(e.dimensions,function(t){var n,c=e.getDimensionInfo(t),l=c.coordDim;if(l){var u=c.coordDimIndex;Cb(r,l)[u]=t,c.isExtraCoord||(i.set(l,1),(n=c.type)!==`ordinal`&&n!==`time`&&(a[0]=t),Cb(s,l)[u]=e.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(t)}Pl.each(function(e,t){var n=Cb(r,t),i=c.otherDims[t];i!=null&&!1!==i&&(n[i]=c.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=B(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Sb(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&Rb(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Uo(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=qo(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=qo(l,null))}}if(this._shouldMakeIdFromName())for(o=e;o<t;o++)Rb(this,o);Mb(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){zb(e)?L(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Pb(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return Nb(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return H(e)?r.getValues(Bb(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?-1:r},e.prototype.each=function(e,t,n){U(e)&&(n=t,t=e,e=[]);var r=n||this,i=Bb(Fb(e),this._getStoreDimIndex,this);this._store.each(i,r?lt(t,r):t)},e.prototype.filterSelf=function(e,t,n){U(e)&&(n=t,t=e,e=[]);var r=n||this,i=Bb(Fb(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?lt(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=V(e),i=[];return z(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){U(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=Bb(Fb(e),this._getStoreDimIndex,this),o=Lb(this);return o._store=this._store.map(a,i?lt(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=Bb(Fb(e),this._getStoreDimIndex,this);this._store.modify(a,i?lt(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Lb(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Lb(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Lb(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Cp(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new xb(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Nb(e,t)},function(e){return Nb(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},zb(e)?L(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(H(i=this.getVisual(t))?i=i.slice():zb(i)&&(i=L({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,zb(t)?L(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){zb(e)?L(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?L(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){(function(e,t,n,r){if(r){var i=Z(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Z(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){z(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Bb(this.dimensions,this._getDimInfo,this),this.hostModel),Ib(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(bt(arguments)))})},e.internalField=(Mb=function(e){var t=e._invertedIndicesMap;z(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Vb(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},Pb=function(e,t,n){return qo(e._getCategory(t,n),null)},Nb=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Pb(e,e._idDimIdx,t)),n??=`e\0\0`+t,n},Fb=function(e){return H(e)||(e=e==null?[]:[e]),e},Lb=function(t){var n=new e(t._schema?t._schema:Bb(t.dimensions,t._getDimInfo,t),t.hostModel);return Ib(n,t),n},Ib=function(e,t){z(Hb.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,z(Ub,function(n){e[n]=I(t[n])}),e._calculationInfo=L({},t._calculationInfo)},void(Rb=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=Pb(e,i,t)),s==null&&a!=null&&(r[t]=s=Pb(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}})),e}();function Gb(e,t){Qh(e)||(e=eg(e));var n=(t||={}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=q(),a=[],o=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return z(t,function(e){var t;G(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&jb(o),c=r===e.dimensionsDefine,l=c?Ab(e):kb(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=q(u),f=new Bg(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=G(n)?n:{name:n},o=new wb,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(p=0;p<o;p++)m(p);d.each(function(e,t){var n=zo(e).slice();if(n.length===1&&!W(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);z(n,function(e,n){var i=W(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})}});var h=0;function g(e,t,n){Pl.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}z(n,function(e){var t,n,r,i;if(W(e))t=e,i={};else{t=(i=e).name;var a=i.ordinalMeta;i.ordinalMeta=null,(i=L({},i)).ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(!1!==s){if(!(s=zo(s)).length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}z(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(it(o,i),t,a),o.name==null&&n){var s=n[a];!G(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&it(o.otherDims,r)})}});var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)z(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=Kb(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type!=null||ch(e,S)!==th&&(!C.isExtraCoord||C.otherDims.itemName==null&&C.otherDims.seriesName==null)||(C.type=`ordinal`)}return fs(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new Db({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Kb(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var qb=function(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e},Jb={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,ts).models[0],a=e.getReferringComponents(`yAxis`,ts).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Yb(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Yb(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,ts).models[0];t.coordSysDims=[`single`],n.set(`single`,i),Yb(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,ts).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),Yb(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Yb(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();z(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),Yb(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,ts).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function Yb(e){return e.get(`type`)===`category`}function Xb(e,t,n){var r,i,a,o=(n||={}).byIndex,s=n.stackedCoordDimension;(function(e){return!Ob(e.schema)})(t)?r=t:(i=t.schema,r=i.dimensions,a=t.store);var c,l,u,d,f=!(!e||!e.get(`stack`)),p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(z(r,function(e,t){W(e)&&(r[t]=e={name:e}),m(e)||(p=!1)}),z(r,function(e,t){f&&!e.isExtraCoord&&(o||c||!e.ordinalMeta||(c=e),l||!m(e)||p&&(e.coordDim===`x`||e.coordDim===`angle`)||s&&s!==e.coordDim||(l=e))}),!l||o||c||(o=!0),l){u=`__\0ecstackresult_`+e.id,d=`__\0ecstackedover_`+e.id,c&&(c.createInvertedIndices=!0);var h=l.coordDim,g=l.type,_=0;z(r,function(e){e.coordDim===h&&_++});var v={name:u,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(a&&(v.storeDimIndex=a.ensureCalculationDimension(d,g),y.storeDimIndex=a.ensureCalculationDimension(u,g)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:l&&l.name,stackedByDimension:c&&c.name,isStackedByIndex:o,stackedOverDimension:d,stackResultDimension:u}}function Zb(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function Qb(e,t,n){n||={};var r,i=t.getSourceManager(),a=!1;e?(a=!0,r=eg(e)):a=(r=i.getSource()).sourceFormat===Fl;var o=function(e){var t=e.get(`coordinateSystem`),n=new qb(t),r=Jb[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get(`coordinateSystem`),i=Dm.get(r);return t&&t.coordSysDims&&(n=B(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=function(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}(r.get(`type`))),n})),n||=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||[`x`,`y`],n}(t,o),c=n.useEncodeDefaulter,l=U(c)?c:c?ut(ah,s,t):null,u=Gb(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a}),d=function(e,t,n){var r,i;return n&&z(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),i||r==null||(e[r].otherDims.itemName=0),r}(u.dimensions,n.createInvertedIndices,o),f=a?null:i.getSharedDataStore(u),p=Xb(t,{schema:u,store:f}),m=new Wb(u,t);m.setCalculationInfo(p);var h=d!=null&&function(e){if(e.sourceFormat===`original`)return!H(Ho(function(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}(e.data||[])))}(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return m.hasItemOption=!1,m.initData(a?r:f,null,h),m}var $b=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Ts($b);var ex=0,tx=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ex,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&B(r,nx);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!W(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return(t=r.get(e))??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=q(this.categories)},e}();function nx(e){return G(e)&&e.value!=null?e.value:e+``}var rx=V({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function ix(e,t,n){var r;return e||={},r??function(e,t){var n=e||{},r=[];n._extents=r,r[0]=t?t.slice():[1/0,-1/0],L(n,ux)}(e,n),{brk:r,mapper:e}}function ax(e,t){z(rx,function(n){e[n]=t[n]})}function ox(e,t){e.freeze=jt}function sx(e){return e.getExtentUnsafe(0,2)}function cx(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function lx(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}var ux={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=cx(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){dx(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),dx(r,e,t,n)},freeze:function(){}};function dx(e,t,n,r){ls(n,r)&&(e[t][0]=n,e[t][1]=r)}function fx(e){return px(e)||hx(e)}function px(e){return e.type===`interval`}function mx(e){return e.type===`time`}function hx(e){return e.type===`log`}function gx(e){return e.type===`ordinal`}function _x(e){var t=Eo(e),n=so(10,t),r=io(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,go(r*n,-t)}function vx(e){return vo(e)+2}function yx(e,t){return co(e)/co(t)}function bx(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return so(t,e)}function xx(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=ro(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return cs(r[0])&&cs(r[1])||(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Sx(e,t){return io(no(e||=t,1))}function Cx(e,t,n){var r=sx(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);function c(e,t,r){n({value:e,offInterval:t},r)}s-o!==r[1]&&c(r[1],!0,!0)}var Tx=function(e){function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,ax(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new tx({}),H(i)&&(i=new tx({categories:B(i,function(e){return G(e)?e.value:e})})),r._ordinalMeta=i;var a=ix(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,ox(r,a.mapper),r}return P(t,e),t.parse=function(e){return e==null?e=NaN:W(e)?(e=this._ordinalMeta.getOrdinal(e))??(e=NaN):e=io(e),e},t.prototype.getTicks=function(){var e=[];return Cx(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e!=null){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=to(a,t.length);i<o;++i)r[n[i]=t[i]]=i;for(var s=0;i<a;++i){for(;r[s]!=null;)s++;n[i]=s,r[s]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=sx(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(io(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}($b);function Ex(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!l.break&&!c.break){for(var u=0,d=[],f=(c.value-l.value)/t,p=vx(f);u<t-1;){var m=go(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=Pp();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}$b.registerClass(Tx);var Dx=function(e){function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,r.brk=ix(r,Fp(r,n||={}),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return P(t,e),t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return I(this._cfg)},t.prototype.setConfig=function(e){var t=sx(this);this._cfg=e=I(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=vx(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=sx(this),i=t.niceExtent,a=t.intervalPrecision,o=null,s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?go(i[0]-n,a):r[0]});for(var u=function(e,t){return io((t-e)/n)},d=t.intervalCount,f=i[0],p=0;;p++){if(d==null){if(f>i[1]||!isFinite(f)||!isFinite(i[1]))break}else{if(p>d)break;f=to(f,i[1]),p===d&&(f=i[1])}if(l.push({value:f}),f=go(f+n,a),s){var m=s.calcNiceTickMultiple(f,u);m>=0&&(f=go(f+m*n,a))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>3e3)return[]}var h=l.length?l[l.length-1].value:i[1];return r[1]>h&&l.push({value:e.expandToNicedExtent?go(h+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Ex(this,e,Ip(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=vo(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),gm(go(e.value,n,!0))},t.type=`interval`,t}($b);$b.registerClass(Dx);var Ox=function(e){function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=ix(r,Fp(r,n),null).brk,r}return P(t,e),t.prototype.getLabel=function(e){return $p(e.value,Kp[function(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}(Zp(this._minLevelUnit))]||Kp.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return function(e,t,n,r,i){var a=null;if(W(n))a=n;else if(U(n)){var o={time:e.time,level:e.time?e.time.level:0};a=n(e.value,t,o)}else{var s=e.time;if(s){var c=n[s.lowerTimeUnit][s.upperTimeUnit];a=c[Math.min(s.level,c.length-1)]||``}else{var l=em(e.value,i);a=n[l][l][0]}}return $p(new Date(e.value),a,i,r)}(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=sx(this),r=this.brk,i=[];if(!t)return i;var a=this._useUTC;i=function(e,t,n,r,i,a){var o=Jp,s=0;function c(e,t,n,i,o,c,l){for(var u=function(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Ax(Zp(e),r[0],r[1],n)){s&&(i=[{value:Ix(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/Vp/365)),p=nm(n),m=lm(n);break;case`half-year`:case`quarter`:case`month`:f=Mx(t),p=rm(n),m=um(n);break;case`week`:case`half-week`:case`day`:f=jx(t,31),p=im(n),m=dm(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Nx(t),p=am(n),m=fm(n);break;case`minute`:f=Px(t,!0),p=om(n),m=pm(n);break;case`second`:f=Px(t,!1),p=sm(n),m=mm(n);break;case`millisecond`:f=Fx(t),p=cm(n),m=hm(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=Zp(o[m]);if(Qp(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Zp(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;_!==0&&d[_-1].value===v||(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>1.5*y&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}var b=ct(B(u,function(e){return ct(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[];for(m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=em(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}fs(S,ps,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=em(r[0],n),k=em(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}(this._minLevelUnit,this._approxInterval,a,n,lx(this),r);var o=qp.length-1,s=0;return z(i,function(e){e.time&&(o=Math.min(o,R(qp,e.time.upperTimeUnit)),s=Math.max(s,e.time.level))}),i},t.prototype.getMinorTicks=function(e){return Ex(this,e,Ip(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return ft(e)?Math.round(e):+wo(e)},t.type=`time`,t}($b),kx=[[`second`,Rp],[`minute`,zp],[`hour`,Bp],[`quarter-day`,216e5],[`half-day`,432e5],[`day`,10368e4],[`half-week`,3024e5],[`week`,6048e5],[`month`,26784e5],[`quarter`,8208e6],[`half-year`,Hp/2],[`year`,Hp]];function Ax(e,t,n,r){return tm(new Date(t),e,r).getTime()===tm(new Date(n),e,r).getTime()}function jx(e,t){return(e/=Vp)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Mx(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function Nx(e){return(e/=Bp)>12?12:e>6?6:e>3.5?4:e>2?2:1}function Px(e,t){return(e/=t?zp:Rp)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Fx(e){return no(Do(e,!0),1)}function Ix(e,t,n){var r=Math.max(0,R(qp,t)-1);return tm(new Date(e),qp[r],n).getTime()}$b.registerClass(Ox);var Lx=function(e){function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Dx.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[0]=i[1]=a[0]=a[1]=NaN,ax(r,t.mapperMethods),n.breakOption;var s={lookup:o};return r.powStub=new Dx({breakParsed:s.original}),r.intervalStub=new Dx({breakParsed:s.transformed}),ox(r,r.intervalStub),r}return P(t,e),t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=this.intervalStub,i={lookup:{from:r.getExtent(),to:n.getExtent()}};return B(r.getTicks(e||{}),function(e){var n;return{value:bx(e.value,t,i),break:n}},this)},t.prototype.getMinorTicks=function(e){return Ex(this,e,Ip(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(yx(e,this.base))},scale:function(e){return bx(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=yx(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return Rx.depth=n,zx.lookup=this._lookup,bx(n===2?e:this.intervalStub.transformOut(e,Rx),this.base,zx)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!ls(t,n)||t<=0||n<=0)){var r=Bx,i=Bx;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[0]=t,r[1]=n);var o=this.base;this.intervalStub.setExtent2(e,i[0]=yx(t,o),i[1]=yx(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return ls(t[0],t[1])&&Mo(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}($b);$b.registerClass(Lx);var Rx={},zx={},Bx=[],Vx={value:1,category:1,time:1,log:1},Hx=Zo();function Ux(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Yp(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}return W(t)?function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)}:U(t)?e.type===`category`?function(n,r){return t(Wx(e,n),n.value-e.scale.getExtent()[0],null)}:function(n,r){return t(Wx(e,n),r,null)}:function(t){return e.scale.getLabel(t)}}function Wx(e,t){var n=e.scale;return gx(n)?n.getLabel(t):t.value}function Gx(e){return e.get(`interval`)??`auto`}function Kx(e,t){var n={};return z(e.mapDimensionsAll(t),function(t){n[function(e,t){return Zb(e,t)?e.getCalculationInfo(`stackResultDimension`):t}(e,t)]=!0}),V(n)}function qx(e){return e===`middle`||e===`center`}function Jx(e){return e.getShallow(`show`)}function Yx(e,t,n){e.get(`breaks`,!0)}function Xx(e,t,n,r,i,a){var o,s,c=hx(e),l=c?e.intervalStub:e;if(l.setExtent(r[0],r[1]),c){var u=e.powStub,d={depth:2},f=e.transformOut(r[0],d),p=e.transformOut(r[1],d),m=(s=r,[(o=n)[0]!==s[0],o[1]!==s[1]]);t[0]&&!m[0]&&(f=i[0]),t[1]&&!m[1]&&(p=i[1]),u.setExtent(f,p)}l.setConfig(a)}function Zx(e,t){return gx(e)?e.getRawOrdinalNumber(t.value):t.value}function Qx(e,t){return gx(e)&&!!t.get(`boundaryGap`)}var $x=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),eS=us(),tS=Zo(),nS=Zo();function rS(e,t){var n=e.model,r=tS(Tv(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function iS(e,t){return oS(rS(e,t))}function aS(e,t){var n=tS(Tv(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function oS(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function sS(e,t,n){var r=rS(e,t);r&&cS(e.model.ecModel,r.sers,n)}function cS(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function lS(e,t){var n=e.model,r=tS(Tv(n.ecModel)).keys;r&&z(r.get(n.uid),function(e){t(e)})}function uS(e){var t=nS(function(e){return wv(e).prepare}(e)),n=t.keyed||=q();aS(e,function(t,r,i){var a=n.get(r)||n.set(r,q()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&dS.liPosMinGap(e,t,o)})}var dS={};function fS(e,t,n){if(e){var r=t.ecModel,i=tS(Tv(r)),a=e.model.uid,o=i.axSer||=q();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=mS.get(pS(s,c,n))||mS.get(pS(s,c,null));if(l){var u=i.keyed||=q(),d=i.keys||=q(),f=l.key,p=u.get(f)||u.set(f,q()),m=p.get(a);m||((m=p.set(a,{axis:e,sers:[],serByIdx:[]})).metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function pS(e,t,n){return e+`|&`+K(t,!0)+`|&`+(n||``)}var mS=q(),hS=Zo(),gS=function(){function e(e,t,n,r,i){var a,o=gx(e),s=o?t.getCategories().length:null;if(o){var c=t.getCategories(!0);a=c&&!c.length}var l=n.slice();(px(e)||hx(e)||mx(e))&&(os(l,vS(e,t.get(`dataMin`,!0))),ss(l,vS(e,t.get(`dataMax`,!0)))),function(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=vS(e,U(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=vS(e,U(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=function(e,t){var n;if(gx(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=H(r)?r:[r,r]}return[yS(n[0]),yS(n[1])]}(e,t),h=o?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=o?a?l[0]:s?0:NaN:l[0]-m[0]*h,u[1]??=o?a?l[1]:s?s-1:NaN:l[1]+m[1]*h,!cs(u[0])&&(u[0]=NaN),!cs(u[1])&&(u[1]=NaN);var g=a||_t(u[0])||_t(u[1])||o&&!s,_=px(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=vS(e,t.get(`startValue`,!0)),x=b!=null;!Mo(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Mo(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),_S(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),_S(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function _S(e,t){var n,r=e.scale,i=e.dataMM;r.sanitize&&(t[0]=r.sanitize(t[0],i),t[1]=r.sanitize(t[1],i),ls((n=t)[0],n[1])&&n[0]>n[1]&&(n[0]=n[1]))}function vS(e,t){return t==null?null:_t(t)?NaN:e.parse(t)}function yS(e){return Ma(typeof e==`boolean`?0:e,1)||0}function bS(e){var t=hS(e.scale);return t.extent||=[1/0,-1/0],t}function xS(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||function(e,t,n,r,i){var a=bS(t),o=a.extent,s=!1;(function(e,t){var n=e.model.ecModel,r=tS(Tv(n)).axSer;r&&cS(n,r.get(e.model.uid),t)})(t,function(r){if(r.boxCoordinateSystem){var i=km(r).coord,c=a.dimIdxInCoord;if(c>=0&&H(i)){var l=i[c];l==null||H(l)||as(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;z(Kx(u,n),function(e){var t=o,n;ls((n=u.getApproximateExtent(e,d))[0],n[1])&&(n[0]<t[0]&&(t[0]=n[0]),n[1]>t[1]&&(t[1]=n[1]))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=function(e,t,n){var r=Qx(e,n),i=n.get(`containShape`,!0);if(i!=null||r||(i=!0),!i)return!1;var a=!1;return lS(t,function(e){a=!!CS.get(e)||a}),a}(e,t,r);SS(e,new gS(e,r,o,s,c),i),a.extent=null}(n,e,i,r,t)}function SS(e,t,n){e.rawExtentInfo=t,t.from=n}var CS=q();function wS(e,t,n,r,i){e.rawExtentInfo||function(e,t){var n=e.scale;SS(n,new gS(n,e.model,t,!1,!1),3)}({scale:e,model:t},i||[1/0,-1/0]);var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function TS(e,t,n,r){var i;if(n.ctnShp&&(lS(e,function(t){var n=CS.get(t);if(n){var a=n(e,r);a&&(os(i||=[0,0],a[0]),ss(i,a[1]),function(e){Hx(e).noOnMyZero=!0}(e))}}),i)){var a=t.getExtent();if(gx(t))e.onBand||t.setExtent2(1,to(a[0],a[0]+i[0]),no(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=to(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=no(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}function ES(e,t){var n=hx(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=xx(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?function(e,t){var n=Sx(t.splitNumber,10),r=e.getExtent(),i=lx(e),a=no(To(i),1);n/i*a<=.5&&(a*=10);var o=vx(a),s=[go(oo(r[0]/a)*a,o),go(ao(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}(r,t):function(e,t){var n=Sx(t.splitNumber,5),r=lx(e),i=t.minInterval,a=t.maxInterval,o=Do(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=vx(o),c=e.getExtent(),l=[go(oo(c[0]/o)*o,s),go(ao(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=vx(d)),i[0]||(s[0]=go(ao(s[0]/u)*u,l)),i[1]||(s[1]=go(oo(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),Xx(e,i,o,s,a,c)}function DS(e){var t=e.scale,n=e.model;(function(e,t,n,r,i){var a=wS(e,t,r,n,i),o=px(e)||mx(e);(function(e,t){OS[e.type](e,t)})(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&TS(n,e,a,r)})(t,n,n.axis,n.ecModel,null)}var OS={interval:ES,log:ES,time:function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=Vp,n[1]+=Vp),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-Vp}e.setExtent(n[0],n[1]);var i=Sx(t.splitNumber,10),a=lx(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=kx.length,l=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(kx,a,0,c),c-1),u=kx[l][1],d=kx[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})},ordinal:jt},kS=[],AS={registerPreprocessor:lb,registerProcessor:ub,registerPostInit:function(e){db(`afterinit`,e)},registerPostUpdate:function(e){db(`afterupdate`,e)},registerUpdateLifecycle:db,registerAction:fb,registerCoordinateSystem:function(e,t){Dm.register(e,t)},registerLayout:function(e,t){hb(eb,e,t,1e3,`layout`,!0)},registerVisual:pb,registerTransform:_b,registerLoading:gb,registerMap:function(e,t,n){var r=Sv.registerMap;r&&r(e,t,n)},registerImpl:function(e,t){Sv[e]=t},PRIORITY:hy,ComponentModel:Km,ComponentView:S_,SeriesModel:m_,ChartView:E_,registerComponentModel:function(e){Km.registerClass(e)},registerComponentView:function(e){S_.registerClass(e)},registerSeriesModel:function(e){m_.registerClass(e)},registerChartView:function(e){E_.registerClass(e)},registerCustomSeries:function(e,t){(function(e,t){Cv[e]=t})(e,t)},registerSubTypeDefaulter:function(e,t){Km.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ya[e]=t}};function jS(e){H(e)?z(e,function(e){jS(e)}):R(kS,e)>=0||(kS.push(e),U(e)&&(e={install:e}),e.install(AS))}var MS=Zo(),NS=Zo(),PS=1,FS=2;function IS(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function LS(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:B(zS(n,r),function(t,n){return{formattedLabel:Ux(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?function(e,t){var n=e.getLabelModel(),r=BS(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}(e,t):function(e){var t=e.scale.getTicks(),n=Ux(e);return{labels:B(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}(e)}function RS(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:zS(i,r)}:e.type===`category`?function(e,t){var n,r,i=VS(e),a=Gx(t),o=WS(i,a);if(o)return o;if(t.get(`show`)&&!e.scale.isBlank()||(n=[]),U(a))n=JS(e,a,!0);else if(a===`auto`){var s=BS(e,e.getLabelModel(),IS(FS));r=s.labelCategoryInterval,n=B(s.labels,function(e){return e.tick})}else n=JS(e,r=a,!0);return GS(i,a,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:r.getTicks(n)}}function zS(e,t){var n=t.getExtent(),r=[];return z(e,function(e){(e=t.parse(e))>=n[0]&&e<=n[1]&&r.push(e)}),fs(r,ms,null),_o(r),B(r,function(e){return{value:e}})}function BS(e,t,n){var r,i,a=HS(e),o=Gx(t),s=n.kind===PS;if(!s){var c=WS(a,o);if(c)return c}U(o)?r=JS(e,o,!1):(i=o===`auto`?function(e,t){if(t.kind===PS){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return NS(e).autoInterval=n,!0}),n}return NS(e).autoInterval??(NS(e).autoInterval=e.calculateCategoryInterval(t))}(e,n):o,r=JS(e,i,!1));var l={labels:r,labelCategoryInterval:i};return s?n.out.noPxChangeTryDetermine.push(function(){return GS(a,o,l),!0}):GS(a,o,l),l}var VS=US(`axisTick`),HS=US(`axisLabel`);function US(e){return function(t){return NS(t)[e]||(NS(t)[e]={list:[]})}}function WS(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function GS(e,t,n){return e.list.push({key:t,value:n}),n}function KS(e,t,n){return qS(e,t,n)==null}function qS(e,t,n){var r=MS(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function JS(e,t,n){var r=Ux(e),i=e.scale,a=[],o=U(t);return Cx(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}function YS(e,t){t||={};var n,r={w:NaN,w2:NaN},i=e.scale,a=t.fromStat,o=t.min,s=(n=cx(i,3))[1]-n[0];Mo(s)||(s=NaN);var c=e.getExtent(),l=ro(c[1]-c[0]);return gx(i)?function(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}(r,e,s,l):a&&function(e,t,n,r,i){var a=!1,o=-1/0;z(i.key?[iS(t,i.key)]:function(e,t){var n=[];return aS(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(oS(e))}),n}(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Mo(n)&&n>0&&Mo(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=.8*r,e.w2=e.w*n/r)}(r,e,s,l,a),o!=null&&(r.w=Mo(r.w)?no(o,r.w):o),r}var XS=[0,1],ZS=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return po(e=n.normalize(n.parse(e)),XS,QS(this),t)},e.prototype.coordToData=function(e,t){var n=po(e,QS(this),XS,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e||={}).tickModel||this.getTickModel(),n=B(RS(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(Zx(this.scale,e)),tick:e}},this),r=function(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=YS(e).w;if(!i)return!1;z(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}(this,n,t.get(`alignWithLabel`));return B(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:r}})},e.prototype.getMinorTicksCoords=function(){if(gx(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),B(this.scale.getMinorTicks(e),function(e){return B(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return LS(this,e||=IS(FS)).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return YS(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return function(e,t){var n=t.kind,r=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}(e),i=Ux(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1;c>40&&(l=Math.max(1,Math.floor(c/40)));for(var u=s[0],d=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(d*Math.cos(a)),p=Math.abs(d*Math.sin(a)),m=0,h=0;u<=s[1];u+=l){var g,_,v=Oa(i({value:u}),r.font,`center`,`top`);g=1.3*v.width,_=1.3*v.height,m=Math.max(m,g,7),h=Math.max(h,_,7)}var y=m/f,b=h/p;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(y,b)));return n===PS?(t.out.noPxChangeTryDetermine.push(lt(KS,null,e,x,c)),x):qS(e,x,c)??x}(this,e||=IS(FS))},e}();function QS(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}Rc.CMD;function $S(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d),p=(c*(u/=f)+l*(d/=f))/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}var eC=new Y,tC=new Y,nC=new Y,rC=new Y,iC=new Y,aC=[],oC=new Y;function sC(e,t){if(t<=180&&t>0){t=t/180*Math.PI,eC.fromArray(e[0]),tC.fromArray(e[1]),nC.fromArray(e[2]),Y.sub(rC,eC,tC),Y.sub(iC,nC,tC);var n=rC.len(),r=iC.len();if(!(n<.001||r<.001)){rC.scale(1/n),iC.scale(1/r);var i=rC.dot(iC);if(Math.cos(t)<i){var a=$S(tC.x,tC.y,nC.x,nC.y,eC.x,eC.y,aC,!1);oC.fromArray(aC),oC.scaleAndAdd(iC,a/Math.tan(Math.PI-t));var o=nC.x===tC.x?(oC.y-tC.y)/(nC.y-tC.y):(oC.x-tC.x)/(nC.x-tC.x);if(isNaN(o))return;o<0?Y.copy(oC,tC):o>1&&Y.copy(oC,nC),oC.toArray(e[1])}}}}function cC(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,eC.fromArray(e[0]),tC.fromArray(e[1]),nC.fromArray(e[2]),Y.sub(rC,tC,eC),Y.sub(iC,nC,tC);var r=rC.len(),i=iC.len();if(!(r<.001||i<.001)&&(rC.scale(1/r),iC.scale(1/i),rC.dot(t)<Math.cos(n))){var a=$S(tC.x,tC.y,nC.x,nC.y,eC.x,eC.y,aC,!1);oC.fromArray(aC);var o=Math.PI/2,s=o+Math.acos(iC.dot(t))-n;if(s>=o)Y.copy(oC,nC);else{oC.scaleAndAdd(iC,a/Math.tan(Math.PI/2-s));var c=nC.x===tC.x?(oC.y-tC.y)/(nC.y-tC.y):(oC.x-tC.x)/(nC.x-tC.x);if(isNaN(c))return;c<0?Y.copy(oC,tC):c>1&&Y.copy(oC,nC)}oC.toArray(e[1])}}}function lC(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=!0===o?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function uC(e,t){var n=t.smooth,r=t.points;if(r){if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Vt(r[0],r[1]),a=Vt(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=Ut([],r[1],r[0],o/i),c=Ut([],r[1],r[2],o/a),l=Ut([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}}var dC=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`];function fC(e,t,n){n||=3,t?e.dirty|=n:e.dirty&=~n}function pC(e,t){return t||=3,e.dirty==null||!!(e.dirty&t)}function mC(e){if(e)return pC(e)&&hC(e,e.label,e),e}function hC(e,t,n){var r=t.getComputedTransform();e.transform=Wf(e.transform,r);var i=e.localRect=Uf(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=fp.textMargin);for(var d=0;d<4;d++)gC[d]=u===fp.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===fp.textMargin&&Ff(i,gC,!1,!1);var f=e.rect=Uf(e.rect,i);return r&&f.applyTransform(r),u===fp.minMargin&&Ff(f,gC,!1,!1),e.axisAligned=Vf(r),(e.label=e.label||{}).ignore=t.ignore,fC(e,!1),fC(e,!0,2),e}var gC=[0,0,0,0];function _C(e,t){for(var n=0;n<dC.length;n++){var r=dC[n];e[r]??(e[r]=t[r])}return mC(e)}function vC(e){var t=e.obb;return t&&!pC(e,2)||(e.obb=t||=new qd,t.fromBoundingRect(e.localRect,e.transform),fC(e,!1,2)),t}function yC(e,t,n,r){return!(!e||!t)&&!(e.label&&e.label.ignore||t.label&&t.label.ignore)&&!!e.rect.intersect(t.rect,n,r)&&(!(!e.axisAligned||!t.axisAligned)||vC(e).intersect(vC(t),n,r))}var bC=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return P(t,e),t.prototype.getInitialData=function(e){return Qb(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Ja,n=Lv(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=.8*e.itemHeight,s=Lv(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(m_);function xC(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=_g(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(_g(e,t,n[o]));return a.join(` `)}}function SC(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!H(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var CC=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return P(t,e),t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=Lv(e,-1,-1,2,2,null,a);o.attr({z2:K(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=wC,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){gu(this.childAt(0))},t.prototype.downplay=function(){_u(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{(p=this.childAt(0)).silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(f):$d(p,f,o,n),of(p)}if(this._updateCommon(e,n,s,r,i),l){var p=this.childAt(0);u||(f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,ef(p,f,o,n))}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m=this.childAt(0),h=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,s=r.selectItemStyle,c=r.focus,l=r.blurScope,d=r.labelStatesModels,f=r.hoverScale,p=r.cursorStyle,u=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);a=_.getModel(`itemStyle`).getItemStyle(),s=g.getModel([`select`,`itemStyle`]).getItemStyle(),o=g.getModel([`blur`,`itemStyle`]).getItemStyle(),c=_.get(`focus`),l=_.get(`blurScope`),u=_.get(`disabled`),d=np(g),f=_.getShallow(`scale`),p=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);m.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Rv(e.getItemVisual(t,`symbolOffset`),n);y&&(m.x=y[0],m.y=y[1]),p&&m.attr(`cursor`,p);var b=e.getItemVisual(t,`style`),x=b.fill;if(m instanceof ul){var S=m.style;m.useStyle(L({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else m.__isEmptyBrush?m.useStyle(L({},b)):m.useStyle(b),m.style.decal=null,m.setColor(x,i&&i.symbolInnerColor),m.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(m.z2=w,this._z2=null):w??(this._z2=m.z2,m.z2+=C);var T=i&&i.useNameLabel;tp(m,d,{labelFetcher:h,labelDataIndex:t,defaultText:function(t){return T?e.getName(t):xC(e,t)},inheritColor:x,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var E=m.ensureState(`emphasis`);E.style=a,m.ensureState(`select`).style=s,m.ensureState(`blur`).style=o;var D=f==null||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),ku(this,c,l,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Z(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&nf(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();nf(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return H(n=e.getItemVisual(t,`symbolSize`))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Ja);function wC(e,t){this.parent.drift(e,t)}function TC(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function EC(e){return e==null||G(e)||(e={isIgnore:e}),e||{}}function DC(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:np(t),cursorStyle:t.get(`cursor`)}}function OC(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var kC=function(){function e(e){this.group=new Ja,this._SymbolCtor=e||CC}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=EC(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=DC(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);TC(e,i,r,t)&&OC(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(TC(e,p,u,t)){var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),(f=new a(e,u,s,c)).setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):$d(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}else n.remove(f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=0,i=t.getStore().count();r<i;r++){var a=t.getItemGraphicEl(r),o=n._getSymbolPoint(r);TC(t,o,r,e)?((a||=OC(n._SymbolCtor,t,r,n._seriesScope,{disableAnimation:!0},o,n.group)).stopAnimation(),a.setPosition(o),a.markRedraw()):a&&(n.group.remove(a),t.setItemGraphicEl(r,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=DC(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}this._progressiveEls=[],r=EC(r);for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(TC(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){Bf(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function AC(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=function(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:ft(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=B(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return Zb(t,d[0])&&(f=!0,d[0]=p),Zb(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function jC(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function MC(e,t){return!isFinite(e)||!isFinite(t)}var NC=typeof Float32Array<`u`?Float32Array:void 0,PC=typeof Float64Array<`u`?Float64Array:void 0;function FC(e){return IC({ctor:NC},e).arr}function IC(e,t){var n=e.arr,r=e.ctor;if(t>bo&&(t=bo),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}var LC=Math.min,RC=Math.max;function zC(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[2*h],v=t[2*h+1];if(h>=i||h<0)break;if(MC(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[2*x],C=t[2*x+1];S===_&&C===v&&g<r;)g++,h+=a,S=t[2*(x+=a)],C=t[2*x+1],y=(_=t[2*h])-l,b=(v=t[2*h+1])-u;var w=g+1;if(c)for(;MC(S,C)&&w<r;)w++,S=t[2*(x+=a)],C=t[2*x+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||MC(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,ne=void 0,re=void 0;if(s===`x`){var ie=E>0?1:-1;p=_-ie*(ne=Math.abs(A))*o,m=v,O=_+ie*(re=Math.abs(j))*o,k=v}else if(s===`y`){var ae=D>0?1:-1;p=_,m=v-ae*(ne=Math.abs(ee))*o,O=_,k=v+ae*(re=Math.abs(te))*o}else ne=Math.sqrt(A*A+ee*ee),p=_-E*o*(1-(T=(re=Math.sqrt(j*j+te*te))/(re+ne))),m=v-D*o*(1-T),k=v+D*o*T,O=LC(O=_+E*o*T,RC(S,_)),k=LC(k,RC(C,v)),O=RC(O,LC(S,_)),m=v-(D=(k=RC(k,LC(C,v)))-v)*ne/re,p=LC(p=_-(E=O-_)*ne/re,RC(l,_)),m=LC(m,RC(u,v)),O=_+(E=_-(p=RC(p,LC(l,_))))*re/ne,k=v+(D=v-(m=RC(m,LC(u,v))))*re/ne}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var BC=function(){this.smooth=0,this.smoothConstraint=!0},VC=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return P(t,e),t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new BC},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&MC(n[2*i-2],n[2*i-1]);i--);for(;r<i&&MC(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=zC(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,a=Rc.CMD,o=t===`x`,s=[],c=0;c<i.length;){var l=void 0,u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0;switch(i[c++]){case a.M:n=i[c++],r=i[c++];break;case a.L:if(l=i[c++],u=i[c++],(h=o?(e-n)/(l-n):(e-r)/(u-r))<=1&&h>=0){var g=o?(u-r)*h+r:(l-n)*h+n;return o?[e,g]:[g,e]}n=l,r=u;break;case a.C:l=i[c++],u=i[c++],d=i[c++],f=i[c++],p=i[c++],m=i[c++];var _=o?Dr(n,l,d,p,e,s):Dr(r,u,f,m,e,s);if(_>0)for(var v=0;v<_;v++){var y=s[v];if(y<=1&&y>=0)return g=o?Tr(r,u,f,m,y):Tr(n,l,d,p,y),o?[e,g]:[g,e]}n=p,r=m}}},t}(al),HC=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t}(BC),UC=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return P(t,e),t.prototype.getDefaultShape=function(){return new HC},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&MC(n[2*a-2],n[2*a-1]);a--);for(;i<a&&MC(n[2*i],n[2*i+1]);i++);}for(;i<a;){var s=zC(e,n,i,a,a,1,t.smooth,o,t.connectNulls);zC(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(al);function WC(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new _l({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=U(i)?function(e){i(e,d)}:null;ef(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function GC(e,t,n){var r=e.getArea(),i=go(r.r0,1),a=go(r.r,1),o=new vd({shape:{cx:go(e.cx,1),cy:go(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,ef(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function KC(e,t){return e.type===t}function qC(e,t){t&&(t.font=t.textFont||t.font,J(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),J(t,`textAlign`)&&(e.align=t.textAlign),J(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),J(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),J(t,`textWidth`)&&(e.width=t.textWidth),J(t,`textHeight`)&&(e.height=t.textHeight),J(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),J(t,`textPadding`)&&(e.padding=t.textPadding),J(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),J(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),J(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),J(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),J(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),J(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),J(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function JC(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function YC(e){for(var t=[1/0,-1/0],n=[1/0,-1/0],r=0;r<e.length;){var i=e[r++],a=e[r++];MC(i,a)||(as(t,i),as(n,a))}return[t,n]}function XC(e,t){var n=YC(e),r=n[0],i=n[1],a=YC(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function ZC(e){return ft(e)?e:e?.5:0}function QC(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;MC(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function $C(e,t,n){var r=e.getVisual(`visualMeta`);if(r&&r.length&&e.count()&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if((i=s&&s.coordDim)===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=B(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=function(e,t){var n,r,i=[],a=e.length;function o(e,t,n){var r=e.coord;return{coord:n,color:ri((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<a;s++){var c=e[s],l=c.coord;if(l<0)n=c;else{if(l>t){r?i.push(o(r,c,t)):n&&i.push(o(n,c,0),o(n,c,t));break}n&&=(i.push(o(n,c,0)),null),i.push(c),r=c}}return i}(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=f[0].coord-10,h=f[p-1].coord+10,g=h-m;if(g<.001)return`transparent`;z(f,function(e){e.offset=(e.coord-m)/g}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var _=new Ld(0,0,0,0,f,!0);return _[i]=m,_[i+`2`]=h,_}}}function ew(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!r||i){var a=n.getAxesByScale(`ordinal`)[0];if(a&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(1.5*CC.getSymbolSize(t,o)[+!!e.isHorizontal()]>r)return!1;return!0}(a,t))){var o=t.mapDimension(a.dim),s={};return z(a.getViewLabels(),function(e){e.tick.offInterval||(s[Zx(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function tw(e,t){return[e[2*t],e[2*t+1]]}function nw(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<ql.length;t++)if(e.get([ql[t],`endLabel`,`show`]))return!0;return!1}function rw(e,t,n,r){if(KC(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=nw(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=WC(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=2*f):(d.x-=f,d.width+=2*f)}return c&&c(1,u),u}return GC(t,n,r)}var iw=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t.prototype.init=function(){var e=new Ja,t=new kC;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=lt(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=AC(r,a,_),y=g&&function(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=FC(2*r),a=0;a<r;a++){var o=jC(n,e,t,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&ew(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w,T=!l&&e.get(`step`);r&&r.getArea&&e.get(`clip`,!0)&&((w=r.getArea()).width==null?w.r0&&(w.r0-=.5,w.r+=.5):(w.x-=.1,w.y-=.1,w.width+=.2,w.height+=.2)),this._clipShapeForSymbol=w;var E=$C(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(f&&u.type===r.type&&T===this._step){g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Cm(E));var D=m.getClipPath();D?ef(D,{shape:rw(this,r,!1,e).shape},e):m.setClipPath(rw(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:w,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),JC(this._stackedOnPoints,y)&&JC(this._points,c)||(h?this._doUpdateAnimation(a,y,r,n,T,_,x):(T&&(y&&=QC(y,c,r,T,x),c=QC(c,null,r,T,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}else b&&d.updateData(a,{isIgnore:S,clipShape:w,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),h&&this._initSymbolLabelAnimation(a,r,w),T&&(y&&=QC(y,c,r,T,x),c=QC(c,null,r,T,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Cm(E)),m.setClipPath(rw(this,r,!0,e));var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);f.useStyle(it(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),Mu(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`&&(f.getState(`emphasis`).style.lineWidth=+f.style.lineWidth+1),Z(f).seriesIndex=e.seriesIndex,ku(f,k,A,j);var ee=ZC(e.get(`smooth`)),te=e.get(`smoothMonotone`);if(f.setShape({smooth:ee,smoothMonotone:te,connectNulls:x}),p){var ne=a.getCalculationInfo(`stackedOnSeries`),re=0;p.useStyle(it(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),ne&&(re=ZC(ne.get(`smooth`))),p.setShape({smooth:ee,stackedOnSmooth:re,smoothMonotone:te,connectNulls:x}),Mu(p,e,`areaStyle`),Z(p).seriesIndex=e.seriesIndex,ku(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=T,this._valueOrigin=_;var ae=e.get(`triggerEvent`),oe=e.get(`triggerLineEvent`),se=!0===oe||!0===ae||ae===`line`,M=!0===oe||!0===ae||ae===`area`;this.packEventData(e,f,se),p&&this.packEventData(e,p,M)},t.prototype.packEventData=function(e,t,n){Z(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Xo(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[2*a],l=o[2*a+1];if(MC(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;(s=new CC(i,a)).x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else E_.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Xo(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else E_.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;du(this._polyline,e),t&&du(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new VC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new UC({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);U(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=U(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=U(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(nw(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new xl({z2:200})).ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=function(e){for(var t=e.length/2;t>0&&MC(e[2*t-2],e[2*t-1]);t--);return t-1}(o);c>=0&&(tp(a,np(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?xC(i,e):SC(i,n)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=function(e,t,n){for(var r,i,a=e.length/2,o=n===`x`?0:1,s=0,c=-1,l=0;l<a;l++)if(!MC(i=e[2*l+o],e[2*l+1-o])){if(l!==0){if(r<=t&&i>=t||r>=t&&i<=t){c=l;break}s=l,r=i}else r=i}return{range:[s,c],t:(t-r)/(i-r)}}(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=tw(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{(E=c.getPointOn(v,x))&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=function(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(ft(r))return go(m=Lo(n||0,r,i),a?Math.max(vo(n||0),vo(r)):t);if(W(r))return i<1?n:r;for(var o=[],s=n,c=r,l=Math.max(s?s.length:0,c.length),u=0;u<l;++u){var d=e.getDimensionInfo(u);if(d&&d.type===`ordinal`)o[u]=(i<1&&s?s:c)[u];else{var f=s&&s[u]?s[u]:0,p=c[u],m=Lo(f,p,i);o[u]=go(m,a?Math.max(vo(f),vo(p)):t)}}return o}(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0;E=tw(l,k),i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=lp(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=function(e,t,n,r,i,a,o){for(var s=function(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}(e,t),c=[],l=[],u=[],d=[],f=[],p=[],m=[],h=AC(i,t,o),g=e.getLayout(`points`)||[],_=t.getLayout(`points`)||[],v=0;v<s.length;v++){var y=s[v],b=!0,x=void 0,S=void 0;switch(y.cmd){case`=`:x=2*y.idx,S=2*y.idx1;var C=g[x],w=g[x+1],T=_[S],E=_[S+1];(isNaN(C)||isNaN(w))&&(C=T,w=E),c.push(C,w),l.push(T,E),u.push(n[x],n[x+1]),d.push(r[S],r[S+1]),m.push(t.getRawIndex(y.idx1));break;case`+`:var D=y.idx,O=h.dataDimsForPoint,k=i.dataToPoint([t.get(O[0],D),t.get(O[1],D)]);S=2*D,c.push(k[0],k[1]),l.push(_[S],_[S+1]);var A=jC(h,i,t,D);u.push(A[0],A[1]),d.push(r[S],r[S+1]),m.push(t.getRawIndex(D));break;case`-`:b=!1}b&&(f.push(y),p.push(p.length))}p.sort(function(e,t){return m[e]-m[t]});var j=c.length,ee=FC(j),te=FC(j),ne=FC(j),re=FC(j),ie=[];for(v=0;v<p.length;v++){var ae=p[v],oe=2*v,se=2*ae;ee[oe]=c[se],ee[oe+1]=c[se+1],te[oe]=l[se],te[oe+1]=l[se+1],ne[oe]=u[se],ne[oe+1]=u[se+1],re[oe]=d[se],re[oe+1]=d[se+1],ie[v]=f[ae]}return{current:ee,next:te,stackedOnCurrent:ne,stackedOnNext:re,status:ie}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=QC(u.stackedOnCurrent,u.current,n,i,o),d=QC(u.current,null,n,i,o),m=QC(u.stackedOnNext,u.next,n,i,o),p=QC(u.next,null,n,i,o)),XC(d,p)>3e3||c&&XC(f,m)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m})));s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),$d(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),$d(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=2*g[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(E_),aw={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},ow=function(e){return Math.round(e.length/2)};function sw(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;W(i)?p=aw[i]:U(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,ow))}}}}}function cw(e){e.registerChartView(iw),e.registerSeriesModel(bC),e.registerLayout(function(e,t){return{seriesType:e,plan:C_(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=B(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);Zb(n,o[0])&&(o[0]=c),Zb(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&FC(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,sw(`line`))}var lw=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return P(t,e),t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ZS),uw=`expandAxisBreak`,dw=Math.PI,fw=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],pw=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],mw=Zo(),hw=Zo(),gw=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}(),_w=[1,0,0,1,0,0],vw=new X(0,0,0,0),yw=function(e,t,n,r,i,a){if(qx(e.nameLocation)){var o=a.stOccupiedRect;o&&bw(function(e,t,n){return e.transform=Wf(e.transform,n),e.localRect=Uf(e.localRect,t),e.rect=Uf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Vf(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}({},o,a.transGroup.transform),r,i)}else xw(a.labelInfoList,a.dirVec,r,i)};function bw(e,t,n){var r=new Y;yC(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}(t,r)}function xw(e,t,n,r){for(var i=Y.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||bw(s,n,r)}}var Sw=function(){function e(e,t,n,r){this.group=new Ja,this._axisModel=e,this._api=t,this._local={},this._shared=r||new gw(yw),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=K(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);i!=null&&i!==`auto`||(i=K(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:K(e.nameDirection,1),tickDirection:K(e.tickDirection,1),labelDirection:K(e.labelDirection,1),labelOffset:K(e.labelOffset,0),silent:K(e.silent,!0),axisName:r,nameLocation:yt(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:Nw(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Ja({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Y(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},z(Cw,function(r){e[r]&&ww[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r,i,a=xo(t-e);return So(a)?(i=n>0?`top`:`bottom`,r=`center`):So(a-dw)?(i=n>0?`bottom`:`top`,r=`center`):(i=`middle`,r=a>0&&a<dw?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Cw=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],ww={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Wt(u,u,l),Wt(d,d,l));var p=L({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Lp(r.axis.scale))null.buildAxisBreakLine(r,i,a,m);else{var h=new Od(L({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));xf(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);W(g)&&(g=[g,g]),(W(_)||ft(_))&&(_=[_,_]);var v=Rv(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];z([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=Lv(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Ow(t,i,s)&&Tw(e,t,n,r,i,a,o,PS)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Ow(t,i,s)&&Tw(e,t,n,r,i,a,o,FS);var c=function(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=Dw(i.getTicksCoords(),n.transform,c,it(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}(e,i,a,r);(function(e,t,n){e.showMinorTicks||z(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=hw(r),a=mw(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value)return void Ew(r)}})})(e,t.labelLayoutList,c),function(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(e.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=it(c.getLineStyle(),it(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=Dw(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(Nw(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Y(0,0),_=new Y(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=[1,0,0,1,0,0];_.transform(Cn(v,v,e.rotation));var y,b,x=r.get(`nameRotate`);x!=null&&(x=x*dw/180),qx(u)?y=Sw.innerTextLayout(e.rotation,x??e.rotation,d):(y=function(e,t,n,r){var i,a,o=xo(n-e),s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return So(o-dw/2)?(a=c?`bottom`:`top`,i=`center`):So(o-1.5*dw)?(a=c?`top`:`bottom`,i=`center`):(a=`middle`,i=o<1.5*dw&&o>dw/2?c?`left`:`right`:c?`right`:`left`),{rotation:o,textAlign:i,textVerticalAlign:a}}(e.rotation,u,x||0,m),(b=e.raw.axisNameAvailableWidth)!=null&&(b=Math.abs(b/Math.sin(y.rotation)),!isFinite(b)&&(b=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=vt(e.raw.nameTruncateMaxWidth,C.maxWidth,b),E=s.nameMarginLevel||0,D=new xl({x:g.x,y:g.y,rotation:y.rotation,silent:Sw.isLabelSilent(r),style:rp(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||y.textAlign,verticalAlign:f.get(`verticalAlign`)||y.textVerticalAlign}),z2:1});if(Rf({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Sw.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Z(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=mC({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:qx(u)?fw[E]:pw[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function Tw(e,t,n,r,i,a,o,s){kw(t)||function(e,t,n,r,i,a){var o=i.axis,s=vt(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Ja;n.add(c);var l=IS(r);if(!s||o.scale.isBlank())return void Aw(t,[],c,l);var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(vt(e.raw.labelRotate,u.get(`rotate`))||0)*dw/180,p=Sw.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;z(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=Zx(o.scale,n);if(m&&m[f]){var y=m[f];G(y)&&y.textStyle&&(l=new Cp(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=K(l.getShallow(`alignMinLabel`,!0),x),C=K(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=K(l.getShallow(`verticalAlignMinLabel`,!0),w),E=K(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new xl({x:0,y:0,rotation:0,silent:Sw.isLabelSilent(i),z2:D,style:rp(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:U(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=mw(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Rf({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=Sw.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),Z(O).eventData=A,j&&function(e,t,n,r){n.on(`click`,function(n){var i={type:uw,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}(i,a,O,j)}h.push(O),c.add(O)}),Aw(t,B(h,function(e){return{label:e,priority:mw(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}(e,t,i,s,r,o);var c=t.labelLayoutList;(function(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);z(n,function(n,a){var o=mC(n);if(o){var s=o.label,c=mw(s);o.suggestIgnore=s.ignore,s.ignore=!1,xa(jw,Mw);var l=t.axis;jw.x=l.dataToCoord(Zx(l.scale,c.labelInfo.tick)),jw.y=e.labelOffset+e.labelDirection*i,jw.rotation=c.layoutRotation,r.add(jw),jw.updateTransform(),r.remove(jw),jw.decomposeTransform(),xa(s,jw),s.markRedraw(),fC(o,!0),mC(o)}})})(e,r,c,a),e.rotation;var l=e.optionHideOverlap;(function(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(function(e){return e.type===`category`&&Gx(e.getLabelModel())===0}(r))return;function a(e,a,o){var s=mC(t[a]),c=mC(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=mw(s.label).labelInfo.tick;if(mx(l)&&u.notNice||gx(l)&&u.offInterval)return void Ew(s.label)}if(!1===e||s.suggestIgnore)Ew(s.label);else if(c.suggestIgnore)Ew(c.label);else{var d=.1;if(!n){var f=[0,0,0,0];s=_C({marginForce:f},s),c=_C({marginForce:f},c)}yC(s,c,null,{touchThreshold:d})&&Ew(e?c.label:s.label)}}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)})(r,c,l),l&&function(e){var t=[];function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});for(var r=0;r<e.length;r++){var i=mC(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(yC(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}(ct(c,function(e){return e&&!e.label.ignore})),function(e,t,n,r){var i,a=n.axis,o=t.ensureRecord(n),s=[],c=Nw(e.axisName)&&qx(e.nameLocation);z(r,function(e){var t=mC(e);if(t&&!t.label.ignore){s.push(t);var n=o.transGroup;c&&(n.transform?wn(_w,n.transform):yn(_w),t.transform&&xn(_w,_w,t.transform),X.copy(vw,t.localRect),vw.applyTransform(_w),i?i.union(vw):X.copy(i=new X(0,0,0,0),vw))}});var l=Math.abs(o.dirVec.x)>.1?`x`:`y`,u=o.transGroup[l];if(s.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&i){var d=a.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;i.union(new X(f,0,p,1))}o.stOccupiedRect=i,o.labelInfoList=s}(e,n,r,c)}function Ew(e){e&&(e.ignore=!0)}function Dw(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Wt(o,o,t),Wt(s,s,t));var u=new Od({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});xf(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=hw(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function Ow(e,t,n){if(kw(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),Aw(e,null,null,null))}return!0}function kw(e){return!!e.labelLayoutList}function Aw(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}var jw=new _l,Mw=new _l;function Nw(e){return!!e}function Pw(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),vt(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function Fw(){dS.liPosMinGap=Iw}function Iw(e,t,n){var r,i=q(),a=n.serUids,o=n.liPosMinGap,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=Dg(u);function f(n){cS(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){i.set(t.uid,1),a&&a.hasKey(t.uid)||(r=!0),p+=n.count()}),a&&a.keys().length===i.keys().length||(r=!0),r||o==null){IC(Lw,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);!isFinite(a)||u&&!Og(d,a)||(l&&(a=c.transformIn(a,null)),Lw.arr[m++]=a)}});var h=Lw.typed?Lw.arr.subarray(0,m):(Lw.arr.length=m,Lw.arr);Lw.typed?h.sort():_o(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Mo(g)?g:m>0?-2:-1,n.serUids=i}else t.liPosMinGap=o}var Lw=IC({ctor:PC},50);function Rw(e,t){return e+`|&`+t}function zw(e){return Fw(),{liPosMinGap:!gx(e.scale)}}function Bw(e,t,n,r){(function(e,t){var n=pS(t.seriesType,t.baseAxis,t.coordSysType);mS.set(n,t),eS(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:uS})})})(e,{key:t,seriesType:n,coordSysType:r,getMetrics:zw})}var Vw={left:0,right:0,top:0,bottom:0},Hw=[`25%`,`25%`],Uw=`cartesian2d`,Ww=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t.prototype.mergeDefaultAndTheme=function(t,n){var r=Um(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Hm(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Hm(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:Vw,outerBoundsContain:`all`,outerBoundsClampWidth:Hw[0],outerBoundsClampHeight:Hw[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(Km),Gw=us();function Kw(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}function qw(e,t){var n=function(e,t){var n=Rw(t,Uw),r=[],i=YS(e,{fromStat:{key:n},min:1});return sS(e,n,function(e){r.push({barWidth:mo(e.get(`barWidth`),i.w),barMaxWidth:mo(e.get(`barMaxWidth`),i.w),barMinWidth:mo(e.get(`barMinWidth`)||(Yw(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:Kw(e)})}),{bandWidthResult:i,seriesInfo:r}}(e,t);return n.columnMap=function(e){var t,n,r=e.bandWidthResult.w,i=r,a=0,o=[],s={};z(e.seriesInfo,function(e,r){r||(n=e.defaultBarGap||0);var c=e.stackId;J(s,c)||a++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=to(i,u),i-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(n=p);var m=e.barCategoryGap;m!=null&&(t=m)}),t??=no(35-4*o.length,15)+`%`;var c=mo(t,r),l=mo(n,1),u=(i-c)/(a+(a-1)*l);u=no(u,0),z(o,function(e){var t=s[e],n=t.maxWidth,r=t.minWidth;if(t.width)o=t.width,n&&(o=to(o,n)),r&&(o=no(o,r)),t.width=o,i-=o+l*o,a--;else{var o=u;n&&n<o&&(o=to(n,i)),r&&r>o&&(o=r),o!==u&&(t.width=o,i-=o+l*o,a--)}}),u=no(u=(i-c)/(a+(a-1)*l),0);var d,f=0;z(o,function(e){var t=s[e];t.width||=u,d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p={},m=-f/2;return z(o,function(e){var t=s[e];p[e]=p[e]||{bandWidth:r,offset:m,width:t.width},m+=t.width*(1+l)}),p}(n),n}function Jw(e){return{seriesType:e,overallReset:function(t){var n=Rw(e,Uw);(function(e,t,n){var r=tS(Tv(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})})(t,n,function(t){var r=qw(t,e);sS(t,n,function(e){var t=r.columnMap[Kw(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function Yw(e){return e.pipelineContext&&e.pipelineContext.large}function Xw(e){return t=Rw(e,Uw),function(e,n){var r=YS(e,{fromStat:{key:t}});if(Mo(r.w2))return[-r.w2/2,r.w2/2]};var t}function Zw(e){Gw(e,function(){function t(t){var n=Rw(t,Uw);Bw(e,n,t,Uw),function(e,t){CS.set(e,t)}(n,Xw(t))}t(`bar`),t(`pictorialBar`)})}var Qw=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.getInitialData=function(e,t){return Qb(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)z(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2)return void(a[n]=e.toGlobalCoord(e.getExtent()[+!!c]));for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(m_);m_.registerClass(Qw);var $w=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.getInitialData=function(){return Qb(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return!!this.get(`large`)&&this.get(`progressive`)},t.prototype.__preparePipelineContext=function(e,t){var n=hs(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Ep(Qw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Qw),eT=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},tT=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return P(t,e),t.prototype.getDefaultShape=function(){return new eT},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-i),s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=2*Math.PI,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-2*Math.PI,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(al);function nT(e,t,n){return t*Math.sin(e)*(n?-1:1)}function rT(e,t,n){return t*Math.cos(e)*(n?1:-1)}function iT(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;H(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:B(r,function(e){return Ma(e,i)})}}var aT=Math.max,oT=Math.min,sT=function(e){function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return P(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i!==`cartesian2d`&&i!==`polar`||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Bf(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;this._isLargeDraw!=null&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,a=this.group,o=e.getData(),s=this._data,c=e.coordinateSystem,l=c.getBaseAxis();c.type===`cartesian2d`?i=l.isHorizontal():c.type===`polar`&&(i=l.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=function(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,c);d&&this._enableRealtimeSort(d,o,n);var f=e.get(`clip`,!0)||d,p=c.getArea();a.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=hT[c.type](o,e);if(!t)return null;var n=function(e,t,n){return new(e.type===`polar`?vd:_l)({shape:ST(t,n,e),silent:!0,z2:0})}(c,i,t);return n.useStyle(g.getItemStyle()),c.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}o.diff(s).add(function(t){var n=o.getItemModel(t),r=hT[c.type](o,t,n);if(r&&(h&&S(t),o.hasValue(t)&&mT[c.type](r))){var s=!1;f&&(s=cT[c.type](p,r));var g=lT[c.type](e,o,t,r,i,u,l.model,!1,m);d&&(g.forceLabelAnimation=!0),_T(g,o,t,n,r,e,i,c.type===`polar`),b?g.attr({shape:r}):d?uT(d,u,g,r,t,i,!1,!1):ef(g,{shape:r},e,t),o.setItemGraphicEl(t,g),a.add(g),g.ignore=s}}).update(function(t,n){var r=o.getItemModel(t),C=hT[c.type](o,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):((w=y[n]).useStyle(g.getItemStyle()),c.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=hT[c.type](o,t);$d(w,{shape:ST(i,T,c)},u,t)}var E=s.getItemGraphicEl(n);if(o.hasValue(t)&&mT[c.type](C)){var D=!1;if(f&&(D=cT[c.type](p,C))&&a.remove(E),E&&(E.type===`sector`&&m||E.type===`sausage`&&!m)&&(E&&af(E,e,n),E=null),E?of(E):E=lT[c.type](e,o,t,C,i,u,l.model,!0,m),d&&(E.forceLabelAnimation=!0),x){var O=E.getTextContent();if(O){var k=lp(O);k.prevValue!=null&&(k.prevValue=k.value)}}else _T(E,o,t,r,C,e,i,c.type===`polar`);b?E.attr({shape:C}):d?uT(d,u,E,C,t,i,!0,x):$d(E,{shape:C},e,t,null),o.setItemGraphicEl(t,E),E.ignore=D,a.add(E)}else a.remove(E)}}).remove(function(t){var n=s.getItemGraphicEl(t);n&&af(n,e,t)}).execute();var C=this._backgroundGroup||=new Ja;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);a.add(C),this._backgroundEls=v,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),bT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),bT(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&function(e,t,n,r,i){return e?e.type===`polar`?GC(e,t,n):e.type===`cartesian2d`?WC(e,t,n,r,i):null:null}(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:B(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){af(t,e,Z(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(E_),cT={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=aT(t.x,e.x),s=oT(t.x+t.width,i),c=aT(t.y,e.y),l=oT(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=oT(t.r,e.r),a=aT(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;return n<0&&(r=t.r,t.r=t.r0,t.r0=r),o}},lT={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new _l({shape:L({},r),z2:1});return l.__dataIndex=n,l.name=`item`,a&&(l.shape[i?`height`:`width`]=0),l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?tT:vd,u=new l({shape:r,z2:1});u.name=`item`;var d,f;if(u.calculateTextPosition=(d=gT(i),f={isRoundCap:l===tT}.isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return Na(e,t,n);var i=d(r),a=t.distance==null?5:t.distance,o=this.shape,s=o.cx,c=o.cy,l=o.r,u=o.r0,p=(l+u)/2,m=o.startAngle,h=o.endAngle,g=(m+h)/2,_=f?Math.abs(l-u)/2:0,v=Math.cos,y=Math.sin,b=s+l*v(m),x=c+l*y(m),S=`left`,C=`top`;switch(i){case`startArc`:b=s+(u-a)*v(g),x=c+(u-a)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=s+(u+a)*v(g),x=c+(u+a)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=s+p*v(m)+nT(m,a+_,!1),x=c+p*y(m)+rT(m,a+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=s+p*v(m)+nT(m,-a+_,!1),x=c+p*y(m)+rT(m,-a+_,!1),S=`left`,C=`middle`;break;case`middle`:b=s+p*v(g),x=c+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=s+(l+a)*v(g),x=c+(l+a)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=s+(l-a)*v(g),x=c+(l-a)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=s+p*v(h)+nT(h,a+_,!0),x=c+p*y(h)+rT(h,a+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=s+p*v(h)+nT(h,-a+_,!0),x=c+p*y(h)+rT(h,-a+_,!0),S=`right`,C=`middle`;break;default:return Na(e,t,n)}return(e||={}).x=b,e.y=x,e.align=S,e.verticalAlign=C,e}),a){var p=i?`r`:`endAngle`,m={};u.shape[p]=i?r.r0:r.startAngle,m[p]=r[p],(s?$d:ef)(u,{shape:m},a)}return u}};function uT(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?$d:ef)(n,{shape:c},t,i,null),(o?$d:ef)(n,{shape:l},t?e.baseAxis.model:null,i)}function dT(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var fT=[`x`,`y`,`width`,`height`],pT=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],mT={cartesian2d:function(e){return!dT(e,fT)},polar:function(e){return!dT(e,pT)}},hT={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?function(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function gT(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function _T(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(s){if(!a.get(`roundCap`)){var l=e.shape;L(l,iT(r.getModel(`itemStyle`),l,!0)),e.setShape(l)}}else{var u=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?function(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}(i,a.coordinateSystem):function(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}(i,a.coordinateSystem),p=np(r);tp(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:xC(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,function(e,t,n,r){if(ft(r))e.setTextConfig({rotation:r});else if(H(t))e.setTextConfig({rotation:0});else{var i,a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,c=(o+s)/2,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:i=c;break;case`startAngle`:case`insideStartAngle`:i=o;break;case`endAngle`:case`insideEndAngle`:i=s;break;default:e.setTextConfig({rotation:0});return}var u=1.5*Math.PI-i;l===`middle`&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}(e,h===`outside`?f:h,gT(o),r.get([`label`,`rotate`]))}(function(e,t,n,r){if(e){var i=lp(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}})(m,p,a.getRawValue(n),function(e){return SC(t,e)});var g=r.getModel([`emphasis`]);ku(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Mu(e,r),function(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}(i)&&(e.style.fill=`none`,e.style.stroke=`none`,z(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}var vT=function(){},yT=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return P(t,e),t.prototype.getDefaultShape=function(){return new vT},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(al);function bT(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?function(e,t){return K(t,!0)?e.seriesIndex+2:0}(e):0;if(l){var d=new yT({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new yT({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,Z(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,xT),f.on(`mousemove`,xT)),n&&n.push(f)}var xT=F_(function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=3*u;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}(this,e.offsetX,e.offsetY);Z(this).dataIndex=t>=0?t:null},30,!1);function ST(e,t,n){if(KC(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var a=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:2*Math.PI}}var CT,wT=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),TT=Zo(),ET=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new wT(lt(this.getData,this),lt(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return function(e,t,n){t=H(t)&&{coordDimensions:t}||L({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Gb(r,t).dimensions,a=new Wb(i,e);return a.initData(r,n),a}(this,{coordDimensions:[`value`],encodeDefaulter:ut(oh,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=TT(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=function(e,t){var n=st(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=so(10,t),i=B(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=100*r,o=B(i,function(e){return ao(e)}),s=st(o,function(e,t){return e+t},0),c=B(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return B(o,function(e){return e/r})}(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Bo(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(m_);CT={fullType:ET.type,getCoord2:function(e){return e.getShallow(`center`)}},Om.set(CT.fullType,{getCoord2:void 0}).getCoord2=CT.getCoord2;var DT=Math.PI/180;function OT(e,t,n,r,i,a,o,s,c,l){if(!(e.length<2)){for(var u=e.length,d=0;d<u;d++)if(e[d].position===`outer`&&e[d].labelAlignTo===`labelLine`){var f=e[d].label.x-l;e[d].linePoints[1][0]+=f,e[d].label.x=l}(function(e,t,n,r,i){var a=e.length,o=lf[t],s=uf[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c,l=0,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;(c=m[o]-l)<0&&(m[o]-=c,p.label[o]-=c,u=!0),d+=Math.max(-c,0),l=m[o]+m[s]}d>0&&i&&x(-d/a,0,a);var h,g,_=e[0],v=e[a-1];function y(){h=_.rect[o]-n,g=r-v.rect[o]-v.rect[s]}function b(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){x(r*n,0,a);var i=r+e;i<0&&S(-i*n,1)}else S(-e*n,1)}}function x(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i];a.rect[o]+=t,a.label[o]+=t}}function S(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(c=0;c<a-1;c++)x(r[c]*d,0,c+1);else for(c=a-1;c>0;c--)x(-r[c-1]*d,c,a)}}function C(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?x(n,0,r+1):x(-n,a-r-1,a),(e-=n)<=0)return}return y(),h<0&&S(-h,.8),g<0&&S(g,.8),y(),b(h,g,1),b(g,h,-1),y(),h<0&&C(-h),g<0&&C(g),u})(e,1,c,c+o)&&function(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,u=Math.abs(c.label.y-n);if(u>=l.maxY){var d=c.label.x-t-c.len2*i,f=r+c.len;l.rB=Math.abs(d)<f?Math.sqrt(u*u/(1-d*d/f/f)):f,l.maxY=u}l.list.push(c)}p(a),p(o)}(e)}function p(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;kT(c,c.targetTextWidth-p*i,!0),c.label.x=f}}}function kT(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}AT(a,r)}}}function AT(e,t){MT.rect=e,hC(MT,t,jT)}var jT={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},MT={};function NT(e){return e.position===`center`}function PT(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get(`minShowLabelAngle`)||0)*DT,s=r.getLayout(`viewRect`),c=r.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}r.each(function(e){var s=r.getItemGraphicEl(e),d=s.shape,m=s.getTextContent(),h=s.getTextGuideLine(),g=r.getItemModel(e),_=g.getModel(`label`),v=_.get(`position`)||g.get([`emphasis`,`label`,`position`]),y=_.get(`distanceToLabelLine`),b=_.get(`alignTo`),x=mo(_.get(`edgeDistance`),l),S=_.get(`bleedMargin`);S??=Math.min(l,f)>200?10:2;var C=g.getModel(`labelLine`),w=C.get(`length`);w=mo(w,l);var T=C.get(`length2`);if(T=mo(T,l),Math.abs(d.endAngle-d.startAngle)<o)return z(m.states,p),m.ignore=!0,void(h&&(z(h.states,p),h.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(m)){var E,D,O,k,A=(d.startAngle+d.endAngle)/2,j=Math.cos(A),ee=Math.sin(A);t=d.cx,n=d.cy;var te=v===`inside`||v===`inner`;if(v===`center`)E=d.cx,D=d.cy,k=`center`;else{var ne=(te?(d.r+d.r0)/2*j:d.r*j)+t,re=(te?(d.r+d.r0)/2*ee:d.r*ee)+n;if(E=ne+3*j,D=re+3*ee,!te){var ie=ne+j*(w+c-d.r),ae=re+ee*(w+c-d.r),oe=ie+(j<0?-1:1)*T;E=b===`edge`?j<0?u+x:u+l-x:oe+(j<0?-y:y),D=ae,O=[[ne,re],[ie,ae],[oe,ae]]}k=te?`center`:b===`edge`?j>0?`right`:`left`:j>0?`left`:`right`}var se=Math.PI,M=0,ce=_.get(`rotate`);if(ft(ce))M=se/180*ce;else if(v===`center`)M=0;else if(ce===`radial`||!0===ce)M=j<0?-A+se:-A;else if(ce===`tangential`||ce===`tangential-noflip`&&v!==`outside`&&v!==`outer`){var le=Math.atan2(j,ee);le<0&&(le=2*se+le),ee>0&&ce!==`tangential-noflip`&&(le=se+le),M=le-se}if(a=!!M,m.x=E,m.y=D,m.rotation=M,m.setStyle({verticalAlign:`middle`}),te){m.setStyle({align:k});var ue=m.states.select;ue&&(ue.x+=m.x,ue.y+=m.y)}else{var de=new X(0,0,0,0);AT(de,m),i.push({label:m,labelLine:h,position:v,len:w,len2:T,minTurnAngle:C.get(`minTurnAngle`),maxSurfaceAngle:C.get(`maxSurfaceAngle`),surfaceNormal:new Y(j,ee),linePoints:O,textAlign:k,labelDistance:y,labelAlignTo:b,edgeDistance:x,bleedMargin:S,rect:de,unconstrainedWidth:de.width,labelStyleWidth:m.style.width})}s.setTextConfig({inside:te})}}),!a&&e.get(`avoidLabelOverlap`)&&function(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;NT(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(f=0;f<e.length;f++)if(!NT(g=e[f])&&g.linePoints){if(g.labelStyleWidth!=null)continue;p=g.label;var m=g.linePoints,h=void 0;h=g.labelAlignTo===`edge`?p.x<t?m[2][0]-g.labelDistance-o-g.edgeDistance:o+i-g.edgeDistance-m[2][0]-g.labelDistance:g.labelAlignTo===`labelLine`?p.x<t?u-o-g.bleedMargin:o+i-d-g.bleedMargin:p.x<t?p.x-o-g.bleedMargin:o+i-p.x-g.bleedMargin,g.targetTextWidth=h,kT(g,h,!1)}for(OT(l,t,n,r,1,0,a,0,s,d),OT(c,t,n,r,-1,0,a,0,s,u),f=0;f<e.length;f++){var g;if(!NT(g=e[f])&&g.linePoints){p=g.label,m=g.linePoints;var _=g.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=g.rect.width+b,S=m[1][0]-m[2][0];_?p.x<t?m[2][0]=o+g.edgeDistance+x+g.labelDistance:m[2][0]=o+i-g.edgeDistance-x-g.labelDistance:(p.x<t?m[2][0]=p.x+g.labelDistance:m[2][0]=p.x-g.labelDistance,m[1][0]=m[2][0]+S),m[1][1]=m[2][1]=p.y}}}(i,t,n,c,l,f,u,d);for(var m=0;m<i.length;m++){var h=i[m],g=h.label,_=h.labelLine,v=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:h.textAlign}),v&&(z(g.states,p),g.ignore=!0);var y=g.states.select;y&&(y.x+=g.x,y.y+=g.y)}if(_){var b=h.linePoints;v||!b?(z(_.states,p),_.ignore=!0):(sC(b,h.minTurnAngle),cC(b,h.surfaceNormal,h.maxSurfaceAngle),_.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new Y(b[0][0],b[0][1])})}}}var FT=2*Math.PI,IT=Math.PI/180,LT=function(e,t){return{seriesType:e,overallReset:t}}(`pie`,function(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=Im(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*IT,d=e.get(`endAngle`),f=e.get(`padAngle`)*IT;d=d===`auto`?u-FT:-d*IT;var p=e.get(`minAngle`)*IT+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;Lc(S,!_),u=S[0],d=S[1];var w=RT(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e))n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});else{(r=v===`area`?T/m:h===0&&y?g:e*g)<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?u=l=O+x*r/2:(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?po(e,b,[c,s]):s}),O=i}}),E<FT&&m){if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?a=i=u+x*(t+.5)*k:(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?o=a=O+x*i/2:(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})}})}),RT=Zo(),zT=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new xl;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return P(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=L(iT(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle))i.setShape(l);else{if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(ef(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,ef(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,$d(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),ef(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else of(i),$d(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),Mu(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=L({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},iT(s.getModel(`itemStyle`),c)),L(i.ensureState(`select`),{x:p,y:m,shape:iT(o.getModel([`select`,`itemStyle`]),c)}),L(i.ensureState(`blur`),{shape:iT(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&L(g.ensureState(`select`),{x:p,y:m}),L(_.ensureState(`select`),{x:p,y:m}),ku(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;tp(r,np(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Td,this.setTextGuideLine(d)),function(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Jl.length;c++){var l=Jl[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:K(i.states[l]&&i.states[l].ignore,s))||!K(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&lC(r,!0,l,u);continue}r||(r=new Td,e.setTextGuideLine(r),d||!s&&o||lC(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),lC(r,!1,l,u)}}if(r){it(r.style,n),r.style.fill=null;var m=a.get(`showAbove`);(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=m||!1,r.buildPath=uC}}else r&&e.removeTextGuideLine()}(this,function(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<ql.length;r++){var i=ql[r];n[i]=e.getModel([i,t])}return n}(i),{stroke:s,opacity:yt(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(vd),BT=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return P(t,e),t.prototype.render=function(e,t,n,r){var i,a=e.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var c=a.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<a.count();++l)c=a.getItemLayout(l);c&&(i=c.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),a.count()===0&&e.get(`showEmptyCircle`)){var u=new vd({shape:I(RT(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,s.add(u)}a.diff(o).add(function(e){var t=new zT(a,e,i);a.setItemGraphicEl(e,t),s.add(t)}).update(function(e,t){var n=o.getItemGraphicEl(t);n.updateData(a,e,i),n.off(`click`),s.add(n),a.setItemGraphicEl(e,n)}).remove(function(t){af(o.getItemGraphicEl(t),e,t)}).execute(),PT(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(E_);function VT(e){e.registerChartView(BT),e.registerSeriesModel(ET),function(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}z([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=L({},t),i.dispatchAction(L(t,{type:e[1],seriesIndex:n(r,t)}))})})}(`pie`,e.registerAction),e.registerLayout(LT),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(n&&n.length){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}(`pie`)),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(ft(r)&&!isNaN(r)&&r<0)})}}}(`pie`))}var HT=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,ts).models[0]},t.type=`cartesian2dAxis`,t}(Km);at(HT,$x);var UT={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},WT=rt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},UT),GT=rt({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},UT),KT={category:WT,value:GT,time:rt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},GT),log:it({logBase:10},GT)};function qT(e,t,n,r){z(Vx,function(i,a){var o=rt(rt({},KT[a],!0),r,!0),s=function(e){function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return P(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Vm(this),r=n?Um(e):{};rt(e,t.getTheme().get(a+`Axis`)),rt(e,this.getDefaultOption()),e.type=JT(e),n&&Hm(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=tx.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){return{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,JT)}function JT(e){return e.type||(e.data?`category`:`value`)}var YT=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return B(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ct(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),XT=[`x`,`y`];function ZT(e){return(e.type===`interval`||e.type===`time`)&&!Lp(e)}var QT=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Uw,t.dimensions=XT,t}return P(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(ZT(e)&&ZT(t)){var n=cx(e,null),r=cx(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=wn([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Wt(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return(t||=[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Wt(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new X(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(YT);function $T(e,t){var n,r,i,a=e.scale,o=e.model,s=wS(a,o,o.ecModel,e,null),c=hx(a),l=hx(t)?t.intervalStub:t,u=c?a.intervalStub:a,d=a.base,f=l.getTicks(),p=l.getTicks({expandToNicedExtent:!0}),m=f.length-1;if(m===1)n=r=0,i=1;else if(m===2){var h=ro(f[0].value-f[1].value),g=ro(f[1].value-f[2].value);n=r=0,h===g?i=2:(i=1,h<g?n=h/g:r=g/h)}else{var _=l.getConfig().interval;n=(1-(f[0].value-p[0].value)/_)%1,r=(1-(p[m].value-f[m].value)/_)%1,i=m-+!!n-!!r}var v,y,b,x,S,C,w=s.zoomFixMM,T=w[0]||w[1],E=[s.fixMM[0]||T,s.fixMM[1]||T],D=a.getExtent(),O=u.getExtent(),k=xx(O,E);function A(e){for(var t=0;t<50&&!e();t++)b=c?b*no(d,2):_x(b),x=vx(b)}function j(){v=go(C-b*n,x)}function ee(){y=go(S+b*r,x)}function te(){C=n?go(v+b*n,x):v}function ne(){S=r?go(y-b*r,x):y}if(E[0]&&E[1]){v=k[0],y=k[1],b=(y-v)/(i+n+r);var re=e.getExtent(),ie=ro(re[1]-re[0]);x=function(e,t,n){var r=ro(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=co(2*ro(n||1)*ro(r))/lo,a=co(ro(t))/lo,o=no(0,oo(-i+a));return isFinite(o)||(o=NaN),o}([y,v],ie,.5/i),te(),ne(),Mo(x)&&(b=go(b,x))}else{var ae=k[1]-k[0];b=c?no(To(ae),1):Do(ae/i,2),x=vx(b),E[0]?(v=k[0],A(function(){if(te(),S=go(C+b*i,x),ee(),y>=k[1])return!0})):E[1]?(y=k[1],A(function(){if(ne(),C=go(S-b*i,x),j(),v<=k[0])return!0})):A(function(){C=go(oo(k[0]/b)*b,x),S=go(ao(k[1]/b)*b,x);var e=io((S-C)/b);if(e<=i){var t=i-e,n=void 0,r=s.incl0||c;if(r&&k[0]===0)n=[0,t];else if(r&&k[1]===0)n=[t,0];else{var a=ao(t/2);n=t%2==0?[a,a]:v+y<k[0]+k[1]?[a,a+1]:[a+1,a]}if(C=go(C-b*n[0],x),S=go(S+b*n[1],x),j(),ee(),v<=k[0]&&y>=k[1])return!0}})}Xx(a,E,O,[v,y],D,{interval:b,intervalCount:i,intervalPrecision:x,niceExtent:[C,S]})}var eE=[[3,1],[0,2]],tE=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=XT,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){for(var t=V(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):DS(i)}z(n,function(e){var t=e,n=e.__alignTo;Lp(t.scale)||Lp(n.scale)||n.scale.getTicks().length<2?DS(e):$T(e,e.__alignTo.scale)})}z(this._axesList,function(e){xS(e,1);var t=e.scale;gx(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))}),r(n.x),r(n.y);var i={};z(n.x,function(e){nE(n,`y`,e,i)}),z(n.y,function(e){nE(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=zm(e,t),i=this._rect=Lm(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(aE(a,i),!n){var c=function(e,t,n,r,i){var a=new gw(lE);return z(n,function(n){return z(n,function(n){if(Jx(n.model)){var o=!r;n.axisBuilder=function(e,t,n,r,i,a){for(var o=Pw(e,n),s=!1,c=!1,l=0;l<t.length;l++)fx(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new Sw(n,r,o,i)}(e,t,n.model,i,a,o)}})}),a}(i,o,a,s,t),l=void 0;if(s)l=sE(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=function(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i!=null&&i!==`auto`||(r=Lm(e.get(`outerBounds`,!0)||Vw,n.refContainer));var a,o=e.get(`outerBoundsContain`,!0);a=o==null||o===`auto`||R([`all`,`axisLabel`],o)<0?`all`:o;var s=[ho(K(e.get(`outerBoundsClampWidth`,!0),Hw[0]),t.width),ho(K(e.get(`outerBoundsClampHeight`,!0),Hw[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:a,outerBoundsClamp:s}}(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=sE(d,f,p,i,a,c,r))}cE(i,a,FS,null,l,r),z(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}G(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents(`xAxis`,ts).models[0],a=e.yAxisModel||r&&r.getReferringComponents(`yAxis`,ts).models[0],o=e.gridModel,s=this._coordsList;return r?R(s,t=r.coordinateSystem)<0&&(t=null):i&&a?t=this.getCartesian(i.componentIndex,a.componentIndex):i?n=this.getAxis(`x`,i.componentIndex):a?n=this.getAxis(`y`,a.componentIndex):o&&o.coordinateSystem===this&&(t=this._coordsList[0]),{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function c(t){return function(n,r){if(function(e,t){return e.getCoordSysModel()===t}(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l,u=((l=n.get(`type`))!=null&&(J(Vx,l)||$b.getClass(l))||(l=`value`),l),d=new lw(t,function(e,t){var n;switch(t){case`category`:return new Tx({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new Ox({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:n});case`log`:return new Lx({logBase:e.get(`logBase`),breakOption:n});case`value`:return new Dx({breakOption:n});default:return new(($b.getClass(t))||Dx)({})}}(n,u),[0,0],u,c);d.onBand=Qx(d.scale,n),d.inverse=n.get(`inverse`),n.axis=d,d.model=n,d.grid=i,d.index=r,i._axesList.push(d),o[t][r]=d,s[t]++}}}this._axesMap=o,z(o.x,function(t,n){z(o.y,function(i,a){var o=`x`+n+`y`+a,s=new QT(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),iE(o.x),iE(o.y)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return z(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);R(t,i)<0&&t.push(i),R(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),z(o._axesList,function(t){var n=t,r=e.dimIdxMap;bS(n).dimIdxInCoord=r.get(n.dim)})}),t.eachSeries(function(e){var t,n;(function(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=Am(t),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);c&&(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c)})({targetModel:e,coordSysType:Uw,coordSysProvider:function(){var r=function(e){var t={xAxisModel:null,yAxisModel:null};return z(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,ts).models[0]}),t}(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}}),t&&n&&(fS(t,e,Uw),fS(n,e,Uw))},this),r},e.dimensions=XT,e.dimIdxMap=kb(XT),e}();function nE(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,a=e[t],o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(s){if(c!=null)rE(s,a[c])&&(i=a[c]);else for(var l in a)if(J(a,l)&&rE(s,a[l])&&!r[u(a[l])]){i=a[l];break}i&&(r[u(i)]=!0)}function u(e){return e.dim+`_`+e.index}}function rE(e,t){if(!t)return!1;var n=function(e,t,n){var r=n?cx(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return ls(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}(t.scale,0,!1),r=t&&t.type!==`category`&&t.type!==`time`&&n!==3;return r&&e===`auto`&&function(e){return Hx(e).noOnMyZero}(t)&&(r=!1),r}function iE(e){for(var t,n=V(e),r=[],i=n.length-1;i>=0;i--){var a=e[+n[i]];fx(a.scale)&&Yx(a.model,a.type)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):t=a)}t||=r.pop(),t&&z(r,function(e){e.__alignTo=t})}function aE(e,t){z(e.x,function(e){return oE(e,t.x,t.width)}),z(e.y,function(e){return oE(e,t.y,t.height)})}function oE(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}(e,t)}function sE(e,t,n,r,i,a,o){cE(r,i,PS,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=function(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}(s,function(e){return e>0})==null;return Ff(r,s,!0,!0,n),aE(i,r),c;function l(e){z(i[lf[e]],function(t){if(Jx(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(Zx(t.scale,mw(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;c&&(s=qx(n.nameLocation)?.5:NaN,u(c.rect,e,s),u(c.rect,1-e,NaN))}})}function u(t,n,r){var i=e[lf[n]]-t[lf[n]],a=t[uf[n]]+t[lf[n]]-(e[uf[n]]+e[lf[n]]);i=d(i,1-r),a=d(a,r);var o=eE[n][0],c=eE[n][1];s[o]=no(s[o],i),s[c]=no(s[c],a)}function d(e,t){return e>0&&!_t(t)&&t>1e-4&&(e/=t),e}}function cE(e,t,n,r,i,a){var o=n===FS;z(t,function(t){return z(t,function(t){Jx(t.model)&&(function(e,t,n){var r=Pw(t,n);e.updateCfg(r)}(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};function c(t){s[lf[1-t]]=e[uf[t]]<=.5*a.refContainer[uf[t]]?0:1-t==1?2:1}c(0),c(1),z(t,function(e,t){return z(e,function(e){Jx(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}var lE=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;yw(e,0,0,r,i,a),qx(e.nameLocation)||z(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&xw(e.labelInfoList,e.dirVec,r,i)})};function uE(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];z(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=mE(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(z(n.getAxes(),ut(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&z(f.baseAxes,ut(p,!d||`cross`,u)),d&&z(f.otherAxes,ut(p,`cross`,!1))}}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||pE(d))){s??=d.get(`triggerTooltip`),d=r?function(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s={};z([`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],function(e){s[e]=I(o.get(e))}),s.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(s.type=`line`);var c=s.label||={};if(c.show??=!1,i===`cross`){var l=o.get([`label`,`show`]);if(c.show=l==null||l,!a){var u=s.lineStyle=o.get(`crossStyle`);u&&it(c,u.textStyle)}}return e.model.getModel(`axisPointer`,new Cp(s,n,r))}(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=mE(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:pE(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(dE(a[r+`AxisId`],n.id)||dE(a[r+`AxisIndex`],n.componentIndex)||dE(a[r+`AxisName`],n.name))return i}}(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&!1!==r&&r!==`item`&&!1!==i&&!1!==t.get([`axisPointer`,`show`],!0)&&z(e.coordSysAxesInfo[mE(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}(n,e),n}function dE(e,t){return e===`all`||H(e)&&R(e,t)>=0||e===t}function fE(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[mE(e)]}function pE(e){return!!e.get([`handle`,`show`])}function mE(e){return e.type+`||`+e.id}var hE={},gE=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=fE(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=pE(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=function(e){var t=fE(e);return t&&t.axisPointerModel}(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){hE[e]=t},t.getAxisPointerClass=function(e){return e&&hE[e]},t.type=`axis`,t}(S_),_E=Zo(),vE=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],yE=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return P(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Ja,this.group.add(this._axisGroup),Jx(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),z(vE,function(e){t.get([e,`show`])&&bE[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Of(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){_E(this).splitAreaColors=null},t.type=`cartesianAxis`,t}(gE),bE={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=!1!==o.get(`showMinLine`),u=!1!==o.get(`showMaxLine`);c=H(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if((v!==0||l)&&(v!==m.length-1||u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Od({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:it({stroke:c[x]},_),silent:!0});xf(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Od({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});xf(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){(function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=_E(e).splitAreaColors,f=q(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();for(s=H(s)?s:[s],m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,g=b+(S=v-b));var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new _l({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:it({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}_E(e).splitAreaColors=f}}})(e,t,n,r)},breakArea:function(e,t,n,r,i){n.axis.scale}},xE=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.type=`xAxis`,t}(yE),SE=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=xE.type,t}return P(t,e),t.type=`yAxis`,t}(yE),CE=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return P(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new _l({shape:e.coordinateSystem.getRect(),style:it({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(S_),wE={offset:0};function TE(e){e.registerComponentView(CE),e.registerComponentModel(Ww),e.registerCoordinateSystem(`cartesian2d`,tE),qT(e,`x`,HT,wE),qT(e,`y`,HT,wE),e.registerComponentView(xE),e.registerComponentView(SE),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var EE={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},DE=V(EE);st(ba,function(e,t){return e[t]=1,e},{}),ba.join(`, `);var OE=[``,`style`,`shape`,`extra`],kE=Zo();function AE(e,t,n,r,i){var a=e+`Animation`,o=Zd(e,r,i)||{},s=kE(t).userDuring;return o.duration>0&&(o.during=s?lt(IE,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),L(o,n[a]),o}function jE(e,t,n,r){var i=(r||={}).dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=kE(e),l=t.style;c.userDuring=t.during;var u={},d={};if(function(e,t,n){for(var r=0;r<DE.length;r++){var i=DE[r],a=EE[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(r=0;r<ba.length;r++){var s=ba[r];t[s]!=null&&(n[s]=t[s])}}(0,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++)RE(`shape`,p[m],f[m]);else RE(`shape`,t,d),RE(`extra`,t,d);if(!a&&s&&(function(e,t,n){for(var r=t.transition,i=NE(r)?ba:zo(r||[]),a=0;a<i.length;a++){var o=i[a];o!==`style`&&o!==`shape`&&o!==`extra`&&(n[o]=e[o])}}(e,t,u),LE(`shape`,e,t,u),LE(`extra`,e,t,u),function(e,t,n,r){if(n){var i,a=e.style;if(a){var o=n.transition,s=t.transition;if(o&&!NE(o)){var c=zo(o);!i&&(i=r.style={});for(var l=0;l<c.length;l++){var u=a[m=c[l]];i[m]=u}}else if(e.getAnimationStyleProps&&(NE(s)||NE(o)||R(s,`style`)>=0)){var d=e.getAnimationStyleProps(),f=d?d.style:null;if(f){!i&&(i=r.style={});var p=V(n);for(l=0;l<p.length;l++){var m;f[m=p[l]]&&(u=a[m],i[m]=u)}}}}}}(e,t,l,u)),d.style=l,function(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}(e,d,o),function(e,t){J(t,`silent`)&&(e.silent=t.silent),J(t,`ignore`)&&(e.ignore=t.ignore),e instanceof rc&&J(t,`invisible`)&&(e.invisible=t.invisible),e instanceof al&&J(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}(e,t),s){if(a){var h={};z(OE,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(h[e]=h[e]||{}),L(e?h[e]:h,n.enterFrom))});var g=AE(`enter`,e,t,n,i);g.duration>0&&e.animateFrom(h,g)}else(function(e,t,n,r,i){if(i){var a=AE(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}})(e,t,i||0,n,u)}ME(e,t),l?e.dirty():e.markRedraw()}function ME(e,t){for(var n=kE(e).leaveToProps,r=0;r<OE.length;r++){var i=OE[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=kE(e).leaveToProps={},i&&(n[i]=n[i]||{}),L(i?n[i]:n,a.leaveTo))}}function NE(e){return e===`all`}var PE={},FE={setTransform:function(e,t){return PE.el[e]=t,this},getTransform:function(e){return PE.el[e]},setShape:function(e,t){var n=PE.el;return(n.shape||={})[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=PE.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=PE.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=PE.el.style;if(t)return t[e]},setExtra:function(e,t){return(PE.el.extra||(PE.el.extra={}))[e]=t,this},getExtra:function(e){var t=PE.el.extra;if(t)return t[e]}};function IE(){var e=this,t=e.el;if(t){var n=kE(t).userDuring,r=e.userDuring;n===r?(PE.el=t,r(FE)):e.el=e.userDuring=null}}function LE(e,t,n,r){var i=n[e];if(i){var a,o=t[e];if(o){var s=n.transition,c=i.transition;if(c){if(!a&&(a=r[e]={}),NE(c))L(a,o);else for(var l=zo(c),u=0;u<l.length;u++){var d=o[p=l[u]];a[p]=d}}else if(NE(s)||R(s,e)>=0){!a&&(a=r[e]={});var f=V(o);for(u=0;u<f.length;u++){var p;d=o[p=f[u]],zE(i[p],d)&&(a[p]=d)}}}}}function RE(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=V(r),o=0;o<a.length;o++){var s=a[o];i[s]=Mi(r[s])}}function zE(e,t){return ot(e)?e!==t:e!=null&&isFinite(e)}var BE=Zo(),VE=[`percent`,`easing`,`shape`,`style`,`extra`];function HE(e,t,n){if(n.isAnimationEnabled()&&t){if(H(t))z(t,function(t){HE(e,t,n)});else{var r=t.keyframes,i=t.duration;if(n&&i==null){var a=Zd(`enter`,n,0);i=a&&a.duration}if(r&&i){var o=BE(e);z(OE,function(n){var a;n&&!e[n]||(r.sort(function(e,t){return e.percent-t.percent}),z(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=V(c);if(n||(l=ct(l,function(e){return R(VE,e)<0})),l.length){a||((a=e.animate(n,t.loop,!0)).scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;z(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing))})}}}}var UE=Zo(),WE=I,GE=lt,KE=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(o){var d=ut(qE,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}else o=this._group=new Ja,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);ZE(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&YS(r).w>o)return!0;if(a){var s=fE(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=UE(e).pointerEl=new sf[i.type](WE(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=UE(e).labelEl=new xl(WE(t.label));e.add(i),YE(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=UE(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=UE(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),YE(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel(`handle`),o=n.get(`status`);if(!a.get(`show`)||!o||o===`hide`)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=jf(a.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){hn(e.event)},onmousedown:GE(this._onHandleDragMove,this,0,0),drift:GE(this._onHandleDragMove,this),ondragend:GE(this._onHandleDragEnd,this)}),r.add(i)),ZE(i,n,!1),i.setStyle(a.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=a.get(`size`);H(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,I_(this,`_doDispatchAxisPointer`,a.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){qE(this._axisPointerModel,!t&&this._moveAnimation,this._handle,XE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(XE(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(XE(r)),UE(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),L_(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n||=0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function qE(e,t,n,r){JE(UE(n).lastProp,r)||(UE(n).lastProp=r,t?$d(n,r,e):(n.stopAnimation(),n.attr(r)))}function JE(e,t){if(G(e)&&G(t)){var n=!0;return z(t,function(t,r){n&&=JE(e[r],t)}),!!n}return e===t}function YE(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function XE(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ZE(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function QE(e,t,n,r,i){var a=$E(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=vm(o.get(`padding`)||0),c=o.getFont(),l=Oa(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),function(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(u,d,f,r);var h=o.get(`backgroundColor`);h&&h!==`auto`||(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:rp(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function $E(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Wx(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};z(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),W(o)?a=o.replace(`{value}`,a):U(o)&&(a=o(s))}return a}function eD(e,t,n){var r=[1,0,0,1,0,0];return Cn(r,r,n.rotation),Sn(r,r,n.position),Tf([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var tD=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return P(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=nD(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=function(e){var t,n=e.get(`type`),r=e.getModel(n+`Style`);return n===`line`?(t=r.getLineStyle()).fill=null:n===`shadow`&&((t=r.getAreaStyle()).stroke=null),t}(r),f=rD[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}(function(e,t,n,r,i,a){var o=Sw.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),QE(t,r,i,a,{position:eD(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})})(t,e,Pw(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=Pw(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=eD(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=nD(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=to(o[1],l[c]),l[c]=no(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(KE);function nD(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var rD={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:(i=[t,r[0]],a=[t,r[1]],o=iD(e),{x1:i[o||=0],y1:i[1-o],x2:a[o],y2:a[1-o]})};var i,a,o},shadow:function(e,t,n,r,i,a){var o,s,c,l=function(e,t,n){return YS(e,{fromStat:{sers:B(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}(e,i,a),u=r[1]-r[0],d=function(e,t,n){return[no(to(t[0],t[1]),e-n/2),to(e+n/2,no(t[0],t[1]))]}(t,n,l),f=d[0],p=d[1];return{type:`Rect`,shape:(o=[f,r[0]],s=[p-f,u],c=iD(e),{x:o[c||=0],y:o[1-c],width:s[c],height:s[1-c]})}}};function iD(e){return e.dim===`x`?0:1}var aD=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}(Km),oD=Zo(),sD=z;function cD(e,t,n){if(!F.node){var r=t.getZr();oD(r).records||(oD(r).records={}),function(e,t){if(oD(e).initialized)return;function n(n,r){e.on(n,function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);sD(oD(e).records,function(e){e&&r(e,n,i.dispatchAction)}),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)})}oD(e).initialized=!0,n(`click`,ut(uD,`click`)),n(`mousemove`,ut(uD,`mousemove`)),n(`mousewheel`,ut(uD,`mousewheel`)),n(`globalout`,lD)}(r,t),(oD(r).records[e]||(oD(r).records[e]={})).handler=n}}function lD(e,t,n){e.handler(`leave`,null,n)}function uD(e,t,n,r){t.handler(e,n,r)}function dD(e,t){if(!F.node){var n=t.getZr();(oD(n).records||{})[e]&&(oD(n).records[e]=null)}}var fD=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;cD(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){dD(`axisPointer`,t)},t.prototype.dispose=function(e,t){dD(`axisPointer`,t)},t.type=`axisPointer`,t}(S_);function pD(e,t){var n,r=[],i=e.seriesIndex;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Xo(a,e);if(o==null||o<0||H(o))return{point:[]};var s=a.getItemGraphicEl(o),c=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),r=c.dataToPoint(m)||[]}else r=c.dataToPoint(a.getValues(B(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),r=[h.x+h.width/2,h.y+h.height/2]}return{point:r,el:s}}var mD=Zo();function hD(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||lt(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){bD(i)&&(i=pD({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=bD(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||bD(i),f={},p={},m={list:[],map:{}},h={showPointer:ut(_D,p),showTooltip:ut(vD,m)};z(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);z(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o!=null||c||(o=r.pointToData(i)),o!=null&&gD(e,o,h,!1,f)}})});var g={};return z(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&z(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,yD(t),yD(e)))),g[e.key]=a}})}),z(g,function(e,t){gD(u[t],e,h,!0,f)}),function(e,t,n){var r=n.axesInfo=[];z(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}(p,u,f),function(e,t,n,r){if(bD(t)||!e.list.length)return void r({type:`hideTip`});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(m,i,e,o),function(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=mD(r)[i]||{},o=mD(r)[i]={};z(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&z(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}z(a,function(e,t){!o[t]&&c.push(l(e))}),z(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}(u,0,n),f}}function gD(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(e.involveSeries){var o=function(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return z(t.seriesModels,function(t,c){var l,u,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(d,e,n);u=f.dataIndices,l=f.nestestValue}else{if(!(u=t.indicesOfNearest(r,d[0],e,n.type===`category`?.5:null)).length)return;l=t.getData().get(d[0],u[0])}if(Mo(l)){var p=e-l,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=l,a.length=0),z(u,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&L(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}else n.showPointer(e,t)}}function _D(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function vD(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=mE(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function yD(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function bD(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function xD(e){gE.registerAxisPointerClass(`CartesianAxisPointer`,tD),e.registerComponentModel(aD),e.registerComponentView(fD),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=uE(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},hD)}function SD(e){jS(TE),jS(xD)}function CD(e,t){var n;return z(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}var wD=[`transition`,`enterFrom`,`leaveTo`],TD=wD.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function ED(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?wD:TD,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}var DD=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return P(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=Wo(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];z(o,function(e,t){var n=e.newOption;n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=L({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(rt(i,r,!0),Hm(i,r,{ignoreSize:!0}),Wm(n,i),ED(n,i),ED(n,i,`shape`),ED(n,i,`style`),ED(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}(i,t,n),function(e,t){if(e&&(e.hv=t.hv=[CD(t,[`left`,`right`]),CD(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}(i[t],n))},this),n.elements=ct(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){z(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(Km),OD={path:null,compoundPath:null,group:Ja,image:ul,text:xl},kD=Zo(),AD=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.init=function(){this._elMap=q()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);z(t,function(t){var o=qo(t.id,null),s=o==null?null:n.get(o),c=qo(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&function(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&t!==`tspan`&&(t===`text`||J(e,`text`)))}(d,u,!!p,!!f)){var m=function(e,t,n){var r,i,a,o=e;if(t===`text`)a=o;else{a={},J(o,`text`)&&(a.text=o.text),J(o,`rich`)&&(a.rich=o.rich),J(o,`textFill`)&&(a.fill=o.textFill),J(o,`textStroke`)&&(a.stroke=o.textStroke),J(o,`fontFamily`)&&(a.fontFamily=o.fontFamily),J(o,`fontSize`)&&(a.fontSize=o.fontSize),J(o,`fontStyle`)&&(a.fontStyle=o.fontStyle),J(o,`fontWeight`)&&(a.fontWeight=o.fontWeight),i={type:`text`,style:a,silent:!0},r={};var s=J(o,`textPosition`);n?r.position=s?o.textPosition:`inside`:s&&(r.position=o.textPosition),J(o,`textPosition`)&&(r.position=o.textPosition),J(o,`textOffset`)&&(r.offset=o.textOffset),J(o,`textRotation`)&&(r.rotation=o.textRotation),J(o,`textDistance`)&&(r.distance=o.textDistance)}return qC(a,e),z(a.rich,function(e){qC(e,e)}),{textConfig:r,textContent:i}}(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=function(e){return e=L({},e),z([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(Mm),function(t){delete e[t]}),e}(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=s;(E=!s)?y=MD(o,l,t.type,n):(y&&(kD(y).isNew=!1),function(e){e.stopAnimation(`keyframe`),e.attr(BE(e))}(y)),y&&(jE(y,h,e,{isInit:E}),PD(y,t,i,a))}else if(v){ND(s,t,n,e);var b=MD(o,l,t.type,n);b&&(jE(b,h,e,{isInit:!0}),PD(b,t,i,a))}else g===`remove`&&(ME(s,t),ND(s,t,n,e));var x=n.get(o);if(x&&f){if(_){var S=x.getTextContent();S?S.attr(f):x.setTextContent(new xl(f))}else v&&x.setTextContent(new xl(f))}if(x){var C=t.clipPath;if(C){var w=C.type,T=void 0,E=!1;if(_){var D=x.getClipPath();T=(E=!D||kD(D).type!==w)?jD(w):D}else v&&(E=!0,T=jD(w));x.setClipPath(T),jE(T,C,e,{isInit:E}),HE(T,C.keyframeAnimation,e)}var O=kD(x);x.setTextConfig(p),O.option=t,function(e,t,n){var r=Z(e).eventData;e.silent||e.ignore||r||(r=Z(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}(x,e,t),Rf({el:x,componentModel:e,itemName:x.name,itemTooltipOption:t.tooltip}),HE(x,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++)if((m=(p=qo((f=n[c]).id,null))==null?null:i.get(p))&&m.isGroup){var l=(h=m.parent)===r,u=kD(m),d=kD(h);u.width=mo(u.option.width,l?a:d.width)||0,u.height=mo(u.option.height,l?o:d.height)||0}for(c=n.length-1;c>=0;c--){var f,p,m;if(m=(p=qo((f=n[c]).id,null))==null?null:i.get(p)){var h=m.parent,g=(d=kD(h),{}),_=Bm(m,f,h===r?{width:a,height:o}:{width:d.width,height:d.height},null,{hv:f.hv,boundingMode:f.bounding},g);if(!kD(m).isNew&&_){for(var v=f.transition,y={},b=0;b<s.length;b++){var x=s[b],S=g[x];v&&(NE(v)||R(v,x)>=0)?y[x]=S:m[x]=S}$d(m,y,e,0)}else m.attr(g)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){ND(n,kD(n).option,t,e._lastGraphicModel)}),this._elMap=q()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(S_);function jD(e){var t=new(J(OD,e)?OD[e]:hf(e))({});return kD(t).type=e,t}function MD(e,t,n,r){var i=jD(n);return t.add(i),r.set(e,i),kD(i).id=e,kD(i).isNew=!0,i}function ND(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){ND(e,t,n,r)}),function(e,t,n,r){if(e){var i=e.parent,a=kE(e).leaveToProps;if(a){var o=AE(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}(e,t,r),n.removeKey(kD(e).id))}function PD(e,t,n,r){e.isGroup||z([[`cursor`,rc.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];J(t,r)?e[r]=K(t[r],n[1]):e[r]??(e[r]=n[1])}),z(V(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=U(r)?r:null}}),J(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function FD(e){e.registerComponentModel(DD),e.registerComponentView(AD),e.registerPreprocessor(function(e){var t=e.graphic;H(t)?e.graphic=t[0]&&t[0].elements?[e.graphic[0]]:[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var ID=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(Km);function LD(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function RD(e){if(F.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var zD=RD([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]);function BD(e,t){if(!e)return t;t=_m(t,!0);var n=e.indexOf(t);return(e=n===-1?t:`-`+e.slice(0,n)+`-`+t).toLowerCase()}var VD=BD(RD([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]),`transition`),HD=BD(zD,`transform`),UD=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(F.transform3dSupported?`will-change:transform;`:``);function WD(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!F.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=F.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+HD+`:`+o+`;`:[[`top`,0],[`left`,0],[zD,o]]}function GD(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=l_(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(function(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(a=`opacity`+(i=` `+e/2+`s `+r)+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(F.transformSupported?``+HD+i:`,left`+i+`,top`+i)),VD+`:`+a}(a,n,r)),o&&i.push(`background-color:`+o),z([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=_m(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(function(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=K(e.get(`lineHeight`),Math.round(3*n/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),z([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}(d)),f!=null&&i.push(`padding:`+vm(f).join(`px `)+`px`),i.join(`;`)+`;`}function KD(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&function(e,t,n,r,i){tn(en,t,r,i,!0)&&tn(e,n,en[0],en[1])}(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var qD=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,F.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(W(i)?document.querySelector(i):ht(i)?i:U(i)&&i(e.getDom()));KD(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;pn(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(a=`position`,(o=(i=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?a?o[a]:o:null),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i,a,o,s=e.get(`alwaysShowContent`);s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=UD+GD(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+WD(i[0],i[1],!0)+`border-color:`+Cm(t)+`;`+(e.get(`extraCssText`)||``)+`;pointer-events:`+(this._enterable?`auto`:`none`):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e!=null){var o=``;if(W(i)&&n.get(`trigger`)===`item`&&!LD(n)&&(o=function(e,t,n){if(!W(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Cm(t);var a,o,s=(a=n)===`left`?`right`:a===`right`?`left`:a===`top`?`bottom`:`top`,c=Math.max(1.5*Math.round(i),6),l=``,u=HD+`:`;R([`left`,`right`],s)>-1?(l+=`top:50%`,u+=`translateY(-50%) rotate(`+(o=s===`left`?-225:-45)+`deg)`):(l+=`left:50%`,u+=`translateX(-50%) rotate(`+(o=s===`top`?225:45)+`deg)`);var d=o*Math.PI/180,f=c+i,p=f*Math.abs(Math.cos(d))+f*Math.abs(Math.sin(d)),m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+c+`px;height:`+c+`px;z-index:-1;`,(l+=`;`+s+`:-`+Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-f)/2))/100+`px`)+`;`+u+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}(n,r,i)),W(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,H(e)||(e=[e]);for(var s=0;s<e.length;s++)ht(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}}else a.innerHTML=``},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(KD(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;z(WD(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,F.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(lt(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;(function(e,t){function n(e){var t=e[$t];t&&(t.clearMarkers&&t.clearMarkers(),delete e[$t])}e&&n(e),t&&n(t)})(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),JD=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),ZD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;G(e)&&Io(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new xl({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:l_(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),z([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),z([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=XD(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;ZD(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=YD(i.borderWidth||0),o=XD(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(lt(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function YD(e){return Math.max(0,e)}function XD(e){var t=YD(e.shadowBlur||0),n=YD(e.shadowOffsetX||0),r=YD(e.shadowOffsetY||0);return{left:YD(t-n),right:YD(t+n),top:YD(t-r),bottom:YD(t+r)}}function ZD(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var QD=new _l({shape:{x:-1,y:-1,width:2,height:2}}),$D=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.init=function(e,t){if(!F.node&&t.getDom()){var n,r=e.getComponent(`tooltip`),i=this._renderMode=(n=r.get(`renderMode`))===`auto`?F.domSupported?`html`:`richText`:n||`html`;this._tooltipContent=i===`richText`?new JD(t):new qD(t,{appendTo:r.get(`appendToBody`,!0)?`body`:r.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!F.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?I_(this,`_updatePosition`,50,`fixRate`):L_(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);cD(`itemTooltip`,this._api,lt(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!F.node&&n.getDom()){var i=tO(r,n);this._ticket=``;var a=r.dataByCoordSys,o=function(e,t,n){var r=es(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=ns(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o;if(n.getViewOfComponentModel(a).group.traverse(function(t){var n=Z(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0}),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}}}(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=QD;c.x=r.x,c.y=r.y,c.update(),Z(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=pD(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(tO(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&eO([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Z(n).ssrType===`legend`)return;var i,a;this._lastDataByCoordSys=null,this._cbParamsList=null,bv(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Z(e).dataIndex==null?Z(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=lt(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=eO([t.tooltipOption],r),o=this._renderMode,s=[],c=e_(`section`,{blocks:[],noHeader:!0}),l=[],u=new u_;z(e,function(e){z(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=$E(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=e_(`section`,{header:f,noHeader:!Ct(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),z(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=Wx(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Cm(m.color),o);var h=bg(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=eO([a],r).get(`valueFormatter`);p.blocks.push(_?L({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=o_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
15
|
+
|
|
16
|
+
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Z(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=eO([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new u_;h.marker=g.makeTooltipMarker(`item`,Cm(h.color),d);var _=bg(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?o_(y?L({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Z(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;W(a)&&(a={content:a,formatter:a},o=!0),o&&r&&a.content&&((a=I(a)).content=on(a.content));var s=[a],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&s.push(c),s.push({formatter:a.content});var l=e.positionDefault,u=eO(s,this._tooltipModel,l?{position:l}:null),d=u.get(`content`),f=Math.random()+``,p=new u_;this._showOrMove(u,function(){var n=I(u.get(`formatterParams`)||{});this._showTooltipContent(u,d,n,f,e.offsetX,e.offsetY,e.position,t,p)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(W(u)){var p=e.ecModel.get(`useUTC`),m=H(n)?n[0]:n;d=u,m&&m.axisType&&m.axisType.indexOf(`time`)>=0&&(d=$p(m.axisValue,d,p)),d=Sm(d,n,!0)}else if(U(u)){var h=lt(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,h)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){return n===`axis`||H(t)?{color:r||i}:H(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),U(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),H(t))n=mo(t[0],s),r=mo(t[1],c);else if(G(t)){var p=t;p.width=l[0],p.height=l[1];var m=Lm(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(W(t)&&o){var h=function(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else h=function(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}(n,r,i,s,c,u?null:20,d?null:20),n=h[0],r=h[1];u&&(n-=nO(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=nO(d)?l[1]/2:d===`bottom`?l[1]:0),LD(e)&&(h=function(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,c),n=h[0],r=h[1]),i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&z(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];(i&&=o.length===s.length)&&z(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];(i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length)&&z(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&z(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!F.node&&t.getDom()&&(L_(this,`_updatePosition`),this._tooltipContent.dispose(),dD(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(S_);function eO(e,t,n){var r,i=t.ecModel;n?(r=new Cp(n,i,i),r=new Cp(t.option,r,i)):r=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Cp&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(r=new Cp(o,r,i)))}return r}function tO(e,t){return e.dispatchAction||lt(t.dispatchAction,t)}function nO(e){return e===`center`||e===`middle`}function rO(e){jS(xD),e.registerComponentModel(ID),e.registerComponentView($D),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},jt),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},jt)}var iO=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return P(t,e),t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}(Km),aO=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=K(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new xl({style:rp(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new xl({style:rp(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){wm(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){wm(p,`_`+e.get(`subtarget`))}),Z(c).eventData=Z(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=Lm(g,zm(e,n).refContainer,e.get(`padding`));o||((o=e.get(`left`)||e.get(`right`))===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||((s=e.get(`top`)||e.get(`bottom`))===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new _l({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(S_);function oO(e){e.registerComponentModel(iO),e.registerComponentView(aO)}var sO=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return P(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=[`all`,`inverse`]),H(t)&&z(t,function(e,r){W(e)&&(e={type:e}),t[r]=rt(e,function(e,t){return t===`all`?{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])}:t===`inverse`?{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}:void 0}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i,a=r.name;if(n.push(a),r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):i=!0}else i=!0;i&&Jo(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=q(),a=B(r,function(e){return(W(e)||ft(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Cp(e,this,this.ecModel))},this);this._data=ct(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;this.get(`selectedMode`)===`single`&&z(this._data,function(e){t[e.get(`name`)]=!1}),t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;z(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;z(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&R(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Km),cO=ut,lO=z,uO=Ja,dO=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return P(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new uO),this.group.add(this._selectorGroup=new uO),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);i&&i!==`auto`||(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);!o||s&&s!==`auto`||(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=zm(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Lm(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Lm(it({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(e,t){var n=vm(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new _l({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=q(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),lO(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
|
17
|
+
`)){var p=new uO;p.newline=!0,s.add(p)}else{var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,cO(fO,f,null,r,d)).on(`mouseover`,cO(pO,m.name,null,r,d)).on(`mouseout`,cO(mO,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Z(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=ei(h.fill);_&&_[3]===0&&(_[3]=.2,h=L(L({},h),{fill:ai(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,cO(fO,null,f,r,d)).on(`mouseover`,cO(pO,null,f,r,d)).on(`mouseout`,cO(mO,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Z(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Z(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();lO(e,function(e){var r=e.type,i=new xl({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),tp(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Ou(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`),v=function(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),lO(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=d&&d!==`inherit`?cy(d,o):r.decal,l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}(c=_||c||`roundRect`,r,o,s,d,m,u),y=new uO,b=r.getModel(`textStyle`);if(!U(e.getLegendIcon)||_&&_!==`inherit`){var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(function(e){var t=e.icon||`roundRect`,n=Lv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}else y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;W(w)&&w?T=w.replace(`{name}`,t??``):U(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new xl({style:rp(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new _l({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Rf({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Ou(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Fm(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Fm(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(S_);function fO(e,t,n,r){mO(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),pO(e,t,n,r)}function pO(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function mO(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function hO(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),gO(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){z(i,function(t,n){e[t?`select`:`unSelect`](n)}),gO(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function gO(e,t){var n=t||{};return z(e.getData(),function(t){var r=t.get(`name`);if(r!==`
|
|
18
|
+
`&&r!==``){var i=e.isSelected(r);n[r]=J(n,r)?n[r]&&i:i}}),n}var _O=gs(function(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})});function vO(e){e.registerComponentModel(sO),e.registerComponentView(dO),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,_O),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),function(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,ut(hO,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,ut(hO,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,ut(hO,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,ut(hO,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,ut(hO,`unSelect`))}(e)}var yO=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return P(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Um(t);e.prototype.init.call(this,t,n,r),bO(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),bO(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=Ep(sO.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),t}(sO);function bO(e,t,n){var r=[1,1];r[e.getOrient().index]=0,Hm(t,n,{type:`box`,ignoreSize:!!r})}var xO=Ja,SO=[`width`,`height`],CO=[`x`,`y`],wO=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return P(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new xO),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new xO)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=H(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);function p(e,t){var r=e+`DataIndex`,a=jf(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:lt(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}l.add(new xl({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1)},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=SO[s],l=CO[s],u=SO[1-s],d=CO[1-s];i&&Fm(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=I(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;Fm(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),Fm(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=K(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new _l({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&$d(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;z([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,W(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=SO[i],o=CO[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)(!(_=v(c[m]))&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_)&&(f.pageNextDataIndex??=h.i,++f.pageCount),g=_;for(m=s-1,h=p,g=p,_=null;m>=-1;--m)(_=v(c[m]))&&y(g,_.s)||!(h.i<g.i)||(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(r,i){var a=r.__legendDataIndex;n==null&&a!=null&&(n=i),a===e&&(t=i)}),t??n):0;var t,n},t.type=`legend.scroll`,t}(dO);function TO(e){jS(vO),e.registerComponentModel(yO),e.registerComponentView(wO),function(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}(e)}function EO(e){jS(vO),jS(TO)}var DO=Math.sin,OO=Math.cos,kO=Math.PI,AO=2*Math.PI,jO=180/kO,MO=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=fi(u-AO)||(l?c>=AO:-c>=AO),f=c>0?c%AO:c%AO+AO,p=!1;p=!!d||!fi(u)&&f>=kO==!!l;var m=e+n*OO(a),h=t+r*DO(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*jO);if(d){var _=1/this._p,v=(l?1:-1)*(AO-_);this._add(`A`,n,r,g,1,+l,e+n*OO(a+v),t+r*DO(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*OO(o),b=t+r*DO(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f))return void(this._invalid=!0);l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),NO=`none`,PO=Math.round,FO=[`lineCap`,`miterLimit`,`lineJoin`],IO=B(FO,function(e){return`stroke-`+e.toLowerCase()});function LO(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof ul)e(`opacity`,i);else{if(function(e){var t=e.fill;return t!=null&&t!==NO}(t)){var a=ui(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,NO);if(function(e){var t=e.stroke;return t!=null&&t!==NO}(t)){var s=ui(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=Uv(n),p=f[0],m=f[1];p&&(m=PO(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,NO);for(var h=0;h<FO.length;h++){var g=FO[h];if(r||t[g]!==nl[g]){var _=t[g]||nl[g];_&&e(IO[h],_)}}}else r&&e(`stroke`,NO)}}var RO=`http://www.w3.org/2000/svg`,zO=`http://www.w3.org/1999/xlink`;function BO(e){return document.createElementNS(RO,e)}function VO(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function HO(e,t){var n=(t||={}).newline?`
|
|
19
|
+
`:``;return function e(t){var r=t.children,i=t.tag,a=t.attrs,o=t.text;return function(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;!1!==i&&(!0!==i&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}(i,a)+(i===`style`?o||``:on(o))+(r?``+n+B(r,function(t){return e(t)}).join(n)+n:``)+(`</`+i+`>`)}(e)}function UO(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function WO(e,t,n,r){return VO(`svg`,`root`,{width:e,height:t,xmlns:RO,"xmlns:xlink":zO,version:`1.1`,baseProfile:`full`,viewBox:!!r&&`0 0 `+e+` `+t},n)}var GO=0;function KO(){return GO++}var qO={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},JO=`transform-origin`;function YO(e,t,n){var r=L({},e.shape);L(r,t),e.buildPath(n,r);var i=new MO;return i.reset(Si(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function XO(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[JO]=n+`px `+r+`px`)}var ZO={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function QO(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function $O(e){return W(e)?qO[e]?`cubic-bezier(`+qO[e]+`)`:Lr(e)?e:``:``}function ek(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Fd){var s=function(e,t,n){var r,i,a=e.shape.paths,o={};if(z(a,function(e){var t=UO(n.zrId);t.animation=!0,ek(e,{},t,!0);var a=t.cssAnims,s=t.cssNodes,c=V(a),l=c.length;if(l){var u=a[i=c[l-1]];for(var d in u){var f=u[d];o[d]=o[d]||{d:``},o[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(i)>=0&&(r=m)}}}),r){t.d=!1;var s=QO(o,n);return r.replace(i,s)}}(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=$O(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a,o=i[1],s=o.length,c={},l={},u={},d=`animation-timing-function`;function f(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var u=s[l],f=Math.round(u.time/i*100)+`%`,p=$O(u.easing),m=u.rawValue;(W(m)||ft(m))&&(t[f]=t[f]||{},t[f][c]=u.rawValue,p&&(t[f][d]=p))}}}}for(var p=0;p<s;p++)(C=(S=o[p]).targetName)?C===`shape`&&f(S,l):!r&&f(S,c);for(var m in c){var h={};xa(h,e),L(h,c[m]);var g=Ci(h),_=c[m][d];u[m]=g?{transform:g}:{},XO(u[m],h),_&&(u[m][d]=_)}var v=!0;for(var m in l){u[m]=u[m]||{};var y=!a;_=l[m][d],y&&(a=new Rc);var b=a.len();a.reset(),u[m].d=YO(e,l[m],a);var x=a.len();if(!y&&b!==x){v=!1;break}_&&(u[m][d]=_)}if(!v)for(var m in u)delete u[m].d;if(!r)for(p=0;p<s;p++){var S,C;(C=(S=o[p]).targetName)===`style`&&f(S,u,function(e){return ZO[e]})}var w,T=V(u),E=!0;for(p=1;p<T.length;p++){var D=T[p-1],O=T[p];if(u[D][JO]!==u[O][JO]){E=!1;break}w=u[D][JO]}if(E&&w){for(var m in u)u[m][JO]&&delete u[m][JO];t[JO]=w}if(ct(T,function(e){return V(u[e]).length>0}).length)return QO(u,n)+` `+i[0]+` both`}for(var g in c)(s=h(c[g]))&&o.push(s);if(o.length){var _=n.zrId+`-cls-`+KO();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function tk(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+KO(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var nk=Math.round;function rk(e){return e&&W(e.src)}function ik(e){return e&&U(e.toDataURL)}function ak(e,t,n,r){LO(function(i,a){var o=i===`fill`||i===`stroke`;o&&bi(a)?gk(t,e,i,r):o&&_i(a)?_k(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),function(e,t,n){var r=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(r)){var i=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=ui(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c+` `+f/2/l;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=VO(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[VO(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:g,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=xi(o)}}(n,e,r)}function ok(e,t){var n=function(e){if(typeof Za==`function`)return Za(e)}(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e.ecmeta_silent=`true`))}function sk(e){return fi(e[0]-1)&&fi(e[1])&&fi(e[2])&&fi(e[3]-1)}function ck(e,t,n){if(t&&(!function(e){return fi(e[4])&&fi(e[5])}(t)||!sk(t))){var r=n?10:1e4;e.transform=sk(t)?`translate(`+nk(t[4]*r)/r+` `+nk(t[5]*r)/r+`)`:function(e){return`matrix(`+pi(e[0])+`,`+pi(e[1])+`,`+pi(e[2])+`,`+pi(e[3])+`,`+mi(e[4])+`,`+mi(e[5])+`)`}(t)}}function lk(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(nk(r[a][0]*n)/n),i.push(nk(r[a][1]*n)/n);t.points=i.join(` `)}function uk(e){return!e.smooth}var dk,fk,pk={circle:[(dk=[`cx`,`cy`,`r`],fk=B(dk,function(e){return typeof e==`string`?[e,e]:e}),function(e,t,n){for(var r=0;r<fk.length;r++){var i=fk[r],a=e[i[0]];a!=null&&(t[i[1]]=nk(a*n)/n)}})],polyline:[lk,uk],polygon:[lk,uk]};function mk(e,t){var n=e.style,r=e.shape,i=pk[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&Si(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||o&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}(e)||c<1){var u=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;u&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var f=d.getVersion(),p=e,m=p.__svgPathBuilder;p.__svgPathVersion===f&&m&&c===p.__svgPathStrokePercent||(m||=p.__svgPathBuilder=new MO,m.reset(l),d.rebuildPath(m,c),m.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=c),a.d=m.getStr()}else{s=e.type;var h=10**l;i[0](r,a,h)}return ck(a,e.transform),ak(a,n,e,t),ok(a,e),t.animation&&ek(e,a,t),t.emphasis&&function(e,t,n){if(!e.ignore){if(e.isSilent())tk(l={"pointer-events":`none`},t,n,!0);else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=r.fill;if(!i){var a=e.style&&e.style.fill,o=e.states.select&&e.states.select.style&&e.states.select.style.fill,s=e.currentStates.indexOf(`select`)>=0&&o||a;s&&(i=ci(s))}var c=r.lineWidth;c&&(c/=!r.strokeNoScale&&e.transform?e.transform[0]:1);var l={cursor:`pointer`};i&&(l.fill=i),r.stroke&&(l.stroke=r.stroke),c&&(l[`stroke-width`]=c),tk(l,t,n,!0)}}}(e,a,t),VO(s,e.id+``,a)}function hk(e,t){return e instanceof al?mk(e,t):e instanceof ul?function(e,t){var n=e.style,r=n.image;if(r&&!W(r)&&(rk(r)?r=r.src:ik(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o={href:r,width:n.width,height:n.height};return i&&(o.x=i),a&&(o.y=a),ck(o,e.transform),ak(o,n,e,t),ok(o,e),t.animation&&ek(e,o,t),VO(`image`,e.id+``,o)}}(e,t):e instanceof sl?function(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||`12px sans-serif`,a=n.x||0,o=function(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}(n.y||0,ja(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":hi[n.textAlign]||n.textAlign};if(Dl(n)){var c=``,l=n.fontStyle,u=Tl(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),ck(s,e.transform),ak(s,n,e,t),ok(s,e),t.animation&&ek(e,s,t),VO(`text`,e.id+``,s,void 0,r)}}(e,t):void 0}function gk(e,t,n,r){var i,a=e[n],o={gradientUnits:a.global?`userSpaceOnUse`:`objectBoundingBox`};if(vi(a))i=`linearGradient`,o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else{if(!yi(a))return;i=`radialGradient`,o.cx=K(a.x,.5),o.cy=K(a.y,.5),o.r=K(a.r,.5)}for(var s=a.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=100*mi(s[l].offset)+`%`,f=ui(s[l].color),p=f.color,m=f.opacity,h={offset:d};h[`stop-color`]=p,m<1&&(h[`stop-opacity`]=m),c.push(VO(`stop`,l+``,h))}var g=HO(VO(i,``,o,c)),_=r.gradientCache,v=_[g];v||(v=r.zrId+`-g`+r.gradientIdx++,_[g]=v,o.id=v,r.defs[v]=VO(i,v,o,c)),t[n]=xi(v)}function _k(e,t,n,r){var i,a=e.style[n],o=e.getBoundingRect(),s={},c=a.repeat,l=c===`no-repeat`,u=c===`repeat-x`,d=c===`repeat-y`;if(gi(a)){var f=a.imageWidth,p=a.imageHeight,m=void 0,h=a.image;if(W(h)?m=h:rk(h)?m=h.src:ik(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;St(f,g),St(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(u?(i=1,r/=o.width):d&&(r=1,i/=o.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=js(m,null,e,function(e){l||_(S,e),_(i,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}i=VO(`image`,`img`,{href:m,width:f,height:p}),s.width=f,s.height=p}else a.svgElement&&(i=I(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(i){var y,b;l?y=b=1:u?(b=1,y=s.width/o.width):d?(y=1,b=s.height/o.height):s.patternUnits=`userSpaceOnUse`,y==null||isNaN(y)||(s.width=y),b==null||isNaN(b)||(s.height=b);var x=Ci(a);x&&(s.patternTransform=x);var S=VO(`pattern`,``,s,[i]),C=HO(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,s.id=T,S=r.defs[T]=VO(`pattern`,T,s,[i])),t[n]=xi(T)}}function vk(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){var o={id:a=n.zrId+`-c`+n.clipPathIdx++};r[e.id]=a,i[a]=VO(`clipPath`,a,o,[mk(e,n)])}t[`clip-path`]=xi(a)}function yk(e){return document.createTextNode(e)}function bk(e,t,n){e.insertBefore(t,n)}function xk(e,t){e.removeChild(t)}function Sk(e,t){e.appendChild(t)}function Ck(e){return e.parentNode}function wk(e){return e.nextSibling}function Tk(e,t){e.textContent=t}var Ek=VO(``,``);function Dk(e){return e===void 0}function Ok(e){return e!==void 0}function kk(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function Ak(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function jk(e){var t,n=e.children,r=e.tag;if(Ok(r)){var i=e.elm=BO(r);if(Pk(Ek,e),H(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&Sk(i,jk(a))}else Ok(e.text)&&!G(e.text)&&Sk(i,yk(e.text))}else e.elm=yk(e.text);return e.elm}function Mk(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&bk(e,jk(a),t)}}function Nk(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(Ok(i.tag)?xk(Ck(i.elm),i.elm):xk(e,i.elm))}}function Pk(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(!0===o?r.setAttribute(n,``):!1===o?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===120?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(`http://www.w3.org/2000/xmlns/`,n,o):n.charCodeAt(3)===58?r.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,n,o):n.charCodeAt(5)===58?r.setAttributeNS(zO,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function Fk(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(Pk(e,t),Dk(t.text)?Ok(r)&&Ok(i)?r!==i&&function(e,t,n){for(var r,i,a,o=0,s=0,c=t.length-1,l=t[0],u=t[c],d=n.length-1,f=n[0],p=n[d];o<=c&&s<=d;)l==null?l=t[++o]:u==null?u=t[--c]:f==null?f=n[++s]:p==null?p=n[--d]:Ak(l,f)?(Fk(l,f),l=t[++o],f=n[++s]):Ak(u,p)?(Fk(u,p),u=t[--c],p=n[--d]):Ak(l,p)?(Fk(l,p),bk(e,l.elm,wk(u.elm)),l=t[++o],p=n[--d]):Ak(u,f)?(Fk(u,f),bk(e,u.elm,l.elm),u=t[--c],f=n[++s]):(Dk(r)&&(r=kk(t,o,c)),Dk(i=r[f.key])||(a=t[i]).tag!==f.tag?bk(e,jk(f),l.elm):(Fk(a,f),t[i]=void 0,bk(e,a.elm,l.elm)),f=n[++s]);(o<=c||s<=d)&&(o>c?Mk(e,n[d+1]==null?null:n[d+1].elm,n,s,d):Nk(e,t,o,c))}(n,r,i):Ok(i)?(Ok(e.text)&&Tk(n,``),Mk(n,null,i,0,i.length-1)):Ok(r)?Nk(n,r,0,r.length-1):Ok(e.text)&&Tk(n,``):e.text!==t.text&&(Ok(r)&&Nk(n,r,0,r.length-1),Tk(n,t.text)))}var Ik=0,Lk=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=function(){},this.storage=t,this._opts=n=L({},n),this.root=e,this._id=`zr`+Ik++,this._oldVNode=WO(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=BO(`svg`);Pk(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,function(e,t){if(Ak(e,t))Fk(e,t);else{var n=e.elm,r=Ck(n);jk(t),r!==null&&(bk(r,t.elm,wk(n)),Nk(r,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return hk(e,UO(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=UO(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=function(e,t,n,r){var i;if(n&&n!==`none`){if(i=VO(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),bi(n))gk({fill:n},i.attrs,`fill`,r);else if(_i(n))_k({style:{fill:n},dirty:jt,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=ui(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=VO(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=B(V(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(VO(`defs`,`defs`,{},c)),e.animation){var l=function(e,t,n){var r=(n||={}).newline?`
|
|
20
|
+
`:``,i=` {`+r,a=r+`}`,o=B(V(e),function(t){return t+i+B(V(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=B(V(t),function(e){return`@keyframes `+e+i+B(V(t[e]),function(n){return n+i+B(V(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return o||s?[`<![CDATA[`,o,s,`]]>`].join(r):``}(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=VO(`style`,`stl`,{},[],l);a.push(u)}}return WO(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},HO(this.renderToVNode({animation:K(e.cssAnimation,!0),emphasis:K(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:K(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,a=e.length,o=[],s=0,c=0,l=0;l<a;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=i&&i.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&(!d||!i||d[m]!==i[m]);m--);for(var h=p-1;h>m;h--)r=o[--s-1];for(var g=m+1;g<f;g++){var _={};vk(d[g],_,t);var v=VO(`g`,`clip-g-`+c++,_,[]);(r?r.children:n).push(v),o[s++]=v,r=v}i=d;var y=hk(u,t);y&&(r?r.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=Hv(r,0,n),t=Hv(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(_i(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=wi(t))&&n+`base64,`+t:n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function Rk(e){e.registerPainter(`svg`,Lk)}var zk=!1;function Bk(){zk||(zk=!0,jS([Rk,SD,EO,oO,rO,FD]))}var Vk={bar:[function(e){e.registerChartView(sT),e.registerSeriesModel($w),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Jw(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(e){return{seriesType:e,plan:C_(),reset:function(e){if(function(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=Zb(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(function(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}(i))),p=Yw(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r,i=e.count,c=p&&FC(3*i),l=p&&s&&FC(3*i),v=p&&FC(i),y=n.master.getRect(),b=d?y.width:y.height,x=t.getStore(),S=0;(r=e.next())!=null;){var C=x.get(u?h:a,r),w=x.get(o,r),T=f,E=void 0;u&&(E=+C-x.get(a,r));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,ro(k)<m&&(k=(k<0?-1:1)*m)}else j=n.dataToPoint([w,C]),u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,ro(A)<m&&(A=(A<=0?-1:1)*m);p?(c[S]=D,c[S+1]=O,c[S+2]=d?k:A,l&&(l[S]=d?y.x:D,l[S+1]=d?O:y.y,l[S+2]=b),v[r]=r):t.setItemLayout(r,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:c,largeDataIndices:v,largeBackgroundPoints:l,valueAxisHorizontal:d})}}}}}}(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,sw(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),Zw(e)}],line:[cw],area:[cw],scatter:[cw],bubble:[cw],pie:[VT],ofPie:[VT]},Hk=new Set;function Uk(e){for(let n of e.groups){let e=t.typeOf(n);if(Hk.has(e))continue;Hk.add(e);let r=t.get(e)?.modules?.()??Vk[e]??[];r.length>0&&jS(r)}}function Wk(e,t){Bk();let n=xe(e,{interactive:!1,...t});Uk(e);let r=sb(null,null,{renderer:`svg`,ssr:!0,width:e.width,height:e.height});return r.setOption(n),r}function Gk(e,t){let n=Wk(e,t);try{return n.renderToSVGString()}finally{n.dispose()}}function Kk(e,t,n){Bk();let r=t,i=n,a=xe(t,n);Uk(t);let o=sb(e,null,{renderer:`svg`,width:t.width,height:t.height});return o.setOption(a),{update:(e,t)=>{e.width===r.width&&e.height===r.height||o.resize({width:e.width,height:e.height}),r=e,t&&(i=t);let n=xe(e,i);Uk(e),o.setOption(n,{notMerge:!0})},dispose:()=>o.dispose()}}export{Wk as createHeadlessChart,Bk as ensureRegistered,Kk as mountChart,Gk as renderChartToSVG};
|