agentworkshop 0.7.34 → 0.7.38
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/.output/.AgentWorkShop/aml-python/aml_eval.py +171 -0
- package/.output/.AgentWorkShop/aml-python/amlkit.py +120 -0
- package/.output/.AgentWorkShop/aml-python/requirements.txt +7 -0
- package/.output/.AgentWorkShop/aml-python/train-example.py +92 -0
- package/.output/.AgentWorkShop/schema.json +2 -1
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{DLljr7g0.js → 45zuyAso.js} +1 -1
- package/.output/public/_nuxt/4sIEbgcl.js +42 -0
- package/.output/public/_nuxt/8NMOXZOV.js +1 -0
- package/.output/public/_nuxt/BCGafdXT.js +2 -0
- package/.output/public/_nuxt/BDNMzG2s2.js +1 -0
- package/.output/public/_nuxt/{C-mDhyEd.js → BDmh31hl.js} +1 -1
- package/.output/public/_nuxt/BFkgkW8u.js +4 -0
- package/.output/public/_nuxt/BG8sCcwx.js +14 -0
- package/.output/public/_nuxt/{D8CqF0yy.js → BHA40aHa.js} +1 -1
- package/.output/public/_nuxt/BJHKLJJU.js +1 -0
- package/.output/public/_nuxt/{DoTdlVVe2.js → BN6iuJEg2.js} +1 -1
- package/.output/public/_nuxt/BNT8gYU92.js +4 -0
- package/.output/public/_nuxt/BU83-NnX.js +106 -0
- package/.output/public/_nuxt/BYhEUx8t.js +17 -0
- package/.output/public/_nuxt/BzHEilTt.js +1 -0
- package/.output/public/_nuxt/{Ct-WOVr4.js → C3J6FYKa.js} +1 -1
- package/.output/public/_nuxt/C3gwHTz0.js +1 -0
- package/.output/public/_nuxt/C4DWUZ6d2.js +1 -0
- package/.output/public/_nuxt/C5gUkRwn.js +1 -0
- package/.output/public/_nuxt/CClOy-Hz2.js +1 -0
- package/.output/public/_nuxt/{CUXCQXjG.js → CM12FuB42.js} +1 -1
- package/.output/public/_nuxt/{BSCpFtzG.js → CSkxz2NX.js} +1 -1
- package/.output/public/_nuxt/CWoJjWmZ.js +1 -0
- package/.output/public/_nuxt/CY9LbPCI.js +1 -0
- package/.output/public/_nuxt/CYWVXZTS.js +7 -0
- package/.output/public/_nuxt/CZiw7sEV.js +1 -0
- package/.output/public/_nuxt/C_OLzD09.js +1 -0
- package/.output/public/_nuxt/C__m4EhR.js +1 -0
- package/.output/public/_nuxt/Cbq-mryP.js +1 -0
- package/.output/public/_nuxt/{C4OAdbVK2.js → Cc_9VzD42.js} +1 -1
- package/.output/public/_nuxt/{BASN8nZ0.js → CdPzkOMV.js} +1 -1
- package/.output/public/_nuxt/Cec0Ua3F.js +1 -0
- package/.output/public/_nuxt/{DYKVPzN-.js → CoNpEq5X.js} +1 -1
- package/.output/public/_nuxt/CojCTLKD.js +1 -0
- package/.output/public/_nuxt/{B7wL3pDk.js → Crod5z2f.js} +1 -1
- package/.output/public/_nuxt/CzlMDL5H.js +13 -0
- package/.output/public/_nuxt/{G0qIw7Gq2.js → D0ZBQrN_2.js} +1 -1
- package/.output/public/_nuxt/{Lp7Ll94I.js → D1YDxZpZ.js} +1 -1
- package/.output/public/_nuxt/{Bc0AmjfT.js → D20Yamr4.js} +1 -1
- package/.output/public/_nuxt/D6uzXueg.js +2 -0
- package/.output/public/_nuxt/D9Oidm5I.js +1 -0
- package/.output/public/_nuxt/DAe0h2MB.js +1 -0
- package/.output/public/_nuxt/DBHNsT1Y.js +23 -0
- package/.output/public/_nuxt/DDShH71m.js +1 -0
- package/.output/public/_nuxt/DDgJcSET.js +19 -0
- package/.output/public/_nuxt/DHFrCUxA2.js +13 -0
- package/.output/public/_nuxt/{BcrN7QEl2.js → DIaZ2PTo2.js} +1 -1
- package/.output/public/_nuxt/DPnwL14Y.js +1 -0
- package/.output/public/_nuxt/DR12_WCA.js +3 -0
- package/.output/public/_nuxt/{B9nXmjSB.js → DUrecWPx.js} +4 -4
- package/.output/public/_nuxt/DVsjtsvZ2.js +1 -0
- package/.output/public/_nuxt/DYr1VMiQ.js +6 -0
- package/.output/public/_nuxt/DZtm4l-P2.js +1 -0
- package/.output/public/_nuxt/DdD9mCHM.js +1 -0
- package/.output/public/_nuxt/DeJykBFf.js +9 -0
- package/.output/public/_nuxt/{DoMxCWN52.js → DeyBFhKH2.js} +1 -1
- package/.output/public/_nuxt/DkGQ7lnb2.js +1 -0
- package/.output/public/_nuxt/DmqknNvV.js +18 -0
- package/.output/public/_nuxt/DnUuIR83.js +1 -0
- package/.output/public/_nuxt/DrYV5i68.js +1 -0
- package/.output/public/_nuxt/{B5S_UyaC.js → DtYHUi5Z.js} +1 -1
- package/.output/public/_nuxt/Dz_Q3Lpw2.js +1 -0
- package/.output/public/_nuxt/DzbFpZRk.js +3 -0
- package/.output/public/_nuxt/HBLJ-wei.js +1 -0
- package/.output/public/_nuxt/JCoYF4IJ.js +31 -0
- package/.output/public/_nuxt/JTLM-kqr2.js +1 -0
- package/.output/public/_nuxt/{BeIfu4N3.js → KZQX7xoM.js} +2 -2
- package/.output/public/_nuxt/S_fVQwJK.js +1 -0
- package/.output/public/_nuxt/TownView.0oLiQgTC.css +1 -0
- package/.output/public/_nuxt/YnQxK3eG.js +1 -0
- package/.output/public/_nuxt/_id_.D-SYuyZb.css +1 -0
- package/.output/public/_nuxt/_id_.hma_BU6T.css +1 -0
- package/.output/public/_nuxt/_wsId_.B12v3PhY.css +1 -0
- package/.output/public/_nuxt/aLLjF2K-2.js +1 -0
- package/.output/public/_nuxt/aWWIh8YL.js +24 -0
- package/.output/public/_nuxt/ahgEJu2R.js +1 -0
- package/.output/public/_nuxt/aml.COEKNNqK.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/44b66249-54d0-4c8a-9057-9755a32329e2.json +1 -0
- package/.output/public/_nuxt/daq.B3265ZDn.css +1 -0
- package/.output/public/_nuxt/dcw.DLYZqEhT.css +1 -0
- package/.output/public/_nuxt/default.DE_vT238.css +1 -0
- package/.output/public/_nuxt/entry.BB-Eeh-J.css +1 -0
- package/.output/public/_nuxt/jZsY8yYz.js +1 -0
- package/.output/public/_nuxt/logs.CqFyMrJw.css +1 -0
- package/.output/public/_nuxt/pages.ooEzrMm9.css +1 -0
- package/.output/public/_nuxt/pdk8jLGT.js +1 -0
- package/.output/public/_nuxt/plugins.5e5chZ67.css +1 -0
- package/.output/public/_nuxt/pz2JDAM7.js +2 -0
- package/.output/public/_nuxt/settings.Dm3M0RLy.css +1 -0
- package/.output/public/_nuxt/town.DKIAhKnx.css +1 -0
- package/.output/public/_nuxt/users.CXnP2E08.css +1 -0
- package/.output/public/_nuxt/vRTjoWqd.js +1 -0
- package/.output/public/_nuxt/workshop.Jk5HxWPE.css +1 -0
- package/.output/public/_nuxt/zIGh7R49.js +75 -0
- package/.output/public/_nuxt/zq5t1vyX.js +1 -0
- package/.output/server/chunks/_/character-asset.repo.mjs +1 -1
- package/.output/server/chunks/_/entity.mjs +174 -0
- package/.output/server/chunks/_/entity.mjs.map +1 -0
- package/.output/server/chunks/_/env-manager.mjs +162 -0
- package/.output/server/chunks/_/env-manager.mjs.map +1 -0
- package/.output/server/chunks/_/host-bindings.mjs +1 -1
- package/.output/server/chunks/_/nitro.mjs +1657 -1162
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/_/scene-layout.repo.mjs +1 -1
- package/.output/server/chunks/build/{TownView-BdHnAilw.mjs → TownView-jVazYOjN.mjs} +141 -141
- package/.output/server/chunks/build/{TownView-BdHnAilw.mjs.map → TownView-jVazYOjN.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-Cb845FHR.mjs → _id_-CfVosNg3.mjs} +136 -136
- package/.output/server/chunks/build/{_id_-Cb845FHR.mjs.map → _id_-CfVosNg3.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-fadFPl2i.mjs → _id_-Hwr4rZpr.mjs} +32 -32
- package/.output/server/chunks/build/{_id_-fadFPl2i.mjs.map → _id_-Hwr4rZpr.mjs.map} +1 -1
- package/.output/server/chunks/build/{_wsId_-CTZswnm5.mjs → _wsId_-BVg3bB77.mjs} +175 -165
- package/.output/server/chunks/build/{_wsId_-CTZswnm5.mjs.map → _wsId_-BVg3bB77.mjs.map} +1 -1
- package/.output/server/chunks/build/aml-BCSJCdX7.mjs +588 -0
- package/.output/server/chunks/build/aml-BCSJCdX7.mjs.map +1 -0
- package/.output/server/chunks/build/{daq-BvihjQyW.mjs → daq-C03Uu5UE.mjs} +108 -106
- package/.output/server/chunks/build/daq-C03Uu5UE.mjs.map +1 -0
- package/.output/server/chunks/build/{dcw-Ks2vJ4PF.mjs → dcw-6vEYVeje.mjs} +44 -44
- package/.output/server/chunks/build/{dcw-Ks2vJ4PF.mjs.map → dcw-6vEYVeje.mjs.map} +1 -1
- package/.output/server/chunks/build/{default-GgHt4O2R.mjs → default-hseyOqBT.mjs} +30 -27
- package/.output/server/chunks/build/{default-GgHt4O2R.mjs.map → default-hseyOqBT.mjs.map} +1 -1
- package/.output/server/chunks/build/{logs-CYBhkQwh.mjs → logs-B-xhuqln.mjs} +35 -35
- package/.output/server/chunks/build/{logs-CYBhkQwh.mjs.map → logs-B-xhuqln.mjs.map} +1 -1
- package/.output/server/chunks/build/{pages-C-6BRtv8.mjs → pages-BO7yZsXA.mjs} +18 -27
- package/.output/server/chunks/build/pages-BO7yZsXA.mjs.map +1 -0
- package/.output/server/chunks/build/{plugins-dZRegC7m.mjs → plugins-CUWmMdyt.mjs} +17 -17
- package/.output/server/chunks/build/{plugins-dZRegC7m.mjs.map → plugins-CUWmMdyt.mjs.map} +1 -1
- package/.output/server/chunks/build/{settings-CgDLkP3s.mjs → settings-DoQ2Oq3P.mjs} +43 -43
- package/.output/server/chunks/build/{settings-CgDLkP3s.mjs.map → settings-DoQ2Oq3P.mjs.map} +1 -1
- package/.output/server/chunks/build/{town-DJ-V5G9U.mjs → town-BOl6hs9B.mjs} +7 -7
- package/.output/server/chunks/build/{town-DJ-V5G9U.mjs.map → town-BOl6hs9B.mjs.map} +1 -1
- package/.output/server/chunks/build/useDaqStream-CIBaiGAl.mjs +1 -1
- package/.output/server/chunks/build/useDcwStream-CBbiYnWe.mjs +1 -1
- package/.output/server/chunks/build/{useWorkshopWs-CprkZEdq.mjs → useWorkshopWs-C_I7q9As.mjs} +110 -32
- package/.output/server/chunks/build/{useWorkshopWs-CprkZEdq.mjs.map → useWorkshopWs-C_I7q9As.mjs.map} +1 -1
- package/.output/server/chunks/build/{users-4nzxTjFT.mjs → users-fohSmF-J.mjs} +6 -6
- package/.output/server/chunks/build/{users-4nzxTjFT.mjs.map → users-fohSmF-J.mjs.map} +1 -1
- package/.output/server/chunks/build/{workshop-81xhz368.mjs → workshop-DX5-ldc4.mjs} +15 -15
- package/.output/server/chunks/build/{workshop-81xhz368.mjs.map → workshop-DX5-ldc4.mjs.map} +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +21 -8
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id/preview.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs +58 -0
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs +27 -6
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs +49 -0
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/entities/prune.post.mjs +45 -0
- package/.output/server/chunks/routes/api/workshop/aml/entities/prune.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs +42 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index2.get.mjs +4 -22
- package/.output/server/chunks/routes/api/workshop/aml/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs +4 -16
- package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs +19 -34
- package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs +62 -0
- package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/cancel.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/logs.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/retry.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs +63 -0
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/_id/predict.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/models/_id/promote.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs +54 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs +46 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +4 -4
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/bindings.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs +12 -1
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +2 -2
- package/.output/server/chunks/routes/renderer.mjs +2 -2
- package/.output/server/chunks/virtual/entry.mjs +103 -17
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +578 -507
- package/README.md +125 -51
- package/app/assets/css/main.css +329 -22
- package/app/components/AppHeader.vue +5 -4
- package/app/components/AppSidebar.vue +5 -4
- package/app/components/AwChart.vue +17 -0
- package/app/components/workshop/AgentLanesView.vue +2 -2
- package/app/components/workshop/ChannelSessionList.vue +3 -3
- package/app/components/workshop/CommandPalette.vue +1 -2
- package/app/components/workshop/Composer.vue +4 -4
- package/app/components/workshop/DaqNodeRow.vue +20 -1
- package/app/components/workshop/EventBlock.vue +3 -3
- package/app/components/workshop/MentionHoverCard.vue +1 -1
- package/app/components/workshop/MultiChannelView.vue +1 -1
- package/app/components/workshop/TaskBoardView.vue +5 -5
- package/app/components/workshop/TranscriptTimeline.vue +3 -3
- package/app/components/workshop/blocks/ClusterRoute.vue +3 -3
- package/app/components/workshop/blocks/ClusterStream.vue +1 -1
- package/app/components/workshop/blocks/ClusterTool.vue +1 -1
- package/app/components/workshop/lanes/LaneBlocks.vue +5 -2
- package/app/components/workshop/town/TownView.vue +0 -7
- package/app/composables/workshop/useClusteredBlocks.ts +22 -3
- package/app/composables/workshop/useEscClose.ts +44 -0
- package/app/config/index.ts +2 -1
- package/app/layouts/default.vue +25 -8
- package/app/pages/aml/index.vue +626 -4
- package/app/pages/daq/[id].vue +1 -1
- package/app/pages/daq/index.vue +10 -12
- package/app/pages/dcw/[id].vue +2 -2
- package/app/pages/dcw/index.vue +7 -11
- package/app/pages/index.vue +24 -6
- package/app/pages/logs/index.vue +2 -6
- package/app/pages/plugins/index.vue +1 -1
- package/app/pages/settings.vue +2 -2
- package/app/pages/town.vue +0 -2
- package/app/pages/users.vue +1 -1
- package/app/pages/workshop/index.vue +2 -2
- package/app/plugins/esc-close.client.ts +31 -0
- package/app/stores/workshop/events.ts +186 -36
- package/bin/aw.mjs +7 -2
- package/cli/aw.mjs +19 -34
- package/cli/commands/build.mjs +18 -1
- package/cli/commands/config.mjs +2 -0
- package/cli/commands/plugin.mjs +45 -18
- package/cli/commands/register.mjs +6 -2
- package/cli/commands/status.mjs +2 -1
- package/cli/commands/update.mjs +1 -1
- package/cli/commands/version.mjs +1 -1
- package/cli/core/args.mjs +76 -4
- package/cli/core/help.mjs +3 -1
- package/cli/core/meta.mjs +38 -0
- package/cli/core/post-build.mjs +96 -0
- package/cli/core/registry.mjs +6 -3
- package/config.yml +28 -26
- package/docs/aml.md +99 -0
- package/docs/cli.en.md +445 -0
- package/docs/cli.md +410 -220
- package/docs/full-test-plan.md +174 -0
- package/docs/multi-harness-architecture.md +248 -0
- package/docs/plugins.en.md +534 -0
- package/docs/plugins.md +531 -179
- package/docs/sdk.en.md +922 -0
- package/docs/sdk.md +725 -129
- package/i18n/dicts/aml.json +43 -1
- package/i18n/locales/en.ts +1928 -1885
- package/i18n/locales/zh-CN.ts +1928 -1885
- package/nuxt.config.ts +27 -2
- package/package.json +164 -153
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.continue.json +1 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.json +1 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/054bb4bc4e4217a2ab0b0c6b663747214a9af464f5568ea60e784704e340bb0f.source +153 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/0554197c3d2bac203a1f5c48a5d52495d1336db1bd7aa4f4c19875810363e684.source +153 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/05c203d12a954fffba942e1d626e3f5fec05b18a5aef2bac003b7884a4b77406.source +431 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/145a6e6ba811af35aed31e0cc3211f53706a14980fa069ee9e3c1591139f96f0.source +180 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/1ae0fb281f97899c025e368ca73f41349b01fb5f85b19e08d7ebccff49095ed5.source +112 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/20ee9967aa0541c516db7575bdd4a1a745939bc7016bd10d7635903113edb8ec.source +227 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/233751843aeba9d4c5263f275b8102de00443c06f286918cbd23e0b6729e01aa.source +131 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/263c2e05b425e5c322e60c6475279f963bab3a873eb521b21df7fec935a46597.source +160 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/2ac5eaac28eaaee2178c4b32014df8e732f9dd432a285a872f5b7f31c1395fa4.source +157 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/33a0db0d2d95d2c11d0720090458e5fba1425376f5ceb5b422d1d3471be3226b.source +348 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/359e474ae83db35e4615d3728de6bf694b64d4dce9b536730a3b6518f9c0494a.source +296 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/37a4c3c31c4b70f6b719c53d1e9c4fcba603f31adfdd11bb6ef9f0d094923c56.source +285 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/461feca1c14a695eb8b0f17a6f95fe97eeceabc0510faaea4ba6d25bde147d8d.source +217 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/4cfadbda8591f29d5e1e230dc000e701b756e850441b3900fb596a4d2f6e98c2.source +301 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/50ca2810cf0b248c96948994c0c404531bbad6e553166b6816b3b03bfa0f75d2.source +151 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/52d9e8cb591a9ae86e238c3620a610cd386717bee222c0f37b25b2ac7e523dc4.source +135 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/6c87daafa4c006560a954636a97333f6123153c9d34d96203f7ee3a14e556357.source +156 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/77bc47854b577900621cacf1697f81fa2bc005af129d37614a97a3441c08f99f.source +72 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/7bbb789d3a527817118cf8399ed1861d6a962ade10878fd07223435d333a7089.source +469 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/86b7c1daafc8b60ba9982dde5bf1bcc74265709483c176e71f23ec6fc267451f.source +259 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/8df66d62bd41984d0970e8236882080c5085ac937d07a29779463d6a03b37c76.source +97 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/9962f2d1b3a85137bd40cc835725600b39f89ee02a27c06b2e0402e1eafde115.source +277 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/a1090ea066b792cb201739f4994e37bf7c12f52e805239a1eab87f18a537f266.source +171 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/a5241091650134d0919897e086a606a3846c8b2b54f8b4c84a8696c145ac3e9e.source +425 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/af19fa4c6e34d5540028be4b17600161283af3a2a2dfc61a3fdc0834436a0c14.source +99 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/b3713d78e2b2f93905ff6be8d58a8d0a2f42dea322eb67c987fda22ff6a084d5.source +325 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/b3849943c3aff102d1af815631fc843a2a52c17646a4b04696ece323e483bbec.source +332 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/bac735a3803a6650b7f1eb8f587e6dc5c68ea055000c3c99a11789438b78e837.source +43 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/d32c24d61eb8b33c73e5a8fc7e4dc7ef437aed238ee4371c2b00617e6104090a.source +154 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/d5170dc9a9879fda04fdf91d8a110d4efb6787ee38dda596d4da899883d36a72.source +531 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/dc59bcd7bb397be63ba2f2c3fec23f3782dcb17d2d75a9981eeced761f33eb32.source +439 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/eb5ff8cf66b92aec7bf6726781d8df74faa2b030c3aaac17d6b00c1fc04c9b32.source +323 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f10615a6fae18436e70d1201b2d44fdae3174a3aa7bb4db97dea1b3ed291d721.source +433 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f36d3e271668bc1260c2823542d22dbf1d0f7041ff16b1ac175bce2256e582ca.source +280 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f94449380af09f31ac352152007146a75cc80bae8d6411ffe57b2c56f933b0ff.source +117 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/fe4dfd81178fd6b648335f6405d9ede71319aebde796008e50db21f8adf44c99.source +160 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/ffb4e3aa548cfdadabaa44ab599f9b6a3ca6288176a2cc7a4b2fc2a12b5fb848.source +101 -0
- package/scripts/.mimosa/hook-status/sess_aeaecb58-8833-4b83-b93c-050467d21e03-d944d71bb3.json +14 -0
- package/scripts/_audit/aml-layout-diag.mjs +83 -0
- package/scripts/_audit/bump-version.mjs +51 -0
- package/scripts/_audit/channel-inspect.mjs +49 -0
- package/scripts/_audit/cleanup-apply.mjs +89 -0
- package/scripts/_audit/cleanup-plan.mjs +82 -0
- package/scripts/_audit/contrast-check.mjs +43 -0
- package/scripts/_audit/dcw-unrecorded-write.ts +1 -1
- package/scripts/_audit/design-shots.mjs +145 -0
- package/scripts/_audit/docs-font-probe.mjs +68 -0
- package/scripts/_audit/docs-probe.mjs +107 -0
- package/scripts/_audit/docs-shots.mjs +171 -0
- package/scripts/_audit/docs-v3-verify.mjs +255 -0
- package/scripts/_audit/docs-vue-lint.mjs +81 -0
- package/scripts/_audit/docs-vue-lint2.mjs +91 -0
- package/scripts/_audit/exp-cost-scaling.mjs +4 -1
- package/scripts/_audit/exp-envelope-and-png.mjs +2 -1
- package/scripts/_audit/exp-sweep-fairness.mjs +4 -2
- package/scripts/_audit/fix-settings-count.mjs +57 -0
- package/scripts/_audit/glass-verify.mjs +155 -0
- package/scripts/_audit/hydration-diff.mjs +104 -0
- package/scripts/_audit/hydration-head.mjs +36 -0
- package/scripts/_audit/hydration-probe.mjs +59 -0
- package/scripts/_audit/lead-matrix-test.mjs +172 -0
- package/scripts/_audit/plc-agent-task.mjs +74 -0
- package/scripts/_audit/plc-clean-scenario.mjs +434 -0
- package/scripts/_audit/plc-clean-shots.mjs +161 -0
- package/scripts/_audit/plc-fc10-probe.mjs +30 -0
- package/scripts/_audit/probe-binding.mjs +114 -103
- package/scripts/_audit/review-fix-verify.mjs +158 -0
- package/scripts/_audit/seed-demo.mjs +165 -0
- package/scripts/_audit/town-focus-shot.mjs +129 -0
- package/scripts/_audit/town-reposition.mjs +85 -0
- package/scripts/_audit/ts-resolve-hook.mjs +57 -22
- package/scripts/_audit/verify-cleanup.mjs +67 -0
- package/scripts/_audit/verify-release-pack.mjs +82 -0
- package/scripts/_audit/watchdog-recovery-test.mjs +127 -0
- package/scripts/_dbg-audit-all-pages.mjs +43 -43
- package/scripts/_dbg-configroot-audit.mjs +84 -84
- package/scripts/_dbg-daq-intervals-func.mjs +94 -94
- package/scripts/_dbg-daq-rowstyle-verify.mjs +112 -112
- package/scripts/_dbg-groups-ui-verify.mjs +122 -122
- package/scripts/_dbg-harness-e2e.mjs +92 -92
- package/scripts/_dbg-harness-ui-e2e.py +97 -97
- package/scripts/_dbg-hitl-timeout-e2e.mjs +93 -93
- package/scripts/_dbg-multiharness-live-e2e.mjs +254 -254
- package/scripts/_dbg-opslog-agent-e2e.mjs +194 -194
- package/scripts/_dbg-opt-team-e2e.mjs +133 -133
- package/scripts/_dbg-recipe-e2e.mjs +176 -176
- package/scripts/_dbg-recipe-stale-e2e.mjs +135 -135
- package/scripts/_dbg-render-perf.mjs +142 -142
- package/scripts/_dbg-render-regression.mjs +130 -130
- package/scripts/_dbg-town-smoke.mjs +54 -54
- package/scripts/aw-start-smoke.mjs +27 -8
- package/scripts/check-docs-sync.mjs +367 -0
- package/scripts/e2e-full-closedloop.mjs +36 -18
- package/scripts/production-closed-loop-e2e.mjs +300 -303
- package/scripts/test-cli-exit.mjs +129 -21
- package/scripts/test-daq-frame-race.mjs +144 -96
- package/scripts/test-events-index.mjs +176 -0
- package/scripts/test-lru.mjs +34 -11
- package/scripts/test-memory-month-query.mjs +11 -3
- package/scripts/test-plugin-hardening.mjs +39 -2
- package/scripts/test-plugin-lifecycle.mjs +173 -0
- package/scripts/test-rollback-index.mjs +76 -18
- package/scripts/test-sdk-surface.mjs +6 -3
- package/sdk/client.mjs +16 -7
- package/sdk/context.mjs +21 -9
- package/sdk/examples/line-sentinel/client.mjs +13 -6
- package/sdk/examples/line-sentinel/index.mjs +5 -2
- package/sdk/examples/ops-notifier/client.mjs +3 -1
- package/sdk/examples/sample-insight/client.mjs +4 -2
- package/sdk/index.d.mts +133 -16
- package/sdk/index.mjs +3 -2
- package/sdk/lifecycle.mjs +8 -3
- package/server/api/workshop/agent-tools/bindings/index.post.ts +22 -7
- package/server/api/workshop/aml/datasets/[id].delete.ts +39 -0
- package/server/api/workshop/aml/datasets/[id].get.ts +31 -9
- package/server/api/workshop/aml/datasets/[id].patch.ts +30 -0
- package/server/api/workshop/aml/entities/index.get.ts +13 -0
- package/server/api/workshop/aml/entities/prune.post.ts +28 -0
- package/server/api/workshop/aml/env/index.get.ts +13 -0
- package/server/api/workshop/aml/env/recheck.post.ts +14 -0
- package/server/api/workshop/aml/env/uv.post.ts +21 -0
- package/server/api/workshop/aml/env/venv.post.ts +24 -0
- package/server/api/workshop/aml/index.get.ts +14 -1
- package/server/api/workshop/aml/jobs/[id].delete.ts +44 -0
- package/server/api/workshop/aml/models/[id].delete.ts +35 -0
- package/server/api/workshop/aml/models/[id].patch.ts +30 -0
- package/server/plugins/dev-stability-guard.ts +40 -63
- package/server/services/workshop/agents/agent-interface.ts +3 -0
- package/server/services/workshop/agents/codex-agent.ts +4 -7
- package/server/services/workshop/agents/dsh-agent.ts +4 -7
- package/server/services/workshop/agents/opencode-agent.ts +5 -7
- package/server/services/workshop/aml/aml.repo.ts +18 -0
- package/server/services/workshop/aml/dataset-builder.ts +4 -0
- package/server/services/workshop/aml/entity.ts +365 -0
- package/server/services/workshop/aml/env-manager.ts +242 -0
- package/server/services/workshop/aml/job-orchestrator.ts +4 -15
- package/server/services/workshop/aml/model-registry.ts +6 -0
- package/server/services/workshop/aml/python-runtime.ts +396 -62
- package/server/services/workshop/aml/runtime.ts +95 -4
- package/server/services/workshop/daq/bus/mqtt.adapter.ts +3 -1
- package/server/services/workshop/daq/daq-controller.ts +95 -47
- package/server/services/workshop/daq/daq-node.repo.ts +0 -10
- package/server/services/workshop/daq/daq-runtime.ts +0 -5
- package/server/services/workshop/json-store.mjs +35 -2
- package/server/services/workshop/plugins/host.mjs +14 -5
- package/server/services/workshop/runtime/manager.ts +28 -1
- package/server/services/workshop/runtime/scheduler-loop.ts +10 -1
- package/server/services/workshop/settings.ts +2 -0
- package/server/utils/stability-severity.ts +66 -0
- package/shared/config/home.mjs +58 -0
- package/shared/config/schema.json +2 -1
- package/shared/lru.mjs +4 -1
- package/.output/public/_nuxt/-6OnbLFb.js +0 -1
- package/.output/public/_nuxt/-nb2uqVg.js +0 -1
- package/.output/public/_nuxt/4bHdIqEg.js +0 -18
- package/.output/public/_nuxt/6PZPfFcO.js +0 -17
- package/.output/public/_nuxt/BBBtwOpo.js +0 -9
- package/.output/public/_nuxt/BBwMH_hG.js +0 -7
- package/.output/public/_nuxt/BDUjyaF4.js +0 -42
- package/.output/public/_nuxt/BNXfwXpE.js +0 -1
- package/.output/public/_nuxt/BN_PdN3J.js +0 -24
- package/.output/public/_nuxt/BSSUlJnx2.js +0 -1
- package/.output/public/_nuxt/BWSE6hR6.js +0 -1
- package/.output/public/_nuxt/BZGNTgTQ2.js +0 -1
- package/.output/public/_nuxt/BZv4RFYN.js +0 -1
- package/.output/public/_nuxt/BcmbLh2z2.js +0 -1
- package/.output/public/_nuxt/BfGc7TJp.js +0 -1
- package/.output/public/_nuxt/BgTB6h_q.js +0 -2
- package/.output/public/_nuxt/BkLJA9J5.js +0 -1
- package/.output/public/_nuxt/Bp5luxkg2.js +0 -1
- package/.output/public/_nuxt/BuCHayqN.js +0 -1
- package/.output/public/_nuxt/BuvcLKh1.js +0 -19
- package/.output/public/_nuxt/C3tCneTM.js +0 -1
- package/.output/public/_nuxt/C77oC8yC2.js +0 -7
- package/.output/public/_nuxt/C9f8QMp12.js +0 -1
- package/.output/public/_nuxt/CKfhtOt7.js +0 -13
- package/.output/public/_nuxt/CQvmN-Mi.js +0 -1
- package/.output/public/_nuxt/CUDrOuW7.js +0 -1
- package/.output/public/_nuxt/CZcC-gpk.js +0 -1
- package/.output/public/_nuxt/CbzsPO5H.js +0 -1
- package/.output/public/_nuxt/CdSOrh2c.js +0 -1
- package/.output/public/_nuxt/Cgx818r-.js +0 -1
- package/.output/public/_nuxt/Cjm7VogC.js +0 -1
- package/.output/public/_nuxt/Cm5mDxzH.js +0 -1
- package/.output/public/_nuxt/CmHzfVc5.js +0 -3
- package/.output/public/_nuxt/Cn3J3NXR.js +0 -23
- package/.output/public/_nuxt/Cno6kYiO2.js +0 -1
- package/.output/public/_nuxt/Cp6z0RN7.js +0 -1
- package/.output/public/_nuxt/CwqIxJGj.js +0 -2
- package/.output/public/_nuxt/D-Ca4BGY.js +0 -70
- package/.output/public/_nuxt/D0fhp-Ga.js +0 -75
- package/.output/public/_nuxt/D1z7i2UP.js +0 -31
- package/.output/public/_nuxt/DIaTPH1M.js +0 -1
- package/.output/public/_nuxt/DTYBfjRY.js +0 -1
- package/.output/public/_nuxt/DXRZPxGs.js +0 -1
- package/.output/public/_nuxt/DZzGarBE2.js +0 -13
- package/.output/public/_nuxt/DaMCzQhv.js +0 -1
- package/.output/public/_nuxt/DoLasgPj2.js +0 -1
- package/.output/public/_nuxt/DpojD719.js +0 -1
- package/.output/public/_nuxt/DsVcWfyR.js +0 -1
- package/.output/public/_nuxt/DtBu71ev.js +0 -32
- package/.output/public/_nuxt/Dy-mxvXY2.js +0 -1
- package/.output/public/_nuxt/DzuC31-i.js +0 -2
- package/.output/public/_nuxt/FQri3dV3.js +0 -1
- package/.output/public/_nuxt/ORt9oDIy2.js +0 -1
- package/.output/public/_nuxt/TownView.CtskuMXS.css +0 -1
- package/.output/public/_nuxt/VLI2Zy4t.js +0 -5
- package/.output/public/_nuxt/_id_.MbzdFygI.css +0 -1
- package/.output/public/_nuxt/_id_.hRYo-EAB.css +0 -1
- package/.output/public/_nuxt/_wsId_.gXMEOYgX.css +0 -1
- package/.output/public/_nuxt/aml.WU_bh87J.css +0 -1
- package/.output/public/_nuxt/arUY5dyq2.js +0 -4
- package/.output/public/_nuxt/builds/meta/adc365b6-f636-4a2b-9527-79819c1e874b.json +0 -1
- package/.output/public/_nuxt/daq.Bb6l44-O.css +0 -1
- package/.output/public/_nuxt/dcw.rXH2fc2Z.css +0 -1
- package/.output/public/_nuxt/default.jNT73_hq.css +0 -1
- package/.output/public/_nuxt/ekuGmQ7R.js +0 -1
- package/.output/public/_nuxt/entry.jFrFAWuA.css +0 -1
- package/.output/public/_nuxt/logs.DMOM-iHe.css +0 -1
- package/.output/public/_nuxt/niDwBOZW.js +0 -3
- package/.output/public/_nuxt/pMoIO6rr.js +0 -14
- package/.output/public/_nuxt/pages.Cc8GX9T1.css +0 -1
- package/.output/public/_nuxt/plugins.wIPyfPn-.css +0 -1
- package/.output/public/_nuxt/rqZ-1SoP.js +0 -2
- package/.output/public/_nuxt/settings.BCm4NZIc.css +0 -1
- package/.output/public/_nuxt/town.C_DsNW0J.css +0 -1
- package/.output/public/_nuxt/users.DuAt_Zwf.css +0 -1
- package/.output/public/_nuxt/vJ4FPb-_.js +0 -1
- package/.output/public/_nuxt/workshop.BJg84pOK.css +0 -1
- package/.output/server/chunks/build/aml-uBNIppIf.mjs +0 -508
- package/.output/server/chunks/build/aml-uBNIppIf.mjs.map +0 -1
- package/.output/server/chunks/build/daq-BvihjQyW.mjs.map +0 -1
- package/.output/server/chunks/build/pages-C-6BRtv8.mjs.map +0 -1
- package/scripts/_audit/.tmp/audit-data/dcws.json +0 -28
- package/scripts/_audit/.tmp/dcw-writes.json +0 -15650
- package/scripts/_audit/.tmp/dcws.json +0 -9033
- package/scripts/_audit/.tmp/pollution-backup/dcw-rollback.polluted.json +0 -470006
- package/scripts/_audit/.tmp/pollution-backup/dcws.polluted.json +0 -9085
- package/scripts/_audit/.tmp/probe-cwd.txt +0 -1
- package/scripts/_audit/awhome/commands/README.md +0 -3
- package/scripts/_audit/awhome/commands/hello.mjs +0 -12
- package/scripts/_audit/diag-cwd.ts +0 -20
- package/scripts/_audit/diag-cwd2.ts +0 -19
- package/scripts/_audit/hello.mjs +0 -12
- package/scripts/_audit/ndjson-partial-line-repro.mjs +0 -77
- package/scripts/_audit/opencode-await-ternary-repro.mjs +0 -20
- package/scripts/_audit/part-frag.txt +0 -84
- package/scripts/_audit/part-head.txt +0 -45
- package/scripts/_audit/probe-child.mjs +0 -17
- package/scripts/_audit/probe-envelope.mjs +0 -49
- package/scripts/_audit/probe-packlist.mjs +0 -67
- package/scripts/_audit/probe-routes.mjs +0 -47
- package/scripts/_audit/probe-routes2.mjs +0 -38
- package/scripts/_audit/probe.ts +0 -9
- package/scripts/_audit/probe2.ts +0 -6
- package/scripts/_audit/probe3.ts +0 -3
- package/scripts/_audit/probe4.ts +0 -3
- package/scripts/_audit/proj/.AgentWorkShop/commands/echoargs.mjs +0 -13
- package/scripts/_audit/proj/config.yml +0 -1
- package/scripts/_audit/run.mjs +0 -30
- package/scripts/_audit/tsconfig.probe.json +0 -24
- package/scripts/_audit/typecheck-out.txt +0 -466
- package/scripts/_daq-realtime-probe.mjs +0 -68
- package/scripts/_daq-warn-probe.mjs +0 -50
- package/scripts/_dbg-acc-1-setup.mjs +0 -57
- package/scripts/_dbg-acc-2-diag.mjs +0 -14
- package/scripts/_dbg-acc-2-intervals.mjs +0 -81
- package/scripts/_dbg-acc-3-daq.mjs +0 -48
- package/scripts/_dbg-acc-4-team.mjs +0 -92
- package/scripts/_dbg-acc-5-visual.mjs +0 -63
- package/scripts/_dbg-acc-5b-ws-town.mjs +0 -18
- package/scripts/_dbg-acc-5c-town.mjs +0 -12
- package/scripts/_dbg-acc-6-i18n.mjs +0 -19
- package/scripts/_dbg-agent-tools-audit.mjs +0 -154
- package/scripts/_dbg-agent-workflow-audit.mjs +0 -177
- package/scripts/_dbg-agents-dropdown-shot.py +0 -33
- package/scripts/_dbg-anim-verify.mjs +0 -81
- package/scripts/_dbg-app-shot.mjs +0 -48
- package/scripts/_dbg-autoframe.mjs +0 -103
- package/scripts/_dbg-availability-probe.ts +0 -11
- package/scripts/_dbg-beacon-final.mjs +0 -181
- package/scripts/_dbg-bind-bidi-e2e.mjs +0 -239
- package/scripts/_dbg-callout-near.mjs +0 -108
- package/scripts/_dbg-catalog-smoke.ts +0 -20
- package/scripts/_dbg-cf-line-shot.mjs +0 -18
- package/scripts/_dbg-chan-focus.mjs +0 -49
- package/scripts/_dbg-channel-plugin-ui.mjs +0 -94
- package/scripts/_dbg-cleanup.mjs +0 -31
- package/scripts/_dbg-closedloop-ui-shot.mjs +0 -61
- package/scripts/_dbg-codex-handshake.ts +0 -30
- package/scripts/_dbg-codex-probe.mjs +0 -58
- package/scripts/_dbg-codex-sandbox.ts +0 -58
- package/scripts/_dbg-codex-turn.ts +0 -65
- package/scripts/_dbg-collab-scenario-e2e.mjs +0 -185
- package/scripts/_dbg-config-smoke.ts +0 -28
- package/scripts/_dbg-console-audit.mjs +0 -61
- package/scripts/_dbg-console-probe.mjs +0 -23
- package/scripts/_dbg-context-inject-audit.mjs +0 -231
- package/scripts/_dbg-cpu-profile.mjs +0 -53
- package/scripts/_dbg-crash-recovery.mjs +0 -143
- package/scripts/_dbg-crop-shot.mjs +0 -16
- package/scripts/_dbg-cross-channel-e2e.mjs +0 -157
- package/scripts/_dbg-cross-team-visibility-e2e.mjs +0 -129
- package/scripts/_dbg-crush-probe.sh +0 -21
- package/scripts/_dbg-crush-spawn-probe.ts +0 -22
- package/scripts/_dbg-daq-acc-probe.mjs +0 -24
- package/scripts/_dbg-daq-attrib.mjs +0 -34
- package/scripts/_dbg-daq-bind-audit.mjs +0 -119
- package/scripts/_dbg-daq-cadence.mjs +0 -104
- package/scripts/_dbg-daq-debug.mjs +0 -22
- package/scripts/_dbg-daq-diag.mjs +0 -33
- package/scripts/_dbg-daq-e2e.mjs +0 -171
- package/scripts/_dbg-daq-film.mjs +0 -136
- package/scripts/_dbg-daq-filter-e2e.mjs +0 -109
- package/scripts/_dbg-daq-filter-e2e2.mjs +0 -62
- package/scripts/_dbg-daq-final-regression.mjs +0 -78
- package/scripts/_dbg-daq-frame-alarm.mjs +0 -49
- package/scripts/_dbg-daq-frame-ui.mjs +0 -62
- package/scripts/_dbg-daq-frame-ws.mjs +0 -72
- package/scripts/_dbg-daq-full-check.mjs +0 -179
- package/scripts/_dbg-daq-line-note-verify.mjs +0 -61
- package/scripts/_dbg-daq-linebanner-audit.mjs +0 -107
- package/scripts/_dbg-daq-pages-shot.mjs +0 -37
- package/scripts/_dbg-daq-perf.mjs +0 -61
- package/scripts/_dbg-daq-probe.mjs +0 -27
- package/scripts/_dbg-daq-recipe-e2e.mjs +0 -30
- package/scripts/_dbg-daq-redesign-shot.mjs +0 -88
- package/scripts/_dbg-daq-rows-probe.mjs +0 -26
- package/scripts/_dbg-daq-rowstate-e2e.mjs +0 -152
- package/scripts/_dbg-daq-rowstate-shot.mjs +0 -45
- package/scripts/_dbg-daq-rowstate-shot2.mjs +0 -38
- package/scripts/_dbg-daq-tpl.mjs +0 -144
- package/scripts/_dbg-dash-console-check.mjs +0 -49
- package/scripts/_dbg-dash-deep-probe.mjs +0 -61
- package/scripts/_dbg-dash-hitpoint.mjs +0 -44
- package/scripts/_dbg-dash-live-shot.mjs +0 -36
- package/scripts/_dbg-dash-shot.mjs +0 -21
- package/scripts/_dbg-dashboard-shot.mjs +0 -35
- package/scripts/_dbg-dcw-audit.mjs +0 -126
- package/scripts/_dbg-dcw-card-e2e.mjs +0 -108
- package/scripts/_dbg-dcw-channel-ui.mjs +0 -144
- package/scripts/_dbg-dcw-examples.mjs +0 -81
- package/scripts/_dbg-dcw-light-shot.mjs +0 -19
- package/scripts/_dbg-dcw-line-audit.mjs +0 -107
- package/scripts/_dbg-dcw-pause-tpl-audit.mjs +0 -161
- package/scripts/_dbg-dcw-pause-ui.mjs +0 -175
- package/scripts/_dbg-dcw-read-toolface.ts +0 -13
- package/scripts/_dbg-dcw-read-ui.mjs +0 -74
- package/scripts/_dbg-dcw-scene.mjs +0 -72
- package/scripts/_dbg-dcw-shot2.mjs +0 -14
- package/scripts/_dbg-dcw-twin-e2e.mjs +0 -192
- package/scripts/_dbg-diag-mock-loop.mjs +0 -89
- package/scripts/_dbg-diag-watch.mjs +0 -95
- package/scripts/_dbg-docs-site-shot.mjs +0 -32
- package/scripts/_dbg-dsh-probe.mjs +0 -31
- package/scripts/_dbg-dt-interact.mjs +0 -193
- package/scripts/_dbg-error-probe.mjs +0 -54
- package/scripts/_dbg-filter-light-verify.mjs +0 -54
- package/scripts/_dbg-final-acceptance-2.mjs +0 -72
- package/scripts/_dbg-final-acceptance.mjs +0 -192
- package/scripts/_dbg-final-agent-e2e.mjs +0 -151
- package/scripts/_dbg-final-features.mjs +0 -155
- package/scripts/_dbg-final-fixups.mjs +0 -62
- package/scripts/_dbg-final-full-e2e.mjs +0 -218
- package/scripts/_dbg-final-line-e2e.mjs +0 -173
- package/scripts/_dbg-final-shots.mjs +0 -32
- package/scripts/_dbg-final-t6-hitl.mjs +0 -38
- package/scripts/_dbg-final-visual.mjs +0 -29
- package/scripts/_dbg-fix-unused-imports.py +0 -41
- package/scripts/_dbg-focus-range.mjs +0 -115
- package/scripts/_dbg-fresh-scene-e2e.mjs +0 -125
- package/scripts/_dbg-fullchain-e2e.mjs +0 -178
- package/scripts/_dbg-gate-debug.mjs +0 -37
- package/scripts/_dbg-gif-encode.mjs +0 -111
- package/scripts/_dbg-gizmo.mjs +0 -95
- package/scripts/_dbg-glass-probe.mjs +0 -57
- package/scripts/_dbg-glass-shot.mjs +0 -50
- package/scripts/_dbg-glass-sweep.mjs +0 -25
- package/scripts/_dbg-glb-probe.mjs +0 -43
- package/scripts/_dbg-goose-probe.mjs +0 -33
- package/scripts/_dbg-goose-probe.sh +0 -10
- package/scripts/_dbg-hardening-probe.mjs +0 -90
- package/scripts/_dbg-harness-cancel-repro.mjs +0 -81
- package/scripts/_dbg-harness-ui-dbg.py +0 -49
- package/scripts/_dbg-harness-ui-shot.py +0 -109
- package/scripts/_dbg-hero-btn-probe.mjs +0 -21
- package/scripts/_dbg-hidden-check.mjs +0 -21
- package/scripts/_dbg-hmi-audit.mjs +0 -164
- package/scripts/_dbg-home-repro.mjs +0 -24
- package/scripts/_dbg-home-stack.mjs +0 -13
- package/scripts/_dbg-host.mjs +0 -16
- package/scripts/_dbg-huashu-survey.mjs +0 -31
- package/scripts/_dbg-huashu-survey2.mjs +0 -35
- package/scripts/_dbg-huashu-verify.mjs +0 -25
- package/scripts/_dbg-huashu-verify2.mjs +0 -26
- package/scripts/_dbg-hydration-detail.mjs +0 -18
- package/scripts/_dbg-i18n-debug.mjs +0 -27
- package/scripts/_dbg-i18n-debug2.mjs +0 -26
- package/scripts/_dbg-i18n-final.mjs +0 -42
- package/scripts/_dbg-i18n-scan.mjs +0 -38
- package/scripts/_dbg-infra-lifecycle.mjs +0 -44
- package/scripts/_dbg-interval-config.mjs +0 -156
- package/scripts/_dbg-interval-scenario.mjs +0 -126
- package/scripts/_dbg-kicker-check.mjs +0 -11
- package/scripts/_dbg-line-aura-shots.mjs +0 -54
- package/scripts/_dbg-line-control-e2e.mjs +0 -120
- package/scripts/_dbg-line-gate-audit.mjs +0 -108
- package/scripts/_dbg-line-live-e2e.mjs +0 -144
- package/scripts/_dbg-line-repo-test.ts +0 -10
- package/scripts/_dbg-line-scenario-e2e.mjs +0 -256
- package/scripts/_dbg-line-spawn.ts +0 -31
- package/scripts/_dbg-live-engine-probe.mjs +0 -80
- package/scripts/_dbg-login-debug.py +0 -23
- package/scripts/_dbg-login-e2e.mjs +0 -26
- package/scripts/_dbg-logs-ui-e2e.py +0 -126
- package/scripts/_dbg-mcp-bridge-probe.mjs +0 -147
- package/scripts/_dbg-modbus-latency.mjs +0 -22
- package/scripts/_dbg-mqtt-chain-e2e.mjs +0 -90
- package/scripts/_dbg-mqtt-publisher.mjs +0 -17
- package/scripts/_dbg-nav-rpg.mjs +0 -84
- package/scripts/_dbg-nav-shot.mjs +0 -28
- package/scripts/_dbg-nav.mjs +0 -27
- package/scripts/_dbg-oneshot-impl-probe.ts +0 -67
- package/scripts/_dbg-opencode-sse.mjs +0 -101
- package/scripts/_dbg-opencode-start.ts +0 -57
- package/scripts/_dbg-opslog-e2e.mjs +0 -121
- package/scripts/_dbg-opslog-shots.mjs +0 -62
- package/scripts/_dbg-optimization-e2e.mjs +0 -94
- package/scripts/_dbg-orbit.mjs +0 -58
- package/scripts/_dbg-overview-probe.sh +0 -31
- package/scripts/_dbg-panesplitter-fix-check.mjs +0 -62
- package/scripts/_dbg-perms-visual.mjs +0 -36
- package/scripts/_dbg-pg-tcp-probe.cjs +0 -27
- package/scripts/_dbg-phase-e3-monitor.mjs +0 -25
- package/scripts/_dbg-pi-spawn-probe.ts +0 -33
- package/scripts/_dbg-plc-agent-loop.ts +0 -102
- package/scripts/_dbg-plc-e2e.mjs +0 -171
- package/scripts/_dbg-plugin-agent-read.ts +0 -56
- package/scripts/_dbg-plugin-config-ui.mjs +0 -111
- package/scripts/_dbg-plugin-matrix.mjs +0 -212
- package/scripts/_dbg-plugin-panels-ui.mjs +0 -54
- package/scripts/_dbg-plugin-sink-rest.mjs +0 -70
- package/scripts/_dbg-plugin-sink-ui.mjs +0 -81
- package/scripts/_dbg-plugin-tools-inject.ts +0 -80
- package/scripts/_dbg-plugin-ui-wizard.mjs +0 -125
- package/scripts/_dbg-plugin-verify-e2e.mjs +0 -123
- package/scripts/_dbg-plugins-e2e.mjs +0 -101
- package/scripts/_dbg-pop-clamp-verify.mjs +0 -77
- package/scripts/_dbg-preset-e2e.mjs +0 -116
- package/scripts/_dbg-preview-console.mjs +0 -28
- package/scripts/_dbg-preview-minrepro.mjs +0 -156
- package/scripts/_dbg-preview-pixels.mjs +0 -93
- package/scripts/_dbg-prompts-hotreload-test.ts +0 -76
- package/scripts/_dbg-prompts-resolve-test.ts +0 -39
- package/scripts/_dbg-quality-pages-e2e.mjs +0 -84
- package/scripts/_dbg-query-cancel.ts +0 -12
- package/scripts/_dbg-qwen-acp-probe.mjs +0 -30
- package/scripts/_dbg-qwen-capture.mjs +0 -21
- package/scripts/_dbg-rail-tree-e2e.mjs +0 -183
- package/scripts/_dbg-real-driver-e2e.mjs +0 -55
- package/scripts/_dbg-redesign-shots.mjs +0 -34
- package/scripts/_dbg-registry-smoke.ts +0 -14
- package/scripts/_dbg-release-smoke.mjs +0 -104
- package/scripts/_dbg-repo-setup-verify.mjs +0 -31
- package/scripts/_dbg-resolve-probe.ts +0 -6
- package/scripts/_dbg-restart-persist.mjs +0 -41
- package/scripts/_dbg-retention-test.ts +0 -25
- package/scripts/_dbg-rollback-mgr-audit.mjs +0 -169
- package/scripts/_dbg-rpg.mjs +0 -71
- package/scripts/_dbg-sc001-dispatch.mjs +0 -63
- package/scripts/_dbg-scenario-final-shot.mjs +0 -24
- package/scripts/_dbg-scenario-phase-e2.mjs +0 -75
- package/scripts/_dbg-scenario-phase-e3.mjs +0 -96
- package/scripts/_dbg-scenario-phase1.mjs +0 -90
- package/scripts/_dbg-scenario-phase2.mjs +0 -105
- package/scripts/_dbg-scenario-phase3-monitor.mjs +0 -48
- package/scripts/_dbg-scenario-phase3.mjs +0 -111
- package/scripts/_dbg-scene-polish-shot.mjs +0 -118
- package/scripts/_dbg-selring-probe.mjs +0 -47
- package/scripts/_dbg-settings-draft-probe.mjs +0 -39
- package/scripts/_dbg-settings-probe.mjs +0 -33
- package/scripts/_dbg-setup-e2e.mjs +0 -88
- package/scripts/_dbg-sideinfo.mjs +0 -101
- package/scripts/_dbg-sim-keeper.mjs +0 -100
- package/scripts/_dbg-splitter.mjs +0 -88
- package/scripts/_dbg-swatch-check.mjs +0 -10
- package/scripts/_dbg-task-cancel-probe.mjs +0 -66
- package/scripts/_dbg-team-drill.mjs +0 -173
- package/scripts/_dbg-town-alarm-e2e.mjs +0 -40
- package/scripts/_dbg-town-beauty-shots.mjs +0 -54
- package/scripts/_dbg-town-daq-shot.mjs +0 -26
- package/scripts/_dbg-town-full-e2e.mjs +0 -104
- package/scripts/_dbg-town-gate.mjs +0 -44
- package/scripts/_dbg-town-ins-probe.mjs +0 -37
- package/scripts/_dbg-town-perf.mjs +0 -50
- package/scripts/_dbg-town-polish-shots.mjs +0 -82
- package/scripts/_dbg-town-realtime.mjs +0 -42
- package/scripts/_dbg-town-shot.py +0 -25
- package/scripts/_dbg-town-shot3.mjs +0 -17
- package/scripts/_dbg-town-truth.mjs +0 -37
- package/scripts/_dbg-town-truth2.mjs +0 -27
- package/scripts/_dbg-transform-audit.mjs +0 -98
- package/scripts/_dbg-trend-expand-test.mjs +0 -38
- package/scripts/_dbg-twindaq-focus.mjs +0 -81
- package/scripts/_dbg-ui-polish-shot.mjs +0 -43
- package/scripts/_dbg-ui-polish-verify1.mjs +0 -92
- package/scripts/_dbg-ui-polish-verify2.mjs +0 -50
- package/scripts/_dbg-ui-polish-verify3.mjs +0 -51
- package/scripts/_dbg-ui-polish-verify4.mjs +0 -50
- package/scripts/_dbg-ui-shot.mjs +0 -26
- package/scripts/_dbg-ui-shots.mjs +0 -28
- package/scripts/_dbg-ui-survey.py +0 -52
- package/scripts/_dbg-unify-shot.mjs +0 -43
- package/scripts/_dbg-uplink-probe.mjs +0 -36
- package/scripts/_dbg-wizard-preview-shot.mjs +0 -58
- package/scripts/_dbg-wizard-ui-e2e.mjs +0 -93
- package/scripts/_dbg-ws-probe.mjs +0 -86
- package/scripts/_dbg-ws-shot2.mjs +0 -23
- package/scripts/_dbg-wsdot-sanity.mjs +0 -25
- package/scripts/_dev-stack.mjs +0 -46
- package/scripts/_http-driver-probe.mjs +0 -30
- package/scripts/_mqtt-driver-probe.mjs +0 -30
- package/scripts/_newdriver-rest-probe.mjs +0 -100
- package/scripts/_node-state-probe.mjs +0 -5
- package/scripts/_opcua-driver-probe.mjs +0 -31
- package/scripts/_rtu-debug.mjs +0 -41
- package/scripts/_rtu-direct.mjs +0 -6
- package/scripts/_rtu-driver-probe.mjs +0 -53
- package/scripts/_spike-pitui.mjs +0 -116
- package/scripts/_tmp-args-probe.mjs +0 -20
- package/scripts/_tmp-cyc-entry.mjs +0 -8
- package/scripts/_tmp-cyc-main.mjs +0 -5
- package/scripts/_tmp-cyc-mod.mjs +0 -2
- package/scripts/_tmp-cycle-a.mjs +0 -6
- package/scripts/_tmp-cycle-b.mjs +0 -2
- package/scripts/_tmp-cycle-probe.mjs +0 -4
- package/scripts/_tmp-entry-variant.mjs +0 -2
- package/scripts/_tmp-help-probe.mjs +0 -19
- package/scripts/_tmp-help-probe2.mjs +0 -2
- package/scripts/_tmp-trace-preload.mjs +0 -1
- package/scripts/_wizard-shots.mjs +0 -90
- package/scripts/acceptance-suite.py +0 -207
- package/scripts/aml-agent-bridge.ts +0 -230
- package/scripts/aml-industrial-loop.ts +0 -232
- package/scripts/build-film-devices.mjs +0 -227
- package/scripts/collab-live-test.py +0 -177
- package/scripts/debug-mcp-http.ts +0 -64
- package/scripts/demo-lead-worker.ts +0 -256
- package/scripts/demo-modes.ts +0 -415
- package/scripts/demo-omp-channel.ts +0 -135
- package/scripts/design-preflight.mjs +0 -223
- package/scripts/design-verify-templates.mjs +0 -110
- package/scripts/design-verify.mjs +0 -170
- package/scripts/dev-window.cmd +0 -6
- package/scripts/device-line-restore.mjs +0 -34
- package/scripts/diag-lead-status.ts +0 -101
- package/scripts/e2e-a2a-steer-live.mjs +0 -193
- package/scripts/e2e-dual-drive-comm.ts +0 -259
- package/scripts/e2e-full-scenario.ts +0 -321
- package/scripts/e2e-harness-consistency.ts +0 -204
- package/scripts/e2e-harness-provider-task.mjs +0 -126
- package/scripts/e2e-line-live.mjs +0 -144
- package/scripts/e2e-memory-persistence.ts +0 -320
- package/scripts/e2e-omp-modes.ts +0 -274
- package/scripts/e2e-omp-realtime.ts +0 -258
- package/scripts/e2e-plc-scenario.mjs +0 -292
- package/scripts/e2e-real-scenario.mjs +0 -466
- package/scripts/e2e-tab-close.mjs +0 -136
- package/scripts/e2e-token-ui.mjs +0 -149
- package/scripts/final-soup-run.py +0 -192
- package/scripts/final-soup-watch.py +0 -83
- package/scripts/i18n-codemod.mjs +0 -173
- package/scripts/i18n-fix-en.py +0 -28
- package/scripts/i18n-fix-en2.py +0 -31
- package/scripts/i18n-merge.mjs +0 -191
- package/scripts/migrate-local-time.mjs +0 -123
- package/scripts/omp-real-test.py +0 -328
- package/scripts/team-plugins-api-smoke.mjs +0 -149
- package/scripts/test-a2a-relay.mjs +0 -222
- package/scripts/test-aml-integration.ts +0 -159
- package/scripts/test-aml-job.ts +0 -174
- package/scripts/test-aml-unit.ts +0 -184
- package/scripts/test-api-client.ts +0 -108
- package/scripts/test-api-suite.mjs +0 -271
- package/scripts/test-block-consumption.mjs +0 -194
- package/scripts/test-cmd-render.mjs +0 -218
- package/scripts/test-collab-omp.mjs +0 -192
- package/scripts/test-config-precedence.ts +0 -124
- package/scripts/test-context-governor.ts +0 -176
- package/scripts/test-daq-frames.ts +0 -180
- package/scripts/test-daq-minio.ts +0 -77
- package/scripts/test-dedup-logic.ts +0 -132
- package/scripts/test-e2e-collaboration.ts +0 -262
- package/scripts/test-e2e-monitor.ts +0 -192
- package/scripts/test-event-history.ts +0 -112
- package/scripts/test-exec-modes.ts +0 -316
- package/scripts/test-fifo-realtime.mjs +0 -193
- package/scripts/test-final-e2e.mjs +0 -290
- package/scripts/test-goal-summary.ts +0 -202
- package/scripts/test-harness-liveness.ts +0 -109
- package/scripts/test-harness-terminal.ts +0 -164
- package/scripts/test-header-trail.mjs +0 -95
- package/scripts/test-hitl.ts +0 -360
- package/scripts/test-koda-restyle.mjs +0 -105
- package/scripts/test-lane-raw.ts +0 -67
- package/scripts/test-lanes-history-render.mjs +0 -138
- package/scripts/test-loop-omp.mjs +0 -154
- package/scripts/test-mdlite.ts +0 -53
- package/scripts/test-memory-brief-chronicle.ts +0 -180
- package/scripts/test-memory-rrf-mmr.ts +0 -114
- package/scripts/test-mock-collab.mjs +0 -226
- package/scripts/test-modern-render.mjs +0 -174
- package/scripts/test-omp-terminal.mjs +0 -187
- package/scripts/test-plugin-ext.ts +0 -173
- package/scripts/test-prompts-loader.ts +0 -56
- package/scripts/test-real-scenario.mjs +0 -290
- package/scripts/test-stream-render.ts +0 -37
- package/scripts/test-task-drawer.mjs +0 -204
- package/scripts/test-task-invariants.mjs +0 -169
- package/scripts/test-town-3d.mjs +0 -121
- package/scripts/test-town-layout.mjs +0 -200
- package/scripts/test-town-page.mjs +0 -136
- package/scripts/test-town-scene-math.ts +0 -169
- package/scripts/test-town-twin.mjs +0 -121
- package/scripts/test-town-upload.mjs +0 -89
- package/scripts/test-town-user-flow.mjs +0 -619
- package/scripts/test-town-world.mjs +0 -76
- package/scripts/test-town-wuwa.mjs +0 -198
- package/scripts/test-user-isolation.mjs +0 -193
- package/scripts/test-workshop-entries.ts +0 -370
- package/scripts/test-workspace-api.ts +0 -329
- package/scripts/test-ws-aep.mjs +0 -187
- package/scripts/test-ws-protocol.ts +0 -134
- package/scripts/town-demo-seed.mjs +0 -75
- package/scripts/town-scene-clear.mjs +0 -56
- package/scripts/verify-exec-modes-report.ts +0 -248
- package/scripts/verify-lead-mail.ts +0 -188
- package/scripts/verify-page-smoke.mjs +0 -87
- package/scripts/ws-test.mjs +0 -176
- package/scripts/ws-test.py +0 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{C as e,E as t,F as n,G as r,H as i,Ht as a,M as o,O as s,St as c,Ut as l,Wt as u,a as d,b as f,et as p,f as m,g as h,gt as g,h as _,j as v,lt as y,m as b,mt as x,nt as S,p as C,t as w,tt as T,w as E,x as D,yt as O,z as k}from"./BSCpFtzG.js";import{d as A}from"./-6OnbLFb.js";import{n as j}from"./B5S_UyaC.js";import{n as ee,t as M}from"./CbzsPO5H.js";import{t as te}from"./D8CqF0yy.js";import{n as ne}from"./BeIfu4N3.js";import{t as re}from"./DpojD719.js";import{t as ie}from"#entry";import{t as ae}from"./DoTdlVVe2.js";import{t as oe}from"./CUXCQXjG.js";import{t as se}from"./Lp7Ll94I.js";import{t as ce}from"./Bc0AmjfT.js";import{t as le}from"./ekuGmQ7R.js";var ue=function(e,t){return ue=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])},ue(e,t)};function N(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);ue(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var de=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),P=new(function(){function e(){this.browser=new de,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(P.wxa=!0,P.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?P.worker=!0:!P.hasGlobalWindow||`Deno`in window?(P.node=!0,P.svgSupported=!0):F(navigator.userAgent,P);function F(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);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}var fe=`12px sans-serif`,pe=20,me=100,he=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function ge(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-pe)/me}return t}var _e=ge(he),ve={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=ve.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=_e[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},ye=Ie([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),be=Ie([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),xe=Object.prototype.toString,Se=Array.prototype,Ce=Se.forEach,we=Se.filter,Te=Se.slice,Ee=Se.map,De=function(){}.constructor,Oe=De?De.prototype:null,ke=`__proto__`,Ae=2311;function je(){return Ae++}function Me(){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=xe.call(e);if(n===`[object Array]`){if(!rt(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=I(e[r])}}else if(be[n]){if(!rt(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!ye[n]&&!rt(e)&&!Ge(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==ke&&(t[o]=I(e[o]));return t}function L(e,t,n){if(!q(t)||!q(e))return n?I(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==ke){var i=e[r],a=t[r];q(a)&&q(i)&&!W(a)&&!W(i)&&!Ge(a)&&!Ge(i)&&!Ue(a)&&!Ue(i)&&!rt(a)&&!rt(i)?L(i,a,n):(n||!(r in e))&&(e[r]=I(t[r]))}return e}function R(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==ke&&(e[n]=t[n]);return e}function z(e,t,n){for(var r=Re(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 B(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 Ne(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}function Pe(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 z(e,t,n)}function Fe(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function V(e,t,n){if(e&&t){if(e.forEach&&e.forEach===Ce)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 H(e,t,n){if(!e)return[];if(!t)return Ze(e);if(e.map&&e.map===Ee)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 Ie(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 Le(e,t,n){if(!e)return[];if(!t)return Ze(e);if(e.filter&&e.filter===we)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 Re(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}function ze(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(Te.call(arguments)))}}var U=Oe&&G(Oe.bind)?Oe.call.bind(Oe.bind):ze;function Be(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(Te.call(arguments)))}}function W(e){return Array.isArray?Array.isArray(e):xe.call(e)===`[object Array]`}function G(e){return typeof e==`function`}function K(e){return typeof e==`string`}function Ve(e){return xe.call(e)===`[object String]`}function He(e){return typeof e==`number`}function q(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function Ue(e){return!!ye[xe.call(e)]}function We(e){return!!be[xe.call(e)]}function Ge(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Ke(e){return e.colorStops!=null}function qe(e){return e.image!=null}function Je(e){return e!==e}function Ye(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function J(e,t){return e??t}function Xe(e,t,n){return e??t??n}function Ze(e){var t=[...arguments].slice(1);return Te.apply(e,t)}function Qe(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 $e(e,t){if(!e)throw Error(t)}function et(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var tt=`__ec_primitive__`;function nt(e){e[tt]=!0}function rt(e){return e[tt]}var it=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 Re(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),at=typeof Map==`function`;function ot(){return at?new Map:new it}var st=function(){function e(t){var n=W(t);this.data=ot();var r=this;t instanceof e?t.each(i):t&&V(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}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 at?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Y(e){return new st(e)}function ct(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function lt(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&R(n,t),n}function ut(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function X(e,t){return e.hasOwnProperty(t)}function dt(){}var ft=180/Math.PI;function pt(e,t){return e??=0,t??=0,[e,t]}function mt(e){return[e[0],e[1]]}function ht(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function gt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function _t(e){return Math.sqrt(vt(e))}function vt(e){return e[0]*e[0]+e[1]*e[1]}function yt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function bt(e,t){var n=_t(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function xt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var St=xt;function Ct(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var wt=Ct;function Tt(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 Et(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 Dt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ot(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var kt=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),At=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 kt(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 kt(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 kt(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new kt(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new kt(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new kt(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),jt=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}(),Mt=Math.log(2);function Nt(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)/Mt);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]*Nt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Pt(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=Nt(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)*Nt(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 Ft=`___zrEVENTSAVED`,It=[];function Lt(e,t,n,r,i){return Rt(It,t,r,i,!0)&&Rt(e,n,It[0],It[1])}function Rt(e,t,n,r,i){if(t.getBoundingClientRect&&P.domSupported&&!Vt(t)){var a=t[Ft]||(t[Ft]={}),o=Bt(zt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function zt(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=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return n}function Bt(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?Pt(s,o):Pt(o,s))}function Vt(e){return e.nodeName.toUpperCase()===`CANVAS`}var Ht=/([&<>"'])/g,Ut={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Wt(e){return e==null?``:(e+``).replace(Ht,function(e,t){return Ut[t]})}var Gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Kt=[],qt=P.browser.firefox&&+P.browser.version.split(`.`)[0]<39;function Jt(e,t,n,r){return n||={},r?Yt(e,t,n):qt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Yt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Yt(e,t,n){if(P.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Vt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Rt(Kt,e,r,i)){n.zrX=Kt[0],n.zrY=Kt[1];return}}n.zrX=n.zrY=0}function Xt(e){return e||window.event}function Zt(e,t,n){if(t=Xt(t),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&&Jt(e,i,t,n)}else{Jt(e,t,t,n);var a=Qt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Gt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Qt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function $t(e,t,n,r){e.addEventListener(t,n,r)}function en(e,t,n,r){e.removeEventListener(t,n,r)}var tn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function nn(e){return e.which===2||e.which===3}var rn=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=Jt(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 sn)if(sn.hasOwnProperty(t)){var n=sn[t](this._track,e);if(n)return n}},e}();function an(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function on(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var sn={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=an(r)/an(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=on(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function cn(){return[1,0,0,1,0,0]}function ln(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function un(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 dn(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 fn(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 pn(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 mn(e,t,n){var r=n[0],i=n[1];return 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}function hn(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 Z=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}(),gn=Math.min,_n=Math.max,vn=new Z,yn=new Z,bn=new Z,xn=new Z,Sn=new Z,Cn=new Z,wn=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=gn(e.x,this.x),n=gn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?_n(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?_n(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){var t=this,n=e.width/t.width,r=e.height/t.height,i=cn();return fn(i,i,[-t.x,-t.y]),mn(i,i,[n,r]),fn(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,c=t.x,l=t.x+t.width,u=t.y,d=t.y+t.height,f=!(a<c||l<i||s<u||d<o);if(n){var p=1/0,m=0,h=Math.abs(a-c),g=Math.abs(l-i),_=Math.abs(s-u),v=Math.abs(d-o),y=Math.min(h,g),b=Math.min(_,v);a<c||l<i?y>m&&(m=y,h<g?Z.set(Cn,-h,0):Z.set(Cn,g,0)):y<p&&(p=y,h<g?Z.set(Sn,h,0):Z.set(Sn,-g,0)),s<u||d<o?b>m&&(m=b,_<v?Z.set(Cn,0,-_):Z.set(Cn,0,v)):y<p&&(p=y,_<v?Z.set(Sn,0,_):Z.set(Sn,0,-v))}return n&&Z.copy(n,f?Sn:Cn),f},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},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.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}vn.x=bn.x=n.x,vn.y=xn.y=n.y,yn.x=xn.x=n.x+n.width,yn.y=bn.y=n.y+n.height,vn.transform(r),xn.transform(r),yn.transform(r),bn.transform(r),t.x=gn(vn.x,yn.x,bn.x,xn.x),t.y=gn(vn.y,yn.y,bn.y,xn.y);var c=_n(vn.x,yn.x,bn.x,xn.x),l=_n(vn.y,yn.y,bn.y,xn.y);t.width=c-t.x,t.height=l-t.y},e}(),Tn=`silent`;function En(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:Dn}}function Dn(){tn(this.event)}var On=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(jt),kn=function(){function e(e,t){this.x=e,this.y=t}return e}(),An=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],jn=new wn(0,0,0,0),Mn=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new kn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new On,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new At(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(V(An,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=Fn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new kn(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 kn(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){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=En(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 kn(e,t);if(Pn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new wn(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)&&(jn.copy(u.getBoundingRect()),u.transform&&jn.applyTransform(u.transform),jn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Pn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new rn;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 kn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(jt);V([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Mn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Fn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||St(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Nn(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),r=r.__hostTarget||r.parent}return!i||Tn}return!1}function Pn(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=Nn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Tn)){t.target=o;break}}}function Fn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var In=32,Ln=7;function Rn(e){for(var t=0;e>=In;)t|=e&1,e>>=1;return e+t}function zn(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++;Bn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Bn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Vn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Hn(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=(c<<1)+1,c<=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=(c<<1)+1,c<=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 Un(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=(c<<1)+1,c<=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=(c<<1)+1,c<=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 Wn(e,t){var n=Ln,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Un(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Hn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Un(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Hn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Ln||m>=Ln);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===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=i-Un(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Hn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Ln||g>=Ln);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Gn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<In){a=zn(e,n,r,t),Vn(e,n,r,n+a,t);return}var o=Wn(e,t),s=Rn(i);do{if(a=zn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Vn(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 Kn=!1;function qn(){Kn||(Kn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Jn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Yn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jn}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,Gn(n,Jn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var c=o[s];e.__dirty&&(c.__dirty|=1),this._updateAndAddDisplayable(c,t,n)}e.__dirty=0}else{var l=e;t&&t.length?l.__clipPaths=t:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(qn(),l.z=0),isNaN(l.z2)&&(qn(),l.z2=0),isNaN(l.zlevel)&&(qn(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,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]);return}var r=B(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}(),Xn=P.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Zn={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**(-10*(e-1)))+2)},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,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):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?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Zn.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?Zn.bounceIn(e*2)*.5:Zn.bounceOut(e*2-1)*.5+.5}},Qn=Math.pow,$n=Math.sqrt,er=1e-8,tr=1e-4,nr=$n(3),rr=1/3,ir=pt(),ar=pt(),or=pt();function sr(e){return e>-er&&e<er}function cr(e){return e>er||e<-er}function lr(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 ur(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-t*2+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(sr(u)&&sr(d)){if(sr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(sr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=$n(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Qn(-y,rr):Qn(y,rr),b=b<0?-Qn(-b,rr):Qn(b,rr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*$n(u*u*u)),S=Math.acos(x)/3,C=$n(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+nr*Math.sin(S)))/(3*o),T=(-s+C*(w-nr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function fr(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(sr(o)){if(cr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(sr(u))i[0]=-a/(2*o);else if(u>0){var d=$n(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function pr(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 mr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ir[0]=c,ir[1]=l;for(var v=0;v<1;v+=.05)ar[0]=lr(e,n,i,o,v),ar[1]=lr(t,r,a,s,v),g=wt(ir,ar),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<tr);y++)m=d-f,h=d+f,ar[0]=lr(e,n,i,o,m),ar[1]=lr(t,r,a,s,m),g=wt(ar,ir),m>=0&&g<p?(d=m,p=g):(or[0]=lr(e,n,i,o,h),or[1]=lr(t,r,a,s,h),_=wt(or,ir),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=lr(e,n,i,o,d),u[1]=lr(t,r,a,s,d)),$n(p)}function hr(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=lr(e,n,i,o,m),g=lr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function gr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function _r(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function vr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(sr(a)){if(cr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(sr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=$n(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function yr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function br(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 xr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ir[0]=o,ir[1]=s;for(var f=0;f<1;f+=.05){ar[0]=gr(e,n,i,f),ar[1]=gr(t,r,a,f);var p=wt(ir,ar);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<tr);m++){var h=l-u,g=l+u;ar[0]=gr(e,n,i,h),ar[1]=gr(t,r,a,h);var p=wt(ar,ir);if(h>=0&&p<d)l=h,d=p;else{or[0]=gr(e,n,i,g),or[1]=gr(t,r,a,g);var _=wt(or,ir);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=gr(e,n,i,l),c[1]=gr(t,r,a,l)),$n(d)}function Sr(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=gr(e,n,i,f),m=gr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Cr=/cubic-bezier\(([0-9,\.e ]+)\)/;function wr(e){var t=e&&Cr.exec(e);if(t){var n=t[1].split(`,`),r=+et(n[0]),i=+et(n[1]),a=+et(n[2]),o=+et(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)&&lr(0,i,o,1,s[0])}}}var Tr=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||dt,this.ondestroy=e.ondestroy||dt,this.onrestart=e.onrestart||dt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}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){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=G(e)?e:Zn[e]||wr(e)},e}(),Er=function(){function e(e){this.value=e}return e}(),Dr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Er(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}(),Or=function(){function e(e){this._list=new Dr,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 Er(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}(),kr={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 Ar(e){return e=Math.round(e),e<0?0:e>255?255:e}function jr(e){return e<0?0:e>1?1:e}function Mr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ar(parseFloat(t)/100*255):Ar(parseInt(t,10))}function Nr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?jr(parseFloat(t)/100):jr(parseFloat(t))}function Pr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Fr(e,t,n){return e+(t-e)*n}function Ir(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Lr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Rr=new Or(20),zr=null;function Br(e,t){zr&&Lr(zr,t),zr=Rr.put(e,zr||t.slice())}function Vr(e,t){if(e){t||=[];var n=Rr.get(e);if(n)return Lr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in kr)return Lr(t,kr[r]),Br(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ir(t,0,0,0,1);return}return Ir(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Br(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ir(t,0,0,0,1);return}return Ir(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Br(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){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?Ir(t,+l[0],+l[1],+l[2],1):Ir(t,0,0,0,1);u=Nr(l.pop());case`rgb`:if(l.length>=3)return Ir(t,Mr(l[0]),Mr(l[1]),Mr(l[2]),l.length===3?u:Nr(l[3])),Br(e,t),t;Ir(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Ir(t,0,0,0,1);return}return l[3]=Nr(l[3]),Hr(l,t),Br(e,t),t;case`hsl`:if(l.length!==3){Ir(t,0,0,0,1);return}return Hr(l,t),Br(e,t),t;default:return}}Ir(t,0,0,0,1)}}function Hr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Nr(e[1]),i=Nr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Ir(t,Ar(Pr(o,a,n+1/3)*255),Ar(Pr(o,a,n)*255),Ar(Pr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ur(e,t){var n=Vr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Gr(n,n.length===4?`rgba`:`rgb`)}}function Wr(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=Vr(t[i]),s=Vr(t[a]),c=r-i,l=Gr([Ar(Fr(o[0],s[0],c)),Ar(Fr(o[1],s[1],c)),Ar(Fr(o[2],s[2],c)),jr(Fr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Gr(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 Kr(e,t){var n=Vr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var qr=new Or(100);function Jr(e){if(K(e)){var t=qr.get(e);return t||(t=Ur(e,-.1),qr.put(e,t)),t}if(Ke(e)){var n=R({},e);return n.colorStops=H(e.colorStops,function(e){return{offset:e.offset,color:Ur(e.color,-.1)}}),n}return e}function Yr(e){return e.type===`linear`}function Xr(e){return e.type===`radial`}(function(){return P.hasGlobalWindow&&G(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})();var Zr=Array.prototype.slice;function Qr(e,t,n){return(t-e)*n+e}function $r(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Qr(t[a],n[a],r);return e}function ei(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]=Qr(t[o][s],n[o][s],r)}return e}function ti(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ni(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 ri(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 ii(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]:Zr.call(i[s]))}for(var c=r[0]&&r[0].length,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 ai(e){if(Fe(e)){var t=e.length;if(Fe(e[0])){for(var n=[],r=0;r<t;r++)n.push(Zr.call(e[r]));return n}return Zr.call(e)}return e}function oi(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 si(e){return Fe(e&&e[0])?2:1}var ci=0,li=1,ui=2,di=3,fi=4,pi=5,mi=6;function hi(e){return e===fi||e===pi}function gi(e){return e===li||e===ui}var _i=[0,0,0,0],vi=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=mi,s=t;if(Fe(t)){var c=si(t);o=c,(c===1&&!He(t[0])||c===2&&!He(t[0][0]))&&(a=!0)}else if(He(t)&&!Je(t))o=ci;else if(K(t)){if(!isNaN(+t))o=ci;else{var l=Vr(t);l&&(s=l,o=di)}}else if(Ke(t)){var u=R({},s);u.colorStops=H(t.colorStops,function(e){return{offset:e.offset,color:Vr(e.color)}}),Yr(t)?o=fi:Xr(t)&&(o=pi),s=u}i===0?this.valType=o:(o!==this.valType||o===mi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=G(n)?n:Zn[n]||wr(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=gi(r),c=hi(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?ii(d,f,r):c&&ri(d.colorStops,f.colorStops))}if(!o&&r!==pi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===ci?n[l].additiveValue=n[l].value-p:r===di?n[l].additiveValue=ti([],n[l].value,p,-1):gi(r)&&(n[l].additiveValue=r===li?ti([],n[l].value,p,-1):ni([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===di,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?_i:e[s];if((gi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(gi(i))i===li?$r(g,f[r],p[r],h):ei(g,f[r],p[r],h);else if(hi(i)){var _=f[r],v=p[r],y=i===fi;e[s]={type:y?`linear`:`radial`,x:Qr(_.x,v.x,h),y:Qr(_.y,v.y,h),colorStops:H(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Qr(e.offset,n.offset,h),color:oi($r([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Qr(_.x2,v.x2,h),e[s].y2=Qr(_.y2,v.y2,h)):e[s].r=Qr(_.r,v.r,h)}else if(c)$r(g,f[r],p[r],h),n||(e[s]=oi(g));else{var b=Qr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===ci?e[n]=e[n]+r:t===di?(Vr(e[n],_i),ti(_i,_i,r,1),e[n]=oi(_i)):t===li?ti(e[n],e[n],r,1):t===ui&&ni(e[n],e[n],r,1)},e}(),yi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Me(`Can' use additive animation on looped animation.`);return}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,Re(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 vi(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===di&&c&&(c=oi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ai(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ai(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 Tr({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(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var 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 H(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())}for(var o=!0,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]=ai(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=Re(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 bi(){return new Date().getTime()}var xi=function(e){N(t,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 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=bi()-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):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;function t(){e._running&&(Xn(t),!e._paused&&e.update())}Xn(t)},t.prototype.start=function(){this._running||(this._time=bi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=bi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=bi()-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 yi(e,t.loop);return this.addAnimator(n),n},t}(jt),Si=300,Ci=P.domSupported,wi=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:H(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Ti={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ei=!1;function Di(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Oi(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ki(e){e&&(e.zrByTouch=!0)}function Ai(e,t){return Zt(e.dom,new Mi(e,t),!0)}function ji(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 Mi=function(){function e(e,t){this.stopPropagation=dt,this.stopImmediatePropagation=dt,this.preventDefault=dt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Ni={mousedown:function(e){e=Zt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Zt(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=Zt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Zt(this.dom,e);var t=e.toElement||e.relatedTarget;ji(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ei=!0,e=Zt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ei||(e=Zt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Zt(this.dom,e),ki(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Ni.mousemove.call(this,e),Ni.mousedown.call(this,e)},touchmove:function(e){e=Zt(this.dom,e),ki(e),this.handler.processGesture(e,`change`),Ni.mousemove.call(this,e)},touchend:function(e){e=Zt(this.dom,e),ki(e),this.handler.processGesture(e,`end`),Ni.mouseup.call(this,e),new Date-+this.__lastTouchMoment<Si&&Ni.click.call(this,e)},pointerdown:function(e){Ni.mousedown.call(this,e)},pointermove:function(e){Di(e)||Ni.mousemove.call(this,e)},pointerup:function(e){Ni.mouseup.call(this,e)},pointerout:function(e){Di(e)||Ni.mouseout.call(this,e)}};V([`click`,`dblclick`,`contextmenu`],function(e){Ni[e]=function(t){t=Zt(this.dom,t),this.trigger(e,t)}});var Pi={pointermove:function(e){Di(e)||Pi.mousemove.call(this,e)},pointerup:function(e){Pi.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 Fi(e,t){var n=t.domHandlers;P.pointerEventsSupported?V(wi.pointer,function(r){Li(t,r,function(t){n[r].call(e,t)})}):(P.touchEventsSupported&&V(wi.touch,function(r){Li(t,r,function(i){n[r].call(e,i),Oi(t)})}),V(wi.mouse,function(r){Li(t,r,function(i){i=Xt(i),t.touching||n[r].call(e,i)})}))}function Ii(e,t){P.pointerEventsSupported?V(Ti.pointer,n):P.touchEventsSupported||V(Ti.mouse,n);function n(n){function r(r){r=Xt(r),ji(e,r.target)||(r=Ai(e,r),t.domHandlers[n].call(e,r))}Li(t,n,r,{capture:!0})}}function Li(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,$t(e.domTarget,t,n,r)}function Ri(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&en(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var zi=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Bi=function(e){N(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new zi(t,Ni),Ci&&(r._globalHandlerScope=new zi(document,Pi)),Fi(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ri(this._localHandlerScope),Ci&&Ri(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,Ci&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Ii(this,t):Ri(t)}},t}(jt),Vi=1;P.hasGlobalWindow&&(Vi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hi=Vi,Ui=.4,Wi=`#333`,Gi=`#ccc`,Ki=`#eee`,qi=ln,Ji=5e-5;function Yi(e){return e>Ji||e<-Ji}var Xi=[],Zi=[],Qi=cn(),$i=Math.abs,ea=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},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 Yi(this.rotation)||Yi(this.x)||Yi(this.y)||Yi(this.scaleX-1)||Yi(this.scaleY-1)||Yi(this.skewX)||Yi(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(qi(n),this.invTransform=null);return}n||=cn(),t?this.getLocalTransform(n):qi(n),e&&(t?dn(n,e,n):un(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Xi);var n=Xi[0]<0?-1:1,r=Xi[1]<0?-1:1,i=((Xi[0]-n)*t+n)/Xi[0]||0,a=((Xi[1]-r)*t+r)/Xi[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||cn(),hn(this.invTransform,e)},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||cn(),dn(Zi,e.invTransform,t),t=Zi);var n=this.originX,r=this.originY;(n||r)&&(Qi[4]=n,Qi[5]=r,dn(Zi,t,Qi),Zi[4]-=n,Zi[5]-=r,t=Zi),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&&Et(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Et(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&$i(e[0]-1)>1e-10&&$i(e[3]-1)>1e-10?Math.sqrt($i(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){na(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&&pn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),ta=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function na(e,t){for(var n=0;n<ta.length;n++){var r=ta[n];e[r]=t[r]}}var ra={};function ia(e,t){t||=`12px sans-serif`;var n=ra[t];n||=ra[t]=new Or(500);var r=n.get(e);return r??(r=ve.measureText(e,t).width,n.put(e,r)),r}function aa(e,t,n,r){var i=ia(e,t),a=la(t);return new wn(sa(0,i,n),ca(0,a,r),i,a)}function oa(e,t,n,r){var i=((e||``)+``).split(`
|
|
1
|
+
import{St as e}from"./BU83-NnX.js";import{$ as t,A as n,C as r,D as i,Ht as a,P as o,R as s,S as c,T as l,Ut as u,V as d,Vt as f,W as p,b as m,ct as h,d as g,et as _,f as v,h as y,ht as b,i as x,j as S,m as C,p as w,pt as T,tt as E,vt as D,xt as O,y as k}from"./CSkxz2NX.js";import{d as A}from"./BJHKLJJU.js";import{n as j}from"./DtYHUi5Z.js";import{n as ee,t as M}from"./BzHEilTt.js";import{t as te}from"./BHA40aHa.js";import{n as ne}from"./KZQX7xoM.js";import{t as re}from"./D9Oidm5I.js";import{t as ie}from"./BDNMzG2s2.js";import{t as ae}from"./BN6iuJEg2.js";import{t as oe}from"./CM12FuB42.js";import{t as se}from"./D1YDxZpZ.js";import{t as ce}from"./D20Yamr4.js";import{t as le}from"./zq5t1vyX.js";var ue=function(e,t){return ue=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])},ue(e,t)};function N(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);ue(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var de=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),P=new(function(){function e(){this.browser=new de,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(P.wxa=!0,P.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?P.worker=!0:!P.hasGlobalWindow||`Deno`in window?(P.node=!0,P.svgSupported=!0):F(navigator.userAgent,P);function F(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);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}var fe=`12px sans-serif`,pe=20,me=100,he=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function ge(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-pe)/me}return t}var _e=ge(he),ve={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=ve.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=_e[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},ye=Ie([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),be=Ie([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),xe=Object.prototype.toString,Se=Array.prototype,Ce=Se.forEach,we=Se.filter,Te=Se.slice,Ee=Se.map,De=function(){}.constructor,Oe=De?De.prototype:null,ke=`__proto__`,Ae=2311;function je(){return Ae++}function Me(){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=xe.call(e);if(n===`[object Array]`){if(!rt(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=I(e[r])}}else if(be[n]){if(!rt(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!ye[n]&&!rt(e)&&!Ge(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==ke&&(t[o]=I(e[o]));return t}function L(e,t,n){if(!q(t)||!q(e))return n?I(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==ke){var i=e[r],a=t[r];q(a)&&q(i)&&!W(a)&&!W(i)&&!Ge(a)&&!Ge(i)&&!Ue(a)&&!Ue(i)&&!rt(a)&&!rt(i)?L(i,a,n):(n||!(r in e))&&(e[r]=I(t[r]))}return e}function R(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==ke&&(e[n]=t[n]);return e}function z(e,t,n){for(var r=Re(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 B(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 Ne(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}function Pe(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 z(e,t,n)}function Fe(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function V(e,t,n){if(e&&t){if(e.forEach&&e.forEach===Ce)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 H(e,t,n){if(!e)return[];if(!t)return Ze(e);if(e.map&&e.map===Ee)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 Ie(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 Le(e,t,n){if(!e)return[];if(!t)return Ze(e);if(e.filter&&e.filter===we)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 Re(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}function ze(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(Te.call(arguments)))}}var U=Oe&&G(Oe.bind)?Oe.call.bind(Oe.bind):ze;function Be(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(Te.call(arguments)))}}function W(e){return Array.isArray?Array.isArray(e):xe.call(e)===`[object Array]`}function G(e){return typeof e==`function`}function K(e){return typeof e==`string`}function Ve(e){return xe.call(e)===`[object String]`}function He(e){return typeof e==`number`}function q(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function Ue(e){return!!ye[xe.call(e)]}function We(e){return!!be[xe.call(e)]}function Ge(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Ke(e){return e.colorStops!=null}function qe(e){return e.image!=null}function Je(e){return e!==e}function Ye(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function J(e,t){return e??t}function Xe(e,t,n){return e??t??n}function Ze(e){var t=[...arguments].slice(1);return Te.apply(e,t)}function Qe(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 $e(e,t){if(!e)throw Error(t)}function et(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var tt=`__ec_primitive__`;function nt(e){e[tt]=!0}function rt(e){return e[tt]}var it=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 Re(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),at=typeof Map==`function`;function ot(){return at?new Map:new it}var st=function(){function e(t){var n=W(t);this.data=ot();var r=this;t instanceof e?t.each(i):t&&V(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}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 at?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Y(e){return new st(e)}function ct(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function lt(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&R(n,t),n}function ut(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function X(e,t){return e.hasOwnProperty(t)}function dt(){}var ft=180/Math.PI;function pt(e,t){return e??=0,t??=0,[e,t]}function mt(e){return[e[0],e[1]]}function ht(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function gt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function _t(e){return Math.sqrt(vt(e))}function vt(e){return e[0]*e[0]+e[1]*e[1]}function yt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function bt(e,t){var n=_t(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function xt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var St=xt;function Ct(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var wt=Ct;function Tt(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 Et(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 Dt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ot(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var kt=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),At=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 kt(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 kt(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 kt(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new kt(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new kt(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new kt(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),jt=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}(),Mt=Math.log(2);function Nt(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)/Mt);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]*Nt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Pt(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=Nt(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)*Nt(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 Ft=`___zrEVENTSAVED`,It=[];function Lt(e,t,n,r,i){return Rt(It,t,r,i,!0)&&Rt(e,n,It[0],It[1])}function Rt(e,t,n,r,i){if(t.getBoundingClientRect&&P.domSupported&&!Vt(t)){var a=t[Ft]||(t[Ft]={}),o=Bt(zt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function zt(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=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return n}function Bt(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?Pt(s,o):Pt(o,s))}function Vt(e){return e.nodeName.toUpperCase()===`CANVAS`}var Ht=/([&<>"'])/g,Ut={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Wt(e){return e==null?``:(e+``).replace(Ht,function(e,t){return Ut[t]})}var Gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Kt=[],qt=P.browser.firefox&&+P.browser.version.split(`.`)[0]<39;function Jt(e,t,n,r){return n||={},r?Yt(e,t,n):qt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Yt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Yt(e,t,n){if(P.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Vt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Rt(Kt,e,r,i)){n.zrX=Kt[0],n.zrY=Kt[1];return}}n.zrX=n.zrY=0}function Xt(e){return e||window.event}function Zt(e,t,n){if(t=Xt(t),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&&Jt(e,i,t,n)}else{Jt(e,t,t,n);var a=Qt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Gt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Qt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function $t(e,t,n,r){e.addEventListener(t,n,r)}function en(e,t,n,r){e.removeEventListener(t,n,r)}var tn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function nn(e){return e.which===2||e.which===3}var rn=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=Jt(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 sn)if(sn.hasOwnProperty(t)){var n=sn[t](this._track,e);if(n)return n}},e}();function an(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function on(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var sn={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=an(r)/an(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=on(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function cn(){return[1,0,0,1,0,0]}function ln(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function un(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 dn(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 fn(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 pn(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 mn(e,t,n){var r=n[0],i=n[1];return 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}function hn(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 Z=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}(),gn=Math.min,_n=Math.max,vn=new Z,yn=new Z,bn=new Z,xn=new Z,Sn=new Z,Cn=new Z,wn=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=gn(e.x,this.x),n=gn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?_n(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?_n(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){var t=this,n=e.width/t.width,r=e.height/t.height,i=cn();return fn(i,i,[-t.x,-t.y]),mn(i,i,[n,r]),fn(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,c=t.x,l=t.x+t.width,u=t.y,d=t.y+t.height,f=!(a<c||l<i||s<u||d<o);if(n){var p=1/0,m=0,h=Math.abs(a-c),g=Math.abs(l-i),_=Math.abs(s-u),v=Math.abs(d-o),y=Math.min(h,g),b=Math.min(_,v);a<c||l<i?y>m&&(m=y,h<g?Z.set(Cn,-h,0):Z.set(Cn,g,0)):y<p&&(p=y,h<g?Z.set(Sn,h,0):Z.set(Sn,-g,0)),s<u||d<o?b>m&&(m=b,_<v?Z.set(Cn,0,-_):Z.set(Cn,0,v)):y<p&&(p=y,_<v?Z.set(Sn,0,_):Z.set(Sn,0,-v))}return n&&Z.copy(n,f?Sn:Cn),f},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},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.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}vn.x=bn.x=n.x,vn.y=xn.y=n.y,yn.x=xn.x=n.x+n.width,yn.y=bn.y=n.y+n.height,vn.transform(r),xn.transform(r),yn.transform(r),bn.transform(r),t.x=gn(vn.x,yn.x,bn.x,xn.x),t.y=gn(vn.y,yn.y,bn.y,xn.y);var c=_n(vn.x,yn.x,bn.x,xn.x),l=_n(vn.y,yn.y,bn.y,xn.y);t.width=c-t.x,t.height=l-t.y},e}(),Tn=`silent`;function En(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:Dn}}function Dn(){tn(this.event)}var On=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(jt),kn=function(){function e(e,t){this.x=e,this.y=t}return e}(),An=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],jn=new wn(0,0,0,0),Mn=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new kn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new On,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new At(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(V(An,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=Fn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new kn(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 kn(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){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=En(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 kn(e,t);if(Pn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new wn(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)&&(jn.copy(u.getBoundingRect()),u.transform&&jn.applyTransform(u.transform),jn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Pn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new rn;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 kn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(jt);V([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Mn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Fn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||St(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Nn(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),r=r.__hostTarget||r.parent}return!i||Tn}return!1}function Pn(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=Nn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Tn)){t.target=o;break}}}function Fn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var In=32,Ln=7;function Rn(e){for(var t=0;e>=In;)t|=e&1,e>>=1;return e+t}function zn(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++;Bn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Bn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Vn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Hn(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=(c<<1)+1,c<=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=(c<<1)+1,c<=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 Un(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=(c<<1)+1,c<=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=(c<<1)+1,c<=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 Wn(e,t){var n=Ln,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Un(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Hn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Un(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Hn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Ln||m>=Ln);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===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=i-Un(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Hn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Ln||g>=Ln);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Gn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<In){a=zn(e,n,r,t),Vn(e,n,r,n+a,t);return}var o=Wn(e,t),s=Rn(i);do{if(a=zn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Vn(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 Kn=!1;function qn(){Kn||(Kn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Jn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Yn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jn}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,Gn(n,Jn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var c=o[s];e.__dirty&&(c.__dirty|=1),this._updateAndAddDisplayable(c,t,n)}e.__dirty=0}else{var l=e;t&&t.length?l.__clipPaths=t:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(qn(),l.z=0),isNaN(l.z2)&&(qn(),l.z2=0),isNaN(l.zlevel)&&(qn(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,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]);return}var r=B(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}(),Xn=P.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Zn={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**(-10*(e-1)))+2)},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,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):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?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Zn.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?Zn.bounceIn(e*2)*.5:Zn.bounceOut(e*2-1)*.5+.5}},Qn=Math.pow,$n=Math.sqrt,er=1e-8,tr=1e-4,nr=$n(3),rr=1/3,ir=pt(),ar=pt(),or=pt();function sr(e){return e>-er&&e<er}function cr(e){return e>er||e<-er}function lr(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 ur(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-t*2+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(sr(u)&&sr(d)){if(sr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(sr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=$n(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Qn(-y,rr):Qn(y,rr),b=b<0?-Qn(-b,rr):Qn(b,rr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*$n(u*u*u)),S=Math.acos(x)/3,C=$n(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+nr*Math.sin(S)))/(3*o),T=(-s+C*(w-nr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function fr(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(sr(o)){if(cr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(sr(u))i[0]=-a/(2*o);else if(u>0){var d=$n(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function pr(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 mr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ir[0]=c,ir[1]=l;for(var v=0;v<1;v+=.05)ar[0]=lr(e,n,i,o,v),ar[1]=lr(t,r,a,s,v),g=wt(ir,ar),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<tr);y++)m=d-f,h=d+f,ar[0]=lr(e,n,i,o,m),ar[1]=lr(t,r,a,s,m),g=wt(ar,ir),m>=0&&g<p?(d=m,p=g):(or[0]=lr(e,n,i,o,h),or[1]=lr(t,r,a,s,h),_=wt(or,ir),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=lr(e,n,i,o,d),u[1]=lr(t,r,a,s,d)),$n(p)}function hr(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=lr(e,n,i,o,m),g=lr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function gr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function _r(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function vr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(sr(a)){if(cr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(sr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=$n(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function yr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function br(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 xr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ir[0]=o,ir[1]=s;for(var f=0;f<1;f+=.05){ar[0]=gr(e,n,i,f),ar[1]=gr(t,r,a,f);var p=wt(ir,ar);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<tr);m++){var h=l-u,g=l+u;ar[0]=gr(e,n,i,h),ar[1]=gr(t,r,a,h);var p=wt(ar,ir);if(h>=0&&p<d)l=h,d=p;else{or[0]=gr(e,n,i,g),or[1]=gr(t,r,a,g);var _=wt(or,ir);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=gr(e,n,i,l),c[1]=gr(t,r,a,l)),$n(d)}function Sr(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=gr(e,n,i,f),m=gr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Cr=/cubic-bezier\(([0-9,\.e ]+)\)/;function wr(e){var t=e&&Cr.exec(e);if(t){var n=t[1].split(`,`),r=+et(n[0]),i=+et(n[1]),a=+et(n[2]),o=+et(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)&&lr(0,i,o,1,s[0])}}}var Tr=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||dt,this.ondestroy=e.ondestroy||dt,this.onrestart=e.onrestart||dt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}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){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=G(e)?e:Zn[e]||wr(e)},e}(),Er=function(){function e(e){this.value=e}return e}(),Dr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Er(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}(),Or=function(){function e(e){this._list=new Dr,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 Er(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}(),kr={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 Ar(e){return e=Math.round(e),e<0?0:e>255?255:e}function jr(e){return e<0?0:e>1?1:e}function Mr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ar(parseFloat(t)/100*255):Ar(parseInt(t,10))}function Nr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?jr(parseFloat(t)/100):jr(parseFloat(t))}function Pr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Fr(e,t,n){return e+(t-e)*n}function Ir(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Lr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Rr=new Or(20),zr=null;function Br(e,t){zr&&Lr(zr,t),zr=Rr.put(e,zr||t.slice())}function Vr(e,t){if(e){t||=[];var n=Rr.get(e);if(n)return Lr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in kr)return Lr(t,kr[r]),Br(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ir(t,0,0,0,1);return}return Ir(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Br(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ir(t,0,0,0,1);return}return Ir(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Br(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){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?Ir(t,+l[0],+l[1],+l[2],1):Ir(t,0,0,0,1);u=Nr(l.pop());case`rgb`:if(l.length>=3)return Ir(t,Mr(l[0]),Mr(l[1]),Mr(l[2]),l.length===3?u:Nr(l[3])),Br(e,t),t;Ir(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Ir(t,0,0,0,1);return}return l[3]=Nr(l[3]),Hr(l,t),Br(e,t),t;case`hsl`:if(l.length!==3){Ir(t,0,0,0,1);return}return Hr(l,t),Br(e,t),t;default:return}}Ir(t,0,0,0,1)}}function Hr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Nr(e[1]),i=Nr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Ir(t,Ar(Pr(o,a,n+1/3)*255),Ar(Pr(o,a,n)*255),Ar(Pr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ur(e,t){var n=Vr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Gr(n,n.length===4?`rgba`:`rgb`)}}function Wr(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=Vr(t[i]),s=Vr(t[a]),c=r-i,l=Gr([Ar(Fr(o[0],s[0],c)),Ar(Fr(o[1],s[1],c)),Ar(Fr(o[2],s[2],c)),jr(Fr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Gr(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 Kr(e,t){var n=Vr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var qr=new Or(100);function Jr(e){if(K(e)){var t=qr.get(e);return t||(t=Ur(e,-.1),qr.put(e,t)),t}if(Ke(e)){var n=R({},e);return n.colorStops=H(e.colorStops,function(e){return{offset:e.offset,color:Ur(e.color,-.1)}}),n}return e}function Yr(e){return e.type===`linear`}function Xr(e){return e.type===`radial`}(function(){return P.hasGlobalWindow&&G(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})();var Zr=Array.prototype.slice;function Qr(e,t,n){return(t-e)*n+e}function $r(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Qr(t[a],n[a],r);return e}function ei(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]=Qr(t[o][s],n[o][s],r)}return e}function ti(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ni(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 ri(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 ii(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]:Zr.call(i[s]))}for(var c=r[0]&&r[0].length,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 ai(e){if(Fe(e)){var t=e.length;if(Fe(e[0])){for(var n=[],r=0;r<t;r++)n.push(Zr.call(e[r]));return n}return Zr.call(e)}return e}function oi(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 si(e){return Fe(e&&e[0])?2:1}var ci=0,li=1,ui=2,di=3,fi=4,pi=5,mi=6;function hi(e){return e===fi||e===pi}function gi(e){return e===li||e===ui}var _i=[0,0,0,0],vi=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=mi,s=t;if(Fe(t)){var c=si(t);o=c,(c===1&&!He(t[0])||c===2&&!He(t[0][0]))&&(a=!0)}else if(He(t)&&!Je(t))o=ci;else if(K(t)){if(!isNaN(+t))o=ci;else{var l=Vr(t);l&&(s=l,o=di)}}else if(Ke(t)){var u=R({},s);u.colorStops=H(t.colorStops,function(e){return{offset:e.offset,color:Vr(e.color)}}),Yr(t)?o=fi:Xr(t)&&(o=pi),s=u}i===0?this.valType=o:(o!==this.valType||o===mi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=G(n)?n:Zn[n]||wr(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=gi(r),c=hi(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?ii(d,f,r):c&&ri(d.colorStops,f.colorStops))}if(!o&&r!==pi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===ci?n[l].additiveValue=n[l].value-p:r===di?n[l].additiveValue=ti([],n[l].value,p,-1):gi(r)&&(n[l].additiveValue=r===li?ti([],n[l].value,p,-1):ni([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===di,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?_i:e[s];if((gi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(gi(i))i===li?$r(g,f[r],p[r],h):ei(g,f[r],p[r],h);else if(hi(i)){var _=f[r],v=p[r],y=i===fi;e[s]={type:y?`linear`:`radial`,x:Qr(_.x,v.x,h),y:Qr(_.y,v.y,h),colorStops:H(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Qr(e.offset,n.offset,h),color:oi($r([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Qr(_.x2,v.x2,h),e[s].y2=Qr(_.y2,v.y2,h)):e[s].r=Qr(_.r,v.r,h)}else if(c)$r(g,f[r],p[r],h),n||(e[s]=oi(g));else{var b=Qr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===ci?e[n]=e[n]+r:t===di?(Vr(e[n],_i),ti(_i,_i,r,1),e[n]=oi(_i)):t===li?ti(e[n],e[n],r,1):t===ui&&ni(e[n],e[n],r,1)},e}(),yi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Me(`Can' use additive animation on looped animation.`);return}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,Re(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 vi(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===di&&c&&(c=oi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ai(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ai(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 Tr({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(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var 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 H(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())}for(var o=!0,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]=ai(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=Re(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 bi(){return new Date().getTime()}var xi=function(e){N(t,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 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=bi()-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):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;function t(){e._running&&(Xn(t),!e._paused&&e.update())}Xn(t)},t.prototype.start=function(){this._running||(this._time=bi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=bi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=bi()-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 yi(e,t.loop);return this.addAnimator(n),n},t}(jt),Si=300,Ci=P.domSupported,wi=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:H(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Ti={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ei=!1;function Di(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Oi(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ki(e){e&&(e.zrByTouch=!0)}function Ai(e,t){return Zt(e.dom,new Mi(e,t),!0)}function ji(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 Mi=function(){function e(e,t){this.stopPropagation=dt,this.stopImmediatePropagation=dt,this.preventDefault=dt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Ni={mousedown:function(e){e=Zt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Zt(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=Zt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Zt(this.dom,e);var t=e.toElement||e.relatedTarget;ji(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ei=!0,e=Zt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ei||(e=Zt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Zt(this.dom,e),ki(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Ni.mousemove.call(this,e),Ni.mousedown.call(this,e)},touchmove:function(e){e=Zt(this.dom,e),ki(e),this.handler.processGesture(e,`change`),Ni.mousemove.call(this,e)},touchend:function(e){e=Zt(this.dom,e),ki(e),this.handler.processGesture(e,`end`),Ni.mouseup.call(this,e),new Date-+this.__lastTouchMoment<Si&&Ni.click.call(this,e)},pointerdown:function(e){Ni.mousedown.call(this,e)},pointermove:function(e){Di(e)||Ni.mousemove.call(this,e)},pointerup:function(e){Ni.mouseup.call(this,e)},pointerout:function(e){Di(e)||Ni.mouseout.call(this,e)}};V([`click`,`dblclick`,`contextmenu`],function(e){Ni[e]=function(t){t=Zt(this.dom,t),this.trigger(e,t)}});var Pi={pointermove:function(e){Di(e)||Pi.mousemove.call(this,e)},pointerup:function(e){Pi.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 Fi(e,t){var n=t.domHandlers;P.pointerEventsSupported?V(wi.pointer,function(r){Li(t,r,function(t){n[r].call(e,t)})}):(P.touchEventsSupported&&V(wi.touch,function(r){Li(t,r,function(i){n[r].call(e,i),Oi(t)})}),V(wi.mouse,function(r){Li(t,r,function(i){i=Xt(i),t.touching||n[r].call(e,i)})}))}function Ii(e,t){P.pointerEventsSupported?V(Ti.pointer,n):P.touchEventsSupported||V(Ti.mouse,n);function n(n){function r(r){r=Xt(r),ji(e,r.target)||(r=Ai(e,r),t.domHandlers[n].call(e,r))}Li(t,n,r,{capture:!0})}}function Li(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,$t(e.domTarget,t,n,r)}function Ri(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&en(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var zi=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Bi=function(e){N(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new zi(t,Ni),Ci&&(r._globalHandlerScope=new zi(document,Pi)),Fi(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ri(this._localHandlerScope),Ci&&Ri(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,Ci&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Ii(this,t):Ri(t)}},t}(jt),Vi=1;P.hasGlobalWindow&&(Vi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hi=Vi,Ui=.4,Wi=`#333`,Gi=`#ccc`,Ki=`#eee`,qi=ln,Ji=5e-5;function Yi(e){return e>Ji||e<-Ji}var Xi=[],Zi=[],Qi=cn(),$i=Math.abs,ea=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},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 Yi(this.rotation)||Yi(this.x)||Yi(this.y)||Yi(this.scaleX-1)||Yi(this.scaleY-1)||Yi(this.skewX)||Yi(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(qi(n),this.invTransform=null);return}n||=cn(),t?this.getLocalTransform(n):qi(n),e&&(t?dn(n,e,n):un(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Xi);var n=Xi[0]<0?-1:1,r=Xi[1]<0?-1:1,i=((Xi[0]-n)*t+n)/Xi[0]||0,a=((Xi[1]-r)*t+r)/Xi[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||cn(),hn(this.invTransform,e)},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||cn(),dn(Zi,e.invTransform,t),t=Zi);var n=this.originX,r=this.originY;(n||r)&&(Qi[4]=n,Qi[5]=r,dn(Zi,t,Qi),Zi[4]-=n,Zi[5]-=r,t=Zi),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&&Et(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Et(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&$i(e[0]-1)>1e-10&&$i(e[3]-1)>1e-10?Math.sqrt($i(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){na(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&&pn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),ta=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function na(e,t){for(var n=0;n<ta.length;n++){var r=ta[n];e[r]=t[r]}}var ra={};function ia(e,t){t||=`12px sans-serif`;var n=ra[t];n||=ra[t]=new Or(500);var r=n.get(e);return r??(r=ve.measureText(e,t).width,n.put(e,r)),r}function aa(e,t,n,r){var i=ia(e,t),a=la(t);return new wn(sa(0,i,n),ca(0,a,r),i,a)}function oa(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
2
|
`);if(i.length===1)return aa(i[0],t,n,r);for(var a=new wn(0,0,0,0),o=0;o<i.length;o++){var s=aa(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function sa(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function ca(e,t,n){return n===`middle`?e-=t/2:n===`bottom`&&(e-=t),e}function la(e){return ia(`国`,e)}function ua(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function da(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+=ua(r[0],n.width),l+=ua(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||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var fa=`__zr_normal__`,pa=ta.concat([`ignore`]),ma=Ie(ta,function(e,t){return e[t]=!0,e},{ignore:!1}),ha={},ga=new wn(0,0,0,0),_a=function(){function e(e){this.id=je(),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;if(i.copyTransform(t),n.position!=null){var l=ga;n.layoutRect?l.copy(n.layoutRect):l.copy(this.getBoundingRect()),r||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ha,n,l):da(ha,n,l),i.x=ha.x,i.y=ha.y,a=ha.align,o=ha.verticalAlign;var u=n.origin;if(u&&n.rotation!=null){var d=void 0,f=void 0;u===`center`?(d=l.width*.5,f=l.height*.5):(d=ua(u[0],l.width),f=ua(u[1],l.height)),c=!0,i.originX=-i.x+d+(r?0:l.x),i.originY=-i.y+f+(r?0:l.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],c||(i.originX=-p[0],i.originY=-p[1]));var m=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,h=this._innerTextDefaultStyle||={},g=void 0,_=void 0,v=void 0;m&&this.canBeInsideText()?(g=n.insideFill,_=n.insideStroke,(g==null||g===`auto`)&&(g=this.getInsideTextFill()),(_==null||_===`auto`)&&(_=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,_=n.outsideStroke,(g==null||g===`auto`)&&(g=this.getOutsideFill()),(_==null||_===`auto`)&&(_=this.getOutsideStroke(g),v=!0)),g||=`#000`,(g!==h.fill||_!==h.stroke||v!==h.autoStroke||a!==h.align||o!==h.verticalAlign)&&(s=!0,h.fill=g,h.stroke=_,h.autoStroke=v,h.align=a,h.verticalAlign=o,t.setDefaultTextStyle(h)),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()?Gi:Wi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Vr(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,Gr(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||{},R(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(q(e))for(var n=Re(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,pa)},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(fa,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===fa;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(B(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){Me(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{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(var 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=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},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=B(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=B(r,e),a=B(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];R(t,i),i.textConfig&&(n||={},R(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=R({},r?this.textConfig:n.textConfig),R(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<pa.length;l++){var u=pa[l],d=i&&ma[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(var 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 ea,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},R(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._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},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 yi(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=B(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?o.stop(t):i.push(o)}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;t.type=`element`,t.name=``,t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});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&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();Pe(_a,jt),Pe(_a,ea);function va(e,t,n,r,i){n||={};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--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,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 ya(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ba(e){return Fe(e[0])}function xa(e,t,n){if(Fe(t[n])){if(Fe(e[n])||(e[n]=[]),We(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ya(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ba(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?ya(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else ya(a,i,o);a.length=i.length}}else e[n]=t[n]}function Sa(e,t){return e===t||Fe(e)&&Fe(t)&&Ca(e,t)}function Ca(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}function wa(e,t,n,r,i,a,o,s){for(var c=Re(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!q(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(q(v)&&!Fe(v)&&!Ke(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}wa(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=B(m,x);m.splice(S,1)}}if(i.force||(h=Le(h,function(e){return!Sa(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=ai(n[_]),xa(n,r,_)}}var x=new yi(n,!1,!1,d?Le(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var Ta=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var 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=B(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=B(n,e);return r<0?this:(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 wn(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?(wn.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(_a);Ta.prototype.type=`group`;var Ea={},Da={};function Oa(e){delete Da[e]}function ka(e){if(!e)return!1;if(typeof e==`string`)return Kr(e,1)<Ui;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Kr(t[i].color,1);return n/=r,n<Ui}return!1}var Aa=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Yn,a=n.renderer||`canvas`;Ea[a]||(a=Re(Ea)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new Ea[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!P.node&&!P.worker&&!s?new Bi(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?P.touchEventsSupported:!!l,d=44,f;u&&(f=J(n.pointerSize,d)),this.handler=new Mn(i,o,c,o.root,f),this.animation=new xi({stage:{update:s?null:function(){return r._flush(!0)}}}),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=ka(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=bi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=bi();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},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 Ta&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Oa(this.id))},e}();function ja(e,t){var n=new Aa(je(),e,t);return Da[n.id]=n,n}function Ma(e,t){Ea[e]=t}var Na=1e-4,Pa=20;function Fa(e){return e.replace(/^\s+|\s+$/g,``)}function Ia(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;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}function Q(e,t){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return K(e)?Fa(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function La(e,t,n){return t??=10,t=Math.min(Math.max(0,t),Pa),e=(+e).toFixed(t),n?e:+e}function Ra(e){return e.sort(function(e,t){return e-t}),e}function za(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Ba(e)}function Ba(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(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function Va(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Ha(e,t){var n=Ie(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=H(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=H(i,function(e){return Math.floor(e)}),s=Ie(o,function(e,t){return e+t},0),c=H(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return H(o,function(e){return e/r})}function Ua(e,t){var n=Math.max(za(e),za(t)),r=e+t;return n>Pa?r:La(r,n)}function Wa(e){var t=Math.PI*2;return(e%t+t)%t}function Ga(e){return e>-Na&&e<Na}var Ka=/^(?:(\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 qa(e){if(e instanceof Date)return e;if(K(e)){var t=Ka.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(Math.round(e))}function Ja(e){return 10**Ya(e)}function Ya(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function Xa(e,t){var n=Ya(e),r=10**n,i=e/r;return e=(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>=-20?+e.toFixed(n<0?-n:0):e}function Za(e){var t=parseFloat(e);return t==e&&(t!==0||!K(e)||e.indexOf(`x`)<=0)?t:NaN}function Qa(e){return!isNaN(Za(e))}function $a(){return Math.round(Math.random()*9)}function eo(e,t){return t===0?e:eo(t,e%t)}function to(e,t){return e==null?t:t==null?e:e*t/eo(e,t)}function no(e){throw Error(e)}function ro(e,t,n){return(t-e)*n+e}var io=`series\0`,ao=`\0_ec_\0`;function oo(e){return e instanceof Array?e:e==null?[]:[e]}function so(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 co=`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 lo(e){return q(e)&&!W(e)&&!(e instanceof Date)?e.value:e}function uo(e){return q(e)&&!(e instanceof Array)}function fo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=Y();V(t,function(e,n){if(!q(e)){t[n]=null;return}});var s=po(e,o,n);return(r||i)&&mo(s,e,o,t),r&&ho(s,t),r||i?go(s,t,i):a&&_o(s,t),vo(s),s}function po(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`||Co(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function mo(e,t,n,r){V(r,function(i,a){if(!(!i||i.id==null)){var o=bo(i.id),s=n.get(o);if(s!=null){var c=e[s];$e(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function ho(e,t){V(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)&&!Co(n)&&!Co(a)&&yo(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function go(e,t,n){V(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Co(r.existing)||r.existing&&t.id!=null&&!yo(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function _o(e,t){V(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function vo(e){var t=Y();V(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),V(e,function(e){var n=e.newOption;$e(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),V(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(q(i)){if(a.name=i.name==null?r?r.name:io+n:bo(i.name),r)a.id=bo(r.id);else if(i.id!=null)a.id=bo(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function yo(e,t,n){var r=xo(t[e],null),i=xo(n[e],null);return r!=null&&i!=null&&r===i}function bo(e){return xo(e,``)}function xo(e,t){return e==null?t:K(e)?e:He(e)||Ve(e)?e+``:t}function So(e){var t=e.name;return!!(t&&t.indexOf(io))}function Co(e){return e&&e.id!=null&&bo(e.id).indexOf(ao)===0}function wo(e,t,n){V(e,function(e){var r=e.newOption;q(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=To(t,r,e.existing,n))})}function To(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Eo(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return W(t.dataIndex)?H(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return W(t.name)?H(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Do(){var e=`__ec_inner_`+Oo++;return function(t){return t[e]||(t[e]={})}}var Oo=$a();function ko(e,t,n){var r=Ao(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=No(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Ao(e,t){var n;if(K(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=Y(),a={},o=!1;return V(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&B(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var jo={useDefault:!0,enableAll:!1,enableNone:!1},Mo={useDefault:!1,enableAll:!0,enableNone:!0};function No(e,t,n,r){r||=jo;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}return i===`none`||i===!1?($e(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i===`all`&&($e(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function Po(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Fo(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Io(e){return e===`auto`?P.domSupported?`html`:`richText`:e||`html`}function Lo(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(He(r)){var o=ro(n||0,r,i);return La(o,a?Math.max(za(n||0),za(r)):t)}if(K(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=ro(p,m,i);s[d]=La(o,a?Math.max(za(p),za(m)):t)}}return s}var Ro=`.`,zo=`___EC__COMPONENT__CONTAINER___`,Bo=`___EC__EXTENDED_CLASS___`;function Vo(e){var t={main:``,sub:``};if(e){var n=e.split(Ro);t.main=n[0]||``,t.sub=n[1]||``}return t}function Ho(e){$e(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Uo(e){return!!(e&&e[Bo])}function Wo(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Go(t)?n=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},Ne(n,this)),R(n.prototype,e),n[Bo]=!0,n.extend=this.extend,n.superCall=Yo,n.superApply=Xo,n.superClass=t,n}}function Go(e){return G(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Ko(e,t){e.extend=t.extend}var qo=Math.round(Math.random()*10);function Jo(e){var t=[`__\0is_clz`,qo++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Yo(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Xo(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Zo(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Ho(r),e.prototype.type=r;var i=Vo(r);if(!i.sub)t[i.main]=e;else if(i.sub!==zo){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[zo]&&(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=Vo(e),r=[],i=t[n.main];return i&&i[zo]?V(i,function(e,t){t!==zo&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Vo(e).main]},e.getAllClassMainTypes=function(){var e=[];return V(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Vo(e).main];return n&&n[zo]};function n(e){var n=t[e.main];return(!n||!n[zo])&&(n=t[e.main]={},n[zo]=!0),n}}function Qo(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&&B(r,s)>=0||i&&B(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var $o=Qo([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),es=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return $o(this,e,t)},e}(),ts=new Or(50);function ns(e){if(typeof e==`string`){var t=ts.get(e);return t&&t.image}return e}function rs(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=ts.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!as(t)&&a.pending.push(o)):(t=ve.loadImage(e,is,is),t.__zrImageSrc=e,ts.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function is(){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 as(e){return e&&e.width&&e.height}var os=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ss(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
3
|
`);a=cs(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 cs(e,t,n,r){r||={};var i=R({},r);i.font=t,n=J(n,`...`),i.maxIterations=J(r.maxIterations,2);var a=i.minChar=J(r.minChar,0);i.cnCharWidth=ia(`国`,t);var o=i.ascCharWidth=ia(`a`,t);i.placeholder=J(r.placeholder,``);for(var s=e=Math.max(0,e-1),c=0;c<a&&s>=o;c++)s-=o;var l=ia(n,t);return l>s&&(n=``,l=0),s=e-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function ls(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=ia(t,i);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?us(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,c),o=ia(t,i)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function us(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function ds(e,t){e!=null&&(e+=``);var n=t.overflow,r=t.padding,i=t.font,a=n===`truncate`,o=la(i),s=J(t.lineHeight,o),c=!!t.backgroundColor,l=t.lineOverflow===`truncate`,u=!1,d=t.width,f=d!=null&&(n===`break`||n===`breakAll`)?e?bs(e,t.font,d,n===`breakAll`,0).lines:[]:e?e.split(`
|
|
5
5
|
`):[],p=f.length*s,m=J(t.height,p);if(p>m&&l){var h=Math.floor(m/s);u||=f.length>h,f=f.slice(0,h)}if(e&&a&&d!=null)for(var g=cs(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},v=0;v<f.length;v++)ls(_,f[v],g),f[v]=_.textLine,u||=_.isTruncated;for(var y=m,b=0,v=0;v<f.length;v++)b=Math.max(ia(f[v],i),b);d??=b;var x=b;return r&&(y+=r[0]+r[2],x+=r[1]+r[3],d+=r[1]+r[3]),c&&(x=d),{lines:f,height:m,outerWidth:x,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:p,width:d,isTruncated:u}}var fs=function(){function e(){}return e}(),ps=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),ms=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function hs(e,t){var n=new ms;if(e!=null&&(e+=``),!e)return n;for(var r=t.width,i=t.height,a=t.overflow,o=(a===`break`||a===`breakAll`)&&r!=null?{width:r,accumWidth:0,breakAll:a===`breakAll`}:null,s=os.lastIndex=0,c;(c=os.exec(e))!=null;){var l=c.index;l>s&&gs(n,e.substring(s,l),t,o),gs(n,c[2],t,o,c[1]),s=os.lastIndex}s<e.length&&gs(n,e.substring(s,e.length),t,o);var u=[],d=0,f=0,p=t.padding,m=a===`truncate`,h=t.lineOverflow===`truncate`,g={};function _(e,t,n){e.width=t,e.lineHeight=n,d+=n,f=Math.max(f,t)}outer:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],b=0,x=0,S=0;S<y.tokens.length;S++){var C=y.tokens[S],w=C.styleName&&t.rich[C.styleName]||{},T=C.textPadding=w.padding,E=T?T[1]+T[3]:0,D=C.font=w.font||t.font;C.contentHeight=la(D);var O=J(w.height,C.contentHeight);if(C.innerHeight=O,T&&(O+=T[0]+T[2]),C.height=O,C.lineHeight=Xe(w.lineHeight,t.lineHeight,O),C.align=w&&w.align||t.align,C.verticalAlign=w&&w.verticalAlign||`middle`,h&&i!=null&&d+C.lineHeight>i){var k=n.lines.length;S>0?(y.tokens=y.tokens.slice(0,S),_(y,x,b),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v),n.isTruncated=n.isTruncated||n.lines.length<k;break outer}var A=w.width,j=A==null||A===`auto`;if(typeof A==`string`&&A.charAt(A.length-1)===`%`)C.percentWidth=A,u.push(C),C.contentWidth=ia(C.text,D);else{if(j){var ee=w.backgroundColor,M=ee&&ee.image;M&&(M=ns(M),as(M)&&(C.width=Math.max(C.width,M.width*O/M.height)))}var te=m&&r!=null?r-x:null;te!=null&&te<C.width?!j||te<E?(C.text=``,C.width=C.contentWidth=0):(ss(g,C.text,te-E,D,t.ellipsis,{minChar:t.truncateMinChar}),C.text=g.text,n.isTruncated=n.isTruncated||g.isTruncated,C.width=C.contentWidth=ia(C.text,D)):C.contentWidth=ia(C.text,D)}C.width+=E,x+=C.width,w&&(b=Math.max(b,C.lineHeight))}_(y,x,b)}n.outerWidth=n.width=J(r,f),n.outerHeight=n.height=J(i,d),n.contentHeight=d,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var v=0;v<u.length;v++){var C=u[v],ne=C.percentWidth;C.width=parseInt(ne,10)/100*n.width}return n}function gs(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=ua(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
6
6
|
`),l=!0),r.accumWidth=m}else{var h=bs(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}else u=t.split(`
|
|
7
7
|
`);for(var g=0;g<u.length;g++){var _=u[g],v=new fs;if(v.styleName=i,v.text=_,v.isLineHolder=!_&&!a,v.width=typeof o.width==`number`?o.width:d?d[g]:ia(_,c),!g&&!l){var y=(s[s.length-1]||(s[0]=new ps)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=v:(_||!b||a)&&y.push(v)}else s.push(new ps([v]))}}function _s(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var vs=Ie(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function ys(e){return!_s(e)||!!vs[e]}function bs(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
|
|
8
|
-
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var p=ia(f,t),m=!r&&!ys(f);if(a.length?u+p>n:i+u+p>n){u?(s||c)&&(m?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=f,l+=p,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=f,u=p)):m?(a.push(c),o.push(l),c=f,l=p):(a.push(f),o.push(p));continue}u+=p,m?(c+=f,l+=p):(c&&(s+=c,c=``,l=0),s+=f)}return!a.length&&!s&&(s=e,c=``,l=0),c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}var xs=`__zr_style_`+Math.round(Math.random()*10),Ss={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Cs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ss[xs]=!0;var ws=[`z`,`z2`,`invisible`],Ts=[`invisible`],Es=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=Re(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ks(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new wn(0,0,0,0),t?wn.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new wn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:R(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return lt(Ss,e)},t.prototype.useStyle=function(e){e[xs]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[xs]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,ws)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c){if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=Re(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=Re(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c)}for(var m=this.__inHover?Ts:ws,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return R(e,t),e},t.prototype.getAnimationStyleProps=function(){return Cs},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(_a),Ds=new wn(0,0,0,0),Os=new wn(0,0,0,0);function ks(e,t,n){return Ds.copy(e.getBoundingRect()),e.transform&&Ds.applyTransform(e.transform),Os.width=t,Os.height=n,!Ds.intersect(Os)}var As=Math.min,js=Math.max,Ms=Math.sin,Ns=Math.cos,Ps=Math.PI*2,Fs=pt(),Is=pt(),Ls=pt();function Rs(e,t,n,r,i,a){i[0]=As(e,n),i[1]=As(t,r),a[0]=js(e,n),a[1]=js(t,r)}var zs=[],Bs=[];function Vs(e,t,n,r,i,a,o,s,c,l){var u=fr,d=lr,f=u(e,n,i,o,zs);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,zs[p]);c[0]=As(m,c[0]),l[0]=js(m,l[0])}f=u(t,r,a,s,Bs);for(var p=0;p<f;p++){var h=d(t,r,a,s,Bs[p]);c[1]=As(h,c[1]),l[1]=js(h,l[1])}c[0]=As(e,c[0]),l[0]=js(e,l[0]),c[0]=As(o,c[0]),l[0]=js(o,l[0]),c[1]=As(t,c[1]),l[1]=js(t,l[1]),c[1]=As(s,c[1]),l[1]=js(s,l[1])}function Hs(e,t,n,r,i,a,o,s){var c=yr,l=gr,u=js(As(c(e,n,i),1),0),d=js(As(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=As(e,i,f),o[1]=As(t,a,p),s[0]=js(e,i,f),s[1]=js(t,a,p)}function Us(e,t,n,r,i,a,o,s,c){var l=Dt,u=Ot,d=Math.abs(i-a);if(d%Ps<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Fs[0]=Ns(i)*n+e,Fs[1]=Ms(i)*r+t,Is[0]=Ns(a)*n+e,Is[1]=Ms(a)*r+t,l(s,Fs,Is),u(c,Fs,Is),i%=Ps,i<0&&(i+=Ps),a%=Ps,a<0&&(a+=Ps),i>a&&!o?a+=Ps:i<a&&o&&(i+=Ps),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Ls[0]=Ns(p)*n+e,Ls[1]=Ms(p)*r+t,l(s,Ls,s),u(c,Ls,c))}var Ws={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Gs=[],Ks=[],qs=[],Js=[],Ys=[],Xs=[],Zs=Math.min,Qs=Math.max,$s=Math.cos,ec=Math.sin,tc=Math.abs,nc=Math.PI,rc=nc*2,ic=typeof Float32Array<`u`,ac=[];function oc(e){return Math.round(e/nc*1e8)/1e8%2*nc}function sc(e,t){var n=oc(e[0]);n<0&&(n+=rc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=rc?i=n+rc:t&&n-i>=rc?i=n-rc:!t&&n>i?i=n+(rc-oc(n-i)):t&&n<i&&(i=n-(rc-oc(i-n))),e[0]=n,e[1]=i}var cc=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=tc(n/Hi/e)||0,this._uy=tc(n/Hi/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ws.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=tc(e-this._xi),r=tc(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Ws.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Ws.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Ws.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),ac[0]=r,ac[1]=i,sc(ac,a),r=ac[0],i=ac[1];var o=i-r;return this.addData(Ws.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=$s(i)*n+e,this._yi=ec(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Ws.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ws.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&ic&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();ic&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ic&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){qs[0]=qs[1]=Ys[0]=Ys[1]=Number.MAX_VALUE,Js[0]=Js[1]=Xs[0]=Xs[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Ws.M:t=r=e[a++],n=i=e[a++],Ys[0]=r,Ys[1]=i,Xs[0]=r,Xs[1]=i;break;case Ws.L:Rs(t,n,e[a],e[a+1],Ys,Xs),t=e[a++],n=e[a++];break;case Ws.C:Vs(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Ys,Xs),t=e[a++],n=e[a++];break;case Ws.Q:Hs(t,n,e[a++],e[a++],e[a],e[a+1],Ys,Xs),t=e[a++],n=e[a++];break;case Ws.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=$s(f)*u+c,i=ec(f)*d+l),Us(c,l,u,d,f,p,m,Ys,Xs),t=$s(p)*u+c,n=ec(p)*d+l;break;case Ws.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Rs(r,i,r+h,i+g,Ys,Xs);break;case Ws.Z:t=r,n=i}Dt(qs,qs,Ys),Ot(Js,Js,Xs)}return a===0&&(qs[0]=qs[1]=Js[0]=Js[1]=0),new wn(qs[0],qs[1],Js[0]-qs[0],Js[1]-qs[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Ws.M:i=o=e[d++],a=s=e[d++];break;case Ws.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(tc(_)>n||tc(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Ws.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=hr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Ws.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Sr(i,a,y,b,h,g,10),i=h,a=g;break;case Ws.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=$s(D)*T+C,s=ec(D)*E+w),m=Qs(T,E)*Zs(rc,Math.abs(O)),i=$s(k)*T+C,a=ec(k)*E+w;break;case Ws.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Ws.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Ws.L&&v>0&&(e.lineTo(y,b),v=0),S){case Ws.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Ws.L:u=n[x++],d=n[x++];var w=tc(u-c),T=tc(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Ws.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],te=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;pr(c,k,j,M,D,Gs),pr(l,A,ee,te,D,Ks),e.bezierCurveTo(Gs[1],Ks[1],Gs[2],Ks[2],Gs[3],Ks[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,te),c=M,l=te;break;case Ws.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;br(c,k,j,D,Gs),br(l,A,ee,D,Ks),e.quadraticCurveTo(Gs[1],Ks[1],Gs[2],Ks[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Ws.A:var ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,N=tc(ie-ae)>.001,de=oe+se,P=!1;if(f){var E=p[g++];h+E>_&&(de=oe+se*(_-h)/E,P=!0),h+=E}if(N&&e.ellipse?e.ellipse(ne,re,ie,ae,ce,oe,de,le):e.arc(ne,re,ue,oe,de,le),P)break lo;C&&(o=$s(oe)*ie+ne,s=ec(oe)*ae+re),c=$s(de)*ie+ne,l=ec(de)*ae+re;break;case Ws.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var F=n[x++],fe=n[x++];if(f){var E=p[g++];if(h+E>_){var pe=_-h;e.moveTo(u,d),e.lineTo(u+Zs(pe,F),d),pe-=F,pe>0&&e.lineTo(u+F,d+Zs(pe,fe)),pe-=fe,pe>0&&e.lineTo(u+Qs(F-pe,0),d+fe),pe-=F,pe>0&&e.lineTo(u,d+Qs(fe-pe,0));break lo}h+=E}e.rect(u,d,F,fe);break;case Ws.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Ws,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function lc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function uc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:mr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function dc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:xr(e,t,n,r,i,a,s,c,null)<=l/2}var fc=Math.PI*2;function pc(e){return e%=fc,e<0&&(e+=fc),e}var mc=Math.PI*2;function hc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%mc<1e-4)return!0;if(a){var d=r;r=pc(i),i=pc(d)}else r=pc(r),i=pc(i);r>i&&(i+=mc);var f=Math.atan2(c,s);return f<0&&(f+=mc),f>=r&&f<=i||f+mc>=r&&f+mc<=i}function gc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var _c=cc.CMD,vc=Math.PI*2,yc=1e-4;function bc(e,t){return Math.abs(e-t)<yc}var xc=[-1,-1,-1],Sc=[-1,-1];function Cc(){var e=Sc[0];Sc[0]=Sc[1],Sc[1]=e}function wc(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=dr(t,r,a,s,l,xc);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=xc[h],_=g===0||g===1?.5:1;lr(e,n,i,o,g)<c||(f<0&&(f=fr(t,r,a,s,Sc),Sc[1]<Sc[0]&&f>1&&Cc(),p=lr(t,r,a,s,Sc[0]),f>1&&(m=lr(t,r,a,s,Sc[1]))),f===2?g<Sc[0]?d+=p<t?_:-_:g<Sc[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Sc[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Tc(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=vr(t,r,a,s,xc);if(c===0)return 0;var l=yr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=gr(t,r,a,l),f=0;f<c;f++){var p=xc[f]===0||xc[f]===1?.5:1,m=gr(e,n,i,xc[f]);m<o||(xc[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=xc[0]===0||xc[0]===1?.5:1,m=gr(e,n,i,xc[0]);return m<o?0:a<t?p:-p}function Ec(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);xc[0]=-c,xc[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=vc-1e-4){r=0,i=vc;var u=a?1:-1;return o>=xc[0]+e&&o<=xc[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=vc,i+=vc);for(var f=0,p=0;p<2;p++){var m=xc[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=vc+h),(h>=r&&h<=i||h+vc>=r&&h+vc<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Dc(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===_c.M&&m>1&&(n||(s+=gc(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case _c.M:u=a[m++],d=a[m++],c=u,l=d;break;case _c.L:if(n){if(lc(c,l,a[m],a[m+1],t,r,i))return!0}else s+=gc(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case _c.C:if(n){if(uc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=wc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case _c.Q:if(n){if(dc(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Tc(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case _c.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=gc(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(hc(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Ec(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case _c.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(lc(u,d,f,d,t,r,i)||lc(f,d,f,p,t,r,i)||lc(f,p,u,p,t,r,i)||lc(u,p,u,d,t,r,i))return!0}else s+=gc(f,d,f,p,r,i),s+=gc(u,p,u,d,r,i);break;case _c.Z:if(n){if(lc(c,l,u,d,t,r,i))return!0}else s+=gc(c,l,u,d,r,i);c=u,l=d}}return!n&&!bc(l,d)&&(s+=gc(c,l,u,d,r,i)||0),s!==0}function Oc(e,t,n){return Dc(e,0,!1,t,n)}function kc(e,t,n,r){return Dc(e,t,!0,n,r)}var Ac=z({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ss),jc={style:z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Cs.style)},Mc=ta.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Nc=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Mc.length;++s)i[Mc[s]]=this[Mc[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Re(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?R(this.style,o):this.useStyle(o):a===`shape`?R(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(K(e)){var t=Kr(e,0);return t>.5?Wi:t>.2?Ki:Gi}if(e)return Gi}return Wi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(K(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Kr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new cc(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),kc(a,o/s,e,t)))return!0}if(this.hasFill())return Oc(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:R(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return lt(Ac,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=R({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=R({},r.shape),R(c,n.shape)):(c=R({},i?this.shape:r.shape),R(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=R({},this.shape);for(var l={},u=Re(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return jc},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){N(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return I(e.style)},n.prototype.getDefaultShape=function(){return I(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Es),Pc=z({strokeFirst:!0,font:fe,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ac),Fc=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return lt(Pc,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;t==null?t=``:t+=``;var n=oa(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Es);Fc.prototype.type=`tspan`;var Ic=z({x:0,y:0},Ss),Lc={style:z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Cs.style)};function Rc(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var zc=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return lt(Ic,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Rc(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Lc},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new wn(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Es);zc.prototype.type=`image`;function Bc(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Vc=Math.round;function Hc(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Vc(r*2)===Vc(i*2)&&(e.x1=e.x2=Wc(r,s,!0)),Vc(a*2)===Vc(o*2)&&(e.y1=e.y2=Wc(a,s,!0)),e):e}}function Uc(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Wc(r,s,!0),e.y=Wc(i,s,!0),e.width=Math.max(Wc(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wc(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Wc(e,t,n){if(!t)return e;var r=Vc(e*2);return(r+Vc(t))%2==0?r/2:(r+(n?1:-1))/2}var Gc=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Kc={},qc=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Gc},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Uc(Kc,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Bc(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Nc);qc.prototype.type=`rect`;var Jc={fill:`#000`},Yc=2,Xc={style:z({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Cs.style)},Zc=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Jc,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,il(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new wn(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Jc},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return R(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Re(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},R(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Xc},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=ds(ll(e),e),i=ul(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,c=r.contentWidth,l=r.lines,u=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var f=e.x||0,p=e.y||0,m=e.align||d.align||`left`,h=e.verticalAlign||d.verticalAlign||`top`,g=f,_=ca(p,r.contentHeight,h);if(i||n){var v=sa(f,s,m),y=ca(p,o,h);i&&this._renderBackground(e,e,v,y,s,o)}_+=u/2,n&&(g=cl(f,m,n),h===`top`?_+=n[0]:h===`bottom`&&(_-=n[2]));for(var b=0,x=!1,S=sl(`fill`in e?e.fill:(x=!0,d.fill)),C=ol(`stroke`in e?e.stroke:!a&&(!d.autoStroke||x)?(b=Yc,d.stroke):null),w=e.textShadowBlur>0,T=e.width!=null&&(e.overflow===`truncate`||e.overflow===`break`||e.overflow===`breakAll`),E=r.calculatedLineHeight,D=0;D<l.length;D++){var O=this._getOrCreateChild(Fc),k=O.createStyle();O.useStyle(k),k.text=l[D],k.x=g,k.y=_,m&&(k.textAlign=m),k.textBaseline=`middle`,k.opacity=e.opacity,k.strokeFirst=!0,w&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||`transparent`,k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=C,k.fill=S,C&&(k.lineWidth=e.lineWidth||b,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=t,nl(k,e),_+=u,T&&O.setBoundingRect(new wn(sa(k.x,c,k.textAlign),ca(k.y,E,k.textBaseline),c,E))}},t.prototype._updateRichTexts=function(){var e=this.style,t=hs(ll(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,c=this._defaultStyle,l=e.align||c.align,u=e.verticalAlign||c.verticalAlign;this.isTruncated=!!t.isTruncated;var d=sa(o,r,l),f=ca(s,i,u),p=d,m=f;a&&(p+=a[3],m+=a[0]);var h=p+n;ul(e)&&this._renderBackground(e,e,d,f,r,i);for(var g=!!e.backgroundColor,_=0;_<t.lines.length;_++){for(var v=t.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(n-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ul(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=cl(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Fc),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=sl(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),v=ol(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Yc,m.stroke):null),y=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,y&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=Xe(s.opacity,t.opacity,1),nl(p,s),v&&(p.lineWidth=Xe(s.lineWidth,t.lineWidth,g),p.lineDash=J(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),_&&(p.fill=_);var b=e.contentWidth,x=e.contentHeight;f.setBoundingRect(new wn(sa(p.x,b,p.textAlign),ca(p.y,x,p.textBaseline),b,x))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(qc),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=J(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(zc),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=J(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Xe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return rl(e)&&(t=[e.fontStyle,e.fontWeight,tl(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&et(t)||e.textFont||e.font},t}(Es),Qc={left:!0,right:1,center:1},$c={top:1,bottom:1,middle:1},el=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function tl(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function nl(e,t){for(var n=0;n<el.length;n++){var r=el[n],i=t[r];i!=null&&(e[r]=i)}}function rl(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function il(e){return al(e),V(e.rich,al),e}function al(e){if(e){e.font=Zc.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Qc[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||$c[n]?n:`top`,e.padding&&=Qe(e.padding)}}function ol(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function sl(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function cl(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function ll(e){var t=e.text;return t!=null&&(t+=``),t}function ul(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var $=Do(),dl=function(e,t,n,r){if(r){var i=$(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=$(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},fl=1,pl={},ml=Do(),hl=Do(),gl=[`emphasis`,`blur`,`select`],_l=[`normal`,`emphasis`,`blur`,`select`],vl=`highlight`,yl=`downplay`,bl=`select`,xl=`unselect`,Sl=`toggleSelect`;function Cl(e){return e!=null&&e!==`none`}function wl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Tl(e){wl(e,`emphasis`,2)}function El(e){e.hoverState===2&&wl(e,`normal`,0)}function Dl(e){wl(e,`blur`,1)}function Ol(e){e.hoverState===1&&wl(e,`normal`,0)}function kl(e){e.selected=!0}function Al(e){e.selected=!1}function jl(e,t,n){t(e,n)}function Ml(e,t,n){jl(e,t,n),e.isGroup&&e.traverse(function(e){jl(e,t,n)})}function Nl(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Pl(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Fl(e,t,n,r){var i=n&&B(n,`select`)>=0,a=!1;if(e instanceof Nc){var o=ml(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Cl(s)||Cl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=R({},r),l=R({},l),l.fill=s):!Cl(l.fill)&&Cl(s)?(a=!0,r=R({},r),l=R({},l),l.fill=Jr(s)):!Cl(l.stroke)&&Cl(c)&&(a||(r=R({},r),l=R({},l)),l.stroke=Jr(c)),r.style=l}}if(r&&r.z2==null){a||(r=R({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Il(e,t,n){if(n&&n.z2==null){n=R({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Ll(e,t,n){var r=B(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Pl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=R({},n),o=R({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Rl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Fl(this,e,t,n);if(e===`blur`)return Ll(this,e,n);if(e===`select`)return Il(this,e,n)}return n}function zl(e){e.stateProxy=Rl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Rl),n&&(n.stateProxy=Rl)}function Bl(e,t){!Jl(e,t)&&!e.__highByOuter&&Ml(e,Tl)}function Vl(e,t){!Jl(e,t)&&!e.__highByOuter&&Ml(e,El)}function Hl(e,t){e.__highByOuter|=1<<(t||0),Ml(e,Tl)}function Ul(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ml(e,El)}function Wl(e){Ml(e,Dl)}function Gl(e){Ml(e,Ol)}function Kl(e){Ml(e,kl)}function ql(e){Ml(e,Al)}function Jl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Yl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=hl(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){Ol(e)}),o&&n.push(i)),a.isBlured=!1}),V(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Xl(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Gl(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Dl(e)}),Fe(t))a(e.getData(),t);else if(q(t))for(var u=Re(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),hl(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Zl(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){hl(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Dl(e)})}}}function Ql(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Eo(i,t);a=(W(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=$(o);Xl(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Xl(r,u,d,n)}}}function $l(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if($(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function eu(e,t,n){var r=$(e),i=$l(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Zl(r.componentMainType,r.componentIndex,n),V(a,function(e){return Bl(e,t)})):(Xl(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Zl(r.componentMainType,r.componentIndex,n),Bl(e,t))}function tu(e,t,n){Yl(n);var r=$(e),i=$l(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?V(i,function(e){return Vl(e,t)}):Vl(e,t)}function nu(e,t,n){if(hu(t)){var r=t.dataType,i=Eo(e.getData(r),t);W(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function ru(e){V(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Kl(t):ql(t)})})}function iu(e){var t=[];return e.eachSeries(function(e){V(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function au(e,t,n){fu(e,!0),Ml(e,zl),cu(e,t,n)}function ou(e){fu(e,!1)}function su(e,t,n,r){r?ou(e):au(e,t,n)}function cu(e,t,n){var r=$(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var lu=[`emphasis`,`blur`,`select`],uu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function du(e,t,n,r){n||=`itemStyle`;for(var i=0;i<lu.length;i++){var a=lu[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[uu[n]]()}}function fu(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function pu(e){return!!(e&&e.__highDownDispatcher)}function mu(e){var t=pl[e];return t==null&&fl<=32&&(t=pl[e]=fl++),t}function hu(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function gu(e){var t=e.type;return t===`highlight`||t===`downplay`}function _u(e){var t=ml(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var vu=cc.CMD,yu=[[],[],[]],bu=Math.sqrt,xu=Math.atan2;function Su(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=vu.M,d=vu.C,f=vu.L,p=vu.R,m=vu.A,h=vu.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=bu(t[0]*t[0]+t[1]*t[1]),y=bu(t[2]*t[2]+t[3]*t[3]),b=xu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Et(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Et(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=yu[c];x[0]=n[o++],x[1]=n[o++],Et(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Cu=Math.sqrt,wu=Math.sin,Tu=Math.cos,Eu=Math.PI;function Du(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ou(e,t){return(e[0]*t[0]+e[1]*t[1])/(Du(e)*Du(t))}function ku(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ou(e,t))}function Au(e,t,n,r,i,a,o,s,c,l,u){var d=Eu/180*c,f=Tu(d)*(e-n)/2+wu(d)*(t-r)/2,p=-1*wu(d)*(e-n)/2+Tu(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Cu(m),s*=Cu(m));var h=(i===a?-1:1)*Cu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Tu(d)*g-wu(d)*_,y=(t+r)/2+wu(d)*g+Tu(d)*_,b=ku([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=ku(x,S);if(Ou(x,S)<=-1&&(C=Eu),Ou(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Eu*1e6)/1e6;C=Eu*2+w%2*Eu}u.addData(l,v,y,o,s,b,C,d,a)}var ju=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Mu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Nu(e){var t=new cc;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=cc.CMD,c=e.match(ju);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Mu)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Au(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Au(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Pu=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Nc);function Fu(e){return e.setData!=null}function Iu(e,t){var n=Nu(e),r=R({},t);return r.buildPath=function(e){if(Fu(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){Su(n,e),this.dirtyShape()},r}function Lu(e,t){return new Pu(Iu(e,t))}function Ru(e,t){var n=Iu(e,t);return function(e){N(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Pu)}function zu(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Nc(t);return o.createPathProxy(),o.buildPath=function(e){if(Fu(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Bu=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Vu=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Bu},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Nc);Vu.prototype.type=`circle`;var Hu=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Uu=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Hu},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Nc);Uu.prototype.type=`ellipse`;var Wu=Math.PI,Gu=Wu*2,Ku=Math.sin,qu=Math.cos,Ju=Math.acos,Yu=Math.atan2,Xu=Math.abs,Zu=Math.sqrt,Qu=Math.max,$u=Math.min,ed=1e-4;function td(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<ed))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function nd(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Zu(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Zu(Qu(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function rd(e){var t;if(W(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function id(e,t){var n,r=Qu(t.r,0),i=Qu(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Xu(c-s),p=f>Gu&&f%Gu;if(p>ed&&(f=p),!(r>ed))e.moveTo(l,u);else if(f>Gu-ed)e.moveTo(l+r*qu(s),u+r*Ku(s)),e.arc(l,u,r,s,c,!d),i>ed&&(e.moveTo(l+i*qu(c),u+i*Ku(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*qu(s),j=r*Ku(s),ee=i*qu(c),M=i*Ku(c),te=f>ed;if(te){var ne=t.cornerRadius;ne&&(n=rd(ne),m=n[0],h=n[1],g=n[2],_=n[3]);var re=Xu(r-i)/2;if(v=$u(re,g),y=$u(re,_),b=$u(re,m),x=$u(re,h),w=S=Qu(v,y),T=C=Qu(b,x),(S>ed||C>ed)&&(E=r*qu(c),D=r*Ku(c),O=i*qu(s),k=i*Ku(s),f<Wu)){var ie=td(A,j,O,k,E,D,ee,M);if(ie){var ae=A-ie[0],oe=j-ie[1],se=E-ie[0],ce=D-ie[1],le=1/Ku(Ju((ae*se+oe*ce)/(Zu(ae*ae+oe*oe)*Zu(se*se+ce*ce)))/2),ue=Zu(ie[0]*ie[0]+ie[1]*ie[1]);w=$u(S,(r-ue)/(le+1)),T=$u(C,(i-ue)/(le-1))}}}if(!te)e.moveTo(l+A,u+j);else if(w>ed){var N=$u(g,w),de=$u(_,w),P=nd(O,k,A,j,r,N,d),F=nd(E,D,ee,M,r,de,d);e.moveTo(l+P.cx+P.x0,u+P.cy+P.y0),w<S&&N===de?e.arc(l+P.cx,u+P.cy,w,Yu(P.y0,P.x0),Yu(F.y0,F.x0),!d):(N>0&&e.arc(l+P.cx,u+P.cy,N,Yu(P.y0,P.x0),Yu(P.y1,P.x1),!d),e.arc(l,u,r,Yu(P.cy+P.y1,P.cx+P.x1),Yu(F.cy+F.y1,F.cx+F.x1),!d),de>0&&e.arc(l+F.cx,u+F.cy,de,Yu(F.y1,F.x1),Yu(F.y0,F.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>ed)||!te)e.lineTo(l+ee,u+M);else if(T>ed){var N=$u(m,T),de=$u(h,T),P=nd(ee,M,E,D,i,-de,d),F=nd(A,j,O,k,i,-N,d);e.lineTo(l+P.cx+P.x0,u+P.cy+P.y0),T<C&&N===de?e.arc(l+P.cx,u+P.cy,T,Yu(P.y0,P.x0),Yu(F.y0,F.x0),!d):(de>0&&e.arc(l+P.cx,u+P.cy,de,Yu(P.y0,P.x0),Yu(P.y1,P.x1),!d),e.arc(l,u,i,Yu(P.cy+P.y1,P.cx+P.x1),Yu(F.cy+F.y1,F.cx+F.x1),d),N>0&&e.arc(l+F.cx,u+F.cy,N,Yu(F.y1,F.x1),Yu(F.y0,F.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var ad=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),od=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){id(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Nc);od.prototype.type=`sector`;var sd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),cd=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new sd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Nc);cd.prototype.type=`ring`;function ld(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Dt(u,u,e[f]),Ot(d,d,e[f]);Dt(u,u,r[0]),Ot(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(mt(e[f]));continue}else c=e[f-1],l=e[f+1];gt(a,l,c),yt(a,a,t);var h=xt(m,c),g=xt(m,l),_=h+g;_!==0&&(h/=_,g/=_),yt(o,a,-h),yt(s,a,g);var v=ht([],m,o),y=ht([],m,s);r&&(Ot(v,v,u),Dt(v,v,d),Ot(y,y,u),Dt(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function ud(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=ld(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var dd=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),fd=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new dd},t.prototype.buildPath=function(e,t){ud(e,t,!0)},t}(Nc);fd.prototype.type=`polygon`;var pd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),md=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new pd},t.prototype.buildPath=function(e,t){ud(e,t,!1)},t}(Nc);md.prototype.type=`polyline`;var hd={},gd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),_d=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new gd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Hc(hd,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Nc);_d.prototype.type=`line`;var vd=[],yd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function bd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?ur:lr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?ur:lr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?_r:gr)(e.x1,e.cpx1,e.x2,t),(n?_r:gr)(e.y1,e.cpy1,e.y2,t)]}var xd=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new yd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(br(n,o,i,u,vd),o=vd[1],i=vd[2],br(r,s,a,u,vd),s=vd[1],a=vd[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(pr(n,o,c,i,u,vd),o=vd[1],c=vd[2],i=vd[3],pr(r,s,l,a,u,vd),s=vd[1],l=vd[2],a=vd[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return bd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=bd(this.shape,e,!0);return bt(t,t)},t}(Nc);xd.prototype.type=`bezier-curve`;var Sd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Cd=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Sd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Nc);Cd.prototype.type=`arc`;var wd=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Nc.prototype.getBoundingRect.call(this)},t}(Nc),Td=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Ed=function(e){N(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Td),Dd=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Td),Od=[0,0],kd=[0,0],Ad=new Z,jd=new Z,Md=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Z;for(var n=0;n<2;n++)this._axes[n]=new Z;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Z.sub(r[0],n[1],n[0]),Z.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Ad.set(1/0,1/0),jd.set(0,0),!this._intersectCheckOneSide(this,e,Ad,jd,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Ad,jd,r,-1)&&(n=!1,r)||r||Z.copy(t,n?Ad:jd),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var c=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Od),this._getProjMinMaxOnAxis(s,t._corners,kd),Od[1]<kd[0]||Od[0]>kd[1]){if(o=!1,i)return o;var l=Math.abs(kd[0]-Od[1]),u=Math.abs(Od[0]-kd[1]);Math.min(l,u)>r.len()&&(l<u?Z.scale(r,c,-l*a):Z.scale(r,c,u*a))}else if(n){var l=Math.abs(kd[0]-Od[1]),u=Math.abs(Od[0]-kd[1]);Math.min(l,u)<n.len()&&(l<u?Z.scale(n,c,l*a):Z.scale(n,c,-u*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Math.min(l,o),s=Math.max(l,s)}n[0]=o,n[1]=s},e}(),Nd=[],Pd=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new wn(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Nd)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Es),Fd=Do();function Id(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=J(r.duration,200),u=J(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),G(d)&&(d=d(n,i)),G(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function Ld(e,t,n,r,i,a,o){var s=!1,c;G(i)?(o=a,a=i,i=null):q(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Id(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Rd(e,t,n,r,i,a){Ld(`update`,e,t,n,r,i,a)}function zd(e,t,n,r,i,a){Ld(`enter`,e,t,n,r,i,a)}function Bd(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Vd(e,t,n,r,i,a){Bd(e)||Ld(`leave`,e,t,n,r,i,a)}function Hd(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Vd(e,{style:{opacity:0}},t,n,r)}function Ud(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Hd(e,t,n,r)}):Hd(e,t,n,r)}function Wd(e){Fd(e).oldStyle=e.style}var Gd=ie({Arc:()=>Cd,BezierCurve:()=>xd,BoundingRect:()=>wn,Circle:()=>Vu,CompoundPath:()=>wd,Ellipse:()=>Uu,Group:()=>Ta,Image:()=>zc,IncrementalDisplayable:()=>Pd,Line:()=>_d,LinearGradient:()=>Ed,OrientedBoundingRect:()=>Md,Path:()=>Nc,Point:()=>Z,Polygon:()=>fd,Polyline:()=>md,RadialGradient:()=>Dd,Rect:()=>qc,Ring:()=>cd,Sector:()=>od,Text:()=>Zc,applyTransform:()=>uf,clipPointsByRect:()=>hf,clipRectByRect:()=>gf,createIcon:()=>_f,extendPath:()=>Zd,extendShape:()=>Yd,getShapeClass:()=>$d,getTransform:()=>lf,groupTransition:()=>mf,initProps:()=>zd,isElementRemoved:()=>Bd,lineLineIntersect:()=>yf,linePolygonIntersect:()=>vf,makeImage:()=>tf,makePath:()=>ef,mergePath:()=>rf,registerShape:()=>Qd,removeElement:()=>Vd,removeElementWithFadeOut:()=>Ud,resizePath:()=>af,setTooltipConfig:()=>Sf,subPixelOptimize:()=>cf,subPixelOptimizeLine:()=>of,subPixelOptimizeRect:()=>sf,transformDirection:()=>df,traverseElements:()=>wf,updateProps:()=>Rd}),Kd=Math.max,qd=Math.min,Jd={};function Yd(e){return Nc.extend(e)}var Xd=Ru;function Zd(e,t){return Xd(e,t)}function Qd(e,t){Jd[e]=t}function $d(e){if(Jd.hasOwnProperty(e))return Jd[e]}function ef(e,t,n,r){var i=Lu(e,t);return n&&(r===`center`&&(n=nf(n,i.getBoundingRect())),af(i,n)),i}function tf(e,t,n){var r=new zc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(nf(t,i))}}});return r}function nf(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var rf=zu;function af(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function of(e,t){return Hc(e,e,{lineWidth:t}),e}function sf(e){return Uc(e.shape,e.shape,e.style),e}var cf=Wc;function lf(e,t){for(var n=ln([]);e&&e!==t;)dn(n,e.getLocalTransform(),n),e=e.parent;return n}function uf(e,t,n){return t&&!Fe(t)&&(t=ea.getLocalTransform(t)),n&&(t=hn([],t)),Et([],e,t)}function df(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=uf(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function ff(e){return!e.isGroup}function pf(e){return e.shape!=null}function mf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){ff(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return pf(e)&&(t.shape=R({},e.shape)),t}var a=r(e);t.traverse(function(e){if(ff(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Rd(e,r,n,$(e).dataIndex)}}})}function hf(e,t){return H(e,function(e){var n=e[0];n=Kd(n,t.x),n=qd(n,t.x+t.width);var r=e[1];return r=Kd(r,t.y),r=qd(r,t.y+t.height),[n,r]})}function gf(e,t){var n=Kd(e.x,t.x),r=qd(e.x+e.width,t.x+t.width),i=Kd(e.y,t.y),a=qd(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function _f(e,t,n){var r=R({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),z(i,n),new zc(r)):ef(e.replace(`path://`,``),r,n,`center`)}function vf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(yf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function yf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=bf(u,d,c,l);if(xf(f))return!1;var p=e-i,m=t-a,h=bf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=bf(p,m,u,d)/f;return!(g<0||g>1)}function bf(e,t,n,r){return e*r-n*t}function xf(e){return e<=1e-6&&e>=-1e-6}function Sf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=K(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&V(Re(c),function(e){X(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=$(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:z({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Cf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function wf(e,t){if(e){if(W(e))for(var n=0;n<e.length;n++)Cf(e[n],t);else Cf(e,t)}}Qd(`circle`,Vu),Qd(`ellipse`,Uu),Qd(`sector`,od),Qd(`ring`,cd),Qd(`polygon`,fd),Qd(`polyline`,md),Qd(`rect`,qc),Qd(`line`,_d),Qd(`bezierCurve`,xd),Qd(`arc`,Cd);var Tf={};function Ef(e,t){for(var n=0;n<gl.length;n++){var r=gl[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Df(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=G(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<gl.length;l++){var u=gl[l],d=t[u];c[u]=J(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Of(e,t,n,r){n||=Tf;for(var i=e instanceof Zc,a=!1,o=0;o<_l.length;o++){var s=t[_l[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Zc,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Df(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Af(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(jf(u,n,!1));for(var o=0;o<gl.length;o++){var p=gl[o],s=t[p];if(s){var m=c.ensureState(p),h=!!J(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=Af(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=jf(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(zf(c).setLabelText=function(e){var r=Df(n,t,e);Ef(c,r)})}else c&&(c.ignore=!0);e.dirty()}function kf(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<gl.length;r++){var i=gl[r];n[i]=e.getModel([i,t])}return n}function Af(e,t,n,r,i){var a={};return Mf(a,e,n,r,i),t&&R(a,t),a}function jf(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=J(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,r}function Mf(e,t,n,r,i){n||=Tf;var a=t.ecModel,o=a&&a.option.textStyle,s=Nf(t),c;if(s){for(var l in c={},s)if(s.hasOwnProperty(l)){var u=t.getModel([`rich`,l]);Lf(c[l]={},u,o,n,r,i,!1,!0)}}c&&(e.rich=c);var d=t.get(`overflow`);d&&(e.overflow=d);var f=t.get(`minMargin`);f!=null&&(e.margin=f),Lf(e,t,o,n,r,i,!0,!1)}function Nf(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Tf).rich;if(n){t||={};for(var r=Re(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Pf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Ff=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],If=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Lf(e,t,n,r,i,a,o,s){n=!i&&n||Tf;var c=r&&r.inheritColor,l=t.getShallow(`color`),u=t.getShallow(`textBorderColor`),d=J(t.getShallow(`opacity`),n.opacity);(l===`inherit`||l===`auto`)&&(l=c||null),(u===`inherit`||u===`auto`)&&(u=c||null),a||(l||=n.color,u||=n.textBorderColor),l!=null&&(e.fill=l),u!=null&&(e.stroke=u);var f=J(t.getShallow(`textBorderWidth`),n.textBorderWidth);f!=null&&(e.lineWidth=f);var p=J(t.getShallow(`textBorderType`),n.textBorderType);p!=null&&(e.lineDash=p);var m=J(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!a&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var h=0;h<Pf.length;h++){var g=Pf[h],_=J(t.getShallow(g),n[g]);_!=null&&(e[g]=_)}for(var h=0;h<Ff.length;h++){var g=Ff[h],_=t.getShallow(g);_!=null&&(e[g]=_)}if(e.verticalAlign==null){var v=t.getShallow(`baseline`);v!=null&&(e.verticalAlign=v)}if(!o||!r.disableBox){for(var h=0;h<If.length;h++){var g=If[h],_=t.getShallow(g);_!=null&&(e[g]=_)}var y=t.getShallow(`borderType`);y!=null&&(e.borderDash=y),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&c&&(e.backgroundColor=c),(e.borderColor===`auto`||e.borderColor===`inherit`)&&c&&(e.borderColor=c)}}function Rf(e,t){var n=t&&t.getModel(`textStyle`);return et([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var zf=Do();function Bf(e,t,n,r){if(e){var i=zf(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Vf(e,t,n,r,i){var a=zf(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=J(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=Lo(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,Ef(e,Df({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?zd:Rd)(e,{percent:1},r,t,null,l)}var Hf=[`textStyle`,`color`],Uf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Wf=new Zc,Gf=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Hf):null)},e.prototype.getFont=function(){return Rf({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Uf.length;n++)t[Uf[n]]=this.getShallow(Uf[n]);return Wf.useStyle(t),Wf.update(),Wf.getBoundingRect()},e}(),Kf=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],qf=Qo(Kf),Jf=function(){function e(){}return e.prototype.getLineStyle=function(e){return qf(this,e)},e}(),Yf=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Xf=Qo(Yf),Zf=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Xf(this,e,t)},e}(),Qf=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){L(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(I(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!P.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Wo(Qf),Jo(Qf),Pe(Qf,Jf),Pe(Qf,Zf),Pe(Qf,es),Pe(Qf,Gf);var $f=Math.round(Math.random()*10);function ep(e){return[e||``,$f++].join(`_`)}function tp(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Vo(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Vo(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function np(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(V(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),V(u.successor,d?p:f)}V(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return V(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),V(c,function(e){B(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);B(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return V(e,function(e){B(t,e)>=0&&n.push(e)}),n}}function rp(e,t){return L(L({},e,!0),t,!0)}var ip={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},ap={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},op=`ZH`,sp=`EN`,cp=sp,lp={},up={},dp=P.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||cp).toUpperCase().indexOf(op)>-1?op:cp}():cp;function fp(e,t){e=e.toUpperCase(),up[e]=new Qf(t),lp[e]=t}function pp(e){if(K(e)){var t=lp[e.toUpperCase()]||{};return e===op||e===sp?I(t):L(I(t),I(lp[cp]),!1)}return L(I(e),I(lp[cp]),!1)}function mp(e){return up[e]}function hp(){return up[cp]}fp(sp,ip),fp(op,ap);var gp=1e3,_p=gp*60,vp=_p*60,yp=vp*24,bp=yp*365,xp={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`,none:`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`},Sp=`{yyyy}-{MM}-{dd}`,Cp={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Sp,hour:Sp+` `+xp.hour,minute:Sp+` `+xp.minute,second:Sp+` `+xp.second,millisecond:xp.none},wp=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Tp=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Ep(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Dp(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Op(e){return e===Dp(e)}function kp(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Ap(e,t,n,r){var i=qa(e),a=i[Pp(n)](),o=i[Fp(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Ip(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Lp(n)](),d=(u-1)%12+1,f=i[Rp(n)](),p=i[zp(n)](),m=i[Bp(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Qf?r:mp(r||dp)||hp()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Ep(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Ep(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Ep(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Ep(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Ep(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Ep(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Ep(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Ep(m,3)).replace(/{S}/g,m+``)}function jp(e,t,n,r,i){var a=null;if(K(n))a=n;else if(G(n))a=n(e.value,t,{level:e.level});else{var o=R({},xp);if(e.level>0)for(var s=0;s<wp.length;++s)o[wp[s]]=`{primary|`+o[wp[s]]+`}`;var c=n?n.inherit===!1?n:z(n,o):o,l=Mp(e.value,i);if(c[l])a=c[l];else if(c.inherit){for(var s=Tp.indexOf(l)-1;s>=0;--s)if(c[l]){a=c[l];break}a||=o.none}if(W(a)){var u=e.level==null?0:e.level>=0?e.level:a.length+e.level;u=Math.min(u,a.length-1),a=a[u]}}return Ap(new Date(e.value),a,i,r)}function Mp(e,t){var n=qa(e),r=n[Fp(t)]()+1,i=n[Ip(t)](),a=n[Lp(t)](),o=n[Rp(t)](),s=n[zp(t)](),c=n[Bp(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Np(e,t,n){var r=He(e)?qa(e):e;switch(t||=Mp(e,n),t){case`year`:return r[Pp(n)]();case`half-year`:return+(r[Fp(n)]()>=6);case`quarter`:return Math.floor((r[Fp(n)]()+1)/4);case`month`:return r[Fp(n)]();case`day`:return r[Ip(n)]();case`half-day`:return r[Lp(n)]()/24;case`hour`:return r[Lp(n)]();case`minute`:return r[Rp(n)]();case`second`:return r[zp(n)]();case`millisecond`:return r[Bp(n)]()}}function Pp(e){return e?`getUTCFullYear`:`getFullYear`}function Fp(e){return e?`getUTCMonth`:`getMonth`}function Ip(e){return e?`getUTCDate`:`getDate`}function Lp(e){return e?`getUTCHours`:`getHours`}function Rp(e){return e?`getUTCMinutes`:`getMinutes`}function zp(e){return e?`getUTCSeconds`:`getSeconds`}function Bp(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Vp(e){return e?`setUTCFullYear`:`setFullYear`}function Hp(e){return e?`setUTCMonth`:`setMonth`}function Up(e){return e?`setUTCDate`:`setDate`}function Wp(e){return e?`setUTCHours`:`setHours`}function Gp(e){return e?`setUTCMinutes`:`setMinutes`}function Kp(e){return e?`setUTCSeconds`:`setSeconds`}function qp(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Jp(e){if(!Qa(e))return K(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Yp(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Xp=Qe;function Zp(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&et(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?qa(e):e;if(!isNaN(+c))return Ap(c,r,n);if(s)return`-`}if(t===`ordinal`)return Ve(e)?i(e):He(e)&&a(e)?e+``:`-`;var l=Za(e);return a(l)?Jp(l):Ve(e)?i(e):typeof e==`boolean`?e+``:`-`}var Qp=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],$p=function(e,t){return`{`+e+(t??``)+`}`};function em(e,t,n){W(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Qp[a];e=e.replace($p(o),$p(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace($p(Qp[c],s),n?Wt(l):l)}return e}function tm(e,t){var n=K(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+Wt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Wt(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function nm(e,t){return t||=`transparent`,K(e)?e:q(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function rm(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var im=V,am=[`left`,`right`,`top`,`bottom`,`width`,`height`],om=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function sm(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var cm=sm;Be(sm,`vertical`),Be(sm,`horizontal`);function lm(e,t,n){n=Xp(n||0);var r=t.width,i=t.height,a=Q(e.left,r),o=Q(e.top,i),s=Q(e.right,r),c=Q(e.bottom,i),l=Q(e.width,r),u=Q(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new wn(a+n[3],o+n[0],l,u);return m.margin=n,m}function um(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new wn(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=lm(z({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function dm(e){var t=e.layoutMode||e.constructor.layoutMode;return q(t)?t:t?{type:t}:null}function fm(e,t,n){var r=n&&n.ignoreSize;!W(r)&&(r=[r,r]);var i=o(om[0],0),a=o(om[1],1);l(om[0],e,i),l(om[1],e,a);function o(n,i){var a={},o=0,l={},u=0,d=2;if(im(n,function(t){l[t]=e[t]}),im(n,function(e){s(t,e)&&(a[e]=l[e]=t[e]),c(a,e)&&o++,c(l,e)&&u++}),r[i])return c(t,n[1])?l[n[2]]=null:c(t,n[2])&&(l[n[1]]=null),l;if(u===d||!o)return l;if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!s(a,p)&&s(e,p)){a[p]=e[p];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function c(e,t){return e[t]!=null&&e[t]!==`auto`}function l(e,t,n){im(e,function(e){t[e]=n[e]})}}function pm(e){return mm({},e)}function mm(e,t){return t&&e&&im(am,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var hm=Do(),gm=function(e){N(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=ep(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=dm(this),r=n?pm(e):{};L(e,t.getTheme().get(this.mainType)),L(e,this.getDefaultOption()),n&&fm(e,r,n)},t.prototype.mergeOption=function(e,t){L(this.option,e,!0);var n=dm(this);n&&fm(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Uo(e))return e.defaultOption;var t=hm(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=L(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return No(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get(`left`),top:e.get(`top`),right:e.get(`right`),bottom:e.get(`bottom`),width:e.get(`width`),height:e.get(`height`)}},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Qf);Ko(gm,Qf),Zo(gm),tp(gm),np(gm,_m);function _m(e){var t=[];return V(gm.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=H(t,function(e){return Vo(e).main}),e!==`dataset`&&B(t,`dataset`)<=0&&t.unshift(`dataset`),t}var vm=``;typeof navigator<`u`&&(vm=navigator.platform||``);var ym=`rgba(0, 0, 0, 0.2)`,bm={darkMode:`auto`,colorBy:`series`,color:[`#5470c6`,`#91cc75`,`#fac858`,`#ee6666`,`#73c0de`,`#3ba272`,`#fc8452`,`#9a60b4`,`#ea7ccc`],gradientColor:[`#f6efa6`,`#d88273`,`#bf444c`],aria:{decal:{decals:[{color:ym,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ym,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ym,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ym,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ym,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ym,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vm.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},xm=Y([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Sm=`original`,Cm=`arrayRows`,wm=`objectRows`,Tm=`keyedColumns`,Em=`typedArray`,Dm=`unknown`,Om=`column`,km={Must:1,Might:2,Not:3},Am=Do();function jm(e){Am(e).datasetMap=Y()}function Mm(e,t,n){var r={},i=Pm(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Am(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),V(e,function(t,n){var i=q(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});V(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Nm(e,t,n){var r={};if(!Pm(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&V(a,function(e,t){(q(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Lm(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===km.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===km.Not)&&(e.n=c),f(e)&&s[e.n]!==km.Not)return e;d||(u===km.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Pm(e){if(!e.get(`data`,!0))return No(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},jo).models[0]}function Fm(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:No(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},jo).models}function Im(e,t){return Lm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Lm(e,t,n,r,i,a){var o,s=5;if(We(e))return km.Not;var c,l;if(r){var u=r[a];q(u)?(c=u.name,l=u.type):K(u)&&(c=u)}if(l!=null)return l===`ordinal`?km.Must:km.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return km.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return km.Not;var f=_[c];if(!f||We(f))return km.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=lo(g);if(!W(y))return km.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=K(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?km.Might:km.Not;if(t&&e!==`-`)return km.Must}return km.Not}var Rm=Y();function zm(e,t,n){var r=Rm.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Bm=Do();Do();var Vm=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=oo(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Um(this,Bm,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Wm(this,Bm)},e}();function Hm(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Um(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Hm(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Wm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Gm,Km,qm,Jm=`\0_ec_inner`,Ym=1,Xm=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Qf(r),this._locale=new Qf(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=th(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,th(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?qm(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&V(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Y(),s=t&&t.replaceMergeMainTypeMap;jm(this),V(e,function(e,t){e!=null&&(gm.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?I(e):L(n[t],e,!0))}),s&&s.each(function(e,t){gm.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),gm.topologicalTravel(a,gm.getAllClassMainTypes(),c,this);function c(t){var a=zm(this,t,oo(e[t])),o=r.get(t),c=fo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);wo(c,t,gm),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;V(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=gm.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=R({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),R(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Gm(this)}this._seriesIndices||Gm(this)},t.prototype.getOption=function(){var e=I(this.option);return V(e,function(t,n){if(gm.hasClass(n)){for(var r=oo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Co(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Jm],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Le(a,function(e){return!!e}):$m(`name`,i,a):$m(`id`,r,a):(o=[],V(oo(n),function(e){a[e]&&o.push(a[e])})),eh(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(eh(r?this.queryComponents(r):Le(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Le(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(G(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=K(e)?r.get(e):q(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=xo(e,null);return Le(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Le(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Le(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Km(this),V(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){V(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Km(this),V(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return V(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Km(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Km(this);var n=[];V(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},t.prototype.restoreData=function(e){Gm(this);var t=this._componentsMap,n=[];t.each(function(e,t){gm.hasClass(t)&&n.push(t)}),gm.topologicalTravel(n,gm.getAllClassMainTypes(),function(n){V(t.get(n),function(t){t&&(n!==`series`||!Zm(t,e))&&t.restoreData()})})},t.internalField=function(){Gm=function(e){var t=e._seriesIndices=[];V(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Y(t)},Km=function(e){},qm=function(e,t){e.option={},e.option[Jm]=Ym,e._componentsMap=Y({series:[]}),e._componentsCount=Y();var n=t.aria;q(n)&&n.enabled==null&&(n.enabled=!0),Qm(t,e._theme.option),L(t,bm,!1),e._mergeOption(t,null)}}(),t}(Qf);function Zm(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Qm(e,t){var n=e.color&&!e.colorLayer;V(t,function(t,r){r===`colorLayer`&&n||gm.hasClass(r)||(typeof t==`object`?e[r]=e[r]?L(e[r],t,!1):I(t):e[r]??(e[r]=t))})}function $m(e,t,n){if(W(t)){var r=Y();return V(t,function(e){e!=null&&xo(e,null)!=null&&r.set(e,!0)}),Le(n,function(t){return t&&r.get(t[e])})}var i=xo(t,null);return Le(n,function(t){return t&&i!=null&&t[e]===i})}function eh(e,t){return t.hasOwnProperty(`subType`)?Le(e,function(e){return e&&e.subType===t.subType}):e}function th(e){var t=Y();return e&&V(oo(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Pe(Xm,Vm);var nh=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],rh=function(){function e(e){V(nh,function(t){this[t]=U(e[t],e)},this)}return e}(),ih={},ah=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];V(ih,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){V(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){ih[e]=t},e.get=function(e){return ih[e]},e}(),oh=/^(min|max)?(.+)$/,sh=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(V(oo(e.series),function(e){e&&e.data&&We(e.data)&&nt(e.data)}),V(oo(e.dataset),function(e){e&&e.source&&We(e.source)&&nt(e.source)})),e=I(e);var r=this._optionBackup,i=ch(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],I(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=I(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)lh(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!dh(a,this._currentMediaIndices)&&(o=H(a,function(e){return I(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function ch(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&W(l)&&V(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),V(c,function(e){return f(e)}),V(r,function(e){return f(e.option)});function f(e){V(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function lh(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return V(e,function(e,t){var n=t.match(oh);if(!(!n||!n[1]||!n[2])){var a=n[1];uh(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function uh(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function dh(e,t){return e.join(`,`)===t.join(`,`)}var fh=V,ph=q,mh=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function hh(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=mh.length;n<r;n++){var i=mh[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?L(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?L(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function gh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,z(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function _h(e){gh(e,`itemStyle`),gh(e,`lineStyle`),gh(e,`areaStyle`),gh(e,`label`),gh(e,`labelLine`),gh(e,`upperLabel`),gh(e,`edgeLabel`)}function vh(e,t){var n=ph(e)&&e[t],r=ph(n)&&n.textStyle;if(r)for(var i=0,a=co.length;i<a;i++){var o=co[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function yh(e){e&&(_h(e),vh(e,`label`),e.emphasis&&vh(e.emphasis,`label`))}function bh(e){if(ph(e)){hh(e),_h(e),vh(e,`label`),vh(e,`upperLabel`),vh(e,`edgeLabel`),e.emphasis&&(vh(e.emphasis,`label`),vh(e.emphasis,`upperLabel`),vh(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(hh(t),yh(t));var n=e.markLine;n&&(hh(n),yh(n));var r=e.markArea;r&&yh(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!We(a))for(var o=0;o<a.length;o++)yh(a[o]);V(e.categories,function(e){_h(e)})}if(i&&!We(i))for(var o=0;o<i.length;o++)yh(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)yh(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)W(c[o])?(yh(c[o][0]),yh(c[o][1])):yh(c[o]);e.type===`gauge`?(vh(e,`axisLabel`),vh(e,`title`),vh(e,`detail`)):e.type===`treemap`?(gh(e.breadcrumb,`itemStyle`),V(e.levels,function(e){_h(e)})):e.type===`tree`&&_h(e.leaves)}}function xh(e){return W(e)?e:e?[e]:[]}function Sh(e){return(W(e)?e[0]:e)||{}}function Ch(e,t){fh(xh(e.series),function(e){ph(e)&&bh(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),fh(n,function(t){fh(xh(e[t]),function(e){e&&(vh(e,`axisLabel`),vh(e.axisPointer,`label`))})}),fh(xh(e.parallel),function(e){var t=e&&e.parallelAxisDefault;vh(t,`axisLabel`),vh(t&&t.axisPointer,`label`)}),fh(xh(e.calendar),function(e){gh(e,`itemStyle`),vh(e,`dayLabel`),vh(e,`monthLabel`),vh(e,`yearLabel`)}),fh(xh(e.radar),function(e){vh(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),fh(xh(e.geo),function(e){ph(e)&&(yh(e),fh(xh(e.regions),function(e){yh(e)}))}),fh(xh(e.timeline),function(e){yh(e),gh(e,`label`),gh(e,`itemStyle`),gh(e,`controlStyle`,!0);var t=e.data;W(t)&&V(t,function(e){q(e)&&(gh(e,`label`),gh(e,`itemStyle`))})}),fh(xh(e.toolbox),function(e){gh(e,`iconStyle`),fh(e.feature,function(e){gh(e,`iconStyle`)})}),vh(Sh(e.axisPointer),`label`),vh(Sh(e.tooltip).axisPointer,`label`)}function wh(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function Th(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function Eh(e){e&&V(Dh,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Dh=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Oh=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],kh=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Ah(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<kh.length;n++){var r=kh[n][1],i=kh[n][0];t[r]!=null&&(t[i]=t[r])}}function jh(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Mh(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Nh(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function Ph(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Ph(e[n].children,t)}function Fh(e,t){Ch(e,t),e.series=oo(e.series),V(e.series,function(e){if(q(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),jh(e.label);var n=e.data;if(n&&!We(n))for(var r=0;r<n.length;r++)jh(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=wh(e,`pointer.color`);i!=null&&Th(e,`itemStyle.color`,i)}else if(t===`bar`){Ah(e),Ah(e.backgroundStyle),Ah(e.emphasis);var n=e.data;if(n&&!We(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Ah(n[r]),Ah(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Mh(e),Ph(e.data,Mh)}else t===`graph`||t===`sankey`?Nh(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&z(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Eh(e)}}),e.dataRange&&(e.visualMap=e.dataRange),V(Oh,function(t){var n=e[t];n&&(W(n)||(n=[n]),V(n,function(e){Eh(e)}))})}function Ih(e){var t=Y();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.length&&i.setCalculationInfo(`stackedOnSeries`,r[r.length-1].seriesModel),r.push(a)}}),t.each(Lh)}function Lh(e){V(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ua(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Rh=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Im(this,n)===km.Must&&(r.type=`ordinal`)}}return e}();function zh(e){return e instanceof Rh}function Bh(e,t,n){n||=Uh(e);var r=t.seriesLayoutBy,i=Wh(e,n,r,t.sourceHeader,t.dimensions);return new Rh({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:I(t)})}function Vh(e){return new Rh({data:e,sourceFormat:We(e)?Em:Sm})}function Hh(e){return new Rh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:I(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Uh(e){var t=Dm;if(We(e))t=Em;else if(W(e)){e.length===0&&(t=Cm);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(W(i)||We(i)){t=Cm;break}if(q(i)){t=wm;break}}}}else if(q(e)){for(var a in e)if(X(e,a)&&Fe(e[a])){t=Tm;break}}return t}function Wh(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Kh(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?qh(function(e){e!=null&&e!==`-`&&(K(e)?o??=1:o=0)},n,s,10):o=He(r)?r:+!!r,!i&&o===1&&(i=[],qh(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=Gh(e);else if(t===`keyedColumns`)i||(i=[],V(e,function(e,t){i.push(t)}));else if(t===`original`){var c=lo(e[0]);a=W(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Kh(i),dimensionsDetectedCount:a}}function Gh(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Re(n)}function Kh(e){if(e){var t=Y();return H(e,function(e,n){e=q(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function qh(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Jh(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Yh,Xh,Zh,Qh,$h,eg=function(){function e(e,t){var n=zh(e)?e:Vh(e);this._source=n;var r=this._data=n.data;n.sourceFormat===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),$h(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;$h=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Qh[ug(o,s)];R(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=U(rg(o,s),null,i,c,l),e.count=U(og(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Qh=(e={},e[Cm+`_`+Om]={pure:!0,appendData:i},e[Cm+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[wm]={pure:!0,appendData:i},e[Tm]={pure:!0,appendData:function(e){var t=this._data;V(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Sm]={appendData:i},e[Em]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),tg=function(e,t,n,r){return e[r]},ng=(Yh={},Yh[Cm+`_`+Om]=function(e,t,n,r){return e[r+t]},Yh[Cm+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Yh[wm]=tg,Yh[Tm]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},Yh[Sm]=tg,Yh);function rg(e,t){return ng[ug(e,t)]}var ig=function(e,t,n){return e.length},ag=(Xh={},Xh[Cm+`_`+Om]=function(e,t,n){return Math.max(0,e.length-t)},Xh[Cm+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Xh[wm]=ig,Xh[Tm]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},Xh[Sm]=ig,Xh);function og(e,t){return ag[ug(e,t)]}var sg=function(e,t,n){return e[t]},cg=(Zh={},Zh[Cm]=sg,Zh[wm]=function(e,t,n){return e[n]},Zh[Tm]=sg,Zh[Sm]=function(e,t,n){var r=lo(e);return r instanceof Array?r[t]:r},Zh[Em]=sg,Zh);function lg(e){return cg[e]}function ug(e,t){return e===`arrayRows`?e+`_`+t:e}function dg(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return lg(a)(r,o,s)}var c=r;return a===`original`&&(c=lo(r)),c}}}var fg=/\{@(.+?)\}/g,pg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&W(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),G(i))return s.status=t,s.dimensionIndex=r,i(s);if(K(i))return em(i,s).replace(fg,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=dg(o,e,i);if(a&&W(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return dg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function mg(e){var t,n;return q(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function hg(e){return new gg(e)}var gg=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(W(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){_g.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:_g.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),W(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),_g=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function vg(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!He(e)&&e!=null&&e!==`-`&&(e=+qa(e)),e==null||e===``?NaN:Number(e))}Y({number:function(e){return parseFloat(e)},time:function(e){return+qa(e)},trim:function(e){return K(e)?et(e):e}});var yg={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){He(t)||no(``),this._opFn=yg[e],this._rvalFloat=Za(t)}return e.prototype.evaluate=function(e){return He(e)?this._opFn(e,this._rvalFloat):this._opFn(Za(e),this._rvalFloat)},e})();var bg=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=He(e)?e:Za(e),r=He(t)?t:Za(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=K(e),s=K(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Za(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Za(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();var xg=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return vg(e,t)},e}();function Sg(e,t){var n=new xg,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&no(``);var o=[],s={},c=e.dimensionsDefine;if(c)V(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(X(s,n)&&no(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=rg(i,Om);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=U(Cg,null,e)),n.cloneRawData=U(wg,null,e),n.count=U(og(i,Om),null,r,a,o);var d=lg(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=U(Tg,null,o,s),n.cloneAllDimensionInfo=U(Eg,null,o),n}function Cg(e){var t=e.sourceFormat;return jg(t)||no(``),e.data}function wg(e){var t=e.sourceFormat,n=e.data;if(jg(t)||no(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(R({},n[i]));return r}}function Tg(e,t,n){if(n!=null){if(He(n)||!isNaN(n)&&!X(t,n))return e[n];if(X(t,n))return t[n]}}function Eg(e){return I(e)}var Dg=Y();function Og(e){e=I(e);var t=e.type,n=``;t||no(n);var r=t.split(`:`);r.length!==2&&no(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Dg.set(t,e)}function kg(e,t,n){var r=oo(e),i=r.length;i||no(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Ag(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Ag(e,t,n,r){var i=``;t.length||no(i),q(e)||no(i);var a=e.type,o=Dg.get(a);o||no(i);var s=H(t,function(e){return Sg(e,o)});return H(oo(o.transform({upstream:s[0],upstreamList:s,config:I(e.config)})),function(e,n){var r=``;q(e)||no(r),e.data||no(r),jg(Uh(e.data))||no(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Om,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Om,sourceHeader:0,dimensions:e.dimensions};return Bh(e.data,i,null)})}function jg(e){return e===`arrayRows`||e===`objectRows`}var Mg=`undefined`,Ng=typeof Uint32Array===Mg?Array:Uint32Array,Pg=typeof Uint16Array===Mg?Array:Uint16Array,Fg=typeof Int32Array===Mg?Array:Int32Array,Ig=typeof Float64Array===Mg?Array:Float64Array,Lg={float:Ig,int:Fg,ordinal:Array,number:Array,time:Ig},Rg;function zg(e){return e>65535?Ng:Pg}function Bg(){return[1/0,-1/0]}function Vg(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Hg(e,t,n,r,i){var a=Lg[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Ug=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Rg[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Jh(r),this._dimensions=H(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Lg[t||`float`](this._rawCount),this._rawExtent[i]=Bg(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=Bg());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Hg(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Rg.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=H(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Bg()),Hg(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;n??=1/0;for(var a=1/0,o=-1,s=0,c=0,l=this.count();c<l;c++){var u=t-r[this.getRawIndex(c)],d=Math.abs(u);d<=n&&((d<a||d===a&&u>=0&&o<0)&&(a=d,o=u,s=0),u===o&&(i[s++]=c))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=zg(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(zg(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Re(e),i=r.length;if(!i)return this;var a=t.count(),o=new(zg(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Bg();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(zg(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(zg(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=Bg(),d=new(zg(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Bg();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Ie(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Vg(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=I(this._extent),e._rawExtent=I(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return vg(e[r],this._dimensions[r])}Rg={arrayRows:e,objectRows:function(e,t,n,r){return vg(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return vg(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Wg=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Gg(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=We(o)?Em:Sm,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=J(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=J(u.sourceHeader,d.sourceHeader),m=J(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Bh(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Bh(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Kg(``);var i,a=[],o=[];return V(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Kg(``),a.push(t),o.push(e._getVersionSign())}),n?i=kg(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Hh(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Gg(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Ug,o.initData(new eg(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Gg(e)){var t=Pm(e);return t?[t.getSourceManager()]:[]}return H(Fm(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Gg(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Gg(e){return e.mainType===`series`}function Kg(e){throw Error(e)}var qg=`line-height:1`;function Jg(e){var t=e.lineHeight;return t==null?qg:`line-height:`+Wt(t+``)+`px`}function Yg(e,t){var n=e.color||`#6e7079`,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||`#464646`,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Wt(r+``)+`px;color:`+Wt(n)+`;font-weight:`+Wt(i+``),valueStyle:`font-size:`+Wt(o+``)+`px;color:`+Wt(a)+`;font-weight:`+Wt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Xg=[0,10,20,30],Zg=[``,`
|
|
8
|
+
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var p=ia(f,t),m=!r&&!ys(f);if(a.length?u+p>n:i+u+p>n){u?(s||c)&&(m?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=f,l+=p,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=f,u=p)):m?(a.push(c),o.push(l),c=f,l=p):(a.push(f),o.push(p));continue}u+=p,m?(c+=f,l+=p):(c&&(s+=c,c=``,l=0),s+=f)}return!a.length&&!s&&(s=e,c=``,l=0),c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}var xs=`__zr_style_`+Math.round(Math.random()*10),Ss={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Cs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ss[xs]=!0;var ws=[`z`,`z2`,`invisible`],Ts=[`invisible`],Es=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=Re(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ks(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new wn(0,0,0,0),t?wn.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new wn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:R(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return lt(Ss,e)},t.prototype.useStyle=function(e){e[xs]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[xs]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,ws)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c){if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=Re(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=Re(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c)}for(var m=this.__inHover?Ts:ws,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return R(e,t),e},t.prototype.getAnimationStyleProps=function(){return Cs},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(_a),Ds=new wn(0,0,0,0),Os=new wn(0,0,0,0);function ks(e,t,n){return Ds.copy(e.getBoundingRect()),e.transform&&Ds.applyTransform(e.transform),Os.width=t,Os.height=n,!Ds.intersect(Os)}var As=Math.min,js=Math.max,Ms=Math.sin,Ns=Math.cos,Ps=Math.PI*2,Fs=pt(),Is=pt(),Ls=pt();function Rs(e,t,n,r,i,a){i[0]=As(e,n),i[1]=As(t,r),a[0]=js(e,n),a[1]=js(t,r)}var zs=[],Bs=[];function Vs(e,t,n,r,i,a,o,s,c,l){var u=fr,d=lr,f=u(e,n,i,o,zs);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,zs[p]);c[0]=As(m,c[0]),l[0]=js(m,l[0])}f=u(t,r,a,s,Bs);for(var p=0;p<f;p++){var h=d(t,r,a,s,Bs[p]);c[1]=As(h,c[1]),l[1]=js(h,l[1])}c[0]=As(e,c[0]),l[0]=js(e,l[0]),c[0]=As(o,c[0]),l[0]=js(o,l[0]),c[1]=As(t,c[1]),l[1]=js(t,l[1]),c[1]=As(s,c[1]),l[1]=js(s,l[1])}function Hs(e,t,n,r,i,a,o,s){var c=yr,l=gr,u=js(As(c(e,n,i),1),0),d=js(As(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=As(e,i,f),o[1]=As(t,a,p),s[0]=js(e,i,f),s[1]=js(t,a,p)}function Us(e,t,n,r,i,a,o,s,c){var l=Dt,u=Ot,d=Math.abs(i-a);if(d%Ps<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Fs[0]=Ns(i)*n+e,Fs[1]=Ms(i)*r+t,Is[0]=Ns(a)*n+e,Is[1]=Ms(a)*r+t,l(s,Fs,Is),u(c,Fs,Is),i%=Ps,i<0&&(i+=Ps),a%=Ps,a<0&&(a+=Ps),i>a&&!o?a+=Ps:i<a&&o&&(i+=Ps),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Ls[0]=Ns(p)*n+e,Ls[1]=Ms(p)*r+t,l(s,Ls,s),u(c,Ls,c))}var Ws={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Gs=[],Ks=[],qs=[],Js=[],Ys=[],Xs=[],Zs=Math.min,Qs=Math.max,$s=Math.cos,ec=Math.sin,tc=Math.abs,nc=Math.PI,rc=nc*2,ic=typeof Float32Array<`u`,ac=[];function oc(e){return Math.round(e/nc*1e8)/1e8%2*nc}function sc(e,t){var n=oc(e[0]);n<0&&(n+=rc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=rc?i=n+rc:t&&n-i>=rc?i=n-rc:!t&&n>i?i=n+(rc-oc(n-i)):t&&n<i&&(i=n-(rc-oc(i-n))),e[0]=n,e[1]=i}var cc=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=tc(n/Hi/e)||0,this._uy=tc(n/Hi/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ws.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=tc(e-this._xi),r=tc(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Ws.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Ws.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Ws.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),ac[0]=r,ac[1]=i,sc(ac,a),r=ac[0],i=ac[1];var o=i-r;return this.addData(Ws.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=$s(i)*n+e,this._yi=ec(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Ws.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ws.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&ic&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();ic&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ic&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){qs[0]=qs[1]=Ys[0]=Ys[1]=Number.MAX_VALUE,Js[0]=Js[1]=Xs[0]=Xs[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Ws.M:t=r=e[a++],n=i=e[a++],Ys[0]=r,Ys[1]=i,Xs[0]=r,Xs[1]=i;break;case Ws.L:Rs(t,n,e[a],e[a+1],Ys,Xs),t=e[a++],n=e[a++];break;case Ws.C:Vs(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Ys,Xs),t=e[a++],n=e[a++];break;case Ws.Q:Hs(t,n,e[a++],e[a++],e[a],e[a+1],Ys,Xs),t=e[a++],n=e[a++];break;case Ws.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=$s(f)*u+c,i=ec(f)*d+l),Us(c,l,u,d,f,p,m,Ys,Xs),t=$s(p)*u+c,n=ec(p)*d+l;break;case Ws.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Rs(r,i,r+h,i+g,Ys,Xs);break;case Ws.Z:t=r,n=i}Dt(qs,qs,Ys),Ot(Js,Js,Xs)}return a===0&&(qs[0]=qs[1]=Js[0]=Js[1]=0),new wn(qs[0],qs[1],Js[0]-qs[0],Js[1]-qs[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Ws.M:i=o=e[d++],a=s=e[d++];break;case Ws.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(tc(_)>n||tc(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Ws.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=hr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Ws.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Sr(i,a,y,b,h,g,10),i=h,a=g;break;case Ws.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=$s(D)*T+C,s=ec(D)*E+w),m=Qs(T,E)*Zs(rc,Math.abs(O)),i=$s(k)*T+C,a=ec(k)*E+w;break;case Ws.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Ws.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Ws.L&&v>0&&(e.lineTo(y,b),v=0),S){case Ws.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Ws.L:u=n[x++],d=n[x++];var w=tc(u-c),T=tc(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Ws.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],te=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;pr(c,k,j,M,D,Gs),pr(l,A,ee,te,D,Ks),e.bezierCurveTo(Gs[1],Ks[1],Gs[2],Ks[2],Gs[3],Ks[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,te),c=M,l=te;break;case Ws.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;br(c,k,j,D,Gs),br(l,A,ee,D,Ks),e.quadraticCurveTo(Gs[1],Ks[1],Gs[2],Ks[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Ws.A:var ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,N=tc(ie-ae)>.001,de=oe+se,P=!1;if(f){var E=p[g++];h+E>_&&(de=oe+se*(_-h)/E,P=!0),h+=E}if(N&&e.ellipse?e.ellipse(ne,re,ie,ae,ce,oe,de,le):e.arc(ne,re,ue,oe,de,le),P)break lo;C&&(o=$s(oe)*ie+ne,s=ec(oe)*ae+re),c=$s(de)*ie+ne,l=ec(de)*ae+re;break;case Ws.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var F=n[x++],fe=n[x++];if(f){var E=p[g++];if(h+E>_){var pe=_-h;e.moveTo(u,d),e.lineTo(u+Zs(pe,F),d),pe-=F,pe>0&&e.lineTo(u+F,d+Zs(pe,fe)),pe-=fe,pe>0&&e.lineTo(u+Qs(F-pe,0),d+fe),pe-=F,pe>0&&e.lineTo(u,d+Qs(fe-pe,0));break lo}h+=E}e.rect(u,d,F,fe);break;case Ws.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Ws,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function lc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function uc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:mr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function dc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:xr(e,t,n,r,i,a,s,c,null)<=l/2}var fc=Math.PI*2;function pc(e){return e%=fc,e<0&&(e+=fc),e}var mc=Math.PI*2;function hc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%mc<1e-4)return!0;if(a){var d=r;r=pc(i),i=pc(d)}else r=pc(r),i=pc(i);r>i&&(i+=mc);var f=Math.atan2(c,s);return f<0&&(f+=mc),f>=r&&f<=i||f+mc>=r&&f+mc<=i}function gc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var _c=cc.CMD,vc=Math.PI*2,yc=1e-4;function bc(e,t){return Math.abs(e-t)<yc}var xc=[-1,-1,-1],Sc=[-1,-1];function Cc(){var e=Sc[0];Sc[0]=Sc[1],Sc[1]=e}function wc(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=dr(t,r,a,s,l,xc);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=xc[h],_=g===0||g===1?.5:1;lr(e,n,i,o,g)<c||(f<0&&(f=fr(t,r,a,s,Sc),Sc[1]<Sc[0]&&f>1&&Cc(),p=lr(t,r,a,s,Sc[0]),f>1&&(m=lr(t,r,a,s,Sc[1]))),f===2?g<Sc[0]?d+=p<t?_:-_:g<Sc[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Sc[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Tc(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=vr(t,r,a,s,xc);if(c===0)return 0;var l=yr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=gr(t,r,a,l),f=0;f<c;f++){var p=xc[f]===0||xc[f]===1?.5:1,m=gr(e,n,i,xc[f]);m<o||(xc[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=xc[0]===0||xc[0]===1?.5:1,m=gr(e,n,i,xc[0]);return m<o?0:a<t?p:-p}function Ec(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);xc[0]=-c,xc[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=vc-1e-4){r=0,i=vc;var u=a?1:-1;return o>=xc[0]+e&&o<=xc[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=vc,i+=vc);for(var f=0,p=0;p<2;p++){var m=xc[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=vc+h),(h>=r&&h<=i||h+vc>=r&&h+vc<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Dc(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===_c.M&&m>1&&(n||(s+=gc(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case _c.M:u=a[m++],d=a[m++],c=u,l=d;break;case _c.L:if(n){if(lc(c,l,a[m],a[m+1],t,r,i))return!0}else s+=gc(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case _c.C:if(n){if(uc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=wc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case _c.Q:if(n){if(dc(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Tc(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case _c.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=gc(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(hc(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Ec(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case _c.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(lc(u,d,f,d,t,r,i)||lc(f,d,f,p,t,r,i)||lc(f,p,u,p,t,r,i)||lc(u,p,u,d,t,r,i))return!0}else s+=gc(f,d,f,p,r,i),s+=gc(u,p,u,d,r,i);break;case _c.Z:if(n){if(lc(c,l,u,d,t,r,i))return!0}else s+=gc(c,l,u,d,r,i);c=u,l=d}}return!n&&!bc(l,d)&&(s+=gc(c,l,u,d,r,i)||0),s!==0}function Oc(e,t,n){return Dc(e,0,!1,t,n)}function kc(e,t,n,r){return Dc(e,t,!0,n,r)}var Ac=z({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ss),jc={style:z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Cs.style)},Mc=ta.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Nc=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Mc.length;++s)i[Mc[s]]=this[Mc[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Re(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?R(this.style,o):this.useStyle(o):a===`shape`?R(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(K(e)){var t=Kr(e,0);return t>.5?Wi:t>.2?Ki:Gi}if(e)return Gi}return Wi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(K(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Kr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new cc(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),kc(a,o/s,e,t)))return!0}if(this.hasFill())return Oc(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:R(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return lt(Ac,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=R({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=R({},r.shape),R(c,n.shape)):(c=R({},i?this.shape:r.shape),R(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=R({},this.shape);for(var l={},u=Re(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return jc},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){N(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return I(e.style)},n.prototype.getDefaultShape=function(){return I(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Es),Pc=z({strokeFirst:!0,font:fe,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ac),Fc=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return lt(Pc,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;t==null?t=``:t+=``;var n=oa(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Es);Fc.prototype.type=`tspan`;var Ic=z({x:0,y:0},Ss),Lc={style:z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Cs.style)};function Rc(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var zc=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return lt(Ic,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Rc(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Lc},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new wn(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Es);zc.prototype.type=`image`;function Bc(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Vc=Math.round;function Hc(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Vc(r*2)===Vc(i*2)&&(e.x1=e.x2=Wc(r,s,!0)),Vc(a*2)===Vc(o*2)&&(e.y1=e.y2=Wc(a,s,!0)),e):e}}function Uc(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Wc(r,s,!0),e.y=Wc(i,s,!0),e.width=Math.max(Wc(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wc(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Wc(e,t,n){if(!t)return e;var r=Vc(e*2);return(r+Vc(t))%2==0?r/2:(r+(n?1:-1))/2}var Gc=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Kc={},qc=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Gc},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Uc(Kc,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Bc(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Nc);qc.prototype.type=`rect`;var Jc={fill:`#000`},Yc=2,Xc={style:z({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Cs.style)},Zc=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Jc,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,il(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new wn(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Jc},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return R(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Re(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},R(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Xc},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=ds(ll(e),e),i=ul(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,c=r.contentWidth,l=r.lines,u=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var f=e.x||0,p=e.y||0,m=e.align||d.align||`left`,h=e.verticalAlign||d.verticalAlign||`top`,g=f,_=ca(p,r.contentHeight,h);if(i||n){var v=sa(f,s,m),y=ca(p,o,h);i&&this._renderBackground(e,e,v,y,s,o)}_+=u/2,n&&(g=cl(f,m,n),h===`top`?_+=n[0]:h===`bottom`&&(_-=n[2]));for(var b=0,x=!1,S=sl(`fill`in e?e.fill:(x=!0,d.fill)),C=ol(`stroke`in e?e.stroke:!a&&(!d.autoStroke||x)?(b=Yc,d.stroke):null),w=e.textShadowBlur>0,T=e.width!=null&&(e.overflow===`truncate`||e.overflow===`break`||e.overflow===`breakAll`),E=r.calculatedLineHeight,D=0;D<l.length;D++){var O=this._getOrCreateChild(Fc),k=O.createStyle();O.useStyle(k),k.text=l[D],k.x=g,k.y=_,m&&(k.textAlign=m),k.textBaseline=`middle`,k.opacity=e.opacity,k.strokeFirst=!0,w&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||`transparent`,k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=C,k.fill=S,C&&(k.lineWidth=e.lineWidth||b,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=t,nl(k,e),_+=u,T&&O.setBoundingRect(new wn(sa(k.x,c,k.textAlign),ca(k.y,E,k.textBaseline),c,E))}},t.prototype._updateRichTexts=function(){var e=this.style,t=hs(ll(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,c=this._defaultStyle,l=e.align||c.align,u=e.verticalAlign||c.verticalAlign;this.isTruncated=!!t.isTruncated;var d=sa(o,r,l),f=ca(s,i,u),p=d,m=f;a&&(p+=a[3],m+=a[0]);var h=p+n;ul(e)&&this._renderBackground(e,e,d,f,r,i);for(var g=!!e.backgroundColor,_=0;_<t.lines.length;_++){for(var v=t.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(n-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ul(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=cl(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Fc),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=sl(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),v=ol(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Yc,m.stroke):null),y=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,y&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=Xe(s.opacity,t.opacity,1),nl(p,s),v&&(p.lineWidth=Xe(s.lineWidth,t.lineWidth,g),p.lineDash=J(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),_&&(p.fill=_);var b=e.contentWidth,x=e.contentHeight;f.setBoundingRect(new wn(sa(p.x,b,p.textAlign),ca(p.y,x,p.textBaseline),b,x))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(qc),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=J(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(zc),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=J(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Xe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return rl(e)&&(t=[e.fontStyle,e.fontWeight,tl(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&et(t)||e.textFont||e.font},t}(Es),Qc={left:!0,right:1,center:1},$c={top:1,bottom:1,middle:1},el=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function tl(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function nl(e,t){for(var n=0;n<el.length;n++){var r=el[n],i=t[r];i!=null&&(e[r]=i)}}function rl(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function il(e){return al(e),V(e.rich,al),e}function al(e){if(e){e.font=Zc.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Qc[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||$c[n]?n:`top`,e.padding&&=Qe(e.padding)}}function ol(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function sl(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function cl(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function ll(e){var t=e.text;return t!=null&&(t+=``),t}function ul(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var $=Do(),dl=function(e,t,n,r){if(r){var i=$(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=$(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},fl=1,pl={},ml=Do(),hl=Do(),gl=[`emphasis`,`blur`,`select`],_l=[`normal`,`emphasis`,`blur`,`select`],vl=`highlight`,yl=`downplay`,bl=`select`,xl=`unselect`,Sl=`toggleSelect`;function Cl(e){return e!=null&&e!==`none`}function wl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Tl(e){wl(e,`emphasis`,2)}function El(e){e.hoverState===2&&wl(e,`normal`,0)}function Dl(e){wl(e,`blur`,1)}function Ol(e){e.hoverState===1&&wl(e,`normal`,0)}function kl(e){e.selected=!0}function Al(e){e.selected=!1}function jl(e,t,n){t(e,n)}function Ml(e,t,n){jl(e,t,n),e.isGroup&&e.traverse(function(e){jl(e,t,n)})}function Nl(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Pl(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Fl(e,t,n,r){var i=n&&B(n,`select`)>=0,a=!1;if(e instanceof Nc){var o=ml(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Cl(s)||Cl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=R({},r),l=R({},l),l.fill=s):!Cl(l.fill)&&Cl(s)?(a=!0,r=R({},r),l=R({},l),l.fill=Jr(s)):!Cl(l.stroke)&&Cl(c)&&(a||(r=R({},r),l=R({},l)),l.stroke=Jr(c)),r.style=l}}if(r&&r.z2==null){a||(r=R({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Il(e,t,n){if(n&&n.z2==null){n=R({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Ll(e,t,n){var r=B(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Pl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=R({},n),o=R({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Rl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Fl(this,e,t,n);if(e===`blur`)return Ll(this,e,n);if(e===`select`)return Il(this,e,n)}return n}function zl(e){e.stateProxy=Rl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Rl),n&&(n.stateProxy=Rl)}function Bl(e,t){!Jl(e,t)&&!e.__highByOuter&&Ml(e,Tl)}function Vl(e,t){!Jl(e,t)&&!e.__highByOuter&&Ml(e,El)}function Hl(e,t){e.__highByOuter|=1<<(t||0),Ml(e,Tl)}function Ul(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ml(e,El)}function Wl(e){Ml(e,Dl)}function Gl(e){Ml(e,Ol)}function Kl(e){Ml(e,kl)}function ql(e){Ml(e,Al)}function Jl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Yl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=hl(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){Ol(e)}),o&&n.push(i)),a.isBlured=!1}),V(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Xl(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Gl(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Dl(e)}),Fe(t))a(e.getData(),t);else if(q(t))for(var u=Re(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),hl(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Zl(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){hl(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Dl(e)})}}}function Ql(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Eo(i,t);a=(W(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=$(o);Xl(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Xl(r,u,d,n)}}}function $l(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if($(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function eu(e,t,n){var r=$(e),i=$l(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Zl(r.componentMainType,r.componentIndex,n),V(a,function(e){return Bl(e,t)})):(Xl(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Zl(r.componentMainType,r.componentIndex,n),Bl(e,t))}function tu(e,t,n){Yl(n);var r=$(e),i=$l(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?V(i,function(e){return Vl(e,t)}):Vl(e,t)}function nu(e,t,n){if(hu(t)){var r=t.dataType,i=Eo(e.getData(r),t);W(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function ru(e){V(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Kl(t):ql(t)})})}function iu(e){var t=[];return e.eachSeries(function(e){V(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function au(e,t,n){fu(e,!0),Ml(e,zl),cu(e,t,n)}function ou(e){fu(e,!1)}function su(e,t,n,r){r?ou(e):au(e,t,n)}function cu(e,t,n){var r=$(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var lu=[`emphasis`,`blur`,`select`],uu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function du(e,t,n,r){n||=`itemStyle`;for(var i=0;i<lu.length;i++){var a=lu[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[uu[n]]()}}function fu(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function pu(e){return!!(e&&e.__highDownDispatcher)}function mu(e){var t=pl[e];return t==null&&fl<=32&&(t=pl[e]=fl++),t}function hu(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function gu(e){var t=e.type;return t===`highlight`||t===`downplay`}function _u(e){var t=ml(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var vu=cc.CMD,yu=[[],[],[]],bu=Math.sqrt,xu=Math.atan2;function Su(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=vu.M,d=vu.C,f=vu.L,p=vu.R,m=vu.A,h=vu.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=bu(t[0]*t[0]+t[1]*t[1]),y=bu(t[2]*t[2]+t[3]*t[3]),b=xu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Et(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Et(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=yu[c];x[0]=n[o++],x[1]=n[o++],Et(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Cu=Math.sqrt,wu=Math.sin,Tu=Math.cos,Eu=Math.PI;function Du(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ou(e,t){return(e[0]*t[0]+e[1]*t[1])/(Du(e)*Du(t))}function ku(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ou(e,t))}function Au(e,t,n,r,i,a,o,s,c,l,u){var d=Eu/180*c,f=Tu(d)*(e-n)/2+wu(d)*(t-r)/2,p=-1*wu(d)*(e-n)/2+Tu(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Cu(m),s*=Cu(m));var h=(i===a?-1:1)*Cu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Tu(d)*g-wu(d)*_,y=(t+r)/2+wu(d)*g+Tu(d)*_,b=ku([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=ku(x,S);if(Ou(x,S)<=-1&&(C=Eu),Ou(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Eu*1e6)/1e6;C=Eu*2+w%2*Eu}u.addData(l,v,y,o,s,b,C,d,a)}var ju=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Mu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Nu(e){var t=new cc;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=cc.CMD,c=e.match(ju);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Mu)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Au(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Au(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Pu=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Nc);function Fu(e){return e.setData!=null}function Iu(e,t){var n=Nu(e),r=R({},t);return r.buildPath=function(e){if(Fu(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){Su(n,e),this.dirtyShape()},r}function Lu(e,t){return new Pu(Iu(e,t))}function Ru(e,t){var n=Iu(e,t);return function(e){N(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Pu)}function zu(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Nc(t);return o.createPathProxy(),o.buildPath=function(e){if(Fu(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Bu=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Vu=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Bu},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Nc);Vu.prototype.type=`circle`;var Hu=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Uu=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Hu},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Nc);Uu.prototype.type=`ellipse`;var Wu=Math.PI,Gu=Wu*2,Ku=Math.sin,qu=Math.cos,Ju=Math.acos,Yu=Math.atan2,Xu=Math.abs,Zu=Math.sqrt,Qu=Math.max,$u=Math.min,ed=1e-4;function td(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<ed))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function nd(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Zu(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Zu(Qu(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function rd(e){var t;if(W(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function id(e,t){var n,r=Qu(t.r,0),i=Qu(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Xu(c-s),p=f>Gu&&f%Gu;if(p>ed&&(f=p),!(r>ed))e.moveTo(l,u);else if(f>Gu-ed)e.moveTo(l+r*qu(s),u+r*Ku(s)),e.arc(l,u,r,s,c,!d),i>ed&&(e.moveTo(l+i*qu(c),u+i*Ku(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*qu(s),j=r*Ku(s),ee=i*qu(c),M=i*Ku(c),te=f>ed;if(te){var ne=t.cornerRadius;ne&&(n=rd(ne),m=n[0],h=n[1],g=n[2],_=n[3]);var re=Xu(r-i)/2;if(v=$u(re,g),y=$u(re,_),b=$u(re,m),x=$u(re,h),w=S=Qu(v,y),T=C=Qu(b,x),(S>ed||C>ed)&&(E=r*qu(c),D=r*Ku(c),O=i*qu(s),k=i*Ku(s),f<Wu)){var ie=td(A,j,O,k,E,D,ee,M);if(ie){var ae=A-ie[0],oe=j-ie[1],se=E-ie[0],ce=D-ie[1],le=1/Ku(Ju((ae*se+oe*ce)/(Zu(ae*ae+oe*oe)*Zu(se*se+ce*ce)))/2),ue=Zu(ie[0]*ie[0]+ie[1]*ie[1]);w=$u(S,(r-ue)/(le+1)),T=$u(C,(i-ue)/(le-1))}}}if(!te)e.moveTo(l+A,u+j);else if(w>ed){var N=$u(g,w),de=$u(_,w),P=nd(O,k,A,j,r,N,d),F=nd(E,D,ee,M,r,de,d);e.moveTo(l+P.cx+P.x0,u+P.cy+P.y0),w<S&&N===de?e.arc(l+P.cx,u+P.cy,w,Yu(P.y0,P.x0),Yu(F.y0,F.x0),!d):(N>0&&e.arc(l+P.cx,u+P.cy,N,Yu(P.y0,P.x0),Yu(P.y1,P.x1),!d),e.arc(l,u,r,Yu(P.cy+P.y1,P.cx+P.x1),Yu(F.cy+F.y1,F.cx+F.x1),!d),de>0&&e.arc(l+F.cx,u+F.cy,de,Yu(F.y1,F.x1),Yu(F.y0,F.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>ed)||!te)e.lineTo(l+ee,u+M);else if(T>ed){var N=$u(m,T),de=$u(h,T),P=nd(ee,M,E,D,i,-de,d),F=nd(A,j,O,k,i,-N,d);e.lineTo(l+P.cx+P.x0,u+P.cy+P.y0),T<C&&N===de?e.arc(l+P.cx,u+P.cy,T,Yu(P.y0,P.x0),Yu(F.y0,F.x0),!d):(de>0&&e.arc(l+P.cx,u+P.cy,de,Yu(P.y0,P.x0),Yu(P.y1,P.x1),!d),e.arc(l,u,i,Yu(P.cy+P.y1,P.cx+P.x1),Yu(F.cy+F.y1,F.cx+F.x1),d),N>0&&e.arc(l+F.cx,u+F.cy,N,Yu(F.y1,F.x1),Yu(F.y0,F.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var ad=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),od=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){id(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Nc);od.prototype.type=`sector`;var sd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),cd=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new sd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Nc);cd.prototype.type=`ring`;function ld(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Dt(u,u,e[f]),Ot(d,d,e[f]);Dt(u,u,r[0]),Ot(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(mt(e[f]));continue}else c=e[f-1],l=e[f+1];gt(a,l,c),yt(a,a,t);var h=xt(m,c),g=xt(m,l),_=h+g;_!==0&&(h/=_,g/=_),yt(o,a,-h),yt(s,a,g);var v=ht([],m,o),y=ht([],m,s);r&&(Ot(v,v,u),Dt(v,v,d),Ot(y,y,u),Dt(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function ud(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=ld(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var dd=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),fd=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new dd},t.prototype.buildPath=function(e,t){ud(e,t,!0)},t}(Nc);fd.prototype.type=`polygon`;var pd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),md=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new pd},t.prototype.buildPath=function(e,t){ud(e,t,!1)},t}(Nc);md.prototype.type=`polyline`;var hd={},gd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),_d=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new gd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Hc(hd,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Nc);_d.prototype.type=`line`;var vd=[],yd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function bd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?ur:lr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?ur:lr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?_r:gr)(e.x1,e.cpx1,e.x2,t),(n?_r:gr)(e.y1,e.cpy1,e.y2,t)]}var xd=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new yd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(br(n,o,i,u,vd),o=vd[1],i=vd[2],br(r,s,a,u,vd),s=vd[1],a=vd[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(pr(n,o,c,i,u,vd),o=vd[1],c=vd[2],i=vd[3],pr(r,s,l,a,u,vd),s=vd[1],l=vd[2],a=vd[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return bd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=bd(this.shape,e,!0);return bt(t,t)},t}(Nc);xd.prototype.type=`bezier-curve`;var Sd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Cd=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Sd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Nc);Cd.prototype.type=`arc`;var wd=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Nc.prototype.getBoundingRect.call(this)},t}(Nc),Td=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Ed=function(e){N(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Td),Dd=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Td),Od=[0,0],kd=[0,0],Ad=new Z,jd=new Z,Md=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Z;for(var n=0;n<2;n++)this._axes[n]=new Z;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Z.sub(r[0],n[1],n[0]),Z.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Ad.set(1/0,1/0),jd.set(0,0),!this._intersectCheckOneSide(this,e,Ad,jd,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Ad,jd,r,-1)&&(n=!1,r)||r||Z.copy(t,n?Ad:jd),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var c=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Od),this._getProjMinMaxOnAxis(s,t._corners,kd),Od[1]<kd[0]||Od[0]>kd[1]){if(o=!1,i)return o;var l=Math.abs(kd[0]-Od[1]),u=Math.abs(Od[0]-kd[1]);Math.min(l,u)>r.len()&&(l<u?Z.scale(r,c,-l*a):Z.scale(r,c,u*a))}else if(n){var l=Math.abs(kd[0]-Od[1]),u=Math.abs(Od[0]-kd[1]);Math.min(l,u)<n.len()&&(l<u?Z.scale(n,c,l*a):Z.scale(n,c,-u*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Math.min(l,o),s=Math.max(l,s)}n[0]=o,n[1]=s},e}(),Nd=[],Pd=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new wn(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Nd)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Es),Fd=Do();function Id(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=J(r.duration,200),u=J(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),G(d)&&(d=d(n,i)),G(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function Ld(e,t,n,r,i,a,o){var s=!1,c;G(i)?(o=a,a=i,i=null):q(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Id(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Rd(e,t,n,r,i,a){Ld(`update`,e,t,n,r,i,a)}function zd(e,t,n,r,i,a){Ld(`enter`,e,t,n,r,i,a)}function Bd(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Vd(e,t,n,r,i,a){Bd(e)||Ld(`leave`,e,t,n,r,i,a)}function Hd(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Vd(e,{style:{opacity:0}},t,n,r)}function Ud(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Hd(e,t,n,r)}):Hd(e,t,n,r)}function Wd(e){Fd(e).oldStyle=e.style}var Gd=e({Arc:()=>Cd,BezierCurve:()=>xd,BoundingRect:()=>wn,Circle:()=>Vu,CompoundPath:()=>wd,Ellipse:()=>Uu,Group:()=>Ta,Image:()=>zc,IncrementalDisplayable:()=>Pd,Line:()=>_d,LinearGradient:()=>Ed,OrientedBoundingRect:()=>Md,Path:()=>Nc,Point:()=>Z,Polygon:()=>fd,Polyline:()=>md,RadialGradient:()=>Dd,Rect:()=>qc,Ring:()=>cd,Sector:()=>od,Text:()=>Zc,applyTransform:()=>uf,clipPointsByRect:()=>hf,clipRectByRect:()=>gf,createIcon:()=>_f,extendPath:()=>Zd,extendShape:()=>Yd,getShapeClass:()=>$d,getTransform:()=>lf,groupTransition:()=>mf,initProps:()=>zd,isElementRemoved:()=>Bd,lineLineIntersect:()=>yf,linePolygonIntersect:()=>vf,makeImage:()=>tf,makePath:()=>ef,mergePath:()=>rf,registerShape:()=>Qd,removeElement:()=>Vd,removeElementWithFadeOut:()=>Ud,resizePath:()=>af,setTooltipConfig:()=>Sf,subPixelOptimize:()=>cf,subPixelOptimizeLine:()=>of,subPixelOptimizeRect:()=>sf,transformDirection:()=>df,traverseElements:()=>wf,updateProps:()=>Rd}),Kd=Math.max,qd=Math.min,Jd={};function Yd(e){return Nc.extend(e)}var Xd=Ru;function Zd(e,t){return Xd(e,t)}function Qd(e,t){Jd[e]=t}function $d(e){if(Jd.hasOwnProperty(e))return Jd[e]}function ef(e,t,n,r){var i=Lu(e,t);return n&&(r===`center`&&(n=nf(n,i.getBoundingRect())),af(i,n)),i}function tf(e,t,n){var r=new zc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(nf(t,i))}}});return r}function nf(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var rf=zu;function af(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function of(e,t){return Hc(e,e,{lineWidth:t}),e}function sf(e){return Uc(e.shape,e.shape,e.style),e}var cf=Wc;function lf(e,t){for(var n=ln([]);e&&e!==t;)dn(n,e.getLocalTransform(),n),e=e.parent;return n}function uf(e,t,n){return t&&!Fe(t)&&(t=ea.getLocalTransform(t)),n&&(t=hn([],t)),Et([],e,t)}function df(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=uf(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function ff(e){return!e.isGroup}function pf(e){return e.shape!=null}function mf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){ff(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return pf(e)&&(t.shape=R({},e.shape)),t}var a=r(e);t.traverse(function(e){if(ff(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Rd(e,r,n,$(e).dataIndex)}}})}function hf(e,t){return H(e,function(e){var n=e[0];n=Kd(n,t.x),n=qd(n,t.x+t.width);var r=e[1];return r=Kd(r,t.y),r=qd(r,t.y+t.height),[n,r]})}function gf(e,t){var n=Kd(e.x,t.x),r=qd(e.x+e.width,t.x+t.width),i=Kd(e.y,t.y),a=qd(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function _f(e,t,n){var r=R({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),z(i,n),new zc(r)):ef(e.replace(`path://`,``),r,n,`center`)}function vf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(yf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function yf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=bf(u,d,c,l);if(xf(f))return!1;var p=e-i,m=t-a,h=bf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=bf(p,m,u,d)/f;return!(g<0||g>1)}function bf(e,t,n,r){return e*r-n*t}function xf(e){return e<=1e-6&&e>=-1e-6}function Sf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=K(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&V(Re(c),function(e){X(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=$(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:z({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Cf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function wf(e,t){if(e){if(W(e))for(var n=0;n<e.length;n++)Cf(e[n],t);else Cf(e,t)}}Qd(`circle`,Vu),Qd(`ellipse`,Uu),Qd(`sector`,od),Qd(`ring`,cd),Qd(`polygon`,fd),Qd(`polyline`,md),Qd(`rect`,qc),Qd(`line`,_d),Qd(`bezierCurve`,xd),Qd(`arc`,Cd);var Tf={};function Ef(e,t){for(var n=0;n<gl.length;n++){var r=gl[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Df(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=G(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<gl.length;l++){var u=gl[l],d=t[u];c[u]=J(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Of(e,t,n,r){n||=Tf;for(var i=e instanceof Zc,a=!1,o=0;o<_l.length;o++){var s=t[_l[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Zc,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Df(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Af(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(jf(u,n,!1));for(var o=0;o<gl.length;o++){var p=gl[o],s=t[p];if(s){var m=c.ensureState(p),h=!!J(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=Af(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=jf(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(zf(c).setLabelText=function(e){var r=Df(n,t,e);Ef(c,r)})}else c&&(c.ignore=!0);e.dirty()}function kf(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<gl.length;r++){var i=gl[r];n[i]=e.getModel([i,t])}return n}function Af(e,t,n,r,i){var a={};return Mf(a,e,n,r,i),t&&R(a,t),a}function jf(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=J(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,r}function Mf(e,t,n,r,i){n||=Tf;var a=t.ecModel,o=a&&a.option.textStyle,s=Nf(t),c;if(s){for(var l in c={},s)if(s.hasOwnProperty(l)){var u=t.getModel([`rich`,l]);Lf(c[l]={},u,o,n,r,i,!1,!0)}}c&&(e.rich=c);var d=t.get(`overflow`);d&&(e.overflow=d);var f=t.get(`minMargin`);f!=null&&(e.margin=f),Lf(e,t,o,n,r,i,!0,!1)}function Nf(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Tf).rich;if(n){t||={};for(var r=Re(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Pf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Ff=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],If=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Lf(e,t,n,r,i,a,o,s){n=!i&&n||Tf;var c=r&&r.inheritColor,l=t.getShallow(`color`),u=t.getShallow(`textBorderColor`),d=J(t.getShallow(`opacity`),n.opacity);(l===`inherit`||l===`auto`)&&(l=c||null),(u===`inherit`||u===`auto`)&&(u=c||null),a||(l||=n.color,u||=n.textBorderColor),l!=null&&(e.fill=l),u!=null&&(e.stroke=u);var f=J(t.getShallow(`textBorderWidth`),n.textBorderWidth);f!=null&&(e.lineWidth=f);var p=J(t.getShallow(`textBorderType`),n.textBorderType);p!=null&&(e.lineDash=p);var m=J(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!a&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var h=0;h<Pf.length;h++){var g=Pf[h],_=J(t.getShallow(g),n[g]);_!=null&&(e[g]=_)}for(var h=0;h<Ff.length;h++){var g=Ff[h],_=t.getShallow(g);_!=null&&(e[g]=_)}if(e.verticalAlign==null){var v=t.getShallow(`baseline`);v!=null&&(e.verticalAlign=v)}if(!o||!r.disableBox){for(var h=0;h<If.length;h++){var g=If[h],_=t.getShallow(g);_!=null&&(e[g]=_)}var y=t.getShallow(`borderType`);y!=null&&(e.borderDash=y),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&c&&(e.backgroundColor=c),(e.borderColor===`auto`||e.borderColor===`inherit`)&&c&&(e.borderColor=c)}}function Rf(e,t){var n=t&&t.getModel(`textStyle`);return et([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var zf=Do();function Bf(e,t,n,r){if(e){var i=zf(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Vf(e,t,n,r,i){var a=zf(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=J(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=Lo(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,Ef(e,Df({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?zd:Rd)(e,{percent:1},r,t,null,l)}var Hf=[`textStyle`,`color`],Uf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Wf=new Zc,Gf=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Hf):null)},e.prototype.getFont=function(){return Rf({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Uf.length;n++)t[Uf[n]]=this.getShallow(Uf[n]);return Wf.useStyle(t),Wf.update(),Wf.getBoundingRect()},e}(),Kf=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],qf=Qo(Kf),Jf=function(){function e(){}return e.prototype.getLineStyle=function(e){return qf(this,e)},e}(),Yf=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Xf=Qo(Yf),Zf=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Xf(this,e,t)},e}(),Qf=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){L(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(I(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!P.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Wo(Qf),Jo(Qf),Pe(Qf,Jf),Pe(Qf,Zf),Pe(Qf,es),Pe(Qf,Gf);var $f=Math.round(Math.random()*10);function ep(e){return[e||``,$f++].join(`_`)}function tp(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Vo(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Vo(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function np(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(V(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),V(u.successor,d?p:f)}V(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return V(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),V(c,function(e){B(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);B(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return V(e,function(e){B(t,e)>=0&&n.push(e)}),n}}function rp(e,t){return L(L({},e,!0),t,!0)}var ip={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},ap={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},op=`ZH`,sp=`EN`,cp=sp,lp={},up={},dp=P.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||cp).toUpperCase().indexOf(op)>-1?op:cp}():cp;function fp(e,t){e=e.toUpperCase(),up[e]=new Qf(t),lp[e]=t}function pp(e){if(K(e)){var t=lp[e.toUpperCase()]||{};return e===op||e===sp?I(t):L(I(t),I(lp[cp]),!1)}return L(I(e),I(lp[cp]),!1)}function mp(e){return up[e]}function hp(){return up[cp]}fp(sp,ip),fp(op,ap);var gp=1e3,_p=gp*60,vp=_p*60,yp=vp*24,bp=yp*365,xp={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`,none:`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`},Sp=`{yyyy}-{MM}-{dd}`,Cp={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Sp,hour:Sp+` `+xp.hour,minute:Sp+` `+xp.minute,second:Sp+` `+xp.second,millisecond:xp.none},wp=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Tp=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Ep(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Dp(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Op(e){return e===Dp(e)}function kp(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Ap(e,t,n,r){var i=qa(e),a=i[Pp(n)](),o=i[Fp(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Ip(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Lp(n)](),d=(u-1)%12+1,f=i[Rp(n)](),p=i[zp(n)](),m=i[Bp(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Qf?r:mp(r||dp)||hp()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Ep(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Ep(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Ep(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Ep(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Ep(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Ep(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Ep(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Ep(m,3)).replace(/{S}/g,m+``)}function jp(e,t,n,r,i){var a=null;if(K(n))a=n;else if(G(n))a=n(e.value,t,{level:e.level});else{var o=R({},xp);if(e.level>0)for(var s=0;s<wp.length;++s)o[wp[s]]=`{primary|`+o[wp[s]]+`}`;var c=n?n.inherit===!1?n:z(n,o):o,l=Mp(e.value,i);if(c[l])a=c[l];else if(c.inherit){for(var s=Tp.indexOf(l)-1;s>=0;--s)if(c[l]){a=c[l];break}a||=o.none}if(W(a)){var u=e.level==null?0:e.level>=0?e.level:a.length+e.level;u=Math.min(u,a.length-1),a=a[u]}}return Ap(new Date(e.value),a,i,r)}function Mp(e,t){var n=qa(e),r=n[Fp(t)]()+1,i=n[Ip(t)](),a=n[Lp(t)](),o=n[Rp(t)](),s=n[zp(t)](),c=n[Bp(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Np(e,t,n){var r=He(e)?qa(e):e;switch(t||=Mp(e,n),t){case`year`:return r[Pp(n)]();case`half-year`:return+(r[Fp(n)]()>=6);case`quarter`:return Math.floor((r[Fp(n)]()+1)/4);case`month`:return r[Fp(n)]();case`day`:return r[Ip(n)]();case`half-day`:return r[Lp(n)]()/24;case`hour`:return r[Lp(n)]();case`minute`:return r[Rp(n)]();case`second`:return r[zp(n)]();case`millisecond`:return r[Bp(n)]()}}function Pp(e){return e?`getUTCFullYear`:`getFullYear`}function Fp(e){return e?`getUTCMonth`:`getMonth`}function Ip(e){return e?`getUTCDate`:`getDate`}function Lp(e){return e?`getUTCHours`:`getHours`}function Rp(e){return e?`getUTCMinutes`:`getMinutes`}function zp(e){return e?`getUTCSeconds`:`getSeconds`}function Bp(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Vp(e){return e?`setUTCFullYear`:`setFullYear`}function Hp(e){return e?`setUTCMonth`:`setMonth`}function Up(e){return e?`setUTCDate`:`setDate`}function Wp(e){return e?`setUTCHours`:`setHours`}function Gp(e){return e?`setUTCMinutes`:`setMinutes`}function Kp(e){return e?`setUTCSeconds`:`setSeconds`}function qp(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Jp(e){if(!Qa(e))return K(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Yp(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Xp=Qe;function Zp(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&et(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?qa(e):e;if(!isNaN(+c))return Ap(c,r,n);if(s)return`-`}if(t===`ordinal`)return Ve(e)?i(e):He(e)&&a(e)?e+``:`-`;var l=Za(e);return a(l)?Jp(l):Ve(e)?i(e):typeof e==`boolean`?e+``:`-`}var Qp=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],$p=function(e,t){return`{`+e+(t??``)+`}`};function em(e,t,n){W(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Qp[a];e=e.replace($p(o),$p(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace($p(Qp[c],s),n?Wt(l):l)}return e}function tm(e,t){var n=K(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+Wt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Wt(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function nm(e,t){return t||=`transparent`,K(e)?e:q(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function rm(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var im=V,am=[`left`,`right`,`top`,`bottom`,`width`,`height`],om=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function sm(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var cm=sm;Be(sm,`vertical`),Be(sm,`horizontal`);function lm(e,t,n){n=Xp(n||0);var r=t.width,i=t.height,a=Q(e.left,r),o=Q(e.top,i),s=Q(e.right,r),c=Q(e.bottom,i),l=Q(e.width,r),u=Q(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new wn(a+n[3],o+n[0],l,u);return m.margin=n,m}function um(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new wn(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=lm(z({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function dm(e){var t=e.layoutMode||e.constructor.layoutMode;return q(t)?t:t?{type:t}:null}function fm(e,t,n){var r=n&&n.ignoreSize;!W(r)&&(r=[r,r]);var i=o(om[0],0),a=o(om[1],1);l(om[0],e,i),l(om[1],e,a);function o(n,i){var a={},o=0,l={},u=0,d=2;if(im(n,function(t){l[t]=e[t]}),im(n,function(e){s(t,e)&&(a[e]=l[e]=t[e]),c(a,e)&&o++,c(l,e)&&u++}),r[i])return c(t,n[1])?l[n[2]]=null:c(t,n[2])&&(l[n[1]]=null),l;if(u===d||!o)return l;if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!s(a,p)&&s(e,p)){a[p]=e[p];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function c(e,t){return e[t]!=null&&e[t]!==`auto`}function l(e,t,n){im(e,function(e){t[e]=n[e]})}}function pm(e){return mm({},e)}function mm(e,t){return t&&e&&im(am,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var hm=Do(),gm=function(e){N(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=ep(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=dm(this),r=n?pm(e):{};L(e,t.getTheme().get(this.mainType)),L(e,this.getDefaultOption()),n&&fm(e,r,n)},t.prototype.mergeOption=function(e,t){L(this.option,e,!0);var n=dm(this);n&&fm(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Uo(e))return e.defaultOption;var t=hm(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=L(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return No(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get(`left`),top:e.get(`top`),right:e.get(`right`),bottom:e.get(`bottom`),width:e.get(`width`),height:e.get(`height`)}},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Qf);Ko(gm,Qf),Zo(gm),tp(gm),np(gm,_m);function _m(e){var t=[];return V(gm.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=H(t,function(e){return Vo(e).main}),e!==`dataset`&&B(t,`dataset`)<=0&&t.unshift(`dataset`),t}var vm=``;typeof navigator<`u`&&(vm=navigator.platform||``);var ym=`rgba(0, 0, 0, 0.2)`,bm={darkMode:`auto`,colorBy:`series`,color:[`#5470c6`,`#91cc75`,`#fac858`,`#ee6666`,`#73c0de`,`#3ba272`,`#fc8452`,`#9a60b4`,`#ea7ccc`],gradientColor:[`#f6efa6`,`#d88273`,`#bf444c`],aria:{decal:{decals:[{color:ym,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ym,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ym,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ym,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ym,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ym,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vm.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},xm=Y([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Sm=`original`,Cm=`arrayRows`,wm=`objectRows`,Tm=`keyedColumns`,Em=`typedArray`,Dm=`unknown`,Om=`column`,km={Must:1,Might:2,Not:3},Am=Do();function jm(e){Am(e).datasetMap=Y()}function Mm(e,t,n){var r={},i=Pm(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Am(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),V(e,function(t,n){var i=q(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});V(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Nm(e,t,n){var r={};if(!Pm(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&V(a,function(e,t){(q(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Lm(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===km.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===km.Not)&&(e.n=c),f(e)&&s[e.n]!==km.Not)return e;d||(u===km.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Pm(e){if(!e.get(`data`,!0))return No(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},jo).models[0]}function Fm(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:No(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},jo).models}function Im(e,t){return Lm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Lm(e,t,n,r,i,a){var o,s=5;if(We(e))return km.Not;var c,l;if(r){var u=r[a];q(u)?(c=u.name,l=u.type):K(u)&&(c=u)}if(l!=null)return l===`ordinal`?km.Must:km.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return km.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return km.Not;var f=_[c];if(!f||We(f))return km.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=lo(g);if(!W(y))return km.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=K(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?km.Might:km.Not;if(t&&e!==`-`)return km.Must}return km.Not}var Rm=Y();function zm(e,t,n){var r=Rm.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Bm=Do();Do();var Vm=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=oo(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Um(this,Bm,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Wm(this,Bm)},e}();function Hm(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Um(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Hm(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Wm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Gm,Km,qm,Jm=`\0_ec_inner`,Ym=1,Xm=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Qf(r),this._locale=new Qf(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=th(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,th(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?qm(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&V(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Y(),s=t&&t.replaceMergeMainTypeMap;jm(this),V(e,function(e,t){e!=null&&(gm.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?I(e):L(n[t],e,!0))}),s&&s.each(function(e,t){gm.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),gm.topologicalTravel(a,gm.getAllClassMainTypes(),c,this);function c(t){var a=zm(this,t,oo(e[t])),o=r.get(t),c=fo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);wo(c,t,gm),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;V(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=gm.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=R({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),R(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Gm(this)}this._seriesIndices||Gm(this)},t.prototype.getOption=function(){var e=I(this.option);return V(e,function(t,n){if(gm.hasClass(n)){for(var r=oo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Co(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Jm],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Le(a,function(e){return!!e}):$m(`name`,i,a):$m(`id`,r,a):(o=[],V(oo(n),function(e){a[e]&&o.push(a[e])})),eh(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(eh(r?this.queryComponents(r):Le(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Le(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(G(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=K(e)?r.get(e):q(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=xo(e,null);return Le(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Le(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Le(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Km(this),V(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){V(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Km(this),V(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return V(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Km(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Km(this);var n=[];V(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},t.prototype.restoreData=function(e){Gm(this);var t=this._componentsMap,n=[];t.each(function(e,t){gm.hasClass(t)&&n.push(t)}),gm.topologicalTravel(n,gm.getAllClassMainTypes(),function(n){V(t.get(n),function(t){t&&(n!==`series`||!Zm(t,e))&&t.restoreData()})})},t.internalField=function(){Gm=function(e){var t=e._seriesIndices=[];V(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Y(t)},Km=function(e){},qm=function(e,t){e.option={},e.option[Jm]=Ym,e._componentsMap=Y({series:[]}),e._componentsCount=Y();var n=t.aria;q(n)&&n.enabled==null&&(n.enabled=!0),Qm(t,e._theme.option),L(t,bm,!1),e._mergeOption(t,null)}}(),t}(Qf);function Zm(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Qm(e,t){var n=e.color&&!e.colorLayer;V(t,function(t,r){r===`colorLayer`&&n||gm.hasClass(r)||(typeof t==`object`?e[r]=e[r]?L(e[r],t,!1):I(t):e[r]??(e[r]=t))})}function $m(e,t,n){if(W(t)){var r=Y();return V(t,function(e){e!=null&&xo(e,null)!=null&&r.set(e,!0)}),Le(n,function(t){return t&&r.get(t[e])})}var i=xo(t,null);return Le(n,function(t){return t&&i!=null&&t[e]===i})}function eh(e,t){return t.hasOwnProperty(`subType`)?Le(e,function(e){return e&&e.subType===t.subType}):e}function th(e){var t=Y();return e&&V(oo(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Pe(Xm,Vm);var nh=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],rh=function(){function e(e){V(nh,function(t){this[t]=U(e[t],e)},this)}return e}(),ih={},ah=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];V(ih,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){V(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){ih[e]=t},e.get=function(e){return ih[e]},e}(),oh=/^(min|max)?(.+)$/,sh=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(V(oo(e.series),function(e){e&&e.data&&We(e.data)&&nt(e.data)}),V(oo(e.dataset),function(e){e&&e.source&&We(e.source)&&nt(e.source)})),e=I(e);var r=this._optionBackup,i=ch(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],I(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=I(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)lh(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!dh(a,this._currentMediaIndices)&&(o=H(a,function(e){return I(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function ch(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&W(l)&&V(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),V(c,function(e){return f(e)}),V(r,function(e){return f(e.option)});function f(e){V(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function lh(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return V(e,function(e,t){var n=t.match(oh);if(!(!n||!n[1]||!n[2])){var a=n[1];uh(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function uh(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function dh(e,t){return e.join(`,`)===t.join(`,`)}var fh=V,ph=q,mh=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function hh(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=mh.length;n<r;n++){var i=mh[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?L(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?L(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function gh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,z(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function _h(e){gh(e,`itemStyle`),gh(e,`lineStyle`),gh(e,`areaStyle`),gh(e,`label`),gh(e,`labelLine`),gh(e,`upperLabel`),gh(e,`edgeLabel`)}function vh(e,t){var n=ph(e)&&e[t],r=ph(n)&&n.textStyle;if(r)for(var i=0,a=co.length;i<a;i++){var o=co[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function yh(e){e&&(_h(e),vh(e,`label`),e.emphasis&&vh(e.emphasis,`label`))}function bh(e){if(ph(e)){hh(e),_h(e),vh(e,`label`),vh(e,`upperLabel`),vh(e,`edgeLabel`),e.emphasis&&(vh(e.emphasis,`label`),vh(e.emphasis,`upperLabel`),vh(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(hh(t),yh(t));var n=e.markLine;n&&(hh(n),yh(n));var r=e.markArea;r&&yh(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!We(a))for(var o=0;o<a.length;o++)yh(a[o]);V(e.categories,function(e){_h(e)})}if(i&&!We(i))for(var o=0;o<i.length;o++)yh(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)yh(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)W(c[o])?(yh(c[o][0]),yh(c[o][1])):yh(c[o]);e.type===`gauge`?(vh(e,`axisLabel`),vh(e,`title`),vh(e,`detail`)):e.type===`treemap`?(gh(e.breadcrumb,`itemStyle`),V(e.levels,function(e){_h(e)})):e.type===`tree`&&_h(e.leaves)}}function xh(e){return W(e)?e:e?[e]:[]}function Sh(e){return(W(e)?e[0]:e)||{}}function Ch(e,t){fh(xh(e.series),function(e){ph(e)&&bh(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),fh(n,function(t){fh(xh(e[t]),function(e){e&&(vh(e,`axisLabel`),vh(e.axisPointer,`label`))})}),fh(xh(e.parallel),function(e){var t=e&&e.parallelAxisDefault;vh(t,`axisLabel`),vh(t&&t.axisPointer,`label`)}),fh(xh(e.calendar),function(e){gh(e,`itemStyle`),vh(e,`dayLabel`),vh(e,`monthLabel`),vh(e,`yearLabel`)}),fh(xh(e.radar),function(e){vh(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),fh(xh(e.geo),function(e){ph(e)&&(yh(e),fh(xh(e.regions),function(e){yh(e)}))}),fh(xh(e.timeline),function(e){yh(e),gh(e,`label`),gh(e,`itemStyle`),gh(e,`controlStyle`,!0);var t=e.data;W(t)&&V(t,function(e){q(e)&&(gh(e,`label`),gh(e,`itemStyle`))})}),fh(xh(e.toolbox),function(e){gh(e,`iconStyle`),fh(e.feature,function(e){gh(e,`iconStyle`)})}),vh(Sh(e.axisPointer),`label`),vh(Sh(e.tooltip).axisPointer,`label`)}function wh(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function Th(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function Eh(e){e&&V(Dh,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Dh=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Oh=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],kh=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Ah(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<kh.length;n++){var r=kh[n][1],i=kh[n][0];t[r]!=null&&(t[i]=t[r])}}function jh(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Mh(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Nh(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function Ph(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Ph(e[n].children,t)}function Fh(e,t){Ch(e,t),e.series=oo(e.series),V(e.series,function(e){if(q(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),jh(e.label);var n=e.data;if(n&&!We(n))for(var r=0;r<n.length;r++)jh(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=wh(e,`pointer.color`);i!=null&&Th(e,`itemStyle.color`,i)}else if(t===`bar`){Ah(e),Ah(e.backgroundStyle),Ah(e.emphasis);var n=e.data;if(n&&!We(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Ah(n[r]),Ah(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Mh(e),Ph(e.data,Mh)}else t===`graph`||t===`sankey`?Nh(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&z(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Eh(e)}}),e.dataRange&&(e.visualMap=e.dataRange),V(Oh,function(t){var n=e[t];n&&(W(n)||(n=[n]),V(n,function(e){Eh(e)}))})}function Ih(e){var t=Y();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.length&&i.setCalculationInfo(`stackedOnSeries`,r[r.length-1].seriesModel),r.push(a)}}),t.each(Lh)}function Lh(e){V(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ua(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Rh=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Im(this,n)===km.Must&&(r.type=`ordinal`)}}return e}();function zh(e){return e instanceof Rh}function Bh(e,t,n){n||=Uh(e);var r=t.seriesLayoutBy,i=Wh(e,n,r,t.sourceHeader,t.dimensions);return new Rh({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:I(t)})}function Vh(e){return new Rh({data:e,sourceFormat:We(e)?Em:Sm})}function Hh(e){return new Rh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:I(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Uh(e){var t=Dm;if(We(e))t=Em;else if(W(e)){e.length===0&&(t=Cm);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(W(i)||We(i)){t=Cm;break}if(q(i)){t=wm;break}}}}else if(q(e)){for(var a in e)if(X(e,a)&&Fe(e[a])){t=Tm;break}}return t}function Wh(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Kh(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?qh(function(e){e!=null&&e!==`-`&&(K(e)?o??=1:o=0)},n,s,10):o=He(r)?r:+!!r,!i&&o===1&&(i=[],qh(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=Gh(e);else if(t===`keyedColumns`)i||(i=[],V(e,function(e,t){i.push(t)}));else if(t===`original`){var c=lo(e[0]);a=W(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Kh(i),dimensionsDetectedCount:a}}function Gh(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Re(n)}function Kh(e){if(e){var t=Y();return H(e,function(e,n){e=q(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function qh(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Jh(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Yh,Xh,Zh,Qh,$h,eg=function(){function e(e,t){var n=zh(e)?e:Vh(e);this._source=n;var r=this._data=n.data;n.sourceFormat===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),$h(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;$h=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Qh[ug(o,s)];R(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=U(rg(o,s),null,i,c,l),e.count=U(og(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Qh=(e={},e[Cm+`_`+Om]={pure:!0,appendData:i},e[Cm+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[wm]={pure:!0,appendData:i},e[Tm]={pure:!0,appendData:function(e){var t=this._data;V(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Sm]={appendData:i},e[Em]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),tg=function(e,t,n,r){return e[r]},ng=(Yh={},Yh[Cm+`_`+Om]=function(e,t,n,r){return e[r+t]},Yh[Cm+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Yh[wm]=tg,Yh[Tm]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},Yh[Sm]=tg,Yh);function rg(e,t){return ng[ug(e,t)]}var ig=function(e,t,n){return e.length},ag=(Xh={},Xh[Cm+`_`+Om]=function(e,t,n){return Math.max(0,e.length-t)},Xh[Cm+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Xh[wm]=ig,Xh[Tm]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},Xh[Sm]=ig,Xh);function og(e,t){return ag[ug(e,t)]}var sg=function(e,t,n){return e[t]},cg=(Zh={},Zh[Cm]=sg,Zh[wm]=function(e,t,n){return e[n]},Zh[Tm]=sg,Zh[Sm]=function(e,t,n){var r=lo(e);return r instanceof Array?r[t]:r},Zh[Em]=sg,Zh);function lg(e){return cg[e]}function ug(e,t){return e===`arrayRows`?e+`_`+t:e}function dg(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return lg(a)(r,o,s)}var c=r;return a===`original`&&(c=lo(r)),c}}}var fg=/\{@(.+?)\}/g,pg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&W(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),G(i))return s.status=t,s.dimensionIndex=r,i(s);if(K(i))return em(i,s).replace(fg,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=dg(o,e,i);if(a&&W(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return dg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function mg(e){var t,n;return q(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function hg(e){return new gg(e)}var gg=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(W(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){_g.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:_g.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),W(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),_g=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function vg(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!He(e)&&e!=null&&e!==`-`&&(e=+qa(e)),e==null||e===``?NaN:Number(e))}Y({number:function(e){return parseFloat(e)},time:function(e){return+qa(e)},trim:function(e){return K(e)?et(e):e}});var yg={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){He(t)||no(``),this._opFn=yg[e],this._rvalFloat=Za(t)}return e.prototype.evaluate=function(e){return He(e)?this._opFn(e,this._rvalFloat):this._opFn(Za(e),this._rvalFloat)},e})();var bg=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=He(e)?e:Za(e),r=He(t)?t:Za(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=K(e),s=K(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Za(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Za(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();var xg=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return vg(e,t)},e}();function Sg(e,t){var n=new xg,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&no(``);var o=[],s={},c=e.dimensionsDefine;if(c)V(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(X(s,n)&&no(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=rg(i,Om);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=U(Cg,null,e)),n.cloneRawData=U(wg,null,e),n.count=U(og(i,Om),null,r,a,o);var d=lg(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=U(Tg,null,o,s),n.cloneAllDimensionInfo=U(Eg,null,o),n}function Cg(e){var t=e.sourceFormat;return jg(t)||no(``),e.data}function wg(e){var t=e.sourceFormat,n=e.data;if(jg(t)||no(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(R({},n[i]));return r}}function Tg(e,t,n){if(n!=null){if(He(n)||!isNaN(n)&&!X(t,n))return e[n];if(X(t,n))return t[n]}}function Eg(e){return I(e)}var Dg=Y();function Og(e){e=I(e);var t=e.type,n=``;t||no(n);var r=t.split(`:`);r.length!==2&&no(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Dg.set(t,e)}function kg(e,t,n){var r=oo(e),i=r.length;i||no(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Ag(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Ag(e,t,n,r){var i=``;t.length||no(i),q(e)||no(i);var a=e.type,o=Dg.get(a);o||no(i);var s=H(t,function(e){return Sg(e,o)});return H(oo(o.transform({upstream:s[0],upstreamList:s,config:I(e.config)})),function(e,n){var r=``;q(e)||no(r),e.data||no(r),jg(Uh(e.data))||no(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Om,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Om,sourceHeader:0,dimensions:e.dimensions};return Bh(e.data,i,null)})}function jg(e){return e===`arrayRows`||e===`objectRows`}var Mg=`undefined`,Ng=typeof Uint32Array===Mg?Array:Uint32Array,Pg=typeof Uint16Array===Mg?Array:Uint16Array,Fg=typeof Int32Array===Mg?Array:Int32Array,Ig=typeof Float64Array===Mg?Array:Float64Array,Lg={float:Ig,int:Fg,ordinal:Array,number:Array,time:Ig},Rg;function zg(e){return e>65535?Ng:Pg}function Bg(){return[1/0,-1/0]}function Vg(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Hg(e,t,n,r,i){var a=Lg[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Ug=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Rg[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Jh(r),this._dimensions=H(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Lg[t||`float`](this._rawCount),this._rawExtent[i]=Bg(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=Bg());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Hg(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Rg.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=H(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Bg()),Hg(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;n??=1/0;for(var a=1/0,o=-1,s=0,c=0,l=this.count();c<l;c++){var u=t-r[this.getRawIndex(c)],d=Math.abs(u);d<=n&&((d<a||d===a&&u>=0&&o<0)&&(a=d,o=u,s=0),u===o&&(i[s++]=c))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=zg(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(zg(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Re(e),i=r.length;if(!i)return this;var a=t.count(),o=new(zg(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Bg();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(zg(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(zg(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=Bg(),d=new(zg(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Bg();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Ie(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Vg(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=I(this._extent),e._rawExtent=I(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return vg(e[r],this._dimensions[r])}Rg={arrayRows:e,objectRows:function(e,t,n,r){return vg(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return vg(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Wg=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Gg(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=We(o)?Em:Sm,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=J(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=J(u.sourceHeader,d.sourceHeader),m=J(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Bh(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Bh(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Kg(``);var i,a=[],o=[];return V(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Kg(``),a.push(t),o.push(e._getVersionSign())}),n?i=kg(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Hh(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Gg(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Ug,o.initData(new eg(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Gg(e)){var t=Pm(e);return t?[t.getSourceManager()]:[]}return H(Fm(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Gg(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Gg(e){return e.mainType===`series`}function Kg(e){throw Error(e)}var qg=`line-height:1`;function Jg(e){var t=e.lineHeight;return t==null?qg:`line-height:`+Wt(t+``)+`px`}function Yg(e,t){var n=e.color||`#6e7079`,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||`#464646`,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Wt(r+``)+`px;color:`+Wt(n)+`;font-weight:`+Wt(i+``),valueStyle:`font-size:`+Wt(o+``)+`px;color:`+Wt(a)+`;font-weight:`+Wt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Xg=[0,10,20,30],Zg=[``,`
|
|
9
9
|
`,`
|
|
10
10
|
|
|
11
11
|
`,`
|
|
@@ -15,5 +15,5 @@ import{C as e,E as t,F as n,G as r,H as i,Ht as a,M as o,O as s,St as c,Ut as l,
|
|
|
15
15
|
|
|
16
16
|
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=$(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=_A([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new p_;h.marker=g.makeTooltipMarker(`item`,nm(h.color),d);var _=mg(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?i_(y?R({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=$(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(K(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=I(a),a.content=Wt(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=_A(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new p_;this._showOrMove(d,function(){var n=I(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`)).color;if(u){if(K(u)){var p=e.ecModel.get(`useUTC`),m=W(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Ap(m.axisValue,d,p)),d=em(d,n,!0)}else if(G(u)){var g=U(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){if(n===`axis`||W(t))return{color:r||(this._renderMode===`html`?`#fff`:`none`)};if(!W(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),G(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),W(t))n=Q(t[0],s),r=Q(t[1],c);else if(q(t)){var p=t;p.width=l[0],p.height=l[1];var m=lm(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(K(t)&&o){var h=xA(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=yA(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=SA(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=SA(d)?l[1]/2:d===`bottom`?l[1]:0),Jk(e)){var h=bA(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&V(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&V(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&V(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&V(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){P.node||!t.getDom()||(H_(this,`_updatePosition`),this._tooltipContent.dispose(),qO(`itemTooltip`,t))},t.type=`tooltip`,t}(D_);function _A(e,t,n){var r=t.ecModel,i;n?(i=new Qf(n,r,r),i=new Qf(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Qf&&(o=o.get(`tooltip`,!0)),K(o)&&(o={formatter:o}),o&&(i=new Qf(o,i,r)))}return i}function vA(e,t){return e.dispatchAction||U(t.dispatchAction,t)}function yA(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function bA(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function xA(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function SA(e){return e===`center`||e===`middle`}function CA(e,t,n){var r=Ao(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=No(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=$(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function wA(e){OC(ck),e.registerComponentModel(qk),e.registerComponentView(gA),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},dt),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},dt)}var TA=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:0,top:0,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:`#464646`},subtextStyle:{fontSize:12,color:`#6E7079`}},t}(gm),EA=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=J(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Zc({style:Af(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Zc({style:Af(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){rm(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){rm(p,`_`+e.get(`subtarget`))}),$(c).eventData=$(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=lm(g,{width:n.getWidth(),height:n.getHeight()},e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new qc({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(D_);function DA(e){e.registerComponentModel(TA),e.registerComponentView(EA)}var OA=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},kA=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),W(t)&&V(t,function(e,r){K(e)&&(e={type:e}),t[r]=L(e,OA(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&So(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=Y(),a=H(r,function(e){return(K(e)||He(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Qf(e,this,this.ecModel))},this);this._data=Le(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;V(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;V(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;V(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&B(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,top:0,align:`auto`,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:`#ccc`,inactiveBorderColor:`#ccc`,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:`#ccc`,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:`#333`},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:`#666`,borderWidth:1,borderColor:`#666`},emphasis:{selectorLabel:{show:!0,color:`#eee`,backgroundColor:`#666`}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(gm),AA=Be,jA=V,MA=Ta,NA=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new MA),this.group.add(this._selectorGroup=new MA),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=e.getBoxLayoutParams(),l={width:n.getWidth(),height:n.getHeight()},u=e.get(`padding`),d=lm(c,l,u),f=this.layoutInner(e,i,d,r,o,s),p=lm(z({width:f.width,height:f.height},c),l,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Kk(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Y(),l=t.get(`selectedMode`),u=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&u.push(e.id)}),jA(t.getData(),function(i,a){var o=i.get(`name`);if(!this.newlineDisabled&&(o===``||o===`
|
|
17
17
|
`)){var d=new MA;d.newline=!0,s.add(d);return}var f=n.getSeriesByName(o)[0];if(!c.get(o)){if(f){var p=f.getData(),m=p.getVisual(`legendLineStyle`)||{},h=p.getVisual(`legendIcon`),g=p.getVisual(`style`),_=this._createItem(f,o,a,i,t,e,m,g,h,l,r);_.on(`click`,AA(IA,o,null,r,u)).on(`mouseover`,AA(RA,f.name,null,r,u)).on(`mouseout`,AA(zA,f.name,null,r,u)),n.ssr&&_.eachChild(function(e){var t=$(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),c.set(o,!0)}else n.eachRawSeries(function(s){if(!c.get(o)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(o))return;var f=d.indexOfName(o),p=d.getItemVisual(f,`style`),m=d.getItemVisual(f,`legendIcon`),h=Vr(p.fill);h&&h[3]===0&&(h[3]=.2,p=R(R({},p),{fill:Gr(h,`rgba`)}));var g=this._createItem(s,o,a,i,t,e,{},p,m,l,r);g.on(`click`,AA(IA,null,o,r,u)).on(`mouseover`,AA(RA,null,o,r,u)).on(`mouseout`,AA(zA,null,o,r,u)),n.ssr&&g.eachChild(function(e){var t=$(e);t.seriesIndex=s.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),c.set(o,!0)}},this)}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();jA(e,function(e){var r=e.type,i=new Zc({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Of(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),au(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=PA(c,r,o,s,d,m,u),y=new MA,b=r.getModel(`textStyle`);if(G(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(FA({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;K(w)&&w?T=w.replace(`{name}`,t??``):G(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Zc({style:Af(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new qc({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Sf({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),au(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();cm(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){cm(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(D_);function PA(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),jA(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:jy(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function FA(e){var t=e.icon||`roundRect`,n=Hv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=`#fff`,n.style.lineWidth=2),n}function IA(e,t,n,r){zA(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),RA(e,t,n,r)}function LA(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function RA(e,t,n,r){LA(n)||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function zA(e,t,n,r){LA(n)||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function BA(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function VA(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),HA(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){V(i,function(t,n){e[t?`select`:`unSelect`](n)}),HA(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function HA(e,t){var n=t||{};return V(e.getData(),function(t){var r=t.get(`name`);if(r!==`
|
|
18
|
-
`&&r!==``){var i=e.isSelected(r);n[r]=X(n,r)?n[r]&&i:i}}),n}function UA(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Be(VA,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Be(VA,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Be(VA,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Be(VA,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Be(VA,`unSelect`))}function WA(e){e.registerComponentModel(kA),e.registerComponentView(NA),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,BA),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),UA(e)}var GA=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=pm(t);e.prototype.init.call(this,t,n,r),KA(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),KA(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=rp(kA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:`#2f4554`,pageIconInactiveColor:`#aaa`,pageIconSize:15,pageTextStyle:{color:`#333`},animationDurationUpdate:800}),t}(kA);function KA(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,fm(t,n,{type:`box`,ignoreSize:!!i})}var qA=Ta,JA=[`width`,`height`],YA=[`x`,`y`],XA=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new qA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new qA)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=W(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Zc({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=_f(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:U(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=JA[s],l=YA[s],u=JA[1-s],d=YA[1-s];i&&cm(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=I(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;cm(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),cm(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=J(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new qc({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Rd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;V([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,K(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=JA[i],o=YA[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(NA);function ZA(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function QA(e){OC(WA),e.registerComponentModel(GA),e.registerComponentView(XA),ZA(e)}function $A(e){OC(WA),OC(QA)}var ej=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=rp(Fk.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Fk),tj=Do();function nj(e,t,n){tj(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function rj(e,t){for(var n=tj(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||ij(n,o))}}}function ij(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function aj(e,t){var n={model:t,containsPoint:Be(sj,t),dispatchAction:Be(oj,e),dataZoomInfoMap:null,controller:null},r=n.controller=new kD(e.getZr());return V([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function oj(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function sj(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function cj(e){var t,n=`type_`,r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(e){var a=e.model,o=a.get(`disabled`,!0)?!1:!a.get(`zoomLock`,!0)||`move`;r[n+o]>r[n+t]&&(t=o),i&&=a.get(`preventDefaultMouseMove`,!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function lj(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=tj(t),r=n.coordSysRecordMap||=Y();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){V(Nk(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,aj(t,n.model));(a.dataZoomInfoMap||=Y()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var t=e.controller,n,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];a!=null&&(n=i.get(a))}if(!n){ij(r,e);return}var o=cj(i);t.enable(o.controlType,o.opt),t.setPointerChecker(e.containsPoint),V_(e,`dispatchAction`,n.model.get(`throttle`,!0),`fixRate`)})})}var uj=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),nj(r,t,{pan:U(dj.pan,this),zoom:U(dj.zoom,this),scrollMove:U(dj.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){rj(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(Lk),dj={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=pj[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(BD(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:fj(function(e,t,n,r,i,a){var o=pj[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:fj(function(e,t,n,r,i,a){return pj[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function fj(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(BD(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var pj={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function mj(e){Gk(e),e.registerComponentModel(ej),e.registerComponentView(uj),lj(e)}var hj=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=rp(Fk.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:`#d2dbee`,borderRadius:3,backgroundColor:`rgba(47,69,84,0)`,dataBackground:{lineStyle:{color:`#d2dbee`,width:.5},areaStyle:{color:`#d2dbee`,opacity:.2}},selectedDataBackground:{lineStyle:{color:`#8fb0f7`,width:.5},areaStyle:{color:`#8fb0f7`,opacity:.2}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:`#fff`,borderColor:`#ACB8D1`},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:`#D2DBEE`,opacity:.7},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:`#6E7079`},brushSelect:!0,brushStyle:{color:`rgba(135,175,274,0.15)`},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:`#8FB0F7`},moveHandleStyle:{color:`#8FB0F7`}}}),t}(Fk),gj=qc,_j=7,vj=1,yj=30,bj=7,xj=`horizontal`,Sj=`vertical`,Cj=5,wj=[`line`,`bar`,`candlestick`,`scatter`],Tj={easing:`cubicOut`,duration:100,delay:0},Ej=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),V_(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){H_(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Ta;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?bj:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===xj?{right:i.width-r.x-r.width,top:i.height-yj-_j-n,width:r.width,height:yj}:{right:_j,top:r.y,width:yj,height:r.height},o=pm(e.option);V([`right`,`top`,`width`,`height`],function(e){o[e]===`ph`&&(o[e]=a[e])});var s=lm(o,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===Sj&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===xj&&!i?{scaleY:o?1:-1,scaleX:1}:n===xj&&i?{scaleY:o?1:-1,scaleX:-1}:n===Sj&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new gj({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new gj({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:U(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(o),u=(l[1]-l[0])*.3;l=[l[0]-u,l[1]+u];var d=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],m=[],h=f[1]/(i.count()-1),g=0,_=Math.round(i.count()/t[0]),v;i.each([o],function(e,t){if(_>0&&t%_){g+=h;return}var n=e==null||isNaN(e)||e===``,r=n?0:Ia(e,l,d,!0);n&&!v&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&v&&(p.push([g,0]),m.push([g,0])),p.push([g,r]),m.push([g,r]),g+=h,v=n}),s=this._shadowPolygonPts=p,c=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var y=this.dataZoomModel;function b(e){var t=y.getModel(e?`selectedDataBackground`:`dataBackground`),n=new Ta,r=new fd({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new md({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var x=0;x<3;x++){var S=b(x===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){V(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&B(wj,e.get(`type`))<0)){var o=r.getComponent(jk(i),a).axis,s=Dj(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:i,otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new gj({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new gj({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:vj,fill:`rgba(0,0,0,0)`}})),V([0,1],function(t){var a=o.get(`handleIcon`);!zv[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=Hv(a,-1,0,2,2,null,!0);s.attr({cursor:Oj(this._orient),draggable:!0,drift:U(this._onDragMove,this,t),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=Q(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),au(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new Zc({silent:!0,invisible:!f,style:Af(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=Q(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new qc({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=Hv(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,`#fff`,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new qc({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:Oj(this._orient),drift:U(this._onDragMove,this,`all`),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ia(e[0],[0,100],t,!0),Ia(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];BD(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:Ia(a.minSpan,o,i,!0),a.maxSpan==null?null:Ia(a.maxSpan,o,i,!0));var s=this._range,c=this._range=Ra([Ia(r[0],i,o,!0),Ia(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Ra(n.slice()),i=this._size;V([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new qc,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=Ra(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=lf(n.handles[e].parent,this.group),o=df(e===0?`right`:`left`,t),s=this._handleWidth/2+Cj,c=uf([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===xj?`middle`:o,align:i===xj?o:`center`,text:a[e]})}},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return G(r)?r(e,a):K(r)?r.replace(`{value}`,a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,tn(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=uf([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Z(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Ra([Ia(n.x,r,i,!0),Ia(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(tn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new gj({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Tj:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=Nk(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(Lk);function Dj(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function Oj(e){return e===`vertical`?`ns-resize`:`ew-resize`}function kj(e){e.registerComponentModel(hj),e.registerComponentView(Ej),Gk(e)}function Aj(e){OC(mj),OC(kj)}var jj=[`getWidth`,`getHeight`,`getDom`,`getOption`,`resize`,`dispatchAction`,`convertToPixel`,`convertFromPixel`,`containPixel`,`getDataURL`,`getConnectedDataURL`,`appendData`,`clear`,`isDisposed`,`dispose`];function Mj(e){function t(t){return(...n)=>{if(!e.value)throw Error(`ECharts is not initialized yet.`);return e.value[t].apply(e.value,n)}}function n(){let e=Object.create(null);return jj.forEach(n=>{e[n]=t(n)}),e}return n()}function Nj(e,t,n){p([n,e,t],([e,t,n],r,i)=>{let a=null;if(e&&t&&n){let{offsetWidth:r,offsetHeight:i}=e,{throttle:o=100,onResize:s}=n===!0?{}:n,c=!1,l=()=>{t.resize(),s?.()},u=o?B_(l,o):l;a=new ResizeObserver(()=>{!c&&(c=!0,e.offsetWidth===r&&e.offsetHeight===i)||u()}),a.observe(e)}i(()=>{a&&=(a.disconnect(),null)})})}var Pj={autoresize:[Boolean,Object]},Fj=/^on[^a-z]/,Ij=e=>Fj.test(e);function Lj(e){let t={};for(let n in e)Ij(n)||(t[n]=e[n]);return t}function Rj(e,t){let n=y(e)?c(e):e;return n&&typeof n==`object`&&`value`in n?n.value||t:n||t}var zj=`ecLoadingOptions`;function Bj(e,t,n){let r=s(zj,{}),i=m(()=>({...Rj(r,{}),...n?.value}));T(()=>{let n=e.value;n&&(t.value?n.showLoading(i.value):n.hideLoading())})}var Vj={loading:Boolean,loadingOptions:Object},Hj=null,Uj=`x-vue-echarts`;function Wj(){if(Hj!=null)return Hj;if(typeof HTMLElement>`u`||typeof customElements>`u`)return Hj=!1;try{Function(`tag`,`class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);`)(Uj)}catch{return Hj=!1}return Hj=!0}document.head.appendChild(document.createElement(`style`)).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
|
|
19
|
-
`;var Gj=Wj(),Kj=`ecTheme`,qj=`ecInitOptions`,Jj=`ecUpdateOptions`,Yj=/(^&?~?!?)native:/,Xj=e({name:`echarts`,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Pj,...Vj},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){let r=g(),i=g(),a=g(),c=s(Kj,null),l=s(qj,null),u=s(Jj,null),{autoresize:d,manualUpdate:f,loading:h,loadingOptions:_}=O(e),v=m(()=>a.value||e.option||null),y=m(()=>e.theme||Rj(c,{})),b=m(()=>e.initOptions||Rj(l,{})),x=m(()=>e.updateOptions||Rj(u,{})),S=m(()=>Lj(t)),C={},w=E().proxy.$listeners,D={};w?Object.keys(w).forEach(e=>{Yj.test(e)?C[e.replace(Yj,`$1`)]=w[e]:D[e]=w[e]}):Object.keys(t).filter(e=>Ij(e)).forEach(e=>{let n=e.charAt(2).toLowerCase()+e.slice(3);if(n.indexOf(`native:`)===0){let r=`on${n.charAt(7).toUpperCase()}${n.slice(8)}`;C[r]=t[e];return}n.substring(n.length-4)===`Once`&&(n=`~${n.substring(0,n.length-4)}`),D[n]=t[e]});function A(t){if(!r.value)return;let n=i.value=Xb(r.value,y.value,b.value);e.group&&(n.group=e.group),Object.keys(D).forEach(e=>{let t=D[e];if(!t)return;let r=e.toLowerCase();r.charAt(0)===`~`&&(r=r.substring(1),t.__once__=!0);let i=n;if(r.indexOf(`zr:`)===0&&(i=n.getZr(),r=r.substring(3)),t.__once__){delete t.__once__;let e=t;t=(...n)=>{e(...n),i.off(r,t)}}i.on(r,t)});function a(){n&&!n.isDisposed()&&n.resize()}function s(){let e=t||v.value;e&&n.setOption(e,x.value)}d.value?o(()=>{a(),s()}):s()}function j(t,n){e.manualUpdate&&(a.value=t),i.value?i.value.setOption(t,n||{}):A(t)}function ee(){i.value&&=(i.value.dispose(),void 0)}let M=null;p(f,t=>{typeof M==`function`&&(M(),M=null),t||(M=p(()=>e.option,(e,t)=>{e&&(i.value?i.value.setOption(e,{notMerge:e!==t,...x.value}):A())},{deep:!0}))},{immediate:!0}),p([y,b],()=>{ee(),A()},{deep:!0}),T(()=>{e.group&&i.value&&(i.value.group=e.group)});let te=Mj(i);return Bj(i,h,_),Nj(i,d,r),k(()=>{A()}),n(()=>{Gj&&r.value?r.value.__dispose=ee:ee()}),{chart:i,root:r,setOption:j,nonEventAttrs:S,nativeListeners:C,...te}},render(){let e={...this.nonEventAttrs,...this.nativeListeners};return e.ref=`root`,e.class=e.class?[`echarts`].concat(e.class):`echarts`,t(Uj,e)}}),Zj=Object.assign(e({__name:`AwChart`,props:{option:{type:Object,required:!0}},setup(e){OC([Sw,ZT,_T,vE,zD,lk,wA,$A,DA,Aj,Dk]);let t=[`#4a6b57`,`#8aa07c`,`#c9a26a`,`#b3714f`,`#6f8296`,`#4e4e4e`],n=e,r=m(()=>({color:t,...n.option}));return(e,t)=>(i(),b(c(Xj),v(e.$attrs,{option:r.value,autoresize:``}),null,16,[`option`]))}}),{__name:`AwChart`}),Qj={class:`home`},$j={class:`hero aw-bench aw-bench--marked aw-stagger`},eM={class:`hero-main`},tM={class:`aw-bench-kicker`},nM={class:`hero-title`},rM={class:`aw-serif-accent-italic`},iM={class:`hero-sub`},aM={class:`hero-acts`},oM={class:`hero-live`},sM={class:`live-badge`},cM={class:`live-rows`},lM={class:`live-row`},uM={class:`mono`},dM={class:`live-row`},fM={class:`mono`},pM={class:`mono`},mM={class:`aw-gauge-band aw-stagger`},hM={class:`aw-gauge`},gM={class:`aw-gauge-label`},_M={class:`aw-gauge-value`},vM={class:`aw-readout`},yM={class:`aw-gauge`},bM={class:`aw-gauge-label`},xM={class:`aw-gauge-value`},SM={class:`aw-readout`},CM={class:`aw-gauge`},wM={class:`aw-gauge-label`},TM={class:`aw-gauge-value`},EM={class:`aw-readout`},DM={class:`aw-gauge`},OM={class:`aw-gauge-label`},kM={class:`aw-gauge-value`},AM={class:`aw-readout`},jM={class:`aw-gauge`},MM={class:`aw-gauge-label`},NM={class:`aw-gauge-value`},PM={class:`aw-readout`},FM={class:`aw-gauge-label`},IM={class:`aw-gauge-value`},LM={class:`aw-readout`},RM={key:0,class:`harness aw-bench aw-stagger`},zM={class:`aw-bench-hd`},BM={class:`aw-bench-title`},VM={class:`aw-bench-sub`},HM={class:`aw-bench-meta`},UM={class:`harness-row`},WM=[`href`,`title`],GM={class:`h-name`},KM={class:`h-cmd mono`},qM={key:0,class:`h-go`},JM={class:`grid aw-stagger`},YM={class:`aw-bench span8`},XM={class:`aw-bench-hd`},ZM={class:`aw-bench-title`},QM={class:`aw-bench-sub`},$M={class:`aw-bench-meta`},eN={class:`aw-bench span4`},tN={class:`aw-bench-hd`},nN={class:`aw-bench-title`},rN={class:`aw-bench-meta`},iN={class:`donut-wrap`},aN={class:`donut-center mono`},oN={class:`aw-bench span4`},sN={class:`aw-bench-hd`},cN={class:`aw-bench-title`},lN={class:`aw-bench span4`},uN={class:`aw-bench-hd`},dN={class:`aw-bench-title`},fN={class:`aw-bench-meta`},pN={class:`aw-bench span4`},mN={class:`aw-bench-hd`},hN={class:`aw-bench-title`},gN={class:`fleet aw-bench aw-stagger`},_N={class:`aw-bench-hd`},vN={class:`aw-bench-title`},yN={class:`aw-bench-sub`},bN={class:`aw-bench-meta`},xN={class:`fleet-grid`},SN={class:`lc-head`},CN={key:0,class:`lc-run mono`},wN={class:`lc-meta mono`},TN={class:`fa-n mono`},EN={class:`fa-label`},DN={key:1,class:`fleet-empty`},ON=8,kN=w(e({__name:`index`,setup(e){let{t}=ne();j({title:()=>t(`titles.dashboard`)});let n=M(),o=ee(),s=se(),p=ce(),g=m(()=>o.isDark?{accent:`#3fe4ab`,cyan:`#41c8f4`,amber:`#f6c453`,violet:`#a795ff`,danger:`#ff8080`}:{accent:`#4a6b57`,cyan:`#6f8296`,amber:`#c9a26a`,violet:`#b3714f`,danger:`#c25a4e`});k(()=>{s.ensureWsFeed(),p.ensureWsFeed(),Promise.all([s.load(),p.load()]).then(()=>F()),w(),oe(()=>{s.load(),p.load(),w(),F()},5e3,{bgMs:3e4})});let v=ae(),y=x([]),w=async()=>{try{let e=await v.listHarnesses();y.value=e?.data?.harnesses??[]}catch{}},T=m(()=>y.value.filter(e=>e.available!==!1).length),E=m(()=>p.lines.filter(e=>p.lineStateOf(e.id).active)),O=m(()=>s.nodes.filter(e=>e.enabled&&e.state!==`offline`).length),ie=m(()=>s.nodes.length),ue=m(()=>s.nodes.filter(e=>e.state===`alarm`).length),N=m(()=>{let e=p.controller.writesTotal;return e===0?100:Math.round((e-p.controller.writesFailed)/e*1e3)/10}),de=x([]),P=m(()=>s.nodes.filter(e=>e.value!=null&&e.max>e.min).sort((e,t)=>!e.lineId-+!t.lineId||e.id.localeCompare(t.id)).slice(0,4));function F(){let e={};for(let t of P.value)e[t.id]=t.value==null?null:Math.round((t.value-t.min)/(t.max-t.min)*100);de.value.push({t:Date.now(),m:e}),de.value.length>36&&de.value.shift()}let fe=m(()=>o.isDark?`#e8eef8`:`#1f2a3a`),pe=m(()=>o.isDark?`rgba(143,160,181,0.85)`:`rgba(80,95,120,0.85)`),me=m(()=>o.isDark?`rgba(143,160,181,0.13)`:`rgba(80,95,120,0.14)`),he=m(()=>o.isDark?`rgba(10,16,28,0.94)`:`rgba(255,255,255,0.97)`),ge=m(()=>({backgroundColor:he.value,borderColor:me.value,textStyle:{color:fe.value,fontSize:11}})),_e=m(()=>({backgroundColor:`transparent`,graphic:de.value.length===0?[{type:`text`,left:`center`,top:`middle`,style:{text:t(`home.trendWaiting`),fill:pe.value,fontSize:12}}]:void 0,tooltip:{trigger:`axis`,...ge.value},legend:{top:0,right:4,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:pe.value,fontSize:10.5}},grid:{left:42,right:14,top:30,bottom:24},xAxis:{type:`time`,axisLabel:{color:pe.value,fontSize:10,formatter:`{HH}:{mm}:{ss}`},axisLine:{lineStyle:{color:me.value}},splitLine:{show:!1}},yAxis:{type:`value`,min:0,max:100,axisLabel:{color:pe.value,fontSize:10},splitLine:{lineStyle:{color:me.value}}},series:P.value.map((e,t)=>{let n=[g.value.accent,g.value.cyan,g.value.amber,g.value.violet][t%4];return{name:e.name,type:`line`,smooth:!0,showSymbol:!1,connectNulls:!0,lineStyle:{width:1.6,color:n},itemStyle:{color:n},data:de.value.map(t=>[t.t,t.m[e.id]??null])}})})),ve=m(()=>({backgroundColor:`transparent`,tooltip:{trigger:`item`,...ge.value},legend:{bottom:0,left:`center`,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:pe.value,fontSize:10.5}},series:[{type:`pie`,radius:[`62%`,`82%`],center:[`50%`,`44%`],label:{show:!1},silent:!1,data:[{value:E.value.length,name:t(`home.runNow`),itemStyle:{color:g.value.accent}},{value:Math.max(p.lines.length-E.value.length,0),name:t(`home.standBy`),itemStyle:{color:me.value}}]}]})),ye=m(()=>({backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},...ge.value},grid:{left:70,right:34,top:10,bottom:24},xAxis:{type:`value`,axisLabel:{color:pe.value,fontSize:10,formatter:e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e)},splitLine:{lineStyle:{color:me.value}}},yAxis:{type:`category`,data:[t(`home.pipelineSeries.stored`),t(`home.pipelineSeries.consumed`),t(`home.pipelineSeries.produced`)],axisLabel:{color:pe.value,fontSize:10.5},axisLine:{lineStyle:{color:me.value}}},series:[{type:`bar`,barWidth:10,data:[{value:s.meta.samplesStored??0,itemStyle:{color:g.value.amber}},{value:s.meta.consumed??0,itemStyle:{color:g.value.cyan}},{value:s.meta.produced??0,itemStyle:{color:g.value.accent}}],itemStyle:{borderRadius:[0,5,5,0]}}]})),be=m(()=>({backgroundColor:`transparent`,series:[{type:`gauge`,startAngle:210,endAngle:-30,min:0,max:100,radius:`92%`,center:[`50%`,`58%`],progress:{show:!0,width:12,itemStyle:{color:g.value.accent}},axisLine:{lineStyle:{width:12,color:[[1,me.value]]}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},pointer:{show:!1},anchor:{show:!1},title:{show:!1},detail:{valueAnimation:!0,formatter:`{value}%`,color:fe.value,fontSize:26,fontFamily:`monospace`,offsetCenter:[0,`4%`]},data:[{value:N.value}]}]})),xe=m(()=>[{key:`ok`,color:g.value.accent},{key:`warn`,color:g.value.amber},{key:`alarm`,color:g.value.danger},{key:`writing`,color:g.value.cyan},{key:`idle`,color:o.isDark?`#5f6e84`:`#8fa0b5`},{key:`error`,color:`#ff8a5c`},{key:`offline`,color:o.isDark?`rgba(95,110,132,0.38)`:`rgba(143,160,181,0.35)`}]),Se=m(()=>{let e=new Map;for(let t of s.nodes)e.set(t.state,(e.get(t.state)??0)+1);let n=new Map;for(let e of p.nodes)n.set(e.state,(n.get(e.state)??0)+1);let r=xe.value.filter(t=>e.get(t.key)||n.get(t.key));return{backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},...ge.value},legend:{top:0,left:`center`,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:pe.value,fontSize:10}},grid:{left:56,right:14,top:30,bottom:24},xAxis:{type:`value`,axisLabel:{color:pe.value,fontSize:10},splitLine:{lineStyle:{color:me.value}}},yAxis:{type:`category`,data:[t(`home.stateDcw`),t(`home.stateDaq`)],axisLabel:{color:pe.value,fontSize:10.5},axisLine:{lineStyle:{color:me.value}}},series:r.map(r=>({name:t(`home.states.${r.key}`),type:`bar`,stack:`nodes`,barWidth:12,itemStyle:{color:r.color},data:[n.get(r.key)??0,e.get(r.key)??0]}))}}),Ce=m(()=>p.lines.map(e=>{let t=p.lineStateOf(e.id);return{id:e.id,name:e.name,color:e.color,active:t.active,product:t.productName,recipe:t.recipeName,runId:t.runId,tagged:t.taggedSamples,dcwCount:p.nodes.filter(t=>t.lineId===e.id).length,daqCount:s.nodes.filter(t=>t.lineId===e.id).length}})),we=m(()=>[...Ce.value].sort((e,t)=>Number(t.active)-Number(e.active)||t.tagged-e.tagged||e.name.localeCompare(t.name))),Te=m(()=>we.value.slice(0,ON)),Ee=m(()=>Math.max(Ce.value.length-ON,0));return(e,o)=>{let m=re,g=te,v=le;return i(),h(`div`,Qj,[C(`section`,$j,[C(`div`,eM,[C(`p`,tM,u(c(t)(`home.kicker`))+` · `+u(c(n).mode),1),C(`h1`,nM,[f(u(c(t)(`home.heroTitle`))+` `,1),C(`span`,rM,u(c(t)(`home.heroAccent`)),1)]),C(`p`,iM,u(c(t)(`home.heroSub`)),1),C(`div`,aM,[C(`button`,{class:`aw-pill im`,onClick:o[0]||=t=>(`navigateTo`in e?e.navigateTo:c(A))(`/town`)},[o[2]||=C(`span`,{class:`i-tabler-map-2 im-pop`},null,-1),f(` `+u(c(t)(`home.ctaTown`)),1)]),C(`button`,{class:`aw-pill outline im`,onClick:o[1]||=t=>(`navigateTo`in e?e.navigateTo:c(A))(`/dcw`)},[o[3]||=C(`span`,{class:`i-tabler-route im-pop`},null,-1),f(` `+u(c(t)(`home.ctaLine`)),1)])])]),C(`div`,oM,[C(`span`,sM,[o[4]||=C(`span`,{class:`live-dot`},null,-1),f(u(c(t)(`home.live`)),1)]),C(`dl`,cM,[C(`div`,lM,[C(`dt`,null,u(c(t)(`home.kpi.lines`)),1),C(`dd`,uM,[C(`b`,null,u(c(E).length),1),C(`small`,null,`/`+u(c(p).lines.length),1)])]),C(`div`,dM,[C(`dt`,null,u(c(t)(`home.kpi.samples`)),1),C(`dd`,fM,[C(`b`,null,u(c(s).meta.samplesStored??0),1)])]),C(`div`,{class:a([`live-row`,{"is-alarm":c(ue)>0}])},[C(`dt`,null,u(c(t)(`home.kpi.alarms`)),1),C(`dd`,pM,[C(`b`,null,u(c(ue)),1)])],2)])]),o[5]||=C(`div`,{class:`hero-scale`,"aria-hidden":`true`},null,-1)]),C(`div`,mM,[C(`div`,hM,[C(`span`,gM,u(c(t)(`home.kpi.lines`)),1),C(`span`,_M,[C(`span`,vM,[f(u(c(E).length),1),C(`small`,null,`/`+u(c(p).lines.length),1)])])]),C(`div`,yM,[C(`span`,bM,u(c(t)(`home.kpi.dcwNodes`)),1),C(`span`,xM,[C(`span`,SM,[f(u(c(p).controller.nodesOnline),1),C(`small`,null,`/`+u(c(p).controller.nodesTotal),1)])])]),C(`div`,CM,[C(`span`,wM,u(c(t)(`home.kpi.daqNodes`)),1),C(`span`,TM,[C(`span`,EM,[f(u(c(O)),1),C(`small`,null,`/`+u(c(ie)),1)])])]),C(`div`,DM,[C(`span`,OM,u(c(t)(`home.kpi.samples`)),1),C(`span`,kM,[C(`span`,AM,u(c(s).meta.samplesStored??0),1)])]),C(`div`,jM,[C(`span`,MM,u(c(t)(`home.kpi.writeRate`)),1),C(`span`,NM,[C(`span`,PM,[f(u(c(N)),1),o[6]||=C(`small`,null,`%`,-1)])])]),C(`div`,{class:a([`aw-gauge`,{"is-alarm":c(ue)>0}])},[C(`span`,FM,u(c(t)(`home.kpi.alarms`)),1),C(`span`,IM,[C(`span`,LM,u(c(ue)),1)])],2)]),c(y).length>0?(i(),h(`section`,RM,[C(`header`,zM,[C(`h3`,BM,u(c(t)(`home.harness.title`)),1),C(`small`,VM,u(c(t)(`home.harness.sub`)),1),C(`span`,HM,[C(`span`,null,[C(`b`,null,u(c(T)),1),f(`/`+u(c(y).length),1)])])]),C(`div`,UM,[(i(!0),h(d,null,r(c(y),e=>(i(),h(`a`,{key:e.id,class:a([`h-item`,{off:e.available===!1,link:e.available===!1&&e.homepage}]),href:e.available===!1&&e.homepage?e.homepage:void 0,target:`_blank`,rel:`noopener`,title:e.available===!1?e.error??``:e.resolvedPath??e.command??``},[o[7]||=C(`span`,{class:`h-dot`},null,-1),C(`span`,GM,u(e.label),1),C(`span`,KM,u(e.available===!1?c(t)(`home.harness.missing`):e.inprocess?`in-process`:e.command),1),e.available===!1&&e.homepage?(i(),h(`span`,qM,`↗`)):_(``,!0)],10,WM))),128))])])):_(``,!0),C(`div`,JM,[C(`section`,YM,[C(`header`,XM,[C(`h3`,ZM,u(c(t)(`home.charts.trend`)),1),C(`small`,QM,u(c(t)(`home.charts.trendSub`)),1),C(`span`,$M,[C(`span`,null,u(c(t)(`home.trendY`)),1)])]),D(m,null,{default:S(()=>[D(Zj,{option:c(_e),class:`chart h280`},null,8,[`option`])]),_:1})]),C(`section`,eN,[C(`header`,tN,[C(`h3`,nN,u(c(t)(`home.charts.lineState`)),1),C(`span`,rN,[C(`span`,null,[C(`b`,null,u(c(E).length),1),f(`/`+u(c(p).lines.length)+` `+u(c(t)(`home.kpi.lines`)),1)])])]),C(`div`,iN,[C(`div`,aN,[C(`b`,null,u(c(E).length),1),C(`small`,null,`/ `+u(c(p).lines.length),1)]),D(m,null,{default:S(()=>[D(Zj,{option:c(ve),class:`chart h240`},null,8,[`option`])]),_:1})])]),C(`section`,oN,[C(`header`,sN,[C(`h3`,cN,u(c(t)(`home.charts.pipeline`)),1)]),D(m,null,{default:S(()=>[D(Zj,{option:c(ye),class:`chart h240`},null,8,[`option`])]),_:1})]),C(`section`,lN,[C(`header`,uN,[C(`h3`,dN,u(c(t)(`home.charts.writeCtl`)),1),C(`span`,fN,[C(`span`,null,[C(`b`,null,u(c(p).controller.writesTotal),1),f(` `+u(c(t)(`home.writesFailed`))+` `+u(c(p).controller.writesFailed),1)])])]),D(m,null,{default:S(()=>[D(Zj,{option:c(be),class:`chart h240`},null,8,[`option`])]),_:1})]),C(`section`,pN,[C(`header`,mN,[C(`h3`,hN,u(c(t)(`home.charts.nodeState`)),1)]),D(m,null,{default:S(()=>[D(Zj,{option:c(Se),class:`chart h240`},null,8,[`option`])]),_:1})])]),C(`section`,gN,[C(`header`,_N,[C(`h3`,vN,u(c(t)(`home.charts.lines`)),1),C(`small`,yN,u(c(t)(`home.fleetHint`)),1),C(`span`,bN,[C(`span`,null,[C(`b`,null,u(c(p).lines.length),1)])])]),C(`div`,xN,[(i(!0),h(d,null,r(c(Te),e=>(i(),b(g,{key:e.id,class:a([`line-card`,{on:e.active}]),style:l({"--lc":e.color}),to:`/dcw/${e.id}`},{default:S(()=>[C(`div`,SN,[o[8]||=C(`span`,{class:`lc-dot`},null,-1),C(`b`,null,u(e.name),1),C(`span`,{class:a([`lc-state`,{on:e.active}])},u(e.active?c(t)(`home.runNow`):c(t)(`home.standBy`)),3)]),e.active?(i(),h(`div`,CN,[C(`span`,null,u(e.product)+` · `+u(e.recipe),1),C(`small`,null,u(c(t)(`home.batch`))+` `+u(e.runId?.slice(0,8))+` · `+u(c(t)(`home.tagged`))+` `+u(e.tagged),1)])):_(``,!0),C(`div`,wN,[C(`span`,null,u(c(t)(`home.nodesUnit`))+` `+u(e.dcwCount),1),C(`span`,null,u(c(t)(`home.daqUnit`))+` `+u(e.daqCount),1)])]),_:2},1032,[`class`,`style`,`to`]))),128)),c(Ee)>0?(i(),b(g,{key:0,class:`line-card fleet-all im`,to:`/dcw`},{default:S(()=>[C(`span`,TN,`+`+u(c(Ee)),1),C(`span`,EN,u(c(t)(`home.fleetAll`)),1),o[9]||=C(`span`,{class:`i-tabler-arrow-right fa-arrow`},null,-1)]),_:1})):_(``,!0),c(Ce).length===0?(i(),h(`p`,DN,u(c(t)(`home.noLine`)),1)):_(``,!0)])]),D(m,null,{default:S(()=>[D(v,{"slot-name":`dashboard.widgets`})]),_:1})])}}}),[[`__scopeId`,`data-v-5ab4cca8`]]);export{kN as default};
|
|
18
|
+
`&&r!==``){var i=e.isSelected(r);n[r]=X(n,r)?n[r]&&i:i}}),n}function UA(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Be(VA,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Be(VA,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Be(VA,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Be(VA,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Be(VA,`unSelect`))}function WA(e){e.registerComponentModel(kA),e.registerComponentView(NA),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,BA),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),UA(e)}var GA=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=pm(t);e.prototype.init.call(this,t,n,r),KA(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),KA(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=rp(kA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:`#2f4554`,pageIconInactiveColor:`#aaa`,pageIconSize:15,pageTextStyle:{color:`#333`},animationDurationUpdate:800}),t}(kA);function KA(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,fm(t,n,{type:`box`,ignoreSize:!!i})}var qA=Ta,JA=[`width`,`height`],YA=[`x`,`y`],XA=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new qA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new qA)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=W(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Zc({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=_f(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:U(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=JA[s],l=YA[s],u=JA[1-s],d=YA[1-s];i&&cm(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=I(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;cm(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),cm(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=J(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new qc({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Rd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;V([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,K(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=JA[i],o=YA[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(NA);function ZA(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function QA(e){OC(WA),e.registerComponentModel(GA),e.registerComponentView(XA),ZA(e)}function $A(e){OC(WA),OC(QA)}var ej=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=rp(Fk.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Fk),tj=Do();function nj(e,t,n){tj(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function rj(e,t){for(var n=tj(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||ij(n,o))}}}function ij(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function aj(e,t){var n={model:t,containsPoint:Be(sj,t),dispatchAction:Be(oj,e),dataZoomInfoMap:null,controller:null},r=n.controller=new kD(e.getZr());return V([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function oj(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function sj(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function cj(e){var t,n=`type_`,r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(e){var a=e.model,o=a.get(`disabled`,!0)?!1:!a.get(`zoomLock`,!0)||`move`;r[n+o]>r[n+t]&&(t=o),i&&=a.get(`preventDefaultMouseMove`,!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function lj(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=tj(t),r=n.coordSysRecordMap||=Y();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){V(Nk(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,aj(t,n.model));(a.dataZoomInfoMap||=Y()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var t=e.controller,n,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];a!=null&&(n=i.get(a))}if(!n){ij(r,e);return}var o=cj(i);t.enable(o.controlType,o.opt),t.setPointerChecker(e.containsPoint),V_(e,`dispatchAction`,n.model.get(`throttle`,!0),`fixRate`)})})}var uj=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),nj(r,t,{pan:U(dj.pan,this),zoom:U(dj.zoom,this),scrollMove:U(dj.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){rj(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(Lk),dj={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=pj[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(BD(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:fj(function(e,t,n,r,i,a){var o=pj[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:fj(function(e,t,n,r,i,a){return pj[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function fj(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(BD(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var pj={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function mj(e){Gk(e),e.registerComponentModel(ej),e.registerComponentView(uj),lj(e)}var hj=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=rp(Fk.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:`#d2dbee`,borderRadius:3,backgroundColor:`rgba(47,69,84,0)`,dataBackground:{lineStyle:{color:`#d2dbee`,width:.5},areaStyle:{color:`#d2dbee`,opacity:.2}},selectedDataBackground:{lineStyle:{color:`#8fb0f7`,width:.5},areaStyle:{color:`#8fb0f7`,opacity:.2}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:`#fff`,borderColor:`#ACB8D1`},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:`#D2DBEE`,opacity:.7},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:`#6E7079`},brushSelect:!0,brushStyle:{color:`rgba(135,175,274,0.15)`},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:`#8FB0F7`},moveHandleStyle:{color:`#8FB0F7`}}}),t}(Fk),gj=qc,_j=7,vj=1,yj=30,bj=7,xj=`horizontal`,Sj=`vertical`,Cj=5,wj=[`line`,`bar`,`candlestick`,`scatter`],Tj={easing:`cubicOut`,duration:100,delay:0},Ej=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),V_(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){H_(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Ta;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?bj:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===xj?{right:i.width-r.x-r.width,top:i.height-yj-_j-n,width:r.width,height:yj}:{right:_j,top:r.y,width:yj,height:r.height},o=pm(e.option);V([`right`,`top`,`width`,`height`],function(e){o[e]===`ph`&&(o[e]=a[e])});var s=lm(o,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===Sj&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===xj&&!i?{scaleY:o?1:-1,scaleX:1}:n===xj&&i?{scaleY:o?1:-1,scaleX:-1}:n===Sj&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new gj({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new gj({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:U(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(o),u=(l[1]-l[0])*.3;l=[l[0]-u,l[1]+u];var d=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],m=[],h=f[1]/(i.count()-1),g=0,_=Math.round(i.count()/t[0]),v;i.each([o],function(e,t){if(_>0&&t%_){g+=h;return}var n=e==null||isNaN(e)||e===``,r=n?0:Ia(e,l,d,!0);n&&!v&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&v&&(p.push([g,0]),m.push([g,0])),p.push([g,r]),m.push([g,r]),g+=h,v=n}),s=this._shadowPolygonPts=p,c=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var y=this.dataZoomModel;function b(e){var t=y.getModel(e?`selectedDataBackground`:`dataBackground`),n=new Ta,r=new fd({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new md({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var x=0;x<3;x++){var S=b(x===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){V(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&B(wj,e.get(`type`))<0)){var o=r.getComponent(jk(i),a).axis,s=Dj(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:i,otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new gj({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new gj({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:vj,fill:`rgba(0,0,0,0)`}})),V([0,1],function(t){var a=o.get(`handleIcon`);!zv[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=Hv(a,-1,0,2,2,null,!0);s.attr({cursor:Oj(this._orient),draggable:!0,drift:U(this._onDragMove,this,t),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=Q(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),au(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new Zc({silent:!0,invisible:!f,style:Af(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=Q(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new qc({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=Hv(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,`#fff`,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new qc({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:Oj(this._orient),drift:U(this._onDragMove,this,`all`),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ia(e[0],[0,100],t,!0),Ia(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];BD(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:Ia(a.minSpan,o,i,!0),a.maxSpan==null?null:Ia(a.maxSpan,o,i,!0));var s=this._range,c=this._range=Ra([Ia(r[0],i,o,!0),Ia(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Ra(n.slice()),i=this._size;V([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new qc,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=Ra(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=lf(n.handles[e].parent,this.group),o=df(e===0?`right`:`left`,t),s=this._handleWidth/2+Cj,c=uf([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===xj?`middle`:o,align:i===xj?o:`center`,text:a[e]})}},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return G(r)?r(e,a):K(r)?r.replace(`{value}`,a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,tn(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=uf([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Z(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Ra([Ia(n.x,r,i,!0),Ia(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(tn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new gj({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Tj:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=Nk(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(Lk);function Dj(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function Oj(e){return e===`vertical`?`ns-resize`:`ew-resize`}function kj(e){e.registerComponentModel(hj),e.registerComponentView(Ej),Gk(e)}function Aj(e){OC(mj),OC(kj)}var jj=[`getWidth`,`getHeight`,`getDom`,`getOption`,`resize`,`dispatchAction`,`convertToPixel`,`convertFromPixel`,`containPixel`,`getDataURL`,`getConnectedDataURL`,`appendData`,`clear`,`isDisposed`,`dispose`];function Mj(e){function t(t){return(...n)=>{if(!e.value)throw Error(`ECharts is not initialized yet.`);return e.value[t].apply(e.value,n)}}function n(){let e=Object.create(null);return jj.forEach(n=>{e[n]=t(n)}),e}return n()}function Nj(e,n,r){t([r,e,n],([e,t,n],r,i)=>{let a=null;if(e&&t&&n){let{offsetWidth:r,offsetHeight:i}=e,{throttle:o=100,onResize:s}=n===!0?{}:n,c=!1,l=()=>{t.resize(),s?.()},u=o?B_(l,o):l;a=new ResizeObserver(()=>{!c&&(c=!0,e.offsetWidth===r&&e.offsetHeight===i)||u()}),a.observe(e)}i(()=>{a&&=(a.disconnect(),null)})})}var Pj={autoresize:[Boolean,Object]},Fj=/^on[^a-z]/,Ij=e=>Fj.test(e);function Lj(e){let t={};for(let n in e)Ij(n)||(t[n]=e[n]);return t}function Rj(e,t){let n=h(e)?O(e):e;return n&&typeof n==`object`&&`value`in n?n.value||t:n||t}var zj=`ecLoadingOptions`;function Bj(e,t,n){let r=i(zj,{}),a=g(()=>({...Rj(r,{}),...n?.value}));_(()=>{let n=e.value;n&&(t.value?n.showLoading(a.value):n.hideLoading())})}var Vj={loading:Boolean,loadingOptions:Object},Hj=null,Uj=`x-vue-echarts`;function Wj(){if(Hj!=null)return Hj;if(typeof HTMLElement>`u`||typeof customElements>`u`)return Hj=!1;try{Function(`tag`,`class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);`)(Uj)}catch{return Hj=!1}return Hj=!0}document.head.appendChild(document.createElement(`style`)).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
|
|
19
|
+
`;var Gj=Wj(),Kj=`ecTheme`,qj=`ecInitOptions`,Jj=`ecUpdateOptions`,Yj=/(^&?~?!?)native:/,Xj=c({name:`echarts`,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Pj,...Vj},emits:{},inheritAttrs:!1,setup(e,{attrs:n}){let a=b(),c=b(),l=b(),u=i(Kj,null),d=i(qj,null),f=i(Jj,null),{autoresize:p,manualUpdate:m,loading:h,loadingOptions:v}=D(e),y=g(()=>l.value||e.option||null),x=g(()=>e.theme||Rj(u,{})),C=g(()=>e.initOptions||Rj(d,{})),w=g(()=>e.updateOptions||Rj(f,{})),T=g(()=>Lj(n)),E={},O=r().proxy.$listeners,k={};O?Object.keys(O).forEach(e=>{Yj.test(e)?E[e.replace(Yj,`$1`)]=O[e]:k[e]=O[e]}):Object.keys(n).filter(e=>Ij(e)).forEach(e=>{let t=e.charAt(2).toLowerCase()+e.slice(3);if(t.indexOf(`native:`)===0){let r=`on${t.charAt(7).toUpperCase()}${t.slice(8)}`;E[r]=n[e];return}t.substring(t.length-4)===`Once`&&(t=`~${t.substring(0,t.length-4)}`),k[t]=n[e]});function A(t){if(!a.value)return;let n=c.value=Xb(a.value,x.value,C.value);e.group&&(n.group=e.group),Object.keys(k).forEach(e=>{let t=k[e];if(!t)return;let r=e.toLowerCase();r.charAt(0)===`~`&&(r=r.substring(1),t.__once__=!0);let i=n;if(r.indexOf(`zr:`)===0&&(i=n.getZr(),r=r.substring(3)),t.__once__){delete t.__once__;let e=t;t=(...n)=>{e(...n),i.off(r,t)}}i.on(r,t)});function r(){n&&!n.isDisposed()&&n.resize()}function i(){let e=t||y.value;e&&n.setOption(e,w.value)}p.value?S(()=>{r(),i()}):i()}function j(t,n){e.manualUpdate&&(l.value=t),c.value?c.value.setOption(t,n||{}):A(t)}function ee(){c.value&&=(c.value.dispose(),void 0)}let M=null;t(m,n=>{typeof M==`function`&&(M(),M=null),n||(M=t(()=>e.option,(e,t)=>{e&&(c.value?c.value.setOption(e,{notMerge:e!==t,...w.value}):A())},{deep:!0}))},{immediate:!0}),t([x,C],()=>{ee(),A()},{deep:!0}),_(()=>{e.group&&c.value&&(c.value.group=e.group)});let te=Mj(c);return Bj(c,h,v),Nj(c,p,a),s(()=>{A()}),o(()=>{Gj&&a.value?a.value.__dispose=ee:ee()}),{chart:c,root:a,setOption:j,nonEventAttrs:T,nativeListeners:E,...te}},render(){let e={...this.nonEventAttrs,...this.nativeListeners};return e.ref=`root`,e.class=e.class?[`echarts`].concat(e.class):`echarts`,l(Uj,e)}}),Zj=Object.assign(c({__name:`AwChart`,props:{option:{type:Object,required:!0}},setup(e){OC([Sw,ZT,_T,vE,zD,lk,wA,$A,DA,Aj,Dk]);let t=[`#4a6b57`,`#8aa07c`,`#c9a26a`,`#b3714f`,`#6f8296`,`#4e4e4e`],r=e,i=g(()=>({color:t,...r.option})),a={notMerge:!1,replaceMerge:[`series`],lazyUpdate:!0};return(e,t)=>(d(),w(O(Xj),n(e.$attrs,{option:i.value,"update-options":a,autoresize:``}),null,16,[`option`]))}}),{__name:`AwChart`}),Qj={class:`home`},$j={class:`hero aw-bench aw-bench--marked aw-stagger`},eM={class:`hero-main`},tM={class:`aw-bench-kicker`},nM={class:`hero-title`},rM={class:`aw-serif-accent-italic`},iM={class:`hero-sub`},aM={class:`hero-acts`},oM={class:`hero-live`},sM={class:`live-badge`},cM={class:`live-rows`},lM={class:`live-row`},uM={class:`mono`},dM={class:`live-row`},fM={class:`mono`},pM={class:`mono`},mM={class:`aw-gauge-band aw-stagger`},hM={class:`aw-gauge`},gM={class:`aw-gauge-label`},_M={class:`aw-gauge-value`},vM={class:`aw-readout`},yM={class:`aw-gauge`},bM={class:`aw-gauge-label`},xM={class:`aw-gauge-value`},SM={class:`aw-readout`},CM={class:`aw-gauge`},wM={class:`aw-gauge-label`},TM={class:`aw-gauge-value`},EM={class:`aw-readout`},DM={class:`aw-gauge`},OM={class:`aw-gauge-label`},kM={class:`aw-gauge-value`},AM={class:`aw-readout`},jM={class:`aw-gauge`},MM={class:`aw-gauge-label`},NM={class:`aw-gauge-value`},PM={class:`aw-readout`},FM={class:`aw-gauge-label`},IM={class:`aw-gauge-value`},LM={class:`aw-readout`},RM={key:0,class:`harness aw-bench aw-stagger`},zM={class:`aw-bench-hd`},BM={class:`aw-bench-title`},VM={class:`aw-bench-sub`},HM={class:`aw-bench-meta`},UM={class:`harness-row`},WM=[`href`,`title`],GM={class:`h-name`},KM={class:`h-cmd mono`},qM={key:0,class:`h-go`},JM={class:`grid aw-stagger`},YM={class:`aw-bench span8`},XM={class:`aw-bench-hd`},ZM={class:`aw-bench-title`},QM={class:`aw-bench-sub`},$M={class:`aw-bench-meta`},eN={key:1,class:`aw-empty chart h280`},tN={class:`aw-empty-title`},nN={class:`aw-empty-sub`},rN={class:`aw-bench span4`},iN={class:`aw-bench-hd`},aN={class:`aw-bench-title`},oN={class:`aw-bench-meta`},sN={class:`donut-wrap`},cN={class:`donut-center mono`},lN={class:`aw-bench span4`},uN={class:`aw-bench-hd`},dN={class:`aw-bench-title`},fN={class:`aw-bench span4`},pN={class:`aw-bench-hd`},mN={class:`aw-bench-title`},hN={class:`aw-bench-meta`},gN={class:`aw-bench span4`},_N={class:`aw-bench-hd`},vN={class:`aw-bench-title`},yN={class:`fleet aw-bench aw-stagger`},bN={class:`aw-bench-hd`},xN={class:`aw-bench-title`},SN={class:`aw-bench-sub`},CN={class:`aw-bench-meta`},wN={class:`fleet-grid`},TN={class:`lc-head`},EN={key:0,class:`lc-run mono`},DN={class:`lc-meta mono`},ON={class:`fa-n mono`},kN={class:`fa-label`},AN={key:1,class:`fleet-empty`},jN=8,MN=ie(c({__name:`index`,setup(e){let{t}=ne();j({title:()=>t(`titles.dashboard`)});let n=M(),r=ee(),i=se(),o=ce(),c=g(()=>r.isDark?{accent:`#3fe4ab`,cyan:`#41c8f4`,amber:`#f6c453`,violet:`#a795ff`,danger:`#ff8080`}:{accent:`#4a6b57`,cyan:`#6f8296`,amber:`#c9a26a`,violet:`#b3714f`,danger:`#c25a4e`});s(()=>{i.ensureWsFeed(),o.ensureWsFeed(),Promise.all([i.load(),o.load()]).then(()=>F()),_(),oe(()=>{i.load(),o.load(),_(),F()},5e3,{bgMs:3e4})});let l=ae(),h=T([]),_=async()=>{try{let e=await l.listHarnesses();h.value=e?.data?.harnesses??[]}catch{}},b=g(()=>h.value.filter(e=>e.available!==!1).length),S=g(()=>o.lines.filter(e=>o.lineStateOf(e.id).active)),D=g(()=>i.nodes.filter(e=>e.enabled&&e.state!==`offline`).length),ie=g(()=>i.nodes.length),ue=g(()=>i.nodes.filter(e=>e.state===`alarm`).length),N=g(()=>{let e=o.controller.writesTotal;return e===0?100:Math.round((e-o.controller.writesFailed)/e*1e3)/10}),de=T([]),P=g(()=>i.nodes.filter(e=>e.value!=null&&e.max>e.min).sort((e,t)=>!e.lineId-+!t.lineId||e.id.localeCompare(t.id)).slice(0,4));function F(){let e={};for(let t of P.value)e[t.id]=t.value==null?null:Math.round((t.value-t.min)/(t.max-t.min)*100);de.value.push({t:Date.now(),m:e}),de.value.length>36&&de.value.shift()}let fe=g(()=>r.isDark?`#e8eef8`:`#1f2a3a`),pe=g(()=>r.isDark?`rgba(143,160,181,0.85)`:`rgba(80,95,120,0.85)`),me=g(()=>r.isDark?`rgba(143,160,181,0.13)`:`rgba(80,95,120,0.14)`),he=g(()=>r.isDark?`rgba(10,16,28,0.94)`:`rgba(255,255,255,0.97)`),ge=g(()=>({backgroundColor:he.value,borderColor:me.value,textStyle:{color:fe.value,fontSize:11}})),_e=g(()=>P.value.length>0&&de.value.some(e=>P.value.some(t=>typeof e.m[t.id]==`number`))),ve=g(()=>({backgroundColor:`transparent`,tooltip:{trigger:`axis`,...ge.value},legend:{top:0,right:4,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:pe.value,fontSize:10.5}},grid:{left:42,right:14,top:30,bottom:24},xAxis:{type:`time`,axisLabel:{color:pe.value,fontSize:10,formatter:`{HH}:{mm}:{ss}`},axisLine:{lineStyle:{color:me.value}},splitLine:{show:!1}},yAxis:{type:`value`,min:0,max:100,axisLabel:{color:pe.value,fontSize:10},splitLine:{lineStyle:{color:me.value}}},series:P.value.map((e,t)=>{let n=[c.value.accent,c.value.cyan,c.value.amber,c.value.violet][t%4];return{name:e.name,type:`line`,smooth:!0,showSymbol:!1,connectNulls:!0,lineStyle:{width:1.6,color:n},itemStyle:{color:n},data:de.value.map(t=>[t.t,t.m[e.id]??null])}})})),ye=g(()=>({backgroundColor:`transparent`,tooltip:{trigger:`item`,...ge.value},legend:{bottom:0,left:`center`,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:pe.value,fontSize:10.5}},series:[{type:`pie`,radius:[`62%`,`82%`],center:[`50%`,`44%`],label:{show:!1},silent:!1,data:[{value:S.value.length,name:t(`home.runNow`),itemStyle:{color:c.value.accent}},{value:Math.max(o.lines.length-S.value.length,0),name:t(`home.standBy`),itemStyle:{color:me.value}}]}]})),be=g(()=>({backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},...ge.value},grid:{left:70,right:34,top:10,bottom:24},xAxis:{type:`value`,axisLabel:{color:pe.value,fontSize:10,formatter:e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e)},splitLine:{lineStyle:{color:me.value}}},yAxis:{type:`category`,data:[t(`home.pipelineSeries.stored`),t(`home.pipelineSeries.consumed`),t(`home.pipelineSeries.produced`)],axisLabel:{color:pe.value,fontSize:10.5},axisLine:{lineStyle:{color:me.value}}},series:[{type:`bar`,barWidth:10,data:[{value:i.meta.samplesStored??0,itemStyle:{color:c.value.amber}},{value:i.meta.consumed??0,itemStyle:{color:c.value.cyan}},{value:i.meta.produced??0,itemStyle:{color:c.value.accent}}],itemStyle:{borderRadius:[0,5,5,0]}}]})),xe=g(()=>({backgroundColor:`transparent`,series:[{type:`gauge`,startAngle:210,endAngle:-30,min:0,max:100,radius:`92%`,center:[`50%`,`58%`],progress:{show:!0,width:12,itemStyle:{color:c.value.accent}},axisLine:{lineStyle:{width:12,color:[[1,me.value]]}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},pointer:{show:!1},anchor:{show:!1},title:{show:!1},detail:{valueAnimation:!0,formatter:`{value}%`,color:fe.value,fontSize:26,fontFamily:`monospace`,offsetCenter:[0,`4%`]},data:[{value:N.value}]}]})),Se=g(()=>[{key:`ok`,color:c.value.accent},{key:`warn`,color:c.value.amber},{key:`alarm`,color:c.value.danger},{key:`writing`,color:c.value.cyan},{key:`idle`,color:r.isDark?`#5f6e84`:`#8fa0b5`},{key:`error`,color:`#ff8a5c`},{key:`offline`,color:r.isDark?`rgba(95,110,132,0.38)`:`rgba(143,160,181,0.35)`}]),Ce=g(()=>{let e=new Map;for(let t of i.nodes)e.set(t.state,(e.get(t.state)??0)+1);let n=new Map;for(let e of o.nodes)n.set(e.state,(n.get(e.state)??0)+1);let r=Se.value.filter(t=>e.get(t.key)||n.get(t.key));return{backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},...ge.value},legend:{top:0,left:`center`,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:pe.value,fontSize:10}},grid:{left:56,right:14,top:30,bottom:24},xAxis:{type:`value`,axisLabel:{color:pe.value,fontSize:10},splitLine:{lineStyle:{color:me.value}}},yAxis:{type:`category`,data:[t(`home.stateDcw`),t(`home.stateDaq`)],axisLabel:{color:pe.value,fontSize:10.5},axisLine:{lineStyle:{color:me.value}}},series:r.map(r=>({name:t(`home.states.${r.key}`),type:`bar`,stack:`nodes`,barWidth:12,itemStyle:{color:r.color},data:[n.get(r.key)??0,e.get(r.key)??0]}))}}),we=g(()=>o.lines.map(e=>{let t=o.lineStateOf(e.id);return{id:e.id,name:e.name,color:e.color,active:t.active,product:t.productName,recipe:t.recipeName,runId:t.runId,tagged:t.taggedSamples,dcwCount:o.nodes.filter(t=>t.lineId===e.id).length,daqCount:i.nodes.filter(t=>t.lineId===e.id).length}})),Te=g(()=>[...we.value].sort((e,t)=>Number(t.active)-Number(e.active)||t.tagged-e.tagged||e.name.localeCompare(t.name))),Ee=g(()=>Te.value.slice(0,jN)),De=g(()=>Math.max(we.value.length-jN,0));return(e,r)=>{let s=re,c=te,l=le;return d(),y(`div`,Qj,[v(`section`,$j,[v(`div`,eM,[v(`p`,tM,u(O(t)(`home.kicker`))+` · `+u(O(n).mode),1),v(`h1`,nM,[k(u(O(t)(`home.heroTitle`))+` `,1),v(`span`,rM,u(O(t)(`home.heroAccent`)),1)]),v(`p`,iM,u(O(t)(`home.heroSub`)),1),v(`div`,aM,[v(`button`,{class:`aw-pill im`,onClick:r[0]||=t=>(`navigateTo`in e?e.navigateTo:O(A))(`/town`)},[r[2]||=v(`span`,{class:`i-tabler-map-2 im-pop`},null,-1),k(` `+u(O(t)(`home.ctaTown`)),1)]),v(`button`,{class:`aw-pill outline im`,onClick:r[1]||=t=>(`navigateTo`in e?e.navigateTo:O(A))(`/dcw`)},[r[3]||=v(`span`,{class:`i-tabler-route im-pop`},null,-1),k(` `+u(O(t)(`home.ctaLine`)),1)])])]),v(`div`,oM,[v(`span`,sM,[r[4]||=v(`span`,{class:`live-dot`},null,-1),k(u(O(t)(`home.live`)),1)]),v(`dl`,cM,[v(`div`,lM,[v(`dt`,null,u(O(t)(`home.kpi.lines`)),1),v(`dd`,uM,[v(`b`,null,u(O(S).length),1),v(`small`,null,`/`+u(O(o).lines.length),1)])]),v(`div`,dM,[v(`dt`,null,u(O(t)(`home.kpi.samples`)),1),v(`dd`,fM,[v(`b`,null,u(O(i).meta.samplesStored??0),1)])]),v(`div`,{class:f([`live-row`,{"is-alarm":O(ue)>0}])},[v(`dt`,null,u(O(t)(`home.kpi.alarms`)),1),v(`dd`,pM,[v(`b`,null,u(O(ue)),1)])],2)])]),r[5]||=v(`div`,{class:`hero-scale`,"aria-hidden":`true`},null,-1)]),v(`div`,mM,[v(`div`,hM,[v(`span`,gM,u(O(t)(`home.kpi.lines`)),1),v(`span`,_M,[v(`span`,vM,[k(u(O(S).length),1),v(`small`,null,`/`+u(O(o).lines.length),1)])])]),v(`div`,yM,[v(`span`,bM,u(O(t)(`home.kpi.dcwNodes`)),1),v(`span`,xM,[v(`span`,SM,[k(u(O(o).controller.nodesOnline),1),v(`small`,null,`/`+u(O(o).controller.nodesTotal),1)])])]),v(`div`,CM,[v(`span`,wM,u(O(t)(`home.kpi.daqNodes`)),1),v(`span`,TM,[v(`span`,EM,[k(u(O(D)),1),v(`small`,null,`/`+u(O(ie)),1)])])]),v(`div`,DM,[v(`span`,OM,u(O(t)(`home.kpi.samples`)),1),v(`span`,kM,[v(`span`,AM,u(O(i).meta.samplesStored??0),1)])]),v(`div`,jM,[v(`span`,MM,u(O(t)(`home.kpi.writeRate`)),1),v(`span`,NM,[v(`span`,PM,[k(u(O(N)),1),r[6]||=v(`small`,null,`%`,-1)])])]),v(`div`,{class:f([`aw-gauge`,{"is-alarm":O(ue)>0}])},[v(`span`,FM,u(O(t)(`home.kpi.alarms`)),1),v(`span`,IM,[v(`span`,LM,u(O(ue)),1)])],2)]),O(h).length>0?(d(),y(`section`,RM,[v(`header`,zM,[v(`h3`,BM,u(O(t)(`home.harness.title`)),1),v(`small`,VM,u(O(t)(`home.harness.sub`)),1),v(`span`,HM,[v(`span`,null,[v(`b`,null,u(O(b)),1),k(`/`+u(O(h).length),1)])])]),v(`div`,UM,[(d(!0),y(x,null,p(O(h),e=>(d(),y(`a`,{key:e.id,class:f([`h-item`,{off:e.available===!1,link:e.available===!1&&e.homepage}]),href:e.available===!1&&e.homepage?e.homepage:void 0,target:`_blank`,rel:`noopener`,title:e.available===!1?e.error??``:e.resolvedPath??e.command??``},[r[7]||=v(`span`,{class:`h-dot`},null,-1),v(`span`,GM,u(e.label),1),v(`span`,KM,u(e.available===!1?O(t)(`home.harness.missing`):e.inprocess?`in-process`:e.command),1),e.available===!1&&e.homepage?(d(),y(`span`,qM,`↗`)):C(``,!0)],10,WM))),128))])])):C(``,!0),v(`div`,JM,[v(`section`,YM,[v(`header`,XM,[v(`h3`,ZM,u(O(t)(`home.charts.trend`)),1),v(`small`,QM,u(O(t)(`home.charts.trendSub`)),1),v(`span`,$M,[v(`span`,null,u(O(t)(`home.trendY`)),1)])]),m(s,null,{default:E(()=>[O(_e)?(d(),w(Zj,{key:0,option:O(ve),class:`chart h280`},null,8,[`option`])):(d(),y(`div`,eN,[v(`p`,tN,u(O(t)(`home.trendWaiting`)),1),v(`p`,nN,u(O(t)(`home.trendNeedRun`)),1)]))]),_:1})]),v(`section`,rN,[v(`header`,iN,[v(`h3`,aN,u(O(t)(`home.charts.lineState`)),1),v(`span`,oN,[v(`span`,null,[v(`b`,null,u(O(S).length),1),k(`/`+u(O(o).lines.length)+` `+u(O(t)(`home.kpi.lines`)),1)])])]),v(`div`,sN,[v(`div`,cN,[v(`b`,null,u(O(S).length),1),v(`small`,null,`/ `+u(O(o).lines.length),1)]),m(s,null,{default:E(()=>[m(Zj,{option:O(ye),class:`chart h240`},null,8,[`option`])]),_:1})])]),v(`section`,lN,[v(`header`,uN,[v(`h3`,dN,u(O(t)(`home.charts.pipeline`)),1)]),m(s,null,{default:E(()=>[m(Zj,{option:O(be),class:`chart h240`},null,8,[`option`])]),_:1})]),v(`section`,fN,[v(`header`,pN,[v(`h3`,mN,u(O(t)(`home.charts.writeCtl`)),1),v(`span`,hN,[v(`span`,null,[v(`b`,null,u(O(o).controller.writesTotal),1),k(` `+u(O(t)(`home.writesFailed`))+` `+u(O(o).controller.writesFailed),1)])])]),m(s,null,{default:E(()=>[m(Zj,{option:O(xe),class:`chart h240`},null,8,[`option`])]),_:1})]),v(`section`,gN,[v(`header`,_N,[v(`h3`,vN,u(O(t)(`home.charts.nodeState`)),1)]),m(s,null,{default:E(()=>[m(Zj,{option:O(Ce),class:`chart h240`},null,8,[`option`])]),_:1})])]),v(`section`,yN,[v(`header`,bN,[v(`h3`,xN,u(O(t)(`home.charts.lines`)),1),v(`small`,SN,u(O(t)(`home.fleetHint`)),1),v(`span`,CN,[v(`span`,null,[v(`b`,null,u(O(o).lines.length),1)])])]),v(`div`,wN,[(d(!0),y(x,null,p(O(Ee),e=>(d(),w(c,{key:e.id,class:f([`line-card`,{on:e.active}]),style:a({"--lc":e.color}),to:`/dcw/${e.id}`},{default:E(()=>[v(`div`,TN,[r[8]||=v(`span`,{class:`lc-dot`},null,-1),v(`b`,null,u(e.name),1),v(`span`,{class:f([`lc-state`,{on:e.active}])},u(e.active?O(t)(`home.runNow`):O(t)(`home.standBy`)),3)]),e.active?(d(),y(`div`,EN,[v(`span`,null,u(e.product)+` · `+u(e.recipe),1),v(`small`,null,u(O(t)(`home.batch`))+` `+u(e.runId?.slice(0,8))+` · `+u(O(t)(`home.tagged`))+` `+u(e.tagged),1)])):C(``,!0),v(`div`,DN,[v(`span`,null,u(O(t)(`home.nodesUnit`))+` `+u(e.dcwCount),1),v(`span`,null,u(O(t)(`home.daqUnit`))+` `+u(e.daqCount),1)])]),_:2},1032,[`class`,`style`,`to`]))),128)),O(De)>0?(d(),w(c,{key:0,class:`line-card fleet-all im`,to:`/dcw`},{default:E(()=>[v(`span`,ON,`+`+u(O(De)),1),v(`span`,kN,u(O(t)(`home.fleetAll`)),1),r[9]||=v(`span`,{class:`i-tabler-arrow-right fa-arrow`},null,-1)]),_:1})):C(``,!0),O(we).length===0?(d(),y(`p`,AN,u(O(t)(`home.noLine`)),1)):C(``,!0)])]),m(s,null,{default:E(()=>[m(l,{"slot-name":`dashboard.widgets`})]),_:1})])}}}),[[`__scopeId`,`data-v-58712e73`]]);export{MN as default};
|