agentworkshop 0.7.8 → 0.7.11
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/nitro.json +1 -1
- package/.output/public/_nuxt/-6OnbLFb.js +1 -0
- package/.output/public/_nuxt/{BUxYN2mw.js → -nb2uqVg.js} +1 -1
- package/.output/public/_nuxt/6vYobj4F.js +1 -0
- package/.output/public/_nuxt/{BSXx2vqR.js → B-xskWta.js} +1 -1
- package/.output/public/_nuxt/B3Psw_sL.js +1 -0
- package/.output/public/_nuxt/B53Mp7lD.js +1 -0
- package/.output/public/_nuxt/B5CYgFAD.js +14 -0
- package/.output/public/_nuxt/{uBbDCfTz.js → B5S_UyaC.js} +1 -1
- package/.output/public/_nuxt/{DZk24ego.js → B7wL3pDk.js} +1 -1
- package/.output/public/_nuxt/B8WV7GzS.js +1 -0
- package/.output/public/_nuxt/{BYL0Rjqj.js → BBwMH_hG.js} +3 -3
- package/.output/public/_nuxt/BLzCac9K2.js +1 -0
- package/.output/public/_nuxt/BNXfwXpE.js +1 -0
- package/.output/public/_nuxt/{VnIWJ0ts.js → BN_PdN3J.js} +1 -1
- package/.output/public/_nuxt/BZGNTgTQ2.js +1 -0
- package/.output/public/_nuxt/BbZAzXjZ2.js +1 -0
- package/.output/public/_nuxt/Bc3PiGGr.js +1 -0
- package/.output/public/_nuxt/Bckshc9V.js +1 -0
- package/.output/public/_nuxt/BcrN7QEl2.js +1 -0
- package/.output/public/_nuxt/BgOhoDTI.js +1 -0
- package/.output/public/_nuxt/Bmpvki7M.js +1 -0
- package/.output/public/_nuxt/{BkfchkK62.js → Bp5luxkg2.js} +1 -1
- package/.output/public/_nuxt/BxPPAkGA.js +3 -0
- package/.output/public/_nuxt/{C8dxXc6K.js → BxtpDtzC.js} +1 -1
- package/.output/public/_nuxt/{pRQri7vQ2.js → BytVi9VX2.js} +1 -1
- package/.output/public/_nuxt/{D5KJ7_0V.js → C3tCneTM.js} +1 -1
- package/.output/public/_nuxt/{C_gFA2H_2.js → C4OAdbVK2.js} +1 -1
- package/.output/public/_nuxt/C6m-kenn.js +1 -0
- package/.output/public/_nuxt/{zwdqvGN_.js → CGx-mtWf.js} +1 -1
- package/.output/public/_nuxt/{DCXIGxzT.js → CKfhtOt7.js} +2 -2
- package/.output/public/_nuxt/{ChEKFMxj.js → CUXCQXjG.js} +1 -1
- package/.output/public/_nuxt/CfVAr2nf.js +1 -0
- package/.output/public/_nuxt/Cj6139IM.js +1 -0
- package/.output/public/_nuxt/{DM8DS9MA.js → Cor9siSf.js} +1 -1
- package/.output/public/_nuxt/{BsMpJf7S.js → D-Ca4BGY.js} +6 -6
- package/.output/public/_nuxt/{CsCpu2Zh.js → D1z7i2UP.js} +1 -1
- package/.output/public/_nuxt/D7jiode2.js +1 -0
- package/.output/public/_nuxt/D8CqF0yy.js +1 -0
- package/.output/public/_nuxt/{DYZBdSSg2.js → DA4lxCWC2.js} +1 -1
- package/.output/public/_nuxt/DEaY_uvR.js +1 -0
- package/.output/public/_nuxt/{DCEyMaN-.js → DNxVTfhe.js} +3 -3
- package/.output/public/_nuxt/DT-Wg8r1.js +1 -0
- package/.output/public/_nuxt/DTYBfjRY.js +1 -0
- package/.output/public/_nuxt/{fQUs58kX2.js → DWcEk1ur2.js} +1 -1
- package/.output/public/_nuxt/DXRZPxGs.js +1 -0
- package/.output/public/_nuxt/Dhqra7NB.js +1 -0
- package/.output/public/_nuxt/DlRO_q5L.js +1 -0
- package/.output/public/_nuxt/{C2iWjzEC2.js → DoLasgPj2.js} +1 -1
- package/.output/public/_nuxt/{DRq09ZmT.js → DpojD719.js} +1 -1
- package/.output/public/_nuxt/Ds8JbqGB.js +1 -0
- package/.output/public/_nuxt/{BCipft_k2.js → DsUUYP292.js} +1 -1
- package/.output/public/_nuxt/DtBu71ev.js +32 -0
- package/.output/public/_nuxt/Dy-mxvXY2.js +1 -0
- package/.output/public/_nuxt/DyisHHzD.js +18 -0
- package/.output/public/_nuxt/G0qIw7Gq2.js +1 -0
- package/.output/public/_nuxt/ORt9oDIy2.js +1 -0
- package/.output/public/_nuxt/QoCzfpo2.js +1 -0
- package/.output/public/_nuxt/RzXYI9FM.js +23 -0
- package/.output/public/_nuxt/TownView.BHLKAjEu.css +1 -0
- package/.output/public/_nuxt/VLI2Zy4t.js +5 -0
- package/.output/public/_nuxt/_id_.DIxEKj88.css +1 -0
- package/.output/public/_nuxt/_id_.DTvjd6VN.css +1 -0
- package/.output/public/_nuxt/{_wsId_.COUzMXpP.css → _wsId_.BFyCuUwS.css} +1 -1
- package/.output/public/_nuxt/agents.CEbox5-D.css +1 -0
- package/.output/public/_nuxt/{ZugRk0CM2.js → arUY5dyq2.js} +2 -2
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/88479a5b-ce6a-400f-9737-1cc9f54b1fe5.json +1 -0
- package/.output/public/_nuxt/channel-templates.De5ZvrGz.css +1 -0
- package/.output/public/_nuxt/d_Sz9KGm.js +1 -0
- package/.output/public/_nuxt/daq.6IrhVVfy.css +1 -0
- package/.output/public/_nuxt/dcw.DcDjwvqv.css +1 -0
- package/.output/public/_nuxt/default.BbgdTDCk.css +1 -0
- package/.output/public/_nuxt/{CblLEiCZ.js → eHYnGew0.js} +3 -3
- package/.output/public/_nuxt/eUGyJdiT.js +1 -0
- package/.output/public/_nuxt/{entry.5qf6EqfN.css → entry.B03HBJGC.css} +1 -1
- package/.output/public/_nuxt/{Cyk3du4K2.js → kZV5TQvh2.js} +1 -1
- package/.output/public/_nuxt/kkEthL84.js +2 -0
- package/.output/public/_nuxt/logs.BO-BSyjm.css +1 -0
- package/.output/public/_nuxt/{D4qXvjuV.js → niDwBOZW.js} +2 -2
- package/.output/public/_nuxt/permissions.CwZo6t1V.css +1 -0
- package/.output/public/_nuxt/plugins.Clsky_kl.css +1 -0
- package/.output/public/_nuxt/rqZ-1SoP.js +2 -0
- package/.output/public/_nuxt/settings.BqMF2nfj.css +1 -0
- package/.output/public/_nuxt/tJuVvBSl.js +1 -0
- package/.output/public/_nuxt/teams.CUMnbQGf.css +1 -0
- package/.output/public/_nuxt/tokens.BPLe9ioQ.css +1 -0
- package/.output/public/_nuxt/{Bi6AiCuP.js → vJ4FPb-_.js} +1 -1
- package/.output/public/_nuxt/workshop.BIdoGfoC.css +1 -0
- package/.output/public/_nuxt/{B7aqqzkY.js → zVkqCZ78.js} +1 -1
- package/.output/server/chunks/_/LeftOutlined.mjs +1 -1
- package/.output/server/chunks/_/SearchOutlined.mjs +1 -1
- package/.output/server/chunks/_/character-asset.repo.mjs +1 -1
- package/.output/server/chunks/_/host-bindings.mjs +1 -1
- package/.output/server/chunks/_/nitro.mjs +1614 -1279
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/_/scene-layout.repo.mjs +1 -1
- package/.output/server/chunks/build/Col-biaNnEPf.mjs +1 -1
- package/.output/server/chunks/build/{OmpTerminalPanel-COphA1br.mjs → OmpTerminalPanel-Ban3yJZ4.mjs} +4 -5
- package/.output/server/chunks/build/OmpTerminalPanel-Ban3yJZ4.mjs.map +1 -0
- package/.output/server/chunks/build/{TownView-B5KifIaT.mjs → TownView-CunmEMzS.mjs} +184 -184
- package/.output/server/chunks/build/{TownView-B5KifIaT.mjs.map → TownView-CunmEMzS.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-Ct4Jhvl1.mjs → _id_-CVnMdSeG.mjs} +38 -37
- package/.output/server/chunks/build/_id_-CVnMdSeG.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-C-ewLgfl.mjs → _id_-D265Wh_k.mjs} +127 -126
- package/.output/server/chunks/build/_id_-D265Wh_k.mjs.map +1 -0
- package/.output/server/chunks/build/{_wsId_-CanI_6Su.mjs → _wsId_-eNJmBp05.mjs} +137 -136
- package/.output/server/chunks/build/{_wsId_-CanI_6Su.mjs.map → _wsId_-eNJmBp05.mjs.map} +1 -1
- package/.output/server/chunks/build/{agents-DSOptxXA.mjs → agents-B10wmFri.mjs} +24 -23
- package/.output/server/chunks/build/agents-B10wmFri.mjs.map +1 -0
- package/.output/server/chunks/build/alert-qJnjyRcP.mjs +1 -1
- package/.output/server/chunks/build/api-error-dul30BYQ.mjs +47 -0
- package/.output/server/chunks/build/api-error-dul30BYQ.mjs.map +1 -0
- package/.output/server/chunks/build/button-DEcZFcqN.mjs +2 -2
- package/.output/server/chunks/build/{card-Dipvaykh.mjs → card-CCPQoKlh.mjs} +4 -4
- package/.output/server/chunks/build/{card-Dipvaykh.mjs.map → card-CCPQoKlh.mjs.map} +1 -1
- package/.output/server/chunks/build/{channel-templates-BK0KuPOd.mjs → channel-templates-CpWxVk5A.mjs} +29 -28
- package/.output/server/chunks/build/channel-templates-CpWxVk5A.mjs.map +1 -0
- package/.output/server/chunks/build/{checkbox-dzcpU_Cd.mjs → checkbox-Dv1kjaUZ.mjs} +3 -3
- package/.output/server/chunks/build/{checkbox-dzcpU_Cd.mjs.map → checkbox-Dv1kjaUZ.mjs.map} +1 -1
- package/.output/server/chunks/build/client-only-D5BzSQc6.mjs +1 -1
- package/.output/server/chunks/build/{daq-D9RA_uze.mjs → daq-DxaXk_8N.mjs} +114 -114
- package/.output/server/chunks/build/daq-DxaXk_8N.mjs.map +1 -0
- package/.output/server/chunks/build/{dcw-BTM5YU-B.mjs → dcw-DqjHrl5Z.mjs} +48 -47
- package/.output/server/chunks/build/dcw-DqjHrl5Z.mjs.map +1 -0
- package/.output/server/chunks/build/{default-BfWGTlbj.mjs → default-YcUHc1Ev.mjs} +34 -26
- package/.output/server/chunks/build/{default-BfWGTlbj.mjs.map → default-YcUHc1Ev.mjs.map} +1 -1
- package/.output/server/chunks/build/drawer-Cmh90erI.mjs +1 -1
- package/.output/server/chunks/build/dropdown-vhn1NPFs.mjs +2 -2
- package/.output/server/chunks/build/hasIn-vQ9LWt-J.mjs +554 -0
- package/.output/server/chunks/build/hasIn-vQ9LWt-J.mjs.map +1 -0
- package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs +1 -1
- package/.output/server/chunks/build/{input-sf_BT6o6.mjs → input-DxDqeyQW.mjs} +5 -553
- package/.output/server/chunks/build/input-DxDqeyQW.mjs.map +1 -0
- package/.output/server/chunks/build/{input-number-Bd55elNN.mjs → input-number-CZ3ZrCsy.mjs} +3 -3
- package/.output/server/chunks/build/{input-number-Bd55elNN.mjs.map → input-number-CZ3ZrCsy.mjs.map} +1 -1
- package/.output/server/chunks/build/{logs-Dyk0I2I9.mjs → logs-Co854R4y.mjs} +40 -40
- package/.output/server/chunks/build/{logs-Dyk0I2I9.mjs.map → logs-Co854R4y.mjs.map} +1 -1
- package/.output/server/chunks/build/menu-WCrlpYVh.mjs +2 -2
- package/.output/server/chunks/build/modal-yvUquPj5.mjs +2 -2
- package/.output/server/chunks/build/{monitor-MIOvsyLa.mjs → monitor-miqq9xHB.mjs} +11 -11
- package/.output/server/chunks/build/{monitor-MIOvsyLa.mjs.map → monitor-miqq9xHB.mjs.map} +1 -1
- package/.output/server/chunks/build/{pages-DR2bzczM.mjs → pages-DPC1Vp6w.mjs} +6 -5
- package/.output/server/chunks/build/pages-DPC1Vp6w.mjs.map +1 -0
- package/.output/server/chunks/build/permissions-Eu9e6hfZ.mjs +534 -0
- package/.output/server/chunks/build/permissions-Eu9e6hfZ.mjs.map +1 -0
- package/.output/server/chunks/build/{plugins-DnOBIWGg.mjs → plugins-D84mvK9G.mjs} +27 -25
- package/.output/server/chunks/build/plugins-D84mvK9G.mjs.map +1 -0
- package/.output/server/chunks/build/popconfirm-CRaHcz5O.mjs +2 -2
- package/.output/server/chunks/build/responsiveObserve-CS0UB6wQ.mjs +1 -1
- package/.output/server/chunks/build/{segmented-DPe9ZzLO.mjs → segmented-ChmQZwz6.mjs} +5 -4
- package/.output/server/chunks/build/{segmented-DPe9ZzLO.mjs.map → segmented-ChmQZwz6.mjs.map} +1 -1
- package/.output/server/chunks/build/select-D-CeE5vY.mjs +1 -1
- package/.output/server/chunks/build/{settings-DA8IkGLo.mjs → settings-BPBll_7K.mjs} +28 -26
- package/.output/server/chunks/build/settings-BPBll_7K.mjs.map +1 -0
- package/.output/server/chunks/build/space-CCBYAkXt.mjs +2 -2
- package/.output/server/chunks/build/spin-HVY81X_L.mjs +1 -1
- package/.output/server/chunks/build/switch-CelRXpcy.mjs +2 -2
- package/.output/server/chunks/build/{table-Cswq-l2r.mjs → table-BtksyDlQ.mjs} +5 -5
- package/.output/server/chunks/build/{table-Cswq-l2r.mjs.map → table-BtksyDlQ.mjs.map} +1 -1
- package/.output/server/chunks/build/{tabs-BM3tAh_J.mjs → tabs-DQv-_-R6.mjs} +3 -3
- package/.output/server/chunks/build/{tabs-BM3tAh_J.mjs.map → tabs-DQv-_-R6.mjs.map} +1 -1
- package/.output/server/chunks/build/{tag-NO9jEqKy.mjs → tag-A0tZ2Ouq.mjs} +4 -4
- package/.output/server/chunks/build/{tag-NO9jEqKy.mjs.map → tag-A0tZ2Ouq.mjs.map} +1 -1
- package/.output/server/chunks/build/{teams-BhSKBBBM.mjs → teams-CNflUtPh.mjs} +25 -24
- package/.output/server/chunks/build/teams-CNflUtPh.mjs.map +1 -0
- package/.output/server/chunks/build/{tokens-D_eyxmcv.mjs → tokens-CZpnEDVf.mjs} +27 -26
- package/.output/server/chunks/build/tokens-CZpnEDVf.mjs.map +1 -0
- package/.output/server/chunks/build/town-BUqRobze.mjs +1 -1
- package/.output/server/chunks/build/{town-DPtOPRRO.mjs → town-BbaR-8io.mjs} +10 -10
- package/.output/server/chunks/build/{town-DPtOPRRO.mjs.map → town-BbaR-8io.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqStream-hwkhJHFU.mjs → useDaqStream-BkmyQT06.mjs} +36 -24
- package/.output/server/chunks/build/useDaqStream-BkmyQT06.mjs.map +1 -0
- package/.output/server/chunks/build/{useDcwStream-Bdew_yrr.mjs → useDcwStream-DWVoU96J.mjs} +63 -48
- package/.output/server/chunks/build/useDcwStream-DWVoU96J.mjs.map +1 -0
- package/.output/server/chunks/build/{useDeviceTwins-C6EBg9oN.mjs → useDeviceTwins-34WGk9aN.mjs} +4 -3
- package/.output/server/chunks/build/useDeviceTwins-34WGk9aN.mjs.map +1 -0
- package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs +1 -1
- package/.output/server/chunks/build/{useOpsLog-DdCqKVVG.mjs → useOpsLog-C9zTzYof.mjs} +30 -17
- package/.output/server/chunks/build/useOpsLog-C9zTzYof.mjs.map +1 -0
- package/.output/server/chunks/build/useSiteConfig-DJe_KMVr.mjs +1 -1
- package/.output/server/chunks/build/useWorkshopApi-D2gq06N2.mjs +1 -1
- package/.output/server/chunks/build/{useWorkshopWs-B3j5wIAK.mjs → useWorkshopWs-CprkZEdq.mjs} +2 -3
- package/.output/server/chunks/build/useWorkshopWs-CprkZEdq.mjs.map +1 -0
- package/.output/server/chunks/build/{users-CmVvb1oq.mjs → users-D6RNylrW.mjs} +10 -10
- package/.output/server/chunks/build/{users-CmVvb1oq.mjs.map → users-D6RNylrW.mjs.map} +1 -1
- package/.output/server/chunks/build/{workshop-D5CQj2A8.mjs → workshop-Crsai2Y9.mjs} +27 -26
- package/.output/server/chunks/build/workshop-Crsai2Y9.mjs.map +1 -0
- package/.output/server/chunks/build/{workspaces-IfORCDJE.mjs → workspaces-BuydxM-3.mjs} +2 -3
- package/.output/server/chunks/build/workspaces-BuydxM-3.mjs.map +1 -0
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
- package/.output/server/chunks/routes/api/metrics.mjs +1 -1
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +1 -1
- package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/config.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/index.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +1 -1
- package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/system/monitor.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/settings/events.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/users/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/login.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/logout.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/me.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/register.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/setup-status.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/_...path_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +19 -8
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/audit.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/caller.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +3 -3
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.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/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +3 -3
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +7 -6
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs +5 -4
- package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs +5 -4
- package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +5 -4
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +5 -4
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +5 -2
- package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +3 -2
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +7 -6
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +5 -4
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +4 -3
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +4 -4
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +8 -4
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +4 -4
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +4 -4
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +7 -3
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +3 -2
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +3 -2
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +5 -3
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index.put.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/index.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs +4 -3
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index11.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/index11.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index3.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs +4 -4
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index4.get.mjs +5 -4
- package/.output/server/chunks/routes/api/workshop/index4.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs +18 -11
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index7.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs +24 -12
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs +12 -7
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +4 -4
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +4 -4
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +3 -3
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +3 -3
- package/.output/server/chunks/virtual/entry.mjs +303 -37
- package/.output/server/chunks/virtual/entry.mjs.map +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +15 -0
- package/README.md +20 -0
- package/app/components/AppHeader.vue +1 -1
- package/app/components/AppSidebar.vue +7 -1
- package/app/components/workshop/A2aRpcDebugger.vue +1 -1
- package/app/components/workshop/AgentInspectorDrawer.vue +3 -3
- package/app/components/workshop/AgentLanesView.vue +6 -6
- package/app/components/workshop/AssetLibrary.vue +2 -2
- package/app/components/workshop/ChannelSessionList.vue +5 -5
- package/app/components/workshop/Composer.vue +1 -1
- package/app/components/workshop/DeviceTwinPanel.vue +2 -2
- package/app/components/workshop/TaskBoardView.vue +1 -1
- package/app/components/workshop/TaskInspectorDrawer.vue +2 -2
- package/app/components/workshop/town/TownView.vue +23 -23
- package/app/composables/workshop/apiClient.ts +103 -95
- package/app/composables/workshop/useCharacterAssets.ts +1 -1
- package/app/composables/workshop/useDaqStream.ts +36 -22
- package/app/composables/workshop/useDcwStream.ts +23 -6
- package/app/composables/workshop/useDeviceTwins.ts +1 -1
- package/app/composables/workshop/useOpsLog.ts +28 -15
- package/app/composables/workshop/useSceneLayouts.ts +1 -1
- package/app/composables/workshop/useWorkshopWs.ts +11 -2
- package/app/pages/daq/[id].vue +1 -1
- package/app/pages/daq/index.vue +8 -8
- package/app/pages/dcw/[id].vue +13 -13
- package/app/pages/dcw/index.vue +7 -7
- package/app/pages/logs/index.vue +1 -1
- package/app/pages/permissions/index.vue +327 -0
- package/app/pages/plugins/index.vue +14 -6
- package/app/pages/settings.vue +4 -2
- package/app/pages/tokens.vue +3 -3
- package/app/pages/workshop/agents.vue +2 -2
- package/app/pages/workshop/channel-templates.vue +3 -3
- package/app/pages/workshop/index.vue +4 -4
- package/app/pages/workshop/teams.vue +3 -3
- package/app/plugins/http.ts +18 -2
- package/app/plugins/session-restore.client.ts +7 -2
- package/app/stores/workshop/user.ts +14 -1
- package/app/utils/api-error.ts +75 -0
- package/cli/commands/plugin.mjs +2 -2
- package/config.yml +1 -1
- package/i18n/locales/en.ts +53 -3
- package/i18n/locales/zh-CN.ts +53 -3
- package/package.json +1 -1
- package/scripts/_dbg-acc-1-setup.mjs +57 -0
- package/scripts/_dbg-acc-2-diag.mjs +14 -0
- package/scripts/_dbg-acc-2-intervals.mjs +81 -0
- package/scripts/_dbg-acc-3-daq.mjs +48 -0
- package/scripts/_dbg-acc-4-team.mjs +92 -0
- package/scripts/_dbg-acc-5-visual.mjs +63 -0
- package/scripts/_dbg-acc-5b-ws-town.mjs +18 -0
- package/scripts/_dbg-acc-5c-town.mjs +12 -0
- package/scripts/_dbg-acc-6-i18n.mjs +19 -0
- package/scripts/_dbg-audit-neg-e2e.mjs +64 -0
- package/scripts/_dbg-final-features.mjs +155 -0
- package/scripts/_dbg-final-fixups.mjs +62 -0
- package/scripts/_dbg-final-visual.mjs +29 -0
- package/scripts/_dbg-interval-config.mjs +17 -6
- package/scripts/_dbg-perms-e2e.mjs +102 -0
- package/scripts/_dbg-perms-visual.mjs +36 -0
- package/scripts/_dbg-plugins-e2e.mjs +101 -0
- package/scripts/_dbg-protocol-matrix.mjs +16 -0
- package/scripts/_dbg-repo-setup-verify.mjs +31 -0
- package/scripts/_dbg-setup-e2e.mjs +1 -1
- package/sdk/api.mjs +117 -101
- package/sdk/context.mjs +240 -219
- package/sdk/hooks.mjs +105 -103
- package/sdk/index.d.mts +142 -135
- package/sdk/lifecycle.mjs +26 -25
- package/server/api/workshop/agent-tools/bindings/index.post.ts +40 -20
- package/server/api/workshop/daq/[id]/bind.post.ts +5 -2
- package/server/api/workshop/daq/[id]/frames/content.get.ts +4 -1
- package/server/api/workshop/daq/[id]/frames.get.ts +4 -1
- package/server/api/workshop/daq/[id]/samples.get.ts +4 -1
- package/server/api/workshop/daq/[id].patch.ts +3 -0
- package/server/api/workshop/daq/alarms/[id]/ack.post.ts +20 -15
- package/server/api/workshop/daq/controller.post.ts +2 -0
- package/server/api/workshop/daq/index.get.ts +5 -3
- package/server/api/workshop/daq/index.post.ts +2 -2
- package/server/api/workshop/dcw/[id]/bind.post.ts +20 -17
- package/server/api/workshop/dcw/[id]/test.post.ts +18 -15
- package/server/api/workshop/dcw/[id]/write.post.ts +3 -0
- package/server/api/workshop/dcw/index.get.ts +22 -9
- package/server/api/workshop/dcw/line/query.get.ts +38 -31
- package/server/api/workshop/dcw/lines/[id]/start.post.ts +3 -0
- package/server/api/workshop/dcw/lines/[id]/stop.post.ts +3 -0
- package/server/api/workshop/dcw/lines/index.get.ts +8 -2
- package/server/api/workshop/dcw/lines/index.post.ts +2 -2
- package/server/api/workshop/dcw/products/index.post.ts +16 -16
- package/server/api/workshop/dcw/runs/[id]/data.get.ts +20 -15
- package/server/api/workshop/dcw/runs/index.get.ts +13 -11
- package/server/api/workshop/permissions/index.get.ts +30 -0
- package/server/api/workshop/permissions/index.put.ts +29 -0
- package/server/api/workshop/plugins/[name]/disable.post.ts +5 -3
- package/server/api/workshop/plugins/[name]/enable.post.ts +5 -3
- package/server/api/workshop/ws.ts +18 -6
- package/server/data/daqs.json +90 -46
- package/server/data/dcw-lines.json +21 -0
- package/server/data/dcw-products.json +140 -0
- package/server/data/dcw-recipes.json +506 -0
- package/server/data/dcw-rollback.json +281 -6
- package/server/data/dcw-runs.json +1374 -1257
- package/server/data/dcw-writes.json +312 -0
- package/server/data/dcws.json +1165 -477
- package/server/data/line-runs.json +26 -6
- package/server/plugins/backup.ts +119 -116
- package/server/repositories/user.repository.ts +86 -6
- package/server/services/system-config.ts +5 -0
- package/server/services/user.service.ts +5 -3
- package/server/services/workshop/daq/bus/index.ts +5 -3
- package/server/services/workshop/daq/bus/inproc.adapter.ts +12 -3
- package/server/services/workshop/daq/bus/mqtt.adapter.ts +13 -0
- package/server/services/workshop/daq/bus/queue-port.ts +2 -0
- package/server/services/workshop/daq/daq-controller.ts +18 -1
- package/server/services/workshop/daq/storage/sqlite.adapter.ts +10 -5
- package/server/services/workshop/db/ops.repo.ts +6 -0
- package/server/services/workshop/dcw/dcw-controller.ts +10 -2
- package/server/services/workshop/permissions.ts +79 -0
- package/server/services/workshop/plugins/host.mjs +40 -2
- package/server/services/workshop/scene-events.ts +25 -1
- package/server/services/workshop/settings.ts +10 -0
- package/shared/config/single-instance.mjs +24 -0
- package/shared/daq-protocol.ts +2 -0
- package/.output/public/_nuxt/2LwEn9gX.js +0 -2
- package/.output/public/_nuxt/3612gD2V.js +0 -32
- package/.output/public/_nuxt/8eIQAVlb.js +0 -1
- package/.output/public/_nuxt/Ah9qOv1m.js +0 -1
- package/.output/public/_nuxt/B4Fia4FB.js +0 -3
- package/.output/public/_nuxt/BH0Z05CS.js +0 -1
- package/.output/public/_nuxt/BJ-fxrSw.js +0 -1
- package/.output/public/_nuxt/BJvGPTpC.js +0 -1
- package/.output/public/_nuxt/BVZjSVs2.js +0 -1
- package/.output/public/_nuxt/BVzDoF8t.js +0 -1
- package/.output/public/_nuxt/BjVLsC3M.js +0 -1
- package/.output/public/_nuxt/BnVoQ74r.js +0 -1
- package/.output/public/_nuxt/Bnp4vIAf.js +0 -1
- package/.output/public/_nuxt/Bt_HDizI.js +0 -5
- package/.output/public/_nuxt/Bu-P92Pe.js +0 -18
- package/.output/public/_nuxt/ButLXkjo.js +0 -2
- package/.output/public/_nuxt/By-LNp3k.js +0 -1
- package/.output/public/_nuxt/CGdPdJPP.js +0 -1
- package/.output/public/_nuxt/CRGlf1Gb.js +0 -1
- package/.output/public/_nuxt/CS8R0_J3.js +0 -1
- package/.output/public/_nuxt/CUxV8Bw_.js +0 -1
- package/.output/public/_nuxt/Cd15nPnG2.js +0 -1
- package/.output/public/_nuxt/CvbHIGQY2.js +0 -1
- package/.output/public/_nuxt/DNJSkm3Q.js +0 -1
- package/.output/public/_nuxt/DNzaswei.js +0 -1
- package/.output/public/_nuxt/DXK1U43I.js +0 -1
- package/.output/public/_nuxt/Dc46i75T.js +0 -14
- package/.output/public/_nuxt/Dk6pq9JB2.js +0 -1
- package/.output/public/_nuxt/Do88WZG2.js +0 -23
- package/.output/public/_nuxt/Du-eSpo2.js +0 -1
- package/.output/public/_nuxt/GP2wXyuY.js +0 -1
- package/.output/public/_nuxt/NIM0Wglj2.js +0 -1
- package/.output/public/_nuxt/PQLnLxYe.js +0 -1
- package/.output/public/_nuxt/R_Wv_Nd9.js +0 -1
- package/.output/public/_nuxt/TownView.Bt33bo1M.css +0 -1
- package/.output/public/_nuxt/_id_.BzKMZnLe.css +0 -1
- package/.output/public/_nuxt/_id_.CbpDAWRh.css +0 -1
- package/.output/public/_nuxt/agents.BlejnOOC.css +0 -1
- package/.output/public/_nuxt/builds/meta/e5bb1803-86d9-43b3-85be-dc787dc9a978.json +0 -1
- package/.output/public/_nuxt/channel-templates.lkqEYlWY.css +0 -1
- package/.output/public/_nuxt/daq.zZ8GR433.css +0 -1
- package/.output/public/_nuxt/dcw.C46dGiF_.css +0 -1
- package/.output/public/_nuxt/default.V3_hUJq1.css +0 -1
- package/.output/public/_nuxt/eHGLpQSg2.js +0 -1
- package/.output/public/_nuxt/logs.DaIsHWZE.css +0 -1
- package/.output/public/_nuxt/p7wSGMtc.js +0 -1
- package/.output/public/_nuxt/plugins.FTm0PcEe.css +0 -1
- package/.output/public/_nuxt/settings.DeRNNUcP.css +0 -1
- package/.output/public/_nuxt/tRBT-plo.js +0 -1
- package/.output/public/_nuxt/teams.B8JNbUZg.css +0 -1
- package/.output/public/_nuxt/tokens.CWOTXM-Z.css +0 -1
- package/.output/public/_nuxt/ubPfs9mQ.js +0 -1
- package/.output/public/_nuxt/workshop.3kAcLB_M.css +0 -1
- package/.output/server/chunks/build/OmpTerminalPanel-COphA1br.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-C-ewLgfl.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-Ct4Jhvl1.mjs.map +0 -1
- package/.output/server/chunks/build/agents-DSOptxXA.mjs.map +0 -1
- package/.output/server/chunks/build/channel-templates-BK0KuPOd.mjs.map +0 -1
- package/.output/server/chunks/build/daq-D9RA_uze.mjs.map +0 -1
- package/.output/server/chunks/build/dcw-BTM5YU-B.mjs.map +0 -1
- package/.output/server/chunks/build/input-sf_BT6o6.mjs.map +0 -1
- package/.output/server/chunks/build/pages-DR2bzczM.mjs.map +0 -1
- package/.output/server/chunks/build/plugins-DnOBIWGg.mjs.map +0 -1
- package/.output/server/chunks/build/settings-DA8IkGLo.mjs.map +0 -1
- package/.output/server/chunks/build/teams-BhSKBBBM.mjs.map +0 -1
- package/.output/server/chunks/build/tokens-D_eyxmcv.mjs.map +0 -1
- package/.output/server/chunks/build/useDaqStream-hwkhJHFU.mjs.map +0 -1
- package/.output/server/chunks/build/useDcwStream-Bdew_yrr.mjs.map +0 -1
- package/.output/server/chunks/build/useDeviceTwins-C6EBg9oN.mjs.map +0 -1
- package/.output/server/chunks/build/useOpsLog-DdCqKVVG.mjs.map +0 -1
- package/.output/server/chunks/build/useWorkshopWs-B3j5wIAK.mjs.map +0 -1
- package/.output/server/chunks/build/user-Dk-ytEUV.mjs +0 -140
- package/.output/server/chunks/build/user-Dk-ytEUV.mjs.map +0 -1
- package/.output/server/chunks/build/workshop-D5CQj2A8.mjs.map +0 -1
- package/.output/server/chunks/build/workspaces-IfORCDJE.mjs.map +0 -1
- /package/.output/public/_nuxt/{CNs_Ozdc2.js → CNs_Ozdc.js} +0 -0
- /package/.output/public/_nuxt/{Cno6kYiO2.js → Cno6kYiO.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
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"./PQLnLxYe.js";import{n as j}from"./uBbDCfTz.js";import{t as M}from"./DXK1U43I.js";import{t as N}from"./ubPfs9mQ.js";import{n as P}from"./BeIfu4N3.js";import{t as ee}from"./DRq09ZmT.js";import{t as te}from"#entry";import{t as ne}from"./BCipft_k2.js";import{t as re}from"./GP2wXyuY.js";import{t as ie}from"./CS8R0_J3.js";import{t as ae}from"./ChEKFMxj.js";var oe=function(e,t){return oe=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])},oe(e,t)};function F(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);oe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var se=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),I=new(function(){function e(){this.browser=new se,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`?(I.wxa=!0,I.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?I.worker=!0:!I.hasGlobalWindow||`Deno`in window?(I.node=!0,I.svgSupported=!0):ce(navigator.userAgent,I);function ce(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 L=`12px sans-serif`,R=20,le=100,ue=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function de(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)-R)/le}return t}var fe=de(ue),pe={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=pe.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=fe[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}},me=Ne([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),he=Ne([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),ge=Object.prototype.toString,_e=Array.prototype,ve=_e.forEach,ye=_e.filter,be=_e.slice,xe=_e.map,Se=function(){}.constructor,Ce=Se?Se.prototype:null,we=`__proto__`,Te=2311;function Ee(){return Te++}function De(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function z(e){if(typeof e!=`object`||!e)return e;var t=e,n=ge.call(e);if(n===`[object Array]`){if(!et(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=z(e[r])}}else if(he[n]){if(!et(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(!me[n]&&!et(e)&&!He(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==we&&(t[o]=z(e[o]));return t}function B(e,t,n){if(!J(t)||!J(e))return n?z(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==we){var i=e[r],a=t[r];J(a)&&J(i)&&!G(a)&&!G(i)&&!He(a)&&!He(i)&&!Be(a)&&!Be(i)&&!et(a)&&!et(i)?B(i,a,n):(n||!(r in e))&&(e[r]=z(t[r]))}return e}function V(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==we&&(e[n]=t[n]);return e}function Oe(e,t,n){for(var r=Fe(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}pe.createCanvas;function ke(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 Ae(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 je(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 Oe(e,t,n)}function Me(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function H(e,t,n){if(e&&t){if(e.forEach&&e.forEach===ve)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 U(e,t,n){if(!e)return[];if(!t)return Je(e);if(e.map&&e.map===xe)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 Ne(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 Pe(e,t,n){if(!e)return[];if(!t)return Je(e);if(e.filter&&e.filter===ye)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 Fe(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 Ie(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(be.call(arguments)))}}var W=Ce&&K(Ce.bind)?Ce.call.bind(Ce.bind):Ie;function Le(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(be.call(arguments)))}}function G(e){return Array.isArray?Array.isArray(e):ge.call(e)===`[object Array]`}function K(e){return typeof e==`function`}function q(e){return typeof e==`string`}function Re(e){return ge.call(e)===`[object String]`}function ze(e){return typeof e==`number`}function J(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function Be(e){return!!me[ge.call(e)]}function Ve(e){return!!he[ge.call(e)]}function He(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Ue(e){return e.colorStops!=null}function We(e){return e.image!=null}function Ge(e){return e!==e}function Ke(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function Y(e,t){return e??t}function qe(e,t,n){return e??t??n}function Je(e){var t=[...arguments].slice(1);return be.apply(e,t)}function Ye(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 Xe(e,t){if(!e)throw Error(t)}function Ze(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Qe=`__ec_primitive__`;function $e(e){e[Qe]=!0}function et(e){return e[Qe]}var tt=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 Fe(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),nt=typeof Map==`function`;function rt(){return nt?new Map:new tt}var it=function(){function e(t){var n=G(t);this.data=rt();var r=this;t instanceof e?t.each(i):t&&H(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 nt?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function X(e){return new it(e)}function at(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 ot(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&V(n,t),n}function st(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function ct(e,t){return e.hasOwnProperty(t)}function lt(){}var ut=180/Math.PI;function dt(e,t){return e??=0,t??=0,[e,t]}function ft(e){return[e[0],e[1]]}function pt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function mt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function ht(e){return Math.sqrt(gt(e))}function gt(e){return e[0]*e[0]+e[1]*e[1]}function _t(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function vt(e,t){var n=ht(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function yt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var bt=yt;function xt(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var St=xt;function Ct(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function wt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Tt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Et(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Dt=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ot=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 Dt(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 Dt(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 Dt(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Dt(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Dt(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Dt(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),kt=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}(),At=Math.log(2);function jt(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)/At);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]*jt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Mt(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=jt(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)*jt(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 Nt=`___zrEVENTSAVED`,Pt=[];function Ft(e,t,n,r,i){return It(Pt,t,r,i,!0)&&It(e,n,Pt[0],Pt[1])}function It(e,t,n,r,i){if(t.getBoundingClientRect&&I.domSupported&&!zt(t)){var a=t[Nt]||(t[Nt]={}),o=Rt(Lt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Lt(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 Rt(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?Mt(s,o):Mt(o,s))}function zt(e){return e.nodeName.toUpperCase()===`CANVAS`}var Bt=/([&<>"'])/g,Vt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ht(e){return e==null?``:(e+``).replace(Bt,function(e,t){return Vt[t]})}var Ut=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wt=[],Gt=I.browser.firefox&&+I.browser.version.split(`.`)[0]<39;function Kt(e,t,n,r){return n||={},r?qt(e,t,n):Gt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?qt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function qt(e,t,n){if(I.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(zt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(It(Wt,e,r,i)){n.zrX=Wt[0],n.zrY=Wt[1];return}}n.zrX=n.zrY=0}function Jt(e){return e||window.event}function Yt(e,t,n){if(t=Jt(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&&Kt(e,i,t,n)}else{Kt(e,t,t,n);var a=Xt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Ut.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Xt(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 Zt(e,t,n,r){e.addEventListener(t,n,r)}function Qt(e,t,n,r){e.removeEventListener(t,n,r)}var $t=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function en(e){return e.which===2||e.which===3}var tn=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=Kt(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 an)if(an.hasOwnProperty(t)){var n=an[t](this._track,e);if(n)return n}},e}();function nn(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function rn(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var an={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=nn(r)/nn(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=rn(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function on(){return[1,0,0,1,0,0]}function sn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function cn(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 ln(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 un(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 dn(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 fn(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 pn(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}(),mn=Math.min,hn=Math.max,gn=new Z,_n=new Z,vn=new Z,yn=new Z,bn=new Z,xn=new Z,Sn=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=mn(e.x,this.x),n=mn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?hn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?hn(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=on();return un(i,i,[-t.x,-t.y]),fn(i,i,[n,r]),un(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(xn,-h,0):Z.set(xn,g,0)):y<p&&(p=y,h<g?Z.set(bn,h,0):Z.set(bn,-g,0)),s<u||d<o?b>m&&(m=b,_<v?Z.set(xn,0,-_):Z.set(xn,0,v)):y<p&&(p=y,_<v?Z.set(bn,0,_):Z.set(bn,0,-v))}return n&&Z.copy(n,f?bn:xn),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}gn.x=vn.x=n.x,gn.y=yn.y=n.y,_n.x=yn.x=n.x+n.width,_n.y=vn.y=n.y+n.height,gn.transform(r),yn.transform(r),_n.transform(r),vn.transform(r),t.x=mn(gn.x,_n.x,vn.x,yn.x),t.y=mn(gn.y,_n.y,vn.y,yn.y);var c=hn(gn.x,_n.x,vn.x,yn.x),l=hn(gn.y,_n.y,vn.y,yn.y);t.width=c-t.x,t.height=l-t.y},e}(),Cn=`silent`;function wn(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:Tn}}function Tn(){$t(this.event)}var En=function(e){F(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}(kt),Dn=function(){function e(e,t){this.x=e,this.y=t}return e}(),On=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],kn=new Sn(0,0,0,0),An=function(e){F(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Dn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new En,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Ot(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(H(On,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=Nn(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 Dn(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 Dn(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=wn(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 Dn(e,t);if(Mn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Sn(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)&&(kn.copy(u.getBoundingRect()),u.transform&&kn.applyTransform(u.transform),kn.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(Mn(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 tn;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 Dn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(kt);H([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){An.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Nn(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||bt(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function jn(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||Cn}return!1}function Mn(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=jn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Cn)){t.target=o;break}}}function Nn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Pn=32,Fn=7;function In(e){for(var t=0;e>=Pn;)t|=e&1,e>>=1;return e+t}function Ln(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++;Rn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Rn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function zn(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 Bn(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 Vn(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 Hn(e,t){var n=Fn,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=Vn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Bn(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=Vn(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=Bn(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>=Fn||m>=Fn);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-Vn(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-Bn(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>=Fn||g>=Fn);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 Un(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Pn){a=Ln(e,n,r,t),zn(e,n,r,n+a,t);return}var o=Hn(e,t),s=In(i);do{if(a=Ln(e,n,r,t),a<s){var c=i;c>s&&(c=s),zn(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 Wn=!1;function Gn(){Wn||(Wn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Kn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var qn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Kn}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,Un(n,Kn)},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)&&(Gn(),l.z=0),isNaN(l.z2)&&(Gn(),l.z2=0),isNaN(l.zlevel)&&(Gn(),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=ke(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}(),Jn=I.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Yn={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-Yn.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?Yn.bounceIn(e*2)*.5:Yn.bounceOut(e*2-1)*.5+.5}},Xn=Math.pow,Zn=Math.sqrt,Qn=1e-8,$n=1e-4,er=Zn(3),tr=1/3,nr=dt(),rr=dt(),ir=dt();function ar(e){return e>-Qn&&e<Qn}function or(e){return e>Qn||e<-Qn}function sr(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 cr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function lr(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(ar(u)&&ar(d)){if(ar(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(ar(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=Zn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Xn(-y,tr):Xn(y,tr),b=b<0?-Xn(-b,tr):Xn(b,tr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Zn(u*u*u)),S=Math.acos(x)/3,C=Zn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+er*Math.sin(S)))/(3*o),T=(-s+C*(w-er*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 ur(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(ar(o)){if(or(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(ar(u))i[0]=-a/(2*o);else if(u>0){var d=Zn(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 dr(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 fr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;nr[0]=c,nr[1]=l;for(var v=0;v<1;v+=.05)rr[0]=sr(e,n,i,o,v),rr[1]=sr(t,r,a,s,v),g=St(nr,rr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<$n);y++)m=d-f,h=d+f,rr[0]=sr(e,n,i,o,m),rr[1]=sr(t,r,a,s,m),g=St(rr,nr),m>=0&&g<p?(d=m,p=g):(ir[0]=sr(e,n,i,o,h),ir[1]=sr(t,r,a,s,h),_=St(ir,nr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=sr(e,n,i,o,d),u[1]=sr(t,r,a,s,d)),Zn(p)}function pr(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=sr(e,n,i,o,m),g=sr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function mr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function hr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function gr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(ar(a)){if(or(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(ar(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Zn(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 _r(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function vr(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 yr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;nr[0]=o,nr[1]=s;for(var f=0;f<1;f+=.05){rr[0]=mr(e,n,i,f),rr[1]=mr(t,r,a,f);var p=St(nr,rr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<$n);m++){var h=l-u,g=l+u;rr[0]=mr(e,n,i,h),rr[1]=mr(t,r,a,h);var p=St(rr,nr);if(h>=0&&p<d)l=h,d=p;else{ir[0]=mr(e,n,i,g),ir[1]=mr(t,r,a,g);var _=St(ir,nr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=mr(e,n,i,l),c[1]=mr(t,r,a,l)),Zn(d)}function br(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=mr(e,n,i,f),m=mr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var xr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Sr(e){var t=e&&xr.exec(e);if(t){var n=t[1].split(`,`),r=+Ze(n[0]),i=+Ze(n[1]),a=+Ze(n[2]),o=+Ze(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:lr(0,r,a,1,e,s)&&sr(0,i,o,1,s[0])}}}var Cr=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||lt,this.ondestroy=e.ondestroy||lt,this.onrestart=e.onrestart||lt,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=K(e)?e:Yn[e]||Sr(e)},e}(),wr=function(){function e(e){this.value=e}return e}(),Tr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new wr(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}(),Er=function(){function e(e){this._list=new Tr,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 wr(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}(),Dr={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 Or(e){return e=Math.round(e),e<0?0:e>255?255:e}function kr(e){return e<0?0:e>1?1:e}function Ar(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Or(parseFloat(t)/100*255):Or(parseInt(t,10))}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?kr(parseFloat(t)/100):kr(parseFloat(t))}function Mr(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 Nr(e,t,n){return e+(t-e)*n}function Pr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Fr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ir=new Er(20),Lr=null;function Rr(e,t){Lr&&Fr(Lr,t),Lr=Ir.put(e,Lr||t.slice())}function zr(e,t){if(e){t||=[];var n=Ir.get(e);if(n)return Fr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Dr)return Fr(t,Dr[r]),Rr(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)){Pr(t,0,0,0,1);return}return Pr(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),Rr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Pr(t,0,0,0,1);return}return Pr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Rr(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?Pr(t,+l[0],+l[1],+l[2],1):Pr(t,0,0,0,1);u=jr(l.pop());case`rgb`:if(l.length>=3)return Pr(t,Ar(l[0]),Ar(l[1]),Ar(l[2]),l.length===3?u:jr(l[3])),Rr(e,t),t;Pr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Pr(t,0,0,0,1);return}return l[3]=jr(l[3]),Br(l,t),Rr(e,t),t;case`hsl`:if(l.length!==3){Pr(t,0,0,0,1);return}return Br(l,t),Rr(e,t),t;default:return}}Pr(t,0,0,0,1)}}function Br(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=jr(e[1]),i=jr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Pr(t,Or(Mr(o,a,n+1/3)*255),Or(Mr(o,a,n)*255),Or(Mr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vr(e,t){var n=zr(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 Ur(n,n.length===4?`rgba`:`rgb`)}}function Hr(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=zr(t[i]),s=zr(t[a]),c=r-i,l=Ur([Or(Nr(o[0],s[0],c)),Or(Nr(o[1],s[1],c)),Or(Nr(o[2],s[2],c)),kr(Nr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Ur(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 Wr(e,t){var n=zr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Gr=new Er(100);function Kr(e){if(q(e)){var t=Gr.get(e);return t||(t=Vr(e,-.1),Gr.put(e,t)),t}if(Ue(e)){var n=V({},e);return n.colorStops=U(e.colorStops,function(e){return{offset:e.offset,color:Vr(e.color,-.1)}}),n}return e}function qr(e){return e.type===`linear`}function Jr(e){return e.type===`radial`}(function(){return I.hasGlobalWindow&&K(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 Yr=Array.prototype.slice;function Xr(e,t,n){return(t-e)*n+e}function Zr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Xr(t[a],n[a],r);return e}function Qr(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]=Xr(t[o][s],n[o][s],r)}return e}function $r(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=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]=t[o][s]+n[o][s]*r}return e}function ti(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 ni(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]:Yr.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 ri(e){if(Me(e)){var t=e.length;if(Me(e[0])){for(var n=[],r=0;r<t;r++)n.push(Yr.call(e[r]));return n}return Yr.call(e)}return e}function ii(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 ai(e){return Me(e&&e[0])?2:1}var oi=0,si=1,ci=2,li=3,ui=4,di=5,fi=6;function pi(e){return e===ui||e===di}function mi(e){return e===si||e===ci}var hi=[0,0,0,0],gi=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=fi,s=t;if(Me(t)){var c=ai(t);o=c,(c===1&&!ze(t[0])||c===2&&!ze(t[0][0]))&&(a=!0)}else if(ze(t)&&!Ge(t))o=oi;else if(q(t)){if(!isNaN(+t))o=oi;else{var l=zr(t);l&&(s=l,o=li)}}else if(Ue(t)){var u=V({},s);u.colorStops=U(t.colorStops,function(e){return{offset:e.offset,color:zr(e.color)}}),qr(t)?o=ui:Jr(t)&&(o=di),s=u}i===0?this.valType=o:(o!==this.valType||o===fi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=K(n)?n:Yn[n]||Sr(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=mi(r),c=pi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?ni(d,f,r):c&&ti(d.colorStops,f.colorStops))}if(!o&&r!==di&&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===oi?n[l].additiveValue=n[l].value-p:r===li?n[l].additiveValue=$r([],n[l].value,p,-1):mi(r)&&(n[l].additiveValue=r===si?$r([],n[l].value,p,-1):ei([],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===li,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?hi:e[s];if((mi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(mi(i))i===si?Zr(g,f[r],p[r],h):Qr(g,f[r],p[r],h);else if(pi(i)){var _=f[r],v=p[r],y=i===ui;e[s]={type:y?`linear`:`radial`,x:Xr(_.x,v.x,h),y:Xr(_.y,v.y,h),colorStops:U(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Xr(e.offset,n.offset,h),color:ii(Zr([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Xr(_.x2,v.x2,h),e[s].y2=Xr(_.y2,v.y2,h)):e[s].r=Xr(_.r,v.r,h)}else if(c)Zr(g,f[r],p[r],h),n||(e[s]=ii(g));else{var b=Xr(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===oi?e[n]=e[n]+r:t===li?(zr(e[n],hi),$r(hi,hi,r,1),e[n]=ii(hi)):t===si?$r(e[n],e[n],r,1):t===ci&&ei(e[n],e[n],r,1)},e}(),_i=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){De(`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,Fe(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 gi(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===li&&c&&(c=ii(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ri(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ri(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 Cr({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 U(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]=ri(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=Fe(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 vi(){return new Date().getTime()}var yi=function(e){F(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=vi()-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&&(Jn(t),!e._paused&&e.update())}Jn(t)},t.prototype.start=function(){this._running||(this._time=vi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=vi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=vi()-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 _i(e,t.loop);return this.addAnimator(n),n},t}(kt),bi=300,xi=I.domSupported,Si=(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:U(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Ci={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},wi=!1;function Ti(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ei(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 Di(e){e&&(e.zrByTouch=!0)}function Oi(e,t){return Yt(e.dom,new Ai(e,t),!0)}function ki(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 Ai=function(){function e(e,t){this.stopPropagation=lt,this.stopImmediatePropagation=lt,this.preventDefault=lt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),ji={mousedown:function(e){e=Yt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Yt(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=Yt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Yt(this.dom,e);var t=e.toElement||e.relatedTarget;ki(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){wi=!0,e=Yt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){wi||(e=Yt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Yt(this.dom,e),Di(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),ji.mousemove.call(this,e),ji.mousedown.call(this,e)},touchmove:function(e){e=Yt(this.dom,e),Di(e),this.handler.processGesture(e,`change`),ji.mousemove.call(this,e)},touchend:function(e){e=Yt(this.dom,e),Di(e),this.handler.processGesture(e,`end`),ji.mouseup.call(this,e),new Date-+this.__lastTouchMoment<bi&&ji.click.call(this,e)},pointerdown:function(e){ji.mousedown.call(this,e)},pointermove:function(e){Ti(e)||ji.mousemove.call(this,e)},pointerup:function(e){ji.mouseup.call(this,e)},pointerout:function(e){Ti(e)||ji.mouseout.call(this,e)}};H([`click`,`dblclick`,`contextmenu`],function(e){ji[e]=function(t){t=Yt(this.dom,t),this.trigger(e,t)}});var Mi={pointermove:function(e){Ti(e)||Mi.mousemove.call(this,e)},pointerup:function(e){Mi.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 Ni(e,t){var n=t.domHandlers;I.pointerEventsSupported?H(Si.pointer,function(r){Fi(t,r,function(t){n[r].call(e,t)})}):(I.touchEventsSupported&&H(Si.touch,function(r){Fi(t,r,function(i){n[r].call(e,i),Ei(t)})}),H(Si.mouse,function(r){Fi(t,r,function(i){i=Jt(i),t.touching||n[r].call(e,i)})}))}function Pi(e,t){I.pointerEventsSupported?H(Ci.pointer,n):I.touchEventsSupported||H(Ci.mouse,n);function n(n){function r(r){r=Jt(r),ki(e,r.target)||(r=Oi(e,r),t.domHandlers[n].call(e,r))}Fi(t,n,r,{capture:!0})}}function Fi(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Zt(e.domTarget,t,n,r)}function Ii(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Qt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Li=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Ri=function(e){F(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 Li(t,ji),xi&&(r._globalHandlerScope=new Li(document,Mi)),Ni(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ii(this._localHandlerScope),xi&&Ii(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,xi&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Pi(this,t):Ii(t)}},t}(kt),zi=1;I.hasGlobalWindow&&(zi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Bi=zi,Vi=.4,Hi=`#333`,Ui=`#ccc`,Wi=`#eee`,Gi=sn,Ki=5e-5;function qi(e){return e>Ki||e<-Ki}var Ji=[],Yi=[],Xi=on(),Zi=Math.abs,Qi=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 qi(this.rotation)||qi(this.x)||qi(this.y)||qi(this.scaleX-1)||qi(this.scaleY-1)||qi(this.skewX)||qi(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Gi(n),this.invTransform=null);return}n||=on(),t?this.getLocalTransform(n):Gi(n),e&&(t?ln(n,e,n):cn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ji);var n=Ji[0]<0?-1:1,r=Ji[1]<0?-1:1,i=((Ji[0]-n)*t+n)/Ji[0]||0,a=((Ji[1]-r)*t+r)/Ji[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||on(),pn(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||on(),ln(Yi,e.invTransform,t),t=Yi);var n=this.originX,r=this.originY;(n||r)&&(Xi[4]=n,Xi[5]=r,ln(Yi,t,Xi),Yi[4]-=n,Yi[5]-=r,t=Yi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&wt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&wt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Zi(e[0]-1)>1e-10&&Zi(e[3]-1)>1e-10?Math.sqrt(Zi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ea(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&&dn(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}(),$i=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ea(e,t){for(var n=0;n<$i.length;n++){var r=$i[n];e[r]=t[r]}}var ta={};function na(e,t){t||=`12px sans-serif`;var n=ta[t];n||=ta[t]=new Er(500);var r=n.get(e);return r??(r=pe.measureText(e,t).width,n.put(e,r)),r}function ra(e,t,n,r){var i=na(e,t),a=sa(t);return new Sn(aa(0,i,n),oa(0,a,r),i,a)}function ia(e,t,n,r){var i=((e||``)+``).split(`
|
|
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{t as M}from"./CfVAr2nf.js";import{t as N}from"./D8CqF0yy.js";import{n as P}from"./BeIfu4N3.js";import{t as ee}from"./DpojD719.js";import{t as te}from"#entry";import{t as ne}from"./DsUUYP292.js";import{t as re}from"./C6m-kenn.js";import{t as ie}from"./B3Psw_sL.js";import{t as ae}from"./CUXCQXjG.js";var oe=function(e,t){return oe=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])},oe(e,t)};function F(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);oe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var se=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),I=new(function(){function e(){this.browser=new se,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`?(I.wxa=!0,I.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?I.worker=!0:!I.hasGlobalWindow||`Deno`in window?(I.node=!0,I.svgSupported=!0):ce(navigator.userAgent,I);function ce(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 L=`12px sans-serif`,R=20,le=100,ue=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function de(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)-R)/le}return t}var fe=de(ue),pe={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=pe.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=fe[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}},me=Ne([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),he=Ne([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),ge=Object.prototype.toString,_e=Array.prototype,ve=_e.forEach,ye=_e.filter,be=_e.slice,xe=_e.map,Se=function(){}.constructor,Ce=Se?Se.prototype:null,we=`__proto__`,Te=2311;function Ee(){return Te++}function De(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function z(e){if(typeof e!=`object`||!e)return e;var t=e,n=ge.call(e);if(n===`[object Array]`){if(!et(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=z(e[r])}}else if(he[n]){if(!et(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(!me[n]&&!et(e)&&!He(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==we&&(t[o]=z(e[o]));return t}function B(e,t,n){if(!J(t)||!J(e))return n?z(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==we){var i=e[r],a=t[r];J(a)&&J(i)&&!G(a)&&!G(i)&&!He(a)&&!He(i)&&!Be(a)&&!Be(i)&&!et(a)&&!et(i)?B(i,a,n):(n||!(r in e))&&(e[r]=z(t[r]))}return e}function V(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==we&&(e[n]=t[n]);return e}function Oe(e,t,n){for(var r=Fe(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}pe.createCanvas;function ke(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 Ae(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 je(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 Oe(e,t,n)}function Me(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function H(e,t,n){if(e&&t){if(e.forEach&&e.forEach===ve)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 U(e,t,n){if(!e)return[];if(!t)return Je(e);if(e.map&&e.map===xe)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 Ne(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 Pe(e,t,n){if(!e)return[];if(!t)return Je(e);if(e.filter&&e.filter===ye)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 Fe(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 Ie(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(be.call(arguments)))}}var W=Ce&&K(Ce.bind)?Ce.call.bind(Ce.bind):Ie;function Le(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(be.call(arguments)))}}function G(e){return Array.isArray?Array.isArray(e):ge.call(e)===`[object Array]`}function K(e){return typeof e==`function`}function q(e){return typeof e==`string`}function Re(e){return ge.call(e)===`[object String]`}function ze(e){return typeof e==`number`}function J(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function Be(e){return!!me[ge.call(e)]}function Ve(e){return!!he[ge.call(e)]}function He(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Ue(e){return e.colorStops!=null}function We(e){return e.image!=null}function Ge(e){return e!==e}function Ke(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function Y(e,t){return e??t}function qe(e,t,n){return e??t??n}function Je(e){var t=[...arguments].slice(1);return be.apply(e,t)}function Ye(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 Xe(e,t){if(!e)throw Error(t)}function Ze(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Qe=`__ec_primitive__`;function $e(e){e[Qe]=!0}function et(e){return e[Qe]}var tt=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 Fe(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),nt=typeof Map==`function`;function rt(){return nt?new Map:new tt}var it=function(){function e(t){var n=G(t);this.data=rt();var r=this;t instanceof e?t.each(i):t&&H(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 nt?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function X(e){return new it(e)}function at(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 ot(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&V(n,t),n}function st(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function ct(e,t){return e.hasOwnProperty(t)}function lt(){}var ut=180/Math.PI;function dt(e,t){return e??=0,t??=0,[e,t]}function ft(e){return[e[0],e[1]]}function pt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function mt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function ht(e){return Math.sqrt(gt(e))}function gt(e){return e[0]*e[0]+e[1]*e[1]}function _t(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function vt(e,t){var n=ht(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function yt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var bt=yt;function xt(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var St=xt;function Ct(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function wt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Tt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Et(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Dt=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ot=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 Dt(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 Dt(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 Dt(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Dt(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Dt(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Dt(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),kt=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}(),At=Math.log(2);function jt(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)/At);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]*jt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Mt(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=jt(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)*jt(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 Nt=`___zrEVENTSAVED`,Pt=[];function Ft(e,t,n,r,i){return It(Pt,t,r,i,!0)&&It(e,n,Pt[0],Pt[1])}function It(e,t,n,r,i){if(t.getBoundingClientRect&&I.domSupported&&!zt(t)){var a=t[Nt]||(t[Nt]={}),o=Rt(Lt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Lt(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 Rt(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?Mt(s,o):Mt(o,s))}function zt(e){return e.nodeName.toUpperCase()===`CANVAS`}var Bt=/([&<>"'])/g,Vt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ht(e){return e==null?``:(e+``).replace(Bt,function(e,t){return Vt[t]})}var Ut=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wt=[],Gt=I.browser.firefox&&+I.browser.version.split(`.`)[0]<39;function Kt(e,t,n,r){return n||={},r?qt(e,t,n):Gt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?qt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function qt(e,t,n){if(I.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(zt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(It(Wt,e,r,i)){n.zrX=Wt[0],n.zrY=Wt[1];return}}n.zrX=n.zrY=0}function Jt(e){return e||window.event}function Yt(e,t,n){if(t=Jt(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&&Kt(e,i,t,n)}else{Kt(e,t,t,n);var a=Xt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Ut.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Xt(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 Zt(e,t,n,r){e.addEventListener(t,n,r)}function Qt(e,t,n,r){e.removeEventListener(t,n,r)}var $t=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function en(e){return e.which===2||e.which===3}var tn=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=Kt(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 an)if(an.hasOwnProperty(t)){var n=an[t](this._track,e);if(n)return n}},e}();function nn(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function rn(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var an={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=nn(r)/nn(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=rn(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function on(){return[1,0,0,1,0,0]}function sn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function cn(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 ln(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 un(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 dn(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 fn(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 pn(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}(),mn=Math.min,hn=Math.max,gn=new Z,_n=new Z,vn=new Z,yn=new Z,bn=new Z,xn=new Z,Sn=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=mn(e.x,this.x),n=mn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?hn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?hn(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=on();return un(i,i,[-t.x,-t.y]),fn(i,i,[n,r]),un(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(xn,-h,0):Z.set(xn,g,0)):y<p&&(p=y,h<g?Z.set(bn,h,0):Z.set(bn,-g,0)),s<u||d<o?b>m&&(m=b,_<v?Z.set(xn,0,-_):Z.set(xn,0,v)):y<p&&(p=y,_<v?Z.set(bn,0,_):Z.set(bn,0,-v))}return n&&Z.copy(n,f?bn:xn),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}gn.x=vn.x=n.x,gn.y=yn.y=n.y,_n.x=yn.x=n.x+n.width,_n.y=vn.y=n.y+n.height,gn.transform(r),yn.transform(r),_n.transform(r),vn.transform(r),t.x=mn(gn.x,_n.x,vn.x,yn.x),t.y=mn(gn.y,_n.y,vn.y,yn.y);var c=hn(gn.x,_n.x,vn.x,yn.x),l=hn(gn.y,_n.y,vn.y,yn.y);t.width=c-t.x,t.height=l-t.y},e}(),Cn=`silent`;function wn(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:Tn}}function Tn(){$t(this.event)}var En=function(e){F(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}(kt),Dn=function(){function e(e,t){this.x=e,this.y=t}return e}(),On=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],kn=new Sn(0,0,0,0),An=function(e){F(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Dn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new En,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Ot(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(H(On,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=Nn(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 Dn(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 Dn(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=wn(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 Dn(e,t);if(Mn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Sn(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)&&(kn.copy(u.getBoundingRect()),u.transform&&kn.applyTransform(u.transform),kn.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(Mn(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 tn;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 Dn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(kt);H([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){An.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Nn(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||bt(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function jn(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||Cn}return!1}function Mn(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=jn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Cn)){t.target=o;break}}}function Nn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Pn=32,Fn=7;function In(e){for(var t=0;e>=Pn;)t|=e&1,e>>=1;return e+t}function Ln(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++;Rn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Rn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function zn(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 Bn(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 Vn(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 Hn(e,t){var n=Fn,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=Vn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Bn(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=Vn(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=Bn(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>=Fn||m>=Fn);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-Vn(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-Bn(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>=Fn||g>=Fn);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 Un(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Pn){a=Ln(e,n,r,t),zn(e,n,r,n+a,t);return}var o=Hn(e,t),s=In(i);do{if(a=Ln(e,n,r,t),a<s){var c=i;c>s&&(c=s),zn(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 Wn=!1;function Gn(){Wn||(Wn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Kn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var qn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Kn}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,Un(n,Kn)},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)&&(Gn(),l.z=0),isNaN(l.z2)&&(Gn(),l.z2=0),isNaN(l.zlevel)&&(Gn(),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=ke(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}(),Jn=I.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Yn={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-Yn.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?Yn.bounceIn(e*2)*.5:Yn.bounceOut(e*2-1)*.5+.5}},Xn=Math.pow,Zn=Math.sqrt,Qn=1e-8,$n=1e-4,er=Zn(3),tr=1/3,nr=dt(),rr=dt(),ir=dt();function ar(e){return e>-Qn&&e<Qn}function or(e){return e>Qn||e<-Qn}function sr(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 cr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function lr(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(ar(u)&&ar(d)){if(ar(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(ar(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=Zn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Xn(-y,tr):Xn(y,tr),b=b<0?-Xn(-b,tr):Xn(b,tr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Zn(u*u*u)),S=Math.acos(x)/3,C=Zn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+er*Math.sin(S)))/(3*o),T=(-s+C*(w-er*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 ur(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(ar(o)){if(or(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(ar(u))i[0]=-a/(2*o);else if(u>0){var d=Zn(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 dr(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 fr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;nr[0]=c,nr[1]=l;for(var v=0;v<1;v+=.05)rr[0]=sr(e,n,i,o,v),rr[1]=sr(t,r,a,s,v),g=St(nr,rr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<$n);y++)m=d-f,h=d+f,rr[0]=sr(e,n,i,o,m),rr[1]=sr(t,r,a,s,m),g=St(rr,nr),m>=0&&g<p?(d=m,p=g):(ir[0]=sr(e,n,i,o,h),ir[1]=sr(t,r,a,s,h),_=St(ir,nr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=sr(e,n,i,o,d),u[1]=sr(t,r,a,s,d)),Zn(p)}function pr(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=sr(e,n,i,o,m),g=sr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function mr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function hr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function gr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(ar(a)){if(or(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(ar(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Zn(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 _r(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function vr(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 yr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;nr[0]=o,nr[1]=s;for(var f=0;f<1;f+=.05){rr[0]=mr(e,n,i,f),rr[1]=mr(t,r,a,f);var p=St(nr,rr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<$n);m++){var h=l-u,g=l+u;rr[0]=mr(e,n,i,h),rr[1]=mr(t,r,a,h);var p=St(rr,nr);if(h>=0&&p<d)l=h,d=p;else{ir[0]=mr(e,n,i,g),ir[1]=mr(t,r,a,g);var _=St(ir,nr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=mr(e,n,i,l),c[1]=mr(t,r,a,l)),Zn(d)}function br(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=mr(e,n,i,f),m=mr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var xr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Sr(e){var t=e&&xr.exec(e);if(t){var n=t[1].split(`,`),r=+Ze(n[0]),i=+Ze(n[1]),a=+Ze(n[2]),o=+Ze(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:lr(0,r,a,1,e,s)&&sr(0,i,o,1,s[0])}}}var Cr=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||lt,this.ondestroy=e.ondestroy||lt,this.onrestart=e.onrestart||lt,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=K(e)?e:Yn[e]||Sr(e)},e}(),wr=function(){function e(e){this.value=e}return e}(),Tr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new wr(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}(),Er=function(){function e(e){this._list=new Tr,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 wr(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}(),Dr={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 Or(e){return e=Math.round(e),e<0?0:e>255?255:e}function kr(e){return e<0?0:e>1?1:e}function Ar(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Or(parseFloat(t)/100*255):Or(parseInt(t,10))}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?kr(parseFloat(t)/100):kr(parseFloat(t))}function Mr(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 Nr(e,t,n){return e+(t-e)*n}function Pr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Fr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ir=new Er(20),Lr=null;function Rr(e,t){Lr&&Fr(Lr,t),Lr=Ir.put(e,Lr||t.slice())}function zr(e,t){if(e){t||=[];var n=Ir.get(e);if(n)return Fr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Dr)return Fr(t,Dr[r]),Rr(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)){Pr(t,0,0,0,1);return}return Pr(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),Rr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Pr(t,0,0,0,1);return}return Pr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Rr(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?Pr(t,+l[0],+l[1],+l[2],1):Pr(t,0,0,0,1);u=jr(l.pop());case`rgb`:if(l.length>=3)return Pr(t,Ar(l[0]),Ar(l[1]),Ar(l[2]),l.length===3?u:jr(l[3])),Rr(e,t),t;Pr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Pr(t,0,0,0,1);return}return l[3]=jr(l[3]),Br(l,t),Rr(e,t),t;case`hsl`:if(l.length!==3){Pr(t,0,0,0,1);return}return Br(l,t),Rr(e,t),t;default:return}}Pr(t,0,0,0,1)}}function Br(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=jr(e[1]),i=jr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Pr(t,Or(Mr(o,a,n+1/3)*255),Or(Mr(o,a,n)*255),Or(Mr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vr(e,t){var n=zr(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 Ur(n,n.length===4?`rgba`:`rgb`)}}function Hr(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=zr(t[i]),s=zr(t[a]),c=r-i,l=Ur([Or(Nr(o[0],s[0],c)),Or(Nr(o[1],s[1],c)),Or(Nr(o[2],s[2],c)),kr(Nr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Ur(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 Wr(e,t){var n=zr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Gr=new Er(100);function Kr(e){if(q(e)){var t=Gr.get(e);return t||(t=Vr(e,-.1),Gr.put(e,t)),t}if(Ue(e)){var n=V({},e);return n.colorStops=U(e.colorStops,function(e){return{offset:e.offset,color:Vr(e.color,-.1)}}),n}return e}function qr(e){return e.type===`linear`}function Jr(e){return e.type===`radial`}(function(){return I.hasGlobalWindow&&K(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 Yr=Array.prototype.slice;function Xr(e,t,n){return(t-e)*n+e}function Zr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Xr(t[a],n[a],r);return e}function Qr(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]=Xr(t[o][s],n[o][s],r)}return e}function $r(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=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]=t[o][s]+n[o][s]*r}return e}function ti(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 ni(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]:Yr.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 ri(e){if(Me(e)){var t=e.length;if(Me(e[0])){for(var n=[],r=0;r<t;r++)n.push(Yr.call(e[r]));return n}return Yr.call(e)}return e}function ii(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 ai(e){return Me(e&&e[0])?2:1}var oi=0,si=1,ci=2,li=3,ui=4,di=5,fi=6;function pi(e){return e===ui||e===di}function mi(e){return e===si||e===ci}var hi=[0,0,0,0],gi=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=fi,s=t;if(Me(t)){var c=ai(t);o=c,(c===1&&!ze(t[0])||c===2&&!ze(t[0][0]))&&(a=!0)}else if(ze(t)&&!Ge(t))o=oi;else if(q(t)){if(!isNaN(+t))o=oi;else{var l=zr(t);l&&(s=l,o=li)}}else if(Ue(t)){var u=V({},s);u.colorStops=U(t.colorStops,function(e){return{offset:e.offset,color:zr(e.color)}}),qr(t)?o=ui:Jr(t)&&(o=di),s=u}i===0?this.valType=o:(o!==this.valType||o===fi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=K(n)?n:Yn[n]||Sr(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=mi(r),c=pi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?ni(d,f,r):c&&ti(d.colorStops,f.colorStops))}if(!o&&r!==di&&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===oi?n[l].additiveValue=n[l].value-p:r===li?n[l].additiveValue=$r([],n[l].value,p,-1):mi(r)&&(n[l].additiveValue=r===si?$r([],n[l].value,p,-1):ei([],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===li,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?hi:e[s];if((mi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(mi(i))i===si?Zr(g,f[r],p[r],h):Qr(g,f[r],p[r],h);else if(pi(i)){var _=f[r],v=p[r],y=i===ui;e[s]={type:y?`linear`:`radial`,x:Xr(_.x,v.x,h),y:Xr(_.y,v.y,h),colorStops:U(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Xr(e.offset,n.offset,h),color:ii(Zr([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Xr(_.x2,v.x2,h),e[s].y2=Xr(_.y2,v.y2,h)):e[s].r=Xr(_.r,v.r,h)}else if(c)Zr(g,f[r],p[r],h),n||(e[s]=ii(g));else{var b=Xr(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===oi?e[n]=e[n]+r:t===li?(zr(e[n],hi),$r(hi,hi,r,1),e[n]=ii(hi)):t===si?$r(e[n],e[n],r,1):t===ci&&ei(e[n],e[n],r,1)},e}(),_i=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){De(`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,Fe(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 gi(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===li&&c&&(c=ii(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ri(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ri(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 Cr({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 U(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]=ri(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=Fe(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 vi(){return new Date().getTime()}var yi=function(e){F(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=vi()-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&&(Jn(t),!e._paused&&e.update())}Jn(t)},t.prototype.start=function(){this._running||(this._time=vi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=vi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=vi()-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 _i(e,t.loop);return this.addAnimator(n),n},t}(kt),bi=300,xi=I.domSupported,Si=(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:U(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Ci={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},wi=!1;function Ti(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ei(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 Di(e){e&&(e.zrByTouch=!0)}function Oi(e,t){return Yt(e.dom,new Ai(e,t),!0)}function ki(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 Ai=function(){function e(e,t){this.stopPropagation=lt,this.stopImmediatePropagation=lt,this.preventDefault=lt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),ji={mousedown:function(e){e=Yt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Yt(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=Yt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Yt(this.dom,e);var t=e.toElement||e.relatedTarget;ki(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){wi=!0,e=Yt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){wi||(e=Yt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Yt(this.dom,e),Di(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),ji.mousemove.call(this,e),ji.mousedown.call(this,e)},touchmove:function(e){e=Yt(this.dom,e),Di(e),this.handler.processGesture(e,`change`),ji.mousemove.call(this,e)},touchend:function(e){e=Yt(this.dom,e),Di(e),this.handler.processGesture(e,`end`),ji.mouseup.call(this,e),new Date-+this.__lastTouchMoment<bi&&ji.click.call(this,e)},pointerdown:function(e){ji.mousedown.call(this,e)},pointermove:function(e){Ti(e)||ji.mousemove.call(this,e)},pointerup:function(e){ji.mouseup.call(this,e)},pointerout:function(e){Ti(e)||ji.mouseout.call(this,e)}};H([`click`,`dblclick`,`contextmenu`],function(e){ji[e]=function(t){t=Yt(this.dom,t),this.trigger(e,t)}});var Mi={pointermove:function(e){Ti(e)||Mi.mousemove.call(this,e)},pointerup:function(e){Mi.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 Ni(e,t){var n=t.domHandlers;I.pointerEventsSupported?H(Si.pointer,function(r){Fi(t,r,function(t){n[r].call(e,t)})}):(I.touchEventsSupported&&H(Si.touch,function(r){Fi(t,r,function(i){n[r].call(e,i),Ei(t)})}),H(Si.mouse,function(r){Fi(t,r,function(i){i=Jt(i),t.touching||n[r].call(e,i)})}))}function Pi(e,t){I.pointerEventsSupported?H(Ci.pointer,n):I.touchEventsSupported||H(Ci.mouse,n);function n(n){function r(r){r=Jt(r),ki(e,r.target)||(r=Oi(e,r),t.domHandlers[n].call(e,r))}Fi(t,n,r,{capture:!0})}}function Fi(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Zt(e.domTarget,t,n,r)}function Ii(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Qt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Li=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Ri=function(e){F(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 Li(t,ji),xi&&(r._globalHandlerScope=new Li(document,Mi)),Ni(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ii(this._localHandlerScope),xi&&Ii(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,xi&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Pi(this,t):Ii(t)}},t}(kt),zi=1;I.hasGlobalWindow&&(zi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Bi=zi,Vi=.4,Hi=`#333`,Ui=`#ccc`,Wi=`#eee`,Gi=sn,Ki=5e-5;function qi(e){return e>Ki||e<-Ki}var Ji=[],Yi=[],Xi=on(),Zi=Math.abs,Qi=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 qi(this.rotation)||qi(this.x)||qi(this.y)||qi(this.scaleX-1)||qi(this.scaleY-1)||qi(this.skewX)||qi(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Gi(n),this.invTransform=null);return}n||=on(),t?this.getLocalTransform(n):Gi(n),e&&(t?ln(n,e,n):cn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ji);var n=Ji[0]<0?-1:1,r=Ji[1]<0?-1:1,i=((Ji[0]-n)*t+n)/Ji[0]||0,a=((Ji[1]-r)*t+r)/Ji[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||on(),pn(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||on(),ln(Yi,e.invTransform,t),t=Yi);var n=this.originX,r=this.originY;(n||r)&&(Xi[4]=n,Xi[5]=r,ln(Yi,t,Xi),Yi[4]-=n,Yi[5]-=r,t=Yi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&wt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&wt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Zi(e[0]-1)>1e-10&&Zi(e[3]-1)>1e-10?Math.sqrt(Zi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ea(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&&dn(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}(),$i=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ea(e,t){for(var n=0;n<$i.length;n++){var r=$i[n];e[r]=t[r]}}var ta={};function na(e,t){t||=`12px sans-serif`;var n=ta[t];n||=ta[t]=new Er(500);var r=n.get(e);return r??(r=pe.measureText(e,t).width,n.put(e,r)),r}function ra(e,t,n,r){var i=na(e,t),a=sa(t);return new Sn(aa(0,i,n),oa(0,a,r),i,a)}function ia(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
2
|
`);if(i.length===1)return ra(i[0],t,n,r);for(var a=new Sn(0,0,0,0),o=0;o<i.length;o++){var s=ra(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function aa(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function oa(e,t,n){return n===`middle`?e-=t/2:n===`bottom`&&(e-=t),e}function sa(e){return na(`国`,e)}function ca(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function la(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+=ca(r[0],n.width),l+=ca(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 ua=`__zr_normal__`,da=$i.concat([`ignore`]),fa=Ne($i,function(e,t){return e[t]=!0,e},{ignore:!1}),pa={},ma=new Sn(0,0,0,0),ha=function(){function e(e){this.id=Ee(),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=ma;n.layoutRect?l.copy(n.layoutRect):l.copy(this.getBoundingRect()),r||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pa,n,l):la(pa,n,l),i.x=pa.x,i.y=pa.y,a=pa.align,o=pa.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=ca(u[0],l.width),f=ca(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()?Ui:Hi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&zr(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,Ur(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||{},V(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(J(e))for(var n=Fe(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,da)},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(ua,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ua;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(ke(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){De(`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=ke(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=ke(r,e),a=ke(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];V(t,i),i.textConfig&&(n||={},V(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=V({},r?this.textConfig:n.textConfig),V(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<da.length;l++){var u=da[l],d=i&&fa[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 Qi,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},V(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 _i(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=ke(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){ga(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ga(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ga(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}();je(ha,kt),je(ha,Qi);function ga(e,t,n,r,i){n||={};var a=[];Sa(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 _a(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function va(e){return Me(e[0])}function ya(e,t,n){if(Me(t[n])){if(Me(e[n])||(e[n]=[]),Ve(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),_a(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(va(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?_a(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else _a(a,i,o);a.length=i.length}}else e[n]=t[n]}function ba(e,t){return e===t||Me(e)&&Me(t)&&xa(e,t)}function xa(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 Sa(e,t,n,r,i,a,o,s){for(var c=Fe(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!J(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(J(v)&&!Me(v)&&!Ue(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Sa(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=ke(m,x);m.splice(S,1)}}if(i.force||(h=Pe(h,function(e){return!ba(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[_]=ri(n[_]),ya(n,r,_)}}var x=new _i(n,!1,!1,d?Pe(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 Ca=function(e){F(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=ke(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=ke(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 Sn(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?(Sn.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(ha);Ca.prototype.type=`group`;var wa={},Ta={};function Ea(e){delete Ta[e]}function Da(e){if(!e)return!1;if(typeof e==`string`)return Wr(e,1)<Vi;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Wr(t[i].color,1);return n/=r,n<Vi}return!1}var Oa=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 qn,a=n.renderer||`canvas`;wa[a]||(a=Fe(wa)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new wa[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!I.node&&!I.worker&&!s?new Ri(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?I.touchEventsSupported:!!l,d=44,f;u&&(f=Y(n.pointerSize,d)),this.handler=new An(i,o,c,o.root,f),this.animation=new yi({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=Da(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=vi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=vi();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 Ca&&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,Ea(this.id))},e}();function ka(e,t){var n=new Oa(Ee(),e,t);return Ta[n.id]=n,n}function Aa(e,t){wa[e]=t}var ja=1e-4,Ma=20;function Na(e){return e.replace(/^\s+|\s+$/g,``)}function Pa(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 q(e)?Na(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Fa(e,t,n){return t??=10,t=Math.min(Math.max(0,t),Ma),e=(+e).toFixed(t),n?e:+e}function Ia(e){return e.sort(function(e,t){return e-t}),e}function La(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 Ra(e)}function Ra(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 za(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 Ba(e,t){var n=Ne(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=U(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=U(i,function(e){return Math.floor(e)}),s=Ne(o,function(e,t){return e+t},0),c=U(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 U(o,function(e){return e/r})}function Va(e,t){var n=Math.max(La(e),La(t)),r=e+t;return n>Ma?r:Fa(r,n)}function Ha(e){var t=Math.PI*2;return(e%t+t)%t}function Ua(e){return e>-ja&&e<ja}var Wa=/^(?:(\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 Ga(e){if(e instanceof Date)return e;if(q(e)){var t=Wa.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 Ka(e){return 10**qa(e)}function qa(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function Ja(e,t){var n=qa(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 Ya(e){var t=parseFloat(e);return t==e&&(t!==0||!q(e)||e.indexOf(`x`)<=0)?t:NaN}function Xa(e){return!isNaN(Ya(e))}function Za(){return Math.round(Math.random()*9)}function Qa(e,t){return t===0?e:Qa(t,e%t)}function $a(e,t){return e==null?t:t==null?e:e*t/Qa(e,t)}function eo(e){throw Error(e)}function to(e,t,n){return(t-e)*n+e}var no=`series\0`,ro=`\0_ec_\0`;function io(e){return e instanceof Array?e:e==null?[]:[e]}function ao(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 oo=`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 so(e){return J(e)&&!G(e)&&!(e instanceof Date)?e.value:e}function co(e){return J(e)&&!(e instanceof Array)}function lo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=X();H(t,function(e,n){if(!J(e)){t[n]=null;return}});var s=uo(e,o,n);return(r||i)&&fo(s,e,o,t),r&&po(s,t),r||i?mo(s,t,i):a&&ho(s,t),go(s),s}function uo(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`||xo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function fo(e,t,n,r){H(r,function(i,a){if(!(!i||i.id==null)){var o=vo(i.id),s=n.get(o);if(s!=null){var c=e[s];Xe(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function po(e,t){H(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)&&!xo(n)&&!xo(a)&&_o(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function mo(e,t,n){H(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||xo(r.existing)||r.existing&&t.id!=null&&!_o(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function ho(e,t){H(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function go(e){var t=X();H(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),H(e,function(e){var n=e.newOption;Xe(!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={})}),H(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(J(i)){if(a.name=i.name==null?r?r.name:no+n:vo(i.name),r)a.id=vo(r.id);else if(i.id!=null)a.id=vo(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 _o(e,t,n){var r=yo(t[e],null),i=yo(n[e],null);return r!=null&&i!=null&&r===i}function vo(e){return yo(e,``)}function yo(e,t){return e==null?t:q(e)?e:ze(e)||Re(e)?e+``:t}function bo(e){var t=e.name;return!!(t&&t.indexOf(no))}function xo(e){return e&&e.id!=null&&vo(e.id).indexOf(ro)===0}function So(e,t,n){H(e,function(e){var r=e.newOption;J(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Co(t,r,e.existing,n))})}function Co(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function wo(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return G(t.dataIndex)?U(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return G(t.name)?U(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function To(){var e=`__ec_inner_`+Eo++;return function(t){return t[e]||(t[e]={})}}var Eo=Za();function Do(e,t,n){var r=Oo(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=jo(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 Oo(e,t){var n;if(q(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=X(),a={},o=!1;return H(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&&ke(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ko={useDefault:!0,enableAll:!1,enableNone:!1},Ao={useDefault:!1,enableAll:!0,enableNone:!0};function jo(e,t,n,r){r||=ko;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?(Xe(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i===`all`&&(Xe(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 Mo(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function No(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Po(e){return e===`auto`?I.domSupported?`html`:`richText`:e||`html`}function Fo(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(ze(r)){var o=to(n||0,r,i);return Fa(o,a?Math.max(La(n||0),La(r)):t)}if(q(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=to(p,m,i);s[d]=Fa(o,a?Math.max(La(p),La(m)):t)}}return s}var Io=`.`,Lo=`___EC__COMPONENT__CONTAINER___`,Ro=`___EC__EXTENDED_CLASS___`;function zo(e){var t={main:``,sub:``};if(e){var n=e.split(Io);t.main=n[0]||``,t.sub=n[1]||``}return t}function Bo(e){Xe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Vo(e){return!!(e&&e[Ro])}function Ho(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Uo(t)?n=function(e){F(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},Ae(n,this)),V(n.prototype,e),n[Ro]=!0,n.extend=this.extend,n.superCall=qo,n.superApply=Jo,n.superClass=t,n}}function Uo(e){return K(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Wo(e,t){e.extend=t.extend}var Go=Math.round(Math.random()*10);function Ko(e){var t=[`__\0is_clz`,Go++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function qo(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Jo(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Yo(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Bo(r),e.prototype.type=r;var i=zo(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Lo){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Lo]&&(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=zo(e),r=[],i=t[n.main];return i&&i[Lo]?H(i,function(e,t){t!==Lo&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[zo(e).main]},e.getAllClassMainTypes=function(){var e=[];return H(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[zo(e).main];return n&&n[Lo]};function n(e){var n=t[e.main];return(!n||!n[Lo])&&(n=t[e.main]={},n[Lo]=!0),n}}function Xo(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&&ke(r,s)>=0||i&&ke(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Zo=Xo([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Qo=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Zo(this,e,t)},e}(),$o=new Er(50);function es(e){if(typeof e==`string`){var t=$o.get(e);return t&&t.image}return e}function ts(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=$o.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!rs(t)&&a.pending.push(o)):(t=pe.loadImage(e,ns,ns),t.__zrImageSrc=e,$o.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function ns(){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 rs(e){return e&&e.width&&e.height}var is=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function as(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
3
|
`);a=os(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)ss(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
4
|
`),e.isTruncated=s}function os(e,t,n,r){r||={};var i=V({},r);i.font=t,n=Y(n,`...`),i.maxIterations=Y(r.maxIterations,2);var a=i.minChar=Y(r.minChar,0);i.cnCharWidth=na(`国`,t);var o=i.ascCharWidth=na(`a`,t);i.placeholder=Y(r.placeholder,``);for(var s=e=Math.max(0,e-1),c=0;c<a&&s>=o;c++)s-=o;var l=na(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 ss(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=na(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?cs(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,c),o=na(t,i)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function cs(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 ls(e,t){e!=null&&(e+=``);var n=t.overflow,r=t.padding,i=t.font,a=n===`truncate`,o=sa(i),s=Y(t.lineHeight,o),c=!!t.backgroundColor,l=t.lineOverflow===`truncate`,u=!1,d=t.width,f=d!=null&&(n===`break`||n===`breakAll`)?e?vs(e,t.font,d,n===`breakAll`,0).lines:[]:e?e.split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,F as t,O as n,St as r,U as i,_t as a,a as o,c as s,et as c,f as l,gt as u,mt as d,rt as f,tt as p,vt as m,w as h,x as g,z as _}from"./BSCpFtzG.js";import{R as v,k as y}from"./2LwEn9gX.js";import{$ as b,At as x,Ct as S,D as C,St as w,_ as T,bt as E,ct as ee,d as D,f as O,g as k,h as A,kt as j,n as M,p as N,pt as P,t as F,u as I,yt as te}from"./BDUjyaF4.js";import{A as ne,C as re,J as ie,K as L,P as R,S as z,Y as B,g as V,i as H,m as ae,p as oe,t as se}from"./3612gD2V.js";import{G as ce,V as U,X as W,g as le,x as G}from"./Bt_HDizI.js";import{h as ue,x as de}from"./BsMpJf7S.js";function fe(){}var pe=G&&1/L(new G([,-0]))[1]==1/0?function(e){return new G(e)}:fe,me=200;function he(e,t,n){var r=-1,i=re,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=z;else if(a>=me){var l=t?null:pe(e);if(l)return L(l);o=!1,i=ie,c=new B}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function K(e){return e&&e.length?he(e):[]}var q={adjustX:1,adjustY:1},J=[0,0],ge={topLeft:{points:[`bl`,`tl`],overflow:q,offset:[0,-4],targetOffset:J},topCenter:{points:[`bc`,`tc`],overflow:q,offset:[0,-4],targetOffset:J},topRight:{points:[`br`,`tr`],overflow:q,offset:[0,-4],targetOffset:J},bottomLeft:{points:[`tl`,`bl`],overflow:q,offset:[0,4],targetOffset:J},bottomCenter:{points:[`tc`,`bc`],overflow:q,offset:[0,4],targetOffset:J},bottomRight:{points:[`tr`,`br`],overflow:q,offset:[0,4],targetOffset:J}},_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},ve=e({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:F.string.def(`rc-dropdown`),transitionName:String,overlayClassName:F.string.def(``),openClassName:String,animation:F.any,align:F.object,overlayStyle:{type:Object,default:void 0},placement:F.string.def(`bottomLeft`),overlay:F.any,trigger:F.oneOfType([F.string,F.arrayOf(F.string)]).def(`hover`),alignPoint:{type:Boolean,default:void 0},showAction:F.array,hideAction:F.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:F.number.def(.15),mouseLeaveDelay:F.number.def(.1)},emits:[`visibleChange`,`overlayClick`],setup(e,t){let{slots:n,emit:r,expose:i}=t,a=d(!!e.visible);c(()=>e.visible,e=>{e!==void 0&&(a.value=e)});let s=d();i({triggerRef:s});let u=t=>{e.visible===void 0&&(a.value=!1),r(`overlayClick`,t)},f=t=>{e.visible===void 0&&(a.value=t),r(`visibleChange`,t)},p=()=>{let t=n.overlay?.call(n),r={prefixCls:`${e.prefixCls}-menu`,onClick:u};return g(o,{key:E},[e.arrow&&g(`div`,{class:`${e.prefixCls}-arrow`},null),U(t,r,!1)])},m=l(()=>{let{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t}),h=()=>{let t=n.default?.call(n);return a.value&&t?U(t[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):t},_=l(()=>!e.hideAction&&e.trigger.indexOf(`contextmenu`)!==-1?[`click`]:e.hideAction);return()=>{let{prefixCls:t,arrow:n,showAction:r,overlayStyle:i,trigger:o,placement:c,align:l,getPopupContainer:u,transitionName:d,animation:v,overlayClassName:y}=e,b=_e(e,[`prefixCls`,`arrow`,`showAction`,`overlayStyle`,`trigger`,`placement`,`align`,`getPopupContainer`,`transitionName`,`animation`,`overlayClassName`]);return g(R,x(x({},b),{},{prefixCls:t,ref:s,popupClassName:S(y,{[`${t}-show-arrow`]:n}),popupStyle:i,builtinPlacements:ge,action:o,showAction:r,hideAction:_.value||[],popupPlacement:c,popupAlign:l,popupTransitionName:d,popupAnimation:v,popupVisible:a.value,stretch:m.value?`minWidth`:``,onPopupVisibleChange:f,getPopupContainer:u}),{popup:p,default:h})}}}),ye={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`};function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){xe(e,t,n[t])})}return e}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Se=function(e,t){var n=be({},e,t.attrs);return g(ue,be({},n,{icon:ye}),null)};Se.displayName=`EllipsisOutlined`,Se.inheritAttrs=!1;var Ce=Symbol(`OverrideContextKey`),we=()=>n(Ce,void 0),Te=e=>{let{prefixCls:t,mode:n,selectable:r,validator:a,onClick:o,expandIcon:s}=we()||{};i(Ce,{prefixCls:l(()=>e.prefixCls?.value??t?.value),mode:l(()=>e.mode?.value??n?.value),selectable:l(()=>e.selectable?.value??r?.value),validator:e.validator??a,onClick:e.onClick??o,expandIcon:e.expandIcon??s?.value})};function Ee(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function De(e,t){return Ee(a(e),a(t))}var Oe=Symbol(`menuContextKey`),ke=e=>{i(Oe,e)},Y=()=>n(Oe),Ae=Symbol(`ForceRenderKey`),je=e=>{i(Ae,e)},Me=()=>n(Ae,!1),Ne=Symbol(`menuFirstLevelContextKey`),Pe=e=>{i(Ne,e)},Fe=()=>n(Ne,!0),Ie=e({compatConfig:{MODE:3},name:`MenuContextProvider`,inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t,r=Y(),i=j({},r);return e.mode!==void 0&&(i.mode=m(e,`mode`)),e.overflowDisabled!==void 0&&(i.overflowDisabled=m(e,`overflowDisabled`)),ke(i),()=>n.default?.call(n)}}),Le=Symbol(`siderCollapsed`),Re=Symbol(`siderHookProvider`),ze=`$$__vc-menu-more__key`,Be=Symbol(`KeyPathContext`),Ve=()=>n(Be,{parentEventKeys:l(()=>[]),parentKeys:l(()=>[]),parentInfo:{}}),He=(e,t,n)=>{let{parentEventKeys:r,parentKeys:a}=Ve(),o=l(()=>[...r.value,e]),s=l(()=>[...a.value,t]);return i(Be,{parentEventKeys:o,parentKeys:s,parentInfo:n}),s},Ue=Symbol(`measure`),We=e({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return i(Ue,!0),()=>n.default?.call(n)}}),Ge=()=>n(Ue,!1);function Ke(e){let{mode:t,rtl:n,inlineIndent:r}=Y();return l(()=>t.value===`inline`?n.value?{paddingRight:`${e.value*r.value}px`}:{paddingLeft:`${e.value*r.value}px`}:null)}var qe=0,X=e({compatConfig:{MODE:3},name:`AMenuItem`,inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:F.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:b()},slots:Object,setup(e,n){let{slots:r,emit:i,attrs:a}=n,o=h(),s=Ge(),d=typeof o.vnode.key==`symbol`?String(o.vnode.key):o.vnode.key;ce(typeof o.vnode.key!=`symbol`,`MenuItem`,`MenuItem \`:key="${String(d)}"\` not support Symbol type`);let f=`menu_item_${++qe}_$$_${d}`,{parentEventKeys:p,parentKeys:m}=Ve(),{prefixCls:_,activeKeys:v,disabled:y,changeActiveKeys:b,rtl:S,inlineCollapsed:C,siderCollapsed:w,onItemClick:T,selectedKeys:E,registerMenuInfo:D,unRegisterMenuInfo:O}=Y(),k=Fe(),A=u(!1),M=l(()=>[...m.value,d]);D(f,{eventKey:f,key:d,parentEventKeys:p,parentKeys:m,isLeaf:!0}),t(()=>{O(f)}),c(v,()=>{A.value=!!v.value.find(e=>e===d)},{immediate:!0});let N=l(()=>y.value||e.disabled),P=l(()=>E.value.includes(d)),F=l(()=>{let t=`${_.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:A.value,[`${t}-selected`]:P.value,[`${t}-disabled`]:N.value}}),I=t=>({key:d,eventKey:f,keyPath:M.value,eventKeyPath:[...p.value,f],domEvent:t,item:j(j({},e),a)}),re=e=>{if(N.value)return;let t=I(e);i(`click`,e),T(t)},ie=e=>{N.value||(b(M.value),i(`mouseenter`,e))},L=e=>{N.value||(b([]),i(`mouseleave`,e))},R=e=>{if(i(`keydown`,e),e.which===le.ENTER){let t=I(e);i(`click`,e),T(t)}},z=e=>{b(M.value),i(`focus`,e)},B=(e,t)=>{let n=g(`span`,{class:`${_.value}-title-content`},[t]);return(!e||te(t)&&t.type===`span`)&&t&&C.value&&k&&typeof t==`string`?g(`div`,{class:`${_.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},V=Ke(l(()=>M.value.length));return()=>{if(s)return null;let t=e.title??r.title?.call(r),n=ee(r.default?.call(r)),i=n.length,o=t;t===void 0?o=k&&i?n:``:t===!1&&(o=``);let c={title:o};!w.value&&!C.value&&(c.title=null,c.open=!1);let l={};e.role===`option`&&(l[`aria-selected`]=P.value);let u=e.icon??r.icon?.call(r,e);return g(H,x(x({},c),{},{placement:S.value?`left`:`right`,overlayClassName:`${_.value}-inline-collapsed-tooltip`}),{default:()=>[g(ne.Item,x(x(x({component:`li`},a),{},{id:e.id,style:j(j({},a.style||{}),V.value),class:[F.value,{[`${a.class}`]:!!a.class,[`${_.value}-item-only-child`]:(u?i+1:i)===1}],role:e.role||`menuitem`,tabindex:e.disabled?null:-1,"data-menu-id":d,"aria-disabled":e.disabled},l),{},{onMouseenter:ie,onMouseleave:L,onClick:re,onKeydown:R,onFocus:z,title:typeof t==`string`?t:void 0}),{default:()=>[U(typeof u==`function`?u(e.originItemValue):u,{class:`${_.value}-item-icon`},!1),B(u,n)]})]})}}}),Z={adjustX:1,adjustY:1},Je={topLeft:{points:[`bl`,`tl`],overflow:Z,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Z,offset:[0,7]},leftTop:{points:[`tr`,`tl`],overflow:Z,offset:[-4,0]},rightTop:{points:[`tl`,`tr`],overflow:Z,offset:[4,0]}},Ye={topLeft:{points:[`bl`,`tl`],overflow:Z,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Z,offset:[0,7]},rightTop:{points:[`tr`,`tl`],overflow:Z,offset:[-4,0]},leftTop:{points:[`tl`,`tr`],overflow:Z,offset:[4,0]}},Xe={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`},Ze=e({compatConfig:{MODE:3},name:`PopupTrigger`,inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:[`visibleChange`],setup(e,n){let{slots:r,emit:i}=n,a=u(!1),{getPopupContainer:o,rtl:s,subMenuOpenDelay:d,subMenuCloseDelay:f,builtinPlacements:p,triggerSubMenuAction:m,forceSubMenuRender:h,motion:_,defaultMotions:v,rootClassName:y}=Y(),b=Me(),x=l(()=>s.value?j(j({},Ye),p.value):j(j({},Je),p.value)),C=l(()=>Xe[e.mode]),w=u();c(()=>e.visible,e=>{W.cancel(w.value),w.value=W(()=>{a.value=e})},{immediate:!0}),t(()=>{W.cancel(w.value)});let T=e=>{i(`visibleChange`,e)},E=l(()=>{let t=_.value||v.value?.[e.mode]||v.value?.other,n=typeof t==`function`?t():t;return n?de(n.name,{css:!0}):void 0});return()=>{let{prefixCls:t,popupClassName:n,mode:i,popupOffset:c,disabled:l}=e;return g(R,{prefixCls:t,popupClassName:S(`${t}-popup`,{[`${t}-rtl`]:s.value},n,y.value),stretch:i===`horizontal`?`minWidth`:null,getPopupContainer:o.value,builtinPlacements:x.value,popupPlacement:C.value,popupVisible:a.value,popupAlign:c&&{offset:c},action:l?[]:[m.value],mouseEnterDelay:d.value,mouseLeaveDelay:f.value,onPopupVisibleChange:T,forceRender:b||h.value,popupAnimation:E.value},{popup:r.popup,default:r.default})}}}),Qe=(e,t)=>{let{slots:n,attrs:r}=t,{prefixCls:i,mode:a}=Y();return g(`ul`,x(x({},r),{},{class:S(i.value,`${i.value}-sub`,`${i.value}-${a.value===`inline`?`inline`:`vertical`}`),"data-menu-list":!0}),[n.default?.call(n)])};Qe.displayName=`SubMenuList`;var $e=e({compatConfig:{MODE:3},name:`InlineSubMenuList`,inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t,r=l(()=>`inline`),{motion:i,mode:a,defaultMotions:o}=Y(),s=l(()=>a.value===r.value),u=d(!s.value),p=l(()=>s.value?e.open:!1);c(a,()=>{s.value&&(u.value=!1)},{flush:`post`});let m=l(()=>{let t=i.value||o.value?.[r.value]||o.value?.other,n=typeof t==`function`?t():t;return j(j({},n),{appear:e.keyPath.length<=1})});return()=>u.value?null:g(Ie,{mode:r.value},{default:()=>[g(y,m.value,{default:()=>[f(g(Qe,{id:e.id},{default:()=>[n.default?.call(n)]}),[[v,p.value]])]})]})}}),et=0,Q=e({compatConfig:{MODE:3},name:`ASubMenu`,inheritAttrs:!1,props:{icon:F.any,title:F.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:b()},slots:Object,setup(e,n){let{slots:r,attrs:i,emit:a}=n;var s;Pe(!1);let d=Ge(),f=h(),p=typeof f.vnode.key==`symbol`?String(f.vnode.key):f.vnode.key;ce(typeof f.vnode.key!=`symbol`,`SubMenu`,`SubMenu \`:key="${String(p)}"\` not support Symbol type`);let m=w(p)?p:`sub_menu_${++et}_$$_not_set_key`,_=e.eventKey??(w(p)?`sub_menu_${++et}_$$_${p}`:m),{parentEventKeys:v,parentInfo:y,parentKeys:b}=Ve(),C=l(()=>[...b.value,m]),T={eventKey:_,key:m,parentEventKeys:v,childrenEventKeys:u([]),parentKeys:b};(s=y.childrenEventKeys)==null||s.value.push(_),t(()=>{y.childrenEventKeys&&(y.childrenEventKeys.value=y.childrenEventKeys?.value.filter(e=>e!=_))}),He(_,m,T);let{prefixCls:E,activeKeys:ee,disabled:D,changeActiveKeys:O,mode:k,inlineCollapsed:A,openKeys:M,overflowDisabled:N,onOpenChange:F,registerMenuInfo:I,unRegisterMenuInfo:re,selectedSubMenuKeys:ie,expandIcon:L,theme:R}=Y(),z=p!=null,B=!d&&(Me()||!z);je(B),(d&&z||!d&&!z||B)&&(I(_,T),t(()=>{re(_)}));let V=l(()=>`${E.value}-submenu`),H=l(()=>D.value||e.disabled),ae=u(),oe=u(),se=l(()=>M.value.includes(m)),W=l(()=>!N.value&&se.value),le=l(()=>ie.value.includes(m)),G=u(!1);c(ee,()=>{G.value=!!ee.value.find(e=>e===m)},{immediate:!0});let ue=e=>{H.value||(a(`titleClick`,e,m),k.value===`inline`&&F(m,!se.value))},de=e=>{H.value||(O(C.value),a(`mouseenter`,e))},fe=e=>{H.value||(O([]),a(`mouseleave`,e))},pe=Ke(l(()=>C.value.length)),me=e=>{k.value!==`inline`&&F(m,e)},he=()=>{O(C.value)},K=_&&`${_}-popup`,q=l(()=>S(E.value,`${E.value}-${e.theme||R.value}`,e.popupClassName)),J=(t,n)=>{if(!n)return A.value&&!b.value.length&&t&&typeof t==`string`?g(`div`,{class:`${E.value}-inline-collapsed-noicon`},[t.charAt(0)]):g(`span`,{class:`${E.value}-title-content`},[t]);let r=te(t)&&t.type===`span`;return g(o,null,[U(typeof n==`function`?n(e.originItemValue):n,{class:`${E.value}-item-icon`},!1),r?t:g(`span`,{class:`${E.value}-title-content`},[t])])},ge=l(()=>k.value!==`inline`&&C.value.length>1?`vertical`:k.value),_e=l(()=>k.value===`horizontal`?`vertical`:k.value),ve=l(()=>ge.value===`horizontal`?`vertical`:ge.value),ye=()=>{let t=V.value,n=e.icon??r.icon?.call(r,e),i=e.expandIcon||r.expandIcon||L.value,a=J(P(r,e,`title`),n);return g(`div`,{style:pe.value,class:`${t}-title`,tabindex:H.value?null:-1,ref:ae,title:typeof a==`string`?a:null,"data-menu-id":m,"aria-expanded":W.value,"aria-haspopup":!0,"aria-controls":K,"aria-disabled":H.value,onClick:ue,onFocus:he},[a,k.value!==`horizontal`&&i?i(j(j({},e),{isOpen:W.value})):g(`i`,{class:`${t}-arrow`},null)])};return()=>{if(d)return z?r.default?.call(r):null;let t=V.value,n=()=>null;if(!N.value&&k.value!==`inline`){let i=k.value===`horizontal`?[0,8]:[10,0];n=()=>g(Ze,{mode:ge.value,prefixCls:t,visible:!e.internalPopupClose&&W.value,popupClassName:q.value,popupOffset:e.popupOffset||i,disabled:H.value,onVisibleChange:me},{default:()=>[ye()],popup:()=>g(Ie,{mode:ve.value},{default:()=>[g(Qe,{id:K,ref:oe},{default:r.default})]})})}else n=()=>g(Ze,null,{default:ye});return g(Ie,{mode:_e.value},{default:()=>[g(ne.Item,x(x({component:`li`},i),{},{role:`none`,class:S(t,`${t}-${k.value}`,i.class,{[`${t}-open`]:W.value,[`${t}-active`]:G.value,[`${t}-selected`]:le.value,[`${t}-disabled`]:H.value}),onMouseenter:de,onMouseleave:fe,"data-submenu-id":m}),{default:()=>g(o,null,[n(),!N.value&&g($e,{id:K,open:W.value,keyPath:C.value},{default:r.default})])})]})}}}),tt=e({compatConfig:{MODE:3},name:`AMenuItemGroup`,inheritAttrs:!1,props:{title:F.any,originItemValue:b()},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i}=Y(),a=l(()=>`${i.value}-item-group`),o=Ge();return()=>o?n.default?.call(n):g(`li`,x(x({},r),{},{onClick:e=>e.stopPropagation(),class:a.value}),[g(`div`,{title:typeof e.title==`string`?e.title:void 0,class:`${a.value}-title`},[P(n,e,`title`)]),g(`ul`,{class:`${a.value}-list`},[n.default?.call(n)])])}}),nt=e({compatConfig:{MODE:3},name:`AMenuDivider`,props:{prefixCls:String,dashed:Boolean},setup(e){let{prefixCls:t}=Y(),n=l(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>g(`li`,{class:n.value},null)}}),rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function it(e,t,n){return(e||[]).map((e,r)=>{if(e&&typeof e==`object`){let i=e,{label:a,children:o,key:s,type:c}=i,l=rt(i,[`label`,`children`,`key`,`type`]),u=s??`tmp-${r}`,f=n?n.parentKeys.slice():[],p=[],m={eventKey:u,key:u,parentEventKeys:d(f),parentKeys:d(f),childrenEventKeys:d(p),isLeaf:!1};if(o||c===`group`){if(c===`group`){let r=it(o,t,n);return g(tt,x(x({key:u},l),{},{title:a,originItemValue:e}),{default:()=>[r]})}t.set(u,m),n&&n.childrenEventKeys.push(u);let r=it(o,t,{childrenEventKeys:p,parentKeys:[].concat(f,u)});return g(Q,x(x({key:u},l),{},{title:a,originItemValue:e}),{default:()=>[r]})}return c===`divider`?g(nt,x({key:u},l),null):(m.isLeaf=!0,t.set(u,m),g(X,x(x({key:u},l),{},{originItemValue:e}),{default:()=>[a]}))}return null}).filter(e=>e)}function at(e){let t=u([]),n=u(!1),r=u(new Map);return c(()=>e.items,()=>{let i=new Map;n.value=!1,e.items?(n.value=!0,t.value=it(e.items,i)):t.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}var ot=e=>{let{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:a,lineType:o,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
|
|
1
|
+
import{G as e,I as t}from"./rqZ-1SoP.js";import{C as n,F as r,O as i,St as a,U as o,_t as s,a as c,c as l,et as u,f as d,gt as f,mt as p,rt as m,tt as h,vt as g,w as _,x as v,z as y}from"./BSCpFtzG.js";import{$ as b,At as x,Ct as S,D as C,St as w,_ as T,bt as E,ct as ee,d as D,f as O,g as k,h as A,kt as j,n as M,p as N,pt as P,t as F,u as I,yt as te}from"./BDUjyaF4.js";import{A as ne,C as re,J as ie,K as L,P as R,S as z,Y as B,g as V,i as H,m as ae,p as oe,t as se}from"./DtBu71ev.js";import{G as ce,V as U,X as W,g as le,x as G}from"./VLI2Zy4t.js";import{h as ue,x as de}from"./D-Ca4BGY.js";function fe(){}var pe=G&&1/L(new G([,-0]))[1]==1/0?function(e){return new G(e)}:fe,me=200;function he(e,t,n){var r=-1,i=re,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=z;else if(a>=me){var l=t?null:pe(e);if(l)return L(l);o=!1,i=ie,c=new B}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function K(e){return e&&e.length?he(e):[]}var q={adjustX:1,adjustY:1},J=[0,0],ge={topLeft:{points:[`bl`,`tl`],overflow:q,offset:[0,-4],targetOffset:J},topCenter:{points:[`bc`,`tc`],overflow:q,offset:[0,-4],targetOffset:J},topRight:{points:[`br`,`tr`],overflow:q,offset:[0,-4],targetOffset:J},bottomLeft:{points:[`tl`,`bl`],overflow:q,offset:[0,4],targetOffset:J},bottomCenter:{points:[`tc`,`bc`],overflow:q,offset:[0,4],targetOffset:J},bottomRight:{points:[`tr`,`br`],overflow:q,offset:[0,4],targetOffset:J}},_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},ve=n({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:F.string.def(`rc-dropdown`),transitionName:String,overlayClassName:F.string.def(``),openClassName:String,animation:F.any,align:F.object,overlayStyle:{type:Object,default:void 0},placement:F.string.def(`bottomLeft`),overlay:F.any,trigger:F.oneOfType([F.string,F.arrayOf(F.string)]).def(`hover`),alignPoint:{type:Boolean,default:void 0},showAction:F.array,hideAction:F.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:F.number.def(.15),mouseLeaveDelay:F.number.def(.1)},emits:[`visibleChange`,`overlayClick`],setup(e,t){let{slots:n,emit:r,expose:i}=t,a=p(!!e.visible);u(()=>e.visible,e=>{e!==void 0&&(a.value=e)});let o=p();i({triggerRef:o});let s=t=>{e.visible===void 0&&(a.value=!1),r(`overlayClick`,t)},l=t=>{e.visible===void 0&&(a.value=t),r(`visibleChange`,t)},f=()=>{let t=n.overlay?.call(n),r={prefixCls:`${e.prefixCls}-menu`,onClick:s};return v(c,{key:E},[e.arrow&&v(`div`,{class:`${e.prefixCls}-arrow`},null),U(t,r,!1)])},m=d(()=>{let{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t}),h=()=>{let t=n.default?.call(n);return a.value&&t?U(t[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):t},g=d(()=>!e.hideAction&&e.trigger.indexOf(`contextmenu`)!==-1?[`click`]:e.hideAction);return()=>{let{prefixCls:t,arrow:n,showAction:r,overlayStyle:i,trigger:s,placement:c,align:u,getPopupContainer:d,transitionName:p,animation:_,overlayClassName:y}=e,b=_e(e,[`prefixCls`,`arrow`,`showAction`,`overlayStyle`,`trigger`,`placement`,`align`,`getPopupContainer`,`transitionName`,`animation`,`overlayClassName`]);return v(R,x(x({},b),{},{prefixCls:t,ref:o,popupClassName:S(y,{[`${t}-show-arrow`]:n}),popupStyle:i,builtinPlacements:ge,action:s,showAction:r,hideAction:g.value||[],popupPlacement:c,popupAlign:u,popupTransitionName:p,popupAnimation:_,popupVisible:a.value,stretch:m.value?`minWidth`:``,onPopupVisibleChange:l,getPopupContainer:d}),{popup:f,default:h})}}}),ye={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`};function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){xe(e,t,n[t])})}return e}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Se=function(e,t){var n=be({},e,t.attrs);return v(ue,be({},n,{icon:ye}),null)};Se.displayName=`EllipsisOutlined`,Se.inheritAttrs=!1;var Ce=Symbol(`OverrideContextKey`),we=()=>i(Ce,void 0),Te=e=>{let{prefixCls:t,mode:n,selectable:r,validator:i,onClick:a,expandIcon:s}=we()||{};o(Ce,{prefixCls:d(()=>e.prefixCls?.value??t?.value),mode:d(()=>e.mode?.value??n?.value),selectable:d(()=>e.selectable?.value??r?.value),validator:e.validator??i,onClick:e.onClick??a,expandIcon:e.expandIcon??s?.value})};function Ee(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function De(e,t){return Ee(s(e),s(t))}var Oe=Symbol(`menuContextKey`),ke=e=>{o(Oe,e)},Y=()=>i(Oe),Ae=Symbol(`ForceRenderKey`),je=e=>{o(Ae,e)},Me=()=>i(Ae,!1),Ne=Symbol(`menuFirstLevelContextKey`),Pe=e=>{o(Ne,e)},Fe=()=>i(Ne,!0),Ie=n({compatConfig:{MODE:3},name:`MenuContextProvider`,inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t,r=Y(),i=j({},r);return e.mode!==void 0&&(i.mode=g(e,`mode`)),e.overflowDisabled!==void 0&&(i.overflowDisabled=g(e,`overflowDisabled`)),ke(i),()=>n.default?.call(n)}}),Le=Symbol(`siderCollapsed`),Re=Symbol(`siderHookProvider`),ze=`$$__vc-menu-more__key`,Be=Symbol(`KeyPathContext`),Ve=()=>i(Be,{parentEventKeys:d(()=>[]),parentKeys:d(()=>[]),parentInfo:{}}),He=(e,t,n)=>{let{parentEventKeys:r,parentKeys:i}=Ve(),a=d(()=>[...r.value,e]),s=d(()=>[...i.value,t]);return o(Be,{parentEventKeys:a,parentKeys:s,parentInfo:n}),s},Ue=Symbol(`measure`),We=n({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return o(Ue,!0),()=>n.default?.call(n)}}),Ge=()=>i(Ue,!1);function Ke(e){let{mode:t,rtl:n,inlineIndent:r}=Y();return d(()=>t.value===`inline`?n.value?{paddingRight:`${e.value*r.value}px`}:{paddingLeft:`${e.value*r.value}px`}:null)}var qe=0,X=n({compatConfig:{MODE:3},name:`AMenuItem`,inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:F.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:b()},slots:Object,setup(e,t){let{slots:n,emit:i,attrs:a}=t,o=_(),s=Ge(),c=typeof o.vnode.key==`symbol`?String(o.vnode.key):o.vnode.key;ce(typeof o.vnode.key!=`symbol`,`MenuItem`,`MenuItem \`:key="${String(c)}"\` not support Symbol type`);let l=`menu_item_${++qe}_$$_${c}`,{parentEventKeys:p,parentKeys:m}=Ve(),{prefixCls:h,activeKeys:g,disabled:y,changeActiveKeys:b,rtl:S,inlineCollapsed:C,siderCollapsed:w,onItemClick:T,selectedKeys:E,registerMenuInfo:D,unRegisterMenuInfo:O}=Y(),k=Fe(),A=f(!1),M=d(()=>[...m.value,c]);D(l,{eventKey:l,key:c,parentEventKeys:p,parentKeys:m,isLeaf:!0}),r(()=>{O(l)}),u(g,()=>{A.value=!!g.value.find(e=>e===c)},{immediate:!0});let N=d(()=>y.value||e.disabled),P=d(()=>E.value.includes(c)),F=d(()=>{let t=`${h.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:A.value,[`${t}-selected`]:P.value,[`${t}-disabled`]:N.value}}),I=t=>({key:c,eventKey:l,keyPath:M.value,eventKeyPath:[...p.value,l],domEvent:t,item:j(j({},e),a)}),re=e=>{if(N.value)return;let t=I(e);i(`click`,e),T(t)},ie=e=>{N.value||(b(M.value),i(`mouseenter`,e))},L=e=>{N.value||(b([]),i(`mouseleave`,e))},R=e=>{if(i(`keydown`,e),e.which===le.ENTER){let t=I(e);i(`click`,e),T(t)}},z=e=>{b(M.value),i(`focus`,e)},B=(e,t)=>{let n=v(`span`,{class:`${h.value}-title-content`},[t]);return(!e||te(t)&&t.type===`span`)&&t&&C.value&&k&&typeof t==`string`?v(`div`,{class:`${h.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},V=Ke(d(()=>M.value.length));return()=>{if(s)return null;let t=e.title??n.title?.call(n),r=ee(n.default?.call(n)),i=r.length,o=t;t===void 0?o=k&&i?r:``:t===!1&&(o=``);let l={title:o};!w.value&&!C.value&&(l.title=null,l.open=!1);let u={};e.role===`option`&&(u[`aria-selected`]=P.value);let d=e.icon??n.icon?.call(n,e);return v(H,x(x({},l),{},{placement:S.value?`left`:`right`,overlayClassName:`${h.value}-inline-collapsed-tooltip`}),{default:()=>[v(ne.Item,x(x(x({component:`li`},a),{},{id:e.id,style:j(j({},a.style||{}),V.value),class:[F.value,{[`${a.class}`]:!!a.class,[`${h.value}-item-only-child`]:(d?i+1:i)===1}],role:e.role||`menuitem`,tabindex:e.disabled?null:-1,"data-menu-id":c,"aria-disabled":e.disabled},u),{},{onMouseenter:ie,onMouseleave:L,onClick:re,onKeydown:R,onFocus:z,title:typeof t==`string`?t:void 0}),{default:()=>[U(typeof d==`function`?d(e.originItemValue):d,{class:`${h.value}-item-icon`},!1),B(d,r)]})]})}}}),Z={adjustX:1,adjustY:1},Je={topLeft:{points:[`bl`,`tl`],overflow:Z,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Z,offset:[0,7]},leftTop:{points:[`tr`,`tl`],overflow:Z,offset:[-4,0]},rightTop:{points:[`tl`,`tr`],overflow:Z,offset:[4,0]}},Ye={topLeft:{points:[`bl`,`tl`],overflow:Z,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Z,offset:[0,7]},rightTop:{points:[`tr`,`tl`],overflow:Z,offset:[-4,0]},leftTop:{points:[`tl`,`tr`],overflow:Z,offset:[4,0]}},Xe={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`},Ze=n({compatConfig:{MODE:3},name:`PopupTrigger`,inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:[`visibleChange`],setup(e,t){let{slots:n,emit:i}=t,a=f(!1),{getPopupContainer:o,rtl:s,subMenuOpenDelay:c,subMenuCloseDelay:l,builtinPlacements:p,triggerSubMenuAction:m,forceSubMenuRender:h,motion:g,defaultMotions:_,rootClassName:y}=Y(),b=Me(),x=d(()=>s.value?j(j({},Ye),p.value):j(j({},Je),p.value)),C=d(()=>Xe[e.mode]),w=f();u(()=>e.visible,e=>{W.cancel(w.value),w.value=W(()=>{a.value=e})},{immediate:!0}),r(()=>{W.cancel(w.value)});let T=e=>{i(`visibleChange`,e)},E=d(()=>{let t=g.value||_.value?.[e.mode]||_.value?.other,n=typeof t==`function`?t():t;return n?de(n.name,{css:!0}):void 0});return()=>{let{prefixCls:t,popupClassName:r,mode:i,popupOffset:u,disabled:d}=e;return v(R,{prefixCls:t,popupClassName:S(`${t}-popup`,{[`${t}-rtl`]:s.value},r,y.value),stretch:i===`horizontal`?`minWidth`:null,getPopupContainer:o.value,builtinPlacements:x.value,popupPlacement:C.value,popupVisible:a.value,popupAlign:u&&{offset:u},action:d?[]:[m.value],mouseEnterDelay:c.value,mouseLeaveDelay:l.value,onPopupVisibleChange:T,forceRender:b||h.value,popupAnimation:E.value},{popup:n.popup,default:n.default})}}}),Qe=(e,t)=>{let{slots:n,attrs:r}=t,{prefixCls:i,mode:a}=Y();return v(`ul`,x(x({},r),{},{class:S(i.value,`${i.value}-sub`,`${i.value}-${a.value===`inline`?`inline`:`vertical`}`),"data-menu-list":!0}),[n.default?.call(n)])};Qe.displayName=`SubMenuList`;var $e=n({compatConfig:{MODE:3},name:`InlineSubMenuList`,inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(n,r){let{slots:i}=r,a=d(()=>`inline`),{motion:o,mode:s,defaultMotions:c}=Y(),l=d(()=>s.value===a.value),f=p(!l.value),h=d(()=>l.value?n.open:!1);u(s,()=>{l.value&&(f.value=!1)},{flush:`post`});let g=d(()=>{let e=o.value||c.value?.[a.value]||c.value?.other,t=typeof e==`function`?e():e;return j(j({},t),{appear:n.keyPath.length<=1})});return()=>f.value?null:v(Ie,{mode:a.value},{default:()=>[v(t,g.value,{default:()=>[m(v(Qe,{id:n.id},{default:()=>[i.default?.call(i)]}),[[e,h.value]])]})]})}}),et=0,Q=n({compatConfig:{MODE:3},name:`ASubMenu`,inheritAttrs:!1,props:{icon:F.any,title:F.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:b()},slots:Object,setup(e,t){let{slots:n,attrs:i,emit:a}=t;var o;Pe(!1);let s=Ge(),l=_(),p=typeof l.vnode.key==`symbol`?String(l.vnode.key):l.vnode.key;ce(typeof l.vnode.key!=`symbol`,`SubMenu`,`SubMenu \`:key="${String(p)}"\` not support Symbol type`);let m=w(p)?p:`sub_menu_${++et}_$$_not_set_key`,h=e.eventKey??(w(p)?`sub_menu_${++et}_$$_${p}`:m),{parentEventKeys:g,parentInfo:y,parentKeys:b}=Ve(),C=d(()=>[...b.value,m]),T={eventKey:h,key:m,parentEventKeys:g,childrenEventKeys:f([]),parentKeys:b};(o=y.childrenEventKeys)==null||o.value.push(h),r(()=>{y.childrenEventKeys&&(y.childrenEventKeys.value=y.childrenEventKeys?.value.filter(e=>e!=h))}),He(h,m,T);let{prefixCls:E,activeKeys:ee,disabled:D,changeActiveKeys:O,mode:k,inlineCollapsed:A,openKeys:M,overflowDisabled:N,onOpenChange:F,registerMenuInfo:I,unRegisterMenuInfo:re,selectedSubMenuKeys:ie,expandIcon:L,theme:R}=Y(),z=p!=null,B=!s&&(Me()||!z);je(B),(s&&z||!s&&!z||B)&&(I(h,T),r(()=>{re(h)}));let V=d(()=>`${E.value}-submenu`),H=d(()=>D.value||e.disabled),ae=f(),oe=f(),se=d(()=>M.value.includes(m)),W=d(()=>!N.value&&se.value),le=d(()=>ie.value.includes(m)),G=f(!1);u(ee,()=>{G.value=!!ee.value.find(e=>e===m)},{immediate:!0});let ue=e=>{H.value||(a(`titleClick`,e,m),k.value===`inline`&&F(m,!se.value))},de=e=>{H.value||(O(C.value),a(`mouseenter`,e))},fe=e=>{H.value||(O([]),a(`mouseleave`,e))},pe=Ke(d(()=>C.value.length)),me=e=>{k.value!==`inline`&&F(m,e)},he=()=>{O(C.value)},K=h&&`${h}-popup`,q=d(()=>S(E.value,`${E.value}-${e.theme||R.value}`,e.popupClassName)),J=(t,n)=>{if(!n)return A.value&&!b.value.length&&t&&typeof t==`string`?v(`div`,{class:`${E.value}-inline-collapsed-noicon`},[t.charAt(0)]):v(`span`,{class:`${E.value}-title-content`},[t]);let r=te(t)&&t.type===`span`;return v(c,null,[U(typeof n==`function`?n(e.originItemValue):n,{class:`${E.value}-item-icon`},!1),r?t:v(`span`,{class:`${E.value}-title-content`},[t])])},ge=d(()=>k.value!==`inline`&&C.value.length>1?`vertical`:k.value),_e=d(()=>k.value===`horizontal`?`vertical`:k.value),ve=d(()=>ge.value===`horizontal`?`vertical`:ge.value),ye=()=>{let t=V.value,r=e.icon??n.icon?.call(n,e),i=e.expandIcon||n.expandIcon||L.value,a=J(P(n,e,`title`),r);return v(`div`,{style:pe.value,class:`${t}-title`,tabindex:H.value?null:-1,ref:ae,title:typeof a==`string`?a:null,"data-menu-id":m,"aria-expanded":W.value,"aria-haspopup":!0,"aria-controls":K,"aria-disabled":H.value,onClick:ue,onFocus:he},[a,k.value!==`horizontal`&&i?i(j(j({},e),{isOpen:W.value})):v(`i`,{class:`${t}-arrow`},null)])};return()=>{if(s)return z?n.default?.call(n):null;let t=V.value,r=()=>null;if(!N.value&&k.value!==`inline`){let i=k.value===`horizontal`?[0,8]:[10,0];r=()=>v(Ze,{mode:ge.value,prefixCls:t,visible:!e.internalPopupClose&&W.value,popupClassName:q.value,popupOffset:e.popupOffset||i,disabled:H.value,onVisibleChange:me},{default:()=>[ye()],popup:()=>v(Ie,{mode:ve.value},{default:()=>[v(Qe,{id:K,ref:oe},{default:n.default})]})})}else r=()=>v(Ze,null,{default:ye});return v(Ie,{mode:_e.value},{default:()=>[v(ne.Item,x(x({component:`li`},i),{},{role:`none`,class:S(t,`${t}-${k.value}`,i.class,{[`${t}-open`]:W.value,[`${t}-active`]:G.value,[`${t}-selected`]:le.value,[`${t}-disabled`]:H.value}),onMouseenter:de,onMouseleave:fe,"data-submenu-id":m}),{default:()=>v(c,null,[r(),!N.value&&v($e,{id:K,open:W.value,keyPath:C.value},{default:n.default})])})]})}}}),tt=n({compatConfig:{MODE:3},name:`AMenuItemGroup`,inheritAttrs:!1,props:{title:F.any,originItemValue:b()},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i}=Y(),a=d(()=>`${i.value}-item-group`),o=Ge();return()=>o?n.default?.call(n):v(`li`,x(x({},r),{},{onClick:e=>e.stopPropagation(),class:a.value}),[v(`div`,{title:typeof e.title==`string`?e.title:void 0,class:`${a.value}-title`},[P(n,e,`title`)]),v(`ul`,{class:`${a.value}-list`},[n.default?.call(n)])])}}),nt=n({compatConfig:{MODE:3},name:`AMenuDivider`,props:{prefixCls:String,dashed:Boolean},setup(e){let{prefixCls:t}=Y(),n=d(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>v(`li`,{class:n.value},null)}}),rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function it(e,t,n){return(e||[]).map((e,r)=>{if(e&&typeof e==`object`){let i=e,{label:a,children:o,key:s,type:c}=i,l=rt(i,[`label`,`children`,`key`,`type`]),u=s??`tmp-${r}`,d=n?n.parentKeys.slice():[],f=[],m={eventKey:u,key:u,parentEventKeys:p(d),parentKeys:p(d),childrenEventKeys:p(f),isLeaf:!1};if(o||c===`group`){if(c===`group`){let r=it(o,t,n);return v(tt,x(x({key:u},l),{},{title:a,originItemValue:e}),{default:()=>[r]})}t.set(u,m),n&&n.childrenEventKeys.push(u);let r=it(o,t,{childrenEventKeys:f,parentKeys:[].concat(d,u)});return v(Q,x(x({key:u},l),{},{title:a,originItemValue:e}),{default:()=>[r]})}return c===`divider`?v(nt,x({key:u},l),null):(m.isLeaf=!0,t.set(u,m),v(X,x(x({key:u},l),{},{originItemValue:e}),{default:()=>[a]}))}return null}).filter(e=>e)}function at(e){let t=f([]),n=f(!1),r=f(new Map);return u(()=>e.items,()=>{let i=new Map;n.value=!1,e.items?(n.value=!0,t.value=it(e.items,i)):t.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}var ot=e=>{let{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:a,lineType:o,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
|
|
2
2
|
> ${t}-item-active,
|
|
3
3
|
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},st=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:`rtl`},[`${t}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${t}-rtl${t}-vertical,
|
|
4
4
|
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},ct=e=>j({},N(e)),lt=(e,t)=>{let{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorGroupTitle:a,colorItemBg:o,colorSubItemBg:s,colorItemBgSelected:c,colorActiveBarHeight:l,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,menuItemPaddingInline:h,motionDurationMid:g,colorItemTextHover:_,lineType:v,colorSplit:y,colorItemTextDisabled:b,colorDangerItemText:x,colorDangerItemTextHover:S,colorDangerItemTextSelected:C,colorDangerItemBgActive:w,colorDangerItemBgSelected:T,colorItemBgHover:E,menuSubMenuBg:ee,colorItemTextSelectedHorizontal:D,colorItemBgSelectedHorizontal:O}=e;return{[`${n}-${t}`]:{color:r,background:o,[`&${n}-root:focus-visible`]:j({},ct(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${b} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:c}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:c}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:T}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:j({},ct(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:ee},[`&${n}-popup > ${n}`]:{backgroundColor:o},[`&${n}-horizontal`]:j(j({},t===`dark`?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:`absolute`,insetInline:h,bottom:0,borderBottom:`${l}px solid transparent`,transition:`border-color ${f} ${p}`,content:`""`},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:l,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:O,"&::after":{borderBottomWidth:l,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(`,`)}}}}}},ut=e=>{let{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,marginXXS:s}=e,c=i+a+o;return{[`${t}-item`]:{position:`relative`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,
|
|
@@ -10,4 +10,4 @@ import{C as e,F as t,O as n,St as r,U as i,_t as a,a as o,c as s,et as c,f as l,
|
|
|
10
10
|
${t}-submenu-arrow,
|
|
11
11
|
${t}-submenu-expand-icon
|
|
12
12
|
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${r}px`,"+ span":{display:`inline-block`,opacity:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:j(j({},T),{paddingInline:p})}}]},ft=e=>{let{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,motionEaseOut:o,iconCls:s,controlHeightSM:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(`,`),[`${t}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${i} ${o}`,`margin ${r} ${a}`,`color ${r}`].join(`,`),"+ span":{marginInlineStart:c-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(`,`)}},[`${t}-item-icon`]:j({},k()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},pt=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:`absolute`,width:a*.6,height:a*.15,backgroundColor:`currentcolor`,borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(-${o})`},"&::after":{transform:`rotate(-45deg) translateY(${o})`}}}}},mt=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,lineHeight:s,paddingXS:c,padding:l,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,radiusSubMenuItem:m,menuArrowSize:h,menuArrowOffset:g,lineType:_,menuPanelMaskInset:v}=e;return[{"":{[`${n}`]:j(j({},O()),{"&-hidden":{display:`none`}})},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:j(j(j(j(j(j(j({},A(e)),O()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${n}-item`]:{flex:`none`}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${c}px ${l}px`,fontSize:r,lineHeight:s,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:u,borderStyle:_,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:`dashed`}}}),ft(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${l}px`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:f,background:`transparent`,borderRadius:p,boxShadow:`none`,transformOrigin:`0 0`,"&::before":{position:`absolute`,inset:`${v}px 0 0`,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`}},"&-placement-rightTop::before":{top:0,insetInlineStart:v},[`> ${n}`]:j(j(j({borderRadius:p},ft(e)),pt(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})}}),pt(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
13
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},ht=((e,t)=>D(`Menu`,(e,n)=>{let{overrideComponentToken:r}=n;if(t?.value===!1)return[];let{colorBgElevated:i,colorPrimary:a,colorError:o,colorErrorHover:s,colorTextLightSolid:c}=e,{controlHeightLG:l,fontSize:u}=e,d=u/7*5,f=I(e,{menuItemHeight:l,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:l*1.15,menuArrowOffset:`${d*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:i}),p=new C(c).setAlpha(.65).toRgbString(),m=I(f,{colorItemText:p,colorItemTextHover:c,colorGroupTitle:p,colorItemTextSelected:c,colorItemBg:`#001529`,colorSubItemBg:`#000c17`,colorItemBgActive:`transparent`,colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new C(c).setAlpha(.25).toRgbString(),colorDangerItemText:o,colorDangerItemTextHover:s,colorDangerItemTextSelected:c,colorDangerItemBgActive:o,colorDangerItemBgSelected:o,menuSubMenuBg:`#001529`,colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:a},j({},r));return[mt(f),ot(f),dt(f),lt(f,`light`),lt(m,`dark`),st(f),oe(f),V(f,`slide-up`),V(f,`slide-down`),ae(f,`zoom-big`)]},e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:a,colorItemTextHover:a,colorItemTextHoverHorizontal:t,colorGroupTitle:o,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:s,colorItemBgHover:p,colorItemBgActive:l,colorSubItemBg:c,colorItemBgSelected:f,colorItemBgSelectedHorizontal:`transparent`,colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:r,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,itemMarginInline:e.marginXXS}})(e)),gt=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:`light`},mode:{type:String,default:`vertical`},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:`hover`},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),_t=[],$=
|
|
13
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},ht=((e,t)=>D(`Menu`,(e,n)=>{let{overrideComponentToken:r}=n;if(t?.value===!1)return[];let{colorBgElevated:i,colorPrimary:a,colorError:o,colorErrorHover:s,colorTextLightSolid:c}=e,{controlHeightLG:l,fontSize:u}=e,d=u/7*5,f=I(e,{menuItemHeight:l,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:l*1.15,menuArrowOffset:`${d*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:i}),p=new C(c).setAlpha(.65).toRgbString(),m=I(f,{colorItemText:p,colorItemTextHover:c,colorGroupTitle:p,colorItemTextSelected:c,colorItemBg:`#001529`,colorSubItemBg:`#000c17`,colorItemBgActive:`transparent`,colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new C(c).setAlpha(.25).toRgbString(),colorDangerItemText:o,colorDangerItemTextHover:s,colorDangerItemTextSelected:c,colorDangerItemBgActive:o,colorDangerItemBgSelected:o,menuSubMenuBg:`#001529`,colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:a},j({},r));return[mt(f),ot(f),dt(f),lt(f,`light`),lt(m,`dark`),st(f),oe(f),V(f,`slide-up`),V(f,`slide-down`),ae(f,`zoom-big`)]},e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:a,colorItemTextHover:a,colorItemTextHoverHorizontal:t,colorGroupTitle:o,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:s,colorItemBgHover:p,colorItemBgActive:l,colorSubItemBg:c,colorItemBgSelected:f,colorItemBgSelectedHorizontal:`transparent`,colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:r,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,itemMarginInline:e.marginXXS}})(e)),gt=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:`light`},mode:{type:String,default:`vertical`},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:`hover`},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),_t=[],$=n({compatConfig:{MODE:3},name:`AMenu`,inheritAttrs:!1,props:gt(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t,{direction:s,getPrefixCls:m}=M(`menu`,e),g=we(),_=d(()=>m(`menu`,e.prefixCls||g?.prefixCls?.value)),[b,S]=ht(_,d(()=>!g)),C=f(new Map),w=i(Le,p(void 0)),T=d(()=>w.value===void 0?e.inlineCollapsed:w.value),{itemsNodes:E}=at(e),D=f(!1);y(()=>{D.value=!0}),h(()=>{ce(e.inlineCollapsed!==!0||e.mode===`inline`,`Menu`,"`inlineCollapsed` should only be used when `mode` is inline."),ce(w.value===void 0||e.inlineCollapsed!==!0,`Menu`,"`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});let O=p([]),k=p([]),A=p({});u(C,()=>{let e={};for(let t of C.value.values())e[t.key]=t;A.value=e},{flush:`post`}),h(()=>{if(e.activeKey!==void 0){let t=[],n=e.activeKey?A.value[e.activeKey]:void 0;t=n&&e.activeKey!==void 0?K([].concat(a(n.parentKeys),e.activeKey)):[],De(O.value,t)||(O.value=t)}}),u(()=>e.selectedKeys,e=>{e&&(k.value=e.slice())},{immediate:!0,deep:!0});let N=p([]);u([A,k],()=>{let e=[];k.value.forEach(t=>{let n=A.value[t];n&&(e=e.concat(a(n.parentKeys)))}),e=K(e),De(N.value,e)||(N.value=e)},{immediate:!0});let P=t=>{if(e.selectable){let{key:n}=t,i=k.value.includes(n),a;a=e.multiple?i?k.value.filter(e=>e!==n):[...k.value,n]:[n];let o=j(j({},t),{selectedKeys:a});De(a,k.value)||(e.selectedKeys===void 0&&(k.value=a),r(`update:selectedKeys`,a),i&&e.multiple?r(`deselect`,o):r(`select`,o))}L.value!==`inline`&&!e.multiple&&F.value.length&&B(_t)},F=p([]);u(()=>e.openKeys,function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F.value;De(F.value,e)||(F.value=e.slice())},{immediate:!0,deep:!0});let I,te=t=>{clearTimeout(I),I=setTimeout(()=>{e.activeKey===void 0&&(O.value=t),r(`update:activeKey`,t[t.length-1])})},re=d(()=>!!e.disabled),ie=d(()=>s.value===`rtl`),L=p(`vertical`),R=f(!1);h(()=>{(e.mode===`inline`||e.mode===`vertical`)&&T.value?(L.value=`vertical`,R.value=T.value):(L.value=e.mode,R.value=!1),g?.mode?.value&&(L.value=g.mode.value)});let z=d(()=>L.value===`inline`),B=e=>{F.value=e,r(`update:openKeys`,e),r(`openChange`,e)},V=p(F.value),H=f(!1);u(F,()=>{z.value&&(V.value=F.value)},{immediate:!0}),u(z,()=>{if(!H.value){H.value=!0;return}z.value?F.value=V.value:B(_t)},{immediate:!0});let ae=d(()=>({[`${_.value}`]:!0,[`${_.value}-root`]:!0,[`${_.value}-${L.value}`]:!0,[`${_.value}-inline-collapsed`]:R.value,[`${_.value}-rtl`]:ie.value,[`${_.value}-${e.theme}`]:!0})),oe=d(()=>m()),W=d(()=>({horizontal:{name:`${oe.value}-slide-up`},inline:se(`${oe.value}-motion-collapse`),other:{name:`${oe.value}-zoom-big`}}));Pe(!0);let le=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[],n=C.value;return e.forEach(e=>{let{key:r,childrenEventKeys:i}=n.get(e);t.push(r,...le(a(i)))}),t},G=e=>{var t;r(`click`,e),P(e),(t=g?.onClick)==null||t.call(g)},ue=(e,t)=>{let n=A.value[e]?.childrenEventKeys||[],r=F.value.filter(t=>t!==e);if(t)r.push(e);else if(L.value!==`inline`){let e=le(a(n));r=K(r.filter(t=>!e.includes(t)))}De(F,r)||B(r)},de=(e,t)=>{C.value.set(e,t),C.value=new Map(C.value)},fe=e=>{C.value.delete(e),C.value=new Map(C.value)},pe=p(0),me=d(()=>e.expandIcon||n.expandIcon||g?.expandIcon?.value?t=>{let r=e.expandIcon||n.expandIcon;return r=typeof r==`function`?r(t):r,U(r,{class:`${_.value}-submenu-expand-icon`},!1)}:null);ke({prefixCls:_,activeKeys:O,openKeys:F,selectedKeys:k,changeActiveKeys:te,disabled:re,rtl:ie,mode:L,inlineIndent:d(()=>e.inlineIndent),subMenuCloseDelay:d(()=>e.subMenuCloseDelay),subMenuOpenDelay:d(()=>e.subMenuOpenDelay),builtinPlacements:d(()=>e.builtinPlacements),triggerSubMenuAction:d(()=>e.triggerSubMenuAction),getPopupContainer:d(()=>e.getPopupContainer),inlineCollapsed:R,theme:d(()=>e.theme),siderCollapsed:w,defaultMotions:d(()=>D.value?W.value:null),motion:d(()=>D.value?e.motion:null),overflowDisabled:f(void 0),onOpenChange:ue,onItemClick:G,registerMenuInfo:de,unRegisterMenuInfo:fe,selectedSubMenuKeys:N,expandIcon:me,forceSubMenuRender:d(()=>e.forceSubMenuRender),rootClassName:S});let he=()=>E.value||ee(n.default?.call(n));return()=>{let t=he(),r=pe.value>=t.length-1||L.value!==`horizontal`||e.disabledOverflow,i=t=>L.value!==`horizontal`||e.disabledOverflow?t:t.map((e,t)=>v(Ie,{key:e.key,overflowDisabled:t>pe.value},{default:()=>e})),a=n.overflowedIndicator?.call(n)||v(Se,null,null);return b(v(ne,x(x({},o),{},{onMousedown:e.onMousedown,prefixCls:`${_.value}-overflow`,component:`ul`,itemComponent:X,class:[ae.value,o.class,S.value],role:`menu`,id:e.id,data:i(t),renderRawItem:e=>e,renderRawRest:e=>{let n=e.length,i=n?t.slice(-n):null;return v(c,null,[v(Q,{eventKey:ze,key:ze,title:a,disabled:r,internalPopupClose:n===0},{default:()=>i}),v(We,null,{default:()=>[v(Q,{eventKey:ze,key:ze,title:a,disabled:r,internalPopupClose:n===0},{default:()=>i})]})])},maxCount:L.value!==`horizontal`||e.disabledOverflow?ne.INVALIDATE:ne.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{pe.value=e}}),{default:()=>[v(l,{to:`body`},{default:()=>[v(`div`,{style:{display:`none`},"aria-hidden":!0},[v(We,null,{default:()=>[i(he())]})])]})]}))}}});$.install=function(e){return e.component($.name,$),e.component(X.name,X),e.component(Q.name,Q),e.component(nt.name,nt),e.component(tt.name,tt),e},$.Item=X,$.Divider=nt,$.SubMenu=Q,$.ItemGroup=tt;var vt=$;export{Re as a,ve as c,Le as i,nt as n,Te as o,X as r,Se as s,vt as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dt as e}from"./BSCpFtzG.js";import{t}from"./
|
|
1
|
+
import{dt as e}from"./BSCpFtzG.js";import{t}from"./DXRZPxGs.js";function n(n,r,i={}){let a=i.bgMs===void 0?r*3:i.bgMs,o=null;function s(e){c(),e>0&&(o=t(n,e))}function c(){o&&=(clearInterval(o),null)}function l(){document.hidden?s(a):(s(r),n())}s(document.hidden?a:r),document.addEventListener(`visibilitychange`,l),e(()=>{c(),document.removeEventListener(`visibilitychange`,l)})}export{n as t};
|