@datalayer/agent-runtimes 1.5.80 → 1.5.82
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/ChatView-uYgfl4KN.js +32 -0
- package/dist-embed/chunks/{DeckComponent-Cd1sbs9L.js → DeckComponent-DS42k_Ud.js} +2 -2
- package/dist-embed/chunks/{DocumentView-ssQ835Wa.js → DocumentView-DTZjQfu5.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-DNziilOG.js → EphemeralDocument-BcxH847U.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-CQ4BeoQt.js → ExcalidrawComponent-D-DdWmbS.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-8W-b1OmA.js → ExcalidrawModal-Bgdc7pqI.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-BLYM-DTn.js → JupyterLexicalExtension-2cZTnnOv.js} +6 -6
- package/dist-embed/chunks/{YouTubePlugin-BgZG6fCA.js → YouTubePlugin-CcQPagoa.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CHerLzZ0.js → abnfDiagram-VCTEODGH-BHwrDUSK.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BdOOK2nG.js → abnfDiagram-VCTEODGH-BlJ0uJzg.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CsKFU4Ej.js → abnfDiagram-VCTEODGH-BnGI-UIs.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-Bcy9b6jn.js → ar-SA-G6X2FPQ2-CqfmhD9l.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-C8jjE2mY.js → architectureDiagram-5GKGNRK7-BAJb7Shu.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-iDgRBR0a.js → architectureDiagram-5GKGNRK7-CuAYWP6N.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-GukKr_g1.js → architectureDiagram-5GKGNRK7-DLWJva8u.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-Bzy5rt95.js → az-AZ-76LH7QW2-mjoZR4wa.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-C3mQkAoD.js → bg-BG-XCXSNQG7-DU3y3x4T.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-D3BurtSN.js → blockDiagram-868be97b-DRJ_ofQv.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DH6ta7S_.js → blockDiagram-I7D4REHJ-BZLSOJfR.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-oDRNhSU2.js → blockDiagram-I7D4REHJ-DO_8w9-1.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-edfypROz.js → blockDiagram-I7D4REHJ-XN1bU5Ii.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-DHwDUFeg.js → bn-BD-2XOGV67Q-C4V6q1wT.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-Dmbl9p6m.js → c4Diagram-3f4bdde3-B-w3s9rx.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-B6NHHf7w.js → c4Diagram-7LVT6UL2-B28HS4IQ.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CR3iQQ6O.js → c4Diagram-7LVT6UL2-BACgR0fs.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BD3Ld97M.js → c4Diagram-7LVT6UL2-DwLtBd8O.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-CWMZCfjI.js → ca-ES-6MX7JW3Y-DzJcx7TI.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-9xCosPaH.js → chunk-2Q5K7J3B-BqK0jhMM.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-ZWnuQ6M2.js → chunk-2Q5K7J3B-Cv2QB080.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-H_DA_jTG.js → chunk-2Q5K7J3B-Pu-PawH9.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-BhWUyelG.js → chunk-5VM5RSS4-BIWdC4YC.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-7q2jPq-I.js → chunk-5VM5RSS4-DI3POCyE.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-C2EZUNrH.js → chunk-5VM5RSS4-DthkbWcR.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-B9wgW70d.js → chunk-F27PBJKO-BY-_X1Ii.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-hasZYXJc.js → chunk-F27PBJKO-DcCqnHNB.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-iAw_9Xtd.js → chunk-F27PBJKO-dSqM-5aG.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CU661Hle.js → chunk-IMKFNOWR-BYkz40H8.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CR2LIHPi.js → chunk-IMKFNOWR-DPv-w5lK.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DhXkXQPV.js → chunk-IMKFNOWR-O7b2kauh.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-B40RAhYQ.js → chunk-JWPE2WC7-779bmDSv.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DaBG37yC.js → chunk-JWPE2WC7-Be4x4L6B.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-D4pNFsZF.js → chunk-JWPE2WC7-th9umQbo.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-CNc-_UkX.js → chunk-POPQ4Y6H-B097KlFr.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-PC7NS4ab.js → chunk-POPQ4Y6H-CYXeyiko.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-WjTzJISs.js → chunk-POPQ4Y6H-C_fIQaTN.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BgVpHjUA.js → chunk-SVP7TREG-BZUv4JX-.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-bq0J6tH_.js → chunk-SVP7TREG-YgahXZy2.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-B-LR0OEY.js → chunk-SVP7TREG-dXH2Z6GR.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-D0mlrZUj.js → chunk-TICWLB2K-C54VOu9Q.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BKUWUi4x.js → chunk-TICWLB2K-DIe5qIoj.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BV_9f6ak.js → chunk-TICWLB2K-YWBHGfC8.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-fV8doVJJ.js → chunk-XXDRQBXY-B1faoehH.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-CFD4Agg8.js → chunk-XXDRQBXY-CNEiTt6v.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-DF8wFPCi.js → chunk-XXDRQBXY-f3FbRmyb.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-B2RPE1Bl.js → classDiagram-ZZMXUADV-Cd7eEzi4.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-B0pbDswj.js → classDiagram-ZZMXUADV-DuuqqgIP.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-BSdRgwsr.js → classDiagram-ZZMXUADV-q1xSQX4O.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-tD890DEl.js → classDiagram-f62afe4f-ByEt3lSF.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-DReIuoeI.js → classDiagram-v2-604399ef-NBzfAORG.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-B2RPE1Bl.js → classDiagram-v2-VYDZK3BY-Cd7eEzi4.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-B0pbDswj.js → classDiagram-v2-VYDZK3BY-DuuqqgIP.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-BSdRgwsr.js → classDiagram-v2-VYDZK3BY-q1xSQX4O.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CGF9N16A.js → cose-bilkent-JH36ORCC-BiEPnrEj.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-D976z1sp.js → cose-bilkent-JH36ORCC-DfR5QnyH.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BS_pJML-.js → cose-bilkent-JH36ORCC-DzJSYCRG.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-1eVJ8jxH.js → createText-aed3d8b3-6mXespHo.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-B_pe2qj9.js → cs-CZ-2BRQDIVT-BKep5hDJ.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Cil4cm66.js → cynefinDiagram-5FMLGOSQ-B7qhaV93.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-AxJwZ7KT.js → cynefinDiagram-5FMLGOSQ-DwHfF9hE.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-D7ioXav_.js → cynefinDiagram-5FMLGOSQ-_vxJMyqw.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-CGWCNcJj.js → da-DK-5WZEPLOC-DlOP6lOL.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-DauBFK-x.js → dagre-GXQ25YYZ-Bjepw68A.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-B8Ip03td.js → dagre-GXQ25YYZ-DFR_CaEv.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-Cp78_L9l.js → dagre-GXQ25YYZ-Ds0JPzDS.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-DTdq2h_G.js → de-DE-XR44H4JA-BRk2-hl3.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-LsSU5PzE.js → diagram-S7CK7UJ4-BwwRJlNT.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-BxRBCYVP.js → diagram-S7CK7UJ4-DIMHIP_O.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-cLOCifii.js → diagram-S7CK7UJ4-DjMCZvT1.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-BvgP6_rf.js → diagram-UQ7AKVKN-BqqL4ZW6.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-BK4qe_eB.js → diagram-UQ7AKVKN-COGYRNFS.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-CoIPlGw-.js → diagram-UQ7AKVKN-D0P7rl1p.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-Cy8iWh4H.js → diagram-VSXAHHWV-ChB-FOnw.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-CIhWkrRX.js → diagram-VSXAHHWV-DsMS8foW.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-DWWQ-Ga9.js → diagram-VSXAHHWV-DvxkVQ-E.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-43SwkivD.js → diagram-VX7I27RA-BIxeQH4u.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-CQM8aGRO.js → diagram-VX7I27RA-Cg10qtez.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-CCx8R8FK.js → diagram-VX7I27RA-Cuf1tsVI.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-Da75Rc5Q.js → diagram-Z3DM3KII-B22XcXbf.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DrILxydN.js → diagram-Z3DM3KII-CNWiLQR4.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-Dqcrl8-1.js → diagram-Z3DM3KII-DsRXBtfM.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CwBVaHP2.js → ebnfDiagram-PWID7BFC-81p8Ls5M.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DC-Zam6d.js → ebnfDiagram-PWID7BFC-BiAjk2HF.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-Klx1dPe6.js → ebnfDiagram-PWID7BFC-C31mpWW_.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-B3ybuHDU.js → edges-b2856ca0-Bup5nxkN.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-qdInZt55.js → el-GR-BZB4AONW-BwGTv3Ip.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-HZ-VLc2f.js → erDiagram-5d81789a-DFzRdHol.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-DmlOR1VA.js → erDiagram-RLTQ6QDP-BdoySyRQ.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-6YXMuidI.js → erDiagram-RLTQ6QDP-BrpNZMOa.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CNO4pVhU.js → erDiagram-RLTQ6QDP-OQO_sYyP.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-CbVgghD5.js → es-ES-U4NZUMDT-tz36zNcB.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-Cfyi4-QV.js → eu-ES-A7QVB2H4-CGBVWQ14.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-Bpz9Yk2c.js → fa-IR-HGAKTJCU-CoO7_ncQ.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-CnNP_ASI.js → fi-FI-Z5N7JZ37-DPjdvbO9.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-7Nn2obHG.js → flowDb-185abca5-au1lLLx1.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-CnvM_psw.js → flowDiagram-1629c991-BeGPcZ6y.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-Bsl5oOFb.js → flowDiagram-HODETNUW-CYTfSgr_.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DpJLPDJS.js → flowDiagram-HODETNUW-D1SiifhW.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-_PPo6xx4.js → flowDiagram-HODETNUW-ZrGwOdyu.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-TkF25UVC.js → flowDiagram-v2-1d953310-DjmvuK3n.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-CwiGfEuJ.js → flowchart-elk-definition-6df44142-vDckeTZu.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-CXIU81zC.js → fr-FR-RHASNOE6-Cmv7wG_0.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-DeouFDZE.js → ganttDiagram-3b0b3873-DVQKpltu.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BeK3rGHM.js → ganttDiagram-EL5Y4UJY-BORJG_RB.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-B3ddBLm-.js → ganttDiagram-EL5Y4UJY-BqzFsgGN.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DnJUq63S.js → ganttDiagram-EL5Y4UJY-YQkzQd01.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CKVR9Ajq.js → gitGraphDiagram-WWUBYQGX-AAVjuV14.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-u7eHxrMk.js → gitGraphDiagram-WWUBYQGX-BKLKcFoS.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-DkYi8eWr.js → gitGraphDiagram-WWUBYQGX-D1o9osXz.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-mCCRVzIs.js → gitGraphDiagram-f01e8bc2-CJSbiZjx.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-Do1RdVfG.js → gl-ES-HMX3MZ6V-CRdkmw5y.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-NcTscmv6.js → he-IL-6SHJWFNN-DvMw5Cul.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CyNpoQ12.js → hi-IN-IWLTKZ5I-DJlp0nwg.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Bzge2Fdz.js → hu-HU-A5ZG7DT2-CzRriMFn.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-DaNcoDhl.js → id-ID-SAP4L64H-DIWyOwkf.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-CzUk5Hhq.js → index-9bae90f3-CSxqLQwc.js} +1 -1
- package/dist-embed/chunks/{index-Cx_cIRez.js → index-B8BulvHI.js} +1 -1
- package/dist-embed/chunks/{index-CLdL3h_Z.js → index-BCGvaYVt.js} +1 -1
- package/dist-embed/chunks/{index-BQdtKMKk.js → index-CbnU-kk0.js} +4 -4
- package/dist-embed/chunks/index-CeTMYE1j.js +1 -0
- package/dist-embed/chunks/{index-lOJZWhTu.js → index-DY5U0msZ.js} +4 -4
- package/dist-embed/chunks/{index-D_vehxcD.js → index-DxN3ZybZ.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-CrHEoNfn.js → infoDiagram-27XIBGKW-BnxVO2UJ.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DiC5_yjB.js → infoDiagram-27XIBGKW-COSYMCha.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-C3YByzAX.js → infoDiagram-27XIBGKW-CrDC6noC.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-DRVyx4Bf.js → infoDiagram-a29d40f1-oSOWBNcS.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-B87JmQRn.js → ishikawaDiagram-5VMMS53U-Cabl3zHc.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DkW3YLz9.js → ishikawaDiagram-5VMMS53U-Dy7sKgzH.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-3WGbru46.js → ishikawaDiagram-5VMMS53U-orLa617t.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-6fWP-4Pk.js → it-IT-JPQ66NNP--0R7ykIn.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-TOPcUfq8.js → ja-JP-DBVTYXUO-BceLsdOT.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BZWmkUfk.js → journeyDiagram-3NMN7TZE-CFX02NzG.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BcfZXfHF.js → journeyDiagram-3NMN7TZE-DK2YyxiL.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BjO5pIr-.js → journeyDiagram-3NMN7TZE-YkKUQWKF.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-D_QLiVq4.js → journeyDiagram-95396277-CU6tIrkG.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-WPmptgZr.js → kaa-6HZHGXH3-DmBIoS2A.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-CMOAXrZA.js → kab-KAB-ZGHBKWFO-FOhJJBEr.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-D9d45rsU.js → kanban-definition-UXKFOSKX-BluwjAGS.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B84ZaZEy.js → kanban-definition-UXKFOSKX-C14qnrHj.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DKCJ8_n0.js → kanban-definition-UXKFOSKX-C4dKZPut.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-B6ezOPzr.js → kk-KZ-P5N5QNE5-Cfl-4Zso.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-C84QUPbc.js → km-KH-HSX4SM5Z-CkPlUErW.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-cuBEuTL_.js → ko-KR-MTYHY66A-ClNehjJR.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-B9KdlCAR.js → ku-TR-6OUDTVRD-BWAQD572.js} +1 -1
- package/dist-embed/chunks/{layout-Do3wJC1j.js → layout-BJZx1DET.js} +1 -1
- package/dist-embed/chunks/{layout-Dx5Hzkor.js → layout-Cj2S0_6r.js} +1 -1
- package/dist-embed/chunks/{layout-C6Twj1mW.js → layout-CrZLRdHC.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-B39JwBGi.js → lt-LT-XHIRWOB4-CdVgmT3F.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-8WReOaa7.js → lv-LV-5QDEKY6T-DhvrkAd6.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-D0955PCw.js → mermaid.core-CN-kUGXQ.js} +4 -4
- package/dist-embed/chunks/{mermaid.core-D98kc0OO.js → mermaid.core-Cb8_A6yp.js} +3 -3
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-D86IPkt3.js → mindmap-definition-YA3MSWOX-BI8iAkoX.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-5wZuXgB8.js → mindmap-definition-YA3MSWOX-C3PLDJT4.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BURkGTKI.js → mindmap-definition-YA3MSWOX-CLcKjJkV.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-UbbfpF-a.js → mindmap-definition-e4c1d938-BR3XAv_v.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-DUaS8VWx.js → mr-IN-CRQNXWMA-EGNXrciM.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-BdJYwQXg.js → my-MM-5M5IBNSE-B-8cjGNb.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-C_p5yu1z.js → nb-NO-T6EIAALU-C49vGMvQ.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DM5qgcCp.js → nl-NL-IS3SIHDZ-Bop5b6pF.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-BuX1DqI5.js → nn-NO-6E72VCQL-CztS-gYX.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-BAWljcaf.js → oc-FR-POXYY2M6-D5wo47w8.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-2iyq8qxX.js → pa-IN-N4M65BXN-USnnio2R.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BjrOX_Ki.js → pegDiagram-XKGWAZYB-BHSFNuDr.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BJAdJVqh.js → pegDiagram-XKGWAZYB-CxqsEvHB.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-CyuSADYr.js → pegDiagram-XKGWAZYB-D_KkFB8O.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-C9b5dzpq.js → percentages-BXMCSKIN-Qs237i5f.js} +5 -5
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-C55wHgO0.js → pieDiagram-E7YTZNPT-C01d4vFA.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-ni9UMEzV.js → pieDiagram-E7YTZNPT-DrPlYr3y.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-GvxNnk0x.js → pieDiagram-E7YTZNPT-XvKrNQIe.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-DTmViAsB.js → pieDiagram-c941bede-5Q4eh0ys.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-C6nLJHhB.js → pl-PL-T2D74RX3-BzossiHE.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-B1adz-DU.js → pt-BR-5N22H2LF-DqZAv4oC.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BCZpI4LV.js → pt-PT-UZXXM6DQ-CfFta-9l.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-CufBEqrC.js → quadrantDiagram-AXDQQJYC-Ba9Uoul2.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BCeMrGXB.js → quadrantDiagram-AXDQQJYC-Cayreizb.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Yg2WGHWh.js → quadrantDiagram-AXDQQJYC-qHBK2GfL.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-BZAbhmbg.js → quadrantDiagram-cf8b8fe0-baOXG64t.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BAXhb26s.js → railroadDiagram-O6MQD6OU-BoiPFsc0.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-6tStysfX.js → railroadDiagram-O6MQD6OU-Ck3rOcDX.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-Df7m1mT4.js → railroadDiagram-O6MQD6OU-DPbTwglx.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-DNqx3JRF.js → requirementDiagram-53bda41b--Vif0cFL.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CmXBYo40.js → requirementDiagram-BXWQKSXE-BU62-ZX8.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-0AqPqv7a.js → requirementDiagram-BXWQKSXE-BnpFahSo.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-B0SL6Gqb.js → requirementDiagram-BXWQKSXE-TxEizGOu.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-BPM7y_F2.js → ro-RO-JPDTUUEW-DeKMiDGM.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-UViKo8dy.js → ru-RU-B4JR7IUQ-DwcP27bd.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-rQsp_j9w.js → sankeyDiagram-P5KCCOFB-BZdt2wZF.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CktuQIU1.js → sankeyDiagram-P5KCCOFB-Be7ybx8L.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CqcWOAyy.js → sankeyDiagram-P5KCCOFB-BvBkWEs8.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-4-5C_fXA.js → sankeyDiagram-c3ef121a-DG1UM3l4.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-DedJ5qnD.js → sequenceDiagram-82a5b84f-UdVxURsq.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-Br4F1sd7.js → sequenceDiagram-WJ2MYXX4-BCfarclu.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-BBGHED3s.js → sequenceDiagram-WJ2MYXX4-D7c_CoMJ.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-GMFparx1.js → sequenceDiagram-WJ2MYXX4-Dg0wfvkN.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-D7TIYEDr.js → si-LK-N5RQ5JYF-d-F0Cewp.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-8qFOiWrK.js → sizeCapture-INFHLROL-DMANNAaY.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-C_M5Nl06.js → sizeCapture-INFHLROL-Dj0ydwKk.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-BNuVN7vX.js → sizeCapture-INFHLROL-DlIgxaWS.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CQedcNlJ.js → sk-SK-C5VTKIMK-BgobCs_4.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-BX1W51zJ.js → sl-SI-NN7IZMDC-BLiLsQKQ.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-C-TVhCrM.js → stateDiagram-43e79a5f-CNvh6hi1.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-tqnmMQUf.js → stateDiagram-D77RDMKH-B57tGlQp.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-CWrs6KzY.js → stateDiagram-D77RDMKH-D0LWS8oe.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-XK76naDS.js → stateDiagram-D77RDMKH-DxKAfNML.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-TVcKzajK.js → stateDiagram-v2-2041ed4f-BJpoWqKy.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-D3ZN_IoS.js → stateDiagram-v2-MP3YSRHH-CouGWb0D.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-lpluVNfO.js → stateDiagram-v2-MP3YSRHH-DAJ3mmV7.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C3MNIg5B.js → stateDiagram-v2-MP3YSRHH-DWVb2don.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-CIILXOoF.js → styles-455b33cd--c-Q4lAI.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-CVBMDsh6.js → styles-f932cba9-D41PptLO.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-CTOmFTKK.js → styles-fcc2142b-DO_mbuzb.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-PVguOYyR.js → subset-shared.chunk-KMJoi0ES.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-iWGyr_E5.js → subset-worker.chunk-D4fLKx8W.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-DI7YcqUR.js → sv-SE-XGPEYMSR-BG1QXCvW.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BCgvh5nL.js → svgDrawCommon-148a3cd9-_sy1MPqQ.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-B9qJ99nD.js → swimlanes-42K2YHIH-DFY4MLTT.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-Ca0PhRmf.js → swimlanes-42K2YHIH-DFhNG700.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DHcV40DB.js → swimlanes-42K2YHIH-qHdPIKqR.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BEQKTD21.js → swimlanesDiagram-VR7AAH4N-DLu8qxW1.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-CQ7d-sbG.js → swimlanesDiagram-VR7AAH4N-DfJlYoc0.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-D-2e4UFJ.js → swimlanesDiagram-VR7AAH4N-Di8ZW7vB.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-OZH5xroe.js → ta-IN-2NMHFXQM-Cwf7MXhM.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-gAuWhBpT.js → th-TH-HPSO5L25-BgFIeFdc.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CtZZro9U.js → timeline-definition-24CTP7MA-CSnCQHgO.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-DJcFE1jT.js → timeline-definition-24CTP7MA-EjGuok3K.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-B8lxEouP.js → timeline-definition-24CTP7MA-jNu4kA6-.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-CLycxRtq.js → timeline-definition-7545f45a-DKVkx2iN.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-DQ0SDuS6.js → tr-TR-DEFEU3FU-B36BzndK.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-7J4e2jng.js → uk-UA-QMV73CPH-BIdgdufZ.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-zaNGkt8b.js → vennDiagram-4TSXK5OY-BwJIpWTX.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Ca7szyFH.js → vennDiagram-4TSXK5OY-Ct92LUy3.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BMmQ-DIV.js → vennDiagram-4TSXK5OY-sTUDzxoI.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-dNpZ5DZ5.js → vi-VN-M7AON7JQ-C_vYqSDJ.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-C1VKw6YX.js → wardleyDiagram-VM6X3IG4-CmL9UVda.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-Dh0UOrRp.js → wardleyDiagram-VM6X3IG4-D19vZyCA.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-D_Q6gtp2.js → wardleyDiagram-VM6X3IG4-pjFMZv0g.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-B-BTwetN.js → xychartDiagram-3f383b91-C9v4_Sav.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-D_TaZM0k.js → xychartDiagram-S5SC5T6Z-BR0Sc17V.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-4OhI4XQl.js → xychartDiagram-S5SC5T6Z-CVSyvraK.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-BQHFHk-x.js → xychartDiagram-S5SC5T6Z-DlWO5eFt.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-CZSp2g8b.js → zh-CN-LNUGB5OW-yOtUN9v4.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-DUqVOyB_.js → zh-HK-E62DVLB3-Drd2m3yL.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-U-TalxxN.js → zh-TW-RAJ6MFWO-CqJCCTAz.js} +1 -1
- package/dist-embed/datalayer-app-main.js +13 -13
- package/lib/AgentNode.js +9 -9
- package/lib/agents/AgentRuntimeChat.js +1 -1
- package/lib/api/agents.js +3 -3
- package/lib/api/context.js +3 -3
- package/lib/api/evals.js +3 -3
- package/lib/api/events.js +3 -3
- package/lib/api/index.js +2 -2
- package/lib/api/notifications.js +3 -3
- package/lib/api/output.js +3 -3
- package/lib/api/runtimes/checkpoints.js +3 -3
- package/lib/api/runtimes/environments.js +3 -3
- package/lib/api/runtimes/healthz.js +2 -2
- package/lib/api/runtimes/runtimes.js +3 -3
- package/lib/api/runtimes/snapshots.js +3 -3
- package/lib/api/scheduler/schedules.js +2 -2
- package/lib/api/spacer/documents.js +2 -2
- package/lib/api/spacer/healthz.js +2 -2
- package/lib/api/spacer/items.js +2 -2
- package/lib/api/spacer/lexicals.js +2 -2
- package/lib/api/spacer/notebooks.js +2 -2
- package/lib/api/spacer/spaces.js +3 -3
- package/lib/api/spacer/users.js +3 -3
- package/lib/apps/core/index.d.ts +12 -0
- package/lib/apps/embed/AppEmbed.js +2 -2
- package/lib/apps/embed/element.js +1 -1
- package/lib/apps/plugins/agents/AnonymousKeyBadge.js +1 -1
- package/lib/apps/plugins/app-activity/AppActivity.js +2 -2
- package/lib/apps/plugins/app-computer/AppComputer.js +1 -1
- package/lib/apps/plugins/app-page/AppPage.js +1 -1
- package/lib/apps/plugins/app-rules/AppRulesCard.js +1 -1
- package/lib/apps/plugins/app-rules/sessionRulesAction.d.ts +17 -0
- package/lib/apps/plugins/app-rules/sessionRulesAction.js +30 -0
- package/lib/apps/plugins/assistant/index.js +2 -2
- package/lib/apps/plugins/chat/ChatView.js +1 -1
- package/lib/apps/plugins/chat/SessionActionsMenu.js +13 -8
- package/lib/apps/plugins/chat/sessionActions.js +4 -0
- package/lib/apps/plugins/commands/index.js +1 -1
- package/lib/apps/plugins/document/openingDocument.js +1 -1
- package/lib/apps/plugins/page-layout/TurnPanel.js +1 -1
- package/lib/apps/plugins/page-layout/index.js +2 -2
- package/lib/apps/presets.js +1 -1
- package/lib/chat/ChatFloating.js +1 -1
- package/lib/chat/ChatPopupStandalone.js +1 -1
- package/lib/chat/ChatSidebar.js +1 -1
- package/lib/chat/ChatStandalone.js +1 -1
- package/lib/chat/assistant/characters.js +1 -1
- package/lib/chat/base/ChatBase.js +1 -1
- package/lib/chat/presence/Presence.js +1 -1
- package/lib/client/AgentRuntimesClient.js +1 -1
- package/lib/client/AgentsMixin.js +1 -1
- package/lib/client/mixins/RuntimesMixin.js +1 -1
- package/lib/client/mixins/SpacerMixin.js +2 -2
- package/lib/client/utils/spacerUtils.js +1 -1
- package/lib/components/agents/AgentSummary.js +1 -1
- package/lib/components/cards/NotificationEventCard.js +1 -1
- package/lib/components/cards/OutputCard.js +1 -1
- package/lib/components/cards/ToolApprovalCard.js +1 -1
- package/lib/components/code-sandboxes/CodeSandboxLauncher.js +6 -6
- package/lib/components/code-sandboxes/CodeSandboxPickerCell.js +1 -1
- package/lib/components/context/SpaceSelect.js +1 -1
- package/lib/components/flashes/FlashDisclaimer.js +1 -1
- package/lib/components/inspector/AgentInspector.js +1 -1
- package/lib/components/inspector/agentSpans.js +1 -1
- package/lib/components/progress/CreditsIndicator.js +2 -2
- package/lib/components/progress/index.js +1 -1
- package/lib/components/scheduler/ScheduleMenu.js +1 -1
- package/lib/components/snapshots/SandboxSnapshotMenu.js +2 -2
- package/lib/components/snippets/SnippetDialog.js +1 -1
- package/lib/components/teams/SceneTranscript.js +1 -1
- package/lib/context/CostUsageChart.js +1 -1
- package/lib/context/TokenUsageChart.js +1 -1
- package/lib/context/TurnGraphChart.js +1 -1
- package/lib/examples/AgentA2ATeamExample.js +2 -2
- package/lib/examples/AgentCheckpointsExample.js +1 -1
- package/lib/examples/AgentCodemodeExample.js +1 -1
- package/lib/examples/AgentEvalsExample.js +1 -1
- package/lib/examples/AgentGuardrailsExample.js +2 -2
- package/lib/examples/AgentInferenceProviderExample.js +1 -1
- package/lib/examples/AgentMCPExample.js +1 -1
- package/lib/examples/AgentMemoryExample.js +1 -1
- package/lib/examples/AgentMonitoringExample.js +1 -1
- package/lib/examples/AgentNotificationsExample.js +1 -1
- package/lib/examples/AgentOtelExample.js +1 -1
- package/lib/examples/AgentOutputsExample.js +1 -1
- package/lib/examples/AgentSkillsExample.js +1 -1
- package/lib/examples/AgentToolApprovalsExample.js +1 -1
- package/lib/examples/AgentTriggersExample.js +1 -1
- package/lib/examples/AgentspecsExample.js +1 -1
- package/lib/examples/LoopWorkspaceEmbed.js +1 -1
- package/lib/examples/ScenesExample.js +2 -2
- package/lib/examples/VoiceChatExample.js +1 -1
- package/lib/examples/components/AuthRequiredView.js +2 -2
- package/lib/examples/components/HeaderControls.js +1 -1
- package/lib/examples/main.js +4 -4
- package/lib/examples2/main.js +1 -1
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/useAIAgentsWebSocket.js +2 -2
- package/lib/hooks/useAgentRuntimes.js +3 -3
- package/lib/hooks/useCellOutputshot.js +1 -1
- package/lib/hooks/useCheckpoints.js +6 -6
- package/lib/hooks/useMonitoring.js +1 -1
- package/lib/hooks/useNotifications.js +2 -2
- package/lib/hooks/useProjects.js +1 -1
- package/lib/jupyter/serverExecution.js +2 -2
- package/lib/mocks/models/CourseMock.js +2 -2
- package/lib/mocks/models/SpaceMock.js +2 -2
- package/lib/models/CodeSandboxSnapshotDTO.js +1 -1
- package/lib/models/EnvironmentDTO.js +1 -1
- package/lib/models/LexicalDTO.js +2 -2
- package/lib/models/NotebookDTO.js +2 -2
- package/lib/models/Page.js +1 -1
- package/lib/models/RuntimeDTO.js +1 -1
- package/lib/models/Space.js +2 -2
- package/lib/models/SpaceDTO.js +2 -2
- package/lib/models/index.js +1 -1
- package/lib/portable/sessions.d.ts +4 -0
- package/lib/portable/sessions.js +4 -0
- package/lib/runtimes/actions.js +1 -1
- package/lib/services/DatalayerServiceManager.js +2 -2
- package/lib/state/index.js +3 -3
- package/lib/state/substates/RuntimesState.js +2 -2
- package/lib/state/substates/index.js +1 -1
- package/lib/stores/agentRuntimeStore.js +1 -1
- package/lib/types/mcp.js +1 -1
- package/lib/types/sandbox.js +1 -1
- package/package.json +1 -1
- package/scripts/check-npm-pack.mjs +22 -3
- package/scripts/esm-specifiers.mjs +71 -1
- package/scripts/fully-specify-lib.mjs +17 -2
- package/dist-embed/chunks/ChatView-LzqHHAEe.js +0 -32
- package/dist-embed/chunks/index-D8x0MQWQ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./index-
|
|
1
|
+
import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./index-CbnU-kk0.js";import{l as U}from"./layout-CrZLRdHC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,y,`
|
|
3
3
|
data=`,u.height,`
|
|
4
4
|
Parent cluster`,a.height),e.setNode(a.id,u),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,u))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:u,nodesep:b}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:u+25,nodesep:b});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;H(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),J(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),w.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),h),await T(i,e.node(y),{config:f,dir:h}))})),await m(async()=>{const y=e.edges().map(async function(g){const u=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",w,"ids:",g.v,g.w,"Translating: ",w.get(g.v),w.get(g.w)),n&&u.selfLoop){if(u.selfLoop.order!==1)return;const b={...u.originalEdge,...u,id:u.selfLoop.id,startLabelLeft:u.originalEdge?.startLabelLeft??u.startLabelLeft,startLabelRight:u.originalEdge?.startLabelRight??u.startLabelRight,endLabelLeft:u.originalEdge?.endLabelLeft??u.endLabelLeft,endLabelRight:u.originalEdge?.endLabelRight??u.endLabelRight};await X(s,b),u.width=b.width,u.height=b.height,u.labelStyle=b.labelStyle;return}await X(s,u)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:E}=z(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:E}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),U(t)},"runDagreGraphLayout"),Z=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{$.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=Z(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const h=a/2;return t.edges=B(r,h,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,h)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:h,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),w.get(n.id).node=n,R(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,E=n?.labelBBox?.height||0,y=E-L||0;p.debug("OffsetY",y,"labelHeight",E,"halfPadding",L),await F(r,n),w.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),R(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:h}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(u=>u.y+=s);const E=e.node(n),y=e.node(L),g=W(d,o,w,a,E,y,f);j(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),k=m(t=>{const e=new O({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",h=e.node(d);e.setNode(a,{domId:a,id:a,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,h.parentId),e.setNode(f,{domId:f,id:f,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,h.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",h.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),A(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??k(t),a=G(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),Ce=Y({prepareLayout:k,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:w,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,k as prepareLayoutForDagre,Ce as render,ne as runDagreLayoutCore};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./mermaid.core-
|
|
1
|
+
import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./mermaid.core-CN-kUGXQ.js";import{l as U}from"./layout-Cj2S0_6r.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,y,`
|
|
3
3
|
data=`,u.height,`
|
|
4
4
|
Parent cluster`,a.height),e.setNode(a.id,u),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,u))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:u,nodesep:b}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:u+25,nodesep:b});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;H(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),J(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),w.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),h),await T(i,e.node(y),{config:f,dir:h}))})),await m(async()=>{const y=e.edges().map(async function(g){const u=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",w,"ids:",g.v,g.w,"Translating: ",w.get(g.v),w.get(g.w)),n&&u.selfLoop){if(u.selfLoop.order!==1)return;const b={...u.originalEdge,...u,id:u.selfLoop.id,startLabelLeft:u.originalEdge?.startLabelLeft??u.startLabelLeft,startLabelRight:u.originalEdge?.startLabelRight??u.startLabelRight,endLabelLeft:u.originalEdge?.endLabelLeft??u.endLabelLeft,endLabelRight:u.originalEdge?.endLabelRight??u.endLabelRight};await X(s,b),u.width=b.width,u.height=b.height,u.labelStyle=b.labelStyle;return}await X(s,u)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:E}=z(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:E}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),U(t)},"runDagreGraphLayout"),Z=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{$.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=Z(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const h=a/2;return t.edges=B(r,h,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,h)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:h,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),w.get(n.id).node=n,R(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,E=n?.labelBBox?.height||0,y=E-L||0;p.debug("OffsetY",y,"labelHeight",E,"halfPadding",L),await F(r,n),w.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),R(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:h}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(u=>u.y+=s);const E=e.node(n),y=e.node(L),g=W(d,o,w,a,E,y,f);j(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),k=m(t=>{const e=new O({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",h=e.node(d);e.setNode(a,{domId:a,id:a,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,h.parentId),e.setNode(f,{domId:f,id:f,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,h.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",h.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),A(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??k(t),a=G(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),Re=Y({prepareLayout:k,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:w,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,k as prepareLayoutForDagre,Re as render,ne as runDagreLayoutCore};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./index-
|
|
1
|
+
import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./index-DY5U0msZ.js";import{l as U}from"./layout-BJZx1DET.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,y,`
|
|
3
3
|
data=`,u.height,`
|
|
4
4
|
Parent cluster`,a.height),e.setNode(a.id,u),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,u))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:u,nodesep:b}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:u+25,nodesep:b});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;H(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),J(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),w.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),h),await T(i,e.node(y),{config:f,dir:h}))})),await m(async()=>{const y=e.edges().map(async function(g){const u=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",w,"ids:",g.v,g.w,"Translating: ",w.get(g.v),w.get(g.w)),n&&u.selfLoop){if(u.selfLoop.order!==1)return;const b={...u.originalEdge,...u,id:u.selfLoop.id,startLabelLeft:u.originalEdge?.startLabelLeft??u.startLabelLeft,startLabelRight:u.originalEdge?.startLabelRight??u.startLabelRight,endLabelLeft:u.originalEdge?.endLabelLeft??u.endLabelLeft,endLabelRight:u.originalEdge?.endLabelRight??u.endLabelRight};await X(s,b),u.width=b.width,u.height=b.height,u.labelStyle=b.labelStyle;return}await X(s,u)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:E}=z(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:E}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),U(t)},"runDagreGraphLayout"),Z=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{$.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=Z(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const h=a/2;return t.edges=B(r,h,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,h)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:h,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),w.get(n.id).node=n,R(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,E=n?.labelBBox?.height||0,y=E-L||0;p.debug("OffsetY",y,"labelHeight",E,"halfPadding",L),await F(r,n),w.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),R(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:h}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(u=>u.y+=s);const E=e.node(n),y=e.node(L),g=W(d,o,w,a,E,y,f);j(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),k=m(t=>{const e=new O({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",h=e.node(d);e.setNode(a,{domId:a,id:a,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,h.parentId),e.setNode(f,{domId:f,id:f,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,h.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",h.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),A(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??k(t),a=G(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),Ce=Y({prepareLayout:k,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:w,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,k as prepareLayoutForDagre,Ce as render,ne as runDagreLayoutCore};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./percentages-BXMCSKIN-
|
|
1
|
+
import"./percentages-BXMCSKIN-Qs237i5f.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-2cZTnnOv.js";import"./NotebookSkeleton-CMjtj893.js";import"./Avatar-BdEm_dq2.js";import"./url-CyLVEV11.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./VideoIcon-ClANP_40.js";import"./LinkIcon-D2NHA8tm.js";import"./Toolbar-BTcbrZZV.js";import"./KebabHorizontalIcon-DD3W5tPT.js";import"./ArrowUpIcon-DfyinHM7.js";import"./SortDescIcon-DoqEaF0Z.js";import"./PaintbrushIcon-uSa0SObK.js";import"./PrismCss-sPywsCAF.js";import"./Output-CEoYDjwn.js";import"./index-By5Ku2wm.js";import"./hoverbox-CStlKQWE.js";import"./index-BuXVVl_h.js";import"./index-BfvZMC2B.js";import"./color-CG7_7V2-.js";import"./isEqual-B_c_I9Ri.js";import"./defaultLocale-5voVPcsN.js";import"./index-N9VP4Lh3.js";import"./index-aWforeu6.js";import"./RestartIcon-Ca6_HoK0.js";import"./LexicalToolRegistry-B8ccPURu.js";import"./extends-CF3RwP-h.js";import"./index-TsE1d0nj.js";import"./index-DoBkwclg.js";var e={paste:"Einfügen",pasteAsPlaintext:"Als reinen Text einfügen",pasteCharts:"Diagramme einfügen",selectAll:"Alle auswählen",multiSelect:"Element zur Auswahl hinzufügen",moveCanvas:"Leinwand verschieben",cut:"Ausschneiden",copy:"Kopieren",copyAsPng:"In Zwischenablage kopieren (PNG)",copyAsSvg:"In Zwischenablage kopieren (SVG)",copyText:"In die Zwischenablage als Text kopieren",copySource:"Quelle in Zwischenablage kopieren",convertToCode:"In Code konvertieren",bringForward:"Nach vorne",sendToBack:"In den Hintergrund",bringToFront:"In den Vordergrund",sendBackward:"Nach hinten",delete:"Löschen",copyStyles:"Formatierung kopieren",pasteStyles:"Formatierung übernehmen",stroke:"Strich",background:"Hintergrund",fill:"Füllung",strokeWidth:"Strichstärke",strokeStyle:"Konturstil",strokeStyle_solid:"Durchgezogen",strokeStyle_dashed:"Gestrichelt",strokeStyle_dotted:"Gepunktet",sloppiness:"Sauberkeit",opacity:"Deckkraft",textAlign:"Textausrichtung",edges:"Kanten",sharp:"Scharf",round:"Rund",arrowheads:"Pfeilspitzen",arrowhead_none:"Keine",arrowhead_arrow:"Pfeil",arrowhead_bar:"Balken",arrowhead_circle:"Kreis",arrowhead_circle_outline:"Kreis (Umrandung)",arrowhead_triangle:"Dreieck",arrowhead_triangle_outline:"Dreieck (Umrandung)",arrowhead_diamond:"Raute",arrowhead_diamond_outline:"Raute (Umrandung)",fontSize:"Schriftgröße",fontFamily:"Schriftfamilie",addWatermark:'"Made with Excalidraw" hinzufügen',handDrawn:"Handgezeichnet",normal:"Normal",code:"Code",small:"Klein",medium:"Mittel",large:"Groß",veryLarge:"Sehr groß",solid:"Deckend",hachure:"Schraffiert",zigzag:"Zickzack",crossHatch:"Kreuzschraffiert",thin:"Dünn",bold:"Fett",left:"Links",center:"Zentriert",right:"Rechts",extraBold:"Extra Fett",architect:"Architekt",artist:"Künstler",cartoonist:"Karikaturist",fileTitle:"Dateiname",colorPicker:"Farbauswähler",canvasColors:"Auf Leinwand verwendet",canvasBackground:"Zeichenflächenhintergrund",drawingCanvas:"Leinwand",layers:"Ebenen",actions:"Aktionen",language:"Sprache",liveCollaboration:"Live-Zusammenarbeit...",duplicateSelection:"Duplizieren",untitled:"Unbenannt",name:"Name",yourName:"Dein Name",madeWithExcalidraw:"Made with Excalidraw",group:"Auswahl gruppieren",ungroup:"Gruppierung aufheben",collaborators:"Mitarbeitende",showGrid:"Raster anzeigen",addToLibrary:"Zur Bibliothek hinzufügen",removeFromLibrary:"Aus Bibliothek entfernen",libraryLoadingMessage:"Lade Bibliothek…",libraries:"Bibliotheken durchsuchen",loadingScene:"Lade Zeichnung…",align:"Ausrichten",alignTop:"Obere Kanten",alignBottom:"Untere Kanten",alignLeft:"Linke Kanten",alignRight:"Rechte Kanten",centerVertically:"Vertikal zentrieren",centerHorizontally:"Horizontal zentrieren",distributeHorizontally:"Horizontal verteilen",distributeVertically:"Vertikal verteilen",flipHorizontal:"Horizontal spiegeln",flipVertical:"Vertikal spiegeln",viewMode:"Ansichtsmodus",share:"Teilen",showStroke:"Auswahl für Strichfarbe anzeigen",showBackground:"Hintergrundfarbe auswählen",toggleTheme:"Design umschalten",personalLib:"Persönliche Bibliothek",excalidrawLib:"Excalidraw Bibliothek",decreaseFontSize:"Schriftgröße verkleinern",increaseFontSize:"Schrift vergrößern",unbindText:"Text lösen",bindText:"Text an Container binden",createContainerFromText:"Text in Container einbetten",link:{edit:"Link bearbeiten",editEmbed:"Link bearbeiten & einbetten",create:"Link erstellen",createEmbed:"Link erstellen & einbetten",label:"Link",labelEmbed:"Verlinken & einbetten",empty:"Kein Link festgelegt"},lineEditor:{edit:"Linie bearbeiten",exit:"Linieneditor verlassen"},elementLock:{lock:"Sperren",unlock:"Entsperren",lockAll:"Alle sperren",unlockAll:"Alle entsperren"},statusPublished:"Veröffentlicht",sidebarLock:"Seitenleiste offen lassen",selectAllElementsInFrame:"Alle Elemente im Rahmen auswählen",removeAllElementsFromFrame:"Alle Elemente aus dem Rahmen entfernen",eyeDropper:"Farbe von der Zeichenfläche auswählen",textToDiagram:"Text zu Diagramm",prompt:"Eingabe"},n={noItems:"Noch keine Elemente hinzugefügt...",hint_emptyLibrary:"Wähle ein Element auf der Zeichenfläche, um es hier hinzuzufügen. Oder installiere eine Bibliothek aus dem öffentlichen Verzeichnis.",hint_emptyPrivateLibrary:"Wähle ein Element von der Zeichenfläche, um es hier hinzuzufügen."},i={clearReset:"Zeichenfläche löschen & Hintergrundfarbe zurücksetzen",exportJSON:"In Datei exportieren",exportImage:"Exportiere Bild...",export:"Speichern als...",copyToClipboard:"In Zwischenablage kopieren",save:"In aktueller Datei speichern",saveAs:"Speichern unter",load:"Öffnen",getShareableLink:"Teilbaren Link erhalten",close:"Schließen",selectLanguage:"Sprache auswählen",scrollBackToContent:"Zurück zum Inhalt",zoomIn:"Vergrößern",zoomOut:"Verkleinern",resetZoom:"Zoom zurücksetzen",menu:"Menü",done:"Fertig",edit:"Bearbeiten",undo:"Rückgängig machen",redo:"Wiederholen",resetLibrary:"Bibliothek zurücksetzen",createNewRoom:"Neuen Raum erstellen",fullScreen:"Vollbildanzeige",darkMode:"Dunkles Design",lightMode:"Helles Design",zenMode:"Zen-Modus",objectsSnapMode:"Einrasten an Objekten",exitZenMode:"Zen-Modus verlassen",cancel:"Abbrechen",clear:"Löschen",remove:"Entfernen",embed:"Einbettung umschalten",publishLibrary:"Veröffentlichen",submit:"Absenden",confirm:"Bestätigen",embeddableInteractionButton:"Klicken, um zu interagieren"},r={clearReset:"Dies wird die ganze Zeichenfläche löschen. Bist du dir sicher?",couldNotCreateShareableLink:"Konnte keinen teilbaren Link erstellen.",couldNotCreateShareableLinkTooBig:"Konnte keinen teilbaren Link erstellen: Die Zeichnung ist zu groß",couldNotLoadInvalidFile:"Ungültige Datei konnte nicht geladen werden",importBackendFailed:"Import vom Server ist fehlgeschlagen.",cannotExportEmptyCanvas:"Leere Zeichenfläche kann nicht exportiert werden.",couldNotCopyToClipboard:"Kopieren in die Zwischenablage fehlgeschlagen.",decryptFailed:"Daten konnten nicht entschlüsselt werden.",uploadedSecurly:"Der Upload wurde mit Ende-zu-Ende-Verschlüsselung gespeichert. Weder Excalidraw noch Dritte können den Inhalt einsehen.",loadSceneOverridePrompt:"Das Laden einer externen Zeichnung ersetzt den vorhandenen Inhalt. Möchtest du fortfahren?",collabStopOverridePrompt:`Das Stoppen der Sitzung wird deine vorherige, lokal gespeicherte Zeichnung überschreiben. Bist du dir sicher?
|
|
2
2
|
|
|
3
3
|
(Wenn du deine lokale Zeichnung behalten möchtest, schließe stattdessen den Browser-Tab.)`,errorAddingToLibrary:"Das Element konnte nicht zur Bibliothek hinzugefügt werden",errorRemovingFromLibrary:"Das Element konnte nicht aus der Bibliothek entfernt werden",confirmAddLibrary:"Dies fügt {{numShapes}} Form(en) zu deiner Bibliothek hinzu. Bist du dir sicher?",imageDoesNotContainScene:"Dieses Bild scheint keine Szenendaten zu enthalten. Hast Du das Einbetten der Szene während des Exports aktiviert?",cannotRestoreFromImage:"Die Zeichnung konnte aus dieser Bilddatei nicht wiederhergestellt werden",invalidSceneUrl:"Die Szene konnte nicht von der angegebenen URL importiert werden. Sie ist entweder fehlerhaft oder enthält keine gültigen Excalidraw JSON-Daten.",resetLibrary:"Dieses löscht deine Bibliothek. Bist du sicher?",removeItemsFromsLibrary:"{{count}} Element(e) aus der Bibliothek löschen?",invalidEncryptionKey:"Verschlüsselungsschlüssel muss 22 Zeichen lang sein. Die Live-Zusammenarbeit ist deaktiviert.",collabOfflineWarning:`Keine Internetverbindung verfügbar.
|
|
4
4
|
Deine Änderungen werden nicht gespeichert!`},t={unsupportedFileType:"Nicht unterstützter Dateityp.",imageInsertError:"Das Bild konnte nicht eingefügt werden. Versuche es später erneut...",fileTooBig:"Die Datei ist zu groß. Die maximal zulässige Größe ist {{maxSize}}.",svgImageInsertError:"SVG-Bild konnte nicht eingefügt werden. Das SVG-Markup sieht ungültig aus.",failedToFetchImage:"Bild konnte nicht abgerufen werden.",invalidSVGString:"Ungültige SVG.",cannotResolveCollabServer:"Konnte keine Verbindung zum Collab-Server herstellen. Bitte lade die Seite neu und versuche es erneut.",importLibraryError:"Bibliothek konnte nicht geladen werden",collabSaveFailed:"Keine Speicherung in der Backend-Datenbank möglich. Wenn die Probleme weiterhin bestehen, solltest Du Deine Datei lokal speichern, um sicherzustellen, dass Du Deine Arbeit nicht verlierst.",collabSaveFailed_sizeExceeded:"Keine Speicherung in der Backend-Datenbank möglich, die Zeichenfläche scheint zu groß zu sein. Du solltest Deine Datei lokal speichern, um sicherzustellen, dass Du Deine Arbeit nicht verlierst.",imageToolNotSupported:"Bilder sind deaktiviert.",brave_measure_text_error:{line1:"Sieht so aus, als ob Du den Brave-Browser verwendest und die <bold>aggressive Blockierung von Fingerabdrücken</bold> aktiviert hast.",line2:"Dies könnte dazu führen, dass die <bold>Textelemente</bold> in Ihren Zeichnungen zerstört werden.",line3:"Wir empfehlen dringend, diese Einstellung zu deaktivieren. Dazu kannst Du <link>diesen Schritten</link> folgen.",line4:"Wenn die Deaktivierung dieser Einstellung die fehlerhafte Anzeige von Textelementen nicht behebt, öffne bitte ein <issueLink>Ticket</issueLink> auf unserem GitHub oder schreibe uns auf <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"Einbettbare Elemente können der Bibliothek nicht hinzugefügt werden.",iframe:"IFrame-Elemente können nicht zur Bibliothek hinzugefügt werden.",image:"Unterstützung für das Hinzufügen von Bildern in die Bibliothek kommt bald!"},asyncPasteFailedOnRead:"Einfügen fehlgeschlagen (konnte aus der Zwischenablage des Systems nicht gelesen werden).",asyncPasteFailedOnParse:"Einfügen fehlgeschlagen.",copyToSystemClipboardFailed:"Kopieren in die Zwischenablage fehlgeschlagen."},a={selection:"Auswahl",image:"Bild einfügen",rectangle:"Rechteck",diamond:"Raute",ellipse:"Ellipse",arrow:"Pfeil",line:"Linie",freedraw:"Zeichnen",text:"Text",library:"Bibliothek",lock:"Ausgewähltes Werkzeug nach Zeichnen aktiv lassen",penMode:"Stift-Modus - Berührung verhindern",link:"Link für ausgewählte Form hinzufügen / aktualisieren",eraser:"Radierer",frame:"Rahmenwerkzeug",magicframe:"Wireframe zu Code",embeddable:"Web-Einbettung",laser:"Laserpointer",hand:"Hand (Schwenkwerkzeug)",extraTools:"Weitere Werkzeuge",mermaidToExcalidraw:"Mermaid zu Excalidraw",magicSettings:"KI-Einstellungen"},l={canvasActions:"Aktionen für Zeichenfläche",selectedShapeActions:"Aktionen für Auswahl",shapes:"Formen"},s={canvasPanning:"Um die Zeichenfläche zu verschieben, halte das Mausrad oder die Leertaste während des Ziehens, oder verwende das Hand-Werkzeug",linearElement:"Klicken für Linie mit mehreren Punkten, Ziehen für einzelne Linie",freeDraw:"Klicke und ziehe. Lass los, wenn du fertig bist",text:"Tipp: Du kannst auch Text hinzufügen, indem du mit dem Auswahlwerkzeug auf eine beliebige Stelle doppelklickst",embeddable:"Klicken und ziehen, um eine Webseiten-Einbettung zu erstellen",text_selected:"Doppelklicken oder Eingabetaste drücken, um Text zu bearbeiten",text_editing:"Drücke Escape oder CtrlOrCmd+Eingabetaste, um die Bearbeitung abzuschließen",linearElementMulti:"Zum Beenden auf den letzten Punkt klicken oder Escape oder Eingabe drücken",lockAngle:"Du kannst Winkel einschränken, indem du SHIFT gedrückt hältst",resize:"Du kannst die Proportionen einschränken, indem du SHIFT während der Größenänderung gedrückt hältst. Halte ALT gedrückt, um die Größe vom Zentrum aus zu ändern",resizeImage:"Du kannst die Größe frei ändern, indem du SHIFT gedrückt hältst; halte ALT, um die Größe vom Zentrum aus zu ändern",rotate:"Du kannst Winkel einschränken, indem du SHIFT während der Drehung gedrückt hältst",lineEditor_info:"CtrlOrCmd halten und Doppelklick oder CtrlOrCmd + Eingabe drücken, um Punkte zu bearbeiten",lineEditor_pointSelected:"Drücke Löschen, um Punkt(e) zu entfernen, CtrlOrCmd+D zum Duplizieren oder ziehe zum Verschieben",lineEditor_nothingSelected:`Wähle einen zu bearbeitenden Punkt (halte SHIFT gedrückt um mehrere Punkte auszuwählen),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as X}from"./chunk-2Q5K7J3B-
|
|
1
|
+
import{I as X}from"./chunk-2Q5K7J3B-BqK0jhMM.js";import{p as z}from"./chunk-JWPE2WC7-th9umQbo.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,B as j,q as J,i as K,a3 as Q,a4 as ee}from"./index-CbnU-kk0.js";import{p as te}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
|
|
2
2
|
`),e=new Map;let n=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){n=p;break}if(n===-1)return{text:r,lineMap:e};const s=[];for(let p=n+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||V.test(c)||T.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:r,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=n;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=n+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c))continue;const l=c.replace(/\t/g," "),m=L.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const W=ne.repeat(w);o.push(W+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(D.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),J()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=j.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((r,t,e,n,s,i)=>{for(;r<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:r,name:t,nodeType:e,icon:s,cssClass:n,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:q,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:O},I=de,he=g(r=>{z(r,I);for(const t of r.nodes){const e=typeof t.indent=="number"?t.indent:0;let n=t.name;const s=n.endsWith("/");s&&(n=n.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?K(c,E()):void 0;I.addNode(e,n,i,o,p,d)}},"populate"),pe={parse:g(async r=>{const{text:t,lineMap:e}=R(r);try{const n=await te("treeView",t);A.debug(n),he(n)}catch(n){throw e.size>0&&n instanceof Error&&(n.message=S(n.message,e)),n}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(r,t){const e=t?.filenameIcons?.[r];if(e)return e;const n=r.lastIndexOf(".");if(n>0){const s=r.substring(n).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(r,t){return r.includes(":")?r:r in b.icons||!t?`${b.prefix}:${r}`:`${t}:${r}`}g(C,"qualifyIcon");function B(r,t){if(r.icon!=="none"){if(r.icon)return C(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){const e=H(r.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(r,t)=>{const e=[],n=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(n)},"collect");n(r);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await Q(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),me=g((r,t,e,n,s,i)=>{const o=n.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=r+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,v=m+s.paddingX*2+(d?p:0);return e.BBox={x:r,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((r,t,e,n,s,i)=>r.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),we=g((r,t,e,n)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=me(f,s,h,d,l,n);o.push(w);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(r,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;k(r,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(r,t,e,n)=>{A.debug(`Rendering treeView diagram
|
|
4
4
|
`+r);const s=n.db,i=s.getRoot(),o=s.getConfig(),a=Z(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=we(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:r})=>{const{labelFontSize:t,labelColor:e,lineColor:n,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,r);return`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as X}from"./chunk-2Q5K7J3B-
|
|
1
|
+
import{I as X}from"./chunk-2Q5K7J3B-Pu-PawH9.js";import{p as z}from"./chunk-JWPE2WC7-Be4x4L6B.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,q as j,i as J,a3 as K,B as Q,a4 as ee}from"./mermaid.core-CN-kUGXQ.js";import{p as te}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
|
|
2
2
|
`),e=new Map;let n=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){n=p;break}if(n===-1)return{text:r,lineMap:e};const s=[];for(let p=n+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||V.test(c)||T.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:r,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=n;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=n+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c))continue;const l=c.replace(/\t/g," "),m=L.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const W=ne.repeat(w);o.push(W+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(D.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((r,t,e,n,s,i)=>{for(;r<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:r,name:t,nodeType:e,icon:s,cssClass:n,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:q,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:O},I=de,he=g(r=>{z(r,I);for(const t of r.nodes){const e=typeof t.indent=="number"?t.indent:0;let n=t.name;const s=n.endsWith("/");s&&(n=n.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,n,i,o,p,d)}},"populate"),pe={parse:g(async r=>{const{text:t,lineMap:e}=R(r);try{const n=await te("treeView",t);A.debug(n),he(n)}catch(n){throw e.size>0&&n instanceof Error&&(n.message=S(n.message,e)),n}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(r,t){const e=t?.filenameIcons?.[r];if(e)return e;const n=r.lastIndexOf(".");if(n>0){const s=r.substring(n).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(r,t){return r.includes(":")?r:r in b.icons||!t?`${b.prefix}:${r}`:`${t}:${r}`}g(C,"qualifyIcon");function B(r,t){if(r.icon!=="none"){if(r.icon)return C(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){const e=H(r.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(r,t)=>{const e=[],n=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(n)},"collect");n(r);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),me=g((r,t,e,n,s,i)=>{const o=n.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=r+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,v=m+s.paddingX*2+(d?p:0);return e.BBox={x:r,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((r,t,e,n,s,i)=>r.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),we=g((r,t,e,n)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=me(f,s,h,d,l,n);o.push(w);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(r,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;k(r,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(r,t,e,n)=>{A.debug(`Rendering treeView diagram
|
|
4
4
|
`+r);const s=n.db,i=s.getRoot(),o=s.getConfig(),a=Z(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=we(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:r})=>{const{labelFontSize:t,labelColor:e,lineColor:n,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,r);return`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as X}from"./chunk-2Q5K7J3B-
|
|
1
|
+
import{I as X}from"./chunk-2Q5K7J3B-Cv2QB080.js";import{p as z}from"./chunk-JWPE2WC7-779bmDSv.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,B as j,q as J,i as K,a3 as Q,a4 as ee}from"./index-DY5U0msZ.js";import{p as te}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
|
|
2
2
|
`),e=new Map;let n=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){n=p;break}if(n===-1)return{text:r,lineMap:e};const s=[];for(let p=n+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||V.test(c)||T.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:r,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=n;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=n+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c))continue;const l=c.replace(/\t/g," "),m=L.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const W=ne.repeat(w);o.push(W+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(D.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),J()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=j.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((r,t,e,n,s,i)=>{for(;r<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:r,name:t,nodeType:e,icon:s,cssClass:n,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:q,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:O},I=de,he=g(r=>{z(r,I);for(const t of r.nodes){const e=typeof t.indent=="number"?t.indent:0;let n=t.name;const s=n.endsWith("/");s&&(n=n.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?K(c,E()):void 0;I.addNode(e,n,i,o,p,d)}},"populate"),pe={parse:g(async r=>{const{text:t,lineMap:e}=R(r);try{const n=await te("treeView",t);A.debug(n),he(n)}catch(n){throw e.size>0&&n instanceof Error&&(n.message=S(n.message,e)),n}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(r,t){const e=t?.filenameIcons?.[r];if(e)return e;const n=r.lastIndexOf(".");if(n>0){const s=r.substring(n).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(r,t){return r.includes(":")?r:r in b.icons||!t?`${b.prefix}:${r}`:`${t}:${r}`}g(C,"qualifyIcon");function B(r,t){if(r.icon!=="none"){if(r.icon)return C(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){const e=H(r.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(r,t)=>{const e=[],n=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(n)},"collect");n(r);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await Q(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),me=g((r,t,e,n,s,i)=>{const o=n.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=r+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,v=m+s.paddingX*2+(d?p:0);return e.BBox={x:r,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((r,t,e,n,s,i)=>r.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),we=g((r,t,e,n)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=me(f,s,h,d,l,n);o.push(w);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(r,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;k(r,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(r,t,e,n)=>{A.debug(`Rendering treeView diagram
|
|
4
4
|
`+r);const s=n.db,i=s.getRoot(),o=s.getConfig(),a=Z(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=we(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:r})=>{const{labelFontSize:t,labelColor:e,lineColor:n,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,r);return`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as I}from"./chunk-JWPE2WC7-Be4x4L6B.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,y as C,B as W,l as b,F as V,d as H}from"./mermaid.core-CN-kUGXQ.js";import{p as j}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as I}from"./chunk-JWPE2WC7-th9umQbo.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-CbnU-kk0.js";import{p as j}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as I}from"./chunk-JWPE2WC7-779bmDSv.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-DY5U0msZ.js";import{p as j}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-MIxQaicl.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{p as re}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as re}from"./chunk-JWPE2WC7-Be4x4L6B.js";import{p as oe,o as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as T,z as ue,q as xe,A as fe,y as M,B as ge,i as y,w as P,a7 as he}from"./mermaid.core-CN-kUGXQ.js";import{p as pe,i as be}from"./cynefin-OW5HDTMX-BVK0_S--.js";import{s as ve}from"./index-MIxQaicl.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var $="position frame",D="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),xe()},"clear");function C(){B={}}o(C,"reset");var Se=ge.eventmodeling,ke=o(()=>fe({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${P(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
2
|
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=he(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:D,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const w=f[p],R=f[p-1];w.y=R.y+R.height+s.swimlaneGap}return h}o(Y,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(be(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[$]:V,[S]:J},Be={[D]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await pe("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=T(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=T(),l=ve(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),ue(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,qe={parser:Ee,db:F,renderer:$e,styles:Ne};export{qe as diagram};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{p as re}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as re}from"./chunk-JWPE2WC7-th9umQbo.js";import{p as oe,o as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as T,z as ue,q as xe,A as fe,B as ge,y as M,i as y,w as P,a7 as he}from"./index-CbnU-kk0.js";import{p as pe,i as be}from"./cynefin-OW5HDTMX-BBLugbYz.js";import{s as ve}from"./index-MIxQaicl.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var $="position frame",D="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),xe()},"clear");function C(){B={}}o(C,"reset");var Se=ge.eventmodeling,ke=o(()=>fe({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${P(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
2
|
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=he(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:D,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const w=f[p],R=f[p-1];w.y=R.y+R.height+s.swimlaneGap}return h}o(Y,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(be(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[$]:V,[S]:J},Be={[D]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await pe("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=T(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=T(),l=ve(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),ue(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,Je={parser:Ee,db:F,renderer:$e,styles:Ne};export{Je as diagram};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{p as re}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as re}from"./chunk-JWPE2WC7-779bmDSv.js";import{p as oe,o as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as T,z as ue,q as xe,A as fe,B as ge,y as M,i as y,w as P,a7 as he}from"./index-DY5U0msZ.js";import{p as pe,i as be}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import{s as ve}from"./index-MIxQaicl.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-BMVBoXkp.js";import"./line-DUjWPDRX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var $="position frame",D="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),xe()},"clear");function C(){B={}}o(C,"reset");var Se=ge.eventmodeling,ke=o(()=>fe({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${P(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
2
|
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=he(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:D,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const w=f[p],R=f[p-1];w.y=R.y+R.height+s.swimlaneGap}return h}o(Y,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(be(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[$]:V,[S]:J},Be={[D]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await pe("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=T(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=T(),l=ve(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),ue(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,Je={parser:Ee,db:F,renderer:$e,styles:Ne};export{Je as diagram};
|