@sheetxl/mcp 0.8.0-beta.15 → 0.8.0-beta.16
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 +8 -7
- package/assets/{OVRdpPUzR0-ueTxE.js → -PtBguqpLi7Nr4Df.js} +2 -2
- package/assets/{BOPsJmq7v7HOKUkO.js → 2GLqCzpAJP6jbaRx.js} +12 -12
- package/assets/{BPwmBu_aouERJjiW.js → 3_NofB4A4Qhl-4YY.js} +2 -2
- package/assets/{CGBGyaCGdlZFQYK0.js → 3t-I20nDzFHBd5UJ.js} +2 -2
- package/assets/{hulrR0PldUxMJm_F.js → 4vS8pASPZSU7QcRZ.js} +4 -4
- package/assets/{Bh0PNKlrR4VAqnP8.js → 5B_tapYOcjOv1wGO.js} +35528 -30074
- package/assets/{FS9NbEKgQvz5wqvZ.js → 8NrxfSWBHDaEJvhz.js} +2 -2
- package/assets/{oxjm7Yr7u7MeaO5P.js → 9MXt8KXdWlbEJNc2.js} +2 -2
- package/assets/{CduNzsdbTigxH-ZK.js → AjWB-QdIkr07kToW.js} +189 -189
- package/assets/{DvUUArnZwoYOKOuk.js → B16N6VSLY5HPgVkD.js} +2 -2
- package/assets/{C0CiMKC3lWK1z9p5.js → B2YEEPHIkNcezk9T.js} +3 -3
- package/assets/{CNz3LdmvsOEJoLO9.js → B3MqN3t5naY3moOk.js} +2 -2
- package/assets/BBPjYcS8XKQREith.js +199 -0
- package/assets/{B4VnJacrzr1x4PHR.js → BCSRsSAEPlwR59H5.js} +5 -5
- package/assets/{CMK6tIDVqYYvK4GZ.js → BIUUGUhypimIDg2a.js} +2 -2
- package/assets/{iujMYIEPx_v3sdPf.js → BNrpvJZtIL0Ex_wE.js} +996 -995
- package/assets/{DA_ar3QKLKtJ9fJD.js → BR66nPIzyzlOcP10.js} +2 -2
- package/assets/{CvngwB17_ve4W49b.js → BRLA4pJWiYdpW-69.js} +73 -73
- package/assets/{Crt2kLdGIlBHANgg.js → BUAq-ENCmL0XGLIu.js} +2 -2
- package/assets/{Bn8D2bebQ2tFfwQt.js → BYqyNLuwXl7GKuzh.js} +43 -41
- package/assets/{ZuYfVKlp41IJnrOS.js → BZbxPclVVopktv3l.js} +2 -2
- package/assets/{Cf9LpgZz-W5blzy_.js → B_nQLUWaxp-Q1IfV.js} +3 -3
- package/assets/{BbcUxIZe3YXywsQR.js → BbDKWV_FQAICqZjP.js} +2 -2
- package/assets/{B2udpZ-uIaql3AUh.js → BbXlmp8W_cbr75FN.js} +6 -6
- package/assets/{CxjchwpiqxPM1XKd.js → BdMebk9YSA0oxQ_d.js} +70 -70
- package/assets/{JO3zH9hupFSV6vj2.js → Bdt9nQs8gDIzu_IG.js} +2 -2
- package/assets/{Cf2dcwmmmf13Rywg.js → BiE9M6RctwQ339_7.js} +2 -2
- package/assets/{BJxfinOazQqqByc-.js → BiGm1tKvxUh8oWbD.js} +2 -2
- package/assets/{DH7sGHzxUqIQkDnd.js → BjDsx_FHl0mShqHX.js} +2 -2
- package/assets/{DB-tkqI6wFXDKEfB.js → BlIrJwQGEASCgJdZ.js} +2 -2
- package/assets/{DD8HNAUFroTCuD-b.js → BlWfQ5HPEehB_lPz.js} +3288 -2130
- package/assets/BpgPKKZwxXklRyo7.js +7 -0
- package/assets/{D7oUtYjetuykGhQ5.js → BrtLeTsrulaU6osB.js} +2 -2
- package/assets/{LyLlBk--VJD2V-f8.js → BsFWmVYPrLyh5Dre.js} +34 -34
- package/assets/{DJiLWtmPR2OQNjzi.js → BtNRIFE92ka4hATo.js} +2 -2
- package/assets/{DKLm4nWzynGw1Kr9.js → BuhHuKVWppW4L8AV.js} +2 -2
- package/assets/{C4z2IilWTuu2TWXw.js → C-AIgWmHugqMcl9J.js} +3 -3
- package/assets/{U1XXGEPuuqIAzYl1.js → C-gN7uBg-MWHRo4g.js} +2 -2
- package/assets/{vZZi_iKYHm05gAye.js → C0JSC9gVwR1QxopD.js} +2 -2
- package/assets/{Cfhv_Yw_LT8VzAMt.js → C2dG4GHThf9O-IJy.js} +2 -2
- package/assets/{Cg51xaLRUkVOMdCZ.js → C3Wibs7QGFZ1FI7W.js} +2 -2
- package/assets/{BuUEsifnQALe49uk.js → C75i_5ip7OhGkuiF.js} +2 -2
- package/assets/{DDnwKPJSznyfYDZS.js → C95HXhZkkhnUx_aE.js} +3 -3
- package/assets/{CWl6oHiJxkNKRixk.js → CAEhAL7-0FG7jdzN.js} +2 -2
- package/assets/{D-ffk16w8c5w0mxI.js → CAMrW5ypKhgn105y.js} +2 -2
- package/assets/{B-MqXm_7luDLwazY.js → CBPkPTmeaEokFPSI.js} +2 -2
- package/assets/{xnhBSX6lAcmBM65y.js → CDqG64rXHp9-2tXr.js} +2 -2
- package/assets/{ClNQN3vEg5b5qUDp.js → CFdJvXLSbUrvNera.js} +2435 -2447
- package/assets/{PpFbmF0DFeUdpb9I.js → CG8zvnxueimOY7wm.js} +2 -2
- package/assets/{BsQZI1vXTRE63Zy-.js → CIqJdIUKSLZkNwHy.js} +345 -235
- package/assets/{_fUXIv6nKvgZkhxn.js → CJa8JVvKGVBz8Q7q.js} +3 -3
- package/assets/{CwPBmcY6xSP8dNlh.js → CK9h6iDOreaI8GEt.js} +12 -12
- package/assets/CL1-ziDI0aAaVbhJ.js +7 -0
- package/assets/{C7ONfuYIWRmDu_vs.js → CVRc6jQcH155Z89u.js} +2 -2
- package/assets/{B9US2ZrF93KOjmAx.js → CVbRpT7QPHOMgwTx.js} +2 -2
- package/assets/CW-ivE6pl3V7vKuT.js +2563 -0
- package/assets/{F_f0jJqM5MrXGbwC.js → CX-6eYkcr5y0VmQm.js} +4 -4
- package/assets/{BlPubAFi7DY7VrAo.js → CZepo1lDTQp1myg6.js} +2 -2
- package/assets/{D8J14MLlN2HRXdXB.js → C_0RM0w6Pw70Bx_Y.js} +2 -2
- package/assets/{C2OrZ8LZ-TI6eYG0.js → Ci7-PIIhZwb2mVv5.js} +2 -2
- package/assets/{BleMG0hAQgjE8fTa.js → Cl98sBOj9GM2XnFe.js} +3 -3
- package/assets/{DwWngYJTgC0KLbih.js → CoIjAX2gECGb3Wxl.js} +2 -2
- package/assets/{DcWTBOi_iBFc6U4J.js → Co_y6GfwJTYtOmlt.js} +8 -8
- package/assets/{BQMDOjNBMjAx9WiW.js → CrwtgrD7BbXyCkx0.js} +2 -2
- package/assets/{CJ5WQnaoCsdr5gf4.js → CsjjeeOHE2624pGt.js} +2 -2
- package/assets/Ct5VTtdW77k-WcP_.js +529 -0
- package/assets/{DwLZpYUp85UHBE3H.js → CvJkwRgwm80S2bcd.js} +2 -2
- package/assets/{fDMpDhXp36CatF-G.js → D-irgQZ2WmkP9dnK.js} +2 -2
- package/assets/{BFdeov2e_xUQPEY_.js → D1g6IOzdvInVLV-x.js} +7 -7
- package/assets/{Btys7KwtvV3hz2F6.js → D2YdqNWXwSHJMPbA.js} +109 -109
- package/assets/{BQbF1RkUH8WyXqSD.js → D3bxrF1Ys2GSVfQH.js} +25 -19
- package/assets/{wfVh0olISLRWdv9Q.js → D7iU4kaxzl_PojNt.js} +2 -2
- package/assets/{DTfl-4Iboi6TQU5m.js → D7ibkNIu_Pn4TeBD.js} +4 -4
- package/assets/DBANZf_eAzaCFdIj.js +4676 -0
- package/assets/{DoILAmhKUOlKWRVw.js → DBMZF6PRHCko9K9R.js} +2 -2
- package/assets/{BFXeoFUbuc4IKTz9.js → DEIkGoOZ_WeuY0Lj.js} +2 -2
- package/assets/{xmTQJJVyCrcq77WR.js → DFAqI-o57Kd_Azlt.js} +2 -2
- package/assets/{BtjqpAKczftx91BQ.js → DFn_thWGK0_EZI5k.js} +2 -2
- package/assets/{DlBdhv6NHgrNp5Yo.js → DFvs1LVzXKm1N5M2.js} +3 -3
- package/assets/{DVchxwp6w6lu2Ihu.js → DJdRl2yX9DP_D8kh.js} +3 -3
- package/assets/{BG5kgbDRXMc0re6W.js → DKRa_Oc4XqB3DABB.js} +9 -9
- package/assets/{BZPTaa0WjpoUAbgZ.js → DLhlBqwsDnmscAuL.js} +2 -2
- package/assets/{BRzp6DEIYUgM3NkN.js → DMhtIFfkX-DZT_e3.js} +4 -4
- package/assets/{DpdHDTFOeuzDVNEe.js → DNhfziNrJGdL8BYs.js} +78 -77
- package/assets/{jadLBUNBVR9mbZ35.js → DOZ40EyxD3m0gCos.js} +809 -494
- package/assets/{SHZe9VOU1prGs1F9.js → DQcus4X_kTKIIyX6.js} +2 -2
- package/assets/{C7Z1li2XjWi6bkrp.js → DR9xHYH6v5G0lOqf.js} +4 -4
- package/assets/{DsCI_ZYm_jDjXF3J.js → DTLbKr_XIJMwQJmk.js} +52 -52
- package/assets/{_d5XJ7dn1CKKYrep.js → DaILIYfy-jPVTXjz.js} +3 -3
- package/assets/{S16s2h9qoYVBlVEa.js → Dd8CHUZz7xuYTfp-.js} +1444 -1356
- package/assets/{B5lHOOQ_rkP4Mi2r.js → DdrsYdX3bLixdb_9.js} +2 -2
- package/assets/DfWWAHOjmhqvN3m_.js +7166 -0
- package/assets/{9U9XCqqdn-q3i2fj.js → DfzLOnWTNL_2J90y.js} +2 -2
- package/assets/{BTQhJQ3e0hsiousD.js → Dg4JXbd1yPGNZOtL.js} +2 -2
- package/assets/Di4ehJD7muvtcrN3.js +169 -0
- package/assets/{BbAmA46MhQSu3ZF_.js → DmLbqbAez7Dzwyl7.js} +2 -2
- package/assets/{CudNpUD78SrtJIiy.js → Dp-dLoOaBndV2N5i.js} +3 -3
- package/assets/DsTi7zHk_Xl37bAD.js +14 -0
- package/assets/{Diee6f_qAmcZBd2_.js → DvFwVzuc5YfagNnH.js} +2 -2
- package/assets/{D0CHDsemn0S31ltt.js → Dy67BUF2yd8VRPwL.js} +2 -2
- package/assets/{LEJp05fjmflKgyqF.js → DzkccbbE6iXMqQDO.js} +451 -447
- package/assets/{B7gUyrfLln3TiyKM.js → Gqh12ggLm5KlvN3v.js} +2 -2
- package/assets/{BjqQjxBuoXza8oqg.js → JC8UUcu6m23qqrr3.js} +3 -4
- package/assets/{ChWpsFGl-BYOnX_A.js → LwFDS0HxPZKiiEnN.js} +2 -2
- package/assets/{BeLr36oL3jmeXFFi.js → POdlv6cpSx6ftJxx.js} +2 -2
- package/assets/{CMWAsUQ66V8fYrME.js → QVWayvB03YMyTKt3.js} +3 -3
- package/assets/{Dz8UUJ7Xc2oN5PBG.js → SB2aKOIVln0EkgXR.js} +2 -2
- package/assets/SaCo3me4_hw2b1L4.js +2039 -0
- package/assets/{CecTe22WURiXbVdY.js → TNQaiw20sEAEUiK5.js} +386 -372
- package/assets/{jPUOH4FHF4b-rapv.js → W2FU69Pfo4chpqtk.js} +2 -2
- package/assets/{CXHslDxkWCuEcCSQ.js → YXC__Myl-BuIFW6s.js} +2 -2
- package/assets/{DPCKMM7sgWbrtB8z.js → Z01wJImjl6lBMpf4.js} +2 -2
- package/assets/{C97xDe_wBbLZh_uW.js → h6EQSu5n2vTsu2yd.js} +2 -2
- package/assets/{FzNG48GE_wso6RII.js → iULnLPcNKVpz00r7.js} +2 -2
- package/assets/{DEW2GxfGYqVFvrfg.js → iqQWGoJaPha0_8lU.js} +2 -2
- package/assets/{BrcQmHcE7Hcr1erJ.js → nDmE2I07HvkpRdR0.js} +2 -2
- package/assets/{Bg95xYj5siqhHVEz.js → nmB0nnkFQf5NWo0i.js} +3 -3
- package/assets/{BCy1zP97fsiIcvj6.js → pQUJKbHGetb7dcOr.js} +2 -2
- package/assets/{B2Ek-DWpZMGJ0V1Z.js → rfwqMukKbJBeJBuC.js} +3 -3
- package/assets/{By-7OWXShMlFFejV.js → soSlr334Fv1j5t2m.js} +2 -2
- package/index.js +2010 -1944
- package/lib.js +2 -2
- package/licenses/dependencies.txt +259 -194
- package/package.json +4 -9
- package/resources/locales/@sheetxl/sdk/de/model.msg.json +82 -1
- package/resources/locales/@sheetxl/sdk/en/model.msg.json +80 -1
- package/screenshot-page/assets/{CSUd8n1H0VBfREnk.js → -N4OYIMgf6f5vgNy.js} +1 -1
- package/screenshot-page/assets/{B4PbXdzBe9BsoZ0e.js → B7eQ3rE-7Vayb_4O.js} +1 -1
- package/screenshot-page/assets/B8i4Sr2kMQAXp0rb.js +4 -0
- package/screenshot-page/assets/{DQWHkaQeNXft9j8b.js → B8qybUclSjEYP5FJ.js} +2 -2
- package/screenshot-page/assets/BIHbD4jMsk3NetOd.js +1 -0
- package/screenshot-page/assets/BIrVK5hdDCUYmxGO.js +1 -0
- package/screenshot-page/assets/{l32n8O_A78Qqduv3.js → BJ2r2WfEL3SgkBAX.js} +1 -1
- package/screenshot-page/assets/BJviQwDXR5L6l1DA.js +1 -0
- package/screenshot-page/assets/BM78thqEW6HwXFAK.js +13 -0
- package/screenshot-page/assets/{BcOdl17EeFSxnAiq.js → BMf827t1Ul65MHd5.js} +1 -1
- package/screenshot-page/assets/BMwQInar0xVS5FRu.js +1 -0
- package/screenshot-page/assets/{BUjI304IvdJnFXH3.js → BU5S8KEzPmIA_Flm.js} +1 -1
- package/screenshot-page/assets/{D6Jpaz2YkhOfzxDB.js → BYQZ8o8k3-MDoNat.js} +1 -1
- package/screenshot-page/assets/{CZf9s6otzzoaBlSs.js → BftXEPOuf5Uwxpud.js} +1 -1
- package/screenshot-page/assets/Bir0SSOHX0w2yo8h.js +1 -0
- package/screenshot-page/assets/{CykecBozGGFl26KA.js → Btgo0VFTT0JxuaP3.js} +74 -68
- package/screenshot-page/assets/C2H2lX8eyKpxpP6M.js +2 -0
- package/screenshot-page/assets/{B-KIwD5F_5S-NsPg.js → C71ZZMVLfHdPl441.js} +1 -1
- package/screenshot-page/assets/CFfgJlXaIS8QMx5O.js +1 -0
- package/screenshot-page/assets/{DGXDfjkGZjMRAXPg.js → CN8u05DjKwNHbUHN.js} +1 -1
- package/screenshot-page/assets/CQFj5AGXfIA9z9zI.js +1 -0
- package/screenshot-page/assets/{gG0AFZ45VxS_moMw.js → CRsTnamLrPN5-Dsi.js} +1 -1
- package/screenshot-page/assets/CYfkL98Zu43S8-50.js +42 -0
- package/screenshot-page/assets/{DXQLzGmxoyN3kfQi.js → CZa1rha3RnQUWyOk.js} +7 -7
- package/screenshot-page/assets/{CpbohdgEaEsVDi9J.js → C_vPl50T1L5HWnhv.js} +1 -1
- package/screenshot-page/assets/{CbUDukmvDZmVfhJH.js → CfkssmHURDicfYvR.js} +1 -1
- package/screenshot-page/assets/{Bj-vfAT28PK-tWWa.js → CguXw0IcKNPbmAbj.js} +2 -2
- package/screenshot-page/assets/{DmbuCapSSCYIa3yk.js → ClzJdxlUDDtBYjH8.js} +1 -1
- package/screenshot-page/assets/{BTboCICZ-951XWsi.js → CqyMYduWKFvmMs_Z.js} +1 -1
- package/screenshot-page/assets/CzsoLbEIUVK5ia1C.js +1 -0
- package/screenshot-page/assets/D2IHCJ1QWDKwmhge.js +1 -0
- package/screenshot-page/assets/D6CzedWHXTesD55R.js +1 -0
- package/screenshot-page/assets/D7biuwkvm3zAwsBa.js +39 -0
- package/screenshot-page/assets/D8s3sJnhFxbI3Dqn.js +1 -0
- package/screenshot-page/assets/{hp_-JA1DMK4Yoztn.js → DDkL9PZPXAggW2Yr.js} +19 -19
- package/screenshot-page/assets/DEpn6VGd30cHEJOS.js +1 -0
- package/screenshot-page/assets/{CIged53b3hHKxa-o.js → DLFFFQjTi5Ji1940.js} +1 -1
- package/screenshot-page/assets/DMxrNtfw275en7pm.js +1 -0
- package/screenshot-page/assets/{CqR3hGrC956TkCMj.js → DRncpwDkZZX8rL9S.js} +1 -1
- package/screenshot-page/assets/DTrnAtpccj55fGg5.js +1 -0
- package/screenshot-page/assets/D_kJ3WunvjIINcHC.js +1 -0
- package/screenshot-page/assets/{BFaiQZKle44Rhyou.js → D_rtIYQ7FDC2CoEn.js} +1 -1
- package/screenshot-page/assets/{Bf7xq8PyF4ohjMzP.js → Db6bZVJ-184DJIoe.js} +2 -2
- package/screenshot-page/assets/{DyLWQxXXTw5uwPVy.js → DeyRZ5rprDbRbuf4.js} +1 -1
- package/screenshot-page/assets/{D47ePD4x1lVazNdl.js → DgtqX4DiBgkepVZZ.js} +1 -1
- package/screenshot-page/assets/DhB6GjSJIeTmIODk.js +1 -0
- package/screenshot-page/assets/Dn5PwRw7rrTKNnql.js +586 -0
- package/screenshot-page/assets/{TfhknTx8vxQkw4zV.js → Dq7wGcTrNIshovlT.js} +2 -2
- package/screenshot-page/assets/{BUGXf2DEBog16Slb.js → DqXO_Zw1Cp7rAQ04.js} +2 -2
- package/screenshot-page/assets/{21oAESJyBGXeHegm.js → DtihumgXQ7ETaN0A.js} +2 -2
- package/screenshot-page/assets/DuYb_otrRZZDq6-f.js +2 -0
- package/screenshot-page/assets/DyiVrm8mEnEaoZHa.js +3 -0
- package/screenshot-page/assets/{BHqg55S-4_OoAu3P.js → LYyM_ig973jLdOU0.js} +2 -2
- package/screenshot-page/assets/TilS2JSBGVkd1za3.js +3 -0
- package/screenshot-page/assets/Tph2vYqw17-NBCtd.js +1 -0
- package/screenshot-page/assets/UKFgEuwI1UMhPqKF.js +2 -0
- package/screenshot-page/assets/XgsioU5Px1T5gKAY.js +1 -0
- package/screenshot-page/assets/cTMKPkmZF8FWQaMn.js +1 -0
- package/screenshot-page/assets/hlxJ87-H830aSZBQ.js +1 -0
- package/screenshot-page/assets/{DDQWM8rNYCYzKa9R.js → lgeNUp9cU20IAotv.js} +1 -1
- package/screenshot-page/assets/nM1r2xslndIMKlI2.js +2 -0
- package/screenshot-page/assets/{BSdFVGZNhU6YHbMI.js → rOzyaU7hqchMbhRL.js} +1 -1
- package/screenshot-page/index.html +12 -12
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +82 -1
- package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +80 -1
- package/types/scripting-api.json +9967 -9497
- package/types/scripting-enums.json +27 -0
- package/types/scripting.d.ts +2282 -166
- package/assets/BBb_3gEGzmEzbTIk.js +0 -359
- package/assets/BSxTn2BhkEEeF9x_.js +0 -2346
- package/assets/CWVWdbY1B1-WLl9k.js +0 -199
- package/assets/CZTSZL3T_f-vSXqM.js +0 -7
- package/assets/DaoSWy3EFlqpZaLr.js +0 -4437
- package/assets/Dht2mcOSyYlPY32b.js +0 -14
- package/assets/DkibD_CEVePaoj_y.js +0 -7
- package/assets/jiEe5eKV3BFPBWfi.js +0 -6294
- package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +0 -1
- package/screenshot-page/assets/B2MJPcMcsuv6FekC.js +0 -1
- package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +0 -1
- package/screenshot-page/assets/BTMW3ukmc44U2fy7.js +0 -1
- package/screenshot-page/assets/B_W2QroTKADz3ABp.js +0 -2
- package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +0 -3
- package/screenshot-page/assets/BnoVwUBEor8NgQNs.js +0 -4
- package/screenshot-page/assets/BzQ5GyiXq8gTz-H-.js +0 -1
- package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +0 -1
- package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +0 -1
- package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +0 -2
- package/screenshot-page/assets/CwqNb7JYzC03lCj0.js +0 -1
- package/screenshot-page/assets/CzhH7lTYQrYGHct6.js +0 -1
- package/screenshot-page/assets/D66vSE1ConAuENmB.js +0 -586
- package/screenshot-page/assets/DCVUZ_ayOXFwV2d_.js +0 -3
- package/screenshot-page/assets/DFE-fKq5NV7_O8V6.js +0 -1
- package/screenshot-page/assets/DK_QSosKV62NDcuT.js +0 -42
- package/screenshot-page/assets/DTFRGj188QuLKEXw.js +0 -1
- package/screenshot-page/assets/DXWWyJlMSWgDFxs1.js +0 -10
- package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +0 -1
- package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +0 -1
- package/screenshot-page/assets/Dsx0NUmGIxS7SvZ8.js +0 -1
- package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +0 -2
- package/screenshot-page/assets/Q5EKmzoJZCE81Om-.js +0 -2
- package/screenshot-page/assets/VvqAh6BWzaD5OUPF.js +0 -1
- package/screenshot-page/assets/fGlPAximvsxzPzGA.js +0 -1
- package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +0 -1
- package/screenshot-page/assets/sHBomL5R4-_px8rD.js +0 -1
- package/screenshot-page/assets/skRJ2qjA7kcmnOsh.js +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
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(`
|
|
1
|
+
import{n as e,t}from"./DKVB6ddRfDJatYid.js";import{K as n,Kt as r,X as i}from"./DuYb_otrRZZDq6-f.js";import{r as a}from"./BftXEPOuf5Uwxpud.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
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
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
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(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{n as analyzeModule,t as lintScript}from"./DgtqX4DiBgkepVZZ.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{t}from"./TilS2JSBGVkd1za3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./CbXtAM7H-Jg_J0dk.js";import{i as t,t as n}from"./-cpi3yOZYn6GsYN4.js";import{n as r}from"./CXGgKVbVXjWzE0p6.js";import{t as i}from"./BEwl-ucV9Jfr0RoC.js";import{Z as a}from"./ChSvXfVMLxZsP9zG.js";import{H as o,j as s,r as c}from"./
|
|
1
|
+
import{n as e}from"./CbXtAM7H-Jg_J0dk.js";import{i as t,t as n}from"./-cpi3yOZYn6GsYN4.js";import{n as r}from"./CXGgKVbVXjWzE0p6.js";import{t as i}from"./BEwl-ucV9Jfr0RoC.js";import{Z as a}from"./ChSvXfVMLxZsP9zG.js";import{H as o,j as s,r as c}from"./CN8u05DjKwNHbUHN.js";import{n as l,r as u,t as d}from"./BowRIybLgENunTOT.js";import{D as f}from"./DuYb_otrRZZDq6-f.js";var p=e(t(),1),m=n(),h=()=>(0,m.jsxs)(`svg`,{viewBox:`0 0 16 16`,width:14,height:14,"aria-hidden":!0,children:[(0,m.jsx)(`path`,{d:`M1.5 2.5h10l-4 5v5l-2 1v-6z`,fill:`none`,stroke:`currentColor`,strokeWidth:1.2,strokeLinejoin:`round`}),(0,m.jsx)(`path`,{d:`M10.5 10l4 4M14.5 10l-4 4`,stroke:`currentColor`,strokeWidth:1.2})]}),g=()=>(0,m.jsxs)(`svg`,{viewBox:`0 0 16 16`,width:14,height:14,"aria-hidden":!0,children:[(0,m.jsx)(`path`,{d:`M1.5 3.5l1.5 1.5 2.5-3M1.5 10.5l1.5 1.5 2.5-3`,fill:`none`,stroke:`currentColor`,strokeWidth:1.2}),(0,m.jsx)(`path`,{d:`M8 4h7M8 11h7`,stroke:`currentColor`,strokeWidth:1.2})]}),_=e=>{let t=e?.getTheme().getFontScheme().getMinorFont();return{fontFamily:f.toCSSFontFamily(t??``,[`sans-serif`]),fontSize:`11pt`}},v=(0,p.memo)((0,p.forwardRef)((e,t)=>{let{children:n,disabled:a,style:f,slicer:v,movable:y,zoom:b=1,isDragging:x,onHide:S,onShow:C,onDragZone:w,adornmentHost:ee,flip:te,gesture:ne,...T}=e,E=o(),D=s(),O=(i()??v.getTable()?.getWorksheet()??null)?.getStyles()??null,[k,A]=(0,p.useReducer)(e=>e+1,0);r(v,{onAnyChange:A,onReferencesChange:A}),(0,p.useEffect)(()=>O?.addListeners({onAnyChange:A}),[O]);let[j,M]=(0,p.useState)([]);(0,p.useEffect)(()=>{let e=!0;if(!v.isDeleted())return v.getItems().then(t=>{e&&M(t)}).catch(()=>{e&&M([])}),()=>{e=!1}},[v,k]);let[N,P]=(0,p.useState)(!1),[F,I]=(0,p.useState)(null),L=(0,p.useRef)(null),R=(0,p.useRef)(null),z=(0,p.useRef)(null),[B,V]=(0,p.useState)(!1);(0,p.useLayoutEffect)(()=>{let e=z.current;if(!e)return;let t=()=>V(e.scrollHeight>e.clientHeight);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[j,v.getRowHeight(),v.getColumnCount(),v.isShowCaption()]),(0,p.useLayoutEffect)(()=>{w?.(e=>{let t=e.target;return!t||!z.current?.contains(t)&&!t.closest?.(`button`)})},[w]);let H=(0,p.useRef)(!1),U=v.getColumnCount(),W=v.getRowHeight();(0,p.useLayoutEffect)(()=>{if(H.current||j.length===0||!z.current)return;H.current=!0;let e=v.toJSON()?.startItem??0;e>0&&(z.current.scrollTop=Math.floor(e/U)*(W+4))},[j,U,W]);let G=(0,p.useCallback)(e=>{v.selectItems(e).catch(e=>D.showError(e))},[v,D]),K=(0,p.useCallback)((e,t)=>{if(a)return;let n=j.map(e=>e.key),r=v.isFilterCleared()?[]:j.filter(e=>e.isSelected).map(e=>e.key),i=L.current;if(t.shiftKey&&i!==null&&n.includes(i)){let a=n.indexOf(i),o=n.indexOf(e.key),s=n.slice(Math.min(a,o),Math.max(a,o)+1);G(t.ctrlKey||t.metaKey?[...new Set([...r,...s])]:s)}else L.current=e.key,t.ctrlKey||t.metaKey||N?r.length===0?G([e.key]):r.includes(e.key)?G(r.filter(t=>t!==e.key)):G([...r,e.key]):G([e.key])},[v,j,N,a,G]),q=c(t,()=>({isSlicerEditor:()=>!0}),[]),J=u(v.getStyle(),O),Y=(0,p.useMemo)(()=>l(J?.wholeTable,O),[J,O,k]),X=(0,p.useMemo)(()=>l(J?.headerRow,O),[J,O,k]);if(v.isDeleted())return null;let Z=v.isFilterCleared(),Q=v.isShowCaption(),$={display:`flex`,alignItems:`center`,justifyContent:`center`,width:22,height:22,padding:0,margin:0,border:`1px solid transparent`,borderRadius:2,background:`none`,color:`inherit`,cursor:`pointer`};return(0,m.jsxs)(`div`,{className:`slicer-editor`,...T,ref:q,style:{width:`100%`,height:`100%`,zoom:b,boxSizing:`border-box`,display:`flex`,flexDirection:`column`,overflow:`hidden`,position:`relative`,backgroundColor:`var(--sxl-color-base-100, white)`,border:`var(--sxl-color-neutral, grey) solid 1px`,..._(O),...Y,filter:a?`blur(1px)`:void 0,boxShadow:x?`1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))`:void 0,...f},children:[Q?(0,m.jsxs)(`div`,{ref:R,className:`slicer-caption`,style:{display:`flex`,alignItems:`center`,gap:2,margin:`0 9px`,padding:`6px 0 4px 0`,flex:`none`,...X},children:[(0,m.jsx)(`span`,{style:{flex:`1 1 auto`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:v.getCaption()}),(0,m.jsx)(`button`,{type:`button`,className:`slicer-multi-select`,tabIndex:-1,title:E(`slicer.multiSelect`),"aria-label":E(`slicer.multiSelect`),"aria-pressed":N,style:{...$,borderColor:N?`var(--sxl-color-neutral, grey)`:`transparent`,backgroundColor:N?`var(--sxl-color-base-200, #eee)`:void 0},onClick:()=>P(e=>!e),children:(0,m.jsx)(g,{})}),(0,m.jsx)(`button`,{type:`button`,className:`slicer-clear`,tabIndex:-1,title:E(`slicer.clearFilter`),"aria-label":E(`slicer.clearFilter`),disabled:Z||a,style:{...$,opacity:Z?.4:1,cursor:Z?`default`:`pointer`},onClick:()=>{v.clearFilters().catch(e=>D.showError(e))},children:(0,m.jsx)(h,{})})]}):null,(0,m.jsx)(`div`,{ref:z,className:`slicer-items`,role:`listbox`,"aria-multiselectable":!0,"aria-label":v.getCaption(),style:{flex:`1 1 auto`,minHeight:0,overflowY:`auto`,overflowX:`hidden`,overscrollBehavior:`contain`,"--scrollbar-width":`8px`,"--scrollbar-border-width":`1px`,display:`grid`,gridTemplateColumns:`repeat(${U}, minmax(0, 1fr))`,gridAutoRows:`${W}px`,alignContent:`start`,gap:4,margin:(Q?4:9)+`px 9px 9px 9px`,paddingRight:B?3:0},onPointerLeave:()=>I(null),children:j.map(e=>{let t=d(e.isSelected,e.hasData,F===e.key);return(0,m.jsx)(`div`,{className:`slicer-item`,role:`option`,"aria-selected":e.isSelected,"data-key":e.key,"data-has-data":e.hasData||void 0,title:e.name,style:{boxSizing:`border-box`,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`0 4px`,overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,userSelect:`none`,cursor:a?void 0:`pointer`,border:`1px solid transparent`,...l(J?.[t],O)},onPointerEnter:()=>I(e.key),onPointerDown:e=>{e.button===0&&(e.stopPropagation(),e.preventDefault(),y&&!y.isSelected()&&y.select())},onClick:t=>K(e,t),children:(0,m.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`},children:e.name})},e.key)})})]})}));v.displayName=`SlicerEditor`;var y={renderer:e=>(0,m.jsx)(v,{...e,slicer:e.movable.getContent()}),commands:(e,t)=>{let{sheet:n,movable:r}=t,i=r.getContent(),o=()=>({slicer:()=>i,styles:()=>n.getStyles()}),s=()=>{e.updateCommand(`formatSlicerStyle`,{callback:e=>{e&&i.setStyle(e)},state:i.getStyle(),context:o,disabledReasons:i.isReadOnly()?[a(`reason.sheetProtected`)]:[]})};return s(),i.addListeners({onAnyChange:s})}};export{y as SlicerKind};
|