@datalayer/agent-runtimes 1.6.88 → 1.6.90
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/dist-embed/chunks/{AgentDetails-DdSlGfQV.js → AgentDetails-syhFobKk.js} +5 -5
- package/dist-embed/chunks/{AgentDetailsDialog-C7rvaKS1.js → AgentDetailsDialog-CO8g0VoW.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-CrgdhbHy.js → CellSidebarExtension-B_Bqi3Eh.js} +1 -1
- package/dist-embed/chunks/{CollapsiblePlugin-ng8VFSwH.js → CollapsiblePlugin-DPGnrmLj.js} +1 -1
- package/dist-embed/chunks/{ContextPie-Duhkymga.js → ContextPie-h_II4EDU.js} +1 -1
- package/dist-embed/chunks/{DeckComponent-BhyoCP90.js → DeckComponent-oBh8nbTa.js} +2 -2
- package/dist-embed/chunks/{DocumentView-Dn2adk7S.js → DocumentView-C8G8fA7K.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-BiQZswSQ.js → EphemeralDocument-Bm1w17Zw.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-C04wMmoE.js → EphemeralNotebook-jQ7FGCY-.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-GkzKDk_S.js → ExcalidrawComponent-BgjhoJC3.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-Ct44VSBv.js → ExcalidrawModal-DtdsEiaS.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-BYde4Hzz.js → JupyterLexicalExtension-Dr8dgCst.js} +8 -8
- package/dist-embed/chunks/{KernelVariables-DvfwDxTX.js → KernelVariables-cH-x-Hrc.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-BvKDvb3M.js → NotebookToolSurfaces-BcIduPcQ.js} +1 -1
- package/dist-embed/chunks/{NotebookView-Wo8VVvUY.js → NotebookView-LJ0GBHTQ.js} +1 -1
- package/dist-embed/chunks/{Output-BmVt4DpZ.js → Output-Do1CYRIF.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-CCmkIp8x.js → SandboxDetailsDialog-DjP6mCWy.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-YDAPV6Rb.js → SchemaForm-1QzMu6Zk.js} +1 -1
- package/dist-embed/chunks/{SheetTabs-PG3DQn2N.js → SheetTabs-DJG69znU.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetPreviewView-CpUuO1Di.js → SpreadsheetPreviewView-5marsdKE.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetView-CsSXGqRw.js → SpreadsheetView-CmD-dAjn.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-BBupZR8G.js → WidgetVariableView-BQoMV999.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-BOnLCvAR.js → YouTubePlugin-BCHN7vdi.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-DN0kRlog.js → abnfDiagram-VCTEODGH-BSmEjUJk.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-C5V-1V3E.js → abnfDiagram-VCTEODGH-CF8QpiZa.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CvZ8usho.js → abnfDiagram-VCTEODGH-GnaR64st.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DloHADQr.js → ar-SA-G6X2FPQ2-4AR7vABL.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-Bwqgkba9.js → architectureDiagram-5GKGNRK7-ByAYkSMW.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DRfUn2vu.js → architectureDiagram-5GKGNRK7-Cy6c9GhS.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BeTQQNyc.js → architectureDiagram-5GKGNRK7-b_EnmOeS.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-ZZtVb3rf.js → az-AZ-76LH7QW2-DQ2RQ6Bt.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-9xliuV5e.js → bg-BG-XCXSNQG7-BRTYabxb.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-DQhIB20U.js → blockDiagram-868be97b-C6Xxmbgc.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BjW3QpXh.js → blockDiagram-I7D4REHJ-BBd_q6Z7.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DUfJri3_.js → blockDiagram-I7D4REHJ-Clrwi7_Q.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BjLfxD7u.js → blockDiagram-I7D4REHJ-zXh6gZYF.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-Bhkca3_3.js → bn-BD-2XOGV67Q-DJpR_aiV.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-dS_U3gYR.js → c4Diagram-3f4bdde3-BhBNs69f.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-O_rZefrz.js → c4Diagram-7LVT6UL2-BWQ9xHoN.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-Da5uNT8x.js → c4Diagram-7LVT6UL2-DcCc8HaH.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BK8yvli2.js → c4Diagram-7LVT6UL2-p14SIG7V.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-jpG1o3Op.js → ca-ES-6MX7JW3Y-BrHrTXrx.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BX9u1bBi.js → chunk-2Q5K7J3B-BkzWX8eg.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DiqqlJZw.js → chunk-2Q5K7J3B-CWx-QJ0-.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-JhdIsXWp.js → chunk-2Q5K7J3B-CtmdieBX.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-C5X9VB1v.js → chunk-5VM5RSS4-C7mbT2Vq.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-BbOPwJfe.js → chunk-5VM5RSS4-Ciba-ybC.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-box8kQsT.js → chunk-5VM5RSS4-O8p7luYq.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BUeWPnw5.js → chunk-F27PBJKO-Bo5boRfj.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-CQM02DXR.js → chunk-F27PBJKO-CZHz6AS9.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-syxUNYMu.js → chunk-F27PBJKO-WqHcL2s0.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CPIe37ka.js → chunk-IMKFNOWR-BJR6rkFo.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-B87sc0vl.js → chunk-IMKFNOWR-CPdtPffh.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-rg2BEcj6.js → chunk-IMKFNOWR-Csfu1kFU.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-BGdc9-bH.js → chunk-JWPE2WC7-BVXd-ICe.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-NvLQtuoq.js → chunk-JWPE2WC7-Bf4pFlIJ.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DXZeG2qg.js → chunk-JWPE2WC7-Cq6Q947j.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-UAJm0Siu.js → chunk-POPQ4Y6H-B_rWRGt2.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-BgR92oKl.js → chunk-POPQ4Y6H-DhNnPwZp.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-DWWKSDND.js → chunk-POPQ4Y6H-s1yt1ZtK.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-lMq3S-u-.js → chunk-SVP7TREG-8oKVa2mm.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BE97ZGVE.js → chunk-SVP7TREG-CHN6fclq.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BGHt1HDi.js → chunk-SVP7TREG-CsFEUe5B.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-CeH9Mpzc.js → chunk-TICWLB2K-BsCtCkEM.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BdUzhQPw.js → chunk-TICWLB2K-CSCMv_QA.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-D6WJ64X6.js → chunk-TICWLB2K-InZQ5ZEH.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-BU32lP3z.js → chunk-XXDRQBXY-Y8pSpMzF.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-CjAMT3RS.js → chunk-XXDRQBXY-sm2AIgJ5.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-B8THsPMh.js → chunk-XXDRQBXY-z8go8Kjf.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-Cy9bb-Ja.js → classDiagram-ZZMXUADV-BjEOw29S.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-dVm_zkxF.js → classDiagram-ZZMXUADV-DJ40c8si.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-HBhnoh6h.js → classDiagram-ZZMXUADV-G9WI_1Zg.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-jrNOgtbP.js → classDiagram-f62afe4f-Blm1wT1_.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-CIao-4MQ.js → classDiagram-v2-604399ef-DtWqjJhW.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Cy9bb-Ja.js → classDiagram-v2-VYDZK3BY-BjEOw29S.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-dVm_zkxF.js → classDiagram-v2-VYDZK3BY-DJ40c8si.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-HBhnoh6h.js → classDiagram-v2-VYDZK3BY-G9WI_1Zg.js} +1 -1
- package/dist-embed/chunks/{core-trN55qc5.js → core-BrYTRvTy.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DFWJgtSE.js → cose-bilkent-JH36ORCC-C73aLaB-.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DGrxjlJ4.js → cose-bilkent-JH36ORCC-DCtKiRmD.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-D2gVNaYW.js → cose-bilkent-JH36ORCC-j_7L0NF5.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-DoLPKXK1.js → createText-aed3d8b3-B0tLexrf.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-BMA1Xu87.js → cs-CZ-2BRQDIVT-CmCt0bDq.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DhFh7Gts.js → cynefinDiagram-5FMLGOSQ-BSwaTAfL.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-BZ1LtKUy.js → cynefinDiagram-5FMLGOSQ-DLyDkFEh.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DExZ3BYo.js → cynefinDiagram-5FMLGOSQ-DXr1M_CB.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-smzK_QPz.js → da-DK-5WZEPLOC-Bow4-dps.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-CQ05bX5J.js → dagre-GXQ25YYZ-Bfxayyi1.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-4P90jeEC.js → dagre-GXQ25YYZ-CPu-St26.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-MXGi4287.js → dagre-GXQ25YYZ-DTWZ8vY1.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-CfWQxGGf.js → de-DE-XR44H4JA-DOrKYiYP.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-CvR2q_hg.js → diagram-S7CK7UJ4-Biw5mnoN.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-Ccq8-Zxr.js → diagram-S7CK7UJ4-ERKr1j6v.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-xgW0lqt_.js → diagram-S7CK7UJ4-ewBgYmRN.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-Csc8IuSs.js → diagram-UQ7AKVKN-B-f2Afei.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-D6nWV9sq.js → diagram-UQ7AKVKN-C-6kzgTn.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-DM05uJg0.js → diagram-UQ7AKVKN-CGNA7gub.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-CBb3q1Lt.js → diagram-VSXAHHWV-7M08zFHc.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-ChcqzpvG.js → diagram-VSXAHHWV-CTQu2IBp.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-C0Dte6B4.js → diagram-VSXAHHWV-DRVoe_PH.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DA3s85ZI.js → diagram-VX7I27RA-B_LkfTnq.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DFBWpFKi.js → diagram-VX7I27RA-DHwSWNj4.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-D8OyA7LV.js → diagram-VX7I27RA-vkcQI8-t.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DpwpLNON.js → diagram-Z3DM3KII-BZ9tmKdd.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-CWv5dRb1.js → diagram-Z3DM3KII-D0Xt6xwn.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DViUyD1V.js → diagram-Z3DM3KII-YAo8QSYR.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DogBQteX.js → ebnfDiagram-PWID7BFC-C2oLjL45.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CeZcQDV3.js → ebnfDiagram-PWID7BFC-DN2tb-X8.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-ZbRTmpLY.js → ebnfDiagram-PWID7BFC-Dk5WVIim.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-D_o-rhcf.js → edges-b2856ca0-BSzU9ga-.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-B66N5_hN.js → el-GR-BZB4AONW-BTtxEAc0.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-Fv2KfQrA.js → erDiagram-5d81789a--wvCe6Ur.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BGg8orkr.js → erDiagram-RLTQ6QDP-BDw_Db3e.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CmahDLTF.js → erDiagram-RLTQ6QDP-BTXMcY7Y.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-QI_LQlaL.js → erDiagram-RLTQ6QDP-BsU1EeJN.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-B9FR_uSt.js → es-ES-U4NZUMDT-DhrLOB7I.js} +1 -1
- package/dist-embed/chunks/{esm-BaCqpqKi.js → esm-BFRTiV0k.js} +1 -1
- package/dist-embed/chunks/{esm--zHizpYG.js → esm-VjpQWsU9.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-BOXiXCGc.js → eu-ES-A7QVB2H4-CdpglPNY.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-DZGgNuMT.js → fa-IR-HGAKTJCU-Ea2hzNvl.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-CaWIHowf.js → fi-FI-Z5N7JZ37-D6KBS1-v.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-Bme86bTZ.js → flowDb-185abca5-CBeP2_ZY.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-Dgzjtx-J.js → flowDiagram-1629c991-LZzO5ZR8.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CgvZqEVs.js → flowDiagram-HODETNUW-DNjEQlAR.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CmuRDMmw.js → flowDiagram-HODETNUW-DP1PWdQF.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-OUrVNdIM.js → flowDiagram-HODETNUW-_U05MBMl.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-C0-FfyAn.js → flowDiagram-v2-1d953310-DeqYSBVG.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-Cj7Q5rsQ.js → flowchart-elk-definition-6df44142-Dg5bSBS4.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-JbYWEs2C.js → fr-FR-RHASNOE6-CeDw1EdR.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-11vGPr5M.js → ganttDiagram-3b0b3873-D9Pr_Kxk.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BKVYCh-L.js → ganttDiagram-EL5Y4UJY-Baccn166.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DjmeWOsd.js → ganttDiagram-EL5Y4UJY-DmwhuzrV.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-sX30iW6f.js → ganttDiagram-EL5Y4UJY-Qz5HuyzZ.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CVcSYkDK.js → gitGraphDiagram-WWUBYQGX-BUlSUrle.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-BuldyYGe.js → gitGraphDiagram-WWUBYQGX-CF5nE-hV.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-D5bCd_Fv.js → gitGraphDiagram-WWUBYQGX-ZgEb3qK-.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-CWnInLhH.js → gitGraphDiagram-f01e8bc2-BqpGV-_U.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DHOQCvQH.js → gl-ES-HMX3MZ6V-DK2-uVTg.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-T-2jEF-H.js → he-IL-6SHJWFNN-Fk0F_rV-.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-DnwHC230.js → hi-IN-IWLTKZ5I-03USmwuM.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-CXi3BH37.js → hu-HU-A5ZG7DT2-BSbsIqRs.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-CLNAMqbr.js → id-ID-SAP4L64H-Def1ERB7.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-iredpvJb.js → index-9bae90f3-9T5x-xqi.js} +1 -1
- package/dist-embed/chunks/{index-BeJsO4Vc.js → index-CHu5zo1L.js} +1 -1
- package/dist-embed/chunks/{index-DqWZNFUh.js → index-DB6fbGKT.js} +1 -1
- package/dist-embed/chunks/{index-s25RSqvt.js → index-DObGLuCI.js} +4 -4
- package/dist-embed/chunks/{index-CLB4KPZs.js → index-Df2MkvAW.js} +4 -4
- package/dist-embed/chunks/{index-5os8HYj-.js → index-DrrVr0x3.js} +1 -1
- package/dist-embed/chunks/{index-C5HZB8ue.js → index-z8PItpd8.js} +2 -2
- package/dist-embed/chunks/{index.esm-CDmg415B.js → index.esm-BA_6VWW2.js} +1 -1
- package/dist-embed/chunks/index.esm-CjezntnN.js +1 -0
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-r53wKy7u.js → infoDiagram-27XIBGKW-B4XVsJvC.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-ZpA0pyod.js → infoDiagram-27XIBGKW-Cs7bZlH6.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-C5jY9v4i.js → infoDiagram-27XIBGKW-D3fIZzte.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-Knwr4YPu.js → infoDiagram-a29d40f1-DkWa9MRC.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-_ZSb2XNA.js → ishikawaDiagram-5VMMS53U-B6nIkJxX.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DyyVsa6G.js → ishikawaDiagram-5VMMS53U-BB-Kv-Mj.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DZTg3ecD.js → ishikawaDiagram-5VMMS53U-BIytcjnR.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-txSVmIqw.js → it-IT-JPQ66NNP-SLcJY1NM.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-DOImz4yG.js → ja-JP-DBVTYXUO-Cc9AUQ4A.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-Bc9JVKJo.js → journeyDiagram-3NMN7TZE-Bs6ObzT9.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DAnc386V.js → journeyDiagram-3NMN7TZE-C3yCP95B.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-ChyAFriv.js → journeyDiagram-3NMN7TZE-DjgUmoWA.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-BebgPn4W.js → journeyDiagram-95396277-Dj4xwdzk.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-B2yEdYaM.js → kaa-6HZHGXH3-CzXQn7ER.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-sLTnjbMU.js → kab-KAB-ZGHBKWFO-Cd1AWKsn.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CaaDxJqC.js → kanban-definition-UXKFOSKX-B9DSJpj9.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-Ceyuj1Ce.js → kanban-definition-UXKFOSKX-Chsw2-Nq.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-C2nVULib.js → kanban-definition-UXKFOSKX-_mcHB773.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-BDlGvfGX.js → kk-KZ-P5N5QNE5-CoeOUA0W.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-CooQACBW.js → km-KH-HSX4SM5Z-Newj9En6.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-Bj_rlaK_.js → ko-KR-MTYHY66A-B0HPCdz1.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-Bj6Ypm8A.js → ku-TR-6OUDTVRD-DGP0qnbh.js} +1 -1
- package/dist-embed/chunks/{layout-BjpOdFu2.js → layout-DTdkd155.js} +1 -1
- package/dist-embed/chunks/{layout-DQIVAfpO.js → layout-D_LOxL0l.js} +1 -1
- package/dist-embed/chunks/{layout-Dqr0Lpzq.js → layout-W4AzWc9F.js} +1 -1
- package/dist-embed/chunks/{lib-BQq_nDIJ.js → lib-B8KSw9bH.js} +1 -1
- package/dist-embed/chunks/{lib-CZdsrJQn.js → lib-B8ebpTVD.js} +1 -1
- package/dist-embed/chunks/{lib-RkdqeSxj.js → lib-BSeAgx1v.js} +1 -1
- package/dist-embed/chunks/{lib-Bi3C17qp.js → lib-BYzUzQ6H.js} +1 -1
- package/dist-embed/chunks/{lib-DTFhY99t.js → lib-Bc3R7boK.js} +1 -1
- package/dist-embed/chunks/{lib-4swlpTXy.js → lib-CADgZZ9y.js} +1 -1
- package/dist-embed/chunks/{lib-ZCrl6o8i.js → lib-CLcIUOT7.js} +1 -1
- package/dist-embed/chunks/{lib-14GbWfrY.js → lib-CXGDRspZ.js} +1 -1
- package/dist-embed/chunks/{lib-CFjofO2V.js → lib-CaukawRB.js} +1 -1
- package/dist-embed/chunks/{lib-CjtFb8n-.js → lib-Cn7qCM0u.js} +1 -1
- package/dist-embed/chunks/{lib-D-SlE5VC.js → lib-Coc8tcSm.js} +1 -1
- package/dist-embed/chunks/{lib-Dte5toRY.js → lib-CrCTDU2F.js} +1 -1
- package/dist-embed/chunks/{lib-Df9xZsJQ.js → lib-DDbDl1bK.js} +1 -1
- package/dist-embed/chunks/{lib-epJftt6F.js → lib-DKIJv0vv.js} +1 -1
- package/dist-embed/chunks/{lib-CxLkAp-u.js → lib-Enno6S7H.js} +1 -1
- package/dist-embed/chunks/{lib-D8GpP3sJ.js → lib-EuT6O3Jf.js} +1 -1
- package/dist-embed/chunks/{lib-B_Y-fFGM.js → lib-Y90USIm4.js} +1 -1
- package/dist-embed/chunks/{lib-XPaJtC26.js → lib-YvkJZ6Rp.js} +1 -1
- package/dist-embed/chunks/{lib-BnWPn-3C.js → lib-nq0B6NsD.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-tCy9B-KD.js → lt-LT-XHIRWOB4-BIsLadFj.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-D7otgK4T.js → lv-LV-5QDEKY6T-C8HmZZBF.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-DySu4CMa.js → mermaid.core-By9AWIOp.js} +3 -3
- package/dist-embed/chunks/{mermaid.core-DMHnDUdQ.js → mermaid.core-Dd-D7tJ4.js} +4 -4
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BxYK9vLg.js → mindmap-definition-YA3MSWOX-CCpwK8vh.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DQSoT62j.js → mindmap-definition-YA3MSWOX-CmGscTNk.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BXfU9jpH.js → mindmap-definition-YA3MSWOX-Uv7-26v7.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-GSsr5zyA.js → mindmap-definition-e4c1d938-aCX0qYqH.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-C_WuMJ-7.js → mr-IN-CRQNXWMA-DKYnEuji.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-ljxQ9hC9.js → my-MM-5M5IBNSE-MY3GKeMd.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-D2s2RIr7.js → nb-NO-T6EIAALU-txIp5vuE.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-BnT13jFW.js → nl-NL-IS3SIHDZ-C6xelwh4.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-obFqc-dJ.js → nn-NO-6E72VCQL-BFYvN5n1.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-Dp0fg3-H.js → oc-FR-POXYY2M6-uGpH7RML.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-BefFR002.js → pa-IN-N4M65BXN-Cg4Z-vtz.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-GlLsdSxR.js → pegDiagram-XKGWAZYB-C1R8Kk6K.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-FSobI14k.js → pegDiagram-XKGWAZYB-DLONs192.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-iCCMOEMa.js → pegDiagram-XKGWAZYB-dwQNJiaW.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-D1a6fCH1.js → percentages-BXMCSKIN-9RttMFHC.js} +5 -5
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-CIfzhxTy.js → pieDiagram-E7YTZNPT-CH60iHt1.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-ffhUIieA.js → pieDiagram-E7YTZNPT-Cm-wzRi8.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BLVqNMWJ.js → pieDiagram-E7YTZNPT-DiT0kFGb.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-nYu7i5OI.js → pieDiagram-c941bede-BF587JLB.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-BO36IHPS.js → pl-PL-T2D74RX3-Dv_CTL10.js} +1 -1
- package/dist-embed/chunks/{plugin-m2JrXH0S.js → plugin-Bvp_HQZg.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-DeQn8LGc.js → pt-BR-5N22H2LF-CK-yjA9j.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BY1iT-VW.js → pt-PT-UZXXM6DQ-DYb7ailg.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DbYIZcyN.js → quadrantDiagram-AXDQQJYC-B1wf6Zth.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Dpzqg33f.js → quadrantDiagram-AXDQQJYC-DWDtOx8-.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BE9RPE6m.js → quadrantDiagram-AXDQQJYC-mkOZIUHb.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-nVG6Aygu.js → quadrantDiagram-cf8b8fe0-CE6GwviF.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CwaTW3Mo.js → railroadDiagram-O6MQD6OU-DEB7gRmX.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-jikRRl2W.js → railroadDiagram-O6MQD6OU-DjA_m2-o.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CEl2l0ZE.js → railroadDiagram-O6MQD6OU-DrkBEH1z.js} +1 -1
- package/dist-embed/chunks/{renderer-CCsq5PXp.js → renderer-B_98xkGt.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-CXGOrv-O.js → requirementDiagram-53bda41b-BsRjuGBf.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-DEQBP2xS.js → requirementDiagram-BXWQKSXE-82Ybj2ki.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-ClYVmNTl.js → requirementDiagram-BXWQKSXE-C8d0kJ1A.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Bd0fV1Bn.js → requirementDiagram-BXWQKSXE-S8WT8VJ1.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-BJDoWheT.js → ro-RO-JPDTUUEW-1Cu9X8j1.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-tTkTCAO1.js → ru-RU-B4JR7IUQ-Bl3rV2YR.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CLR82118.js → sankeyDiagram-P5KCCOFB-C2LowYxA.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CuMdtMPP.js → sankeyDiagram-P5KCCOFB-CKqSAqcJ.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DH-uxGJV.js → sankeyDiagram-P5KCCOFB-eNBOyfBR.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-nnS5nxSr.js → sankeyDiagram-c3ef121a-BAS8V2Ov.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-BXXPsnTm.js → sequenceDiagram-82a5b84f-BWNvF-m7.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-D00NbcmA.js → sequenceDiagram-WJ2MYXX4-C_2alFNp.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CkWCOxWE.js → sequenceDiagram-WJ2MYXX4-CxH0MlFa.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-VyUqwKEJ.js → sequenceDiagram-WJ2MYXX4-fsR56p6L.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-D4AT7z9z.js → si-LK-N5RQ5JYF-C2t5ES1t.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-B_CNNL_v.js → sizeCapture-INFHLROL-BCe0IiFV.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-_h3QW8w5.js → sizeCapture-INFHLROL-BsZaIjAU.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-cLmnJm7s.js → sizeCapture-INFHLROL-Y7lBmAj6.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-zTXKcnhq.js → sk-SK-C5VTKIMK-BPwM2QoN.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-DrxXPVrt.js → sl-SI-NN7IZMDC-BCS7eO-5.js} +1 -1
- package/dist-embed/chunks/{state-CGa66Nqd.js → state-DeMGhTAB.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-CKwOZnPj.js → stateDiagram-43e79a5f-2cuSVith.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-Ns0E2Xy4.js → stateDiagram-D77RDMKH-3P7AgNud.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-CEvuFuTH.js → stateDiagram-D77RDMKH-DosU0FIz.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-BVJqlFiv.js → stateDiagram-D77RDMKH-ul2eLf5Q.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-Dx6MQIKx.js → stateDiagram-v2-2041ed4f-Ur2pX7Zl.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-DXcA38of.js → stateDiagram-v2-MP3YSRHH-BvlJBilq.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C_JHNwKt.js → stateDiagram-v2-MP3YSRHH-D0rhfnrW.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-ok1qePbZ.js → stateDiagram-v2-MP3YSRHH-DeEmivLr.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-CyGhxLIv.js → styles-455b33cd-DPOVDa0x.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-Yfe3P5e2.js → styles-f932cba9-Dev7yXQc.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-CoUogcOD.js → styles-fcc2142b-70zGEKfV.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-Ez82ye3f.js → subset-shared.chunk-Cs06OLE4.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-BJr6TVB9.js → subset-worker.chunk-C-vXxYep.js} +1 -1
- package/dist-embed/chunks/{substates-Bs9ZMVGa.js → substates-BuHNVWkx.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-CVuCUAbC.js → sv-SE-XGPEYMSR-sUR_yJ3Z.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-Vfy_vJEN.js → svgDrawCommon-148a3cd9-zokUeLzq.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-CpRw9PHz.js → swimlanes-42K2YHIH-CIW2hU2l.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DO1ZzP4k.js → swimlanes-42K2YHIH-DOkKP2_2.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-BMEa5pc_.js → swimlanes-42K2YHIH-x4BMo9Cs.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BucpGmoC.js → swimlanesDiagram-VR7AAH4N-9yw92Xx_.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BYKvE-MW.js → swimlanesDiagram-VR7AAH4N-BlFZ7eQS.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BCaTTDxJ.js → swimlanesDiagram-VR7AAH4N-zOAH82Ya.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-BURg7Kc1.js → ta-IN-2NMHFXQM-c1DneC5B.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-CxVkDzOV.js → th-TH-HPSO5L25-TIsXPiQR.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-DUJPQe9n.js → timeline-definition-24CTP7MA-BfM-0614.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-C_RPFzcS.js → timeline-definition-24CTP7MA-C9Ed6D0K.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CRpA2xfq.js → timeline-definition-24CTP7MA-kHlycslq.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-BPBA2KPg.js → timeline-definition-7545f45a-B4ECAP9Q.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-DzMZjlaq.js → tr-TR-DEFEU3FU-Bvb4Ep_L.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-DBHj_NAU.js → uk-UA-QMV73CPH-BNgdD_2E.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-C4cLgb45.js → vennDiagram-4TSXK5OY-7gMUaOyw.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CRiS0wYe.js → vennDiagram-4TSXK5OY-CrE30dtz.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-ByKQXzaL.js → vennDiagram-4TSXK5OY-Dt9fBhlj.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-B8B39qmP.js → vi-VN-M7AON7JQ-T0aYX7Py.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CnxCRlDr.js → wardleyDiagram-VM6X3IG4-6HRbbvDt.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CLayLpj4.js → wardleyDiagram-VM6X3IG4-AvAVDPLG.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-BbgqGTmD.js → wardleyDiagram-VM6X3IG4-CsR-8GhP.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-zh1CmS72.js → xychartDiagram-3f383b91-C09F8RkF.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CYJl0Gtl.js → xychartDiagram-S5SC5T6Z-CkZtbHvK.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CoRCml5l.js → xychartDiagram-S5SC5T6Z-VWPR98LV.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-RhhCg-yn.js → xychartDiagram-S5SC5T6Z-ZZD1fZ1L.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-OOkUvmDB.js → zh-CN-LNUGB5OW-CpDHeCAz.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-r2T4uQQz.js → zh-HK-E62DVLB3-B5Kmyhoq.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CVJ2FptU.js → zh-TW-RAJ6MFWO-D-Gvp4EC.js} +1 -1
- package/dist-embed/datalayer-app-main.js +91 -52
- package/lib/agents/AgentDetails.js +1 -1
- package/lib/apps/Application.d.ts +22 -0
- package/lib/apps/Application.js +23 -3
- package/lib/apps/embed/AppEmbed.d.ts +8 -2
- package/lib/apps/embed/AppEmbed.js +3 -1
- package/lib/apps/embed/LoopEmbed.js +14 -0
- package/lib/apps/embed/element.d.ts +5 -0
- package/lib/apps/embed/element.js +8 -2
- package/lib/apps/embed/embedTheme.js +15 -0
- package/lib/apps/embed/visitorApp.d.ts +10 -0
- package/lib/apps/embed/visitorApp.js +9 -3
- package/lib/apps/presets.d.ts +3 -0
- package/lib/apps/presets.js +3 -2
- package/lib/apps/shell/LeftPanel.d.ts +40 -4
- package/lib/apps/shell/LeftPanel.js +46 -15
- package/lib/apps/shell/index.d.ts +1 -1
- package/lib/chat/anonymous/AnonymousChat.d.ts +7 -5
- package/lib/chat/anonymous/AnonymousChat.js +9 -6
- package/lib/chat/anonymous/anonymousMode.d.ts +17 -0
- package/lib/chat/header/ChatHeaderBase.d.ts +2 -0
- package/lib/chat/header/ChatHeaderBase.js +8 -2
- package/lib/specs/actions.js +2 -0
- package/lib/specs/agentPresentations.js +9 -0
- package/lib/specs/agents/agents.js +3 -1
- package/lib/specs/apps.d.ts +2 -1
- package/lib/specs/apps.js +215 -7
- package/lib/types/agentspecs.d.ts +1 -1
- package/lib/types/agentspecs.js +1 -1
- package/package.json +1 -1
- package/dist-embed/chunks/index.esm-BLnMhA7S.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{at as g_,tG as y_,tF as m_,tH as Jh,tI as __,tJ as ru,J as S_,r as b_,tK as tv}from"../datalayer-app-main.js";var Ml=function(r,t){return Ml=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Ml(r,t)};function Y(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ml(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var w_=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),x_=(function(){function r(){this.browser=new w_,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),q=new x_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window?(q.node=!0,q.svgSupported=!0):T_(navigator.userAgent,q);function T_(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var Ff=12,C_="sans-serif",Tn=Ff+"px "+C_,D_=20,M_=100,A_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function L_(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-D_)/M_;t[n]=i}return t}var I_=L_(A_),sr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,n){if(!r){var i=sr.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Tn),r.measureText(e);e=e||"",n=n||Tn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Ff,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=I_[e[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}};function P_(r){for(var t in sr)r[t]&&(sr[t]=r[t])}var qp=Xe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Zp=Xe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),ui=Object.prototype.toString,bs=Array.prototype,R_=bs.forEach,E_=bs.filter,zf=bs.slice,O_=bs.map,ev=function(){}.constructor,za=ev?ev.prototype:null,Gf="__proto__",k_=2311;function Hf(){return k_++}function ws(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function tt(r){if(r==null||typeof r!="object")return r;var t=r,e=ui.call(r);if(e==="[object Array]"){if(!Qn(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=tt(r[n])}}else if(Zp[e]){if(!Qn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!qp[e]&&!Qn(r)&&!ii(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Gf&&(t[o]=tt(r[o]))}return t}function rt(r,t,e){if(!U(t)||!U(r))return e?tt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Gf){var i=r[n],a=t[n];U(a)&&U(i)&&!F(a)&&!F(i)&&!ii(a)&&!ii(i)&&!Al(a)&&!Al(i)&&!Qn(a)&&!Qn(i)?rt(i,a,e):(e||!(n in r))&&(r[n]=tt(t[n]))}return r}function N_(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=rt(e,r[n],t);return e}function N(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Gf&&(r[e]=t[e]);return r}function it(r,t,e){for(var n=gt(t),i=0,a=n.length;i<a;i++){var o=n[i];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var B_=sr.createCanvas;function ut(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Vf(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function Se(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else it(r,t,e)}function $t(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===R_)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function W(r,t,e){if(!r)return[];if(!t)return xs(r);if(r.map&&r.map===O_)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Xe(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function xt(r,t,e){if(!r)return[];if(!t)return xs(r);if(r.filter&&r.filter===E_)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function F_(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function gt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function z_(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(zf.call(arguments)))}}var ct=za&&Z(za.bind)?za.call.bind(za.bind):z_;function mt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(zf.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):ui.call(r)==="[object Array]"}function Z(r){return typeof r=="function"}function H(r){return typeof r=="string"}function Go(r){return ui.call(r)==="[object String]"}function ft(r){return typeof r=="number"}function U(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Al(r){return!!qp[ui.call(r)]}function qt(r){return!!Zp[ui.call(r)]}function ii(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Ca(r){return r.colorStops!=null}function Kp(r){return r.image!=null}function G_(r){return ui.call(r)==="[object RegExp]"}function sa(r){return r!==r}function ai(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function K(r,t){return r??t}function jn(r,t,e){return r??t??e}function xs(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return zf.apply(r,t)}function Wf(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Oe(r,t){if(!r)throw new Error(t)}function Le(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var jp="__ec_primitive__";function ua(r){r[jp]=!0}function Qn(r){return r[jp]}var H_=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return gt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r})(),Qp=typeof Map=="function";function V_(){return Qp?new Map:new H_}var Jp=(function(){function r(t){var e=F(t);this.data=V_();var n=this;t instanceof r?t.each(i):t&&A(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return Qp?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function j(r){return new Jp(r)}function tg(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function Da(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&N(e,t),e}function Uf(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ur(r,t){return r.hasOwnProperty(t)}function Ut(){}var Ki=180/Math.PI;const wI=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Jp,RADIAN_TO_DEGREE:Ki,assert:Oe,bind:ct,clone:tt,concatArray:tg,createCanvas:B_,createHashMap:j,createObject:Da,curry:mt,defaults:it,disableUserSelect:Uf,each:A,eqNaN:sa,extend:N,filter:xt,find:F_,guid:Hf,hasOwn:ur,indexOf:ut,inherits:Vf,isArray:F,isArrayLike:$t,isBuiltInObject:Al,isDom:ii,isFunction:Z,isGradientObject:Ca,isImagePatternObject:Kp,isNumber:ft,isObject:U,isPrimitive:Qn,isRegExp:G_,isString:H,isStringSafe:Go,isTypedArray:qt,keys:gt,logError:ws,map:W,merge:rt,mergeAll:N_,mixin:Se,noop:Ut,normalizeCssArray:Wf,reduce:Xe,retrieve:ai,retrieve2:K,retrieve3:jn,setAsPrimitive:ua,slice:xs,trim:Le},Symbol.toStringTag,{value:"Module"}));var Ll=function(r,t){return Ll=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Ll(r,t)};function dt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ll(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function An(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function W_(r,t){return r[0]=t[0],r[1]=t[1],r}function eg(r){return[r[0],r[1]]}function U_(r,t,e){return r[0]=t,r[1]=e,r}function Il(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Y_(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function rg(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Yf(r){return Math.sqrt(Xf(r))}var X_=Yf;function Xf(r){return r[0]*r[0]+r[1]*r[1]}var $_=Xf;function q_(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function Z_(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function K_(r,t){return r[0]*t[0]+r[1]*t[1]}function Co(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function ng(r,t){var e=Yf(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Ho(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Vo=Ho;function ig(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var mn=ig;function j_(r,t){return r[0]=-t[0],r[1]=-t[1],r}function Do(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Yt(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function Mr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ar(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const xI=Object.freeze(Object.defineProperty({__proto__:null,add:Il,applyTransform:Yt,clone:eg,copy:W_,create:An,dist:Vo,distSquare:mn,distance:Ho,distanceSquare:ig,div:Z_,dot:K_,len:Yf,lenSquare:Xf,length:X_,lengthSquare:$_,lerp:Do,max:Ar,min:Mr,mul:q_,negate:j_,normalize:ng,scale:Co,scaleAndAdd:Y_,set:U_,sub:rg},Symbol.toStringTag,{value:"Module"}));var Pn=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),Q_=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Pn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Pn(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Pn(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Pn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Pn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Pn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),$e=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),J_=Math.log(2);function Pl(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/J_);return r[e][u]}for(var l=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*r[e][c]*Pl(r,t-1,f,l,i|d,a),v++)}return a[o]=h,h}function rv(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=Pl(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Pl(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var nv="___zrEVENTSAVED",nu=[];function t1(r,t,e,n,i){return Rl(nu,t,n,i,!0)&&Rl(r,e,nu[0],nu[1])}function Rl(r,t,e,n,i){if(t.getBoundingClientRect&&q.domSupported&&!ag(t)){var a=t[nv]||(t[nv]={}),o=e1(t,a),s=r1(o,a,i);if(s)return s(r,e,n),!0}return!1}function e1(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function r1(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?rv(s,o):rv(o,s))}function ag(r){return r.nodeName.toUpperCase()==="CANVAS"}var n1=/([&<>"'])/g,i1={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vt(r){return r==null?"":(r+"").replace(n1,function(t,e){return i1[e]})}var a1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,iu=[],o1=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function El(r,t,e,n){return e=e||{},n?iv(r,t,e):o1&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):iv(r,t,e),e}function iv(r,t,e){if(q.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(ag(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Rl(iu,r,n,i)){e.zrX=iu[0],e.zrY=iu[1];return}}e.zrX=e.zrY=0}function $f(r){return r||window.event}function ce(r,t,e){if(t=$f(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&El(r,o,t,e)}else{El(r,t,t,e);var a=s1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&a1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function s1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function u1(r,t,e,n){r.addEventListener(t,e,n)}function l1(r,t,e,n){r.removeEventListener(t,e,n)}var og=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function TI(r){return r.which===2||r.which===3}var f1=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=El(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in au)if(au.hasOwnProperty(e)){var n=au[e](this._track,t);if(n)return n}},r})();function av(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function h1(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var au={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=av(n)/av(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=h1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Er(){return[1,0,0,1,0,0]}function Ma(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function qf(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Or(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function Wo(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Ts(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-n[0])+f*(l-n[1])+n[0],r[5]=h*(l-n[1])-f*(o-n[0])+n[1],r}function sg(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function li(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*n;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-n*u,r[3]=e*u,r[4]=(n*s-o*i)*u,r[5]=(a*i-e*s)*u,r):null}function v1(r){var t=Er();return qf(t,r),t}const CI=Object.freeze(Object.defineProperty({__proto__:null,clone:v1,copy:qf,create:Er,identity:Ma,invert:li,mul:Or,rotate:Ts,scale:sg,translate:Wo},Symbol.toStringTag,{value:"Module"}));var $=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r})(),Ga=Math.min,Ha=Math.max,Wr=new $,Ur=new $,Yr=new $,Xr=new $,mi=new $,_i=new $,nt=(function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Ga(t.x,this.x),n=Ga(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ha(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ha(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Er();return Wo(a,a,[-e.x,-e.y]),sg(a,a,[n,i]),Wo(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<u||l<i||s<f||h<o);if(e){var v=1/0,d=0,g=Math.abs(a-u),p=Math.abs(l-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(g,p),S=Math.min(y,m);a<u||l<i?_>d&&(d=_,g<p?$.set(_i,-g,0):$.set(_i,p,0)):_<v&&(v=_,g<p?$.set(mi,g,0):$.set(mi,-p,0)),s<f||h<o?S>d&&(d=S,y<m?$.set(_i,0,-y):$.set(_i,0,m)):_<v&&(v=_,y<m?$.set(mi,0,y):$.set(mi,0,-m))}return e&&$.copy(e,c?mi:_i),c},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Wr.x=Yr.x=e.x,Wr.y=Xr.y=e.y,Ur.x=Xr.x=e.x+e.width,Ur.y=Yr.y=e.y+e.height,Wr.transform(n),Xr.transform(n),Ur.transform(n),Yr.transform(n),t.x=Ga(Wr.x,Ur.x,Yr.x,Xr.x),t.y=Ga(Wr.y,Ur.y,Yr.y,Xr.y);var u=Ha(Wr.x,Ur.x,Yr.x,Xr.x),l=Ha(Wr.y,Ur.y,Yr.y,Xr.y);t.width=u-t.x,t.height=l-t.y},r})(),ug="silent";function c1(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:d1}}function d1(){og(this.event)}var p1=(function(r){dt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})($e),Si=(function(){function r(t,e){this.x=t,this.y=e}return r})(),g1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ou=new nt(0,0,0,0),lg=(function(r){dt(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Si(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new p1,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Q_(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(g1,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=fg(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Si(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Si(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=c1(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Si(e,n);if(ov(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new nt(e-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(ou.copy(c.getBoundingRect()),c.transform&&ou.applyTransform(c.transform),ou.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<l;p+=v)for(var y=0;y<g;y+=d){var m=e+p*Math.cos(y),_=n+p*Math.sin(y);if(ov(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new f1);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Si;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})($e);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){lg.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=fg(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Vo(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function y1(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?ug:!0}return!1}function ov(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=y1(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==ug)){t.target=o;break}}}function fg(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var hg=32,bi=7;function m1(r){for(var t=0;r>=hg;)t|=r&1,r>>=1;return r+t}function sv(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;_1(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function _1(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function uv(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function su(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u<s&&a(r,t[e+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(r,t[e+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function uu(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;u<s&&a(r,t[e+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(r,t[e+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function S1(r,t){var e=bi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],y=i[v+1];i[v]=g+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=uu(r[p],r,d,g,0,t);d+=m,g-=m,g!==0&&(y=su(r[d+g-1],r,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):c(d,g,p,y)))}function h(v,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=g,S=v;if(r[S++]=r[_++],--p===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m];return}for(var w=e,b,x,T;;){b=0,x=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],x++,b=0,--p===0){T=!0;break}}else if(r[S++]=o[m++],b++,x=0,--d===1){T=!0;break}while((b|x)<w);if(T)break;do{if(b=uu(r[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--p===0){T=!0;break}if(x=su(o[m],r,_,p,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=r[_+y];if(S+=x,_+=x,p-=x,p===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}w--}while(b>=bi||x>=bi);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(v,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=r[g+y];var m=v+d-1,_=p-1,S=g+p-1,w=0,b=0;if(r[S--]=r[m--],--d===0){for(w=S-(p-1),y=0;y<p;y++)r[w+y]=o[y];return}if(p===1){for(S-=d,m-=d,b=S+1,w=m+1,y=d-1;y>=0;y--)r[b+y]=r[w+y];r[S]=o[_];return}for(var x=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--p===1){M=!0;break}while((T|C)<x);if(M)break;do{if(T=d-uu(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,b=S+1,w=m+1,y=T-1;y>=0;y--)r[b+y]=r[w+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--p===1){M=!0;break}if(C=p-su(r[m],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,b=S+1,w=_+1,y=0;y<C;y++)r[b+y]=o[w+y];if(p<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}x--}while(T>=bi||C>=bi);if(M)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,m-=d,b=S+1,w=m+1,y=d-1;y>=0;y--)r[b+y]=r[w+y];r[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),y=0;y<p;y++)r[w+y]=o[y]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Mo(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<hg){a=sv(r,e,n,t),uv(r,e,n,e+a,t);return}var o=S1(r,t),s=m1(i);do{if(a=sv(r,e,n,t),a<s){var u=i;u>s&&(u=s),uv(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var oe=1,Vi=2,$n=4,lv=!1;function lu(){lv||(lv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function fv(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var b1=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=fv}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Mo(n,fv)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=oe),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(lu(),f.z=0),isNaN(f.z2)&&(lu(),f.z2=0),isNaN(f.zlevel)&&(lu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=ut(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Uo;Uo=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var ji={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-ji.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?ji.bounceIn(r*2)*.5:ji.bounceOut(r*2-1)*.5+.5}},Va=Math.pow,kr=Math.sqrt,Yo=1e-8,vg=1e-4,hv=kr(3),Wa=1/3,He=An(),ge=An(),Jn=An();function Lr(r){return r>-Yo&&r<Yo}function cg(r){return r>Yo||r<-Yo}function Dt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function vv(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Xo(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Lr(f)&&Lr(h))if(Lr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Lr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=kr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Va(-_,Wa):_=Va(_,Wa),S<0?S=-Va(-S,Wa):S=Va(S,Wa);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*kr(f*f*f)),b=Math.acos(w)/3,x=kr(f),T=Math.cos(b),d=(-s-2*x*T)/(3*o),y=(-s+x*(T+hv*Math.sin(b)))/(3*o),C=(-s+x*(T-hv*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function dg(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(Lr(o)){if(cg(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Lr(f))i[0]=-a/(2*o);else if(f>0){var h=kr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function $o(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function pg(r,t,e,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;He[0]=u,He[1]=l;for(var m=0;m<1;m+=.05)ge[0]=Dt(r,e,i,o,m),ge[1]=Dt(t,n,a,s,m),p=mn(He,ge),p<v&&(h=m,v=p);v=1/0;for(var _=0;_<32&&!(c<vg);_++)d=h-c,g=h+c,ge[0]=Dt(r,e,i,o,d),ge[1]=Dt(t,n,a,s,d),p=mn(ge,He),d>=0&&p<v?(h=d,v=p):(Jn[0]=Dt(r,e,i,o,g),Jn[1]=Dt(t,n,a,s,g),y=mn(Jn,He),g<=1&&y<v?(h=g,v=y):c*=.5);return f&&(f[0]=Dt(r,e,i,o,h),f[1]=Dt(t,n,a,s,h)),kr(v)}function w1(r,t,e,n,i,a,o,s,u){for(var l=r,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,g=Dt(r,e,i,o,d),p=Dt(t,n,a,s,d),y=g-l,m=p-f;h+=Math.sqrt(y*y+m*m),l=g,f=p}return h}function Bt(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function cv(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function x1(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,u=0;if(Lr(a)){if(cg(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Lr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=kr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function gg(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function qo(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function yg(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;He[0]=o,He[1]=s;for(var c=0;c<1;c+=.05){ge[0]=Bt(r,e,i,c),ge[1]=Bt(t,n,a,c);var v=mn(He,ge);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<vg);d++){var g=l-f,p=l+f;ge[0]=Bt(r,e,i,g),ge[1]=Bt(t,n,a,g);var v=mn(ge,He);if(g>=0&&v<h)l=g,h=v;else{Jn[0]=Bt(r,e,i,p),Jn[1]=Bt(t,n,a,p);var y=mn(Jn,He);p<=1&&y<h?(l=p,h=y):f*=.5}}return u&&(u[0]=Bt(r,e,i,l),u[1]=Bt(t,n,a,l)),kr(h)}function T1(r,t,e,n,i,a,o){for(var s=r,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Bt(r,e,i,c),d=Bt(t,n,a,c),g=v-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=v,u=d}return l}var C1=/cubic-bezier\(([0-9,\.e ]+)\)/;function mg(r){var t=r&&C1.exec(r);if(t){var e=t[1].split(","),n=+Le(e[0]),i=+Le(e[1]),a=+Le(e[2]),o=+Le(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Xo(0,n,a,1,u,s)&&Dt(0,i,o,1,s[0])}}}var D1=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ut,this.ondestroy=t.ondestroy||Ut,this.onrestart=t.onrestart||Ut,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:ji[t]||mg(t)},r})(),_g=(function(){function r(t){this.value=t}return r})(),M1=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new _g(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Aa=(function(){function r(t){this._list=new M1,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new _g(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),dv={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 Re(r){return r=Math.round(r),r<0?0:r>255?255:r}function A1(r){return r=Math.round(r),r<0?0:r>360?360:r}function la(r){return r<0?0:r>1?1:r}function fu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Re(parseFloat(t)/100*255):Re(parseInt(t,10))}function _n(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?la(parseFloat(t)/100):la(parseFloat(t))}function hu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ir(r,t,e){return r+(t-r)*e}function ve(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Ol(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Sg=new Aa(20),Ua=null;function Rn(r,t){Ua&&Ol(Ua,t),Ua=Sg.put(r,Ua||t.slice())}function ee(r,t){if(r){t=t||[];var e=Sg.get(r);if(e)return Ol(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in dv)return Ol(t,dv[n]),Rn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ve(t,0,0,0,1);return}return ve(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Rn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ve(t,0,0,0,1);return}return ve(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Rn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?ve(t,+l[0],+l[1],+l[2],1):ve(t,0,0,0,1);f=_n(l.pop());case"rgb":if(l.length>=3)return ve(t,fu(l[0]),fu(l[1]),fu(l[2]),l.length===3?f:_n(l[3])),Rn(r,t),t;ve(t,0,0,0,1);return;case"hsla":if(l.length!==4){ve(t,0,0,0,1);return}return l[3]=_n(l[3]),kl(l,t),Rn(r,t),t;case"hsl":if(l.length!==3){ve(t,0,0,0,1);return}return kl(l,t),Rn(r,t),t;default:return}}ve(t,0,0,0,1)}}function kl(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=_n(r[1]),i=_n(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ve(t,Re(hu(o,a,e+1/3)*255),Re(hu(o,a,e)*255),Re(hu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function L1(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?u=c-h:e===a?u=1/3+f-c:n===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return r[3]!=null&&v.push(r[3]),v}}function Nl(r,t){var e=ee(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Vr(e,e.length===4?"rgba":"rgb")}}function I1(r){var t=ee(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function bg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],u=n-i;return e[0]=Re(Ir(o[0],s[0],u)),e[1]=Re(Ir(o[1],s[1],u)),e[2]=Re(Ir(o[2],s[2],u)),e[3]=la(Ir(o[3],s[3],u)),e}}var P1=bg;function Zf(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=ee(t[i]),s=ee(t[a]),u=n-i,l=Vr([Re(Ir(o[0],s[0],u)),Re(Ir(o[1],s[1],u)),Re(Ir(o[2],s[2],u)),la(Ir(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var R1=Zf;function E1(r,t,e,n){var i=ee(r);if(r)return i=L1(i),t!=null&&(i[0]=A1(t)),e!=null&&(i[1]=_n(e)),n!=null&&(i[2]=_n(n)),Vr(kl(i),"rgba")}function O1(r,t){var e=ee(r);if(e&&t!=null)return e[3]=la(t),Vr(e,"rgba")}function Vr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function fa(r,t){var e=ee(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function k1(){return Vr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var pv=new Aa(100);function Bl(r){if(H(r)){var t=pv.get(r);return t||(t=Nl(r,-.1),pv.put(r,t)),t}else if(Ca(r)){var e=N({},r);return e.colorStops=W(r.colorStops,function(n){return{offset:n.offset,color:Nl(n.color,-.1)}}),e}return r}const DI=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:bg,fastMapToColor:P1,lerp:Zf,lift:Nl,liftColor:Bl,lum:fa,mapToColor:R1,modifyAlpha:O1,modifyHSL:E1,parse:ee,random:k1,stringify:Vr,toHex:I1},Symbol.toStringTag,{value:"Module"}));var Zo=Math.round;function MI(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=ee(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var gv=1e-4;function AI(r){return r<gv&&r>-gv}function Ya(r){return Zo(r*1e3)/1e3}function yv(r){return Zo(r*1e4)/1e4}function LI(r){return"matrix("+Ya(r[0])+","+Ya(r[1])+","+Ya(r[2])+","+Ya(r[3])+","+yv(r[4])+","+yv(r[5])+")"}var II={left:"start",right:"end",center:"middle",middle:"middle"};function PI(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function RI(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function EI(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function N1(r){return r&&!!r.image}function B1(r){return r&&!!r.svgElement}function OI(r){return N1(r)||B1(r)}function F1(r){return r.type==="linear"}function z1(r){return r.type==="radial"}function kI(r){return r&&(r.type==="linear"||r.type==="radial")}function NI(r){return"url(#"+r+")"}function BI(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function FI(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Ki,i=K(r.scaleX,1),a=K(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,u=[];return(t||e)&&u.push("translate("+t+"px,"+e+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+Zo(o*Ki)+"deg, "+Zo(s*Ki)+"deg)"),u.join(" ")}var zI=(function(){return q.hasGlobalWindow&&Z(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),Fl=Array.prototype.slice;function rr(r,t,e){return(t-r)*e+r}function vu(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=rr(t[a],e[a],n);return r}function G1(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=rr(t[o][s],e[o][s],n)}return r}function Xa(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function mv(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function H1(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function V1(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(e===1?i[u]:Fl.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(e===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function Ao(r){if($t(r)){var t=r.length;if($t(r[0])){for(var e=[],n=0;n<t;n++)e.push(Fl.call(r[n]));return e}return Fl.call(r)}return r}function Lo(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function W1(r){return $t(r&&r[0])?2:1}var $a=0,Io=1,wg=2,Wi=3,zl=4,Gl=5,_v=6;function Sv(r){return r===zl||r===Gl}function qa(r){return r===Io||r===wg}var wi=[0,0,0,0],U1=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_v,u=e;if($t(e)){var l=W1(e);s=l,(l===1&&!ft(e[0])||l===2&&!ft(e[0][0]))&&(o=!0)}else if(ft(e)&&!sa(e))s=$a;else if(H(e))if(!isNaN(+e))s=$a;else{var f=ee(e);f&&(u=f,s=Wi)}else if(Ca(e)){var h=N({},u);h.colorStops=W(e.colorStops,function(v){return{offset:v.offset,color:ee(v.color)}}),F1(e)?s=zl:z1(e)&&(s=Gl),u=h}a===0?this.valType=s:(s!==this.valType||s===_v)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=Z(n)?n:ji[n]||mg(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=qa(i),l=Sv(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?V1(c,v,i):l&&H1(c.colorStops,v.colorStops))}if(!s&&i!==Gl&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===$a?n[f].additiveValue=n[f].value-d:i===Wi?n[f].additiveValue=Xa([],n[f].value,d,-1):qa(i)&&(n[f].additiveValue=i===Io?Xa([],n[f].value,d,-1):mv([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Wi,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?wi:t[u];if((qa(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(qa(a))a===Io?vu(m,v[i],d[i],y):G1(m,v[i],d[i],y);else if(Sv(a)){var _=v[i],S=d[i],w=a===zl;t[u]={type:w?"linear":"radial",x:rr(_.x,S.x,y),y:rr(_.y,S.y,y),colorStops:W(_.colorStops,function(x,T){var C=S.colorStops[T];return{offset:rr(x.offset,C.offset,y),color:Lo(vu([],x.color,C.color,y))}}),global:S.global},w?(t[u].x2=rr(_.x2,S.x2,y),t[u].y2=rr(_.y2,S.y2,y)):t[u].r=rr(_.r,S.r,y)}else if(l)vu(m,v[i],d[i],y),n||(t[u]=Lo(m));else{var b=rr(v[i],d[i],y);n?this._additiveValue=b:t[u]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===$a?t[n]=t[n]+i:e===Wi?(ee(t[n],wi),Xa(wi,wi,i,1),t[n]=Lo(wi)):e===Io?Xa(t[n],t[n],i,1):e===wg&&mv(t[n],t[n],i,1)},r})(),Kf=(function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){ws("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,gt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new U1(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Wi&&l&&(l=Lo(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Ao(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Ao(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new D1({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(e._target,v);var y=e._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[p](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return W(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=Ao(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||gt(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function Zn(){return new Date().getTime()}var Y1=(function(r){dt(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.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 n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Zn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Uo(n),!e._paused&&e.update())}Uo(n)},t.prototype.start=function(){this._running||(this._time=Zn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Zn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Zn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Kf(e,n.loop);return this.addAnimator(i),i},t})($e),X1=300,cu=q.domSupported,du=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=W(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}})(),bv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wv=!1;function Hl(r){var t=r.pointerType;return t==="pen"||t==="touch"}function $1(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function pu(r){r&&(r.zrByTouch=!0)}function q1(r,t){return ce(r.dom,new Z1(r,t),!0)}function xg(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Z1=(function(){function r(t,e){this.stopPropagation=Ut,this.stopImmediatePropagation=Ut,this.preventDefault=Ut,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),De={mousedown:function(r){r=ce(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ce(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ce(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ce(this.dom,r);var t=r.toElement||r.relatedTarget;xg(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){wv=!0,r=ce(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){wv||(r=ce(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ce(this.dom,r),pu(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),De.mousemove.call(this,r),De.mousedown.call(this,r)},touchmove:function(r){r=ce(this.dom,r),pu(r),this.handler.processGesture(r,"change"),De.mousemove.call(this,r)},touchend:function(r){r=ce(this.dom,r),pu(r),this.handler.processGesture(r,"end"),De.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<X1&&De.click.call(this,r)},pointerdown:function(r){De.mousedown.call(this,r)},pointermove:function(r){Hl(r)||De.mousemove.call(this,r)},pointerup:function(r){De.mouseup.call(this,r)},pointerout:function(r){Hl(r)||De.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){De[r]=function(t){t=ce(this.dom,t),this.trigger(r,t)}});var Vl={pointermove:function(r){Hl(r)||Vl.mousemove.call(this,r)},pointerup:function(r){Vl.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function K1(r,t){var e=t.domHandlers;q.pointerEventsSupported?A(du.pointer,function(n){Po(t,n,function(i){e[n].call(r,i)})}):(q.touchEventsSupported&&A(du.touch,function(n){Po(t,n,function(i){e[n].call(r,i),$1(t)})}),A(du.mouse,function(n){Po(t,n,function(i){i=$f(i),t.touching||e[n].call(r,i)})}))}function j1(r,t){q.pointerEventsSupported?A(bv.pointer,e):q.touchEventsSupported||A(bv.mouse,e);function e(n){function i(a){a=$f(a),xg(r,a.target)||(a=q1(r,a),t.domHandlers[n].call(r,a))}Po(t,n,i,{capture:!0})}}function Po(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,u1(r.domTarget,t,e,n)}function gu(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&l1(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var xv=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),Q1=(function(r){dt(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new xv(e,De),cu&&(i._globalHandlerScope=new xv(document,Vl)),K1(i,i._localHandlerScope),i}return t.prototype.dispose=function(){gu(this._localHandlerScope),cu&&gu(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,cu&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?j1(this,n):gu(n)}},t})($e),Tg=1;q.hasGlobalWindow&&(Tg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ko=Tg,Wl=.4,Ul="#333",Yl="#ccc",J1="#eee",Tv=Ma,Cv=5e-5;function $r(r){return r>Cv||r<-Cv}var qr=[],En=[],yu=Er(),mu=Math.abs,jf=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return $r(this.rotation)||$r(this.x)||$r(this.y)||$r(this.scaleX-1)||$r(this.scaleY-1)||$r(this.skewX)||$r(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Tv(n),this.invTransform=null);return}n=n||Er(),e?this.getLocalTransform(n):Tv(n),t&&(e?Or(n,t,n):qf(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(qr);var n=qr[0]<0?-1:1,i=qr[1]<0?-1:1,a=((qr[0]-n)*e+n)/qr[0]||0,o=((qr[1]-i)*e+i)/qr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Er(),li(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Er(),Or(En,t.invTransform,e),e=En);var n=this.originX,i=this.originY;(n||i)&&(yu[4]=n,yu[5]=i,Or(En,e,yu),En[4]-=n,En[5]-=i,e=En),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Yt(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Yt(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&mu(t[0]-1)>1e-10&&mu(t[3]-1)>1e-10?Math.sqrt(mu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){tS(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&Ts(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),ha=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tS(r,t){for(var e=0;e<ha.length;e++){var n=ha[e];r[n]=t[n]}}var Dv={};function se(r,t){t=t||Tn;var e=Dv[t];e||(e=Dv[t]=new Aa(500));var n=e.get(r);return n==null&&(n=sr.measureText(r,t).width,e.put(r,n)),n}function Mv(r,t,e,n){var i=se(r,t),a=Jf(t),o=Ui(0,i,e),s=qn(0,a,n),u=new nt(o,s,i,a);return u}function Qf(r,t,e,n){var i=((r||"")+"").split(`
|
|
1
|
+
import{at as g_,tF as y_,tE as m_,tG as Jh,tH as __,tI as ru,J as S_,r as b_,tJ as tv}from"../datalayer-app-main.js";var Ml=function(r,t){return Ml=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Ml(r,t)};function Y(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ml(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var w_=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),x_=(function(){function r(){this.browser=new w_,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),q=new x_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window?(q.node=!0,q.svgSupported=!0):T_(navigator.userAgent,q);function T_(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var Ff=12,C_="sans-serif",Tn=Ff+"px "+C_,D_=20,M_=100,A_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function L_(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-D_)/M_;t[n]=i}return t}var I_=L_(A_),sr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,n){if(!r){var i=sr.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Tn),r.measureText(e);e=e||"",n=n||Tn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Ff,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=I_[e[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}};function P_(r){for(var t in sr)r[t]&&(sr[t]=r[t])}var qp=Xe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Zp=Xe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),ui=Object.prototype.toString,bs=Array.prototype,R_=bs.forEach,E_=bs.filter,zf=bs.slice,O_=bs.map,ev=function(){}.constructor,za=ev?ev.prototype:null,Gf="__proto__",k_=2311;function Hf(){return k_++}function ws(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function tt(r){if(r==null||typeof r!="object")return r;var t=r,e=ui.call(r);if(e==="[object Array]"){if(!Qn(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=tt(r[n])}}else if(Zp[e]){if(!Qn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!qp[e]&&!Qn(r)&&!ii(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Gf&&(t[o]=tt(r[o]))}return t}function rt(r,t,e){if(!U(t)||!U(r))return e?tt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Gf){var i=r[n],a=t[n];U(a)&&U(i)&&!F(a)&&!F(i)&&!ii(a)&&!ii(i)&&!Al(a)&&!Al(i)&&!Qn(a)&&!Qn(i)?rt(i,a,e):(e||!(n in r))&&(r[n]=tt(t[n]))}return r}function N_(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=rt(e,r[n],t);return e}function N(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Gf&&(r[e]=t[e]);return r}function it(r,t,e){for(var n=gt(t),i=0,a=n.length;i<a;i++){var o=n[i];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var B_=sr.createCanvas;function ut(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Vf(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function Se(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else it(r,t,e)}function $t(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===R_)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function W(r,t,e){if(!r)return[];if(!t)return xs(r);if(r.map&&r.map===O_)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Xe(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function xt(r,t,e){if(!r)return[];if(!t)return xs(r);if(r.filter&&r.filter===E_)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function F_(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function gt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function z_(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(zf.call(arguments)))}}var ct=za&&Z(za.bind)?za.call.bind(za.bind):z_;function mt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(zf.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):ui.call(r)==="[object Array]"}function Z(r){return typeof r=="function"}function H(r){return typeof r=="string"}function Go(r){return ui.call(r)==="[object String]"}function ft(r){return typeof r=="number"}function U(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Al(r){return!!qp[ui.call(r)]}function qt(r){return!!Zp[ui.call(r)]}function ii(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Ca(r){return r.colorStops!=null}function Kp(r){return r.image!=null}function G_(r){return ui.call(r)==="[object RegExp]"}function sa(r){return r!==r}function ai(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function K(r,t){return r??t}function jn(r,t,e){return r??t??e}function xs(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return zf.apply(r,t)}function Wf(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Oe(r,t){if(!r)throw new Error(t)}function Le(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var jp="__ec_primitive__";function ua(r){r[jp]=!0}function Qn(r){return r[jp]}var H_=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return gt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r})(),Qp=typeof Map=="function";function V_(){return Qp?new Map:new H_}var Jp=(function(){function r(t){var e=F(t);this.data=V_();var n=this;t instanceof r?t.each(i):t&&A(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return Qp?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function j(r){return new Jp(r)}function tg(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function Da(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&N(e,t),e}function Uf(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ur(r,t){return r.hasOwnProperty(t)}function Ut(){}var Ki=180/Math.PI;const wI=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Jp,RADIAN_TO_DEGREE:Ki,assert:Oe,bind:ct,clone:tt,concatArray:tg,createCanvas:B_,createHashMap:j,createObject:Da,curry:mt,defaults:it,disableUserSelect:Uf,each:A,eqNaN:sa,extend:N,filter:xt,find:F_,guid:Hf,hasOwn:ur,indexOf:ut,inherits:Vf,isArray:F,isArrayLike:$t,isBuiltInObject:Al,isDom:ii,isFunction:Z,isGradientObject:Ca,isImagePatternObject:Kp,isNumber:ft,isObject:U,isPrimitive:Qn,isRegExp:G_,isString:H,isStringSafe:Go,isTypedArray:qt,keys:gt,logError:ws,map:W,merge:rt,mergeAll:N_,mixin:Se,noop:Ut,normalizeCssArray:Wf,reduce:Xe,retrieve:ai,retrieve2:K,retrieve3:jn,setAsPrimitive:ua,slice:xs,trim:Le},Symbol.toStringTag,{value:"Module"}));var Ll=function(r,t){return Ll=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Ll(r,t)};function dt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ll(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function An(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function W_(r,t){return r[0]=t[0],r[1]=t[1],r}function eg(r){return[r[0],r[1]]}function U_(r,t,e){return r[0]=t,r[1]=e,r}function Il(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Y_(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function rg(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Yf(r){return Math.sqrt(Xf(r))}var X_=Yf;function Xf(r){return r[0]*r[0]+r[1]*r[1]}var $_=Xf;function q_(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function Z_(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function K_(r,t){return r[0]*t[0]+r[1]*t[1]}function Co(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function ng(r,t){var e=Yf(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Ho(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Vo=Ho;function ig(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var mn=ig;function j_(r,t){return r[0]=-t[0],r[1]=-t[1],r}function Do(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Yt(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function Mr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ar(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const xI=Object.freeze(Object.defineProperty({__proto__:null,add:Il,applyTransform:Yt,clone:eg,copy:W_,create:An,dist:Vo,distSquare:mn,distance:Ho,distanceSquare:ig,div:Z_,dot:K_,len:Yf,lenSquare:Xf,length:X_,lengthSquare:$_,lerp:Do,max:Ar,min:Mr,mul:q_,negate:j_,normalize:ng,scale:Co,scaleAndAdd:Y_,set:U_,sub:rg},Symbol.toStringTag,{value:"Module"}));var Pn=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),Q_=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Pn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Pn(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Pn(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Pn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Pn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Pn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),$e=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),J_=Math.log(2);function Pl(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/J_);return r[e][u]}for(var l=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*r[e][c]*Pl(r,t-1,f,l,i|d,a),v++)}return a[o]=h,h}function rv(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=Pl(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Pl(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var nv="___zrEVENTSAVED",nu=[];function t1(r,t,e,n,i){return Rl(nu,t,n,i,!0)&&Rl(r,e,nu[0],nu[1])}function Rl(r,t,e,n,i){if(t.getBoundingClientRect&&q.domSupported&&!ag(t)){var a=t[nv]||(t[nv]={}),o=e1(t,a),s=r1(o,a,i);if(s)return s(r,e,n),!0}return!1}function e1(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function r1(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?rv(s,o):rv(o,s))}function ag(r){return r.nodeName.toUpperCase()==="CANVAS"}var n1=/([&<>"'])/g,i1={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vt(r){return r==null?"":(r+"").replace(n1,function(t,e){return i1[e]})}var a1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,iu=[],o1=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function El(r,t,e,n){return e=e||{},n?iv(r,t,e):o1&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):iv(r,t,e),e}function iv(r,t,e){if(q.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(ag(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Rl(iu,r,n,i)){e.zrX=iu[0],e.zrY=iu[1];return}}e.zrX=e.zrY=0}function $f(r){return r||window.event}function ce(r,t,e){if(t=$f(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&El(r,o,t,e)}else{El(r,t,t,e);var a=s1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&a1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function s1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function u1(r,t,e,n){r.addEventListener(t,e,n)}function l1(r,t,e,n){r.removeEventListener(t,e,n)}var og=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function TI(r){return r.which===2||r.which===3}var f1=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=El(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in au)if(au.hasOwnProperty(e)){var n=au[e](this._track,t);if(n)return n}},r})();function av(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function h1(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var au={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=av(n)/av(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=h1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Er(){return[1,0,0,1,0,0]}function Ma(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function qf(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Or(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function Wo(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Ts(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-n[0])+f*(l-n[1])+n[0],r[5]=h*(l-n[1])-f*(o-n[0])+n[1],r}function sg(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function li(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*n;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-n*u,r[3]=e*u,r[4]=(n*s-o*i)*u,r[5]=(a*i-e*s)*u,r):null}function v1(r){var t=Er();return qf(t,r),t}const CI=Object.freeze(Object.defineProperty({__proto__:null,clone:v1,copy:qf,create:Er,identity:Ma,invert:li,mul:Or,rotate:Ts,scale:sg,translate:Wo},Symbol.toStringTag,{value:"Module"}));var $=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r})(),Ga=Math.min,Ha=Math.max,Wr=new $,Ur=new $,Yr=new $,Xr=new $,mi=new $,_i=new $,nt=(function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Ga(t.x,this.x),n=Ga(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ha(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ha(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Er();return Wo(a,a,[-e.x,-e.y]),sg(a,a,[n,i]),Wo(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<u||l<i||s<f||h<o);if(e){var v=1/0,d=0,g=Math.abs(a-u),p=Math.abs(l-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(g,p),S=Math.min(y,m);a<u||l<i?_>d&&(d=_,g<p?$.set(_i,-g,0):$.set(_i,p,0)):_<v&&(v=_,g<p?$.set(mi,g,0):$.set(mi,-p,0)),s<f||h<o?S>d&&(d=S,y<m?$.set(_i,0,-y):$.set(_i,0,m)):_<v&&(v=_,y<m?$.set(mi,0,y):$.set(mi,0,-m))}return e&&$.copy(e,c?mi:_i),c},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Wr.x=Yr.x=e.x,Wr.y=Xr.y=e.y,Ur.x=Xr.x=e.x+e.width,Ur.y=Yr.y=e.y+e.height,Wr.transform(n),Xr.transform(n),Ur.transform(n),Yr.transform(n),t.x=Ga(Wr.x,Ur.x,Yr.x,Xr.x),t.y=Ga(Wr.y,Ur.y,Yr.y,Xr.y);var u=Ha(Wr.x,Ur.x,Yr.x,Xr.x),l=Ha(Wr.y,Ur.y,Yr.y,Xr.y);t.width=u-t.x,t.height=l-t.y},r})(),ug="silent";function c1(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:d1}}function d1(){og(this.event)}var p1=(function(r){dt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})($e),Si=(function(){function r(t,e){this.x=t,this.y=e}return r})(),g1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ou=new nt(0,0,0,0),lg=(function(r){dt(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Si(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new p1,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Q_(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(g1,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=fg(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Si(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Si(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=c1(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Si(e,n);if(ov(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new nt(e-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(ou.copy(c.getBoundingRect()),c.transform&&ou.applyTransform(c.transform),ou.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<l;p+=v)for(var y=0;y<g;y+=d){var m=e+p*Math.cos(y),_=n+p*Math.sin(y);if(ov(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new f1);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Si;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})($e);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){lg.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=fg(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Vo(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function y1(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?ug:!0}return!1}function ov(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=y1(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==ug)){t.target=o;break}}}function fg(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var hg=32,bi=7;function m1(r){for(var t=0;r>=hg;)t|=r&1,r>>=1;return r+t}function sv(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;_1(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function _1(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function uv(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function su(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u<s&&a(r,t[e+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(r,t[e+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function uu(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;u<s&&a(r,t[e+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(r,t[e+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function S1(r,t){var e=bi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],y=i[v+1];i[v]=g+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=uu(r[p],r,d,g,0,t);d+=m,g-=m,g!==0&&(y=su(r[d+g-1],r,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):c(d,g,p,y)))}function h(v,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=g,S=v;if(r[S++]=r[_++],--p===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m];return}for(var w=e,b,x,T;;){b=0,x=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],x++,b=0,--p===0){T=!0;break}}else if(r[S++]=o[m++],b++,x=0,--d===1){T=!0;break}while((b|x)<w);if(T)break;do{if(b=uu(r[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--p===0){T=!0;break}if(x=su(o[m],r,_,p,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=r[_+y];if(S+=x,_+=x,p-=x,p===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}w--}while(b>=bi||x>=bi);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(v,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=r[g+y];var m=v+d-1,_=p-1,S=g+p-1,w=0,b=0;if(r[S--]=r[m--],--d===0){for(w=S-(p-1),y=0;y<p;y++)r[w+y]=o[y];return}if(p===1){for(S-=d,m-=d,b=S+1,w=m+1,y=d-1;y>=0;y--)r[b+y]=r[w+y];r[S]=o[_];return}for(var x=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--p===1){M=!0;break}while((T|C)<x);if(M)break;do{if(T=d-uu(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,b=S+1,w=m+1,y=T-1;y>=0;y--)r[b+y]=r[w+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--p===1){M=!0;break}if(C=p-su(r[m],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,b=S+1,w=_+1,y=0;y<C;y++)r[b+y]=o[w+y];if(p<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}x--}while(T>=bi||C>=bi);if(M)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,m-=d,b=S+1,w=m+1,y=d-1;y>=0;y--)r[b+y]=r[w+y];r[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),y=0;y<p;y++)r[w+y]=o[y]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Mo(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<hg){a=sv(r,e,n,t),uv(r,e,n,e+a,t);return}var o=S1(r,t),s=m1(i);do{if(a=sv(r,e,n,t),a<s){var u=i;u>s&&(u=s),uv(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var oe=1,Vi=2,$n=4,lv=!1;function lu(){lv||(lv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function fv(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var b1=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=fv}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Mo(n,fv)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=oe),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(lu(),f.z=0),isNaN(f.z2)&&(lu(),f.z2=0),isNaN(f.zlevel)&&(lu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=ut(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Uo;Uo=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var ji={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-ji.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?ji.bounceIn(r*2)*.5:ji.bounceOut(r*2-1)*.5+.5}},Va=Math.pow,kr=Math.sqrt,Yo=1e-8,vg=1e-4,hv=kr(3),Wa=1/3,He=An(),ge=An(),Jn=An();function Lr(r){return r>-Yo&&r<Yo}function cg(r){return r>Yo||r<-Yo}function Dt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function vv(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Xo(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Lr(f)&&Lr(h))if(Lr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Lr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=kr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Va(-_,Wa):_=Va(_,Wa),S<0?S=-Va(-S,Wa):S=Va(S,Wa);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*kr(f*f*f)),b=Math.acos(w)/3,x=kr(f),T=Math.cos(b),d=(-s-2*x*T)/(3*o),y=(-s+x*(T+hv*Math.sin(b)))/(3*o),C=(-s+x*(T-hv*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function dg(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(Lr(o)){if(cg(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Lr(f))i[0]=-a/(2*o);else if(f>0){var h=kr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function $o(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function pg(r,t,e,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;He[0]=u,He[1]=l;for(var m=0;m<1;m+=.05)ge[0]=Dt(r,e,i,o,m),ge[1]=Dt(t,n,a,s,m),p=mn(He,ge),p<v&&(h=m,v=p);v=1/0;for(var _=0;_<32&&!(c<vg);_++)d=h-c,g=h+c,ge[0]=Dt(r,e,i,o,d),ge[1]=Dt(t,n,a,s,d),p=mn(ge,He),d>=0&&p<v?(h=d,v=p):(Jn[0]=Dt(r,e,i,o,g),Jn[1]=Dt(t,n,a,s,g),y=mn(Jn,He),g<=1&&y<v?(h=g,v=y):c*=.5);return f&&(f[0]=Dt(r,e,i,o,h),f[1]=Dt(t,n,a,s,h)),kr(v)}function w1(r,t,e,n,i,a,o,s,u){for(var l=r,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,g=Dt(r,e,i,o,d),p=Dt(t,n,a,s,d),y=g-l,m=p-f;h+=Math.sqrt(y*y+m*m),l=g,f=p}return h}function Bt(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function cv(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function x1(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,u=0;if(Lr(a)){if(cg(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Lr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=kr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function gg(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function qo(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function yg(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;He[0]=o,He[1]=s;for(var c=0;c<1;c+=.05){ge[0]=Bt(r,e,i,c),ge[1]=Bt(t,n,a,c);var v=mn(He,ge);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<vg);d++){var g=l-f,p=l+f;ge[0]=Bt(r,e,i,g),ge[1]=Bt(t,n,a,g);var v=mn(ge,He);if(g>=0&&v<h)l=g,h=v;else{Jn[0]=Bt(r,e,i,p),Jn[1]=Bt(t,n,a,p);var y=mn(Jn,He);p<=1&&y<h?(l=p,h=y):f*=.5}}return u&&(u[0]=Bt(r,e,i,l),u[1]=Bt(t,n,a,l)),kr(h)}function T1(r,t,e,n,i,a,o){for(var s=r,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Bt(r,e,i,c),d=Bt(t,n,a,c),g=v-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=v,u=d}return l}var C1=/cubic-bezier\(([0-9,\.e ]+)\)/;function mg(r){var t=r&&C1.exec(r);if(t){var e=t[1].split(","),n=+Le(e[0]),i=+Le(e[1]),a=+Le(e[2]),o=+Le(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Xo(0,n,a,1,u,s)&&Dt(0,i,o,1,s[0])}}}var D1=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ut,this.ondestroy=t.ondestroy||Ut,this.onrestart=t.onrestart||Ut,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:ji[t]||mg(t)},r})(),_g=(function(){function r(t){this.value=t}return r})(),M1=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new _g(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Aa=(function(){function r(t){this._list=new M1,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new _g(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),dv={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 Re(r){return r=Math.round(r),r<0?0:r>255?255:r}function A1(r){return r=Math.round(r),r<0?0:r>360?360:r}function la(r){return r<0?0:r>1?1:r}function fu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Re(parseFloat(t)/100*255):Re(parseInt(t,10))}function _n(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?la(parseFloat(t)/100):la(parseFloat(t))}function hu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ir(r,t,e){return r+(t-r)*e}function ve(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Ol(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Sg=new Aa(20),Ua=null;function Rn(r,t){Ua&&Ol(Ua,t),Ua=Sg.put(r,Ua||t.slice())}function ee(r,t){if(r){t=t||[];var e=Sg.get(r);if(e)return Ol(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in dv)return Ol(t,dv[n]),Rn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ve(t,0,0,0,1);return}return ve(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Rn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ve(t,0,0,0,1);return}return ve(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Rn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?ve(t,+l[0],+l[1],+l[2],1):ve(t,0,0,0,1);f=_n(l.pop());case"rgb":if(l.length>=3)return ve(t,fu(l[0]),fu(l[1]),fu(l[2]),l.length===3?f:_n(l[3])),Rn(r,t),t;ve(t,0,0,0,1);return;case"hsla":if(l.length!==4){ve(t,0,0,0,1);return}return l[3]=_n(l[3]),kl(l,t),Rn(r,t),t;case"hsl":if(l.length!==3){ve(t,0,0,0,1);return}return kl(l,t),Rn(r,t),t;default:return}}ve(t,0,0,0,1)}}function kl(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=_n(r[1]),i=_n(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ve(t,Re(hu(o,a,e+1/3)*255),Re(hu(o,a,e)*255),Re(hu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function L1(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?u=c-h:e===a?u=1/3+f-c:n===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return r[3]!=null&&v.push(r[3]),v}}function Nl(r,t){var e=ee(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Vr(e,e.length===4?"rgba":"rgb")}}function I1(r){var t=ee(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function bg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],u=n-i;return e[0]=Re(Ir(o[0],s[0],u)),e[1]=Re(Ir(o[1],s[1],u)),e[2]=Re(Ir(o[2],s[2],u)),e[3]=la(Ir(o[3],s[3],u)),e}}var P1=bg;function Zf(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=ee(t[i]),s=ee(t[a]),u=n-i,l=Vr([Re(Ir(o[0],s[0],u)),Re(Ir(o[1],s[1],u)),Re(Ir(o[2],s[2],u)),la(Ir(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var R1=Zf;function E1(r,t,e,n){var i=ee(r);if(r)return i=L1(i),t!=null&&(i[0]=A1(t)),e!=null&&(i[1]=_n(e)),n!=null&&(i[2]=_n(n)),Vr(kl(i),"rgba")}function O1(r,t){var e=ee(r);if(e&&t!=null)return e[3]=la(t),Vr(e,"rgba")}function Vr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function fa(r,t){var e=ee(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function k1(){return Vr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var pv=new Aa(100);function Bl(r){if(H(r)){var t=pv.get(r);return t||(t=Nl(r,-.1),pv.put(r,t)),t}else if(Ca(r)){var e=N({},r);return e.colorStops=W(r.colorStops,function(n){return{offset:n.offset,color:Nl(n.color,-.1)}}),e}return r}const DI=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:bg,fastMapToColor:P1,lerp:Zf,lift:Nl,liftColor:Bl,lum:fa,mapToColor:R1,modifyAlpha:O1,modifyHSL:E1,parse:ee,random:k1,stringify:Vr,toHex:I1},Symbol.toStringTag,{value:"Module"}));var Zo=Math.round;function MI(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=ee(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var gv=1e-4;function AI(r){return r<gv&&r>-gv}function Ya(r){return Zo(r*1e3)/1e3}function yv(r){return Zo(r*1e4)/1e4}function LI(r){return"matrix("+Ya(r[0])+","+Ya(r[1])+","+Ya(r[2])+","+Ya(r[3])+","+yv(r[4])+","+yv(r[5])+")"}var II={left:"start",right:"end",center:"middle",middle:"middle"};function PI(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function RI(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function EI(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function N1(r){return r&&!!r.image}function B1(r){return r&&!!r.svgElement}function OI(r){return N1(r)||B1(r)}function F1(r){return r.type==="linear"}function z1(r){return r.type==="radial"}function kI(r){return r&&(r.type==="linear"||r.type==="radial")}function NI(r){return"url(#"+r+")"}function BI(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function FI(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Ki,i=K(r.scaleX,1),a=K(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,u=[];return(t||e)&&u.push("translate("+t+"px,"+e+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+Zo(o*Ki)+"deg, "+Zo(s*Ki)+"deg)"),u.join(" ")}var zI=(function(){return q.hasGlobalWindow&&Z(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),Fl=Array.prototype.slice;function rr(r,t,e){return(t-r)*e+r}function vu(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=rr(t[a],e[a],n);return r}function G1(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=rr(t[o][s],e[o][s],n)}return r}function Xa(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function mv(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function H1(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function V1(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(e===1?i[u]:Fl.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(e===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function Ao(r){if($t(r)){var t=r.length;if($t(r[0])){for(var e=[],n=0;n<t;n++)e.push(Fl.call(r[n]));return e}return Fl.call(r)}return r}function Lo(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function W1(r){return $t(r&&r[0])?2:1}var $a=0,Io=1,wg=2,Wi=3,zl=4,Gl=5,_v=6;function Sv(r){return r===zl||r===Gl}function qa(r){return r===Io||r===wg}var wi=[0,0,0,0],U1=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_v,u=e;if($t(e)){var l=W1(e);s=l,(l===1&&!ft(e[0])||l===2&&!ft(e[0][0]))&&(o=!0)}else if(ft(e)&&!sa(e))s=$a;else if(H(e))if(!isNaN(+e))s=$a;else{var f=ee(e);f&&(u=f,s=Wi)}else if(Ca(e)){var h=N({},u);h.colorStops=W(e.colorStops,function(v){return{offset:v.offset,color:ee(v.color)}}),F1(e)?s=zl:z1(e)&&(s=Gl),u=h}a===0?this.valType=s:(s!==this.valType||s===_v)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=Z(n)?n:ji[n]||mg(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=qa(i),l=Sv(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?V1(c,v,i):l&&H1(c.colorStops,v.colorStops))}if(!s&&i!==Gl&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===$a?n[f].additiveValue=n[f].value-d:i===Wi?n[f].additiveValue=Xa([],n[f].value,d,-1):qa(i)&&(n[f].additiveValue=i===Io?Xa([],n[f].value,d,-1):mv([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Wi,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?wi:t[u];if((qa(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(qa(a))a===Io?vu(m,v[i],d[i],y):G1(m,v[i],d[i],y);else if(Sv(a)){var _=v[i],S=d[i],w=a===zl;t[u]={type:w?"linear":"radial",x:rr(_.x,S.x,y),y:rr(_.y,S.y,y),colorStops:W(_.colorStops,function(x,T){var C=S.colorStops[T];return{offset:rr(x.offset,C.offset,y),color:Lo(vu([],x.color,C.color,y))}}),global:S.global},w?(t[u].x2=rr(_.x2,S.x2,y),t[u].y2=rr(_.y2,S.y2,y)):t[u].r=rr(_.r,S.r,y)}else if(l)vu(m,v[i],d[i],y),n||(t[u]=Lo(m));else{var b=rr(v[i],d[i],y);n?this._additiveValue=b:t[u]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===$a?t[n]=t[n]+i:e===Wi?(ee(t[n],wi),Xa(wi,wi,i,1),t[n]=Lo(wi)):e===Io?Xa(t[n],t[n],i,1):e===wg&&mv(t[n],t[n],i,1)},r})(),Kf=(function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){ws("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,gt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new U1(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Wi&&l&&(l=Lo(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Ao(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Ao(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new D1({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(e._target,v);var y=e._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[p](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return W(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=Ao(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||gt(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function Zn(){return new Date().getTime()}var Y1=(function(r){dt(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.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 n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Zn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Uo(n),!e._paused&&e.update())}Uo(n)},t.prototype.start=function(){this._running||(this._time=Zn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Zn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Zn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Kf(e,n.loop);return this.addAnimator(i),i},t})($e),X1=300,cu=q.domSupported,du=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=W(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}})(),bv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wv=!1;function Hl(r){var t=r.pointerType;return t==="pen"||t==="touch"}function $1(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function pu(r){r&&(r.zrByTouch=!0)}function q1(r,t){return ce(r.dom,new Z1(r,t),!0)}function xg(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Z1=(function(){function r(t,e){this.stopPropagation=Ut,this.stopImmediatePropagation=Ut,this.preventDefault=Ut,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),De={mousedown:function(r){r=ce(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ce(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ce(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ce(this.dom,r);var t=r.toElement||r.relatedTarget;xg(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){wv=!0,r=ce(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){wv||(r=ce(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ce(this.dom,r),pu(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),De.mousemove.call(this,r),De.mousedown.call(this,r)},touchmove:function(r){r=ce(this.dom,r),pu(r),this.handler.processGesture(r,"change"),De.mousemove.call(this,r)},touchend:function(r){r=ce(this.dom,r),pu(r),this.handler.processGesture(r,"end"),De.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<X1&&De.click.call(this,r)},pointerdown:function(r){De.mousedown.call(this,r)},pointermove:function(r){Hl(r)||De.mousemove.call(this,r)},pointerup:function(r){De.mouseup.call(this,r)},pointerout:function(r){Hl(r)||De.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){De[r]=function(t){t=ce(this.dom,t),this.trigger(r,t)}});var Vl={pointermove:function(r){Hl(r)||Vl.mousemove.call(this,r)},pointerup:function(r){Vl.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function K1(r,t){var e=t.domHandlers;q.pointerEventsSupported?A(du.pointer,function(n){Po(t,n,function(i){e[n].call(r,i)})}):(q.touchEventsSupported&&A(du.touch,function(n){Po(t,n,function(i){e[n].call(r,i),$1(t)})}),A(du.mouse,function(n){Po(t,n,function(i){i=$f(i),t.touching||e[n].call(r,i)})}))}function j1(r,t){q.pointerEventsSupported?A(bv.pointer,e):q.touchEventsSupported||A(bv.mouse,e);function e(n){function i(a){a=$f(a),xg(r,a.target)||(a=q1(r,a),t.domHandlers[n].call(r,a))}Po(t,n,i,{capture:!0})}}function Po(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,u1(r.domTarget,t,e,n)}function gu(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&l1(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var xv=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),Q1=(function(r){dt(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new xv(e,De),cu&&(i._globalHandlerScope=new xv(document,Vl)),K1(i,i._localHandlerScope),i}return t.prototype.dispose=function(){gu(this._localHandlerScope),cu&&gu(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,cu&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?j1(this,n):gu(n)}},t})($e),Tg=1;q.hasGlobalWindow&&(Tg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ko=Tg,Wl=.4,Ul="#333",Yl="#ccc",J1="#eee",Tv=Ma,Cv=5e-5;function $r(r){return r>Cv||r<-Cv}var qr=[],En=[],yu=Er(),mu=Math.abs,jf=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return $r(this.rotation)||$r(this.x)||$r(this.y)||$r(this.scaleX-1)||$r(this.scaleY-1)||$r(this.skewX)||$r(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Tv(n),this.invTransform=null);return}n=n||Er(),e?this.getLocalTransform(n):Tv(n),t&&(e?Or(n,t,n):qf(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(qr);var n=qr[0]<0?-1:1,i=qr[1]<0?-1:1,a=((qr[0]-n)*e+n)/qr[0]||0,o=((qr[1]-i)*e+i)/qr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Er(),li(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Er(),Or(En,t.invTransform,e),e=En);var n=this.originX,i=this.originY;(n||i)&&(yu[4]=n,yu[5]=i,Or(En,e,yu),En[4]-=n,En[5]-=i,e=En),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Yt(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Yt(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&mu(t[0]-1)>1e-10&&mu(t[3]-1)>1e-10?Math.sqrt(mu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){tS(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&Ts(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),ha=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tS(r,t){for(var e=0;e<ha.length;e++){var n=ha[e];r[n]=t[n]}}var Dv={};function se(r,t){t=t||Tn;var e=Dv[t];e||(e=Dv[t]=new Aa(500));var n=e.get(r);return n==null&&(n=sr.measureText(r,t).width,e.put(r,n)),n}function Mv(r,t,e,n){var i=se(r,t),a=Jf(t),o=Ui(0,i,e),s=qn(0,a,n),u=new nt(o,s,i,a);return u}function Qf(r,t,e,n){var i=((r||"")+"").split(`
|
|
2
2
|
`),a=i.length;if(a===1)return Mv(i[0],t,e,n);for(var o=new nt(0,0,0,0),s=0;s<i.length;s++){var u=Mv(i[s],t,e,n);s===0?o.copy(u):o.union(u)}return o}function Ui(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function qn(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Jf(r){return se("国",r)}function Fr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function jo(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(n instanceof Array)u+=Fr(n[0],e.width),l+=Fr(n[1],e.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var _u="__zr_normal__",Su=ha.concat(["ignore"]),eS=Xe(ha,function(r,t){return r[t]=!0,r},{ignore:!1}),On={},rS=new nt(0,0,0,0),Cs=(function(){function r(t){this.id=Hf(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(e),n.position!=null){var f=rS;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(On,n,f):jo(On,n,f),a.x=On.x,a.y=On.y,o=On.align,s=On.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Fr(h[0],f.width),v=Fr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=oe,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Yl:Ul},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&ee(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Vr(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},N(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(U(t))for(var n=t,i=gt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==_u)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Su)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(_u,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===_u,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(ut(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){ws("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oe),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oe)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=ut(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=ut(i,t),o=ut(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];N(e,a),a.textConfig&&(n=n||{},N(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=N({},i?this.textConfig:n.textConfig),N(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Su.length;f++){var h=Su[f],c=a&&eS[h];e&&e[h]!=null?c?(l=!0,u[h]=e[h]):this[h]=e[h]:s&&n[h]!=null&&(c?(l=!0,u[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,u,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new jf,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),N(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=oe;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new Kf(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=ut(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){bu(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){bu(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=bu(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=oe;function e(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var u=this[i]=[];s(this,u)}return this[i]},set:function(u){this[a]=u[0],this[o]=u[1],this[i]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();Se(Cs,$e);Se(Cs,jf);function bu(r,t,e,n,i){e=e||{};var a=[];Cg(r,"",r,t,e,n,a,i);var o=a.length,s=!1,u=e.done,l=e.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function wu(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function nS(r){return $t(r[0])}function iS(r,t,e){if($t(t[e]))if($t(r[e])||(r[e]=[]),qt(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),wu(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(nS(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?wu(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else wu(a,i,o);a.length=i.length}else r[e]=t[e]}function aS(r,t){return r===t||$t(r)&&$t(t)&&oS(r,t)}function oS(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function Cg(r,t,e,n,i,a,o,s){for(var u=gt(n),l=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!U(a),d=r.animators,g=[],p=0;p<u.length;p++){var y=u[p],m=n[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(U(m)&&!$t(m)&&!Ca(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}Cg(r,y,e[y],m,i,a&&a[y],o,s)}else g.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var b=w.stopTracks(g);if(b){var x=ut(d,w);d.splice(x,1)}}}if(i.force||(g=xt(g,function(D){return!aS(n[D],e[D])}),_=g.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];C[y]=e[y],c?T[y]=n[y]:e[y]=n[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=g[S];M[y]=Ao(e[y]),iS(e,n,y)}}var w=new Kf(e,!1,!1,h?xt(d,function(L){return L.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),c&&T&&w.whenWithKeys(0,T,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(l??500,s?C:n,g).delay(f||0),r.addAnimator(w,t),o.push(w)}}var Mt=(function(r){dt(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),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 n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},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,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=ut(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=ut(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new nt(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(nt.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t})(Cs);Mt.prototype.type="group";var Ro={},cn={};function sS(r){delete cn[r]}function uS(r){if(!r)return!1;if(typeof r=="string")return fa(r,1)<Wl;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=fa(t[i].color,1);return e/=n,e<Wl}return!1}var lS=(function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new b1,o=n.renderer||"canvas";Ro[o]||(o=gt(Ro)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Ro[o](e,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!q.node&&!q.worker&&!u?new Q1(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?q.touchEventsSupported:!!f,c=44,v;h&&(v=K(n.pointerSize,c)),this.handler=new lg(a,s,l,s.root,v),this.animation=new Y1({stage:{update:u?null:function(){return i._flush(!0)}}}),u||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=uS(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=Zn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Zn();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Mt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,sS(this.id))},r})();function Xl(r,t){var e=new lS(Hf(),r,t);return cn[e.id]=e,e}function fS(r){r.dispose()}function hS(){for(var r in cn)cn.hasOwnProperty(r)&&cn[r].dispose();cn={}}function vS(r){return cn[r]}function Dg(r,t){Ro[r]=t}var $l;function cS(r){if(typeof $l=="function")return $l(r)}function Mg(r){$l=r}var dS="5.6.1";const GI=Object.freeze(Object.defineProperty({__proto__:null,dispose:fS,disposeAll:hS,getElementSSRData:cS,getInstance:vS,init:Xl,registerPainter:Dg,registerSSRDataGetter:Mg,version:dS},Symbol.toStringTag,{value:"Module"}));var Av=1e-4,Ag=20;function pS(r){return r.replace(/^\s+|\s+$/g,"")}function Qo(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/u*l+o}function vt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?pS(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Tt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Ag),r=(+r).toFixed(t),e?r:+r}function gS(r){return r.sort(function(t,e){return t-e}),r}function We(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Lg(r)}function Lg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Ig(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function yS(r,t,e){if(!r[t])return 0;var n=Pg(r,e);return n[t]||0}function Pg(r,t){var e=Xe(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=W(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=W(i,function(v){return Math.floor(v)}),s=Xe(o,function(v,d){return v+d},0),u=W(i,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return W(o,function(v){return v/n})}function mS(r,t){var e=Math.max(We(r),We(t)),n=r+t;return e>Ag?n:Tt(n,e)}var _S=9007199254740991;function th(r){var t=Math.PI*2;return(r%t+t)%t}function va(r){return r>-Av&&r<Av}var SS=/^(?:(\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 me(r){if(r instanceof Date)return r;if(H(r)){var t=SS.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Rg(r){return Math.pow(10,Ds(r))}function Ds(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function eh(r,t){var e=Ds(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function bS(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function wS(r){r.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function lr(r){var t=parseFloat(r);return t==r&&(t!==0||!H(r)||r.indexOf("x")<=0)?t:NaN}function Eg(r){return!isNaN(lr(r))}function Og(){return Math.round(Math.random()*9)}function kg(r,t){return t===0?r:kg(t,r%t)}function Lv(r,t){return r==null?t:t==null?r:r*t/kg(r,t)}function Wt(r){throw new Error(r)}function Iv(r,t,e){return(t-r)*e+r}var Ng="series\0",Bg="\0_ec_\0";function Rt(r){return r instanceof Array?r:r==null?[]:[r]}function ql(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Pv=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function La(r){return U(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function xS(r){return U(r)&&!(r instanceof Array)}function TS(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=j();A(t,function(u,l){if(!U(u)){t[l]=null;return}});var s=CS(r,o,e);return(n||i)&&DS(s,r,o,t),n&&MS(s,t),n||i?AS(s,t,i):a&&LS(s,t),IS(s),s}function CS(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||ca(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function DS(r,t,e,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=Qi(i.id),s=e.get(o);if(s!=null){var u=r[s];Oe(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function MS(r,t){A(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!ca(e)&&!ca(a)&&Fg("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function AS(r,t,e){A(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||ca(i.existing)||i.existing&&n.id!=null&&!Fg("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function LS(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function IS(r){var t=j();A(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),A(r,function(e){var n=e.newOption;Oe(!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={})}),A(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(U(a)){if(o.name=a.name!=null?Qi(a.name):i?i.name:Ng+n,i)o.id=Qi(i.id);else if(a.id!=null)o.id=Qi(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Fg(r,t,e){var n=Ee(t[r],null),i=Ee(e[r],null);return n!=null&&i!=null&&n===i}function Qi(r){return Ee(r,"")}function Ee(r,t){return r==null?t:H(r)?r:ft(r)||Go(r)?r+"":t}function rh(r){var t=r.name;return!!(t&&t.indexOf(Ng))}function ca(r){return r&&r.id!=null&&Qi(r.id).indexOf(Bg)===0}function HI(r){return Bg+r}function PS(r,t,e){A(r,function(n){var i=n.newOption;U(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=RS(t,i,n.existing,e))})}function RS(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function VI(r,t){var e={},n={};return i(r||[],e),i(t||[],n,e),[a(e),a(n)];function i(o,s,u){for(var l=0,f=o.length;l<f;l++){var h=Ee(o[l].seriesId,null);if(h==null)return;for(var c=Rt(o[l].dataIndex),v=u&&u[h],d=0,g=c.length;d<g;d++){var p=c[d];v&&v[p]?v[p]=null:(s[h]||(s[h]={}))[p]=1}}}function a(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=a(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function Cn(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?W(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?W(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function St(){var r="__ec_inner_"+ES++;return function(t){return t[r]||(t[r]={})}}var ES=Og();function xu(r,t,e){var n=nh(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=e?e.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var h=Ia(r,f,l,{useDefault:u===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function nh(r,t){var e;if(H(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=j(),a={},o=!1;return A(e,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ut(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ie={useDefault:!0,enableAll:!1,enableNone:!1},WI={useDefault:!1,enableAll:!0,enableNone:!0};function Ia(r,t,e,n){n=n||Ie;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=r.getComponent(t))?[u]:[],s}return i==="none"||i===!1?(Oe(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Oe(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function zg(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function OS(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function kS(r){return r==="auto"?q.domSupported?"html":"richText":r||"html"}function UI(r,t){var e=j(),n=[];return A(r,function(i){var a=t(i);(e.get(a)||(n.push(a),e.set(a,[]))).push(i)}),{keys:n,buckets:e}}function Gg(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(ft(n)){var o=Iv(e||0,n,i);return Tt(o,a?Math.max(We(e||0),We(n)):t)}else{if(H(n))return i<1?e:n;for(var s=[],u=e,l=n,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=Iv(v,d,i);s[h]=Tt(o,a?Math.max(We(v),We(d)):t)}}return s}}var NS=".",Zr="___EC__COMPONENT__CONTAINER___",Hg="___EC__EXTENDED_CLASS___";function Ue(r){var t={main:"",sub:""};if(r){var e=r.split(NS);t.main=e[0]||"",t.sub=e[1]||""}return t}function BS(r){Oe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function FS(r){return!!(r&&r[Hg])}function ih(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return zS(n)?i=(function(a){Y(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(e.$constructor||n).apply(this,arguments)},Vf(i,this)),N(i.prototype,e),i[Hg]=!0,i.extend=this.extend,i.superCall=VS,i.superApply=WS,i.superClass=n,i}}function zS(r){return Z(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Vg(r,t){r.extend=t.extend}var GS=Math.round(Math.random()*10);function HS(r){var t=["__\0is_clz",GS++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function VS(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function WS(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Ms(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){BS(i),n.prototype.type=i;var a=Ue(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Zr){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[Zr]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=Ue(n),a=[],o=t[i.main];return o&&o[Zr]?A(o,function(s,u){u!==Zr&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=Ue(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return A(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=Ue(n),a=t[i.main];return a&&a[Zr]};function e(n){var i=t[n.main];return(!i||!i[Zr])&&(i=t[n.main]={},i[Zr]=!0),i}}function da(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var u=r[s][1];if(!(i&&ut(i,u)>=0||a&&ut(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var US=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],YS=da(US),XS=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return YS(this,t,e)},r})(),Zl=new Aa(50);function $S(r){if(typeof r=="string"){var t=Zl.get(r);return t&&t.image}else return r}function Wg(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Zl.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!As(t)&&a.pending.push(o)):(t=sr.loadImage(r,Rv,Rv),t.__zrImageSrc=r,Zl.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Rv(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function As(r){return r&&r.width&&r.height}var Tu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function qS(r,t,e,n,i){var a={};return Ug(a,r,t,e,n,i),a.text}function Ug(r,t,e,n,i,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
|
|
3
3
|
`);a=Yg(e,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Xg(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;r.text=o.join(`
|
|
4
4
|
`),r.isTruncated=s}function Yg(r,t,e,n){n=n||{};var i=N({},n);i.font=t,e=K(e,"..."),i.maxIterations=K(n.maxIterations,2);var a=i.minChar=K(n.minChar,0);i.cnCharWidth=se("国",t);var o=i.ascCharWidth=se("a",t);i.placeholder=K(n.placeholder,"");for(var s=r=Math.max(0,r-1),u=0;u<a&&s>=o;u++)s-=o;var l=se(e,t);return l>s&&(e="",l=0),s=r-l,i.ellipsis=e,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=r,i}function Xg(r,t,e){var n=e.containerWidth,i=e.font,a=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=se(t,i);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var u=s===0?ZS(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,u),o=se(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function ZS(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function KS(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=Jf(i),s=K(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=!1,h=t.width,c;h!=null&&(e==="break"||e==="breakAll")?c=r?$g(r,t.font,h,e==="breakAll",0).lines:[]:c=r?r.split(`
|
package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DFWJgtSE.js → cose-bilkent-JH36ORCC-C73aLaB-.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as l,l as y}from"./index-
|
|
1
|
+
import{_ as l,l as y}from"./index-Df2MkvAW.js";import{c as P}from"./cytoscape.esm-By_5ytxT.js";import{c as k}from"./cytoscape-cose-bilkent-CqJ2Zkz1.js";import{s as q}from"./index-CyZxCTSq.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";P.use(k);function D(t,o){t.forEach(e=>{const r={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(n=>{["id","label","height","width","padding","x","y"].includes(n)||(r[n]=e[n])}),o.add({group:"nodes",data:r,position:{x:e.x??0,y:e.y??0}})})}l(D,"addNodes");function I(t,o){t.forEach(e=>{const r={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(n=>{["id","start","end"].includes(n)||(r[n]=e[n])}),o.add({group:"edges",data:r})})}l(I,"addEdges");function $(t){return new Promise(o=>{const e=q("body").append("div").attr("id","cy").attr("style","display:none"),r=P({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});e.remove(),D(t.nodes,r),I(t.edges,r),r.nodes().forEach(function(a){a.layoutDimensions=()=>{const f=a.data();return{w:f.width,h:f.height}}});const n={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};r.layout(n).run(),r.ready(a=>{y.info("Cytoscape ready",a),o(r)})})}l($,"createCytoscapeInstance");function X(t){return t.nodes().map(o=>{const e=o.data(),r=o.position(),n={id:e.id,x:r.x,y:r.y};return Object.keys(e).forEach(a=>{a!=="id"&&(n[a]=e[a])}),n})}l(X,"extractPositionedNodes");function Y(t){return t.edges().map(o=>{const e=o.data(),r=o._private.rscratch,n={id:e.id,source:e.source,target:e.target,startX:r.startX,startY:r.startY,midX:r.midX,midY:r.midY,endX:r.endX,endY:r.endY};return Object.keys(e).forEach(a=>{["id","source","target"].includes(a)||(n[a]=e[a])}),n})}l(Y,"extractPositionedEdges");async function v(t,o){y.debug("Starting cose-bilkent layout algorithm");try{B(t);const e=await $(t),r=X(e),n=Y(e);return y.debug(`Layout completed: ${r.length} nodes, ${n.length} edges`),{nodes:r,edges:n}}catch(e){throw y.error("Error in cose-bilkent layout algorithm:",e),e}}l(v,"executeCoseBilkentLayout");function B(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}l(B,"validateLayoutData");var O=l(async(t,o,{insertCluster:e,insertEdge:r,insertEdgeLabel:n,insertMarkers:a,insertNode:f,log:c,positionEdgeLabel:x},{algorithm:j})=>{const u={},p={},m=o.select("g");a(m,t.markers,t.type,t.diagramId);const C=m.insert("g").attr("class","subgraphs"),E=m.insert("g").attr("class","edgePaths"),A=m.insert("g").attr("class","edgeLabels"),N=m.insert("g").attr("class","nodes");c.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async s=>{if(s.isGroup){const i={...s};p[s.id]=i,u[s.id]=i,await e(C,s)}else{const i={...s};u[s.id]=i;const d=await f(N,s,{config:t.config,dir:t.direction||"TB"}),g=d.node().getBBox();i.width=g.width,i.height=g.height,i.domId=d,c.debug(`Node ${s.id} dimensions: ${g.width}x${g.height}`)}})),c.debug("Running cose-bilkent layout algorithm");const _={...t,nodes:t.nodes.map(s=>{const i=u[s.id];return{...s,width:i.width,height:i.height}})},b=await v(_,t.config);c.debug("Positioning nodes based on layout results"),b.nodes.forEach(s=>{const i=u[s.id];i?.domId&&(i.domId.attr("transform",`translate(${s.x}, ${s.y})`),i.x=s.x,i.y=s.y,c.debug(`Positioned node ${i.id} at center (${s.x}, ${s.y})`))}),b.edges.forEach(s=>{const i=t.edges.find(d=>d.id===s.id);i&&(i.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}])}),c.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async s=>{await n(A,s);const i=u[s.start??""],d=u[s.end??""];if(i&&d){const g=b.edges.find(h=>h.id===s.id);if(g){c.debug("APA01 positionedEdge",g);const h={...s},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}else{const h={...s,points:[{x:i.x||0,y:i.y||0},{x:d.x||0,y:d.y||0}]},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}}})),c.debug("Cose-bilkent rendering completed")},"render"),U=O;export{U as render};
|
package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DGrxjlJ4.js → cose-bilkent-JH36ORCC-DCtKiRmD.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as l,l as y}from"./index-
|
|
1
|
+
import{_ as l,l as y}from"./index-DObGLuCI.js";import{c as P}from"./cytoscape.esm-By_5ytxT.js";import{c as k}from"./cytoscape-cose-bilkent-CqJ2Zkz1.js";import{s as q}from"./index-CyZxCTSq.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";P.use(k);function D(t,o){t.forEach(e=>{const r={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(n=>{["id","label","height","width","padding","x","y"].includes(n)||(r[n]=e[n])}),o.add({group:"nodes",data:r,position:{x:e.x??0,y:e.y??0}})})}l(D,"addNodes");function I(t,o){t.forEach(e=>{const r={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(n=>{["id","start","end"].includes(n)||(r[n]=e[n])}),o.add({group:"edges",data:r})})}l(I,"addEdges");function $(t){return new Promise(o=>{const e=q("body").append("div").attr("id","cy").attr("style","display:none"),r=P({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});e.remove(),D(t.nodes,r),I(t.edges,r),r.nodes().forEach(function(a){a.layoutDimensions=()=>{const f=a.data();return{w:f.width,h:f.height}}});const n={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};r.layout(n).run(),r.ready(a=>{y.info("Cytoscape ready",a),o(r)})})}l($,"createCytoscapeInstance");function X(t){return t.nodes().map(o=>{const e=o.data(),r=o.position(),n={id:e.id,x:r.x,y:r.y};return Object.keys(e).forEach(a=>{a!=="id"&&(n[a]=e[a])}),n})}l(X,"extractPositionedNodes");function Y(t){return t.edges().map(o=>{const e=o.data(),r=o._private.rscratch,n={id:e.id,source:e.source,target:e.target,startX:r.startX,startY:r.startY,midX:r.midX,midY:r.midY,endX:r.endX,endY:r.endY};return Object.keys(e).forEach(a=>{["id","source","target"].includes(a)||(n[a]=e[a])}),n})}l(Y,"extractPositionedEdges");async function v(t,o){y.debug("Starting cose-bilkent layout algorithm");try{B(t);const e=await $(t),r=X(e),n=Y(e);return y.debug(`Layout completed: ${r.length} nodes, ${n.length} edges`),{nodes:r,edges:n}}catch(e){throw y.error("Error in cose-bilkent layout algorithm:",e),e}}l(v,"executeCoseBilkentLayout");function B(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}l(B,"validateLayoutData");var O=l(async(t,o,{insertCluster:e,insertEdge:r,insertEdgeLabel:n,insertMarkers:a,insertNode:f,log:c,positionEdgeLabel:x},{algorithm:j})=>{const u={},p={},m=o.select("g");a(m,t.markers,t.type,t.diagramId);const C=m.insert("g").attr("class","subgraphs"),E=m.insert("g").attr("class","edgePaths"),A=m.insert("g").attr("class","edgeLabels"),N=m.insert("g").attr("class","nodes");c.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async s=>{if(s.isGroup){const i={...s};p[s.id]=i,u[s.id]=i,await e(C,s)}else{const i={...s};u[s.id]=i;const d=await f(N,s,{config:t.config,dir:t.direction||"TB"}),g=d.node().getBBox();i.width=g.width,i.height=g.height,i.domId=d,c.debug(`Node ${s.id} dimensions: ${g.width}x${g.height}`)}})),c.debug("Running cose-bilkent layout algorithm");const _={...t,nodes:t.nodes.map(s=>{const i=u[s.id];return{...s,width:i.width,height:i.height}})},b=await v(_,t.config);c.debug("Positioning nodes based on layout results"),b.nodes.forEach(s=>{const i=u[s.id];i?.domId&&(i.domId.attr("transform",`translate(${s.x}, ${s.y})`),i.x=s.x,i.y=s.y,c.debug(`Positioned node ${i.id} at center (${s.x}, ${s.y})`))}),b.edges.forEach(s=>{const i=t.edges.find(d=>d.id===s.id);i&&(i.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}])}),c.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async s=>{await n(A,s);const i=u[s.start??""],d=u[s.end??""];if(i&&d){const g=b.edges.find(h=>h.id===s.id);if(g){c.debug("APA01 positionedEdge",g);const h={...s},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}else{const h={...s,points:[{x:i.x||0,y:i.y||0},{x:d.x||0,y:d.y||0}]},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}}})),c.debug("Cose-bilkent rendering completed")},"render"),U=O;export{U as render};
|
package/dist-embed/chunks/{cose-bilkent-JH36ORCC-D2gVNaYW.js → cose-bilkent-JH36ORCC-j_7L0NF5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as l,l as y}from"./mermaid.core-
|
|
1
|
+
import{_ as l,l as y}from"./mermaid.core-Dd-D7tJ4.js";import{c as P}from"./cytoscape.esm-By_5ytxT.js";import{c as k}from"./cytoscape-cose-bilkent-CqJ2Zkz1.js";import{s as q}from"./index-CyZxCTSq.js";import"../datalayer-app-main.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";P.use(k);function D(t,o){t.forEach(e=>{const r={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(n=>{["id","label","height","width","padding","x","y"].includes(n)||(r[n]=e[n])}),o.add({group:"nodes",data:r,position:{x:e.x??0,y:e.y??0}})})}l(D,"addNodes");function I(t,o){t.forEach(e=>{const r={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(n=>{["id","start","end"].includes(n)||(r[n]=e[n])}),o.add({group:"edges",data:r})})}l(I,"addEdges");function $(t){return new Promise(o=>{const e=q("body").append("div").attr("id","cy").attr("style","display:none"),r=P({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});e.remove(),D(t.nodes,r),I(t.edges,r),r.nodes().forEach(function(a){a.layoutDimensions=()=>{const f=a.data();return{w:f.width,h:f.height}}});const n={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};r.layout(n).run(),r.ready(a=>{y.info("Cytoscape ready",a),o(r)})})}l($,"createCytoscapeInstance");function X(t){return t.nodes().map(o=>{const e=o.data(),r=o.position(),n={id:e.id,x:r.x,y:r.y};return Object.keys(e).forEach(a=>{a!=="id"&&(n[a]=e[a])}),n})}l(X,"extractPositionedNodes");function Y(t){return t.edges().map(o=>{const e=o.data(),r=o._private.rscratch,n={id:e.id,source:e.source,target:e.target,startX:r.startX,startY:r.startY,midX:r.midX,midY:r.midY,endX:r.endX,endY:r.endY};return Object.keys(e).forEach(a=>{["id","source","target"].includes(a)||(n[a]=e[a])}),n})}l(Y,"extractPositionedEdges");async function v(t,o){y.debug("Starting cose-bilkent layout algorithm");try{B(t);const e=await $(t),r=X(e),n=Y(e);return y.debug(`Layout completed: ${r.length} nodes, ${n.length} edges`),{nodes:r,edges:n}}catch(e){throw y.error("Error in cose-bilkent layout algorithm:",e),e}}l(v,"executeCoseBilkentLayout");function B(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}l(B,"validateLayoutData");var O=l(async(t,o,{insertCluster:e,insertEdge:r,insertEdgeLabel:n,insertMarkers:a,insertNode:f,log:c,positionEdgeLabel:x},{algorithm:j})=>{const u={},p={},m=o.select("g");a(m,t.markers,t.type,t.diagramId);const C=m.insert("g").attr("class","subgraphs"),E=m.insert("g").attr("class","edgePaths"),A=m.insert("g").attr("class","edgeLabels"),N=m.insert("g").attr("class","nodes");c.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async s=>{if(s.isGroup){const i={...s};p[s.id]=i,u[s.id]=i,await e(C,s)}else{const i={...s};u[s.id]=i;const d=await f(N,s,{config:t.config,dir:t.direction||"TB"}),g=d.node().getBBox();i.width=g.width,i.height=g.height,i.domId=d,c.debug(`Node ${s.id} dimensions: ${g.width}x${g.height}`)}})),c.debug("Running cose-bilkent layout algorithm");const _={...t,nodes:t.nodes.map(s=>{const i=u[s.id];return{...s,width:i.width,height:i.height}})},b=await v(_,t.config);c.debug("Positioning nodes based on layout results"),b.nodes.forEach(s=>{const i=u[s.id];i?.domId&&(i.domId.attr("transform",`translate(${s.x}, ${s.y})`),i.x=s.x,i.y=s.y,c.debug(`Positioned node ${i.id} at center (${s.x}, ${s.y})`))}),b.edges.forEach(s=>{const i=t.edges.find(d=>d.id===s.id);i&&(i.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}])}),c.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async s=>{await n(A,s);const i=u[s.start??""],d=u[s.end??""];if(i&&d){const g=b.edges.find(h=>h.id===s.id);if(g){c.debug("APA01 positionedEdge",g);const h={...s},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}else{const h={...s,points:[{x:i.x||0,y:i.y||0},{x:d.x||0,y:d.y||0}]},w=r(E,h,p,t.type,i,d,t.diagramId);x(h,w)}}})),c.debug("Cose-bilkent rendering completed")},"render"),Q=O;export{Q as render};
|